Debian Codegraph @

libgomp/ChangeLog

raw
1 2026-06-12 Release Manager
2
3 * GCC 15.3.0 released.
4
5 2026-03-18 Christopher Albert <[email protected]>
6
7 Backported from master:
8 2026-03-17 Christopher Albert <[email protected]>
9
10 * testsuite/libgomp.fortran/pr120286.f90: New test.
11
12 2025-12-11 Frank Scheiner <[email protected]>
13
14 Backported from master:
15 2025-11-25 Frank Scheiner <[email protected]>
16
17 * affinity-fmt.c: Make char *q a pointer to a const char.
18
19 2025-09-25 Tobias Burnus <[email protected]>
20
21 Backported from master:
22 2025-09-18 Tobias Burnus <[email protected]>
23 Sandra Loosemore <[email protected]>
24
25 PR middle-end/121922
26 * testsuite/libgomp.c-c++-common/declare-variant-1.c: New test.
27
28 2025-08-08 Release Manager
29
30 * GCC 15.2.0 released.
31
32 2025-08-07 Tobias Burnus <[email protected]>
33
34 Backported from master:
35 2025-06-19 Tobias Burnus <[email protected]>
36 waffl3x <[email protected]>
37
38 * libgomp.texi (omp_init_allocator): Refer to 'Memory allocation'
39 for available memory spaces.
40 (OMP_ALLOCATOR): Move list of traits and predefined memspaces
41 and allocators to ...
42 (Memory allocation): ... here. Document omp(x)::allocator::*;
43 minor wording tweaks, be more explicit about memkind, pinned and
44 pool_size.
45
46 2025-07-22 Tobias Burnus <[email protected]>
47
48 Backported from master:
49 2025-06-17 Tobias Burnus <[email protected]>
50
51 * testsuite/libgomp.c++/declare_target-2.C: New test.
52
53 2025-07-22 Thomas Schwinge <[email protected]>
54
55 Backported from master:
56 2025-05-30 Thomas Schwinge <[email protected]>
57
58 * testsuite/libgomp.c++/target-std__valarray-1.C: New.
59 * testsuite/libgomp.c++/target-std__valarray-1.output: Likewise.
60
61 2025-07-22 Thomas Schwinge <[email protected]>
62
63 Backported from master:
64 2025-05-30 Thomas Schwinge <[email protected]>
65
66 * testsuite/libgomp.c++/target-std__array-concurrent-usm.C: New.
67 * testsuite/libgomp.c++/target-std__array-concurrent.C: Adjust.
68 * testsuite/libgomp.c++/target-std__bitset-concurrent-usm.C: New.
69 * testsuite/libgomp.c++/target-std__bitset-concurrent.C: Adjust.
70 * testsuite/libgomp.c++/target-std__deque-concurrent-usm.C: New.
71 * testsuite/libgomp.c++/target-std__deque-concurrent.C: Adjust.
72 * testsuite/libgomp.c++/target-std__forward_list-concurrent-usm.C: New.
73 * testsuite/libgomp.c++/target-std__forward_list-concurrent.C: Adjust.
74 * testsuite/libgomp.c++/target-std__list-concurrent-usm.C: New.
75 * testsuite/libgomp.c++/target-std__list-concurrent.C: Adjust.
76 * testsuite/libgomp.c++/target-std__map-concurrent-usm.C: New.
77 * testsuite/libgomp.c++/target-std__map-concurrent.C: Adjust.
78 * testsuite/libgomp.c++/target-std__multimap-concurrent-usm.C: New.
79 * testsuite/libgomp.c++/target-std__multimap-concurrent.C: Adjust.
80 * testsuite/libgomp.c++/target-std__multiset-concurrent-usm.C: New.
81 * testsuite/libgomp.c++/target-std__multiset-concurrent.C: Adjust.
82 * testsuite/libgomp.c++/target-std__set-concurrent-usm.C: New.
83 * testsuite/libgomp.c++/target-std__set-concurrent.C: Adjust.
84 * testsuite/libgomp.c++/target-std__span-concurrent-usm.C: New.
85 * testsuite/libgomp.c++/target-std__span-concurrent.C: Adjust.
86 * testsuite/libgomp.c++/target-std__valarray-concurrent-usm.C: New.
87 * testsuite/libgomp.c++/target-std__valarray-concurrent.C: Adjust.
88 * testsuite/libgomp.c++/target-std__vector-concurrent-usm.C: New.
89 * testsuite/libgomp.c++/target-std__vector-concurrent.C: Adjust.
90
91 2025-07-22 Kwok Cheung Yeung <[email protected]>
92
93 Backported from master:
94 2025-05-30 Kwok Cheung Yeung <[email protected]>
95 Thomas Schwinge <[email protected]>
96
97 * testsuite/libgomp.c++/target-std__array-concurrent.C: New.
98 * testsuite/libgomp.c++/target-std__bitset-concurrent.C: Likewise.
99 * testsuite/libgomp.c++/target-std__deque-concurrent.C: Likewise.
100 * testsuite/libgomp.c++/target-std__flat_map-concurrent.C: Likewise.
101 * testsuite/libgomp.c++/target-std__flat_multimap-concurrent.C: Likewise.
102 * testsuite/libgomp.c++/target-std__flat_multiset-concurrent.C: Likewise.
103 * testsuite/libgomp.c++/target-std__flat_set-concurrent.C: Likewise.
104 * testsuite/libgomp.c++/target-std__forward_list-concurrent.C: Likewise.
105 * testsuite/libgomp.c++/target-std__list-concurrent.C: Likewise.
106 * testsuite/libgomp.c++/target-std__map-concurrent.C: Likewise.
107 * testsuite/libgomp.c++/target-std__multimap-concurrent.C: Likewise.
108 * testsuite/libgomp.c++/target-std__multiset-concurrent.C: Likewise.
109 * testsuite/libgomp.c++/target-std__set-concurrent.C: Likewise.
110 * testsuite/libgomp.c++/target-std__span-concurrent.C: Likewise.
111 * testsuite/libgomp.c++/target-std__unordered_map-concurrent.C: Likewise.
112 * testsuite/libgomp.c++/target-std__unordered_multimap-concurrent.C: Likewise.
113 * testsuite/libgomp.c++/target-std__unordered_multiset-concurrent.C: Likewise.
114 * testsuite/libgomp.c++/target-std__unordered_set-concurrent.C: Likewise.
115 * testsuite/libgomp.c++/target-std__valarray-concurrent.C: Likewise.
116 * testsuite/libgomp.c++/target-std__vector-concurrent.C: Likewise.
117
118 2025-07-22 Kwok Cheung Yeung <[email protected]>
119
120 Backported from master:
121 2025-05-30 Kwok Cheung Yeung <[email protected]>
122
123 * testsuite/libgomp.c++/target-std__cmath.C: New.
124 * testsuite/libgomp.c++/target-std__complex.C: Likewise.
125 * testsuite/libgomp.c++/target-std__numbers.C: Likewise.
126
127 2025-07-22 Waffl3x <[email protected]>
128
129 Backported from master:
130 2025-05-30 Waffl3x <[email protected]>
131 Thomas Schwinge <[email protected]>
132
133 * testsuite/libgomp.c++/target-flex-10.C: New test.
134 * testsuite/libgomp.c++/target-flex-100.C: New test.
135 * testsuite/libgomp.c++/target-flex-101.C: New test.
136 * testsuite/libgomp.c++/target-flex-11.C: New test.
137 * testsuite/libgomp.c++/target-flex-12.C: New test.
138 * testsuite/libgomp.c++/target-flex-2000.C: New test.
139 * testsuite/libgomp.c++/target-flex-2001.C: New test.
140 * testsuite/libgomp.c++/target-flex-2002.C: New test.
141 * testsuite/libgomp.c++/target-flex-2003.C: New test.
142 * testsuite/libgomp.c++/target-flex-30.C: New test.
143 * testsuite/libgomp.c++/target-flex-300.C: New test.
144 * testsuite/libgomp.c++/target-flex-31.C: New test.
145 * testsuite/libgomp.c++/target-flex-32.C: New test.
146 * testsuite/libgomp.c++/target-flex-33.C: New test.
147 * testsuite/libgomp.c++/target-flex-41.C: New test.
148 * testsuite/libgomp.c++/target-flex-60.C: New test.
149 * testsuite/libgomp.c++/target-flex-61.C: New test.
150 * testsuite/libgomp.c++/target-flex-62.C: New test.
151 * testsuite/libgomp.c++/target-flex-70.C: New test.
152 * testsuite/libgomp.c++/target-flex-80.C: New test.
153 * testsuite/libgomp.c++/target-flex-81.C: New test.
154 * testsuite/libgomp.c++/target-flex-90.C: New test.
155 * testsuite/libgomp.c++/target-flex-common.h: New test.
156
157 2025-07-22 Thomas Schwinge <[email protected]>
158
159 Backported from master:
160 2025-05-30 Thomas Schwinge <[email protected]>
161 Richard Biener <[email protected]>
162
163 PR middle-end/119835
164 * testsuite/libgomp.oacc-c-c++-common/abi-struct-1.c:
165 '#pragma GCC optimize "-fno-inline"'.
166 * testsuite/libgomp.c-c++-common/target-abi-struct-1.c: New.
167 * testsuite/libgomp.c-c++-common/target-abi-struct-1-O0.c: Adjust.
168
169 2025-07-22 Thomas Schwinge <[email protected]>
170
171 Backported from master:
172 2025-05-19 Thomas Schwinge <[email protected]>
173
174 PR lto/120308
175 * testsuite/libgomp.oacc-c-c++-common/abi-struct-1.c: Add empty
176 structure testing.
177
178 2025-07-22 Thomas Schwinge <[email protected]>
179
180 Backported from master:
181 2025-05-19 Thomas Schwinge <[email protected]>
182
183 * testsuite/libgomp.c-c++-common/target-abi-struct-1-O0.c: New.
184 * testsuite/libgomp.oacc-c-c++-common/abi-struct-1.c: Likewise.
185
186 2025-07-22 Tobias Burnus <[email protected]>
187
188 Backported from master:
189 2025-06-06 Tobias Burnus <[email protected]>
190
191 PR target/120530
192 * testsuite/libgomp.c/target-map-zero-sized-3.c (main): Add missing
193 map clause; remove unused variable.
194
195 2025-07-22 Thomas Schwinge <[email protected]>
196
197 Backported from master:
198 2025-07-17 Thomas Schwinge <[email protected]>
199
200 PR target/119692
201 * testsuite/libgomp.c++/pr119692-1-4.C: '{ dg-timeout 10 { target offload_device } }'.
202 * testsuite/libgomp.c++/pr119692-1-5.C: Likewise.
203 * testsuite/libgomp.c++/target-exceptions-bad_cast-1.C: Likewise.
204 * testsuite/libgomp.c++/target-exceptions-bad_cast-2.C: Likewise.
205 * testsuite/libgomp.oacc-c++/exceptions-bad_cast-1.C: Likewise.
206 * testsuite/libgomp.oacc-c++/exceptions-bad_cast-2.C: Likewise.
207
208 2025-07-22 Thomas Schwinge <[email protected]>
209
210 Backported from master:
211 2025-05-12 Thomas Schwinge <[email protected]>
212
213 PR target/119692
214 * testsuite/libgomp.c++/pr119692-1-4.C: '{ dg-timeout 10 }'.
215 * testsuite/libgomp.c++/pr119692-1-5.C: Likewise.
216 * testsuite/libgomp.c++/target-exceptions-bad_cast-1.C: Likewise.
217 * testsuite/libgomp.c++/target-exceptions-bad_cast-2.C: Likewise.
218 * testsuite/libgomp.oacc-c++/exceptions-bad_cast-1.C: Likewise.
219 * testsuite/libgomp.oacc-c++/exceptions-bad_cast-2.C: Likewise.
220
221 2025-07-22 Thomas Schwinge <[email protected]>
222
223 Backported from master:
224 2025-05-12 Thomas Schwinge <[email protected]>
225
226 * testsuite/libgomp.c/declare-variant-3-sm61.c: New.
227 * testsuite/libgomp.c/declare-variant-3.h: Adjust.
228
229 2025-07-22 Thomas Schwinge <[email protected]>
230
231 Backported from master:
232 2025-07-21 Thomas Schwinge <[email protected]>
233
234 PR target/119853
235 PR target/119854
236 * testsuite/libgomp.c++/target-cdtor-1.C: Adjust for
237 'targetm.cxx.use_aeabi_atexit'.
238 * testsuite/libgomp.c++/target-cdtor-2.C: Likewise.
239
240 2025-07-22 Thomas Schwinge <[email protected]>
241
242 Backported from master:
243 2025-04-25 Thomas Schwinge <[email protected]>
244
245 PR target/119853
246 PR target/119854
247 * target-cxa-dso-dtor.c: New.
248 * config/accel/target-cxa-dso-dtor.c: Likewise.
249 * Makefile.am (libgomp_la_SOURCES): Add it.
250 * Makefile.in: Regenerate.
251 * testsuite/libgomp.c++/target-cdtor-1.C: New.
252 * testsuite/libgomp.c++/target-cdtor-2.C: Likewise.
253
254 2025-07-22 Thomas Schwinge <[email protected]>
255
256 Backported from master:
257 2025-04-25 Thomas Schwinge <[email protected]>
258
259 * testsuite/libgomp.c-c++-common/target-cdtor-1.c: New.
260
261 2025-07-22 Andrew Pinski <[email protected]>
262
263 Backported from master:
264 2025-04-25 Andrew Pinski <[email protected]>
265 Thomas Schwinge <[email protected]>
266
267 PR target/119737
268 * testsuite/libgomp.c++/target-exceptions-throw-1.C: Remove
269 PR119737 XFAILing.
270 * testsuite/libgomp.c++/target-exceptions-throw-2.C: Likewise.
271 * testsuite/libgomp.oacc-c++/exceptions-throw-1.C: Likewise.
272 * testsuite/libgomp.oacc-c++/exceptions-throw-2.C: Likewise.
273
274 2025-07-22 Thomas Schwinge <[email protected]>
275
276 Backported from master:
277 2025-04-25 Thomas Schwinge <[email protected]>
278
279 PR target/118794
280 * testsuite/libgomp.c++/target-exceptions-pr118794-1.C: Adjust for
281 'targetm.arm_eabi_unwinder'.
282 * testsuite/libgomp.c++/target-exceptions-pr118794-1-offload-sorry-GCN.C:
283 Likewise.
284 * testsuite/libgomp.c++/target-exceptions-pr118794-1-offload-sorry-nvptx.C:
285 Likewise.
286
287 2025-05-28 Tobias Burnus <[email protected]>
288
289 Backported from master:
290 2025-05-28 Tobias Burnus <[email protected]>
291
292 PR middle-end/118694
293 * testsuite/libgomp.fortran/metadirective-1.f90: xfail when
294 compiling (also) for nvptx offloading as an error is then expected.
295
296 2025-05-26 Tobias Burnus <[email protected]>
297
298 Backported from master:
299 2025-05-23 Tobias Burnus <[email protected]>
300
301 PR middle-end/118694
302 * testsuite/libgomp.c-c++-common/metadirective-1.c: xfail when
303 compiling (also) for nvptx offloading as an error is then expected.
304
305 2025-05-19 Tobias Burnus <[email protected]>
306
307 Backported from master:
308 2025-05-15 Tobias Burnus <[email protected]>
309
310 * testsuite/libgomp.fortran/alloc-comp-4.f90: New test.
311
312 2025-05-19 Tobias Burnus <[email protected]>
313
314 Backported from master:
315 2025-05-14 Tobias Burnus <[email protected]>
316
317 * target.c (gomp_attach_pointer): Return bool; accept additional
318 bool to optionally silence the fatal pointee-not-found error.
319 (gomp_map_vars_internal): If the pointee could not be found,
320 check whether it was mapped as GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
321 * libgomp.h (gomp_attach_pointer): Update prototype.
322 * oacc-mem.c (acc_attach_async, goacc_enter_data_internal): Update
323 calls.
324 * testsuite/libgomp.c/target-map-zero-sized.c: New test.
325 * testsuite/libgomp.c/target-map-zero-sized-2.c: New test.
326 * testsuite/libgomp.c/target-map-zero-sized-3.c: New test.
327
328 2025-05-19 Tobias Burnus <[email protected]>
329
330 Backported from master:
331 2025-05-09 Tobias Burnus <[email protected]>
332
333 * testsuite/libgomp.c/interop-cuda-full.c: Use 'link' instead
334 of 'run' when the default device is "! offload_device_nvptx".
335 * testsuite/libgomp.c/interop-cuda-libonly.c: Likewise.
336 * testsuite/libgomp.c/interop-hip-nvidia-full.c: Likewise.
337 * testsuite/libgomp.c/interop-hip-nvidia-no-headers.c: Likewise.
338 * testsuite/libgomp.c/interop-hip-nvidia-no-hip-header.c: Likewise.
339 * testsuite/libgomp.fortran/interop-hip-nvidia-full.F90: Likewise.
340 * testsuite/libgomp.fortran/interop-hip-nvidia-no-module.F90: Likewise.
341 * testsuite/libgomp.c/interop-hip-amd-full.c: Use 'link' instead
342 of 'run' when the default device is "! offload_device_gcn".
343 * testsuite/libgomp.c/interop-hip-amd-no-hip-header.c: Likewise.
344 * testsuite/libgomp.fortran/interop-hip-amd-full.F90: Likewise.
345 * testsuite/libgomp.fortran/interop-hip-amd-no-module.F90: Likewise.
346
347 2025-05-19 Tobias Burnus <[email protected]>
348
349 Backported from master:
350 2025-05-07 Tobias Burnus <[email protected]>
351
352 * testsuite/libgomp.fortran/map-alloc-comp-9.f90: Process differently
353 when USE_USM_REQUIREMENT is set.
354 * testsuite/libgomp.fortran/map-alloc-comp-9-usm.f90: New test.
355
356 2025-05-19 Thomas Schwinge <[email protected]>
357
358 Backported from master:
359 2025-05-05 Thomas Schwinge <[email protected]>
360
361 * testsuite/libgomp.c/interop-hsa.c: GCN offloading only.
362
363 2025-05-19 Tobias Burnus <[email protected]>
364
365 Backported from master:
366 2025-05-01 Tobias Burnus <[email protected]>
367
368 * testsuite/libgomp.fortran/allocate-8a.f90: New test.
369
370 2025-05-19 Andrew Stubbs <[email protected]>
371
372 Backported from master:
373 2025-04-25 Andrew Stubbs <[email protected]>
374
375 * testsuite/libgomp.c/interop-hsa.c: New test.
376
377 2025-05-19 Tobias Burnus <[email protected]>
378
379 Backported from master:
380 2025-04-24 Tobias Burnus <[email protected]>
381
382 * testsuite/lib/libgomp.exp
383 (check_effective_target_gomp_hip_header_nvidia): Compile with
384 "-Wno-deprecated-declarations".
385 * testsuite/libgomp.c/interop-hip-nvidia-full.c: Likewise.
386 * testsuite/libgomp.c/interop-hipblas-nvidia-full.c: Likewise.
387 * testsuite/libgomp.c/interop-hipblas.h: Add workarounds
388 when using the HIP headers with __HIP_PLATFORM_NVIDIA__.
389
390 2025-05-19 Tobias Burnus <[email protected]>
391
392 Backported from master:
393 2025-04-24 Tobias Burnus <[email protected]>
394
395 * testsuite/lib/libgomp.exp (check_effective_target_openacc_cublas,
396 check_effective_target_openacc_cudart): Update description as
397 the check requires more.
398 (check_effective_target_openacc_libcuda,
399 check_effective_target_openacc_libcublas,
400 check_effective_target_openacc_libcudart,
401 check_effective_target_gomp_hip_header_amd,
402 check_effective_target_gomp_hip_header_nvidia,
403 check_effective_target_gomp_hipfort_module,
404 check_effective_target_gomp_libamdhip64,
405 check_effective_target_gomp_libhipblas): New.
406 * testsuite/libgomp.c-c++-common/interop-2.c: New test.
407 * testsuite/libgomp.c/interop-cublas-full.c: New test.
408 * testsuite/libgomp.c/interop-cublas-libonly.c: New test.
409 * testsuite/libgomp.c/interop-cuda-full.c: New test.
410 * testsuite/libgomp.c/interop-cuda-libonly.c: New test.
411 * testsuite/libgomp.c/interop-hip-amd-full.c: New test.
412 * testsuite/libgomp.c/interop-hip-amd-no-hip-header.c: New test.
413 * testsuite/libgomp.c/interop-hip-nvidia-full.c: New test.
414 * testsuite/libgomp.c/interop-hip-nvidia-no-headers.c: New test.
415 * testsuite/libgomp.c/interop-hip-nvidia-no-hip-header.c: New test.
416 * testsuite/libgomp.c/interop-hip.h: New test.
417 * testsuite/libgomp.c/interop-hipblas-amd-full.c: New test.
418 * testsuite/libgomp.c/interop-hipblas-amd-no-hip-header.c: New test.
419 * testsuite/libgomp.c/interop-hipblas-nvidia-full.c: New test.
420 * testsuite/libgomp.c/interop-hipblas-nvidia-no-headers.c: New test.
421 * testsuite/libgomp.c/interop-hipblas-nvidia-no-hip-header.c: New test.
422 * testsuite/libgomp.c/interop-hipblas.h: New test.
423 * testsuite/libgomp.fortran/interop-hip-amd-full.F90: New test.
424 * testsuite/libgomp.fortran/interop-hip-amd-no-module.F90: New test.
425 * testsuite/libgomp.fortran/interop-hip-nvidia-full.F90: New test.
426 * testsuite/libgomp.fortran/interop-hip-nvidia-no-module.F90: New test.
427 * testsuite/libgomp.fortran/interop-hip.h: New test.
428
429 2025-05-19 Tobias Burnus <[email protected]>
430
431 Backported from master:
432 2025-04-23 Tobias Burnus <[email protected]>
433
434 * testsuite/libgomp.fortran/target-enter-data-8.f90: New test.
435
436 2025-05-06 Tejas Belagod <[email protected]>
437
438 * testsuite/libgomp.c-target/aarch64/udr-sve.c: Fix test.
439
440 2025-04-25 Release Manager
441
442 * GCC 15.1.0 released.
443
444 2025-04-17 Jakub Jelinek <[email protected]>
445
446 PR libgomp/119849
447 * testsuite/libgomp.c++/allocator-1.C (test_inequality, main): Guard
448 ompx::allocator::gnu_pinned_mem uses with #ifdef __gnu_linux__.
449 * testsuite/libgomp.c++/allocator-2.C (main): Likewise.
450
451 2025-04-17 Tobias Burnus <[email protected]>
452
453 * libgomp.texi (gcn interop, nvptx interop): For HIP with C/C++, add
454 a note about setting a preprocessor define.
455
456 2025-04-16 Thomas Schwinge <[email protected]>
457
458 * testsuite/libgomp.c++/target-exceptions-pr118794-1.C: Remove
459 'ALWAYS_INLINE' workaround.
460
461 2025-04-16 Thomas Schwinge <[email protected]>
462
463 PR target/106445
464 * testsuite/libgomp.c++/pr106445-1.C: New.
465 * testsuite/libgomp.c++/pr106445-1-O0.C: Likewise.
466
467 2025-04-16 Thomas Schwinge <[email protected]>
468
469 PR target/97106
470 * testsuite/libgomp.c++/pr96390.C: Un-XFAIL nvptx offloading.
471 * testsuite/libgomp.c-c++-common/pr96390.c: Adjust.
472
473 2025-04-15 Tobias Burnus <[email protected]>
474
475 * libgomp.texi (gcn, nvptx): Mention self_maps clause
476 besides unified_shared_memory in the requirements item.
477
478 2025-04-15 waffl3x <[email protected]>
479
480 * omp.h.in: Add omp::allocator::* and ompx::allocator::* allocators.
481 (__detail::__allocator_templ<T, omp_allocator_handle_t>):
482 New struct template.
483 (null_allocator<T>): New struct template.
484 (default_mem<T>): Likewise.
485 (large_cap_mem<T>): Likewise.
486 (const_mem<T>): Likewise.
487 (high_bw_mem<T>): Likewise.
488 (low_lat_mem<T>): Likewise.
489 (cgroup_mem<T>): Likewise.
490 (pteam_mem<T>): Likewise.
491 (thread_mem<T>): Likewise.
492 (ompx::allocator::gnu_pinned_mem<T>): Likewise.
493 * testsuite/libgomp.c++/allocator-1.C: New test.
494 * testsuite/libgomp.c++/allocator-2.C: New test.
495
496 2025-04-15 Tobias Burnus <[email protected]>
497
498 * libgomp.texi (5.0 Impl. Status): Mark mapping alloc comps as 'Y'.
499 * testsuite/libgomp.fortran/allocatable-comp.f90: New test.
500 * testsuite/libgomp.fortran/map-alloc-comp-3.f90: New test.
501 * testsuite/libgomp.fortran/map-alloc-comp-4.f90: New test.
502 * testsuite/libgomp.fortran/map-alloc-comp-5.f90: New test.
503 * testsuite/libgomp.fortran/map-alloc-comp-6.f90: New test.
504 * testsuite/libgomp.fortran/map-alloc-comp-7.f90: New test.
505 * testsuite/libgomp.fortran/map-alloc-comp-8.f90: New test.
506 * testsuite/libgomp.fortran/map-alloc-comp-9.f90: New test.
507
508 2025-04-14 Thomas Schwinge <[email protected]>
509
510 PR target/118794
511 * testsuite/libgomp.c++/target-exceptions-bad_cast-2-offload-sorry-GCN.C:
512 Set '-foffload-options=-mno-fake-exceptions'.
513 * testsuite/libgomp.c++/target-exceptions-bad_cast-2-offload-sorry-nvptx.C:
514 Likewise.
515 * testsuite/libgomp.c++/target-exceptions-pr118794-1-offload-sorry-GCN.C:
516 Likewise.
517 * testsuite/libgomp.c++/target-exceptions-pr118794-1-offload-sorry-nvptx.C:
518 Likewise.
519 * testsuite/libgomp.c++/target-exceptions-throw-2-offload-sorry-GCN.C:
520 Likewise.
521 * testsuite/libgomp.c++/target-exceptions-throw-2-offload-sorry-nvptx.C:
522 Likewise.
523 * testsuite/libgomp.oacc-c++/exceptions-bad_cast-2-offload-sorry-GCN.C:
524 Likewise.
525 * testsuite/libgomp.oacc-c++/exceptions-bad_cast-2-offload-sorry-nvptx.C:
526 Likewise.
527 * testsuite/libgomp.oacc-c++/exceptions-throw-2-offload-sorry-GCN.C:
528 Likewise.
529 * testsuite/libgomp.oacc-c++/exceptions-throw-2-offload-sorry-nvptx.C:
530 Likewise.
531 * testsuite/libgomp.c++/target-exceptions-bad_cast-2.C: Adjust.
532 * testsuite/libgomp.c++/target-exceptions-pr118794-1.C: Likewise.
533 * testsuite/libgomp.c++/target-exceptions-throw-2.C: Likewise.
534 * testsuite/libgomp.oacc-c++/exceptions-bad_cast-2.C: Likewise.
535 * testsuite/libgomp.oacc-c++/exceptions-throw-2.C: Likewise.
536 * testsuite/libgomp.c++/target-exceptions-throw-2-O0.C: New.
537
538 2025-04-14 Thomas Schwinge <[email protected]>
539
540 * testsuite/libgomp.c++/target-exceptions-throw-3.C: New.
541 * testsuite/libgomp.oacc-c++/exceptions-throw-3.C: Likewise.
542
543 2025-04-14 Thomas Schwinge <[email protected]>
544
545 * testsuite/libgomp.c++/target-exceptions-throw-2.C: New.
546 * testsuite/libgomp.c++/target-exceptions-throw-2-offload-sorry-GCN.C: Likewise.
547 * testsuite/libgomp.c++/target-exceptions-throw-2-offload-sorry-nvptx.C: Likewise.
548 * testsuite/libgomp.oacc-c++/exceptions-throw-2.C: Likewise.
549 * testsuite/libgomp.oacc-c++/exceptions-throw-2-offload-sorry-GCN.C: Likewise.
550 * testsuite/libgomp.oacc-c++/exceptions-throw-2-offload-sorry-nvptx.C: Likewise.
551
552 2025-04-14 Thomas Schwinge <[email protected]>
553
554 * testsuite/libgomp.c++/target-exceptions-throw-1.C: New.
555 * testsuite/libgomp.c++/target-exceptions-throw-1-O0.C: Likewise.
556 * testsuite/libgomp.oacc-c++/exceptions-throw-1.C: Likewise.
557
558 2025-04-14 Thomas Schwinge <[email protected]>
559
560 * testsuite/libgomp.c++/target-exceptions-bad_cast-3.C: New.
561 * testsuite/libgomp.oacc-c++/exceptions-bad_cast-3.C: Likewise.
562
563 2025-04-14 Thomas Schwinge <[email protected]>
564
565 * testsuite/libgomp.c++/target-exceptions-bad_cast-2.C: New.
566 * testsuite/libgomp.c++/target-exceptions-bad_cast-2-offload-sorry-GCN.C: Likewise.
567 * testsuite/libgomp.c++/target-exceptions-bad_cast-2-offload-sorry-nvptx.C: Likewise.
568 * testsuite/libgomp.oacc-c++/exceptions-bad_cast-2.C: Likewise.
569 * testsuite/libgomp.oacc-c++/exceptions-bad_cast-2-offload-sorry-GCN.C: Likewise.
570 * testsuite/libgomp.oacc-c++/exceptions-bad_cast-2-offload-sorry-nvptx.C: Likewise.
571
572 2025-04-14 Thomas Schwinge <[email protected]>
573
574 * testsuite/libgomp.c++/target-exceptions-bad_cast-1.C: New.
575 * testsuite/libgomp.oacc-c++/exceptions-bad_cast-1.C: Likewise.
576
577 2025-04-14 Thomas Schwinge <[email protected]>
578
579 PR target/118794
580 * testsuite/libgomp.c++/target-exceptions-pr118794-1.C: New.
581 * testsuite/libgomp.c++/target-exceptions-pr118794-1-offload-sorry-GCN.C:
582 Likewise.
583 * testsuite/libgomp.c++/target-exceptions-pr118794-1-offload-sorry-nvptx.C:
584 Likewise.
585
586 2025-04-14 Thomas Schwinge <[email protected]>
587
588 PR c++/119692
589 * testsuite/libgomp.c++/pr119692-1-1.C: New.
590 * testsuite/libgomp.c++/pr119692-1-2.C: Likewise.
591 * testsuite/libgomp.c++/pr119692-1-3.C: Likewise.
592 * testsuite/libgomp.c++/pr119692-1-4.C: Likewise.
593 * testsuite/libgomp.c++/pr119692-1-5.C: Likewise.
594 * testsuite/libgomp.oacc-c++/pr119692-1-1.C: Likewise.
595 * testsuite/libgomp.oacc-c++/pr119692-1-2.C: Likewise.
596 * testsuite/libgomp.oacc-c++/pr119692-1-3.C: Likewise.
597
598 2025-04-10 Richard Sandiford <[email protected]>
599
600 * testsuite/libgomp.c-target/aarch64/firstprivate.c: Add +sve pragma.
601 * testsuite/libgomp.c-target/aarch64/lastprivate.c: Likewise.
602 * testsuite/libgomp.c-target/aarch64/private.c: Likewise.
603 * testsuite/libgomp.c-target/aarch64/shared.c: Likewise.
604 * testsuite/libgomp.c-target/aarch64/simd-aligned.c: Likewise.
605 * testsuite/libgomp.c-target/aarch64/simd-nontemporal.c: Likewise.
606 * testsuite/libgomp.c-target/aarch64/threadprivate.c: Likewise.
607 * testsuite/libgomp.c-target/aarch64/udr-sve.c: Add an -march option.
608 (for_reduction): Use "+=" in the reduction loop.
609
610 2025-04-08 Tobias Burnus <[email protected]>
611
612 PR middle-end/119662
613 * testsuite/libgomp.c/append-args-fr-1.c: New test.
614 * testsuite/libgomp.c/append-args-fr.h: New test.
615
616 2025-04-08 Tobias Burnus <[email protected]>
617
618 * Makefile.am (%.mod): Add -Wno-c-binding-type.
619 * Makefile.in: Regenerate.
620
621 2025-04-08 Tejas Belagod <[email protected]>
622
623 * testsuite/libgomp.c-target/aarch64/aarch64.exp: Test driver.
624 * testsuite/libgomp.c-target/aarch64/firstprivate.c: New test.
625 * testsuite/libgomp.c-target/aarch64/lastprivate.c: Likewise.
626 * testsuite/libgomp.c-target/aarch64/private.c: Likewise.
627 * testsuite/libgomp.c-target/aarch64/shared.c: Likewise.
628 * testsuite/libgomp.c-target/aarch64/simd-aligned.c: Likewise.
629 * testsuite/libgomp.c-target/aarch64/simd-nontemporal.c: Likewise.
630 * testsuite/libgomp.c-target/aarch64/threadprivate.c: Likewise.
631 * testsuite/libgomp.c-target/aarch64/udr-sve.c: Likewise.
632
633 2025-04-07 Tobias Burnus <[email protected]>
634
635 * libgomp.texi (omp_target_memcpy_rect_async,
636 omp_target_memcpy_rect): Add @ref to 'Offload-Target Specifics'.
637 (AMD Radeon (GCN)): Document how memcpy_rect is implemented.
638 (nvptx): Move item about memcpy_rect item down; use present tense.
639
640 2025-03-26 Thomas Schwinge <[email protected]>
641
642 PR driver/101544
643 * testsuite/libgomp.c++/pr101544-1-O0.C: Remove
644 '-foffload-options=-lstdc++'.
645 * testsuite/libgomp.c++/pr101544-1.C: Likewise.
646 * testsuite/libgomp.oacc-c++/pr101544-1.C: Likewise.
647
648 2025-03-26 Tobias Burnus <[email protected]>
649
650 * libgomp.texi (OpenMP 5.1): Add @ref to offload-target specifics
651 for 'interop'.
652 (OpenMP 6.0): Mark dispatch's interop clause as implemented.
653 (omp_get_interop_int, omp_get_interop_str,
654 omp_get_interop_ptr, omp_get_interop_type_desc): Add @ref to
655 Offload-Target Specifics; change ret_code argument type to
656 'omp_interop_rc_t *'.
657 (Offload-Target Specifics): Document the supported OpenMP
658 interop foreign runtimes on AMD and Nvidia GPUs.
659
660 2025-03-25 Sandra Loosemore <[email protected]>
661 Tobias Burnus <[email protected]>
662
663 * libgomp.texi (OpenMP 5.1): Mark append_args as fully supported.
664
665 2025-03-24 Tobias Burnus <[email protected]>
666
667 * target.c (gomp_interop_internal): Set the 'device_num' member
668 when initializing an interop object.
669
670 2025-03-24 Tobias Burnus <[email protected]>
671
672 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_interop): Set context for
673 stream creation to use the specified device.
674
675 2025-03-24 Thomas Schwinge <[email protected]>
676
677 PR libgomp/96835
678 * testsuite/libgomp.c++/pr96835-1.C: New.
679 * testsuite/libgomp.c++/pr96835-1-O0.C: Likewise.
680 * testsuite/libgomp.oacc-c++/pr96835-1.C: Likewise.
681
682 2025-03-24 Thomas Schwinge <[email protected]>
683
684 PR target/101544
685 * testsuite/libgomp.c++/pr101544-1.C: New.
686 * testsuite/libgomp.c++/pr101544-1-O0.C: Likewise.
687 * testsuite/libgomp.oacc-c++/pr101544-1.C: Likewise.
688
689 2025-03-21 Tobias Burnus <[email protected]>
690
691 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: Use -6
692 not -5 as non-conforming device number.
693
694 2025-03-21 Tobias Burnus <[email protected]>
695
696 * plugin/plugin-gcn.c (_LIBGOMP_PLUGIN_INCLUDE): Define.
697 (struct hsa_runtime_fn_info): Add two queue functions.
698 (hipError_t, hipCtx_t, hipStream_s, hipStream_t): New types.
699 (struct hip_runtime_fn_info): New.
700 (hip_runtime_lib, hip_fns): New global vars.
701 (init_environment_variables): Handle hip_runtime_lib.
702 (init_hsa_runtime_functions): Load the two queue functions.
703 (init_hip_runtime_functions, GOMP_OFFLOAD_interop,
704 GOMP_OFFLOAD_get_interop_int, GOMP_OFFLOAD_get_interop_ptr,
705 GOMP_OFFLOAD_get_interop_str,
706 GOMP_OFFLOAD_get_interop_type_desc): New.
707 * plugin/plugin-nvptx.c (_LIBGOMP_PLUGIN_INCLUDE): Define.
708 (GOMP_OFFLOAD_interop, GOMP_OFFLOAD_get_interop_int,
709 GOMP_OFFLOAD_get_interop_ptr, GOMP_OFFLOAD_get_interop_str,
710 GOMP_OFFLOAD_get_interop_type_desc): New.
711 * testsuite/libgomp.c/interop-fr-1.c: New test.
712 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: Use -6
713 not -5 as non-conforming device number.
714
715 2025-03-21 Paul-Antoine Arras <[email protected]>
716 Tobias Burnus <[email protected]>
717
718 * icv-device.c (omp_set_default_device): Check
719 GOMP_DEVICE_DEFAULT_OMP_61.
720 * libgomp-plugin.h (struct interop_obj_t): New.
721 (enum gomp_interop_flag): New.
722 (GOMP_OFFLOAD_interop): Declare.
723 (GOMP_OFFLOAD_get_interop_int): Declare.
724 (GOMP_OFFLOAD_get_interop_ptr): Declare.
725 (GOMP_OFFLOAD_get_interop_str): Declare.
726 (GOMP_OFFLOAD_get_interop_type_desc): Declare.
727 * libgomp.h (_LIBGOMP_OMP_LOCK_DEFINED): Define.
728 (struct gomp_device_descr): Add interop_func, get_interop_int_func,
729 get_interop_ptr_func, get_interop_str_func, get_interop_type_desc_func.
730 * libgomp.map: Add GOMP_interop.
731 * libgomp_g.h (GOMP_interop): Declare.
732 * target.c (resolve_device): Handle GOMP_DEVICE_DEFAULT_OMP_61.
733 (omp_get_interop_int): Replace stub with actual implementation.
734 (omp_get_interop_ptr): Likewise.
735 (omp_get_interop_str): Likewise.
736 (omp_get_interop_type_desc): Likewise.
737 (struct interop_data_t): Define.
738 (gomp_interop_internal): New function.
739 (GOMP_interop): Likewise.
740 (gomp_load_plugin_for_device): Load symbols for get_interop_int,
741 get_interop_ptr, get_interop_str and get_interop_type_desc.
742 * testsuite/libgomp.c-c++-common/interop-1.c: New test.
743
744 2025-03-21 Tobias Burnus <[email protected]>
745
746 * testsuite/lib/libgomp.exp (libgomp_init): Add
747 -fdiagnostics-plain-output to additional_flags; remove
748 -fno-diagnostics-show-caret and -fdiagnostics-color=never.
749
750 2025-03-17 Tobias Burnus <[email protected]>
751
752 PR fortran/115271
753 * testsuite/libgomp.fortran/declare-variant-mod-1-use.f90: Moved
754 from gcc/testsuite/gfortran.dg/gomp/.
755 * testsuite/libgomp.fortran/declare-variant-mod-1.f90: Likewise.
756
757 2025-02-22 shynur <[email protected]>
758
759 * oacc-mem.c (acc_unmap_data, goacc_exit_datum_1, find_group_last,
760 goacc_enter_data_internal): Add '__attribute__((unused))'.
761 * target.c (gomp_unmap_vars_internal): Likewise.
762
763 2025-02-11 Jason Merrill <[email protected]>
764
765 PR c++/188574
766 * testsuite/libgomp.c++/range-for-4.C: Adjust expected result.
767
768 2025-02-07 Tobias Burnus <[email protected]>
769
770 * plugin/plugin-gcn.c (ELFABIVERSION_AMDGPU_HSA_V6,
771 EF_AMDGPU_GENERIC_VERSION_V, EF_AMDGPU_GENERIC_VERSION_OFFSET,
772 GET_GENERIC_VERSION): New #define.
773 (elf_gcn_isa_is_generic): New.
774 (isa_matches_agent): Accept all generic code objects on the first
775 go; extend the diagnostic and handle runtime-failed case.
776 (create_and_finalize_hsa_program): Call it also after loading
777 the code failed, pass the status.
778
779 2025-01-30 Sandra Loosemore <[email protected]>
780
781 * libgomp.texi (OpenMP 5.0): Mark metadirective and declare variant
782 as implemented.
783 (OpenMP 5.1): Mark target_device as supported.
784 Add changed interaction between declare target and OpenMP context
785 and dynamic selector support.
786 (OpenMP 5.2): Mark otherwise clause as supported, note that
787 default is also still accepted.
788
789 2025-01-30 Sandra Loosemore <[email protected]>
790 Kwok Cheung Yeung <[email protected]>
791 Sandra Loosemore <[email protected]>
792 Tobias Burnus <[email protected]>
793 Paul-Antoine Arras <[email protected]>
794
795 PR middle-end/112779
796 PR middle-end/113904
797 * testsuite/libgomp.fortran/metadirective-1.f90: New.
798 * testsuite/libgomp.fortran/metadirective-2.f90: New.
799 * testsuite/libgomp.fortran/metadirective-3.f90: New.
800 * testsuite/libgomp.fortran/metadirective-4.f90: New.
801 * testsuite/libgomp.fortran/metadirective-5.f90: New.
802 * testsuite/libgomp.fortran/metadirective-6.f90: New.
803
804 2025-01-30 Tobias Burnus <[email protected]>
805
806 * libgomp.texi (Impl. Status): Update for accumpulated changes
807 related to 'dispatch' and interop.
808
809 2025-01-16 Sandra Loosemore <[email protected]>
810 Kwok Cheung Yeung <[email protected]>
811 Sandra Loosemore <[email protected]>
812
813 * testsuite/libgomp.c-c++-common/metadirective-1.c: New.
814 * testsuite/libgomp.c-c++-common/metadirective-2.c: New.
815 * testsuite/libgomp.c-c++-common/metadirective-3.c: New.
816 * testsuite/libgomp.c-c++-common/metadirective-4.c: New.
817 * testsuite/libgomp.c-c++-common/metadirective-5.c: New.
818 * testsuite/libgomp.c-c++-common/metadirective-late-1.c: New.
819 * testsuite/libgomp.c-c++-common/metadirective-late-2.c: New.
820 * testsuite/libgomp.c-c++-common/metadirective-target-device.c: New.
821
822 2025-01-16 Sandra Loosemore <[email protected]>
823 Kwok Cheung Yeung <[email protected]>
824 Sandra Loosemore <[email protected]>
825
826 PR middle-end/112779
827 PR middle-end/113904
828 * testsuite/libgomp.c++/metadirective-template-1.C: New.
829 * testsuite/libgomp.c++/metadirective-template-2.C: New.
830 * testsuite/libgomp.c++/metadirective-template-3.C: New.
831
832 2025-01-13 Paul-Antoine Arras <[email protected]>
833
834 * testsuite/libgomp.fortran/dispatch-1.f90: Add missing target
835 directive.
836
837 2025-01-09 Thomas Schwinge <[email protected]>
838
839 PR target/65181
840 * fortran.c (omp_get_device_from_uid_): Adjust.
841 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
842
843 2025-01-07 Tobias Burnus <[email protected]>
844
845 * libgomp.texi (OpenMP 6.0): Fix typo.
846 (omp_get_default_device): Update the wording as the value
847 returned by omp_get_initial_device is now ambiguous.
848 (omp_get_num_devices): Minor wording tweak.
849 (omp_get_initial_device): Note that the function may also
850 return omp_initial_device since OpenMP 6.
851
852 2025-01-03 Jakub Jelinek <[email protected]>
853
854 * configure: Regenerate.
855
856 2025-01-03 Paul-Antoine Arras <[email protected]>
857
858 * libgomp.texi:
859
860 2025-01-02 Paul-Antoine Arras <[email protected]>
861
862 * testsuite/libgomp.fortran/declare-variant-2-aux.f90: New test.
863 * testsuite/libgomp.fortran/declare-variant-2.f90: New test (xfail).
864 * testsuite/libgomp.fortran/dispatch-1.f90: New test.
865 * testsuite/libgomp.fortran/dispatch-2.f90: New test.
866 * testsuite/libgomp.fortran/dispatch-3.f90: New test.
867
868 2025-01-02 Jakub Jelinek <[email protected]>
869
870 * libgomp.texi: Bump @copying's copyright year.
871
872 2024-12-19 Tobias Burnus <[email protected]>
873
874 * libgomp.texi (OpenMP Context Selectors): Document that 'kind' also
875 accepts 'cpu'/'any' on host and 'any'/'nohost' on 'nohost' devices.
876
877 2024-12-10 Tobias Burnus <[email protected]>
878
879 * plugin/plugin-gcn.c (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_async_run):
880 Handle omp_async_queue == NULL after call to maybe_init_omp_async.
881 (GOMP_OFFLOAD_openacc_async_construct): Use error not fatal error,
882 partially reverting r15-5392.
883
884 2024-12-06 Thomas Schwinge <[email protected]>
885
886 * testsuite/libgomp.c/declare-variant-3-sm89.c: New.
887 * testsuite/libgomp.c/declare-variant-3.h: Adjust.
888
889 2024-12-06 Thomas Schwinge <[email protected]>
890
891 * testsuite/libgomp.c/declare-variant-3-sm52.c: New.
892 * testsuite/libgomp.c/declare-variant-3.h: Adjust.
893
894 2024-12-06 Thomas Schwinge <[email protected]>
895
896 * testsuite/libgomp.c/declare-variant-3-sm37.c: New.
897 * testsuite/libgomp.c/declare-variant-3.h: Adjust.
898
899 2024-12-06 Thomas Schwinge <[email protected]>
900
901 * libgomp.texi: Clarify nvptx 'omp_low_lat_mem_space'
902 documentation.
903
904 2024-12-06 Thomas Schwinge <[email protected]>
905
906 PR testsuite/82250
907 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: Revert
908 last change.
909
910 2024-12-03 Tobias Burnus <[email protected]>
911
912 * libgomp.texi (Memory allocation): Mention (non-)effect of 'align'
913 on _Alignof.
914 * testsuite/libgomp.c/allocate-7.c: New test.
915
916 2024-11-28 Thomas Schwinge <[email protected]>
917
918 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c
919 [!__cplusplus]: Don't 'typedef int bool;'.
920
921 2024-11-21 Rainer Orth <[email protected]>
922
923 * testsuite/libgomp.c/alloc-pinned-3.c [!__linux__]
924 (set_pin_limit): Add size arg.
925 * testsuite/libgomp.c/alloc-pinned-4.c [!__linux__]
926 (set_pin_limit): Likewise.
927 * testsuite/libgomp.c/alloc-pinned-6.c [!__linux__]
928 (set_pin_limit): Likewise.
929
930 2024-11-20 Paul-Antoine Arras <[email protected]>
931
932 * testsuite/libgomp.c-c++-common/dispatch-1.c: New test.
933 * testsuite/libgomp.c-c++-common/dispatch-2.c: New test.
934
935 2024-11-18 David Malcolm <[email protected]>
936
937 * testsuite/lib/libgomp.exp: Add
938 "load_gcc_lib dg-test-cleanup.exp".
939
940 2024-11-18 Tobias Burnus <[email protected]>
941
942 * plugin/plugin-gcn.c (GOMP_OFFLOAD_openacc_async_construct): In
943 case of an error, call GOMP_PLUGIN_fatal not ..._error; use NULL
944 not false in return.
945
946 2024-11-18 Tobias Burnus <[email protected]>
947
948 PR libgomp/117626
949 * plugin/plugin-nvptx.c (nvptx_open_device): Use 'CUDA_CALL_ERET'
950 with 'NULL' as error return instead of 'CUDA_CALL' that returns false.
951
952 2024-11-14 Tobias Burnus <[email protected]>
953
954 * libgomp.texi (OpenMP Implementation Status): Change TR13 to
955 OpenMP 6.0, now released. Fix a typo in the omp_target_memset_async
956 routine name.
957
958 2024-11-11 Tobias Burnus <[email protected]>
959
960 * testsuite/libgomp.c-c++-common/pr109062.c: Update dg-output
961 to also accept GOMP_SPINCOUNT = 1 for x86-64.
962
963 2024-11-11 Tobias Burnus <[email protected]>
964
965 * plugin/plugin-gcn.c (isa_matches_agent): Mention the device number
966 and ROCR_VISIBLE_DEVICES when reporting an ISA mismatch error.
967
968 2024-11-10 Thomas Schwinge <[email protected]>
969
970 * testsuite/libgomp.c/max_vf-1.c: Adjust.
971 * testsuite/libgomp.c/max_vf-2.c: Likewise.
972
973 2024-11-07 Tobias Burnus <[email protected]>
974
975 * libgomp.texi (OpenMP Technical Report 13): Remove 'iterator'
976 in 'map' clause of 'declare mapper' as it is already the list above.
977 (Interoperability Routines): Add.
978 (omp_target_memcpy_async, omp_target_memcpy_rect_async):
979 Document that depobj_list may be omitted in C++ and Fortran.
980
981 2024-11-07 Andrew Stubbs <[email protected]>
982
983 * testsuite/libgomp.c/max_vf-1.c: Add -mno-avx.
984
985 2024-11-06 Andrew Stubbs <[email protected]>
986
987 * testsuite/libgomp.c/max_vf-1.c: New test.
988 * testsuite/libgomp.c/max_vf-2.c: New test.
989
990 2024-10-22 Andrew Stubbs <[email protected]>
991 Tobias Burnus <[email protected]>
992
993 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Generate from gcn-devices.def.
994 (gcn_gfx803_s): Delete.
995 (gcn_gfx900_s): Delete.
996 (gcn_gfx906_s): Delete.
997 (gcn_gfx908_s): Delete.
998 (gcn_gfx90a_s): Delete.
999 (gcn_gfx90c_s): Delete.
1000 (gcn_gfx1030_s): Delete.
1001 (gcn_gfx1036_s): Delete.
1002 (gcn_gfx1100_s): Delete.
1003 (gcn_gfx1103_s): Delete.
1004 (gcn_isa_name_len): Delete.
1005 (isa_hsa_name): Rename ...
1006 (isa_name): ... to this, and rework using gcn-devices.def.
1007 (isa_gcc_name): Delete.
1008 (isa_code): Rework using gcn-devices.def.
1009 (max_isa_vgprs): Rework using gcn-devices.def.
1010 (isa_matches_agent): Update isa_name usage.
1011 (GOMP_OFFLOAD_init_device): Improve diagnostic using the name.
1012
1013 2024-10-16 Tobias Burnus <[email protected]>
1014
1015 * testsuite/libgomp.oacc-fortran/acc_on_device-1-4.f: New test;
1016 same as acc_on_device-1-3.f but using the builtin function.
1017
1018 2024-10-14 Thomas Schwinge <[email protected]>
1019
1020 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Add
1021 '-fno-inline'.
1022
1023 2024-10-14 Thomas Schwinge <[email protected]>
1024
1025 PR testsuite/82250
1026 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Add
1027 '-fno-builtin-acc_on_device'.
1028 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Comment.
1029 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Comment.
1030
1031 2024-10-14 Thomas Schwinge <[email protected]>
1032
1033 PR testsuite/82250
1034 * testsuite/libgomp.oacc-fortran/acc_on_device-2.f90: Fix
1035 effective-target keyword.
1036
1037 2024-10-13 Tobias Burnus <[email protected]>
1038
1039 * libgomp.texi (TR13): Fix minor typos.
1040 (omp_is_initial_device): Improve wording.
1041 (acc_on_device): Note how to disable the builtin.
1042 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Remove TODO.
1043 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
1044 Add -fno-builtin-acc_on_device.
1045 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
1046 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: Update
1047 dg- as !offloading_enabled now compile-time expands acc_on_device.
1048 * testsuite/libgomp.fortran/target-is-initial-device-3.f90: New test.
1049 * testsuite/libgomp.oacc-fortran/acc_on_device-2.f90: New test.
1050
1051 2024-10-07 Tobias Burnus <[email protected]>
1052
1053 * testsuite/libgomp.fortran/allocate-static.f90: Moved from
1054 gcc/testsuite/ as it is a dg-do run test; use real omp_lib_kinds
1055 instead of local definition
1056
1057 2024-10-07 Tobias Burnus <[email protected]>
1058
1059 * libgomp.texi (OpenMP Technical Report 13): Wording cleanup;
1060 sort as in Appendix B; add missing items; remove duplicates.
1061
1062 2024-10-07 Tobias Burnus <[email protected]>
1063
1064 * allocator.c: Add static asserts for news
1065 GOMP_OMP{,X}_PREDEF_ALLOC_{MIN,MAX} range values.
1066 * libgomp.texi (OpenMP Impl. Status): Allocate directive for
1067 static vars is now supported. Refer to PR for allocate clause.
1068 (Memory allocation): Update for static vars; minor word tweaking.
1069
1070 2024-09-27 Tobias Burnus <[email protected]>
1071
1072 * libgomp.texi (TR13 status): Update semi-duplicated, semi-obsoleted
1073 item; remove left-over half-sentence.
1074
1075 2024-09-27 Tobias Burnus <[email protected]>
1076
1077 * libgomp.texi (OpenMP Technical Report 13): Change @emph to @code;
1078 add two post-TR13 OpenMP 6.0 items.
1079
1080 2024-09-26 Tobias Burnus <[email protected]>
1081
1082 * libgomp.texi (omp_get_nested,omp_set_nested, OMP_NESTED): Fix
1083 note about deprecation - correct is 5.0 not 5.2.
1084
1085 2024-09-24 Jakub Jelinek <[email protected]>
1086
1087 PR c++/107637
1088 * testsuite/libgomp.c++/range-for-1.C: New test.
1089 * testsuite/libgomp.c++/range-for-2.C: New test.
1090 * testsuite/libgomp.c++/range-for-3.C: New test.
1091 * testsuite/libgomp.c++/range-for-4.C: New test.
1092 * testsuite/libgomp.c++/range-for-5.C: New test.
1093
1094 2024-09-24 Tobias Burnus <[email protected]>
1095
1096 * target.c (gomp_load_image_to_device): For requires
1097 unified_shared_memory, update 'link' vars to point to the host var.
1098 * testsuite/libgomp.c-c++-common/target-link-3.c: New test.
1099 * testsuite/libgomp.c-c++-common/target-link-4.c: New test.
1100
1101 2024-09-24 Tobias Burnus <[email protected]>
1102
1103 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices):
1104 Accept self_maps clause.
1105 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices):
1106 Likewise.
1107 * libgomp.texi (TR13 Impl. Status): Set to 'Y'.
1108 * target.c (gomp_requires_to_name, GOMP_offload_register_ver,
1109 gomp_target_init): Handle self_maps clause.
1110 * testsuite/libgomp.fortran/self_maps.f90: New test.
1111
1112 2024-09-23 Tobias Burnus <[email protected]>
1113
1114 * fortran.c (omp_get_device_from_uid_): New function.
1115 * libgomp.map (GOMP_6.0): Add it.
1116 * oacc-host.c (host_dispatch): Init '.uid' and '.get_uid_func'.
1117 * omp_lib.f90.in: Make it used by removing bind(C).
1118 * omp_lib.h.in: Likewise.
1119 * target.c (omp_get_device_from_uid): Ensure the device is initialized.
1120 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_uid): Add function comment;
1121 return NULL in case of an error.
1122 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_uid): Likewise.
1123 * testsuite/libgomp.fortran/device_uid.f90: Update to test substrings.
1124
1125 2024-09-20 Tobias Burnus <[email protected]>
1126
1127 * config/gcn/target.c (omp_get_uid_from_device,
1128 omp_get_device_from_uid): Add stub implementation.
1129 * config/nvptx/target.c (omp_get_uid_from_device,
1130 omp_get_device_from_uid): Likewise.
1131 * fortran.c (omp_get_uid_from_device_,
1132 omp_get_uid_from_device_8_): New functions.
1133 * libgomp-plugin.h (GOMP_OFFLOAD_get_uid): Add prototype.
1134 * libgomp.h (struct gomp_device_descr): Add 'uid' and 'get_uid_func'.
1135 * libgomp.map (GOMP_6.0): New, includind the new UID routines.
1136 * libgomp.texi (OpenMP Technical Report 13): Mark UID routines as 'Y'.
1137 (Device Information Routines): Document new UID routines.
1138 (Offload-Target Specifics): Document UID format.
1139 * omp.h.in (omp_get_device_from_uid, omp_get_uid_from_device):
1140 New prototype.
1141 * omp_lib.f90.in (omp_get_device_from_uid, omp_get_uid_from_device):
1142 New interface.
1143 * omp_lib.h.in: Likewise.
1144 * plugin/cuda-lib.def: Add cuDeviceGetUuid and cuDeviceGetUuid_v2 via
1145 CUDA_ONE_CALL_MAYBE_NULL.
1146 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_uid): New.
1147 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_uid): New.
1148 * target.c (str_omp_initial_device): New static var.
1149 (STR_OMP_DEV_PREFIX): Define.
1150 (gomp_get_uid_for_device, omp_get_uid_from_device,
1151 omp_get_device_from_uid): New.
1152 (gomp_load_plugin_for_device): DLSYM_OPT the function 'get_uid'.
1153 (gomp_target_init): Set the device's 'uid' field to NULL.
1154 * testsuite/libgomp.c/device_uid.c: New test.
1155 * testsuite/libgomp.fortran/device_uid.f90: New test.
1156
1157 2024-09-02 Andrew Stubbs <[email protected]>
1158
1159 * libgomp.texi: Remove fiji and gfx803.
1160 * testsuite/libgomp.c/declare-variant-4.h: Remove fiji and gfx803.
1161 * testsuite/libgomp.c/declare-variant-4-fiji.c: Removed.
1162 * testsuite/libgomp.c/declare-variant-4-gfx803.c: Removed.
1163
1164 2024-09-02 Alex Coplan <[email protected]>
1165
1166 * testsuite/lib/libgomp.exp: Load scanltrans.exp instead of
1167 scanltranstree.exp.
1168
1169 2024-08-28 Tobias Burnus <[email protected]>
1170
1171 * fortran.c (omp_get_interop_str_, omp_get_interop_name_,
1172 omp_get_interop_type_desc_, omp_get_interop_rc_desc_): Add.
1173 * libgomp.map (GOMP_5.1.3): New; add interop routines.
1174 * omp.h.in: Add interop typedefs, enum and prototypes.
1175 (__GOMP_DEFAULT_NULL): Define.
1176 (omp_target_memcpy_async, omp_target_memcpy_rect_async):
1177 Use it for the optional depend argument.
1178 * omp_lib.f90.in: Add paramters and interfaces for interop.
1179 * omp_lib.h.in: Likewise; move F90 '&' to column 81 for
1180 -ffree-length-80.
1181 * target.c (omp_get_num_interop_properties, omp_get_interop_int,
1182 omp_get_interop_ptr, omp_get_interop_str, omp_get_interop_name,
1183 omp_get_interop_type_desc, omp_get_interop_rc_desc): Add.
1184 * config/gcn/target.c (omp_get_num_interop_properties,
1185 omp_get_interop_int, omp_get_interop_ptr, omp_get_interop_str,
1186 omp_get_interop_name, omp_get_interop_type_desc,
1187 omp_get_interop_rc_desc): Add.
1188 * config/nvptx/target.c (omp_get_num_interop_properties,
1189 omp_get_interop_int, omp_get_interop_ptr, omp_get_interop_str,
1190 omp_get_interop_name, omp_get_interop_type_desc,
1191 omp_get_interop_rc_desc): Add.
1192 * testsuite/libgomp.c-c++-common/interop-routines-1.c: New test.
1193 * testsuite/libgomp.c-c++-common/interop-routines-2.c: New test.
1194 * testsuite/libgomp.fortran/interop-routines-1.F90: New test.
1195 * testsuite/libgomp.fortran/interop-routines-2.F90: New test.
1196 * testsuite/libgomp.fortran/interop-routines-3.F: New test.
1197 * testsuite/libgomp.fortran/interop-routines-4.F: New test.
1198 * testsuite/libgomp.fortran/interop-routines-5.F: New test.
1199 * testsuite/libgomp.fortran/interop-routines-6.F: New test.
1200 * testsuite/libgomp.fortran/interop-routines-7.F90: New test.
1201
1202 2024-08-09 Thomas Schwinge <[email protected]>
1203
1204 * testsuite/libgomp.c++/static-aggr-constructor-destructor-1.C:
1205 Fix effective-target keyword.
1206 * testsuite/libgomp.c++/static-aggr-constructor-destructor-2.C:
1207 Likewise.
1208 * testsuite/libgomp.c-c++-common/target-is-initial-host-2.c:
1209 Likewise.
1210 * testsuite/libgomp.c-c++-common/target-is-initial-host.c:
1211 Likewise.
1212 * testsuite/libgomp.fortran/target-is-initial-host-2.f90:
1213 Likewise.
1214 * testsuite/libgomp.fortran/target-is-initial-host.f: Likewise.
1215 * testsuite/libgomp.fortran/target-is-initial-host.f90: Likewise.
1216
1217 2024-08-08 Tobias Burnus <[email protected]>
1218
1219 * libgomp.texi (OpenMP Technical Report 13): Renamed from
1220 'OpenMP Technical Report 12'; updated for TR13 changes.
1221
1222 2024-08-08 Tobias Burnus <[email protected]>
1223
1224 * libgomp.texi (omp_is_initial_device): Mention
1225 -fno-builtin-omp_is_initial_device and folding by default.
1226
1227 2024-08-08 Tobias Burnus <[email protected]>
1228
1229 * testsuite/libgomp.c++/static-aggr-constructor-destructor-1.C: Split
1230 scan-tree-dump into with and without target offload_target_any.
1231 * testsuite/libgomp.c++/static-aggr-constructor-destructor-2.C:
1232 Likewise.
1233
1234 2024-08-07 Julian Brown <[email protected]>
1235 Tobias Burnus <[email protected]>
1236
1237 * testsuite/libgomp.c++/static-aggr-constructor-destructor-1.C: New test.
1238 * testsuite/libgomp.c++/static-aggr-constructor-destructor-2.C: New test.
1239 * testsuite/libgomp.c++/static-aggr-constructor-destructor-3.C: New test.
1240 * testsuite/libgomp.c-c++-common/target-is-initial-host.c: New test.
1241 * testsuite/libgomp.c-c++-common/target-is-initial-host-2.c: New test.
1242 * testsuite/libgomp.fortran/target-is-initial-host.f: New test.
1243 * testsuite/libgomp.fortran/target-is-initial-host.f90: New test.
1244 * testsuite/libgomp.fortran/target-is-initial-host-2.f90: New test.
1245
1246 2024-08-07 Tobias Burnus <[email protected]>
1247
1248 * testsuite/libgomp.c-c++-common/target-link-2.c: Reset variable
1249 value to handle multi-device tests.
1250
1251 2024-08-06 Tobias Burnus <[email protected]>
1252
1253 * target.c (gomp_load_image_to_device): Extend fatal-error message;
1254 simplify a condition.
1255
1256 2024-08-05 Tobias Burnus <[email protected]>
1257
1258 * libgomp.texi (OpenMP Runtime Library Routines): Add TR13 routines
1259 to @menu (commented out).
1260
1261 2024-08-01 Tobias Burnus <[email protected]>
1262 Richard Biener <[email protected]
1263
1264 PR middle-end/115637
1265 * testsuite/libgomp.fortran/declare-target-link.f90: Uncomment
1266 now working code.
1267
1268 2024-07-31 Sam James <[email protected]>
1269
1270 * testsuite/libgomp.c++/pr24455.C: Fix dg-require-effective-target directive order.
1271 * testsuite/libgomp.c/pr24455.c: Likewise.
1272
1273 2024-07-31 Sam James <[email protected]>
1274
1275 * testsuite/libgomp.c++/declare-target-indirect-1.C: Fix 'dg-run' typo.
1276
1277 2024-07-29 Tobias Burnus <[email protected]>
1278
1279 * libgomp.texi (OpenMP Runtime Library Routines): Add missing
1280 title to some commented still undocumented items.
1281 (Device Information Routines): Update.
1282
1283 2024-07-29 Tobias Burnus <[email protected]>
1284
1285 PR fortran/115559
1286 * testsuite/libgomp.fortran/declare-target-link.f90: New test.
1287
1288 2024-07-29 Tobias Burnus <[email protected]>
1289
1290 PR middle-end/116107
1291 * target.c (gomp_map_vars_internal): Honor array mapping offsets
1292 with declare-target 'link' variables.
1293 * testsuite/libgomp.c-c++-common/target-link-2.c: New test.
1294
1295 2024-07-19 Thomas Schwinge <[email protected]>
1296
1297 * config/gcn/target.c (GOMP_teams4): Document.
1298 * config/nvptx/target.c (GOMP_teams4): Likewise.
1299 * target.c (GOMP_teams4): Likewise.
1300
1301 2024-07-19 Thomas Schwinge <[email protected]>
1302
1303 * config/gcn/libgomp-gcn.h (GOMP_TEAM_NUM): Inject.
1304 * config/gcn/target.c (GOMP_teams4): Handle.
1305 * config/gcn/team.c (gomp_gcn_enter_kernel): Initialize.
1306 * config/gcn/teams.c (omp_get_team_num): Adjust.
1307
1308 2024-07-19 Paul Thomas <[email protected]>
1309
1310 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Cut
1311 dg-note about 'a' and remove bogus warnings about its array
1312 descriptor components being used uninitialized.
1313
1314 2024-07-01 Andrew Stubbs <[email protected]>
1315 Thomas Schwinge <[email protected]>
1316
1317 * allocator.c (ompx_gnu_min_predefined_alloc): New.
1318 (ompx_gnu_max_predefined_alloc): New.
1319 (predefined_alloc_mapping): Rename to ...
1320 (predefined_omp_alloc_mapping): ... this.
1321 (predefined_ompx_gnu_alloc_mapping): New.
1322 (_Static_assert): Adjust for the new name, and add a new assert for the
1323 new table.
1324 (predefined_allocator_p): New.
1325 (predefined_alloc_mapping): New.
1326 (omp_aligned_alloc): Support ompx_gnu_pinned_mem_alloc.
1327 Use predefined_allocator_p and predefined_alloc_mapping.
1328 (omp_free): Likewise.
1329 (omp_alligned_calloc): Likewise.
1330 (omp_realloc): Likewise.
1331 * env.c (parse_allocator): Add ompx_gnu_pinned_mem_alloc.
1332 * libgomp.texi: Document ompx_gnu_pinned_mem_alloc.
1333 * omp.h.in (omp_allocator_handle_t): Add ompx_gnu_pinned_mem_alloc.
1334 * omp_lib.f90.in: Add ompx_gnu_pinned_mem_alloc.
1335 * omp_lib.h.in: Add ompx_gnu_pinned_mem_alloc.
1336 * testsuite/libgomp.c/alloc-pinned-5.c: New test.
1337 * testsuite/libgomp.c/alloc-pinned-6.c: New test.
1338 * testsuite/libgomp.fortran/alloc-pinned-1.f90: New test.
1339
1340 2024-07-01 Andrew Stubbs <[email protected]>
1341
1342 * testsuite/libgomp.c/alloc-pinned-1.c: Change dg-xfail-run-if to
1343 dg-skip-if.
1344 Correct spelling mistake.
1345 Abort on insufficient lockable memory.
1346 Use #error on non-linux hosts.
1347 * testsuite/libgomp.c/alloc-pinned-2.c: Likewise.
1348
1349 2024-06-06 Tobias Burnus <[email protected]>
1350
1351 * libgomp.texi (nvptx): Add missing preposition.
1352
1353 2024-06-06 Thomas Schwinge <[email protected]>
1354 Andrew Stubbs <[email protected]>
1355
1356 * libgomp.texi (nvptx): Update.
1357 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: Remove.
1358 * testsuite/libgomp.fortran/target-print-1.f90: Adjust.
1359 * testsuite/libgomp.oacc-fortran/error_stop-2-nvptx.f: New.
1360 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Adjust.
1361 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Adjust.
1362 * testsuite/libgomp.oacc-fortran/print-1.f90: Adjust.
1363 * testsuite/libgomp.oacc-fortran/stop-2-nvptx.f: New.
1364 * testsuite/libgomp.oacc-fortran/stop-2.f: Adjust.
1365
1366 2024-06-06 Thomas Schwinge <[email protected]>
1367
1368 PR libgomp/97384
1369 PR libgomp/105274
1370 * plugin/cuda-lib.def (cuCtxSetLimit): Add.
1371 * plugin/plugin-nvptx.c (nvptx_open_device): Handle
1372 'GOMP_NVPTX_NATIVE_GPU_THREAD_STACK_SIZE' environment variable.
1373
1374 2024-06-06 Thomas Schwinge <[email protected]>
1375
1376 * plugin/plugin-nvptx.c (nvptx_do_global_cdtors): New.
1377 (nvptx_close_device, GOMP_OFFLOAD_load_image)
1378 (GOMP_OFFLOAD_unload_image): Call it.
1379
1380 2024-06-06 Thomas Schwinge <[email protected]>
1381
1382 PR target/85463
1383 * config/nvptx/error.c (exit): Don't override.
1384 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Update.
1385 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
1386 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
1387 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
1388 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
1389 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
1390
1391 2024-06-06 Jakub Jelinek <[email protected]>
1392
1393 * libgomp.texi (OpenMP 5.1 status): Mark Loop transformation constructs
1394 as implemented.
1395
1396 2024-06-05 Jakub Jelinek <[email protected]>
1397 Frederik Harwath <[email protected]>
1398 Sandra Loosemore <[email protected]>
1399
1400 * testsuite/libgomp.c-c++-common/imperfect-transform-1.c: New test.
1401 * testsuite/libgomp.c-c++-common/imperfect-transform-2.c: New test.
1402 * testsuite/libgomp.c-c++-common/matrix-1.h: New test.
1403 * testsuite/libgomp.c-c++-common/matrix-constant-iter.h: New test.
1404 * testsuite/libgomp.c-c++-common/matrix-helper.h: New test.
1405 * testsuite/libgomp.c-c++-common/matrix-no-directive-1.c: New test.
1406 * testsuite/libgomp.c-c++-common/matrix-no-directive-unroll-full-1.c:
1407 New test.
1408 * testsuite/libgomp.c-c++-common/matrix-omp-distribute-parallel-for-1.c:
1409 New test.
1410 * testsuite/libgomp.c-c++-common/matrix-omp-for-1.c: New test.
1411 * testsuite/libgomp.c-c++-common/matrix-omp-parallel-for-1.c: New test.
1412 * testsuite/libgomp.c-c++-common/matrix-omp-parallel-masked-taskloop-1.c:
1413 New test.
1414 * testsuite/libgomp.c-c++-common/matrix-omp-parallel-masked-taskloop-simd-1.c:
1415 New test.
1416 * testsuite/libgomp.c-c++-common/matrix-omp-target-parallel-for-1.c:
1417 New test.
1418 * testsuite/libgomp.c-c++-common/matrix-omp-target-teams-distribute-parallel-for-1.c:
1419 New test.
1420 * testsuite/libgomp.c-c++-common/matrix-omp-taskloop-1.c: New test.
1421 * testsuite/libgomp.c-c++-common/matrix-omp-teams-distribute-parallel-for-1.c:
1422 New test.
1423 * testsuite/libgomp.c-c++-common/matrix-simd-1.c: New test.
1424 * testsuite/libgomp.c-c++-common/matrix-transform-variants-1.h:
1425 New test.
1426 * testsuite/libgomp.c-c++-common/target-imperfect-transform-1.c:
1427 New test.
1428 * testsuite/libgomp.c-c++-common/target-imperfect-transform-2.c:
1429 New test.
1430 * testsuite/libgomp.c-c++-common/unroll-1.c: New test.
1431 * testsuite/libgomp.c-c++-common/unroll-non-rect-1.c: New test.
1432 * testsuite/libgomp.c++/matrix-no-directive-unroll-full-1.C: New test.
1433 * testsuite/libgomp.c++/tile-2.C: New test.
1434 * testsuite/libgomp.c++/tile-3.C: New test.
1435 * testsuite/libgomp.c++/unroll-1.C: New test.
1436 * testsuite/libgomp.c++/unroll-2.C: New test.
1437 * testsuite/libgomp.c++/unroll-full-tile.C: New test.
1438 * testsuite/libgomp.fortran/imperfect-transform-1.f90: New test.
1439 * testsuite/libgomp.fortran/imperfect-transform-2.f90: New test.
1440 * testsuite/libgomp.fortran/inner-1.f90: New test.
1441 * testsuite/libgomp.fortran/nested-fn.f90: New test.
1442 * testsuite/libgomp.fortran/target-imperfect-transform-1.f90: New test.
1443 * testsuite/libgomp.fortran/target-imperfect-transform-2.f90: New test.
1444 * testsuite/libgomp.fortran/tile-1.f90: New test.
1445 * testsuite/libgomp.fortran/tile-2.f90: New test.
1446 * testsuite/libgomp.fortran/tile-unroll-1.f90: New test.
1447 * testsuite/libgomp.fortran/tile-unroll-2.f90: New test.
1448 * testsuite/libgomp.fortran/tile-unroll-3.f90: New test.
1449 * testsuite/libgomp.fortran/tile-unroll-4.f90: New test.
1450 * testsuite/libgomp.fortran/unroll-1.f90: New test.
1451 * testsuite/libgomp.fortran/unroll-2.f90: New test.
1452 * testsuite/libgomp.fortran/unroll-3.f90: New test.
1453 * testsuite/libgomp.fortran/unroll-4.f90: New test.
1454 * testsuite/libgomp.fortran/unroll-5.f90: New test.
1455 * testsuite/libgomp.fortran/unroll-6.f90: New test.
1456 * testsuite/libgomp.fortran/unroll-7a.f90: New test.
1457 * testsuite/libgomp.fortran/unroll-7b.f90: New test.
1458 * testsuite/libgomp.fortran/unroll-7c.f90: New test.
1459 * testsuite/libgomp.fortran/unroll-7.f90: New test.
1460 * testsuite/libgomp.fortran/unroll-8.f90: New test.
1461 * testsuite/libgomp.fortran/unroll-simd-1.f90: New test.
1462 * testsuite/libgomp.fortran/unroll-tile-1.f90: New test.
1463 * testsuite/libgomp.fortran/unroll-tile-2.f90: New test.
1464
1465 2024-05-31 Rainer Orth <[email protected]>
1466
1467 PR testsuite/115294
1468 * testsuite/lib/libgomp.exp (libgomp_target_compile): Pass new
1469 dg-additional-files-options args.
1470
1471 2024-05-30 Tobias Burnus <[email protected]>
1472
1473 * libgomp.texi (OpenMP 5.0 status): Mark 'requires' as done and
1474 link to 'Offload-Target Specifics'.
1475 (OpenMP 5.2 status): Add item about additional map-type modifiers
1476 in 'declare mapper'.
1477
1478 2024-05-29 Tobias Burnus <[email protected]>
1479
1480 * libgomp.texi (gcn): Update USM handling
1481 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Handle
1482 USM if HSA_AMD_SYSTEM_INFO_SVM_ACCESSIBLE_BY_DEFAULT is true.
1483
1484 2024-05-29 Tobias Burnus <[email protected]>
1485
1486 * libgomp.texi (nvptx): Update USM description.
1487 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices):
1488 Claim support when requesting USM and all devices support
1489 CU_DEVICE_ATTRIBUTE_PAGEABLE_MEMORY_ACCESS.
1490 * target.c (gomp_copy_back_icvs): Fix device ptr lookup.
1491 (gomp_target_init): Set GOMP_OFFLOAD_CAP_SHARED_MEM is the
1492 devices supports USM.
1493
1494 2024-05-07 Rainer Orth <[email protected]>
1495
1496 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]
1497 (libgomp.ver-sun): Pass $(libgomp_la_OBJECTS),
1498 $(libgomp_la_LIBADD) to make_sunver.pl unmodified.
1499 * Makefile.in: Regenerate.
1500
1501 2024-05-02 Jakub Jelinek <[email protected]>
1502
1503 * testsuite/libgomp.c/declare-variant-4.h (gfx90c, gfx1036, gfx1103):
1504 New functions.
1505 (f): Add #pragma omp declare variant directives for those.
1506 * testsuite/libgomp.c/declare-variant-4-gfx90c.c: New test.
1507 * testsuite/libgomp.c/declare-variant-4-gfx1036.c: New test.
1508 * testsuite/libgomp.c/declare-variant-4-gfx1103.c: New test.
1509
1510 2024-04-26 Frederik Harwath <[email protected]>
1511
1512 * plugin/plugin-gcn.c (isa_hsa_name): Handle EF_AMDGPU_MACH_AMDGCN_GFX90c.
1513 (isa_code): Handle gfx90c.
1514 (max_isa_vgprs): Handle EF_AMDGPU_MACH_AMDGCN_GFX90c.
1515
1516 2024-04-16 Chung-Lin Tang <[email protected]>
1517
1518 * libgomp.h (REFCOUNT_ACC_MAP_DATA): Define as (REFCOUNT_SPECIAL | 2).
1519 * oacc-mem.c (acc_map_data): Adjust to use REFCOUNT_ACC_MAP_DATA,
1520 initialize dynamic_refcount as 1.
1521 (acc_unmap_data): Adjust to use REFCOUNT_ACC_MAP_DATA,
1522 (goacc_map_var_existing): Add REFCOUNT_ACC_MAP_DATA case.
1523 (goacc_exit_datum_1): Add REFCOUNT_ACC_MAP_DATA case, respect
1524 REFCOUNT_ACC_MAP_DATA when decrementing/finalizing. Force lowest
1525 dynamic_refcount to be 1 for REFCOUNT_ACC_MAP_DATA.
1526 (goacc_enter_data_internal): Add REFCOUNT_ACC_MAP_DATA case.
1527 * target.c (gomp_increment_refcount): Return early for
1528 REFCOUNT_ACC_MAP_DATA case.
1529 (gomp_decrement_refcount): Likewise.
1530 * testsuite/libgomp.oacc-c-c++-common/lib-96.c: New testcase.
1531 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: Adjust
1532 testcase error output scan test.
1533
1534 2024-04-08 Thomas Schwinge <[email protected]>
1535
1536 * plugin/plugin-gcn.c (init_hsa_context): Add and handle
1537 'bool probe' parameter. Adjust all users; errors during device
1538 probing are fatal.
1539 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Aside from
1540 'CUDA_ERROR_NO_DEVICE', errors during device probing are fatal.
1541
1542 2024-04-05 Thomas Schwinge <[email protected]>
1543
1544 * testsuite/libgomp.c/reverse-offload-sm30.c: Set 'GCC_COLORS' to the empty string.
1545
1546 2024-04-05 Jakub Jelinek <[email protected]>
1547
1548 PR c++/114572
1549 * testsuite/libgomp.c++/pr114572.C: New test.
1550
1551 2024-04-04 Tobias Burnus <[email protected]>
1552
1553 * libgomp.texi (TR12): Honor post-TR12 directive name change; add
1554 item about curly braces/BLOCK permitted in canonical loop nests.
1555
1556 2024-04-02 Jakub Jelinek <[email protected]>
1557
1558 * libgomp.texi (OpenMP 5.2): Fix duplicated words; with with ->
1559 with.
1560 (omp_target_associate_ptr): Fix duplicated words; either either ->
1561 either.
1562 (omp_init_allocator): Fix duplicated words; be be -> be.
1563 (omp_realloc): Fix duplicated words; is is -> is.
1564 (OMP_ALLOCATOR): Fix duplicated words; other other -> other.
1565 * priority_queue.h (priority_queue_multi_p): Fix duplicated words;
1566 to to -> to.
1567
1568 2024-03-25 Richard Biener <[email protected]>
1569
1570 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): GFX1036.
1571 (gcn_gfx1103_s): New.
1572 (isa_hsa_name): Handle gfx1036.
1573 (isa_code): Likewise.
1574 (max_isa_vgprs): Likewise.
1575
1576 2024-03-22 Kwok Cheung Yeung <[email protected]>
1577
1578 * config/accel/target-indirect.c: Include string.h and hashtab.h.
1579 Remove include of splay-tree.h. Update comments.
1580 (splay_tree_prefix, splay_tree_c): Delete.
1581 (struct indirect_map_t): New.
1582 (hash_entry_type, htab_alloc, htab_free, htab_hash, htab_eq): New.
1583 (GOMP_INDIRECT_ADD_MAP): Remove volatile qualifier.
1584 (USE_SPLAY_TREE_LOOKUP): Rename to...
1585 (USE_HASHTAB_LOOKUP): ..this.
1586 (indirect_map, indirect_array): Delete.
1587 (indirect_htab): New.
1588 (build_indirect_map): Remove locking. Build indirect map using
1589 hashtab.
1590 (GOMP_target_map_indirect_ptr): Use indirect_htab to lookup target
1591 address.
1592 (GOMP_target_map_indirect_ptr): Remove volatile qualifier.
1593 * config/gcn/team.c (gomp_gcn_enter_kernel): Call build_indirect_map
1594 from first thread of first team only.
1595 * config/nvptx/team.c (gomp_nvptx_main): Likewise.
1596 * testsuite/libgomp.c-c++-common/declare-target-indirect-2.c (main):
1597 Add missing break statements.
1598 * testsuite/libgomp.fortran/declare-target-indirect-2.f90: Remove
1599 xfail.
1600
1601 2024-03-22 Andrew Stubbs <[email protected]>
1602
1603 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): GFX1103.
1604 (gcn_gfx1103_s): New.
1605 (isa_hsa_name): Handle gfx1103.
1606 (isa_code): Likewise.
1607 (max_isa_vgprs): Likewise.
1608
1609 2024-03-14 Thomas Schwinge <[email protected]>
1610
1611 * testsuite/libgomp.oacc-fortran/acc-memcpy.f90: Fix 'char'
1612 initialization, copy, check.
1613
1614 2024-03-13 Tobias Burnus <[email protected]>
1615
1616 PR fortran/114283
1617 * testsuite/libgomp.fortran/declare-target-indirect-4.f90: New test.
1618
1619 2024-03-12 Tobias Burnus <[email protected]>
1620
1621 * libgomp.texi (Device Memory Routines): Swap item order to match
1622 the order of the '@node's of the '@subsection's.
1623
1624 2024-03-08 Thomas Schwinge <[email protected]>
1625
1626 * plugin/plugin-gcn.c (GOMP_OFFLOAD_can_run): Don't consider
1627 'GCN_SUPPRESS_HOST_FALLBACK' anymore (assume always-'true').
1628 (init_hsa_context): Adjust 'GCN_SUPPRESS_HOST_FALLBACK' error
1629 message.
1630
1631 2024-03-08 Thomas Schwinge <[email protected]>
1632
1633 * plugin/plugin-nvptx.c (nvptx_get_num_devices):
1634 'cuDeviceGetCount' failure is fatal.
1635
1636 2024-03-08 Thomas Schwinge <[email protected]>
1637
1638 * plugin/plugin-gcn.c (init_hsa_runtime_functions): Fatal error
1639 for missing symbols.
1640 * plugin/plugin-nvptx.c (init_cuda_lib): Likewise.
1641
1642 2024-03-06 John David Anglin <[email protected]>
1643
1644 Revert:
1645 2024-02-01 John David Anglin <[email protected]>
1646
1647 * testsuite/libgomp.c++/loop-3.C: Set num_threads to 50
1648 on 32-bit hppa.
1649 * testsuite/libgomp.c/omp-loop03.c: Likewise.
1650
1651 2024-03-04 Jakub Jelinek <[email protected]>
1652
1653 PR libgomp/114216
1654 * target.c (gomp_target_rev): Change host_fn type and corresponding
1655 cast from void (*)() to void (*) (void *).
1656
1657 2024-03-01 Jakub Jelinek <[email protected]>
1658 Tobias Burnus <[email protected]>
1659
1660 PR c++/110347
1661 * testsuite/libgomp.c++/target-lambda-3.C: Moved from
1662 gcc/testsuite/g++.dg/gomp/ and fixed is-mapped handling.
1663 * testsuite/libgomp.c++/target-lambda-1.C: Modify to also
1664 also work without offloading.
1665 * testsuite/libgomp.c++/firstprivate-1.C: New test.
1666 * testsuite/libgomp.c++/firstprivate-2.C: New test.
1667 * testsuite/libgomp.c++/private-1.C: New test.
1668 * testsuite/libgomp.c++/private-2.C: New test.
1669 * testsuite/libgomp.c++/target-lambda-4.C: New test.
1670 * testsuite/libgomp.c++/use_device_ptr-1.C: New test.
1671
1672 2024-02-27 Tobias Burnus <[email protected]>
1673
1674 * libgomp.texi (OpenACC Runtime Library Routines): Document new 3.3
1675 routines that simply map to their C counterpart.
1676 * openacc.f90 (openacc): Add them.
1677 * openacc_lib.h: Likewise.
1678 * testsuite/libgomp.oacc-fortran/acc_host_device_ptr.f90: New test.
1679 * testsuite/libgomp.oacc-fortran/acc-memcpy.f90: New test.
1680 * testsuite/libgomp.oacc-fortran/acc-memcpy-2.f90: New test.
1681 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Crossref to f90 test.
1682 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
1683 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
1684
1685 2024-02-21 Tobias Burnus <[email protected]>
1686
1687 * libgomp.texi (OpenMP Context Selectors): Add 'nvptx64' as additional
1688 'arch' value for nvptx.
1689
1690 2024-02-15 Kwok Cheung Yeung <[email protected]>
1691
1692 * libgomp.texi (OpenMP 5.1): Mark indirect call support as fully
1693 implemented.
1694
1695 2024-02-15 Kwok Cheung Yeung <[email protected]>
1696
1697 * testsuite/libgomp.fortran/declare-target-indirect-1.f90: New.
1698 * testsuite/libgomp.fortran/declare-target-indirect-2.f90: New.
1699 * testsuite/libgomp.fortran/declare-target-indirect-3.f90: New.
1700
1701 2024-02-12 Rainer Orth <[email protected]>
1702
1703 PR testsuite/113448
1704 * testsuite/libgomp.c/alloc-pinned-1.c [!__linux__] (CHECK_SIZE):
1705 Call abort.
1706 * testsuite/libgomp.c/alloc-pinned-2.c [!__linux__] (CHECK_SIZE):
1707 Likewise.
1708
1709 2024-02-11 John David Anglin <[email protected]>
1710
1711 PR libgomp/113843
1712 * configure.tgt (hppa*-*-linux*): Define config_path.
1713
1714 2024-02-01 John David Anglin <[email protected]>
1715
1716 * testsuite/libgomp.c++/loop-3.C: Set num_threads to 50
1717 on 32-bit hppa.
1718 * testsuite/libgomp.c/omp-loop03.c: Likewise.
1719
1720 2024-01-29 Tobias Burnus <[email protected]>
1721
1722 * testsuite/libgomp.c/declare-variant-4.h: Use gfx1100/gfx1030
1723 function not gfx90a for gfx1100/gfx1030 context selector.
1724
1725 2024-01-26 Richard Biener <[email protected]>
1726
1727 * plugin/plugin-gcn.c (suitable_hsa_agent_p): Filter out
1728 agents with unsupported ISA.
1729
1730 2024-01-26 Richard Biener <[email protected]>
1731
1732 * plugin/plugin-gcn.c
1733 (EF_AMDGPU_MACH::EF_AMDGPU_MACH_UNSUPPORTED): Add.
1734 (isa_code): Return that instead of -1.
1735 (GOMP_OFFLOAD_init_device): Adjust.
1736
1737 2024-01-26 Tobias Burnus <[email protected]>
1738
1739 * testsuite/libgomp.c/declare-variant-4.h: Add variant functions
1740 for gfx1030 and gfx1100.
1741 * testsuite/libgomp.c/declare-variant-4-gfx1030.c: New test.
1742 * testsuite/libgomp.c/declare-variant-4-gfx1100.c: New test.
1743
1744 2024-01-26 Andrew Stubbs <[email protected]>
1745
1746 * config/gcn/time.c (RTC_TICKS): Configure RDNA3.
1747 (omp_get_wtime): Add RDNA3-compatible variant.
1748 * plugin/plugin-gcn.c (max_isa_vgprs): Tune for gfx1030 and gfx1100.
1749
1750 2024-01-24 Tobias Burnus <[email protected]>
1751 Sandra Loosemore <[email protected]>
1752
1753 * libgomp.texi (Runtime Library Routines): Document
1754 omp_pause_resource, omp_pause_resource_all and
1755 omp_target_memcpy{,_rect}{,_async}.
1756
1757 2024-01-22 Tobias Burnus <[email protected]>
1758
1759 * testsuite/libgomp.c/declare-variant-4-fiji.c: Xfail as fiji
1760 support is no longer enabled by default.
1761 * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
1762
1763 2024-01-20 John David Anglin <[email protected]>
1764
1765 * testsuite/libgomp.fortran/alloc-comp-3.f90: Increase
1766 timeout by 2 on hppa*-*-*.
1767
1768 2024-01-20 John David Anglin <[email protected]>
1769
1770 * testsuite/libgomp.c/simd-math-1.c: Don't run on
1771 hppa*-*-hpux*.
1772
1773 2024-01-17 Jakub Jelinek <[email protected]>
1774
1775 PR middle-end/113409
1776 * testsuite/libgomp.c/bitint-1.c: New test.
1777
1778 2024-01-11 Julian Brown <[email protected]>
1779
1780 * libgomp.texi: C/C++ lvalues are supported now for map/to/from.
1781 * testsuite/libgomp.c-c++-common/ind-base-4.c: New test.
1782 * testsuite/libgomp.c-c++-common/unary-ptr-1.c: New test.
1783
1784 2024-01-10 Jakub Jelinek <[email protected]>
1785
1786 PR libgomp/113192
1787 * configure.ac (FLOCK): Use $libgomp_abs_srcdir/testsuite/flock
1788 instead of \$(abs_top_srcdir)/testsuite/flock.
1789 * configure: Regenerated.
1790
1791 2024-01-09 Julian Brown <[email protected]>
1792
1793 * testsuite/libgomp.c++/baseptrs-4.C: Remove commented-out cases that
1794 now work.
1795 * testsuite/libgomp.c++/baseptrs-6.C: New test.
1796 * testsuite/libgomp.c++/ind-base-1.C: New test.
1797 * testsuite/libgomp.c++/ind-base-2.C: New test.
1798 * testsuite/libgomp.c++/lvalue-tofrom-1.C: New test.
1799 * testsuite/libgomp.c++/lvalue-tofrom-2.C: New test.
1800 * testsuite/libgomp.c++/map-comma-1.C: New test.
1801 * testsuite/libgomp.c++/map-rvalue-ref-1.C: New test.
1802 * testsuite/libgomp.c++/struct-ref-1.C: New test.
1803 * testsuite/libgomp.c-c++-common/array-field-1.c: New test.
1804 * testsuite/libgomp.c-c++-common/array-of-struct-1.c: New test.
1805 * testsuite/libgomp.c-c++-common/array-of-struct-2.c: New test.
1806
1807 2024-01-09 Jakub Jelinek <[email protected]>
1808
1809 PR libgomp/113192
1810 * configure.ac (FLOCK): Use \$(abs_top_srcdir)/testsuite/flock
1811 rather than $srcdir/testsuite/flock.
1812 * configure: Regenerated.
1813
1814 2024-01-08 Thomas Schwinge <[email protected]>
1815
1816 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
1817 'EF_AMDGPU_MACH_AMDGCN_GFX1100'.
1818
1819 2024-01-08 Julian Brown <[email protected]>
1820
1821 * plugin/plugin-gcn.c (hsa_runtime_fn_info): Add
1822 hsa_amd_memory_lock_fn, hsa_amd_memory_unlock_fn,
1823 hsa_amd_memory_async_copy_rect_fn function pointers.
1824 (init_hsa_runtime_functions): Add above functions, with
1825 DLSYM_OPT_FN.
1826 (GOMP_OFFLOAD_memcpy2d, GOMP_OFFLOAD_memcpy3d): New functions.
1827
1828 2024-01-08 Tobias Burnus <[email protected]>
1829
1830 * plugin/plugin-gcn.c (gcn_gfx1100_s): New const string.
1831 (gcn_isa_name_len): Fix length.
1832 (isa_hsa_name, isa_code, max_isa_vgprs): Handle gfx1100.
1833
1834 2024-01-06 Tobias Burnus <[email protected]>
1835
1836 * libgomp.texi (OpenMP Technical Report 12): Fix a typo.
1837 (Device Memory Routines): Fix OpenMP 5.1 spec refs; add
1838 omp_target_is_accessible.
1839 (Environment Display Routine): Uncomment and add
1840 omp_display_env description.
1841 (OMP_DISPLAY_ENV): Update wording, add 'see also'.
1842
1843 2024-01-06 Mark Wielaard <[email protected]>
1844
1845 * configure: Regenerate.
1846
1847 2024-01-03 Jakub Jelinek <[email protected]>
1848
1849 * libgomp.texi: Bump @copying's copyright year.
1850
1851 2023-12-21 Julian Brown <[email protected]>
1852
1853 * testsuite/libgomp.fortran/target-enter-data-6.f90: Remove XFAIL.
1854
1855 2023-12-20 Julian Brown <[email protected]>
1856
1857 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d): Adjust parameters to
1858 avoid out-of-bounds array checks in CUDA runtime.
1859 (GOMP_OFFLOAD_memcpy3d): Likewise.
1860 * testsuite/libgomp.c-c++-common/memcpyxd-bias-1.c: New test.
1861
1862 2023-12-18 Jakub Jelinek <[email protected]>
1863
1864 * testsuite/libgomp.c/declare-variant-1.c: Restrict the test to x86,
1865 drop because of that unneeded target selector from other directives
1866 and remove the aarch64 specific ones.
1867
1868 2023-12-15 Andre Vieira <[email protected]>
1869
1870 * testsuite/libgomp.c/declare-variant-1.c: Fixed test.
1871 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
1872
1873 2023-12-15 Thomas Schwinge <[email protected]>
1874
1875 * testsuite/libgomp.fortran/map-subarray-5.f90: Restrict
1876 'dg-output's to 'target offload_device_nonshared_as'.
1877
1878 2023-12-15 Julian Brown <[email protected]>
1879
1880 * oacc-mem.c (find_group_last, goacc_enter_data_internal,
1881 goacc_exit_data_internal, GOACC_enter_exit_data): Add
1882 GOMP_MAP_STRUCT_UNORD support.
1883 * target.c (gomp_map_vars_internal): Add GOMP_MAP_STRUCT_UNORD support.
1884 Detect incorrect use of variable indexing of arrays of structs.
1885 (GOMP_target_enter_exit_data, gomp_target_task_fn): Add
1886 GOMP_MAP_STRUCT_UNORD support.
1887 * testsuite/libgomp.c-c++-common/map-arrayofstruct-1.c: New test.
1888 * testsuite/libgomp.c-c++-common/map-arrayofstruct-2.c: New test.
1889 * testsuite/libgomp.c-c++-common/map-arrayofstruct-3.c: New test.
1890 * testsuite/libgomp.fortran/map-subarray-5.f90: New test.
1891
1892 2023-12-13 Julian Brown <[email protected]>
1893
1894 * testsuite/libgomp.fortran/map-subarray.f90: New test.
1895 * testsuite/libgomp.fortran/map-subarray-2.f90: New test.
1896 * testsuite/libgomp.fortran/map-subarray-3.f90: New test.
1897 * testsuite/libgomp.fortran/map-subarray-4.f90: New test.
1898 * testsuite/libgomp.fortran/map-subarray-6.f90: New test.
1899 * testsuite/libgomp.fortran/map-subarray-7.f90: New test.
1900 * testsuite/libgomp.fortran/map-subarray-8.f90: New test.
1901 * testsuite/libgomp.fortran/map-subcomponents.f90: New test.
1902 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Adjust for
1903 descriptor-mapping changes. Remove XFAIL.
1904
1905 2023-12-13 Julian Brown <[email protected]>
1906
1907 * target.c (gomp_map_pointer): Modify zero-length array section
1908 pointer handling.
1909 (gomp_attach_pointer): Likewise.
1910 (gomp_map_fields_existing): Use gomp_map_0len_lookup.
1911 (gomp_attach_pointer): Allow attaching null pointers (or Fortran
1912 "unassociated" pointers).
1913 (gomp_map_vars_internal): Handle zero-sized struct members. Add
1914 diagnostic for unmapped struct pointer members.
1915 * testsuite/libgomp.c-c++-common/baseptrs-1.c: New test.
1916 * testsuite/libgomp.c-c++-common/baseptrs-2.c: New test.
1917 * testsuite/libgomp.c-c++-common/baseptrs-6.c: New test.
1918 * testsuite/libgomp.c-c++-common/baseptrs-7.c: New test.
1919 * testsuite/libgomp.c-c++-common/ptr-attach-2.c: New test.
1920 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: Fix missing
1921 "free".
1922 * testsuite/libgomp.c-c++-common/target-implicit-map-5.c: New test.
1923 * testsuite/libgomp.c-c++-common/target-map-zlas-1.c: New test.
1924 * testsuite/libgomp.c++/class-array-1.C: New test.
1925 * testsuite/libgomp.c++/baseptrs-3.C: New test.
1926 * testsuite/libgomp.c++/baseptrs-4.C: New test.
1927 * testsuite/libgomp.c++/baseptrs-5.C: New test.
1928 * testsuite/libgomp.c++/baseptrs-8.C: New test.
1929 * testsuite/libgomp.c++/baseptrs-9.C: New test.
1930 * testsuite/libgomp.c++/ref-mapping-1.C: New test.
1931 * testsuite/libgomp.c++/target-48.C: New test.
1932 * testsuite/libgomp.c++/target-49.C: New test.
1933 * testsuite/libgomp.c++/target-exit-data-reftoptr-1.C: New test.
1934 * testsuite/libgomp.c++/target-lambda-1.C: Update for OpenMP 5.2
1935 semantics.
1936 * testsuite/libgomp.c++/target-this-3.C: Likewise.
1937 * testsuite/libgomp.c++/target-this-4.C: Likewise.
1938 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Add temporary XFAIL.
1939 * testsuite/libgomp.fortran/target-enter-data-6.f90: Likewise.
1940
1941 2023-12-13 Thomas Schwinge <[email protected]>
1942
1943 * config/linux/allocator.c (linux_memspace_alloc): Fix 'size_t'
1944 vs. '%ld' format string mismatch.
1945
1946 2023-12-13 Andrew Stubbs <[email protected]>
1947 Thomas Schwinge <[email protected]>
1948
1949 * allocator.c (MEMSPACE_ALLOC): Add PIN.
1950 (MEMSPACE_CALLOC): Add PIN.
1951 (MEMSPACE_REALLOC): Add PIN.
1952 (MEMSPACE_FREE): Add PIN.
1953 (MEMSPACE_VALIDATE): Add PIN.
1954 (omp_init_allocator): Use MEMSPACE_VALIDATE to check pinning.
1955 (omp_aligned_alloc): Add pinning to all MEMSPACE_* calls.
1956 (omp_aligned_calloc): Likewise.
1957 (omp_realloc): Likewise.
1958 (omp_free): Likewise.
1959 * config/linux/allocator.c: New file.
1960 * config/nvptx/allocator.c (MEMSPACE_ALLOC): Add PIN.
1961 (MEMSPACE_CALLOC): Add PIN.
1962 (MEMSPACE_REALLOC): Add PIN.
1963 (MEMSPACE_FREE): Add PIN.
1964 (MEMSPACE_VALIDATE): Add PIN.
1965 * config/gcn/allocator.c (MEMSPACE_ALLOC): Add PIN.
1966 (MEMSPACE_CALLOC): Add PIN.
1967 (MEMSPACE_REALLOC): Add PIN.
1968 (MEMSPACE_FREE): Add PIN.
1969 * libgomp.texi: Switch pinned trait to supported.
1970 (MEMSPACE_VALIDATE): Add PIN.
1971 * testsuite/libgomp.c/alloc-pinned-1.c: New test.
1972 * testsuite/libgomp.c/alloc-pinned-2.c: New test.
1973 * testsuite/libgomp.c/alloc-pinned-3.c: New test.
1974 * testsuite/libgomp.c/alloc-pinned-4.c: New test.
1975
1976 2023-12-11 Lipeng Zhu <[email protected]>
1977
1978 * testsuite/libgomp.fortran/rwlock_1.f90: New file.
1979 * testsuite/libgomp.fortran/rwlock_2.f90: New file.
1980 * testsuite/libgomp.fortran/rwlock_3.f90: New file.
1981
1982 2023-12-11 Andre Vieira <[email protected]>
1983
1984 * testsuite/libgomp.c/declare-variant-1.c: Adapt test for aarch64.
1985 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
1986
1987 2023-12-11 Tobias Burnus <[email protected]>
1988
1989 * libgomp_g.h (GOMP_add_alloc, GOMP_is_alloc): Add.
1990
1991 2023-12-08 Tobias Burnus <[email protected]>
1992
1993 * allocator.c (struct fort_alloc_splay_tree_key_s,
1994 fort_alloc_splay_compare, GOMP_add_alloc, GOMP_is_alloc): New.
1995 * libgomp.h: Define splay_tree_static for 'reverse' splay tree.
1996 * libgomp.map (GOMP_5.1.2): New; add GOMP_add_alloc and
1997 GOMP_is_alloc; move GOMP_target_map_indirect_ptr from ...
1998 (GOMP_5.1.1): ... here.
1999 * libgomp.texi (Impl. Status, Memory management): Update for
2000 allocators/allocate directives.
2001 * splay-tree.c: Handle splay_tree_static define to declare all
2002 functions as static.
2003 (splay_tree_lookup_node): New.
2004 * splay-tree.h: Handle splay_tree_decl_only define.
2005 (splay_tree_lookup_node): New prototype.
2006 * target.c: Define splay_tree_static for 'reverse'.
2007 * testsuite/libgomp.fortran/allocators-1.f90: New test.
2008 * testsuite/libgomp.fortran/allocators-2.f90: New test.
2009 * testsuite/libgomp.fortran/allocators-3.f90: New test.
2010 * testsuite/libgomp.fortran/allocators-4.f90: New test.
2011 * testsuite/libgomp.fortran/allocators-5.f90: New test.
2012
2013 2023-12-06 Andrew Stubbs <[email protected]>
2014
2015 * config/gcn/libgomp-gcn.h (TEAM_ARENA_START): Move to here.
2016 (TEAM_ARENA_FREE): Likewise.
2017 (TEAM_ARENA_END): Likewise.
2018 (GCN_LOWLAT_HEAP): New.
2019 * config/gcn/team.c (LITTLEENDIAN_CPU): New, and import hsa.h.
2020 (__gcn_lowlat_init): New prototype.
2021 (gomp_gcn_enter_kernel): Initialize the low-latency heap.
2022 * libgomp.h (TEAM_ARENA_START): Move to libgomp.h.
2023 (TEAM_ARENA_FREE): Likewise.
2024 (TEAM_ARENA_END): Likewise.
2025 * plugin/plugin-gcn.c (lowlat_size): New variable.
2026 (print_kernel_dispatch): Label the group_segment_size purpose.
2027 (init_environment_variables): Read GOMP_GCN_LOWLAT_POOL.
2028 (create_kernel_dispatch): Pass low-latency head allocation to kernel.
2029 (run_kernel): Use shadow; don't assume values.
2030 * testsuite/libgomp.c/omp_alloc-traits.c: Enable for amdgcn.
2031 * config/gcn/allocator.c: New file.
2032 * libgomp.texi: Document low-latency implementation details.
2033
2034 2023-12-06 Andrew Stubbs <[email protected]>
2035
2036 * allocator.c (MEMSPACE_VALIDATE): New macro.
2037 (omp_init_allocator): Use MEMSPACE_VALIDATE.
2038 (omp_aligned_alloc): Use OMP_LOW_LAT_MEM_ALLOC_INVALID.
2039 (omp_aligned_calloc): Likewise.
2040 (omp_realloc): Likewise.
2041 * config/nvptx/allocator.c (nvptx_memspace_validate): New function.
2042 (MEMSPACE_VALIDATE): New macro.
2043 (OMP_LOW_LAT_MEM_ALLOC_INVALID): New define.
2044 * libgomp.texi: Document low-latency implementation details.
2045 * testsuite/libgomp.c/omp_alloc-1.c (main): Add gnu_lowlat.
2046 * testsuite/libgomp.c/omp_alloc-2.c (main): Add gnu_lowlat.
2047 * testsuite/libgomp.c/omp_alloc-3.c (main): Add gnu_lowlat.
2048 * testsuite/libgomp.c/omp_alloc-4.c (main): Add access trait.
2049 * testsuite/libgomp.c/omp_alloc-5.c (main): Add gnu_lowlat.
2050 * testsuite/libgomp.c/omp_alloc-6.c (main): Add access trait.
2051 * testsuite/libgomp.c/omp_alloc-traits.c: New test.
2052
2053 2023-12-06 Andrew Stubbs <[email protected]>
2054 Kwok Cheung Yeung <[email protected]>
2055 Thomas Schwinge <[email protected]>
2056
2057 * allocator.c (MEMSPACE_ALLOC): New macro.
2058 (MEMSPACE_CALLOC): New macro.
2059 (MEMSPACE_REALLOC): New macro.
2060 (MEMSPACE_FREE): New macro.
2061 (predefined_alloc_mapping): New array. Add _Static_assert to match.
2062 (ARRAY_SIZE): New macro.
2063 (omp_aligned_alloc): Use MEMSPACE_ALLOC.
2064 Implement fall-backs for predefined allocators. Simplify existing
2065 fall-backs.
2066 (omp_free): Use MEMSPACE_FREE.
2067 (omp_calloc): Use MEMSPACE_CALLOC. Implement fall-backs for
2068 predefined allocators. Simplify existing fall-backs.
2069 (omp_realloc): Use MEMSPACE_REALLOC, MEMSPACE_ALLOC, and MEMSPACE_FREE.
2070 Implement fall-backs for predefined allocators. Simplify existing
2071 fall-backs.
2072 * config/nvptx/team.c (__nvptx_lowlat_pool): New asm variable.
2073 (__nvptx_lowlat_init): New prototype.
2074 (gomp_nvptx_main): Call __nvptx_lowlat_init.
2075 * libgomp.texi: Update memory space table.
2076 * plugin/plugin-nvptx.c (lowlat_pool_size): New variable.
2077 (GOMP_OFFLOAD_init_device): Read the GOMP_NVPTX_LOWLAT_POOL envvar.
2078 (GOMP_OFFLOAD_run): Apply lowlat_pool_size.
2079 * basic-allocator.c: New file.
2080 * config/nvptx/allocator.c: New file.
2081 * testsuite/libgomp.c/omp_alloc-1.c: New test.
2082 * testsuite/libgomp.c/omp_alloc-2.c: New test.
2083 * testsuite/libgomp.c/omp_alloc-3.c: New test.
2084 * testsuite/libgomp.c/omp_alloc-4.c: New test.
2085 * testsuite/libgomp.c/omp_alloc-5.c: New test.
2086 * testsuite/libgomp.c/omp_alloc-6.c: New test.
2087
2088 2023-11-30 Thomas Schwinge <[email protected]>
2089
2090 * testsuite/libgomp.c/declare-variant-4-fiji.c: Adjust.
2091 * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
2092 * testsuite/libgomp.c/declare-variant-4-gfx900.c: Likewise.
2093 * testsuite/libgomp.c/declare-variant-4-gfx906.c: Likewise.
2094 * testsuite/libgomp.c/declare-variant-4-gfx908.c: Likewise.
2095 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: Likewise.
2096 * testsuite/libgomp.c/declare-variant-4.h: Likewise.
2097 * testsuite/libgomp.c/declare-variant-4.c: New.
2098
2099 2023-11-30 Thomas Schwinge <[email protected]>
2100
2101 * testsuite/libgomp.c/declare-variant-3-sm30.c: Turn 'dg-do run'
2102 into 'dg-do link'.
2103 * testsuite/libgomp.c/declare-variant-3.c: New.
2104 * testsuite/libgomp.c/declare-variant-3.h: Extend.
2105
2106 2023-11-30 Thomas Schwinge <[email protected]>
2107
2108 * testsuite/libgomp.c/declare-variant-3-sm30.c: Restrict
2109 'scan-offload-tree-dump' to 'only_for_offload_target nvptx-none'.
2110 * testsuite/libgomp.c/declare-variant-3-sm35.c: Likewise.
2111 * testsuite/libgomp.c/declare-variant-3-sm53.c: Likewise.
2112 * testsuite/libgomp.c/declare-variant-3-sm70.c: Likewise.
2113 * testsuite/libgomp.c/declare-variant-3-sm75.c: Likewise.
2114 * testsuite/libgomp.c/declare-variant-3-sm80.c: Likewise.
2115 * testsuite/libgomp.c/declare-variant-4-fiji.c: Restrict
2116 'scan-offload-tree-dump' to
2117 'only_for_offload_target amdgcn-amdhsa'.
2118 * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
2119 * testsuite/libgomp.c/declare-variant-4-gfx900.c: Likewise.
2120 * testsuite/libgomp.c/declare-variant-4-gfx906.c: Likewise.
2121 * testsuite/libgomp.c/declare-variant-4-gfx908.c: Likewise.
2122 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: Likewise.
2123
2124 2023-11-30 Thomas Schwinge <[email protected]>
2125
2126 * testsuite/libgomp.c/declare-variant-3-sm30.c:
2127 'dg-additional-options -foffload=nvptx-none'.
2128 * testsuite/libgomp.c/declare-variant-3-sm35.c: Likewise.
2129 * testsuite/libgomp.c/declare-variant-3-sm53.c: Likewise.
2130 * testsuite/libgomp.c/declare-variant-3-sm70.c: Likewise.
2131 * testsuite/libgomp.c/declare-variant-3-sm75.c: Likewise.
2132 * testsuite/libgomp.c/declare-variant-3-sm80.c: Likewise.
2133
2134 2023-11-29 Thomas Schwinge <[email protected]>
2135
2136 * testsuite/libgomp.c/target-simd-clone-1.c: Restrict
2137 'scan-offload-ipa-dump's to
2138 'only_for_offload_target amdgcn-amdhsa'.
2139 * testsuite/libgomp.c/target-simd-clone-2.c: Likewise.
2140 * testsuite/libgomp.c/target-simd-clone-3.c: Likewise.
2141
2142 2023-11-24 Tobias Burnus <[email protected]>
2143
2144 * libgomp.texi (5.2 Impl. Status): An argument to the destroy clause
2145 is now supported.
2146
2147 2023-11-22 Thomas Schwinge <[email protected]>
2148
2149 * testsuite/libgomp.c/declare-variant-3.h (f30, f35, f53, f70)
2150 (f75, f80, f): Add '__attribute__ ((noipa))'.
2151 * testsuite/libgomp.c/declare-variant-4.h (gfx803, gfx900, gfx906)
2152 (gfx908, gfx90a, f): Likewise.
2153
2154 2023-11-15 Andrew Stubbs <[email protected]>
2155 Andrew Jenner <[email protected]>
2156
2157 * plugin/plugin-gcn.c (max_isa_vgprs): New.
2158 (run_kernel): CDNA2 devices have more VGPRs.
2159
2160 2023-11-10 Tobias Burnus <[email protected]>
2161
2162 * libgomp.texi (OpenMP Impl. Status): Update for OpenMP TR12;
2163 renamed section from TR11.
2164
2165 2023-11-07 Kwok Cheung Yeung <[email protected]>
2166
2167 * config/linux/target-indirect.c: Move to...
2168 * target-indirect.c: ...here.
2169
2170 2023-11-07 Kwok Cheung Yeung <[email protected]>
2171
2172 * Makefile.am (libgomp_la_SOURCES): Add target-indirect.c.
2173 * Makefile.in: Regenerate.
2174 * libgomp-plugin.h (GOMP_INDIRECT_ADDR_MAP): New define.
2175 (GOMP_OFFLOAD_load_image): Add extra argument.
2176 * libgomp.h (struct indirect_splay_tree_key_s): New.
2177 (indirect_splay_tree_node, indirect_splay_tree,
2178 indirect_splay_tree_key): New.
2179 (indirect_splay_compare): New.
2180 * libgomp.map (GOMP_5.1.1): Add GOMP_target_map_indirect_ptr.
2181 * libgomp.texi (OpenMP 5.1): Update documentation on indirect
2182 calls in target region and on indirect clause.
2183 (Other new OpenMP 5.2 features): Add entry for virtual function calls.
2184 * libgomp_g.h (GOMP_target_map_indirect_ptr): Add prototype.
2185 * oacc-host.c (host_load_image): Add extra argument.
2186 * target.c (gomp_load_image_to_device): If the GOMP_VERSION is high
2187 enough, read host indirect functions table and pass to
2188 load_image_func.
2189 * config/accel/target-indirect.c: New.
2190 * config/linux/target-indirect.c: New.
2191 * config/gcn/team.c (build_indirect_map): Add prototype.
2192 (gomp_gcn_enter_kernel): Initialize support for indirect
2193 function calls on GCN target.
2194 * config/nvptx/team.c (build_indirect_map): Add prototype.
2195 (gomp_nvptx_main): Initialize support for indirect function
2196 calls on NVPTX target.
2197 * plugin/plugin-gcn.c (struct gcn_image_desc): Add field for
2198 indirect functions count.
2199 (GOMP_OFFLOAD_load_image): Add extra argument. If the GOMP_VERSION
2200 is high enough, build address translation table and copy it to target
2201 memory.
2202 * plugin/plugin-nvptx.c (nvptx_tdata): Add field for indirect
2203 functions count.
2204 (GOMP_OFFLOAD_load_image): Add extra argument. If the GOMP_VERSION
2205 is high enough, Build address translation table and copy it to target
2206 memory.
2207 * testsuite/libgomp.c-c++-common/declare-target-indirect-1.c: New.
2208 * testsuite/libgomp.c-c++-common/declare-target-indirect-2.c: New.
2209 * testsuite/libgomp.c++/declare-target-indirect-1.C: New.
2210
2211 2023-11-05 Jakub Jelinek <[email protected]>
2212
2213 * libgomp.texi (Enabling OpenMP): Adjust wording for attribute syntax
2214 supported also in C.
2215
2216 2023-10-31 Thomas Schwinge <[email protected]>
2217
2218 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Add OpenACC
2219 'acc_map_data' variant.
2220
2221 2023-10-25 Thomas Schwinge <[email protected]>
2222
2223 * oacc-parallel.c (GOACC_data_start): Handle
2224 'GOACC_FLAG_LOCAL_DEVICE'.
2225 (GOACC_parallel_keyed): Simplify accordingly.
2226 * testsuite/libgomp.oacc-fortran/self-1.f90: Adjust.
2227
2228 2023-10-25 Thomas Schwinge <[email protected]>
2229
2230 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Enhance.
2231 * testsuite/libgomp.oacc-c-c++-common/self-1.c: Likewise.
2232 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2233 * testsuite/libgomp.oacc-c-c++-common/if-self-1.c: New.
2234 * testsuite/libgomp.oacc-fortran/self-1.f90: Likewise.
2235
2236 2023-10-25 Chung-Lin Tang <[email protected]>
2237
2238 * oacc-parallel.c (GOACC_parallel_keyed): Add code to handle
2239 GOACC_FLAG_LOCAL_DEVICE case.
2240 * testsuite/libgomp.oacc-c-c++-common/self-1.c: New test.
2241
2242 2023-10-22 Iain Sandoe <[email protected]>
2243
2244 * Makefile.am: Handle Darwin rpaths.
2245 * Makefile.in: Regenerate.
2246 * configure: Regenerate.
2247 * configure.ac: Handle Darwin rpaths
2248
2249 2023-10-20 Andrew Stubbs <[email protected]>
2250
2251 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX1030): New.
2252 (isa_hsa_name): Recognise gfx1030.
2253 (isa_code): Likewise.
2254 * team.c (defined): Remove s_endpgm.
2255
2256 2023-10-20 Tobias Burnus <[email protected]>
2257
2258 * omp_lib.f90.in: Tag omp_lock_hint_* as being deprecated when
2259 _OPENMP >= 201811.
2260
2261 2023-10-15 Tobias Burnus <[email protected]>
2262
2263 * libgomp.texi (Enabling OpenMP): Update for C/C++ attributes;
2264 improve wording especially for Fortran; mention -fopenmp-simd.
2265 (Enabling OpenACC): Minor cleanup; remove conditional compilation
2266 sentinel.
2267
2268 2023-10-15 Tobias Burnus <[email protected]>
2269
2270 * libgomp.texi (ACC_DEVICE_TYPE, ACC_DEVICE_NUM, ACC_PROFLIB):
2271 Actually document what the function does.
2272 (GCC_ACC_NOTIFY): Remove unused env var.
2273
2274 2023-10-15 Tobias Burnus <[email protected]>
2275
2276 * libgomp.texi: Replace most future tense by present tense.
2277
2278 2023-10-14 Tobias Burnus <[email protected]>
2279
2280 * testsuite/libgomp.fortran/allocate-6.f90: Add missing
2281 dg-additional-options "-fdump-tree-gimple"; fix scan.
2282
2283 2023-10-14 Tobias Burnus <[email protected]>
2284
2285 * libgomp.texi: Fix some typos.
2286 (Memory Management Routines): Document remaining 5.x routines.
2287 (Memory allocation): Make clear when the section applies.
2288
2289 2023-10-14 Tobias Burnus <[email protected]>
2290
2291 * libgomp.texi (OpenMP Impl. Status): Mention that Fortran now
2292 supports the allocate directive for stack variables.
2293 * testsuite/libgomp.fortran/allocate-5.f90: New test.
2294 * testsuite/libgomp.fortran/allocate-6.f90: New test.
2295 * testsuite/libgomp.fortran/allocate-7.f90: New test.
2296 * testsuite/libgomp.fortran/allocate-8.f90: New test.
2297
2298 2023-10-12 Tobias Burnus <[email protected]>
2299
2300 * libgomp.texi (OMP_DEFAULT_DEVICE): Update spec ref; add @ref to
2301 OMP_TARGET_OFFLOAD.
2302 (OMP_TARGET_OFFLOAD): Update spec ref; add @ref to OMP_DEFAULT_DEVICE;
2303 clarify MANDATORY behavior.
2304
2305 2023-10-12 Zhang, Jun <[email protected]>
2306
2307 * env.c (initialize_env): Use do_adjust_default_spincount.
2308 * config/linux/x86/spincount.h: New file.
2309
2310 2023-10-08 Tobias Burnus <[email protected]>
2311
2312 * testsuite/libgomp.fortran/strictly-structured-block-1.f90: New test.
2313
2314 2023-10-06 Tobias Burnus <[email protected]>
2315
2316 * libgomp.texi (Device Memory Routines): New.
2317
2318 2023-10-04 Tobias Burnus <[email protected]>
2319
2320 * libgomp.texi (OpenMP Context Selectors): Clarify 'kind' trait
2321 and that other target archs have no 'arch'/'isa' traits implemented.
2322
2323 2023-09-20 Tobias Burnus <[email protected]>
2324
2325 * libgomp.texi (OpenMP 5.1 Impl.): Mark 'omp allocate' as
2326 implemented for C only.
2327 * testsuite/libgomp.c/allocate-4.c: New test.
2328 * testsuite/libgomp.c/allocate-5.c: New test.
2329 * testsuite/libgomp.c/allocate-6.c: New test.
2330
2331 2023-09-20 Jakub Jelinek <[email protected]>
2332
2333 PR c++/111392
2334 * libgomp.texi: Mark decl attribute was added to the C++ attribute
2335 syntax as implemented.
2336
2337 2023-09-19 Jakub Jelinek <[email protected]>
2338
2339 PR libgomp/111413
2340 * env.c (initialize_env): Don't dereference environ if it is NULL.
2341 Reindent.
2342
2343 2023-09-18 Richard Biener <[email protected]>
2344
2345 PR tree-optimization/111294
2346 * team.c (gomp_team_start): Assert alloca size to avoid false
2347 positive alloc-size diagnostic.
2348
2349 2023-09-12 Thomas Schwinge <[email protected]>
2350 Chung-Lin Tang <[email protected]>
2351
2352 PR testsuite/91884
2353 PR testsuite/109951
2354 * configure.ac: Revert earlier changes, instead
2355 'AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET)'.
2356 * Makefile.in: Regenerate.
2357 * configure: Likewise.
2358 * testsuite/Makefile.in: Likewise.
2359 * testsuite/lib/libgomp.exp (libgomp_init): Remove
2360 "Fix up '-funconfigured-libstdc++-v3' in 'GXX_UNDER_TEST'" code.
2361 If '--with-build-sysroot=[...]' was specified, use it for
2362 build-tree testing.
2363 * testsuite/libgomp-site-extra.exp.in (GCC_UNDER_TEST)
2364 (GXX_UNDER_TEST, GFORTRAN_UNDER_TEST): Don't set.
2365 (SYSROOT_CFLAGS_FOR_TARGET): Set.
2366 * testsuite/libgomp.c++/c++.exp (lang_source_re)
2367 (lang_include_flags): Set for build-tree testing.
2368 * testsuite/libgomp.oacc-c++/c++.exp (lang_source_re)
2369 (lang_include_flags): Likewise.
2370
2371 2023-09-07 Tobias Burnus <[email protected]>
2372
2373 * libgomp.texi (Memory Management Routines): New; add documentation for
2374 omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
2375 omp_get_default_allocator.
2376 (OMP_ALLOCATOR): Fix ICV var name; add see-also references.
2377
2378 2023-09-07 Tobias Burnus <[email protected]>
2379
2380 * target.c (gomp_unload_device): Remove tailing whitespace.
2381
2382 2023-09-04 Tobias Burnus <[email protected]>
2383 Thomas Schwinge <[email protected]>
2384
2385 * testsuite/libgomp.c-c++-common/pr100059-1.c: New.
2386
2387 2023-08-25 Sandra Loosemore <[email protected]>
2388
2389 * libgomp.texi (OpenMP 5.0): Imperfectly-nested loops are done.
2390
2391 2023-08-25 Sandra Loosemore <[email protected]>
2392
2393 * testsuite/libgomp.fortran/imperfect-destructor.f90: New.
2394 * testsuite/libgomp.fortran/imperfect1.f90: New.
2395 * testsuite/libgomp.fortran/imperfect2.f90: New.
2396 * testsuite/libgomp.fortran/imperfect3.f90: New.
2397 * testsuite/libgomp.fortran/imperfect4.f90: New.
2398 * testsuite/libgomp.fortran/target-imperfect1.f90: New.
2399 * testsuite/libgomp.fortran/target-imperfect2.f90: New.
2400 * testsuite/libgomp.fortran/target-imperfect3.f90: New.
2401 * testsuite/libgomp.fortran/target-imperfect4.f90: New.
2402
2403 2023-08-25 Sandra Loosemore <[email protected]>
2404
2405 * testsuite/libgomp.c-c++-common/imperfect1.c: New.
2406 * testsuite/libgomp.c-c++-common/imperfect2.c: New.
2407 * testsuite/libgomp.c-c++-common/imperfect3.c: New.
2408 * testsuite/libgomp.c-c++-common/imperfect4.c: New.
2409 * testsuite/libgomp.c-c++-common/imperfect5.c: New.
2410 * testsuite/libgomp.c-c++-common/imperfect6.c: New.
2411 * testsuite/libgomp.c-c++-common/target-imperfect1.c: New.
2412 * testsuite/libgomp.c-c++-common/target-imperfect2.c: New.
2413 * testsuite/libgomp.c-c++-common/target-imperfect3.c: New.
2414 * testsuite/libgomp.c-c++-common/target-imperfect4.c: New.
2415
2416 2023-08-25 Sandra Loosemore <[email protected]>
2417
2418 * testsuite/libgomp.c++/attrs-imperfect1.C: New test.
2419 * testsuite/libgomp.c++/attrs-imperfect2.C: New test.
2420 * testsuite/libgomp.c++/attrs-imperfect3.C: New test.
2421 * testsuite/libgomp.c++/attrs-imperfect4.C: New test.
2422 * testsuite/libgomp.c++/attrs-imperfect5.C: New test.
2423 * testsuite/libgomp.c++/attrs-imperfect6.C: New test.
2424 * testsuite/libgomp.c++/imperfect-class-1.C: New test.
2425 * testsuite/libgomp.c++/imperfect-class-2.C: New test.
2426 * testsuite/libgomp.c++/imperfect-class-3.C: New test.
2427 * testsuite/libgomp.c++/imperfect-destructor.C: New test.
2428 * testsuite/libgomp.c++/imperfect-template-1.C: New test.
2429 * testsuite/libgomp.c++/imperfect-template-2.C: New test.
2430 * testsuite/libgomp.c++/imperfect-template-3.C: New test.
2431
2432 2023-08-22 Francois-Xavier Coudert <[email protected]>
2433
2434 * testsuite/lib/libgomp.exp: Add effective target.
2435 * testsuite/libgomp.c/simd-math-1.c: Avoid calling nonstandard
2436 functions.
2437
2438 2023-08-22 Tobias Burnus <[email protected]>
2439
2440 * libgomp.texi (OpenMP 5.2 status): Add depobj with
2441 destroy-var argument as 'N'. Mark defaultmap with
2442 'all' category as 'Y'.
2443
2444 2023-08-19 Tobias Burnus <[email protected]>
2445
2446 PR middle-end/111017
2447 * testsuite/libgomp.c-c++-common/non-rect-loop-1.c: New test.
2448
2449 2023-08-17 Tobias Burnus <[email protected]>
2450
2451 PR libgomp/111024
2452 * allocator.c (gomp_init_libnuma): Call numa_available; if
2453 not available or not returning 0, disable libnuma usage.
2454
2455 2023-08-07 Nick Alcock <[email protected]>
2456
2457 * configure: Regenerate.
2458
2459 2023-08-07 Alexander von Gluck IV <[email protected]>
2460
2461 * configure: Regenerate.
2462
2463 2023-08-07 Nick Alcock <[email protected]>
2464
2465 * configure: Regenerate.
2466
2467 2023-08-07 Nick Alcock <[email protected]>
2468
2469 * configure: Regenerate.
2470
2471 2023-08-07 H.J. Lu <[email protected]>
2472
2473 * configure: Regenerate.
2474
2475 2023-08-07 H.J. Lu <[email protected]>
2476
2477 * configure: Regenerate.
2478
2479 2023-07-29 Tobias Burnus <[email protected]>
2480
2481 * target.c (omp_target_memcpy_rect_worker): Undo dim=1 change for
2482 GOMP_OFFLOAD_CAP_SHARED_MEM.
2483 (omp_target_memcpy_rect_copy): Likewise for lock condition.
2484 (gomp_load_plugin_for_device): Use DLSYM_OPT not DLSYM for
2485 memcpy3d/memcpy2d.
2486 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
2487 GOMP_OFFLOAD_memcpy3d): Use memset 0 to nullify reserved and
2488 unused src/dst fields for that mem type; remove '{src,dst}LOD = 0'.
2489
2490 2023-07-26 Tobias Burnus <[email protected]>
2491
2492 * libgomp-plugin.h (GOMP_OFFLOAD_memcpy2d,
2493 GOMP_OFFLOAD_memcpy3d): New prototypes.
2494 * libgomp.h (struct gomp_device_descr): Add memcpy2d_func
2495 and memcpy3d_func.
2496 * libgomp.texi (nvtpx): Document when cuMemcpy2D/cuMemcpy3D is used.
2497 * oacc-host.c (memcpy2d_func, .memcpy3d_func): Init with NULL.
2498 * plugin/cuda-lib.def (cuMemcpy2D, cuMemcpy2DUnaligned,
2499 cuMemcpy3D): Invoke via CUDA_ONE_CALL.
2500 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
2501 GOMP_OFFLOAD_memcpy3d): New.
2502 * target.c (omp_target_memcpy_rect_worker):
2503 (omp_target_memcpy_rect_check, omp_target_memcpy_rect_copy):
2504 Permit all device-to-device copyies; invoke new plugins for
2505 2D and 3D copying when available.
2506 (gomp_load_plugin_for_device): DLSYM the new plugin functions.
2507 * testsuite/libgomp.c/target-12.c: Fix dimension bug.
2508 * testsuite/libgomp.fortran/target-12.f90: Likewise.
2509 * testsuite/libgomp.fortran/target-memcpy-rect-1.f90: New test.
2510
2511 2023-07-26 Tobias Burnus <[email protected]>
2512
2513 * libgomp.texi (OpenMP 5.2 features): Add 'all' for 'defaultmap' as 'N'.
2514 (Tasking Routines): Document omp_in_explicit_task.
2515 (Implementation-defined ICV Initialization): Use @ref not @code.
2516
2517 2023-07-20 Tobias Burnus <[email protected]>
2518
2519 * libgomp.texi (OpenMP Runtime Library Routines):
2520 Split long list by adding sections and moving routines there.
2521 (OMP_ALLOCATORS): Fix typo.
2522
2523 2023-07-19 Tobias Burnus <[email protected]>
2524
2525 PR fortran/107424
2526 * libgomp.texi (Impl. Status 5.0): Add link to new PR110735.
2527 * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: Enable
2528 commented tests.
2529 * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: Remove
2530 test file; tests are in non-rectangular-loop-1.f90.
2531 * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: Change
2532 testcase to use a non-constant step to retain the 'sorry' test.
2533 * testsuite/libgomp.fortran/non-rectangular-loop-6.f90: New test.
2534
2535 2023-07-17 Tobias Burnus <[email protected]>
2536 Chung-Lin Tang <[email protected]>
2537
2538 * testsuite/libgomp.fortran/uses_allocators_1.f90: New test.
2539 * testsuite/libgomp.fortran/uses_allocators_2.f90: New test.
2540
2541 2023-07-14 Tobias Burnus <[email protected]>
2542
2543 * libgomp.texi (OMP_ALLOCATOR): Document the default values for
2544 the traits. Add crossref to 'Memory allocation'.
2545 (Memory allocation): Refer to OMP_ALLOCATOR for the available
2546 traits and allocators/mem spaces; document the default value
2547 for the pool_size trait.
2548
2549 2023-07-14 Tobias Burnus <[email protected]>
2550
2551 * allocator.c (omp_init_allocator): Check whether symbol from
2552 dlopened libnuma is available before using libnuma for
2553 allocations.
2554
2555 2023-07-13 David Edelsohn <[email protected]>
2556
2557 * testsuite/libgomp.c++/target-map-class-2.C: Require LTO.
2558 * testsuite/libgomp.c-c++-common/requires-4.c: Require LTO.
2559 * testsuite/libgomp.c-c++-common/requires-4a.c: Require LTO.
2560
2561 2023-07-12 Tobias Burnus <[email protected]>
2562
2563 * libgomp.texi (OpenMP 5.0): Replace '... stub' by @ref to
2564 'Memory allocation' section which contains the full status.
2565 (TR11): Remove differently worded duplicated entry.
2566
2567 2023-07-12 Tobias Burnus <[email protected]>
2568
2569 * allocator.c: Add ifdef for LIBGOMP_USE_LIBNUMA.
2570 (enum gomp_numa_memkind_kind): Renamed from gomp_memkind_kind;
2571 add GOMP_MEMKIND_LIBNUMA.
2572 (struct gomp_libnuma_data, gomp_init_libnuma, gomp_get_libnuma): New.
2573 (omp_init_allocator): Handle partition=nearest with libnuma if avail.
2574 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
2575 numa_alloc_local (+ memset), numa_free, and numa_realloc calls as
2576 needed.
2577 * config/linux/allocator.c (LIBGOMP_USE_LIBNUMA): Define
2578 * libgomp.texi: Fix a typo; use 'fi' instead of its ligature char.
2579 (Memory allocation): Renamed from 'Memory allocation with libmemkind';
2580 updated for libnuma usage.
2581 * testsuite/libgomp.c-c++-common/alloc-11.c: New test.
2582 * testsuite/libgomp.c-c++-common/alloc-12.c: New test.
2583
2584 2023-07-11 Tobias Burnus <[email protected]>
2585
2586 * allocator.c (omp_init_allocator): Use malloc for
2587 omp_high_bw_mem_space when the memkind lib is unavailable
2588 instead of returning omp_null_allocator.
2589 * libgomp.texi (OpenMP 5.0): Fix typo.
2590 (Memory allocation with libmemkind): Document implementation
2591 in more detail.
2592
2593 2023-06-22 Tobias Burnus <[email protected]>
2594
2595 * libgomp.texi: Use @var for ICV vars.
2596 (OpenMP Environment Variables): Mention _ALL/_DEV/_DEV_<no> variants,
2597 document which ICV is set and which scope the ICV has; extend/cleanup
2598 some @ref.
2599 (Implementation-defined ICV Initialization): New.
2600 (nvptx): Document the implementation-defined used per-warp stack size.
2601
2602 2023-06-19 Thomas Schwinge <[email protected]>
2603
2604 * testsuite/libgomp.c/target-51.c: Fix DejaGnu directive syntax
2605 error.
2606
2607 2023-06-19 Tobias Burnus <[email protected]>
2608
2609 * testsuite/libgomp.c/target-51.c: Accept more error msg variants
2610 as expected dg-output.
2611
2612 2023-06-19 Tobias Burnus <[email protected]>
2613
2614 PR middle-end/110270
2615 * target.c (gomp_map_vars_internal): Copy host value instead of NULL
2616 for GOMP_MAP_ZERO_LEN_ARRAY_SECTION if not mapped.
2617 * libgomp.texi (OpenMP 5.2 Impl.): Mark as 'Y'.
2618 * testsuite/libgomp.c/target-19.c: Update expected value.
2619 * testsuite/libgomp.c++/target-18.C: Likewise.
2620 * testsuite/libgomp.c++/target-19.C: Likewise.
2621 * testsuite/libgomp.c-c++-common/requires-unified-addr-2.c: New test.
2622 * testsuite/libgomp.c-c++-common/target-implicit-map-3.c: New test.
2623 * testsuite/libgomp.c-c++-common/target-implicit-map-4.c: New test.
2624
2625 2023-06-16 Tobias Burnus <[email protected]>
2626
2627 * target.c (resolve_device): Call gomp_get_num_devices early to ensure
2628 gomp_init_targets_once was called before using default-device-var.
2629 * testsuite/libgomp.c/target-55.c: New test.
2630 * testsuite/libgomp.c/target-55a.c: New test.
2631
2632 2023-06-15 Tobias Burnus <[email protected]>
2633
2634 * env.c (gomp_def_allocator_envvar): New var.
2635 (parse_allocator): Handle OpenMP 5.1 syntax.
2636 (cleanup_env): New.
2637 (omp_display_env): Output gomp_def_allocator_envvar
2638 for an allocator with traits.
2639 * libgomp.texi (OMP_ALLOCATOR, OMP_AFFINITY_FORMAT,
2640 OMP_DISPLAY_AFFINITY): New.
2641 * testsuite/libgomp.c/allocator-1.c: New test.
2642 * testsuite/libgomp.c/allocator-2.c: New test.
2643 * testsuite/libgomp.c/allocator-3.c: New test.
2644 * testsuite/libgomp.c/allocator-4.c: New test.
2645 * testsuite/libgomp.c/allocator-5.c: New test.
2646 * testsuite/libgomp.c/allocator-6.c: New test.
2647
2648 2023-06-14 Thomas Schwinge <[email protected]>
2649
2650 * target.c (resolve_device): Align a
2651 'OMP_TARGET_OFFLOAD=mandatory' diagnostic with others.
2652 * testsuite/libgomp.c/target-51.c: Adjust.
2653
2654 2023-06-14 Thomas Schwinge <[email protected]>
2655
2656 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Don't
2657 set.
2658 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags):
2659 Likewise.
2660 * testsuite/libgomp.c/simd-math-1.c: Remove
2661 '-foffload-options=-lm'.
2662 * testsuite/libgomp.fortran/fortran-torture_execute_math.f90:
2663 Likewise.
2664 * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
2665 Likewise.
2666
2667 2023-06-14 Thomas Schwinge <[email protected]>
2668
2669 * testsuite/libgomp.fortran/fortran-torture_execute_math.f90: New.
2670 * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
2671 Likewise.
2672
2673 2023-06-14 Thomas Schwinge <[email protected]>
2674
2675 * testsuite/libgomp.c/target-51.c: Fix typo.
2676
2677 2023-06-14 Tobias Burnus <[email protected]>
2678
2679 * env.c (gomp_default_icv_values): Init default_device_var to
2680 an nonconforming value - INT_MIN.
2681 (initialize_env): After env-var parsing, set default_device_var to
2682 device 0 unless OMP_TARGET_OFFLOAD=mandatory.
2683 (omp_display_env): If default_device_var is INT_MIN, call
2684 gomp_init_targets_once.
2685 * icv-device.c (omp_get_default_device): Likewise.
2686 * libgomp.texi (OMP_DEFAULT_DEVICE): Update init description.
2687 (OpenMP 5.2 Impl. Status): Mark OMP_TARGET_OFFLOAD=mandatory as 'Y'.
2688 * target.c (resolve_device): Improve error message device-num < 0
2689 with 'mandatory' and no no-host devices available.
2690 (gomp_target_init): Set default-device-var if INT_MIN.
2691 * testsuite/libgomp.c/target-48.c: New test.
2692 * testsuite/libgomp.c/target-49.c: New test.
2693 * testsuite/libgomp.c/target-50.c: New test.
2694 * testsuite/libgomp.c/target-50a.c: New test.
2695 * testsuite/libgomp.c/target-51.c: New test.
2696 * testsuite/libgomp.c/target-52.c: New test.
2697 * testsuite/libgomp.c/target-53.c: New test.
2698 * testsuite/libgomp.c/target-54.c: New test.
2699
2700 2023-06-13 Tobias Burnus <[email protected]>
2701
2702 PR libgomp/109837
2703 * testsuite/libgomp.c-c++-common/requires-unified-addr-1.c: New test.
2704 * testsuite/libgomp.fortran/requires-unified-addr-1.f90: New test.
2705
2706 2023-06-12 Tobias Burnus <[email protected]>
2707
2708 * target.c (gomp_to_device_kind_p, gomp_map_vars_internal): Replace
2709 GOMP_MAP_PRESENT_{FROM,TO,TOFROM,ACLLOC} by GOMP_MAP_FORCE_PRESENT.
2710 (gomp_map_vars_internal, gomp_update): Likewise; unify and improve
2711 error message.
2712 * testsuite/libgomp.c-c++-common/target-present-2.c: Update for
2713 changed error message.
2714 * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
2715 * testsuite/libgomp.fortran/target-present-2.f90: Likewise.
2716 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
2717 * testsuite/libgomp.c-c++-common/target-present-1.c: Likewise and
2718 extend testcase to check that data is copied when needed.
2719 * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
2720 * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
2721
2722 2023-06-07 Thomas Schwinge <[email protected]>
2723 Tobias Burnus <[email protected]>
2724
2725 * testsuite/libgomp.c-c++-common/target-present-1.c: Run code
2726 also for non-offload_device targets; check that it runs
2727 successfully for those and for all until a checkpoint for all
2728 * testsuite/libgomp.c-c++-common/target-present-2.c: Likewise.
2729 * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
2730 * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
2731 * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
2732 * testsuite/libgomp.fortran/target-present-2.f90: Likewise;
2733 add missing vars to map clause.
2734
2735 2023-06-06 Tobias Burnus <[email protected]>
2736
2737 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Regard
2738 unified_address requirement as supported.
2739 * libgomp.texi (OpenMP 5.0, AMD Radeon, nvptx): Remove
2740 'unified_address' from the not-supported requirements.
2741
2742 2023-06-06 Kwok Cheung Yeung <[email protected]>
2743 Tobias Burnus <[email protected]>
2744
2745 * libgomp.texi (OpenMP 5.1 Impl. status): Set 'present' support for
2746 defaultmap to 'Y', add 'Y' entry for 'present' on to/from/map clauses.
2747 * target.c (gomp_to_device_kind_p): Add map kinds with 'present'
2748 modifier.
2749 (gomp_map_vars_existing): Use new GOMP_MAP_FORCE_P macro.
2750 (gomp_map_vars_internal, gomp_update, gomp_target_rev):
2751 Emit runtime error if memory region not present.
2752 * testsuite/libgomp.c-c++-common/target-present-1.c: New test.
2753 * testsuite/libgomp.c-c++-common/target-present-2.c: New test.
2754 * testsuite/libgomp.c-c++-common/target-present-3.c: New test.
2755 * testsuite/libgomp.fortran/target-present-1.f90: New test.
2756 * testsuite/libgomp.fortran/target-present-2.f90: New test.
2757 * testsuite/libgomp.fortran/target-present-3.f90: New test.
2758
2759 2023-06-02 Thomas Schwinge <[email protected]>
2760
2761 PR testsuite/66005
2762 * testsuite/lib/libgomp.exp: 'flock' through stdout.
2763 * testsuite/flock: New.
2764 * configure.ac (FLOCK): Point to that if no 'flock' available, but
2765 'perl' is.
2766 * configure: Regenerate.
2767
2768 2023-06-02 Thomas Schwinge <[email protected]>
2769
2770 * configure.ac (PERL): Remove.
2771 * configure: Regenerate.
2772 * Makefile.in: Likewise.
2773 * testsuite/Makefile.in: Likewise.
2774
2775 2023-06-01 Tobias Burnus <[email protected]>
2776
2777 * libgomp.texi (OpenMP 5.2): Mark pure-directive handling as 'Y'.
2778
2779 2023-05-26 Tobias Burnus <[email protected]>
2780
2781 * testsuite/libgomp.fortran/allocate-4.f90: Update dg-error.
2782
2783 2023-05-21 Tobias Burnus <[email protected]>
2784
2785 PR libgomp/109875
2786 * config/gcn/target.c (GOMP_teams4): Honor nteams-var ICV.
2787 * config/nvptx/target.c (GOMP_teams4): Likewise.
2788 * testsuite/libgomp.c-c++-common/teams-nteams-icv-1.c: New test.
2789 * testsuite/libgomp.c-c++-common/teams-nteams-icv-2.c: New test.
2790 * testsuite/libgomp.c-c++-common/teams-nteams-icv-3.c: New test.
2791 * testsuite/libgomp.c-c++-common/teams-nteams-icv-4.c: New test.
2792
2793 2023-05-19 Jakub Jelinek <[email protected]>
2794
2795 PR libgomp/109904
2796 * configure.ac (link_gomp): Include also $DL_LIBS.
2797 * configure: Regenerated.
2798
2799 2023-05-17 Tobias Burnus <[email protected]>
2800
2801 * testsuite/libgomp.fortran/target-enter-data-3.f90: Uncomment
2802 'target exit data'.
2803 * testsuite/libgomp.fortran/target-enter-data-4.f90: New test.
2804 * testsuite/libgomp.fortran/target-enter-data-5.f90: New test.
2805 * testsuite/libgomp.fortran/target-enter-data-6.f90: New test.
2806 * testsuite/libgomp.fortran/target-enter-data-7.f90: New test.
2807
2808 2023-05-15 Thomas Schwinge <[email protected]>
2809
2810 PR testsuite/66005
2811 * configure.ac: Look for 'flock'.
2812 * testsuite/Makefile.am (gcc_test_parallel_slots): Enable parallel testing.
2813 * testsuite/config/default.exp: Don't 'load_lib "standard.exp"' here...
2814 * testsuite/lib/libgomp.exp: ... but here, instead.
2815 (libgomp_load): Override for parallel testing.
2816 * testsuite/libgomp-site-extra.exp.in (FLOCK): Set.
2817 * configure: Regenerate.
2818 * Makefile.in: Regenerate.
2819 * testsuite/Makefile.in: Regenerate.
2820
2821 2023-05-15 Rainer Orth <[email protected]>
2822 Thomas Schwinge <[email protected]>
2823
2824 PR testsuite/66005
2825 * testsuite/Makefile.am (PWD_COMMAND): New variable.
2826 (%/site.exp): New target.
2827 (check_p_numbers0, check_p_numbers1, check_p_numbers2)
2828 (check_p_numbers3, check_p_numbers4, check_p_numbers5)
2829 (check_p_numbers6, check_p_numbers, gcc_test_parallel_slots)
2830 (check_p_subdirs)
2831 (check_DEJAGNU_libgomp_targets): New variables.
2832 ($(check_DEJAGNU_libgomp_targets)): New target.
2833 ($(check_DEJAGNU_libgomp_targets)): New dependency.
2834 (check-DEJAGNU $(check_DEJAGNU_libgomp_targets)): New targets.
2835 * testsuite/Makefile.in: Regenerate.
2836 * testsuite/lib/libgomp.exp: For parallel testing,
2837 'load_file ../libgomp-test-support.exp'.
2838
2839 2023-05-15 Thomas Schwinge <[email protected]>
2840
2841 PR testsuite/91884
2842 * configure.ac: 'AC_SUBST(CXX)'.
2843 * configure: Regenerate.
2844 * Makefile.in: Likewise.
2845 * testsuite/Makefile.in: Likewise.
2846 * testsuite/libgomp-site-extra.exp.in (GXX_UNDER_TEST)
2847 (GFORTRAN_UNDER_TEST): Set.
2848 * testsuite/lib/libgomp.exp (libgomp_init): Adjust.
2849 * testsuite/libgomp.c++/c++.exp: Use 'GXX_UNDER_TEST'.
2850 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
2851 * testsuite/libgomp.fortran/fortran.exp: Use
2852 'GFORTRAN_UNDER_TEST'.
2853 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2854
2855 2023-05-15 Thomas Schwinge <[email protected]>
2856
2857 PR testsuite/91884
2858 * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't
2859 specify compiler.
2860 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Specify compiler.
2861 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
2862 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
2863 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
2864 Likewise.
2865 * testsuite/libgomp.oacc-c++/c++.exp (ALWAYS_CFLAGS): Likewise.
2866 * testsuite/libgomp.oacc-c/c.exp (ALWAYS_CFLAGS): Likewise.
2867 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS):
2868 Likewise.
2869
2870 2023-05-12 Tobias Burnus <[email protected]>
2871
2872 PR libstdc++/109816
2873 * testsuite/libgomp.c++/target-map-class-1.C: New test.
2874 * testsuite/libgomp.c++/target-map-class-2.C: New test.
2875
2876 2023-05-12 Thomas Schwinge <[email protected]>
2877
2878 * testsuite/lib/libgomp.exp (libgomp_target_compile): Generalize
2879 'lang_library_path' into a list of 'lang_library_paths'.
2880 * testsuite/libgomp.c++/c++.exp: Adjust.
2881 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
2882 * testsuite/libgomp.fortran/fortran.exp: Adjust. Use that for
2883 libquadmath, too.
2884 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2885
2886 2023-05-12 Thomas Schwinge <[email protected]>
2887
2888 * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't look
2889 at 'lang_test_file_found'.
2890 * testsuite/libgomp.c++/c++.exp: Don't set and use it, and instead
2891 'return' early if not able to test. Simplify 'ld_library_path' setup.
2892 * testsuite/libgomp.fortran/fortran.exp: Likewise.
2893 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
2894 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2895
2896 2023-05-12 Thomas Schwinge <[email protected]>
2897
2898 * testsuite/libgomp.c++/c++.exp: Resolve 'lang_test_file_found'
2899 first.
2900 * testsuite/libgomp.fortran/fortran.exp: Likewise.
2901 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
2902 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2903
2904 2023-05-12 Thomas Schwinge <[email protected]>
2905
2906 * testsuite/libgomp.c++/c++.exp: Localize 'lang_[...]' etc.
2907 * testsuite/libgomp.c/c.exp: Likewise.
2908 * testsuite/libgomp.fortran/fortran.exp: Likewise.
2909 * testsuite/libgomp.graphite/graphite.exp: Likewise.
2910 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
2911 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2912 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2913
2914 2023-05-09 Thomas Schwinge <[email protected]>
2915
2916 * testsuite/libgomp.c++/c++.exp: Don't set 'lang_test_file'.
2917 * testsuite/libgomp.fortran/fortran.exp: Likewise.
2918 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
2919 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2920 * testsuite/libgomp.c/c.exp: Unset 'lang_test_file_found' instead of
2921 'lang_test_file'.
2922 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2923 * testsuite/libgomp.graphite/graphite.exp: Likewise.
2924 * testsuite/lib/libgomp.exp (libgomp_target_compile): Look for
2925 'lang_test_file_found' instead of 'lang_test_file'.
2926
2927 2023-05-09 Thomas Schwinge <[email protected]>
2928
2929 * testsuite/lib/libgomp.exp (libgomp_init): Only use 'blddir' if
2930 set.
2931 * testsuite/libgomp.c++/c++.exp: Likewise.
2932 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
2933
2934 2023-05-09 Thomas Schwinge <[email protected]>
2935
2936 * testsuite/libgomp.c++/c++.exp (blddir): Don't set.
2937 * testsuite/libgomp.oacc-c++/c++.exp (blddir): Likewise.
2938
2939 2023-05-08 Thomas Schwinge <[email protected]>
2940
2941 * testsuite/libgomp.c++/c++.exp: Use 'lang_include_flags' instead
2942 of 'libstdcxx_includes'.
2943 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
2944
2945 2023-05-08 Thomas Schwinge <[email protected]>
2946
2947 * target.c (gomp_target_rev): Instead of 'dev_to_host_cpy',
2948 'host_to_dev_cpy', 'token', take a single 'goacc_asyncqueue'.
2949 * libgomp.h (gomp_target_rev): Adjust.
2950 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): Adjust.
2951 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): Adjust.
2952 * plugin/plugin-gcn.c (process_reverse_offload): Adjust.
2953 * plugin/plugin-nvptx.c (rev_off_dev_to_host_cpy)
2954 (rev_off_host_to_dev_cpy): Remove.
2955 (GOMP_OFFLOAD_run): Adjust.
2956
2957 2023-05-04 Julian Brown <[email protected]>
2958
2959 PR fortran/109622
2960 * testsuite/libgomp.fortran/pr109622.f90: Move test...
2961 * testsuite/libgomp.oacc-fortran/pr109622.f90: ...to here. Ignore
2962 vector length warning.
2963 * testsuite/libgomp.fortran/pr109622-2.f90: Move test...
2964 * testsuite/libgomp.oacc-fortran/pr109622-2.f90: ...to here. Add
2965 missing copyin/copyout variable. Ignore vector length warnings.
2966 * testsuite/libgomp.fortran/pr109622-3.f90: Move test...
2967 * testsuite/libgomp.oacc-fortran/pr109622-3.f90: ...to here. Ignore
2968 vector length warnings.
2969 * testsuite/libgomp.oacc-fortran/pr109622-4.f90: New test.
2970
2971 2023-04-28 Julian Brown <[email protected]>
2972
2973 PR fortran/109622
2974 * testsuite/libgomp.fortran/pr109622.f90: New test.
2975 * testsuite/libgomp.fortran/pr109622-2.f90: New test.
2976 * testsuite/libgomp.fortran/pr109622-3.f90: New test.
2977
2978 2023-04-25 Tobias Burnus <[email protected]>
2979
2980 * testsuite/libgomp.c-c++-common/scan-1.c: New test.
2981 * testsuite/libgomp.c/scan-23.c: New test.
2982 * testsuite/libgomp.fortran/scan-2.f90: New test.
2983
2984 2023-03-28 Rainer Orth <[email protected]>
2985
2986 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Add
2987 weak_undefined options.
2988
2989 2023-03-24 Tobias Burnus <[email protected]>
2990
2991 * libgomp.texi (Offload-Target Specifics): Grammar fix.
2992
2993 2023-03-24 Thomas Schwinge <[email protected]>
2994
2995 PR fortran/104949
2996 * target.c (gomp_map_vars_internal) <GOMP_MAP_FIRSTPRIVATE>: Add
2997 caveat/safeguard.
2998
2999 2023-03-10 Thomas Schwinge <[email protected]>
3000
3001 PR libgomp/90596
3002 * target.c (gomp_map_vars_internal): Allow for
3003 'param_kind == GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_TARGET'.
3004 * oacc-parallel.c (GOACC_parallel_keyed): Pass
3005 'GOMP_MAP_VARS_TARGET' to 'goacc_map_vars'.
3006 * plugin/plugin-gcn.c (alloc_by_agent, gcn_exec)
3007 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
3008 Adjust, simplify.
3009 (gomp_offload_free): Remove.
3010 * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
3011 (GOMP_OFFLOAD_openacc_async_exec): Adjust, simplify.
3012 (cuda_free_argmem): Remove.
3013 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
3014 Adjust.
3015
3016 2023-03-10 Thomas Schwinge <[email protected]>
3017
3018 * target.c (gomp_copy_host2dev, gomp_map_vars_internal): Allow
3019 libgomp 'cbuf' buffering with OpenACC 'async' for 'ephemeral'
3020 data.
3021
3022 2023-03-10 Thomas Schwinge <[email protected]>
3023
3024 * target.c (gomp_map_vars_internal): Use 'OFFSET_INLINED' for
3025 'GOMP_MAP_IF_PRESENT'.
3026 * plugin/plugin-gcn.c (gcn_exec, GOMP_OFFLOAD_openacc_exec)
3027 (GOMP_OFFLOAD_openacc_async_exec): Adjust.
3028 * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
3029 (GOMP_OFFLOAD_openacc_async_exec): Likewise.
3030 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: Add 'async'
3031 testing.
3032 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: Likewise.
3033
3034 2023-03-10 Thomas Schwinge <[email protected]>
3035
3036 * oacc-async.c (goacc_wait): Remove 'acc_async_test' -> skip
3037 shortcut.
3038
3039 2023-03-10 Thomas Schwinge <[email protected]>
3040
3041 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Document/verify
3042 another aspect of OpenACC 'async' semantics.
3043
3044 2023-03-10 Thomas Schwinge <[email protected]>
3045
3046 * plugin/plugin-gcn.c (gcn_exec): Fix 'acc_ev_enqueue_launch_end'
3047 position.
3048 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
3049 Verify 'acc_ev_alloc', 'acc_ev_free'.
3050
3051 2023-03-09 Hongyu Wang <[email protected]>
3052
3053 PR libgomp/109062
3054 * env.c (wait_policy): Initialize to -1.
3055 (initialize_icvs): Initialize icvs->wait_policy to -1.
3056 * testsuite/libgomp.c-c++-common/pr109062.c: New test.
3057
3058 2023-03-08 Tobias Burnus <[email protected]>
3059
3060 * libgomp.texi (Offload-Target Specifics): Mention GCN_STACK_SIZE.
3061
3062 2023-03-02 Kwok Cheung Yeung <[email protected]>
3063 Paul-Antoine Arras <[email protected]>
3064
3065 * testsuite/libgomp.c/simd-math-1.c: New testcase.
3066
3067 2023-03-01 Tobias Burnus <[email protected]>
3068
3069 PR middle-end/108546
3070 * testsuite/libgomp.fortran/is_device_ptr-3.f90: New test.
3071 * testsuite/libgomp.fortran/use_device_ptr-optional-4.f90: New test.
3072
3073 2023-02-22 Thomas Schwinge <[email protected]>
3074
3075 * testsuite/libgomp.fortran/alloc-10.f90: Use
3076 '-Wno-complain-wrong-lang'.
3077 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
3078 * testsuite/libgomp.fortran/alloc-7.f90: Likewise.
3079 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
3080 * testsuite/libgomp.fortran/allocate-1.f90: Likewise.
3081 * testsuite/libgomp.fortran/depend-4.f90: Likewise.
3082 * testsuite/libgomp.fortran/depend-5.f90: Likewise.
3083 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
3084 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
3085 * testsuite/libgomp.fortran/depend-inoutset-1.f90: Likewise.
3086 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90:
3087 Likewise.
3088 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90:
3089 Likewise.
3090 * testsuite/libgomp.fortran/order-reproducible-1.f90: Likewise.
3091 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
3092 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3093 * testsuite/libgomp.fortran/task-detach-6.f90: Remove left-over
3094 'dg-prune-output'.
3095
3096 2023-02-16 Jakub Jelinek <[email protected]>
3097
3098 * libgomp.texi: Fix typos - theads -> threads.
3099
3100 2023-02-16 Jakub Jelinek <[email protected]>
3101
3102 * testsuite/libgomp.fortran/target-nowait-array-section.f90: Fix
3103 comment typo and improve its wording.
3104
3105 2023-02-15 Tobias Burnus <[email protected]>
3106
3107 * target.c (gomp_target_rev): Dereference ptr
3108 to get device address.
3109 * testsuite/libgomp.fortran/reverse-offload-5.f90: Add test
3110 for unallocated allocatable.
3111
3112 2023-02-15 Tobias Burnus <[email protected]>
3113
3114 * target.c (gomp_map_vars_internal): Add 'i > 0' before doing a
3115 kind check.
3116 (GOMP_target_enter_exit_data): If the next map item is
3117 GOMP_MAP_ALWAYS_POINTER map it together with the current item.
3118 * testsuite/libgomp.fortran/target-enter-data-3.f90: New test.
3119
3120 2023-02-09 Tobias Burnus <[email protected]>
3121
3122 PR fortran/107424
3123 * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: New test.
3124 * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: New test.
3125 * testsuite/libgomp.fortran/non-rectangular-loop-2.f90: New test.
3126 * testsuite/libgomp.fortran/non-rectangular-loop-3.f90: New test.
3127 * testsuite/libgomp.fortran/non-rectangular-loop-4.f90: New test.
3128 * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: New test.
3129
3130 2023-02-07 Thomas Schwinge <[email protected]>
3131
3132 * testsuite/libgomp.fortran/reverse-offload-6.f90: Fix nvptx
3133 offloading compilation.
3134
3135 2023-02-03 Tobias Burnus <[email protected]>
3136
3137 * target.c (gomp_target_rev): Handle mapnum == 0 and avoid
3138 freeing not allocated memory.
3139 * testsuite/libgomp.fortran/reverse-offload-6.f90: New test.
3140
3141 2023-02-03 Tobias Burnus <[email protected]>
3142
3143 * libgomp.texi (5.0 Impl. Status, gcn specifics): Update for
3144 reverse offload.
3145 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Accept
3146 reverse-offload requirement.
3147
3148 2023-02-02 Andrew Stubbs <[email protected]>
3149
3150 * config/gcn/libgomp-gcn.h (DEFAULT_GCN_STACK_SIZE): New define.
3151 (DEFAULT_TEAM_ARENA_SIZE): New define.
3152 (struct heap): Move to this file.
3153 (struct kernargs_abi): Likewise.
3154 * config/gcn/team.c (gomp_gcn_enter_kernel): Use team arena size from
3155 the kernargs.
3156 * libgomp.h: Include libgomp-gcn.h.
3157 (TEAM_ARENA_SIZE): Remove.
3158 (team_malloc): Update the error message.
3159 * plugin/plugin-gcn.c (struct kernargs): Move common content to
3160 struct kernargs_abi.
3161 (struct agent_info): Rename team arenas to ephemeral memories.
3162 (struct team_arena_list): Rename ....
3163 (struct ephemeral_memories_list): to this.
3164 (struct heap): Delete.
3165 (team_arena_size): New variable.
3166 (stack_size): New variable.
3167 (print_kernel_dispatch): Update debug messages.
3168 (init_environment_variables): Read GCN_TEAM_ARENA_SIZE.
3169 Read GCN_STACK_SIZE.
3170 (get_team_arena): Rename ...
3171 (configure_ephemeral_memories): ... to this, and set up stacks.
3172 (release_team_arena): Rename ...
3173 (release_ephemeral_memories): ... to this.
3174 (destroy_team_arenas): Rename ...
3175 (destroy_ephemeral_memories): ... to this.
3176 (create_kernel_dispatch): Add num_threads parameter.
3177 Adjust for kernargs_abi refactor and ephemeral memories.
3178 (release_kernel_dispatch): Adjust for ephemeral memories.
3179 (run_kernel): Pass thread-count to create_kernel_dispatch.
3180 (GOMP_OFFLOAD_init_device): Adjust for ephemeral memories.
3181 (GOMP_OFFLOAD_fini_device): Adjust for ephemeral memories.
3182
3183 2023-02-02 Tobias Burnus <[email protected]>
3184
3185 * libgomp.texi (OpenMP TR11): Fix item for 'strict' modifier.
3186
3187 2023-02-01 Tobias Burnus <[email protected]>
3188
3189 * testsuite/libgomp.fortran/allocate-3.f90: Fix ALIGN
3190 usage, remove unused -fdump-tree-original.
3191 * testsuite/libgomp.fortran/allocate-4.f90: New.
3192
3193 2023-02-01 Tobias Burnus <[email protected]>
3194
3195 * libgomp.texi (5.0 Impl. Status): Update 'requires' and 'ancestor'.
3196 (GCN): Add item about 'omp requires'.
3197 (nvptx): Likewise; add item about reverse offload.
3198
3199 2023-01-27 Tobias Burnus <[email protected]>
3200
3201 PR fortran/108558
3202 * testsuite/libgomp.fortran/has_device_addr.f90: New test.
3203
3204 2023-01-23 Tobias Burnus <[email protected]>
3205
3206 * libgomp.texi (OpenMP 5.0): Set non-rectangular
3207 loop nest back to 'P' as Fortran support is incomplete.
3208
3209 2023-01-19 Jakub Jelinek <[email protected]>
3210
3211 PR middle-end/108459
3212 * testsuite/libgomp.c/pr108459.c: New test.
3213
3214 2023-01-17 Martin Liska <[email protected]>
3215
3216 * Makefile.in: Regenerate.
3217 * configure: Regenerate.
3218
3219 2023-01-07 LIU Hao <[email protected]>
3220
3221 PR middle-end/108300
3222 * config/mingw32/proc.c: Define `WIN32_LEAN_AND_MEAN` before
3223 <windows.h>.
3224
3225 2023-01-05 Jakub Jelinek <[email protected]>
3226
3227 PR c++/108286
3228 * testsuite/libgomp.c++/pr108286.C: New test.
3229
3230 2023-01-02 Jakub Jelinek <[email protected]>
3231
3232 * libgomp.texi: Bump @copying's copyright year.
3233
3234 2022-12-21 Chung-Lin Tang <[email protected]>
3235
3236 PR target/99555
3237 * config/nvptx/bar.c (generation_to_barrier): Remove.
3238 (futex_wait,futex_wake,do_spin,do_wait): Remove.
3239 (GOMP_WAIT_H): Remove.
3240 (#include "../linux/bar.c"): Remove.
3241 (gomp_barrier_wait_end): New function.
3242 (gomp_barrier_wait): Likewise.
3243 (gomp_barrier_wait_last): Likewise.
3244 (gomp_team_barrier_wait_end): Likewise.
3245 (gomp_team_barrier_wait): Likewise.
3246 (gomp_team_barrier_wait_final): Likewise.
3247 (gomp_team_barrier_wait_cancel_end): Likewise.
3248 (gomp_team_barrier_wait_cancel): Likewise.
3249 (gomp_team_barrier_cancel): Likewise.
3250 * config/nvptx/bar.h (gomp_barrier_t): Remove waiters, lock fields.
3251 (gomp_barrier_init): Remove init of waiters, lock fields.
3252 (gomp_team_barrier_wake): Remove prototype, add new static inline
3253 function.
3254
3255 2022-12-21 Jakub Jelinek <[email protected]>
3256
3257 PR c++/108180
3258 * testsuite/libgomp.c++/pr108180.C: New test.
3259
3260 2022-12-16 Tobias Burnus <[email protected]>
3261
3262 PR libfortran/108056
3263 * testsuite/libgomp.fortran/allocate-4.f90: Remove
3264 accidentally added file.
3265
3266 2022-12-15 Tobias Burnus <[email protected]>
3267
3268 PR libfortran/108056
3269 * testsuite/libgomp.fortran/allocate-4.f90: New file.
3270
3271 2022-12-14 Julian Brown <[email protected]>
3272
3273 * testsuite/libgomp.fortran/combined-directive-splitting-1.f90: New
3274 test.
3275
3276 2022-12-10 Tobias Burnus <[email protected]>
3277
3278 * libgomp.h (struct target_mem_desc): Predeclare; move
3279 below after 'reverse_splay_tree_node' and add rev_array
3280 member.
3281 (struct reverse_splay_tree_key_s, reverse_splay_compare): New.
3282 (reverse_splay_tree_node, reverse_splay_tree,
3283 reverse_splay_tree_key): New typedef.
3284 (struct gomp_device_descr): Add mem_map_rev member.
3285 * oacc-host.c (host_dispatch): NULL init .mem_map_rev.
3286 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Claim
3287 support for GOMP_REQUIRES_REVERSE_OFFLOAD.
3288 * splay-tree.h (splay_tree_callback_stop): New typedef; like
3289 splay_tree_callback but returning int not void.
3290 (splay_tree_foreach_lazy): Define; like splay_tree_foreach but
3291 taking splay_tree_callback_stop as argument.
3292 * splay-tree.c (splay_tree_foreach_internal_lazy,
3293 splay_tree_foreach_lazy): New; but early exit if callback returns
3294 nonzero.
3295 * target.c: Instatiate splay_tree_c with splay_tree_prefix 'reverse'.
3296 (gomp_map_lookup_rev): New.
3297 (gomp_load_image_to_device): Handle reverse-offload function
3298 lookup table.
3299 (gomp_unload_image_from_device): Free devicep->mem_map_rev.
3300 (struct gomp_splay_tree_rev_lookup_data, gomp_splay_tree_rev_lookup,
3301 gomp_map_rev_lookup, struct cpy_data, gomp_map_cdata_lookup_int,
3302 gomp_map_cdata_lookup): New auxiliary structs and functions for
3303 gomp_target_rev.
3304 (gomp_target_rev): Implement reverse offloading and its mapping.
3305 (gomp_target_init): Init current_device.mem_map_rev.root.
3306 * testsuite/libgomp.fortran/reverse-offload-2.f90: New test.
3307 * testsuite/libgomp.fortran/reverse-offload-3.f90: New test.
3308 * testsuite/libgomp.fortran/reverse-offload-4.f90: New test.
3309 * testsuite/libgomp.fortran/reverse-offload-5.f90: New test.
3310 * testsuite/libgomp.fortran/reverse-offload-5a.f90: New test without
3311 mapping of on-device allocated variables.
3312
3313 2022-12-09 Tobias Burnus <[email protected]>
3314
3315 * libgomp.texi (5.1 Impl. Status): Split allocate clause/directive
3316 item about 'align'; mark clause as 'Y' and directive as 'N'.
3317 * testsuite/libgomp.fortran/allocate-2.f90: New test.
3318 * testsuite/libgomp.fortran/allocate-3.f90: New test.
3319
3320 2022-12-06 Marcel Vollweiler <[email protected]>
3321
3322 * config/gcn/icv-device.c (omp_get_teams_thread_limit): Added to
3323 allow processing of device-specific values.
3324 (omp_set_teams_thread_limit): Likewise.
3325 (ialias): Likewise.
3326 * config/nvptx/icv-device.c (omp_get_teams_thread_limit): Likewise.
3327 (omp_set_teams_thread_limit): Likewise.
3328 (ialias): Likewise.
3329 * icv-device.c (omp_get_teams_thread_limit): Likewise.
3330 (ialias): Likewise.
3331 (omp_set_teams_thread_limit): Likewise.
3332 * icv.c (omp_set_teams_thread_limit): Removed.
3333 (omp_get_teams_thread_limit): Likewise.
3334 (ialias): Likewise.
3335 * libgomp.texi: Updated documentation for nvptx and gcn corresponding
3336 to the limitation of the number of teams.
3337 * plugin/plugin-gcn.c (limit_teams): New helper function that limits
3338 the number of teams by twice the number of compute units.
3339 (parse_target_attributes): Limit the number of teams on gcn offload
3340 devices.
3341 * target.c (get_gomp_offload_icvs): Added teams_thread_limit_var
3342 handling.
3343 (gomp_load_image_to_device): Added a size check for the ICVs struct
3344 variable.
3345 (gomp_copy_back_icvs): New function that is used in GOMP_target_ext to
3346 copy back the ICV values from device to host.
3347 (GOMP_target_ext): Update the number of teams and threads in the kernel
3348 args also considering device-specific values.
3349 * testsuite/libgomp.c-c++-common/icv-4.c: Fixed an error in the reading
3350 of OMP_TEAMS_THREAD_LIMIT from the environment.
3351 * testsuite/libgomp.c-c++-common/icv-5.c: Extended.
3352 * testsuite/libgomp.c-c++-common/icv-6.c: Extended.
3353 * testsuite/libgomp.c-c++-common/icv-7.c: Extended.
3354 * testsuite/libgomp.c-c++-common/icv-9.c: New test.
3355 * testsuite/libgomp.fortran/icv-5.f90: New test.
3356 * testsuite/libgomp.fortran/icv-6.f90: New test.
3357
3358 2022-12-06 Tobias Burnus <[email protected]>
3359
3360 * libgomp.texi (OpenMP 5.2): Add missing 'the'.
3361 (TR11): Add missing '@tab N @tab'.
3362
3363 2022-11-30 Tobias Burnus <[email protected]>
3364
3365 * libgomp.texi (OpenMP Context Selectors): Add 'gfx803' to gcn's isa.
3366
3367 2022-11-30 Paul-Antoine Arras <[email protected]>
3368
3369 * testsuite/libgomp.c/declare-variant-4-fiji.c: New test.
3370 * testsuite/libgomp.c/declare-variant-4-gfx803.c: New test.
3371 * testsuite/libgomp.c/declare-variant-4-gfx900.c: New test.
3372 * testsuite/libgomp.c/declare-variant-4-gfx906.c: New test.
3373 * testsuite/libgomp.c/declare-variant-4-gfx908.c: New test.
3374 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: New test.
3375 * testsuite/libgomp.c/declare-variant-4.h: New header file.
3376
3377 2022-11-28 Tobias Burnus <[email protected]>
3378
3379 * libgomp.texi (OpenMP 5.2): Mark end-directive as Y.
3380
3381 2022-11-25 Sandra Loosemore <[email protected]>
3382
3383 * testsuite/lib/libgomp.exp: Load scanoffloadipa.exp library.
3384 * testsuite/libgomp.c/target-simd-clone-1.c: New.
3385 * testsuite/libgomp.c/target-simd-clone-2.c: New.
3386 * testsuite/libgomp.c/target-simd-clone-3.c: New.
3387
3388 2022-11-25 Tobias Burnus <[email protected]>
3389
3390 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Use unsigned int
3391 for 'i' to match 'fn_entries'; regard absent GOMP_REV_OFFLOAD_VAR
3392 as valid and the code having no reverse-offload code.
3393 * testsuite/libgomp.c-c++-common/reverse-offload-2.c: New test.
3394
3395 2022-11-25 Tobias Burnus <[email protected]>
3396
3397 * libgomp.texi (OpenMP Implementation Status): Add three 5.1 items
3398 and status for Technical Report (TR) 11.
3399
3400 2022-11-21 Tobias Burnus <[email protected]>
3401
3402 * config/gcn/libgomp-gcn.h (struct output):
3403 Remove 'msg_u64' from the union, change
3404 value_u64[2] to value_u64[6].
3405 * config/gcn/target.c (GOMP_target_ext): Update accordingly.
3406 * plugin/plugin-gcn.c (process_reverse_offload, console_output):
3407 Likewise.
3408
3409 2022-11-19 Tobias Burnus <[email protected]>
3410
3411 * config/gcn/libgomp-gcn.h: New file; contains
3412 struct output, declared previously in plugin-gcn.c.
3413 * config/gcn/target.c: Include it.
3414 (GOMP_ADDITIONAL_ICVS): Declare as extern var.
3415 (GOMP_target_ext): Handle reverse offload.
3416 * plugin/plugin-gcn.c: Include libgomp-gcn.h.
3417 (struct kernargs): Replace struct def by the one
3418 from libgomp-gcn.h for output_data.
3419 (process_reverse_offload): New.
3420 (console_output): Call it.
3421
3422 2022-11-16 Tobias Burnus <[email protected]>
3423 Andrew Stubbs <[email protected]>
3424
3425 * config/gcn/team.c (gomp_gcn_enter_kernel): Use
3426 __builtin_gcn_kernarg_ptr instead of asm ("s8").
3427
3428 2022-11-14 Martin Liska <[email protected]>
3429
3430 Revert:
3431 2022-11-14 Martin Liska <[email protected]>
3432
3433 * doc/amd-radeon-gcn.rst: New file.
3434 * doc/conf.py: New file.
3435 * doc/copyright.rst: New file.
3436 * doc/cuda-streams-usage.rst: New file.
3437 * doc/enabling-openacc.rst: New file.
3438 * doc/enabling-openmp.rst: New file.
3439 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
3440 * doc/first-invocation-openacc-library-api.rst: New file.
3441 * doc/funding.rst: New file.
3442 * doc/general-public-license-3.rst: New file.
3443 * doc/gnu-free-documentation-license.rst: New file.
3444 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
3445 * doc/index.rst: New file.
3446 * doc/indices-and-tables.rst: New file.
3447 * doc/introduction.rst: New file.
3448 * doc/memory-allocation-with-libmemkind.rst: New file.
3449 * doc/nvptx.rst: New file.
3450 * doc/offload-target-specifics.rst: New file.
3451 * doc/openacc-environment-variables.rst: New file.
3452 * doc/openacc-environment-variables/accdevicenum.rst: New file.
3453 * doc/openacc-environment-variables/accdevicetype.rst: New file.
3454 * doc/openacc-environment-variables/accproflib.rst: New file.
3455 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
3456 * doc/openacc-introduction.rst: New file.
3457 * doc/openacc-library-and-environment-variables.rst: New file.
3458 * doc/openacc-library-interoperability.rst: New file.
3459 * doc/openacc-profiling-interface.rst: New file.
3460 * doc/openacc-runtime-library-routines.rst: New file.
3461 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
3462 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
3463 * doc/openacc-runtime-library-routines/accattach.rst: New file.
3464 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
3465 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
3466 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
3467 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
3468 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
3469 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
3470 * doc/openacc-runtime-library-routines/accfree.rst: New file.
3471 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
3472 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
3473 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
3474 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
3475 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
3476 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
3477 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
3478 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
3479 * doc/openacc-runtime-library-routines/accinit.rst: New file.
3480 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
3481 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
3482 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
3483 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
3484 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
3485 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
3486 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
3487 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
3488 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
3489 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
3490 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
3491 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
3492 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
3493 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
3494 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
3495 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
3496 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
3497 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
3498 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
3499 * doc/openacc-runtime-library-routines/accwait.rst: New file.
3500 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
3501 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
3502 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
3503 * doc/openmp-context-selectors.rst: New file.
3504 * doc/openmp-environment-variables.rst: New file.
3505 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
3506 * doc/openmp-environment-variables/gompdebug.rst: New file.
3507 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
3508 * doc/openmp-environment-variables/gompspincount.rst: New file.
3509 * doc/openmp-environment-variables/gompstacksize.rst: New file.
3510 * doc/openmp-environment-variables/ompcancellation.rst: New file.
3511 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
3512 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
3513 * doc/openmp-environment-variables/ompdynamic.rst: New file.
3514 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
3515 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
3516 * doc/openmp-environment-variables/ompnested.rst: New file.
3517 * doc/openmp-environment-variables/ompnumteams.rst: New file.
3518 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
3519 * doc/openmp-environment-variables/ompplaces.rst: New file.
3520 * doc/openmp-environment-variables/ompprocbind.rst: New file.
3521 * doc/openmp-environment-variables/ompschedule.rst: New file.
3522 * doc/openmp-environment-variables/ompstacksize.rst: New file.
3523 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
3524 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
3525 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
3526 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
3527 * doc/openmp-implementation-specifics.rst: New file.
3528 * doc/openmp-implementation-status.rst: New file.
3529 * doc/openmp-implementation-status/openmp-45.rst: New file.
3530 * doc/openmp-implementation-status/openmp-50.rst: New file.
3531 * doc/openmp-implementation-status/openmp-51.rst: New file.
3532 * doc/openmp-implementation-status/openmp-52.rst: New file.
3533 * doc/openmp-runtime-library-routines.rst: New file.
3534 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
3535 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
3536 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
3537 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
3538 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
3539 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
3540 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
3541 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
3542 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
3543 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
3544 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
3545 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
3546 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
3547 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
3548 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
3549 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
3550 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
3551 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
3552 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
3553 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
3554 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
3555 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
3556 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
3557 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
3558 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
3559 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
3560 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
3561 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
3562 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
3563 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
3564 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
3565 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
3566 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
3567 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
3568 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
3569 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
3570 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
3571 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
3572 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
3573 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
3574 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
3575 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
3576 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
3577 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
3578 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
3579 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
3580 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
3581 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
3582 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
3583 * doc/reporting-bugs.rst: New file.
3584 * doc/the-libgomp-abi.rst: New file.
3585 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
3586 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
3587 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
3588 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
3589 New file.
3590 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
3591 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
3592 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
3593 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
3594 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
3595 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
3596 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
3597 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
3598 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
3599 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
3600 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
3601
3602 2022-11-14 Martin Liska <[email protected]>
3603
3604 Revert:
3605 2022-11-14 Martin Liska <[email protected]>
3606
3607 * Makefile.in: Support Sphinx based documentation.
3608
3609 2022-11-14 Martin Liska <[email protected]>
3610
3611 Revert:
3612 2022-11-14 Martin Liska <[email protected]>
3613
3614 * libgomp.texi: Removed.
3615
3616 2022-11-14 Martin Liska <[email protected]>
3617
3618 Revert:
3619 2022-11-14 Martin Liska <[email protected]>
3620
3621 * Makefile.in: Support --with-sphinx-build.
3622 * configure.ac: Likewise..
3623 * configure: Regenerate.
3624
3625 2022-11-14 Martin Liska <[email protected]>
3626
3627 Revert:
3628 2022-11-09 Martin Liska <[email protected]>
3629
3630 * Makefile.in: Build info pages conditionally.
3631
3632 2022-11-14 Martin Liska <[email protected]>
3633
3634 Revert:
3635 2022-11-14 Martin Liska <[email protected]>
3636
3637 * doc/amd-radeon-gcn.rst:
3638 Add trailing newline.
3639 * doc/copyright.rst:
3640 Add trailing newline.
3641 * doc/cuda-streams-usage.rst:
3642 Add trailing newline.
3643 * doc/enabling-openacc.rst:
3644 Add trailing newline.
3645 * doc/enabling-openmp.rst:
3646 Add trailing newline.
3647 * doc/first-invocation-nvidia-cublas-library-api.rst:
3648 Add trailing newline.
3649 * doc/first-invocation-openacc-library-api.rst:
3650 Add trailing newline.
3651 * doc/funding.rst:
3652 Add trailing newline.
3653 * doc/general-public-license-3.rst:
3654 Add trailing newline.
3655 * doc/gnu-free-documentation-license.rst:
3656 Add trailing newline.
3657 * doc/implementation-status-and-implementation-defined-behavior.rst:
3658 Add trailing newline.
3659 * doc/index.rst:
3660 Add trailing newline.
3661 * doc/indices-and-tables.rst:
3662 Add trailing newline.
3663 * doc/introduction.rst:
3664 Add trailing newline.
3665 * doc/memory-allocation-with-libmemkind.rst:
3666 Add trailing newline.
3667 * doc/nvptx.rst:
3668 Add trailing newline.
3669 * doc/offload-target-specifics.rst:
3670 Add trailing newline.
3671 * doc/openacc-environment-variables.rst:
3672 Add trailing newline.
3673 * doc/openacc-environment-variables/accdevicenum.rst:
3674 Add trailing newline.
3675 * doc/openacc-environment-variables/accdevicetype.rst:
3676 Add trailing newline.
3677 * doc/openacc-environment-variables/accproflib.rst:
3678 Add trailing newline.
3679 * doc/openacc-environment-variables/gccaccnotify.rst:
3680 Add trailing newline.
3681 * doc/openacc-introduction.rst:
3682 Add trailing newline.
3683 * doc/openacc-library-and-environment-variables.rst:
3684 Add trailing newline.
3685 * doc/openacc-library-interoperability.rst:
3686 Add trailing newline.
3687 * doc/openacc-profiling-interface.rst:
3688 Add trailing newline.
3689 * doc/openacc-runtime-library-routines.rst:
3690 Add trailing newline.
3691 * doc/openacc-runtime-library-routines/accasynctest.rst:
3692 Add trailing newline.
3693 * doc/openacc-runtime-library-routines/accasynctestall.rst:
3694 Add trailing newline.
3695 * doc/openacc-runtime-library-routines/accattach.rst:
3696 Add trailing newline.
3697 * doc/openacc-runtime-library-routines/acccopyin.rst:
3698 Add trailing newline.
3699 * doc/openacc-runtime-library-routines/acccopyout.rst:
3700 Add trailing newline.
3701 * doc/openacc-runtime-library-routines/acccreate.rst:
3702 Add trailing newline.
3703 * doc/openacc-runtime-library-routines/accdelete.rst:
3704 Add trailing newline.
3705 * doc/openacc-runtime-library-routines/accdetach.rst:
3706 Add trailing newline.
3707 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
3708 Add trailing newline.
3709 * doc/openacc-runtime-library-routines/accfree.rst:
3710 Add trailing newline.
3711 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
3712 Add trailing newline.
3713 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
3714 Add trailing newline.
3715 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
3716 Add trailing newline.
3717 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
3718 Add trailing newline.
3719 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
3720 Add trailing newline.
3721 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
3722 Add trailing newline.
3723 * doc/openacc-runtime-library-routines/accgetproperty.rst:
3724 Add trailing newline.
3725 * doc/openacc-runtime-library-routines/acchostptr.rst:
3726 Add trailing newline.
3727 * doc/openacc-runtime-library-routines/accinit.rst:
3728 Add trailing newline.
3729 * doc/openacc-runtime-library-routines/accispresent.rst:
3730 Add trailing newline.
3731 * doc/openacc-runtime-library-routines/accmalloc.rst:
3732 Add trailing newline.
3733 * doc/openacc-runtime-library-routines/accmapdata.rst:
3734 Add trailing newline.
3735 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
3736 Add trailing newline.
3737 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
3738 Add trailing newline.
3739 * doc/openacc-runtime-library-routines/accondevice.rst:
3740 Add trailing newline.
3741 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
3742 Add trailing newline.
3743 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
3744 Add trailing newline.
3745 * doc/openacc-runtime-library-routines/accproflookup.rst:
3746 Add trailing newline.
3747 * doc/openacc-runtime-library-routines/accprofregister.rst:
3748 Add trailing newline.
3749 * doc/openacc-runtime-library-routines/accprofunregister.rst:
3750 Add trailing newline.
3751 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
3752 Add trailing newline.
3753 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
3754 Add trailing newline.
3755 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
3756 Add trailing newline.
3757 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
3758 Add trailing newline.
3759 * doc/openacc-runtime-library-routines/accshutdown.rst:
3760 Add trailing newline.
3761 * doc/openacc-runtime-library-routines/accunmapdata.rst:
3762 Add trailing newline.
3763 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
3764 Add trailing newline.
3765 * doc/openacc-runtime-library-routines/accupdateself.rst:
3766 Add trailing newline.
3767 * doc/openacc-runtime-library-routines/accwait.rst:
3768 Add trailing newline.
3769 * doc/openacc-runtime-library-routines/accwaitall.rst:
3770 Add trailing newline.
3771 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
3772 Add trailing newline.
3773 * doc/openacc-runtime-library-routines/accwaitasync.rst:
3774 Add trailing newline.
3775 * doc/openmp-context-selectors.rst:
3776 Add trailing newline.
3777 * doc/openmp-environment-variables.rst:
3778 Add trailing newline.
3779 * doc/openmp-environment-variables/gompcpuaffinity.rst:
3780 Add trailing newline.
3781 * doc/openmp-environment-variables/gompdebug.rst:
3782 Add trailing newline.
3783 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
3784 Add trailing newline.
3785 * doc/openmp-environment-variables/gompspincount.rst:
3786 Add trailing newline.
3787 * doc/openmp-environment-variables/gompstacksize.rst:
3788 Add trailing newline.
3789 * doc/openmp-environment-variables/ompcancellation.rst:
3790 Add trailing newline.
3791 * doc/openmp-environment-variables/ompdefaultdevice.rst:
3792 Add trailing newline.
3793 * doc/openmp-environment-variables/ompdisplayenv.rst:
3794 Add trailing newline.
3795 * doc/openmp-environment-variables/ompdynamic.rst:
3796 Add trailing newline.
3797 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
3798 Add trailing newline.
3799 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
3800 Add trailing newline.
3801 * doc/openmp-environment-variables/ompnested.rst:
3802 Add trailing newline.
3803 * doc/openmp-environment-variables/ompnumteams.rst:
3804 Add trailing newline.
3805 * doc/openmp-environment-variables/ompnumthreads.rst:
3806 Add trailing newline.
3807 * doc/openmp-environment-variables/ompplaces.rst:
3808 Add trailing newline.
3809 * doc/openmp-environment-variables/ompprocbind.rst:
3810 Add trailing newline.
3811 * doc/openmp-environment-variables/ompschedule.rst:
3812 Add trailing newline.
3813 * doc/openmp-environment-variables/ompstacksize.rst:
3814 Add trailing newline.
3815 * doc/openmp-environment-variables/omptargetoffload.rst:
3816 Add trailing newline.
3817 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
3818 Add trailing newline.
3819 * doc/openmp-environment-variables/ompthreadlimit.rst:
3820 Add trailing newline.
3821 * doc/openmp-environment-variables/ompwaitpolicy.rst:
3822 Add trailing newline.
3823 * doc/openmp-implementation-specifics.rst:
3824 Add trailing newline.
3825 * doc/openmp-implementation-status.rst:
3826 Add trailing newline.
3827 * doc/openmp-implementation-status/openmp-45.rst:
3828 Add trailing newline.
3829 * doc/openmp-implementation-status/openmp-50.rst:
3830 Add trailing newline.
3831 * doc/openmp-implementation-status/openmp-51.rst:
3832 Add trailing newline.
3833 * doc/openmp-implementation-status/openmp-52.rst:
3834 Add trailing newline.
3835 * doc/openmp-runtime-library-routines.rst:
3836 Add trailing newline.
3837 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
3838 Add trailing newline.
3839 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
3840 Add trailing newline.
3841 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
3842 Add trailing newline.
3843 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
3844 Add trailing newline.
3845 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
3846 Add trailing newline.
3847 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
3848 Add trailing newline.
3849 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
3850 Add trailing newline.
3851 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
3852 Add trailing newline.
3853 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
3854 Add trailing newline.
3855 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
3856 Add trailing newline.
3857 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
3858 Add trailing newline.
3859 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
3860 Add trailing newline.
3861 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
3862 Add trailing newline.
3863 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
3864 Add trailing newline.
3865 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
3866 Add trailing newline.
3867 * doc/openmp-runtime-library-routines/ompgetnested.rst:
3868 Add trailing newline.
3869 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
3870 Add trailing newline.
3871 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
3872 Add trailing newline.
3873 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
3874 Add trailing newline.
3875 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
3876 Add trailing newline.
3877 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
3878 Add trailing newline.
3879 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
3880 Add trailing newline.
3881 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
3882 Add trailing newline.
3883 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
3884 Add trailing newline.
3885 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
3886 Add trailing newline.
3887 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
3888 Add trailing newline.
3889 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
3890 Add trailing newline.
3891 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
3892 Add trailing newline.
3893 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
3894 Add trailing newline.
3895 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
3896 Add trailing newline.
3897 * doc/openmp-runtime-library-routines/ompinfinal.rst:
3898 Add trailing newline.
3899 * doc/openmp-runtime-library-routines/ompinitlock.rst:
3900 Add trailing newline.
3901 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
3902 Add trailing newline.
3903 * doc/openmp-runtime-library-routines/ompinparallel.rst:
3904 Add trailing newline.
3905 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
3906 Add trailing newline.
3907 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
3908 Add trailing newline.
3909 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
3910 Add trailing newline.
3911 * doc/openmp-runtime-library-routines/ompsetlock.rst:
3912 Add trailing newline.
3913 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
3914 Add trailing newline.
3915 * doc/openmp-runtime-library-routines/ompsetnested.rst:
3916 Add trailing newline.
3917 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
3918 Add trailing newline.
3919 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
3920 Add trailing newline.
3921 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
3922 Add trailing newline.
3923 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
3924 Add trailing newline.
3925 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
3926 Add trailing newline.
3927 * doc/openmp-runtime-library-routines/omptestlock.rst:
3928 Add trailing newline.
3929 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
3930 Add trailing newline.
3931 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
3932 Add trailing newline.
3933 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
3934 Add trailing newline.
3935 * doc/reporting-bugs.rst:
3936 Add trailing newline.
3937 * doc/the-libgomp-abi.rst:
3938 Add trailing newline.
3939 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
3940 Add trailing newline.
3941 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
3942 Add trailing newline.
3943 * doc/the-libgomp-abi/implementing-critical-construct.rst:
3944 Add trailing newline.
3945 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
3946 Add trailing newline.
3947 * doc/the-libgomp-abi/implementing-flush-construct.rst:
3948 Add trailing newline.
3949 * doc/the-libgomp-abi/implementing-for-construct.rst:
3950 Add trailing newline.
3951 * doc/the-libgomp-abi/implementing-master-construct.rst:
3952 Add trailing newline.
3953 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
3954 Add trailing newline.
3955 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
3956 Add trailing newline.
3957 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
3958 Add trailing newline.
3959 * doc/the-libgomp-abi/implementing-private-clause.rst:
3960 Add trailing newline.
3961 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
3962 Add trailing newline.
3963 * doc/the-libgomp-abi/implementing-sections-construct.rst:
3964 Add trailing newline.
3965 * doc/the-libgomp-abi/implementing-single-construct.rst:
3966 Add trailing newline.
3967 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
3968 Add trailing newline.
3969
3970 2022-11-14 Martin Liska <[email protected]>
3971
3972 Revert:
3973 2022-11-09 Martin Liska <[email protected]>
3974
3975 * Makefile.in: Add missing HAS_SPHINX_BUILD.
3976
3977 2022-11-14 Martin Liska <[email protected]>
3978
3979 Revert:
3980 2022-11-14 Martin Liska <[email protected]>
3981
3982 * doc/conf.py: Add newline at last line.
3983
3984 2022-11-14 Martin Liska <[email protected]>
3985
3986 Revert:
3987 2022-11-14 Martin Liska <[email protected]>
3988
3989 PR other/107620
3990 * configure: Regenerate.
3991 * configure.ac: Always set sphinx-build.
3992
3993 2022-11-13 Martin Liska <[email protected]>
3994
3995 PR other/107620
3996 * configure: Regenerate.
3997 * configure.ac: Always set sphinx-build.
3998
3999 2022-11-12 Jakub Jelinek <[email protected]>
4000
4001 PR libgomp/107641
4002 * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
4003 unsigned long. Change type of upper from unsigned to unsigned long.
4004
4005 2022-11-10 Martin Liska <[email protected]>
4006
4007 * doc/conf.py: Add newline at last line.
4008
4009 2022-11-09 Martin Liska <[email protected]>
4010
4011 * Makefile.in: Add missing HAS_SPHINX_BUILD.
4012
4013 2022-11-09 Martin Liska <[email protected]>
4014
4015 * doc/amd-radeon-gcn.rst:
4016 Add trailing newline.
4017 * doc/copyright.rst:
4018 Add trailing newline.
4019 * doc/cuda-streams-usage.rst:
4020 Add trailing newline.
4021 * doc/enabling-openacc.rst:
4022 Add trailing newline.
4023 * doc/enabling-openmp.rst:
4024 Add trailing newline.
4025 * doc/first-invocation-nvidia-cublas-library-api.rst:
4026 Add trailing newline.
4027 * doc/first-invocation-openacc-library-api.rst:
4028 Add trailing newline.
4029 * doc/funding.rst:
4030 Add trailing newline.
4031 * doc/general-public-license-3.rst:
4032 Add trailing newline.
4033 * doc/gnu-free-documentation-license.rst:
4034 Add trailing newline.
4035 * doc/implementation-status-and-implementation-defined-behavior.rst:
4036 Add trailing newline.
4037 * doc/index.rst:
4038 Add trailing newline.
4039 * doc/indices-and-tables.rst:
4040 Add trailing newline.
4041 * doc/introduction.rst:
4042 Add trailing newline.
4043 * doc/memory-allocation-with-libmemkind.rst:
4044 Add trailing newline.
4045 * doc/nvptx.rst:
4046 Add trailing newline.
4047 * doc/offload-target-specifics.rst:
4048 Add trailing newline.
4049 * doc/openacc-environment-variables.rst:
4050 Add trailing newline.
4051 * doc/openacc-environment-variables/accdevicenum.rst:
4052 Add trailing newline.
4053 * doc/openacc-environment-variables/accdevicetype.rst:
4054 Add trailing newline.
4055 * doc/openacc-environment-variables/accproflib.rst:
4056 Add trailing newline.
4057 * doc/openacc-environment-variables/gccaccnotify.rst:
4058 Add trailing newline.
4059 * doc/openacc-introduction.rst:
4060 Add trailing newline.
4061 * doc/openacc-library-and-environment-variables.rst:
4062 Add trailing newline.
4063 * doc/openacc-library-interoperability.rst:
4064 Add trailing newline.
4065 * doc/openacc-profiling-interface.rst:
4066 Add trailing newline.
4067 * doc/openacc-runtime-library-routines.rst:
4068 Add trailing newline.
4069 * doc/openacc-runtime-library-routines/accasynctest.rst:
4070 Add trailing newline.
4071 * doc/openacc-runtime-library-routines/accasynctestall.rst:
4072 Add trailing newline.
4073 * doc/openacc-runtime-library-routines/accattach.rst:
4074 Add trailing newline.
4075 * doc/openacc-runtime-library-routines/acccopyin.rst:
4076 Add trailing newline.
4077 * doc/openacc-runtime-library-routines/acccopyout.rst:
4078 Add trailing newline.
4079 * doc/openacc-runtime-library-routines/acccreate.rst:
4080 Add trailing newline.
4081 * doc/openacc-runtime-library-routines/accdelete.rst:
4082 Add trailing newline.
4083 * doc/openacc-runtime-library-routines/accdetach.rst:
4084 Add trailing newline.
4085 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
4086 Add trailing newline.
4087 * doc/openacc-runtime-library-routines/accfree.rst:
4088 Add trailing newline.
4089 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
4090 Add trailing newline.
4091 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
4092 Add trailing newline.
4093 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
4094 Add trailing newline.
4095 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
4096 Add trailing newline.
4097 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
4098 Add trailing newline.
4099 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
4100 Add trailing newline.
4101 * doc/openacc-runtime-library-routines/accgetproperty.rst:
4102 Add trailing newline.
4103 * doc/openacc-runtime-library-routines/acchostptr.rst:
4104 Add trailing newline.
4105 * doc/openacc-runtime-library-routines/accinit.rst:
4106 Add trailing newline.
4107 * doc/openacc-runtime-library-routines/accispresent.rst:
4108 Add trailing newline.
4109 * doc/openacc-runtime-library-routines/accmalloc.rst:
4110 Add trailing newline.
4111 * doc/openacc-runtime-library-routines/accmapdata.rst:
4112 Add trailing newline.
4113 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
4114 Add trailing newline.
4115 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
4116 Add trailing newline.
4117 * doc/openacc-runtime-library-routines/accondevice.rst:
4118 Add trailing newline.
4119 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
4120 Add trailing newline.
4121 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
4122 Add trailing newline.
4123 * doc/openacc-runtime-library-routines/accproflookup.rst:
4124 Add trailing newline.
4125 * doc/openacc-runtime-library-routines/accprofregister.rst:
4126 Add trailing newline.
4127 * doc/openacc-runtime-library-routines/accprofunregister.rst:
4128 Add trailing newline.
4129 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
4130 Add trailing newline.
4131 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
4132 Add trailing newline.
4133 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
4134 Add trailing newline.
4135 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
4136 Add trailing newline.
4137 * doc/openacc-runtime-library-routines/accshutdown.rst:
4138 Add trailing newline.
4139 * doc/openacc-runtime-library-routines/accunmapdata.rst:
4140 Add trailing newline.
4141 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
4142 Add trailing newline.
4143 * doc/openacc-runtime-library-routines/accupdateself.rst:
4144 Add trailing newline.
4145 * doc/openacc-runtime-library-routines/accwait.rst:
4146 Add trailing newline.
4147 * doc/openacc-runtime-library-routines/accwaitall.rst:
4148 Add trailing newline.
4149 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
4150 Add trailing newline.
4151 * doc/openacc-runtime-library-routines/accwaitasync.rst:
4152 Add trailing newline.
4153 * doc/openmp-context-selectors.rst:
4154 Add trailing newline.
4155 * doc/openmp-environment-variables.rst:
4156 Add trailing newline.
4157 * doc/openmp-environment-variables/gompcpuaffinity.rst:
4158 Add trailing newline.
4159 * doc/openmp-environment-variables/gompdebug.rst:
4160 Add trailing newline.
4161 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
4162 Add trailing newline.
4163 * doc/openmp-environment-variables/gompspincount.rst:
4164 Add trailing newline.
4165 * doc/openmp-environment-variables/gompstacksize.rst:
4166 Add trailing newline.
4167 * doc/openmp-environment-variables/ompcancellation.rst:
4168 Add trailing newline.
4169 * doc/openmp-environment-variables/ompdefaultdevice.rst:
4170 Add trailing newline.
4171 * doc/openmp-environment-variables/ompdisplayenv.rst:
4172 Add trailing newline.
4173 * doc/openmp-environment-variables/ompdynamic.rst:
4174 Add trailing newline.
4175 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
4176 Add trailing newline.
4177 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
4178 Add trailing newline.
4179 * doc/openmp-environment-variables/ompnested.rst:
4180 Add trailing newline.
4181 * doc/openmp-environment-variables/ompnumteams.rst:
4182 Add trailing newline.
4183 * doc/openmp-environment-variables/ompnumthreads.rst:
4184 Add trailing newline.
4185 * doc/openmp-environment-variables/ompplaces.rst:
4186 Add trailing newline.
4187 * doc/openmp-environment-variables/ompprocbind.rst:
4188 Add trailing newline.
4189 * doc/openmp-environment-variables/ompschedule.rst:
4190 Add trailing newline.
4191 * doc/openmp-environment-variables/ompstacksize.rst:
4192 Add trailing newline.
4193 * doc/openmp-environment-variables/omptargetoffload.rst:
4194 Add trailing newline.
4195 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
4196 Add trailing newline.
4197 * doc/openmp-environment-variables/ompthreadlimit.rst:
4198 Add trailing newline.
4199 * doc/openmp-environment-variables/ompwaitpolicy.rst:
4200 Add trailing newline.
4201 * doc/openmp-implementation-specifics.rst:
4202 Add trailing newline.
4203 * doc/openmp-implementation-status.rst:
4204 Add trailing newline.
4205 * doc/openmp-implementation-status/openmp-45.rst:
4206 Add trailing newline.
4207 * doc/openmp-implementation-status/openmp-50.rst:
4208 Add trailing newline.
4209 * doc/openmp-implementation-status/openmp-51.rst:
4210 Add trailing newline.
4211 * doc/openmp-implementation-status/openmp-52.rst:
4212 Add trailing newline.
4213 * doc/openmp-runtime-library-routines.rst:
4214 Add trailing newline.
4215 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
4216 Add trailing newline.
4217 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
4218 Add trailing newline.
4219 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
4220 Add trailing newline.
4221 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
4222 Add trailing newline.
4223 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
4224 Add trailing newline.
4225 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
4226 Add trailing newline.
4227 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
4228 Add trailing newline.
4229 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
4230 Add trailing newline.
4231 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
4232 Add trailing newline.
4233 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
4234 Add trailing newline.
4235 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
4236 Add trailing newline.
4237 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
4238 Add trailing newline.
4239 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
4240 Add trailing newline.
4241 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
4242 Add trailing newline.
4243 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
4244 Add trailing newline.
4245 * doc/openmp-runtime-library-routines/ompgetnested.rst:
4246 Add trailing newline.
4247 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
4248 Add trailing newline.
4249 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
4250 Add trailing newline.
4251 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
4252 Add trailing newline.
4253 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
4254 Add trailing newline.
4255 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
4256 Add trailing newline.
4257 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
4258 Add trailing newline.
4259 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
4260 Add trailing newline.
4261 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
4262 Add trailing newline.
4263 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
4264 Add trailing newline.
4265 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
4266 Add trailing newline.
4267 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
4268 Add trailing newline.
4269 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
4270 Add trailing newline.
4271 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
4272 Add trailing newline.
4273 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
4274 Add trailing newline.
4275 * doc/openmp-runtime-library-routines/ompinfinal.rst:
4276 Add trailing newline.
4277 * doc/openmp-runtime-library-routines/ompinitlock.rst:
4278 Add trailing newline.
4279 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
4280 Add trailing newline.
4281 * doc/openmp-runtime-library-routines/ompinparallel.rst:
4282 Add trailing newline.
4283 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
4284 Add trailing newline.
4285 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
4286 Add trailing newline.
4287 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
4288 Add trailing newline.
4289 * doc/openmp-runtime-library-routines/ompsetlock.rst:
4290 Add trailing newline.
4291 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
4292 Add trailing newline.
4293 * doc/openmp-runtime-library-routines/ompsetnested.rst:
4294 Add trailing newline.
4295 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
4296 Add trailing newline.
4297 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
4298 Add trailing newline.
4299 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
4300 Add trailing newline.
4301 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
4302 Add trailing newline.
4303 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
4304 Add trailing newline.
4305 * doc/openmp-runtime-library-routines/omptestlock.rst:
4306 Add trailing newline.
4307 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
4308 Add trailing newline.
4309 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
4310 Add trailing newline.
4311 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
4312 Add trailing newline.
4313 * doc/reporting-bugs.rst:
4314 Add trailing newline.
4315 * doc/the-libgomp-abi.rst:
4316 Add trailing newline.
4317 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
4318 Add trailing newline.
4319 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
4320 Add trailing newline.
4321 * doc/the-libgomp-abi/implementing-critical-construct.rst:
4322 Add trailing newline.
4323 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
4324 Add trailing newline.
4325 * doc/the-libgomp-abi/implementing-flush-construct.rst:
4326 Add trailing newline.
4327 * doc/the-libgomp-abi/implementing-for-construct.rst:
4328 Add trailing newline.
4329 * doc/the-libgomp-abi/implementing-master-construct.rst:
4330 Add trailing newline.
4331 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
4332 Add trailing newline.
4333 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
4334 Add trailing newline.
4335 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
4336 Add trailing newline.
4337 * doc/the-libgomp-abi/implementing-private-clause.rst:
4338 Add trailing newline.
4339 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
4340 Add trailing newline.
4341 * doc/the-libgomp-abi/implementing-sections-construct.rst:
4342 Add trailing newline.
4343 * doc/the-libgomp-abi/implementing-single-construct.rst:
4344 Add trailing newline.
4345 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
4346 Add trailing newline.
4347
4348 2022-11-09 Martin Liska <[email protected]>
4349
4350 * Makefile.in: Build info pages conditionally.
4351
4352 2022-11-09 Martin Liska <[email protected]>
4353
4354 * Makefile.in: Support --with-sphinx-build.
4355 * configure.ac: Likewise..
4356 * configure: Regenerate.
4357
4358 2022-11-09 Martin Liska <[email protected]>
4359
4360 * libgomp.texi: Removed.
4361
4362 2022-11-09 Martin Liska <[email protected]>
4363
4364 * Makefile.in: Support Sphinx based documentation.
4365
4366 2022-11-09 Martin Liska <[email protected]>
4367
4368 * doc/amd-radeon-gcn.rst: New file.
4369 * doc/conf.py: New file.
4370 * doc/copyright.rst: New file.
4371 * doc/cuda-streams-usage.rst: New file.
4372 * doc/enabling-openacc.rst: New file.
4373 * doc/enabling-openmp.rst: New file.
4374 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
4375 * doc/first-invocation-openacc-library-api.rst: New file.
4376 * doc/funding.rst: New file.
4377 * doc/general-public-license-3.rst: New file.
4378 * doc/gnu-free-documentation-license.rst: New file.
4379 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
4380 * doc/index.rst: New file.
4381 * doc/indices-and-tables.rst: New file.
4382 * doc/introduction.rst: New file.
4383 * doc/memory-allocation-with-libmemkind.rst: New file.
4384 * doc/nvptx.rst: New file.
4385 * doc/offload-target-specifics.rst: New file.
4386 * doc/openacc-environment-variables.rst: New file.
4387 * doc/openacc-environment-variables/accdevicenum.rst: New file.
4388 * doc/openacc-environment-variables/accdevicetype.rst: New file.
4389 * doc/openacc-environment-variables/accproflib.rst: New file.
4390 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
4391 * doc/openacc-introduction.rst: New file.
4392 * doc/openacc-library-and-environment-variables.rst: New file.
4393 * doc/openacc-library-interoperability.rst: New file.
4394 * doc/openacc-profiling-interface.rst: New file.
4395 * doc/openacc-runtime-library-routines.rst: New file.
4396 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
4397 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
4398 * doc/openacc-runtime-library-routines/accattach.rst: New file.
4399 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
4400 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
4401 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
4402 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
4403 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
4404 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
4405 * doc/openacc-runtime-library-routines/accfree.rst: New file.
4406 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
4407 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
4408 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
4409 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
4410 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
4411 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
4412 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
4413 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
4414 * doc/openacc-runtime-library-routines/accinit.rst: New file.
4415 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
4416 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
4417 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
4418 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
4419 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
4420 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
4421 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
4422 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
4423 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
4424 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
4425 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
4426 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
4427 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
4428 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
4429 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
4430 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
4431 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
4432 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
4433 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
4434 * doc/openacc-runtime-library-routines/accwait.rst: New file.
4435 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
4436 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
4437 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
4438 * doc/openmp-context-selectors.rst: New file.
4439 * doc/openmp-environment-variables.rst: New file.
4440 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
4441 * doc/openmp-environment-variables/gompdebug.rst: New file.
4442 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
4443 * doc/openmp-environment-variables/gompspincount.rst: New file.
4444 * doc/openmp-environment-variables/gompstacksize.rst: New file.
4445 * doc/openmp-environment-variables/ompcancellation.rst: New file.
4446 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
4447 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
4448 * doc/openmp-environment-variables/ompdynamic.rst: New file.
4449 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
4450 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
4451 * doc/openmp-environment-variables/ompnested.rst: New file.
4452 * doc/openmp-environment-variables/ompnumteams.rst: New file.
4453 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
4454 * doc/openmp-environment-variables/ompplaces.rst: New file.
4455 * doc/openmp-environment-variables/ompprocbind.rst: New file.
4456 * doc/openmp-environment-variables/ompschedule.rst: New file.
4457 * doc/openmp-environment-variables/ompstacksize.rst: New file.
4458 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
4459 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
4460 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
4461 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
4462 * doc/openmp-implementation-specifics.rst: New file.
4463 * doc/openmp-implementation-status.rst: New file.
4464 * doc/openmp-implementation-status/openmp-45.rst: New file.
4465 * doc/openmp-implementation-status/openmp-50.rst: New file.
4466 * doc/openmp-implementation-status/openmp-51.rst: New file.
4467 * doc/openmp-implementation-status/openmp-52.rst: New file.
4468 * doc/openmp-runtime-library-routines.rst: New file.
4469 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
4470 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
4471 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
4472 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
4473 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
4474 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
4475 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
4476 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
4477 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
4478 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
4479 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
4480 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
4481 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
4482 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
4483 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
4484 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
4485 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
4486 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
4487 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
4488 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
4489 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
4490 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
4491 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
4492 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
4493 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
4494 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
4495 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
4496 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
4497 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
4498 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
4499 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
4500 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
4501 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
4502 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
4503 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
4504 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
4505 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
4506 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
4507 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
4508 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
4509 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
4510 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
4511 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
4512 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
4513 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
4514 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
4515 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
4516 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
4517 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
4518 * doc/reporting-bugs.rst: New file.
4519 * doc/the-libgomp-abi.rst: New file.
4520 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
4521 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
4522 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
4523 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
4524 New file.
4525 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
4526 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
4527 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
4528 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
4529 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
4530 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
4531 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
4532 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
4533 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
4534 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
4535 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
4536
4537 2022-11-04 Thomas Schwinge <[email protected]>
4538
4539 * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
4540 * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
4541 documentation.
4542 * plugin/configfrag.ac <enable_offload_targets>
4543 [*-intelmic-* | *-intelmicemul-*]: Remove.
4544 * configure: Regenerate.
4545 * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
4546 handling.
4547 (offload_target_to_openacc_device_type)
4548 [$offload_target = *-intelmic*]: Remove.
4549 (check_effective_target_offload_device_intel_mic)
4550 (check_effective_target_offload_device_any_intel_mic): Remove.
4551 * testsuite/libgomp.c-c++-common/on_device_arch.h
4552 (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
4553 (any_device_arch_intel_mic): Remove.
4554 * testsuite/libgomp.c-c++-common/target-45.c: Remove
4555 'offload_device_any_intel_mic' XFAIL.
4556 * testsuite/libgomp.fortran/target10.f90: Likewise.
4557
4558 2022-11-03 Tobias Burnus <[email protected]>
4559
4560 * testsuite/libgomp.fortran/target-11.f90: New test.
4561 * testsuite/libgomp.fortran/target-13.f90: New test.
4562
4563 2022-11-02 Thomas Schwinge <[email protected]>
4564
4565 PR libgomp/106643
4566 PR fortran/96668
4567 * oacc-mem.c (goacc_enter_data_internal): Support
4568 OpenACC 'declare create' with Fortran allocatable arrays, part II.
4569 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
4570 Adjust.
4571 * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
4572
4573 2022-11-02 Thomas Schwinge <[email protected]>
4574
4575 PR libgomp/106643
4576 * oacc-mem.c (goacc_enter_data_internal): Support
4577 OpenACC 'declare create' with Fortran allocatable arrays, part I.
4578 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
4579 New.
4580 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
4581 New.
4582
4583 2022-11-02 Thomas Schwinge <[email protected]>
4584
4585 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
4586 New.
4587
4588 2022-11-02 Thomas Schwinge <[email protected]>
4589
4590 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
4591 New.
4592
4593 2022-11-02 Cesar Philippidis <[email protected]>
4594 Thomas Schwinge <[email protected]>
4595
4596 * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
4597
4598 2022-10-28 Julian Brown <[email protected]>
4599 Thomas Schwinge <[email protected]>
4600
4601 PR middle-end/90115
4602 * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
4603 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
4604 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4605 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
4606 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4607
4608 2022-10-24 Thomas Schwinge <[email protected]>
4609
4610 * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
4611 'ptx_dev->rev_data'.
4612
4613 2022-10-24 Tobias Burnus <[email protected]>
4614
4615 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
4616 'static' for this variable.
4617 * config/nvptx/libgomp-nvptx.h: New file.
4618 * config/nvptx/target.c: Include it.
4619 (GOMP_ADDITIONAL_ICVS): Declare extern var.
4620 (GOMP_REV_OFFLOAD_VAR): Declare var.
4621 (GOMP_target_ext): Handle reverse offload.
4622 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
4623 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
4624 * target.c (gomp_target_rev): ... this new stub function.
4625 * libgomp.h (gomp_target_rev): Declare.
4626 * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
4627 * plugin/cuda-lib.def (cuMemHostAlloc): Add.
4628 * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
4629 (struct ptx_device): Add rev_data member.
4630 (nvptx_open_device): Remove async_engines query, last used in
4631 r10-304-g1f4c5b9b; add unified-address assert check.
4632 (GOMP_OFFLOAD_get_num_devices): Claim unified address
4633 support.
4634 (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
4635 offload functions exist. Make offload var available
4636 on host and device.
4637 (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
4638 (GOMP_OFFLOAD_run): Handle reverse offload.
4639
4640 2022-10-21 Thomas Schwinge <[email protected]>
4641
4642 PR tree-optimization/107195
4643 PR target/107344
4644 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
4645 regions checking.
4646
4647 2022-10-20 Tobias Burnus <[email protected]>
4648
4649 * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
4650 New.
4651 * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
4652 on_device_arch_gcn): New.
4653 * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
4654 requires-4.c but using heap-allocated memory.
4655
4656 2022-10-20 Thomas Schwinge <[email protected]>
4657
4658 PR target/105421
4659 * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
4660
4661 2022-10-17 Thomas Schwinge <[email protected]>
4662
4663 * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
4664 '-foffload-options' syntax.
4665
4666 2022-10-13 Tobias Burnus <[email protected]>
4667
4668 * testsuite/libgomp.fortran/task-7.f90: New test.
4669 * testsuite/libgomp.fortran/task-8.f90: New test.
4670 * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
4671 * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
4672 * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
4673 * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
4674 * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
4675
4676 2022-10-12 Jakub Jelinek <[email protected]>
4677
4678 * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
4679 in deprecation bullet.
4680
4681 2022-10-12 Jakub Jelinek <[email protected]>
4682
4683 * omp.h.in (omp_in_explicit_task): Declare.
4684 * omp_lib.h.in (omp_in_explicit_task): Likewise.
4685 * omp_lib.f90.in (omp_in_explicit_task): New interface.
4686 * libgomp.map (OMP_5.2): New symbol version, export
4687 omp_in_explicit_task and omp_in_explicit_task_.
4688 * task.c (omp_in_explicit_task): New function.
4689 * fortran.c (omp_in_explicit_task): Add ialias_redirect.
4690 (omp_in_explicit_task_): New function.
4691 * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
4692 * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
4693 * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
4694 * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
4695
4696 2022-10-12 Jakub Jelinek <[email protected]>
4697
4698 * task.c (gomp_create_artificial_team): Fix up handling of invocations
4699 from within explicit task.
4700 * target.c (GOMP_target_ext): Likewise.
4701 * testsuite/libgomp.c/task-7.c: New test.
4702 * testsuite/libgomp.c/task-8.c: New test.
4703 * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
4704 * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
4705
4706 2022-10-12 Martin Liska <[email protected]>
4707
4708 * configure: Regenerate.
4709
4710 2022-10-11 Olivier Hainque <[email protected]>
4711 Olivier Hainque <[email protected]>
4712
4713 * configure: Regenerate.
4714
4715 2022-10-05 Tobias Burnus <[email protected]>
4716
4717 * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
4718
4719 2022-10-04 Jakub Jelinek <[email protected]>
4720
4721 * libgomp.texi (Support begin/end declare target syntax in C/C++):
4722 Mark as implemented.
4723
4724 2022-09-30 Tobias Burnus <[email protected]>
4725
4726 PR fortran/105318
4727 * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
4728
4729 2022-09-28 Tobias Burnus <[email protected]>
4730
4731 * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
4732 for C/C++. Remove duplicated 'begin declare target' entry.
4733
4734 2022-09-24 Jakub Jelinek <[email protected]>
4735
4736 PR c/106981
4737 * testsuite/libgomp.c-c++-common/pr106981.c: New test.
4738
4739 2022-09-14 Julian Brown <[email protected]>
4740
4741 * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
4742 * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
4743 * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
4744 * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
4745 test to here, make "run" test.
4746
4747 2022-09-13 Jakub Jelinek <[email protected]>
4748
4749 PR libgomp/106906
4750 * env.c (get_icv_member_addr): Cast false to void * before assigning
4751 it to icv_addr[1], and comment the whole assignment out.
4752
4753 2022-09-13 Tobias Burnus <[email protected]>
4754
4755 * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
4756 (nvptx): ... here.
4757
4758 2022-09-12 Tobias Burnus <[email protected]>
4759
4760 * libgomp.texi (Offload-Target Specifics: nvptx): Document
4761 that reverse offload requires >= -march=sm_35.
4762 * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
4763 with -misa=sm_35.
4764 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
4765 * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
4766 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
4767 * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
4768 * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
4769
4770 2022-09-12 Tobias Burnus <[email protected]>
4771
4772 * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
4773 (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
4774
4775 2022-09-12 Jakub Jelinek <[email protected]>
4776
4777 PR libgomp/106894
4778 * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
4779 (main): Avoid tests for which corresponding non-_ALL suffixed variable
4780 is in the environment, or for OMP_NUM_TEAMS on the device
4781 OMP_NUM_TEAMS_DEV_?.
4782
4783 2022-09-10 Iain Sandoe <[email protected]>
4784
4785 * env.c (initialize_env): Include libiberty environ.h.
4786
4787 2022-09-09 Tobias Burnus <[email protected]>
4788
4789 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
4790 function address table '$offload_func_table' if rev_fn_table
4791 is not NULL.
4792
4793 2022-09-09 Tobias Burnus <[email protected]>
4794
4795 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
4796 .offload_func_table to populate rev_fn_table when requested.
4797
4798 2022-09-09 Tobias Burnus <[email protected]>
4799
4800 * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
4801 'uint64_t **rev_fn_table' argument.
4802 * oacc-host.c (host_load_image): Likewise.
4803 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
4804 currently unused.
4805 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
4806 * target.c (gomp_load_image_to_device): Update call but pass
4807 NULL for now.
4808
4809 2022-09-09 Jakub Jelinek <[email protected]>
4810
4811 PR libgomp/106894
4812 * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
4813 char * for dest[1] initialization from params[1]. Formatting fixes.
4814
4815 2022-09-08 Tobias Burnus <[email protected]>
4816
4817 PR fortran/106670
4818 * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
4819
4820 2022-09-08 Tobias Burnus <[email protected]>
4821
4822 * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
4823 section; move OpenMP Context Selectors from ...
4824 (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
4825 'nvptx' sections.
4826
4827 2022-09-08 Marcel Vollweiler <[email protected]>
4828
4829 * config/gcn/icv-device.c (omp_get_default_device): Return device-
4830 specific ICV.
4831 (omp_get_max_teams): Added for GCN devices.
4832 (omp_set_num_teams): Likewise.
4833 (ialias): Likewise.
4834 * config/nvptx/icv-device.c (omp_get_default_device): Return device-
4835 specific ICV.
4836 (omp_get_max_teams): Added for NVPTX devices.
4837 (omp_set_num_teams): Likewise.
4838 (ialias): Likewise.
4839 * env.c (struct gomp_icv_list): New struct to store entries of initial
4840 ICV values.
4841 (struct gomp_offload_icv_list): New struct to store entries of device-
4842 specific ICV values that are copied to the device and back.
4843 (struct gomp_default_icv_values): New struct to store default values of
4844 ICVs according to the OpenMP standard.
4845 (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
4846 (print_env_var_error): Function that prints an error for invalid values
4847 for ICVs.
4848 (parse_unsigned_long_1): Removed getenv. Generalized.
4849 (parse_unsigned_long): Likewise.
4850 (parse_int_1): Likewise.
4851 (parse_int): Likewise.
4852 (parse_int_secure): Likewise.
4853 (parse_unsigned_long_list): Likewise.
4854 (parse_target_offload): Likewise.
4855 (parse_bind_var): Likewise.
4856 (parse_stacksize): Likewise.
4857 (parse_boolean): Likewise.
4858 (parse_wait_policy): Likewise.
4859 (parse_allocator): Likewise.
4860 (omp_display_env): Extended to output different variants of environment
4861 variables.
4862 (print_schedule): New helper function for omp_display_env which prints
4863 the values of run_sched_var.
4864 (print_proc_bind): New helper function for omp_display_env which prints
4865 the values of proc_bind_var.
4866 (enum gomp_parse_type): Collection of types used for parsing environment
4867 variables.
4868 (ENTRY): Preprocess string lengths of environment variables.
4869 (OMP_VAR_CNT): Preprocess table size.
4870 (OMP_HOST_VAR_CNT): Likewise.
4871 (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
4872 number.
4873 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
4874 (gomp_set_icv_flag): Sets a flag for a particular ICV.
4875 (print_device_specific_icvs): New helper function for omp_display_env to
4876 print device specific ICV values.
4877 (get_device_num): New helper function for parse_device_specific.
4878 Extracts the device number from an environment variable name.
4879 (get_icv_member_addr): Gets the memory address for a particular member
4880 of an ICV struct.
4881 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
4882 (initialize_icvs): New function to initialize a gomp_initial_icvs
4883 struct.
4884 (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
4885 (startswith): Checks if a string starts with a given prefix.
4886 (initialize_env): Extended to parse the new syntax of environment
4887 variables.
4888 * icv-device.c (omp_get_max_teams): Added.
4889 (ialias): Likewise.
4890 (omp_set_num_teams): Likewise.
4891 * icv.c (omp_set_num_teams): Moved to icv-device.c.
4892 (omp_get_max_teams): Likewise.
4893 (ialias): Likewise.
4894 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
4895 (GOMP_ADDITIONAL_ICVS): New target-side struct that
4896 holds the designated ICVs of the target device.
4897 * libgomp.h (enum gomp_icvs): Collection of ICVs.
4898 (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
4899 no suffix.
4900 (enum gomp_env_suffix): Collection of possible suffixes of environment
4901 variables.
4902 (struct gomp_initial_icvs): Contains all ICVs for which we need to store
4903 initial values.
4904 (struct gomp_default_icv):New struct to hold ICVs for which we need
4905 to store initial values.
4906 (struct gomp_icv_list): Definition of a linked list that is used for
4907 storing ICVs for the devices and also for _DEV, _ALL, and without
4908 suffix.
4909 (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
4910 a device.
4911 (struct gomp_offload_icv_list): Definition of a linked list that holds
4912 device-specific ICVs that are copied to devices.
4913 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
4914 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
4915 * libgomp.texi: Updated.
4916 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
4917 further ICVs from the offload image.
4918 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
4919 * target.c (gomp_get_offload_icv_item): Get a list item of
4920 gomp_offload_icv_list.
4921 (get_gomp_offload_icvs): New. Returns the ICV values
4922 depending on the device num and the variable hierarchy.
4923 (gomp_load_image_to_device): Extended to copy further ICVs to a device.
4924 * testsuite/libgomp.c-c++-common/icv-5.c: New test.
4925 * testsuite/libgomp.c-c++-common/icv-6.c: New test.
4926 * testsuite/libgomp.c-c++-common/icv-7.c: New test.
4927 * testsuite/libgomp.c-c++-common/icv-8.c: New test.
4928 * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
4929 * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
4930
4931 2022-09-08 Jakub Jelinek <[email protected]>
4932
4933 * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
4934 fully supported.
4935 * testsuite/libgomp.c/doacross-4.c: New test.
4936 * testsuite/libgomp.c/doacross-5.c: New test.
4937 * testsuite/libgomp.c/doacross-6.c: New test.
4938 * testsuite/libgomp.c/doacross-7.c: New test.
4939
4940 2022-09-05 Tobias Burnus <[email protected]>
4941
4942 * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
4943
4944 2022-08-26 Tobias Burnus <[email protected]>
4945
4946 * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
4947 refer to 'requires'.
4948 * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
4949 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
4950 * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
4951 * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
4952
4953 2022-08-17 Tobias Burnus <[email protected]>
4954
4955 PR middle-end/106548
4956 * testsuite/libgomp.c/linear-2.c: New test.
4957
4958 2022-08-17 Tobias Burnus <[email protected]>
4959
4960 * splay-tree.h: Fix splay_* macro unsetting if
4961 splay_tree_prefix is defined.
4962
4963 2022-07-29 Tobias Burnus <[email protected]>
4964
4965 * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
4966
4967 2022-07-29 Jakub Jelinek <[email protected]>
4968
4969 PR middle-end/106449
4970 * testsuite/libgomp.c-c++-common/pr106449.c: New test.
4971
4972 2022-07-12 Tobias Burnus <[email protected]>
4973
4974 * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
4975
4976 2022-07-12 Thomas Schwinge <[email protected]>
4977
4978 PR middle-end/101551
4979 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
4980 'offloading_enabled' diagnostics issue.
4981
4982 2022-07-11 Thomas Schwinge <[email protected]>
4983
4984 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
4985 '_Pragma' diagnostics verification.
4986
4987 2022-07-10 Lewis Hyatt <[email protected]>
4988
4989 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
4990 improved warning locations.
4991 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
4992
4993 2022-07-08 Thomas Schwinge <[email protected]>
4994
4995 * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
4996 * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
4997 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
4998 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
4999 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
5000
5001 2022-07-07 Thomas Schwinge <[email protected]>
5002
5003 * target.c (GOMP_offload_register, GOMP_offload_unregister):
5004 Denote as legacy entry points.
5005 * testsuite/lib/libgomp.exp
5006 (check_effective_target_offload_target_any): New proc.
5007 * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
5008 'offload_target_any'.
5009 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
5010 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
5011 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
5012
5013 2022-07-07 Thomas Schwinge <[email protected]>
5014
5015 * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
5016 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
5017
5018 2022-07-07 Thomas Schwinge <[email protected]>
5019
5020 * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
5021
5022 2022-07-06 Thomas Schwinge <[email protected]>
5023
5024 * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
5025 'data'.
5026 (GOMP_offload_unregister_ver): Likewise. Fix up 'target_data'.
5027
5028 2022-07-04 Tobias Burnus <[email protected]>
5029 Jakub Jelinek <[email protected]>
5030
5031 * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
5032
5033 2022-07-04 Tobias Burnus <[email protected]>
5034 Chung-Lin Tang <[email protected]>
5035 Thomas Schwinge <[email protected]>
5036
5037 * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
5038 omp_requires_mask arg.
5039 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
5040 return -1 when device available but omp_requires_mask != 0.
5041 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
5042 * oacc-host.c (host_get_num_devices, host_openacc_get_property):
5043 Update call.
5044 * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
5045 goacc_attach_host_thread_to_device, acc_get_num_devices,
5046 acc_set_device_num, get_property_any): Likewise.
5047 * target.c (omp_requires_mask): New global var.
5048 (gomp_requires_to_name): New.
5049 (GOMP_offload_register_ver): Handle passed omp_requires_mask.
5050 (gomp_target_init): Handle omp_requires_mask.
5051 * libgomp.texi (OpenMP 5.0): Update requires impl. status.
5052 (OpenMP 5.1): Add a missed item.
5053 (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
5054 * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
5055 * testsuite/libgomp.c-c++-common/requires-1.c: New test.
5056 * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
5057 * testsuite/libgomp.c-c++-common/requires-2.c: New test.
5058 * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
5059 * testsuite/libgomp.c-c++-common/requires-3.c: New test.
5060 * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
5061 * testsuite/libgomp.c-c++-common/requires-4.c: New test.
5062 * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
5063 * testsuite/libgomp.c-c++-common/requires-5.c: New test.
5064 * testsuite/libgomp.c-c++-common/requires-6.c: New test.
5065 * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
5066 * testsuite/libgomp.c-c++-common/requires-7.c: New test.
5067 * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
5068 * testsuite/libgomp.fortran/requires-1.f90: New test.
5069
5070 2022-07-01 Tobias Burnus <[email protected]>
5071
5072 * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
5073 with fromto as implemented.
5074
5075 2022-06-28 Martin Liska <[email protected]>
5076
5077 * acinclude.m4: Fix typo in mold linker detection.
5078 * Makefile.in: Regenerate.
5079 * configure: Regenerate.
5080
5081 2022-06-21 Jakub Jelinek <[email protected]>
5082 Paul Iannetta <[email protected]>
5083
5084 PR libgomp/106045
5085 * testsuite/libgomp.c/target-31.c: Add private (i) clause.
5086
5087 2022-06-17 Martin Liska <[email protected]>
5088
5089 * libgomp.texi: Add table header for new features of
5090 OpenMP 5.2.
5091
5092 2022-06-15 Jakub Jelinek <[email protected]>
5093
5094 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
5095 q to ddress of an automatic variable. Use -5 instead of -1 in
5096 omp_get_mapped_ptr call. Add test with omp_initial_device.
5097 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
5098 of -1 in omp_get_mapped_ptr call. Add test with omp_initial_device.
5099 Renumber stop arguments afterwards.
5100
5101 2022-06-13 Jakub Jelinek <[email protected]>
5102
5103 * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
5104 * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
5105 parameters.
5106 * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
5107 * target.c (resolve_device): Add remapped argument, handle
5108 GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
5109 for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
5110 if remapped, otherwise treat omp_initial_device that way. For
5111 omp_invalid_device, always emit gomp_fatal, even when
5112 OMP_TARGET_OFFLOAD isn't mandatory.
5113 (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
5114 GOMP_target_update, GOMP_target_update_ext,
5115 GOMP_target_enter_exit_data): Pass true as remapped argument to
5116 resolve_device.
5117 (omp_target_alloc, omp_target_free, omp_target_is_present,
5118 omp_target_memcpy_check, omp_target_associate_ptr,
5119 omp_target_disassociate_ptr, omp_get_mapped_ptr,
5120 omp_target_is_accessible): Pass false as remapped argument to
5121 resolve_device. Treat omp_initial_device the same as
5122 gomp_get_num_devices (). Don't bypass resolve_device calls if
5123 device_num is negative.
5124 (omp_pause_resource): Treat omp_initial_device the same as
5125 gomp_get_num_devices (). Call resolve_device.
5126 * icv-device.c (omp_set_default_device): Always set to device_num
5127 even when it is negative.
5128 * libgomp.texi: Document that Conforming device numbers,
5129 omp_initial_device and omp_invalid_device is implemented.
5130 * testsuite/libgomp.c/target-41.c (main): Add test with
5131 omp_initial_device.
5132 * testsuite/libgomp.c/target-45.c: New test.
5133 * testsuite/libgomp.c/target-46.c: New test.
5134 * testsuite/libgomp.c/target-47.c: New test.
5135 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
5136 test with omp_initial_device. Use -5 instead of -1 for negative value
5137 test.
5138 * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
5139 Likewise. Reorder stop numbers.
5140
5141 2022-06-10 Jakub Jelinek <[email protected]>
5142
5143 * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
5144 rather than "libmemkind.so".
5145
5146 2022-06-10 Thomas Schwinge <[email protected]>
5147
5148 * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
5149 * plugin/configfrag.ac (--with-cuda-driver)
5150 (--with-cuda-driver-include, --with-cuda-driver-lib)
5151 (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
5152 (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
5153 Remove.
5154 * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
5155 (cuda_driver_lib): Remove.
5156 * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
5157 * Makefile.in: Regenerate.
5158 * configure: Likewise.
5159 * testsuite/Makefile.in: Likewise.
5160
5161 2022-06-09 Jakub Jelinek <[email protected]>
5162
5163 * config/linux/allocator.c: Fix up #include directive.
5164
5165 2022-06-09 Jakub Jelinek <[email protected]>
5166
5167 * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
5168 (enum gomp_memkind_kind): New type.
5169 (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
5170 is defined.
5171 (struct gomp_memkind_data): New type.
5172 (memkind_data, memkind_data_once): New variables.
5173 (gomp_init_memkind, gomp_get_memkind): New functions.
5174 (omp_init_allocator): Initialize data.memkind, don't fail for
5175 omp_high_bw_mem_space if libmemkind supports it.
5176 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
5177 memkind support of LIBGOMP_USE_MEMKIND is defined.
5178 * config/linux/allocator.c: New file.
5179
5180 2022-06-03 Tobias Burnus <[email protected]>
5181
5182 * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
5183 * testsuite/libgomp.fortran/scope-2.f90: New test.
5184
5185 2022-06-02 David Malcolm <[email protected]>
5186
5187 * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
5188
5189 2022-05-31 Jakub Jelinek <[email protected]>
5190
5191 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
5192 scope construct with allocate clause.
5193 * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
5194 * testsuite/libgomp.c-c++-common/scope-2.c: New test.
5195
5196 2022-05-28 Tobias Burnus <[email protected]>
5197
5198 * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
5199 * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
5200 explicit 'to' and 'enter' clause.
5201 * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
5202
5203 2022-05-28 Jakub Jelinek <[email protected]>
5204
5205 PR libgomp/105745
5206 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
5207 defined(HAVE__ALIGNED_MALLOC) case.
5208 * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
5209 handling as last option before fallback instead of first.
5210 (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
5211 _aligned_free.
5212
5213 2022-05-27 Jakub Jelinek <[email protected]>
5214
5215 * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
5216 clauses to enter.
5217 * testsuite/libgomp.c/target-41.c: Likewise.
5218
5219 2022-05-27 Tobias Burnus <[email protected]>
5220
5221 * libgomp.texi (Other new OpenMP 5.1 features): Add
5222 'begin declare target'.
5223 (Other new OpenMP 5.2 features): New.
5224
5225 2022-05-25 Jakub Jelinek <[email protected]>
5226
5227 * task.c (gomp_task_run_post_handle_dependers): If empty_task
5228 is the last task taskwait depend depends on, wake it up.
5229 Similarly if it is the last child of a taskgroup, use atomic
5230 store instead of decrement and awak taskgroup wait if any.
5231 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
5232
5233 2022-05-24 Andrew Stubbs <[email protected]>
5234
5235 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
5236 EF_AMDGPU_MACH_AMDGCN_GFX90a.
5237 (gcn_gfx90a_s): New.
5238 (isa_hsa_name): Support gfx90a.
5239 (isa_code): Likewise.
5240
5241 2022-05-24 Tobias Burnus <[email protected]>
5242
5243 PR c/105378
5244 * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
5245 * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
5246
5247 2022-05-24 Jakub Jelinek <[email protected]>
5248
5249 PR c/105378
5250 * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
5251 * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
5252 * task.c (empty_task): New function.
5253 (gomp_task_run_post_handle_depend_hash): Declare earlier.
5254 (gomp_task_run_post_handle_depend): Declare.
5255 (GOMP_task): Optimize fn == empty_task if there is nothing to wait
5256 for.
5257 (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
5258 (GOMP_taskwait_depend_nowait): New function.
5259 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
5260
5261 2022-05-23 Tobias Burnus <[email protected]>
5262
5263 PR fortran/104949
5264 * target.c (gomp_map_vars_internal, copy_firstprivate_data):
5265 Support attach for GOMP_MAP_FIRSTPRIVATE.
5266 * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
5267 * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
5268 * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
5269
5270 2022-05-20 Marcel Vollweiler <[email protected]>
5271
5272 * libgomp.map: Added omp_target_memcpy_async and
5273 omp_target_memcpy_rect_async.
5274 * libgomp.texi: Both functions are now supported.
5275 * omp.h.in: Added omp_target_memcpy_async and
5276 omp_target_memcpy_rect_async.
5277 * omp_lib.f90.in: Added interfaces for both new functions.
5278 * omp_lib.h.in: Likewise.
5279 * target.c (ialias_redirect): Added for GOMP_task.
5280 (omp_target_memcpy): Restructured into check and copy part.
5281 (omp_target_memcpy_check): New helper function for omp_target_memcpy and
5282 omp_target_memcpy_async that checks requirements.
5283 (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
5284 omp_target_memcpy_async that performs the memcpy.
5285 (omp_target_memcpy_async_helper): New helper function that is used in
5286 omp_target_memcpy_async for the asynchronous task.
5287 (omp_target_memcpy_async): Added.
5288 (omp_target_memcpy_rect): Restructured into check and copy part.
5289 (omp_target_memcpy_rect_check): New helper function for
5290 omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
5291 requirements.
5292 (omp_target_memcpy_rect_copy): New helper function for
5293 omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
5294 the memcpy.
5295 (omp_target_memcpy_rect_async_helper): New helper function that is used
5296 in omp_target_memcpy_rect_async for the asynchronous task.
5297 (omp_target_memcpy_rect_async): Added.
5298 * task.c (ialias): Added for GOMP_task.
5299 * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
5300 * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
5301 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
5302 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
5303 * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
5304 * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
5305 * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
5306 * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
5307
5308 2022-05-18 Tobias Burnus <[email protected]>
5309
5310 * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
5311 (OpenMP Context Selectors): Add missing comma.
5312 * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
5313 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
5314 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
5315 * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
5316
5317 2022-05-17 Jakub Jelinek <[email protected]>
5318
5319 * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
5320 comment for omp_display_env feature.
5321
5322 2022-05-17 Tobias Burnus <[email protected]>
5323
5324 * libgomp.texi (Offload-Target Specifics): New chapter; add section
5325 to document OpenMP context selectors.
5326
5327 2022-05-17 Jakub Jelinek <[email protected]>
5328
5329 * libgomp.h (struct gomp_task_depend_entry): Change is_in type
5330 from bool to unsigned char.
5331 * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
5332 Ignore dependencies where
5333 task->depend[i].is_in && task->depend[i].is_in == ent->is_in
5334 rather than just task->depend[i].is_in && ent->is_in. Remember
5335 whether GOMP_DEPEND_IN loop is needed and guard the loop with that
5336 conditional.
5337 (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
5338 Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
5339 rather than just elem.is_in && ent->is_in.
5340 * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
5341 inoutset depend-kind.
5342 * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
5343 * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
5344 * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
5345
5346 2022-05-17 Tobias Burnus <[email protected]>
5347
5348 * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
5349
5350 2022-05-17 Tobias Burnus <[email protected]>
5351
5352 * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
5353 * testsuite/libgomp.fortran/depend-5.f90: New test.
5354 * testsuite/libgomp.fortran/depend-6.f90: New test.
5355 * testsuite/libgomp.fortran/depend-7.f90: New test.
5356
5357 2022-05-16 Marcel Vollweiler <[email protected]>
5358
5359 * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
5360 * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
5361 * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
5362
5363 2022-05-13 Tobias Burnus <[email protected]>
5364
5365 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
5366
5367 2022-05-13 Tobias Burnus <[email protected]>
5368
5369 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
5370
5371 2022-05-13 Thomas Schwinge <[email protected]>
5372
5373 * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
5374 [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
5375 (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
5376 append '$(PLUGIN_NVPTX_LDFLAGS)'.
5377 * Makefile.in: Regenerate.
5378
5379 2022-05-12 Thomas Schwinge <[email protected]>
5380
5381 * Makefile.am (libgomp_la_LIBADD): Initialize.
5382 * plugin/configfrag.ac (DL_LIBS): New.
5383 (PLUGIN_GCN_LIBS): Remove.
5384 (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
5385 * plugin/Makefrag.am (libgomp_la_LIBADD)
5386 (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
5387 (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
5388 * Makefile.in: Regenerate.
5389 * config.h.in: Likewise.
5390 * configure: Likewise.
5391 * testsuite/Makefile.in: Likewise.
5392
5393 2022-05-12 Thomas Schwinge <[email protected]>
5394
5395 * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
5396 * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
5397 'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
5398 * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
5399 'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
5400 'PLUGIN_NVPTX_LINK_LIBCUDA'.
5401 * Makefile.in: Regenerate.
5402 * config.h.in: Likewise.
5403 * configure: Likewise.
5404
5405 2022-05-12 Thomas Schwinge <[email protected]>
5406
5407 * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
5408 for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
5409 * Makefile.in: Regenerate.
5410 * config.h.in: Likewise.
5411 * configure: Likewise.
5412 * testsuite/Makefile.in: Likewise.
5413
5414 2022-05-12 Jakub Jelinek <[email protected]>
5415
5416 * libgomp.h (struct gomp_task): Add depend_all_memory member.
5417 * task.c (gomp_init_task): Initialize depend_all_memory.
5418 (gomp_task_handle_depend): Handle omp_all_memory.
5419 (gomp_task_run_post_handle_depend_hash): Clear
5420 parent->depend_all_memory if equal to current task.
5421 (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
5422 * testsuite/libgomp.c-c++-common/depend-1.c: New test.
5423 * testsuite/libgomp.c-c++-common/depend-2.c: New test.
5424 * testsuite/libgomp.c-c++-common/depend-3.c: New test.
5425
5426 2022-05-11 Thomas Schwinge <[email protected]>
5427
5428 * plugin/configfrag.ac: Remove '--with-hsa-runtime',
5429 '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
5430 * Makefile.in: Regenerate.
5431 * configure: Likewise.
5432 * testsuite/Makefile.in: Likewise.
5433
5434 2022-05-11 Thomas Schwinge <[email protected]>
5435
5436 * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
5437 consider 'PLUGIN_GCN_CPPFLAGS'.
5438 (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
5439 'PLUGIN_GCN_LDFLAGS'.
5440 * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
5441 Remove.
5442 * Makefile.in: Regenerate.
5443 * configure: Likewise.
5444 * testsuite/Makefile.in: Likewise.
5445
5446 2022-05-11 Thomas Schwinge <[email protected]>
5447
5448 * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
5449 (HSA_RUNTIME_LDFLAGS): Remove.
5450 * configure: Regenerate.
5451
5452 2022-05-11 Thomas Schwinge <[email protected]>
5453
5454 * testsuite/lib/libgomp.exp (libgomp_init): Don't
5455 'append always_ld_library_path ":$hsa_runtime_lib"'.
5456 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
5457
5458 2022-05-10 Thomas Schwinge <[email protected]>
5459
5460 * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
5461 multi-device testing.
5462
5463 2022-05-06 Marcel Vollweiler <[email protected]>
5464
5465 * libgomp.map: Added omp_target_is_accessible.
5466 * libgomp.texi: Tagged omp_target_is_accessible as supported.
5467 * omp.h.in: Added omp_target_is_accessible.
5468 * omp_lib.f90.in: Added interface for omp_target_is_accessible.
5469 * omp_lib.h.in: Likewise.
5470 * target.c (omp_target_is_accessible): Added implementation of
5471 omp_target_is_accessible.
5472 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
5473 * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
5474
5475 2022-05-05 Sandra Loosemore <[email protected]>
5476
5477 * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
5478
5479 2022-05-04 Tobias Burnus <[email protected]>
5480
5481 * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
5482
5483 2022-05-04 Tobias Burnus <[email protected]>
5484
5485 * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
5486
5487 2022-05-03 Marcel Vollweiler <[email protected]>
5488
5489 * libgomp.map: Added omp_get_mapped_ptr.
5490 * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
5491 * omp.h.in: Added omp_get_mapped_ptr.
5492 * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
5493 * omp_lib.h.in: Likewise.
5494 * target.c (omp_get_mapped_ptr): Added implementation of
5495 omp_get_mapped_ptr.
5496 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
5497 * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
5498 * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
5499 * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
5500 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
5501 * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
5502 * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
5503 * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
5504
5505 2022-04-28 Thomas Schwinge <[email protected]>
5506
5507 PR fortran/104717
5508 * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
5509 privatization scanning. For GCN offloading compilation, raise
5510 '-mgang-private-size'.
5511
5512 2022-04-26 Jakub Jelinek <[email protected]>
5513
5514 PR libgomp/105358
5515 * work.c (gomp_init_work_share): Don't mask of adjustment for
5516 dynamic long long realignment if struct gomp_work_share has smaller
5517 alignof than long long.
5518 * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
5519 struct gomp_work_share has smaller alignof than long long or if
5520 sizeof (struct gomp_work_share) is smaller than
5521 INLINE_ORDERED_TEAM_IDS_OFF.
5522 * loop_ull.c (GOMP_loop_ull_start): Likewise.
5523 * sections.c (GOMP_sections2_start): Likewise.
5524
5525 2022-04-25 Jakub Jelinek <[email protected]>
5526 Thomas Schwinge <[email protected]>
5527
5528 PR fortran/104717
5529 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
5530
5531 2022-04-13 Jakub Jelinek <[email protected]>
5532
5533 * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
5534
5535 2022-04-06 Thomas Schwinge <[email protected]>
5536
5537 * plugin/cuda/cuda.h: Remove file.
5538 * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
5539 "cuda/cuda.h" instead of <cuda.h>.
5540 * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
5541 'PLUGIN_NVPTX_CPPFLAGS'.
5542 * configure: Regenerate.
5543
5544 2022-04-05 Chung-Lin Tang <[email protected]>
5545
5546 * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
5547
5548 2022-04-04 Tom de Vries <[email protected]>
5549
5550 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
5551 on_device_arch_nvptx instead of offload_target_nvptx.
5552 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
5553
5554 2022-04-01 Tom de Vries <[email protected]>
5555
5556 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
5557 and use REC_DEPTH.
5558 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
5559
5560 2022-04-01 Tom de Vries <[email protected]>
5561
5562 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
5563 num_workers check.
5564
5565 2022-03-29 Chenghua Xu <[email protected]>
5566 Lulu Cheng <[email protected]>
5567
5568 * configure.tgt: Add LoongArch triplet.
5569
5570 2022-03-28 Tom de Vries <[email protected]>
5571
5572 * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
5573 instead of /libexec/.
5574 * configure: Regenerate.
5575
5576 2022-03-25 Tom de Vries <[email protected]>
5577
5578 PR libgomp/105042
5579 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
5580 execution time.
5581 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
5582 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
5583
5584 2022-03-23 Tobias Burnus <[email protected]>
5585
5586 PR middle-end/104285
5587 * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
5588 * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
5589 * testsuite/libgomp.c++/target-same-name-2.C: New test.
5590 * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
5591 * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
5592 * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
5593
5594 2022-03-22 Tom de Vries <[email protected]>
5595
5596 PR target/104916
5597 PR target/104783
5598 * testsuite/libgomp.c/pr104783-2.c: New test.
5599
5600 2022-03-18 Tobias Burnus <[email protected]>
5601
5602 PR fortran/103039
5603 * testsuite/libgomp.fortran/associate4.f90: New test.
5604
5605 2022-03-18 Tom de Vries <[email protected]>
5606
5607 PR target/104952
5608 * testsuite/libgomp.c/pr104952-1.c: New test.
5609 * testsuite/libgomp.c/pr104952-2.c: New test.
5610
5611 2022-03-18 Jakub Jelinek <[email protected]>
5612
5613 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
5614 variable next to pl variable.
5615
5616 2022-03-17 Thomas Schwinge <[email protected]>
5617
5618 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
5619 Enhance.
5620 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
5621 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5622
5623 2022-03-17 Thomas Schwinge <[email protected]>
5624
5625 PR middle-end/90115
5626 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
5627 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5628
5629 2022-03-16 Marcel Vollweiler <[email protected]>
5630
5631 * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
5632 omp_set_max_active_levels.
5633 * testsuite/libgomp.fortran/icv-8.f90: New test.
5634
5635 2022-03-16 Thomas Schwinge <[email protected]>
5636
5637 PR testsuite/102841
5638 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
5639
5640 2022-03-13 Tobias Burnus <[email protected]>
5641
5642 * libgomp.texi: Fix typo.
5643
5644 2022-03-12 Thomas Schwinge <[email protected]>
5645
5646 PR middle-end/100280
5647 PR middle-end/104892
5648 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
5649 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
5650 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5651 Likewise.
5652 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
5653 Likewise.
5654 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5655 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
5656 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
5657 Likewise.
5658
5659 2022-03-12 Thomas Schwinge <[email protected]>
5660
5661 PR middle-end/104892
5662 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
5663 to PR104892.
5664 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
5665 enable '--param=openacc-kernels=decompose' and adjust.
5666 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
5667 Likewise.
5668 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5669 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
5670 Likewise.
5671
5672 2022-03-12 Thomas Schwinge <[email protected]>
5673
5674 PR middle-end/90115
5675 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
5676 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
5677 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5678 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
5679
5680 2022-03-12 Thomas Schwinge <[email protected]>
5681
5682 PR middle-end/100280
5683 PR middle-end/104086
5684 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
5685 Merge this...
5686 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
5687 ..., and this...
5688 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
5689 this, and adjust.
5690 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5691 Extend.
5692
5693 2022-03-10 Hafiz Abid Qadeer <[email protected]>
5694
5695 * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
5696 trait. Test last index in w and v array. Remove redundant
5697 assignment to V(1). Move alignment checks at the end of
5698 parallel region.
5699
5700 2022-03-10 Tom de Vries <[email protected]>
5701
5702 * testsuite/libgomp.c/pr104783.c: New test.
5703
5704 2022-03-10 Thomas Schwinge <[email protected]>
5705
5706 PR middle-end/90115
5707 PR middle-end/102330
5708 PR middle-end/104774
5709 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5710 Enhance.
5711 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
5712 Adjust.
5713 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
5714 Likewise.
5715 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
5716 Likewise.
5717 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
5718 Likewise.
5719 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
5720 Likewise.
5721 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
5722 Likewise.
5723 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
5724 Likewise.
5725 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
5726 Likewise.
5727 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
5728 Likewise.
5729 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
5730 Likewise.
5731 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
5732 Likewise.
5733 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
5734 Likewise.
5735 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
5736 Likewise.
5737 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5738 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
5739 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5740
5741 2022-03-10 Thomas Schwinge <[email protected]>
5742
5743 PR middle-end/90115
5744 * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
5745 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
5746 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
5747 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
5748
5749 2022-03-04 Thomas Schwinge <[email protected]>
5750
5751 PR testsuite/104791
5752 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
5753 expected diagnostics.
5754
5755 2022-03-04 Thomas Schwinge <[email protected]>
5756
5757 PR middle-end/104784
5758 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
5759 Test with '--param=openacc-kernels=decompose'.
5760 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
5761 Likewise.
5762 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
5763 Likewise.
5764 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
5765 Likewise.
5766 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
5767 Likewise.
5768 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
5769 Likewise.
5770 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
5771 Likewise.
5772 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
5773 Likewise.
5774 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
5775 Likewise.
5776 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
5777 Likewise.
5778 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
5779 Likewise.
5780 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
5781 Likewise.
5782 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
5783 Likewise.
5784 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
5785 Likewise.
5786 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
5787 Likewise.
5788 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
5789 Likewise.
5790 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
5791 Likewise.
5792 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
5793 Likewise.
5794 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
5795 Likewise.
5796 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
5797 Likewise.
5798 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
5799 Likewise.
5800 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
5801 Likewise.
5802 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
5803 Likewise.
5804 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
5805 Likewise.
5806 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
5807 Likewise.
5808 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
5809 Likewise.
5810 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
5811 Likewise.
5812 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
5813 Likewise.
5814 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
5815 Likewise.
5816 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
5817 Likewise.
5818 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
5819 Likewise.
5820 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
5821 Likewise.
5822 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
5823 Likewise.
5824
5825 2022-03-04 Thomas Schwinge <[email protected]>
5826
5827 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
5828 Test '-fopt-info-omp-all'.
5829 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
5830 Likewise.
5831 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
5832 Likewise.
5833 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
5834 Likewise.
5835 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
5836 Likewise.
5837 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
5838 Likewise.
5839 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
5840 Likewise.
5841 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
5842 Likewise.
5843 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
5844 Likewise.
5845 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
5846 Likewise.
5847 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
5848 Likewise.
5849 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
5850 Likewise.
5851 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
5852 Likewise.
5853 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
5854 Likewise.
5855 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
5856 Likewise.
5857 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
5858 Likewise.
5859 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
5860 Likewise.
5861 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
5862 Likewise.
5863 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
5864 Likewise.
5865 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
5866 Likewise.
5867 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
5868 Likewise.
5869 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
5870 Likewise.
5871 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
5872 Likewise.
5873 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
5874 Likewise.
5875 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
5876 Likewise.
5877 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
5878 Likewise.
5879 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
5880 Likewise.
5881 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
5882 Likewise.
5883 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
5884 Likewise.
5885 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
5886 Likewise.
5887 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
5888 Likewise.
5889 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
5890 Likewise.
5891 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
5892 Likewise.
5893
5894 2022-03-04 Thomas Schwinge <[email protected]>
5895
5896 PR middle-end/100280
5897 PR middle-end/104132
5898 PR middle-end/104133
5899 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5900 Extend.
5901
5902 2022-03-04 Thomas Schwinge <[email protected]>
5903
5904 PR middle-end/100280
5905 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
5906 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5907 Likewise.
5908
5909 2022-03-04 Thomas Schwinge <[email protected]>
5910
5911 PR middle-end/100280
5912 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
5913 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5914 Likewise.
5915
5916 2022-02-28 Tom de Vries <[email protected]>
5917
5918 * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
5919 * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
5920 * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
5921 * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
5922 * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
5923 * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
5924
5925 2022-02-24 Tom de Vries <[email protected]>
5926
5927 * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
5928 * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
5929 * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
5930 * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
5931 * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
5932 * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
5933 * testsuite/libgomp.c/declare-variant-3.h: New header file.
5934
5935 2022-02-22 Thomas Schwinge <[email protected]>
5936
5937 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
5938 gang-redundant execution.
5939
5940 2022-02-22 Tom de Vries <[email protected]>
5941
5942 PR target/99555
5943 * config/nvptx/bar.c (generation_to_barrier): New function, copied
5944 from config/rtems/bar.c.
5945 (futex_wait, futex_wake): New function.
5946 (do_spin, do_wait): New function, copied from config/linux/wait.h.
5947 (gomp_barrier_wait_end, gomp_barrier_wait_last)
5948 (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
5949 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
5950 and replace with include of config/linux/bar.c.
5951 * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
5952 (gomp_barrier_init): Init new fields.
5953 * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
5954 workarounds.
5955 * testsuite/libgomp.c/pr99555-1.c: Same.
5956 * testsuite/libgomp.fortran/task-detach-6.f90: Same.
5957
5958 2022-02-22 Tom de Vries <[email protected]>
5959
5960 PR testsuite/104146
5961 * testsuite/libgomp.c++/pr96390.C: Add additional-option
5962 -foffload=-Wa,--verify for nvptx.
5963 * testsuite/libgomp.c-c++-common/pr96390.c: Same.
5964
5965 2022-02-15 Tobias Burnus <[email protected]>
5966
5967 * testsuite/libgomp.fortran/depend-4.f90: New test.
5968
5969 2022-02-10 Tobias Burnus <[email protected]>
5970
5971 PR c++/102204
5972 * testsuite/libgomp.c++/target-virtual-1.C: New test.
5973
5974 2022-02-10 Marcel Vollweiler <[email protected]>
5975
5976 * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
5977 * target.c (copy_firstprivate_data): Copy only if host address is not
5978 NULL.
5979 * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
5980 * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
5981 * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
5982 * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
5983 * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
5984 * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
5985 * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
5986 * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
5987 * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
5988 * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
5989
5990 2022-02-08 Jakub Jelinek <[email protected]>
5991
5992 PR libgomp/104385
5993 * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
5994 clear task->parent.
5995 * testsuite/libgomp.c/pr104385.c: New test.
5996
5997 2022-02-04 Tobias Burnus <[email protected]>
5998
5999 * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
6000 STOP of previous commit.
6001
6002 2022-02-04 Tobias Burnus <[email protected]>
6003
6004 * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
6005 from is_64bit_aligned_.
6006 * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
6007 and use it, more implicit none, remove unused argument.
6008
6009 2022-02-03 David Seifert <[email protected]>
6010 Jakub Jelinek <[email protected]>
6011
6012 * configure.ac: Support --disable-werror.
6013 * configure: Regenerate.
6014
6015 2022-02-01 Tom de Vries <[email protected]>
6016
6017 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
6018 PR83812 workaround.
6019 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
6020 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
6021
6022 2022-02-01 Tom de Vries <[email protected]>
6023
6024 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
6025 num_workers for nvidia accelerator to fix libgomp error 'insufficient
6026 resources'.
6027 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
6028 Same.
6029 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
6030
6031 2022-02-01 Tom de Vries <[email protected]>
6032
6033 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
6034 recursion depth.
6035 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
6036
6037 2022-01-31 Martin Liska <[email protected]>
6038
6039 * acinclude.m4: Detect *_ld_is_mold and use it.
6040 * configure: Regenerate.
6041
6042 2022-01-27 Tobias Burnus <[email protected]>
6043
6044 * libgomp.texi (OpenMP 5.0): Update implementation status.
6045
6046 2022-01-21 Thomas Schwinge <[email protected]>
6047
6048 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
6049 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
6050 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
6051 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
6052 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
6053 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6054 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6055 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
6056 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
6057 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6058 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
6059 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
6060 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
6061 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
6062 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
6063
6064 2022-01-19 Marcel Vollweiler <[email protected]>
6065
6066 * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
6067 "static") to make the device num available in the offload image.
6068
6069 2022-01-19 Martin Liska <[email protected]>
6070 Thomas Schwinge <[email protected]>
6071
6072 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
6073 patterns.
6074 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
6075 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
6076 Likewise.
6077 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
6078 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
6079 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
6080 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
6081 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
6082 Likewise.
6083 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
6084 Likewise.
6085 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
6086 Likewise.
6087 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
6088 Likewise.
6089 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
6090 Likewise.
6091 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
6092 Likewise.
6093 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
6094 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6095 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
6096
6097 2022-01-18 Martin Liska <[email protected]>
6098
6099 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
6100 in dg-warning.
6101 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
6102 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
6103 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
6104 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
6105 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
6106 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
6107 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
6108 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
6109 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
6110 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
6111 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
6112 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
6113 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
6114 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6115 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
6116
6117 2022-01-17 Thomas Schwinge <[email protected]>
6118
6119 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
6120 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
6121 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
6122
6123 2022-01-17 Julian Brown <[email protected]>
6124 Thomas Schwinge <[email protected]>
6125
6126 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
6127 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
6128 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
6129
6130 2022-01-16 Kwok Cheung Yeung <[email protected]>
6131 Andrew Stubbs <[email protected]>
6132
6133 * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
6134 the number of teams and threads if necessary.
6135 (gcn_exec): Automatically set the number of gangs and workers if
6136 necessary.
6137
6138 2022-01-13 Hafiz Abid Qadeer <[email protected]>
6139
6140 * testsuite/libgomp.fortran/allocate-1.c: New test.
6141 * testsuite/libgomp.fortran/allocate-1.f90: New test.
6142 * libgomp.texi: Remove string that says that allocate clause
6143 support is for C/C++ only.
6144
6145 2022-01-13 Thomas Schwinge <[email protected]>
6146
6147 * testsuite/libgomp.c-c++-common/on_device_arch.h
6148 (any_device_arch, any_device_arch_intel_mic): New.
6149 * testsuite/lib/libgomp.exp
6150 (check_effective_target_offload_device_any_intel_mic): New.
6151 * testsuite/libgomp.c-c++-common/target-45.c: Use it.
6152 * testsuite/libgomp.fortran/target10.f90: Likewise.
6153
6154 2022-01-13 Thomas Schwinge <[email protected]>
6155
6156 PR tree-optimization/102192
6157 * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
6158 '-Wuninitialized' diagnostics.
6159
6160 2022-01-13 Thomas Schwinge <[email protected]>
6161
6162 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
6163 current '-Wuninitialized' diagnostics.
6164 * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
6165 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
6166 * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
6167 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
6168 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6169 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
6170 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
6171 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
6172 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6173 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
6174 * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
6175 Likewise.
6176
6177 2022-01-13 Thomas Schwinge <[email protected]>
6178
6179 * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
6180 for 'offload_device_intel_mic'.
6181
6182 2022-01-13 Julian Brown <[email protected]>
6183 Thomas Schwinge <[email protected]>
6184
6185 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
6186 offloading execution XFAIL.
6187
6188 2022-01-13 Thomas Schwinge <[email protected]>
6189
6190 PR middle-end/100280
6191 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
6192 Update.
6193 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
6194 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6195 Likewise.
6196
6197 2022-01-13 Thomas Schwinge <[email protected]>
6198
6199 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
6200 Enhance.
6201 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
6202 Likewise.
6203 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
6204 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
6205 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
6206 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
6207 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6208 Likewise.
6209 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
6210 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
6211 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
6212 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6213
6214 2022-01-04 Tobias Burnus <[email protected]>
6215
6216 * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
6217 * testsuite/libgomp.fortran/target10.f90: Likewise.
6218
6219 2022-01-04 Chung-Lin Tang <[email protected]>
6220
6221 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
6222 into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
6223 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
6224
6225 2022-01-03 Jakub Jelinek <[email protected]>
6226
6227 * libgomp.texi: Bump @copying's copyright year.
6228
6229 2021-12-13 Tobias Burnus <[email protected]>
6230
6231 * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
6232 * testsuite/libgomp.fortran/atomic-19.f90: New test.
6233
6234 2021-12-10 Andrew Stubbs <[email protected]>
6235
6236 * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
6237 (GOMP_OFFLOAD_load_image): Locate the offload variables via the
6238 table, not individual symbols.
6239
6240 2021-12-09 Chung-Lin Tang <[email protected]>
6241
6242 * testsuite/libgomp.c++/target-lambda-1.C: Only run under
6243 "target offload_device_nonshared_as"
6244 * testsuite/libgomp.c++/target-this-3.C: Likewise.
6245 * testsuite/libgomp.c++/target-this-4.C: Likewise.
6246
6247 2021-12-08 Chung-Lin Tang <[email protected]>
6248
6249 * target.c (gomp_map_vars_existing): Make sure attached pointer is
6250 not overwritten during cross-host/device copying.
6251 (gomp_update): Likewise.
6252 (gomp_exit_data): Likewise.
6253 * testsuite/libgomp.c++/target-11.C: Adjust testcase.
6254 * testsuite/libgomp.c++/target-12.C: Likewise.
6255 * testsuite/libgomp.c++/target-15.C: Likewise.
6256 * testsuite/libgomp.c++/target-16.C: Likewise.
6257 * testsuite/libgomp.c++/target-17.C: Likewise.
6258 * testsuite/libgomp.c++/target-21.C: Likewise.
6259 * testsuite/libgomp.c++/target-23.C: Likewise.
6260 * testsuite/libgomp.c/target-23.c: Likewise.
6261 * testsuite/libgomp.c/target-29.c: Likewise.
6262 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
6263
6264 2021-12-08 Chung-Lin Tang <[email protected]>
6265
6266 PR middle-end/92120
6267 * libgomp.h (gomp_attach_pointer): Add bool parameter.
6268 * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
6269 (goacc_enter_data_internal): Likewise.
6270 * target.c (gomp_map_vars_existing): Update assert condition to
6271 include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
6272 (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
6273 parameter, add support for mapping a pointer with NULL target.
6274 (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
6275 parameter, add support for attaching a pointer with NULL target.
6276 (gomp_map_vars_internal): Update calls to gomp_map_pointer and
6277 gomp_attach_pointer, add handling for
6278 GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
6279 GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
6280 * testsuite/libgomp.c++/target-23.C: New testcase.
6281 * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
6282 * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
6283 * testsuite/libgomp.c++/target-this-1.C: New testcase.
6284 * testsuite/libgomp.c++/target-this-2.C: New testcase.
6285 * testsuite/libgomp.c++/target-this-3.C: New testcase.
6286 * testsuite/libgomp.c++/target-this-4.C: New testcase.
6287 * testsuite/libgomp.c++/target-this-5.C: New testcase.
6288
6289 2021-12-04 Tobias Burnus <[email protected]>
6290
6291 * libgomp.texi (OpenMP 5.1): Update status.
6292
6293 2021-12-04 Tobias Burnus <[email protected]>
6294
6295 * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
6296
6297 2021-12-02 Chung-Lin Tang <[email protected]>
6298
6299 PR fortran/90030
6300 * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
6301 * testsuite/libgomp.fortran/pr90030.f90: New test.
6302
6303 2021-11-30 Kwok Cheung Yeung <[email protected]>
6304 Thomas Schwinge <[email protected]>
6305
6306 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
6307 temporary skip.
6308
6309 2021-11-30 Cesar Philippidis <[email protected]>
6310 Thomas Schwinge <[email protected]>
6311
6312 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
6313 skip.
6314
6315 2021-11-29 Richard Biener <[email protected]>
6316
6317 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
6318 return.
6319
6320 2021-11-24 Jakub Jelinek <[email protected]>
6321
6322 PR middle-end/103384
6323 * testsuite/libgomp.c/declare-variant-2.c: New test.
6324
6325 2021-11-18 David Edelsohn <[email protected]>
6326
6327 * alloc.c (gomp_aligned_alloc): Fix typo.
6328
6329 2021-11-18 Jakub Jelinek <[email protected]>
6330
6331 PR libgomp/102838
6332 * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
6333 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
6334 (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
6335 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
6336 * work.c (alloc_work_share, gomp_work_share_start): Likewise.
6337 * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
6338 gomp_aligned_alloc instead of team_malloc.
6339
6340 2021-11-18 Jakub Jelinek <[email protected]>
6341
6342 PR libgomp/102838
6343 * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
6344 memalign over posix_memalign over aligned_alloc over fallback
6345 with malloc instead of aligned_alloc over _aligned_alloc over
6346 posix_memalign over memalign over fallback with malloc. For
6347 aligned_alloc, round up size up to multiple of al.
6348
6349 2021-11-16 Jakub Jelinek <[email protected]>
6350
6351 * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
6352 construct as implemented.
6353
6354 2021-11-15 Tobias Burnus <[email protected]>
6355
6356 * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
6357
6358 2021-11-15 Jakub Jelinek <[email protected]>
6359
6360 * task.c (gomp_create_target_task): Copy args array as well.
6361 * target.c (gomp_target_fallback): Add args argument.
6362 Set gomp_icv (true)->thread_limit_var if thread_limit is present.
6363 (GOMP_target): Adjust gomp_target_fallback caller.
6364 (GOMP_target_ext): Likewise.
6365 (gomp_target_task_fn): Likewise.
6366 * config/nvptx/team.c (gomp_nvptx_main): Set
6367 gomp_global_icv.thread_limit_var.
6368 * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
6369
6370 2021-11-15 Jakub Jelinek <[email protected]>
6371
6372 * config/nvptx/team.c (__gomp_team_num): Define as
6373 __attribute__((shared)) var.
6374 (gomp_nvptx_main): Initialize __gomp_team_num to 0.
6375 * config/nvptx/target.c (__gomp_team_num): Declare as
6376 extern __attribute__((shared)) var.
6377 (GOMP_teams4): Use __gomp_team_num as the team number instead of
6378 %ctaid.x. If first, initialize it to %ctaid.x. If num_teams_lower
6379 is bigger than num_blocks, use num_teams_lower teams and arrange for
6380 bumping of __gomp_team_num if !first and returning false once we run
6381 out of teams.
6382 * config/nvptx/teams.c (__gomp_team_num): Declare as
6383 extern __attribute__((shared)) var.
6384 (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
6385
6386 2021-11-15 Jakub Jelinek <[email protected]>
6387
6388 * testsuite/libgomp.c/teams-5.c: New test.
6389
6390 2021-11-12 Jakub Jelinek <[email protected]>
6391
6392 PR target/103201
6393 * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
6394 to ...
6395 * config/gcn/teams.c: ... here. New file.
6396
6397 2021-11-12 Chung-Lin Tang <[email protected]>
6398
6399 * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
6400 implicit map handling to allow a "superset" existing map as valid case.
6401 (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
6402 (get_implicit): New function to extract implicit status.
6403 (gomp_map_fields_existing): Adjust arguments in calls to
6404 gomp_map_vars_existing, and add uses of get_implicit.
6405 (gomp_map_vars_internal): Likewise.
6406 * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
6407
6408 2021-11-12 Jakub Jelinek <[email protected]>
6409
6410 * libgomp_g.h (GOMP_teams4): Declare.
6411 * libgomp.map (GOMP_5.1): Export GOMP_teams4.
6412 * target.c (GOMP_teams4): New function.
6413 * config/nvptx/target.c (GOMP_teams): Remove.
6414 (GOMP_teams4): New function.
6415 * config/gcn/target.c (GOMP_teams): Remove.
6416 (GOMP_teams4): New function.
6417 * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
6418 teams instead of <= 2.
6419 * testsuite/libgomp.c-c++-common/teams-2.c: New test.
6420
6421 2021-11-11 Tobias Burnus <[email protected]>
6422
6423 * testsuite/libgomp.fortran/teams-1.f90: New test.
6424
6425 2021-11-11 Jakub Jelinek <[email protected]>
6426
6427 * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
6428 * team.c (struct gomp_thread_start_data): Likewise.
6429 (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
6430 (gomp_team_start): Initialize start_data->num_teams and
6431 start_data->team_num. Update nthr->num_teams and nthr->team_num.
6432 * teams.c (gomp_num_teams, gomp_team_num): Remove.
6433 (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
6434 instead of gomp_num_teams and gomp_team_num.
6435 (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
6436 (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
6437 * testsuite/libgomp.c/teams-4.c: New test.
6438
6439 2021-11-11 Jakub Jelinek <[email protected]>
6440
6441 * testsuite/libgomp.c-c++-common/teams-1.c: New test.
6442
6443 2021-11-09 Thomas Schwinge <[email protected]>
6444
6445 * env.c (parse_gomp_openacc_dim): Restore parsing.
6446
6447 2021-10-30 Tobias Burnus <[email protected]>
6448
6449 PR middle-end/102972
6450 * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
6451 parallel construct.
6452 * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
6453 * testsuite/libgomp.c/target-3.c: Likewise.
6454 * testsuite/libgomp.c/target-5.c: Likewise.
6455 * testsuite/libgomp.c/target-6.c: Likewise.
6456 * testsuite/libgomp.c/target-teams-1.c: Likewise.
6457 * testsuite/libgomp.c/teams-1.c: Likewise.
6458 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
6459 * testsuite/libgomp.c/thread-limit-3.c: Likewise.
6460 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
6461 * testsuite/libgomp.c/thread-limit-5.c: Likewise.
6462 * testsuite/libgomp.fortran/icv-3.f90: Likewise.
6463 * testsuite/libgomp.fortran/icv-4.f90: Likewise.
6464 * testsuite/libgomp.fortran/teams1.f90: Likewise.
6465
6466 2021-10-29 Aldy Hernandez <[email protected]>
6467
6468 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
6469 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
6470
6471 2021-10-27 Jakub Jelinek <[email protected]>
6472
6473 * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
6474 aren't implemented for Fortran yet.
6475
6476 2021-10-27 Jakub Jelinek <[email protected]>
6477
6478 * testsuite/libgomp.c/loop-26.c: New test.
6479 * testsuite/libgomp.c/loop-27.c: New test.
6480
6481 2021-10-25 Tobias Burnus <[email protected]>
6482
6483 PR testsuite/102910
6484 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
6485 instead of #include <alloca.h> + alloca.
6486
6487 2021-10-21 Chung-Lin Tang <[email protected]>
6488
6489 * libgomp.texi (Support of strictly structured blocks in Fortran):
6490 Adjust to 'Y'.
6491 * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
6492
6493 2021-10-20 Chung-Lin Tang <[email protected]>
6494
6495 * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
6496 * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
6497
6498 2021-10-20 Jakub Jelinek <[email protected]>
6499
6500 PR libgomp/102838
6501 * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
6502 (struct gomp_work_share): Only use aligned(64) attribute if
6503 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
6504 add padding before lock to ensure lock is at offset 64 bytes
6505 into the structure.
6506 (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
6507 New poor man's static assertions.
6508 * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
6509 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
6510
6511 2021-10-20 Aldy Hernandez <[email protected]>
6512 Richard Biener <[email protected]>
6513
6514 * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
6515
6516 2021-10-18 Jakub Jelinek <[email protected]>
6517
6518 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
6519 && gomp_places_list_len < count after nfirst <= nlast loop condition.
6520
6521 2021-10-18 Tobias Burnus <[email protected]>
6522
6523 PR fortran/102086
6524 PR fortran/92189
6525 PR fortran/92621
6526 PR fortran/101308
6527 PR fortran/101309
6528 PR fortran/101635
6529 PR fortran/92482
6530 * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
6531
6532 2021-10-15 Jakub Jelinek <[email protected]>
6533
6534 * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
6535 type from char [50] to const char *.
6536 (places_array): Add a testcase for simplified syntax place followed
6537 by length or length and stride.
6538
6539 2021-10-15 Jakub Jelinek <[email protected]>
6540
6541 * env.c (parse_one_place): Handle non-negative-number the same
6542 as { non-negative-number }. Reject even !number:1 and
6543 !number:1:stride or !place:1 or !place:1:stride instead of just
6544 length other than 1.
6545 * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
6546 and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
6547 omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
6548 as implemented.
6549 * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
6550 simplified syntax.
6551
6552 2021-10-15 Jakub Jelinek <[email protected]>
6553
6554 * env.c (parse_schedule): For strtoul or strtoull calls which don't
6555 clearly reject return value 0 as invalid handle the case where end
6556 pointer is the same as first argument as invalid.
6557 (parse_unsigned_long_1): Likewise.
6558 (parse_one_place): Likewise.
6559 (parse_places_var): Likewise.
6560 (parse_stacksize): Likewise.
6561 (parse_spincount): Likewise.
6562 (parse_affinity): Likewise.
6563 (parse_gomp_openacc_dim): Likewise. Avoid strict aliasing violation.
6564 Make code valid C89.
6565 * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
6566 For strtoul calls which don't clearly reject return value 0 as
6567 invalid handle the case where end pointer is the same as first
6568 argument as invalid.
6569 (gomp_affinity_init_level_1): Likewise.
6570 (gomp_affinity_init_numa_domains): Likewise.
6571 * config/rtems/proc.c (parse_thread_pools): Likewise.
6572
6573 2021-10-15 Jakub Jelinek <[email protected]>
6574
6575 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
6576 after creating count places clean up and return immediately.
6577 * testsuite/libgomp.c/places-6.c: New test.
6578 * testsuite/libgomp.c/places-7.c: New test.
6579 * testsuite/libgomp.c/places-8.c: New test.
6580 * testsuite/libgomp.c/places-9.c: New test.
6581 * testsuite/libgomp.c/places-10.c: New test.
6582
6583 2021-10-15 Jakub Jelinek <[email protected]>
6584
6585 * env.c (parse_places_var): Handle numa_domains as level 5.
6586 * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
6587 function.
6588 (gomp_affinity_init_level): Use it instead of
6589 gomp_affinity_init_level_1 for level == 5.
6590 * testsuite/libgomp.c/places-5.c: New test.
6591
6592 2021-10-15 Jakub Jelinek <[email protected]>
6593
6594 * env.c (parse_places_var): Handle ll_caches as level 4.
6595 * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
6596 function.
6597 (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
6598 last level cache.
6599 (gomp_affinity_init_level): Likewise.
6600 * testsuite/libgomp.c/places-1.c: New test.
6601 * testsuite/libgomp.c/places-2.c: New test.
6602 * testsuite/libgomp.c/places-3.c: New test.
6603 * testsuite/libgomp.c/places-4.c: New test.
6604
6605 2021-10-14 Kwok Cheung Yeung <[email protected]>
6606
6607 * libgomp.texi (OpenMP 5.0): Update entry for declare variant
6608 directive.
6609
6610 2021-10-14 Kwok Cheung Yeung <[email protected]>
6611
6612 * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
6613
6614 2021-10-12 Julian Brown <[email protected]>
6615
6616 * target.c (gomp_copy_host2dev): Release device lock on cbuf
6617 error path.
6618
6619 2021-10-12 Tobias Burnus <[email protected]>
6620
6621 * testsuite/libgomp.fortran/icv-3.f90: New.
6622 * testsuite/libgomp.fortran/icv-4.f90: New.
6623
6624 2021-10-12 Jakub Jelinek <[email protected]>
6625
6626 * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
6627 omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
6628 OMP_TEAMS_THREAD_LIMIT): Document.
6629
6630 2021-10-12 Jakub Jelinek <[email protected]>
6631
6632 * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
6633 to avoid makeinfo warnings.
6634
6635 2021-10-12 Jakub Jelinek <[email protected]>
6636
6637 * testsuite/libgomp.c-c++-common/icv-3.c: New test.
6638 * testsuite/libgomp.c-c++-common/icv-4.c: New test.
6639
6640 2021-10-12 Jakub Jelinek <[email protected]>
6641
6642 PR libgomp/102628
6643 PR libgomp/102668
6644 * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
6645 allocation sizes from 420 to 320 and from 768 to 568.
6646 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
6647 * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
6648 for cr from 16 to 4.
6649
6650 2021-10-12 Jakub Jelinek <[email protected]>
6651
6652 * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
6653 * testsuite/libgomp.c/scan-12.c: Likewise.
6654 * testsuite/libgomp.c/scan-13.c: Likewise.
6655 * testsuite/libgomp.c/scan-14.c: Likewise.
6656 * testsuite/libgomp.c/scan-15.c: Likewise.
6657 * testsuite/libgomp.c/scan-16.c: Likewise.
6658 * testsuite/libgomp.c/scan-17.c: Likewise.
6659 * testsuite/libgomp.c/scan-18.c: Likewise.
6660 * testsuite/libgomp.c/scan-19.c: Likewise.
6661 * testsuite/libgomp.c/scan-20.c: Likewise.
6662 * testsuite/libgomp.c/scan-21.c: Likewise.
6663 * testsuite/libgomp.c/scan-22.c: Likewise.
6664 * testsuite/libgomp.c++/scan-9.C: Likewise.
6665 * testsuite/libgomp.c++/scan-10.C: Likewise.
6666 * testsuite/libgomp.c++/scan-11.C: Likewise.
6667 * testsuite/libgomp.c++/scan-12.C: Likewise.
6668 * testsuite/libgomp.c++/scan-13.C: Likewise.
6669 * testsuite/libgomp.c++/scan-14.C: Likewise.
6670 * testsuite/libgomp.c++/scan-15.C: Likewise.
6671 * testsuite/libgomp.c++/scan-16.C: Likewise.
6672
6673 2021-10-12 Kewen Lin <[email protected]>
6674
6675 * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
6676
6677 2021-10-11 Marcel Vollweiler <[email protected]>
6678
6679 * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
6680 omp_atv_serialized.
6681 * omp.h.in: Add deprecated flag for omp_atv_sequential.
6682 * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
6683 * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
6684 * testsuite/libgomp.fortran/alloc-12.f90: New test.
6685
6686 2021-10-11 Jakub Jelinek <[email protected]>
6687
6688 * omp.h.in (omp_set_num_teams, omp_get_max_teams,
6689 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
6690 * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
6691 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
6692 * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
6693 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
6694 * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
6695 * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
6696 omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
6697 omp_set_teams_thread_limit{,_,_8_}.
6698 * icv.c (omp_set_num_teams, omp_get_max_teams,
6699 omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
6700 functions.
6701 * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
6702 (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
6703 (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
6704 vars.
6705 * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
6706 gomp_teams_thread_limit_var as fallback if not zero. If num_teams
6707 is not specified, use gomp_nteams_var.
6708 * fortran.c (omp_set_num_teams, omp_get_max_teams,
6709 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
6710 ialias_redirect.
6711 (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
6712 omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
6713 omp_get_teams_thread_limit_): New functions.
6714
6715 2021-10-09 liuhongt <[email protected]>
6716
6717 * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
6718 * testsuite/libgomp.c++/scan-11.C: Ditto.
6719 * testsuite/libgomp.c++/scan-12.C: Ditto.
6720 * testsuite/libgomp.c++/scan-13.C: Ditto.
6721 * testsuite/libgomp.c++/scan-14.C: Ditto.
6722 * testsuite/libgomp.c++/scan-15.C: Ditto.
6723 * testsuite/libgomp.c++/scan-16.C: Ditto.
6724 * testsuite/libgomp.c++/scan-9.C: Ditto.
6725 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
6726 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
6727 * testsuite/libgomp.c/scan-11.c: Ditto.
6728 * testsuite/libgomp.c/scan-12.c: Ditto.
6729 * testsuite/libgomp.c/scan-13.c: Ditto.
6730 * testsuite/libgomp.c/scan-14.c: Ditto.
6731 * testsuite/libgomp.c/scan-15.c: Ditto.
6732 * testsuite/libgomp.c/scan-16.c: Ditto.
6733 * testsuite/libgomp.c/scan-17.c: Ditto.
6734 * testsuite/libgomp.c/scan-18.c: Ditto.
6735 * testsuite/libgomp.c/scan-19.c: Ditto.
6736 * testsuite/libgomp.c/scan-20.c: Ditto.
6737 * testsuite/libgomp.c/scan-21.c: Ditto.
6738 * testsuite/libgomp.c/scan-22.c: Ditto.
6739
6740 2021-10-09 Jakub Jelinek <[email protected]>
6741
6742 * libgomp.texi (OpenMP 5.1): Mention implemented support for
6743 structured block sequences in C/C++. Mention support for
6744 unconstrained/reproducible modifiers on order clause.
6745 Mention partial (C/C++ only) support of extentensions to atomics
6746 construct. Mention partial (C/C++ on clause only) support of
6747 align/allocator modifiers on allocate clause.
6748
6749 2021-10-02 Tobias Burnus <[email protected]>
6750
6751 * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
6752 based on libgomp.c-c++-common/order-reproducible-1.c.
6753 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
6754 * testsuite/libgomp.fortran/my-usleep.c: New test.
6755
6756 2021-10-01 Tobias Burnus <[email protected]>
6757
6758 * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
6759 * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
6760 * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
6761 * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
6762 based on libgomp.c-c++-common/alloc-9.c.
6763
6764 2021-10-01 Jakub Jelinek <[email protected]>
6765
6766 * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
6767 * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
6768
6769 2021-10-01 Jakub Jelinek <[email protected]>
6770
6771 * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
6772 ialias_redirect.
6773 * env.c (handle_omp_display_env): Use ialias_call.
6774 * icv-device.c: Move ialias right below each function.
6775 (omp_get_device_num): Use ialias_call.
6776 * fortran.c (omp_fulfill_event): Add ialias_redirect.
6777 * icv.c (omp_get_active_level): Add ialias_redirect.
6778
6779 2021-10-01 Jakub Jelinek <[email protected]>
6780
6781 * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
6782 __alloc_align__ (1) attribute.
6783 * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
6784
6785 2021-09-30 Tobias Burnus <[email protected]>
6786
6787 * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
6788 for -fintrinsic-modules-path= warning of the C compiler.
6789 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
6790 * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
6791
6792 2021-09-30 Tobias Burnus <[email protected]>
6793
6794 * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
6795 omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
6796 * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
6797 omp_realloc): Add.
6798 * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
6799 omp_realloc): Add.
6800 * testsuite/libgomp.fortran/alloc-10.f90: New test.
6801 * testsuite/libgomp.fortran/alloc-6.f90: New test.
6802 * testsuite/libgomp.fortran/alloc-7.c: New test.
6803 * testsuite/libgomp.fortran/alloc-7.f90: New test.
6804 * testsuite/libgomp.fortran/alloc-8.f90: New test.
6805 * testsuite/libgomp.fortran/alloc-9.f90: New test.
6806
6807 2021-09-30 Jakub Jelinek <[email protected]>
6808
6809 * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
6810 omp_realloc): New prototypes.
6811 (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
6812 attribute.
6813 * allocator.c: Include string.h.
6814 (omp_aligned_alloc): No longer static, add ialias. Add new_alignment
6815 variable and use it instead of alignment so that when retrying the old
6816 alignment is used again. Don't retry if new alignment is the same
6817 as old alignment, unless allocator had pool size.
6818 (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
6819 (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
6820 * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
6821 omp_aligned_calloc and omp_realloc.
6822 * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
6823 omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
6824 * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
6825 * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
6826 * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
6827 * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
6828
6829 2021-09-28 Tobias Burnus <[email protected]>
6830
6831 PR libgomp/96661
6832 * configure.ac: Only check for int-type = 2*size_t support when
6833 building with Fortran support.
6834 * configure: Regenerate.
6835
6836 2021-09-28 Thomas Schwinge <[email protected]>
6837
6838 * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
6839 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
6840
6841 2021-09-27 Aldy Hernandez <[email protected]>
6842
6843 * team.c: Initialize start_data.
6844 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
6845 * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
6846
6847 2021-09-27 Tobias Burnus <[email protected]>
6848
6849 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
6850 dg-message back to dg-note.
6851
6852 2021-09-27 Tobias Burnus <[email protected]>
6853
6854 PR fortran/94070
6855 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
6856 expected dg-note output.
6857
6858 2021-09-22 Tobias Burnus <[email protected]>
6859
6860 PR fortran/55534
6861 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
6862 r12-3722 by removing -Wno-missing-include-dirs.
6863 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
6864
6865 2021-09-22 Jakub Jelinek <[email protected]>
6866
6867 * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
6868 * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
6869
6870 2021-09-21 Tobias Burnus <[email protected]>
6871
6872 PR fortran/55534
6873 * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
6874 to ALWAYS_CFLAGS.
6875 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6876
6877 2021-09-18 Jakub Jelinek <[email protected]>
6878
6879 * testsuite/libgomp.c++/default-1.C: New test.
6880 * testsuite/libgomp.c-c++-common/default-1.c: New test.
6881 * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
6882 to default clause in C and C++" as implemented.
6883
6884 2021-09-17 Julian Brown <[email protected]>
6885
6886 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
6887
6888 2021-09-17 Julian Brown <[email protected]>
6889
6890 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
6891
6892 2021-09-17 Jakub Jelinek <[email protected]>
6893
6894 * libgomp.texi (OpenMP 5.1): Spelling fix,
6895 declare variante -> declare variant.
6896
6897 2021-09-17 Jakub Jelinek <[email protected]>
6898
6899 * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
6900 Use /* */ comments instead of //.
6901 * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
6902 * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
6903 * testsuite/libgomp.c++/atomic-16.C: New test.
6904 * testsuite/libgomp.c++/atomic-17.C: New test.
6905
6906 2021-09-10 Jakub Jelinek <[email protected]>
6907
6908 * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
6909 * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
6910 * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
6911
6912 2021-09-07 Tobias Burnus <[email protected]>
6913
6914 * libgomp.texi (OpenMP Implementation Status): Extend
6915 OpenMP 5.0 section.
6916 (OpenACC Profiling Interface): Fix typo.
6917
6918 2021-09-07 Tobias Burnus <[email protected]>
6919
6920 * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
6921 not to 4.5; link to new section.
6922 (OpenMP Implementation Status): New.
6923
6924 2021-09-06 Thomas Schwinge <[email protected]>
6925
6926 * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
6927
6928 2021-09-03 Tobias Burnus <[email protected]>
6929
6930 * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
6931 dg-output.
6932 * testsuite/libgomp.fortran/error-1.f90: Likewise.
6933
6934 2021-08-23 Thomas Schwinge <[email protected]>
6935 Jakub Jelinek <[email protected]>
6936
6937 * testsuite/libgomp.c/address-space-1.c: New file.
6938
6939 2021-08-23 Thomas Schwinge <[email protected]>
6940
6941 * testsuite/lib/libgomp.exp
6942 (check_effective_target_offload_target_intelmic): Remove 'proc'.
6943 (check_effective_target_offload_device_intel_mic): New 'proc'.
6944 * testsuite/libgomp.c-c++-common/on_device_arch.h
6945 (device_arch_intel_mic, on_device_arch_intel_mic): New.
6946 * testsuite/libgomp.c-c++-common/target-45.c: Use that for
6947 'dg-xfail-run-if'.
6948 * testsuite/libgomp.fortran/target10.f90: Likewise.
6949
6950 2021-08-23 Tobias Burnus <[email protected]>
6951
6952 * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
6953 * testsuite/libgomp.fortran/taskloop-4.f90: New test.
6954 * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
6955 * testsuite/libgomp.fortran/taskloop-5.f90: New test.
6956
6957 2021-08-23 Jakub Jelinek <[email protected]>
6958
6959 * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
6960 * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
6961 * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
6962
6963 2021-08-22 Thomas Schwinge <[email protected]>
6964
6965 * config/nvptx/error.c (fwrite, exit): Override, too.
6966 * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
6967 of offloading testing.
6968 * testsuite/libgomp.fortran/error-1.f90: Likewise.
6969
6970 2021-08-20 Tobias Burnus <[email protected]>
6971
6972 * testsuite/libgomp.fortran/error-1.f90: New test.
6973
6974 2021-08-20 Jakub Jelinek <[email protected]>
6975
6976 * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
6977 * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
6978 * error.c (GOMP_warning, GOMP_error): New functions.
6979 * testsuite/libgomp.c-c++-common/error-1.c: New test.
6980
6981 2021-08-18 Tobias Burnus <[email protected]>
6982
6983 * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
6984 omp_target_free. omp_target_is_present, omp_target_memcpy,
6985 omp_target_memcpy_rect, omp_target_associate_ptr,
6986 omp_target_disassociate_ptr): Add interface.
6987 * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
6988 omp_target_free. omp_target_is_present, omp_target_memcpy,
6989 omp_target_memcpy_rect, omp_target_associate_ptr,
6990 omp_target_disassociate_ptr): Add interface.
6991 * testsuite/libgomp.fortran/alloc-1.F90: Remove local
6992 interface block for omp_alloc + omp_free.
6993 * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
6994 * testsuite/libgomp.fortran/refcount-1.f90: New test.
6995 * testsuite/libgomp.fortran/target-12.f90: New test.
6996
6997 2021-08-18 Jakub Jelinek <[email protected]>
6998
6999 * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
7000
7001 2021-08-17 Tobias Burnus <[email protected]>
7002
7003 * testsuite/libgomp.fortran/scope-1.f90: New test.
7004 * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
7005
7006 2021-08-17 Jakub Jelinek <[email protected]>
7007
7008 * Makefile.am (libgomp_la_SOURCES): Add scope.c
7009 * Makefile.in: Regenerated.
7010 * libgomp_g.h (GOMP_scope_start): Declare.
7011 * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
7012 * scope.c: New file.
7013 * testsuite/libgomp.c-c++-common/scope-1.c: New test.
7014 * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
7015
7016 2021-08-16 Thomas Schwinge <[email protected]>
7017
7018 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
7019 '?:' issues.
7020
7021 2021-08-16 Tobias Burnus <[email protected]>
7022
7023 * testsuite/libgomp.fortran/masked-1.f90: New test.
7024
7025 2021-08-13 Thomas Schwinge <[email protected]>
7026
7027 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
7028
7029 2021-08-12 Jakub Jelinek <[email protected]>
7030
7031 * testsuite/libgomp.c-c++-common/masked-1.c: New test.
7032
7033 2021-08-12 Tobias Burnus <[email protected]>
7034
7035 * env.c (parse_bind_var): Accept 'primary' as alias for
7036 'master'.
7037 (omp_display_env): Add TODO comment to
7038 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
7039 * libgomp.texi: Change 'master thread' to 'primary thread'
7040 in line with OpenMP 5.1.
7041 (omp_get_proc_bind): Add omp_proc_bind_primary and note that
7042 omp_proc_bind_master is an alias of it.
7043 (OMP_PROC_BIND): Mention 'PRIMARY'.
7044 * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
7045 (omp_proc_bind_primary): Add.
7046 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
7047 * omp_lib.f90.in (omp_proc_bind_primary): Add.
7048 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
7049 * omp_lib.h.in (omp_proc_bind_primary): Add.
7050 * testsuite/libgomp.c/affinity-1.c: Check that
7051 'primary' works and is identical to 'master'.
7052
7053 2021-08-09 Julian Brown <[email protected]>
7054 Kwok Cheung Yeung <[email protected]>
7055 Thomas Schwinge <[email protected]>
7056
7057 * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
7058 16.
7059 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
7060 [acc_device_radeon]: Update.
7061 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
7062 [ACC_DEVICE_TYPE_radeon]: Likewise.
7063 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
7064 [acc_device_radeon]: Likewise.
7065 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
7066 [ACC_DEVICE_TYPE_radeon]: Likewise.
7067 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
7068 'openacc_radeon_accel_selected' and '-O0'.
7069 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
7070
7071 2021-08-05 Chung-Lin Tang <[email protected]>
7072
7073 * icv-device.c (omp_get_device_num): New API function, host side.
7074 * fortran.c (omp_get_device_num_): New interface function.
7075 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
7076 * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
7077 omp_get_device_num_.
7078 * libgomp.texi (omp_get_device_num): Add documentation for new API
7079 function.
7080 * omp.h.in (omp_get_device_num): Add declaration.
7081 * omp_lib.f90.in (omp_get_device_num): Likewise.
7082 * omp_lib.h.in (omp_get_device_num): Likewise.
7083 * target.c (gomp_load_image_to_device): If additional entry for device
7084 number exists at end of returned entries from 'load_image_func' hook,
7085 copy the assigned device number over to the device variable.
7086 * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
7087 (omp_get_device_num): New API function, device side.
7088 * plugin/plugin-gcn.c ("symcat.h"): Add include.
7089 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
7090 at end of returned 'target_table' entries.
7091 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
7092 (omp_get_device_num): New API function, device side.
7093 * plugin/plugin-nvptx.c ("symcat.h"): Add include.
7094 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
7095 at end of returned 'target_table' entries.
7096 * testsuite/lib/libgomp.exp
7097 (check_effective_target_offload_target_intelmic): New function for
7098 testing for intelmic offloading.
7099 * testsuite/libgomp.c-c++-common/target-45.c: New test.
7100 * testsuite/libgomp.fortran/target10.f90: New test.
7101
7102 2021-07-30 Thomas Schwinge <[email protected]>
7103 Ulrich Drepper <[email protected]>
7104
7105 * fortran.c (omp_display_env_, omp_display_env_8_): Only
7106 '#ifndef LIBGOMP_OFFLOADED_ONLY'.
7107
7108 2021-07-29 Thomas Schwinge <[email protected]>
7109 Julian Brown <[email protected]>
7110 Kwok Cheung Yeung <[email protected]>
7111
7112 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
7113 's%oaccdevlow%oaccloops%g'.
7114 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
7115 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
7116 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
7117 Likewise.
7118 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
7119 Likewise.
7120 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
7121 Likewise.
7122 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
7123 Likewise.
7124 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
7125 Likewise.
7126 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
7127 Likewise.
7128 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
7129 Likewise.
7130 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
7131 Likewise.
7132 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
7133
7134 2021-07-29 Aldy Hernandez <[email protected]>
7135
7136 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
7137 threader.
7138 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
7139
7140 2021-07-27 Ulrich Drepper <[email protected]>
7141
7142 * env.c (wait_policy, stacksize): New static variables,
7143 move out of handle_omp_display_env.
7144 (omp_display_env): New function. The meat of the old
7145 handle_omp_display_env function.
7146 (handle_omp_display_env): Change to not take parameters
7147 and instead use the global variables. Only perform
7148 parsing, defer to omp_display_env for the implementation.
7149 (initialize_env): Remove local variables wait_policy and
7150 stacksize. Don't pass parameters to handle_omp_display_env.
7151 * fortran.c: Add ialias_redirect for omp_display_env.
7152 (omp_display_env_, omp_display_env_8_): New functions.
7153 * libgomp.map (OMP_5.1): New version. Add omp_display_env,
7154 omp_display_env_, and omp_display_env_8_.
7155 * omp.h.in: Declare omp_display_env.
7156 * omp_lib.f90.in: Likewise.
7157 * omp_lib.h.in: Likewise.
7158
7159 2021-07-27 Thomas Schwinge <[email protected]>
7160 Julian Brown <[email protected]>
7161
7162 * target.c (gomp_coalesce_buf_add): Update comment.
7163 (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
7164 'aq && cbuf'.
7165 (gomp_map_vars_internal): Only 'if (!aq)', do
7166 'gomp_coalesce_buf_add'.
7167 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
7168 XFAIL.
7169
7170 2021-07-27 Julian Brown <[email protected]>
7171 Thomas Schwinge <[email protected]>
7172
7173 * libgomp.h (gomp_copy_host2dev): Update prototype.
7174 * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
7175 argument to gomp_copy_host2dev (false).
7176 * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
7177 (copy_data): Don't free src.
7178 (queue_push_copy): Remove free_src handling.
7179 (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
7180 (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
7181 snapshotting.
7182 (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
7183 queue_push_copy.
7184 * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
7185 (gomp_copy_host2dev): Add EPHEMERAL parameter. Snapshot source
7186 data when true, and set up deferred freeing of temporary buffer.
7187 (gomp_copy_dev2host): Update call to goacc_device_copy_async.
7188 (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
7189 (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
7190 calls to gomp_copy_host2dev with appropriate ephemeral argument.
7191 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
7192 XFAIL.
7193
7194 2021-07-27 Thomas Schwinge <[email protected]>
7195 Tom de Vries <[email protected]>
7196
7197 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
7198 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
7199
7200 2021-07-27 Thomas Schwinge <[email protected]>
7201
7202 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
7203 sequencing of 'async' data copying vs. profiling events.
7204 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
7205 Likewise.
7206
7207 2021-07-27 Thomas Schwinge <[email protected]>
7208 Julian Brown <[email protected]>
7209
7210 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
7211 'async'/'wait' issue.
7212 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
7213 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
7214 * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
7215
7216 2021-07-21 Thomas Schwinge <[email protected]>
7217 Joseph Myers <[email protected]>
7218 Cesar Philippidis <[email protected]>
7219
7220 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
7221 file.
7222 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
7223 Likewise.
7224 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
7225 Likewise.
7226 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
7227
7228 2021-07-20 Thomas Schwinge <[email protected]>
7229
7230 PR target/101484
7231 * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
7232 '-Wno-error=array-bounds'.
7233 * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
7234 * libgomp.h [__AMDGCN__]: Likewise.
7235
7236 2021-07-19 Thomas Schwinge <[email protected]>
7237
7238 PR target/101484
7239 * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
7240 * libgomp.h [__AMDGCN__]: Likewise.
7241
7242 2021-07-13 Jakub Jelinek <[email protected]>
7243 Florian Weimer <[email protected]>
7244
7245 * config/linux/sem.h: Don't include limits.h.
7246 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
7247 * config/linux/affinity.c: Include limits.h.
7248
7249 2021-07-01 Jakub Jelinek <[email protected]>
7250
7251 PR middle-end/94366
7252 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
7253
7254 2021-06-29 Tobias Burnus <[email protected]>
7255
7256 PR other/67300
7257 * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
7258 -foffload=nvptx-none= by -foffload-options=nvptx-none= to
7259 avoid disabling other offload targets.
7260 * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
7261 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
7262 * testsuite/libgomp.c/target-44.c: Likewise.
7263
7264 2021-06-29 Tobias Burnus <[email protected]>
7265
7266 * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
7267 target has shared memory and disable some scalar pointer/allocatable
7268 checks if not as firstprivate does not work.
7269
7270 2021-06-25 Chung-Lin Tang <[email protected]>
7271
7272 PR testsuite/101114
7273 * testsuite/libgomp.c-c++-common/struct-elem-5.c:
7274 Add "target offload_device_nonshared_as" condition for enabling test.
7275
7276 2021-06-24 Jakub Jelinek <[email protected]>
7277
7278 * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
7279 * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
7280 * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
7281 * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
7282
7283 2021-06-23 Jakub Jelinek <[email protected]>
7284
7285 PR middle-end/101167
7286 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
7287
7288 2021-06-17 Chung-Lin Tang <[email protected]>
7289
7290 * hashtab.h (htab_clear): New function with initialization code
7291 factored out from...
7292 (htab_create): ...here, adjust to use htab_clear function.
7293 * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
7294 special refcount values, add comments.
7295 (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
7296 (REFCOUNT_LINK): Likewise.
7297 (REFCOUNT_STRUCTELEM): New special refcount range for structure
7298 element siblings.
7299 (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
7300 sibling maps.
7301 (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
7302 (REFCOUNT_STRUCTELEM_FLAG_LAST): Flag to indicate last sibling.
7303 (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
7304 (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
7305 (struct splay_tree_key_s): Add structelem_refcount and
7306 structelem_refcount_ptr fields into a union with dynamic_refcount.
7307 Add comments.
7308 (gomp_map_vars): Delete declaration.
7309 (gomp_map_vars_async): Likewise.
7310 (gomp_unmap_vars): Likewise.
7311 (gomp_unmap_vars_async): Likewise.
7312 (goacc_map_vars): New declaration.
7313 (goacc_unmap_vars): Likewise.
7314 * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
7315 (goacc_enter_datum): Likewise.
7316 (goacc_enter_data_internal): Likewise.
7317 * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
7318 and goacc_unmap_vars.
7319 (GOACC_data_start): Adjust to use goacc_map_vars.
7320 (GOACC_data_end): Adjust to use goacc_unmap_vars.
7321 * target.c (hash_entry_type): New typedef.
7322 (htab_alloc): New function hook for hashtab.h.
7323 (htab_free): Likewise.
7324 (htab_hash): Likewise.
7325 (htab_eq): Likewise.
7326 (hashtab.h): Add file include.
7327 (gomp_increment_refcount): New function.
7328 (gomp_decrement_refcount): Likewise.
7329 (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
7330 gomp_increment_refcount.
7331 (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
7332 to gomp_map_vars_existing.
7333 (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
7334 variable to guard OpenMP specific paths, adjust calls to
7335 gomp_map_vars_existing, add structure element sibling splay_tree_key
7336 sequence creation code, adjust Fortran map case to avoid increment
7337 under OpenMP.
7338 (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
7339 local refcount_set if caller passed in NULL, adjust call to
7340 gomp_map_vars_internal.
7341 (gomp_map_vars_async): Adjust and rename into...
7342 (goacc_map_vars): ...this new function, adjust call to
7343 gomp_map_vars_internal.
7344 (gomp_remove_splay_tree_key): New function with code factored out from
7345 gomp_remove_var_internal.
7346 (gomp_remove_var_internal): Add code to handle removing multiple
7347 splay_tree_key sequence for structure elements, adjust code to use
7348 gomp_remove_splay_tree_key for splay-tree key removal.
7349 (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
7350 gomp_decrement_refcount.
7351 (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
7352 local refcount_set if caller passed in NULL, adjust call to
7353 gomp_unmap_vars_internal.
7354 (gomp_unmap_vars_async): Adjust and rename into...
7355 (goacc_unmap_vars): ...this new function, adjust call to
7356 gomp_unmap_vars_internal.
7357 (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
7358 gomp_unmap_vars.
7359 (GOMP_target_ext): Likewise.
7360 (gomp_target_data_fallback): Adjust call to gomp_map_vars.
7361 (GOMP_target_data): Likewise.
7362 (GOMP_target_data_ext): Likewise.
7363 (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
7364 (gomp_exit_data): Add refcount_set parameter, adjust to use
7365 gomp_decrement_refcount, adjust to queue splay-tree keys for removal
7366 after main loop.
7367 (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
7368 gomp_map_vars and gomp_exit_data.
7369 (gomp_target_task_fn): Likewise.
7370 * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
7371 * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
7372 * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
7373 * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
7374 * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
7375 * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
7376
7377 2021-06-15 Tobias Burnus <[email protected]>
7378
7379 PR fortran/92568
7380 * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
7381
7382 2021-06-10 Andrew Stubbs <[email protected]>
7383 Thomas Schwinge <[email protected]>
7384
7385 * libgomp.map (GOACC_2.0.2): New symbol version.
7386 * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
7387 * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
7388
7389 2021-06-10 Thomas Schwinge <[email protected]>
7390 Andrew Stubbs <[email protected]>
7391
7392 * oacc-mem.c (goacc_enter_exit_data_internal): New function,
7393 extracted from...
7394 (GOACC_enter_exit_data): ... here.
7395 (GOACC_declare): Use it.
7396
7397 2021-06-10 Thomas Schwinge <[email protected]>
7398
7399 * oacc-parallel.c (GOACC_declare): Move...
7400 * oacc-mem.c: ... here.
7401 * libgomp_g.h: Adjust.
7402
7403 2021-06-10 Andrew Stubbs <[email protected]>
7404 Thomas Schwinge <[email protected]>
7405
7406 * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
7407 handling.
7408
7409 2021-06-10 Jakub Jelinek <[email protected]>
7410
7411 PR tree-optimization/100981
7412 * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
7413 dsdotr and dsdoti to 0.
7414
7415 2021-06-09 H.J. Lu <[email protected]>
7416
7417 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
7418 if atomic compare-and-swap is supported on 'int'.
7419
7420 2021-06-09 Richard Biener <[email protected]>
7421
7422 PR tree-optimization/100981
7423 * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
7424
7425 2021-06-08 Thomas Schwinge <[email protected]>
7426
7427 * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
7428 unconditionally.
7429 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
7430 Update.
7431 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
7432 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
7433
7434 2021-06-08 Thomas Schwinge <[email protected]>
7435
7436 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
7437 '-DACC_MEM_SHARED=0'.
7438 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
7439 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
7440 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
7441 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7442 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7443 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
7444 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7445 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7446 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7447 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7448 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
7449 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
7450 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
7451 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
7452 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
7453 'acc_device_radeon' testing.
7454 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
7455 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
7456 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
7457 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
7458 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7459 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7460 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
7461 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
7462 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
7463 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
7464 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
7465 for non-'openacc_nvidia_accel_selected'.
7466 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7467 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
7468 all implement this checking".
7469 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
7470 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
7471 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
7472 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
7473 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
7474
7475 2021-06-08 Thomas Schwinge <[email protected]>
7476
7477 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
7478 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
7479
7480 2021-06-08 Thomas Schwinge <[email protected]>
7481
7482 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
7483 for 'acc_device_radeon'.
7484
7485 2021-06-08 Thomas Schwinge <[email protected]>
7486
7487 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
7488 for non-'acc_device_nvidia'.
7489
7490 2021-06-08 Thomas Schwinge <[email protected]>
7491
7492 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
7493 'acc_device_radeon' testing.
7494 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
7495 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
7496 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
7497
7498 2021-06-08 Thomas Schwinge <[email protected]>
7499
7500 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
7501 require 'openacc_nvidia_accel_selected'. Fix up for
7502 'ACC_DEVICE_TYPE_radeon'.
7503
7504 2021-06-08 Thomas Schwinge <[email protected]>
7505
7506 * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
7507 'openacc_nvidia_accel_selected'.
7508 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
7509
7510 2021-06-08 Thomas Schwinge <[email protected]>
7511
7512 * testsuite/lib/libgomp.exp
7513 (check_effective_target_openacc_radeon_accel_selected):
7514 Streamline.
7515
7516 2021-06-08 Thomas Schwinge <[email protected]>
7517
7518 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
7519 PR80547 workaround.
7520
7521 2021-06-08 Thomas Schwinge <[email protected]>
7522
7523 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
7524 <acc_device_nvidia>: Update comment.
7525
7526 2021-05-28 Tobias Burnus <[email protected]>
7527
7528 * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
7529
7530 2021-05-27 Jakub Jelinek <[email protected]>
7531
7532 * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
7533 check_effective_target_openacc_cublas,
7534 check_effective_target_openacc_cudart): New.
7535 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
7536 target openacc_cublas.
7537 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
7538 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
7539 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
7540 target openacc_cuda.
7541 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
7542 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
7543 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
7544 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
7545 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
7546 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
7547 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
7548 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
7549 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
7550 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
7551 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
7552 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
7553 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
7554 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
7555 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
7556 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
7557 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
7558 targets openacc_cublas and openacc_cudart.
7559 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
7560 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
7561 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
7562 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
7563 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
7564 Require effective target openacc_cudart.
7565 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
7566 for effective target openacc_cuda and add && defined USE_CUDA_H to
7567 preprocessor conditionals. Guard -lcuda also on openacc_cuda
7568 effective target.
7569
7570 2021-05-26 Jakub Jelinek <[email protected]>
7571
7572 PR libgomp/100573
7573 * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
7574 GOMP_target_end_data, GOMP_target_update_ext,
7575 GOMP_target_enter_exit_data): New dummy entrypoints.
7576 * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
7577 GOMP_target_end_data, GOMP_target_update_ext,
7578 GOMP_target_enter_exit_data): Likewise.
7579 * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
7580 OMPFROM, OMPTO): Define.
7581 (main): Remove #pragma omp target teams around all the tests.
7582 * testsuite/libgomp.c-c++-common/target-41.c: New test.
7583 * testsuite/libgomp.c-c++-common/target-42.c: New test.
7584
7585 2021-05-25 Jakub Jelinek <[email protected]>
7586
7587 PR middle-end/99928
7588 * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
7589
7590 2021-05-24 Tobias Burnus <[email protected]>
7591
7592 PR fortran/86470
7593 * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
7594 * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
7595 * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
7596
7597 2021-05-22 Thomas Schwinge <[email protected]>
7598
7599 PR testsuite/90115
7600 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
7601 uninteresting/varying diagnostics.
7602
7603 2021-05-21 Thomas Schwinge <[email protected]>
7604
7605 PR middle-end/90115
7606 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
7607 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
7608
7609 2021-05-21 Thomas Schwinge <[email protected]>
7610
7611 PR middle-end/90115
7612 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
7613 file.
7614 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
7615 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
7616 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
7617 Likewise.
7618 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
7619 Likewise.
7620 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
7621 Likewise.
7622 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
7623 Likewise.
7624 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
7625 Likewise.
7626 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
7627 Likewise.
7628 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
7629 Likewise.
7630 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
7631 Likewise.
7632 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
7633 Likewise.
7634 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
7635 Likewise.
7636 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
7637 Likewise.
7638 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
7639 Likewise.
7640 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
7641 Likewise.
7642 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
7643 Likewise.
7644 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
7645 Likewise.
7646 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
7647 Likewise.
7648 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
7649 Likewise.
7650 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
7651 Likewise.
7652 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
7653 Likewise.
7654 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
7655 Likewise.
7656 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
7657 Likewise.
7658 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
7659 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
7660 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
7661 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
7662 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
7663 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
7664 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
7665 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
7666 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
7667 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
7668 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
7669 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
7670 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
7671 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
7672 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
7673 Likewise.
7674 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
7675 Likewise.
7676 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
7677 Likewise.
7678 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
7679 Likewise.
7680 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
7681 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
7682 Likewise.
7683 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
7684 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
7685 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
7686 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
7687 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
7688 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
7689 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
7690 Likewise.
7691 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
7692 Likewise.
7693 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
7694 Likewise.
7695 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
7696 Likewise.
7697 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
7698 Likewise.
7699 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
7700 Likewise.
7701 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
7702 Likewise.
7703 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
7704 Likewise.
7705 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
7706 Likewise.
7707 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
7708 Likewise.
7709 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
7710 Likewise.
7711 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
7712 Likewise.
7713 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
7714 Likewise.
7715 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
7716 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
7717 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
7718 Likewise.
7719 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
7720 Likewise.
7721 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
7722 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
7723 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
7724
7725 2021-05-21 Julian Brown <[email protected]>
7726 Chung-Lin Tang <[email protected]>
7727 Thomas Schwinge <[email protected]>
7728
7729 PR middle-end/90115
7730 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
7731 test.
7732 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
7733 Likewise.
7734 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
7735 Likewise.
7736
7737 2021-05-21 Thomas Schwinge <[email protected]>
7738
7739 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
7740 for nvptx offloading.
7741
7742 2021-05-21 Tobias Burnus <[email protected]>
7743
7744 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
7745
7746 2021-05-19 Thomas Schwinge <[email protected]>
7747
7748 PR target/83812
7749 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
7750
7751 2021-05-19 Julian Brown <[email protected]>
7752
7753 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
7754
7755 2021-05-18 Thomas Schwinge <[email protected]>
7756
7757 * testsuite/lib/libgomp.exp
7758 (check_effective_target_offload_target_nvptx): Don't shadow global
7759 'offload_targets' variable.
7760
7761 2021-05-18 Thomas Schwinge <[email protected]>
7762
7763 * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
7764 '-latomic' to nvptx offloading compilation.
7765 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
7766
7767 2021-05-18 Thomas Schwinge <[email protected]>
7768
7769 * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
7770 offloading compilation.
7771
7772 2021-05-17 Kwok Cheung Yeung <[email protected]>
7773
7774 * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
7775 if new tasks generated.
7776 * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
7777
7778 2021-05-14 Tobias Burnus <[email protected]>
7779
7780 * testsuite/libgomp.fortran/parallel-master.f90: New test.
7781
7782 2021-05-13 Martin Liska <[email protected]>
7783
7784 PR testsuite/100569
7785 * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
7786 * testsuite/libgomp.c/pr46032-2.c: Likewise.
7787 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
7788 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
7789
7790 2021-05-12 Tobias Burnus <[email protected]>
7791
7792 * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
7793 * testsuite/libgomp.fortran/task-detach-12.f90: New test.
7794
7795 2021-05-11 Jakub Jelinek <[email protected]>
7796
7797 PR middle-end/100471
7798 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
7799 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
7800 reduction pointer.
7801 * testsuite/libgomp.c/task-reduction-4.c: New test.
7802
7803 2021-05-07 Tobias Burnus <[email protected]>
7804 Tom de Vries <[email protected]>
7805
7806 * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
7807 complex/floating-point || + && reduction with 'omp target'.
7808 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
7809
7810 2021-05-04 Tobias Burnus <[email protected]>
7811
7812 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
7813 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
7814 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
7815 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
7816
7817 2021-05-04 Tobias Burnus <[email protected]>
7818
7819 PR testsuite/100397
7820 * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
7821 declaration to scope of non-'depend'-guarded assignment to avoid races.
7822
7823 2021-05-03 Tom de Vries <[email protected]>
7824
7825 PR target/100321
7826 * testsuite/libgomp.c/target-44.c: New test.
7827
7828 2021-04-30 Roman Zhuykov <[email protected]>
7829
7830 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
7831
7832 2021-04-29 Tom de Vries <[email protected]>
7833
7834 * testsuite/libgomp.c/pr81778.c: New test.
7835
7836 2021-04-29 Tom de Vries <[email protected]>
7837
7838 PR target/100232
7839 * testsuite/libgomp.c/target-43.c: New file.
7840
7841 2021-04-28 Jakub Jelinek <[email protected]>
7842 Tobias Burnus <[email protected]>
7843
7844 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
7845 * target.c (gomp_load_plugin_for_device): If set and if a plugin
7846 can't be dlopened, silently assume it has no devices.
7847 * Makefile.in: Regenerate.
7848 * config.h.in: Regenerate.
7849 * configure: Regenerate.
7850
7851 2021-04-26 Tobias Burnus <[email protected]>
7852
7853 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
7854 Use [Ww]arning in dg-bogus as FE diagnostic and default
7855 diagnostic differ and the result depends on ENABLE_OFFLOAD.
7856 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
7857 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
7858 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
7859
7860 2021-04-26 Tobias Burnus <[email protected]>
7861
7862 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
7863 Correct spelling in dg-bogus to match -Wopenacc-parallelism.
7864 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
7865 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
7866 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
7867
7868 2021-04-26 Thomas Schwinge <[email protected]>
7869 Nathan Sidwell <[email protected]>
7870 Tom de Vries <[email protected]>
7871 Julian Brown <[email protected]>
7872 Kwok Cheung Yeung <[email protected]>
7873
7874 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
7875 '-Wopenacc-parallelism', and match diagnostics, as appropriate.
7876 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
7877 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
7878 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
7879 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
7880 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
7881 Likewise.
7882 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
7883 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
7884 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
7885 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
7886 Likewise.
7887 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
7888 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
7889 Likewise.
7890 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
7891 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
7892 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
7893 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
7894 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
7895 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
7896 Likewise.
7897 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
7898 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
7899 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
7900 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
7901 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
7902 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
7903 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
7904 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
7905 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
7906 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
7907 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
7908
7909 2021-04-26 Thomas Schwinge <[email protected]>
7910
7911 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
7912 compile with '-w'.
7913 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
7914 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
7915 Likewise.
7916 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
7917 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
7918 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
7919 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
7920 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
7921 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
7922 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
7923
7924 2021-04-22 Richard Biener <[email protected]>
7925
7926 * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
7927 only on nvptx-none.
7928
7929 2021-04-21 Tobias Burnus <[email protected]>
7930
7931 * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
7932 omp_depend_kind instead of defining it as 16.
7933
7934 2021-04-21 Tobias Burnus <[email protected]>
7935
7936 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
7937 New, based on check_effective_target_offload_target_nvptx.
7938 (check_effective_target_offload_target_nvptx): Call it.
7939 (check_effective_target_offload_target_amdgcn): New.
7940 * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
7941 Require target offload_target_nvptx || offload_target_amdgcn.
7942 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
7943 * testsuite/libgomp.c/pr86416-1.c: Likewise.
7944 * testsuite/libgomp.c/pr86416-2.c: Likewise.
7945
7946 2021-04-21 Tobias Burnus <[email protected]>
7947
7948 * testsuite/libgomp.fortran/depobj-1.f90: New test.
7949
7950 2021-04-19 Thomas Schwinge <[email protected]>
7951
7952 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
7953 '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
7954 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
7955 Likewise.
7956 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
7957 Likewise.
7958 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
7959
7960 2021-04-15 Thomas Schwinge <[email protected]>
7961
7962 PR target/99555
7963 * testsuite/lib/libgomp.exp
7964 (check_effective_target_offload_device_nvptx): New.
7965 * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
7966 resolved, make sure that we exit quickly, with error status,
7967 XFAILed.
7968 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
7969 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
7970
7971 2021-04-14 Jakub Jelinek <[email protected]>
7972
7973 PR testsuite/100071
7974 * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
7975 cp = omp_alloc with cp, p arguments instead of cq, q and call
7976 c_f_pointer after last cq = omp_alloc with cq, q.
7977
7978 2021-04-11 Hafiz Abid Qadeer <[email protected]>
7979
7980 PR middle-end/98088
7981 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
7982 for loop with GT/GE condition.
7983 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
7984
7985 2021-04-09 Thomas Schwinge <[email protected]>
7986
7987 PR middle-end/84991
7988 PR middle-end/84992
7989 PR middle-end/90779
7990 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
7991
7992 2021-04-09 Jakub Jelinek <[email protected]>
7993
7994 PR libgomp/99984
7995 * team.c (gomp_thread_start): Call pthread_setspecific for
7996 !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
7997 has been initialized to avoid false positive warning.
7998
7999 2021-03-29 Tobias Burnus <[email protected]>
8000
8001 PR target/99555
8002 * testsuite/lib/on_device_arch.c: Move to ...
8003 * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
8004 * testsuite/libgomp.fortran/on_device_arch.c: New file;
8005 #include on_device_arch.h.
8006 * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
8007 on_device_arch.h instead of using dg-additional-source.
8008 * testsuite/libgomp.c/pr99555-1.c: Likewise.
8009 * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
8010 on_device_arch.c without relative paths.
8011
8012 2021-03-25 Thomas Schwinge <[email protected]>
8013
8014 * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
8015 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
8016 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
8017 * config.h.in: Regenerate.
8018 * configure: Likewise.
8019
8020 2021-03-25 Thomas Schwinge <[email protected]>
8021
8022 PR target/99555
8023 * testsuite/lib/on_device_arch.c: New file.
8024 * testsuite/libgomp.c/pr99555-1.c: Likewise.
8025 * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
8026 skip for nvptx offloading, with error status.
8027 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
8028
8029 2021-03-25 Thomas Schwinge <[email protected]>
8030
8031 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
8032 OpenACC 'serial' construct diagnostic for nvptx offloading.
8033
8034 2021-03-15 Tobias Burnus <[email protected]>
8035
8036 PR c++/99509
8037 * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
8038
8039 2021-03-12 Tobias Burnus <[email protected]>
8040
8041 PR fortran/98858
8042 * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
8043
8044 2021-03-04 Jakub Jelinek <[email protected]>
8045
8046 * configure.ac: Add AC_CHECK_SIZEOF([void *]).
8047 * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
8048 checking of -m32 or -mx32 options on the command line.
8049 * config.h.in: Regenerated.
8050 * configure: Regenerated.
8051
8052 2021-02-27 Iain Sandoe <[email protected]>
8053
8054 * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
8055 support from the target.
8056
8057 2021-02-25 Kwok Cheung Yeung <[email protected]>
8058 Jakub Jelinek <[email protected]>
8059
8060 PR libgomp/98738
8061 * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
8062 (struct gomp_task): Replace detach and completion_sem fields with
8063 union containing completion_sem and detach_team. Add deferred_p
8064 field.
8065 (struct gomp_team): Remove task_detach_queue.
8066 * task.c: Include assert.h.
8067 (gomp_init_task): Initialize deferred_p and completion_sem fields.
8068 Rearrange initialization order of fields.
8069 (task_fulfilled_p): Delete.
8070 (GOMP_task): Use address of task as the event handle. Remove
8071 initialization of detach field. Initialize deferred_p field.
8072 Use automatic local for completion_sem. Initialize detach_team field
8073 for deferred tasks.
8074 (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
8075 Set kind of suspended detach task to GOMP_TASK_DETACHED and
8076 decrement task_running_count. Move finish_cancelled block out of
8077 else branch. Relocate call to gomp_team_barrier_done.
8078 (GOMP_taskwait): Handle tasks with completion events that have not
8079 been fulfilled.
8080 (GOMP_taskgroup_end): Likewise.
8081 (omp_fulfill_event): Use address of task as event handle. Post to
8082 completion_sem for undeferred tasks. Clear detach_team if task
8083 has not finished. For finished tasks, handle post-execution tasks,
8084 call gomp_team_barrier_wake if necessary, and free task.
8085 * team.c (gomp_new_team): Remove initialization of task_detach_queue.
8086 (free_team): Remove free of task_detach_queue.
8087 * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
8088 * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
8089 * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
8090 * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
8091 * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
8092 Change data-sharing of detach events on enclosing parallel to private.
8093 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. Remove
8094 taskwait directive.
8095 * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
8096 * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
8097 * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
8098 * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
8099 * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
8100 * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
8101 * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
8102 * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
8103 * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
8104 * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
8105 Change data-sharing of detach events on enclosing parallel to private.
8106 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise. Remove
8107 taskwait directive.
8108 * testsuite/libgomp.fortran/task-detach-7.f90: New.
8109 * testsuite/libgomp.fortran/task-detach-8.f90: New.
8110 * testsuite/libgomp.fortran/task-detach-9.f90: New.
8111 * testsuite/libgomp.fortran/task-detach-10.f90: New.
8112 * testsuite/libgomp.fortran/task-detach-11.f90: New.
8113
8114 2021-02-22 Tobias Burnus <[email protected]>
8115
8116 PR fortran/99171
8117 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
8118
8119 2021-02-17 Julian Brown <[email protected]>
8120
8121 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
8122 expected errors.
8123
8124 2021-02-17 Julian Brown <[email protected]>
8125
8126 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
8127 * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
8128
8129 2021-02-11 UroÅ¡ Bizjak <[email protected]>
8130
8131 * config/linux/x86/futex.h (__futex_wait):
8132 Revert output type back to long.
8133 (__futex_wake): Ditto.
8134 (futex_wait): Update for revert.
8135 (futex_wake): Ditto.
8136
8137 2021-02-11 UroÅ¡ Bizjak <[email protected]>
8138
8139 * config/linux/x86/futex.h (__futex_wait): New static inline
8140 wrapper function. Correct output type to int and
8141 timeout type to void *.
8142 (__futex_wake): New static inline wrapper function.
8143 Correct output type to int.
8144 (futex_wait): Use __futex_wait.
8145 (futex_wake): Use __futex_wake.
8146
8147 2021-02-10 Julian Brown <[email protected]>
8148
8149 PR fortran/98979
8150 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
8151 errors.
8152
8153 2021-02-04 Julian Brown <[email protected]>
8154
8155 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
8156
8157 2021-02-03 Andrew Stubbs <[email protected]>
8158
8159 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
8160 EF_AMDGPU_MACH_AMDGCN_GFX908.
8161 (gcn_gfx908_s): New constant string.
8162 (isa_hsa_name): Add gfx908.
8163 (isa_code): Add gfx908.
8164
8165 2021-01-25 Kwok Cheung Yeung <[email protected]>
8166
8167 * libgomp.texi (omp_fulfill_event): New entry.
8168
8169 2021-01-20 Jakub Jelinek <[email protected]>
8170
8171 * task.c (GOMP_task): Rename priority argument to priority_arg,
8172 add priority automatic variable and modify that variable. Instead of
8173 clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
8174 check flags for that bit.
8175
8176 2021-01-19 Tobias Burnus <[email protected]>
8177
8178 PR fortran/98476
8179 * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
8180
8181 2021-01-18 Andreas Schwab <[email protected]>
8182
8183 * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
8184
8185 2021-01-18 Sebastian Huber <[email protected]>
8186
8187 * config/rtems/sem.h (gomp_sem_getcount): New function.
8188
8189 2021-01-18 Jakub Jelinek <[email protected]>
8190
8191 * config/linux/sem.h (gomp_sem_getcount): New function.
8192 * config/posix/sem.h (gomp_sem_getcount): New function.
8193 * config/posix/sem.c (gomp_sem_getcount): New function.
8194 * config/accel/sem.h (gomp_sem_getcount): New function.
8195 * task.c (task_fulfilled_p): Use gomp_sem_getcount.
8196 (omp_fulfill_event): Likewise.
8197
8198 2021-01-16 Kwok Cheung Yeung <[email protected]>
8199
8200 * fortran.c (omp_fulfill_event_): New.
8201 * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
8202 (struct gomp_team): Add task_detach_queue and task_detach_count
8203 fields.
8204 * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
8205 * libgomp_g.h (GOMP_task): Add extra argument.
8206 * omp.h.in (enum omp_event_handle_t): New.
8207 (omp_fulfill_event): New.
8208 * omp_lib.f90.in (omp_event_handle_kind): New.
8209 (omp_fulfill_event): New.
8210 * omp_lib.h.in (omp_event_handle_kind): New.
8211 (omp_fulfill_event): Declare.
8212 * priority_queue.c (priority_tree_find): New.
8213 (priority_list_find): New.
8214 (priority_queue_find): New.
8215 * priority_queue.h (priority_queue_predicate): New.
8216 (priority_queue_find): New.
8217 * task.c (gomp_init_task): Initialize detach field.
8218 (task_fulfilled_p): New.
8219 (GOMP_task): Add detach argument. Ignore detach argument if
8220 GOMP_TASK_FLAG_DETACH not set in flags. Initialize completion_sem
8221 field. Copy address of completion_sem into detach argument and
8222 into the start of the data record. Wait for detach event if task
8223 not deferred.
8224 (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
8225 Remove completed tasks and requeue dependent tasks.
8226 (omp_fulfill_event): New.
8227 * team.c (gomp_new_team): Initialize task_detach_queue and
8228 task_detach_count fields.
8229 (free_team): Free task_detach_queue field.
8230 * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
8231 * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
8232 * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
8233 * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
8234 * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
8235 * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
8236 * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
8237 * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
8238 * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
8239 * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
8240 * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
8241 * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
8242
8243 2021-01-15 Jakub Jelinek <[email protected]>
8244
8245 PR target/70454
8246 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
8247 be added through preprocessor check on
8248 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
8249
8250 2021-01-14 Thomas Schwinge <[email protected]>
8251
8252 PR libgomp/65099
8253 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
8254 configurations.
8255 * configure: Regenerate.
8256 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
8257 check.
8258
8259 2021-01-05 Samuel Thibault <[email protected]>
8260
8261 * configure: Re-generate.
8262
8263 2021-01-05 Samuel Thibault <[email protected]>
8264
8265 * configure: Re-generate.
8266
8267 2021-01-05 Julian Brown <[email protected]>
8268
8269 * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
8270 (struct ptx_device): Add omp_stacks struct.
8271 (nvptx_open_device): Initialise cached-stacks housekeeping info.
8272 (nvptx_close_device): Free cached stacks block and mutex.
8273 (nvptx_stacks_free): New function.
8274 (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
8275 (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
8276 (nvptx_stacks_alloc): Rename to...
8277 (nvptx_stacks_acquire): This. Cache stacks block between runs if same
8278 size or smaller is required.
8279 (nvptx_stacks_free): Remove.
8280 (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
8281 during kernel execution.
8282
8283 2021-01-01 Jakub Jelinek <[email protected]>
8284
8285 * libgomp.texi: Bump @copying's copyright year.
8286
8287 2020-12-28 Gerald Pfeifer <[email protected]>
8288
8289 * libgomp.texi (Top): Avoid bad "up" link.
8290
8291 2020-12-18 Jakub Jelinek <[email protected]>
8292
8293 * testsuite/libgomp.c/task-6.c: New test.
8294
8295 2020-12-09 Andrew Stubbs <[email protected]>
8296
8297 * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
8298 (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
8299
8300 2020-12-08 Tobias Burnus <[email protected]>
8301
8302 * testsuite/libgomp.fortran/scan-1.f90: New test.
8303
8304 2020-12-05 Iain Sandoe <[email protected]>
8305
8306 PR target/97865
8307 * configure: Regenerate.
8308
8309 2020-11-29 John David Anglin <[email protected]>
8310
8311 * configure: Regenerate.
8312
8313 2020-11-25 Thomas Schwinge <[email protected]>
8314
8315 * testsuite/libgomp.oacc-c++/cache-1.C: New.
8316 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
8317
8318 2020-11-25 Andrew Stubbs <[email protected]>
8319
8320 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
8321 expected results.
8322
8323 2020-11-24 Andrew Stubbs <[email protected]>
8324
8325 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
8326 (reserved): Delete unused define.
8327
8328 2020-11-24 Thomas Schwinge <[email protected]>
8329
8330 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
8331 Tcl 8.5-specific behavior.
8332 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
8333
8334 2020-11-18 Kwok Cheung Yeung <[email protected]>
8335
8336 * env.c (gomp_global_icv): Remove nest_var field. Add
8337 max_active_levels_var field.
8338 (gomp_max_active_levels_var): Remove.
8339 (parse_boolean): Return true on success.
8340 (handle_omp_display_env): Express OMP_NESTED in terms of
8341 max_active_levels_var. Change format specifier for
8342 max_active_levels_var.
8343 (initialize_env): Set max_active_levels_var from
8344 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
8345 OMP_PROC_BIND.
8346 * icv.c (omp_set_nested): Express in terms of
8347 max_active_levels_var.
8348 (omp_get_nested): Likewise.
8349 (omp_set_max_active_levels): Use max_active_levels_var field instead
8350 of gomp_max_active_levels_var.
8351 (omp_get_max_active_levels): Likewise.
8352 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
8353 max_active_levels_var field.
8354 (gomp_supported_active_levels): Set to UCHAR_MAX.
8355 (gomp_max_active_levels_var): Delete.
8356 * libgomp.texi (omp_get_nested): Update documentation.
8357 (omp_set_nested): Likewise.
8358 (OMP_MAX_ACTIVE_LEVELS): Likewise.
8359 (OMP_NESTED): Likewise.
8360 (OMP_NUM_THREADS): Likewise.
8361 (OMP_PROC_BIND): Likewise.
8362 * parallel.c (gomp_resolve_num_threads): Replace reference
8363 to nest_var with max_active_levels_var. Use max_active_levels_var
8364 field instead of gomp_max_active_levels_var.
8365
8366 2020-11-18 Tobias Burnus <[email protected]>
8367
8368 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
8369 nvptx_usleep; use also for device={arch(gcn)}.
8370
8371 2020-11-14 Jakub Jelinek <[email protected]>
8372
8373 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
8374 (foo): Add tests for non-VLA private and firstprivate clauses on
8375 omp task.
8376 (bar): Likewise. Remove taking of address from private/firstprivate
8377 variables.
8378 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
8379 (foo): Add p, q, px and s arguments. Add tests for array reductions
8380 and for non-VLA private and firstprivate clauses on omp task.
8381 (bar): Removed.
8382 (main): Adjust foo caller. Don't call bar.
8383
8384 2020-11-13 Gergö Barany <[email protected]>
8385 Thomas Schwinge <[email protected]>
8386
8387 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
8388 New.
8389 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
8390 Likewise.
8391 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
8392 Likewise.
8393 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
8394 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
8395
8396 2020-11-13 Gergö Barany <[email protected]>
8397 Thomas Schwinge <[email protected]>
8398
8399 PR fortran/94358
8400 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
8401
8402 2020-11-13 Jakub Jelinek <[email protected]>
8403
8404 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
8405 for array reductions.
8406 (main): Adjust foo callers.
8407
8408 2020-11-12 Jakub Jelinek <[email protected]>
8409
8410 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
8411 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
8412 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
8413 * allocator.c (omp_aligned_alloc): New for now static function,
8414 add alignment argument and handle it.
8415 (omp_alloc): Reimplement using omp_aligned_alloc.
8416 (GOMP_alloc, GOMP_free): New functions.
8417 (omp_free): Add ialias.
8418 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
8419 * testsuite/libgomp.c++/allocate-1.C: New test.
8420
8421 2020-11-12 Thomas Schwinge <[email protected]>
8422
8423 PR fortran/97782
8424 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
8425
8426 2020-11-10 Chung-Lin Tang <[email protected]>
8427
8428 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
8429 usable.
8430 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
8431 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
8432 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
8433 (goacc_enter_data_internal): Likewise.
8434 * target.c (gomp_map_vars_internal):
8435 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
8436 of gomp_attach_pointer for OpenMP cases.
8437 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
8438 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
8439 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
8440
8441 2020-11-05 Ulrich Drepper <[email protected]>
8442 Kwok Cheung Yeung <[email protected]>
8443
8444 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
8445 * Makefile.in: Regenerate.
8446 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
8447 pragmas to ignore -Wdeprecated-declarations warnings.
8448 * icv.c: Likewise.
8449 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
8450 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
8451 and omp_get_nested with __GOMP_DEPRECATED_5_0.
8452 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
8453 deprecated.
8454 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
8455 to test options.
8456 * testsuite/libgomp.c/affinity-1.c: Likewise.
8457 * testsuite/libgomp.c/affinity-2.c: Likewise.
8458 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
8459 * testsuite/libgomp.c/lib-1.c: Likewise.
8460 * testsuite/libgomp.c/nested-1.c: Likewise.
8461 * testsuite/libgomp.c/nested-2.c: Likewise.
8462 * testsuite/libgomp.c/nested-3.c: Likewise.
8463 * testsuite/libgomp.c/pr32362-1.c: Likewise.
8464 * testsuite/libgomp.c/pr32362-2.c: Likewise.
8465 * testsuite/libgomp.c/pr32362-3.c: Likewise.
8466 * testsuite/libgomp.c/pr35549.c: Likewise.
8467 * testsuite/libgomp.c/pr42942.c: Likewise.
8468 * testsuite/libgomp.c/pr61200.c: Likewise.
8469 * testsuite/libgomp.c/sort-1.c: Likewise.
8470 * testsuite/libgomp.c/target-5.c: Likewise.
8471 * testsuite/libgomp.c/target-6.c: Likewise.
8472 * testsuite/libgomp.c/teams-1.c: Likewise.
8473 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
8474 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
8475 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
8476 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
8477 * testsuite/libgomp.fortran/lib1.f90: Likewise.
8478 * testsuite/libgomp.fortran/lib2.f: Likewise.
8479 * testsuite/libgomp.fortran/nested1.f90: Likewise.
8480 * testsuite/libgomp.fortran/teams1.f90: Likewise.
8481
8482 2020-11-02 Thomas Schwinge <[email protected]>
8483
8484 PR target/85486
8485 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
8486 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
8487 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
8488
8489 2020-11-02 Thomas Schwinge <[email protected]>
8490
8491 PR testsuite/80219
8492 PR testsuite/85303
8493 * testsuite/lib/libgomp.exp (libgomp_init): Set
8494 'gcc_warning_prefix', 'gcc_error_prefix'.
8495
8496 2020-10-30 Jakub Jelinek <[email protected]>
8497
8498 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
8499 even in field_tgt_clear initializer.
8500
8501 2020-10-28 Jakub Jelinek <[email protected]>
8502
8503 * testsuite/libgomp.c/target-42.c: New test.
8504
8505 2020-10-28 Jakub Jelinek <[email protected]>
8506 Tom de Vries <[email protected]>
8507
8508 PR testsuite/81690
8509 * testsuite/libgomp.c/usleep.h: New file.
8510 * testsuite/libgomp.c/target-32.c: Include usleep.h.
8511 (main): Use tgt_usleep instead of usleep.
8512 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
8513 (main): Use tgt_usleep instead of usleep.
8514
8515 2020-10-28 Jakub Jelinek <[email protected]>
8516
8517 PR lto/96680
8518 * testsuite/libgomp.c/declare-variant-1.c: New test.
8519
8520 2020-10-22 Jakub Jelinek <[email protected]>
8521
8522 * testsuite/libgomp.c/target-41.c: New test.
8523
8524 2020-10-22 Jakub Jelinek <[email protected]>
8525
8526 * icv.c (omp_get_initial_device): Remove including corresponding
8527 ialias.
8528 * icv-device.c (omp_get_initial_device): New function. Return
8529 gomp_get_num_devices (). Add ialias.
8530 * target.c (resolve_device): Don't fail with
8531 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
8532 gomp_get_num_devices ().
8533 (omp_target_alloc, omp_target_free, omp_target_is_present,
8534 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
8535 omp_target_disassociate_ptr, omp_pause_resource): Use
8536 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
8537 first use in the functions, in uses dominated by the
8538 gomp_get_num_devices call use num_devices_openmp instead.
8539 * libgomp.texi (omp_get_initial_device): Document.
8540 * config/gcn/icv-device.c (omp_get_initial_device): New function.
8541 Add ialias.
8542 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
8543 * testsuite/libgomp.c/target-40.c: New test.
8544
8545 2020-10-21 Jakub Jelinek <[email protected]>
8546
8547 * env.c (parse_target_offload): Change new_offload var type to int,
8548 preinitialize to -1, remove found var and test new_offload != -1
8549 instead of found.
8550
8551 2020-10-20 Jakub Jelinek <[email protected]>
8552
8553 * target.c (gomp_target_init): Inside of the function, use automatic
8554 variables corresponding to num_devices, num_devices_openmp and devices
8555 global variables and update the globals only at the end of the
8556 function.
8557
8558 2020-10-20 Kwok Cheung Yeung <[email protected]>
8559
8560 * env.c (gomp_target_offload_var): New.
8561 (parse_target_offload): New.
8562 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
8563 (initialize_env): Parse OMP_TARGET_OFFLOAD.
8564 * libgomp.h (gomp_target_offload_t): New.
8565 (gomp_target_offload_var): New.
8566 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
8567 * target.c (resolve_device): Generate error if device not found and
8568 offloading is mandatory.
8569 (gomp_target_fallback): Generate error if offloading is mandatory.
8570 (GOMP_target): Add argument in call to gomp_target_fallback.
8571 (GOMP_target_ext): Likewise.
8572 (gomp_target_data_fallback): Generate error if offloading is mandatory.
8573 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
8574 (GOMP_target_data_ext): Likewise.
8575 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
8576 (gomp_target_init): Return early if offloading is disabled.
8577
8578 2020-10-15 Kwok Cheung Yeung <[email protected]>
8579
8580 * libgomp.texi (omp_get_max_active_levels): Modify description.
8581 (omp_get_supported_active_levels): Make descriptions consistent.
8582
8583 2020-10-14 Jakub Jelinek <[email protected]>
8584
8585 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
8586
8587 2020-10-13 Kwok Cheung Yeung <[email protected]>
8588
8589 * env.c (gomp_max_active_levels_var): Initialize to
8590 gomp_supported_active_levels.
8591 (initialize_env): Limit gomp_max_active_levels_var to be at most
8592 equal to gomp_supported_active_levels.
8593 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
8594 (omp_get_supported_active_levels_): New.
8595 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
8596 to at most equal to gomp_supported_active_levels.
8597 (omp_get_supported_active_levels): New.
8598 * libgomp.h (gomp_supported_active_levels): New.
8599 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
8600 omp_get_supported_active_levels_.
8601 * libgomp.texi (omp_get_supported_active_levels): New.
8602 (omp_set_max_active_levels): Update. Add reference to
8603 omp_get_supported_active_levels.
8604 * omp.h.in (omp_get_supported_active_levels): New.
8605 * omp_lib.f90.in (omp_get_supported_active_levels): New.
8606 * omp_lib.h.in (omp_get_supported_active_levels): New.
8607 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
8608 against omp_get_supported_active_levels.
8609 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
8610
8611 2020-10-11 Clement Chigot <[email protected]>
8612
8613 * config/t-aix: Delete and recreate libgomp before creating
8614 FAT library.
8615
8616 2020-10-08 Tom de Vries <[email protected]>
8617
8618 PR libgomp/81802
8619 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
8620 dimensions.
8621
8622 2020-10-06 Tom de Vries <[email protected]>
8623
8624 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
8625
8626 2020-10-06 Tom de Vries <[email protected]>
8627
8628 PR middle-end/90861
8629 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
8630
8631 2020-10-05 Tom de Vries <[email protected]>
8632
8633 PR fortran/95654
8634 * testsuite/libgomp.fortran/pr95654.f90: New test.
8635
8636 2020-10-02 Tobias Burnus <[email protected]>
8637
8638 * Makefile.in: Regenerate with automake 1.15.1.
8639 * aclocal.m4: Likewise.
8640 * configure: Likewise.
8641 * testsuite/Makefile.in: Likewise.
8642
8643 2020-09-30 Andrew Stubbs <[email protected]>
8644
8645 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
8646 and amdgcn targets.
8647
8648 2020-09-30 Tobias Burnus <[email protected]>
8649
8650 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
8651
8652 2020-09-29 Andrew Stubbs <[email protected]>
8653
8654 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
8655 total number of threads is one.
8656 (gomp_team_barrier_wake): Likewise.
8657 (gomp_team_barrier_wait_end): Likewise.
8658 (gomp_team_barrier_wait_cancel_end): Likewise.
8659 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
8660 (gomp_team_barrier_wake): Likewise.
8661 (gomp_team_barrier_wait_end): Likewise.
8662 (gomp_team_barrier_wait_cancel_end): Likewise.
8663 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
8664
8665 2020-09-28 Tobias Burnus <[email protected]>
8666
8667 PR middle-end/96390
8668 * testsuite/libgomp.c++/pr96390.C: New test.
8669 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
8670
8671 2020-09-27 Clement Chigot <[email protected]>
8672
8673 * config/t-aix: Use $(AR) without -X32_64.
8674
8675 2020-09-25 Jakub Jelinek <[email protected]>
8676
8677 * testsuite/libgomp.c/loop-25.c: New test.
8678
8679 2020-09-22 Tobias Burnus <[email protected]>
8680
8681 PR fortran/95654
8682 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
8683
8684 2020-09-22 Tom de Vries <[email protected]>
8685
8686 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
8687 fails.
8688
8689 2020-09-16 Nathan Sidwell <[email protected]>
8690
8691 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
8692
8693 2020-09-15 Tobias Burnus <[email protected]>
8694
8695 PR fortran/96668
8696 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
8697
8698 2020-09-15 Tobias Burnus <[email protected]>
8699
8700 PR fortran/96668
8701 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
8702 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
8703 (gomp_map_vars_existing): Update call to it.
8704 (gomp_map_fields_existing): Likewise
8705 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
8706 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
8707 remapped.
8708 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
8709 GOMP_MAP_POINTER.
8710 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
8711 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
8712
8713 2020-09-14 Tom de Vries <[email protected]>
8714
8715 * config/nvptx/atomic.c: New file. Add
8716 __sync_val_compare_and_swap_16.
8717 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
8718 target offload_target_nvptx.
8719
8720 2020-09-08 Julian Brown <[email protected]>
8721
8722 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
8723 iteration-ordering assumptions.
8724
8725 2020-09-08 Julian Brown <[email protected]>
8726
8727 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
8728 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
8729
8730 2020-08-20 Chung-Lin Tang <[email protected]>
8731
8732 * plugin/plugin-nvptx.c (nvptx_free):
8733 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
8734 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
8735 comments.
8736
8737 2020-08-20 Tobias Burnus <[email protected]>
8738
8739 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
8740
8741 2020-08-13 Kwok Cheung Yeung <[email protected]>
8742
8743 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
8744
8745 2020-08-13 Jakub Jelinek <[email protected]>
8746
8747 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
8748 * testsuite/libgomp.c/loop-23.c (main): Likewise.
8749 * testsuite/libgomp.c/loop-24.c: New test.
8750
8751 2020-08-08 Jakub Jelinek <[email protected]>
8752 Tobias Burnus <[email protected]>
8753
8754 PR fortran/93553
8755 * testsuite/libgomp.fortran/pr93553.f90: New test.
8756
8757 2020-08-05 Jakub Jelinek <[email protected]>
8758
8759 * testsuite/libgomp.c/loop-22.c: New test.
8760 * testsuite/libgomp.c/loop-23.c: New test.
8761
8762 2020-08-05 Jakub Jelinek <[email protected]>
8763
8764 PR middle-end/96459
8765 * testsuite/libgomp.c/teams-3.c: New test.
8766 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
8767 if not defined yet.
8768 (N(test)): Use it before all N(f*) calls.
8769 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
8770 (main): Don't call all test_* functions from within
8771 #pragma omp teams reduction(|:err), call them directly.
8772
8773 2020-08-04 Tom de Vries <[email protected]>
8774
8775 PR target/96428
8776 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
8777 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
8778
8779 2020-08-03 Julian Brown <[email protected]>
8780 Thomas Schwinge <[email protected]>
8781
8782 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
8783 shared-memory devices. Extend with further checking.
8784
8785 2020-08-03 Martin Jambor <[email protected]>
8786
8787 * plugin/Makefrag.am: Remove configuration of HSA plugin.
8788 * aclocal.m4: Regenerated.
8789 * Makefile.in: Regenerated.
8790 * config.h.in: Regenerated.
8791 * configure: Regenerated.
8792 * plugin/configfrag.ac: Likewise.
8793 * plugin/hsa_ext_finalize.h: Removed.
8794 * plugin/plugin-hsa.c: Likewise.
8795 * testsuite/Makefile.in: Regenerated.
8796 * testsuite/lib/libgomp.exp
8797 (offload_target_to_openacc_device_type): Remove hsa case.
8798 (check_effective_target_hsa_offloading_selected_nocache): Removed
8799 (check_effective_target_hsa_offloading_selected): Likewise.
8800 (libgomp_init): Do not add -Wno-hsa to additional_flags.
8801 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
8802 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
8803 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
8804 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
8805 * testsuite/libgomp.hsa.c/c.exp: Likewise.
8806 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
8807 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
8808 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
8809 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
8810 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
8811 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
8812 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
8813 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
8814 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
8815 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
8816 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
8817 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
8818 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
8819 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
8820 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
8821 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
8822 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
8823 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
8824 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
8825
8826 2020-07-27 Julian Brown <[email protected]>
8827 Thomas Schwinge <[email protected]>
8828
8829 * libgomp.h (struct target_var_desc): Rename do_detach field to
8830 is_attach.
8831 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
8832 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
8833 (goacc_enter_data_internal): Don't affect reference counts
8834 for attach mappings.
8835 (goacc_exit_data_internal): Don't affect reference counts for detach
8836 mappings.
8837 * target.c (gomp_map_vars_existing): Don't affect reference counts for
8838 attach mappings.
8839 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
8840 mark attach mappings.
8841 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
8842 reference count for attach mappings.
8843 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
8844 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
8845 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
8846 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
8847 test as shouldfail.
8848 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
8849 gracefully in no-finalize mode.
8850 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
8851
8852 2020-07-24 Thomas Schwinge <[email protected]>
8853
8854 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
8855 use.
8856 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8857 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8858
8859 2020-07-23 Julian Brown <[email protected]>
8860 Thomas Schwinge <[email protected]>
8861
8862 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
8863 finalization for detach operation.
8864 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
8865 New test.
8866
8867 2020-07-23 Tobias Burnus <[email protected]>
8868
8869 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
8870 * libgomp_f.h.in (omp_check_defines): Check whether
8871 sizeof of determined Fortran kind and C typedef match.
8872 * omp_lib.f90.in: Add omp_depened_kind.
8873 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
8874 * configure: Regenerate.
8875 * Makefile.in: Regenerate.
8876 * testsuite/Makefile.in: Regenerate.
8877
8878 2020-07-22 Tobias Burnus <[email protected]>
8879
8880 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
8881 gcc/testsuite/c-c++-common/gomp/.
8882 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
8883 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
8884 from gcc/testsuite/gfortran.dg/gomp/.
8885 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
8886
8887 2020-07-22 Tobias Burnus <[email protected]>
8888
8889 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
8890 * omp_lib.h.in: Likewise.
8891
8892 2020-07-18 H.J. Lu <[email protected]>
8893
8894 PR target/95620
8895 * testsuite/libgomp.c/pr95620.c: New test.
8896
8897 2020-07-16 Julian Brown <[email protected]>
8898 Thomas Schwinge <[email protected]>
8899
8900 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
8901 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
8902
8903 2020-07-15 Tobias Burnus <[email protected]>
8904
8905 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
8906 avoid conversion on 32bit systems from 32bit to 64bit due
8907 to -fdefault-integer-8.
8908
8909 2020-07-15 Tobias Burnus <[email protected]>
8910
8911 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
8912 variables; add character(kind=4) tests; update TODO comment.
8913
8914 2020-07-15 Tobias Burnus <[email protected]>
8915
8916 * allocator.c: Add ialias for omp_init_allocator and
8917 omp_destroy_allocator.
8918 * configure.ac: Set INTPTR_T_KIND.
8919 * configure: Regenerate.
8920 * Makefile.in: Regenerate.
8921 * testsuite/Makefile.in: Regenerate.
8922 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
8923 omp_set_default_allocator_, omp_get_default_allocator_): New
8924 functions and ialias_redirect.
8925 * icv.c: Add ialias for omp_set_default_allocator and
8926 omp_get_default_allocator.
8927 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
8928 omp_destroy_allocator_, omp_set_default_allocator_ and
8929 omp_get_default_allocator_.
8930 * omp_lib.f90.in: Add allocator traits parameters, declare
8931 allocator routines and add related kind parameters.
8932 * omp_lib.h.in: Likewise.
8933 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
8934 * testsuite/libgomp.fortran/alloc-1.F90: New test.
8935 * testsuite/libgomp.fortran/alloc-2.F90: New test.
8936 * testsuite/libgomp.fortran/alloc-3.F: New test.
8937 * testsuite/libgomp.fortran/alloc-4.f90: New test.
8938 * testsuite/libgomp.fortran/alloc-5.f90: New test.
8939
8940 2020-07-14 Tom de Vries <[email protected]>
8941 Cesar Philippidis <[email protected]>
8942 Thomas Schwinge <[email protected]>
8943 Kwok Cheung Yeung <[email protected]>
8944
8945 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
8946 New variable.
8947 (acc_init_1): Set acc_init_thread to pthread_self (). Set
8948 acc_init_state to initializing at the start, and to initialized at the
8949 end.
8950 (self_initializing_p): New function.
8951 (acc_get_device_type): Return acc_device_none if called by thread that
8952 is currently executing acc_init_1.
8953 * libgomp.texi (acc_get_device_type): Update documentation.
8954 (Implementation Status and Implementation-Defined Behavior): Likewise.
8955 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
8956
8957 2020-07-14 David Edelsohn <[email protected]>
8958
8959 * config/t-aix: Set BITS from compiler cpp macro.
8960
8961 2020-07-14 Tobias Burnus <[email protected]>
8962
8963 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
8964
8965 2020-07-14 Tobias Burnus <[email protected]>
8966
8967 PR fortran/67311
8968 * testsuite/libgomp.fortran/target-map-1.f90: New test.
8969
8970 2020-07-14 Jakub Jelinek <[email protected]>
8971
8972 * testsuite/libgomp.c/loop-21.c: New test.
8973
8974 2020-07-13 Julian Brown <[email protected]>
8975 Thomas Schwinge <[email protected]>
8976
8977 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
8978
8979 2020-07-10 Julian Brown <[email protected]>
8980 Thomas Schwinge <[email protected]>
8981
8982 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
8983 dynamic_refcount.
8984 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
8985 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
8986 dynamic_refcount.
8987 (acc_unmap_data): Update comment.
8988 (goacc_map_var_existing, goacc_enter_datum): Adjust for
8989 dynamic_refcount semantics.
8990 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
8991 Adjust for dynamic_refcount semantics.
8992 (goacc_enter_data_internal): Implement "present" case of dynamic
8993 memory-map handling here. Update "non-present" case for
8994 dynamic_refcount semantics.
8995 (goacc_exit_data_internal): Use goacc_exit_datum_1.
8996 * target.c (gomp_map_vars_internal): Remove
8997 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
8998 handling.
8999 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
9000 (gomp_load_image_to_device): Substitute dynamic_refcount for
9001 virtual_refcount.
9002 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
9003 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
9004 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
9005 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
9006 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
9007 trace output.
9008 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
9009 trace output.
9010 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
9011 test.
9012 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
9013 Remove stale comment.
9014 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
9015 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
9016 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
9017 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
9018 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
9019 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
9020
9021 2020-07-10 Julian Brown <[email protected]>
9022 Thomas Schwinge <[email protected]>
9023
9024 * oacc-mem.c (goacc_map_var_existing): New function.
9025 (goacc_enter_datum): Use above function.
9026 (goacc_exit_datum_1): New function.
9027 (goacc_exit_datum): Use above function.
9028
9029 2020-07-09 Julian Brown <[email protected]>
9030 Thomas Schwinge <[email protected]>
9031
9032 PR middle-end/95270
9033 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
9034 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
9035
9036 2020-07-09 Julian Brown <[email protected]>
9037
9038 * oacc-mem.c (find_group_last): Group data-movement clauses
9039 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
9040 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
9041
9042 2020-07-09 Jakub Jelinek <[email protected]>
9043
9044 * testsuite/libgomp.c/loop-19.c: New test.
9045 * testsuite/libgomp.c/loop-20.c: New test.
9046
9047 2020-07-09 Jakub Jelinek <[email protected]>
9048
9049 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
9050 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
9051 it. Remove __omp_alloctrait_value_max__.
9052 * allocator.c (omp_init_allocator): Handle omp_atv_default for
9053 omp_atk_alignment and omp_atk_pool_size.
9054
9055 2020-07-03 Thomas Schwinge <[email protected]>
9056
9057 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
9058 behavior for 'GOMP_MAP_FORCE_FROM'.
9059 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
9060
9061 2020-07-03 Thomas Schwinge <[email protected]>
9062
9063 * oacc-mem.c (goacc_exit_data_internal): Remove
9064 'GOMP_MAP_ALWAYS_FROM' handling.
9065
9066 2020-06-30 Thomas Schwinge <[email protected]>
9067
9068 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
9069 'scan-assembler' with 'scan-offload-rtl'.
9070 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
9071 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
9072 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
9073 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
9074
9075 2020-06-30 Thomas Schwinge <[email protected]>
9076
9077 * target.c (gomp_map_vars_existing): Assert 'kind !=
9078 GOMP_MAP_ATTACH'.
9079 (gomp_map_vars_internal): Clean up.
9080
9081 2020-06-27 Jakub Jelinek <[email protected]>
9082
9083 * testsuite/libgomp.c/loop-17.c: New test.
9084 * testsuite/libgomp.c/loop-18.c: New test.
9085
9086 2020-06-26 Marek Polacek <[email protected]>
9087
9088 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
9089
9090 2020-06-23 Alexandre Oliva <[email protected]>
9091
9092 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
9093 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
9094
9095 2020-06-22 David Edelsohn <[email protected]>
9096
9097 * Makefile.am: Use -include.
9098 * Makefile.in: Regenerate.
9099
9100 2020-06-21 David Edelsohn <[email protected]>
9101
9102 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
9103 * Makefile.in: Regenerate
9104 * configure.ac (tmake_file): Substitute.
9105 * configure: Regenerate.
9106 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
9107 * config/t-aix: New file.
9108
9109 2020-06-17 Thomas Schwinge <[email protected]>
9110
9111 PR lto/94848
9112 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
9113 'dg-do run'.
9114
9115 2020-06-17 Andrew Stubbs <[email protected]>
9116
9117 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
9118 variant for HSA_RUNTIME_LIB name.
9119 (find_executable_symbol_1): Delete.
9120 (find_executable_symbol): Delete.
9121 (init_kernel_properties): Add ".kd" suffix to symbol names.
9122 (find_load_offset): Delete.
9123 (create_and_finalize_hsa_program): Remove relocation handling.
9124
9125 2020-06-16 Tobias Burnus <[email protected]>
9126
9127 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
9128
9129 2020-06-08 Tobias Burnus <[email protected]>
9130
9131 PR lto/94848
9132 PR middle-end/95551
9133 * testsuite/libgomp.fortran/target-var.f90: New test.
9134
9135 2020-06-05 Thomas Schwinge <[email protected]>
9136 Julian Brown <[email protected]>
9137
9138 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
9139 special handling.
9140
9141 2020-06-05 Thomas Schwinge <[email protected]>
9142 Julian Brown <[email protected]>
9143
9144 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
9145 Simplify.
9146
9147 2020-06-05 Julian Brown <[email protected]>
9148
9149 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
9150 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
9151
9152 2020-06-04 Thomas Schwinge <[email protected]>
9153
9154 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
9155 Evaluate 'copyfrom' individually for each entry.
9156 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
9157
9158 2020-06-04 Thomas Schwinge <[email protected]>
9159
9160 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
9161 Evaluate 'finalize' individually for each entry.
9162 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
9163 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
9164 file.
9165
9166 2020-06-04 Thomas Schwinge <[email protected]>
9167
9168 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
9169 usage.
9170 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
9171
9172 2020-06-04 Thomas Schwinge <[email protected]>
9173 Julian Brown <[email protected]>
9174
9175 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
9176 checking.
9177 (acc_unmap_data, goacc_exit_data_internal): Restore
9178 'is_tgt_unmapped' checking.
9179 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
9180 file.
9181 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
9182 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
9183 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
9184 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
9185 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
9186 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
9187
9188 2020-06-04 Thomas Schwinge <[email protected]>
9189 Julian Brown <[email protected]>
9190
9191 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
9192
9193 2020-06-04 Thomas Schwinge <[email protected]>
9194
9195 PR libgomp/92854
9196 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
9197
9198 2020-06-04 Thomas Schwinge <[email protected]>
9199
9200 PR libgomp/92854
9201 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
9202 more.
9203
9204 2020-06-04 Thomas Schwinge <[email protected]>
9205 Julian Brown <[email protected]>
9206
9207 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
9208 'gomp_map_vars'.
9209 (acc_map_data): Clean up accordingly.
9210
9211 2020-06-04 Thomas Schwinge <[email protected]>
9212
9213 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
9214 of over-eager 'finalize' clause.
9215 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
9216 file.
9217 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
9218 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
9219 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
9220 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
9221 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
9222 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
9223 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
9224 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
9225
9226 2020-06-04 Thomas Schwinge <[email protected]>
9227
9228 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
9229
9230 2020-06-04 Julian Brown <[email protected]>
9231
9232 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
9233 error path.
9234 (goacc_detach_internal): Likewise.
9235
9236 2020-06-04 Thomas Schwinge <[email protected]>
9237
9238 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
9239 the checkpoint.
9240 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
9241 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
9242 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
9243 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
9244 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
9245
9246 2020-06-02 Jakub Jelinek <[email protected]>
9247
9248 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
9249 defined.
9250
9251 2020-05-30 Jakub Jelinek <[email protected]>
9252
9253 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
9254
9255 2020-05-30 Jakub Jelinek <[email protected]>
9256
9257 * allocator.c (omp_alloc): For size == 0, return NULL early.
9258
9259 2020-05-29 H.J. Lu <[email protected]>
9260
9261 PR bootstrap/95413
9262 * configure: Regenerated.
9263
9264 2020-05-23 Thomas Koenig <[email protected]>
9265
9266 PR libfortran/95191
9267 * testsuite/libgomp.fortran/async_io_9.f90: New test.
9268
9269 2020-05-19 Jakub Jelinek <[email protected]>
9270
9271 * omp.h.in (omp_uintptr_t): New typedef.
9272 (__GOMP_UINTPTR_T_ENUM): Define.
9273 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
9274 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
9275 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
9276 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
9277 omp_get_default_allocator, omp_alloc, omp_free): Declare.
9278 * libgomp.h (struct gomp_team_state): Add def_allocator field.
9279 (gomp_def_allocator): Declare.
9280 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
9281 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
9282 omp_alloc and omp_free.
9283 * team.c (gomp_team_start): Copy over ts.def_allocator.
9284 * env.c (gomp_def_allocator): New variable.
9285 (parse_wait_policy): Adjust function comment.
9286 (parse_allocator): New function.
9287 (handle_omp_display_env): Print OMP_ALLOCATOR.
9288 (initialize_env): Call parse_allocator.
9289 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
9290 * allocator.c: New file.
9291 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
9292 functions.
9293 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
9294 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
9295 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
9296 * Makefile.in: Regenerated.
9297
9298 2020-05-15 H.J. Lu <[email protected]>
9299
9300 PR bootstrap/95147
9301 * configure: Regenerated.
9302
9303 2020-05-14 Thomas Koenig <[email protected]>
9304
9305 PR libfortran/95119
9306 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
9307
9308 2020-05-14 H.J. Lu <[email protected]>
9309
9310 * configure: Regenerated.
9311
9312 2020-05-14 Jakub Jelinek <[email protected]>
9313
9314 * testsuite/libgomp.c-c++-common/target-40.c: New test.
9315
9316 2020-05-13 Tobias Burnus <[email protected]>
9317
9318 PR fortran/94690
9319 * testsuite/libgomp.fortran/pr66199-3.f90: New.
9320 * testsuite/libgomp.fortran/pr66199-4.f90: New.
9321 * testsuite/libgomp.fortran/pr66199-5.f90: New.
9322 * testsuite/libgomp.fortran/pr66199-6.f90: New.
9323 * testsuite/libgomp.fortran/pr66199-7.f90: New.
9324 * testsuite/libgomp.fortran/pr66199-8.f90: New.
9325 * testsuite/libgomp.fortran/pr66199-9.f90: New.
9326
9327 2020-05-12 Jakub Jelinek <[email protected]>
9328
9329 * testsuite/libgomp.c/target-39.c: New test.
9330
9331 2020-04-29 Thomas Schwinge <[email protected]>
9332
9333 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
9334 * openacc.f90 (acc_device_current): Likewise.
9335 * openacc.h (acc_device_current): Likewise.
9336 * openacc_lib.h (acc_device_current): Likewise.
9337
9338 PR target/94282
9339 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
9340 'dg-allow-blank-lines-in-output'.
9341
9342 * oacc-init.c (get_openacc_name): Handle 'gcn'.
9343 * testsuite/lib/libgomp.exp
9344 (offload_target_to_openacc_device_type) [amdgcn*]: Return
9345 'radeon'. Adjust all users.
9346 (check_effective_target_openacc_amdgcn_accel_present): Rename
9347 to...
9348 (check_effective_target_openacc_radeon_accel_present): ... this.
9349 Adjust all users.
9350 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
9351 (check_effective_target_openacc_radeon_accel_selected): ... this.
9352 Adjust all users.
9353
9354 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
9355 'dg-do run'.
9356
9357 2020-04-23 Andrew Stubbs <[email protected]>
9358
9359 PR other/94629
9360
9361 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
9362 hsa_iterate_agents.
9363 (GOMP_OFFLOAD_init_device): Check return values from both calls to
9364 hsa_agent_iterate_regions.
9365
9366 2020-04-20 Thomas Schwinge <[email protected]>
9367
9368 PR middle-end/94635
9369 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
9370 run'.
9371
9372 2020-04-20 Tobias Burnus <[email protected]>
9373
9374 PR middle-end/94120
9375 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
9376 test case.
9377
9378 2020-04-17 Tobias Burnus <[email protected]>
9379
9380 PR middle-end/94635
9381 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
9382
9383 2020-04-13 Thomas Schwinge <[email protected]>
9384
9385 PR libgomp/92843
9386 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
9387 Rename to...
9388 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
9389 ... this.
9390 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
9391 Rename to...
9392 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
9393 ... this.
9394 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
9395 Rename to...
9396 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
9397 ... this.
9398 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
9399 Rename to...
9400 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
9401 ... this.
9402 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
9403 Rename to...
9404 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
9405 ... this.
9406 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
9407 Rename to...
9408 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
9409 ... this.
9410 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
9411 Rename to...
9412 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
9413 ... this.
9414 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
9415 Rename to...
9416 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
9417 ... this.
9418 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
9419 Rename to...
9420 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
9421 ... this.
9422 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
9423 Rename to...
9424 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
9425 ... this.
9426 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
9427 Rename to...
9428 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
9429 ... this.
9430 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
9431 Rename to...
9432 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
9433 ... this.
9434 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
9435 Rename to...
9436 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
9437 ... this.
9438 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
9439 Rename to...
9440 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
9441 ... this.
9442 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
9443 Rename to...
9444 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
9445 ... this.
9446 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
9447 Rename to...
9448 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
9449 ... this.
9450
9451 2020-04-10 Julian Brown <[email protected]>
9452 Thomas Schwinge <[email protected]>
9453
9454 PR libgomp/92843
9455 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
9456 New file.
9457 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
9458 Likewise.
9459 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
9460 Likewise.
9461 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
9462 Likewise.
9463 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
9464 Likewise.
9465 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
9466 Likewise.
9467 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
9468 Likewise.
9469 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
9470 Likewise.
9471 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
9472 Likewise.
9473 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
9474 Likewise.
9475 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
9476 Likewise.
9477 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
9478 Likewise.
9479 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
9480 Likewise.
9481 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
9482 Likewise.
9483 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
9484 Likewise.
9485 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
9486 Likewise.
9487
9488 2020-04-10 Thomas Schwinge <[email protected]>
9489
9490 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
9491 run'.
9492
9493 2020-04-08 Tobias Burnus <[email protected]>
9494
9495 PR middle-end/94120
9496 * libgomp.oacc-c++/declare-pr94120.C: New.
9497
9498 2020-04-06 Maciej W. Rozycki <[email protected]>
9499
9500 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
9501 files.
9502 * configure: Regenerate.
9503 * testsuite/libgomp-site-extra.exp.in: New file.
9504 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
9505 variable.
9506 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
9507 variable.
9508 * testsuite/Makefile.in: Regenerate.
9509
9510 2020-04-03 Thomas Schwinge <[email protected]>
9511
9512 PR tree-optimization/89713
9513 PR c/94392
9514 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
9515 'bar.sync'.
9516 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
9517
9518 2020-03-31 Tobias Burnus <[email protected]>
9519
9520 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
9521 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
9522
9523 2020-03-24 Tobias Burnus <[email protected]>
9524
9525 PR libgomp/81689
9526 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
9527
9528 2020-03-20 Tobias Burnus <[email protected]>
9529
9530 PR libgomp/94251
9531 * target.c (gomp_load_image_to_device): Fix link
9532 variable handling.
9533
9534 2020-03-19 Jakub Jelinek <[email protected]>
9535
9536 PR c++/93931
9537 * testsuite/libgomp.c++/pr93931.C: New test.
9538
9539 2020-03-19 Tobias Burnus <[email protected]>
9540
9541 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
9542 dg-allow-blank-lines-in-output.
9543
9544 2020-03-18 Julian Brown <[email protected]>
9545 Tobias Burnus <[email protected]>
9546
9547 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
9548 it work concurrently.
9549
9550 2020-03-18 Tobias Burnus <[email protected]>
9551
9552 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
9553 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
9554 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
9555
9556 2020-03-14 Jakub Jelinek <[email protected]>
9557
9558 PR middle-end/93566
9559 * testsuite/libgomp.c/pr93566.c: New test.
9560
9561 2020-02-21 Frederik Harwath <[email protected]>
9562
9563 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
9564 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
9565 integer(acc_device_property) for the type of the return value of
9566 acc_get_property.
9567
9568 2020-02-19 Tobias Burnus <[email protected]>
9569
9570 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
9571 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
9572 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
9573 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
9574 (acc_set_device_num): Fix Fortran argument name, use same name for C.
9575 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
9576 corrections; add note about the previous interface and named constant.
9577 (OpenACC library and environment variables): Fix two typos.
9578 * openacc.f90: Use for all procedures the argument names from the spec
9579 as for …_h they are user visible.
9580 (openacc_kinds): Rename acc_device_property to
9581 acc_device_property_kinds and change value to int32 ; and update users.
9582 Re-add acc_device_property for for backward compatibility.
9583 (acc_get_property_string_h): Clean up as acc_device_property_kind
9584 changed.
9585 (acc_get_property_h): Likewise and return c_size_t instead of
9586 acc_device_property.
9587 (openacc): Also export acc_device_property_kinds.
9588 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
9589 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
9590 handling; check against /= 0 instead of == 1 to match C.
9591 * openacc_lib.h: Use for all procedures the argument names from the spec
9592 as for …_h they are user visible. Place !GCC$ into the first column to
9593 be active also for fixed-form souce form.
9594 (acc_device_current, acc_device_property_kind, acc_device_property,
9595 acc_property_memory, acc_property_free_memory, acc_property_name,
9596 acc_property_vendor, acc_property_driver): New named constants.
9597 (acc_get_property, acc_get_property_string): New generic interface.
9598
9599 2020-02-13 Frederik Harwath <[email protected]>
9600
9601 PR libgomp/93481
9602 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
9603 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
9604 optional.
9605 (gomp_target_task_fn): Assert "devicep->async_run_func".
9606 (clear_unsupported_flags): New function to remove unsupported flags
9607 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
9608 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
9609 * testsuite/libgomp.c/target-33.c:
9610 Remove xfail for offload_target_nvptx.
9611 * testsuite/libgomp.c/target-34.c: Likewise.
9612
9613 2020-02-10 Frederik Harwath <[email protected]>
9614
9615 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
9616 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
9617 * testsuite/libgomp.c/target-34.c: Likewise.
9618 * testsuite/libgomp.c/target-link-1.c: Add xfail for
9619 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
9620
9621 2020-02-09 Jakub Jelinek <[email protected]>
9622
9623 * testsuite/libgomp.c/target-38.c: New test.
9624
9625 2020-02-06 Jakub Jelinek <[email protected]>
9626
9627 PR libgomp/93515
9628 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
9629
9630 2020-02-05 Tobias Burnus <[email protected]>
9631
9632 * testsuite/lib/libgomp.exp
9633 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
9634 and not as 'source' argument to libgomp_target_compile.
9635
9636 2020-02-03 Andrew Stubbs <[email protected]>
9637
9638 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
9639 (gcn_gfx801_s): Remove.
9640 (isa_hsa_name): Remove gfx801.
9641 (isa_gcc_name): Remove gfx801/carizzo.
9642 (isa_code): Remove gfx801.
9643
9644 2020-02-03 Julian Brown <[email protected]>
9645 Tobias Burnus <[email protected]>
9646
9647 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
9648 and *_finalize variants; document acc_attach and acc_detach; update
9649 references from OpenACC 2.0 to 2.6.
9650 * openacc.f90 (openacc_version): Update to 201711.
9651 * openacc_lib.h (openacc_version): Update to 201711.
9652 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
9653 openacc_version to 201711.
9654 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
9655
9656 2020-01-31 Kwok Cheung Yeung <[email protected]>
9657
9658 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
9659 and vgpr_count fields.
9660 (struct kernel_info): Add a field for a hsa_kernel_description.
9661 (run_kernel): Reduce the number of threads/workers if the requested
9662 number would require too many VGPRs.
9663 (init_basic_kernel_info): Initialize description field with
9664 the hsa_kernel_description entry for the kernel.
9665
9666 2020-01-29 Tobias Burnus <[email protected]>
9667
9668 PR bootstrap/93409
9669 * plugin/configfrag.ac (enable_offload_targets): Skip
9670 HSA and GCN plugin besides -m32 also for -mx32.
9671 * configure: Regenerate.
9672
9673 2020-01-29 Frederik Harwath <[email protected]>
9674
9675 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
9676
9677 2020-01-29 Frederik Harwath <[email protected]>
9678
9679 * plugin-gcn.c (struct agent_info): Add fields "name" and
9680 "vendor_name" ...
9681 (GOMP_OFFLOAD_init_device): ... and init from here.
9682 (struct hsa_context_info): Add field "driver_version_s" ...
9683 (init_hsa_contest): ... and init from here.
9684 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
9685 implementation.
9686 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
9687 Enable test execution for amdgcn and host offloading targets.
9688 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
9689 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
9690 (expect_device_properties): Split function into ...
9691 (expect_device_string_properties): ... this new function ...
9692 (expect_device_memory): ... and this new function.
9693 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
9694 Add test.
9695
9696 2020-01-28 Julian Brown <[email protected]>
9697
9698 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
9699 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
9700 component/non-component variable refs in a single directive.
9701 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
9702
9703 2020-01-24 Maciej W. Rozycki <[email protected]>
9704
9705 * configure.ac: Handle `--with-toolexeclibdir='.
9706 * Makefile.in: Regenerate.
9707 * aclocal.m4: Regenerate.
9708 * configure: Regenerate.
9709 * testsuite/Makefile.in: Regenerate.
9710
9711 2020-01-24 Frederik Harwath <[email protected]>
9712
9713 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
9714 (expect_device_properties): Remove "expected_free_mem" argument,
9715 change "expected_total_mem" argument type to size_t;
9716 change types of acc_get_property results to size_t,
9717 adapt format strings.
9718 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
9719 Use %zu instead of %zd to print size_t values.
9720 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
9721 rename to ...
9722 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
9723 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
9724 rename to ...
9725 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
9726
9727 2020-01-23 Andrew Stubbs <[email protected]>
9728
9729 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
9730 the device id.
9731
9732 2020-01-20 Andrew Stubbs <[email protected]>
9733
9734 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
9735 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
9736 Adjust test dimensions for amdgcn.
9737 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
9738 gang/worker/vector expectations dynamically.
9739 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
9740 (main): Likewise.
9741 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
9742 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
9743 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
9744 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
9745 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
9746 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
9747 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
9748 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
9749 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
9750 (acc_gang): Recognise acc_device_radeon.
9751 (acc_worker): Likewise.
9752 (acc_vector): Likewise.
9753 (main): Set expectations for amdgcn.
9754 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
9755 (main): Adjust gang/worker/vector expectations dynamically.
9756 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
9757 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
9758 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
9759 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
9760 for amdgcn.
9761
9762 2020-01-17 Andrew Stubbs <[email protected]>
9763
9764 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
9765 acc_device_radeon.
9766 (openacc): Likewise.
9767 * openacc.f90 (openacc_kinds): Likewise.
9768 (openacc): Likewise.
9769 * openacc.h (acc_device_t): Likewise.
9770 * openacc_lib.h: Likewise.
9771 * testsuite/lib/libgomp.exp
9772 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
9773 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
9774 (cb_compute_construct_end): Likewise.
9775 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
9776 (cb_enqueue_launch_start): Likewise.
9777 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
9778 (cb_enter_data_end): Likewise.
9779 (cb_exit_data_start): Likewise.
9780 (cb_exit_data_end): Likewise.
9781 (cb_compute_construct_end): Likewise.
9782 (cb_enqueue_launch_start): Likewise.
9783 (cb_enqueue_launch_end): Likewise.
9784 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
9785 (main): Likewise.
9786
9787 2020-01-10 Thomas Schwinge <[email protected]>
9788
9789 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
9790 to use this instead of 'enum gomp_device_property'.
9791 (GOMP_OFFLOAD_get_property): Rename to...
9792 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
9793 * libgomp.h (struct gomp_device_descr): Move
9794 'GOMP_OFFLOAD_openacc_get_property'...
9795 (struct acc_dispatch_t): ... here. Adjust all users.
9796 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
9797
9798 * target.c (gomp_map_vars_internal)
9799 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
9800 paths.
9801
9802 2020-01-10 Jakub Jelinek <[email protected]>
9803
9804 PR libgomp/93219
9805 * libgomp.h (gomp_print_string): Change return type from void to int.
9806 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
9807 not all characters have been written.
9808
9809 2020-01-08 Tobias Burnus <[email protected]>
9810
9811 * libgomp.texi: Fix typos, use https.
9812
9813 2020-01-03 Tobias Burnus <[email protected]>
9814
9815 * testsuite/libgomp.fortran/optional-map.f90: Add test for
9816 unallocated/disassociated actual arguments to nonallocatable/nonpointer
9817 dummy arguments; those are/shall be regarded as absent arguments.
9818 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
9819 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
9820
9821 2020-01-01 Jakub Jelinek <[email protected]>
9822
9823 Update copyright years.
9824
9825 * libgomp.texi: Bump @copying's copyright year.
9826
9827 2019-12-31 Ayush Mittal <[email protected]>
9828
9829 PR libgomp/93065
9830 * oacc-init.c (goacc_runtime_deinitialize): New function.
9831
9832 2019-12-28 Jakub Jelinek <[email protected]>
9833
9834 PR bootstrap/93074
9835 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
9836 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
9837
9838 2019-12-22 Maciej W. Rozycki <[email protected]>
9839 Frederik Harwath <[email protected]>
9840 Thomas Schwinge <[email protected]>
9841
9842 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
9843 * libgomp-plugin.h (gomp_device_property_value): New union.
9844 (gomp_device_property_value): New prototype.
9845 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
9846 constant.
9847 (acc_device_property_t): New enum.
9848 (acc_get_property, acc_get_property_string): New prototypes.
9849 * oacc-init.c (acc_get_device_type): Also assert that result
9850 is not `acc_device_current'.
9851 (get_property_any, acc_get_property, acc_get_property_string):
9852 New functions.
9853 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
9854 `acc_property_memory', `acc_property_free_memory',
9855 `acc_property_name', `acc_property_vendor' and
9856 `acc_property_driver' constants. Add `acc_device_property' data
9857 type.
9858 (openacc_internal): Add `acc_get_property' and
9859 `acc_get_property_string' interfaces. Add `acc_get_property_h',
9860 `acc_get_property_string_h', `acc_get_property_l' and
9861 `acc_get_property_string_l'.
9862 * oacc-host.c (host_get_property): New function.
9863 (host_dispatch): Wire it.
9864 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
9865 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
9866 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
9867 * libgomp.texi (OpenACC Runtime Library Routines): Add
9868 `acc_get_property'.
9869 (acc_get_property): New node.
9870 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
9871 function (stub).
9872 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
9873 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
9874 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
9875 calls.
9876 (GOMP_OFFLOAD_get_property): New function.
9877 (struct ptx_device): Add new field "name".
9878 (cuda_driver_version_s): Add new static variable ...
9879 (nvptx_init): ... and init from here.
9880
9881 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
9882 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
9883 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
9884 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
9885 with test helper functions.
9886
9887 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
9888
9889 2019-12-22 Maciej W. Rozycki <[email protected]>
9890
9891 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
9892 variable.
9893
9894 2019-12-21 Thomas Schwinge <[email protected]>
9895
9896 * target.c (gomp_map_vars_internal): Restore 'omp declare target
9897 link' handling.
9898
9899 2019-12-19 Julian Brown <[email protected]>
9900
9901 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
9902 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
9903 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
9904
9905 2019-12-19 Julian Brown <[email protected]>
9906 Cesar Philippidis <[email protected]>
9907
9908 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
9909 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
9910 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
9911 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
9912 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
9913 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
9914 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
9915 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
9916 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
9917 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
9918 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
9919 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
9920 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
9921
9922 2019-12-19 Julian Brown <[email protected]>
9923
9924 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
9925 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
9926 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
9927 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
9928 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
9929 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
9930 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
9931 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
9932 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
9933 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
9934 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
9935 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
9936
9937 2019-12-19 Julian Brown <[email protected]>
9938
9939 * libgomp.h (struct target_var_desc): Add do_detach flag.
9940 * oacc-init.c (acc_shutdown_1): Free aux block if present.
9941 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
9942 struct components. Tidy up and add some new checks.
9943 (goacc_enter_data_internal): Update call to find_group_last.
9944 (goacc_exit_data_internal): Support detach operations and
9945 GOMP_MAP_STRUCT.
9946 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
9947 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
9948 attach/detach in enter/exit data detection code.
9949 * target.c (gomp_map_vars_existing): Initialise do_detach field of
9950 tgt_var_desc.
9951 (gomp_map_vars_internal): Support attach.
9952 (gomp_unmap_vars_internal): Support detach.
9953
9954 2019-12-19 Julian Brown <[email protected]>
9955 Thomas Schwinge <[email protected]>
9956
9957 * libgomp.h (struct splay_tree_aux): Add attach_count field.
9958 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
9959 * libgomp.map (OACC_2.6): New section. Add acc_attach,
9960 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
9961 acc_detach_finalize_async.
9962 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
9963 acc_detach, acc_detach_async, acc_detach_finalize,
9964 acc_detach_finalize_async): New functions.
9965 * openacc.h (acc_attach, acc_attach_async, acc_detach,
9966 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
9967 prototypes.
9968 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
9969 (gomp_remove_var_internal): Free attachment counts if present.
9970 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
9971 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
9972
9973 2019-12-19 Julian Brown <[email protected]>
9974 Cesar Philippidis <[email protected]>
9975
9976 * libgomp.h (gomp_map_val): Add prototype.
9977 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
9978 open-coding device-address calculation.
9979 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
9980 non-present case.
9981
9982 2019-12-19 Julian Brown <[email protected]>
9983
9984 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
9985 field for virtual_refcount.
9986 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
9987 (gomp_free_memmap): Remove prototype.
9988 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
9989 instead of calling gomp_free_memmap.
9990 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
9991 dynamic_refcount.
9992 (acc_unmap_data): Open code instead of forcing target_mem_desc's
9993 to_free field to NULL then calling gomp_unmap_vars. Handle
9994 REFCOUNT_INFINITY on target blocks.
9995 (goacc_enter_data): Rename to...
9996 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
9997 handling for mapping groups. Use virtual_refcount instead of
9998 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
9999 map_map_vars_async call. Re-do lookup for target pointer return value.
10000 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
10001 renamed goacc_enter_datum function.
10002 (goacc_exit_data): Rename to...
10003 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
10004 (acc_delete, acc_delete_async, acc_delete_finalize,
10005 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
10006 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
10007 goacc_exit_datum function.
10008 (gomp_acc_remove_pointer, find_pointer): Remove functions.
10009 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
10010 New functions.
10011 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
10012 goacc_exit_data_internal helper functions.
10013 * target.c (gomp_map_vars_internal): Handle
10014 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
10015 semantics.
10016 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
10017 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
10018 virtual_refcount field instead of dynamic_refcount.
10019 (gomp_free_memmap): Remove function.
10020 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
10021 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
10022 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
10023
10024 2019-12-19 Julian Brown <[email protected]>
10025 Thomas Schwinge <[email protected]>
10026
10027 * libgomp.h (struct splay_tree_aux): New.
10028 (struct splay_tree_key_s): Replace link_key field with aux pointer.
10029 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
10030 to aux struct.
10031 (gomp_remove_var_internal): Free aux block if present.
10032 (gomp_load_image_to_device): Zero-initialise aux field instead of
10033 link_key field.
10034 (omp_target_associate_pointer): Zero-initialise aux field.
10035
10036 2019-12-18 Jakub Jelinek <[email protected]>
10037
10038 PR middle-end/86416
10039 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
10040 q or none.
10041 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
10042 L or none.
10043
10044 2019-12-19 Julian Brown <[email protected]>
10045 Maciej W. Rozycki <[email protected]>
10046 Tobias Burnus <[email protected]>
10047 Thomas Schwinge <[email protected]>
10048
10049 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
10050 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
10051 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
10052 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
10053 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
10054 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
10055 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
10056 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
10057 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
10058
10059 2019-12-18 Thomas Schwinge <[email protected]>
10060
10061 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
10062 called...
10063 (goacc_insert_pointer): ... from here, "present" case.
10064 (goacc_insert_pointer): Inline function into...
10065 (GOACC_enter_exit_data): ... here, and simplify.
10066
10067 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
10068 called...
10069 (goacc_insert_pointer): ... from here, "not present" case.
10070
10071 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
10072 all users.
10073
10074 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
10075 'goacc_enter_data', 'goacc_exit_data'.
10076
10077 * oacc-mem.c (delete_copyout): Refactor into...
10078 (goacc_exit_data): ... this. Adjust all users.
10079
10080 * oacc-mem.c (present_create_copy): Refactor into...
10081 (goacc_enter_data): ... this. Adjust all users.
10082
10083 * target.c (gomp_unmap_vars_internal): Add a safeguard to
10084 'gomp_remove_var'.
10085
10086 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
10087 like 'GOMP_MAP_FROM'.
10088
10089 PR libgomp/92726
10090 PR libgomp/92970
10091 PR libgomp/92984
10092 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
10093 fails.
10094 (GOACC_enter_exit_data): Simplify accordingly.
10095 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
10096 subsuming...
10097 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
10098 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
10099 file.
10100 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
10101 subsuming...
10102 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
10103 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
10104 file.
10105 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
10106 subsuming...
10107 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
10108
10109 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
10110 'finalize' handling.
10111
10112 PR libgomp/92848
10113 * oacc-mem.c (acc_map_data, present_create_copy)
10114 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
10115 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
10116 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
10117 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
10118 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
10119 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
10120 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
10121 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
10122 Remove "XFAIL"s.
10123
10124 * target.c (gomp_unmap_tgt): Make it 'static'.
10125 * libgomp.h (gomp_unmap_tgt): Remove.
10126
10127 2019-12-18 Tobias Burnus <[email protected]>
10128
10129 PR middle-end/86416
10130 * testsuite/libgomp.c/pr86416-1.c: New.
10131 * testsuite/libgomp.c/pr86416-2.c: New.
10132
10133 2019-12-17 Tobias Burnus <[email protected]>
10134
10135 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
10136 all symbols as public except for the 'use …, only' imported symbol,
10137 which is private.
10138 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
10139 all symbols from module openacc_kinds as PUBLIC
10140 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
10141 fix comment typo.
10142 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
10143
10144 2019-12-13 Julian Brown <[email protected]>
10145
10146 PR libgomp/92881
10147
10148 * libgomp.h (gomp_remove_var_async): Add prototype.
10149 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
10150 gomp_remove_var.
10151 * target.c (gomp_unref_tgt): Change return type to bool, indicating
10152 whether target_mem_desc was unmapped.
10153 (gomp_unref_tgt_void): New.
10154 (gomp_remove_var): Reimplement in terms of...
10155 (gomp_remove_var_internal): ...this new helper function.
10156 (gomp_remove_var_async): New, implemented using above helper function.
10157 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
10158 gomp_unref_tgt.
10159
10160 2019-12-13 Andrew Stubbs <[email protected]>
10161
10162 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
10163 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
10164 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
10165 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
10166 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
10167 Likewise.
10168 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
10169 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
10170
10171 2019-12-13 Tobias Burnus <[email protected]>
10172
10173 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
10174 as public except for the 'use …, only' imported symbol, which is
10175 private.
10176 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
10177 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
10178 attributes for acc_copyout_finalize and acc_delete_finalize.
10179
10180 2019-12-11 Jakub Jelinek <[email protected]>
10181
10182 PR fortran/92899
10183 * testsuite/libgomp.fortran/atomic1.f90: New test.
10184
10185 2019-12-11 Thomas Schwinge <[email protected]>
10186
10187 PR libgomp/92843
10188 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
10189 reference counting for structured 'REFCOUNT_INFINITY'. Add some
10190 assertions.
10191 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
10192 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
10193 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
10194 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
10195 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
10196
10197 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
10198 * oacc-mem.c: ... here.
10199 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
10200 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
10201 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
10202 Remove.
10203 * libgomp_g.h: Update.
10204
10205 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
10206 * oacc-async.c: ... here.
10207 * oacc-int.h (goacc_wait): Declare.
10208 * libgomp_g.h: Update
10209
10210 PR libgomp/92854
10211 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
10212 New file.
10213 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
10214 Likewise.
10215 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
10216 Likewise.
10217 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
10218 Likewise.
10219 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
10220 Likewise.
10221 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
10222 Likewise.
10223
10224 2019-12-11 Thomas Schwinge <[email protected]>
10225 Julian Brown <[email protected]>
10226
10227 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
10228 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
10229
10230 2019-12-11 Tobias Burnus <[email protected]>
10231
10232 * omp_lib.h.in: Fix spelling of function declaration
10233 omp_get_cancell(l)ation.
10234 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
10235 Fix typos.
10236 * env.c: Fix comment typos.
10237 * oacc-host.c: Likewise.
10238 * ordered.c: Likewise.
10239 * task.c: Likewise.
10240 * team.c: Likewise.
10241 * config/gcn/task.c: Likewise.
10242 * config/gcn/team.c: Likewise.
10243 * config/nvptx/task.c: Likewise.
10244 * config/nvptx/team.c: Likewise.
10245 * plugin/plugin-gcn.c: Likewise.
10246 * testsuite/libgomp.fortran/jacobi.f: Likewise.
10247 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
10248 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
10249
10250 2019-12-11 Tobias Burnus <[email protected]>
10251
10252 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
10253 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
10254 unnecessary 'dg-additional-options "-w"'.
10255
10256 2019-12-09 Thomas Schwinge <[email protected]>
10257 Julian Brown <[email protected]>
10258
10259 PR libgomp/92116
10260 PR libgomp/92877
10261
10262 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
10263 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
10264 Adjust all users.
10265 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
10266 Remove XFAIL.
10267 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
10268 Likewise.
10269 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
10270
10271 2019-12-09 Thomas Schwinge <[email protected]>
10272
10273 PR libgomp/92503
10274 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
10275 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
10276 file.
10277 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
10278 Likewise.
10279 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
10280 Likewise.
10281 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
10282 Likewise.
10283 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
10284 Likewise.
10285 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
10286 Likewise.
10287 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
10288 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
10289 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
10290 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
10291 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
10292 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
10293 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
10294 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
10295 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
10296 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
10297
10298 PR libgomp/92840
10299 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
10300 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
10301 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
10302 New file.
10303 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
10304 Likewise.
10305 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
10306 Likewise.
10307 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
10308 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
10309
10310 PR libgomp/92511
10311 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
10312 this file...
10313 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
10314 this file...
10315 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
10316 file...
10317 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
10318 file...
10319 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
10320 ... with their content moved into, and extended in this new file.
10321 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
10322 New file.
10323 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
10324 Likewise.
10325 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
10326 Likewise.
10327 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
10328 Likewise.
10329
10330 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
10331
10332 PR libgomp/92854
10333 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
10334
10335 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
10336
10337 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
10338
10339 2019-12-09 Tobias Burnus <[email protected]>
10340
10341 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
10342 unique.
10343 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
10344 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
10345 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
10346 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
10347 Ditto.
10348 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
10349 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
10350
10351 2019-12-06 Kwok Cheung Yeung <[email protected]>
10352
10353 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
10354
10355 2019-12-06 Tobias Burnus <[email protected]>
10356 Kwok Cheung Yeung <[email protected]>
10357
10358 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
10359 if input it a NULL pointer.
10360 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
10361 diagnostic of NULL pointer.
10362 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
10363 * testsuite/libgomp.fortran/optional-map.f90: New.
10364 * testsuite/libgomp.fortran/use_device_addr-1.f90
10365 (test_dummy_opt_callee_1_absent): New.
10366 (test_dummy_opt_call_1): Call it.
10367 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
10368 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
10369 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
10370 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
10371 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
10372 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
10373 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
10374 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
10375 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
10376 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
10377 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
10378 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
10379 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
10380 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
10381 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
10382 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
10383
10384 2019-12-05 Tobias Burnus <[email protected]>
10385
10386 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
10387 expect dg-output of 'Error termination.' for GCN.
10388 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
10389 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
10390
10391 2019-12-04 Jakub Jelinek <[email protected]>
10392
10393 PR fortran/92756
10394 * testsuite/libgomp.fortran/teams1.f90: New test.
10395 * testsuite/libgomp.fortran/teams2.f90: New test.
10396
10397 2019-12-03 Frederik Harwath <[email protected]>
10398
10399 * oacc-init.c (acc_known_device_type): Add function.
10400 (unknown_device_type_error): Add function.
10401 (name_of_acc_device_t): Change to call unknown_device_type_error
10402 on unknown type.
10403 (resolve_device): Use acc_known_device_type.
10404 (acc_init): Fail if acc_device_t argument is not valid.
10405 (acc_shutdown): Likewise.
10406 (acc_get_num_devices): Likewise.
10407 (acc_set_device_type): Likewise.
10408 (acc_get_device_num): Likewise.
10409 (acc_set_device_num): Likewise.
10410 (acc_on_device): Add comment that argument validity is not checked.
10411
10412 2019-12-03 Andrew Stubbs <[email protected]>
10413
10414 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
10415 Recognize amdgcn.
10416 (check_effective_target_openacc_amdgcn_accel_present): New proc.
10417 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
10418 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
10419 * testsuite/libgomp.oacc-c/c.exp: Likewise.
10420 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10421
10422 2019-12-03 Szabolcs Nagy <[email protected]>
10423
10424 PR libgomp/91938
10425 * configure.tgt: Avoid IE tls on *-*-musl*.
10426
10427 2019-11-29 Tobias Burnus <[email protected]>
10428
10429 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
10430 adding a common-block test case.
10431
10432 2019-11-29 Jakub Jelinek <[email protected]>
10433
10434 PR c++/60228
10435 * testsuite/libgomp.c++/udr-20.C: New test.
10436 * testsuite/libgomp.c++/udr-21.C: New test.
10437
10438 2019-11-27 Thomas Schwinge <[email protected]>
10439
10440 * testsuite/lib/libgomp.exp
10441 (check_effective_target_offload_target_nvptx): New proc.
10442 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
10443 'dg-skip-if'.
10444 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
10445 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
10446 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
10447
10448 2019-11-21 Rainer Orth <[email protected]>
10449
10450 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
10451 * testsuite/libgomp.c/pr39591-2.c: Likewise.
10452 * testsuite/libgomp.c/pr39591-3.c: Likewise.
10453 * testsuite/libgomp.c/private-1.c: Likewise.
10454 * testsuite/libgomp.c/task-1.c: Likewise.
10455 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
10456
10457 2019-11-20 Julian Brown <[email protected]>
10458
10459 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
10460 aq->mutex here.
10461 (queue_push_launch): Lock aq->mutex before calling
10462 wait_for_queue_nonfull.
10463 (queue_push_callback): Likewise.
10464 (queue_push_asyncwait): Likewise.
10465 (queue_push_placeholder): Likewise.
10466
10467 2019-11-20 Julian Brown <[email protected]>
10468
10469 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
10470 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
10471 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
10472 return code.
10473
10474 2019-11-20 Julian Brown <[email protected]>
10475
10476 PR libgomp/92511
10477
10478 * oacc-mem.c (present_create_copy): Fix device pointer return value in
10479 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
10480 in non-present/create case.
10481 (delete_copyout): Change error condition to fail only on copies outside
10482 of mapped block. Adjust error message accordingly.
10483 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
10484 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
10485 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
10486 message.
10487 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
10488 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
10489 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
10490
10491 2019-11-20 Maciej W. Rozycki <[email protected]>
10492
10493 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
10494 libatomic in build-tree testing.
10495
10496 2019-11-18 Maciej W. Rozycki <[email protected]>
10497
10498 * testsuite/Makefile.in: Regenerate.
10499
10500 2019-11-15 Andrew Stubbs <[email protected]>
10501
10502 * testsuite/libgomp.c/target-print-1.c: New file.
10503 * testsuite/libgomp.fortran/target-print-1.f90: New file.
10504 * testsuite/libgomp.oacc-c/print-1.c: New file.
10505 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
10506
10507 2019-11-13 Andrew Stubbs <[email protected]>
10508 Kwok Cheung Yeung <[email protected]>
10509 Julian Brown <[email protected]>
10510 Tom de Vries <[email protected]>
10511
10512 * plugin/Makefrag.am: Add amdgcn plugin support.
10513 * plugin/configfrag.ac: Likewise.
10514 * plugin/plugin-gcn.c: New file.
10515 * configure: Regenerate.
10516 * Makefile.in: Regenerate.
10517 * testsuite/Makefile.in: Regenerate.
10518
10519 2019-11-13 Andrew Stubbs <[email protected]>
10520
10521 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
10522 and use team_malloc variants.
10523 (gomp_gcn_exit_kernel): Use team_free.
10524 * libgomp.h (TEAM_ARENA_SIZE): Define.
10525 (TEAM_ARENA_START): Define.
10526 (TEAM_ARENA_FREE): Define.
10527 (TEAM_ARENA_END): Define.
10528 (team_malloc): New function.
10529 (team_malloc_cleared): New function.
10530 (team_free): New function.
10531 * team.c (gomp_new_team): Initialize and use team_malloc.
10532 (free_team): Use team_free.
10533 (gomp_free_thread): Use team_free.
10534 (gomp_pause_host): Use team_free.
10535 * work.c (gomp_init_work_share): Use team_malloc.
10536 (gomp_fini_work_share): Use team_free.
10537
10538 2019-11-13 Andrew Stubbs <[email protected]>
10539 Kwok Cheung Yeung <[email protected]>
10540 Julian Brown <[email protected]>
10541 Tom de Vries <[email protected]>
10542
10543 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
10544 * Makefile.in: Regenerate.
10545 * config.h.in (PLUGIN_GCN): Add new undef.
10546 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
10547 * config/gcn/affinity-fmt.c: New file.
10548 * config/gcn/bar.c: New file.
10549 * config/gcn/bar.h: New file.
10550 * config/gcn/doacross.h: New file.
10551 * config/gcn/icv-device.c: New file.
10552 * config/gcn/oacc-target.c: New file.
10553 * config/gcn/simple-bar.h: New file.
10554 * config/gcn/target.c: New file.
10555 * config/gcn/task.c: New file.
10556 * config/gcn/team.c: New file.
10557 * config/gcn/time.c: New file.
10558 * configure.ac: Add amdgcn*-*-*.
10559 * configure: Regenerate.
10560 * configure.tgt: Add amdgcn*-*-*.
10561 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
10562 * libgomp.h (gcn_thrs): Add amdgcn variant.
10563 (set_gcn_thrs): Likewise.
10564 (gomp_thread): Likewise.
10565 * oacc-int.h (goacc_thread): Likewise.
10566 * oacc-target.c: New file.
10567 * openacc.f90 (acc_device_gcn): New parameter.
10568 * openacc.h (acc_device_t): Add acc_device_gcn.
10569 * team.c (gomp_free_pool_helper): Add amdgcn support.
10570
10571 2019-11-13 Andrew Stubbs <[email protected]>
10572 Julian Brown <[email protected]>
10573
10574 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
10575 parameter.
10576 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
10577 queue constructor.
10578 * oacc-host.c (host_openacc_async_construct): Add device parameter.
10579 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
10580 device parameter.
10581
10582 2019-11-13 Andrew Stubbs <[email protected]>
10583
10584 * configure.tgt (nvptx*-*-*): Add "accel" directory.
10585 * config/nvptx/libgomp-plugin.c: Move ...
10586 * config/accel/libgomp-plugin.c: ... to here.
10587 * config/nvptx/lock.c: Move ...
10588 * config/accel/lock.c: ... to here.
10589 * config/nvptx/mutex.c: Move ...
10590 * config/accel/mutex.c: ... to here.
10591 * config/nvptx/mutex.h: Move ...
10592 * config/accel/mutex.h: ... to here.
10593 * config/nvptx/oacc-async.c: Move ...
10594 * config/accel/oacc-async.c: ... to here.
10595 * config/nvptx/oacc-cuda.c: Move ...
10596 * config/accel/oacc-cuda.c: ... to here.
10597 * config/nvptx/oacc-host.c: Move ...
10598 * config/accel/oacc-host.c: ... to here.
10599 * config/nvptx/oacc-init.c: Move ...
10600 * config/accel/oacc-init.c: ... to here.
10601 * config/nvptx/oacc-mem.c: Move ...
10602 * config/accel/oacc-mem.c: ... to here.
10603 * config/nvptx/oacc-plugin.c: Move ...
10604 * config/accel/oacc-plugin.c: ... to here.
10605 * config/nvptx/omp-lock.h: Move ...
10606 * config/accel/omp-lock.h: ... to here.
10607 * config/nvptx/openacc.f90: Move ...
10608 * config/accel/openacc.f90: ... to here.
10609 * config/nvptx/pool.h: Move ...
10610 * config/accel/pool.h: ... to here.
10611 * config/nvptx/proc.c: Move ...
10612 * config/accel/proc.c: ... to here.
10613 * config/nvptx/ptrlock.c: Move ...
10614 * config/accel/ptrlock.c: ... to here.
10615 * config/nvptx/ptrlock.h: Move ...
10616 * config/accel/ptrlock.h: ... to here.
10617 * config/nvptx/sem.c: Move ...
10618 * config/accel/sem.c: ... to here.
10619 * config/nvptx/sem.h: Move ...
10620 * config/accel/sem.h: ... to here.
10621 * config/nvptx/thread-stacksize.h: Move ...
10622 * config/accel/thread-stacksize.h: ... to here.
10623
10624 2019-11-12 Maciej W. Rozycki <[email protected]>
10625 Tobias Burnus <[email protected]>
10626 Frederik Harwath <[email protected]>
10627 Thomas Schwinge <[email protected]>
10628
10629 libgomp/
10630 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
10631 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
10632 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
10633
10634 2019-11-11 Tobias Burnus <[email protected]>
10635 Kwok Cheung Yeung <[email protected]>
10636
10637 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
10638 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
10639
10640 2019-11-11 Thomas Schwinge <[email protected]>
10641
10642 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
10643
10644 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
10645 run'.
10646 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
10647 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
10648
10649 2019-11-06 Thomas Schwinge <[email protected]>
10650
10651 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
10652 Add expected warnings about missing reduction clauses.
10653 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
10654 Likewise.
10655 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
10656 Likewise.
10657 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
10658 Likewise.
10659
10660 2019-11-04 Tobias Burnus <[email protected]>
10661
10662 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
10663 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
10664 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
10665 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
10666 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
10667 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
10668
10669 2019-11-04 Tobias Burnus <[email protected]>
10670
10671 PR fortran/92305
10672 * testsuite/libgomp.fortran/allocatable2.f90: Use
10673 unique numbers with 'stop'.
10674 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
10675 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
10676 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
10677 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
10678 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
10679
10680 2019-11-01 Tobias Burnus <[email protected]>
10681
10682 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
10683 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
10684 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
10685 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
10686 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
10687 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
10688
10689 2019-10-30 Tobias Burnus <[email protected]>
10690
10691 * testsuite/libgomp.fortran/target9.f90: New.
10692
10693 2019-10-30 Tobias Burnus <[email protected]>
10694
10695 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
10696 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
10697 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
10698 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
10699 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
10700 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
10701 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
10702 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
10703 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
10704 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
10705 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
10706 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
10707 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
10708 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
10709 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
10710 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
10711 * testsuite/libgomp.fortran/associate1.f90: Ditto.
10712 * testsuite/libgomp.fortran/associate2.f90: Ditto.
10713 * testsuite/libgomp.fortran/associate3.f90: Ditto.
10714 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
10715 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
10716 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
10717 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
10718 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
10719 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
10720 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
10721 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
10722 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
10723 * testsuite/libgomp.fortran/character1.f90: Ditto.
10724 * testsuite/libgomp.fortran/character2.f90: Ditto.
10725 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
10726 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
10727 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
10728 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
10729 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
10730 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
10731 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
10732 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
10733 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
10734 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
10735 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
10736 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
10737 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
10738 * testsuite/libgomp.fortran/do1.f90: Ditto.
10739 * testsuite/libgomp.fortran/do2.f90: Ditto.
10740 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
10741 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
10742 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
10743 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
10744 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
10745 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
10746 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
10747 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
10748 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
10749 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
10750 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
10751 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
10752 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
10753 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
10754 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
10755 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
10756 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
10757 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
10758 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
10759 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
10760 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
10761 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
10762 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
10763 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
10764 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
10765 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
10766 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
10767 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
10768 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
10769 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
10770 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
10771 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
10772 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
10773 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
10774 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
10775 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
10776 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
10777 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
10778 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
10779 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
10780 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
10781 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
10782 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
10783 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
10784 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
10785 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
10786 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
10787 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
10788 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
10789 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
10790 * testsuite/libgomp.fortran/lib1.f90: Ditto.
10791 * testsuite/libgomp.fortran/lib4.f90: Ditto.
10792 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
10793 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
10794 * testsuite/libgomp.fortran/nested1.f90: Ditto.
10795 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
10796 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
10797 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
10798 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
10799 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
10800 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
10801 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
10802 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
10803 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
10804 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
10805 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
10806 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
10807 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
10808 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
10809 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
10810 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
10811 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
10812 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
10813 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
10814 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
10815 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
10816 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
10817 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
10818 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
10819 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
10820 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
10821 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
10822 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
10823 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
10824 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
10825 * testsuite/libgomp.fortran/pr28390.f: Ditto.
10826 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
10827 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
10828 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
10829 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
10830 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
10831 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
10832 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
10833 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
10834 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
10835 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
10836 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
10837 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
10838 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
10839 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
10840 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
10841 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
10842 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
10843 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
10844 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
10845 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
10846 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
10847 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
10848 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
10849 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
10850 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
10851 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
10852 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
10853 * testsuite/libgomp.fortran/reference1.f90: Ditto.
10854 * testsuite/libgomp.fortran/reference2.f90: Ditto.
10855 * testsuite/libgomp.fortran/retval1.f90: Ditto.
10856 * testsuite/libgomp.fortran/retval2.f90: Ditto.
10857 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
10858 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
10859 * testsuite/libgomp.fortran/simd1.f90: Ditto.
10860 * testsuite/libgomp.fortran/simd2.f90: Ditto.
10861 * testsuite/libgomp.fortran/simd3.f90: Ditto.
10862 * testsuite/libgomp.fortran/simd4.f90: Ditto.
10863 * testsuite/libgomp.fortran/simd5.f90: Ditto.
10864 * testsuite/libgomp.fortran/simd6.f90: Ditto.
10865 * testsuite/libgomp.fortran/simd7.f90: Ditto.
10866 * testsuite/libgomp.fortran/stack.f90: Ditto.
10867 * testsuite/libgomp.fortran/strassen.f90: Ditto.
10868 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
10869 * testsuite/libgomp.fortran/tabs2.f: Ditto.
10870 * testsuite/libgomp.fortran/target1.f90: Ditto.
10871 * testsuite/libgomp.fortran/target2.f90: Ditto.
10872 * testsuite/libgomp.fortran/target3.f90: Ditto.
10873 * testsuite/libgomp.fortran/target4.f90: Ditto.
10874 * testsuite/libgomp.fortran/target5.f90: Ditto.
10875 * testsuite/libgomp.fortran/target6.f90: Ditto.
10876 * testsuite/libgomp.fortran/target7.f90: Ditto.
10877 * testsuite/libgomp.fortran/target8.f90: Ditto.
10878 * testsuite/libgomp.fortran/task1.f90: Ditto.
10879 * testsuite/libgomp.fortran/task2.f90: Ditto.
10880 * testsuite/libgomp.fortran/task3.f90: Ditto.
10881 * testsuite/libgomp.fortran/task4.f90: Ditto.
10882 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
10883 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
10884 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
10885 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
10886 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
10887 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
10888 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
10889 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
10890 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
10891 * testsuite/libgomp.fortran/udr1.f90: Ditto.
10892 * testsuite/libgomp.fortran/udr10.f90: Ditto.
10893 * testsuite/libgomp.fortran/udr11.f90: Ditto.
10894 * testsuite/libgomp.fortran/udr12.f90: Ditto.
10895 * testsuite/libgomp.fortran/udr13.f90: Ditto.
10896 * testsuite/libgomp.fortran/udr14.f90: Ditto.
10897 * testsuite/libgomp.fortran/udr15.f90: Ditto.
10898 * testsuite/libgomp.fortran/udr2.f90: Ditto.
10899 * testsuite/libgomp.fortran/udr3.f90: Ditto.
10900 * testsuite/libgomp.fortran/udr4.f90: Ditto.
10901 * testsuite/libgomp.fortran/udr5.f90: Ditto.
10902 * testsuite/libgomp.fortran/udr6.f90: Ditto.
10903 * testsuite/libgomp.fortran/udr7.f90: Ditto.
10904 * testsuite/libgomp.fortran/udr8.f90: Ditto.
10905 * testsuite/libgomp.fortran/udr9.f90: Ditto.
10906 * testsuite/libgomp.fortran/vla1.f90: Ditto.
10907 * testsuite/libgomp.fortran/vla2.f90: Ditto.
10908 * testsuite/libgomp.fortran/vla3.f90: Ditto.
10909 * testsuite/libgomp.fortran/vla4.f90: Ditto.
10910 * testsuite/libgomp.fortran/vla5.f90: Ditto.
10911 * testsuite/libgomp.fortran/vla6.f90: Ditto.
10912 * testsuite/libgomp.fortran/vla7.f90: Ditto.
10913 * testsuite/libgomp.fortran/vla8.f90: Ditto.
10914 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
10915 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
10916
10917 2019-10-30 Tobias Burnus <[email protected]>
10918
10919 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
10920 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
10921 Ditto; add 'dg-do run' for torture testing.
10922 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
10923 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
10924 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
10925 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
10926 * testsuite/libgomp.fortran/pr28390.f: Ditto.
10927 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
10928 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
10929 * testsuite/libgomp.fortran/task2.f90: Ditto.
10930 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
10931 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
10932 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
10933 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
10934 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
10935 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
10936
10937 2019-10-28 Tobias Burnus <[email protected]>
10938
10939 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
10940 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
10941 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
10942 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
10943 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
10944 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
10945 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
10946 Use 'stop' not abort().
10947 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
10948 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
10949 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
10950 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
10951 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
10952 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
10953 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
10954 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
10955 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
10956 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
10957 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
10958 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
10959 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
10960 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
10961 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
10962 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
10963 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
10964 Ditto.
10965 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
10966 Ditto.
10967 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
10968 Ditto.
10969 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
10970 Ditto.
10971 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
10972 Ditto.
10973 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
10974 Ditto.
10975 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
10976 Ditto.
10977 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
10978 Ditto.
10979 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
10980 Ditto.
10981 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
10982 Ditto.
10983 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
10984 Ditto.
10985 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
10986 Ditto.
10987 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
10988 Ditto.
10989 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
10990 Ditto.
10991 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
10992 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
10993 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
10994 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
10995 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
10996 Likewise and also add 'dg-do run'.
10997 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
10998 Ditto.
10999
11000 2019-10-25 Cesar Philippidis <[email protected]>
11001 Tobias Burnus <[email protected]>
11002
11003 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
11004 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
11005 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
11006
11007 2019-10-14 Jakub Jelinek <[email protected]>
11008
11009 PR libgomp/92081
11010 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
11011 than 0.
11012
11013 2019-10-11 Tobias Burnus <[email protected]>
11014
11015 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
11016 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
11017
11018 2019-10-09 Thomas Schwinge <[email protected]>
11019
11020 PR middle-end/92036
11021 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
11022 file.
11023
11024 2019-10-09 Tobias Burnus <[email protected]>
11025
11026 PR testsuite/91884
11027 * testsuite/libgomp.fortran/fortran.exp: Conditionally
11028 add -lquadmath.
11029 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
11030
11031 2019-10-09 Jakub Jelinek <[email protected]>
11032
11033 PR libgomp/92028
11034 * target.c (gomp_map_vars_internal): Readd the previous
11035 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
11036 though do that just in the !not_found_cnt case.
11037
11038 2019-10-08 Tobias Burnus <[email protected]>
11039
11040 * gfortran.dg/gomp/target-simd.f90: New.
11041
11042 2019-10-02 Julian Brown <[email protected]>
11043 Cesar Philippidis <[email protected]>
11044
11045 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
11046 * target.c (FIELD_TGT_EMPTY): Define.
11047 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
11048 as switch instead of list of ifs.
11049 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
11050
11051 2019-10-02 Andreas Tobler <[email protected]>
11052
11053 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
11054 include. Replace alloca () with __builtin_alloca ().
11055 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
11056
11057 2019-10-01 Jakub Jelinek <[email protected]>
11058
11059 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
11060 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
11061 * oacc-parallel.c: Don't include "libgomp_g.h".
11062 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
11063 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
11064 * aclocal.m4: Regenerated.
11065 * config.h.in: Regenerated.
11066 * configure: Regenerated.
11067 * Makefile.in: Regenerated.
11068
11069 2019-09-30 Kwok Cheung Yeung <[email protected]>
11070
11071 * libgomp_g.h: Include stdint.h instead of gstdint.h.
11072
11073 2019-09-27 Maciej W. Rozycki <[email protected]>
11074
11075 * configure: Regenerate.
11076
11077 2019-09-13 Tobias Burnus <[email protected]>
11078
11079 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
11080 string is initialized.
11081
11082 2019-09-06 Florian Weimer <[email protected]>
11083
11084 * configure: Regenerate.
11085
11086 2019-09-03 Chung-Lin Tang <[email protected]>
11087
11088 PR other/79543
11089 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
11090 scanning to conform to the GNU Coding Standards.
11091 * configure: Regenerate.
11092
11093 2019-08-28 Jakub Jelinek <[email protected]>
11094
11095 PR libgomp/91530
11096 * testsuite/libgomp.c/scan-21.c: New test.
11097 * testsuite/libgomp.c/scan-22.c: New test.
11098
11099 2019-08-27 Jakub Jelinek <[email protected]>
11100
11101 PR libgomp/91530
11102 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
11103 targets.
11104 * testsuite/libgomp.c/scan-12.c: Likewise.
11105 * testsuite/libgomp.c/scan-13.c: Likewise.
11106 * testsuite/libgomp.c/scan-14.c: Likewise.
11107 * testsuite/libgomp.c/scan-15.c: Likewise.
11108 * testsuite/libgomp.c/scan-16.c: Likewise.
11109 * testsuite/libgomp.c/scan-17.c: Likewise.
11110 * testsuite/libgomp.c/scan-18.c: Likewise.
11111 * testsuite/libgomp.c/scan-19.c: Likewise.
11112 * testsuite/libgomp.c/scan-20.c: Likewise.
11113 * testsuite/libgomp.c++/scan-9.C: Likewise.
11114 * testsuite/libgomp.c++/scan-10.C: Likewise.
11115 * testsuite/libgomp.c++/scan-11.C: Likewise.
11116 * testsuite/libgomp.c++/scan-12.C: Likewise.
11117 * testsuite/libgomp.c++/scan-14.C: Likewise.
11118 * testsuite/libgomp.c++/scan-15.C: Likewise.
11119 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
11120 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
11121 * testsuite/libgomp.c++/scan-16.C: Likewise.
11122
11123 2019-08-17 Thomas Koenig <[email protected]>
11124
11125 PR fortran/91473
11126 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
11127 -std=legacy so invalid code in the test case is accepted.
11128
11129 2019-08-12 Thomas Koenig <[email protected]>
11130
11131 PR fortran/91422
11132 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
11133 dimension.
11134
11135 2019-08-08 Jakub Jelinek <[email protected]>
11136
11137 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
11138 perform the lookup in the first loop only if !not_found_cnt, otherwise
11139 perform lookups for it in the second loop guarded with
11140 if (not_found_cnt || has_firstprivate).
11141 * testsuite/libgomp.c/target-37.c: New test.
11142 * testsuite/libgomp.c++/target-22.C: New test.
11143
11144 2019-08-07 Jakub Jelinek <[email protected]>
11145
11146 * testsuite/libgomp.c/target-18.c (struct S): New type.
11147 (foo): Use use_device_addr clause instead of use_device_ptr clause
11148 where required by OpenMP 5.0, add further tests for both use_device_ptr
11149 and use_device_addr clauses.
11150 * testsuite/libgomp.c++/target-9.C (struct S): New type.
11151 (foo): Use use_device_addr clause instead of use_device_ptr clause
11152 where required by OpenMP 5.0, add further tests for both use_device_ptr
11153 and use_device_addr clauses. Add t and u arguments.
11154 (main): Adjust caller.
11155
11156 2019-08-06 Jakub Jelinek <[email protected]>
11157
11158 * testsuite/libgomp.c++/loop-13.C: New test.
11159 * testsuite/libgomp.c++/loop-14.C: New test.
11160 * testsuite/libgomp.c++/loop-15.C: New test.
11161
11162 2019-07-31 Jakub Jelinek <[email protected]>
11163
11164 PR middle-end/91301
11165 * testsuite/libgomp.c++/for-27.C: New test.
11166
11167 2019-07-23 Steven G. Kargl <[email protected]>
11168
11169 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
11170 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
11171
11172 2019-07-20 Jakub Jelinek <[email protected]>
11173
11174 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
11175
11176 2019-07-08 Jakub Jelinek <[email protected]>
11177
11178 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
11179 * testsuite/libgomp.c++/scan-16.C: Likewise.
11180
11181 2019-07-06 Jakub Jelinek <[email protected]>
11182
11183 * testsuite/libgomp.c/scan-19.c: New test.
11184 * testsuite/libgomp.c/scan-20.c: New test.
11185
11186 * testsuite/libgomp.c/scan-11.c: New test.
11187 * testsuite/libgomp.c/scan-12.c: New test.
11188 * testsuite/libgomp.c/scan-13.c: New test.
11189 * testsuite/libgomp.c/scan-14.c: New test.
11190 * testsuite/libgomp.c/scan-15.c: New test.
11191 * testsuite/libgomp.c/scan-16.c: New test.
11192 * testsuite/libgomp.c/scan-17.c: New test.
11193 * testsuite/libgomp.c/scan-18.c: New test.
11194 * testsuite/libgomp.c++/scan-9.C: New test.
11195 * testsuite/libgomp.c++/scan-10.C: New test.
11196 * testsuite/libgomp.c++/scan-11.C: New test.
11197 * testsuite/libgomp.c++/scan-12.C: New test.
11198 * testsuite/libgomp.c++/scan-13.C: New test.
11199 * testsuite/libgomp.c++/scan-14.C: New test.
11200 * testsuite/libgomp.c++/scan-15.C: New test.
11201 * testsuite/libgomp.c++/scan-16.C: New test.
11202
11203 2019-07-04 Jakub Jelinek <[email protected]>
11204
11205 * testsuite/libgomp.c/scan-9.c: New test.
11206 * testsuite/libgomp.c/scan-10.c: New test.
11207
11208 2019-07-03 Jakub Jelinek <[email protected]>
11209
11210 * testsuite/libgomp.c++/scan-1.C: New test.
11211 * testsuite/libgomp.c++/scan-2.C: New test.
11212 * testsuite/libgomp.c++/scan-3.C: New test.
11213 * testsuite/libgomp.c++/scan-4.C: New test.
11214 * testsuite/libgomp.c++/scan-5.C: New test.
11215 * testsuite/libgomp.c++/scan-6.C: New test.
11216 * testsuite/libgomp.c++/scan-7.C: New test.
11217 * testsuite/libgomp.c++/scan-8.C: New test.
11218 * testsuite/libgomp.c/scan-1.c: New test.
11219 * testsuite/libgomp.c/scan-2.c: New test.
11220 * testsuite/libgomp.c/scan-3.c: New test.
11221 * testsuite/libgomp.c/scan-4.c: New test.
11222 * testsuite/libgomp.c/scan-5.c: New test.
11223 * testsuite/libgomp.c/scan-6.c: New test.
11224 * testsuite/libgomp.c/scan-7.c: New test.
11225 * testsuite/libgomp.c/scan-8.c: New test.
11226
11227 2019-06-18 Thomas Schwinge <[email protected]>
11228
11229 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
11230 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
11231 Likewise.
11232
11233 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
11234 check.
11235
11236 2019-06-18 Cesar Philippidis <[email protected]>
11237
11238 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
11239 file.
11240
11241 2019-06-18 Thomas Schwinge <[email protected]>
11242
11243 PR fortran/90743
11244 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
11245 case.
11246 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
11247 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
11248 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
11249 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
11250
11251 PR testsuite/90861
11252 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
11253
11254 PR middle-end/90862
11255 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
11256
11257 2019-06-16 Tom de Vries <[email protected]>
11258
11259 PR tree-optimization/89376
11260 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
11261
11262 2019-06-15 Tom de Vries <[email protected]>
11263
11264 PR tree-optimization/89713
11265 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
11266 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
11267
11268 2019-06-15 Jakub Jelinek <[email protected]>
11269
11270 PR middle-end/90779
11271 * testsuite/libgomp.c/pr90779.c: New test.
11272 * testsuite/libgomp.fortran/pr90779.f90: New test.
11273
11274 2019-06-15 Tom de Vries <[email protected]>
11275
11276 PR tree-optimization/90009
11277 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
11278
11279 2019-06-13 Feng Xue <[email protected]>
11280
11281 PR tree-optimization/89713
11282 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
11283
11284 2019-06-11 Jakub Jelinek <[email protected]>
11285
11286 PR target/90811
11287 * testsuite/libgomp.c/pr90811.c: New test.
11288
11289 2019-06-05 Jakub Jelinek <[email protected]>
11290
11291 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
11292 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
11293
11294 2019-06-04 Jakub Jelinek <[email protected]>
11295
11296 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
11297 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
11298 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
11299 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
11300
11301 2019-05-30 Rainer Orth <[email protected]>
11302
11303 * configure.ac: Call AX_COUNT_CPUS.
11304 Substitute CPU_COUNT.
11305 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
11306 count fallback.
11307 * aclocal.m4: Regenerate.
11308 * configure: Regenerate.
11309 * Makefile.in, testsuite/Makefile.in: Regenerate.
11310
11311 2019-05-29 Jakub Jelinek <[email protected]>
11312
11313 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
11314 to ...
11315 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
11316 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
11317 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
11318
11319 2019-05-27 Jakub Jelinek <[email protected]>
11320
11321 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
11322
11323 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
11324
11325 PR libgomp/90641
11326 * work.c (gomp_init_work_share): Instead of aligning final ordered
11327 value to multiples of long long alignment, align to that the
11328 first part (ordered team ids) and if inline_ordered_team_ids
11329 is not on a long long alignment boundary within the structure,
11330 use __alignof__ (long long) - 1 pad size always.
11331 * loop.c (GOMP_loop_start): Fix *mem computation if
11332 inline_ordered_team_ids is not aligned on long long alignment boundary
11333 within the structure.
11334 * loop-ull.c (GOMP_loop_ull_start): Likewise.
11335 * sections.c (GOMP_sections2_start): Likewise.
11336
11337 2019-05-24 Jakub Jelinek <[email protected]>
11338
11339 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
11340 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
11341
11342 PR libgomp/90585
11343 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
11344 HAVE_INTTYPES_H is defined.
11345 (print_uint64_t): New typedef.
11346 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
11347 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
11348 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
11349 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
11350 before casting to void *.
11351 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
11352 * oacc-mem.c: Don't include config.h nor stdint.h.
11353 * target.c: Don't include config.h.
11354 * oacc-cuda.c: Likewise.
11355 * oacc-host.c: Don't include stdint.h.
11356
11357 2019-05-20 Jakub Jelinek <[email protected]>
11358
11359 PR libgomp/90527
11360 * alloc.c (_GNU_SOURCE): Define.
11361
11362 2019-05-17 Thomas Schwinge <[email protected]>
11363
11364 * acc_prof.h: New file.
11365 * oacc-profiling.c: Likewise.
11366 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
11367 Add these, respectively.
11368 * Makefile.in: Regenerate.
11369 * env.c (initialize_env): Call goacc_profiling_initialize.
11370 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
11371 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
11372 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
11373 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
11374 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
11375 acc_prof_register, acc_prof_unregister, and acc_register_library.
11376 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
11377 GOMP_PLUGIN_goacc_thread.
11378 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
11379 prof_callbacks_enabled members.
11380 (goacc_prof_enabled, goacc_profiling_initialize)
11381 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
11382 (goacc_profiling_dispatch): Declare.
11383 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
11384 (GOACC_PROFILING_SETUP_P): Define.
11385 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
11386 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
11387 OpenACC Profiling Interface.
11388 * oacc-cuda.c (acc_get_current_cuda_device)
11389 (acc_get_current_cuda_context, acc_get_cuda_stream)
11390 (acc_set_cuda_stream): Likewise.
11391 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
11392 (acc_init, acc_set_device_type, acc_get_device_type)
11393 (acc_get_device_num, goacc_lazy_initialize): Likewise.
11394 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
11395 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
11396 (acc_unmap_data, present_create_copy, delete_copyout)
11397 (update_dev_host): Likewise.
11398 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
11399 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
11400 Likewise.
11401 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
11402 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
11403 Likewise.
11404 * libgomp.texi: Update.
11405 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
11406 file.
11407 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
11408 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
11409 Likewise.
11410 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
11411 Likewise.
11412 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
11413 Likewise.
11414 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
11415 Likewise.
11416
11417 2019-05-13 Chung-Lin Tang <[email protected]>
11418
11419 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
11420 (struct goacc_asyncqueue_list): Likewise.
11421 (goacc_aq): Likewise.
11422 (goacc_aq_list): Likewise.
11423 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
11424 (GOMP_OFFLOAD_openacc_async_test): Remove.
11425 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
11426 (GOMP_OFFLOAD_openacc_async_wait): Remove.
11427 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
11428 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
11429 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
11430 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
11431 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
11432 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
11433 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
11434 (GOMP_OFFLOAD_openacc_async_exec): Declare.
11435 (GOMP_OFFLOAD_openacc_async_construct): Declare.
11436 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
11437 (GOMP_OFFLOAD_openacc_async_test): Declare.
11438 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
11439 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
11440 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
11441 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
11442 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
11443
11444 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
11445 (gomp_acc_insert_pointer): Adjust declaration.
11446 (gomp_copy_host2dev): New declaration.
11447 (gomp_copy_dev2host): Likewise.
11448 (gomp_map_vars_async): Likewise.
11449 (gomp_unmap_tgt): Likewise.
11450 (gomp_unmap_vars_async): Likewise.
11451 (gomp_fini_device): Likewise.
11452
11453 * oacc-async.c (get_goacc_thread): New function.
11454 (get_goacc_thread_device): New function.
11455 (lookup_goacc_asyncqueue): New function.
11456 (get_goacc_asyncqueue): New function.
11457 (acc_async_test): Adjust code to use new async design.
11458 (acc_async_test_all): Likewise.
11459 (acc_wait): Likewise.
11460 (acc_wait_async): Likewise.
11461 (acc_wait_all): Likewise.
11462 (acc_wait_all_async): Likewise.
11463 (goacc_async_free): New function.
11464 (goacc_init_asyncqueues): Likewise.
11465 (goacc_fini_asyncqueues): Likewise.
11466 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
11467 design.
11468 (acc_set_cuda_stream): Likewise.
11469 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
11470 (host_openacc_register_async_cleanup): Remove.
11471 (host_openacc_async_exec): New function.
11472 (host_openacc_async_test): Adjust parameters.
11473 (host_openacc_async_test_all): Remove.
11474 (host_openacc_async_wait): Remove.
11475 (host_openacc_async_wait_async): Remove.
11476 (host_openacc_async_wait_all): Remove.
11477 (host_openacc_async_wait_all_async): Remove.
11478 (host_openacc_async_set_async): Remove.
11479 (host_openacc_async_synchronize): New function.
11480 (host_openacc_async_serialize): New function.
11481 (host_openacc_async_host2dev): New function.
11482 (host_openacc_async_dev2host): New function.
11483 (host_openacc_async_queue_callback): New function.
11484 (host_openacc_async_construct): New function.
11485 (host_openacc_async_destruct): New function.
11486 (struct gomp_device_descr host_dispatch): Remove initialization of old
11487 interface, add initialization of new async sub-struct.
11488 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
11489 (goacc_attach_host_thread_to_device): Remove old async code usage.
11490 * oacc-int.h (goacc_init_asyncqueues): New declaration.
11491 (goacc_fini_asyncqueues): Likewise.
11492 (goacc_async_copyout_unmap_vars): Likewise.
11493 (goacc_async_free): Likewise.
11494 (get_goacc_asyncqueue): Likewise.
11495 (lookup_goacc_asyncqueue): Likewise.
11496 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
11497 design.
11498 (present_create_copy): Adjust code to use new async design.
11499 (delete_copyout): Likewise.
11500 (update_dev_host): Likewise.
11501 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
11502 async design.
11503 (gomp_acc_remove_pointer): Adjust code to use new async design.
11504 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
11505 design.
11506 (GOACC_enter_exit_data): Likewise.
11507 (goacc_wait): Likewise.
11508 (GOACC_update): Likewise.
11509 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
11510 when called, warn as obsolete in comment.
11511 * target.c (goacc_device_copy_async): New function.
11512 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
11513 add goacc_device_copy_async case.
11514 (gomp_copy_dev2host): Likewise.
11515 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
11516 (gomp_map_pointer): Likewise.
11517 (gomp_map_fields_existing): Likewise.
11518 (gomp_map_vars_internal): New always_inline function, renamed from
11519 gomp_map_vars.
11520 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
11521 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
11522 passing goacc_asyncqueue argument.
11523 (gomp_unmap_tgt): Remove static, add attribute_hidden.
11524 (gomp_unref_tgt): New function.
11525 (gomp_unmap_vars_internal): New always_inline function, renamed from
11526 gomp_unmap_vars.
11527 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
11528 (gomp_unmap_vars_async): Implement by calling
11529 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
11530 (gomp_fini_device): New function.
11531 (gomp_exit_data): Adjust gomp_copy_dev2host call.
11532 (gomp_load_plugin_for_device): Remove old interface, adjust to load
11533 new async interface.
11534 (gomp_target_fini): Adjust code to call gomp_fini_device.
11535
11536 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
11537 (struct ptx_stream): Remove.
11538 (struct nvptx_thread): Remove current_stream field.
11539 (cuda_map_create): Remove.
11540 (cuda_map_destroy): Remove.
11541 (map_init): Remove.
11542 (map_fini): Remove.
11543 (map_pop): Remove.
11544 (map_push): Remove.
11545 (struct goacc_asyncqueue): Define.
11546 (struct nvptx_callback): Define.
11547 (struct ptx_free_block): Define.
11548 (struct ptx_device): Remove null_stream, active_streams, async_streams,
11549 stream_lock, and next fields.
11550 (enum ptx_event_type): Remove.
11551 (struct ptx_event): Remove.
11552 (ptx_event_lock): Remove.
11553 (ptx_events): Remove.
11554 (init_streams_for_device): Remove.
11555 (fini_streams_for_device): Remove.
11556 (select_stream_for_async): Remove.
11557 (nvptx_init): Remove ptx_events and ptx_event_lock references.
11558 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
11559 case.
11560 (nvptx_open_device): Add free_blocks initialization, remove
11561 init_streams_for_device call.
11562 (nvptx_close_device): Remove fini_streams_for_device call, add
11563 free_blocks destruct code.
11564 (event_gc): Remove.
11565 (event_add): Remove.
11566 (nvptx_exec): Adjust parameters and code.
11567 (nvptx_free): Likewise.
11568 (nvptx_host2dev): Remove.
11569 (nvptx_dev2host): Remove.
11570 (nvptx_set_async): Remove.
11571 (nvptx_async_test): Remove.
11572 (nvptx_async_test_all): Remove.
11573 (nvptx_wait): Remove.
11574 (nvptx_wait_async): Remove.
11575 (nvptx_wait_all): Remove.
11576 (nvptx_wait_all_async): Remove.
11577 (nvptx_get_cuda_stream): Remove.
11578 (nvptx_set_cuda_stream): Remove.
11579 (GOMP_OFFLOAD_alloc): Adjust code.
11580 (GOMP_OFFLOAD_free): Likewise.
11581 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
11582 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
11583 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
11584 (GOMP_OFFLOAD_openacc_async_wait): Remove.
11585 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
11586 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
11587 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
11588 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
11589 (cuda_free_argmem): New function.
11590 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
11591 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
11592 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
11593 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
11594 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
11595 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
11596 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
11597 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
11598 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
11599 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
11600 (cuda_callback_wrapper): New function.
11601 (cuda_memcpy_sanity_check): New function.
11602 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
11603 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
11604 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
11605 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
11606
11607 2019-05-07 Thomas Schwinge <[email protected]>
11608
11609 PR target/87835
11610 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
11611
11612 2019-05-06 Thomas Schwinge <[email protected]>
11613
11614 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
11615
11616 2019-03-27 Kevin Buettner <[email protected]>
11617
11618 * team.c (gomp_team_start): Initialize pool->threads[0].
11619
11620 2019-02-22 Thomas Schwinge <[email protected]>
11621
11622 * testsuite/libgomp.oacc-c++/c++.exp: Specify
11623 "-foffload=$offload_target".
11624 * testsuite/libgomp.oacc-c/c.exp: Likewise.
11625 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
11626 * testsuite/lib/libgomp.exp
11627 (check_effective_target_openacc_nvidia_accel_configured): Remove,
11628 as (conceptually) merged into
11629 check_effective_target_openacc_nvidia_accel_selected. Adjust all
11630 users.
11631
11632 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
11633 * testsuite/libgomp-test-support.exp.in: Adjust.
11634 * testsuite/lib/libgomp.exp: Likewise. Don't populate
11635 openacc_device_types_s.
11636 (offload_target_to_openacc_device_type): New proc.
11637 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
11638 * testsuite/libgomp.oacc-c/c.exp: Likewise.
11639 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
11640 * Makefile.in: Regenerate.
11641 * configure: Likewise.
11642 * testsuite/Makefile.in: Likewise.
11643
11644 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
11645 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
11646 instead of OFFLOAD_TARGETS.
11647 * target.c (gomp_target_init): Adjust.
11648 * testsuite/libgomp-test-support.exp.in: Likewise.
11649 * testsuite/lib/libgomp.exp: Likewise. Populate
11650 openacc_device_types_s instead of offload_targets_s_openacc.
11651 (check_effective_target_openacc_nvidia_accel_selected)
11652 (check_effective_target_openacc_host_selected): Adjust.
11653 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
11654 * testsuite/libgomp.oacc-c/c.exp: Likewise.
11655 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
11656 * Makefile.in: Regenerate.
11657 * config.h.in: Likewise.
11658 * configure: Likewise.
11659 * testsuite/Makefile.in: Likewise.
11660
11661 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
11662 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
11663 "offloading: supported, but hardware not accessible".
11664 * testsuite/libgomp.oacc-c/c.exp: Likewise.
11665 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
11666
11667 2019-02-19 Chung-Lin Tang <[email protected]>
11668
11669 PR c/87924
11670 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
11671 goacc_wait().
11672 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
11673 and related adjustment.
11674
11675 2019-01-30 Jakub Jelinek <[email protected]>
11676
11677 PR c++/88988
11678 * testsuite/libgomp.c++/pr88988.C: New test.
11679
11680 2019-01-28 Jakub Jelinek <[email protected]>
11681
11682 PR middle-end/89002
11683 * testsuite/libgomp.c/pr89002.c: New test.
11684
11685 2019-01-28 Richard Biener <[email protected]>
11686
11687 PR testsuite/89064
11688 PR tree-optimization/86865
11689 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
11690
11691 2019-01-24 Tom de Vries <[email protected]>
11692
11693 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
11694 once instantiated_devices drops to 0.
11695
11696 2019-01-23 Tom de Vries <[email protected]>
11697
11698 PR target/PR88946
11699 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
11700 cuMemFree.
11701 (nvptx_exec): Don't call map_push if mapnum == 0.
11702 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
11703
11704 2019-01-23 Tom de Vries <[email protected]>
11705
11706 PR target/88941
11707 PR target/88939
11708 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
11709 (map_fini): Remove "assert (!s->map->active)".
11710 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
11711
11712 2019-01-23 Tom de Vries <[email protected]>
11713
11714 PR target/87835
11715 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
11716 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
11717
11718 2019-01-15 Tom de Vries <[email protected]>
11719
11720 PR target/80547
11721 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
11722 New test.
11723
11724 2019-01-12 Tom de Vries <[email protected]>
11725
11726 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
11727 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
11728 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
11729 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
11730
11731 2019-01-12 Tom de Vries <[email protected]>
11732
11733 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
11734
11735 2019-01-12 Tom de Vries <[email protected]>
11736
11737 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
11738 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
11739 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
11740
11741 2019-01-12 Tom de Vries <[email protected]>
11742
11743 PR target/85486
11744 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
11745 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
11746
11747 2019-01-12 Tom de Vries <[email protected]>
11748
11749 PR target/85381
11750 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
11751 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
11752
11753 2019-01-12 Tom de Vries <[email protected]>
11754
11755 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
11756 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
11757 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
11758
11759 2019-01-12 Tom de Vries <[email protected]>
11760
11761 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
11762 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
11763 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
11764
11765 2019-01-12 Tom de Vries <[email protected]>
11766
11767 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
11768 resources diagnostic.
11769
11770 2019-01-12 Tom de Vries <[email protected]>
11771
11772 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
11773 vector length to be 128.
11774 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
11775 length 2097152 to be reduced to 1024 instead of 32.
11776
11777 2019-01-11 Thomas Schwinge <[email protected]>
11778 James Norris <[email protected]>
11779
11780 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
11781 Library Routines", and "Environment Variables".
11782
11783 2019-01-11 Tom de Vries <[email protected]>
11784
11785 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
11786 num_workers 16.
11787
11788 2019-01-11 Tom de Vries <[email protected]>
11789
11790 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
11791 -foffload=-w.
11792 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
11793 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
11794 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
11795 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
11796
11797 2019-01-11 Tom de Vries <[email protected]>
11798
11799 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
11800 test.
11801
11802 2019-01-10 Nathan Sidwell <[email protected]>
11803 Julian Brown <[email protected]>
11804
11805 PR lto/71959
11806 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
11807 * testsuite/libgomp.oacc-c++/pr71959.C: New.
11808
11809 2019-01-09 Sebastian Huber <[email protected]>
11810
11811 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
11812 and paste code.
11813
11814 2019-01-09 Sebastian Huber <[email protected]>
11815
11816 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
11817 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
11818 write.
11819
11820 2019-01-09 Tom de Vries <[email protected]>
11821
11822 PR target/88756
11823 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
11824 #define instead of "const int".
11825 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
11826 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
11827 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
11828 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
11829
11830 2019-01-09 Tom de Vries <[email protected]>
11831
11832 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
11833 one worker.
11834
11835 2019-01-07 Tom de Vries <[email protected]>
11836
11837 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
11838 GOMP_OPENACC_DIM argument.
11839
11840 2019-01-03 Tom de Vries <[email protected]>
11841
11842 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
11843 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
11844
11845 2019-01-01 Jakub Jelinek <[email protected]>
11846
11847 Update copyright years.
11848
11849 2019-01-01 Jakub Jelinek <[email protected]>
11850
11851 * libgomp.texi: Bump @copying's copyright year.
11852
11853 2018-12-28 Thomas Schwinge <[email protected]>
11854
11855 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
11856 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
11857 (GOACC_declare): Redefine the "device" argument to "flags".
11858
11859 2018-12-28 Thomas Schwinge <[email protected]>
11860 Cesar Philippidis <[email protected]>
11861
11862 * target.c (struct gomp_coalesce_chunk): New structure.
11863 (struct gomp_coalesce_buf): Update the chunks member to use that
11864 type. Adjust all users.
11865
11866 2018-12-19 Tom de Vries <[email protected]>
11867
11868 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
11869 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
11870 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
11871
11872 2018-12-19 Tom de Vries <[email protected]>
11873
11874 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
11875 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
11876 gcc/testsuite/gcc.dg/goacc.
11877 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
11878
11879 2018-12-14 Thomas Schwinge <[email protected]>
11880 Chung-Lin Tang <[email protected]>
11881
11882 * oacc-mem.c (acc_present_or_create): Remove definition and change
11883 to alias of acc_create.
11884 (acc_present_or_copyin): Remove definition and change to alias of
11885 acc_copyin.
11886 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
11887 of acc_present_or_create.
11888 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
11889 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11890 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
11891 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
11892 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
11893 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
11894 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
11895 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11896 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
11897 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11898 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
11899 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
11900 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
11901 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
11902 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
11903 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11904
11905 2018-12-14 Thomas Schwinge <[email protected]>
11906
11907 PR libgomp/88495
11908 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
11909 "identical parameters".
11910 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
11911 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
11912
11913 PR libgomp/88484
11914 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
11915 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
11916
11917 PR libgomp/88407
11918 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
11919 (nvptx_wait_async): Unseen async-argument is a no-op.
11920 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
11921 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
11922 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
11923 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
11924 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
11925 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
11926 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
11927 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
11928 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
11929
11930 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
11931 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
11932
11933 2018-12-14 Chung-Lin Tang <[email protected]>
11934
11935 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
11936 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
11937 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
11938
11939 2018-12-14 Thomas Schwinge <[email protected]>
11940
11941 PR libgomp/88370
11942 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
11943 (acc_set_cuda_stream): Clarify.
11944 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
11945 "async_valid_p".
11946 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
11947 acc_async_sync".
11948 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
11949 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
11950 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
11951 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
11952
11953 2018-12-14 Tom de Vries <[email protected]>
11954
11955 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
11956 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
11957 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
11958 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
11959 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
11960
11961 2018-12-13 Tom de Vries <[email protected]>
11962
11963 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
11964 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
11965 * fortran.c (omp_display_affinity_): ... here.
11966 * libgomp.h (gomp_print_string): Declare.
11967 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
11968 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
11969 write.
11970
11971 2018-12-13 Jakub Jelinek <[email protected]>
11972
11973 PR libgomp/88460
11974 * testsuite/libgomp.c++/for-24.C (results): Include it in
11975 omp declare target region.
11976 (main): Use map (always, tofrom: results) instead of
11977 map (tofrom: results).
11978
11979 2018-12-12 Jakub Jelinek <[email protected]>
11980
11981 PR fortran/88463
11982 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
11983 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
11984
11985 * testsuite/libgomp.c-c++-common/for-16.c: New test.
11986
11987 2018-12-12 Andreas Schwab <[email protected]>
11988
11989 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
11990 clobbered.
11991
11992 2018-12-09 Thomas Koenig <[email protected]>
11993
11994 PR fortran/88411
11995 * testsuite/libgomp.fortran/async_io_8.f90: New test.
11996
11997 2018-12-09 Thomas Schwinge <[email protected]>
11998 Jakub Jelinek <[email protected]>
11999
12000 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
12001 devicep->host2dev_func.
12002
12003 2018-12-08 Jakub Jelinek <[email protected]>
12004
12005 PR libgomp/87995
12006 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
12007 tls_runtime effective target.
12008 (t): New threadprivate variable.
12009 (main): Set t in threads which execute iterations of the worksharing
12010 loop. Propagate that to the task after the loop and don't abort
12011 if the current taskgroup hasn't been cancelled.
12012
12013 2018-12-02 Jakub Jelinek <[email protected]>
12014
12015 * testsuite/libgomp.c/task-reduction-3.c: New test.
12016
12017 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
12018
12019 2018-11-30 Cesar Philippidis <[email protected]>
12020
12021 PR libgomp/88288
12022 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
12023 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
12024
12025 2018-11-30 Thomas Schwinge <[email protected]>
12026
12027 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
12028
12029 2018-10-19 Richard Biener <[email protected]>
12030
12031 PR tree-optimization/88182
12032 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
12033
12034 2018-11-26 Jakub Jelinek <[email protected]>
12035
12036 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
12037 (RUNTEST): Don't define.
12038 (RUNTESTDEFAULTFLAGS): Add.
12039 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
12040 (distclean-am): Depend on distclean-DEJAGNU.
12041 (check-am): If -j% option is present in MFLAGS and if
12042 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
12043 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
12044 * testsuite/Makefile.in: Regenerated.
12045
12046 2018-11-26 Richard Biener <[email protected]>
12047
12048 PR tree-optimization/88182
12049 * testsuite/libgomp.c++/pr88182.C: New testcase.
12050
12051 2018-11-20 Jakub Jelinek <[email protected]>
12052
12053 PR bootstrap/88106
12054 * config/mingw32/affinity-fmt.c: New file.
12055
12056 2018-11-09 Jakub Jelinek <[email protected]>
12057
12058 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
12059 (gomp_display_affinity): Use __builtin_choose_expr to handle
12060 properly handle argument having integral, or pointer or some other
12061 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
12062 with uint64_t type instead of %llx and unsigned long long.
12063
12064 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
12065 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
12066
12067 2018-11-08 Rainer Orth <[email protected]>
12068
12069 * affinity.c: Include <string.h>, <stdio.h>.
12070 (gomp_display_affinity_place): Remove cpusetp.
12071 * teams.c: Include <limits.h>.
12072
12073 2018-11-08 Jakub Jelinek <[email protected]>
12074
12075 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
12076 in_reduction clause for s[0].
12077
12078 * affinity.c (gomp_display_affinity_place): New function.
12079 * affinity-fmt.c: New file.
12080 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
12081 * config/linux/affinity.c (gomp_display_affinity_place): New function.
12082 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
12083 Move these functions to ...
12084 * config/nvptx/teams.c: ... here. New file.
12085 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
12086 New functions.
12087 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
12088 functions.
12089 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
12090 and _aligned_malloc.
12091 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
12092 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
12093 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
12094 gomp_affinity_format_len): New variables.
12095 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
12096 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
12097 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
12098 modifiers. Display (non-default) chunk sizes. Print
12099 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
12100 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
12101 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
12102 * fortran.c: Include stdio.h and string.h.
12103 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
12104 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
12105 (omp_set_affinity_format_, omp_get_affinity_format_,
12106 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
12107 omp_pause_resource_all_): New functions.
12108 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
12109 switch.
12110 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
12111 functions to ...
12112 * teams.c: ... here. New file.
12113 * libgomp_g.h: Include gstdint.h.
12114 (GOMP_loop_nonmonotonic_runtime_start,
12115 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
12116 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
12117 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
12118 GOMP_parallel_loop_nonmonotonic_runtime,
12119 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
12120 GOMP_loop_ull_nonmonotonic_runtime_start,
12121 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
12122 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
12123 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
12124 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
12125 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
12126 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
12127 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
12128 GOMP_teams_reg): Declare.
12129 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
12130 gomp_aligned_alloc uses fallback implementation.
12131 (gomp_aligned_alloc, gomp_aligned_free): Declare.
12132 (enum gomp_schedule_type): Add GFS_MONOTONIC.
12133 (struct gomp_doacross_work_share): Add extra field.
12134 (struct gomp_work_share): Add task_reductions field.
12135 (struct gomp_taskgroup): Add workshare and reductions fields.
12136 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
12137 (gomp_thread_handle): New typedef.
12138 (gomp_display_affinity_place, gomp_set_affinity_format,
12139 gomp_display_string, gomp_display_affinity,
12140 gomp_display_affinity_thread): Declare.
12141 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
12142 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
12143 gomp_workshare_task_reduction_register): Declare.
12144 (gomp_team_start): Add taskgroup argument.
12145 (gomp_pause_host): Declare.
12146 (gomp_init_work_share, gomp_work_share_start): Change bool argument
12147 to size_t.
12148 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
12149 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
12150 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
12151 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
12152 GOMP_loop_ull_doacross_start,
12153 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
12154 GOMP_loop_maybe_nonmonotonic_runtime_next,
12155 GOMP_loop_maybe_nonmonotonic_runtime_start,
12156 GOMP_loop_nonmonotonic_runtime_next,
12157 GOMP_loop_nonmonotonic_runtime_start,
12158 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
12159 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
12160 GOMP_loop_ull_nonmonotonic_runtime_next,
12161 GOMP_loop_ull_nonmonotonic_runtime_start,
12162 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
12163 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
12164 GOMP_taskgroup_reduction_register,
12165 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
12166 GOMP_teams_reg and GOMP_taskwait_depend.
12167 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
12168 omp_{capture,display}_affinity{,_}, and
12169 omp_[gs]et_affinity_format{,_}.
12170 * loop.c: Include string.h.
12171 (GOMP_loop_runtime_next): Add ialias.
12172 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
12173 (gomp_loop_static_start, gomp_loop_dynamic_start,
12174 gomp_loop_guided_start, gomp_loop_ordered_static_start,
12175 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
12176 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
12177 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
12178 or gomp_doacross_init callers.
12179 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
12180 GOMP_loop_doacross_start): New functions.
12181 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
12182 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
12183 Mask off GFS_MONOTONIC bit.
12184 (GOMP_loop_maybe_nonmonotonic_runtime_next,
12185 GOMP_loop_maybe_nonmonotonic_runtime_start,
12186 GOMP_loop_nonmonotonic_runtime_next,
12187 GOMP_loop_nonmonotonic_runtime_start,
12188 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
12189 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
12190 functions.
12191 (gomp_parallel_loop_start): Pass NULL as taskgroup to
12192 gomp_team_start.
12193 * loop_ull.c: Include string.h.
12194 (GOMP_loop_ull_runtime_next): Add ialias.
12195 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
12196 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
12197 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
12198 gomp_loop_ull_ordered_dynamic_start,
12199 gomp_loop_ull_ordered_guided_start,
12200 gomp_loop_ull_doacross_static_start,
12201 gomp_loop_ull_doacross_dynamic_start,
12202 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
12203 and gomp_doacross_ull_init callers.
12204 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
12205 GOMP_loop_ull_doacross_start): New functions.
12206 (GOMP_loop_ull_runtime_start,
12207 GOMP_loop_ull_ordered_runtime_start,
12208 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
12209 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
12210 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
12211 GOMP_loop_ull_nonmonotonic_runtime_next,
12212 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
12213 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
12214 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
12215 (omp_pause_resource_t, omp_depend_t): New typedefs.
12216 (enum omp_lock_hint_t): Renamed to ...
12217 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
12218 enumerators using numbers and omp_lock_hint_* as their aliases.
12219 (omp_lock_hint_t): New typedef. Rename to ...
12220 (omp_sync_hint_t): ... this.
12221 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
12222 omp_sync_hint_t instead of omp_lock_hint_t.
12223 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
12224 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
12225 Declare.
12226 (omp_target_is_present, omp_target_disassociate_ptr):
12227 Change first argument from void * to const void *.
12228 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
12229 from void * to const void *.
12230 (omp_target_associate_ptr): Change first and second arguments from
12231 void * to const void *.
12232 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
12233 omp_pause_hard): New parameters.
12234 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
12235 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
12236 New interfaces.
12237 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
12238 omp_pause_hard): New parameters.
12239 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
12240 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
12241 New externals.
12242 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
12243 EXTRA argument. If not needed to prepare array, if extra is 0,
12244 clear ws->doacross, otherwise allocate just doacross structure and
12245 extra payload. If array is needed, allocate also extra payload.
12246 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
12247 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
12248 doacross == NULL.
12249 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
12250 gomp_team_start.
12251 (GOMP_parallel): Likewise. Formatting fix.
12252 (GOMP_parallel_reductions): New function.
12253 (GOMP_cancellation_point): If taskgroup has workshare
12254 flag set, check cancelled of prev taskgroup if any.
12255 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
12256 on prev taskgroup if any.
12257 * sections.c: Include string.h.
12258 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
12259 (GOMP_sections_start): Adjust gomp_work_share_start caller.
12260 (GOMP_sections2_start): New function.
12261 (GOMP_parallel_sections_start, GOMP_parallel_sections):
12262 Pass NULL as taskgroup to gomp_team_start.
12263 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
12264 gomp_work_share_start callers.
12265 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
12266 If taskgroup has workshare flag set, check cancelled on prev
12267 taskgroup if any. Guard all cancellation tests with
12268 gomp_cancel_var test.
12269 (omp_target_is_present, omp_target_disassociate_ptr):
12270 Change ptr argument from void * to const void *.
12271 (omp_target_memcpy): Change src argument from void * to const void *.
12272 (omp_target_memcpy_rect): Likewise.
12273 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
12274 instead of char * where needed.
12275 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
12276 from void * to const void *.
12277 (omp_pause_resource, omp_pause_resource_all): New functions.
12278 * task.c (gomp_task_handle_depend): Handle new depend array format
12279 in addition to the old. Handle mutexinoutset kinds the same as
12280 inout for now, handle unspecified kinds.
12281 (gomp_create_target_task): If taskgroup has workshare flag set, check
12282 cancelled on prev taskgroup if any. Guard all cancellation tests with
12283 gomp_cancel_var test. Handle new depend array format count in
12284 addition to the old.
12285 (GOMP_task): Likewise. Adjust function comment.
12286 (gomp_task_run_pre): If taskgroup has workshare flag set, check
12287 cancelled on prev taskgroup if any. Guard all cancellation tests with
12288 gomp_cancel_var test.
12289 (GOMP_taskwait_depend): New function.
12290 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
12291 format in addition to the old. Handle mutexinoutset kinds the same as
12292 inout for now, handle unspecified kinds. Fix a function comment typo.
12293 (gomp_taskgroup_init): New function.
12294 (GOMP_taskgroup_start): Use it.
12295 (gomp_reduction_register, gomp_create_artificial_team,
12296 GOMP_taskgroup_reduction_register,
12297 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
12298 gomp_parallel_reduction_register,
12299 gomp_workshare_task_reduction_register,
12300 gomp_workshare_taskgroup_start,
12301 GOMP_workshare_task_reduction_unregister): New functions.
12302 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
12303 check cancelled on prev taskgroup if any. Guard all cancellation
12304 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
12305 by calling GOMP_taskgroup_reduction_register.
12306 * team.c (gomp_thread_attr): Remove comment.
12307 (struct gomp_thread_start_data): Add handle field.
12308 (gomp_thread_start): Call pthread_detach.
12309 (gomp_new_team): Adjust gomp_init_work_share caller.
12310 (gomp_free_pool_helper): Call pthread_detach.
12311 (gomp_team_start): Add taskgroup argument, initialize implicit
12312 tasks' taskgroup field to that. Don't call
12313 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
12314 (gomp_team_end): Determine nesting by thr->ts.level != 0
12315 rather than thr->ts.team != NULL.
12316 (gomp_pause_pool_helper, gomp_pause_host): New functions.
12317 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
12318 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
12319 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
12320 if more than 1 allocate also extra payload at the end of array. Never
12321 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
12322 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
12323 return true instead of ws.
12324 * Makefile.in: Regenerated.
12325 * configure: Regenerated.
12326 * config.h.in: Regenerated.
12327 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
12328 in some cases.
12329 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
12330 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
12331 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
12332 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
12333 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
12334 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
12335 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
12336 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
12337 * testsuite/libgomp.c-c++-common/for-10.c: New test.
12338 * testsuite/libgomp.c-c++-common/for-11.c: New test.
12339 * testsuite/libgomp.c-c++-common/for-12.c: New test.
12340 * testsuite/libgomp.c-c++-common/for-13.c: New test.
12341 * testsuite/libgomp.c-c++-common/for-14.c: New test.
12342 * testsuite/libgomp.c-c++-common/for-15.c: New test.
12343 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
12344 define a different N(test), don't define N(f0) to N(f14), but instead
12345 define N(f20) to N(f34) using != comparisons.
12346 * testsuite/libgomp.c-c++-common/for-7.c: New test.
12347 * testsuite/libgomp.c-c++-common/for-8.c: New test.
12348 * testsuite/libgomp.c-c++-common/for-9.c: New test.
12349 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
12350 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
12351 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
12352 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
12353 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
12354 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
12355 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
12356 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
12357 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
12358 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
12359 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
12360 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
12361 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
12362 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
12363 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
12364 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
12365 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
12366 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
12367 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
12368 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
12369 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
12370 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
12371 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
12372 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
12373 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
12374 * testsuite/libgomp.c++/depend-1.C: New test.
12375 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
12376 * testsuite/libgomp.c++/depobj-1.C: New test.
12377 * testsuite/libgomp.c++/for-16.C: New test.
12378 * testsuite/libgomp.c++/for-21.C: New test.
12379 * testsuite/libgomp.c++/for-22.C: New test.
12380 * testsuite/libgomp.c++/for-23.C: New test.
12381 * testsuite/libgomp.c++/for-24.C: New test.
12382 * testsuite/libgomp.c++/for-25.C: New test.
12383 * testsuite/libgomp.c++/for-26.C: New test.
12384 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
12385 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
12386 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
12387 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
12388 * testsuite/libgomp.c++/task-reduction-10.C: New test.
12389 * testsuite/libgomp.c++/task-reduction-11.C: New test.
12390 * testsuite/libgomp.c++/task-reduction-12.C: New test.
12391 * testsuite/libgomp.c++/task-reduction-13.C: New test.
12392 * testsuite/libgomp.c++/task-reduction-14.C: New test.
12393 * testsuite/libgomp.c++/task-reduction-15.C: New test.
12394 * testsuite/libgomp.c++/task-reduction-16.C: New test.
12395 * testsuite/libgomp.c++/task-reduction-17.C: New test.
12396 * testsuite/libgomp.c++/task-reduction-18.C: New test.
12397 * testsuite/libgomp.c++/task-reduction-19.C: New test.
12398 * testsuite/libgomp.c/task-reduction-1.c: New test.
12399 * testsuite/libgomp.c++/task-reduction-1.C: New test.
12400 * testsuite/libgomp.c/task-reduction-2.c: New test.
12401 * testsuite/libgomp.c++/task-reduction-2.C: New test.
12402 * testsuite/libgomp.c++/task-reduction-3.C: New test.
12403 * testsuite/libgomp.c++/task-reduction-4.C: New test.
12404 * testsuite/libgomp.c++/task-reduction-5.C: New test.
12405 * testsuite/libgomp.c++/task-reduction-6.C: New test.
12406 * testsuite/libgomp.c++/task-reduction-7.C: New test.
12407 * testsuite/libgomp.c++/task-reduction-8.C: New test.
12408 * testsuite/libgomp.c++/task-reduction-9.C: New test.
12409 * testsuite/libgomp.c/teams-1.c: New test.
12410 * testsuite/libgomp.c/teams-2.c: New test.
12411 * testsuite/libgomp.c/thread-limit-4.c: New test.
12412 * testsuite/libgomp.c/thread-limit-5.c: New test.
12413 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
12414
12415 2018-11-06 Chung-Lin Tang <[email protected]>
12416
12417 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
12418 acc_memcpy_to/from_device functions, now with async parameter.
12419 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
12420 (acc_memcpy_from_device): Likewise.
12421 (acc_memcpy_to_device_async): New API function.
12422 (acc_memcpy_from_device_async): Likewise.
12423 (present_create_copy): Add async parameter and async setting/unsetting.
12424 (acc_create): Adjust present_create_copy call.
12425 (acc_copyin): Likewise.
12426 (acc_present_or_create): Likewise.
12427 (acc_present_or_copyin): Likewise.
12428 (acc_create_async): New API function.
12429 (acc_copyin_async): New API function.
12430 (delete_copyout): Add async parameter and async setting/unsetting.
12431 (acc_delete): Adjust delete_copyout call.
12432 (acc_copyout): Likewise.
12433 (acc_delete_async): New API function.
12434 (acc_copyout_async): Likewise.
12435 (update_dev_host): Add async parameter and async setting/unsetting.
12436 (acc_update_device): Adjust update_dev_host call.
12437 (acc_update_self): Likewise.
12438 (acc_update_device_async): New API function.
12439 (acc_update_self_async): Likewise.
12440 * openacc.h (acc_copyin_async): Declare new API function.
12441 (acc_create_async): Likewise.
12442 (acc_copyout_async): Likewise.
12443 (acc_delete_async): Likewise.
12444 (acc_update_device_async): Likewise.
12445 (acc_update_self_async): Likewise.
12446 (acc_memcpy_to_device_async): Likewise.
12447 (acc_memcpy_from_device_async): Likewise.
12448 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
12449 (acc_copyin_async_64_h): New subroutine.
12450 (acc_copyin_async_array_h): New subroutine.
12451 (acc_create_async_32_h): New subroutine.
12452 (acc_create_async_64_h): New subroutine.
12453 (acc_create_async_array_h): New subroutine.
12454 (acc_copyout_async_32_h): New subroutine.
12455 (acc_copyout_async_64_h): New subroutine.
12456 (acc_copyout_async_array_h): New subroutine.
12457 (acc_delete_async_32_h): New subroutine.
12458 (acc_delete_async_64_h): New subroutine.
12459 (acc_delete_async_array_h): New subroutine.
12460 (acc_update_device_async_32_h): New subroutine.
12461 (acc_update_device_async_64_h): New subroutine.
12462 (acc_update_device_async_array_h): New subroutine.
12463 (acc_update_self_async_32_h): New subroutine.
12464 (acc_update_self_async_64_h): New subroutine.
12465 (acc_update_self_async_array_h): New subroutine.
12466 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
12467 (acc_copyin_async_64_h): New subroutine.
12468 (acc_copyin_async_array_h): New subroutine.
12469 (acc_create_async_32_h): New subroutine.
12470 (acc_create_async_64_h): New subroutine.
12471 (acc_create_async_array_h): New subroutine.
12472 (acc_copyout_async_32_h): New subroutine.
12473 (acc_copyout_async_64_h): New subroutine.
12474 (acc_copyout_async_array_h): New subroutine.
12475 (acc_delete_async_32_h): New subroutine.
12476 (acc_delete_async_64_h): New subroutine.
12477 (acc_delete_async_array_h): New subroutine.
12478 (acc_update_device_async_32_h): New subroutine.
12479 (acc_update_device_async_64_h): New subroutine.
12480 (acc_update_device_async_array_h): New subroutine.
12481 (acc_update_self_async_32_h): New subroutine.
12482 (acc_update_self_async_64_h): New subroutine.
12483 (acc_update_self_async_array_h): New subroutine.
12484 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
12485 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
12486 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
12487 acc_memcpy_to_device_async*, acc_update_device_async*, and
12488 acc_update_self_async* entries.
12489 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
12490 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
12491 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
12492
12493 2018-10-31 Joseph Myers <[email protected]>
12494
12495 PR bootstrap/82856
12496 * Makefile.am: Include multilib.am
12497 (AUTOMAKE_OPTIONS): Add info-in-builddir.
12498 (CLEANFILES): Remove libgomp.info.
12499 * configure.ac: Remove AC_PREREQ.
12500 * testsuite/Makefile.am (RUNTEST): Remove quotes.
12501 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
12502 Regenerate.
12503
12504 2018-10-29 Joseph Myers <[email protected]>
12505 Julian Brown <[email protected]>
12506
12507 * testsuite/libgomp.oacc-c++/this.C: New.
12508
12509 2018-09-18 Cesar Philippidis <[email protected]>
12510
12511 * plugin/plugin-nvptx.c (struct cuda_map): New.
12512 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
12513 h_tail with (cuda_map *) map.
12514 (cuda_map_create): New function.
12515 (cuda_map_destroy): New function.
12516 (map_init): Update to use a linked list of cuda_map objects.
12517 (map_fini): Likewise.
12518 (map_pop): Likewise.
12519 (map_push): Likewise. Return CUdeviceptr instead of void.
12520 (init_streams_for_device): Remove stales references to ptx_stream
12521 members.
12522 (select_stream_for_async): Likewise.
12523 (nvptx_exec): Update call to map_init.
12524
12525 2018-09-09 Cesar Philippidis <[email protected]>
12526 Julian Brown <[email protected]>
12527
12528 PR middle-end/86336
12529 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
12530
12531 2018-08-21 Nicolas Koenig <[email protected]>
12532 Thomas Koenig <[email protected]>
12533
12534 PR fortran/25829
12535 * testsuite/libgomp.fortran/async_io_1.f90: New test.
12536 * testsuite/libgomp.fortran/async_io_2.f90: New test.
12537 * testsuite/libgomp.fortran/async_io_3.f90: New test.
12538 * testsuite/libgomp.fortran/async_io_4.f90: New test.
12539 * testsuite/libgomp.fortran/async_io_5.f90: New test.
12540 * testsuite/libgomp.fortran/async_io_6.f90: New test.
12541 * testsuite/libgomp.fortran/async_io_7.f90: New test.
12542
12543 2018-08-13 Cesar Philippidis <[email protected]>
12544 Tom de Vries <[email protected]>
12545
12546 PR target/85590
12547 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
12548 (cuOccupancyMaxPotentialBlockSize): Declare.
12549 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
12550 CUDA_ONE_CALL_MAYBE_NULL.
12551 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
12552 CUoccupancyB2DSize and declare
12553 cuOccupancyMaxPotentialBlockSize.
12554 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
12555 default num_gangs and num_workers when the driver supports it.
12556
12557 2018-08-08 Tom de Vries <[email protected]>
12558
12559 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
12560 CUDA_ONE_CALL_MAYBE_NULL.
12561 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
12562 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
12563 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
12564 are not found.
12565
12566 2018-08-08 Tom de Vries <[email protected]>
12567
12568 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
12569 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
12570 present.
12571
12572 2018-08-08 Tom de Vries <[email protected]>
12573
12574 * plugin/plugin-nvptx.c
12575 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
12576 (nvptx_open_device): Use
12577 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
12578
12579 2018-08-08 Tom de Vries <[email protected]>
12580
12581 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
12582 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
12583
12584 2018-08-07 Tom de Vries <[email protected]>
12585
12586 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
12587 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
12588 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
12589 corresponding call in CUDA_ONE_CALL. Add def/undef of
12590 CUDA_ONE_CALL_MAYBE_NULL.
12591 (CUDA_CALL_EXISTS): Define.
12592
12593 2018-08-07 Tom de Vries <[email protected]>
12594
12595 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
12596 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
12597 corresponding undefs right after.
12598
12599 2018-08-04 Tom de Vries <[email protected]>
12600
12601 * plugin/configfrag.ac: For --without-cuda-driver, set
12602 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
12603 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
12604 * configure: Regenerate.
12605
12606 2018-08-02 Tom de Vries <[email protected]>
12607
12608 PR target/86660
12609 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
12610 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
12611 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
12612 Same.
12613 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
12614 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
12615 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
12616
12617 2018-08-01 Cesar Philippidis <[email protected]>
12618 Thomas Schwinge <[email protected]>
12619
12620 * config/nvptx/oacc-parallel.c: Truncate.
12621
12622 2018-08-01 Cesar Philippidis <[email protected]>
12623 James Norris <[email protected]>
12624
12625 * plugin/plugin-nvptx.c (struct map): Removed.
12626 (map_init, map_pop): Remove use of struct map.
12627 (map_push): Likewise and change argument list.
12628 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
12629
12630 2018-08-01 Tom de Vries <[email protected]>
12631
12632 * plugin/cuda-lib.def: New file. Factor out of ...
12633 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
12634 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
12635 using CUDA_CALLS.
12636
12637 2018-07-31 Andre Vieira <[email protected]>
12638
12639 Revert 'AsyncI/O patch committed'.
12640 2018-07-25 Nicolas Koenig <[email protected]>
12641 Thomas Koenig <[email protected]>
12642
12643 PR fortran/25829
12644 * testsuite/libgomp.fortran/async_io_1.f90: New test.
12645 * testsuite/libgomp.fortran/async_io_2.f90: New test.
12646 * testsuite/libgomp.fortran/async_io_3.f90: New test.
12647 * testsuite/libgomp.fortran/async_io_4.f90: New test.
12648 * testsuite/libgomp.fortran/async_io_5.f90: New test.
12649 * testsuite/libgomp.fortran/async_io_6.f90: New test.
12650 * testsuite/libgomp.fortran/async_io_7.f90: New test.
12651
12652 2018-07-30 Tom de Vries <[email protected]>
12653
12654 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
12655 (nvptx_exec): Ensure worker and vector default dims don't exceed
12656 targ_fn->max_threads_per_block.
12657
12658 2018-07-30 Tom de Vries <[email protected]>
12659
12660 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
12661 (nvptx_open_device): Init default_dims for device.
12662 (nvptx_exec): Use default_dims from device.
12663
12664 2018-07-26 Jakub Jelinek <[email protected]>
12665
12666 PR testsuite/86660
12667 * testsuite/libgomp.c++/for-15.C (results): Include it in
12668 omp declare target region.
12669 (main): Use map (always, tofrom: results) instead of
12670 map (tofrom: results).
12671
12672 PR middle-end/86660
12673 * testsuite/libgomp.c/pr86660.c: New test.
12674
12675 2018-07-26 Cesar Philippidis <[email protected]>
12676 Tom de Vries <[email protected]>
12677
12678 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
12679 sufficient resources to launch a kernel, and give a hint on how to fix
12680 it.
12681
12682 2018-07-26 Cesar Philippidis <[email protected]>
12683 Tom de Vries <[email protected]>
12684
12685 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
12686 max_threads_per_block and max_threads_per_multiprocessor fields.
12687 (nvptx_open_device): Initialize new fields.
12688 (nvptx_exec): Use num_sms, and new fields.
12689
12690 2018-07-26 Tom de Vries <[email protected]>
12691
12692 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
12693 to correct locations. Remove xfail.
12694
12695 2018-07-26 Tom de Vries <[email protected]>
12696
12697 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
12698 acc_wait. Move acc_async_test calls to correct locations. Remove
12699 xfail.
12700
12701 2018-07-25 Nicolas Koenig <[email protected]>
12702 Thomas Koenig <[email protected]>
12703
12704 PR fortran/25829
12705 * testsuite/libgomp.fortran/async_io_1.f90: New test.
12706 * testsuite/libgomp.fortran/async_io_2.f90: New test.
12707 * testsuite/libgomp.fortran/async_io_3.f90: New test.
12708 * testsuite/libgomp.fortran/async_io_4.f90: New test.
12709 * testsuite/libgomp.fortran/async_io_5.f90: New test.
12710 * testsuite/libgomp.fortran/async_io_6.f90: New test.
12711 * testsuite/libgomp.fortran/async_io_7.f90: New test.
12712
12713 2018-07-17 Jakub Jelinek <[email protected]>
12714
12715 PR middle-end/86542
12716 * testsuite/libgomp.c++/pr86542.C: New test.
12717
12718 PR middle-end/86539
12719 * testsuite/libgomp.c++/pr86539.C: New test.
12720
12721 2018-07-11 Jakub Jelinek <[email protected]>
12722
12723 PR c++/86443
12724 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
12725 (results): Make sure the variable is not inside declare target region.
12726 (qux): Remove unused function.
12727
12728 2018-07-10 Jakub Jelinek <[email protected]>
12729
12730 PR c++/86443
12731 * testsuite/libgomp.c++/for-15.C: New test.
12732
12733 2018-06-26 Jakub Jelinek <[email protected]>
12734
12735 PR c++/86291
12736 * testsuite/libgomp.c++/pr86291.C: New test.
12737
12738 2018-06-24 Gerald Pfeifer <[email protected]>
12739
12740 * libgomp.texi (Top): Move www.openmp.org to https.
12741 (Enabling OpenMP): Ditto.
12742 (omp_get_active_level): Ditto.
12743 (omp_get_ancestor_thread_num): Ditto.
12744 (omp_get_cancellation): Ditto.
12745 (omp_get_default_device): Ditto.
12746 (omp_get_dynamic): Ditto.
12747 (omp_get_level): Ditto.
12748 (omp_get_max_active_levels): Ditto.
12749 (omp_get_max_task_priority): Ditto.
12750 (omp_get_max_threads): Ditto.
12751 (omp_get_nested): Ditto.
12752 (omp_get_num_devices): Ditto.
12753 (omp_get_num_procs): Ditto.
12754 (omp_get_num_teams): Ditto.
12755 (omp_get_num_threads): Ditto.
12756 (omp_get_proc_bind): Ditto.
12757 (omp_get_schedule): Ditto.
12758 (omp_get_team_num): Ditto.
12759 (omp_get_team_size): Ditto.
12760 (omp_get_thread_limit): Ditto.
12761 (omp_get_thread_num): Ditto.
12762 (omp_in_parallel): Ditto.
12763 (omp_in_final): Ditto.
12764 (omp_is_initial_device): Ditto.
12765 (omp_set_default_device): Ditto.
12766 (omp_set_dynamic): Ditto.
12767 (omp_set_max_active_levels): Ditto.
12768 (omp_set_nested): Ditto.
12769 (omp_set_num_threads): Ditto.
12770 (omp_set_schedule): Ditto.
12771 (omp_init_lock): Ditto.
12772 (omp_set_lock): Ditto.
12773 (omp_test_lock): Ditto.
12774 (omp_unset_lock): Ditto.
12775 (omp_destroy_lock): Ditto.
12776 (omp_init_nest_lock): Ditto.
12777 (omp_set_nest_lock): Ditto.
12778 (omp_test_nest_lock): Ditto.
12779 (omp_unset_nest_lock): Ditto.
12780 (omp_destroy_nest_lock): Ditto.
12781 (omp_get_wtick): Ditto.
12782 (omp_get_wtime): Ditto.
12783 (OMP_CANCELLATION): Ditto.
12784 (OMP_DISPLAY_ENV): Ditto.
12785 (OMP_DEFAULT_DEVICE): Ditto.
12786 (OMP_DYNAMIC): Ditto.
12787 (OMP_MAX_ACTIVE_LEVELS): Ditto.
12788 (OMP_MAX_TASK_PRIORITY): Ditto.
12789 (OMP_NESTED): Ditto.
12790 (OMP_NUM_THREADS): Ditto.
12791 (OMP_PROC_BIND): Ditto.
12792 (OMP_PLACES): Ditto.
12793 (OMP_STACKSIZE): Ditto.
12794 (OMP_SCHEDULE): Ditto.
12795 (OMP_THREAD_LIMIT): Ditto.
12796 (OMP_WAIT_POLICY): Ditto.
12797
12798 2018-06-22 Cesar Philippidis <[email protected]>
12799 James Norris <[email protected]>
12800 Julian Brown <[email protected]>
12801 Thomas Schwinge <[email protected]>
12802 Tom de Vries <[email protected]>
12803
12804 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
12805 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
12806 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
12807 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
12808 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
12809 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
12810 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
12811 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
12812 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
12813 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
12814 Likewise.
12815 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
12816 Likewise.
12817 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
12818 Likewise.
12819 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
12820 Likewise.
12821 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
12822 Likewise.
12823 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
12824 Likewise.
12825 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
12826 Likewise.
12827 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
12828 Likewise.
12829 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
12830 Likewise.
12831 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
12832 Likewise.
12833 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
12834 Likewise.
12835 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
12836 Likewise.
12837 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
12838 Likewise.
12839 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
12840 Likewise.
12841 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
12842 Likewise.
12843 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
12844 Likewise.
12845 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
12846 Likewise.
12847 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
12848 Likewise.
12849 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
12850 Likewise.
12851 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
12852 Likewise.
12853 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
12854 Likewise.
12855 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
12856 Likewise.
12857 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
12858 Likewise.
12859 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
12860 Likewise.
12861 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
12862 Likewise.
12863 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
12864 Likewise.
12865 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
12866 Likewise.
12867 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
12868 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
12869 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
12870 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
12871 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
12872 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
12873 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
12874 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
12875 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
12876 Likewise.
12877 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
12878 Likewise.
12879 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
12880 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
12881 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
12882 Likewise.
12883 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
12884 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
12885 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
12886 Likewise.
12887 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
12888 Likewise.
12889 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
12890 Likewise.
12891 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
12892 Likewise.
12893 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
12894 Likewise.
12895 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
12896 Likewise.
12897 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
12898 Likewise.
12899 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
12900 Likewise.
12901 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
12902 Likewise.
12903 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
12904 Likewise.
12905 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
12906 Likewise.
12907 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
12908 Likewise.
12909 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
12910 Likewise.
12911 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
12912 Likewise.
12913 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
12914 Likewise.
12915 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
12916 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
12917 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
12918 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
12919 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
12920 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
12921 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
12922
12923 2018-06-20 Chung-Lin Tang <[email protected]>
12924 Thomas Schwinge <[email protected]>
12925 Cesar Philippidis <[email protected]>
12926
12927 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
12928 (gomp_acc_remove_pointer): Update declaration.
12929 (gomp_acc_declare_allocate): Declare.
12930 (gomp_remove_var): Declare.
12931 * libgomp.map (OACC_2.5): Define.
12932 * oacc-mem.c (acc_map_data): Update refcount.
12933 (acc_unmap_data): Likewise.
12934 (present_create_copy): Likewise.
12935 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
12936 (acc_copyin): Likewise.
12937 (FLAG_FINALIZE): Define.
12938 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
12939 (acc_delete_finalize): New function.
12940 (acc_delete_finalize_async): New function.
12941 (acc_copyout_finalize): New function.
12942 (acc_copyout_finalize_async): New function.
12943 (gomp_acc_insert_pointer): Update refcounts.
12944 (gomp_acc_remove_pointer): Return if data is not present on the
12945 accelerator.
12946 * oacc-parallel.c (find_pset): Rename to find_pointer.
12947 (find_pointer): Add support for GOMP_MAP_POINTER.
12948 (handle_ftn_pointers): New function.
12949 (GOACC_parallel_keyed): Update refcounts of variables.
12950 (GOACC_enter_exit_data): Add support for finalized data mappings.
12951 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
12952 of fortran arrays.
12953 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
12954 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
12955 for GOMP_MAP_FORCE_FROM.
12956 * openacc.f90 (module openacc_internal): Add
12957 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
12958 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
12959 acc_copyout_finalize and acc_delete_finalize.
12960 (acc_copyout_finalize_32_h): New subroutine.
12961 (acc_copyout_finalize_64_h): New subroutine.
12962 (acc_copyout_finalize_array_h): New subroutine.
12963 (acc_delete_finalize_32_h): New subroutine.
12964 (acc_delete_finalize_64_h): New subroutine.
12965 (acc_delete_finalize_array_h): New subroutine.
12966 * openacc.h (acc_copyout_finalize): Declare.
12967 (acc_copyout_finalize_async): Declare.
12968 (acc_delete_finalize): Declare.
12969 (acc_delete_finalize_async): Declare.
12970 * openacc_lib.h (acc_copyout_finalize): New interface.
12971 (acc_delete_finalize): New interface.
12972 * target.c (gomp_map_vars): Update dynamic_refcount.
12973 (gomp_remove_var): New function.
12974 (gomp_unmap_vars): Use it.
12975 (gomp_unload_image_from_device): Likewise.
12976 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
12977 case to utilize OpenACC 2.5 data clause semantics.
12978 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
12979 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
12980 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
12981 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
12982 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
12983 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
12984 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
12985 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
12986 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
12987 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
12988 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
12989 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
12990 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
12991 utilize OpenACC 2.5 data clause semantics.
12992 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
12993 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
12994 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
12995 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
12996 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
12997 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
12998 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
12999 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
13000 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
13001
13002 2018-05-21 Janus Weil <[email protected]>
13003
13004 PR fortran/85841
13005 PR testsuite/85865
13006 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
13007 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
13008 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
13009 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
13010 * testsuite/libgomp.fortran/task2.f90: Ditto.
13011 * testsuite/libgomp.fortran/vla1.f90: Ditto.
13012 * testsuite/libgomp.fortran/vla2.f90: Ditto.
13013 * testsuite/libgomp.fortran/vla3.f90: Ditto.
13014 * testsuite/libgomp.fortran/vla4.f90: Ditto.
13015 * testsuite/libgomp.fortran/vla5.f90: Ditto.
13016 * testsuite/libgomp.fortran/vla6.f90: Ditto.
13017 * testsuite/libgomp.fortran/vla8.f90: Ditto.
13018 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
13019 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
13020
13021 2018-05-18 Cesar Philippidis <[email protected]>
13022
13023 PR c++/85782
13024 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
13025
13026 2018-05-09 Tom de Vries <[email protected]>
13027
13028 PR libgomp/82901
13029 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
13030 to GOACC_enter_exit_data.
13031
13032 2018-05-09 Tom de Vries <[email protected]>
13033
13034 PR libgomp/83792
13035 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
13036 (async_synchronous_p): New function.
13037 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
13038 async_valid_p.
13039 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
13040 async_valid_stream_id_p.
13041 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
13042 * oacc-parallel.c (GOACC_parallel_keyed): Same.
13043
13044 2018-05-07 Tom de Vries <[email protected]>
13045
13046 PR testsuite/85677
13047 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
13048 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
13049
13050 2018-05-03 Tom de Vries <[email protected]>
13051
13052 PR testsuite/85106
13053 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
13054 extra_tool_flags if it contains an -foffload=-fdump-* flag.
13055 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
13056 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
13057
13058 2018-05-02 Tom de Vries <[email protected]>
13059
13060 PR libgomp/85411
13061 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
13062 GOMP_OPENACC_DIM ...
13063 * env.c (parse_gomp_openacc_dim): ... here. New function.
13064 (initialize_env): Call parse_gomp_openacc_dim.
13065 (goacc_default_dims): Define.
13066 * libgomp.h (goacc_default_dims): Declare.
13067 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
13068 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
13069 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
13070 GOMP_PLUGIN_acc_default_dim.
13071 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
13072 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
13073
13074 2018-05-02 Tom de Vries <[email protected]>
13075
13076 PR testsuite/83791
13077 * testsuite/libgomp.c++/udr-9.C: Update.
13078 * testsuite/libgomp.c++/atomic-16.C: Remove.
13079 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
13080 * testsuite/libgomp.c++/loop-13.C: Remove.
13081 * testsuite/libgomp.c++/loop-14.C: Remove.
13082 * testsuite/libgomp.c++/loop-15.C: Remove.
13083 * testsuite/libgomp.c++/monotonic-1.C: Remove.
13084 * testsuite/libgomp.c++/monotonic-2.C: Remove.
13085 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
13086 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
13087 * testsuite/libgomp.c++/ordered-1.C: Remove.
13088 * testsuite/libgomp.c++/pr45784.C: Remove.
13089 * testsuite/libgomp.c++/pr64824.C: Remove.
13090 * testsuite/libgomp.c++/pr64868.C: Remove.
13091 * testsuite/libgomp.c++/pr66199-1.C: Remove.
13092 * testsuite/libgomp.c++/pr66199-2.C: Remove.
13093 * testsuite/libgomp.c++/pr66199-3.C: Remove.
13094 * testsuite/libgomp.c++/pr66199-4.C: Remove.
13095 * testsuite/libgomp.c++/pr66199-5.C: Remove.
13096 * testsuite/libgomp.c++/pr66199-6.C: Remove.
13097 * testsuite/libgomp.c++/pr66199-7.C: Remove.
13098 * testsuite/libgomp.c++/pr66199-8.C: Remove.
13099 * testsuite/libgomp.c++/pr66199-9.C: Remove.
13100 * testsuite/libgomp.c++/pr69389.C: Remove.
13101 * testsuite/libgomp.c++/simd10.C: Remove.
13102 * testsuite/libgomp.c++/simd11.C: Remove.
13103 * testsuite/libgomp.c++/simd12.C: Remove.
13104 * testsuite/libgomp.c++/simd13.C: Remove.
13105 * testsuite/libgomp.c++/target-1.C: Remove.
13106 * testsuite/libgomp.c++/target-3.C: Remove.
13107 * testsuite/libgomp.c++/target-4.C: Remove.
13108 * testsuite/libgomp.c++/target-5.C: Remove.
13109 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
13110 * testsuite/libgomp.c++/taskloop-1.C: Remove.
13111 * testsuite/libgomp.c++/taskloop-2.C: Remove.
13112 * testsuite/libgomp.c++/taskloop-3.C: Remove.
13113 * testsuite/libgomp.c++/taskloop-4.C: Remove.
13114 * testsuite/libgomp.c++/udr-9.C: Remove.
13115 * testsuite/libgomp.c++/for-10.C: Remove.
13116 * testsuite/libgomp.c++/for-11.C: Remove.
13117 * testsuite/libgomp.c++/for-12.C: Remove.
13118 * testsuite/libgomp.c++/for-13.C: Remove.
13119 * testsuite/libgomp.c++/for-14.C: Remove.
13120 * testsuite/libgomp.c++/for-9.C: Remove.
13121 * testsuite/libgomp.c/atomic-18.c: Move ...
13122 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
13123 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
13124 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
13125 * testsuite/libgomp.c/loop-13.c: Move ...
13126 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
13127 * testsuite/libgomp.c/loop-14.c: Move ...
13128 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
13129 * testsuite/libgomp.c/loop-15.c: Remove.
13130 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
13131 * testsuite/libgomp.c/monotonic-1.c: Move ...
13132 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
13133 * testsuite/libgomp.c/monotonic-2.c: Move ...
13134 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
13135 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
13136 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
13137 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
13138 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
13139 * testsuite/libgomp.c/ordered-4.c: Move ...
13140 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
13141 * testsuite/libgomp.c/pr45784.c: Move ...
13142 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
13143 * testsuite/libgomp.c/pr64824.c: Move ...
13144 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
13145 * testsuite/libgomp.c/pr64868.c: Move ...
13146 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
13147 * testsuite/libgomp.c/pr66199-1.c: Move ...
13148 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
13149 * testsuite/libgomp.c/pr66199-2.c: Move ...
13150 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
13151 * testsuite/libgomp.c/pr66199-3.c: Move ...
13152 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
13153 * testsuite/libgomp.c/pr66199-4.c: Move ...
13154 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
13155 * testsuite/libgomp.c/pr66199-5.c: Move ...
13156 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
13157 * testsuite/libgomp.c/pr66199-6.c: Move ...
13158 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
13159 * testsuite/libgomp.c/pr66199-7.c: Move ...
13160 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
13161 * testsuite/libgomp.c/pr66199-8.c: Move ...
13162 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
13163 * testsuite/libgomp.c/pr66199-9.c: Move ...
13164 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
13165 * testsuite/libgomp.c/pr69389.c: Move ...
13166 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
13167 * testsuite/libgomp.c/simd-14.c: Move ...
13168 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
13169 * testsuite/libgomp.c/simd-15.c: Move ...
13170 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
13171 * testsuite/libgomp.c/simd-16.c: Move ...
13172 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
13173 * testsuite/libgomp.c/simd-17.c: Move ...
13174 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
13175 * testsuite/libgomp.c/target-1.c: Move ...
13176 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
13177 * testsuite/libgomp.c/target-10.c: Move ...
13178 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
13179 * testsuite/libgomp.c/target-13.c: Move ...
13180 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
13181 * testsuite/libgomp.c/target-2.c: Move ...
13182 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
13183 * testsuite/libgomp.c/taskgroup-1.c: Move ...
13184 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
13185 * testsuite/libgomp.c/taskloop-1.c: Move ...
13186 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
13187 * testsuite/libgomp.c/taskloop-2.c: Move ...
13188 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
13189 * testsuite/libgomp.c/taskloop-3.c: Move ...
13190 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
13191 * testsuite/libgomp.c/taskloop-4.c: Move ...
13192 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
13193 * testsuite/libgomp.c/udr-1.c: Move ...
13194 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
13195 * testsuite/libgomp.c/for-1.c: Move ...
13196 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
13197 * testsuite/libgomp.c/for-1.h: Move ...
13198 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
13199 * testsuite/libgomp.c/for-2.c: Move ...
13200 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
13201 * testsuite/libgomp.c/for-2.h: Move ...
13202 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
13203 * testsuite/libgomp.c/for-3.c: Move ...
13204 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
13205 * testsuite/libgomp.c/for-4.c: Move ...
13206 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
13207 * testsuite/libgomp.c/for-5.c: Move ...
13208 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
13209 * testsuite/libgomp.c/for-6.c: Move ...
13210 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
13211
13212 2018-05-02 Tom de Vries <[email protected]>
13213
13214 PR libgomp/82428
13215 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
13216 __builtin_goacc_parlevel_{id,size}.
13217 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
13218 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
13219 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
13220 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
13221 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
13222 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
13223 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
13224 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
13225 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
13226 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
13227 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
13228 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
13229 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
13230 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
13231 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
13232 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
13233 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
13234 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
13235 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
13236 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
13237 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
13238 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
13239 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
13240
13241 2018-05-02 Tom de Vries <[email protected]>
13242
13243 PR testsuite/85106
13244 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
13245
13246 2018-05-02 Tom de Vries <[email protected]>
13247
13248 PR testsuite/85106
13249 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
13250
13251 2018-04-29 Julian Brown <[email protected]>
13252 Tom de Vries <[email protected]>
13253
13254 PR testsuite/85527
13255 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
13256 arbitrary order for iterations of atomic subtract check.
13257
13258 2018-04-28 Tom de Vries <[email protected]>
13259
13260 PR testsuite/85527
13261 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
13262 atomic capture results obtained in parallel loop to an array, instead of
13263 to a scalar.
13264
13265 2018-04-26 Tom de Vries <[email protected]>
13266
13267 PR libgomp/84020
13268 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
13269 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
13270 (process_GOMP_NVPTX_JIT): New function.
13271 (link_ptx): Use process_GOMP_NVPTX_JIT.
13272
13273 2018-04-26 Richard Biener <[email protected]>
13274 Tom de Vries <[email protected]>
13275
13276 PR lto/85422
13277 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
13278
13279 2018-04-26 Tom de Vries <[email protected]>
13280
13281 PR target/85519
13282 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
13283 recursion depth from 25 to 23.
13284 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
13285
13286 2018-04-24 H.J. Lu <[email protected]>
13287
13288 * configure: Regenerated.
13289
13290 2018-04-20 Nathan Sidwell <[email protected]>
13291 Tom de Vries <[email protected]>
13292
13293 PR target/85445
13294 * testsuite/libgomp.oacc-c++/ref-1.C: New.
13295
13296 2018-04-19 Thomas Schwinge <[email protected]>
13297
13298 PR libgomp/85463
13299 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
13300 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
13301 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
13302 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
13303 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
13304 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
13305
13306 PR libfortran/85166
13307 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
13308 abort".
13309 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
13310
13311 2018-04-19 Jakub Jelinek <[email protected]>
13312
13313 * configure: Regenerated.
13314
13315 2018-04-18 David Malcolm <[email protected]>
13316
13317 PR jit/85384
13318 * configure: Regenerate.
13319
13320 2018-04-16 Cesar Philippidis <[email protected]>
13321 Tom de Vries <[email protected]>
13322
13323 PR middle-end/84955
13324 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
13325 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
13326
13327 2018-04-12 Thomas Koenig <[email protected]>
13328
13329 PR fortran/83064
13330 PR testsuite/85346
13331 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
13332 test from gfortran.dg to here.
13333
13334 2018-04-12 Cesar Philippidis <[email protected]>
13335
13336 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
13337 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
13338
13339 2018-04-12 Cesar Philippidis <[email protected]>
13340
13341 PR middle-end/84955
13342 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
13343 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
13344
13345 2018-04-05 Tom de Vries <[email protected]>
13346
13347 PR target/85204
13348 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
13349
13350 2018-03-26 Tom de Vries <[email protected]>
13351
13352 PR tree-optimization/85063
13353 * testsuite/libgomp.c/switch-conversion-2.c: New test.
13354 * testsuite/libgomp.c/switch-conversion.c: New test.
13355 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
13356 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
13357
13358 2018-03-25 Thomas Koenig <[email protected]>
13359
13360 PR fortran/84381
13361 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
13362 call abort by STOP n.
13363 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
13364 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
13365 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
13366 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
13367 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
13368 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
13369 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
13370 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
13371 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
13372 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
13373 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
13374 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
13375 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
13376 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
13377 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
13378 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
13379 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
13380 * testsuite/libgomp.fortran/associate1.f90: Likewise.
13381 * testsuite/libgomp.fortran/associate2.f90: Likewise.
13382 * testsuite/libgomp.fortran/associate3.f90: Likewise.
13383 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
13384 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
13385 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
13386 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
13387 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
13388 * testsuite/libgomp.fortran/character1.f90: Likewise.
13389 * testsuite/libgomp.fortran/character2.f90: Likewise.
13390 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
13391 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
13392 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
13393 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
13394 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
13395 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
13396 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
13397 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
13398 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
13399 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
13400 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
13401 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
13402 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
13403 * testsuite/libgomp.fortran/do1.f90: Likewise.
13404 * testsuite/libgomp.fortran/do2.f90: Likewise.
13405 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
13406 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
13407 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
13408 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
13409 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
13410 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
13411 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
13412 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
13413 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
13414 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
13415 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
13416 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
13417 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
13418 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
13419 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
13420 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
13421 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
13422 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
13423 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
13424 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
13425 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
13426 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
13427 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
13428 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
13429 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
13430 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
13431 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
13432 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
13433 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
13434 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
13435 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
13436 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
13437 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
13438 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
13439 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
13440 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
13441 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
13442 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
13443 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
13444 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
13445 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
13446 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
13447 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
13448 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
13449 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
13450 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
13451 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
13452 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
13453 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
13454 * testsuite/libgomp.fortran/lib1.f90: Likewise.
13455 * testsuite/libgomp.fortran/lib2.f: Likewise.
13456 * testsuite/libgomp.fortran/lib3.f: Likewise.
13457 * testsuite/libgomp.fortran/lib4.f90: Likewise.
13458 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
13459 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
13460 * testsuite/libgomp.fortran/nested1.f90: Likewise.
13461 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
13462 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
13463 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
13464 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
13465 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
13466 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
13467 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
13468 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
13469 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
13470 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
13471 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
13472 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
13473 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
13474 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
13475 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
13476 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
13477 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
13478 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
13479 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
13480 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
13481 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
13482 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
13483 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
13484 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
13485 * testsuite/libgomp.fortran/pr25162.f: Likewise.
13486 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
13487 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
13488 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
13489 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
13490 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
13491 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
13492 * testsuite/libgomp.fortran/pr28390.f: Likewise.
13493 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
13494 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
13495 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
13496 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
13497 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
13498 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
13499 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
13500 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
13501 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
13502 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
13503 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
13504 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
13505 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
13506 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
13507 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
13508 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
13509 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
13510 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
13511 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
13512 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
13513 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
13514 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
13515 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
13516 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
13517 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
13518 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
13519 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
13520 * testsuite/libgomp.fortran/reference1.f90: Likewise.
13521 * testsuite/libgomp.fortran/reference2.f90: Likewise.
13522 * testsuite/libgomp.fortran/retval1.f90: Likewise.
13523 * testsuite/libgomp.fortran/retval2.f90: Likewise.
13524 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
13525 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
13526 * testsuite/libgomp.fortran/simd1.f90: Likewise.
13527 * testsuite/libgomp.fortran/simd2.f90: Likewise.
13528 * testsuite/libgomp.fortran/simd3.f90: Likewise.
13529 * testsuite/libgomp.fortran/simd4.f90: Likewise.
13530 * testsuite/libgomp.fortran/simd5.f90: Likewise.
13531 * testsuite/libgomp.fortran/simd6.f90: Likewise.
13532 * testsuite/libgomp.fortran/simd7.f90: Likewise.
13533 * testsuite/libgomp.fortran/stack.f90: Likewise.
13534 * testsuite/libgomp.fortran/strassen.f90: Likewise.
13535 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
13536 * testsuite/libgomp.fortran/tabs2.f: Likewise.
13537 * testsuite/libgomp.fortran/target1.f90: Likewise.
13538 * testsuite/libgomp.fortran/target2.f90: Likewise.
13539 * testsuite/libgomp.fortran/target3.f90: Likewise.
13540 * testsuite/libgomp.fortran/target4.f90: Likewise.
13541 * testsuite/libgomp.fortran/target5.f90: Likewise.
13542 * testsuite/libgomp.fortran/target6.f90: Likewise.
13543 * testsuite/libgomp.fortran/target7.f90: Likewise.
13544 * testsuite/libgomp.fortran/target8.f90: Likewise.
13545 * testsuite/libgomp.fortran/task1.f90: Likewise.
13546 * testsuite/libgomp.fortran/task2.f90: Likewise.
13547 * testsuite/libgomp.fortran/task3.f90: Likewise.
13548 * testsuite/libgomp.fortran/task4.f90: Likewise.
13549 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
13550 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
13551 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
13552 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
13553 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
13554 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
13555 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
13556 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
13557 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
13558 * testsuite/libgomp.fortran/udr1.f90: Likewise.
13559 * testsuite/libgomp.fortran/udr10.f90: Likewise.
13560 * testsuite/libgomp.fortran/udr11.f90: Likewise.
13561 * testsuite/libgomp.fortran/udr12.f90: Likewise.
13562 * testsuite/libgomp.fortran/udr13.f90: Likewise.
13563 * testsuite/libgomp.fortran/udr14.f90: Likewise.
13564 * testsuite/libgomp.fortran/udr15.f90: Likewise.
13565 * testsuite/libgomp.fortran/udr2.f90: Likewise.
13566 * testsuite/libgomp.fortran/udr3.f90: Likewise.
13567 * testsuite/libgomp.fortran/udr4.f90: Likewise.
13568 * testsuite/libgomp.fortran/udr5.f90: Likewise.
13569 * testsuite/libgomp.fortran/udr6.f90: Likewise.
13570 * testsuite/libgomp.fortran/udr7.f90: Likewise.
13571 * testsuite/libgomp.fortran/udr8.f90: Likewise.
13572 * testsuite/libgomp.fortran/udr9.f90: Likewise.
13573 * testsuite/libgomp.fortran/vla1.f90: Likewise.
13574 * testsuite/libgomp.fortran/vla2.f90: Likewise.
13575 * testsuite/libgomp.fortran/vla3.f90: Likewise.
13576 * testsuite/libgomp.fortran/vla4.f90: Likewise.
13577 * testsuite/libgomp.fortran/vla5.f90: Likewise.
13578 * testsuite/libgomp.fortran/vla6.f90: Likewise.
13579 * testsuite/libgomp.fortran/vla7.f90: Likewise.
13580 * testsuite/libgomp.fortran/vla8.f90: Likewise.
13581 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
13582 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
13583 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
13584 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
13585 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
13586 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
13587 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
13588 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
13589 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
13590 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
13591 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
13592 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
13593 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
13594 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
13595 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
13596 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
13597 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
13598 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
13599 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
13600 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
13601 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
13602 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
13603 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
13604 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
13605 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
13606 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
13607 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
13608 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
13609 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
13610 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
13611 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
13612 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
13613 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
13614 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
13615 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
13616 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
13617 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
13618 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
13619 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
13620 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
13621 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
13622 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
13623 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
13624 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
13625 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
13626 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
13627 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
13628 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
13629 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
13630 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
13631 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
13632 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
13633 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
13634 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
13635 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
13636 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
13637 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
13638 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
13639 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
13640 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
13641 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
13642 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
13643 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
13644 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
13645 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
13646 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
13647 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
13648 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
13649 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
13650 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
13651 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
13652 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
13653 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
13654 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
13655 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
13656 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
13657 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
13658 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
13659 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
13660 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
13661 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
13662 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13663 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
13664 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
13665 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
13666 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
13667 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
13668 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
13669 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
13670 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
13671 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
13672 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
13673 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
13674 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
13675
13676 2018-03-20 Richard Biener <[email protected]>
13677
13678 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
13679 parallelizable loop.
13680
13681 2018-02-19 Igor Tsimbalist <[email protected]>
13682
13683 PR target/84148
13684 * configure: Regenerate.
13685
13686 2018-02-16 Jakub Jelinek <[email protected]>
13687
13688 PR fortran/84418
13689 * libgomp.fortran/pr84418-1.f90: New test.
13690 * libgomp.fortran/pr84418-2.f90: New test.
13691
13692 2018-02-14 Jakub Jelinek <[email protected]>
13693
13694 PR fortran/84313
13695 * testsuite/libgomp.fortran/threadprivate4.f90: Add
13696 -std=f2003 -fall-intrinsics into dg-additional-options.
13697
13698 2018-02-08 Martin Jambor <[email protected]>
13699
13700 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
13701 clonable.
13702
13703 2018-02-08 Martin Jambor <[email protected]>
13704
13705 * testsuite/libgomp.hsa.c/staticvar.c: New test.
13706
13707 2018-02-07 Rainer Orth <[email protected]>
13708
13709 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
13710 [__cplusplus]: Declare extern "C".
13711
13712 2018-02-07 Tom de Vries <[email protected]>
13713
13714 PR libgomp/84217
13715 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
13716
13717 2018-01-29 Christoph Spiel <[email protected]>
13718 Jakub Jelinek <[email protected]>
13719
13720 PR libgomp/84096
13721 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
13722 instead of omp_lock_t.
13723
13724 2018-01-25 Tom de Vries <[email protected]>
13725
13726 PR target/84028
13727 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
13728
13729 2018-01-24 Tom de Vries <[email protected]>
13730
13731 PR target/83589
13732 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
13733
13734 2018-01-24 Tom de Vries <[email protected]>
13735
13736 PR target/81352
13737 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
13738
13739 2018-01-19 Tom de Vries <[email protected]>
13740 Cesar Philippidis <[email protected]>
13741
13742 PR target/83920
13743 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
13744 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
13745
13746 2018-01-03 Jakub Jelinek <[email protected]>
13747
13748 Update copyright years.
13749
13750 * libgomp.texi: Bump @copying's copyright year.
13751
13752 2017-12-30 Tom de Vries <[email protected]>
13753
13754 PR libgomp/83046
13755 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
13756 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
13757
13758 2017-12-27 Tom de Vries <[email protected]>
13759
13760 PR c++/83046
13761 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
13762 (test_nonstatic): Fix return type to workaround PR83046.
13763
13764 2017-12-05 Jakub Jelinek <[email protected]>
13765
13766 PR testsuite/83281
13767 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
13768 j suffix instead of i.
13769 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
13770 Likewise.
13771
13772 2017-12-01 Cesar Philippidis <[email protected]>
13773
13774 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
13775 call to acc_wait (1).
13776
13777 2017-11-24 Jakub Jelinek <[email protected]>
13778
13779 PR fortran/81304
13780 * testsuite/libgomp.fortran/pr81304.f90: New test.
13781
13782 2017-11-23 Jakub Jelinek <[email protected]>
13783
13784 PR fortran/81841
13785 * libgomp.fortran/pr81841.f90: New test.
13786
13787 2017-11-22 Jakub Jelinek <[email protected]>
13788
13789 PR libgomp/83106
13790 * target.c (gomp_target_init): Compute lengths just once and
13791 use them in both malloc size and subsequent copying.
13792
13793 2017-11-17 Igor Tsimbalist <[email protected]>
13794
13795 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
13796 * acinclude.m4: Add cet.m4.
13797 * configure: Regenerate.
13798 * Makefile.in: Likewise.
13799 * testsuite/Makefile.in: Likewise.
13800
13801 2017-11-15 Tom de Vries <[email protected]>
13802
13803 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
13804 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
13805 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
13806 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
13807 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
13808 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
13809
13810 2017-11-14 Tom de Vries <[email protected]>
13811
13812 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
13813 non-nvidia devices.
13814
13815 2017-11-07 Jakub Jelinek <[email protected]>
13816
13817 PR c++/82835
13818 * testsuite/libgomp.c++/pr82835.C: New test.
13819
13820 2017-11-06 Martin Liska <[email protected]>
13821
13822 * testsuite/libgomp.c++/loop-2.C: Return a value
13823 for functions with non-void return type, or change type to void,
13824 or add -Wno-return-type for test.
13825 * testsuite/libgomp.c++/loop-4.C: Likewise.
13826 * testsuite/libgomp.c++/parallel-1.C: Likewise.
13827 * testsuite/libgomp.c++/shared-1.C: Likewise.
13828 * testsuite/libgomp.c++/single-1.C: Likewise.
13829 * testsuite/libgomp.c++/single-2.C: Likewise.
13830
13831 2017-10-31 Tom de Vries <[email protected]>
13832
13833 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
13834 "do {} while (false)".
13835 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
13836 after HSA_DEBUG call.
13837
13838 2017-10-28 Jakub Jelinek <[email protected]>
13839
13840 * target.c (struct gomp_coalesce_buf): New type.
13841 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
13842 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
13843 (gomp_copy_host2dev): Add CBUF argument, if copying into
13844 the cached ranges, memcpy into buffer instead of copying
13845 into device.
13846 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
13847 Add CBUF argument, pass it through to other calls.
13848 (gomp_map_vars): Aggregate copies from host to device if small enough
13849 and with small enough gaps in between into memcpy into a buffer and
13850 fewer host to device copies from the buffer.
13851 (gomp_update): Adjust gomp_copy_host2dev caller.
13852
13853 2017-10-17 Thomas Schwinge <[email protected]>
13854
13855 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
13856 run" directive.
13857 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
13858 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
13859 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
13860 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
13861
13862 2017-10-16 Tom de Vries <[email protected]>
13863
13864 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
13865 openacc_nvidia_accel_selected.
13866 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
13867 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
13868 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
13869 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
13870 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
13871 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
13872 openacc_nvidia_accel_selected. Skip for shared memory device.
13873 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
13874 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
13875
13876 2017-10-09 Martin Jambor <[email protected]>
13877
13878 PR hsa/82416
13879 * testsuite/libgomp.hsa.c/pr82416.c: New test.
13880
13881 2017-10-07 Tom de Vries <[email protected]>
13882
13883 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
13884 Remove acc_device_nvidia references.
13885 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
13886 Same.
13887
13888 2017-10-05 Tom de Vries <[email protected]>
13889
13890 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
13891 vector_length(32) clause from acc parallel directive.
13892 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
13893
13894 2017-10-04 Tom de Vries <[email protected]>
13895
13896 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
13897 (main): Reduce sum of arr elements. Assert that hres is exactly
13898 representable in 32-bit floating point.
13899 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
13900 (main): Reduce sum of arr elements. Assert that hres and hmres are
13901 exactly representable in 32-bit floating point.
13902 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
13903
13904 2017-09-28 Tom de Vries <[email protected]>
13905
13906 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
13907 setting.
13908 * testsuite/libgomp.c++/pr69393.C: Same.
13909 * testsuite/libgomp.c++/taskloop-1.C: Same.
13910 * testsuite/libgomp.c++/taskloop-3.C: Same.
13911 * testsuite/libgomp.c++/taskloop-4.C: Same.
13912 * testsuite/libgomp.c/for-4.c: Same.
13913 * testsuite/libgomp.c/pr66199-3.c: Same.
13914 * testsuite/libgomp.c/pr66199-4.c: Same.
13915 * testsuite/libgomp.c/pr66199-6.c: Same.
13916 * testsuite/libgomp.c/taskloop-1.c: Same.
13917 * testsuite/libgomp.c/taskloop-3.c: Same.
13918 * testsuite/libgomp.c/taskloop-4.c: Same.
13919 * testsuite/libgomp.fortran/aligned1.f03: Same.
13920 * testsuite/libgomp.fortran/condinc1.f: Same.
13921 * testsuite/libgomp.fortran/condinc3.f90: Same.
13922 * testsuite/libgomp.fortran/crayptr1.f90: Same.
13923 * testsuite/libgomp.fortran/crayptr2.f90: Same.
13924 * testsuite/libgomp.fortran/crayptr3.f90: Same.
13925 * testsuite/libgomp.fortran/omp_cond1.f: Same.
13926 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
13927 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
13928 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
13929 * testsuite/libgomp.fortran/recursion1.f90: Same.
13930 * testsuite/libgomp.fortran/target2.f90: Same.
13931 * testsuite/libgomp.fortran/target5.f90: Same.
13932 * testsuite/libgomp.fortran/task3.f90: Same.
13933
13934 2017-09-28 Tom de Vries <[email protected]>
13935
13936 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
13937 vector_length(32) clause from acc parallel directive.
13938 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
13939
13940 2017-09-27 Tom de Vries <[email protected]>
13941
13942 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
13943 Remove acc_device_nvidia references.
13944
13945 2017-09-16 Tom de Vries <[email protected]>
13946
13947 PR c/81875
13948 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
13949
13950 2017-09-14 Tom de Vries <[email protected]>
13951
13952 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
13953 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
13954 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
13955 * testsuite/libgomp.c/c.exp: Include test-cases from
13956 libgomp.c-c++-common.
13957 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
13958 files.
13959
13960 2017-09-14 Jakub Jelinek <[email protected]>
13961
13962 PR c++/81314
13963 * testsuite/libgomp.c++/pr81314.C: New test.
13964
13965 2017-09-03 Gerald Pfeifer <[email protected]>
13966
13967 * libgomp.texi (Top): www.openacc.org now uses https.
13968 (Enabling OpenACC): Ditto.
13969 (acc_get_num_devices): Ditto.
13970 (acc_set_device_type): Ditto.
13971 (acc_get_device_type): Ditto.
13972 (acc_set_device_num): Ditto.
13973 (acc_get_device_num): Ditto.
13974 (acc_async_test): Ditto.
13975 (acc_async_test_all): Ditto.
13976 (acc_wait): Ditto.
13977 (acc_wait_all): Ditto.
13978 (acc_wait_all_async): Ditto.
13979 (acc_wait_async): Ditto.
13980 (acc_init): Ditto.
13981 (acc_shutdown): Ditto.
13982 (acc_on_device): Ditto.
13983 (acc_malloc): Ditto.
13984 (acc_free): Ditto.
13985 (acc_copyin): Ditto.
13986 (acc_present_or_copyin): Ditto.
13987 (acc_create): Ditto.
13988 (acc_present_or_create): Ditto.
13989 (acc_copyout): Ditto.
13990 (acc_delete): Ditto.
13991 (acc_update_device): Ditto.
13992 (acc_update_self): Ditto.
13993 (acc_map_data): Ditto.
13994 (acc_unmap_data): Ditto.
13995 (acc_deviceptr): Ditto.
13996 (acc_hostptr): Ditto.
13997 (acc_is_present): Ditto.
13998 (acc_memcpy_to_device): Ditto.
13999 (acc_memcpy_from_device): Ditto.
14000 (acc_get_current_cuda_device): Ditto.
14001 (acc_get_current_cuda_context): Ditto.
14002 (acc_get_cuda_stream): Ditto.
14003 (acc_set_cuda_stream): Ditto.
14004 (ACC_DEVICE_TYPE): Ditto.
14005 (ACC_DEVICE_NUM): Ditto.
14006 (OpenACC Library Interoperability): Ditto.
14007
14008 2017-08-09 Jakub Jelinek <[email protected]>
14009
14010 PR c/81687
14011 * testsuite/libgomp.c/pr81687-1.c: New test.
14012 * testsuite/libgomp.c/pr81687-2.c: New test.
14013
14014 2017-08-07 Jakub Jelinek <[email protected]>
14015
14016 PR c/69389
14017 * testsuite/libgomp.c/pr69389.c: New test.
14018 * testsuite/libgomp.c++/pr69389.C: New test.
14019
14020 2017-08-07 Tom de Vries <[email protected]>
14021
14022 PR middle-end/78266
14023 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
14024 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
14025
14026 2017-07-27 Jakub Jelinek <[email protected]>
14027
14028 PR c/45784
14029 * testsuite/libgomp.c/pr45784.c: New test.
14030 * testsuite/libgomp.c++/pr45784.C: New test.
14031
14032 2017-07-19 Tom de Vries <[email protected]>
14033
14034 * testsuite/libgomp.oacc-c/vec.c: New test.
14035
14036 2017-07-03 Tom de Vries <[email protected]>
14037
14038 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
14039
14040 2017-06-27 Tom de Vries <[email protected]>
14041
14042 * plugin/plugin-nvptx.c (notify_var): New function.
14043 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
14044
14045 2017-06-27 Tom de Vries <[email protected]>
14046
14047 * env.c (parse_unsigned_long_1): Factor out of ...
14048 (parse_unsigned_long): ... here.
14049 (parse_int_1): Factor out of ...
14050 (parse_int): ... here.
14051 (parse_int_secure): New function.
14052 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
14053 * secure_getenv.h: Factor out of ...
14054 * plugin/plugin-hsa.c: ... here.
14055 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
14056
14057 2017-06-21 Jakub Jelinek <[email protected]>
14058
14059 PR c++/81130
14060 * testsuite/libgomp.c++/pr81130.C: New test.
14061
14062 2017-06-17 Rainer Orth <[email protected]>
14063
14064 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
14065 default args.
14066 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
14067 dg-xfail-run-if default args.
14068
14069 2017-06-02 Bernd Edlinger <[email protected]>
14070
14071 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
14072 * testsuite/libgomp.c/pr39591-3.c: Likewise.
14073
14074 2017-05-30 Jakub Jelinek <[email protected]>
14075
14076 PR libgomp/80822
14077 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
14078 (gomp_affinity_init_level): Use it. Always analyze the core and thread
14079 sibling lists, depending on level just pick up what CPUs to put
14080 together into a place vs. whether add multiple ordered places.
14081
14082 2017-05-24 Thomas Schwinge <[email protected]>
14083
14084 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
14085 * libgomp.map (OACC_2.0.1): Add these.
14086 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
14087 for "acc_wait", and "acc_wait_all", respectively.
14088 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
14089 for "acc_wait", and "acc_wait_all", respectively.
14090 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
14091 * libgomp.texi (acc_wait, acc_wait_all): Update.
14092 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
14093 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
14094 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
14095
14096 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
14097 acc_present_or_copyin and acc_present_or_create procedures,
14098 respectively.
14099 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
14100 generally different variants of OpenACC Runtime Library functions.
14101 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
14102
14103 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
14104 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
14105
14106 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
14107 of preprocessor definitions.
14108 * libgomp.h (strong_alias): Guard by "#ifdef
14109 HAVE_ATTRIBUTE_ALIAS".
14110 * oacc-mem.c: Provide "acc_pcreate" as alias for
14111 "acc_present_or_create", and "acc_pcopyin" as alias for
14112 "acc_present_or_copyin".
14113 * libgomp.map: New version "OACC_2.0.1".
14114 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
14115 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
14116 its content into...
14117 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
14118 Extend testing.
14119
14120 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
14121 when disabling nvptx offloading.
14122
14123 2017-05-23 Thomas Schwinge <[email protected]>
14124
14125 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
14126 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
14127 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
14128
14129 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
14130 * testsuite/lib/libgomp.exp
14131 (check_effective_target_openacc_nvidia_accel_configured): New
14132 proc.
14133 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
14134 (check_effective_target_c++): New procs.
14135 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
14136 (check_effective_target_c++): Likewise.
14137
14138 2017-05-22 Jakub Jelinek <[email protected]>
14139
14140 PR middle-end/80809
14141 * testsuite/libgomp.c/pr80809-2.c: New test.
14142 * testsuite/libgomp.c/pr80809-3.c: New test.
14143
14144 PR middle-end/80809
14145 * testsuite/libgomp.c/pr80809-1.c: New test.
14146
14147 PR middle-end/80853
14148 * testsuite/libgomp.c/pr80853.c: New test.
14149
14150 2017-05-19 Thomas Schwinge <[email protected]>
14151
14152 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
14153 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
14154 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
14155 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
14156 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
14157
14158 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
14159 Debug output for failure.
14160
14161 2017-05-12 Rainer Orth <[email protected]>
14162
14163 * testsuite/lib/libgomp.exp: Load scanlang.exp.
14164
14165 2017-04-27 Jakub Jelinek <[email protected]>
14166
14167 PR bootstrap/80531
14168 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
14169 bootstrap compare failures.
14170
14171 2017-04-20 Alexander Monakov <[email protected]>
14172
14173 * testsuite/libgomp.c/target-36.c: New testcase.
14174
14175 2017-04-13 Jakub Jelinek <[email protected]>
14176
14177 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
14178 instead of char.
14179
14180 2017-04-11 Jakub Jelinek <[email protected]>
14181
14182 PR libgomp/80394
14183 * testsuite/libgomp.c/pr80394.c: New test.
14184
14185 2017-04-04 Jakub Jelinek <[email protected]>
14186
14187 PR libgomp/79876
14188 * config/posix/thread-stacksize.h: New file.
14189 * config/darwin/thread-stacksize.h: New file.
14190 * config/nvptx/thread-stacksize.h: New file.
14191 * env.c: Include thread-stacksize.h.
14192 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
14193 instead of 0. Call pthread_attr_setstacksize even if
14194 GOMP_DEFAULT_STACKSIZE is non-zero.
14195
14196 2017-03-30 Jakub Jelinek <[email protected]>
14197
14198 * env.c (initialize_env): Initialize stacksize to 0.
14199
14200 2017-03-22 Cesar Philippidis <[email protected]>
14201
14202 PR c++/80029
14203 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
14204
14205 2017-03-08 Jakub Jelinek <[email protected]>
14206
14207 PR c/79940
14208 * testsuite/libgomp.c/pr79940.c: New test.
14209
14210 2017-02-15 Rainer Orth <[email protected]>
14211
14212 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
14213 targets.
14214 Add __float128 options.
14215
14216 2017-02-11 John David Anglin <[email protected]>
14217
14218 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
14219 hppa*-*-* dg-skip-if directive.
14220
14221 2017-02-09 Jakub Jelinek <[email protected]>
14222
14223 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
14224 dg-skip-if directive into a comment.
14225
14226 2017-02-09 Nathan Sidwell <[email protected]>
14227 Chung-Lin Tang <[email protected]>
14228
14229 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
14230 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
14231 add additional case.
14232 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
14233 "openacc_nvidia_accel_selected".
14234 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
14235 Add num_workers(8) clause.
14236
14237 2017-02-08 John David Anglin <[email protected]>
14238
14239 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
14240 hppa*-*-*.
14241 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
14242 include complex.h on hppa*-*-hpux*.
14243 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
14244
14245 2017-02-02 Thomas Schwinge <[email protected]>
14246
14247 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
14248
14249 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
14250 GOMP_OFFLOAD_openacc_exec. Adjust all users.
14251 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
14252 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
14253 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
14254 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
14255 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
14256 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
14257 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
14258 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
14259
14260 2017-01-31 Thomas Schwinge <[email protected]>
14261
14262 * libgomp-plugin.h: #include <stdbool.h>.
14263 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
14264 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
14265 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
14266 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
14267 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
14268 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
14269 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
14270 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
14271 (GOMP_OFFLOAD_openacc_register_async_cleanup)
14272 (GOMP_OFFLOAD_openacc_async_test)
14273 (GOMP_OFFLOAD_openacc_async_test_all)
14274 (GOMP_OFFLOAD_openacc_async_wait)
14275 (GOMP_OFFLOAD_openacc_async_wait_async)
14276 (GOMP_OFFLOAD_openacc_async_wait_all)
14277 (GOMP_OFFLOAD_openacc_async_wait_all_async)
14278 (GOMP_OFFLOAD_openacc_async_set_async)
14279 (GOMP_OFFLOAD_openacc_create_thread_data)
14280 (GOMP_OFFLOAD_openacc_destroy_thread_data)
14281 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
14282 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
14283 (GOMP_OFFLOAD_openacc_get_cuda_stream)
14284 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
14285 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
14286 these.
14287 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
14288 (GOMP_OFFLOAD_unload_image): Fix argument types.
14289
14290 2017-01-26 Jakub Jelinek <[email protected]>
14291
14292 * testsuite/lib/libgomp.exp
14293 (check_effective_target_hsa_offloading_selected_nocache): Fix up
14294 check_compile invocation. Fix up removal of executable. Drop
14295 bogus "2>&1" argument.
14296
14297 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
14298 directive.
14299
14300 2017-01-24 Pekka Jääskeläinen <[email protected]>
14301 Martin Jambor <[email protected]>
14302
14303 * plugin/hsa.h: Moved to top level include.
14304 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
14305
14306 2017-01-21 Jakub Jelinek <[email protected]>
14307
14308 PR other/79046
14309 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
14310 of cat to get version from BASE-VER file.
14311 * testsuite/Makefile.in: Regenerated.
14312
14313 2017-01-19 Jakub Jelinek <[email protected]>
14314
14315 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
14316 for _WIN64.
14317
14318 2017-01-17 Jakub Jelinek <[email protected]>
14319
14320 * plugin/hsa.h: Add GCC runtime library exception.
14321 * plugin/hsa_ext_finalize.h: Likewise.
14322
14323 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
14324 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
14325 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
14326 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
14327 plugin/include/cuda as include dir and -ldl instead of -lcuda as
14328 library to link ptx plugin against.
14329 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
14330 (CUDA_CALLS): Define.
14331 (cuda_lib, cuda_lib_inited): New variables.
14332 (init_cuda_lib): New function.
14333 (CUDA_CALL_PREFIX): Define.
14334 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
14335 (CUDA_CALL): Use FN instead of (FN).
14336 (CUDA_CALL_NOCHECK): Define.
14337 (cuda_error, fini_streams_for_device, select_stream_for_async,
14338 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
14339 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
14340 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
14341 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
14342 CUDA_CALL_NOCHECK.
14343 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
14344 CUDA_CALL_NOCHECK.
14345 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
14346 Use CUDA_CALL_NOCHECK.
14347 * plugin/cuda/cuda.h: New file.
14348 * config.h.in: Regenerated.
14349 * configure: Regenerated.
14350
14351 PR other/79046
14352 * configure.ac: Add GCC_BASE_VER.
14353 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
14354 get version from BASE-VER file.
14355 * testsuite/Makefile.in: Regenerated.
14356 * configure: Regenerated.
14357 * Makefile.in: Regenerated.
14358
14359 2017-01-09 Francois-Xavier Coudert <[email protected]>
14360
14361 PR libgomp/60670
14362 * Makefile.am: Make fincludedir multilib-aware.
14363 * Makefile.in: Regenerate.
14364
14365 2017-01-01 Jakub Jelinek <[email protected]>
14366
14367 Update copyright years.
14368
14369 * libgomp.texi: Bump @copying's copyright year.
14370
14371 2016-12-02 Sebastian Huber <[email protected]>
14372
14373 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
14374 pthread_spinlock_t instead of gomp_mutex_t lock.
14375 (gomp_get_thread_pool): Likewise.
14376 (gomp_release_thread_pool): Likewise.
14377 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
14378 Likewise.
14379
14380 2016-12-02 Sebastian Huber <[email protected]>
14381
14382 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
14383 thread pool in case nthreads == 1.
14384
14385 2016-11-30 Alexander Monakov <[email protected]>
14386
14387 * config/nvptx/env.c: Delete.
14388 * icv.c: Move definitions of ICV variables back ...
14389 * env.c: ...here. Do not compile environment-related functionality if
14390 LIBGOMP_OFFLOADED_ONLY is set.
14391
14392 2016-11-30 Alexander Monakov <[email protected]>
14393
14394 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
14395 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
14396 * configure: Regenerate.
14397 * config.h.in: Likewise.
14398
14399 2016-11-30 Alexander Monakov <[email protected]>
14400
14401 * Makefile.in: Regenerate with automake-1.11.6.
14402 * aclocal.m4: Likewise.
14403 * configure: Likewise.
14404 * testsuite/Makefile.in: Likewise.
14405
14406 2016-11-28 Alexander Monakov <[email protected]>
14407
14408 * config/nvptx/critical.c: Delete to use generic implementation.
14409
14410 2016-11-28 Jonas Hahnfeld <[email protected]>
14411
14412 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
14413 ../../affinity.c as fallback.
14414 * config/nvptx/affinity.c: Delete to use fallback implementation.
14415
14416 2016-11-23 Alexander Monakov <[email protected]>
14417 Jakub Jelinek <[email protected]>
14418 Dmitry Melnik <[email protected]>
14419
14420 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
14421 * Makefile.in. Regenerate.
14422 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
14423 (LIBGOMP_USE_PTHREADS): ...here; new define.
14424 * configure: Regenerate.
14425 * config.h.in: Likewise.
14426 * config/posix/affinity.c: Move to...
14427 * affinity.c: ...here (new file). Guard use of Pthreads-specific
14428 interface by LIBGOMP_USE_PTHREADS.
14429 * critical.c: Split out GOMP_atomic_{start,end} into...
14430 * atomic.c: ...here (new file).
14431 * env.c: Split out ICV definitions into...
14432 * icv.c: ...here (new file) and...
14433 * icv-device.c: ...here. New file.
14434 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
14435 (gomp_destroy_lock_30): Ditto.
14436 (gomp_set_lock_30): Ditto.
14437 (gomp_unset_lock_30): Ditto.
14438 (gomp_test_lock_30): Ditto.
14439 (gomp_init_nest_lock_30): Ditto.
14440 (gomp_destroy_nest_lock_30): Ditto.
14441 (gomp_set_nest_lock_30): Ditto.
14442 (gomp_unset_nest_lock_30): Ditto.
14443 (gomp_test_nest_lock_30): Ditto.
14444 * lock.c: New.
14445 * config/nvptx/lock.c: New.
14446 * config/nvptx/bar.c: New.
14447 * config/nvptx/bar.h: New.
14448 * config/nvptx/doacross.h: New.
14449 * config/nvptx/error.c: New.
14450 * config/nvptx/icv-device.c: New.
14451 * config/nvptx/mutex.h: New.
14452 * config/nvptx/pool.h: New.
14453 * config/nvptx/proc.c: New.
14454 * config/nvptx/ptrlock.h: New.
14455 * config/nvptx/sem.h: New.
14456 * config/nvptx/simple-bar.h: New.
14457 * config/nvptx/target.c: New.
14458 * config/nvptx/task.c: New.
14459 * config/nvptx/team.c: New.
14460 * config/nvptx/time.c: New.
14461 * config/posix/simple-bar.h: New.
14462 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
14463 (gomp_num_teams_var): Declare.
14464 (struct gomp_thread_pool): Change threads_dock member to
14465 gomp_simple_barrier_t.
14466 [__nvptx__] (gomp_thread): New implementation.
14467 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
14468 (gomp_thread_destructor): Ditto.
14469 (gomp_init_thread_affinity): Ditto.
14470 * team.c: Guard uses of Pthreads-specific interfaces by
14471 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
14472 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
14473 * config/nvptx/alloc.c: Delete.
14474 * config/nvptx/barrier.c: Ditto.
14475 * config/nvptx/fortran.c: Ditto.
14476 * config/nvptx/iter.c: Ditto.
14477 * config/nvptx/iter_ull.c: Ditto.
14478 * config/nvptx/loop.c: Ditto.
14479 * config/nvptx/loop_ull.c: Ditto.
14480 * config/nvptx/ordered.c: Ditto.
14481 * config/nvptx/parallel.c: Ditto.
14482 * config/nvptx/priority_queue.c: Ditto.
14483 * config/nvptx/sections.c: Ditto.
14484 * config/nvptx/single.c: Ditto.
14485 * config/nvptx/splay-tree.c: Ditto.
14486 * config/nvptx/work.c: Ditto.
14487 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
14488 -foffload=-lgfortran in addition to -lgfortran.
14489 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
14490 * plugin/plugin-nvptx.c: Include <limits.h>.
14491 (struct targ_fn_descriptor): Add new fields.
14492 (struct ptx_device): Ditto. Set them...
14493 (nvptx_open_device): ...here.
14494 (nvptx_adjust_launch_bounds): New.
14495 (nvptx_host2dev): Allow NULL 'nvthd'.
14496 (nvptx_dev2host): Ditto.
14497 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
14498 (link_ptx): Adjust log sizes.
14499 (nvptx_host2dev): Allow NULL 'nvthd'.
14500 (nvptx_dev2host): Ditto.
14501 (nvptx_set_clocktick): New. Use it...
14502 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
14503 fields.
14504 (GOMP_OFFLOAD_dev2dev): New.
14505 (nvptx_adjust_launch_bounds): New.
14506 (nvptx_stacks_size): New.
14507 (nvptx_stacks_alloc): New.
14508 (nvptx_stacks_free): New.
14509 (GOMP_OFFLOAD_run): New.
14510 (GOMP_OFFLOAD_async_run): New (stub).
14511
14512 2016-11-23 Martin Jambor <[email protected]>
14513
14514 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
14515 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
14516 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
14517
14518 2016-11-23 Martin Liska <[email protected]>
14519 Martin Jambor <[email protected]>
14520
14521 * plugin/hsa.h: New file.
14522 * plugin/hsa_ext_finalize.h: New file.
14523 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
14524 header file unistd.h, and functions secure_getenv, __secure_getenv,
14525 getuid, geteuid, getgid and getegid.
14526 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
14527 -D_GNU_SOURCE.
14528 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
14529 Handle various cases of secure_getenv presence, add an implementation
14530 when we can test effective UID and GID.
14531 (struct hsa_runtime_fn_info): New structure.
14532 (hsa_runtime_fn_info hsa_fns): New variable.
14533 (hsa_runtime_lib): Likewise.
14534 (support_cpu_devices): Likewise.
14535 (init_enviroment_variables): Load newly introduced ENV
14536 variables.
14537 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
14538 (hsa_fatal): Likewise.
14539 (DLSYM_FN): New macro.
14540 (init_hsa_runtime_functions): New function.
14541 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
14542 structure. Depending on environment, also allow CPU devices.
14543 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
14544 (get_kernarg_memory_region): Likewise.
14545 (GOMP_OFFLOAD_init_device): Likewise.
14546 (destroy_hsa_program): Likewise.
14547 (init_basic_kernel_info): New function.
14548 (GOMP_OFFLOAD_load_image): Use it.
14549 (create_and_finalize_hsa_program): Call hsa run-time functions via
14550 hsa_fns structure.
14551 (create_single_kernel_dispatch): Likewise.
14552 (release_kernel_dispatch): Likewise.
14553 (init_single_kernel): Likewise.
14554 (parse_target_attributes): Allow up multiple HSA grid dimensions.
14555 (get_group_size): New function.
14556 (run_kernel): Likewise.
14557 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
14558 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
14559 structure.
14560 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
14561 * testsuite/libgomp-test-support.exp.in: Likewise.
14562 * Makefile.in: Regenerated.
14563 * aclocal.m4: Likewise.
14564 * config.h.in: Likewise.
14565 * configure: Likewise.
14566 * testsuite/Makefile.in: Likewise.
14567
14568 2016-11-15 Martin Jambor <[email protected]>
14569 Alexander Monakov <[email protected]>
14570
14571 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
14572 mapping clauses to target constructs.
14573 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
14574
14575 2016-11-15 Matthias Klose <[email protected]>
14576
14577 * configure: Regenerate.
14578
14579 2016-11-10 Jakub Jelinek <[email protected]>
14580
14581 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
14582 * omp_lib.h.in (openmp_version): Likewise.
14583 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
14584 of 201307.
14585 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
14586
14587 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
14588 (fib_wrapper): Add map(from: x) clause.
14589 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
14590 (e_53_2): Likewise.
14591 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
14592 (accum): Add map(tmp) clause.
14593 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
14594 (accum): Add map(tofrom: tmp) clause.
14595 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
14596 (gramSchmidt): Likewise.
14597 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
14598 map(tofrom: sum) clause.
14599 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
14600 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
14601 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
14602 only allowed on the loop iterator.
14603 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
14604 * testsuite/libgomp.fortran/taskloop2.f90: New test.
14605 * testsuite/libgomp.fortran/taskloop4.f90: New test.
14606 * testsuite/libgomp.fortran/doacross1.f90: New test.
14607 * testsuite/libgomp.fortran/doacross3.f90: New test.
14608 * testsuite/libgomp.fortran/taskloop1.f90: New test.
14609 * testsuite/libgomp.fortran/taskloop3.f90: New test.
14610 * testsuite/libgomp.fortran/doacross2.f90: New test.
14611 * testsuite/libgomp.c/doacross-1.c (main): Add missing
14612 #pragma omp atomic read.
14613 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
14614 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
14615
14616 2016-11-02 Cesar Philippidis <[email protected]>
14617 Nathan Sidwell <[email protected]>
14618
14619 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
14620 to determine default geometry.
14621 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
14622 dimension.
14623
14624 2016-11-01 Jakub Jelinek <[email protected]>
14625
14626 * hashtab.h: Use standard GPLv3 with runtime exception
14627 boilerplate.
14628
14629 2016-10-27 Aldy Hernandez <[email protected]>
14630
14631 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
14632 size when allocating new thread.
14633
14634 2016-09-14 Marek Polacek <[email protected]>
14635
14636 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
14637
14638 2016-08-19 Jakub Jelinek <[email protected]>
14639
14640 PR fortran/71014
14641 * testsuite/libgomp.fortran/pr71014.f90: New test.
14642
14643 2016-08-18 Chung-Lin Tang <[email protected]>
14644
14645 PR middle-end/70895
14646 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
14647 firstprivate clauses.
14648 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
14649 copy clauses.
14650 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
14651 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
14652 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
14653 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
14654 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
14655 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
14656 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
14657 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
14658 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
14659 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
14660 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
14661 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
14662
14663 2016-08-14 Chung-Lin Tang <[email protected]>
14664
14665 PR fortran/70598
14666 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
14667
14668 2016-08-08 Jakub Jelinek <[email protected]>
14669
14670 PR c++/58706
14671 * testsuite/libgomp.c++/pr58706.C: New test.
14672
14673 2016-08-04 Thomas Schwinge <[email protected]>
14674
14675 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
14676 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
14677 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
14678 Likewise.
14679 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
14680 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
14681 Likewise.
14682 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
14683
14684 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
14685 test, and don't hardcode -O0.
14686
14687 2016-08-03 Nathan Sidwell <[email protected]>
14688
14689 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
14690
14691 2016-07-15 Cesar Philippidis <[email protected]>
14692
14693 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
14694 test.
14695
14696 2016-07-03 H.J. Lu <[email protected]>
14697
14698 PR middle-end/71734
14699 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
14700 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
14701
14702 2016-07-01 Jakub Jelinek <[email protected]>
14703
14704 PR fortran/71717
14705 * testsuite/libgomp.fortran/associate3.f90: New test.
14706
14707 2016-06-17 Jakub Jelinek <[email protected]>
14708
14709 * testsuite/libgomp.c++/target-21.C: New test.
14710
14711 2016-06-16 Jakub Jelinek <[email protected]>
14712
14713 * testsuite/libgomp.c++/target-20.C: New test.
14714
14715 2016-06-10 Thomas Schwinge <[email protected]>
14716 Cesar Philippidis <[email protected]>
14717
14718 PR middle-end/71373
14719 * libgomp.oacc-c/nested-function-1.c: New file.
14720 * libgomp.oacc-c/nested-function-2.c: Likewise.
14721 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
14722 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
14723 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
14724
14725 2016-06-10 Thomas Schwinge <[email protected]>
14726
14727 PR c/71381
14728 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
14729 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
14730 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
14731
14732 2016-06-03 Chung-Lin Tang <[email protected]>
14733
14734 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
14735 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
14736
14737 2016-06-01 Cesar Philippidis <[email protected]>
14738
14739 PR c/70688
14740 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
14741
14742 2016-05-26 Jakub Jelinek <[email protected]>
14743
14744 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
14745 instead of invalid schedule(static, 0).
14746 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
14747
14748 2016-05-26 Chung-Lin Tang <[email protected]>
14749
14750 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
14751 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
14752 parameter, use to set async stream around call to gomp_unmap_vars,
14753 call gomp_unmap_vars() with 'do_copyfrom' set to true.
14754 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
14755 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
14756 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
14757 (event_add): Add int parameter, initialize 'val' field when
14758 adding new ptx_event struct.
14759 (nvptx_evec): Adjust event_add() call arguments.
14760 (nvptx_host2dev): Likewise.
14761 (nvptx_dev2host): Likewise.
14762 (nvptx_wait_async): Likewise.
14763 (nvptx_wait_all_async): Likewise.
14764 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
14765 pass to event_add() call.
14766 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
14767 parameter.
14768 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
14769 call openacc.register_async_cleanup_func() hook.
14770 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
14771 * target.c (gomp_copy_from_async): Delete function.
14772 (gomp_map_vars): Remove async_refcount.
14773 (gomp_unmap_vars): Likewise.
14774 (gomp_load_image_to_device): Likewise.
14775 (omp_target_associate_ptr): Likewise.
14776 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
14777 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
14778 (gomp_copy_from_async): Remove.
14779
14780 2016-05-26 Chung-Lin Tang <[email protected]>
14781
14782 * target.c (gomp_device_copy): New function.
14783 (gomp_copy_host2dev): Likewise.
14784 (gomp_copy_dev2host): Likewise.
14785 (gomp_free_device_memory): Likewise.
14786 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
14787 (gomp_map_pointer): Likewise.
14788 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
14789 NULL value from alloc_func plugin hook.
14790 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
14791 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
14792 (gomp_unmap_vars): Likewise.
14793 (gomp_update): Adjust to call gomp_copy_dev2host and
14794 gomp_copy_host2dev functions.
14795 (gomp_unload_image_from_device): Handle false value from
14796 unload_image_func plugin hook.
14797 (gomp_init_device): Handle false value from init_device_func
14798 plugin hook.
14799 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
14800 (omp_target_free): Adjust to call gomp_free_device_memory.
14801 (omp_target_memcpy): Handle return values from host2dev_func,
14802 dev2host_func, and dev2dev_func plugin hooks.
14803 (omp_target_memcpy_rect_worker): Likewise.
14804 (gomp_target_fini): Handle false value from fini_device_func
14805 plugin hook.
14806 * libgomp.h (struct gomp_device_descr): Adjust return type of
14807 init_device_func, fini_device_func, unload_image_func, free_func,
14808 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
14809 * oacc-init.c (acc_shutdown_1): Handle false value from
14810 fini_device_func plugin hook.
14811 * oacc-host.c (host_init_device): Change return type to bool.
14812 (host_fini_device): Likewise.
14813 (host_unload_image): Likewise.
14814 (host_free): Likewise.
14815 (host_dev2host): Likewise.
14816 (host_host2dev): Likewise.
14817 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
14818 (acc_memcpy_to_device): Likewise.
14819 (acc_memcpy_from_device): Likewise.
14820 (delete_copyout): Add libfnname parameter, handle free_func
14821 hook fatal error case.
14822 (acc_delete): Adjust delete_copyout call.
14823 (acc_copyout): Likewise.
14824 (update_dev_host): Move gomp_mutex_unlock to after
14825 host2dev/dev2host hook calls.
14826
14827 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
14828 to 'hsa_error_msg', for clarity.
14829 (hsa_fatal): Likewise.
14830 (hsa_error): New function.
14831 (init_hsa_context): Change return type to bool, adjust to return
14832 false on error.
14833 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
14834 return value.
14835 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
14836 return false on error.
14837 (get_agent_info): Adjust to return NULL on error.
14838 (destroy_hsa_program): Change return type to bool, adjust to
14839 return false on error.
14840 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
14841 (destroy_module): Change return type to bool, adjust to
14842 return false on error.
14843 (GOMP_OFFLOAD_unload_image): Likewise.
14844 (GOMP_OFFLOAD_fini_device): Likewise.
14845 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
14846 (GOMP_OFFLOAD_free): Change to return false when called.
14847 (GOMP_OFFLOAD_dev2host): Likewise.
14848 (GOMP_OFFLOAD_host2dev): Likewise.
14849 (GOMP_OFFLOAD_dev2dev): Likewise.
14850
14851 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
14852 (CUDA_CALL): Likewise.
14853 (CUDA_CALL_ASSERT): Likewise.
14854 (map_init): Change return type to bool, use CUDA_CALL* macros.
14855 (map_fini): Likewise.
14856 (init_streams_for_device): Change return type to bool, adjust
14857 call to map_init.
14858 (fini_streams_for_device): Change return type to bool, adjust
14859 call to map_fini.
14860 (select_stream_for_async): Release stream_lock before calls to
14861 GOMP_PLUGIN_fatal, adjust call to map_init.
14862 (nvptx_init): Use CUDA_CALL* macros.
14863 (nvptx_attach_host_thread_to_device): Change return type to bool,
14864 use CUDA_CALL* macros.
14865 (nvptx_open_device): Use CUDA_CALL* macros.
14866 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
14867 macros.
14868 (nvptx_get_num_devices): Use CUDA_CALL* macros.
14869 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
14870 (nvptx_exec): Use CUDA_CALL* macros.
14871 (nvptx_alloc): Use CUDA_CALL* macros.
14872 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
14873 (nvptx_host2dev): Likewise.
14874 (nvptx_dev2host): Likewise.
14875 (nvptx_wait): Use CUDA_CALL* macros.
14876 (nvptx_wait_async): Likewise.
14877 (nvptx_wait_all): Likewise.
14878 (nvptx_wait_all_async): Likewise.
14879 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
14880 use CUDA_CALL* macros, adjust call to map_fini.
14881 (GOMP_OFFLOAD_init_device): Change return type to bool,
14882 adjust code accordingly.
14883 (GOMP_OFFLOAD_fini_device): Likewise.
14884 (GOMP_OFFLOAD_load_image): Adjust calls to
14885 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
14886 use CUDA_CALL* macros.
14887 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
14888 return code.
14889 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
14890 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
14891 handle error return.
14892 (GOMP_OFFLOAD_dev2host): Likewise.
14893 (GOMP_OFFLOAD_host2dev): Likewise.
14894 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
14895 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
14896
14897 2016-05-24 Cesar Philippidis <[email protected]>
14898
14899 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
14900 (acc_free): Likewise.
14901 (acc_memcpy_to_device): Likewise.
14902 (acc_memcpy_from_device): Likewise.
14903 (acc_deviceptr): Likewise.
14904 (acc_hostptr): Likewise.
14905 (acc_is_present): Likewise.
14906 (acc_map_data): Likewise.
14907 (acc_unmap_data): Likewise.
14908 (present_create_copy): Likewise.
14909 (delete_copyout): Likewise.
14910 (update_dev_host): Likewise.
14911 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
14912 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
14913 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
14914 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
14915 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
14916 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
14917 it only runs on nvptx targets.
14918 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
14919 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
14920 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14921 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14922 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14923 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14924 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14925 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14926 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14927 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
14928 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14929 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14930 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14931 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14932 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14933 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14934 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14935 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14936 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14937 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14938 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14939 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14940 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14941
14942 2016-05-23 Martin Jambor <[email protected]>
14943
14944 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
14945
14946 2016-05-17 Chung-Lin Tang <[email protected]>
14947
14948 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
14949 to gomp_init_targets_once.
14950 (acc_set_device_type): Remove !cached_base_dev condition on call to
14951 gomp_init_targets_once, move call to before acc_device_lock acquire,
14952 to avoid deadlock.
14953 (acc_get_device_num): Remove !cached_base_dev condition on call to
14954 gomp_init_targets_once.
14955 (acc_set_device_num): Likewise.
14956
14957 2016-05-16 Martin Jambor <[email protected]>
14958
14959 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
14960
14961 2016-05-02 Nathan Sidwell <[email protected]>
14962
14963 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
14964 expected partitioning.
14965
14966 2016-04-29 Cesar Philippidis <[email protected]>
14967
14968 PR middle-end/70626
14969 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
14970 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
14971 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
14972
14973 2016-04-21 Alexander Monakov <[email protected]>
14974
14975 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
14976 non-fatal.
14977
14978 2016-04-19 Jakub Jelinek <[email protected]>
14979
14980 PR middle-end/70680
14981 * testsuite/libgomp.c/pr70680-1.c: New test.
14982 * testsuite/libgomp.c/pr70680-2.c: New test.
14983
14984 2016-04-14 Cesar Philippidis <[email protected]>
14985
14986 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
14987 pass parameter variables to subroutines.
14988
14989 2016-04-14 Cesar Philippidis <[email protected]>
14990
14991 PR middle-end/70643
14992 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
14993
14994 2016-04-13 Cesar Philippidis <[email protected]>
14995
14996 PR testsuite/68242
14997 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
14998 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
14999
15000 2016-04-12 Thomas Schwinge <[email protected]>
15001
15002 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
15003 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
15004 GOACC_declare prototype.
15005
15006 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
15007 Merge this file, and...
15008 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
15009 ... this file, and...
15010 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
15011 ... this file, and...
15012 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
15013 ... this file, and...
15014 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
15015 ... this file, and...
15016 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
15017 ... this file, and...
15018 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
15019 ... this file, and...
15020 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
15021 ... this file, and...
15022 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
15023 ... this file, and...
15024 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
15025 ... this file, and...
15026 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
15027 ... this file, and...
15028 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
15029 ... this file, and...
15030 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
15031 ... this file into...
15032 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
15033 file.
15034
15035 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
15036 Make failure observable.
15037
15038 2016-04-12 Jakub Jelinek <[email protected]>
15039
15040 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
15041 field.
15042 * target.c (gomp_target_fallback_firstprivate,
15043 gomp_target_unshare_firstprivate): Removed.
15044 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
15045 before waiting for dependencies.
15046 (gomp_target_task_fn): Don't copy firstprivate vars here.
15047 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
15048 firstprivate_copies here.
15049 (gomp_create_target_task): Don't initialize firstprivate_copies field.
15050 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
15051 explicit/implicit firstprivate.
15052
15053 2016-04-08 Cesar Philippidis <[email protected]>
15054
15055 PR lto/70289
15056 PR ipa/70348
15057 PR tree-optimization/70373
15058 PR middle-end/70533
15059 PR middle-end/70534
15060 PR middle-end/70535
15061 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
15062 test.
15063 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
15064 test.
15065 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
15066 test.
15067 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
15068 test.
15069 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
15070 test.
15071 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
15072 test.
15073 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
15074 test.
15075 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
15076 test.
15077 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
15078 test.
15079 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
15080 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
15081 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
15082 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
15083 test.
15084 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
15085 test.
15086 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
15087 test.
15088 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
15089 test.
15090 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
15091 coverage.
15092 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
15093 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
15094 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
15095 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
15096 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
15097 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
15098 coverage.
15099 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
15100 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
15101 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
15102 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
15103 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
15104 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
15105 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
15106 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
15107 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
15108 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
15109 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
15110 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
15111 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
15112 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
15113 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
15114
15115 2016-03-30 Thomas Schwinge <[email protected]>
15116 James Norris <[email protected]>
15117 Nathan Sidwell <[email protected]>
15118 Julian Brown <[email protected]>
15119 Cesar Philippidis <[email protected]>
15120 Chung-Lin Tang <[email protected]>
15121 Tom de Vries <[email protected]>
15122
15123 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
15124 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
15125 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
15126 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
15127 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
15128 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
15129 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
15130 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
15131 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
15132 XFAIL.
15133 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
15134 Incorporate...
15135 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
15136 file.
15137 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
15138 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
15139 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
15140 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
15141 Likewise.
15142 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
15143 Likewise.
15144 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
15145 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
15146 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
15147 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
15148 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
15149 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
15150 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
15151 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
15152 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
15153 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
15154 Likewise.
15155 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
15156 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
15157 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
15158 file...
15159 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
15160 file into...
15161 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
15162 file. Update.
15163 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
15164 file.
15165 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
15166 Likewise.
15167 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
15168 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
15169 ... this new file. Update.
15170 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
15171 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
15172 ... this new file. Update.
15173 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
15174 file. Incorporate...
15175 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
15176 file, and...
15177 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
15178 file, and...
15179 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
15180 file.
15181 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
15182
15183 2016-03-29 Thomas Schwinge <[email protected]>
15184
15185 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
15186 set-torture-options.
15187
15188 2016-03-24 Thomas Schwinge <[email protected]>
15189
15190 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
15191 gcc-dg-runtest.
15192 * testsuite/libgomp.oacc-c/c.exp: Likewise.
15193 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
15194 -fno-builtin-acc_on_device instead of -O0.
15195 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
15196 -O0.
15197 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
15198 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
15199 Likewise.
15200 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
15201 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
15202 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
15203 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
15204 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
15205 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
15206 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
15207 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
15208 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
15209 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
15210 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
15211 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
15212 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
15213 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
15214 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
15215 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
15216 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
15217 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
15218 Don't specify -O2.
15219 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
15220 Likewise.
15221 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
15222 Likewise.
15223
15224 2016-03-24 Martin Liska <[email protected]>
15225
15226 * plugin/plugin-hsa.c (packet_store_release): New function
15227 that is taken from the HSA runtime manual.
15228 (GOMP_OFFLOAD_run): Use the function.
15229
15230 2016-03-23 Jakub Jelinek <[email protected]>
15231
15232 PR c++/70376
15233 * testsuite/libgomp.c++/pr70376.C: New test.
15234
15235 2016-03-23 Tom de Vries <[email protected]>
15236
15237 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
15238 initialization of lresult and lvresult.
15239 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
15240
15241 2016-03-23 James Norris <[email protected]>
15242 Daichi Fukuoka <[email protected]>
15243
15244 PR libgomp/69414
15245 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
15246 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
15247 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
15248 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
15249
15250 2016-03-23 Martin Liska <[email protected]>
15251
15252 PR hsa/70337
15253 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
15254 argument just in case a dispatched kernel uses that argument.
15255
15256 2016-03-16 Thomas Schwinge <[email protected]>
15257
15258 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
15259 -ftree-parallelize-loops/-fopenacc changes.
15260 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
15261 Likewise.
15262 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
15263 Likewise.
15264 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
15265 Likewise.
15266 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
15267 Likewise.
15268 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
15269 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
15270
15271 2016-03-13 Thomas Schwinge <[email protected]>
15272
15273 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
15274 always_ld_library_path the path to libgcc_s.
15275
15276 2016-03-10 Cesar Philippidis <[email protected]>
15277
15278 PR testsuite/70009
15279 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
15280
15281 2016-03-09 Tom de Vries <[email protected]>
15282
15283 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
15284 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
15285 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
15286 Same.
15287 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
15288 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
15289 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
15290 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
15291
15292 2016-03-07 Martin Jambor <[email protected]>
15293
15294 * testsuite/lib/libgomp.exp
15295 (check_effective_target_hsa_offloading_selected_nocache): New.
15296 (check_effective_target_hsa_offloading_selected): Likewise.
15297 * testsuite/libgomp.hsa.c/c.exp: Likewise.
15298 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
15299 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
15300 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
15301 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
15302 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
15303 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
15304 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
15305 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
15306 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
15307 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
15308 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
15309 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
15310 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
15311 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
15312 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
15313 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
15314
15315 2016-03-07 Martin Jambor <[email protected]>
15316
15317 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
15318 non-shared memory accelerators.
15319 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
15320 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
15321 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
15322 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
15323 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
15324 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
15325 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
15326 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
15327 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
15328
15329 2016-03-07 Martin Jambor <[email protected]>
15330
15331 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
15332 ALWAYS_CFLAGS.
15333
15334 2016-03-02 Jakub Jelinek <[email protected]>
15335
15336 PR libgomp/69555
15337 * testsuite/libgomp.c++/pr69555-1.C: New test.
15338 * testsuite/libgomp.c++/pr69555-2.C: New test.
15339
15340 2016-02-26 Keith McDaniel <[email protected]>
15341 Martin Jambor <[email protected]>
15342
15343 * testsuite/lib/libgomp.exp
15344 (check_effective_target_offload_device_shared_as): New proc.
15345 * testsuite/libgomp.c++/declare_target-1.C: New test.
15346
15347 2016-02-25 Ilya Verbin <[email protected]>
15348
15349 PR driver/68463
15350 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
15351
15352 2016-02-23 Thomas Schwinge <[email protected]>
15353
15354 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
15355 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
15356 dims.
15357 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
15358 -ftree-parallelize-loops/-fopenacc changes.
15359 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
15360 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
15361 Likewise.
15362 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
15363 Likewise.
15364 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
15365 Likewise.
15366 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
15367 Likewise.
15368 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
15369 Likewise.
15370 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
15371 Likewise.
15372 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
15373 Likewise.
15374 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
15375 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
15376 Likewise.
15377 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
15378 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
15379 Likewise.
15380 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
15381 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
15382 Likewise.
15383
15384 2016-02-22 Cesar Philippidis <[email protected]>
15385
15386 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
15387
15388 2016-02-19 Jakub Jelinek <[email protected]>
15389
15390 PR driver/69805
15391 * testsuite/libgomp.c/pr69805.c: New test.
15392
15393 2016-02-16 Tom de Vries <[email protected]>
15394
15395 PR lto/67709
15396 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
15397
15398 2016-02-09 Tom de Vries <[email protected]>
15399
15400 PR tree-optimization/69599
15401 * testsuite/libgomp.c/omp-nested-3.c: New test.
15402 * testsuite/libgomp.c/pr46032-2.c: New test.
15403 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
15404 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
15405
15406 2016-02-09 Tom de Vries <[email protected]>
15407
15408 PR lto/69707
15409 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
15410
15411 2016-02-02 Alexander Monakov <[email protected]>
15412
15413 * testsuite/libgomp.c/target-31.c: Fix testcase.
15414
15415 2016-02-02 Alexander Monakov <[email protected]>
15416
15417 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
15418 clause.
15419 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
15420 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
15421 reduction and map clauses.
15422 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
15423
15424 2016-02-02 James Norris <[email protected]>
15425
15426 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
15427
15428 2016-02-02 Thomas Schwinge <[email protected]>
15429
15430 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
15431 * oacc-parallel.c (GOACC_host_data): Remove function definition.
15432
15433 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
15434 cases.
15435
15436 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
15437 variables.
15438 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
15439 (hsa_kmt_lib): Set variables.
15440 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
15441 always_ld_library_path.
15442 * Makefile.in: Regenerate.
15443 * configure: Likewise.
15444 * testsuite/Makefile.in: Likewise.
15445
15446 * plugin/configfrag.ac (offload_additional_options)
15447 (offload_additional_lib_paths): Don't amend for hsa offloading.
15448 * configure: Regenerate.
15449
15450 * plugin/configfrag.ac: Don't configure for offloading target if
15451 we don't build the corresponding plugin.
15452 * configure: Regenerate.
15453
15454 2016-02-01 Nathan Sidwell <[email protected]>
15455
15456 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
15457 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
15458
15459 2016-01-26 Tom de Vries <[email protected]>
15460
15461 PR tree-optimization/69110
15462 * testsuite/libgomp.c/pr69110.c: New test.
15463
15464 2016-01-25 Richard Biener <[email protected]>
15465
15466 PR lto/69393
15467 * testsuite/libgomp.c++/pr69393.C: New testcase.
15468
15469 2016-01-22 Ilya Verbin <[email protected]>
15470
15471 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
15472 function wasn't mapped to the device with non-shared memory.
15473
15474 2016-01-20 Ilya Verbin <[email protected]>
15475
15476 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
15477
15478 2016-01-19 Martin Jambor <[email protected]>
15479 Martin Liska <[email protected]>
15480
15481 * plugin/Makefrag.am: Add HSA plugin requirements.
15482 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
15483 (HSA_RUNTIME_LIB): Likewise.
15484 (HSA_RUNTIME_CPPFLAGS): Likewise.
15485 (HSA_RUNTIME_INCLUDE): New substitution.
15486 (HSA_RUNTIME_LIB): Likewise.
15487 (HSA_RUNTIME_LDFLAGS): Likewise.
15488 (hsa-runtime): New configure option.
15489 (hsa-runtime-include): Likewise.
15490 (hsa-runtime-lib): Likewise.
15491 (PLUGIN_HSA): New substitution variable.
15492 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
15493 configure options.
15494 (PLUGIN_HSA_CPPFLAGS): Likewise.
15495 (PLUGIN_HSA_LDFLAGS): Likewise.
15496 (PLUGIN_HSA_LIBS): Likewise.
15497 Check that we have access to HSA run-time.
15498 * libgomp-plugin.h (offload_target_type): New element
15499 OFFLOAD_TARGET_TYPE_HSA.
15500 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
15501 args.
15502 (bool gomp_create_target_task): Updated.
15503 (gomp_device_descr): Extra parameter of run_func and async_run_func,
15504 new field can_run_func.
15505 * libgomp_g.h (GOMP_target_ext): Update prototype.
15506 * oacc-host.c (host_run): Added a new parameter args.
15507 * target.c (calculate_firstprivate_requirements): New function.
15508 (copy_firstprivate_data): Likewise.
15509 (gomp_target_fallback_firstprivate): Use them.
15510 (gomp_target_unshare_firstprivate): New function.
15511 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
15512 devices.
15513 (GOMP_target): Do host fallback for all shared memory devices. Do not
15514 pass any args to plugins.
15515 (GOMP_target_ext): Introduce device-specific argument parameter args.
15516 Allow host fallback if device shares memory. Do not remap data if
15517 device has shared memory.
15518 (gomp_target_task_fn): Likewise. Also treat shared memory devices
15519 like host fallback for mappings.
15520 (GOMP_target_data): Treat shared memory devices like host fallback.
15521 (GOMP_target_data_ext): Likewise.
15522 (GOMP_target_update): Likewise.
15523 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
15524 gomp_create_target_task.
15525 (GOMP_target_enter_exit_data): Likewise.
15526 (omp_target_alloc): Treat shared memory devices like host fallback.
15527 (omp_target_free): Likewise.
15528 (omp_target_is_present): Likewise.
15529 (omp_target_memcpy): Likewise.
15530 (omp_target_memcpy_rect): Likewise.
15531 (omp_target_associate_ptr): Likewise.
15532 (gomp_load_plugin_for_device): Also load can_run.
15533 * task.c (GOMP_PLUGIN_target_task_completion): Free
15534 firstprivate_copies.
15535 (gomp_create_target_task): Accept new argument args and store it to
15536 ttask.
15537 * plugin/plugin-hsa.c: New file.
15538
15539 2016-01-18 Tom de Vries <[email protected]>
15540
15541 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
15542 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
15543 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
15544 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
15545 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
15546 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
15547 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
15548 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
15549 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
15550 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
15551 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
15552 Same.
15553 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
15554 Same.
15555 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
15556 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
15557 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
15558 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
15559 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
15560 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
15561 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
15562 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
15563 Same.
15564 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
15565
15566 2016-01-15 Jakub Jelinek <[email protected]>
15567
15568 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
15569
15570 2016-01-15 Cesar Philippidis <[email protected]>
15571
15572 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
15573
15574 2016-01-12 James Norris <[email protected]>
15575
15576 * libgomp.texi: Updates for OpenACC.
15577
15578 2016-01-11 Alexander Monakov <[email protected]>
15579
15580 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
15581
15582 2016-01-07 H.J. Lu <[email protected]>
15583
15584 PR fortran/66680
15585 * testsuite/libgomp.fortran/pr66680.f90: New test.
15586
15587 2016-01-07 Jakub Jelinek <[email protected]>
15588
15589 PR middle-end/68960
15590 * testsuite/libgomp.c/pr68960.c: New test.
15591
15592 2016-01-06 Nathan Sidwell <[email protected]>
15593
15594 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
15595 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
15596
15597 2016-01-04 Jakub Jelinek <[email protected]>
15598
15599 Update copyright years.
15600
15601 * libgomp.texi: Bump @copying's copyright year.
15602
15603 2015-12-31 Nathan Sidwell <[email protected]>
15604
15605 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
15606 dg-additional-options syntax.
15607 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
15608 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
15609 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
15610 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
15611 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
15612 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
15613 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
15614 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
15615 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
15616 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
15617 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
15618 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
15619 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
15620 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
15621 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
15622 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
15623 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
15624 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
15625
15626 2015-12-15 Ilya Verbin <[email protected]>
15627
15628 * libgomp.h (REFCOUNT_LINK): Define.
15629 (struct splay_tree_key_s): Add link_key.
15630 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
15631 Replace target address of the pointer with target address of newly
15632 mapped object in the splay tree. Set link pointer on target to the
15633 device address of the mapped object.
15634 (gomp_unmap_vars): Restore target address of the pointer in the splay
15635 tree for REFCOUNT_LINK objects after unmapping.
15636 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
15637 declare target link" objects.
15638 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
15639 "omp declare target link" objects, which were mapped for the image.
15640 (gomp_exit_data): Restore target address of the pointer in the splay
15641 tree for REFCOUNT_LINK objects after unmapping.
15642 * testsuite/libgomp.c/target-link-1.c: New file.
15643
15644 2015-12-14 Ilya Verbin <[email protected]>
15645
15646 * libgomp.h (gomp_device_state): New enum.
15647 (struct gomp_device_descr): Replace is_initialized with state.
15648 (gomp_fini_device): Remove declaration.
15649 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
15650 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
15651 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
15652 (acc_set_device_type): Use state instead of is_initialized.
15653 (acc_set_device_num): Likewise.
15654 * target.c (resolve_device): Use state instead of is_initialized.
15655 Do not initialize finalized device.
15656 (gomp_map_vars): Do nothing if device is finalized.
15657 (gomp_unmap_vars): Likewise.
15658 (gomp_update): Likewise.
15659 (GOMP_offload_register_ver): Use state instead of is_initialized.
15660 (GOMP_offload_unregister_ver): Likewise.
15661 (gomp_init_device): Likewise.
15662 (gomp_unload_device): Likewise.
15663 (gomp_fini_device): Remove.
15664 (gomp_get_target_fn_addr): Do nothing if device is finalized.
15665 (GOMP_target): Go to host fallback if device is finalized.
15666 (GOMP_target_ext): Likewise.
15667 (gomp_exit_data): Do nothing if device is finalized.
15668 (gomp_target_task_fn): Go to host fallback if device is finalized.
15669 (gomp_target_fini): New static function.
15670 (gomp_target_init): Use state instead of is_initialized.
15671 Call gomp_target_fini at exit.
15672
15673 2015-12-09 Tom de Vries <[email protected]>
15674
15675 PR tree-optimization/68716
15676 * testsuite/libgomp.c/omp-nested-2.c: New test.
15677
15678 2015-12-02 Thomas Schwinge <[email protected]>
15679
15680 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
15681 target openacc_nvidia_accel_selected.
15682 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
15683 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
15684 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
15685 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
15686
15687 2015-12-01 Julian Brown <[email protected]>
15688 James Norris <[email protected]>
15689
15690 * oacc-parallel.c (GOACC_host_data): New function.
15691 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
15692 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
15693 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
15694 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
15695 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
15696 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
15697 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
15698
15699 2015-11-30 James Norris <[email protected]>
15700 Cesar Philippidis <[email protected]>
15701
15702 libgomp/
15703 * libgomp.oacc-fortran/routine-5.f90: New test.
15704 * libgomp.oacc-fortran/routine-7.f90: New test.
15705 * libgomp.oacc-fortran/routine-9.f90: New test.
15706
15707 2015-11-30 Tom de Vries <[email protected]>
15708
15709 PR tree-optimization/46032
15710 * testsuite/libgomp.c/pr46032.c: New test.
15711
15712 2015-11-27 Jakub Jelinek <[email protected]>
15713
15714 PR libgomp/68579
15715 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
15716 (gomp_create_target_task): Call it before freeing
15717 GOMP_TARGET_TASK_DATA tasks.
15718
15719 PR c/63326
15720 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
15721 in between case label and OpenMP standalone directives.
15722 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
15723
15724 2015-11-26 David Edelsohn <[email protected]>
15725
15726 * configure: Regenerate.
15727
15728 2015-11-26 Jakub Jelinek <[email protected]>
15729
15730 * testsuite/libgomp.c/target-35.c: New test.
15731
15732 2015-11-22 James Norris <[email protected]>
15733 Cesar Philippidis <[email protected]>
15734
15735 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
15736 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
15737 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
15738 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
15739 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
15740
15741 2015-11-20 Jakub Jelinek <[email protected]>
15742
15743 PR middle-end/68221
15744 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
15745 * testsuite/libgomp.c/reduction-12.c: Likewise.
15746 * testsuite/libgomp.c++/reduction-11.C: Likewise.
15747 * testsuite/libgomp.c++/reduction-12.C: Likewise.
15748
15749 2015-11-19 Nathan Sidwell <[email protected]>
15750
15751 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
15752 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
15753 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
15754 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
15755 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
15756 and fix.
15757 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
15758 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
15759
15760 2015-11-18 Nathan Sidwell <[email protected]>
15761
15762 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
15763 worker & gang cases.
15764 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
15765
15766 2015-11-17 Cesar Philippidis <[email protected]>
15767
15768 * config/nvptx/priority_queue.c: New file.
15769
15770 2015-11-14 Jakub Jelinek <[email protected]>
15771
15772 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
15773 sections.
15774
15775 2015-11-14 Jakub Jelinek <[email protected]>
15776 Aldy Hernandez <[email protected]>
15777 Ilya Verbin <[email protected]>
15778
15779 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
15780 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
15781 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
15782 iterators or IV by chunk size.
15783 * parallel.c (gomp_resolve_num_threads): Don't assume that
15784 if thr->ts.team is non-NULL, then pool must be non-NULL.
15785 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
15786 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
15787 GOMP_PLUGIN_target_task_completion.
15788 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
15789 * Makefile.in: Regenerate.
15790 * libgomp.h: Shuffle prototypes and forward definitions around so
15791 priority queues can be defined.
15792 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
15793 (enum gomp_target_task_state): New enum.
15794 (struct gomp_target_task): Add state, tgt, task and team fields.
15795 (gomp_create_target_task): Change return type to bool, add
15796 state argument.
15797 (gomp_target_task_fn): Change return type to bool.
15798 (struct gomp_device_descr): Add async_run_func.
15799 (struct gomp_task): Remove children, next_child, prev_child,
15800 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
15801 Add pnode field.
15802 (struct gomp_taskgroup): Remove children.
15803 Add taskgroup_queue.
15804 (struct gomp_team): Change task_queue type to a priority queue.
15805 (splay_compare): Define inline.
15806 (priority_queue_offset): New.
15807 (priority_node_to_task): New.
15808 (task_to_priority_node): New.
15809 * oacc-mem.c: Do not include splay-tree.h.
15810 * priority_queue.c: New file.
15811 * priority_queue.h: New file.
15812 * splay-tree.c: Do not include splay-tree.h.
15813 (splay_tree_foreach_internal): New.
15814 (splay_tree_foreach): New.
15815 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
15816 (splay_tree_callback): Define typedef.
15817 * target.c (splay_compare): Move to libgomp.h.
15818 (GOMP_target): Don't adjust *thr in any way around running offloaded
15819 task.
15820 (GOMP_target_ext): Likewise. Handle target nowait.
15821 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
15822 return value from gomp_create_target_task, if false, fallthrough
15823 as if no dependencies exist.
15824 (gomp_target_task_fn): Change return type to bool, return true
15825 if the task should have another part scheduled later. Handle
15826 target nowait.
15827 (gomp_load_plugin_for_device): Initialize async_run.
15828 * task.c (gomp_init_task): Initialize children_queue.
15829 (gomp_clear_parent_in_list): New.
15830 (gomp_clear_parent_in_tree): New.
15831 (gomp_clear_parent): Handle priorities.
15832 (GOMP_task): Likewise.
15833 (priority_queue_move_task_first,
15834 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
15835 New functions.
15836 (gomp_create_target_task): Use priority queues. Change return type
15837 to bool, add state argument, return false if for async
15838 {{enter,exit} data,update} constructs no dependencies need to be
15839 waited for, handle target nowait. Set task->fn to NULL instead of
15840 gomp_target_task_fn.
15841 (verify_children_queue): Remove.
15842 (priority_list_upgrade_task): New.
15843 (priority_queue_upgrade_task): New.
15844 (verify_task_queue): Remove.
15845 (priority_list_downgrade_task): New.
15846 (priority_queue_downgrade_task): New.
15847 (gomp_task_run_pre): Use priority queues.
15848 Abstract code out to priority_queue_downgrade_task.
15849 (gomp_task_run_post_handle_dependers): Use priority queues.
15850 (gomp_task_run_post_remove_parent): Likewise.
15851 (gomp_task_run_post_remove_taskgroup): Likewise.
15852 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
15853 tasks specially.
15854 (GOMP_taskwait): Likewise.
15855 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
15856 priority-queue_upgrade_task.
15857 (GOMP_taskgroup_start): Use priority queues.
15858 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
15859 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
15860 barrier.
15861 * taskloop.c (GOMP_taskloop): Handle priorities.
15862 * team.c (gomp_new_team): Call priority_queue_init.
15863 (free_team): Call priority_queue_free.
15864 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
15865 team created for target nowait in implicit parallel region.
15866 (gomp_team_start): For nested check, test thr->ts.level instead of
15867 thr->ts.team != NULL.
15868 * testsuite/libgomp.c/doacross-3.c: New test.
15869 * testsuite/libgomp.c/ordered-5.c: New test.
15870 * testsuite/libgomp.c/priority.c: New test.
15871 * testsuite/libgomp.c/target-31.c: New test.
15872 * testsuite/libgomp.c/target-32.c: New test.
15873 * testsuite/libgomp.c/target-33.c: New test.
15874 * testsuite/libgomp.c/target-34.c: New test.
15875
15876 2015-11-13 Nathan Sidwell <[email protected]>
15877
15878 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
15879
15880 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
15881 loop is sequential.
15882
15883 2015-11-13 Nathan Sidwell <[email protected]>
15884
15885 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
15886 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
15887
15888 2015-11-12 James Norris <[email protected]>
15889 Joseph Myers <[email protected]>
15890
15891 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
15892 * oacc-parallel.c (GOACC_declare): New function.
15893 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
15894 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
15895 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
15896 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
15897 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
15898
15899 2015-11-12 Nathan Sidwell <[email protected]>
15900
15901 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
15902
15903 2015-11-1 Nathan Sidwell <[email protected]>
15904
15905 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
15906 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
15907
15908 2015-11-09 Nathan Sidwell <[email protected]>
15909
15910 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
15911 inadvertent commit.
15912
15913 2015-11-09 Nathan Sidwell <[email protected]>
15914
15915 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
15916 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
15917 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
15918 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
15919 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
15920
15921 2015-11-06 Thomas Schwinge <[email protected]>
15922
15923 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
15924 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
15925
15926 2015-11-05 Jakub Jelinek <[email protected]>
15927 Ilya Verbin <[email protected]>
15928
15929 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
15930 GOMP_loop_nonmonotonic_dynamic_start,
15931 GOMP_loop_nonmonotonic_guided_next,
15932 GOMP_loop_nonmonotonic_guided_start,
15933 GOMP_loop_ull_nonmonotonic_dynamic_next,
15934 GOMP_loop_ull_nonmonotonic_dynamic_start,
15935 GOMP_loop_ull_nonmonotonic_guided_next,
15936 GOMP_loop_ull_nonmonotonic_guided_start,
15937 GOMP_parallel_loop_nonmonotonic_dynamic,
15938 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
15939 (GOMP_target_41): Renamed to ...
15940 (GOMP_target_ext): ... this. Add num_teams and thread_limit
15941 arguments.
15942 (GOMP_target_data_41): Renamed to ...
15943 (GOMP_target_data_ext): ... this.
15944 (GOMP_target_update_41): Renamed to ...
15945 (GOMP_target_update_ext): ... this.
15946 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
15947 GOMP_target_data_ext and GOMP_target_update_ext instead of
15948 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
15949 Export GOMP_loop_nonmonotonic_dynamic_next,
15950 GOMP_loop_nonmonotonic_dynamic_start,
15951 GOMP_loop_nonmonotonic_guided_next,
15952 GOMP_loop_nonmonotonic_guided_start,
15953 GOMP_loop_ull_nonmonotonic_dynamic_next,
15954 GOMP_loop_ull_nonmonotonic_dynamic_start,
15955 GOMP_loop_ull_nonmonotonic_guided_next,
15956 GOMP_loop_ull_nonmonotonic_guided_start,
15957 GOMP_parallel_loop_nonmonotonic_dynamic and
15958 GOMP_parallel_loop_nonmonotonic_guided.
15959 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
15960 GOMP_parallel_loop_nonmonotonic_guided,
15961 GOMP_loop_nonmonotonic_dynamic_start,
15962 GOMP_loop_nonmonotonic_guided_start,
15963 GOMP_loop_nonmonotonic_dynamic_next,
15964 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
15965 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
15966 GOMP_loop_ull_nonmonotonic_guided_start,
15967 GOMP_loop_ull_nonmonotonic_dynamic_next,
15968 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
15969 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
15970 functions.
15971 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
15972 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
15973 Use gomp_map_val function.
15974 (gomp_target_fallback_firstprivate): New static function.
15975 (GOMP_target_41): Renamed to ...
15976 (GOMP_target_ext): ... this. Add num_teams and thread_limit
15977 arguments. Move firstprivate fallback handling into a new
15978 function.
15979 (GOMP_target_data_41): Renamed to ...
15980 (GOMP_target_data_ext): ... this.
15981 (GOMP_target_update_41): Renamed to ...
15982 (GOMP_target_update_ext): ... this.
15983 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
15984 gomp_map_0len_lookup instead of gomp_map_lookup.
15985 (omp_target_is_present): Use gomp_map_0len_lookup instead of
15986 gomp_map_lookup.
15987 * testsuite/libgomp.c/target-28.c: Likewise.
15988 * testsuite/libgomp.c/monotonic-1.c: New test.
15989 * testsuite/libgomp.c/monotonic-2.c: New test.
15990 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
15991 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
15992 * testsuite/libgomp.c/pr66199-5.c: New test.
15993 * testsuite/libgomp.c/pr66199-6.c: New test.
15994 * testsuite/libgomp.c/pr66199-7.c: New test.
15995 * testsuite/libgomp.c/pr66199-8.c: New test.
15996 * testsuite/libgomp.c/pr66199-9.c: New test.
15997 * testsuite/libgomp.c/reduction-11.c: New test.
15998 * testsuite/libgomp.c/reduction-12.c: New test.
15999 * testsuite/libgomp.c/reduction-13.c: New test.
16000 * testsuite/libgomp.c/reduction-14.c: New test.
16001 * testsuite/libgomp.c/reduction-15.c: New test.
16002 * testsuite/libgomp.c/target-12.c (main): Adjust for
16003 omp_target_is_present change for one-past-last element.
16004 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
16005 the same var is both mapped and privatized.
16006 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
16007 handling of zero-length array sections.
16008 * testsuite/libgomp.c/target-28.c: New test.
16009 * testsuite/libgomp.c/target-29.c: New test.
16010 * testsuite/libgomp.c/target-30.c: New test.
16011 * testsuite/libgomp.c/target-teams-1.c: New test.
16012 * testsuite/libgomp.c++/member-6.C: New test.
16013 * testsuite/libgomp.c++/member-7.C: New test.
16014 * testsuite/libgomp.c++/monotonic-1.C: New test.
16015 * testsuite/libgomp.c++/monotonic-2.C: New test.
16016 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
16017 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
16018 * testsuite/libgomp.c++/pr66199-3.C: New test.
16019 * testsuite/libgomp.c++/pr66199-4.C: New test.
16020 * testsuite/libgomp.c++/pr66199-5.C: New test.
16021 * testsuite/libgomp.c++/pr66199-6.C: New test.
16022 * testsuite/libgomp.c++/pr66199-7.C: New test.
16023 * testsuite/libgomp.c++/pr66199-8.C: New test.
16024 * testsuite/libgomp.c++/pr66199-9.C: New test.
16025 * testsuite/libgomp.c++/reduction-11.C: New test.
16026 * testsuite/libgomp.c++/reduction-12.C: New test.
16027 * testsuite/libgomp.c++/target-13.C: New test.
16028 * testsuite/libgomp.c++/target-14.C: New test.
16029 * testsuite/libgomp.c++/target-15.C: New test.
16030 * testsuite/libgomp.c++/target-16.C: New test.
16031 * testsuite/libgomp.c++/target-17.C: New test.
16032 * testsuite/libgomp.c++/target-18.C: New test.
16033 * testsuite/libgomp.c++/target-19.C: New test.
16034
16035 2015-11-04 Nathan Sidwell <[email protected]>
16036
16037 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
16038 and reduction copy.
16039 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
16040 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
16041 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
16042 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
16043 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
16044 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
16045 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
16046 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
16047 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
16048 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
16049 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
16050 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
16051 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
16052 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
16053
16054 2015-11-04 Nathan Sidwell <[email protected]>
16055
16056 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
16057 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
16058 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
16059 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
16060 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
16061 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
16062 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
16063 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
16064
16065 2015-11-03 Nathan Sidwell <[email protected]>
16066
16067 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
16068 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
16069 (GOMP_OFFLOAD_openacc_parallel): Likewise.
16070 * oacc-host.c (host_openacc_exec): Likewise.
16071 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
16072
16073 2015-11-03 Julian Brown <[email protected]>
16074 Thomas Schwinge <[email protected]>
16075
16076 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
16077 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
16078 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
16079 Likewise.
16080 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
16081 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
16082
16083 2015-11-03 James Norris <[email protected]>
16084
16085 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
16086 file.
16087 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
16088 Likewise.
16089 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
16090 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
16091 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
16092 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
16093 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
16094
16095 2015-10-29 Nathan Sidwell <[email protected]>
16096
16097 * openacc.h (enum acc_device_t): Reformat. Ensure layout
16098 compatibility.
16099 (enum acc_async_t): Reformat.
16100 (acc_on_device): Declare compatible with builtin and provide C++
16101 wrapper.
16102 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
16103
16104 2015-10-29 Thomas Schwinge <[email protected]>
16105 Cesar Philippidis <[email protected]>
16106
16107 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
16108 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
16109 ... this. Add a description of the test at the top of the file.
16110 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
16111 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
16112 ... this. Add a description of the test at the top of the file.
16113
16114 2015-10-28 Nathan Sidwell <[email protected]>
16115
16116 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
16117 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
16118 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
16119 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
16120 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
16121 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
16122
16123 2015-10-27 Nathan Sidwell <[email protected]>
16124
16125 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
16126 dimensions.
16127
16128 2015-10-27 Thomas Schwinge <[email protected]>
16129
16130 PR testsuite/68063
16131 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
16132
16133 2015-10-27 James Norris <[email protected]>
16134
16135 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
16136 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
16137
16138 2015-10-26 Thomas Schwinge <[email protected]>
16139
16140 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
16141 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
16142
16143 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
16144 acc_device_nvidia usage.
16145 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
16146 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
16147 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
16148
16149 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
16150 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
16151
16152 PR libgomp/66518
16153 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
16154
16155 PR libgomp/65437
16156 PR libgomp/66518
16157 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
16158 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
16159
16160 2015-10-23 Tom de Vries <[email protected]>
16161
16162 PR testsuite/68063
16163 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
16164
16165 2015-10-20 Nathan Sidwell <[email protected]>
16166
16167 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
16168 vector_length.
16169 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
16170
16171 2015-10-14 Ilya Verbin <[email protected]>
16172 Aleksander Ivanushenko <[email protected]>
16173
16174 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
16175 to 0 when mapnum is 0.
16176
16177 2015-10-14 Sebastian Huber <[email protected]>
16178
16179 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
16180 Cast to int from int32_t.
16181
16182 2015-10-13 Jakub Jelinek <[email protected]>
16183 Aldy Hernandez <[email protected]>
16184 Ilya Verbin <[email protected]>
16185
16186 * config/linux/affinity.c (omp_get_place_num_procs,
16187 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
16188 * config/linux/doacross.h: New file.
16189 * config/posix/affinity.c (omp_get_place_num_procs,
16190 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
16191 * config/posix/doacross.h: New file.
16192 * env.c: Include gomp-constants.h.
16193 (struct gomp_task_icv): Rename run_sched_modifier to
16194 run_sched_chunk_size.
16195 (gomp_max_task_priority_var): New variable.
16196 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
16197 (handle_omp_display_env): Change _OPENMP value from 201307 to
16198 201511. Print OMP_MAX_TASK_PRIORITY.
16199 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
16200 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
16201 chunk_size and run_sched_modifier to run_sched_chunk_size.
16202 (omp_get_max_task_priority, omp_get_initial_device,
16203 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
16204 omp_get_partition_place_nums): New functions.
16205 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
16206 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
16207 to chunk_size.
16208 (omp_get_num_places_, omp_get_place_num_procs_,
16209 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
16210 omp_get_place_proc_ids_8_, omp_get_place_num_,
16211 omp_get_partition_num_places_, omp_get_partition_place_nums_,
16212 omp_get_partition_place_nums_8_, omp_get_initial_device_,
16213 omp_get_max_task_priority_): New functions.
16214 * libgomp_g.h (GOMP_loop_doacross_static_start,
16215 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
16216 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
16217 GOMP_loop_ull_doacross_dynamic_start,
16218 GOMP_loop_ull_doacross_guided_start,
16219 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
16220 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
16221 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
16222 GOMP_target_data_41, GOMP_target_update_41,
16223 GOMP_target_enter_exit_data): New prototypes.
16224 (GOMP_task): Add prototype argument.
16225 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
16226 (struct gomp_doacross_work_share): New type.
16227 (struct gomp_work_share): Add doacross field.
16228 (struct gomp_task_icv): Rename run_sched_modifier to
16229 run_sched_chunk_size.
16230 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
16231 GOMP_TASK_UNDEFERRED. Add comments.
16232 (struct gomp_task_depend_entry): Add comments.
16233 (struct gomp_task): Likewise.
16234 (struct gomp_taskgroup): Likewise.
16235 (struct gomp_target_task): New type.
16236 (struct gomp_team): Add comment.
16237 (gomp_get_place_proc_ids_8, gomp_doacross_init,
16238 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
16239 gomp_create_target_task, gomp_target_task_fn): New prototypes.
16240 (struct target_var_desc): New type.
16241 (struct target_mem_desc): Adjust comment. Use struct
16242 target_var_desc instead of splay_tree_key for list.
16243 (REFCOUNT_INFINITY): Define.
16244 (struct splay_tree_key_s): Remove copy_from field.
16245 (struct gomp_device_descr): Add dev2dev_func field.
16246 (enum gomp_map_vars_kind): New enum.
16247 (gomp_map_vars): Add one argument.
16248 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
16249 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
16250 omp_get_place_num_procs, omp_get_place_num_procs_,
16251 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
16252 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
16253 omp_get_place_num_, omp_get_partition_num_places,
16254 omp_get_partition_num_places_, omp_get_partition_place_nums,
16255 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
16256 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
16257 omp_target_free, omp_target_is_present, omp_target_memcpy,
16258 omp_target_memcpy_rect, omp_target_associate_ptr and
16259 omp_target_disassociate_ptr.
16260 (GOMP_4.0.2): Renamed to ...
16261 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
16262 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
16263 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
16264 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
16265 GOMP_loop_doacross_static_start, GOMP_doacross_post,
16266 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
16267 GOMP_loop_ull_doacross_guided_start,
16268 GOMP_loop_ull_doacross_runtime_start,
16269 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
16270 GOMP_doacross_ull_wait.
16271 * libgomp.texi: Document omp_get_max_task_priority.
16272 Rename modifier argument to chunk_size for omp_set_schedule and
16273 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
16274 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
16275 to run_sched_chunk_size renaming.
16276 (GOMP_loop_ordered_runtime_start): Likewise.
16277 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
16278 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
16279 GOMP_parallel_loop_runtime_start): New functions.
16280 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
16281 to run_sched_chunk_size renaming.
16282 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
16283 GOMP_loop_doacross_guided_start): New functions or aliases.
16284 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
16285 run_sched_modifier to run_sched_chunk_size renaming.
16286 (GOMP_loop_ull_ordered_runtime_start): Likewise.
16287 (gomp_loop_ull_doacross_static_start,
16288 gomp_loop_ull_doacross_dynamic_start,
16289 gomp_loop_ull_doacross_guided_start,
16290 GOMP_loop_ull_doacross_runtime_start): New functions.
16291 (GOMP_loop_ull_doacross_static_start,
16292 GOMP_loop_ull_doacross_dynamic_start,
16293 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
16294 * oacc-mem.c (acc_map_data, present_create_copy,
16295 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
16296 to gomp_map_vars.
16297 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
16298 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
16299 instead of false to gomp_map_vars.
16300 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
16301 * omp.h.in (omp_lock_hint_t): New type.
16302 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
16303 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
16304 omp_get_place_num, omp_get_partition_num_places,
16305 omp_get_partition_place_nums, omp_get_initial_device,
16306 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
16307 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
16308 omp_target_associate_ptr, omp_target_disassociate_ptr): New
16309 prototypes.
16310 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
16311 (omp_lock_hint_none, omp_lock_hint_uncontended,
16312 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
16313 omp_lock_hint_speculative): New parameters.
16314 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
16315 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
16316 omp_get_place_num, omp_get_partition_num_places,
16317 omp_get_partition_place_nums, omp_get_initial_device,
16318 omp_get_max_task_priority): New interfaces.
16319 (omp_set_schedule, omp_get_schedule): Rename modifier argument
16320 to chunk_size.
16321 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
16322 (omp_lock_hint_none, omp_lock_hint_uncontended,
16323 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
16324 omp_lock_hint_speculative): New parameters.
16325 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
16326 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
16327 omp_get_place_num, omp_get_partition_num_places,
16328 omp_get_partition_place_nums, omp_get_initial_device,
16329 omp_get_max_task_priority): New functions and subroutines.
16330 * ordered.c: Include stdarg.h and string.h.
16331 (MAX_COLLAPSED_BITS): Define.
16332 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
16333 gomp_doacross_ull_init, GOMP_doacross_ull_post,
16334 GOMP_doacross_ull_wait): New functions.
16335 * target.c: Include errno.h.
16336 (resolve_device): If device is not initialized, call
16337 gomp_init_device on it.
16338 (gomp_map_lookup): New function.
16339 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
16340 Don't bump refcount if REFCOUNT_INFINITY. Handle
16341 GOMP_MAP_ALWAYS_TO_P.
16342 (get_kind): Rename is_openacc argument to short_mapkind.
16343 (gomp_map_pointer): Use gomp_map_lookup.
16344 (gomp_map_fields_existing): New function.
16345 (gomp_map_vars): Rename is_openacc argument to short_mapkind
16346 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
16347 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
16348 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
16349 Adjust for tgt->list changed type and copy_from living in there.
16350 (gomp_copy_from_async): Adjust for tgt->list changed type and
16351 copy_from living in there.
16352 (gomp_unmap_vars): Likewise.
16353 (gomp_update): Likewise. Rename is_openacc argument to
16354 short_mapkind. Don't fail if object is not mapped.
16355 (gomp_load_image_to_device): Initialize refcount to
16356 REFCOUNT_INFINITY.
16357 (gomp_target_fallback): New function.
16358 (gomp_get_target_fn_addr): Likewise.
16359 (GOMP_target): Adjust gomp_map_vars caller, use
16360 gomp_get_target_fn_addr and gomp_target_fallback.
16361 (GOMP_target_41): New function.
16362 (gomp_target_data_fallback): New function.
16363 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
16364 (GOMP_target_data_41): New function.
16365 (GOMP_target_update): Adjust gomp_update caller.
16366 (GOMP_target_update_41): New function.
16367 (gomp_exit_data, GOMP_target_enter_exit_data,
16368 gomp_target_task_fn, omp_target_alloc, omp_target_free,
16369 omp_target_is_present, omp_target_memcpy,
16370 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
16371 omp_target_associate_ptr, omp_target_disassociate_ptr,
16372 gomp_load_plugin_for_device): New functions.
16373 * task.c: Include gomp-constants.h. Include taskloop.c
16374 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
16375 (gomp_task_handle_depend): New function.
16376 (GOMP_task): Use it. Add priority argument. Use
16377 gomp-constant.h constants instead of hardcoded numbers.
16378 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
16379 (gomp_create_target_task): New function.
16380 (verify_children_queue, verify_taskgroup_queue,
16381 verify_task_queue): New functions.
16382 (gomp_task_run_pre): Call verify_*_queue functions.
16383 If an upcoming tied task is about to leave the sibling or
16384 taskgroup queues in an invalid state, adjust appropriately.
16385 Remove taskgroup argument. Add comments.
16386 (gomp_task_run_post_handle_dependers): Add comments.
16387 (gomp_task_run_post_remove_parent): Likewise.
16388 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
16389 (GOMP_taskwait): Likewise. Add comments.
16390 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
16391 problem such that the first non parent_depends_on task does not
16392 end up at the end of the children queue.
16393 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
16394 GOMP_TASK_UNDEFERRED.
16395 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
16396 * taskloop.c: New file.
16397 * testsuite/lib/libgomp.exp
16398 (check_effective_target_offload_device_nonshared_as): New proc.
16399 * testsuite/libgomp.c/affinity-2.c: New test.
16400 * testsuite/libgomp.c/doacross-1.c: New test.
16401 * testsuite/libgomp.c/doacross-2.c: New test.
16402 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
16403 Add map clause to target.
16404 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
16405 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
16406 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
16407 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
16408 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
16409 Likewise.
16410 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
16411 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
16412 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
16413 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
16414 not defined. Use those where needed.
16415 * testsuite/libgomp.c/for-4.c: New test.
16416 * testsuite/libgomp.c/for-5.c: New test.
16417 * testsuite/libgomp.c/for-6.c: New test.
16418 * testsuite/libgomp.c/linear-1.c: New test.
16419 * testsuite/libgomp.c/ordered-4.c: New test.
16420 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
16421 only allowed on the loop iterator.
16422 * testsuite/libgomp.c/pr66199-3.c: New test.
16423 * testsuite/libgomp.c/pr66199-4.c: New test.
16424 * testsuite/libgomp.c/reduction-7.c: New test.
16425 * testsuite/libgomp.c/reduction-8.c: New test.
16426 * testsuite/libgomp.c/reduction-9.c: New test.
16427 * testsuite/libgomp.c/reduction-10.c: New test.
16428 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
16429 map(tofrom:s).
16430 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
16431 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
16432 * testsuite/libgomp.c/target-11.c: New test.
16433 * testsuite/libgomp.c/target-12.c: New test.
16434 * testsuite/libgomp.c/target-13.c: New test.
16435 * testsuite/libgomp.c/target-14.c: New test.
16436 * testsuite/libgomp.c/target-15.c: New test.
16437 * testsuite/libgomp.c/target-16.c: New test.
16438 * testsuite/libgomp.c/target-17.c: New test.
16439 * testsuite/libgomp.c/target-18.c: New test.
16440 * testsuite/libgomp.c/target-19.c: New test.
16441 * testsuite/libgomp.c/target-20.c: New test.
16442 * testsuite/libgomp.c/target-21.c: New test.
16443 * testsuite/libgomp.c/target-22.c: New test.
16444 * testsuite/libgomp.c/target-23.c: New test.
16445 * testsuite/libgomp.c/target-24.c: New test.
16446 * testsuite/libgomp.c/target-25.c: New test.
16447 * testsuite/libgomp.c/target-26.c: New test.
16448 * testsuite/libgomp.c/target-27.c: New test.
16449 * testsuite/libgomp.c/taskloop-1.c: New test.
16450 * testsuite/libgomp.c/taskloop-2.c: New test.
16451 * testsuite/libgomp.c/taskloop-3.c: New test.
16452 * testsuite/libgomp.c/taskloop-4.c: New test.
16453 * testsuite/libgomp.c++/ctor-13.C: New test.
16454 * testsuite/libgomp.c++/doacross-1.C: New test.
16455 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
16456 Replace offload_device with offload_device_nonshared_as.
16457 * testsuite/libgomp.c++/for-12.C: New test.
16458 * testsuite/libgomp.c++/for-13.C: New test.
16459 * testsuite/libgomp.c++/for-14.C: New test.
16460 * testsuite/libgomp.c++/linear-1.C: New test.
16461 * testsuite/libgomp.c++/member-1.C: New test.
16462 * testsuite/libgomp.c++/member-2.C: New test.
16463 * testsuite/libgomp.c++/member-3.C: New test.
16464 * testsuite/libgomp.c++/member-4.C: New test.
16465 * testsuite/libgomp.c++/member-5.C: New test.
16466 * testsuite/libgomp.c++/ordered-1.C: New test.
16467 * testsuite/libgomp.c++/reduction-5.C: New test.
16468 * testsuite/libgomp.c++/reduction-6.C: New test.
16469 * testsuite/libgomp.c++/reduction-7.C: New test.
16470 * testsuite/libgomp.c++/reduction-8.C: New test.
16471 * testsuite/libgomp.c++/reduction-9.C: New test.
16472 * testsuite/libgomp.c++/reduction-10.C: New test.
16473 * testsuite/libgomp.c++/reference-1.C: New test.
16474 * testsuite/libgomp.c++/simd14.C: New test.
16475 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
16476 * testsuite/libgomp.c++/target-5.C: New test.
16477 * testsuite/libgomp.c++/target-6.C: New test.
16478 * testsuite/libgomp.c++/target-7.C: New test.
16479 * testsuite/libgomp.c++/target-8.C: New test.
16480 * testsuite/libgomp.c++/target-9.C: New test.
16481 * testsuite/libgomp.c++/target-10.C: New test.
16482 * testsuite/libgomp.c++/target-11.C: New test.
16483 * testsuite/libgomp.c++/target-12.C: New test.
16484 * testsuite/libgomp.c++/taskloop-1.C: New test.
16485 * testsuite/libgomp.c++/taskloop-2.C: New test.
16486 * testsuite/libgomp.c++/taskloop-3.C: New test.
16487 * testsuite/libgomp.c++/taskloop-4.C: New test.
16488 * testsuite/libgomp.c++/taskloop-5.C: New test.
16489 * testsuite/libgomp.c++/taskloop-6.C: New test.
16490 * testsuite/libgomp.c++/taskloop-7.C: New test.
16491 * testsuite/libgomp.c++/taskloop-8.C: New test.
16492 * testsuite/libgomp.c++/taskloop-9.C: New test.
16493 * testsuite/libgomp.fortran/affinity1.f90: New test.
16494 * testsuite/libgomp.fortran/affinity2.f90: New test.
16495
16496 2015-10-13 Tom de Vries <[email protected]>
16497
16498 PR tree-optimization/67476
16499 * testsuite/libgomp.c/autopar-3.c: New test.
16500 * testsuite/libgomp.c/autopar-4.c: New test.
16501 * testsuite/libgomp.c/autopar-5.c: New test.
16502 * testsuite/libgomp.c/autopar-6.c: New test.
16503 * testsuite/libgomp.c/autopar-7.c: New test.
16504 * testsuite/libgomp.c/autopar-8.c: New test.
16505
16506 2015-10-12 James Norris <[email protected]>
16507
16508 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
16509 initializer.
16510
16511 2015-10-09 David Malcolm <[email protected]>
16512
16513 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
16514 using load_gcc_lib.
16515
16516 2015-10-02 Thomas Schwinge <[email protected]>
16517
16518 * oacc-ptx.h: Remove file, moving its content into...
16519 * config/nvptx/fortran.c: ... here...
16520 * config/nvptx/oacc-init.c: ..., here...
16521 * config/nvptx/oacc-parallel.c: ..., and here.
16522 * config/nvptx/openacc.f90: New file.
16523 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
16524 (link_ptx): Don't link in predefined bits of PTX code.
16525
16526 2015-09-30 Nathan Sidwell <[email protected]>
16527 Bernd Schmidt <[email protected]>
16528
16529 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
16530 (struct targ_ptx_obj): New.
16531 (nvptx_tdata): Move earlier, change data format.
16532 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
16533 objects.
16534 (GOMP_OFFLOAD_load_image): Adjust.
16535
16536 2015-09-30 Thomas Schwinge <[email protected]>
16537
16538 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
16539 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
16540 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
16541 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
16542 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
16543 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
16544 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
16545 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
16546 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
16547 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
16548 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
16549 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
16550 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
16551 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
16552 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
16553 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
16554 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
16555 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
16556 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
16557 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
16558 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
16559 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
16560 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
16561 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
16562 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
16563 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
16564 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
16565 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
16566 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
16567 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
16568 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
16569 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
16570 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
16571 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
16572 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
16573 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
16574 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
16575 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
16576 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
16577 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
16578 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
16579 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
16580 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
16581 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
16582 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
16583 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
16584 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
16585 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
16586 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
16587 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
16588 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
16589 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
16590 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
16591 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
16592 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
16593 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
16594 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
16595 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
16596 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
16597 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
16598 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
16599 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
16600 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
16601
16602 2015-09-29 Nathan Sidwell <[email protected]>
16603
16604 * oacc-init.c (acc_on_device): Force optimization level.
16605
16606 2015-09-29 Nathan Sidwell <[email protected]>
16607
16608 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
16609 (cuda_errlist): Delete.
16610 (cuda_error): Reimplement.
16611
16612 2015-09-28 Nathan Sidwell <[email protected]>
16613
16614 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
16615 array.
16616 * libgomp.map (GOACC_parallel_keyed): New.
16617 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
16618 all callers.
16619 (GOACC_parallel_keyed): New interface. Lose geometry arguments
16620 and take keyed varargs list. Adjust call to exec_func.
16621 (GOACC_parallel): Force host fallback.
16622 * libgomp_g.h (GOACC_parallel): Remove.
16623 (GOACC_parallel_keyed): Declare.
16624 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
16625 (struct targ_gn_descriptor): Replace name field with launch field.
16626 (nvptx_exec): Lose separate geometry args, take array. Process
16627 dynamic dimensions and adjust.
16628 (struct nvptx_tdata): Replace fn_names field with fn_descs.
16629 (GOMP_OFFLOAD_load_image): Adjust for change in function table
16630 data.
16631 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
16632 passing.
16633 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
16634 passing.
16635
16636 2015-09-22 Chung-Lin Tang <[email protected]>
16637
16638 PR libgomp/67141
16639 * oacc-int.h (goacc_host_init): Add declaration.
16640 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
16641 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
16642
16643 2015-09-08 Aditya Kumar <[email protected]>
16644 Sebastian Pop <[email protected]>
16645
16646 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
16647 match o/p.
16648 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
16649 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
16650 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
16651 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
16652 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
16653
16654 2015-09-03 Jakub Jelinek <[email protected]>
16655
16656 * configure.tgt: Add missing ;; in between nvptx and rtems
16657 snippets.
16658
16659 2015-09-03 Sebastian Huber <[email protected]>
16660
16661 * config/posix/pool.h (gomp_adjust_thread_attr): New.
16662 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
16663 (gomp_thread_pool_reservoir): Add priority member.
16664 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
16665 priority.
16666 (parse_thread_pools): Likewise.
16667 * team.c (gomp_team_start): Call configuration provided
16668 gomp_adjust_thread_attr(). Destroy thread attributes if
16669 necessary.
16670 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
16671
16672 2015-09-03 Sebastian Huber <[email protected]>
16673
16674 * config/posix/pool.h: New.
16675 * config/rtems/pool.h: Likewise.
16676 * config/rtems/proc.c: Likewise.
16677 * libgomp.h (gomp_thread_destructor): Declare.
16678 * team.c: Include configuration provided "pool.h".
16679 (gomp_get_thread_pool): Define in configuration.
16680 (gomp_team_end): Call configuration defined
16681 gomp_release_thread_pool().
16682
16683 2015-09-03 Sebastian Huber <[email protected]>
16684
16685 * config/rtems/bar.c: New.
16686 * config/rtems/bar.h: Likewise.
16687 * config/rtems/mutex.c: Likewise.
16688 * config/rtems/mutex.h: Likewise.
16689 * config/rtems/sem.c: Likewise.
16690 * config/rtems/sem.h: Likewise.
16691 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
16692 <sys/lock.h> header file.
16693 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
16694 supported by Newlib.
16695 * configure: Regenerate.
16696
16697 2015-09-03 Sebastian Huber <[email protected]>
16698
16699 * team.c (gomp_new_thread_pool): Delete and move content to ...
16700 (gomp_get_thread_pool): ... new function. Allocate and
16701 initialize thread pool on demand.
16702 (get_last_team): Use gomp_get_thread_pool().
16703 (gomp_team_start): Delete thread pool initialization.
16704
16705 2015-09-03 Tom de Vries <[email protected]>
16706
16707 PR tree-optimization/65637
16708 * testsuite/libgomp.c/autopar-2.c: New test.
16709
16710 2015-08-29 Tom de Vries <[email protected]>
16711
16712 PR tree-optimization/46193
16713 * testsuite/libgomp.c/pr46193.c: New test.
16714
16715 2015-08-24 Nathan Sidwell <[email protected]>
16716
16717 libgomp/
16718 * libgomp.map: Add 4.0.2 version.
16719 * target.c (offload_image_descr): Add version field.
16720 (gomp_load_image_to_device): Add version argument. Adjust plugin
16721 call. Improve load mismatch diagnostic.
16722 (gomp_unload_image_from_device): Add version argument. Adjust plugin
16723 call.
16724 (GOMP_offload_regster): Make stub function, move bulk to ...
16725 (GOMP_offload_register_ver): ... here. Process version argument.
16726 (GOMP_offload_unregister): Make stub function, move bulk to ...
16727 (GOMP_offload_unregister_ver): ... here. Process version argument.
16728 (gomp_init_device): Process version field.
16729 (gomp_unload_device): Process version field.
16730 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
16731 macros. Check plugin version.
16732 * libgomp.h (gomp_device_descr): Add version function field. Adjust
16733 loader and unloader types.
16734 * oacc-host.c: Include gomp-constants.h.
16735 (host_version): New.
16736 (host_load_image, host_unload_image): Adjust.
16737 (host_dispatch): Add host_version.
16738 * plugin/plugin-nvptx.c: Include gomp-constants.h.
16739 (GOMP_OFFLOAD_version): New.
16740 (GOMP_OFFLOAD_load_image): Add version arg and check it.
16741 (GOMP_OFFLOAD_unload_image): Likewise.
16742 * plugin/plugin-host.c: Include gomp-constants.h.
16743 (GOMP_OFFLOAD_version): New.
16744 (GOMP_OFFLOAD_load_image): Add version arg.
16745 (GOMP_OFFLOAD_unload_image): Likewise.
16746
16747 2015-08-24 Tom de Vries <[email protected]>
16748
16749 PR tree-optimization/65468
16750 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
16751
16752 2015-08-24 Tom de Vries <[email protected]>
16753
16754 PR tree-optimization/65468
16755 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
16756
16757 2015-08-24 Joost VandeVondele <[email protected]>
16758
16759 PR libgomp/66761
16760 PR libgomp/67303
16761 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
16762 (gomp_iter_guided_next): Idem.
16763 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
16764 (gomp_iter_ull_guided_next): Idem.
16765 * config/linux/wait.h (do_spin): Idem.
16766
16767 2015-08-10 Thomas Schwinge <[email protected]>
16768
16769 * libgomp-plugin.h (enum offload_target_type): Remove
16770 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
16771 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
16772 * openacc.h (enum acc_device_t): Likewise.
16773 * openacc_lib.h: Likewise.
16774 * oacc-init.c (name_of_acc_device_t): Don't handle it.
16775 (acc_on_device): Just use __builtin_acc_on_device.
16776 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
16777 of acc_on_device builtin.
16778 * plugin/plugin-host.h: Remove file.
16779 * plugin/plugin-host.c: Likewise, but salvage some content into...
16780 * oacc-host.c: ... this file.
16781 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
16782 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
16783 * Makefile.in: Regenerate.
16784 * configure: Likewise.
16785 * testsuite/lib/libgomp.exp
16786 (check_effective_target_openacc_host_nonshm_selected): Remove.
16787 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
16788 ACC_DEVICE_TYPE=host_nonshm.
16789 * testsuite/libgomp.oacc-c/c.exp: Likewise.
16790 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
16791 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
16792 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
16793 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
16794 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
16795
16796 2015-08-10 Thomas Schwinge <[email protected]>
16797 Jakub Jelinek <[email protected]>
16798
16799 * config/nvptx/affinity.c: New file.
16800 * config/nvptx/alloc.c: Likewise.
16801 * config/nvptx/bar.c: Likewise.
16802 * config/nvptx/barrier.c: Likewise.
16803 * config/nvptx/critical.c: Likewise.
16804 * config/nvptx/env.c: Likewise.
16805 * config/nvptx/error.c: Likewise.
16806 * config/nvptx/fortran.c: Likewise.
16807 * config/nvptx/iter.c: Likewise.
16808 * config/nvptx/iter_ull.c: Likewise.
16809 * config/nvptx/libgomp-plugin.c: Likewise.
16810 * config/nvptx/lock.c: Likewise.
16811 * config/nvptx/loop.c: Likewise.
16812 * config/nvptx/loop_ull.c: Likewise.
16813 * config/nvptx/mutex.c: Likewise.
16814 * config/nvptx/oacc-async.c: Likewise.
16815 * config/nvptx/oacc-cuda.c: Likewise.
16816 * config/nvptx/oacc-host.c: Likewise.
16817 * config/nvptx/oacc-init.c: Likewise.
16818 * config/nvptx/oacc-mem.c: Likewise.
16819 * config/nvptx/oacc-parallel.c: Likewise.
16820 * config/nvptx/oacc-plugin.c: Likewise.
16821 * config/nvptx/omp-lock.h: Likewise.
16822 * config/nvptx/ordered.c: Likewise.
16823 * config/nvptx/parallel.c: Likewise.
16824 * config/nvptx/proc.c: Likewise.
16825 * config/nvptx/ptrlock.c: Likewise.
16826 * config/nvptx/sections.c: Likewise.
16827 * config/nvptx/sem.c: Likewise.
16828 * config/nvptx/single.c: Likewise.
16829 * config/nvptx/splay-tree.c: Likewise.
16830 * config/nvptx/target.c: Likewise.
16831 * config/nvptx/task.c: Likewise.
16832 * config/nvptx/team.c: Likewise.
16833 * config/nvptx/time.c: Likewise.
16834 * config/nvptx/work.c: Likewise.
16835 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
16836 * configure: Regenerate.
16837 * configure.tgt (config_path): Set to "nvptx" for target
16838 nvptx*-*-*.
16839
16840 2015-08-10 Thomas Schwinge <[email protected]>
16841
16842 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
16843
16844 2015-08-03 Nathan Sidwell <[email protected]>
16845
16846 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
16847 (cuda_errlist): Constify.
16848 (errmsg): Move into ...
16849 (cuda_error): ... here. Make smaller.
16850 (_XSTR, _STR): Delete.
16851 (cuda_synames): Delete.
16852 (verify_device_library): Delete.
16853 (nvptx_init): Don't call it.
16854
16855 2015-07-28 Tom de Vries <[email protected]>
16856
16857 * testsuite/libgomp.c/uns-outer-4.c: New test.
16858
16859 2015-07-24 Cesar Philippidis <[email protected]>
16860
16861 * testsuite/libgomp.c/pr66714.c: New test.
16862
16863 2015-07-22 Maxim Blumenthal <[email protected]>
16864
16865 PR libgomp/66950
16866 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
16867 (fib_ref): New function.
16868 (fib): Correct corner cases in the recursion.
16869 (main): Replace the non-simd loop with fib_ref call.
16870 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
16871 subroutine.
16872 (fibonacci): Lower the parameter N to 30. Correct accordingly check
16873 for the last array element value. Replace the non-simd loop with
16874 fib_ref call. Remove redundant b_ref array. Remove the comparison
16875 of the last array element with according Fibonacci sequence element.
16876 (fib): Correct corner cases in the recursion.
16877
16878 2015-07-21 Nathan Sidwell <[email protected]>
16879
16880 * target.c (gomp_offload_image_to_device): Rename to ...
16881 (gomp_load_image_to_device): ... here.
16882 (GOMP_offload_register): Adjust call.
16883 (gomp_init_device): Likewise.
16884 (gomp_unload_image_from_device): New. Broken out of ...
16885 (GOMP_offload_unregister): ... here. Call it.
16886 (gomp_unload_device): New.
16887 * libgomp.h (gomp_unload_device): Declare.
16888 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
16889 mem maps.
16890
16891 2015-07-20 Nathan Sidwell <[email protected]>
16892
16893 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
16894 wait=-specific if.
16895 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
16896 !=0 condition.
16897 (goacc_waits): Move !num_waits handling to ...
16898 (GOACC_wait): ... here, the only caller that might have zero waits.
16899
16900 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
16901 (struct ptx_image_data): Move earlier, add fns field.
16902 (struct ptx_device): Add images and image_lock fields.
16903 (ptx_images, ptx_image_lock): Delete.
16904 (nvptx_open_device): Initialize images and image_lock fields.
16905 (nvptx_close_device): Destroy image_lock.
16906 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
16907 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
16908 fields.
16909
16910 2015-07-17 Nathan Sidwell <[email protected]>
16911
16912 * target.c (GOMP_offload_register): Use int for device type arg.
16913 (GOMP_offload_unregister): Likewise.
16914
16915 * target.c (struct_offload_image_descr): Constify host_table.
16916 (gomp_offload_image_to_device): Likewise.
16917 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
16918
16919 * libgomp.h (gomp_device_descr): Constify target data arguments.
16920 * target.c (struct offload_image_descr): Constify target_data.
16921 (gomp_offload_image_to_device): Likewise.
16922 (GOMP_offload_register): Likewise.
16923 (GOMP_offload_unregister): Likewise.
16924 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
16925 GOMP_OFFLOAD_unload_image): Constify target data.
16926 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
16927 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
16928
16929 2015-07-16 Nathan Sidwell <[email protected]>
16930
16931 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
16932 Workaround driver library const error.
16933 (struct nvptx_tdata, nvptx_tdata_t): New.
16934 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
16935 type.
16936
16937 2015-07-15 Maxim Blumenthal <[email protected]>
16938
16939 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
16940 of EPS parameter from integer to real.
16941 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
16942 type of EPS parameter from integer to real.
16943
16944 2015-07-15 Sebastian Huber <[email protected]>
16945
16946 * team.c (get_last_team): New.
16947 (gomp_new_team): Recycle last non-nested team if possible.
16948 (gomp_team_end): Move team work share list free lock destruction
16949 to ...
16950 (free_team): ... here.
16951
16952 2015-07-14 Maxim Blumenthal <[email protected]>
16953
16954 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
16955 and ref from int to double. Replaced their comparison with
16956 an inequality of their difference and EPS.
16957 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
16958 comparison of pri and a reference number with an inequality of their
16959 difference and EPS.
16960 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
16961 the comparison of sum and sum_ref with an inequality of their
16962 difference and EPS.
16963 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
16964 the comparison of pri and a reference number with an inequality of
16965 their difference and EPS.
16966
16967 2015-07-13 Maxim Blumenthal <[email protected]>
16968
16969 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
16970 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
16971 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
16972 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
16973 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
16974 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
16975 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
16976 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
16977 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
16978 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
16979 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
16980 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
16981 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
16982 variables.
16983 (vec_mult): Likewise. Add #pragma omp taskwait.
16984 (main): Adjust caller.
16985 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
16986 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
16987 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
16988 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
16989 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
16990 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
16991 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
16992 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
16993 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
16994 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
16995 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
16996 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
16997 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
16998 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
16999 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
17000 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
17001 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
17002 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
17003 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
17004 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
17005 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
17006 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
17007 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
17008 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
17009 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
17010 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
17011 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
17012 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
17013 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
17014 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
17015 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
17016 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
17017 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
17018 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
17019 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
17020 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
17021 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
17022 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
17023 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
17024 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
17025 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
17026 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
17027 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
17028 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
17029 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
17030 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
17031 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
17032 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
17033 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
17034 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
17035 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
17036 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
17037 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
17038 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
17039 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
17040 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
17041 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
17042 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
17043 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
17044 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
17045 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
17046 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
17047 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
17048 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
17049 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
17050 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
17051 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
17052 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
17053 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
17054 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
17055 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
17056 (vec_mult): Add !$omp taskwait.
17057 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
17058 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
17059 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
17060 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
17061 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
17062 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
17063 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
17064 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
17065 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
17066 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
17067 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
17068 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
17069 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
17070 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
17071 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
17072 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
17073 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
17074 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
17075 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
17076 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
17077 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
17078 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
17079 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
17080 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
17081 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
17082 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
17083 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
17084 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
17085 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
17086 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
17087 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
17088 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
17089 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
17090 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
17091 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
17092 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
17093 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
17094 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
17095 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
17096 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
17097 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
17098 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
17099 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
17100 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
17101 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
17102 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
17103 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
17104 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
17105 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
17106 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
17107 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
17108 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
17109 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
17110 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
17111 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
17112 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
17113 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
17114 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
17115 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
17116 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
17117 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
17118 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
17119 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
17120 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
17121 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
17122 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
17123 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
17124
17125 2015-07-10 Tom de Vries <[email protected]>
17126
17127 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
17128 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
17129
17130 2015-07-08 Thomas Schwinge <[email protected]>
17131
17132 PR libgomp/65099
17133 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
17134 in a 64-bit configuration.
17135 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
17136 offloading testing if no such device is available.
17137 * testsuite/libgomp.oacc-c/c.exp: Likewise.
17138 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
17139
17140 2015-07-08 Tom de Vries <[email protected]>
17141
17142 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
17143 second call to f.
17144 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
17145
17146 2015-07-07 Tom de Vries <[email protected]>
17147
17148 PR tree-optimization/66642
17149 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
17150 iteration count case.
17151 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
17152 function, factor out of ...
17153 (main): ... here. Test low iteration count case.
17154
17155 2015-07-06 Sebastian Huber <[email protected]>
17156
17157 * libgomp.h (gomp_thread_pool): Comment last_team field.
17158
17159 2015-07-02 Uros Bizjak <[email protected]>
17160
17161 * testsuite/libgomp.c++/pr66702-1.C: Require
17162 vect_simd_clones effective target.
17163 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
17164
17165 2015-06-30 Tom de Vries <[email protected]>
17166
17167 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
17168 already set. Use DEFAULT_CFLAGS in dg-runtest.
17169 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
17170 "-O2".
17171
17172 2015-06-30 Tom de Vries <[email protected]>
17173
17174 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
17175 already set. Use DEFAULT_CFLAGS in dg-runtest.
17176 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
17177 * testsuite/libgomp.c++/pr64824.C: Same.
17178 * testsuite/libgomp.c++/pr64868.C: Same.
17179 * testsuite/libgomp.c++/pr66199-1.C: Same.
17180 * testsuite/libgomp.c++/pr66199-2.C: Same.
17181 * testsuite/libgomp.c++/target-2.C: Same.
17182 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
17183 -std=<standard> option.
17184 * testsuite/libgomp.c++/udr-11.C: Same.
17185 * testsuite/libgomp.c++/udr-12.C: Same.
17186 * testsuite/libgomp.c++/udr-13.C: Same.
17187 * testsuite/libgomp.c++/udr-14.C: Same.
17188 * testsuite/libgomp.c++/udr-15.C: Same.
17189 * testsuite/libgomp.c++/udr-16.C: Same.
17190 * testsuite/libgomp.c++/udr-17.C: Same.
17191 * testsuite/libgomp.c++/udr-18.C: Same.
17192 * testsuite/libgomp.c++/udr-19.C: Same.
17193 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
17194 * testsuite/libgomp.c++/simd-1.C: Same.
17195 * testsuite/libgomp.c++/simd-2.C: Same.
17196 * testsuite/libgomp.c++/simd-3.C: Same.
17197 * testsuite/libgomp.c++/simd-4.C: Same.
17198 * testsuite/libgomp.c++/simd-5.C: Same.
17199 * testsuite/libgomp.c++/simd-6.C: Same.
17200 * testsuite/libgomp.c++/simd-7.C: Same.
17201 * testsuite/libgomp.c++/simd-8.C: Same.
17202 * testsuite/libgomp.c++/simd-9.C: Same.
17203 * testsuite/libgomp.c++/simd10.C: Same.
17204 * testsuite/libgomp.c++/simd11.C: Same.
17205 * testsuite/libgomp.c++/simd12.C: Same.
17206 * testsuite/libgomp.c++/simd13.C: Same.
17207
17208 2015-06-30 Jakub Jelinek <[email protected]>
17209
17210 PR middle-end/66702
17211 * testsuite/libgomp.c++/pr66702-1.C: New test.
17212 * testsuite/libgomp.c++/pr66702-2.C: New test.
17213
17214 2015-06-30 Tom de Vries <[email protected]>
17215
17216 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
17217 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
17218 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
17219 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
17220
17221 2015-06-30 Tom de Vries <[email protected]>
17222
17223 PR tree-optimization/66652
17224 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
17225 using restrict pointers.
17226 (main): Add arguments to calls to f.
17227 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
17228
17229 2015-06-23 Andreas Tobler <[email protected]>
17230
17231 * configure.ac: Fix check for header <sys/sysctl.h>.
17232 * configure: Regenerate.
17233 * config.h.in: Likewise.
17234
17235 2015-06-23 Tom de Vries <[email protected]>
17236
17237 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
17238 abort.
17239 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
17240
17241 2015-06-19 Thomas Schwinge <[email protected]>
17242
17243 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
17244 acc_device_nvidia.
17245
17246 PR libgomp/66518
17247 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
17248 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
17249
17250 2015-06-15 Tom de Vries <[email protected]>
17251
17252 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
17253 dg-additional-options for any remaining options.
17254 * testsuite/libgomp.c/atomic-2.c: Same.
17255 * testsuite/libgomp.c/atomic-4.c: Same.
17256 * testsuite/libgomp.c/atomic-5.c: Same.
17257 * testsuite/libgomp.c/atomic-6.c: Same.
17258 * testsuite/libgomp.c/autopar-1.c: Same.
17259 * testsuite/libgomp.c/copyin-1.c: Same.
17260 * testsuite/libgomp.c/copyin-2.c: Same.
17261 * testsuite/libgomp.c/copyin-3.c: Same.
17262 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
17263 * testsuite/libgomp.c/nestedfn-5.c: Same.
17264 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
17265 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
17266 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
17267 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
17268 * testsuite/libgomp.c/pr32362-1.c: Same.
17269 * testsuite/libgomp.c/pr32362-2.c: Same.
17270 * testsuite/libgomp.c/pr32362-3.c: Same.
17271 * testsuite/libgomp.c/pr39591-1.c: Same.
17272 * testsuite/libgomp.c/pr39591-2.c: Same.
17273 * testsuite/libgomp.c/pr39591-3.c: Same.
17274 * testsuite/libgomp.c/pr58392.c: Same.
17275 * testsuite/libgomp.c/pr58756.c: Same.
17276 * testsuite/libgomp.c/simd-1.c: Same.
17277 * testsuite/libgomp.c/simd-10.c: Same.
17278 * testsuite/libgomp.c/simd-11.c: Same.
17279 * testsuite/libgomp.c/simd-12.c: Same.
17280 * testsuite/libgomp.c/simd-13.c: Same.
17281 * testsuite/libgomp.c/simd-14.c: Same.
17282 * testsuite/libgomp.c/simd-15.c: Same.
17283 * testsuite/libgomp.c/simd-2.c: Same.
17284 * testsuite/libgomp.c/simd-3.c: Same.
17285 * testsuite/libgomp.c/simd-4.c: Same.
17286 * testsuite/libgomp.c/simd-5.c: Same.
17287 * testsuite/libgomp.c/simd-6.c: Same.
17288 * testsuite/libgomp.c/simd-7.c: Same.
17289 * testsuite/libgomp.c/simd-8.c: Same.
17290 * testsuite/libgomp.c/simd-9.c: Same.
17291
17292 2015-06-15 Tom de Vries <[email protected]>
17293
17294 * testsuite/libgomp.c/pr35625.c: Fix typo.
17295
17296 2015-06-15 Tom de Vries <[email protected]>
17297
17298 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
17299 in dg-options.
17300 * testsuite/libgomp.c/atomic-3.c: Same.
17301 * testsuite/libgomp.c/debug-1.c: Same.
17302 * testsuite/libgomp.c/nqueens-1.c: Same.
17303 * testsuite/libgomp.c/pr26171.c: Same.
17304 * testsuite/libgomp.c/pr48591.c: Same.
17305 * testsuite/libgomp.c/pr64824.c: Same.
17306 * testsuite/libgomp.c/pr64868.c: Same.
17307 * testsuite/libgomp.c/pr66133.c: Same.
17308 * testsuite/libgomp.c/pr66199-1.c: Same.
17309 * testsuite/libgomp.c/pr66199-2.c: Same.
17310 * testsuite/libgomp.c/target-8.c: Same.
17311
17312 2015-06-15 Tom de Vries <[email protected]>
17313
17314 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
17315 -std={gnu99,c99}.
17316 * testsuite/libgomp.c/for-1.c: Same.
17317 * testsuite/libgomp.c/for-2.c: Same.
17318 * testsuite/libgomp.c/for-3.c: Same.
17319 * testsuite/libgomp.c/pr35625.c: Same.
17320 * testsuite/libgomp.c/pr39154.c: Same.
17321 * testsuite/libgomp.c/simd-16.c: Same.
17322 * testsuite/libgomp.c/simd-17.c: Same.
17323
17324 2015-06-13 Tom de Vries <[email protected]>
17325
17326 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
17327
17328 2015-06-13 Tom de Vries <[email protected]>
17329
17330 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
17331 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
17332 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
17333 (N): Define.
17334 (main): Use N instead of hardcoded constants.
17335
17336 2015-06-05 Tom de Vries <[email protected]>
17337
17338 merge from gomp4 branch:
17339 2015-05-28 Tom de Vries <[email protected]>
17340
17341 PR tree-optimization/65443
17342 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
17343 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
17344 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
17345
17346 2015-05-29 Bernhard Reutner-Fischer <[email protected]>
17347
17348 * testsuite/libgomp.graphite/bounds.c: Adjust for
17349 cleanup-tree-dump removal.
17350 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
17351 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
17352 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
17353 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
17354 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
17355 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
17356 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17357 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17358 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
17359 * testsuite/libgomp.graphite/pr41118.c: Likewise.
17360
17361 2015-05-28 Uros Bizjak <[email protected]>
17362
17363 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
17364 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
17365 (futex_wake) [!__x86_64__]: Ditto.
17366
17367 2015-05-28 Julian Brown <[email protected]>
17368
17369 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
17370 function comment. Only call gomp_fatal if new argument is true.
17371 (acc_dev_num_out_of_range): New function.
17372 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
17373 acc_dev_num_out_of_range as appropriate.
17374 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
17375 (acc_get_device_num, acc_set_device_num): Update calls to
17376 resolve_device.
17377 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
17378 output.
17379
17380 2015-05-28 Julian Brown <[email protected]>
17381
17382 PR libgomp/65742
17383 * oacc-init.c (plugin/plugin-host.h): Include.
17384 (acc_on_device): Check whether we're in an offloaded region for
17385 host_nonshm
17386 plugin. Don't use __builtin_acc_on_device.
17387 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
17388 nonshm_exec flag in thread-local data.
17389 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
17390 data for host_nonshm plugin.
17391 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
17392 for host_nonshm plugin.
17393 * plugin/plugin-host.h: New.
17394
17395 2015-05-27 Uros Bizjak <[email protected]>
17396
17397 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
17398
17399 2015-05-27 Uros Bizjak <[email protected]>
17400
17401 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
17402 Declare as int.
17403 (FUTEX_PRIVATE_FLAG): Remove L suffix.
17404 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
17405 Declare as int.
17406
17407 2015-05-27 Uros Bizjak <[email protected]>
17408
17409 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
17410
17411 2015-05-27 Chung-Lin Tang <[email protected]>
17412
17413 * target.c (gomp_map_pointer): New function abstracting out
17414 GOMP_MAP_POINTER handling.
17415 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
17416 gomp_map_pointer().
17417
17418 2015-05-19 Jakub Jelinek <[email protected]>
17419
17420 PR middle-end/66199
17421 * testsuite/libgomp.c/pr66199-1.c: New test.
17422 * testsuite/libgomp.c/pr66199-2.c: New test.
17423 * testsuite/libgomp.c++/pr66199-1.C: New test.
17424 * testsuite/libgomp.c++/pr66199-2.C: New test.
17425 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
17426 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
17427
17428 2015-05-19 Julian Brown <[email protected]>
17429
17430 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
17431 on cuInit failure.
17432
17433 2015-05-13 Jakub Jelinek <[email protected]>
17434
17435 PR middle-end/66133
17436 * testsuite/libgomp.c/pr66133.c: New test.
17437
17438 2015-05-13 Michael Haubenwallner <[email protected]>
17439
17440 * Makefile.in: Regenerated with automake-1.11.6.
17441 * aclocal.m4: Likewise.
17442 * config.h.in: Likewise.
17443 * configure: Likewise.
17444 * testsuite/Makefile.in: Likewise.
17445
17446 2015-05-08 Jason Merrill <[email protected]>
17447
17448 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
17449 _Complex.
17450
17451 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
17452
17453 2015-05-06 Julian Brown <[email protected]>
17454
17455 * oacc-init.c (acc_device_lock): Add explanatory comment.
17456 (resolve_device): Add comment about locking requirement.
17457 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
17458 gomp_init_device and gomp_fini_device calls.
17459 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
17460 (acc_get_device_num, acc_set_device_num): Add locking around
17461 resolve_device and gomp_init_device calls.
17462
17463 2015-05-06 Julian Brown <[email protected]>
17464
17465 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
17466 goacc_thread_lock on error paths.
17467 * oacc-mem.c (lookup_host): Remove locking from function. Note
17468 locking requirement for caller in function comment.
17469 (lookup_dev): Likewise.
17470 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
17471 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
17472 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
17473 Add locking.
17474
17475 2015-05-05 Thomas Schwinge <[email protected]>
17476
17477 PR testsuite/65205
17478 PR libgomp/65993
17479 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
17480 don't expect "0x" prefix for "%p" format specifier, don't expect
17481 "(nil)" for NULL pointer.
17482 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
17483 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
17484 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
17485 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
17486 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
17487 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
17488 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
17489 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
17490 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
17491 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
17492 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
17493 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
17494 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
17495 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
17496 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
17497 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
17498 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
17499 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
17500 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
17501 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
17502 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
17503 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
17504 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
17505 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
17506 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
17507 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
17508 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
17509 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
17510 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
17511 accurately specify what we're looking for.
17512 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
17513 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
17514 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
17515 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
17516 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
17517
17518 2015-04-30 James Norris <[email protected]>
17519
17520 PR testsuite/65205
17521 * testsuite/lib/libgomp.exp
17522 (check_effective_target_openacc_host_selected)
17523 (check_effective_target_openacc_host_nonshm_selected): New
17524 procedures.
17525 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
17526 dg-shouldfail.
17527 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
17528 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
17529 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
17530 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
17531 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
17532 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
17533 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
17534 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
17535 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
17536 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
17537 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
17538 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
17539 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
17540 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
17541 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
17542 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
17543 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
17544 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
17545 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
17546 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
17547 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
17548 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
17549 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
17550 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
17551 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
17552 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
17553 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
17554 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
17555 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
17556 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
17557 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
17558 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
17559 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
17560 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
17561 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
17562 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
17563 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
17564 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
17565 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
17566 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
17567 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
17568 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
17569 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
17570
17571 2015-04-08 Julian Brown <[email protected]>
17572
17573 * libgomp.h (target_mem_desc: Remove mem_map field.
17574 (acc_dispatch_t): Remove open_device_func, close_device_func,
17575 get_device_num_func, set_device_num_func, target_data members.
17576 Change create_thread_data_func argument to device number instead of
17577 generic pointer.
17578 * oacc-async.c (assert.h): Include.
17579 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
17580 (acc_wait_all, acc_wait_all_async): Use current host thread's
17581 active device, not base_dev.
17582 * oacc-cuda.c (acc_get_current_cuda_device)
17583 (acc_get_current_cuda_context, acc_get_cuda_stream)
17584 (acc_set_cuda_stream): Likewise.
17585 * oacc-host.c (host_dispatch): Don't set open_device_func,
17586 close_device_func, get_device_num_func or set_device_num_func.
17587 * oacc-init.c (base_dev, init_key): Remove.
17588 (cached_base_dev): New.
17589 (name_of_acc_device_t): New.
17590 (acc_init_1): Initialise default-numbered device, not zeroth.
17591 (acc_shutdown_1): Close all devices of a given type.
17592 (goacc_destroy_thread): Don't use base_dev.
17593 (lazy_open, lazy_init, lazy_init_and_open): Remove.
17594 (goacc_attach_host_thread_to_device): New.
17595 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
17596 (acc_get_num_devices): Don't use base_dev.
17597 (acc_set_device_type): Reimplement.
17598 (acc_get_device_type): Don't use base_dev.
17599 (acc_get_device_num): Tweak logic.
17600 (acc_set_device_num): Likewise.
17601 (acc_on_device): Use acc_get_device_type.
17602 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
17603 (goacc_lazy_initialize): Reimplement with acc_init and
17604 goacc_attach_host_thread_to_device.
17605 * oacc-int.h (goacc_thread): Add base_dev field.
17606 (base_dev): Remove extern declaration.
17607 (goacc_attach_host_thread_to_device): Add prototype.
17608 * oacc-mem.c (acc_malloc): Use current thread's device instead of
17609 base_dev.
17610 (acc_free): Likewise.
17611 (acc_memcpy_to_device): Likewise.
17612 (acc_memcpy_from_device): Likewise.
17613 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
17614 goacc_lazy_initialize (throughout).
17615 (GOACC_parallel): Use tgt_offset to locate target functions.
17616 * target.c (gomp_map_vars): Don't set tgt->mem_map.
17617 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
17618 (gomp_load_plugin_for_device): Remove open_device, close_device,
17619 get_device_num, set_device_num openacc hook initialisation. Don't set
17620 openacc.target_data.
17621 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
17622 (GOMP_OFFLOAD_openacc_close_device)
17623 (GOMP_OFFLOAD_openacc_get_device_num)
17624 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
17625 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
17626 to int.
17627 * plugin/plugin-nvptx.c (ptx_inited): Remove.
17628 (instantiated_devices, ptx_dev_lock): New.
17629 (struct ptx_image_data): New.
17630 (ptx_devices, ptx_images, ptx_image_lock): New.
17631 (fini_streams_for_device): Reorder cuStreamDestroy call.
17632 (nvptx_get_num_devices): Remove forward declaration.
17633 (nvptx_init): Change return type to bool.
17634 (nvptx_fini): Remove.
17635 (nvptx_attach_host_thread_to_device): New.
17636 (nvptx_open_device): Return struct ptx_device* instead of void*.
17637 (nvptx_close_device): Change argument type to struct ptx_device*,
17638 return type to void.
17639 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
17640 (kernel_target_data, kernel_host_table): Remove static globals.
17641 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
17642 (GOMP_OFFLOAD_init_device): Reimplement.
17643 (GOMP_OFFLOAD_fini_device): Likewise.
17644 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
17645 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
17646 (GOMP_OFFLOAD_host2dev): Use ORD argument.
17647 (GOMP_OFFLOAD_openacc_open_device)
17648 (GOMP_OFFLOAD_openacc_close_device)
17649 (GOMP_OFFLOAD_openacc_set_device_num)
17650 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
17651 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
17652 (device number).
17653
17654 testsuite/
17655 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
17656
17657 2015-04-06 Ilya Verbin <[email protected]>
17658
17659 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
17660 * libgomp.h (struct gomp_memory_mapping): Remove.
17661 (struct target_mem_desc): Change type of mem_map from
17662 gomp_memory_mapping * to splay_tree_s *.
17663 (struct gomp_device_descr): Remove register_image_func, get_table_func.
17664 Add load_image_func, unload_image_func.
17665 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
17666 Remove offload_regions_registered.
17667 (gomp_init_tables): Remove.
17668 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
17669 to splay_tree_s *.
17670 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
17671 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
17672 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
17673 offload_regions_registered.
17674 Initialize load_image_func, unload_image_func, mem_map.root.
17675 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
17676 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
17677 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
17678 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
17679 gomp_memory_mapping *. Use dev's lock and splay_tree.
17680 (lookup_dev): Use dev's lock.
17681 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
17682 (acc_is_present): Likewise.
17683 (acc_map_data): Likewise.
17684 (acc_unmap_data): Likewise. Use dev's lock.
17685 (present_create_copy): Likewise.
17686 (delete_copyout): Pass dev to lookup_host instead of mem_map.
17687 (update_dev_host): Likewise.
17688 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
17689 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
17690 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
17691 (GOMP_OFFLOAD_get_table): Remove
17692 (GOMP_OFFLOAD_load_image): New function.
17693 (GOMP_OFFLOAD_unload_image): New function.
17694 * target.c (register_lock): New mutex for offload image registration.
17695 (num_devices): Do not guard with PLUGIN_SUPPORT.
17696 (gomp_realloc_unlock): New static function.
17697 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
17698 before gomp_fatal.
17699 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
17700 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
17701 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
17702 mem_map's.
17703 (gomp_unmap_vars): Likewise.
17704 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
17705 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
17706 (gomp_offload_image_to_device): New static function.
17707 (GOMP_offload_register): Add mutex lock.
17708 Call gomp_offload_image_to_device for all initialized devices.
17709 Replace gomp_realloc with gomp_realloc_unlock.
17710 (GOMP_offload_unregister): New function.
17711 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
17712 get_table_func from the plugin with calls to init_device_func and
17713 gomp_offload_image_to_device.
17714 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
17715 to splay_tree_s *.
17716 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
17717 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
17718 (GOMP_target_data): Do not call gomp_init_tables.
17719 (GOMP_target_update): Likewise. Remove argument from gomp_update.
17720 (gomp_load_plugin_for_device): Replace register_image and get_table
17721 with load_image and unload_image in DLSYM ().
17722 (gomp_register_images_for_device): Remove function.
17723 (gomp_target_init): Do not initialize current_device.mem_map.*,
17724 current_device.offload_regions_registered.
17725 Remove call to gomp_register_images_for_device.
17726 Do not free offload_images and num_offload_images.
17727
17728 2015-03-30 Jakub Jelinek <[email protected]>
17729
17730 PR fortran/65597
17731 * testsuite/libgomp.fortran/pr65597.f90: New test.
17732
17733 2015-03-27 Tom de Vries <[email protected]>
17734
17735 PR testsuite/65594
17736 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
17737 (init, check): New function.
17738 (foo): Change return type to void.
17739 (main): Call init and check.
17740
17741 2015-03-27 Tom de Vries <[email protected]>
17742
17743 PR testsuite/65594
17744 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
17745 (foo): Use M for non-inner loops to scale down test-case.
17746
17747 2015-03-25 Kai Tietz <[email protected]>
17748
17749 PR libgomp/64972
17750 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
17751 (GOACC_data_start): Likewise.
17752 * target.c (gomp_map_vars): Likewise.
17753
17754 2015-03-21 John David Anglin <[email protected]>
17755
17756 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
17757 hppa*-*-hpux*.
17758
17759 2015-03-19 Jakub Jelinek <[email protected]>
17760
17761 * testsuite/libgomp.c/target-10.c: New test.
17762 * testsuite/libgomp.c++/target-4.C: New test.
17763
17764 2015-03-13 Ilya Verbin <[email protected]>
17765
17766 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
17767 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
17768
17769 2015-03-13 Sebastian Huber <[email protected]>
17770
17771 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
17772 * configure.ac (*-*-rtems*): Assume Pthread is supported.
17773 (pthread.h): Check for this header file.
17774 * configure: Regenerate.
17775
17776 2015-02-25 Tom de Vries <[email protected]>
17777
17778 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
17779 (check_reduction_op, check_reduction_macro, max, min):
17780 Declare.
17781 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
17782 function.
17783 (main): Use new functions.
17784
17785 2015-02-18 Ilya Tocar <[email protected]>
17786
17787 * target.c (gomp_load_plugin_for_device): Use const char * instead of
17788 char * for variables holding dlerror return values.
17789 (DLSYM_OPT): Ditto.
17790
17791 2015-02-17 Thomas Schwinge <[email protected]>
17792
17793 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
17794
17795 2015-02-17 Thomas Schwinge <[email protected]>
17796 Cesar Philippidis <[email protected]>
17797
17798 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
17799 GOACC_ctaid, and GOACC_nctaid routines.
17800
17801 2015-02-11 Jakub Jelinek <[email protected]>
17802
17803 PR c/64824
17804 * testsuite/libgomp.c/atomic-18.c: New test.
17805 * testsuite/libgomp.c++/atomic-16.C: New test.
17806
17807 2015-02-04 Jakub Jelinek <[email protected]>
17808
17809 PR c/64824
17810 PR c/64868
17811 * testsuite/libgomp.c/pr64824.c: New test.
17812 * testsuite/libgomp.c/pr64868.c: New test.
17813 * testsuite/libgomp.c++/pr64824.C: New test.
17814 * testsuite/libgomp.c++/pr64868.C: New test.
17815
17816 2015-02-01 David Edelsohn <[email protected]>
17817
17818 PR libgomp/64635
17819 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
17820 Link with -lpthread.
17821 * config/aix/plugin-suffix.h: Delete.
17822
17823 2015-01-28 Jack Howarth <[email protected]>
17824
17825 PR libgomp/64635
17826 * configure.tgt (*-*-aix*): Use config_path "aix posix".
17827 (*-*-darwin*): Use config_path "bsd darwin posix".
17828 (*-*-hpux*): Use config_path "hpux posix".
17829 * target.c: Add include of plugin-suffix.h and use
17830 SONAME_SUFFIX macro.
17831 * config/aix/plugin-suffix.h: New file.
17832 * config/darwin/plugin-suffix.h: New file.
17833 * config/hpux/plugin-suffix.h: New file.
17834 * config/posix/plugin-suffix.h: New file.
17835
17836 2015-01-23 Jakub Jelinek <[email protected]>
17837
17838 PR middle-end/64734
17839 * libgomp.c/pr64734.c: New test.
17840
17841 2015-01-23 Tom de Vries <[email protected]>
17842
17843 PR libgomp/64672
17844 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
17845
17846 2015-01-23 Tom de Vries <[email protected]>
17847
17848 PR libgomp/64707
17849 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
17850 dg-options.
17851
17852 2015-01-19 Thomas Schwinge <[email protected]>
17853
17854 PR libgomp/64625
17855 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
17856 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
17857 formal parameter. Update all users.
17858 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
17859 Document unused formal parameter.
17860
17861 2015-01-16 Thomas Schwinge <[email protected]>
17862
17863 * oacc-parallel.c: Don't include <alloca.h>.
17864 (GOACC_parallel): Use gomp_alloca instead of alloca.
17865
17866 2015-01-16 Gerald Pfeifer <[email protected]>
17867
17868 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
17869
17870 2015-01-15 Thomas Schwinge <[email protected]>
17871 James Norris <[email protected]>
17872 Tom de Vries <[email protected]>
17873 Julian Brown <[email protected]>
17874 Cesar Philippidis <[email protected]>
17875 Nathan Sidwell <[email protected]>
17876 Tobias Burnus <[email protected]>
17877
17878 * Makefile.am (search_path): Add $(top_srcdir)/../include.
17879 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
17880 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
17881 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
17882 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
17883 Include $(top_srcdir)/plugin/Makefrag.am.
17884 (nodist_libsubinclude_HEADERS): Add openacc.h.
17885 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
17886 openacc.f90, openacc.mod, openacc_kinds.mod.
17887 (omp_lib.mod): Generalize into...
17888 (%.mod): ... this new rule.
17889 (openacc_kinds.mod, openacc.mod): New rules.
17890 * plugin/configfrag.ac: New file.
17891 * configure.ac: Move plugin/offloading support into it. Include
17892 it. Instantiate testsuite/libgomp-test-support.pt.exp.
17893 * plugin/Makefrag.am: New file.
17894 * testsuite/Makefile.am (OFFLOAD_TARGETS)
17895 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
17896 export.
17897 (libgomp-test-support.exp): New rule.
17898 (all-local): Depend on it.
17899 * Makefile.in: Regenerate.
17900 * testsuite/Makefile.in: Regenerate.
17901 * config.h.in: Likewise.
17902 * configure: Likewise.
17903 * configure.tgt: Harden shell syntax.
17904 * env.c: Include "oacc-int.h".
17905 (parse_acc_device_type): New function.
17906 (gomp_debug_var, goacc_device_type, goacc_device_num): New
17907 variables.
17908 (initialize_env): Initialize those. Call
17909 goacc_runtime_initialize.
17910 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
17911 (gomp_fatal): Call gomp_vfatal.
17912 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
17913 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
17914 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
17915 (splay_tree_node, splay_tree, splay_tree_key)
17916 (struct target_mem_desc, struct splay_tree_key_s)
17917 (struct gomp_memory_mapping, struct acc_dispatch_t)
17918 (struct gomp_device_descr, gomp_acc_insert_pointer)
17919 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
17920 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
17921 (gomp_free_memmap, gomp_fini_device): New declarations.
17922 (gomp_vdebug, gomp_debug): New macros.
17923 Include "splay-tree.h".
17924 * libgomp.map (OACC_2.0): New symbol version. Use for
17925 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
17926 acc_set_device_type_h_, acc_get_device_type,
17927 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
17928 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
17929 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
17930 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
17931 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
17932 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
17933 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
17934 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
17935 acc_copyin_array_h_, acc_present_or_copyin,
17936 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
17937 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
17938 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
17939 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
17940 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
17941 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
17942 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
17943 acc_update_device, acc_update_device_32_h_,
17944 acc_update_device_64_h_, acc_update_device_array_h_,
17945 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
17946 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
17947 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
17948 acc_is_present_64_h_, acc_is_present_array_h_,
17949 acc_memcpy_to_device, acc_memcpy_from_device,
17950 acc_get_current_cuda_device, acc_get_current_cuda_context,
17951 acc_get_cuda_stream, acc_set_cuda_stream.
17952 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
17953 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
17954 GOACC_update, GOACC_wait, GOACC_get_thread_num,
17955 GOACC_get_num_threads.
17956 (GOMP_PLUGIN_1.0): New symbol version. Use for
17957 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
17958 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
17959 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
17960 GOMP_PLUGIN_acc_thread.
17961 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
17962 environment variable.
17963 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
17964 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
17965 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
17966 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
17967 (splay_tree_remove): New declarations.
17968 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
17969 (splay_tree_remove, splay_tree_lookup): Move into...
17970 * splay-tree.c: ... this new file.
17971 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
17972 (splay_tree_node, splay_tree, splay_tree_key)
17973 (struct target_mem_desc, struct splay_tree_key_s)
17974 (struct gomp_device_descr): Don't declare.
17975 (num_devices_openmp): New variable.
17976 (gomp_get_num_devices ): Use it.
17977 (gomp_init_targets_once): New function.
17978 (gomp_get_num_devices ): Use it.
17979 (get_kind, gomp_copy_from_async, gomp_free_memmap)
17980 (gomp_fini_device, gomp_register_image_for_device): New functions.
17981 (gomp_map_vars): Add devaddrs parameter.
17982 (gomp_update): Add mm parameter.
17983 (gomp_init_device): Move most of it into...
17984 (gomp_init_tables): ... this new function.
17985 (gomp_register_images_for_device): Remove function.
17986 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
17987 Make them hidden instead of static.
17988 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
17989 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
17990 (GOMP_target_end_data, GOMP_target_update)
17991 (gomp_load_plugin_for_device, gomp_target_init): Update for
17992 OpenACC changes.
17993 * oacc-async.c: New file.
17994 * oacc-cuda.c: Likewise.
17995 * oacc-host.c: Likewise.
17996 * oacc-init.c: Likewise.
17997 * oacc-int.h: Likewise.
17998 * oacc-mem.c: Likewise.
17999 * oacc-parallel.c: Likewise.
18000 * oacc-plugin.c: Likewise.
18001 * oacc-plugin.h: Likewise.
18002 * oacc-ptx.h: Likewise.
18003 * openacc.f90: Likewise.
18004 * openacc.h: Likewise.
18005 * openacc_lib.h: Likewise.
18006 * plugin/plugin-host.c: Likewise.
18007 * plugin/plugin-nvptx.c: Likewise.
18008 * libgomp-plugin.c: Likewise.
18009 * libgomp-plugin.h: Likewise.
18010 * libgomp_target.h: Remove file after merging content into the
18011 former file. Update all users.
18012 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
18013 (offload_targets_s, offload_targets_s_openacc): New variables.
18014 (check_effective_target_openacc_nvidia_accel_present)
18015 (check_effective_target_openacc_nvidia_accel_selected): New
18016 procedures.
18017 (libgomp_init): Update for OpenACC changes.
18018 * testsuite/libgomp-test-support.exp.in: New file.
18019 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
18020 * testsuite/libgomp.oacc-c/c.exp: Likewise.
18021 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
18022 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
18023 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
18024 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
18025 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
18026 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
18027 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
18028 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
18029 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
18030 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
18031 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
18032 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
18033 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
18034 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
18035 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
18036 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
18037 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
18038 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
18039 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
18040 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
18041 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
18042 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
18043 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
18044 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
18045 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
18046 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
18047 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
18048 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
18049 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
18050 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
18051 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
18052 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
18053 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
18054 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
18055 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
18056 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
18057 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
18058 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
18059 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
18060 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
18061 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
18062 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
18063 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
18064 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
18065 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
18066 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
18067 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
18068 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
18069 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
18070 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
18071 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
18072 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
18073 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
18074 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
18075 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
18076 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
18077 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
18078 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
18079 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
18080 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
18081 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
18082 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
18083 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
18084 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
18085 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
18086 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
18087 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
18088 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
18089 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
18090 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
18091 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
18092 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
18093 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
18094 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
18095 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
18096 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
18097 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
18098 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
18099 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
18100 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
18101 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
18102 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
18103 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
18104 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
18105 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
18106 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
18107 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
18108 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
18109 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
18110 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
18111 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
18112 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
18113 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
18114 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
18115 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
18116 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
18117 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
18118 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
18119 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
18120 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
18121 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
18122 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
18123 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
18124 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
18125 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
18126 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
18127 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
18128 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
18129 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
18130 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
18131 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
18132 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
18133 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
18134 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
18135 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
18136 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
18137 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
18138 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
18139 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
18140 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
18141 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
18142 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
18143 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
18144 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
18145 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
18146 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
18147 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
18148 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
18149 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
18150 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
18151 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
18152 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
18153 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
18154 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
18155 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
18156 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
18157 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
18158 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
18159 Likewise.
18160 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
18161 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
18162 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
18163 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
18164 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
18165 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
18166 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
18167 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
18168 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
18169 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
18170 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
18171 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
18172 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
18173 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
18174 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
18175 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
18176 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
18177 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
18178 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
18179 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
18180 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
18181 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
18182 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
18183 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
18184 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
18185 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
18186 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
18187 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
18188 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
18189 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
18190 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
18191 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
18192 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
18193 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
18194 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
18195 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
18196 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
18197 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
18198 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
18199 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
18200 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
18201 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
18202 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
18203 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
18204 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
18205 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
18206 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
18207 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
18208 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
18209 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
18210 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
18211 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
18212 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
18213 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
18214 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
18215 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
18216 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
18217 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
18218 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
18219 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
18220
18221 2015-01-10 Thomas Schwinge <[email protected]>
18222 Julian Brown <[email protected]>
18223 David Malcolm <[email protected]>
18224
18225 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
18226 to "GNU Offloading and Multi Processing Runtime Library". Change
18227 all users.
18228 * configure: Regenerate.
18229 * libgomp.texi: Update.
18230
18231 2015-01-08 Thomas Schwinge <[email protected]>
18232
18233 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
18234 "$tgt_dir/lib32".
18235 * configure: Regenerate.
18236
18237 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
18238 "intelmic" in $offload_targets.
18239
18240 2015-01-05 Jakub Jelinek <[email protected]>
18241
18242 Update copyright years.
18243
18244 * libgomp.texi: Bump @copying's copyright year.
18245
18246 2014-12-12 Kyrylo Tkachov <[email protected]>
18247
18248 * testsuite/lib/libgomp.exp: Load target-utils.exp.
18249 Move load of target-supports.exp earlier.
18250
18251 2014-12-10 Ilya Verbin <[email protected]>
18252
18253 * testsuite/libgomp.c/target-9.c: New test.
18254
18255 2014-12-09 Varvara Rainchik <[email protected]>
18256
18257 * config.h.in: Regenerate.
18258 * configure: Regenerate.
18259 * configure.ac: Add GCC_CHECK_EMUTLS.
18260 * libgomp.h: Add check for USE_EMUTLS: this case
18261 is equal to HAVE_TLS.
18262 * team.c: Likewise.
18263
18264 2014-12-03 Uros Bizjak <[email protected]>
18265
18266 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
18267
18268 2014-11-28 Andrey Turetskiy <[email protected]>
18269 Ilya Verbin <[email protected]>
18270
18271 * testsuite/libgomp.c/target-critical-1.c: New test.
18272
18273 2014-11-26 Jakub Jelinek <[email protected]>
18274
18275 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
18276 to dg-options unless expensive testing is on.
18277 (TESTITERS): Define to N if not defined.
18278 (main): Use TESTITERS instead of N.
18279 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
18280 dg-additional-options depending on whether expensive testing is on.
18281 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
18282 Decrease N to 100000 and CHUNKSZ to 10000.
18283
18284 2014-11-24 Jakub Jelinek <[email protected]>
18285
18286 PR fortran/63938
18287 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
18288 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
18289
18290 2014-11-21 Steve Ellcey <[email protected]>
18291
18292 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
18293
18294 2014-11-21 H.J. Lu <[email protected]>
18295
18296 PR bootstrap/63784
18297 * configure: Regenerated.
18298
18299 2014-11-19 Uros Bizjak <[email protected]>
18300
18301 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
18302 vect_simd_clones effective target.
18303 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
18304
18305 2014-11-14 Jakub Jelinek <[email protected]>
18306
18307 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
18308 of 32 as block_size.
18309 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
18310 instead of 32 as block_size.
18311
18312 2014-11-13 Andrey Turetskiy <[email protected]>
18313 Ilya Verbin <[email protected]>
18314
18315 * Makefile.in: Regenerate.
18316 * configure: Regenerate.
18317 * configure.ac: Set up offload_additional_options,
18318 offload_additional_lib_paths and offload_targets.
18319 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
18320 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
18321 * testsuite/Makefile.in: Regenerate.
18322 * testsuite/lib/libgomp.exp (libgomp_init): Append
18323 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
18324 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
18325 build directory to LD_LIBRARY_PATH for intelmic offload targets.
18326
18327 2014-11-13 Andrey Turetskiy <[email protected]>
18328 Ilya Verbin <[email protected]>
18329 Kirill Yukhin <[email protected]>
18330 Ilya Tocar <[email protected]>
18331
18332 * testsuite/lib/libgomp.exp
18333 (check_effective_target_offload_device): New.
18334 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
18335 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
18336 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
18337 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
18338 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
18339 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
18340 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
18341 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
18342 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
18343 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
18344 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
18345 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
18346 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
18347 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
18348 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
18349 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
18350 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
18351 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
18352 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
18353 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
18354 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
18355 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
18356 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
18357 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
18358 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
18359 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
18360 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
18361 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
18362 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
18363 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
18364 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
18365 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
18366 * testsuite/libgomp.c/target-7.c: Fix test.
18367 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
18368 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
18369 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
18370 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
18371 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
18372 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
18373 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
18374 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
18375 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
18376 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
18377 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
18378 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
18379 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
18380 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
18381 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
18382 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
18383 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
18384 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
18385 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
18386 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
18387 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
18388 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
18389 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
18390 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
18391 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
18392 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
18393 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
18394 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
18395 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
18396 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
18397 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
18398
18399 2014-11-13 Jakub Jelinek <[email protected]>
18400 Ilya Verbin <[email protected]>
18401 Thomas Schwinge <[email protected]>
18402 Andrey Turetskiy <[email protected]>
18403
18404 * libgomp.map (GOMP_4.0.1): New symbol version.
18405 Add GOMP_offload_register.
18406 * libgomp_target.h: New file.
18407 * splay-tree.h: New file.
18408 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
18409 (gomp_target_init): New forward declaration.
18410 (gomp_is_initialized): New static variable.
18411 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
18412 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
18413 New structures.
18414 (offload_images, num_offload_images, devices, num_devices): New static
18415 variables.
18416 (splay_compare): New static function.
18417 (struct gomp_device_descr): New structure.
18418 (gomp_get_num_devices): Call gomp_target_init.
18419 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
18420 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
18421 (GOMP_offload_register): New function.
18422 (GOMP_target): Arrange for host callback to be performed in a separate
18423 initial thread and contention group, inheriting ICVs from
18424 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
18425 Add device initialization and lookup for target function in splay tree.
18426 (GOMP_target_data): Add device initialization and call gomp_map_vars.
18427 (GOMP_target_end_data): Call gomp_unmap_vars.
18428 (GOMP_target_update): Add device initialization and call gomp_update.
18429 (gomp_load_plugin_for_device, gomp_register_images_for_device)
18430 (gomp_target_init): New static functions.
18431
18432 2014-11-13 Bernd Schmidt <[email protected]>
18433 Thomas Schwinge <[email protected]>
18434 Ilya Verbin <[email protected]>
18435 Andrey Turetskiy <[email protected]>
18436
18437 * config.h.in: Regenerate.
18438 * configure: Regenerate.
18439 * configure.ac: Check for libdl, required for plugin support.
18440 (PLUGIN_SUPPORT): Define if plugins are supported.
18441 (enable_offload_targets): Support Intel MIC targets.
18442 (OFFLOAD_TARGETS): List of target names suitable for offloading.
18443
18444 2014-11-11 Francois-Xavier Coudert <[email protected]>
18445
18446 PR target/63610
18447 * configure: Regenerate.
18448
18449 2014-11-05 Rainer Orth <[email protected]>
18450
18451 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
18452
18453 2014-10-06 Marek Polacek <[email protected]>
18454
18455 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
18456 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
18457 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
18458 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
18459
18460 2014-10-06 Marek Polacek <[email protected]>
18461
18462 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
18463 * testsuite/libgomp.c/nqueens-1.c: Likewise.
18464 * testsuite/libgomp.c/pr26943-3.c: Likewise.
18465 * testsuite/libgomp.c/pr26943-4.c: Likewise.
18466 * testsuite/libgomp.c/pr36802-2.c: Likewise.
18467 * testsuite/libgomp.c/pr36802-3.c: Likewise.
18468 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
18469 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
18470 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
18471 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
18472 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
18473 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
18474 * testsuite/libgomp.c/omp-single-1.c: Likewise.
18475 * testsuite/libgomp.c/omp-single-2.c: Likewise.
18476 * testsuite/libgomp.c/omp_matvec.c: Likewise.
18477 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
18478 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
18479 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
18480 declarations.
18481
18482 2014-10-03 Jakub Jelinek <[email protected]>
18483
18484 PR libgomp/61200
18485 * testsuite/libgomp.c/pr61200.c: New test.
18486
18487 2014-09-18 Jakub Jelinek <[email protected]>
18488
18489 PR c++/63248
18490 * testsuite/libgomp.c++/pr63248.C: New test.
18491
18492 2014-08-04 Jakub Jelinek <[email protected]>
18493
18494 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
18495 is not zero, but taskgroup->children is NULL and there are
18496 any task->children, schedule those instead of waiting.
18497 * testsuite/libgomp.c/depend-6.c: New test.
18498 * testsuite/libgomp.c/depend-7.c: New test.
18499 * testsuite/libgomp.c/depend-8.c: New test.
18500 * testsuite/libgomp.c/depend-9.c: New test.
18501 * testsuite/libgomp.c/depend-10.c: New test.
18502
18503 2014-08-01 Jakub Jelinek <[email protected]>
18504
18505 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
18506 (struct gomp_taskwait): New type.
18507 (struct gomp_task): Add taskwait and parent_depends_on, remove
18508 in_taskwait and taskwait_sem fields.
18509 (gomp_finish_task): Don't destroy taskwait_sem.
18510 * task.c (gomp_init_task): Don't init in_taskwait, instead init
18511 taskwait and parent_depends_on.
18512 (GOMP_task): For if (0) tasks with depend clause that depend on
18513 earlier tasks don't defer them, instead call
18514 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
18515 Initialize redundant_out field, for redundant out entries just
18516 move them at the end of linked list instead of removing them
18517 completely, and set redundant_out flag instead of redundant.
18518 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
18519 that task.
18520 (gomp_task_run_post_handle_dependers): If parent is in
18521 gomp_task_maybe_wait_for_dependencies and newly runnable task
18522 is not parent_depends_on, queue it in parent->children linked
18523 list after all runnable tasks with parent_depends_on set.
18524 Adjust for addition of taskwait indirection.
18525 (gomp_task_run_post_remove_parent): If parent is in
18526 gomp_task_maybe_wait_for_dependencies and task to be removed
18527 is parent_depends_on, decrement n_depend and if needed awake
18528 parent. Adjust for addition of taskwait indirection.
18529 (GOMP_taskwait): Adjust for addition of taskwait indirection.
18530 (gomp_task_maybe_wait_for_dependencies): New function.
18531 * testsuite/libgomp.c/depend-5.c: New test.
18532
18533 2014-07-13 Tobias Burnus <[email protected]>
18534
18535 * testsuite/libgomp.fortran/pr34020.f90: Make compile
18536 with TS 18508/Fortran 2015.
18537
18538 2014-07-06 Marek Polacek <[email protected]>
18539
18540 PR c/6940
18541 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
18542
18543 2014-07-03 Jakub Jelinek <[email protected]>
18544
18545 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
18546 matches regex $lang_source_re, add $lang_include_flags to options.
18547 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
18548 * testsuite/libgomp.c++/c++.exp: Likewise.
18549 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
18550 and lang_include_flags instead of adding -fintrinsic-modules-path= to
18551 ALWAYS_CFLAGS.
18552 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
18553
18554 2014-07-03 Thomas Schwinge <[email protected]>
18555
18556 * testsuite/libgomp.fortran/fortran.exp: Explain
18557 gfortran-dg-runtest usage.
18558
18559 2014-06-25 Jakub Jelinek <[email protected]>
18560
18561 * testsuite/libgomp.fortran/simd5.f90: New test.
18562 * testsuite/libgomp.fortran/simd6.f90: New test.
18563 * testsuite/libgomp.fortran/simd7.f90: New test.
18564
18565 2014-06-24 Jakub Jelinek <[email protected]>
18566
18567 * testsuite/libgomp.c/for-2.c: Define SC to static for
18568 #pragma omp for simd testing.
18569 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
18570 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
18571 SC macro.
18572 * testsuite/libgomp.c/simd-14.c: New test.
18573 * testsuite/libgomp.c/simd-15.c: New test.
18574 * testsuite/libgomp.c/simd-16.c: New test.
18575 * testsuite/libgomp.c/simd-17.c: New test.
18576 * testsuite/libgomp.c++/for-10.C: Define SC to static for
18577 #pragma omp for simd testing.
18578 * testsuite/libgomp.c++/simd10.C: New test.
18579 * testsuite/libgomp.c++/simd11.C: New test.
18580 * testsuite/libgomp.c++/simd12.C: New test.
18581 * testsuite/libgomp.c++/simd13.C: New test.
18582
18583 * testsuite/libgomp.fortran/aligned1.f03: New test.
18584 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
18585 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
18586 tasks with !$omp parallel !$omp single.
18587 * testsuite/libgomp.fortran/target8.f90: New test.
18588 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
18589 not to use trim in the combiner, instead call elemental function.
18590 (fn): New elemental function.
18591 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
18592 Make elemental.
18593 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
18594 omp_in): Likewise.
18595 * testsuite/libgomp.fortran/udr12.f90: New test.
18596 * testsuite/libgomp.fortran/udr13.f90: New test.
18597 * testsuite/libgomp.fortran/udr14.f90: New test.
18598 * testsuite/libgomp.fortran/udr15.f90: New test.
18599
18600 2014-06-18 Jakub Jelinek <[email protected]>
18601
18602 * omp_lib.f90.in (openmp_version): Set to 201307.
18603 * omp_lib.h.in (openmp_version): Likewise.
18604 * testsuite/libgomp.c/target-8.c: New test.
18605 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
18606 and inbranch clauses.
18607 * testsuite/libgomp.fortran/depend-3.f90: New test.
18608 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
18609 openmp_version.
18610 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
18611 * testsuite/libgomp.fortran/target1.f90: New test.
18612 * testsuite/libgomp.fortran/target2.f90: New test.
18613 * testsuite/libgomp.fortran/target3.f90: New test.
18614 * testsuite/libgomp.fortran/target4.f90: New test.
18615 * testsuite/libgomp.fortran/target5.f90: New test.
18616 * testsuite/libgomp.fortran/target6.f90: New test.
18617 * testsuite/libgomp.fortran/target7.f90: New test.
18618
18619 2014-06-10 Jakub Jelinek <[email protected]>
18620
18621 PR fortran/60928
18622 * testsuite/libgomp.fortran/allocatable9.f90: New test.
18623 * testsuite/libgomp.fortran/allocatable10.f90: New test.
18624 * testsuite/libgomp.fortran/allocatable11.f90: New test.
18625 * testsuite/libgomp.fortran/allocatable12.f90: New test.
18626 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
18627 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
18628 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
18629 * testsuite/libgomp.fortran/associate1.f90: New test.
18630 * testsuite/libgomp.fortran/associate2.f90: New test.
18631 * testsuite/libgomp.fortran/procptr1.f90: New test.
18632
18633 2014-06-06 Jakub Jelinek <[email protected]>
18634
18635 * testsuite/libgomp.fortran/simd1.f90: New test.
18636 * testsuite/libgomp.fortran/udr1.f90: New test.
18637 * testsuite/libgomp.fortran/udr2.f90: New test.
18638 * testsuite/libgomp.fortran/udr3.f90: New test.
18639 * testsuite/libgomp.fortran/udr4.f90: New test.
18640 * testsuite/libgomp.fortran/udr5.f90: New test.
18641 * testsuite/libgomp.fortran/udr6.f90: New test.
18642 * testsuite/libgomp.fortran/udr7.f90: New test.
18643 * testsuite/libgomp.fortran/udr8.f90: New test.
18644 * testsuite/libgomp.fortran/udr9.f90: New test.
18645 * testsuite/libgomp.fortran/udr10.f90: New test.
18646 * testsuite/libgomp.fortran/udr11.f90: New test.
18647
18648 2014-05-27 Uros Bizjak <[email protected]>
18649
18650 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
18651 vect_simd_clones effective target.
18652 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
18653
18654 2014-05-21 Jakub Jelinek <[email protected]>
18655
18656 PR middle-end/61252
18657 * testsuite/libgomp.c++/simd-9.C: New test.
18658
18659 2014-05-18 Uros Bizjak <[email protected]>
18660
18661 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
18662 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
18663 texts according to their @menu entry positions.
18664
18665 2014-05-11 Jakub Jelinek <[email protected]>
18666
18667 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
18668 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
18669 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
18670 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
18671 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
18672 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
18673 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
18674 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
18675 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
18676 * testsuite/libgomp.fortran/depend-1.f90: New test.
18677 * testsuite/libgomp.fortran/depend-2.f90: New test.
18678 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
18679 * testsuite/libgomp.fortran/simd1.f90: New test.
18680 * testsuite/libgomp.fortran/simd2.f90: New test.
18681 * testsuite/libgomp.fortran/simd3.f90: New test.
18682 * testsuite/libgomp.fortran/simd4.f90: New test.
18683 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
18684
18685 2014-05-02 Jakub Jelinek <[email protected]>
18686
18687 * testsuite/libgomp.c/simd-10.c: New test.
18688 * testsuite/libgomp.c/simd-11.c: New test.
18689 * testsuite/libgomp.c/simd-12.c: New test.
18690 * testsuite/libgomp.c/simd-13.c: New test.
18691
18692 2014-04-24 Jakub Jelinek <[email protected]>
18693
18694 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
18695 atomic type clauses in any order and optional comma in between.
18696 * testsuite/libgomp.c++/atomic-15.C: Likewise.
18697 * testsuite/libgomp.c/atomic-17.c: Likewise.
18698
18699 * testsuite/libgomp.c/simd-7.c: New test.
18700 * testsuite/libgomp.c/simd-8.c: New test.
18701 * testsuite/libgomp.c/simd-9.c: New test.
18702 * testsuite/libgomp.c/loop-16.c: New test.
18703
18704 2014-04-02 Richard Henderson <[email protected]>
18705
18706 * config/linux/futex.h (futex_wait): Get error value from errno.
18707 (futex_wake): Likewise.
18708
18709 2014-03-25 Jakub Jelinek <[email protected]>
18710
18711 PR c++/60331
18712 * testsuite/libgomp.c++/udr-11.C: New test.
18713 * testsuite/libgomp.c++/udr-12.C: New test.
18714 * testsuite/libgomp.c++/udr-13.C: New test.
18715 * testsuite/libgomp.c++/udr-14.C: New test.
18716 * testsuite/libgomp.c++/udr-15.C: New test.
18717 * testsuite/libgomp.c++/udr-16.C: New test.
18718 * testsuite/libgomp.c++/udr-17.C: New test.
18719 * testsuite/libgomp.c++/udr-18.C: New test.
18720 * testsuite/libgomp.c++/udr-19.C: New test.
18721
18722 2014-01-02 Richard Sandiford <[email protected]>
18723
18724 Update copyright years
18725
18726 2014-01-02 Richard Sandiford <[email protected]>
18727
18728 * hashtab.h: Use the standard form for the copyright notice.
18729
18730 2014-01-02 Tobias Burnus <[email protected]>
18731
18732 * libgomp.texi: Bump @copying's copyright year.
18733
18734 2013-12-17 Andreas Tobler <[email protected]>
18735
18736 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
18737 alloca () with __builtin_alloca ().
18738 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
18739 * testsuite/libgomp.c/lock-3.c: Likewise.
18740 * testsuite/libgomp.c/pr48591.c: Likewise.
18741
18742 2013-12-17 Jakub Jelinek <[email protected]>
18743
18744 PR testsuite/59534
18745 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
18746 comparisons.
18747
18748 2013-12-16 Jakub Jelinek <[email protected]>
18749
18750 PR libgomp/58756
18751 * testsuite/libgomp.c/pr58756.c: New test.
18752
18753 2013-12-12 Jakub Jelinek <[email protected]>
18754
18755 PR libgomp/59467
18756 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
18757 !$omp parallel.
18758
18759 2013-11-07 Thomas Schwinge <[email protected]>
18760
18761 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
18762 ALWAYS_CFLAGS.
18763 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
18764 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
18765 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
18766 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
18767 Likewise.
18768
18769 * libgomp_g.h: Include <stddef.h> for size_t.
18770
18771 * libgomp.spec.in: Update comment about libgomp's dependencies.
18772 * configure.ac: Likewise.
18773 * configure: Regenerate.
18774
18775 2013-10-16 Tobias Burnus <[email protected]>
18776
18777 * libgomp.texi: (Runtime Library Routines): Update references for
18778 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
18779 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
18780 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
18781 (Environment Variables): Update references for OpenMP 4.0. Add
18782 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
18783 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
18784 order.
18785
18786 2013-10-14 Jakub Jelinek <[email protected]>
18787
18788 * env.c (parse_bind_var): Initialize value to avoid
18789 (false positive) warning.
18790
18791 2013-10-12 Jakub Jelinek <[email protected]>
18792
18793 PR libgomp/58691
18794 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
18795 to check variable.
18796 (gomp_init_num_threads): Move i variable declaration into
18797 #ifdef CPU_ALLOC_SIZE block.
18798 * config/linux/affinity.c (gomp_affinity_init_level): Test
18799 gomp_places_list_len == 0 rather than gomp_places_list == 0
18800 when checking for topology reading error.
18801 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
18802 * env.c (parse_affinity): Add ignore argument, if true, don't populate
18803 gomp_places_list, only parse env var and always return false.
18804 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
18805 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
18806 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
18807 and either of these variables were parsed correctly into a places
18808 list.
18809
18810 2013-10-11 Thomas Schwinge <[email protected]>
18811 Jakub Jelinek <[email protected]>
18812
18813 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
18814 of 5 loopfn matches.
18815 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
18816 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
18817 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
18818 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
18819 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
18820 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
18821 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
18822 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
18823
18824 2013-10-11 Thomas Schwinge <[email protected]>
18825
18826 * Makefile.am (omp_lib.mod): Streamline rule.
18827 * Makefile.in: Regenerate.
18828
18829 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
18830 exceptions.
18831
18832 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
18833 * testsuite/libgomp.fortran/lib1.f90: Likewise.
18834 * testsuite/libgomp.fortran/lib2.f: Likewise.
18835 * testsuite/libgomp.fortran/lib3.f: Likewise.
18836
18837 * configure.ac: Typo fix.
18838 * configure: Regenerate.
18839
18840 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
18841 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
18842
18843 * omp.h.in: Don't touch the user's namespace.
18844
18845 2013-10-11 Jakub Jelinek <[email protected]>
18846 Tobias Burnus <[email protected]>
18847 Richard Henderson <[email protected]>
18848
18849 * target.c: New file.
18850 * Makefile.am (libgomp_la_SOURCES): Add target.c.
18851 * Makefile.in: Regenerated.
18852 * libgomp_g.h (GOMP_task): Add depend argument.
18853 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
18854 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
18855 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
18856 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
18857 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
18858 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
18859 GOMP_taskgroup_start, GOMP_taskgroup_end,
18860 GOMP_parallel_sections): New prototypes.
18861 * fortran.c (omp_is_initial_device): Add ialias_redirect.
18862 (omp_is_initial_device_): New function.
18863 (ULP, STR1, STR2, ialias_redirect): Removed.
18864 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
18865 omp_set_default_device_8_, omp_get_default_device_,
18866 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
18867 functions.
18868 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
18869 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
18870 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
18871 @@GOMP_4.0.
18872 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
18873 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
18874 omp_set_default_device, omp_set_default_device_,
18875 omp_set_default_device_8_, omp_get_default_device,
18876 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
18877 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
18878 omp_get_team_num_): Export @@OMP_4.0.
18879 * team.c (struct gomp_thread_start_data): Add place field.
18880 (gomp_thread_start): Clear thr->thread_pool and
18881 thr->task before returning. Use gomp_team_barrier_wait_final
18882 instead of gomp_team_barrier_wait. Initialize thr->place.
18883 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
18884 team_cancelled and task_queued_count fields.
18885 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
18886 before calling pthread_exit.
18887 (gomp_free_thread): No longer static. Use
18888 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
18889 (gomp_team_start): Add flags argument. Set
18890 thr->thread_pool->threads_busy to nthreads immediately after creating
18891 new pool. Use gomp_managed_threads_lock instead of
18892 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
18893 (gomp_team_end): Use gomp_managed_threads_lock instead of
18894 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
18895 of gomp_team_barrier_wait. If team->team_cancelled, call
18896 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
18897 rather than thr->ts.work_share.
18898 (initialize_team): Don't call gomp_sem_init here.
18899 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
18900 caller.
18901 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
18902 * env.c (gomp_global_icv): Add default_device_var, target_data and
18903 bind_var initializers.
18904 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
18905 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
18906 gomp_places_list_len): New variables.
18907 (parse_bind_var, parse_one_place, parse_places_var): New functions.
18908 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
18909 sized places.
18910 (gomp_cancel_var): New global variable.
18911 (parse_int): New function.
18912 (handle_omp_display_env): New function.
18913 (initialize_env): Use it. Initialize default_device_var.
18914 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
18915 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
18916 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
18917 been successfully parsed (and call gomp_init_affinity in that case).
18918 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
18919 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
18920 omp_get_team_num, omp_is_initial_device): New functions.
18921 * libgomp.h: Include stdlib.h.
18922 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
18923 Define.
18924 (struct target_mem_desc): Forward declare.
18925 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
18926 and thread_limit_var fields.
18927 (gomp_get_num_devices): New prototype.
18928 (gomp_cancel_var): New extern decl.
18929 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
18930 team_cancelled and task_queued_count fields. Add comments about
18931 task_{,queued_,running_}count.
18932 (gomp_cancel_kind): New enum.
18933 (gomp_work_share_end_cancel): New prototype.
18934 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
18935 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
18936 and depend fields.
18937 (struct gomp_taskgroup): New type.
18938 (struct gomp_task_depend_entry,
18939 struct gomp_dependers_vec): New types.
18940 (gomp_finish_task): Free depend_hash if non-NULL.
18941 (struct gomp_team_state): Add place_partition_off
18942 and place_partition_len fields.
18943 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
18944 gomp_places_list_len): New extern decls.
18945 (struct gomp_thread): Add place field.
18946 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
18947 (gomp_init_thread_affinity): Add place argument.
18948 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
18949 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
18950 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
18951 gomp_affinity_init_level, gomp_affinity_print_place): New
18952 prototypes.
18953 (gomp_team_start): Add flags argument.
18954 (gomp_thread_limit_var, gomp_remaining_threads_count,
18955 gomp_remaining_threads_lock): Remove.
18956 (gomp_managed_threads_lock): New variable.
18957 (struct gomp_thread_pool): Add threads_busy field.
18958 (gomp_free_thread): New prototype.
18959 * task.c: Include hashtab.h.
18960 (hash_entry_type): New typedef.
18961 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
18962 (gomp_init_task): Clear dependers, depend_hash, depend_count,
18963 copy_ctors_done and taskgroup fields.
18964 (GOMP_task): Add depend argument, handle depend clauses. If
18965 gomp_team_barrier_cancelled or if it's taskgroup has been
18966 cancelled, don't queue or start new tasks. Set copy_ctors_done
18967 field if needed. Initialize taskgroup field. If copy_ctors_done
18968 and already cancelled, don't discard the task. If taskgroup is
18969 non-NULL, enqueue the task into taskgroup queue. Increment
18970 num_children field in taskgroup. Increment task_queued_count.
18971 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
18972 gomp_task_run_post_remove_taskgroup): New inline functions.
18973 (gomp_task_run_post_handle_depend_hash,
18974 gomp_task_run_post_handle_dependers,
18975 gomp_task_run_post_handle_depend): New functions.
18976 (GOMP_taskwait): Use them. If more than one new tasks
18977 have been queued, wake other threads if needed.
18978 (gomp_barrier_handle_tasks): Likewise. If
18979 gomp_team_barrier_cancelled, don't start any new tasks, just free
18980 all tasks.
18981 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
18982 * omp_lib.f90.in
18983 (omp_proc_bind_kind, omp_proc_bind_false,
18984 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
18985 omp_proc_bind_spread): New params.
18986 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
18987 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
18988 omp_get_team_num, omp_is_initial_device): New interfaces.
18989 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
18990 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
18991 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
18992 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
18993 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
18994 useless use omp_lib_kinds.
18995 * omp.h.in (omp_proc_bind_t): New typedef.
18996 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
18997 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
18998 omp_get_team_num, omp_is_initial_device): New prototypes.
18999 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
19000 through to gomp_team_start.
19001 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
19002 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
19003 Adjust gomp_parallel_loop_start callers.
19004 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
19005 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
19006 GOMP_loop_end_cancel): New functions.
19007 (GOMP_parallel_end): Add ialias_redirect.
19008 * hashtab.h: New file.
19009 * libgomp.texi (Environment Variables): Minor cleanup,
19010 update section refs to OpenMP 4.0rc2.
19011 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
19012 environment variables.
19013 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
19014 team->work_shares_to_free to thr->ts.work_share before calling
19015 free_work_share.
19016 (gomp_work_share_end_cancel): New function.
19017 * config/linux/proc.c: Include errno.h.
19018 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
19019 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
19020 sizeof (cpu_set_t) to determine number of iterations. Fix up check
19021 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
19022 gomp_cpuset_size is sizeof (cpu_set_t).
19023 (gomp_init_num_threads): Initialize gomp_cpuset_size,
19024 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
19025 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
19026 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
19027 contain any logical CPUs.
19028 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
19029 is NULL. Use gomp_cpusetp instead of &cpuset and pass
19030 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
19031 pthread_getaffinity_np. Check gomp_places_list instead of
19032 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
19033 * config/linux/bar.c (gomp_barrier_wait_end,
19034 gomp_barrier_wait_last): Use BAR_* defines.
19035 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
19036 from state where needed. Set work_share_cancelled to 0 on last
19037 thread.
19038 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
19039 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
19040 functions.
19041 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
19042 Add cpusetsize argument.
19043 (gomp_cpuset_size, gomp_cpusetp): Declare.
19044 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
19045 (affinity_counter): Remove.
19046 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
19047 if CPU_ALLOC_SIZE isn't defined.
19048 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
19049 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
19050 bind current thread to the first place.
19051 (gomp_init_thread_affinity): Rewritten. Add place argument, just
19052 pthread_setaffinity_np to gomp_places_list[place].
19053 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
19054 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
19055 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
19056 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
19057 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
19058 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
19059 (gomp_barrier_t): Add awaited_final field.
19060 (gomp_barrier_init): Initialize awaited_final field.
19061 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
19062 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
19063 prototypes.
19064 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
19065 defines.
19066 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
19067 gomp_team_barrier_cancelled): New inline functions.
19068 (gomp_barrier_last_thread,
19069 gomp_team_barrier_set_task_pending,
19070 gomp_team_barrier_clear_task_pending,
19071 gomp_team_barrier_set_waiting_for_tasks,
19072 gomp_team_barrier_waiting_for_tasks,
19073 gomp_team_barrier_done): Use BAR_* defines.
19074 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
19075 (gomp_barrier_wait_end): Use BAR_* defines.
19076 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
19077 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
19078 Use BAR_* defines.
19079 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
19080 gomp_team_barrier_cancel): New functions.
19081 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
19082 argument.
19083 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
19084 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
19085 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
19086 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
19087 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
19088 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
19089 (gomp_barrier_t): Add cancellable field.
19090 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
19091 gomp_team_barrier_cancel): New prototypes.
19092 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
19093 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
19094 gomp_team_barrier_cancelled): New inline functions.
19095 (gomp_barrier_wait_start, gomp_barrier_last_thread,
19096 gomp_team_barrier_set_task_pending,
19097 gomp_team_barrier_clear_task_pending,
19098 gomp_team_barrier_set_waiting_for_tasks,
19099 gomp_team_barrier_waiting_for_tasks,
19100 gomp_team_barrier_done): Use BAR_* defines.
19101 * barrier.c (GOMP_barrier_cancel): New function.
19102 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
19103 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
19104 omp_proc_bind_spread): New params.
19105 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
19106 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
19107 omp_get_team_num, omp_is_initial_device): New externals.
19108 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
19109 New functions.
19110 (gomp_resolve_num_threads): Adjust for thread_limit now being in
19111 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
19112 infinity. If not nested, just return minimum of max_num_threads
19113 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
19114 to the returned value. Otherwise, don't update atomically
19115 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
19116 (GOMP_parallel_end): Adjust for thread_limit now being in
19117 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
19118 infinity. Adjust threads_busy in the pool rather than
19119 gomp_remaining_threads_count. Remember team->nthreads and call
19120 gomp_team_end before adjusting threads_busy, if not nested
19121 afterwards, just set it to 1 non-atomically. Add ialias.
19122 (GOMP_parallel_start): Adjust gomp_team_start caller.
19123 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
19124 * testsuite/libgomp.c/affinity-1.c: New test.
19125 * testsuite/libgomp.c/atomic-15.c: New test.
19126 * testsuite/libgomp.c/atomic-16.c: New test.
19127 * testsuite/libgomp.c/atomic-17.c: New test.
19128 * testsuite/libgomp.c/cancel-for-1.c: New test.
19129 * testsuite/libgomp.c/cancel-for-2.c: New test.
19130 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
19131 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
19132 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
19133 * testsuite/libgomp.c/cancel-sections-1.c: New test.
19134 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
19135 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
19136 * testsuite/libgomp.c/depend-1.c: New test.
19137 * testsuite/libgomp.c/depend-2.c: New test.
19138 * testsuite/libgomp.c/depend-3.c: New test.
19139 * testsuite/libgomp.c/depend-4.c: New test.
19140 * testsuite/libgomp.c/for-1.c: New test.
19141 * testsuite/libgomp.c/for-1.h: New file.
19142 * testsuite/libgomp.c/for-2.c: New test.
19143 * testsuite/libgomp.c/for-2.h: New file.
19144 * testsuite/libgomp.c/for-3.c: New test.
19145 * testsuite/libgomp.c/pr58392.c: New test.
19146 * testsuite/libgomp.c/simd-1.c: New test.
19147 * testsuite/libgomp.c/simd-2.c: New test.
19148 * testsuite/libgomp.c/simd-3.c: New test.
19149 * testsuite/libgomp.c/simd-4.c: New test.
19150 * testsuite/libgomp.c/simd-5.c: New test.
19151 * testsuite/libgomp.c/simd-6.c: New test.
19152 * testsuite/libgomp.c/target-1.c: New test.
19153 * testsuite/libgomp.c/target-2.c: New test.
19154 * testsuite/libgomp.c/target-3.c: New test.
19155 * testsuite/libgomp.c/target-4.c: New test.
19156 * testsuite/libgomp.c/target-5.c: New test.
19157 * testsuite/libgomp.c/target-6.c: New test.
19158 * testsuite/libgomp.c/target-7.c: New test.
19159 * testsuite/libgomp.c/taskgroup-1.c: New test.
19160 * testsuite/libgomp.c/thread-limit-1.c: New test.
19161 * testsuite/libgomp.c/thread-limit-2.c: New test.
19162 * testsuite/libgomp.c/thread-limit-3.c: New test.
19163 * testsuite/libgomp.c/udr-1.c: New test.
19164 * testsuite/libgomp.c/udr-2.c: New test.
19165 * testsuite/libgomp.c/udr-3.c: New test.
19166 * testsuite/libgomp.c++/affinity-1.C: New test.
19167 * testsuite/libgomp.c++/atomic-10.C: New test.
19168 * testsuite/libgomp.c++/atomic-11.C: New test.
19169 * testsuite/libgomp.c++/atomic-12.C: New test.
19170 * testsuite/libgomp.c++/atomic-13.C: New test.
19171 * testsuite/libgomp.c++/atomic-14.C: New test.
19172 * testsuite/libgomp.c++/atomic-15.C: New test.
19173 * testsuite/libgomp.c++/cancel-for-1.C: New test.
19174 * testsuite/libgomp.c++/cancel-for-2.C: New test.
19175 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
19176 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
19177 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
19178 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
19179 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
19180 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
19181 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
19182 * testsuite/libgomp.c++/cancel-test.h: New file.
19183 * testsuite/libgomp.c++/for-9.C: New test.
19184 * testsuite/libgomp.c++/for-10.C: New test.
19185 * testsuite/libgomp.c++/for-11.C: New test.
19186 * testsuite/libgomp.c++/simd-1.C: New test.
19187 * testsuite/libgomp.c++/simd-2.C: New test.
19188 * testsuite/libgomp.c++/simd-3.C: New test.
19189 * testsuite/libgomp.c++/simd-4.C: New test.
19190 * testsuite/libgomp.c++/simd-5.C: New test.
19191 * testsuite/libgomp.c++/simd-6.C: New test.
19192 * testsuite/libgomp.c++/simd-7.C: New test.
19193 * testsuite/libgomp.c++/simd-8.C: New test.
19194 * testsuite/libgomp.c++/target-1.C: New test.
19195 * testsuite/libgomp.c++/target-2.C: New test.
19196 * testsuite/libgomp.c++/target-2-aux.cc: New file.
19197 * testsuite/libgomp.c++/target-3.C: New test.
19198 * testsuite/libgomp.c++/taskgroup-1.C: New test.
19199 * testsuite/libgomp.c++/udr-1.C: New test.
19200 * testsuite/libgomp.c++/udr-2.C: New test.
19201 * testsuite/libgomp.c++/udr-3.C: New test.
19202 * testsuite/libgomp.c++/udr-4.C: New test.
19203 * testsuite/libgomp.c++/udr-5.C: New test.
19204 * testsuite/libgomp.c++/udr-6.C: New test.
19205 * testsuite/libgomp.c++/udr-7.C: New test.
19206 * testsuite/libgomp.c++/udr-8.C: New test.
19207 * testsuite/libgomp.c++/udr-9.C: New test.
19208
19209 2013-09-20 Jakub Jelinek <[email protected]>
19210
19211 PR testsuite/57605
19212 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
19213 ALWAYS_CFLAGS.
19214
19215 2013-09-20 Alan Modra <[email protected]>
19216
19217 * configure: Regenerate.
19218
19219 2013-09-19 Jakub Jelinek <[email protected]>
19220
19221 * testsuite/libgomp.c/sections-2.c: New test.
19222
19223 2013-06-28 Marcus Shawcroft <[email protected]>
19224
19225 * testsuite/libgomp.fortran/strassen.f90:
19226 Add dg-skip-if aarch64_tiny.
19227
19228 2013-06-20 Iain Sandoe <[email protected]>
19229 Cesar Philippidis <[email protected]>
19230
19231 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
19232 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
19233 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
19234 * testsuite/libgomp.fortran/fortran.exp: Likewise.
19235 * testsuite/libgomp.graphite/graphite.exp: Likewise.
19236 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
19237 Use dg-runtest rather than gfortran-dg-runtest.
19238
19239 2013-06-10 Thomas Schwinge <[email protected]>
19240
19241 * testsuite/libgomp.c/icv-2.c: Extend current handling of
19242 Linux-based x86 systems to cover all GNU systems.
19243 * testsuite/libgomp.c/lock-3.c: Likewise.
19244 * testsuite/libgomp.c/pr48591.c: Likewise.
19245
19246 2013-06-06 Thomas Schwinge <[email protected]>
19247
19248 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
19249 GNU/Hurd, as done for Linux-based systems.
19250
19251 * config/posix/ptrlock.h: Fix comment.
19252
19253 2013-05-27 Tobias Burnus <[email protected]>
19254
19255 PR fortran/57423
19256 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
19257 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
19258 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
19259 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
19260 omp_destroy_nest_lock): Correct arguments to match the one in
19261 the OpenMP spec.
19262 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
19263 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
19264 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
19265 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
19266
19267 2013-05-16 Jakub Jelinek <[email protected]>
19268
19269 * testsuite/libgomp.c/loop-13.c: New test.
19270 * testsuite/libgomp.c/loop-14.c: New test.
19271 * testsuite/libgomp.c/loop-15.c: New test.
19272 * testsuite/libgomp.c++/loop-13.C: New test.
19273 * testsuite/libgomp.c++/loop-14.C: New test.
19274 * testsuite/libgomp.c++/loop-15.C: New test.
19275
19276 2013-02-06 Jakub Jelinek <[email protected]>
19277
19278 PR middle-end/56217
19279 * testsuite/libgomp.c++/pr56217.C: New test.
19280
19281 2013-02-01 Alan Modra <[email protected]>
19282
19283 * task.c (GOMP_task, GOMP_taskwait): Comment.
19284
19285 2013-01-31 Dmitry Vyukov <[email protected]>
19286 Joost VandeVondele <[email protected]>
19287
19288 PR libgomp/55561
19289 * config/linux/wait.h (do_spin): Use atomic load for addr.
19290 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
19291 for intptr and ptrlock.
19292 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
19293 for ptrlock.
19294
19295 2013-01-22 Alan Modra <[email protected]>
19296
19297 PR libgomp/51376
19298 PR libgomp/56073
19299 * task.c (GOMP_task): Revert 2011-12-09 change.
19300 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
19301 barrier to read task->children..
19302 (gomp_barrier_handle_tasks): ..and matching atomic store with
19303 release barrier here when setting parent->children to NULL.
19304
19305 2013-01-16 Jakub Jelinek <[email protected]>
19306 Tobias Burnus <[email protected]>
19307
19308 PR driver/55884
19309 * testsuite/libgomp.fortran/fortran.exp: Use
19310 -fintrinsic-modules-path= instead of
19311 -fintrinsic-modules-path.
19312
19313 2013-01-14 Richard Sandiford <[email protected]>
19314
19315 Update copyright years.
19316
19317 2012-12-19 Tobias Burnus <[email protected]>
19318
19319 * testsuite/libgomp.fortran/fortran.exp: Set
19320 -fintrinsic-modules-path.
19321
19322 2012-12-19 Tobias Burnus <[email protected]>
19323
19324 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
19325 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
19326
19327 2012-11-21 Jakub Jelinek <[email protected]>
19328
19329 PR libgomp/55411
19330 * team.c (gomp_free_thread): Decrease gomp_managed_threads
19331 if pool had any threads_used.
19332
19333 2012-11-07 Jack Howarth <[email protected]>
19334
19335 * testsuite/libgomp.c++/pr24455.C: Use
19336 -Wl,-undefined,dynamic_lookup on darwin.
19337
19338 2012-11-07 David Edelsohn <[email protected]>
19339
19340 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
19341
19342 2012-10-24 Dominique d'Humieres <[email protected]>
19343
19344 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
19345
19346 2012-10-23 Ian Bolton <[email protected]>
19347 Jim MacArthur <[email protected]>
19348 Marcus Shawcroft <[email protected]>
19349 Nigel Stephens <[email protected]>
19350 Ramana Radhakrishnan <[email protected]>
19351 Richard Earnshaw <[email protected]>
19352 Sofiane Naci <[email protected]>
19353 Stephen Thomas <[email protected]>
19354 Tejas Belagod <[email protected]>
19355 Yufeng Zhang <[email protected]>
19356
19357 * configure.tgt: Add AArch64.
19358
19359 2012-10-04 Jason Merrill <[email protected]>
19360
19361 * testsuite/libgomp.c++/tls-init1.C: New.
19362
19363 2012-09-14 David Edelsohn <[email protected]>
19364
19365 * configure: Regenerated.
19366
19367 2012-08-29 Chung-Lin Tang <[email protected]>
19368
19369 * config/linux/mips/futex.h (sys_futex0): Change to static
19370 function with noinline, nomips16 attributes under MIPS16. Adjust
19371 asm statement to place 'li v0,SYS_futex' immediately before
19372 syscall insn.
19373
19374 2012-07-04 Sandra Loosemore <[email protected]>
19375
19376 * libgomp.texi (Library Index): Renamed from "Index" to prevent
19377 conflict with index.html on case-insensitive file systems.
19378
19379 2012-07-03 Uros Bizjak <[email protected]>
19380
19381 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
19382 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
19383
19384 2012-07-02 Richard Guenther <[email protected]>
19385 Michael Matz <[email protected]>
19386 Tobias Grosser <[email protected]>
19387 Sebastian Pop <[email protected]>
19388
19389 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
19390 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
19391 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
19392 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
19393
19394 2012-06-28 Andreas Schwab <[email protected]>
19395
19396 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
19397
19398 2012-06-22 Richard Guenther <[email protected]>
19399
19400 Merge from graphite branch
19401 2012-01-13 Tobias Grosser <[email protected]>
19402
19403 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
19404 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
19405
19406 2012-06-07 Jakub Jelinek <[email protected]>
19407
19408 PR middle-end/53580
19409 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
19410 use GOMP_barrier () call instead.
19411 * testsuite/libgomp.c/pr26943-3.c: Likewise.
19412 * testsuite/libgomp.c/pr26943-4.c: Likewise.
19413 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
19414 call GOMP_barrier instead.
19415 * testsuite/libgomp.fortran/vla5.f90: Likewise.
19416
19417 2012-06-06 Jakub Jelinek <[email protected]>
19418
19419 PR libgomp/52993
19420 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
19421 argument to memset call.
19422
19423 2012-05-16 H.J. Lu <[email protected]>
19424
19425 * configure: Regenerated.
19426
19427 2012-04-11 Manuel López-Ibáñez <[email protected]>
19428
19429 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
19430
19431 2012-03-31 H.J. Lu <[email protected]>
19432
19433 PR bootstrap/52812
19434 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
19435
19436 2012-03-22 Jakub Jelinek <[email protected]>
19437
19438 PR middle-end/52547
19439 * testsuite/libgomp.c/pr52547.c: New test.
19440
19441 2012-03-16 Bernhard Reutner-Fischer <[email protected]>
19442
19443 * testsuite/lib/libgomp.exp: load fortran-modules.exp
19444
19445 2012-03-14 Rainer Orth <[email protected]>
19446
19447 * configure.tgt (mips-sgi-irix6*): Remove.
19448
19449 2012-03-12 Rainer Orth <[email protected]>
19450
19451 * configure.tgt (alpha*-dec-osf*): Remove.
19452
19453 * config/osf/sem.h: Remove.
19454 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
19455
19456 2012-02-29 Eric Botcazou <[email protected]>
19457
19458 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
19459
19460 2012-02-27 Rainer Orth <[email protected]>
19461
19462 PR libstdc++/52188
19463 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
19464 Remove ENABLE_SYMVERS_SOL2.
19465 * configure: Regenerate.
19466 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
19467 (PREPROCESS): New variable.
19468 (libgomp.ver): New target.
19469 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
19470 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
19471 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
19472 Use libgomp.ver.
19473 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
19474 * Makefile.in: Regenerate.
19475
19476 2012-02-14 Walter Lee <[email protected]>
19477
19478 * configure.tgt: Handle tilegx and tilepro.
19479 * config/linux/tile/futex.h: New file.
19480
19481 2012-02-08 Richard Guenther <[email protected]>
19482
19483 PR tree-optimization/46886
19484 * testsuite/libgomp.c/pr46886.c: New testcase.
19485
19486 2012-01-25 Matthias Klose <[email protected]>
19487
19488 * config/linux/arm: Remove empty directory.
19489 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
19490
19491 2011-12-09 Alan Modra <[email protected]>
19492
19493 PR libgomp/51376
19494 * task.c (GOMP_taskwait): Don't access task->children outside of
19495 task_lock mutex region.
19496 (GOMP_task): Likewise.
19497
19498 2011-12-06 Jakub Jelinek <[email protected]>
19499
19500 PR libgomp/51132
19501 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
19502 to file scope.
19503 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
19504 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
19505 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
19506 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
19507 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
19508
19509 2011-12-02 Alan Modra <[email protected]>
19510
19511 * config/linux/affinity.c: Use atomic rather than sync builtin.
19512 * config/linux/lock.c: Likewise.
19513 * config/linux/ptrlock.h: Likewise.
19514 * config/linux/ptrlock.c: Likewise.
19515 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
19516 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
19517 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
19518 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
19519 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
19520 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
19521 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
19522 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
19523 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
19524 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
19525
19526 2011-11-30 Alan Modra <[email protected]>
19527
19528 PR libgomp/51298
19529 * config/linux/bar.h: Use atomic rather than sync builtins.
19530 * config/linux/bar.c: Likewise. Add missing acquire
19531 synchronisation on generation field.
19532 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
19533 double unlock.
19534
19535 2011-11-30 Alan Modra <[email protected]>
19536
19537 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
19538 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
19539 * config/linux/mutex.h: Use atomic rather than sync builtins.
19540 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
19541 * config/linux/omp-lock.h: Comment fix.
19542 * config/linux/arm/mutex.h: Delete.
19543 * config/linux/powerpc/mutex.h: Delete.
19544 * config/linux/ia64/mutex.h: Delete.
19545 * config/linux/mips/mutex.h: Delete.
19546
19547 2011-11-30 Alan Modra <[email protected]>
19548
19549 PR libgomp/51249
19550 * config/linux/sem.h: Rewrite.
19551 * config/linux/sem.c: Rewrite.
19552
19553 2011-11-28 Richard Henderson <[email protected]>
19554
19555 * libgomp.h (enum memmodel): New.
19556
19557 2011-11-21 Andreas Tobler <[email protected]>
19558
19559 * configure: Regenerate.
19560
19561 2011-10-10 Matthias Klose <[email protected]>
19562
19563 * config/posix95: Remove empty directory.
19564
19565 2011-08-26 Jakub Jelinek <[email protected]>
19566
19567 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
19568
19569 2011-08-19 Jakub Jelinek <[email protected]>
19570
19571 PR fortran/49792
19572 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
19573 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
19574
19575 2011-08-08 Rainer Orth <[email protected]>
19576
19577 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
19578
19579 2011-08-05 Rainer Orth <[email protected]>
19580
19581 PR libgomp/49965
19582 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
19583
19584 2011-08-03 Uros Bizjak <[email protected]>
19585
19586 * config/linux/proc.h: New.
19587 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
19588 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
19589 (gomp_init_num_threads): Update call to cpuset_popcount.
19590 (get_num_procs): Ditto.
19591 * config/linux/affinity.c (gomp_init_affinity): Call
19592 gomp_cpuset_popcount.
19593
19594 2011-08-02 Jakub Jelinek <[email protected]>
19595
19596 PR fortran/42041
19597 PR fortran/46752
19598 * omp.h.in (omp_in_final): New prototype.
19599 * omp_lib.f90.in (omp_in_final): New interface.
19600 (omp_integer_kind, omp_logical_kind): Remove
19601 and replace all its uses in the module with 4.
19602 (openmp_version): Change to 201107.
19603 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
19604 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
19605 kind for the parameters.
19606 (omp_in_final): New external.
19607 (openmp_version): Change to 201107.
19608 * task.c (omp_in_final): New function.
19609 (gomp_init_task): Initialize final_task.
19610 (GOMP_task): Remove unused attribute from flags. Handle final
19611 tasks.
19612 (GOMP_taskyield): New function.
19613 (omp_in_final): Return true if if (false) or final (true) task
19614 or descendant of final (true).
19615 * fortran.c (omp_in_final_): New function.
19616 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
19617 (GOMP_3.0): Export GOMP_taskyield.
19618 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
19619 variables.
19620 (parse_unsigned_long_list): New function.
19621 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
19622 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
19623 even if parse_affinity returned false.
19624 * config/linux/affinity.c (gomp_init_affinity): Handle
19625 gomp_cpu_affinity_len == 0.
19626 * libgomp_g.h (GOMP_taskyield): New prototype.
19627 * libgomp.h (struct gomp_task): Add final_task field.
19628 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
19629 * team.c (gomp_team_start): Override new task's nthreads_var icv
19630 if list form OMP_NUM_THREADS has been used and it has value for
19631 the new nesting level.
19632
19633 * testsuite/libgomp.c/atomic-11.c: New test.
19634 * testsuite/libgomp.c/atomic-12.c: New test.
19635 * testsuite/libgomp.c/atomic-13.c: New test.
19636 * testsuite/libgomp.c/atomic-14.c: New test.
19637 * testsuite/libgomp.c/reduction-6.c: New test.
19638 * testsuite/libgomp.c/task-5.c: New test.
19639 * testsuite/libgomp.c++/atomic-2.C: New test.
19640 * testsuite/libgomp.c++/atomic-3.C: New test.
19641 * testsuite/libgomp.c++/atomic-4.C: New test.
19642 * testsuite/libgomp.c++/atomic-5.C: New test.
19643 * testsuite/libgomp.c++/atomic-6.C: New test.
19644 * testsuite/libgomp.c++/atomic-7.C: New test.
19645 * testsuite/libgomp.c++/atomic-8.C: New test.
19646 * testsuite/libgomp.c++/atomic-9.C: New test.
19647 * testsuite/libgomp.c++/task-8.C: New test.
19648 * testsuite/libgomp.c++/reduction-4.C: New test.
19649 * testsuite/libgomp.fortran/allocatable7.f90: New test.
19650 * testsuite/libgomp.fortran/allocatable8.f90: New test.
19651 * testsuite/libgomp.fortran/crayptr3.f90: New test.
19652 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
19653 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
19654 * testsuite/libgomp.fortran/pointer1.f90: New test.
19655 * testsuite/libgomp.fortran/pointer2.f90: New test.
19656 * testsuite/libgomp.fortran/task4.f90: New test.
19657
19658 2011-08-02 Tobias Burnus <[email protected]>
19659
19660 * libgomp.texi: Update OpenMP spec references to 3.1.
19661 (omp_in_final,OMP_PROC_BIND): New sections.
19662 (OMP_NUM_THREADS): Document that the value can be now a list.
19663 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
19664
19665 2011-08-02 H.J. Lu <[email protected]>
19666
19667 * config/linux/x86/futex.h: Check __x86_64__ instead of
19668 __LP64__.
19669
19670 2011-07-29 Jakub Jelinek <[email protected]>
19671
19672 PR middle-end/49897
19673 PR middle-end/49898
19674 * testsuite/libgomp.c/pr49897-1.c: New test.
19675 * testsuite/libgomp.c/pr49897-2.c: New test.
19676 * testsuite/libgomp.c/pr49898-1.c: New test.
19677 * testsuite/libgomp.c/pr49898-2.c: New test.
19678
19679 2011-07-28 H.J. Lu <[email protected]>
19680
19681 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
19682 for ia32 instead of ilp32.
19683
19684 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
19685 * testsuite/libgomp.c/atomic-6.c: Likewise.
19686
19687 2011-07-23 Sebastian Pop <[email protected]>
19688
19689 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
19690 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
19691
19692 2011-07-25 Rainer Orth <[email protected]>
19693
19694 PR libgomp/45351
19695 * config/osf/sem.h: New file.
19696 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
19697
19698 2011-07-18 Rainer Orth <[email protected]>
19699
19700 PR target/49541
19701 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
19702 ldflags.
19703
19704 2011-07-15 Jakub Jelinek <[email protected]>
19705
19706 * config/linux/wait.h (do_spin): New inline, largely copied
19707 from do_wait, just don't do futex_wait here, instead return true if
19708 it should be done.
19709 (do_wait): Implement using do_spin.
19710 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
19711 to prototype.
19712 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
19713 __sync_bool_compare_and_swap, pass the oldval to
19714 gomp_mutex_lock_slow.
19715 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
19716 If all mutex contenders are just spinning and not sleeping, don't
19717 change state to 2 unnecessarily. Optimize the loop when state has
19718 already become 2 to use just one atomic operation per loop instead
19719 of two.
19720 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
19721 to prototype.
19722 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
19723 __sync_bool_compare_and_swap, pass the oldval to
19724 gomp_mutex_lock_slow.
19725
19726 2011-06-22 Jakub Jelinek <[email protected]>
19727
19728 PR libgomp/49490
19729 * iter.c (gomp_iter_static_next): For chunk size 0
19730 only use n ceil/ nthreads size for the first
19731 n % nthreads threads in the team instead of
19732 all threads except for the last few ones which
19733 get less work or none at all.
19734 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
19735 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
19736 chunk argument, set run_sched_modifier to 0 for static
19737 resp. 1 for other kinds. If chunk argument is 0
19738 and not static, set value to 1.
19739
19740 2011-05-19 Jakub Jelinek <[email protected]>
19741
19742 PR c++/49043
19743 * testsuite/libgomp.c++/pr49043.C: New test.
19744
19745 PR c++/48869
19746 * testsuite/libgomp.c++/pr48869.C: New test.
19747
19748 2011-05-06 Jakub Jelinek <[email protected]>
19749
19750 PR fortran/48894
19751 * fortran.c: Include limits.h.
19752 (TO_INT): Define.
19753 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
19754 *set.
19755 (omp_set_num_threads_8_, omp_set_schedule_8_,
19756 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
19757 omp_get_team_size_8_): Use TO_INT macro.
19758 * testsuite/libgomp.fortran/pr48894.f90: New test.
19759
19760 2011-04-13 Jakub Jelinek <[email protected]>
19761
19762 PR middle-end/48591
19763 * testsuite/libgomp.c/pr48591.c: New test.
19764
19765 2011-03-21 Rainer Orth <[email protected]>
19766
19767 PR bootstrap/48135
19768 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
19769 * configure: Regenerate.
19770
19771 2011-02-27 Jakub Jelinek <[email protected]>
19772
19773 PR fortran/47886
19774 * testsuite/libgomp.fortran/task3.f90: New test.
19775
19776 2011-02-24 Tobias Burnus <[email protected]>
19777
19778 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
19779
19780 2011-02-23 Jakub Jelinek <[email protected]>
19781
19782 PR libgomp/47854
19783 * libgomp.texi (omp_get_wtime): Don't say time in the past
19784 must be Unix Epoch.
19785
19786 2011-02-18 Jakub Jelinek <[email protected]>
19787
19788 PR libgomp/47804
19789 * testsuite/libgomp.fortran/fortran.exp: Check for both
19790 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
19791 but $blddir != "", still append ${blddir}/${lang_library_path}
19792 to ld_library_path.
19793
19794 2011-02-16 Tobias Burnus <[email protected]>
19795
19796 PR libgomp/47758
19797 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
19798 of libquadmath.a before adding its libpath to ldflags.
19799
19800 2011-02-14 Jakub Jelinek <[email protected]>
19801
19802 PR libgomp/47731
19803 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
19804 to FUTEX_WAIT futex syscall.
19805 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
19806
19807 2011-02-13 Ralf Wildenhues <[email protected]>
19808
19809 * configure: Regenerate.
19810
19811 2011-01-20 Benjamin Kosnik <[email protected]>
19812
19813 PR libstdc++/36104
19814 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
19815
19816 2011-01-16 Gerald Pfeifer
19817
19818 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
19819
19820 2010-12-14 Jakub Jelinek <[email protected]>
19821
19822 PR fortran/46874
19823 * libgomp.fortran/allocatable6.f90: New test.
19824
19825 2010-12-06 Rainer Orth <[email protected]>
19826
19827 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
19828 * configure: Regenerate.
19829
19830 2010-12-06 Dave Korn <[email protected]>
19831
19832 PR target/40125
19833 PR lto/46695
19834 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
19835 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
19836 * aclocal.m4: Regenerate.
19837 * configure: Regenerate.
19838 * Makefile.in: Regenerate.
19839 * testsuite/Makefile.in: Regenerate.
19840
19841 2010-12-02 Jakub Jelinek <[email protected]>
19842
19843 PR fortran/46753
19844 * libgomp.fortran/pr46753.f90: New test.
19845
19846 PR libgomp/43706
19847 * env.c (initialize_env): Default to spin count 300000
19848 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
19849 is specified.
19850
19851 PR libgomp/45240
19852 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
19853 at the end if sync builtins aren't supported.
19854
19855 2010-12-01 Rainer Orth <[email protected]>
19856
19857 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
19858
19859 2010-12-01 Rainer Orth <[email protected]>
19860
19861 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
19862
19863 2010-11-24 Iain Sandoe <[email protected]>
19864
19865 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
19866
19867 2010-11-16 Francois-Xavier Coudert <[email protected]>
19868 Tobias Burnus <[email protected]>
19869
19870 PR fortran/32049
19871 * configure.ac:
19872 * configure: Regenerate.
19873
19874 2010-10-06 Marcus Shawcroft <[email protected]>
19875
19876 * config/linux/futex.h: New.
19877 * config/linux/arm/mutex.h: New.
19878 * configure.tgt (arm*-*-linux*): Add config path.
19879
19880 2010-09-30 Sebastian Pop <[email protected]>
19881
19882 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
19883
19884 2010-09-23 Tobias Burnus <[email protected]>
19885
19886 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
19887 Change Fortran datatype to LOGICAL.
19888 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
19889 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
19890
19891 2010-08-21 Ralf Wildenhues <[email protected]>
19892
19893 * configure: Regenerate.
19894
19895 2010-07-26 Jakub Jelinek <[email protected]>
19896
19897 * libgomp.texi: Add function keyword to a couple of Fortran
19898 interfaces, use integer instead of int for Fortran.
19899
19900 2010-07-26 Aldy Hernandez <[email protected]>
19901
19902 * libgomp.texi: Fix spelling and pasto problems throughout.
19903 Adjust prototypes to match code.
19904
19905 2010-07-24 Tobias Burnus <[email protected]>
19906
19907 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
19908 silence -fwhole-file warning.
19909
19910 2010-07-23 Rainer Orth <[email protected]>
19911
19912 * configure.tgt (*-*-solaris2.[56]*): Removed.
19913
19914 2010-07-05 Rainer Orth <[email protected]>
19915
19916 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
19917 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
19918 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
19919 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
19920 targetting solaris2*.
19921 * configure: Regenerate.
19922 * config.h.in: Regenerate.
19923
19924 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
19925 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
19926 Add libgomp_version_dep.
19927 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
19928 versioning.
19929 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
19930 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
19931 * Makefile.in: Regenerate.
19932
19933 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
19934 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
19935 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
19936 to common block, protected by
19937 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
19938
19939 2010-06-10 Gerald Pfeifer <[email protected]>
19940
19941 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
19942
19943 2010-06-09 Iain Sandoe <[email protected]>
19944
19945 PR bootstrap/43170
19946 * configure: Regenerate.
19947
19948 2010-05-04 Ralf Wildenhues <[email protected]>
19949
19950 PR other/43620
19951 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
19952 * configure: Regenerate.
19953 * Makefile.in: Regenerate.
19954 * testsuite/Makefile.in: Regenerate.
19955
19956 2010-04-26 Jakub Jelinek <[email protected]>
19957
19958 PR c/43893
19959 * testsuite/libgomp.c/pr43893.c: New test.
19960 * testsuite/libgomp.c++/pr43893.C: New test.
19961
19962 2010-04-21 Jakub Jelinek <[email protected]>
19963
19964 PR middle-end/43570
19965 * testsuite/libgomp.fortran/vla8.f90: New test.
19966
19967 2010-04-20 Jakub Jelinek <[email protected]>
19968
19969 PR libgomp/43706
19970 * config/linux/affinity.c (gomp_init_affinity): Decrease
19971 gomp_available_cpus if affinity mask confines the process to fewer
19972 CPUs.
19973 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
19974 non-NULL, just return gomp_available_cpus.
19975
19976 PR libgomp/43569
19977 * sections.c (gomp_sections_init): Initialize ws->mode.
19978
19979 2010-04-14 Uros Bizjak <[email protected]>
19980
19981 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
19982 not unused bar variable.
19983 * configure: Regenerate.
19984
19985 2010-04-02 Ralf Wildenhues <[email protected]>
19986
19987 * Makefile.in: Regenerate.
19988 * aclocal.m4: Regenerate.
19989 * testsuite/Makefile.in: Regenerate.
19990
19991 2010-03-22 Jakub Jelinek <[email protected]>
19992
19993 PR libgomp/42942
19994 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
19995 (initialize_env): Adjust callers.
19996 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
19997 when the argument is 0.
19998
19999 * testsuite/libgomp.c/pr42942.c: New test.
20000
20001 2010-03-08 Tobias Grosser <[email protected]>
20002
20003 PR middle-end/42644
20004 PR middle-end/42130
20005 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
20006 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
20007
20008 2010-01-29 Rainer Orth <[email protected]>
20009
20010 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
20011 * testsuite/libgomp.c++/task-6.C: Likewise.
20012
20013 2010-01-28 Steve Ellcey <[email protected]>
20014
20015 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
20016
20017 2010-01-26 Paolo Bonzini <[email protected]>
20018
20019 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
20020 * configure: Regenerate.
20021
20022 2010-01-26 Jakub Jelinek <[email protected]>
20023
20024 PR fortran/42866
20025 * testsuite/libgomp.fortran/allocatable5.f90: New test.
20026
20027 2010-01-20 Paolo Bonzini <[email protected]>
20028
20029 * configure.ac: Test for executability of GFORTRAN.
20030 * configure: Regenerate.
20031
20032 2010-01-05 Rainer Orth <[email protected]>
20033
20034 * configure: Regenerate.
20035
20036 2010-01-04 H.J. Lu <[email protected]>
20037
20038 PR libgomp/42602
20039 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
20040
20041 2010-01-03 Richard Guenther <[email protected]>
20042
20043 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
20044
20045 2009-12-23 Sebastian Pop <[email protected]>
20046
20047 * testsuite/libgomp.graphite/pr4118.c: New.
20048
20049 2009-12-22 Iain Sandoe <[email protected]>
20050
20051 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
20052 for darwin, protect the test with require-effective-target tls_runtime.
20053 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
20054
20055 2009-12-22 Iain Sandoe <[email protected]>
20056
20057 PR target/41605
20058 * testsuite/lib/libgomp.exp: Provide -B options to allow for
20059 link spec %s substitutions for static libraries.
20060
20061 2009-12-18 Jack Howarth <[email protected]>
20062
20063 PR testsuite/42135
20064 * libgomp.graphite/force-parallel-2.c: Reduce array size.
20065
20066 2009-12-05 Ralf Wildenhues <[email protected]>
20067
20068 * Makefile.in: Regenerate.
20069 * configure: Regenerate.
20070 * testsuite/Makefile.in: Regenerate.
20071
20072 2009-11-30 Dave Korn <[email protected]>
20073
20074 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
20075 settings for LC_ALL and LANG.
20076
20077 2009-11-25 Jakub Jelinek <[email protected]>
20078
20079 PR fortran/42162
20080 * testsuite/libgomp.fortran/pr42162.f90: New test.
20081
20082 2009-11-13 Jakub Jelinek <[email protected]>
20083
20084 PR middle-end/42029
20085 * testsuite/libgomp.c/pr42029.c: New test.
20086
20087 2009-10-26 Jakub Jelinek <[email protected]>
20088
20089 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
20090 *s. Accept ld version without text in ()s.
20091 * configure: Regenerated.
20092
20093 2009-10-22 Razya Ladelsky <[email protected]>
20094
20095 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
20096
20097 2009-10-17 Ralf Wildenhues <[email protected]>
20098
20099 PR libgomp/41418
20100 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
20101 or a hyphen (happens with fortran language disabled).
20102 * configure: Regenerate.
20103
20104 2009-09-30 Ralf Wildenhues <[email protected]>
20105
20106 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
20107 use sed script portable to Solaris /bin/sed for extracting ld
20108 version.
20109 * configure: Regenerate.
20110
20111 2009-09-17 Alexander Monakov <[email protected]>
20112
20113 * testsuite/libgomp.graphite/bounds.c: New test.
20114
20115 2009-09-11 Ralf Wildenhues <[email protected]>
20116
20117 * Makefile.am (libgomp_la_LINK): New.
20118 * Makefile.in: Regenerate.
20119
20120 2009-08-24 Ralf Wildenhues <[email protected]>
20121
20122 * configure.ac (AC_PREREQ): Bump to 2.64.
20123
20124 2009-08-22 Ralf Wildenhues <[email protected]>
20125
20126 * Makefile.am (install-html, install-pdf): Remove.
20127 * Makefile.in: Regenerate.
20128
20129 * Makefile.in: Regenerate.
20130 * aclocal.m4: Regenerate.
20131 * config.h.in: Regenerate.
20132 * configure: Regenerate.
20133 * testsuite/Makefile.in: Regenerate.
20134
20135 2009-08-22 Ralf Wildenhues <[email protected]>
20136
20137 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
20138 * Makefile.in: Regenerate.
20139
20140 2009-08-20 Dave Korn <[email protected]>
20141
20142 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
20143 * Makefile.in: Regenerate.
20144
20145 2009-08-19 Tobias Burnus <[email protected]>
20146
20147 PR fortran/41102
20148 omp_lib.h.in: Fix -std=f95 errors.
20149
20150 2009-08-14 David Edelsohn <[email protected]>
20151
20152 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
20153 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
20154 * testsuite/libgomp.graphite/graphite.exp: New.
20155
20156 2009-08-05 Andreas Tobler <[email protected]>
20157
20158 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
20159 only build.
20160
20161 2009-08-04 David Daney <[email protected]>
20162
20163 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
20164 needed memory barrier semantics.
20165 * config/linux/mips/mutex.h: New file.
20166
20167 2009-07-30 Ralf Wildenhues <[email protected]>
20168
20169 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
20170
20171 2009-07-16 Joseph Myers <[email protected]>
20172
20173 * configure: Regenerate.
20174
20175 2009-07-11 Richard Sandiford <[email protected]>
20176
20177 PR testsuite/40699
20178 PR testsuite/40707
20179 PR testsuite/40709
20180 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
20181 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
20182 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
20183
20184 2009-07-02 Richard Sandiford <[email protected]>
20185
20186 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
20187 options when choosing a multilib.
20188
20189 2009-06-30 Richard Sandiford <[email protected]>
20190
20191 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
20192 ld_library_path. Use add_path. Add just find_libgcc_s to
20193 ld_library_path, not every libgcc multilib directory.
20194 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
20195 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
20196 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
20197 Use add_path.
20198 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
20199
20200 2009-06-09 Nathan Froyd <[email protected]>
20201
20202 * Makefile.am (LTLDFLAGS): Define.
20203 (LINK): Define.
20204 * Makefile.in: Regenerate.
20205
20206 2009-05-27 Janne Blomqvist <[email protected]>
20207
20208 PR fortran/39718
20209 * testsuite/libgomp.fortran/fortran.exp: Don't link with
20210 libgfortranbegin, check existence of libgfortran.a instead of
20211 libgfortranbegin.a.
20212
20213 2009-05-20 Jakub Jelinek <[email protected]>
20214
20215 PR libgomp/40174
20216 * team.c (gomp_thread_start): Destroy thr->release semaphore.
20217 (gomp_free_pool_helper): Likewise.
20218
20219 2009-04-20 Vasilis Liaskovitis <[email protected]>
20220 Jakub Jelinek <[email protected]>
20221
20222 PR fortran/35423
20223 * testsuite/libgomp.fortran/workshare2.f90: New test.
20224
20225 2009-04-09 Nick Clifton <[email protected]>
20226
20227 * iter.c: Change copyright header to refer to version 3 of the
20228 GNU General Public License with version 3.1 of the GCC Runtime
20229 Library Exception and to point readers at the COPYING3 and
20230 COPYING3.RUNTIME files and the FSF's license web page.
20231 * alloc.c: Likewise.
20232 * barrier.c: Likewise.
20233 * config/bsd/proc.c: Likewise.
20234 * config/linux/affinity.c: Likewise.
20235 * config/linux/alpha/futex.h: Likewise.
20236 * config/linux/bar.c: Likewise.
20237 * config/linux/bar.h: Likewise.
20238 * config/linux/ia64/futex.h: Likewise.
20239 * config/linux/ia64/mutex.h: Likewise.
20240 * config/linux/lock.c: Likewise.
20241 * config/linux/mips/futex.h: Likewise.
20242 * config/linux/mutex.c: Likewise.
20243 * config/linux/mutex.h: Likewise.
20244 * config/linux/powerpc/futex.h: Likewise.
20245 * config/linux/proc.c: Likewise.
20246 * config/linux/ptrlock.c: Likewise.
20247 * config/linux/ptrlock.h: Likewise.
20248 * config/linux/s390/futex.h: Likewise.
20249 * config/linux/sem.c: Likewise.
20250 * config/linux/sem.h: Likewise.
20251 * config/linux/sparc/futex.h: Likewise.
20252 * config/linux/wait.h: Likewise.
20253 * config/linux/x86/futex.h: Likewise.
20254 * config/mingw32/proc.c: Likewise.
20255 * config/mingw32/time.c: Likewise.
20256 * config/posix/affinity.c: Likewise.
20257 * config/posix/bar.c: Likewise.
20258 * config/posix/bar.h: Likewise.
20259 * config/posix/lock.c: Likewise.
20260 * config/posix/mutex.h: Likewise.
20261 * config/posix/proc.c: Likewise.
20262 * config/posix/ptrlock.h: Likewise.
20263 * config/posix/sem.c: Likewise.
20264 * config/posix/sem.h: Likewise.
20265 * config/posix/time.c: Likewise.
20266 * config/posix95/lock.c: Likewise.
20267 * critical.c: Likewise.
20268 * env.c: Likewise.
20269 * error.c: Likewise.
20270 * fortran.c: Likewise.
20271 * iter_ull.c: Likewise.
20272 * libgomp.h: Likewise.
20273 * libgomp_f.h.in: Likewise.
20274 * libgomp_g.h: Likewise.
20275 * loop.c: Likewise.
20276 * loop_ull.c: Likewise.
20277 * omp.h.in: Likewise.
20278 * omp_lib.f90.in: Likewise.
20279 * omp_lib.h.in: Likewise.
20280 * ordered.c: Likewise.
20281 * parallel.c: Likewise.
20282 * sections.c: Likewise.
20283 * single.c: Likewise.
20284 * task.c: Likewise.
20285 * team.c: Likewise.
20286 * work.c: Likewise.
20287
20288 2009-04-09 Jakub Jelinek <[email protected]>
20289
20290 * testsuite/config/default.exp: Change copyright header to refer to
20291 version 3 of the GNU General Public License and to point readers
20292 at the COPYING3 file and the FSF's license web page.
20293
20294 2009-04-08 Jakub Jelinek <[email protected]>
20295
20296 PR middle-end/39573
20297 * libgomp.c++/pr39573.C: New test.
20298
20299 2009-04-01 Jakub Jelinek <[email protected]>
20300
20301 PR other/39591
20302 * testsuite/libgomp.c/pr39591-1.c: New test.
20303 * testsuite/libgomp.c/pr39591-2.c: New test.
20304 * testsuite/libgomp.c/pr39591-3.c: New test.
20305
20306 2009-03-25 Uros Bizjak <[email protected]>
20307
20308 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
20309 * testsuite/libgomp.c/atomic-6.c: Ditto.
20310
20311 2009-03-23 Jakub Jelinek <[email protected]>
20312
20313 PR c/39495
20314 * testsuite/libgomp.c/loop-12.c: New test.
20315 * testsuite/libgomp.c/loop-11.c: New test.
20316 * testsuite/libgomp.c++/loop-11.C: New test.
20317 * testsuite/libgomp.c++/loop-12.C: New test.
20318 * testsuite/libgomp.c++/for-8.C: New test.
20319
20320 2009-03-01 Ralf Wildenhues <[email protected]>
20321
20322 * configure: Regenerate.
20323
20324 2009-02-11 Jakub Jelinek <[email protected]>
20325
20326 PR middle-end/39154
20327 * testsuite/libgomp.c/pr39154.c: New test.
20328
20329 2009-01-30 Ian Lance Taylor <[email protected]>
20330
20331 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
20332 libgomp_ld_is_gold. Get gold version number.
20333 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
20334 * configure: Rebuild.
20335
20336 2009-01-19 Iain Sandoe <[email protected]>
20337
20338 * testsuite/lib/libgomp.exp: Add -B option for targets that
20339 use libgfortran.a%s in their specs.
20340
20341 2009-01-07 Jakub Jelinek <[email protected]>
20342
20343 PR libgomp/38086
20344 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
20345 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
20346 HAVE_AS_SYMVER_DIRECTIVE is not defined.
20347 * configure: Regenerated.
20348 * config.h.in: Likewise.
20349
20350 2008-12-28 Jakub Jelinek <[email protected]>
20351
20352 PR c++/38650
20353 * testsuite/libgomp.c/pr38650.c: New test.
20354 * testsuite/libgomp.c++/pr38650.C: New test.
20355
20356 2008-12-27 Jakub Jelinek <[email protected]>
20357
20358 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
20359
20360 2008-12-26 Uros Bizjak <[email protected]>
20361
20362 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
20363
20364 2008-12-18 Ralf Wildenhues <[email protected]>
20365
20366 * configure: Regenerate.
20367
20368 2008-12-08 Jakub Jelinek <[email protected]>
20369
20370 PR middle-end/36802
20371 * testsuite/libgomp.c/pr36802-1.c: New test.
20372 * testsuite/libgomp.c/pr36802-2.c: New test.
20373 * testsuite/libgomp.c/pr36802-3.c: New test.
20374
20375 2008-12-01 Janis Johnson <[email protected]>
20376
20377 PR libgomp/38270
20378 * config/linux/powerpc/mutex.h: New.
20379
20380 2008-12-01 Jakub Jelinek <[email protected]>
20381
20382 PR c++/38257
20383 * testsuite/libgomp.c++/for-7.C: New test.
20384
20385 PR c++/38348
20386 * testsuite/libgomp.c++/for-6.C: New test.
20387
20388 2008-11-26 Janis Johnson <[email protected]>
20389
20390 PR testsuite/28870
20391 * testsuite/lib/libgomp.exp: Include new timeout library files.
20392 (libgomp_target_compile): Set timeout value from new proc.
20393
20394 2008-11-13 Steve Ellcey <[email protected]>
20395
20396 PR libgomp/37938
20397 * config/linux/ia64/mutex.h: New.
20398
20399 2008-11-04 Tobias Burnus <[email protected]>
20400
20401 PR libgomp/37935
20402 * libgomp.texi (Runtime library routines, environment variables):
20403 Update for OpenMP version 3.0.
20404
20405 2008-09-26 Peter O'Gorman <[email protected]>
20406 Steve Ellcey <[email protected]>
20407
20408 * configure: Regenerate for new libtool.
20409 * Makefile.in: Ditto.
20410 * testsuite/Makefile.in: Ditto.
20411
20412 2008-09-19 Jakub Jelinek <[email protected]>
20413 Andreas Tobler <[email protected]>
20414
20415 * config/bsd/proc.c: New file.
20416 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
20417 * configure.ac: Check for header <sys/sysctl.h>
20418 * configure: Regenerate.
20419 * config.h.in: Likewise.
20420
20421 2008-09-05 Janis Johnson <[email protected]>
20422
20423 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
20424
20425 2008-08-31 Aaron W. LaFramboise <[email protected]>
20426
20427 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
20428 * Makefile.in: Regenerated.
20429 * testsuite/Makefile.in: Regenerated.
20430
20431 2008-08-21 Nathan Froyd <[email protected]>
20432
20433 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
20434 depend on blddir if blddir exists.
20435 (libgomp_target_compile): Likewise.
20436 * testsuite/libgomp.c++/c++.exp: Likewise.
20437 * testsuite/libgomp.fortran/fortran.exp: Likewise.
20438
20439 2008-07-30 Ralf Wildenhues <[email protected]>
20440
20441 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
20442 Do not list GPL as Invariant Section.
20443
20444 2008-07-28 Ilie Garbacea <[email protected]>
20445 Chao-ying Fu <[email protected]>
20446
20447 * configure.tgt: Enable futex for MIPS.
20448 * config/linux/mips/futex.h: New file.
20449
20450 2008-07-16 Jakub Jelinek <[email protected]>
20451
20452 * team.c (gomp_team_end): Free team immediately if it has
20453 just one thread.
20454
20455 2008-07-08 David Edelsohn <[email protected]>
20456
20457 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
20458 * testsuite/libgomp.fortran/fortran.exp: Same.
20459 * testsuite/libgomp.c/c.exp: Same.
20460 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
20461 directory to library path first.
20462
20463 2008-06-29 Krister Walfridsson <[email protected]>
20464
20465 * env.c (parse_stacksize): Add cast to avoid warning.
20466 (parse_spincount): Likewise.
20467
20468 2008-06-27 Jakub Jelinek <[email protected]>
20469
20470 * testsuite/libgomp.c/loop-10.c: New test.
20471 * libgomp.c/loop-3.c (main): Add lastprivate clause.
20472 * libgomp.c++/loop-6.C (main): Likewise.
20473
20474 PR debug/36617
20475 * testsuite/libgomp.c/debug-1.c: New test.
20476
20477 2008-06-19 Jakub Jelinek <[email protected]>
20478
20479 * testsuite/libgomp.c/nqueens-1.c: New test.
20480
20481 PR c++/36523
20482 * testsuite/libgomp.c++/task-7.C: New function.
20483
20484 2008-06-17 Ralf Wildenhues <[email protected]>
20485
20486 * configure: Regenerate.
20487
20488 2008-06-15 John David Anglin <[email protected]>
20489
20490 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
20491 mutex when HAVE_SYNC_BUILTINS isn't defined.
20492
20493 2008-06-15 Ralf Wildenhues <[email protected]>
20494
20495 * libgomp.texi (omp_test_lock): Fix typo.
20496
20497 2008-06-12 Tobias Burnus <[email protected]>
20498
20499 * omp_lib.f90.in: Add "implicit none".
20500
20501 2008-06-12 Jakub Jelinek <[email protected]>
20502
20503 PR middle-end/36506
20504 * testsuite/libgomp.c/reduction-5.c: New test.
20505
20506 2008-06-11 Jakub Jelinek <[email protected]>
20507
20508 * libgomp.h (struct gomp_task): Add in_tied_task field.
20509 * task.c (gomp_init_task): Initialize it.
20510 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
20511 unconditionally. Don't call gomp_team_barrier_wake if
20512 current task is implicit or if(0) from implicit and number of
20513 running tasks is equal to nthreads - 1.
20514
20515 PR libgomp/36471
20516 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
20517 omp_get_team_size_8): Fix pastos.
20518
20519 PR libgomp/36469
20520 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
20521 * configure: Regenerated.
20522 * config.h.in: Regenerated.
20523 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
20524 defined.
20525
20526 2008-06-06 Andreas Tobler <[email protected]>
20527
20528 PR bootstrap/36452
20529 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
20530 (GOMP_loop_ull_dynamic_start): Likewise.
20531 (GOMP_loop_ull_guided_start): Likewise.
20532 (GOMP_loop_ull_ordered_static_start): Likewise.
20533 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
20534 (GOMP_loop_ull_ordered_guided_start): Likewise.
20535
20536 2008-06-06 Jakub Jelinek <[email protected]>
20537 Richard Henderson <[email protected]>
20538 Ulrich Drepper <[email protected]>
20539 Jakob Blomer <[email protected]>
20540
20541 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
20542 Substitute also OMP_*LOCK_25*.
20543 * configure: Regenerated.
20544 * config.h.in: Regenerated.
20545 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
20546 ptrlock.c and task.c.
20547 * Makefile.in: Regenerated.
20548 * testsuite/Makefile.in: Regenerated.
20549 * task.c: New file.
20550 * loop_ull.c: New file.
20551 * iter_ull.c: New file.
20552 * libgomp.h: Include ptrlock.h.
20553 (enum gomp_task_kind): New type.
20554 (struct gomp_team): Add task_lock, task_queue, task_count,
20555 task_running_count, single_count fields. Add
20556 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
20557 Remove work_share_lock, generation_mask,
20558 oldest_live_gen, num_live_gen and init_work_shares fields, add
20559 work work_share_list_alloc, work_share_list_free and work_share_chunk
20560 fields. Change work_shares from pointer to pointers into an array.
20561 Change ordered_release field into gomp_sem_t ** from flexible array
20562 member. Add implicit_task and initial_work_shares fields.
20563 Move close to the end of the struct.
20564 (struct gomp_team_state): Add single_count, last_work_share,
20565 active_level and level fields, remove work_share_generation.
20566 (gomp_barrier_handle_tasks): New prototype.
20567 (gomp_finish_task): New inline function.
20568 (struct gomp_work_share): Move chunk_size, end, incr into
20569 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
20570 next_ll fields. Reshuffle fields. Add next_alloc,
20571 next_ws, next_free and inline_ordered_team_ids fields, change
20572 ordered_team_ids into pointer from flexible array member.
20573 Add mode field. Put lock and next into a different cache line
20574 from most of the write-once fields.
20575 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
20576 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
20577 gomp_iter_ull_guided_next): New prototypes.
20578 (gomp_new_icv): New prototype.
20579 (struct gomp_thread): Add thread_pool and task fields.
20580 (struct gomp_thread_pool): New type.
20581 (gomp_new_team): New prototype.
20582 (gomp_team_start): Change type of last argument.
20583 (gomp_new_work_share): Removed.
20584 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
20585 (gomp_work_share_init_done): New static inline.
20586 (gomp_throttled_spin_count_var, gomp_available_cpus,
20587 gomp_managed_threads): New extern decls.
20588 (gomp_init_task): New prototype.
20589 (gomp_spin_count_var): New extern var decl.
20590 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
20591 or no alias support, or if not PIC.
20592 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
20593 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
20594 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
20595 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
20596 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
20597 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
20598 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
20599 gomp_test_nest_lock_25): New prototypes.
20600 (omp_lock_symver, strong_alias): Define.
20601 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
20602 decls.
20603 (gomp_end_task): New.
20604 (struct gomp_task_icv, gomp_global_icv): New.
20605 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
20606 (struct gomp_task): New.
20607 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
20608 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
20609 (gomp_icv): New.
20610 (gomp_schedule_type): Reorder enum to match
20611 omp_sched_t.
20612 * team.c (struct gomp_thread_start_data): Add thread_pool and task
20613 fields.
20614 (gomp_thread_start): Add gomp_team_barrier_wait call.
20615 For non-nested case remove clearing of docked thread thr fields.
20616 Use pool fields instead of global gomp_* variables. Use
20617 gomp_barrier_wait_last when needed. Initialize ts.active_level.
20618 Create tasks for each member thread.
20619 (free_team): Only destroy team barrier, task_lock here and free it.
20620 (gomp_free_thread): Free last_team if non-NULL.
20621 (gomp_team_end): Call gomp_team_barrier_wait instead of
20622 gomp_barrier_wait. For nested case call one extra
20623 gomp_barrier_wait. Move here some destruction from free_team.
20624 Call free_team on pool->last_team if any, rather than freeing
20625 current team. Destroy work_share_list_free_lock ifndef
20626 HAVE_SYNC_BUILTINS.
20627 (gomp_new_icv): New function.
20628 (gomp_threads, gomp_threads_size, gomp_threads_used,
20629 gomp_threads_dock): Removed.
20630 (gomp_thread_destructor): New variable.
20631 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
20632 functions.
20633 (gomp_team_start): Create new pool if current thread doesn't have
20634 one. Use pool fields instead of global gomp_* variables.
20635 Initialize thread_pool field for new threads. Clear single_count.
20636 Change last argument from ws to team, don't create
20637 new team, set ts.work_share to &team->work_shares[0] and clear
20638 ts.last_work_share. Don't clear ts.work_share_generation.
20639 If number of threads changed, adjust atomically gomp_managed_threads.
20640 Use gomp_init_task instead of gomp_new_task,
20641 set thr->task to the corresponding implicit_task array entry.
20642 Create tasks for each member thread. Initialize ts.level.
20643 (initialize_team): Call pthread_key_create on
20644 gomp_thread_destructor.
20645 (team_destructor): New function.
20646 (new_team): Removed.
20647 (gomp_new_team): New function.
20648 (free_team): Free gomp_work_share blocks chained through next_alloc,
20649 instead of freeing work_shares and destroying work_share_lock.
20650 (gomp_team_end): Call gomp_fini_work_share. If number of threads
20651 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
20652 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
20653 of gomp_barrier_wait.
20654 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
20655 instead of gomp_barrier_wait. Call gomp_work_share_init_done
20656 if gomp_work_share_start returned true. Don't unlock ws->lock.
20657 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
20658 of gomp_barrier_wait.
20659 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
20660 gomp_work_share_init_done if gomp_work_share_start returned true.
20661 Don't unlock ws->lock.
20662 * work.c: Include stddef.h.
20663 (free_work_share): Use work_share_list_free_lock instead
20664 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
20665 Call gomp_fini_work_share and then either free ws if orphaned, or
20666 put it into work_share_list_free list of the current team.
20667 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
20668 functions.
20669 (gomp_work_share_start, gomp_work_share_end,
20670 gomp_work_share_end_nowait): Rewritten.
20671 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
20672 (openmp_version): Set to 200805.
20673 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
20674 omp_sched_guided, omp_sched_auto): New parameters.
20675 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
20676 omp_set_max_active_levels, omp_get_max_active_levels,
20677 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
20678 omp_get_active_level): New interfaces.
20679 * omp_lib.h.in (openmp_version): Set to 200805.
20680 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
20681 omp_sched_guided, omp_sched_auto): New parameters.
20682 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
20683 omp_set_max_active_levels, omp_get_max_active_levels,
20684 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
20685 omp_get_active_level): New externals.
20686 * loop.c: Include limits.h.
20687 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
20688 GFS_AUTO.
20689 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
20690 Likewise. Use gomp_icv.
20691 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
20692 ts.static_trip here.
20693 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
20694 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
20695 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
20696 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
20697 don't unlock ws->lock, otherwise lock it.
20698 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
20699 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
20700 (gomp_parallel_loop_start): Call gomp_new_team instead of
20701 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
20702 Adjust gomp_team_start caller. Pass 0 as second argument to
20703 gomp_resolve_num_threads.
20704 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
20705 If adding ws->chunk_size nthreads + 1 times after end won't
20706 overflow, set ws->mode to 1.
20707 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
20708 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
20709 GOMP_loop_ull_ordered_static_start,
20710 GOMP_loop_ull_ordered_dynamic_start,
20711 GOMP_loop_ull_ordered_guided_start,
20712 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
20713 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
20714 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
20715 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
20716 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
20717 prototypes.
20718 * libgomp.map: Export lock routines also @@OMP_2.0.
20719 (GOMP_loop_ordered_dynamic_first,
20720 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
20721 GOMP_loop_ordered_static_first): Remove.
20722 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
20723 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
20724 GOMP_loop_ull_ordered_dynamic_next,
20725 GOMP_loop_ull_ordered_dynamic_start,
20726 GOMP_loop_ull_ordered_guided_next,
20727 GOMP_loop_ull_ordered_guided_start,
20728 GOMP_loop_ull_ordered_runtime_next,
20729 GOMP_loop_ull_ordered_runtime_start,
20730 GOMP_loop_ull_ordered_static_next,
20731 GOMP_loop_ull_ordered_static_start,
20732 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
20733 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
20734 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
20735 (omp_set_schedule, omp_get_schedule,
20736 omp_get_thread_limit, omp_set_max_active_levels,
20737 omp_get_max_active_levels, omp_get_level,
20738 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
20739 omp_set_schedule_, omp_set_schedule_8_,
20740 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
20741 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
20742 omp_get_max_active_levels_, omp_get_level_,
20743 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
20744 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
20745 New exports @@OMP_3.0.
20746 * omp.h.in (omp_sched_t): New type.
20747 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
20748 omp_set_max_active_levels, omp_get_max_active_levels,
20749 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
20750 omp_get_active_level): New prototypes.
20751 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
20752 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
20753 gomp_thread_limit_var, gomp_remaining_threads_count,
20754 gomp_remaining_threads_lock): New variables.
20755 (parse_spincount): New function.
20756 (initialize_env): Call gomp_init_num_threads unconditionally.
20757 Initialize gomp_available_cpus. Call parse_spincount,
20758 initialize gomp_{,throttled_}spin_count_var
20759 depending on presence and value of OMP_WAIT_POLICY and
20760 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
20761 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
20762 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
20763 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
20764 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
20765 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
20766 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
20767 (gomp_global_icv): New.
20768 (parse_schedule): Use it. Parse "auto".
20769 (omp_set_num_threads): Use gomp_icv.
20770 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
20771 Likewise.
20772 (omp_get_max_threads): Move from parallel.c.
20773 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
20774 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
20775 add ialias.
20776 (parse_stacksize, parse_wait_policy): New functions.
20777 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
20778 both wrappers for compatibility and new locks.
20779 (omp_set_schedule, omp_get_schedule,
20780 omp_get_thread_limit, omp_set_max_active_levels,
20781 omp_get_max_active_levels, omp_get_level,
20782 omp_get_ancestor_thread_num, omp_get_team_size,
20783 omp_get_active_level): New ialias_redirect.
20784 (omp_set_schedule_, omp_set_schedule_8_,
20785 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
20786 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
20787 omp_get_max_active_levels_, omp_get_level_,
20788 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
20789 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
20790 New functions.
20791 * parallel.c: Include limits.h.
20792 (gomp_resolve_num_threads): Add count argument. Rewritten.
20793 (GOMP_parallel_start): Call gomp_new_team and pass that as last
20794 argument to gomp_team_start. Pass 0 as second argument to
20795 gomp_resolve_num_threads.
20796 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
20797 if gomp_thread_limit_var != ULONG_MAX.
20798 (omp_in_parallel): Implement using ts.active_level.
20799 (omp_get_max_threads): Move to env.c.
20800 (omp_get_level, omp_get_ancestor_thread_num,
20801 omp_get_team_size, omp_get_active_level): New functions,
20802 add ialias.
20803 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
20804 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
20805 gomp_iter_dynamic_next instead of the _locked variant and don't take
20806 lock around it, otherwise acquire it before calling
20807 gomp_iter_dynamic_next_locked.
20808 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
20809 gomp_iter_dynamic_next instead of the _locked variant and don't take
20810 lock around it.
20811 (GOMP_parallel_sections_start): Call gomp_new_team instead of
20812 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
20813 Adjust gomp_team_start caller. Pass count as second argument to
20814 gomp_resolve_num_threads, don't adjust num_threads after the call.
20815 Use gomp_icv.
20816 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
20817 ws->chunk_size by incr.
20818 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
20819 code.
20820 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
20821 types.
20822 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
20823 (omp_check_defines): Check even the compat defines.
20824 * config/linux/ptrlock.c: New file.
20825 * config/linux/ptrlock.h: New file.
20826 * config/linux/wait.h: New file.
20827 * config/posix/ptrlock.c: New file.
20828 * config/posix/ptrlock.h: New file.
20829 * config/linux/bar.h (gomp_team_barrier_wait,
20830 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
20831 (gomp_team_barrier_set_task_pending,
20832 gomp_team_barrier_clear_task_pending,
20833 gomp_team_barrier_set_waiting_for_tasks,
20834 gomp_team_barrier_waiting_for_tasks,
20835 gomp_team_barrier_done): New inlines.
20836 (gomp_barrier_t): Rewritten.
20837 (gomp_barrier_state_t): New typedef.
20838 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
20839 gomp_barrier_wait_start): Rewritten.
20840 (gomp_barrier_wait_end): Change second argument to
20841 gomp_barrier_state_t.
20842 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
20843 inlines.
20844 * config/linux/bar.c: Include wait.h instead of libgomp.h and
20845 futex.h.
20846 (gomp_barrier_wait_end): Rewritten.
20847 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
20848 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
20849 * config/posix/bar.h (gomp_barrier_t): Add generation field.
20850 (gomp_barrier_state_t): New typedef.
20851 (gomp_team_barrier_wait,
20852 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
20853 (gomp_barrier_wait_start): Or all but low 2 bits from generation
20854 into the return value. Return gomp_barrier_state_t.
20855 (gomp_team_barrier_set_task_pending,
20856 gomp_team_barrier_clear_task_pending,
20857 gomp_team_barrier_set_waiting_for_tasks,
20858 gomp_team_barrier_waiting_for_tasks,
20859 gomp_team_barrier_done): New inlines.
20860 (gomp_barrier_wait_end): Change second argument to
20861 gomp_barrier_state_t.
20862 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
20863 inlines.
20864 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
20865 (gomp_barrier_wait_end): Change second argument to
20866 gomp_barrier_state_t.
20867 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
20868 gomp_team_barrier_wake): New functions.
20869 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
20870 futex.h.
20871 (gomp_futex_wake, gomp_futex_wait): New variables.
20872 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
20873 * config/linux/lock.c: Rewrite to make locks task owned,
20874 for backwards compatibility provide the old entrypoints
20875 if symbol versioning. Include wait.h instead of libgomp.h and
20876 futex.h.
20877 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
20878 * config/posix95/lock.c: Rewrite to make locks task owned,
20879 for backwards compatibility provide the old entrypoints
20880 if symbol versioning.
20881 * config/posix/lock.c: Rewrite to make locks task owned,
20882 for backwards compatibility provide the old entrypoints
20883 if symbol versioning.
20884 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
20885 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
20886 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
20887 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
20888 (sys_futex0): Return error code.
20889 (futex_wake, futex_wait): If ENOSYS was returned, clear
20890 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
20891 (cpu_relax, atomic_write_barrier): New static inlines.
20892 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
20893 (futex_wake, futex_wait): If ENOSYS was returned, clear
20894 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
20895 (cpu_relax, atomic_write_barrier): New static inlines.
20896 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
20897 (sys_futex0): Return error code.
20898 (futex_wake, futex_wait): If ENOSYS was returned, clear
20899 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
20900 (cpu_relax, atomic_write_barrier): New static inlines.
20901 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
20902 (sys_futex0): Return error code.
20903 (futex_wake, futex_wait): If ENOSYS was returned, clear
20904 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
20905 (cpu_relax, atomic_write_barrier): New static inlines.
20906 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
20907 (sys_futex0): Return error code.
20908 (futex_wake, futex_wait): If ENOSYS was returned, clear
20909 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
20910 (cpu_relax, atomic_write_barrier): New static inlines.
20911 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
20912 (sys_futex0): Return error code.
20913 (futex_wake, futex_wait): If ENOSYS was returned, clear
20914 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
20915 (cpu_relax, atomic_write_barrier): New static inlines.
20916 * config/linux/sem.c: Include wait.h instead of libgomp.h and
20917 futex.h.
20918 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
20919 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
20920 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
20921 types.
20922 (omp_nest_lock_t): Change owner into void *, add lock field.
20923 * config/posix95/omp-lock.h: Include semaphore.h.
20924 (omp_lock_25_t, omp_nest_lock_25_t): New types.
20925 (omp_lock_t): Use sem_t instead of mutex if semaphores
20926 aren't broken.
20927 (omp_nest_lock_t): Likewise. Change owner to void *.
20928 * config/posix/omp-lock.h: Include semaphore.h.
20929 (omp_lock_25_t, omp_nest_lock_25_t): New types.
20930 (omp_lock_t): Use sem_t instead of mutex if semaphores
20931 aren't broken.
20932 (omp_nest_lock_t): Likewise. Add owner field.
20933
20934 2008-06-06 Jakub Jelinek <[email protected]>
20935
20936 * testsuite/libgomp.c/collapse-1.c: New test.
20937 * testsuite/libgomp.c/collapse-2.c: New test.
20938 * testsuite/libgomp.c/collapse-3.c: New test.
20939 * testsuite/libgomp.c/icv-1.c: New test.
20940 * testsuite/libgomp.c/icv-2.c: New test.
20941 * testsuite/libgomp.c/lib-2.c: New test.
20942 * testsuite/libgomp.c/lock-1.c: New test.
20943 * testsuite/libgomp.c/lock-2.c: New test.
20944 * testsuite/libgomp.c/lock-3.c: New test.
20945 * testsuite/libgomp.c/loop-4.c: New test.
20946 * testsuite/libgomp.c/loop-5.c: New test.
20947 * testsuite/libgomp.c/loop-6.c: New test.
20948 * testsuite/libgomp.c/loop-7.c: New test.
20949 * testsuite/libgomp.c/loop-8.c: New test.
20950 * testsuite/libgomp.c/loop-9.c: New test.
20951 * testsuite/libgomp.c/nested-3.c: New test.
20952 * testsuite/libgomp.c/nestedfn-6.c: New test.
20953 * testsuite/libgomp.c/sort-1.c: New test.
20954 * testsuite/libgomp.c/task-1.c: New test.
20955 * testsuite/libgomp.c/task-2.c: New test.
20956 * testsuite/libgomp.c/task-3.c: New test.
20957 * testsuite/libgomp.c/task-4.c: New test.
20958 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
20959 to C++ testsuite default compiler options.
20960 * testsuite/libgomp.c++/collapse-1.C: New test.
20961 * testsuite/libgomp.c++/collapse-2.C: New test.
20962 * testsuite/libgomp.c++/ctor-10.C: New test.
20963 * testsuite/libgomp.c++/for-1.C: New test.
20964 * testsuite/libgomp.c++/for-2.C: New test.
20965 * testsuite/libgomp.c++/for-3.C: New test.
20966 * testsuite/libgomp.c++/for-4.C: New test.
20967 * testsuite/libgomp.c++/for-5.C: New test.
20968 * testsuite/libgomp.c++/loop-8.C: New test.
20969 * testsuite/libgomp.c++/loop-9.C: New test.
20970 * testsuite/libgomp.c++/loop-10.C: New test.
20971 * testsuite/libgomp.c++/task-1.C: New test.
20972 * testsuite/libgomp.c++/task-2.C: New test.
20973 * testsuite/libgomp.c++/task-3.C: New test.
20974 * testsuite/libgomp.c++/task-4.C: New test.
20975 * testsuite/libgomp.c++/task-5.C: New test.
20976 * testsuite/libgomp.c++/task-6.C: New test.
20977 * testsuite/libgomp.fortran/allocatable1.f90: New test.
20978 * testsuite/libgomp.fortran/allocatable2.f90: New test.
20979 * testsuite/libgomp.fortran/allocatable3.f90: New test.
20980 * testsuite/libgomp.fortran/allocatable4.f90: New test.
20981 * testsuite/libgomp.fortran/collapse1.f90: New test.
20982 * testsuite/libgomp.fortran/collapse2.f90: New test.
20983 * testsuite/libgomp.fortran/collapse3.f90: New test.
20984 * testsuite/libgomp.fortran/collapse4.f90: New test.
20985 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
20986 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
20987 * testsuite/libgomp.fortran/lib4.f90: New test.
20988 * testsuite/libgomp.fortran/lock-1.f90: New test.
20989 * testsuite/libgomp.fortran/lock-2.f90: New test.
20990 * testsuite/libgomp.fortran/nested1.f90: New test.
20991 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
20992 * testsuite/libgomp.fortran/strassen.f90: New test.
20993 * testsuite/libgomp.fortran/tabs1.f90: New test.
20994 * testsuite/libgomp.fortran/tabs2.f: New test.
20995 * testsuite/libgomp.fortran/task1.f90: New test.
20996 * testsuite/libgomp.fortran/task2.f90: New test.
20997 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
20998 * testsuite/libgomp.fortran/vla5.f90: Likewise.
20999 * testsuite/libgomp.c/pr26943-2.c: Likewise.
21000 * testsuite/libgomp.c/pr26943-3.c: Likewise.
21001 * testsuite/libgomp.c/pr26943-4.c: Likewise.
21002
21003 2008-05-23 Jakub Jelinek <[email protected]>
21004
21005 PR c++/36308
21006 * testsuite/libgomp.c++/ctor-11.C: New test.
21007 * testsuite/libgomp.c++/ctor-12.C: New test.
21008
21009 2008-05-15 Janis Johnson <[email protected]>
21010
21011 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
21012
21013 2008-05-07 Jakub Jelinek <[email protected]>
21014
21015 PR middle-end/36106
21016 * testsuite/libgomp.c/atomic-5.c: New test.
21017 * testsuite/libgomp.c/atomic-6.c: New test.
21018 * testsuite/libgomp.c/autopar-1.c: New test.
21019
21020 2008-04-21 Ralf Wildenhues <[email protected]>
21021
21022 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
21023 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
21024 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
21025 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
21026 * configure: Regenerate.
21027 * Makefile.in, testsuite/Makefile.in: Likewise.
21028
21029 2008-04-18 Paolo Bonzini <[email protected]>
21030
21031 PR bootstrap/35457
21032 * aclocal.m4: Regenerate.
21033 * configure: Regenerate.
21034
21035 2008-03-18 Jakub Jelinek <[email protected]>
21036
21037 PR middle-end/35611
21038 * testsuite/libgomp.c/atomic-4.c: New test.
21039
21040 PR libgomp/35625
21041 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
21042 (gomp_iter_guided_next): Likewise.
21043 * testsuite/libgomp.c/pr35625.c: New test.
21044
21045 2008-03-16 Ralf Wildenhues <[email protected]>
21046
21047 * aclocal.m4: Regenerate.
21048 * configure: Likewise.
21049 * Makefile.in: Likewise.
21050 * testsuite/Makefile.in: Likewise.
21051
21052 2008-03-13 Jakub Jelinek <[email protected]>
21053
21054 PR middle-end/35185
21055 * testsuite/libgomp.c++/pr35185.C: New test.
21056
21057 2008-03-12 Jakub Jelinek <[email protected]>
21058
21059 PR middle-end/35549
21060 * testsuite/libgomp.c/pr35549.c: New test.
21061
21062 2008-03-06 Jakub Jelinek <[email protected]>
21063
21064 * testsuite/libgomp.c/atomic-3.c: New test.
21065
21066 2008-03-03 Francois-Xavier Coudert <[email protected]>
21067
21068 PR fortran/33197
21069 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
21070 .F08 file suffixes.
21071
21072 2008-03-03 Peter O'Gorman <[email protected]>
21073
21074 PR libgomp/33131
21075 * configure.ac: Add ACX_HEADER_STRING.
21076 * env.c: Include strings.h.
21077 * aclocal.m4: Regenerate.
21078 * config.h.in: Regenerate.
21079 * configure: Regenerate.
21080 * Makefile.in: Regenerate.
21081 * testsuite/Makefile.in: Regenerate.
21082
21083 2008-02-15 Jakub Jelinek <[email protected]>
21084
21085 PR middle-end/35196
21086 * testsuite/libgomp.c/pr35196.c: New test.
21087
21088 PR middle-end/35130
21089 * testsuite/libgomp.fortran/pr35130.f90: New test.
21090 * testsuite/libgomp.c/pr35130.c: New test.
21091
21092 2008-01-25 Jakub Jelinek <[email protected]>
21093
21094 PR middle-end/33880
21095 * testsuite/libgomp.c/pr33880.c: New test.
21096 * testsuite/libgomp.fortran/pr33880.f90: New test.
21097
21098 2008-01-24 David Edelsohn <[email protected]>
21099
21100 * configure: Regenerate.
21101
21102 2008-01-08 Jakub Jelinek <[email protected]>
21103
21104 * configure.ac: Move futex checking into ../config/futex.m4.
21105 * configure: Rebuilt.
21106 * aclocal.m4: Rebuilt.
21107 * Makefile.in: Rebuilt.
21108
21109 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
21110 2007-10-15 ../config/tls.m4 change.
21111
21112 2007-12-19 Jakub Jelinek <[email protected]>
21113
21114 PR c++/34513
21115 * testsuite/libgomp.c/pr34513.c: New test.
21116 * testsuite/libgomp.c++/pr34513.C: New test.
21117
21118 2007-12-17 Jack Howarth <[email protected]>
21119
21120 PR target/32765
21121 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
21122
21123 2007-12-04 Jakub Jelinek <[email protected]>
21124
21125 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
21126
21127 2007-12-03 Jakub Jelinek <[email protected]>
21128
21129 * testsuite/libgomp.c/private-1.c: New test.
21130
21131 2007-11-29 Andris Pavenis <[email protected]>
21132 Paolo Bonzini <[email protected]>
21133
21134 * Makefile.am: Use space as vpath separator. Use 'vpath %'
21135 instead of 'VPATH ='.
21136 * Makefile.in: Regenerate.
21137
21138 2007-11-23 Matthias Klose <[email protected]>
21139
21140 * configure.ac: Adjust makeinfo version check.
21141 * configure: Regenerate.
21142
21143 2007-11-10 Jakub Jelinek <[email protected]>
21144
21145 PR fortran/34020
21146 * testsuite/libgomp.fortran/pr34020.f90: New test.
21147
21148 2007-11-06 Jakub Jelinek <[email protected]>
21149
21150 PR c++/33894
21151 * testsuite/libgomp.c++/atomic-1.C: New test.
21152
21153 2007-10-25 Jakub Jelinek <[email protected]>
21154
21155 PR libgomp/33275
21156 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
21157 Make x and y integers rather than (implicit) reals. Add private (j)
21158 clause to the last omp parallel.
21159
21160 2007-10-15 Maciej W. Rozycki <[email protected]>
21161
21162 * configure: Regenerate following changes to ../config/tls.m4.
21163
21164 2007-09-28 Jakub Jelinek <[email protected]>
21165
21166 * testsuite/libgomp.fortran/stack.f90: New test.
21167
21168 2007-09-10 Danny Smith <[email protected]>
21169
21170 * config/mingw32/proc.c: New file.
21171
21172 2007-09-05 Uros Bizjak <[email protected]>
21173
21174 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
21175 (main): Use __get_cpuid to get i386 target fetaures.
21176 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
21177 (main): Use __get_cpuid to get x86_64 target fetaures.
21178
21179 2007-08-15 Jack Howarth <[email protected]>
21180
21181 PR target/32765
21182 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
21183 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
21184
21185 2007-07-12 Jakub Jelinek <[email protected]>
21186
21187 PR fortran/32550
21188 * testsuite/libgomp.fortran/pr32550.f90: New test.
21189 * testsuite/libgomp.fortran/crayptr2.f90: New test.
21190
21191 2007-07-05 H.J. Lu <[email protected]>
21192
21193 * aclocal.m4: Regenerated.
21194
21195 2007-07-05 Tobias Burnus <[email protected]>
21196
21197 PR fortran/32359
21198 * testsuite/libgomp.fortran/pr32359.f90: New.
21199
21200 2007-07-02 Jakub Jelinek <[email protected]>
21201
21202 PR libgomp/32468
21203 * sections.c (GOMP_parallel_sections_start): Only decrease
21204 number of threads to COUNT if dyn_var is true.
21205 * testsuite/libgomp.c/pr32468.c: New test.
21206
21207 2007-07-02 Rainer Orth <[email protected]>
21208
21209 PR libgomp/26308
21210 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
21211
21212 2007-06-21 Jakub Jelinek <[email protected]>
21213
21214 PR middle-end/32362
21215 * testsuite/libgomp.c/pr32362-1.c: New test.
21216 * testsuite/libgomp.c/pr32362-2.c: New test.
21217 * testsuite/libgomp.c/pr32362-3.c: New test.
21218
21219 2007-06-07 Jakub Jelinek <[email protected]>
21220
21221 * team.c (gomp_team_start): Fix setting up thread_attr
21222 stack size.
21223
21224 2007-06-02 Paolo Bonzini <[email protected]>
21225
21226 * configure: Regenerate.
21227
21228 2007-05-23 Steve Ellcey <[email protected]>
21229
21230 * Makefile.in: Regenerate.
21231 * configure: Regenerate.
21232 * aclocal.m4: Regenerate.
21233 * testsuite/Makefile.in: Regenerate.
21234
21235 2007-05-04 Jakub Jelinek <[email protected]>
21236
21237 * config/linux/proc.c: New file.
21238
21239 PR libgomp/28482
21240 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
21241
21242 2007-04-19 Daniel Franke <[email protected]>
21243
21244 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
21245
21246 2007-04-16 Matthias Klose <[email protected]>
21247
21248 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
21249 flags if not building with -m64.
21250 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
21251 flag for i?86-*-* targets, if current target matches -m64.
21252
21253 2007-04-14 Steve Ellcey <[email protected]>
21254
21255 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
21256 * Makefile.in: Regenerate.
21257
21258 2007-04-07 John David Anglin <[email protected]>
21259
21260 PR testsuite/31369
21261 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
21262 ld_library_path.
21263 * testsuite/libgomp.fortran/fortran.exp: Likewise.
21264
21265 2007-04-04 Jakub Jelinek <[email protected]>
21266
21267 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
21268 decls.
21269 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
21270 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
21271 (parse_affinity): New function.
21272 (initialize_env): Call it and gomp_init_affinity.
21273 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
21274 create new pthread_attr_t and call gomp_init_thread_affinity
21275 on it for each thread before passing the attribute to pthread_create.
21276 * config/linux/affinity.c: New file.
21277 * config/posix/affinity.c: New file.
21278 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
21279 * configure: Rebuilt.
21280 * config.h.in: Rebuilt.
21281 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
21282 * Makefile.in: Rebuilt.
21283
21284 2007-03-23 Andreas Tobler <[email protected]>
21285
21286 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
21287 *-*-darwin*.
21288 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
21289 and use it if found.
21290
21291 2007-03-18 Uros Bizjak <[email protected]>
21292
21293 * testsuite/config/default.exp: New file.
21294 * testsuite/lib/libgomp.exp: New file.
21295 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
21296 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
21297 load_lib *, load_gcc_lib *): Move to libgomp.exp.
21298 (libgomp_load): Remove.
21299 * testsuite/lib/libgomp.exp (libgomp_init): Compute
21300 always_ld_library_path, not ld_library_path. Set additional_flags
21301 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
21302 (target_compile): Do not call libgomp_init. Append lang_library_path
21303 and lang_link_flags to options.
21304 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
21305 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
21306 here.
21307 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
21308 always_ld_library_path. Set LD_LIBRARY_PATH here.
21309 * testsuite/libgomp.fortran/fortran.exp: Ditto.
21310 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
21311 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
21312 CX8 flag.
21313 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
21314 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
21315 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
21316 * testsuite/libgomp.c/pr29947-1.c: Ditto.
21317 * testsuite/libgomp.c/atomic-10.c: Ditto.
21318
21319 2007-03-21 Jakub Jelinek <[email protected]>
21320
21321 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
21322 dg-final cleanup-modules line.
21323 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
21324 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
21325 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
21326 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
21327 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
21328 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
21329 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
21330
21331 2007-03-18 Andreas Schwab <[email protected]>
21332
21333 * acinclude.m4: Adjust regular expression for ld version
21334 extraction.
21335 * configure: Regenerate.
21336
21337 2007-03-01 Brooks Moses <[email protected]>
21338
21339 * Makefile.am: Add install-pdf target as copied from
21340 automake v1.10 rules.
21341 * Makefile.in: Regenerate
21342
21343 2007-02-07 Jakub Jelinek <[email protected]>
21344
21345 PR libgomp/28486
21346 * configure: Regenerate.
21347
21348 PR c++/30703
21349 * testsuite/libgomp.c++/pr30703.C: New test.
21350
21351 2007-02-02 Jakub Jelinek <[email protected]>
21352
21353 Revert:
21354 2006-07-05 Eric Christopher <[email protected]>
21355 * configure.ac: Depend addition of -pthread on host OS.
21356 * configure: Regenerate.
21357
21358 2007-01-31 Ralf Wildenhues <[email protected]>
21359
21360 * libgomp.texi: Fix spacing after abbreviations.
21361
21362 2007-01-31 Daniel Franke <[email protected]>
21363
21364 PR libgomp/30546
21365 * configure.ac: Add check for makeinfo
21366 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
21367 if an appropriate version of makeinfo is found.
21368 * aclocal.m4: Regenerated.
21369 * configure: Regenerated.
21370 * Makefile.in: Regenerated.
21371 * testsuite/Makefile.in: Regenerated.
21372
21373 2007-01-29 Daniel Franke <[email protected]>
21374
21375 PR libgomp/30540
21376 * libgomp.texi: More about implementation-dependent settings.
21377
21378 2007-01-26 Tobias Burnus <[email protected]>
21379
21380 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
21381
21382 2007-01-24 Jakub Jelinek <[email protected]>
21383
21384 PR middle-end/30494
21385 * testsuite/libgomp.c/pr30494.c: New test.
21386
21387 2007-01-15 Tom Tromey <[email protected]>
21388
21389 * configure: Rebuilt.
21390 * configure.ac: Fixed comment.
21391
21392 2007-01-14 Daniel Franke <[email protected]>
21393
21394 * libgomp.texi: Document implementation specific default values of
21395 environment variables.
21396
21397 2006-12-21 Daniel Franke <[email protected]>
21398
21399 PR libgomp/28209
21400 * libgomp.texi: New file.
21401 * configure.ac: Add --enable-generated-files-in-srcdir option.
21402 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
21403 files to srcdir.
21404 * Makefile.in: Regenerated.
21405 * config.h.in: Regenerated.
21406 * testsuite/Makefile.in: Regenerated.
21407 * NOTES: Removed.
21408
21409 2006-12-04 Daniel Franke <[email protected]>
21410
21411 PR libgomp/29949
21412 * env.c (omp_set_num_threads): Set illegal thread count to 1.
21413
21414 2006-12-04 Eric Botcazou <[email protected]>
21415
21416 * configure: Regenerate.
21417
21418 2006-12-04 Jakub Jelinek <[email protected]>
21419
21420 PR libgomp/29947
21421 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
21422 start if there shouldn't be any loop iterations.
21423 (gomp_loop_ordered_static_start): Remove start == end test.
21424 * testsuite/libgomp.c/pr29947-1.c: New test.
21425 * testsuite/libgomp.c/pr29947-2.c: New test.
21426
21427 2006-12-02 Eric Botcazou <[email protected]>
21428
21429 * configure.tgt: Force initial-exec TLS model on Linux only.
21430
21431 2006-11-13 Daniel Jacobowitz <[email protected]>
21432
21433 * configure: Regenerated.
21434
21435 2006-11-09 Uros Bizjak <[email protected]>
21436
21437 * env.c (parse_schedule): Reject out of range values.
21438 (parse_unsigned_long): Reject out of range, negative or zero values.
21439
21440 2006-10-29 Jakub Jelinek <[email protected]>
21441
21442 PR fortran/29629
21443 * testsuite/libgomp.fortran/pr29629.f90: New test.
21444
21445 2006-10-24 Eric Botcazou <[email protected]>
21446
21447 PR libgomp/29494
21448 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
21449 * config/posix95: New directory.
21450 * config/posix95/omp-lock.h: New file.
21451 * config/posix95/lock.c: Likewise.
21452
21453 2006-10-14 Geoffrey Keating <[email protected]>
21454
21455 * aclocal.m4: Regenerate.
21456 * configure: Regenerate.
21457
21458 2006-10-05 Danny Smith <[email protected]>
21459
21460 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
21461 '<' to '<='.
21462
21463 2006-10-05 Danny Smith <[email protected]>
21464
21465 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
21466 test.
21467 * configure: Regenerate.
21468 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
21469
21470 2006-09-26 Jakub Jelinek <[email protected]>
21471
21472 PR middle-end/25261
21473 PR middle-end/28790
21474 * testsuite/libgomp.c/nestedfn-4.c: New test.
21475 * testsuite/libgomp.c/nestedfn-5.c: New test.
21476 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
21477
21478 PR fortran/29097
21479 * testsuite/libgomp.fortran/condinc1.f: New test.
21480 * testsuite/libgomp.fortran/condinc2.f: New test.
21481 * testsuite/libgomp.fortran/condinc3.f90: New test.
21482 * testsuite/libgomp.fortran/condinc4.f90: New test.
21483 * testsuite/libgomp.fortran/condinc1.inc: New file.
21484
21485 2006-09-18 Tom Tromey <[email protected]>
21486
21487 * configure: Rebuilt.
21488
21489 2006-09-13 Joseph S. Myers <[email protected]>
21490
21491 PR c/28768
21492 PR preprocessor/14634
21493 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
21494 to AC_DEFINE.
21495 * configure: Regenerate.
21496
21497 2006-09-08 Steven G. Kargl <[email protected]>
21498
21499 * testsuite/libgomp.fortran/reduction3.f90: Change
21500 -2147483648 to -huge(i)-1 to avoid overflow.
21501 * testsuite/libgomp.fortran/reduction4.f90: Change
21502 Z'ffffffff' to not(0) to avoid overflow.
21503
21504 2006-08-26 Joseph S. Myers <[email protected]>
21505
21506 PR libgomp/25938
21507 * Makefile.am (libsubincludedir): New.
21508 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
21509 * Makefile.in: Regenerate.
21510
21511 2006-08-17 Jakub Jelinek <[email protected]>
21512
21513 PR libgomp/28725
21514 * env.c: Include ctype.h.
21515 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
21516 leading and/or trailing whitespace and compare strings case
21517 insensitively.
21518
21519 2006-07-16 Jakub Jelinek <[email protected]>
21520
21521 PR fortran/28390
21522 * testsuite/libgomp.fortran/pr28390.f: New test.
21523
21524 2006-07-05 Eric Christopher <[email protected]>
21525
21526 * configure.ac: Depend addition of -pthread on host OS.
21527 * configure: Regenerate.
21528
21529 2006-06-21 Jakub Jelinek <[email protected]>
21530
21531 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
21532 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
21533 defined.
21534
21535 2006-06-20 Jakub Jelinek <[email protected]>
21536
21537 PR libgomp/26175
21538 PR libgomp/26477
21539 * configure.ac: If neither --enable-linux-futex nor
21540 --disable-linux-futex is passed, determine the default by checking
21541 for compiling and/or running against NPTL. With --enable-linux-futex,
21542 check if SYS_gettid and SYS_futex are defined.
21543 * configure: Rebuilt.
21544
21545 2006-06-14 Richard Henderson <[email protected]>
21546
21547 PR libgomp/28008
21548 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
21549 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
21550
21551 2006-06-09 Richard Henderson <[email protected]>
21552
21553 * env.c (gomp_nthreads_var): Change to unsigned long.
21554 (gomp_run_sched_chunk): Likewise.
21555 (parse_unsigned_long): Rename from parse_num_threads and generalize.
21556 (initialize_env): Initialize gomp_thread_attr.
21557 * libgomp.h (gomp_nthreads_var): Update decl.
21558 (gomp_run_sched_chunk): Likewise.
21559 (gomp_thread_attr): Declare.
21560 * team.c (gomp_thread_attr): Export.
21561 (initialize_team): Don't initialize it.
21562
21563 2006-06-09 Jakub Jelinek <[email protected]>
21564
21565 PR fortran/27916
21566 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
21567 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
21568
21569 2006-06-06 Francois-Xavier Coudert <[email protected]>
21570
21571 * config/mingw32/time.c: New file.
21572 * configure.tgt: Use it.
21573
21574 2006-05-23 Carlos O'Donell <[email protected]>
21575
21576 * Makefile.am: Add install-html target. Add install-html to .PHONY
21577 * Makefile.in: Regenerate.
21578
21579 2006-05-22 John David Anglin <[email protected]>
21580
21581 PR libgomp/27612
21582 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
21583 * testsuite/libgomp.c/critical-1.c: Likewise.
21584 * testsuite/libgomp.c/loop-1.c: Likewise.
21585 * testsuite/libgomp.c/loop-2.c: Likewise.
21586 * testsuite/libgomp.c/single-1.c: Likewise.
21587 * testsuite/libgomp.c/ordered-1.c: Likewise.
21588 * testsuite/libgomp.c/ordered-2.c: Likewise.
21589
21590 2006-05-15 Jakub Jelinek <[email protected]>
21591
21592 PR middle-end/27416
21593 * libgomp.fortran/pr27416-1.f90: New test.
21594
21595 2006-05-03 Jakub Jelinek <[email protected]>
21596
21597 PR fortran/27395
21598 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
21599 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
21600
21601 2006-05-02 Jakub Jelinek <[email protected]>
21602
21603 PR c++/26943
21604 * testsuite/libgomp.c/pr26943-1.c: New test.
21605 * testsuite/libgomp.c/pr26943-2.c: New test.
21606 * testsuite/libgomp.c/pr26943-3.c: New test.
21607 * testsuite/libgomp.c/pr26943-4.c: New test.
21608 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
21609 * testsuite/libgomp.c++/pr26943.C: New test.
21610
21611 2006-05-02 Jakub Jelinek <[email protected]>
21612
21613 PR middle-end/27337
21614 * testsuite/libgomp.c++/pr27337.C: New test.
21615
21616 2006-04-26 Jakub Jelinek <[email protected]>
21617
21618 PR c/26171
21619 * testsuite/libgomp.c/pr26171.c: New test.
21620
21621 2006-04-25 Richard Henderson <[email protected]>
21622
21623 PR libgomp/25865
21624 * configure.ac: Use GCC_CHECK_TLS.
21625 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
21626 * Makefile.in, aclocal.m4, configure: Regenerate.
21627
21628 2006-04-10 Matthias Klose <[email protected]>
21629
21630 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
21631 directory names containing underscores.
21632
21633 2006-03-21 Jakub Jelinek <[email protected]>
21634
21635 PR c++/26691
21636 * testsuite/libgomp.c++/pr26691.C: New test.
21637
21638 2006-03-13 Jakub Jelinek <[email protected]>
21639
21640 * testsuite/libgomp.fortran/retval2.f90: New test.
21641
21642 2006-03-09 Diego Novillo <[email protected]>
21643
21644 * testsuite/libgomp.c++: New directory.
21645
21646 2006-02-25 Shantonu Sen <[email protected]>
21647
21648 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
21649 * config/posix/sem.c: Implement the above.
21650
21651 2006-02-25 Andreas Tobler <[email protected]>
21652
21653 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
21654 define HAVE_BROKEN_POSIX_SEMAPHORES.
21655 * configure: Rebuilt.
21656 * config.h.in: Rebuilt.
21657
21658 2006-02-17 Francois-Xavier Coudert <[email protected]>
21659
21660 PR bootstrap/26161
21661 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
21662 for the other pthread check.
21663 * configure: Regenerate.
21664 * config.h.in: Regenerate.
21665
21666 2006-02-15 Jakub Jelinek <[email protected]>
21667
21668 PR libgomp/25938
21669 PR libgomp/25984
21670 * Makefile.am (fincludedir): New variable.
21671 (nodist_include_HEADERS): Remove Fortran files.
21672 (nodist_finclude_HEADERS): New variable.
21673 * Makefile.in: Regenerated.
21674
21675 2006-02-13 Jakub Jelinek <[email protected]>
21676
21677 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
21678 Remove tests for returning assumed character length arrays.
21679
21680 2006-02-12 Roger Sayle <[email protected]>
21681 John David Anglin <[email protected]>
21682
21683 PR libgomp/25936
21684 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
21685
21686 2006-02-08 Ulrich Weigand <[email protected]>
21687
21688 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
21689
21690 2006-02-07 Eric Botcazou <[email protected]>
21691
21692 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
21693 part of LD_LIBRARY_PATH manually.
21694
21695 2006-02-03 H.J. Lu <[email protected]>
21696
21697 PR libgomp/25852
21698 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
21699 libgomp_init.
21700
21701 2005-01-25 Paolo Bonzini <[email protected]>
21702
21703 PR libgomp/25884
21704 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
21705 * configure.ac (PERL): Don't set.
21706 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
21707 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
21708 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
21709 * omp.h.in: Wrap the new configure substitutions with @ characters.
21710 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
21711 * aclocal.m4, configure, Makefile.in: Regenerate.
21712 * mkomp_h.pl: Delete.
21713
21714 2005-01-24 Paolo Bonzini <[email protected]>
21715
21716 PR libgomp/25259
21717 * configure.ac: Use GCC_HEADER_STDINT.
21718 * libgomp.h: Include gstdint.h.
21719 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
21720 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
21721
21722 2006-01-24 Richard Henderson <[email protected]>
21723
21724 PR libgomp/25942
21725 * configure.ac: Add AM_MAINTAINER_MODE.
21726 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
21727
21728 2006-01-24 Diego Novillo <[email protected]>
21729
21730 * Makefile.in: Regenerate.
21731 * testsuite/Makefile.in: Regenerate.
21732 * aclocal.m4: Regenerate.
21733
21734 2006-01-23 Andreas Tobler <[email protected]>
21735
21736 * config/posix/proc.c: Conditional include of sys/loadavg.h for
21737 Solaris.
21738 * configure.ac: Add check for loadavg.h.
21739 (link_gomp): Adjust comment.
21740 * configure: Regenerate.
21741 * config.h.in: Regenerate.
21742
21743 2006-01-21 Steve Ellcey <[email protected]>
21744
21745 PR libgomp/25877
21746 * configure.ac: Remove check for alloca.h.
21747 * configure: Regenerate.
21748 * config.h.in: Regenerate.
21749 * libgomp.h: define gomp_alloca to be __builtin_alloca.
21750 * team.c: Remove use of alloca.h.
21751 Call gomp_alloca instead of alloca.
21752
21753 2006-01-20 Steve Ellcey <[email protected]>
21754
21755 PR libgomp/25877
21756 * team.c: Add include of alloca.h.
21757 * configure.ac: Add check for alloca.h.
21758 * configure: Regenerate.
21759 * config.h.in: Regenerate.
21760
21761 2006-01-17 Jakub Jelinek <[email protected]>
21762
21763 PR fortran/25219
21764 * testsuite/libgomp.fortran/pr25219.f90: New test.
21765
21766 2005-12-05 Uros Bizjak <[email protected]>
21767
21768 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
21769 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
21770 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
21771 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
21772 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
21773 testsuite/libgomp.fortran/threadprivate1.f90,
21774 testsuite/libgomp.fortran/threadprivate2.f90,
21775 testsuite/libgomp.fortran/threadprivate3.f90,
21776 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
21777 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
21778 testsuite/libgomp.fortran/omp_parse3.f90: Change required
21779 effective-target to TLS runtime.
21780
21781 * testsuite/libgomp.fortran/pr25162.f: Require
21782 effective-target TLS runtime.
21783
21784 2005-12-01 Jakub Jelinek <[email protected]>
21785
21786 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
21787 * testsuite/libgomp.c/nestedfn-3.c: New test.
21788
21789 2005-11-30 Jakub Jelinek <[email protected]>
21790
21791 PR fortran/25162
21792 * testsuite/libgomp.fortran/pr25162.f: New test.
21793
21794 2005-11-28 Jakub Jelinek <[email protected]>
21795
21796 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
21797 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
21798
21799 2005-11-25 Jakub Jelinek <[email protected]>
21800
21801 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
21802 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
21803 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
21804 single.c, team.c, work.c, config/linux/alpha/futex.h,
21805 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
21806 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
21807 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
21808 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
21809 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
21810 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
21811 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
21812 FSF address.
21813
21814 2005-11-18 Jakub Jelinek <[email protected]>
21815
21816 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
21817 to nodist_noinst_HEADERS.
21818 * Makefile.in: Rebuilt.
21819
21820 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
21821 add integer count field.
21822 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
21823 omp_nest_lock_t type change.
21824 (omp_init_nest_lock): Likewise. Initialize count to 0.
21825 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
21826 Increment count.
21827 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
21828 Decrement count.
21829 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
21830 Increment count if successful and return the new nesting level.
21831 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
21832 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
21833 * testsuite/libgomp.c/lib-1.c: New test.
21834 * testsuite/libgomp.fortran/lib1.f90: New test.
21835 * testsuite/libgomp.fortran/lib2.f: New test.
21836 * testsuite/libgomp.fortran/lib3.f: New test.
21837
21838 2005-11-17 Richard Henderson <[email protected]>
21839
21840 PR 24845
21841 * Makefile.am (nodist_toolexeclib_HEADERS): New.
21842 * configure.ac (link_gomp): New. Substitute it.
21843 (AC_CONFIG_FILES): Add libgomp.spec.
21844 * libgomp.spec.in: New file.
21845 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
21846 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
21847
21848 2005-11-18 Jakub Jelinek <[email protected]>
21849
21850 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
21851 reduction(-:var) behaving the same as reduction(+:var).
21852 * testsuite/libgomp.c/reduction-4.c: New test.
21853
21854 2005-11-15 Uros Bizjak <[email protected]>
21855
21856 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
21857 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
21858 testsuite/libgomp.c/copyin-3.c,
21859 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
21860 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
21861 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
21862 testsuite/libgomp.c++/pr24455.C,
21863 testsuite/libgomp.fortran/threadprivate1.f90,
21864 testsuite/libgomp.fortran/threadprivate2.f90,
21865 testsuite/libgomp.fortran/threadprivate3.f90,
21866 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
21867 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
21868 testsuite/libgomp.fortran/omp_parse3.f90: Require
21869 effective-target TLS.
21870
21871 2005-11-14 Diego Novillo <[email protected]>
21872
21873 * HEADER: Remove.
21874
21875 2005-11-13 Jakub Jelinek <[email protected]>
21876
21877 PR libgomp/24797
21878 * team.c (initialize_team): Pass NULL rather than free as
21879 pthread_key_create destructor. Initialize thread specific data
21880 pointer in initial thread to a static local variable rather than
21881 malloced memory.
21882
21883 2005-11-11 Uros Bizjak <[email protected]>
21884
21885 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
21886 its location to ld_library_path.
21887
21888 2005-11-10 Diego Novillo <[email protected]>
21889
21890 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
21891
21892 2005-11-10 Diego Novillo <[email protected]>
21893
21894 * testsuite/libgomp.c: Rename from libgomp.dg.
21895
21896 2005-11-09 Diego Novillo <[email protected]>
21897
21898 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
21899 threadprivate variable 'i'.
21900
21901 2005-11-09 Jakub Jelinek <[email protected]>
21902
21903 * config/linux/s390/futex.h: New file.
21904 * configure.tgt: Use it.
21905
21906 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
21907 before the parallel.
21908
21909 2005-11-08 Jakub Jelinek <[email protected]>
21910
21911 PR c++/24734
21912 * testsuite/libgomp.c++/master-1.C: New test.
21913
21914 2005-11-07 Jakub Jelinek <[email protected]>
21915
21916 * testsuite/libgomp.dg/copyin-3.c: New test.
21917
21918 2005-11-07 Jakub Jelinek <[email protected]>
21919
21920 * testsuite/libgomp.fortran/retval1.f90: New test.
21921 * testsuite/libgomp.fortran/vla7.f90: New test.
21922
21923 2005-11-06 Jakub Jelinek <[email protected]>
21924
21925 * testsuite/libgomp.fortran/vla2.f90: New test.
21926 * testsuite/libgomp.fortran/vla3.f90: New test.
21927 * testsuite/libgomp.fortran/vla4.f90: New test.
21928 * testsuite/libgomp.fortran/vla5.f90: New test.
21929 * testsuite/libgomp.fortran/vla6.f90: New test.
21930
21931 2005-11-01 Jakub Jelinek <[email protected]>
21932
21933 * config/linux/sparc/futex.h: New file.
21934 * configure.tgt: Use it.
21935 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
21936
21937 * critical.c: Include stdlib.h.
21938 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
21939 ignoring return value.
21940 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
21941 LIBGOMP_CHECK_SYNC_BUILTINS check.
21942 * configure: Rebuilt.
21943
21944 2005-10-31 Jakub Jelinek <[email protected]>
21945
21946 * testsuite/libgomp.fortran/vla1.f90: New test.
21947
21948 2005-10-31 Richard Henderson <[email protected]>
21949
21950 * testsuite/libgomp.fortran/character2.f90: Fix race condition
21951 setting 's' in different threads.
21952
21953 2005-10-31 Jakub Jelinek <[email protected]>
21954
21955 * libgomp.h (attribute_hidden, ialias): Define.
21956 * config/posix/proc.c (omp_get_num_procs): Add ialias.
21957 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
21958 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
21959 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
21960 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
21961 omp_test_lock, omp_test_nest_lock): Likewise.
21962 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
21963 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
21964 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
21965 omp_test_lock, omp_test_nest_lock): Likewise.
21966 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
21967 omp_get_dynamic, omp_get_nested): Likewise.
21968 * parallel.c (omp_get_num_threads, omp_get_max_threads,
21969 omp_get_thread_num, omp_in_parallel): Likewise.
21970 * fortran.c (ialias_redirect): Define.
21971 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
21972 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
21973 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
21974 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
21975 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
21976 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
21977 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
21978 omp_get_wtime): Add ialias_redirect.
21979
21980 2005-10-30 Jakub Jelinek <[email protected]>
21981
21982 * fortran.c: Include stdlib.h.
21983
21984 2005-10-29 Jakub Jelinek <[email protected]>
21985
21986 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
21987 * Makefile.in: Regenerated.
21988
21989 2005-10-28 Jakub Jelinek <[email protected]>
21990
21991 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
21992 * libgomp_f.h.in (omp_check_defines): New function.
21993 * env.c: Include libgomp_f.h.
21994 (initialize_env): Call omp_check_defines.
21995
21996 * testsuite/libgomp.dg/copyin-2.c: New test.
21997 * testsuite/libgomp.c++/copyin-2.C: New test.
21998 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
21999
22000 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
22001 * testsuite/libgomp.fortran/sharing2.f90: New test.
22002
22003 * testsuite/libgomp.dg/copyin-1.c: New test.
22004 * testsuite/libgomp.c++/copyin-1.C: New test.
22005
22006 2005-10-26 Jakub Jelinek <[email protected]>
22007
22008 * testsuite/libgomp.fortran/crayptr1.f90: New test.
22009
22010 * testsuite/libgomp.fortran/workshare1.f90: New test.
22011
22012 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
22013 only test.
22014 * libgomp.fortran/sharing1.f90: New test.
22015
22016 2005-10-24 Jakub Jelinek <[email protected]>
22017
22018 PR c++/24502
22019 * testsuite/libgomp.c++/loop-7.C: New test.
22020
22021 * testsuite/libgomp.dg/nestedfn-2.c: New test.
22022
22023 * testsuite/libgomp.dg/nestedfn-1.c: New test.
22024 * testsuite/libgomp.fortran/reduction6.f90: New test.
22025 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
22026
22027 2005-10-23 Richard Henderson <[email protected]>
22028
22029 * testsuite/libgomp.c++/ctor-1.C: New.
22030 * testsuite/libgomp.c++/ctor-2.C: New.
22031 * testsuite/libgomp.c++/ctor-3.C: New.
22032 * testsuite/libgomp.c++/ctor-4.C: New.
22033 * testsuite/libgomp.c++/ctor-5.C: New.
22034 * testsuite/libgomp.c++/ctor-6.C: New.
22035 * testsuite/libgomp.c++/ctor-7.C: New.
22036 * testsuite/libgomp.c++/ctor-8.C: New.
22037 * testsuite/libgomp.c++/ctor-9.C: New.
22038
22039 2005-10-21 Diego Novillo <[email protected]>
22040
22041 PR 24455
22042 * testsuite/libgomp.c++/pr24455-1.C: New test.
22043 * testsuite/libgomp.c++/pr24455.C: New test.
22044 * testsuite/libgomp.dg/pr24455-1.c: New test.
22045 * testsuite/libgomp.dg/pr24455.c: New test.
22046
22047 2005-10-20 Richard Henderson <[email protected]>
22048
22049 * testsuite/libgomp.c++/loop-6.C: New.
22050 * testsuite/libgomp.dg/loop-3.c: New.
22051
22052 2005-10-20 Jakub Jelinek <[email protected]>
22053
22054 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
22055 explicitly private.
22056 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
22057 explicitly shared.
22058
22059 2005-10-19 Diego Novillo <[email protected]>
22060
22061 * testsuite/libgomp.fortran/jacobi.f: New test.
22062
22063 2005-10-19 Richard Henderson <[email protected]>
22064
22065 * configure.tgt (i?86-linux): Default to with_arch instead of
22066 CFLAGS. Add -mtune to match target_cpu.
22067 (x86_64-linux): Tune to i686.
22068
22069 * fortran.c (omp_test_nest_lock_): Fix typo.
22070
22071 2005-10-19 Jakub Jelinek <[email protected]>
22072
22073 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
22074 gomp_ordered_sync): Do nothing if team->nthreads == 1.
22075 * testsuite/libgomp.dg/ordered-3.c: New test.
22076
22077 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
22078 Remove volatile keyword.
22079
22080 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
22081 in COMMON block to avoid warnings on 64-bit targets.
22082
22083 2005-10-18 Diego Novillo <[email protected]>
22084
22085 * testsuite/libgomp.dg/shared-3.c: New test.
22086
22087 2005-10-18 Jakub Jelinek <[email protected]>
22088
22089 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
22090 * testsuite/libgomp.fortran/reduction5.f90: New test.
22091
22092 2005-10-18 Jakub Jelinek <[email protected]>
22093
22094 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
22095 dg-options.
22096 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
22097 flush loop now that __sync_synchronize has proper memory barrier.
22098 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
22099 Add -ffixed-form to dg-options.
22100
22101 2005-10-17 Diego Novillo <[email protected]>
22102
22103 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
22104 from subdirectories.
22105 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
22106 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
22107 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
22108 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
22109 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
22110 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
22111 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
22112 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
22113 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
22114 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
22115 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
22116 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
22117 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
22118 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
22119 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
22120 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
22121 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
22122 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
22123 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
22124 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
22125 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
22126 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
22127 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
22128 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
22129 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
22130
22131 2005-10-17 Jakub Jelinek <[email protected]>
22132
22133 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
22134 lang_library_path exists. Use find instead of glob to gather tests.
22135 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
22136
22137 2005-10-17 Diego Novillo <[email protected]>
22138
22139 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
22140 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
22141 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
22142 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
22143 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
22144 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
22145 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
22146 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
22147 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
22148 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
22149 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
22150 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
22151 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
22152
22153 2005-10-15 Jakub Jelinek <[email protected]>
22154
22155 * testsuite/libgomp.dg/vla-1.c: New test.
22156
22157 * testsuite/libgomp.fortran/reference2.f90: New test.
22158
22159 * testsuite/libgomp.fortran/character2.f90: Remove explicit
22160 declaration of omp_get_thread_num.
22161 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
22162 use omp_lib.
22163
22164 * testsuite/libgomp.fortran/reduction1.f90: New test.
22165 * testsuite/libgomp.fortran/reduction2.f90: New test.
22166 * testsuite/libgomp.fortran/reduction3.f90: New test.
22167 * testsuite/libgomp.fortran/reduction4.f90: New test.
22168
22169 2005-10-13 Richard Henderson <[email protected]>
22170
22171 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
22172 * Makefile.in: Regenerate.
22173 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
22174 * libgomp.h: Include bar.h.
22175 (struct gomp_barrier): Remove.
22176 (struct gomp_team): Add barrier. Replace master_barrier with
22177 master_release. Replace threads with ordered_release.
22178 (struct gomp_thread): Replace barrier with release.
22179 * ordered.c (gomp_ordered_first): Update for ordered_release change.
22180 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
22181 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
22182 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
22183 (GOMP_single_copy_end): Likewise.
22184 * team.c (gomp_threads_dock): New.
22185 (gomp_barrier_init, gomp_barrier_destroy): Remove.
22186 (gomp_thread_start): Use gomp_barrier_wait.
22187 (new_team, free_team): Update for gomp_team changes.
22188 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
22189 (gomp_team_end): Use gomp_barrier_wait.
22190 (initialize_team): Update for gomp_thread changes.
22191 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
22192 (gomp_work_share_end_nowait): Use atomic ops when available.
22193 * config/linux/bar.c, config/linux/bar.h: New files.
22194 * config/posix/bar.c, config/posix/bar.h: New files.
22195
22196 2005-10-13 Jakub Jelinek <[email protected]>
22197
22198 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
22199 * testsuite/libgomp.dg/single-2.c: New test.
22200
22201 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
22202 lang_link_flags): Unset, so that they aren't inherited from previously
22203 sourced *.exp.
22204
22205 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
22206
22207 2005-10-12 Richard Henderson <[email protected]>
22208
22209 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
22210 (libgomp_init): Use lang_test_file, lang_library_path, and
22211 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
22212
22213 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
22214 (lang_test_file, lang_link_flags): New.
22215 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
22216
22217 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
22218 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
22219 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
22220 testsuite/libgomp.c++/parallel-1.C,
22221 testsuite/libgomp.c++/reduction-1.C,
22222 testsuite/libgomp.c++/reduction-2.C,
22223 testsuite/libgomp.c++/reduction-3.C,
22224 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
22225 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
22226 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
22227 New files, largely cribbed from the C testsuite.
22228
22229 2005-10-12 Jakub Jelinek <[email protected]>
22230
22231 * testsuite/libgomp.fortran/character1.f90: New test.
22232 * testsuite/libgomp.fortran/character2.f90: New test.
22233
22234 * testsuite/libgomp.dg/nested-1.c: New test.
22235 * testsuite/libgomp.dg/nested-2.c: New test.
22236 * testsuite/libgomp.fortran/do1.f90: New test.
22237 * testsuite/libgomp.fortran/do2.f90: New test.
22238
22239 * testsuite/libgomp.fortran/reference1.f90: New test.
22240
22241 2005-10-11 Jakub Jelinek <[email protected]>
22242
22243 * testsuite/libgomp.dg/reduction-1.c: New test.
22244 * testsuite/libgomp.dg/reduction-2.c: New test.
22245 * testsuite/libgomp.dg/reduction-3.c: New test.
22246
22247 2005-10-10 Jakub Jelinek <[email protected]>
22248
22249 * testsuite/libgomp.dg/atomic-1.c: New test.
22250 * testsuite/libgomp.dg/atomic-2.c: New test.
22251
22252 2005-10-09 Richard Henderson <[email protected]>
22253
22254 * critical.c (atomic_lock): New.
22255 (initialize_critical): Initialize it.
22256 (GOMP_atomic_start, GOMP_atomic_end): New.
22257 * libgomp.map: Export them.
22258 * libgomp_g.h: Declare them.
22259
22260 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
22261
22262 2005-10-02 Richard Henderson <[email protected]>
22263
22264 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
22265 to XCFLAGS instead of CFLAGS.
22266
22267 2005-09-30 Richard Henderson <[email protected]>
22268
22269 * configure.ac: Determine whether -pthread or -lpthread is needed.
22270 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
22271 * Makefile.in, configure: Rebuild.
22272
22273 2005-09-28 Richard Henderson <[email protected]>
22274
22275 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
22276 * testsuite/libgomp.dg/omp-single-3.c: New test.
22277
22278 2005-09-28 Diego Novillo <[email protected]>
22279
22280 * testsuite/libgomp.dg/omp-single-2.c: New test.
22281 * testsuite/libgomp.dg/shared-2.c: Fix return code.
22282
22283 2005-09-27 Richard Henderson <[email protected]>
22284
22285 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
22286 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
22287
22288 2005-09-27 Jakub Jelinek <[email protected]>
22289
22290 * testsuite/libgomp.dg/omp-loop03.c: New test.
22291
22292 2005-09-27 Diego Novillo <[email protected]>
22293
22294 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
22295
22296 2005-09-27 Diego Novillo <[email protected]>
22297
22298 * testsuite/libgomp.dg/omp-single-1.c: New test.
22299 * testsuite/libgomp.dg/shared-1.c: Return 0.
22300 Add prototype for abort.
22301 * testsuite/libgomp.dg/shared-2.c: Likewise.
22302
22303 2005-09-26 Jakub Jelinek <[email protected]>
22304
22305 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
22306 constructs.
22307
22308 2005-09-26 Diego Novillo <[email protected]>
22309
22310 * testsuite/libgomp.dg/shared-1.c: New test.
22311 * testsuite/libgomp.dg/shared-2.c: New test.
22312
22313 2005-09-24 Richard Henderson <[email protected]>
22314
22315 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
22316
22317 2005-09-24 Richard Henderson <[email protected]>
22318
22319 * iter.c (gomp_iter_static_next): Round up when computing number
22320 of iterations. Don't bother distributing a remainder equally.
22321
22322 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
22323 Don't call srand. Zero b before testing.
22324 (main): New.
22325
22326 2005-09-24 Jakub Jelinek <[email protected]>
22327
22328 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
22329 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
22330
22331 2005-09-23 Jakub Jelinek <[email protected]>
22332
22333 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
22334 without !$omp end do, followed immediately by subroutine end.
22335
22336 2005-09-23 Diego Novillo <[email protected]>
22337
22338 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
22339
22340 2005-09-22 Richard Henderson <[email protected]>
22341
22342 * critical.c (GOMP_critical_name_start): Change argument to void**.
22343 Reuse the pointer space if the mutex fits.
22344 (GOMP_critical_name_end): Likewise.
22345 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
22346 * libgomp_g.h (GOMP_critical_name_start): Update decl.
22347 (GOMP_critical_name_end): Likewise.
22348 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
22349 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
22350
22351 2005-09-20 Richard Henderson <[email protected]>
22352
22353 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
22354 (create_lock_lock): New.
22355 (initialize_critical): Initialize it.
22356 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
22357 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
22358
22359 2005-09-20 Diego Novillo <[email protected]>
22360
22361 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
22362
22363 2005-09-20 Diego Novillo <[email protected]>
22364
22365 * testsuite/libgomp.dg/omp-loop01.c: New test.
22366 * testsuite/libgomp.dg/omp-loop02.c: New test.
22367
22368 2005-09-20 Jakub Jelinek <[email protected]>
22369
22370 * configure.ac (AC_PROG_FC): Add.
22371 (USE_FORTRAN): New automake conditional.
22372 * configure: Rebuilt.
22373 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
22374 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
22375 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
22376 Add rules to build them.
22377 * Makefile.in: Rebuilt.
22378 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
22379 OMP_NEST_LOCK_KIND.
22380 * libgomp.map: Add Fortran wrappers.
22381 * libgomp_f.h.in: New file.
22382 * omp_lib.h.in: New file.
22383 * omp_lib.f90.in: New file.
22384 * fortran.c: New file.
22385 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
22386 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
22387 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
22388 libgfortran has been built.
22389 * testsuite/libgomp.fortran/fortran.exp: New file.
22390 * testsuite/libgomp.fortran/omp_cond1.f: New test.
22391 * testsuite/libgomp.fortran/omp_cond2.f: New test.
22392 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
22393 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
22394 * testsuite/libgomp.fortran/omp_hello.f: New test.
22395 * testsuite/libgomp.fortran/omp_orphan.f: New test.
22396 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
22397 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
22398 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
22399 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
22400 * testsuite/libgomp.fortran/omp_reduction.f: New test.
22401 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
22402 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
22403
22404 2005-08-30 Richard Henderson <[email protected]>
22405
22406 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
22407 function for when aliases are not usable.
22408 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
22409 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
22410 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
22411 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
22412 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
22413 GOMP_loop_ordered_guided_next): Likewise.
22414 * ordered.c (GOMP_ordered_start): Likewise.
22415
22416 2005-08-01 Diego Novillo <[email protected]>
22417
22418 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
22419 * testsuite/libgomp.dg/omp_hello.c: Fix return code
22420 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
22421 * testsuite/libgomp.dg/omp_orphan.c: Likewise
22422 * testsuite/libgomp.dg/omp_reduction.c: Likewise
22423 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
22424 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
22425 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
22426 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
22427
22428 2005-07-07 Eric Christopher <[email protected]>
22429 Diego Novillo <[email protected]>
22430
22431 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
22432 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
22433 up code.
22434 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
22435 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
22436 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
22437 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
22438 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
22439 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
22440 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
22441
22442 2005-06-13 Diego Novillo <[email protected]>
22443
22444 * TOPLEVEL.patch: Remove.
22445
22446 2005-05-16 Richard Henderson <[email protected]>
22447
22448 * configure.ac: Test for clock_gettime.
22449 * config.h.in, configure: Rebuild.
22450 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
22451 (omp_get_wtime): Use clock_gettime if available.
22452 (omp_get_wtick): Use clock_getres if available.
22453
22454 2005-05-11 Richard Henderson <[email protected]>
22455
22456 * config/linux/ia64/futex.h: New file.
22457 * configure.tgt: Use it.
22458
22459 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
22460
22461 2005-05-07 Richard Henderson <[email protected]>
22462
22463 * config/linux/powerpc/futex.h: New file.
22464 * configure.tgt: Use it.
22465
22466 * config/linux/i486/futex.h: Merge ...
22467 * config/linux/x86_64/futex.h: ... into ...
22468 * config/linux/x86/futex.h: ... here.
22469 * configure.tgt: Update to match.
22470
22471 2005-05-06 Richard Henderson <[email protected]>
22472
22473 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
22474 * config/linux/i486/futex.h: Likewise.
22475 * config/linux/x86_64/futex.h: Likewise.
22476
22477 * config/linux/lock.c: New file.
22478 * config/linux/omp-lock.h: New file.
22479
22480 * critical.c, env.h: Don't include omp.h
22481 * config/posix/lock.c: Include libgomp.h instead of omp.h.
22482 * config/posix/time.c: Likewise.
22483 * config/posix/omp-lock.h: New file.
22484 * libgomp.h: Include omp-lock.h and omp.h.
22485 * Makefile.am (nodist_include_HEADERS): New.
22486 (omp.h): New rule.
22487 * configure.ac (PERL): New.
22488 * mkomp_h.pl: New file.
22489 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
22490 with templates.
22491 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
22492
22493 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
22494 build directory. Re-add -march=i486 hack.
22495
22496 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
22497 (libgomp_link_flags): Remove.
22498 (libgomp_initialized): Remove.
22499 (libgomp_init): Don't protect from reinitialization. Copy code
22500 from libstdc++ for getting the multilib set correctly.
22501
22502 2005-05-05 Richard Henderson <[email protected]>
22503
22504 * config/linux/alpha/futex.h: New file.
22505 * configure.tgt (alpha*-*-linux*): Use it.
22506
22507 * config/posix/mutex.c: New file.
22508 * config/posix/sem.c: Use libgomp.h.
22509
22510 * configure.tgt (x86_64-linux): Also test CC for -m32.
22511 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
22512
22513 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
22514 after $gccpath.
22515
22516 * Makefile.am (SUBDIRS): New.
22517 (libgomp_la_LDFLAGS): Add -lpthread.
22518 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
22519 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
22520
22521 * libgomp_g.h: New file.
22522 * libgomp.h: Split out all public declarations to libgomp_g.h.
22523 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
22524 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
22525 * config/linux/sem.h: Likewise.
22526 * config/posix/sem.h: Likewise.
22527
22528 * Makefile.am (AM_LDFLAGS): New.
22529 (libgomp_version_script): Split out from ...
22530 (libgomp_la_LDFLAGS): ... here.
22531 (libgomp_version_info): New.
22532 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
22533 (LIBGOMP_ENABLE): New.
22534 (LIBGOMP_CHECK_LINKER_FEATURES): New.
22535 (LIBGOMP_ENABLE_SYMVERS): New.
22536 * configure.ac (AC_INIT): Version 1.0.
22537 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
22538 (enable-linux-futex): Likewise. Rename from enable-futex.
22539 (libtool_VERSION): New.
22540 (LIBGOMP_ENABLE_SYMVERS): Use it.
22541 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
22542 * Makefile.in, aclocal.m4, configure: Rebuild.
22543
22544 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
22545 (gomp_mutex_unlock_slow): Fix typo.
22546 * config/linux/sem.c: Similarly.
22547 (gomp_sem_post_slow): Fix typo.
22548 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
22549 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
22550 [__PIC__] (sys_futex0): Don't use tmp output in asm.
22551
22552 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
22553 (libgomp_la_LDFLAGS): Add top_srcdir to path.
22554 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
22555 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
22556 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
22557 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
22558 LDFLAGS. Pull enable_futex check to top-level.
22559 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
22560 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
22561
22562 First attempt at real configury.
22563 * Makefile, config.h: Remove file.
22564 * Makefile.am, Makefile.in: New file.
22565 * acinclude.m4 aclocal.m4: New file.
22566 * configure.ac, configure.tgt, configure: New file.
22567
22568 * config/posix/lock.c: Rename from sys-lock.c.
22569 * config/posix/mutex.h: Rename from sys-mutex.h.
22570 * config/posix/sem.c: Rename from sys-sem.c.
22571 * config/posix/sem.h: Rename from sys-sem.h.
22572 * config/posix/proc.c: Rename from sys-proc.c.
22573 * config/posix/time.c: Rename from sys-proc.c.
22574
22575 * config/linux/mutex.c: New file.
22576 * config/linux/mutex.h: New file.
22577 * config/linux/sem.c: New file.
22578 * config/linux/sem.h: New file.
22579 * config/linux/i486/futex.h: New file.
22580 * config/linux/x86_64/futex.h: New file.
22581
22582 2005-05-04 Richard Henderson <[email protected]>
22583
22584 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
22585 * libgomp.h: Declare them.
22586 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
22587 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
22588
22589 2005-05-04 Richard Henderson <[email protected]>
22590
22591 * libgomp-1 code drop
22592
22593 2005-05-04 Richard Henderson <[email protected]>
22594
22595 * iter.c (gomp_iter_static_next): Return tri-state on 0.
22596 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
22597 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
22598 (gomp_iter_static_next): Update.
22599 (gomp_ordered_static_next): Update.
22600 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
22601 (gomp_loop_ordered_static_start): Likewise. Exit early for a
22602 totally empty range.
22603 (gomp_loop_ordered_static_next): Refine test for calling
22604 gomp_ordered_static_next.
22605 * testsuite/ordered-1.c: Add case for more threads than iterations.
22606
22607 * iter.c (gomp_iter_runtime_next_locked): Remove.
22608 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
22609 gomp_loop_guided_start, gomp_loop_ordered_static_start,
22610 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
22611 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
22612 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
22613 gomp_loop_ordered_guided_next): Downcase name, make static, add
22614 an external alias with the old name.
22615 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
22616 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
22617 switch and call one of the above static functions.
22618 * libgomp.h: Update.
22619
22620 * work.c (gomp_work_share_start): Lock the mutex for !first too.
22621 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
22622 GOMP_loop_guided_start, GOMP_loop_runtime_start,
22623 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
22624 GOMP_loop_ordered_guided_start): Update to match.
22625 * sections.c (GOMP_sections_start): Likewise.
22626 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
22627
22628 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
22629 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
22630 Use bounds check instead of modulus.
22631 (gomp_ordered_sync): Split out of GOMP_ordered_start.
22632 (gomp_ordered_last): Don't sync with ordered_owner here.
22633 (gomp_ordered_next): Likewise.
22634 (gomp_ordered_static_loop_next): Likewise.
22635 * loop.c, libgomp.h: Update to match.
22636
22637 * libgomp.h (GOMP_barrier): Declare.
22638
22639 * testsuite/barrier-1.c: New file.
22640 * testsuite/critical-1.c: New file.
22641 * testsuite/ordered-2.c: New file.
22642 * testsuite/ordered-1.c: New file.
22643 * testsuite/sections-1.c: New file.
22644 * testsuite/single-1.c: New file.
22645 * testsuite/Makefile (TESTS): Add them.
22646
22647 2005-05-04 Richard Henderson <[email protected]>
22648
22649 * libgomp.h (struct gomp_work_share): Add ordered_owner.
22650 * loop.c (GOMP_loop_static_start): If not the startup thread,
22651 acquire the mutex to wait for initialization complete.
22652 (GOMP_loop_ordered_static_start): Likewise.
22653 (GOMP_loop_ordered_runtime_start): Likewise.
22654 (GOMP_loop_ordered_static_first): Remove.
22655 (GOMP_loop_ordered_dynamic_first): Remove.
22656 (GOMP_loop_ordered_guided_first): Remove.
22657 (GOMP_loop_ordered_runtime_first): Remove.
22658 * ordered.c (gomp_ordered_loop_first): Post to own release when
22659 we're the first thread.
22660 (gomp_ordered_loop_last): Wait on release if not owner.
22661 (gomp_ordered_loop_next): Likewise.
22662 (gomp_ordered_static_loop_init): New.
22663 (gomp_ordered_static_loop_next): Use ordered_owner.
22664 (GOMP_ordered_start): Likewise.
22665 * work.c (gomp_new_work_share): Initialize ordered_owner.
22666
22667 2005-05-03 Richard Henderson <[email protected]>
22668
22669 * Makefile (OPT): New.
22670 (CFLAGS): Use it.
22671
22672 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
22673 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
22674 * libgomp.h, libgomp.map, NOTES: Update to match.
22675
22676 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
22677 Add initialized and thr members.
22678 (gomp_thread_start): Pause when initially spawned to wait for
22679 the whole team to be created.
22680 (gomp_team_start): Release team members at the end.
22681
22682 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
22683 (f_foo_1): Use GOMP_loop_end.
22684 (f_foo_2): Use GOMP_loop_end_nowait.
22685
22686 * testsuite/loop-2.c: New file.
22687 * testsuite/Makefile (TESTS): Add it.
22688
22689 2005-05-03 Richard Henderson <[email protected]>
22690
22691 * iter.c (gomp_iter_static_next): Fix overflow check typo.
22692 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
22693 * team.c (new_team): Initialize oldest_live_gen to 1 if no
22694 initial work_share.
22695
22696 * testsuite/Makefile: New file.
22697 * testsuite/loop-1.c: New file.
22698
22699 2005-05-03 Richard Henderson <[email protected]>
22700
22701 Initial implementation and checkin.
22702
22703 Copyright (C) 2005-2025 Free Software Foundation, Inc.
22704
22705 Copying and distribution of this file, with or without modification,
22706 are permitted in any medium without royalty provided the copyright
22707 notice and this notice are preserved.