]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgomp/ChangeLog
Update ChangeLog and version files for release
[thirdparty/gcc.git] / libgomp / ChangeLog
CommitLineData
d04fe554
RB
12023-07-07 Release Manager
2
3 * GCC 10.5.0 released.
4
c642277c
GA
52023-05-03 Jakub Jelinek <jakub@redhat.com>
6
7 Backported from master:
8 2023-02-16 Jakub Jelinek <jakub@redhat.com>
9
10 * libgomp.texi: Fix typos - theads -> threads.
11
122023-05-03 Jakub Jelinek <jakub@redhat.com>
13
14 Backported from master:
15 2022-12-21 Jakub Jelinek <jakub@redhat.com>
16
17 PR c++/108180
18 * testsuite/libgomp.c++/pr108180.C: New test.
19
202023-05-03 Jakub Jelinek <jakub@redhat.com>
21
22 Backported from master:
23 2022-10-12 Jakub Jelinek <jakub@redhat.com>
24
25 * task.c (gomp_create_artificial_team): Fix up handling of invocations
26 from within explicit task.
27 * target.c (GOMP_target_ext): Likewise.
28 * testsuite/libgomp.c/task-7.c: New test.
29 * testsuite/libgomp.c/task-8.c: New test.
30 * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
31 * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
32
332023-05-03 Jakub Jelinek <jakub@redhat.com>
34
35 Backported from master:
36 2022-09-24 Jakub Jelinek <jakub@redhat.com>
37
38 PR c/106981
39 * testsuite/libgomp.c-c++-common/pr106981.c: New test.
40
412023-05-03 Jakub Jelinek <jakub@redhat.com>
42
43 Backported from master:
44 2022-06-21 Jakub Jelinek <jakub@redhat.com>
45 Paul Iannetta <piannetta@kalrayinc.com>
46
47 PR libgomp/106045
48 * testsuite/libgomp.c/target-31.c: Add private (i) clause.
49
7ff47281
JJ
502022-06-28 Release Manager
51
52 * GCC 10.4.0 released.
53
8a4cae03
GA
542022-05-10 Jakub Jelinek <jakub@redhat.com>
55
56 Backported from master:
57 2022-02-08 Jakub Jelinek <jakub@redhat.com>
58
59 PR libgomp/104385
60 * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
61 clear task->parent.
62 * testsuite/libgomp.c/pr104385.c: New test.
63
642022-05-10 Jakub Jelinek <jakub@redhat.com>
65
66 Backported from master:
67 2021-11-24 Jakub Jelinek <jakub@redhat.com>
68
69 PR middle-end/103384
70 * testsuite/libgomp.c/declare-variant-2.c: New test.
71
722022-05-10 Jakub Jelinek <jakub@redhat.com>
73
74 Backported from master:
75 2021-10-15 Jakub Jelinek <jakub@redhat.com>
76
77 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
78 after creating count places clean up and return immediately.
79 * testsuite/libgomp.c/places-6.c: New test.
80 * testsuite/libgomp.c/places-7.c: New test.
81 * testsuite/libgomp.c/places-8.c: New test.
82
832022-05-10 Jakub Jelinek <jakub@redhat.com>
84
85 Backported from master:
86 2021-07-01 Jakub Jelinek <jakub@redhat.com>
87
88 PR middle-end/94366
89 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
90
912022-05-10 Tobias Burnus <tobias@codesourcery.com>
92
93 Backported from master:
94 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
95
96 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
97 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
98 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
99 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
100
1012022-05-10 Jakub Jelinek <jakub@redhat.com>
102
103 Backported from master:
104 2021-07-13 Jakub Jelinek <jakub@redhat.com>
105 Florian Weimer <fweimer@redhat.com>
106
107 * config/linux/sem.h: Don't include limits.h.
108 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
109 * config/linux/affinity.c: Include limits.h.
110
1112022-05-10 Jakub Jelinek <jakub@redhat.com>
112
113 Backported from master:
114 2021-06-23 Jakub Jelinek <jakub@redhat.com>
115
116 PR middle-end/101167
117 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
118
1192022-05-10 Jakub Jelinek <jakub@redhat.com>
120
121 Backported from master:
122 2021-05-11 Jakub Jelinek <jakub@redhat.com>
123
124 PR middle-end/100471
125 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
126 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
127 reduction pointer.
128 * testsuite/libgomp.c/task-reduction-4.c: New test.
129
8430391f
GA
1302021-05-06 Roman Zhuykov <zhroma@ispras.ru>
131
132 Backported from master:
133 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
134
135 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
136
6af956c8
GA
1372021-04-18 Hafiz Abid Qadeer <abidh@codesourcery.com>
138
139 Backported from master:
140 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
141
142 PR middle-end/98088
143 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
144 for loop with GT/GE condition.
145 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
146
e8a35b47
GA
1472021-04-09 Thomas Schwinge <thomas@codesourcery.com>
148
149 Backported from master:
150 2021-04-09 Thomas Schwinge <thomas@codesourcery.com>
151
152 PR middle-end/84991
153 PR middle-end/84992
154 PR middle-end/90779
155 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
156
f00b5710
RB
1572021-04-08 Release Manager
158
159 * GCC 10.3.0 released.
160
c05f285c
GA
1612021-03-25 Thomas Schwinge <thomas@codesourcery.com>
162
163 Backported from master:
164 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
165
166 * plugin/plugin-hsa.c (init_enviroment_variables): Don't prepend
167 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
168 * plugin/plugin-gcn.c (init_environment_variables): Likewise.
169 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
170 * config.h.in: Regenerate.
171 * configure: Likewise.
172
d41bf7f6
GA
1732021-02-22 Tobias Burnus <tobias@codesourcery.com>
174
175 Backported from master:
176 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
177
178 PR fortran/99171
179 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
180
ed0aa615
GA
1812021-01-14 Thomas Schwinge <thomas@codesourcery.com>
182
183 Backported from master:
184 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
185
186 PR libgomp/65099
187 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
188 configurations.
189 * configure: Regenerate.
190 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
191 check.
192
ec75f42c
GA
1932021-01-06 Jakub Jelinek <jakub@redhat.com>
194
195 Backported from master:
196 2020-12-18 Jakub Jelinek <jakub@redhat.com>
197
198 * testsuite/libgomp.c/task-6.c: New test.
199
a8a453d8
GA
2002021-01-03 Iain Sandoe <iain@sandoe.co.uk>
201 Jakub Jelinek <jakub@redhat.com>
202
203 PR target/97865
204 * configure: Regenerate.
205 * Makefile.in: Update copyright years.
206
8039cdda
GA
2072020-11-25 Thomas Schwinge <thomas@codesourcery.com>
208
209 Backported from master:
210 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
211
212 * testsuite/libgomp.oacc-c++/cache-1.C: New.
213 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
214
f1d5eb40
GA
2152020-11-02 Thomas Schwinge <thomas@codesourcery.com>
216
217 Backported from master:
218 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
219
220 PR target/85486
221 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
222 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
223 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
224
2252020-11-02 Thomas Schwinge <thomas@codesourcery.com>
226
227 Backported from master:
228 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
229
230 PR testsuite/80219
231 PR testsuite/85303
232 * testsuite/lib/libgomp.exp (libgomp_init): Set
233 'gcc_warning_prefix', 'gcc_error_prefix'.
234
3f77cd79
GA
2352020-08-25 Jakub Jelinek <jakub@redhat.com>
236
237 Backported from master:
238 2020-08-08 Jakub Jelinek <jakub@redhat.com>
239 Tobias Burnus <tobias@codesourcery.com>
240
241 PR fortran/93553
242 * testsuite/libgomp.fortran/pr93553.f90: New test.
243
2442020-08-25 Jakub Jelinek <jakub@redhat.com>
245
246 Backported from master:
247 2020-08-05 Jakub Jelinek <jakub@redhat.com>
248
249 PR middle-end/96459
250 * testsuite/libgomp.c/teams-3.c: New test.
251 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
252 if not defined yet.
253 (N(test)): Use it before all N(f*) calls.
254 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
255 (main): Don't call all test_* functions from within
256 #pragma omp teams reduction(|:err), call them directly.
257
981b776f
GA
2582020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
259
260 Backported from master:
261 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
262
263 * plugin/plugin-nvptx.c (nvptx_free):
264 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
265 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
266 comments.
267
b258a8b7
GA
2682020-07-29 Julian Brown <julian@codesourcery.com>
269
270 Backported from master:
271 2020-07-27 Julian Brown <julian@codesourcery.com>
272 Thomas Schwinge <thomas@codesourcery.com>
273
274 * libgomp.h (struct target_var_desc): Rename do_detach field to
275 is_attach.
276 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
277 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
278 (goacc_enter_data_internal): Don't affect reference counts
279 for attach mappings.
280 (goacc_exit_data_internal): Don't affect reference counts for detach
281 mappings.
282 * target.c (gomp_map_vars_existing): Don't affect reference counts for
283 attach mappings.
284 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
285 mark attach mappings.
286 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
287 reference count for attach mappings.
288 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
289 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
290 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
291 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
292 test as shouldfail.
293 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
294 gracefully in no-finalize mode.
295 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
296
2972020-07-29 Julian Brown <julian@codesourcery.com>
298
299 Backported from master:
300 2020-07-23 Julian Brown <julian@codesourcery.com>
301 Thomas Schwinge <thomas@codesourcery.com>
302
303 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
304 finalization for detach operation.
305 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
306 New test.
307
ee5c3db6
RB
3082020-07-23 Release Manager
309
310 * GCC 10.2.0 released.
311
42195da6
GA
3122020-07-14 Kwok Cheung Yeung <kcy@codesourcery.com>
313
314 Backported from master:
315 2020-07-14 Tom de Vries <tom@codesourcery.com>
316 Cesar Philippidis <cesar@codesourcery.com>
317 Thomas Schwinge <thomas@codesourcery.com>
318 Kwok Cheung Yeung <kcy@codesourcery.com>
319
320 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
321 New variable.
322 (acc_init_1): Set acc_init_thread to pthread_self (). Set
323 acc_init_state to initializing at the start, and to initialized at the
324 end.
325 (self_initializing_p): New function.
326 (acc_get_device_type): Return acc_device_none if called by thread that
327 is currently executing acc_init_1.
328 * libgomp.texi (acc_get_device_type): Update documentation.
329 (Implementation Status and Implementation-Defined Behavior): Likewise.
330 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
331
13d817af
GA
3322020-07-13 Julian Brown <julian@codesourcery.com>
333
334 Backported from master:
335 2020-07-13 Julian Brown <julian@codesourcery.com>
336 Thomas Schwinge <thomas@codesourcery.com>
337
338 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
339
3402020-07-13 Julian Brown <julian@codesourcery.com>
341
342 Backported from master:
343 2020-07-10 Julian Brown <julian@codesourcery.com>
344 Thomas Schwinge <thomas@codesourcery.com>
345
346 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
347 dynamic_refcount.
348 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
349 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
350 dynamic_refcount.
351 (acc_unmap_data): Update comment.
352 (goacc_map_var_existing, goacc_enter_datum): Adjust for
353 dynamic_refcount semantics.
354 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
355 Adjust for dynamic_refcount semantics.
356 (goacc_enter_data_internal): Implement "present" case of dynamic
357 memory-map handling here. Update "non-present" case for
358 dynamic_refcount semantics.
359 (goacc_exit_data_internal): Use goacc_exit_datum_1.
360 * target.c (gomp_map_vars_internal): Remove
361 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
362 handling.
363 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
364 (gomp_load_image_to_device): Substitute dynamic_refcount for
365 virtual_refcount.
366 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
367 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
368 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
369 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
370 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
371 trace output.
372 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
373 trace output.
374 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
375 test.
376 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
377 Remove stale comment.
378 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
379 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
380 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
381 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
382 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
383 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
384
3852020-07-13 Julian Brown <julian@codesourcery.com>
386
387 Backported from master:
388 2020-07-10 Julian Brown <julian@codesourcery.com>
389 Thomas Schwinge <thomas@codesourcery.com>
390
391 * oacc-mem.c (goacc_map_var_existing): New function.
392 (goacc_enter_datum): Use above function.
393 (goacc_exit_datum_1): New function.
394 (goacc_exit_datum): Use above function.
395
3962020-07-13 Julian Brown <julian@codesourcery.com>
397
398 Backported from master:
399 2020-07-09 Julian Brown <julian@codesourcery.com>
400 Thomas Schwinge <thomas@codesourcery.com>
401
402 PR middle-end/95270
403 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
404 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
405
4062020-07-13 Julian Brown <julian@codesourcery.com>
407
408 Backported from master:
409 2020-07-09 Julian Brown <julian@codesourcery.com>
410
411 * oacc-mem.c (find_group_last): Group data-movement clauses
412 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
413 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
414
2c10856d
GA
4152020-07-03 Thomas Schwinge <thomas@codesourcery.com>
416
417 Backported from master:
418 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
419
420 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
421 behavior for 'GOMP_MAP_FORCE_FROM'.
422 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
423
4242020-07-03 Thomas Schwinge <thomas@codesourcery.com>
425
426 Backported from master:
427 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
428
429 * oacc-mem.c (goacc_exit_data_internal): Remove
430 'GOMP_MAP_ALWAYS_FROM' handling.
431
d7384686
GA
4322020-06-30 Thomas Schwinge <thomas@codesourcery.com>
433
434 Backported from master:
435 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
436
437 * target.c (gomp_map_vars_existing): Assert 'kind !=
438 GOMP_MAP_ATTACH'.
439 (gomp_map_vars_internal): Clean up.
440
934a5fa5
GA
4412020-06-17 Thomas Schwinge <thomas@codesourcery.com>
442
443 Backported from master:
444 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
445
446 PR lto/94848
447 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
448 'dg-do run'.
449
32f2eef9
GA
4502020-06-15 Tobias Burnus <tobias@codesourcery.com>
451
452 PR lto/94848
453 PR middle-end/95551
454 * testsuite/libgomp.fortran/target-var.f90: New test.
455
7eb958eb
GA
4562020-06-05 Thomas Schwinge <thomas@codesourcery.com>
457 Julian Brown <julian@codesourcery.com>
458
459 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
460 special handling.
461
4622020-06-05 Thomas Schwinge <thomas@codesourcery.com>
463 Julian Brown <julian@codesourcery.com>
464
465 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
466 Simplify.
467
4682020-06-05 Julian Brown <julian@codesourcery.com>
469
470 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
471 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
472
ae7aed03
GA
4732020-06-04 Thomas Schwinge <thomas@codesourcery.com>
474
475 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
476 Evaluate 'copyfrom' individually for each entry.
477 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
478
4792020-06-04 Thomas Schwinge <thomas@codesourcery.com>
480
481 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
482 Evaluate 'finalize' individually for each entry.
483 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
484 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
485 file.
486
4872020-06-04 Thomas Schwinge <thomas@codesourcery.com>
488
489 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
490 usage.
491 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
492
4932020-06-04 Thomas Schwinge <thomas@codesourcery.com>
494 Julian Brown <julian@codesourcery.com>
495
496 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
497 checking.
498 (acc_unmap_data, goacc_exit_data_internal): Restore
499 'is_tgt_unmapped' checking.
500 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
501 file.
502 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
503 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
504 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
505 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
506 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
507 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
508
5092020-06-04 Thomas Schwinge <thomas@codesourcery.com>
510 Julian Brown <julian@codesourcery.com>
511
512 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
513
5142020-06-04 Thomas Schwinge <thomas@codesourcery.com>
515
516 PR libgomp/92854
517 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
518
5192020-06-04 Thomas Schwinge <thomas@codesourcery.com>
520
521 PR libgomp/92854
522 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
523 more.
524
5252020-06-04 Thomas Schwinge <thomas@codesourcery.com>
526 Julian Brown <julian@codesourcery.com>
527
528 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
529 'gomp_map_vars'.
530 (acc_map_data): Clean up accordingly.
531
5322020-06-04 Thomas Schwinge <thomas@codesourcery.com>
533
534 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
535 of over-eager 'finalize' clause.
536 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
537 file.
538 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
539 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
540 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
541 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
542 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
543 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
544 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
545 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
546
5472020-06-04 Thomas Schwinge <thomas@codesourcery.com>
548
549 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
550
5512020-06-04 Julian Brown <julian@codesourcery.com>
552
553 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
554 error path.
555 (goacc_detach_internal): Likewise.
556
5572020-06-04 Thomas Schwinge <thomas@codesourcery.com>
558
559 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
560 the checkpoint.
561 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
562 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
563 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
564 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
565 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
566
71e2bcc2
GA
5672020-05-26 Thomas Koenig <tkoenig@gcc.gnu.org>
568
569 PR libfortran/95191
570 * testsuite/libgomp.fortran/async_io_9.f90: New test.
571
8275e0a6
TK
5722020-05-22 Thomas Koenig <tkoenig@gcc.gnu.org>
573
574 PR libfortran/95119
575 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
576
6e6e3f14
JJ
5772020-05-07 Release Manager
578
579 * GCC 10.1.0 released.
580
b9dc11b6
TS
5812020-04-29 Thomas Schwinge <thomas@codesourcery.com>
582
a5d0bc12
TS
583 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
584 * openacc.f90 (acc_device_current): Likewise.
585 * openacc.h (acc_device_current): Likewise.
586 * openacc_lib.h (acc_device_current): Likewise.
587
7f198924
TS
588 PR target/94282
589 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
590 'dg-allow-blank-lines-in-output'.
591
4912a04f
TS
592 * oacc-init.c (get_openacc_name): Handle 'gcn'.
593 * testsuite/lib/libgomp.exp
594 (offload_target_to_openacc_device_type) [amdgcn*]: Return
595 'radeon'. Adjust all users.
596 (check_effective_target_openacc_amdgcn_accel_present): Rename
597 to...
598 (check_effective_target_openacc_radeon_accel_present): ... this.
599 Adjust all users.
600 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
601 (check_effective_target_openacc_radeon_accel_selected): ... this.
602 Adjust all users.
603
b9dc11b6
TS
604 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
605 'dg-do run'.
606
966de09b
AS
6072020-04-23 Andrew Stubbs <ams@codesourcery.com>
608
609 PR other/94629
610
611 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
612 hsa_iterate_agents.
613 (GOMP_OFFLOAD_init_device): Check return values from both calls to
614 hsa_agent_iterate_regions.
615
3f5d94c1
TS
6162020-04-20 Thomas Schwinge <thomas@codesourcery.com>
617
618 PR middle-end/94635
619 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
620 run'.
621
85d8c05a
TB
6222020-04-20 Tobias Burnus <tobias@codesourcery.com>
623
624 PR middle-end/94120
625 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
626 test case.
627
af557050
TB
6282020-04-17 Tobias Burnus <tobias@codesourcery.com>
629
630 PR middle-end/94635
631 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
632
af4c9257
TS
6332020-04-13 Thomas Schwinge <thomas@codesourcery.com>
634
635 PR libgomp/92843
636 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
637 Rename to...
638 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
639 ... this.
640 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
641 Rename to...
642 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
643 ... this.
644 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
645 Rename to...
646 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
647 ... this.
648 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
649 Rename to...
650 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
651 ... this.
652 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
653 Rename to...
654 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
655 ... this.
656 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
657 Rename to...
658 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
659 ... this.
660 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
661 Rename to...
662 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
663 ... this.
664 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
665 Rename to...
666 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
667 ... this.
668 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
669 Rename to...
670 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
671 ... this.
672 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
673 Rename to...
674 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
675 ... this.
676 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
677 Rename to...
678 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
679 ... this.
680 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
681 Rename to...
682 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
683 ... this.
684 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
685 Rename to...
686 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
687 ... this.
688 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
689 Rename to...
690 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
691 ... this.
692 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
693 Rename to...
694 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
695 ... this.
696 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
697 Rename to...
698 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
699 ... this.
700
be9862dd
JB
7012020-04-10 Julian Brown <julian@codesourcery.com>
702 Thomas Schwinge <thomas@codesourcery.com>
703
704 PR libgomp/92843
705 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
706 New file.
707 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
708 Likewise.
709 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
710 Likewise.
711 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
712 Likewise.
713 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
714 Likewise.
715 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
716 Likewise.
717 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
718 Likewise.
719 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
720 Likewise.
721 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
722 Likewise.
723 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
724 Likewise.
725 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
726 Likewise.
727 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
728 Likewise.
729 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
730 Likewise.
731 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
732 Likewise.
733 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
734 Likewise.
735 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
736 Likewise.
737
6b816a5f
TS
7382020-04-10 Thomas Schwinge <thomas@codesourcery.com>
739
740 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
741 run'.
742
13e41d8b
TB
7432020-04-08 Tobias Burnus <tobias@codesourcery.com>
744
745 PR middle-end/94120
746 * libgomp.oacc-c++/declare-pr94120.C: New.
747
749bd22d
MR
7482020-04-06 Maciej W. Rozycki <macro@wdc.com>
749
750 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
751 files.
752 * configure: Regenerate.
753 * testsuite/libgomp-site-extra.exp.in: New file.
754 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
755 variable.
756 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
757 variable.
758 * testsuite/Makefile.in: Regenerate.
759
2b1e849b
TS
7602020-04-03 Thomas Schwinge <thomas@codesourcery.com>
761
762 PR tree-optimization/89713
763 PR c/94392
764 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
765 'bar.sync'.
766 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
767
689418b9
TB
7682020-03-31 Tobias Burnus <tobias@codesourcery.com>
769
770 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
771 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
772
c2211a60
TB
7732020-03-24 Tobias Burnus <tobias@codesourcery.com>
774
775 PR libgomp/81689
776 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
777
4897bb00
TB
7782020-03-20 Tobias Burnus <tobias@codesourcery.com>
779
780 PR libgomp/94251
781 * target.c (gomp_load_image_to_device): Fix link
782 variable handling.
783
02f7334a
JJ
7842020-03-19 Jakub Jelinek <jakub@redhat.com>
785
786 PR c++/93931
787 * testsuite/libgomp.c++/pr93931.C: New test.
788
bb83e069
TB
7892020-03-19 Tobias Burnus <tobias@codesourcery.com>
790
791 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
792 dg-allow-blank-lines-in-output.
793
26cbcfe5
TB
7942020-03-18 Julian Brown <julian@codesourcery.com>
795 Tobias Burnus <tobias@codesourcery.com>
796
797 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
798 it work concurrently.
799
4da92887
TB
8002020-03-18 Tobias Burnus <tobias@codesourcery.com>
801
802 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
803 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
804 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
805
9c3cdb43
JJ
8062020-03-14 Jakub Jelinek <jakub@redhat.com>
807
808 PR middle-end/93566
809 * testsuite/libgomp.c/pr93566.c: New test.
810
83d45e1d
FH
8112020-02-21 Frederik Harwath <frederik@codesourcery.com>
812
813 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
814 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
815 integer(acc_device_property) for the type of the return value of
816 acc_get_property.
817
8d1a1cb1
TB
8182020-02-19 Tobias Burnus <tobias@codesourcery.com>
819
820 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
821 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
822 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
823 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
824 (acc_set_device_num): Fix Fortran argument name, use same name for C.
825 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
826 corrections; add note about the previous interface and named constant.
827 (OpenACC library and environment variables): Fix two typos.
828 * openacc.f90: Use for all procedures the argument names from the spec
829 as for …_h they are user visible.
830 (openacc_kinds): Rename acc_device_property to
831 acc_device_property_kinds and change value to int32 ; and update users.
832 Re-add acc_device_property for for backward compatibility.
833 (acc_get_property_string_h): Clean up as acc_device_property_kind
834 changed.
835 (acc_get_property_h): Likewise and return c_size_t instead of
836 acc_device_property.
837 (openacc): Also export acc_device_property_kinds.
838 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
839 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
840 handling; check against /= 0 instead of == 1 to match C.
841 * openacc_lib.h: Use for all procedures the argument names from the spec
842 as for …_h they are user visible. Place !GCC$ into the first column to
843 be active also for fixed-form souce form.
844 (acc_device_current, acc_device_property_kind, acc_device_property,
845 acc_property_memory, acc_property_free_memory, acc_property_name,
846 acc_property_vendor, acc_property_driver): New named constants.
847 (acc_get_property, acc_get_property_string): New generic interface.
848
2d9eb4e4
FH
8492020-02-13 Frederik Harwath <frederik@codesourcery.com>
850
851 PR libgomp/93481
852 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
853 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
854 optional.
855 (gomp_target_task_fn): Assert "devicep->async_run_func".
856 (clear_unsupported_flags): New function to remove unsupported flags
857 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
858 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
859 * testsuite/libgomp.c/target-33.c:
860 Remove xfail for offload_target_nvptx.
861 * testsuite/libgomp.c/target-34.c: Likewise.
fd789c81
FH
862
8632020-02-10 Frederik Harwath <frederik@codesourcery.com>
864
865 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
866 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
867 * testsuite/libgomp.c/target-34.c: Likewise.
868 * testsuite/libgomp.c/target-link-1.c: Add xfail for
869 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
870
9bc3b95d
JJ
8712020-02-09 Jakub Jelinek <jakub@redhat.com>
872
873 * testsuite/libgomp.c/target-38.c: New test.
874
cb3f0648
JJ
8752020-02-06 Jakub Jelinek <jakub@redhat.com>
876
877 PR libgomp/93515
878 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
879
91bc3c98
TB
8802020-02-05 Tobias Burnus <tobias@codesourcery.com>
881
882 * testsuite/lib/libgomp.exp
883 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
884 and not as 'source' argument to libgomp_target_compile.
885
591f869a
AS
8862020-02-03 Andrew Stubbs <ams@codesourcery.com>
887
888 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
889 (gcn_gfx801_s): Remove.
890 (isa_hsa_name): Remove gfx801.
891 (isa_gcc_name): Remove gfx801/carizzo.
892 (isa_code): Remove gfx801.
893
e464fc90
TB
8942020-02-03 Julian Brown <julian@codesourcery.com>
895 Tobias Burnus <tobias@codesourcery.com>
896
897 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
898 and *_finalize variants; document acc_attach and acc_detach; update
899 references from OpenACC 2.0 to 2.6.
900 * openacc.f90 (openacc_version): Update to 201711.
901 * openacc_lib.h (openacc_version): Update to 201711.
902 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
903 openacc_version to 201711.
904 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
905
5a28e272
KCY
9062020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
907
908 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
909 and vgpr_count fields.
910 (struct kernel_info): Add a field for a hsa_kernel_description.
911 (run_kernel): Reduce the number of threads/workers if the requested
912 number would require too many VGPRs.
913 (init_basic_kernel_info): Initialize description field with
914 the hsa_kernel_description entry for the kernel.
915
5ab5d81b
TB
9162020-01-29 Tobias Burnus <tobias@codesourcery.com>
917
918 PR bootstrap/93409
919 * plugin/configfrag.ac (enable_offload_targets): Skip
920 HSA and GCN plugin besides -m32 also for -mx32.
921 * configure: Regenerate.
922
989a5fb3
FH
9232020-01-29 Frederik Harwath <frederik@codesourcery.com>
924
925 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
2e5ea579
FH
926
9272020-01-29 Frederik Harwath <frederik@codesourcery.com>
928
929 * plugin-gcn.c (struct agent_info): Add fields "name" and
930 "vendor_name" ...
931 (GOMP_OFFLOAD_init_device): ... and init from here.
932 (struct hsa_context_info): Add field "driver_version_s" ...
933 (init_hsa_contest): ... and init from here.
934 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
935 implementation.
936 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
937 Enable test execution for amdgcn and host offloading targets.
938 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
939 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
940 (expect_device_properties): Split function into ...
941 (expect_device_string_properties): ... this new function ...
942 (expect_device_memory): ... and this new function.
943 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
944 Add test.
945
278c3214
JB
9462020-01-28 Julian Brown <julian@codesourcery.com>
947
948 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
949 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
950 component/non-component variable refs in a single directive.
951 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
952
e8e66971
MR
9532020-01-24 Maciej W. Rozycki <macro@wdc.com>
954
955 * configure.ac: Handle `--with-toolexeclibdir='.
956 * Makefile.in: Regenerate.
957 * aclocal.m4: Regenerate.
958 * configure: Regenerate.
959 * testsuite/Makefile.in: Regenerate.
960
9e424d97
FH
9612020-01-24 Frederik Harwath <frederik@codesourcery.com>
962
963 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
964 (expect_device_properties): Remove "expected_free_mem" argument,
965 change "expected_total_mem" argument type to size_t;
966 change types of acc_get_property results to size_t,
967 adapt format strings.
968 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
969 Use %zu instead of %zd to print size_t values.
970 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
971 rename to ...
972 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
973 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
974 rename to ...
975 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
976
14e5e746
AS
9772020-01-23 Andrew Stubbs <ams@codesourcery.com>
978
979 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
980 the device id.
981
09e0ad62
AS
9822020-01-20 Andrew Stubbs <ams@codesourcery.com>
983
984 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
985 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
986 Adjust test dimensions for amdgcn.
987 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
988 gang/worker/vector expectations dynamically.
989 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
990 (main): Likewise.
991 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
992 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
993 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
994 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
995 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
996 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
997 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
998 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
999 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
1000 (acc_gang): Recognise acc_device_radeon.
1001 (acc_worker): Likewise.
1002 (acc_vector): Likewise.
1003 (main): Set expectations for amdgcn.
1004 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
1005 (main): Adjust gang/worker/vector expectations dynamically.
1006 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
1007 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
1008 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
1009 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
1010 for amdgcn.
1011
6687d13a
AS
10122020-01-17 Andrew Stubbs <ams@codesourcery.com>
1013
1014 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
1015 acc_device_radeon.
1016 (openacc): Likewise.
1017 * openacc.f90 (openacc_kinds): Likewise.
1018 (openacc): Likewise.
1019 * openacc.h (acc_device_t): Likewise.
1020 * openacc_lib.h: Likewise.
1021 * testsuite/lib/libgomp.exp
1022 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
1023 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
1024 (cb_compute_construct_end): Likewise.
1025 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
1026 (cb_enqueue_launch_start): Likewise.
1027 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
1028 (cb_enter_data_end): Likewise.
1029 (cb_exit_data_start): Likewise.
1030 (cb_exit_data_end): Likewise.
1031 (cb_compute_construct_end): Likewise.
1032 (cb_enqueue_launch_start): Likewise.
1033 (cb_enqueue_launch_end): Likewise.
1034 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
1035 (main): Likewise.
1036
b3b75e66
TS
10372020-01-10 Thomas Schwinge <thomas@codesourcery.com>
1038
6fc0385c
TS
1039 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
1040 to use this instead of 'enum gomp_device_property'.
1041 (GOMP_OFFLOAD_get_property): Rename to...
1042 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
1043 * libgomp.h (struct gomp_device_descr): Move
1044 'GOMP_OFFLOAD_openacc_get_property'...
1045 (struct acc_dispatch_t): ... here. Adjust all users.
1046 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
1047
b3b75e66
TS
1048 * target.c (gomp_map_vars_internal)
1049 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
1050 paths.
1051
91df4397
JJ
10522020-01-10 Jakub Jelinek <jakub@redhat.com>
1053
1054 PR libgomp/93219
1055 * libgomp.h (gomp_print_string): Change return type from void to int.
1056 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
1057 not all characters have been written.
1058
df2c0d36
TB
10592020-01-08 Tobias Burnus <tobias@codesourcery.com>
1060
1061 * libgomp.texi: Fix typos, use https.
1062
f760c0c7
TB
10632020-01-03 Tobias Burnus <tobias@codesourcery.com>
1064
1065 * testsuite/libgomp.fortran/optional-map.f90: Add test for
1066 unallocated/disassociated actual arguments to nonallocatable/nonpointer
1067 dummy arguments; those are/shall be regarded as absent arguments.
1068 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
1069 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
1070
7e7065b9
JJ
10712020-01-01 Jakub Jelinek <jakub@redhat.com>
1072
8d9254fc
JJ
1073 Update copyright years.
1074
7e7065b9
JJ
1075 * libgomp.texi: Bump @copying's copyright year.
1076
2c829799
AM
10772019-12-31 Ayush Mittal <ayush.m@samsung.com>
1078
1079 PR libgomp/93065
1080 * oacc-init.c (goacc_runtime_deinitialize): New function.
1081
e9dcb75e
JJ
10822019-12-28 Jakub Jelinek <jakub@redhat.com>
1083
1084 PR bootstrap/93074
1085 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
1086 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
1087
6c84c8bf
MR
10882019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
1089 Frederik Harwath <frederik@codesourcery.com>
1090 Thomas Schwinge <tschwinge@codesourcery.com>
1091
1092 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
1093 * libgomp-plugin.h (gomp_device_property_value): New union.
1094 (gomp_device_property_value): New prototype.
1095 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
1096 constant.
1097 (acc_device_property_t): New enum.
1098 (acc_get_property, acc_get_property_string): New prototypes.
1099 * oacc-init.c (acc_get_device_type): Also assert that result
1100 is not `acc_device_current'.
1101 (get_property_any, acc_get_property, acc_get_property_string):
1102 New functions.
1103 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
1104 `acc_property_memory', `acc_property_free_memory',
1105 `acc_property_name', `acc_property_vendor' and
1106 `acc_property_driver' constants. Add `acc_device_property' data
1107 type.
1108 (openacc_internal): Add `acc_get_property' and
1109 `acc_get_property_string' interfaces. Add `acc_get_property_h',
1110 `acc_get_property_string_h', `acc_get_property_l' and
1111 `acc_get_property_string_l'.
1112 * oacc-host.c (host_get_property): New function.
1113 (host_dispatch): Wire it.
1114 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
1115 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
1116 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
1117 * libgomp.texi (OpenACC Runtime Library Routines): Add
1118 `acc_get_property'.
1119 (acc_get_property): New node.
1120 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
1121 function (stub).
1122 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
1123 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
1124 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
1125 calls.
1126 (GOMP_OFFLOAD_get_property): New function.
1127 (struct ptx_device): Add new field "name".
1128 (cuda_driver_version_s): Add new static variable ...
1129 (nvptx_init): ... and init from here.
1130
1131 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
1132 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
1133 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
1134 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
1135 with test helper functions.
1136
1137 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
1138
c8e759b4
MR
11392019-12-22 Maciej W. Rozycki <macro@wdc.com>
1140
1141 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
1142 variable.
1143
b092fb3b
TS
11442019-12-21 Thomas Schwinge <thomas@codesourcery.com>
1145
1146 * target.c (gomp_map_vars_internal): Restore 'omp declare target
1147 link' handling.
1148
9be3ac5d
JB
11492019-12-19 Julian Brown <julian@codesourcery.com>
1150
1151 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
1152 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
1153 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
1154
02817027
JB
11552019-12-19 Julian Brown <julian@codesourcery.com>
1156 Cesar Philippidis <cesar@codesourcery.com>
1157
1158 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
1159 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
1160 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
1161 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
1162 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
1163 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
1164 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
1165 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
1166 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
1167 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
1168 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
1169 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
1170 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
1171
c2eb021f
JB
11722019-12-19 Julian Brown <julian@codesourcery.com>
1173
1174 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
1175 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
1176 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
1177 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
1178 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
1179 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
1180 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
1181 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
1182 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
1183 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
1184 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
1185 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
1186
8e7e71ff
JB
11872019-12-19 Julian Brown <julian@codesourcery.com>
1188
1189 * libgomp.h (struct target_var_desc): Add do_detach flag.
1190 * oacc-init.c (acc_shutdown_1): Free aux block if present.
1191 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
1192 struct components. Tidy up and add some new checks.
1193 (goacc_enter_data_internal): Update call to find_group_last.
1194 (goacc_exit_data_internal): Support detach operations and
1195 GOMP_MAP_STRUCT.
1196 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
1197 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
1198 attach/detach in enter/exit data detection code.
1199 * target.c (gomp_map_vars_existing): Initialise do_detach field of
1200 tgt_var_desc.
1201 (gomp_map_vars_internal): Support attach.
1202 (gomp_unmap_vars_internal): Support detach.
1203
5d5be7bf
JB
12042019-12-19 Julian Brown <julian@codesourcery.com>
1205 Thomas Schwinge <thomas@codesourcery.com>
1206
1207 * libgomp.h (struct splay_tree_aux): Add attach_count field.
1208 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
1209 * libgomp.map (OACC_2.6): New section. Add acc_attach,
1210 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
1211 acc_detach_finalize_async.
1212 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
1213 acc_detach, acc_detach_async, acc_detach_finalize,
1214 acc_detach_finalize_async): New functions.
1215 * openacc.h (acc_attach, acc_attach_async, acc_detach,
1216 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
1217 prototypes.
1218 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
1219 (gomp_remove_var_internal): Free attachment counts if present.
1220 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
1221 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
1222
5bcd470b
JB
12232019-12-19 Julian Brown <julian@codesourcery.com>
1224 Cesar Philippidis <cesar@codesourcery.com>
1225
1226 * libgomp.h (gomp_map_val): Add prototype.
1227 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
1228 open-coding device-address calculation.
1229 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
1230 non-present case.
1231
378da98f
JB
12322019-12-19 Julian Brown <julian@codesourcery.com>
1233
1234 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
1235 field for virtual_refcount.
1236 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
1237 (gomp_free_memmap): Remove prototype.
1238 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
1239 instead of calling gomp_free_memmap.
1240 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
1241 dynamic_refcount.
1242 (acc_unmap_data): Open code instead of forcing target_mem_desc's
1243 to_free field to NULL then calling gomp_unmap_vars. Handle
1244 REFCOUNT_INFINITY on target blocks.
1245 (goacc_enter_data): Rename to...
1246 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
1247 handling for mapping groups. Use virtual_refcount instead of
1248 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
1249 map_map_vars_async call. Re-do lookup for target pointer return value.
1250 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
1251 renamed goacc_enter_datum function.
1252 (goacc_exit_data): Rename to...
1253 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
1254 (acc_delete, acc_delete_async, acc_delete_finalize,
1255 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
1256 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
1257 goacc_exit_datum function.
1258 (gomp_acc_remove_pointer, find_pointer): Remove functions.
1259 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
1260 New functions.
1261 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
1262 goacc_exit_data_internal helper functions.
1263 * target.c (gomp_map_vars_internal): Handle
1264 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
1265 semantics.
1266 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
1267 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
1268 virtual_refcount field instead of dynamic_refcount.
1269 (gomp_free_memmap): Remove function.
1270 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
1271 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
1272 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
1273
2a656a93
JB
12742019-12-19 Julian Brown <julian@codesourcery.com>
1275 Thomas Schwinge <thomas@codesourcery.com>
1276
1277 * libgomp.h (struct splay_tree_aux): New.
1278 (struct splay_tree_key_s): Replace link_key field with aux pointer.
1279 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
1280 to aux struct.
1281 (gomp_remove_var_internal): Free aux block if present.
1282 (gomp_load_image_to_device): Zero-initialise aux field instead of
1283 link_key field.
1284 (omp_target_associate_pointer): Zero-initialise aux field.
1285
601399c0
JJ
12862019-12-18 Jakub Jelinek <jakub@redhat.com>
1287
1288 PR middle-end/86416
1289 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
1290 q or none.
1291 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
1292 L or none.
1293
a6163563
JB
12942019-12-19 Julian Brown <julian@codesourcery.com>
1295 Maciej W. Rozycki <macro@codesourcery.com>
1296 Tobias Burnus <tobias@codesourcery.com>
1297 Thomas Schwinge <thomas@codesourcery.com>
1298
1299 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
1300 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
1301 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
1302 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
1303 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
1304 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
1305 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
1306 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
1307 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
1308
6278b549
TS
13092019-12-18 Thomas Schwinge <thomas@codesourcery.com>
1310
77ce5555
TS
1311 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
1312 called...
1313 (goacc_insert_pointer): ... from here, "present" case.
1314 (goacc_insert_pointer): Inline function into...
1315 (GOACC_enter_exit_data): ... here, and simplify.
1316
9444a299
TS
1317 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
1318 called...
1319 (goacc_insert_pointer): ... from here, "not present" case.
1320
5031b619
TS
1321 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
1322 all users.
1323
1a79b578
TS
1324 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
1325 'goacc_enter_data', 'goacc_exit_data'.
1326
34cfe31e
TS
1327 * oacc-mem.c (delete_copyout): Refactor into...
1328 (goacc_exit_data): ... this. Adjust all users.
1329
aaf0e9d7
TS
1330 * oacc-mem.c (present_create_copy): Refactor into...
1331 (goacc_enter_data): ... this. Adjust all users.
1332
83d1d065
TS
1333 * target.c (gomp_unmap_vars_internal): Add a safeguard to
1334 'gomp_remove_var'.
1335
cc3f11f5
TS
1336 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
1337 like 'GOMP_MAP_FROM'.
1338
ddb25eb9
TS
1339 PR libgomp/92726
1340 PR libgomp/92970
1341 PR libgomp/92984
1342 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
1343 fails.
1344 (GOACC_enter_exit_data): Simplify accordingly.
1345 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
1346 subsuming...
1347 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
1348 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
1349 file.
1350 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
1351 subsuming...
1352 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
1353 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
1354 file.
1355 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
1356 subsuming...
1357 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
1358
32128577
TS
1359 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
1360 'finalize' handling.
1361
ba40277f
TS
1362 PR libgomp/92848
1363 * oacc-mem.c (acc_map_data, present_create_copy)
1364 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
1365 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
1366 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
1367 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
1368 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
1369 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
1370 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
1371 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
1372 Remove "XFAIL"s.
1373
6278b549
TS
1374 * target.c (gomp_unmap_tgt): Make it 'static'.
1375 * libgomp.h (gomp_unmap_tgt): Remove.
1376
c80c9e26
TB
13772019-12-18 Tobias Burnus <tobias@codesourcery.com>
1378
1379 PR middle-end/86416
1380 * testsuite/libgomp.c/pr86416-1.c: New.
1381 * testsuite/libgomp.c/pr86416-2.c: New.
1382
0b8499a4
TB
13832019-12-17 Tobias Burnus <tobias@codesourcery.com>
1384
1385 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
1386 all symbols as public except for the 'use …, only' imported symbol,
1387 which is private.
1388 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
1389 all symbols from module openacc_kinds as PUBLIC
1390 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
1391 fix comment typo.
1392 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
1393
1cbd94e8
JB
13942019-12-13 Julian Brown <julian@codesourcery.com>
1395
1396 PR libgomp/92881
1397
1398 * libgomp.h (gomp_remove_var_async): Add prototype.
1399 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
1400 gomp_remove_var.
1401 * target.c (gomp_unref_tgt): Change return type to bool, indicating
1402 whether target_mem_desc was unmapped.
1403 (gomp_unref_tgt_void): New.
1404 (gomp_remove_var): Reimplement in terms of...
1405 (gomp_remove_var_internal): ...this new helper function.
1406 (gomp_remove_var_async): New, implemented using above helper function.
1407 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
1408 gomp_unref_tgt.
1409
26b74ed0
AS
14102019-12-13 Andrew Stubbs <ams@codesourcery.com>
1411
1412 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
1413 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
1414 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
1415 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
1416 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
1417 Likewise.
1418 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
1419 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
1420
7858bb96
TB
14212019-12-13 Tobias Burnus <tobias@codesourcery.com>
1422
1423 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
1424 as public except for the 'use …, only' imported symbol, which is
1425 private.
1426 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
1427 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
1428 attributes for acc_copyout_finalize and acc_delete_finalize.
1429
f8ac7d8f
JJ
14302019-12-11 Jakub Jelinek <jakub@redhat.com>
1431
1432 PR fortran/92899
1433 * testsuite/libgomp.fortran/atomic1.f90: New test.
1434
3d1b5e71
TS
14352019-12-11 Thomas Schwinge <thomas@codesourcery.com>
1436
d6e8c01c
TS
1437 PR libgomp/92843
1438 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
1439 reference counting for structured 'REFCOUNT_INFINITY'. Add some
1440 assertions.
1441 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
1442 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
1443 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
1444 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
1445 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
1446
57963e39
TS
1447 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
1448 * oacc-mem.c: ... here.
1449 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
1450 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
1451 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
1452 Remove.
1453 * libgomp_g.h: Update.
1454
c5578b56
TS
1455 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
1456 * oacc-async.c: ... here.
1457 * oacc-int.h (goacc_wait): Declare.
1458 * libgomp_g.h: Update
1459
3d1b5e71
TS
1460 PR libgomp/92854
1461 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
1462 New file.
1463 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
1464 Likewise.
1465 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
1466 Likewise.
1467 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
1468 Likewise.
1469 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
1470 Likewise.
1471 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
1472 Likewise.
1473
5e939438
TS
14742019-12-11 Thomas Schwinge <thomas@codesourcery.com>
1475 Julian Brown <julian@codesourcery.com>
1476
1477 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
1478 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
1479
93d90219
TB
14802019-12-11 Tobias Burnus <tobias@codesourcery.com>
1481
1482 * omp_lib.h.in: Fix spelling of function declaration
1483 omp_get_cancell(l)ation.
1484 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
1485 Fix typos.
1486 * env.c: Fix comment typos.
1487 * oacc-host.c: Likewise.
1488 * ordered.c: Likewise.
1489 * task.c: Likewise.
1490 * team.c: Likewise.
1491 * config/gcn/task.c: Likewise.
1492 * config/gcn/team.c: Likewise.
1493 * config/nvptx/task.c: Likewise.
1494 * config/nvptx/team.c: Likewise.
1495 * plugin/plugin-gcn.c: Likewise.
1496 * testsuite/libgomp.fortran/jacobi.f: Likewise.
1497 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
1498 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
1499
a0221aee
TB
15002019-12-11 Tobias Burnus <tobias@codesourcery.com>
1501
1502 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
1503 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
1504 unnecessary 'dg-additional-options "-w"'.
1505
47afc7b4
TS
15062019-12-09 Thomas Schwinge <thomas@codesourcery.com>
1507 Julian Brown <julian@codesourcery.com>
1508
1509 PR libgomp/92116
1510 PR libgomp/92877
1511
1512 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
1513 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
1514 Adjust all users.
1515 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
1516 Remove XFAIL.
1517 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
1518 Likewise.
1519 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
1520
b5859e40
TS
15212019-12-09 Thomas Schwinge <thomas@codesourcery.com>
1522
cec41816
TS
1523 PR libgomp/92503
1524 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
1525 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
1526 file.
1527 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
1528 Likewise.
1529 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
1530 Likewise.
1531 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
1532 Likewise.
1533 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
1534 Likewise.
1535 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
1536 Likewise.
1537 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
1538 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
1539 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
1540 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
1541 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
1542 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
1543 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
1544 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
1545 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
1546 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
1547
e103542b
TS
1548 PR libgomp/92840
1549 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
1550 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
1551 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
1552 New file.
1553 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
1554 Likewise.
1555 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
1556 Likewise.
1557 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
1558 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
1559
41f36f22
TS
1560 PR libgomp/92511
1561 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
1562 this file...
1563 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
1564 this file...
1565 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
1566 file...
1567 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
1568 file...
1569 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
1570 ... with their content moved into, and extended in this new file.
1571 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
1572 New file.
1573 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
1574 Likewise.
1575 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
1576 Likewise.
1577 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
1578 Likewise.
1579
6effebe1
TS
1580 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
1581
7d020473
TS
1582 PR libgomp/92854
1583 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
1584
1e1fb715
TS
1585 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
1586
b5859e40
TS
1587 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
1588
11586ed9
TB
15892019-12-09 Tobias Burnus <tobias@codesourcery.com>
1590
1591 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
1592 unique.
1593 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
1594 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
1595 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
1596 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
1597 Ditto.
1598 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
1599 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
1600
3ad4a03a
KCY
16012019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
1602
1603 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
1604
6e4d01d6
TB
16052019-12-06 Tobias Burnus <tobias@codesourcery.com>
1606 Kwok Cheung Yeung <kcy@codesourcery.com>
1607
1608 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
1609 if input it a NULL pointer.
1610 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
1611 diagnostic of NULL pointer.
1612 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
1613 * testsuite/libgomp.fortran/optional-map.f90: New.
1614 * testsuite/libgomp.fortran/use_device_addr-1.f90
1615 (test_dummy_opt_callee_1_absent): New.
1616 (test_dummy_opt_call_1): Call it.
1617 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
1618 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
1619 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
1620 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
1621 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
1622 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
1623 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
1624 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
1625 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
1626 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
1627 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
1628 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
1629 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
1630 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
1631 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
1632 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
1633
ad80ec46
TB
16342019-12-05 Tobias Burnus <tobias@codesourcery.com>
1635
1636 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
1637 expect dg-output of 'Error termination.' for GCN.
1638 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
1639 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
1640
a8a5f4cc
JJ
16412019-12-04 Jakub Jelinek <jakub@redhat.com>
1642
1643 PR fortran/92756
1644 * testsuite/libgomp.fortran/teams1.f90: New test.
1645 * testsuite/libgomp.fortran/teams2.f90: New test.
1646
d8f0024b
FH
16472019-12-03 Frederik Harwath <frederik@codesourcery.com>
1648
1649 * oacc-init.c (acc_known_device_type): Add function.
1650 (unknown_device_type_error): Add function.
1651 (name_of_acc_device_t): Change to call unknown_device_type_error
1652 on unknown type.
1653 (resolve_device): Use acc_known_device_type.
1654 (acc_init): Fail if acc_device_t argument is not valid.
1655 (acc_shutdown): Likewise.
1656 (acc_get_num_devices): Likewise.
1657 (acc_set_device_type): Likewise.
1658 (acc_get_device_num): Likewise.
1659 (acc_set_device_num): Likewise.
1660 (acc_on_device): Add comment that argument validity is not checked.
1661
83caa34e
AS
16622019-12-03 Andrew Stubbs <ams@codesourcery.com>
1663
1664 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
1665 Recognize amdgcn.
1666 (check_effective_target_openacc_amdgcn_accel_present): New proc.
1667 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
1668 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
1669 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1670 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1671
00484365
SN
16722019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1673
1674 PR libgomp/91938
1675 * configure.tgt: Avoid IE tls on *-*-musl*.
1676
9909a059
TB
16772019-11-29 Tobias Burnus <tobias@codesourcery.com>
1678
1679 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
1680 adding a common-block test case.
1681
b3f44388
JJ
16822019-11-29 Jakub Jelinek <jakub@redhat.com>
1683
1684 PR c++/60228
1685 * testsuite/libgomp.c++/udr-20.C: New test.
1686 * testsuite/libgomp.c++/udr-21.C: New test.
1687
b1a73b48
TS
16882019-11-27 Thomas Schwinge <thomas@codesourcery.com>
1689
1690 * testsuite/lib/libgomp.exp
1691 (check_effective_target_offload_target_nvptx): New proc.
1692 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
1693 'dg-skip-if'.
1694 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
1695 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
1696 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
1697
b8e72446
RO
16982019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1699
1700 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
1701 * testsuite/libgomp.c/pr39591-2.c: Likewise.
1702 * testsuite/libgomp.c/pr39591-3.c: Likewise.
1703 * testsuite/libgomp.c/private-1.c: Likewise.
1704 * testsuite/libgomp.c/task-1.c: Likewise.
1705 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
1706
d88b27da
JB
17072019-11-20 Julian Brown <julian@codesourcery.com>
1708
1709 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
1710 aq->mutex here.
1711 (queue_push_launch): Lock aq->mutex before calling
1712 wait_for_queue_nonfull.
1713 (queue_push_callback): Likewise.
1714 (queue_push_asyncwait): Likewise.
1715 (queue_push_placeholder): Likewise.
1716
8d2f4ddf
JB
17172019-11-20 Julian Brown <julian@codesourcery.com>
1718
1719 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
1720 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
1721 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
1722 return code.
1723
e307b05f
JB
17242019-11-20 Julian Brown <julian@codesourcery.com>
1725
1726 PR libgomp/92511
1727
1728 * oacc-mem.c (present_create_copy): Fix device pointer return value in
1729 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
1730 in non-present/create case.
1731 (delete_copyout): Change error condition to fail only on copies outside
1732 of mapped block. Adjust error message accordingly.
1733 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
1734 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
1735 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
1736 message.
1737 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
1738 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
1739 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
1740
83115e9e
MR
17412019-11-20 Maciej W. Rozycki <macro@wdc.com>
1742
1743 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
1744 libatomic in build-tree testing.
1745
a1289887
MR
17462019-11-18 Maciej W. Rozycki <macro@wdc.com>
1747
1748 * testsuite/Makefile.in: Regenerate.
1749
8916ba87
AS
17502019-11-15 Andrew Stubbs <ams@codesourcery.com>
1751
1752 * testsuite/libgomp.c/target-print-1.c: New file.
1753 * testsuite/libgomp.fortran/target-print-1.f90: New file.
1754 * testsuite/libgomp.oacc-c/print-1.c: New file.
1755 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
1756
237957cc
AS
17572019-11-13 Andrew Stubbs <ams@codesourcery.com>
1758 Kwok Cheung Yeung <kcy@codesourcery.com>
1759 Julian Brown <julian@codesourcery.com>
1760 Tom de Vries <tom@codesourcery.com>
1761
1762 * plugin/Makefrag.am: Add amdgcn plugin support.
1763 * plugin/configfrag.ac: Likewise.
1764 * plugin/plugin-gcn.c: New file.
1765 * configure: Regenerate.
1766 * Makefile.in: Regenerate.
1767 * testsuite/Makefile.in: Regenerate.
1768
cee16451
AS
17692019-11-13 Andrew Stubbs <ams@codesourcery.com>
1770
1771 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
1772 and use team_malloc variants.
1773 (gomp_gcn_exit_kernel): Use team_free.
1774 * libgomp.h (TEAM_ARENA_SIZE): Define.
1775 (TEAM_ARENA_START): Define.
1776 (TEAM_ARENA_FREE): Define.
1777 (TEAM_ARENA_END): Define.
1778 (team_malloc): New function.
1779 (team_malloc_cleared): New function.
1780 (team_free): New function.
1781 * team.c (gomp_new_team): Initialize and use team_malloc.
1782 (free_team): Use team_free.
1783 (gomp_free_thread): Use team_free.
1784 (gomp_pause_host): Use team_free.
1785 * work.c (gomp_init_work_share): Use team_malloc.
1786 (gomp_fini_work_share): Use team_free.
1787
fa499995
AS
17882019-11-13 Andrew Stubbs <ams@codesourcery.com>
1789 Kwok Cheung Yeung <kcy@codesourcery.com>
1790 Julian Brown <julian@codesourcery.com>
1791 Tom de Vries <tom@codesourcery.com>
1792
1793 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
1794 * Makefile.in: Regenerate.
1795 * config.h.in (PLUGIN_GCN): Add new undef.
1796 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
1797 * config/gcn/affinity-fmt.c: New file.
1798 * config/gcn/bar.c: New file.
1799 * config/gcn/bar.h: New file.
1800 * config/gcn/doacross.h: New file.
1801 * config/gcn/icv-device.c: New file.
1802 * config/gcn/oacc-target.c: New file.
1803 * config/gcn/simple-bar.h: New file.
1804 * config/gcn/target.c: New file.
1805 * config/gcn/task.c: New file.
1806 * config/gcn/team.c: New file.
1807 * config/gcn/time.c: New file.
1808 * configure.ac: Add amdgcn*-*-*.
1809 * configure: Regenerate.
1810 * configure.tgt: Add amdgcn*-*-*.
1811 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
1812 * libgomp.h (gcn_thrs): Add amdgcn variant.
1813 (set_gcn_thrs): Likewise.
1814 (gomp_thread): Likewise.
1815 * oacc-int.h (goacc_thread): Likewise.
1816 * oacc-target.c: New file.
1817 * openacc.f90 (acc_device_gcn): New parameter.
1818 * openacc.h (acc_device_t): Add acc_device_gcn.
1819 * team.c (gomp_free_pool_helper): Add amdgcn support.
1820
d2903ce0
AS
18212019-11-13 Andrew Stubbs <ams@codesourcery.com>
1822 Julian Brown <julian@codesourcery.com>
1823
1824 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
1825 parameter.
1826 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
1827 queue constructor.
1828 * oacc-host.c (host_openacc_async_construct): Add device parameter.
1829 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
1830 device parameter.
1831
b3d14b3a
AS
18322019-11-13 Andrew Stubbs <ams@codesourcery.com>
1833
1834 * configure.tgt (nvptx*-*-*): Add "accel" directory.
1835 * config/nvptx/libgomp-plugin.c: Move ...
1836 * config/accel/libgomp-plugin.c: ... to here.
1837 * config/nvptx/lock.c: Move ...
1838 * config/accel/lock.c: ... to here.
1839 * config/nvptx/mutex.c: Move ...
1840 * config/accel/mutex.c: ... to here.
1841 * config/nvptx/mutex.h: Move ...
1842 * config/accel/mutex.h: ... to here.
1843 * config/nvptx/oacc-async.c: Move ...
1844 * config/accel/oacc-async.c: ... to here.
1845 * config/nvptx/oacc-cuda.c: Move ...
1846 * config/accel/oacc-cuda.c: ... to here.
1847 * config/nvptx/oacc-host.c: Move ...
1848 * config/accel/oacc-host.c: ... to here.
1849 * config/nvptx/oacc-init.c: Move ...
1850 * config/accel/oacc-init.c: ... to here.
1851 * config/nvptx/oacc-mem.c: Move ...
1852 * config/accel/oacc-mem.c: ... to here.
1853 * config/nvptx/oacc-plugin.c: Move ...
1854 * config/accel/oacc-plugin.c: ... to here.
1855 * config/nvptx/omp-lock.h: Move ...
1856 * config/accel/omp-lock.h: ... to here.
1857 * config/nvptx/openacc.f90: Move ...
1858 * config/accel/openacc.f90: ... to here.
1859 * config/nvptx/pool.h: Move ...
1860 * config/accel/pool.h: ... to here.
1861 * config/nvptx/proc.c: Move ...
1862 * config/accel/proc.c: ... to here.
1863 * config/nvptx/ptrlock.c: Move ...
1864 * config/accel/ptrlock.c: ... to here.
1865 * config/nvptx/ptrlock.h: Move ...
1866 * config/accel/ptrlock.h: ... to here.
1867 * config/nvptx/sem.c: Move ...
1868 * config/accel/sem.c: ... to here.
1869 * config/nvptx/sem.h: Move ...
1870 * config/accel/sem.h: ... to here.
1871 * config/nvptx/thread-stacksize.h: Move ...
1872 * config/accel/thread-stacksize.h: ... to here.
1873
62aee289
MR
18742019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
1875 Tobias Burnus <tobias@codesourcery.com>
1876 Frederik Harwath <frederik@codesourcery.com>
1877 Thomas Schwinge <thomas@codesourcery.com>
1878
1879 libgomp/
1880 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
1881 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
1882 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
1883
a2c26c50
TB
18842019-11-11 Tobias Burnus <tobias@codesourcery.com>
1885 Kwok Cheung Yeung <kcy@codesourcery.com>
1886
1887 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
1888 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
1889
6d4868f3
TS
18902019-11-11 Thomas Schwinge <thomas@codesourcery.com>
1891
bfa1837b
TS
1892 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
1893
6d4868f3
TS
1894 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
1895 run'.
1896 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
1897 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
1898
5d183d17
FH
18992019-11-06 Thomas Schwinge <thomas@codesourcery.com>
1900
1901 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
1902 Add expected warnings about missing reduction clauses.
1903 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
1904 Likewise.
1905 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
1906 Likewise.
1907 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
1908 Likewise.
1909
d8f03b03
TB
19102019-11-04 Tobias Burnus <tobias@codesourcery.com>
1911
1912 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
1913 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
1914 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
1915 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
1916 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
1917 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
1918
12fd2ec5
TB
19192019-11-04 Tobias Burnus <tobias@codesourcery.com>
1920
1921 PR fortran/92305
1922 * testsuite/libgomp.fortran/allocatable2.f90: Use
1923 unique numbers with 'stop'.
1924 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
1925 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
1926 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
1927 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
1928 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
1929
92e63bd2
TB
19302019-11-01 Tobias Burnus <tobias@codesourcery.com>
1931
1932 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
1933 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
1934 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
1935 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
1936 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
1937 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
1938
91ae0a46
TB
19392019-10-30 Tobias Burnus <tobias@codesourcery.com>
1940
1941 * testsuite/libgomp.fortran/target9.f90: New.
1942
c425e66b
TB
19432019-10-30 Tobias Burnus <tobias@codesourcery.com>
1944
1945 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
1946 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
1947 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
1948 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
1949 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
1950 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
1951 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
1952 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
1953 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
1954 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
1955 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
1956 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
1957 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
1958 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
1959 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
1960 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
1961 * testsuite/libgomp.fortran/associate1.f90: Ditto.
1962 * testsuite/libgomp.fortran/associate2.f90: Ditto.
1963 * testsuite/libgomp.fortran/associate3.f90: Ditto.
1964 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
1965 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
1966 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
1967 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
1968 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
1969 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
1970 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
1971 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
1972 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
1973 * testsuite/libgomp.fortran/character1.f90: Ditto.
1974 * testsuite/libgomp.fortran/character2.f90: Ditto.
1975 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
1976 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
1977 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
1978 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
1979 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
1980 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
1981 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
1982 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
1983 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
1984 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
1985 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
1986 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
1987 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
1988 * testsuite/libgomp.fortran/do1.f90: Ditto.
1989 * testsuite/libgomp.fortran/do2.f90: Ditto.
1990 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
1991 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
1992 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
1993 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
1994 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
1995 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
1996 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
1997 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
1998 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
1999 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
2000 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
2001 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
2002 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
2003 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
2004 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
2005 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
2006 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
2007 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
2008 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
2009 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
2010 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
2011 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
2012 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
2013 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
2014 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
2015 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
2016 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
2017 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
2018 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
2019 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
2020 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
2021 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
2022 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
2023 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
2024 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
2025 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
2026 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
2027 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
2028 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
2029 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
2030 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
2031 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
2032 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
2033 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
2034 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
2035 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
2036 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
2037 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
2038 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
2039 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
2040 * testsuite/libgomp.fortran/lib1.f90: Ditto.
2041 * testsuite/libgomp.fortran/lib4.f90: Ditto.
2042 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
2043 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
2044 * testsuite/libgomp.fortran/nested1.f90: Ditto.
2045 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
2046 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
2047 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
2048 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
2049 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
2050 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
2051 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
2052 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
2053 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
2054 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
2055 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
2056 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
2057 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
2058 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
2059 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
2060 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
2061 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
2062 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
2063 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
2064 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
2065 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
2066 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
2067 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
2068 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
2069 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
2070 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
2071 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
2072 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
2073 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
2074 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
2075 * testsuite/libgomp.fortran/pr28390.f: Ditto.
2076 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
2077 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
2078 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
2079 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
2080 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
2081 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
2082 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
2083 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
2084 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
2085 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
2086 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
2087 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
2088 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
2089 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
2090 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
2091 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
2092 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
2093 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
2094 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
2095 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
2096 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
2097 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
2098 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
2099 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
2100 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
2101 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
2102 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
2103 * testsuite/libgomp.fortran/reference1.f90: Ditto.
2104 * testsuite/libgomp.fortran/reference2.f90: Ditto.
2105 * testsuite/libgomp.fortran/retval1.f90: Ditto.
2106 * testsuite/libgomp.fortran/retval2.f90: Ditto.
2107 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
2108 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
2109 * testsuite/libgomp.fortran/simd1.f90: Ditto.
2110 * testsuite/libgomp.fortran/simd2.f90: Ditto.
2111 * testsuite/libgomp.fortran/simd3.f90: Ditto.
2112 * testsuite/libgomp.fortran/simd4.f90: Ditto.
2113 * testsuite/libgomp.fortran/simd5.f90: Ditto.
2114 * testsuite/libgomp.fortran/simd6.f90: Ditto.
2115 * testsuite/libgomp.fortran/simd7.f90: Ditto.
2116 * testsuite/libgomp.fortran/stack.f90: Ditto.
2117 * testsuite/libgomp.fortran/strassen.f90: Ditto.
2118 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
2119 * testsuite/libgomp.fortran/tabs2.f: Ditto.
2120 * testsuite/libgomp.fortran/target1.f90: Ditto.
2121 * testsuite/libgomp.fortran/target2.f90: Ditto.
2122 * testsuite/libgomp.fortran/target3.f90: Ditto.
2123 * testsuite/libgomp.fortran/target4.f90: Ditto.
2124 * testsuite/libgomp.fortran/target5.f90: Ditto.
2125 * testsuite/libgomp.fortran/target6.f90: Ditto.
2126 * testsuite/libgomp.fortran/target7.f90: Ditto.
2127 * testsuite/libgomp.fortran/target8.f90: Ditto.
2128 * testsuite/libgomp.fortran/task1.f90: Ditto.
2129 * testsuite/libgomp.fortran/task2.f90: Ditto.
2130 * testsuite/libgomp.fortran/task3.f90: Ditto.
2131 * testsuite/libgomp.fortran/task4.f90: Ditto.
2132 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
2133 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
2134 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
2135 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
2136 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
2137 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
2138 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
2139 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
2140 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
2141 * testsuite/libgomp.fortran/udr1.f90: Ditto.
2142 * testsuite/libgomp.fortran/udr10.f90: Ditto.
2143 * testsuite/libgomp.fortran/udr11.f90: Ditto.
2144 * testsuite/libgomp.fortran/udr12.f90: Ditto.
2145 * testsuite/libgomp.fortran/udr13.f90: Ditto.
2146 * testsuite/libgomp.fortran/udr14.f90: Ditto.
2147 * testsuite/libgomp.fortran/udr15.f90: Ditto.
2148 * testsuite/libgomp.fortran/udr2.f90: Ditto.
2149 * testsuite/libgomp.fortran/udr3.f90: Ditto.
2150 * testsuite/libgomp.fortran/udr4.f90: Ditto.
2151 * testsuite/libgomp.fortran/udr5.f90: Ditto.
2152 * testsuite/libgomp.fortran/udr6.f90: Ditto.
2153 * testsuite/libgomp.fortran/udr7.f90: Ditto.
2154 * testsuite/libgomp.fortran/udr8.f90: Ditto.
2155 * testsuite/libgomp.fortran/udr9.f90: Ditto.
2156 * testsuite/libgomp.fortran/vla1.f90: Ditto.
2157 * testsuite/libgomp.fortran/vla2.f90: Ditto.
2158 * testsuite/libgomp.fortran/vla3.f90: Ditto.
2159 * testsuite/libgomp.fortran/vla4.f90: Ditto.
2160 * testsuite/libgomp.fortran/vla5.f90: Ditto.
2161 * testsuite/libgomp.fortran/vla6.f90: Ditto.
2162 * testsuite/libgomp.fortran/vla7.f90: Ditto.
2163 * testsuite/libgomp.fortran/vla8.f90: Ditto.
2164 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
2165 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
2166
01509e2f
TB
21672019-10-30 Tobias Burnus <tobias@codesourcery.com>
2168
2169 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
2170 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
2171 Ditto; add 'dg-do run' for torture testing.
2172 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
2173 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
2174 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
2175 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
2176 * testsuite/libgomp.fortran/pr28390.f: Ditto.
2177 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
2178 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
2179 * testsuite/libgomp.fortran/task2.f90: Ditto.
2180 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
2181 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
2182 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
2183 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
2184 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
2185 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
2186
ffbdd78a
TB
21872019-10-28 Tobias Burnus <tobias@codesourcery.com>
2188
2189 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
2190 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
2191 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
2192 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
2193 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
2194 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
2195 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
2196 Use 'stop' not abort().
2197 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
2198 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
2199 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
2200 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
2201 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
2202 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
2203 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
2204 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
2205 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
2206 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
2207 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
2208 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
2209 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
2210 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
2211 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
2212 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
2213 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
2214 Ditto.
2215 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
2216 Ditto.
2217 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
2218 Ditto.
2219 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
2220 Ditto.
2221 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
2222 Ditto.
2223 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
2224 Ditto.
2225 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
2226 Ditto.
2227 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
2228 Ditto.
2229 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
2230 Ditto.
2231 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
2232 Ditto.
2233 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
2234 Ditto.
2235 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
2236 Ditto.
2237 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
2238 Ditto.
2239 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
2240 Ditto.
2241 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
2242 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
2243 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
2244 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
2245 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
2246 Likewise and also add 'dg-do run'.
2247 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
2248 Ditto.
2249
ec084613
CP
22502019-10-25 Cesar Philippidis <cesar@codesourcery.com>
2251 Tobias Burnus <tobias@codesourcery.com>
2252
2253 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
2254 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
2255 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
2256
77ef3394
JJ
22572019-10-14 Jakub Jelinek <jakub@redhat.com>
2258
2259 PR libgomp/92081
2260 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
2261 than 0.
2262
08c14aaa
TB
22632019-10-11 Tobias Burnus <tobias@codesourcery.com>
2264
2265 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
2266 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
2267
6bbead0c
TS
22682019-10-09 Thomas Schwinge <thomas@codesourcery.com>
2269
2270 PR middle-end/92036
2271 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
2272 file.
2273
eba3dee8
TB
22742019-10-09 Tobias Burnus <tobias@codesourcery.com>
2275
2276 PR testsuite/91884
2277 * testsuite/libgomp.fortran/fortran.exp: Conditionally
2278 add -lquadmath.
2279 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
2280
7d48e14f
JJ
22812019-10-09 Jakub Jelinek <jakub@redhat.com>
2282
2283 PR libgomp/92028
2284 * target.c (gomp_map_vars_internal): Readd the previous
2285 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
2286 though do that just in the !not_found_cnt case.
2287
65b67cf3
TB
22882019-10-08 Tobias Burnus <tobias@codesourcery.com>
2289
2290 * gfortran.dg/gomp/target-simd.f90: New.
2291
6c7e076b
JB
22922019-10-02 Julian Brown <julian@codesourcery.com>
2293 Cesar Philippidis <cesar@codesourcery.com>
2294
2295 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
2296 * target.c (FIELD_TGT_EMPTY): Define.
2297 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
2298 as switch instead of list of ifs.
2299 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
2300
d61bff85
AT
23012019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
2302
2303 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
2304 include. Replace alloca () with __builtin_alloca ().
2305 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
2306
810f316d
JJ
23072019-10-01 Jakub Jelinek <jakub@redhat.com>
2308
2309 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
2310 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
2311 * oacc-parallel.c: Don't include "libgomp_g.h".
2312 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
2313 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
2314 * aclocal.m4: Regenerated.
2315 * config.h.in: Regenerated.
2316 * configure: Regenerated.
2317 * Makefile.in: Regenerated.
2318
d7f9ee98
KCY
23192019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
2320
2321 * libgomp_g.h: Include stdint.h instead of gstdint.h.
2322
e9085da5
MR
23232019-09-27 Maciej W. Rozycki <macro@wdc.com>
2324
2325 * configure: Regenerate.
2326
c28712be
TB
23272019-09-13 Tobias Burnus <tobias@codesourcery.com>
2328
2329 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
2330 string is initialized.
2331
3c086f8d
FW
23322019-09-06 Florian Weimer <fweimer@redhat.com>
2333
2334 * configure: Regenerate.
2335
c6c2d1bc
CLT
23362019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
2337
2338 PR other/79543
2339 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
2340 scanning to conform to the GNU Coding Standards.
2341 * configure: Regenerate.
2342
5cb72d83
JJ
23432019-08-28 Jakub Jelinek <jakub@redhat.com>
2344
2345 PR libgomp/91530
2346 * testsuite/libgomp.c/scan-21.c: New test.
2347 * testsuite/libgomp.c/scan-22.c: New test.
2348
0ad7981c
JJ
23492019-08-27 Jakub Jelinek <jakub@redhat.com>
2350
2351 PR libgomp/91530
2352 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
2353 targets.
2354 * testsuite/libgomp.c/scan-12.c: Likewise.
2355 * testsuite/libgomp.c/scan-13.c: Likewise.
2356 * testsuite/libgomp.c/scan-14.c: Likewise.
2357 * testsuite/libgomp.c/scan-15.c: Likewise.
2358 * testsuite/libgomp.c/scan-16.c: Likewise.
2359 * testsuite/libgomp.c/scan-17.c: Likewise.
2360 * testsuite/libgomp.c/scan-18.c: Likewise.
2361 * testsuite/libgomp.c/scan-19.c: Likewise.
2362 * testsuite/libgomp.c/scan-20.c: Likewise.
2363 * testsuite/libgomp.c++/scan-9.C: Likewise.
2364 * testsuite/libgomp.c++/scan-10.C: Likewise.
2365 * testsuite/libgomp.c++/scan-11.C: Likewise.
2366 * testsuite/libgomp.c++/scan-12.C: Likewise.
2367 * testsuite/libgomp.c++/scan-14.C: Likewise.
2368 * testsuite/libgomp.c++/scan-15.C: Likewise.
2369 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
2370 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
2371 * testsuite/libgomp.c++/scan-16.C: Likewise.
2372
1e67491a
TK
23732019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
2374
2375 PR fortran/91473
2376 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
2377 -std=legacy so invalid code in the test case is accepted.
2378
393fdeb1
TK
23792019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
2380
2381 PR fortran/91422
2382 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
2383 dimension.
2384
8860d270
JJ
23852019-08-08 Jakub Jelinek <jakub@redhat.com>
2386
2387 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
2388 perform the lookup in the first loop only if !not_found_cnt, otherwise
2389 perform lookups for it in the second loop guarded with
2390 if (not_found_cnt || has_firstprivate).
2391 * testsuite/libgomp.c/target-37.c: New test.
2392 * testsuite/libgomp.c++/target-22.C: New test.
2393
398e3feb
JJ
23942019-08-07 Jakub Jelinek <jakub@redhat.com>
2395
2396 * testsuite/libgomp.c/target-18.c (struct S): New type.
2397 (foo): Use use_device_addr clause instead of use_device_ptr clause
2398 where required by OpenMP 5.0, add further tests for both use_device_ptr
2399 and use_device_addr clauses.
2400 * testsuite/libgomp.c++/target-9.C (struct S): New type.
2401 (foo): Use use_device_addr clause instead of use_device_ptr clause
2402 where required by OpenMP 5.0, add further tests for both use_device_ptr
2403 and use_device_addr clauses. Add t and u arguments.
2404 (main): Adjust caller.
2405
d81ab49d
JJ
24062019-08-06 Jakub Jelinek <jakub@redhat.com>
2407
2408 * testsuite/libgomp.c++/loop-13.C: New test.
2409 * testsuite/libgomp.c++/loop-14.C: New test.
2410 * testsuite/libgomp.c++/loop-15.C: New test.
2411
c3ac76aa
JJ
24122019-07-31 Jakub Jelinek <jakub@redhat.com>
2413
2414 PR middle-end/91301
2415 * testsuite/libgomp.c++/for-27.C: New test.
2416
8dc63166
SK
24172019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
2418
393fdeb1 2419 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
8dc63166 2420 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
393fdeb1 2421
554a530f
JJ
24222019-07-20 Jakub Jelinek <jakub@redhat.com>
2423
2424 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
2425
6cda84b5
JJ
24262019-07-08 Jakub Jelinek <jakub@redhat.com>
2427
2428 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
2429 * testsuite/libgomp.c++/scan-16.C: Likewise.
2430
1f52d1a8
JJ
24312019-07-06 Jakub Jelinek <jakub@redhat.com>
2432
6f67abcd
JJ
2433 * testsuite/libgomp.c/scan-19.c: New test.
2434 * testsuite/libgomp.c/scan-20.c: New test.
2435
1f52d1a8
JJ
2436 * testsuite/libgomp.c/scan-11.c: New test.
2437 * testsuite/libgomp.c/scan-12.c: New test.
2438 * testsuite/libgomp.c/scan-13.c: New test.
2439 * testsuite/libgomp.c/scan-14.c: New test.
2440 * testsuite/libgomp.c/scan-15.c: New test.
2441 * testsuite/libgomp.c/scan-16.c: New test.
2442 * testsuite/libgomp.c/scan-17.c: New test.
2443 * testsuite/libgomp.c/scan-18.c: New test.
2444 * testsuite/libgomp.c++/scan-9.C: New test.
2445 * testsuite/libgomp.c++/scan-10.C: New test.
2446 * testsuite/libgomp.c++/scan-11.C: New test.
2447 * testsuite/libgomp.c++/scan-12.C: New test.
2448 * testsuite/libgomp.c++/scan-13.C: New test.
2449 * testsuite/libgomp.c++/scan-14.C: New test.
2450 * testsuite/libgomp.c++/scan-15.C: New test.
2451 * testsuite/libgomp.c++/scan-16.C: New test.
2452
2f03073f
JJ
24532019-07-04 Jakub Jelinek <jakub@redhat.com>
2454
2455 * testsuite/libgomp.c/scan-9.c: New test.
2456 * testsuite/libgomp.c/scan-10.c: New test.
2457
2f6bb511
JJ
24582019-07-03 Jakub Jelinek <jakub@redhat.com>
2459
2460 * testsuite/libgomp.c++/scan-1.C: New test.
2461 * testsuite/libgomp.c++/scan-2.C: New test.
2462 * testsuite/libgomp.c++/scan-3.C: New test.
2463 * testsuite/libgomp.c++/scan-4.C: New test.
2464 * testsuite/libgomp.c++/scan-5.C: New test.
2465 * testsuite/libgomp.c++/scan-6.C: New test.
2466 * testsuite/libgomp.c++/scan-7.C: New test.
2467 * testsuite/libgomp.c++/scan-8.C: New test.
2468 * testsuite/libgomp.c/scan-1.c: New test.
2469 * testsuite/libgomp.c/scan-2.c: New test.
2470 * testsuite/libgomp.c/scan-3.c: New test.
2471 * testsuite/libgomp.c/scan-4.c: New test.
2472 * testsuite/libgomp.c/scan-5.c: New test.
2473 * testsuite/libgomp.c/scan-6.c: New test.
2474 * testsuite/libgomp.c/scan-7.c: New test.
2475 * testsuite/libgomp.c/scan-8.c: New test.
2476
bd194a51
TS
24772019-06-18 Thomas Schwinge <thomas@codesourcery.com>
2478
85fca03a
TS
2479 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
2480 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
2481 Likewise.
2482
bd194a51
TS
2483 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
2484 check.
2485
6652161e
CP
24862019-06-18 Cesar Philippidis <cesar@codesourcery.com>
2487
2488 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
2489 file.
2490
3a37d6f6
TS
24912019-06-18 Thomas Schwinge <thomas@codesourcery.com>
2492
4017da8d
TS
2493 PR fortran/90743
2494 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
2495 case.
2496 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
2497 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
2498 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
2499 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
2500
6f7c1f65
TS
2501 PR testsuite/90861
2502 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
2503
3a37d6f6
TS
2504 PR middle-end/90862
2505 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
2506
f45ce17d
TV
25072019-06-16 Tom de Vries <tdevries@suse.de>
2508
2509 PR tree-optimization/89376
2510 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
2511
00908992
TV
25122019-06-15 Tom de Vries <tdevries@suse.de>
2513
2514 PR tree-optimization/89713
2515 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
2516 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
2517
211b7533
JJ
25182019-06-15 Jakub Jelinek <jakub@redhat.com>
2519
2520 PR middle-end/90779
2521 * testsuite/libgomp.c/pr90779.c: New test.
2522 * testsuite/libgomp.fortran/pr90779.f90: New test.
2523
120a01d1
TV
25242019-06-15 Tom de Vries <tdevries@suse.de>
2525
2526 PR tree-optimization/90009
2527 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
2528
c29c92c7
FX
25292019-06-13 Feng Xue <fxue@os.amperecomputing.com>
2530
2531 PR tree-optimization/89713
2532 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
2533
ce9c4ec3
JJ
25342019-06-11 Jakub Jelinek <jakub@redhat.com>
2535
2536 PR target/90811
2537 * testsuite/libgomp.c/pr90811.c: New test.
2538
28b3a77c
JJ
25392019-06-05 Jakub Jelinek <jakub@redhat.com>
2540
2541 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
2542 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
2543
7855700e
JJ
25442019-06-04 Jakub Jelinek <jakub@redhat.com>
2545
2546 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
2547 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
2548 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
2549 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
2550
a7155c2e
RO
25512019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2552
2553 * configure.ac: Call AX_COUNT_CPUS.
2554 Substitute CPU_COUNT.
2555 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
2556 count fallback.
2557 * aclocal.m4: Regenerate.
2558 * configure: Regenerate.
2559 * Makefile.in, testsuite/Makefile.in: Regenerate.
2560
7e47198b
JJ
25612019-05-29 Jakub Jelinek <jakub@redhat.com>
2562
2563 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
2564 to ...
2565 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
2566 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
2567 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
2568
fcfb8032
JJ
25692019-05-27 Jakub Jelinek <jakub@redhat.com>
2570
8e7757ba
JJ
2571 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
2572
36c7a3ff
JJ
2573 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
2574
fcfb8032
JJ
2575 PR libgomp/90641
2576 * work.c (gomp_init_work_share): Instead of aligning final ordered
2577 value to multiples of long long alignment, align to that the
2578 first part (ordered team ids) and if inline_ordered_team_ids
2579 is not on a long long alignment boundary within the structure,
2580 use __alignof__ (long long) - 1 pad size always.
2581 * loop.c (GOMP_loop_start): Fix *mem computation if
2582 inline_ordered_team_ids is not aligned on long long alignment boundary
2583 within the structure.
2584 * loop-ull.c (GOMP_loop_ull_start): Likewise.
2585 * sections.c (GOMP_sections2_start): Likewise.
2586
b5c26449
JJ
25872019-05-24 Jakub Jelinek <jakub@redhat.com>
2588
6c7ae8c5
JJ
2589 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
2590 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
2591
b5c26449
JJ
2592 PR libgomp/90585
2593 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
2594 HAVE_INTTYPES_H is defined.
2595 (print_uint64_t): New typedef.
2596 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
2597 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
2598 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
2599 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
2600 before casting to void *.
2601 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
2602 * oacc-mem.c: Don't include config.h nor stdint.h.
2603 * target.c: Don't include config.h.
2604 * oacc-cuda.c: Likewise.
2605 * oacc-host.c: Don't include stdint.h.
2606
3e03ed66
JJ
26072019-05-20 Jakub Jelinek <jakub@redhat.com>
2608
2609 PR libgomp/90527
2610 * alloc.c (_GNU_SOURCE): Define.
2611
5fae049d
TS
26122019-05-17 Thomas Schwinge <thomas@codesourcery.com>
2613
2614 * acc_prof.h: New file.
2615 * oacc-profiling.c: Likewise.
2616 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
2617 Add these, respectively.
2618 * Makefile.in: Regenerate.
2619 * env.c (initialize_env): Call goacc_profiling_initialize.
2620 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
2621 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
2622 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
2623 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
2624 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
2625 acc_prof_register, acc_prof_unregister, and acc_register_library.
2626 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
2627 GOMP_PLUGIN_goacc_thread.
2628 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
2629 prof_callbacks_enabled members.
2630 (goacc_prof_enabled, goacc_profiling_initialize)
2631 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
2632 (goacc_profiling_dispatch): Declare.
2633 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
2634 (GOACC_PROFILING_SETUP_P): Define.
2635 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
2636 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
2637 OpenACC Profiling Interface.
2638 * oacc-cuda.c (acc_get_current_cuda_device)
2639 (acc_get_current_cuda_context, acc_get_cuda_stream)
2640 (acc_set_cuda_stream): Likewise.
2641 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
2642 (acc_init, acc_set_device_type, acc_get_device_type)
2643 (acc_get_device_num, goacc_lazy_initialize): Likewise.
2644 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
2645 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
2646 (acc_unmap_data, present_create_copy, delete_copyout)
2647 (update_dev_host): Likewise.
2648 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
2649 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
2650 Likewise.
2651 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
2652 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
2653 Likewise.
2654 * libgomp.texi: Update.
2655 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
2656 file.
2657 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
2658 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
2659 Likewise.
2660 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
2661 Likewise.
2662 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
2663 Likewise.
2664 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
2665 Likewise.
2666
1f4c5b9b
CLT
26672019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
2668
2669 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
2670 (struct goacc_asyncqueue_list): Likewise.
2671 (goacc_aq): Likewise.
2672 (goacc_aq_list): Likewise.
2673 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
2674 (GOMP_OFFLOAD_openacc_async_test): Remove.
2675 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
2676 (GOMP_OFFLOAD_openacc_async_wait): Remove.
2677 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
2678 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
2679 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
2680 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
2681 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
2682 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
2683 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
2684 (GOMP_OFFLOAD_openacc_async_exec): Declare.
2685 (GOMP_OFFLOAD_openacc_async_construct): Declare.
2686 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
2687 (GOMP_OFFLOAD_openacc_async_test): Declare.
2688 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
2689 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
2690 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
2691 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
2692 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
2693
2694 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
2695 (gomp_acc_insert_pointer): Adjust declaration.
2696 (gomp_copy_host2dev): New declaration.
2697 (gomp_copy_dev2host): Likewise.
2698 (gomp_map_vars_async): Likewise.
2699 (gomp_unmap_tgt): Likewise.
2700 (gomp_unmap_vars_async): Likewise.
2701 (gomp_fini_device): Likewise.
2702
2703 * oacc-async.c (get_goacc_thread): New function.
2704 (get_goacc_thread_device): New function.
2705 (lookup_goacc_asyncqueue): New function.
2706 (get_goacc_asyncqueue): New function.
2707 (acc_async_test): Adjust code to use new async design.
2708 (acc_async_test_all): Likewise.
2709 (acc_wait): Likewise.
2710 (acc_wait_async): Likewise.
2711 (acc_wait_all): Likewise.
2712 (acc_wait_all_async): Likewise.
2713 (goacc_async_free): New function.
2714 (goacc_init_asyncqueues): Likewise.
2715 (goacc_fini_asyncqueues): Likewise.
2716 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
2717 design.
2718 (acc_set_cuda_stream): Likewise.
2719 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
2720 (host_openacc_register_async_cleanup): Remove.
2721 (host_openacc_async_exec): New function.
2722 (host_openacc_async_test): Adjust parameters.
2723 (host_openacc_async_test_all): Remove.
2724 (host_openacc_async_wait): Remove.
2725 (host_openacc_async_wait_async): Remove.
2726 (host_openacc_async_wait_all): Remove.
2727 (host_openacc_async_wait_all_async): Remove.
2728 (host_openacc_async_set_async): Remove.
2729 (host_openacc_async_synchronize): New function.
2730 (host_openacc_async_serialize): New function.
2731 (host_openacc_async_host2dev): New function.
2732 (host_openacc_async_dev2host): New function.
2733 (host_openacc_async_queue_callback): New function.
2734 (host_openacc_async_construct): New function.
2735 (host_openacc_async_destruct): New function.
2736 (struct gomp_device_descr host_dispatch): Remove initialization of old
93d90219 2737 interface, add initialization of new async sub-struct.
1f4c5b9b
CLT
2738 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
2739 (goacc_attach_host_thread_to_device): Remove old async code usage.
2740 * oacc-int.h (goacc_init_asyncqueues): New declaration.
2741 (goacc_fini_asyncqueues): Likewise.
2742 (goacc_async_copyout_unmap_vars): Likewise.
2743 (goacc_async_free): Likewise.
2744 (get_goacc_asyncqueue): Likewise.
2745 (lookup_goacc_asyncqueue): Likewise.
2746 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
2747 design.
2748 (present_create_copy): Adjust code to use new async design.
2749 (delete_copyout): Likewise.
2750 (update_dev_host): Likewise.
2751 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
2752 async design.
2753 (gomp_acc_remove_pointer): Adjust code to use new async design.
2754 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
2755 design.
2756 (GOACC_enter_exit_data): Likewise.
2757 (goacc_wait): Likewise.
2758 (GOACC_update): Likewise.
2759 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
2760 when called, warn as obsolete in comment.
2761 * target.c (goacc_device_copy_async): New function.
2762 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
2763 add goacc_device_copy_async case.
2764 (gomp_copy_dev2host): Likewise.
2765 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
2766 (gomp_map_pointer): Likewise.
2767 (gomp_map_fields_existing): Likewise.
2768 (gomp_map_vars_internal): New always_inline function, renamed from
2769 gomp_map_vars.
2770 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
2771 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
2772 passing goacc_asyncqueue argument.
2773 (gomp_unmap_tgt): Remove static, add attribute_hidden.
2774 (gomp_unref_tgt): New function.
2775 (gomp_unmap_vars_internal): New always_inline function, renamed from
2776 gomp_unmap_vars.
2777 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
2778 (gomp_unmap_vars_async): Implement by calling
2779 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
2780 (gomp_fini_device): New function.
2781 (gomp_exit_data): Adjust gomp_copy_dev2host call.
2782 (gomp_load_plugin_for_device): Remove old interface, adjust to load
2783 new async interface.
2784 (gomp_target_fini): Adjust code to call gomp_fini_device.
2785
2786 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
2787 (struct ptx_stream): Remove.
2788 (struct nvptx_thread): Remove current_stream field.
2789 (cuda_map_create): Remove.
2790 (cuda_map_destroy): Remove.
2791 (map_init): Remove.
2792 (map_fini): Remove.
2793 (map_pop): Remove.
2794 (map_push): Remove.
2795 (struct goacc_asyncqueue): Define.
2796 (struct nvptx_callback): Define.
2797 (struct ptx_free_block): Define.
2798 (struct ptx_device): Remove null_stream, active_streams, async_streams,
2799 stream_lock, and next fields.
2800 (enum ptx_event_type): Remove.
2801 (struct ptx_event): Remove.
2802 (ptx_event_lock): Remove.
2803 (ptx_events): Remove.
2804 (init_streams_for_device): Remove.
2805 (fini_streams_for_device): Remove.
2806 (select_stream_for_async): Remove.
2807 (nvptx_init): Remove ptx_events and ptx_event_lock references.
2808 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
2809 case.
2810 (nvptx_open_device): Add free_blocks initialization, remove
2811 init_streams_for_device call.
2812 (nvptx_close_device): Remove fini_streams_for_device call, add
2813 free_blocks destruct code.
2814 (event_gc): Remove.
2815 (event_add): Remove.
2816 (nvptx_exec): Adjust parameters and code.
2817 (nvptx_free): Likewise.
2818 (nvptx_host2dev): Remove.
2819 (nvptx_dev2host): Remove.
2820 (nvptx_set_async): Remove.
2821 (nvptx_async_test): Remove.
2822 (nvptx_async_test_all): Remove.
2823 (nvptx_wait): Remove.
2824 (nvptx_wait_async): Remove.
2825 (nvptx_wait_all): Remove.
2826 (nvptx_wait_all_async): Remove.
2827 (nvptx_get_cuda_stream): Remove.
2828 (nvptx_set_cuda_stream): Remove.
2829 (GOMP_OFFLOAD_alloc): Adjust code.
2830 (GOMP_OFFLOAD_free): Likewise.
2831 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
2832 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
2833 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
2834 (GOMP_OFFLOAD_openacc_async_wait): Remove.
2835 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
2836 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
2837 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
2838 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
2839 (cuda_free_argmem): New function.
2840 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
2841 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
2842 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
2843 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
2844 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
2845 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
2846 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
2847 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
2848 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
2849 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
2850 (cuda_callback_wrapper): New function.
2851 (cuda_memcpy_sanity_check): New function.
2852 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
2853 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
2854 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
2855 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
2856
da2d30c1
TS
28572019-05-07 Thomas Schwinge <thomas@codesourcery.com>
2858
2859 PR target/87835
2860 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
2861
2bbbfa4e
TS
28622019-05-06 Thomas Schwinge <thomas@codesourcery.com>
2863
2864 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
2865
bbf1efe1
KB
28662019-03-27 Kevin Buettner <kevinb@redhat.com>
2867
2868 * team.c (gomp_team_start): Initialize pool->threads[0].
2869
1241136c
TS
28702019-02-22 Thomas Schwinge <thomas@codesourcery.com>
2871
b03d721a
TS
2872 * testsuite/libgomp.oacc-c++/c++.exp: Specify
2873 "-foffload=$offload_target".
2874 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2875 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2876 * testsuite/lib/libgomp.exp
2877 (check_effective_target_openacc_nvidia_accel_configured): Remove,
2878 as (conceptually) merged into
2879 check_effective_target_openacc_nvidia_accel_selected. Adjust all
2880 users.
2881
0a0384b4
TS
2882 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
2883 * testsuite/libgomp-test-support.exp.in: Adjust.
2884 * testsuite/lib/libgomp.exp: Likewise. Don't populate
2885 openacc_device_types_s.
2886 (offload_target_to_openacc_device_type): New proc.
2887 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
2888 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2889 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2890 * Makefile.in: Regenerate.
2891 * configure: Likewise.
2892 * testsuite/Makefile.in: Likewise.
2893
ee332b4a
TS
2894 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
2895 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
2896 instead of OFFLOAD_TARGETS.
2897 * target.c (gomp_target_init): Adjust.
2898 * testsuite/libgomp-test-support.exp.in: Likewise.
2899 * testsuite/lib/libgomp.exp: Likewise. Populate
2900 openacc_device_types_s instead of offload_targets_s_openacc.
2901 (check_effective_target_openacc_nvidia_accel_selected)
2902 (check_effective_target_openacc_host_selected): Adjust.
2903 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
2904 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2905 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2906 * Makefile.in: Regenerate.
2907 * config.h.in: Likewise.
2908 * configure: Likewise.
2909 * testsuite/Makefile.in: Likewise.
2910
1241136c
TS
2911 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
2912 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
2913 "offloading: supported, but hardware not accessible".
2914 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2915 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2916
19695f4d
CLT
29172019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
2918
2919 PR c/87924
2920 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
2921 goacc_wait().
2922 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
2923 and related adjustment.
2924
8b44f8ec
JJ
29252019-01-30 Jakub Jelinek <jakub@redhat.com>
2926
2927 PR c++/88988
2928 * testsuite/libgomp.c++/pr88988.C: New test.
2929
be3a87e7
JJ
29302019-01-28 Jakub Jelinek <jakub@redhat.com>
2931
2932 PR middle-end/89002
2933 * testsuite/libgomp.c/pr89002.c: New test.
2934
497ef4d7
RB
29352019-01-28 Richard Biener <rguenther@suse.de>
2936
2937 PR testsuite/89064
2938 PR tree-optimization/86865
2939 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
2940
738c56d4
TV
29412019-01-24 Tom de Vries <tdevries@suse.de>
2942
2943 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
2944 once instantiated_devices drops to 0.
2945
4a75460b
TV
29462019-01-23 Tom de Vries <tdevries@suse.de>
2947
2948 PR target/PR88946
2949 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
2950 cuMemFree.
2951 (nvptx_exec): Don't call map_push if mapnum == 0.
2952 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
2953
4fef8e4d
TV
29542019-01-23 Tom de Vries <tdevries@suse.de>
2955
2956 PR target/88941
2957 PR target/88939
2958 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
2959 (map_fini): Remove "assert (!s->map->active)".
2960 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
2961
2ee6cb22
TV
29622019-01-23 Tom de Vries <tdevries@suse.de>
2963
2964 PR target/87835
2965 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
2966 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
2967
d41d952c
TV
29682019-01-15 Tom de Vries <tdevries@suse.de>
2969
2970 PR target/80547
2971 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
2972 New test.
2973
efb56ae8
TV
29742019-01-12 Tom de Vries <tdevries@suse.de>
2975
2976 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
2977 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
2978 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
2979 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
2980
2c2ff168
TV
29812019-01-12 Tom de Vries <tdevries@suse.de>
2982
2983 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
2984
a1057758
TV
29852019-01-12 Tom de Vries <tdevries@suse.de>
2986
2987 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
2988 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
2989 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
2990
56314b77
TV
29912019-01-12 Tom de Vries <tdevries@suse.de>
2992
2993 PR target/85486
2994 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
2995 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
2996
b39e4366
TV
29972019-01-12 Tom de Vries <tdevries@suse.de>
2998
2999 PR target/85381
3000 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
3001 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
3002
2cb7a501
TV
30032019-01-12 Tom de Vries <tdevries@suse.de>
3004
3005 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
3006 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
3007 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
3008
8e77f71e
TV
30092019-01-12 Tom de Vries <tdevries@suse.de>
3010
3011 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
3012 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
3013 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
3014
52d22ece
TV
30152019-01-12 Tom de Vries <tdevries@suse.de>
3016
3017 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
3018 resources diagnostic.
3019
2b9d9e39
TV
30202019-01-12 Tom de Vries <tdevries@suse.de>
3021
3022 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
3023 vector length to be 128.
3024 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
3025 length 2097152 to be reduced to 1024 instead of 32.
3026
4102bda6
TS
30272019-01-11 Thomas Schwinge <thomas@codesourcery.com>
3028 James Norris <jnorris@codesourcery.com>
3029
3030 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
3031 Library Routines", and "Environment Variables".
3032
052aaace
TV
30332019-01-11 Tom de Vries <tdevries@suse.de>
3034
3035 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
3036 num_workers 16.
3037
9390f916
TV
30382019-01-11 Tom de Vries <tdevries@suse.de>
3039
3040 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
3041 -foffload=-w.
3042 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
3043 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
3044 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
3045 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
3046
2c3e7ad2
TV
30472019-01-11 Tom de Vries <tdevries@suse.de>
3048
3049 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
3050 test.
3051
e222497d
NS
30522019-01-10 Nathan Sidwell <nathan@acm.org>
3053 Julian Brown <julian@codesourcery.com>
3054
3055 PR lto/71959
3056 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
3057 * testsuite/libgomp.oacc-c++/pr71959.C: New.
3058
cb87fec3
SH
30592019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3060
3061 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
3062 and paste code.
3063
30b4d0d0
SH
30642019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3065
3066 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
3067 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
3068 write.
3069
5d0bc70a
TV
30702019-01-09 Tom de Vries <tdevries@suse.de>
3071
3072 PR target/88756
3073 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
3074 #define instead of "const int".
3075 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
3076 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
3077 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
3078 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
3079
2c372e81
TV
30802019-01-09 Tom de Vries <tdevries@suse.de>
3081
3082 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
3083 one worker.
3084
43493c97
TV
30852019-01-07 Tom de Vries <tdevries@suse.de>
3086
3087 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
3088 GOMP_OPENACC_DIM argument.
3089
5c571497
TV
30902019-01-03 Tom de Vries <tdevries@suse.de>
3091
3092 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
3093 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
3094
a5544970
JJ
30952019-01-01 Jakub Jelinek <jakub@redhat.com>
3096
3097 Update copyright years.
3098
3f27508c
JJ
30992019-01-01 Jakub Jelinek <jakub@redhat.com>
3100
3101 * libgomp.texi: Bump @copying's copyright year.
3102
59d5960c
TS
31032018-12-28 Thomas Schwinge <thomas@codesourcery.com>
3104
3105 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
3106 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
3107 (GOACC_declare): Redefine the "device" argument to "flags".
3108
a44c1790
TS
31092018-12-28 Thomas Schwinge <thomas@codesourcery.com>
3110 Cesar Philippidis <cesar@codesourcery.com>
3111
3112 * target.c (struct gomp_coalesce_chunk): New structure.
3113 (struct gomp_coalesce_buf): Update the chunks member to use that
3114 type. Adjust all users.
3115
a152954e
TV
31162018-12-19 Tom de Vries <tdevries@suse.de>
3117
3118 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
3119 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
3120 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
3121
49188cd1
TV
31222018-12-19 Tom de Vries <tdevries@suse.de>
3123
3124 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
3125 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
3126 gcc/testsuite/gcc.dg/goacc.
3127 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
3128
c759830b
TS
31292018-12-14 Thomas Schwinge <thomas@codesourcery.com>
3130 Chung-Lin Tang <cltang@codesourcery.com>
3131
3132 * oacc-mem.c (acc_present_or_create): Remove definition and change
3133 to alias of acc_create.
3134 (acc_present_or_copyin): Remove definition and change to alias of
3135 acc_copyin.
3136 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
3137 of acc_present_or_create.
3138 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
3139 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
3140 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
3141 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
3142 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
3143 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
3144 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
3145 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
3146 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
3147 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
3148 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
3149 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
3150 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
3151 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
3152 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
3153 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
3154
7de562ee
TS
31552018-12-14 Thomas Schwinge <thomas@codesourcery.com>
3156
f847198e
TS
3157 PR libgomp/88495
3158 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
3159 "identical parameters".
3160 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
3161 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
3162
c8ab8aab
TS
3163 PR libgomp/88484
3164 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
3165 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
3166
1404af62
TS
3167 PR libgomp/88407
3168 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
3169 (nvptx_wait_async): Unseen async-argument is a no-op.
3170 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
3171 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
3172 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
3173 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
3174 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
3175 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
3176 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
3177 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
3178 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
3179
7de562ee
TS
3180 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
3181 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
3182
17469af7
CLT
31832018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
3184
3185 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
3186 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
3187 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
3188
18c247cc
TS
31892018-12-14 Thomas Schwinge <thomas@codesourcery.com>
3190
3191 PR libgomp/88370
3192 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
3193 (acc_set_cuda_stream): Clarify.
3194 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
3195 "async_valid_p".
3196 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
3197 acc_async_sync".
3198 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
3199 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
3200 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
3201 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
3202
b0aba46c
TV
32032018-12-14 Tom de Vries <tdevries@suse.de>
3204
3205 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
3206 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
3207 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
3208 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
3209 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
3210
fe0827ee
TV
32112018-12-13 Tom de Vries <tdevries@suse.de>
3212
3213 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
3214 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
3215 * fortran.c (omp_display_affinity_): ... here.
3216 * libgomp.h (gomp_print_string): Declare.
3217 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
3218 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
3219 write.
3220
a51f8c92
JJ
32212018-12-13 Jakub Jelinek <jakub@redhat.com>
3222
3223 PR libgomp/88460
3224 * testsuite/libgomp.c++/for-24.C (results): Include it in
3225 omp declare target region.
3226 (main): Use map (always, tofrom: results) instead of
3227 map (tofrom: results).
3228
a6ef2ac9
JJ
32292018-12-12 Jakub Jelinek <jakub@redhat.com>
3230
7a289b7d
JJ
3231 PR fortran/88463
3232 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
3233 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
3234
a6ef2ac9
JJ
3235 * testsuite/libgomp.c-c++-common/for-16.c: New test.
3236
9c47a019
AS
32372018-12-12 Andreas Schwab <schwab@suse.de>
3238
3239 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
3240 clobbered.
3241
d0cbb206
TK
32422018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
3243
3244 PR fortran/88411
3245 * testsuite/libgomp.fortran/async_io_8.f90: New test.
3246
84ca08d2
TS
32472018-12-09 Thomas Schwinge <thomas@codesourcery.com>
3248 Jakub Jelinek <jakub@redhat.com>
3249
3250 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
3251 devicep->host2dev_func.
3252
6997628d
JJ
32532018-12-08 Jakub Jelinek <jakub@redhat.com>
3254
3255 PR libgomp/87995
3256 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
3257 tls_runtime effective target.
3258 (t): New threadprivate variable.
3259 (main): Set t in threads which execute iterations of the worksharing
3260 loop. Propagate that to the task after the loop and don't abort
3261 if the current taskgroup hasn't been cancelled.
3262
daa8c1d7
JJ
32632018-12-02 Jakub Jelinek <jakub@redhat.com>
3264
4a82df9a
JJ
3265 * testsuite/libgomp.c/task-reduction-3.c: New test.
3266
daa8c1d7
JJ
3267 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
3268
fe570ff8
CP
32692018-11-30 Cesar Philippidis <cesar@codesourcery.com>
3270
3271 PR libgomp/88288
3272 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
3273 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
3274
c223608f
TS
32752018-11-30 Thomas Schwinge <thomas@codesourcery.com>
3276
3277 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
3278
fc60283c
RB
32792018-10-19 Richard Biener <rguenther@suse.de>
3280
3281 PR tree-optimization/88182
3282 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
3283
ffcf3b79
JJ
32842018-11-26 Jakub Jelinek <jakub@redhat.com>
3285
3286 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
3287 (RUNTEST): Don't define.
3288 (RUNTESTDEFAULTFLAGS): Add.
3289 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
3290 (distclean-am): Depend on distclean-DEJAGNU.
3291 (check-am): If -j% option is present in MFLAGS and if
3292 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
3293 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
3294 * testsuite/Makefile.in: Regenerated.
3295
ef6e6914
RB
32962018-11-26 Richard Biener <rguenther@suse.de>
3297
3298 PR tree-optimization/88182
3299 * testsuite/libgomp.c++/pr88182.C: New testcase.
3300
72d3bb76
JJ
33012018-11-20 Jakub Jelinek <jakub@redhat.com>
3302
3303 PR bootstrap/88106
3304 * config/mingw32/affinity-fmt.c: New file.
3305
207286c3
JJ
33062018-11-09 Jakub Jelinek <jakub@redhat.com>
3307
9666c522
JJ
3308 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
3309 (gomp_display_affinity): Use __builtin_choose_expr to handle
3310 properly handle argument having integral, or pointer or some other
3311 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
3312 with uint64_t type instead of %llx and unsigned long long.
3313
207286c3
JJ
3314 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
3315 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
3316
2033f45b
RO
33172018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3318
3319 * affinity.c: Include <string.h>, <stdio.h>.
3320 (gomp_display_affinity_place): Remove cpusetp.
3321 * teams.c: Include <limits.h>.
3322
28567c40
JJ
33232018-11-08 Jakub Jelinek <jakub@redhat.com>
3324
8991d779
JJ
3325 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
3326 in_reduction clause for s[0].
3327
28567c40
JJ
3328 * affinity.c (gomp_display_affinity_place): New function.
3329 * affinity-fmt.c: New file.
3330 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
3331 * config/linux/affinity.c (gomp_display_affinity_place): New function.
3332 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
3333 Move these functions to ...
3334 * config/nvptx/teams.c: ... here. New file.
3335 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
3336 New functions.
3337 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
3338 functions.
3339 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
3340 and _aligned_malloc.
3341 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
3342 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
3343 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
3344 gomp_affinity_format_len): New variables.
3345 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
3346 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
3347 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
3348 modifiers. Display (non-default) chunk sizes. Print
3349 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
3350 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
3351 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
3352 * fortran.c: Include stdio.h and string.h.
3353 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
3354 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
3355 (omp_set_affinity_format_, omp_get_affinity_format_,
3356 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
3357 omp_pause_resource_all_): New functions.
3358 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
3359 switch.
3360 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
3361 functions to ...
3362 * teams.c: ... here. New file.
3363 * libgomp_g.h: Include gstdint.h.
3364 (GOMP_loop_nonmonotonic_runtime_start,
3365 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
3366 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
3367 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
3368 GOMP_parallel_loop_nonmonotonic_runtime,
3369 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
3370 GOMP_loop_ull_nonmonotonic_runtime_start,
3371 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
3372 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
3373 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
3374 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
3375 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
3376 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
3377 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
3378 GOMP_teams_reg): Declare.
3379 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
3380 gomp_aligned_alloc uses fallback implementation.
3381 (gomp_aligned_alloc, gomp_aligned_free): Declare.
3382 (enum gomp_schedule_type): Add GFS_MONOTONIC.
3383 (struct gomp_doacross_work_share): Add extra field.
3384 (struct gomp_work_share): Add task_reductions field.
3385 (struct gomp_taskgroup): Add workshare and reductions fields.
3386 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
3387 (gomp_thread_handle): New typedef.
3388 (gomp_display_affinity_place, gomp_set_affinity_format,
3389 gomp_display_string, gomp_display_affinity,
3390 gomp_display_affinity_thread): Declare.
3391 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
3392 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
3393 gomp_workshare_task_reduction_register): Declare.
3394 (gomp_team_start): Add taskgroup argument.
3395 (gomp_pause_host): Declare.
3396 (gomp_init_work_share, gomp_work_share_start): Change bool argument
3397 to size_t.
3398 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
3399 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
3400 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
3401 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
3402 GOMP_loop_ull_doacross_start,
3403 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
3404 GOMP_loop_maybe_nonmonotonic_runtime_next,
3405 GOMP_loop_maybe_nonmonotonic_runtime_start,
3406 GOMP_loop_nonmonotonic_runtime_next,
3407 GOMP_loop_nonmonotonic_runtime_start,
3408 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
3409 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
3410 GOMP_loop_ull_nonmonotonic_runtime_next,
3411 GOMP_loop_ull_nonmonotonic_runtime_start,
3412 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
3413 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
3414 GOMP_taskgroup_reduction_register,
3415 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
3416 GOMP_teams_reg and GOMP_taskwait_depend.
3417 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
3418 omp_{capture,display}_affinity{,_}, and
3419 omp_[gs]et_affinity_format{,_}.
3420 * loop.c: Include string.h.
3421 (GOMP_loop_runtime_next): Add ialias.
3422 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
3423 (gomp_loop_static_start, gomp_loop_dynamic_start,
3424 gomp_loop_guided_start, gomp_loop_ordered_static_start,
3425 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3426 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
3427 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
3428 or gomp_doacross_init callers.
3429 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
3430 GOMP_loop_doacross_start): New functions.
3431 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3432 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
3433 Mask off GFS_MONOTONIC bit.
3434 (GOMP_loop_maybe_nonmonotonic_runtime_next,
3435 GOMP_loop_maybe_nonmonotonic_runtime_start,
3436 GOMP_loop_nonmonotonic_runtime_next,
3437 GOMP_loop_nonmonotonic_runtime_start,
3438 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
3439 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
3440 functions.
3441 (gomp_parallel_loop_start): Pass NULL as taskgroup to
3442 gomp_team_start.
3443 * loop_ull.c: Include string.h.
3444 (GOMP_loop_ull_runtime_next): Add ialias.
3445 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
3446 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
3447 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
3448 gomp_loop_ull_ordered_dynamic_start,
3449 gomp_loop_ull_ordered_guided_start,
3450 gomp_loop_ull_doacross_static_start,
3451 gomp_loop_ull_doacross_dynamic_start,
3452 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
3453 and gomp_doacross_ull_init callers.
3454 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
3455 GOMP_loop_ull_doacross_start): New functions.
3456 (GOMP_loop_ull_runtime_start,
3457 GOMP_loop_ull_ordered_runtime_start,
3458 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
3459 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
3460 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
3461 GOMP_loop_ull_nonmonotonic_runtime_next,
3462 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
3463 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
3464 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
3465 (omp_pause_resource_t, omp_depend_t): New typedefs.
3466 (enum omp_lock_hint_t): Renamed to ...
3467 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
3468 enumerators using numbers and omp_lock_hint_* as their aliases.
3469 (omp_lock_hint_t): New typedef. Rename to ...
3470 (omp_sync_hint_t): ... this.
3471 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
3472 omp_sync_hint_t instead of omp_lock_hint_t.
3473 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
3474 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
3475 Declare.
3476 (omp_target_is_present, omp_target_disassociate_ptr):
3477 Change first argument from void * to const void *.
3478 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
3479 from void * to const void *.
3480 (omp_target_associate_ptr): Change first and second arguments from
3481 void * to const void *.
3482 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
3483 omp_pause_hard): New parameters.
3484 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
3485 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
3486 New interfaces.
3487 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
3488 omp_pause_hard): New parameters.
3489 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
3490 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
3491 New externals.
3492 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
3493 EXTRA argument. If not needed to prepare array, if extra is 0,
3494 clear ws->doacross, otherwise allocate just doacross structure and
3495 extra payload. If array is needed, allocate also extra payload.
3496 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
3497 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
3498 doacross == NULL.
3499 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
3500 gomp_team_start.
3501 (GOMP_parallel): Likewise. Formatting fix.
3502 (GOMP_parallel_reductions): New function.
3503 (GOMP_cancellation_point): If taskgroup has workshare
3504 flag set, check cancelled of prev taskgroup if any.
3505 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
3506 on prev taskgroup if any.
3507 * sections.c: Include string.h.
3508 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
3509 (GOMP_sections_start): Adjust gomp_work_share_start caller.
3510 (GOMP_sections2_start): New function.
3511 (GOMP_parallel_sections_start, GOMP_parallel_sections):
3512 Pass NULL as taskgroup to gomp_team_start.
3513 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
3514 gomp_work_share_start callers.
3515 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
3516 If taskgroup has workshare flag set, check cancelled on prev
3517 taskgroup if any. Guard all cancellation tests with
3518 gomp_cancel_var test.
3519 (omp_target_is_present, omp_target_disassociate_ptr):
3520 Change ptr argument from void * to const void *.
3521 (omp_target_memcpy): Change src argument from void * to const void *.
3522 (omp_target_memcpy_rect): Likewise.
3523 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
3524 instead of char * where needed.
3525 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
3526 from void * to const void *.
3527 (omp_pause_resource, omp_pause_resource_all): New functions.
3528 * task.c (gomp_task_handle_depend): Handle new depend array format
3529 in addition to the old. Handle mutexinoutset kinds the same as
3530 inout for now, handle unspecified kinds.
3531 (gomp_create_target_task): If taskgroup has workshare flag set, check
3532 cancelled on prev taskgroup if any. Guard all cancellation tests with
3533 gomp_cancel_var test. Handle new depend array format count in
3534 addition to the old.
3535 (GOMP_task): Likewise. Adjust function comment.
3536 (gomp_task_run_pre): If taskgroup has workshare flag set, check
3537 cancelled on prev taskgroup if any. Guard all cancellation tests with
3538 gomp_cancel_var test.
3539 (GOMP_taskwait_depend): New function.
3540 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
3541 format in addition to the old. Handle mutexinoutset kinds the same as
3542 inout for now, handle unspecified kinds. Fix a function comment typo.
3543 (gomp_taskgroup_init): New function.
3544 (GOMP_taskgroup_start): Use it.
3545 (gomp_reduction_register, gomp_create_artificial_team,
3546 GOMP_taskgroup_reduction_register,
3547 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
3548 gomp_parallel_reduction_register,
3549 gomp_workshare_task_reduction_register,
3550 gomp_workshare_taskgroup_start,
3551 GOMP_workshare_task_reduction_unregister): New functions.
3552 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
3553 check cancelled on prev taskgroup if any. Guard all cancellation
3554 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
3555 by calling GOMP_taskgroup_reduction_register.
3556 * team.c (gomp_thread_attr): Remove comment.
3557 (struct gomp_thread_start_data): Add handle field.
3558 (gomp_thread_start): Call pthread_detach.
3559 (gomp_new_team): Adjust gomp_init_work_share caller.
3560 (gomp_free_pool_helper): Call pthread_detach.
3561 (gomp_team_start): Add taskgroup argument, initialize implicit
3562 tasks' taskgroup field to that. Don't call
3563 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
3564 (gomp_team_end): Determine nesting by thr->ts.level != 0
3565 rather than thr->ts.team != NULL.
3566 (gomp_pause_pool_helper, gomp_pause_host): New functions.
3567 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
3568 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
3569 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
3570 if more than 1 allocate also extra payload at the end of array. Never
3571 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
3572 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
3573 return true instead of ws.
3574 * Makefile.in: Regenerated.
3575 * configure: Regenerated.
3576 * config.h.in: Regenerated.
3577 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
3578 in some cases.
3579 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
3580 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
3581 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
3582 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
3583 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
3584 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
3585 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
3586 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
3587 * testsuite/libgomp.c-c++-common/for-10.c: New test.
3588 * testsuite/libgomp.c-c++-common/for-11.c: New test.
3589 * testsuite/libgomp.c-c++-common/for-12.c: New test.
3590 * testsuite/libgomp.c-c++-common/for-13.c: New test.
3591 * testsuite/libgomp.c-c++-common/for-14.c: New test.
3592 * testsuite/libgomp.c-c++-common/for-15.c: New test.
3593 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
3594 define a different N(test), don't define N(f0) to N(f14), but instead
3595 define N(f20) to N(f34) using != comparisons.
3596 * testsuite/libgomp.c-c++-common/for-7.c: New test.
3597 * testsuite/libgomp.c-c++-common/for-8.c: New test.
3598 * testsuite/libgomp.c-c++-common/for-9.c: New test.
3599 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
3600 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
3601 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
3602 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
3603 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
3604 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
3605 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
3606 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
3607 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
3608 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
3609 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
3610 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
3611 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
3612 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
3613 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
3614 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
3615 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
3616 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
3617 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
3618 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
3619 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
3620 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
3621 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
3622 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
3623 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
3624 * testsuite/libgomp.c++/depend-1.C: New test.
3625 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
3626 * testsuite/libgomp.c++/depobj-1.C: New test.
3627 * testsuite/libgomp.c++/for-16.C: New test.
3628 * testsuite/libgomp.c++/for-21.C: New test.
3629 * testsuite/libgomp.c++/for-22.C: New test.
3630 * testsuite/libgomp.c++/for-23.C: New test.
3631 * testsuite/libgomp.c++/for-24.C: New test.
3632 * testsuite/libgomp.c++/for-25.C: New test.
3633 * testsuite/libgomp.c++/for-26.C: New test.
3634 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
3635 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
3636 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
3637 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
3638 * testsuite/libgomp.c++/task-reduction-10.C: New test.
3639 * testsuite/libgomp.c++/task-reduction-11.C: New test.
3640 * testsuite/libgomp.c++/task-reduction-12.C: New test.
3641 * testsuite/libgomp.c++/task-reduction-13.C: New test.
3642 * testsuite/libgomp.c++/task-reduction-14.C: New test.
3643 * testsuite/libgomp.c++/task-reduction-15.C: New test.
3644 * testsuite/libgomp.c++/task-reduction-16.C: New test.
3645 * testsuite/libgomp.c++/task-reduction-17.C: New test.
3646 * testsuite/libgomp.c++/task-reduction-18.C: New test.
3647 * testsuite/libgomp.c++/task-reduction-19.C: New test.
3648 * testsuite/libgomp.c/task-reduction-1.c: New test.
3649 * testsuite/libgomp.c++/task-reduction-1.C: New test.
3650 * testsuite/libgomp.c/task-reduction-2.c: New test.
3651 * testsuite/libgomp.c++/task-reduction-2.C: New test.
3652 * testsuite/libgomp.c++/task-reduction-3.C: New test.
3653 * testsuite/libgomp.c++/task-reduction-4.C: New test.
3654 * testsuite/libgomp.c++/task-reduction-5.C: New test.
3655 * testsuite/libgomp.c++/task-reduction-6.C: New test.
3656 * testsuite/libgomp.c++/task-reduction-7.C: New test.
3657 * testsuite/libgomp.c++/task-reduction-8.C: New test.
3658 * testsuite/libgomp.c++/task-reduction-9.C: New test.
3659 * testsuite/libgomp.c/teams-1.c: New test.
3660 * testsuite/libgomp.c/teams-2.c: New test.
3661 * testsuite/libgomp.c/thread-limit-4.c: New test.
3662 * testsuite/libgomp.c/thread-limit-5.c: New test.
3663 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
3664
58168bbf
CLT
36652018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
3666
3667 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
3668 acc_memcpy_to/from_device functions, now with async parameter.
3669 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
3670 (acc_memcpy_from_device): Likewise.
3671 (acc_memcpy_to_device_async): New API function.
3672 (acc_memcpy_from_device_async): Likewise.
3673 (present_create_copy): Add async parameter and async setting/unsetting.
3674 (acc_create): Adjust present_create_copy call.
3675 (acc_copyin): Likewise.
3676 (acc_present_or_create): Likewise.
3677 (acc_present_or_copyin): Likewise.
3678 (acc_create_async): New API function.
3679 (acc_copyin_async): New API function.
3680 (delete_copyout): Add async parameter and async setting/unsetting.
3681 (acc_delete): Adjust delete_copyout call.
3682 (acc_copyout): Likewise.
3683 (acc_delete_async): New API function.
3684 (acc_copyout_async): Likewise.
3685 (update_dev_host): Add async parameter and async setting/unsetting.
3686 (acc_update_device): Adjust update_dev_host call.
3687 (acc_update_self): Likewise.
3688 (acc_update_device_async): New API function.
3689 (acc_update_self_async): Likewise.
3690 * openacc.h (acc_copyin_async): Declare new API function.
3691 (acc_create_async): Likewise.
3692 (acc_copyout_async): Likewise.
3693 (acc_delete_async): Likewise.
3694 (acc_update_device_async): Likewise.
3695 (acc_update_self_async): Likewise.
3696 (acc_memcpy_to_device_async): Likewise.
3697 (acc_memcpy_from_device_async): Likewise.
3698 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
3699 (acc_copyin_async_64_h): New subroutine.
3700 (acc_copyin_async_array_h): New subroutine.
3701 (acc_create_async_32_h): New subroutine.
3702 (acc_create_async_64_h): New subroutine.
3703 (acc_create_async_array_h): New subroutine.
3704 (acc_copyout_async_32_h): New subroutine.
3705 (acc_copyout_async_64_h): New subroutine.
3706 (acc_copyout_async_array_h): New subroutine.
3707 (acc_delete_async_32_h): New subroutine.
3708 (acc_delete_async_64_h): New subroutine.
3709 (acc_delete_async_array_h): New subroutine.
3710 (acc_update_device_async_32_h): New subroutine.
3711 (acc_update_device_async_64_h): New subroutine.
3712 (acc_update_device_async_array_h): New subroutine.
3713 (acc_update_self_async_32_h): New subroutine.
3714 (acc_update_self_async_64_h): New subroutine.
3715 (acc_update_self_async_array_h): New subroutine.
3716 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
3717 (acc_copyin_async_64_h): New subroutine.
3718 (acc_copyin_async_array_h): New subroutine.
3719 (acc_create_async_32_h): New subroutine.
3720 (acc_create_async_64_h): New subroutine.
3721 (acc_create_async_array_h): New subroutine.
3722 (acc_copyout_async_32_h): New subroutine.
3723 (acc_copyout_async_64_h): New subroutine.
3724 (acc_copyout_async_array_h): New subroutine.
3725 (acc_delete_async_32_h): New subroutine.
3726 (acc_delete_async_64_h): New subroutine.
3727 (acc_delete_async_array_h): New subroutine.
3728 (acc_update_device_async_32_h): New subroutine.
3729 (acc_update_device_async_64_h): New subroutine.
3730 (acc_update_device_async_array_h): New subroutine.
3731 (acc_update_self_async_32_h): New subroutine.
3732 (acc_update_self_async_64_h): New subroutine.
3733 (acc_update_self_async_array_h): New subroutine.
3734 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
3735 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
3736 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
3737 acc_memcpy_to_device_async*, acc_update_device_async*, and
3738 acc_update_self_async* entries.
3739 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
3740 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
3741 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
3742
22e05272
JM
37432018-10-31 Joseph Myers <joseph@codesourcery.com>
3744
3745 PR bootstrap/82856
3746 * Makefile.am: Include multilib.am
3747 (AUTOMAKE_OPTIONS): Add info-in-builddir.
3748 (CLEANFILES): Remove libgomp.info.
3749 * configure.ac: Remove AC_PREREQ.
3750 * testsuite/Makefile.am (RUNTEST): Remove quotes.
3751 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
3752 Regenerate.
3753
87a5ccfb
JM
37542018-10-29 Joseph Myers <joseph@codesourcery.com>
3755 Julian Brown <julian@codesourcery.com>
3756
3757 * testsuite/libgomp.oacc-c++/this.C: New.
3758
2049befd
CP
37592018-09-18 Cesar Philippidis <cesar@codesourcery.com>
3760
3761 * plugin/plugin-nvptx.c (struct cuda_map): New.
3762 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
3763 h_tail with (cuda_map *) map.
3764 (cuda_map_create): New function.
3765 (cuda_map_destroy): New function.
3766 (map_init): Update to use a linked list of cuda_map objects.
3767 (map_fini): Likewise.
3768 (map_pop): Likewise.
3769 (map_push): Likewise. Return CUdeviceptr instead of void.
3770 (init_streams_for_device): Remove stales references to ptx_stream
3771 members.
3772 (select_stream_for_async): Likewise.
3773 (nvptx_exec): Update call to map_init.
3774
8e36332c
CP
37752018-09-09 Cesar Philippidis <cesar@codesourcery.com>
3776 Julian Brown <julian@codesourcery.com>
3777
3778 PR middle-end/86336
3779 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
3780
2b4c9065
NK
37812018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
3782 Thomas Koenig <tkoenig@gcc.gnu.org>
3783
3784 PR fortran/25829
3785 * testsuite/libgomp.fortran/async_io_1.f90: New test.
3786 * testsuite/libgomp.fortran/async_io_2.f90: New test.
3787 * testsuite/libgomp.fortran/async_io_3.f90: New test.
3788 * testsuite/libgomp.fortran/async_io_4.f90: New test.
3789 * testsuite/libgomp.fortran/async_io_5.f90: New test.
3790 * testsuite/libgomp.fortran/async_io_6.f90: New test.
3791 * testsuite/libgomp.fortran/async_io_7.f90: New test.
3792
bd9b3d3d
CP
37932018-08-13 Cesar Philippidis <cesar@codesourcery.com>
3794 Tom de Vries <tdevries@suse.de>
3795
3796 PR target/85590
3797 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
3798 (cuOccupancyMaxPotentialBlockSize): Declare.
3799 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
3800 CUDA_ONE_CALL_MAYBE_NULL.
3801 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
3802 CUoccupancyB2DSize and declare
3803 cuOccupancyMaxPotentialBlockSize.
3804 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
3805 default num_gangs and num_workers when the driver supports it.
3806
8e09a12f
TV
38072018-08-08 Tom de Vries <tdevries@suse.de>
3808
3809 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
3810 CUDA_ONE_CALL_MAYBE_NULL.
3811 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
3812 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
3813 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
3814 are not found.
3815
cedd9bd0
TV
38162018-08-08 Tom de Vries <tdevries@suse.de>
3817
3818 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
3819 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
3820 present.
3821
b113af95
TV
38222018-08-08 Tom de Vries <tdevries@suse.de>
3823
3824 * plugin/plugin-nvptx.c
3825 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
3826 (nvptx_open_device): Use
3827 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
3828
94767dac
TV
38292018-08-08 Tom de Vries <tdevries@suse.de>
3830
3831 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
3832 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
3833
02150de8
TV
38342018-08-07 Tom de Vries <tdevries@suse.de>
3835
3836 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
3837 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
3838 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
3839 corresponding call in CUDA_ONE_CALL. Add def/undef of
3840 CUDA_ONE_CALL_MAYBE_NULL.
3841 (CUDA_CALL_EXISTS): Define.
3842
9e28b107
TV
38432018-08-07 Tom de Vries <tdevries@suse.de>
3844
3845 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
3846 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
3847 corresponding undefs right after.
3848
09940090
TV
38492018-08-04 Tom de Vries <tdevries@suse.de>
3850
3851 * plugin/configfrag.ac: For --without-cuda-driver, set
3852 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
3853 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
3854 * configure: Regenerate.
3855
77e0a97a
TV
38562018-08-02 Tom de Vries <tdevries@suse.de>
3857
3858 PR target/86660
3859 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
3860 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
3861 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
3862 Same.
3863 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
3864 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
3865 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
3866
701d080a
CP
38672018-08-01 Cesar Philippidis <cesar@codesourcery.com>
3868 Thomas Schwinge <thomas@codesourcery.com>
3869
3870 * config/nvptx/oacc-parallel.c: Truncate.
3871
094db6be
CP
38722018-08-01 Cesar Philippidis <cesar@codesourcery.com>
3873 James Norris <jnorris@codesourcery.com>
3874
3875 * plugin/plugin-nvptx.c (struct map): Removed.
701d080a
CP
3876 (map_init, map_pop): Remove use of struct map.
3877 (map_push): Likewise and change argument list.
094db6be
CP
3878 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
3879
8c6310a2
TV
38802018-08-01 Tom de Vries <tdevries@suse.de>
3881
3882 * plugin/cuda-lib.def: New file. Factor out of ...
3883 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
3884 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
3885 using CUDA_CALLS.
3886
1d4a51cf
AV
38872018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
3888
3889 Revert 'AsyncI/O patch committed'.
3890 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
3891 Thomas Koenig <tkoenig@gcc.gnu.org>
3892
3893 PR fortran/25829
3894 * testsuite/libgomp.fortran/async_io_1.f90: New test.
3895 * testsuite/libgomp.fortran/async_io_2.f90: New test.
3896 * testsuite/libgomp.fortran/async_io_3.f90: New test.
3897 * testsuite/libgomp.fortran/async_io_4.f90: New test.
3898 * testsuite/libgomp.fortran/async_io_5.f90: New test.
3899 * testsuite/libgomp.fortran/async_io_6.f90: New test.
3900 * testsuite/libgomp.fortran/async_io_7.f90: New test.
3901
4cdfee3f
TV
39022018-07-30 Tom de Vries <tdevries@suse.de>
3903
3904 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
3905 (nvptx_exec): Ensure worker and vector default dims don't exceed
3906 targ_fn->max_threads_per_block.
3907
0b210c43
TV
39082018-07-30 Tom de Vries <tdevries@suse.de>
3909
3910 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
3911 (nvptx_open_device): Init default_dims for device.
3912 (nvptx_exec): Use default_dims from device.
3913
5883c5cc
JJ
39142018-07-26 Jakub Jelinek <jakub@redhat.com>
3915
5d36384c
JJ
3916 PR testsuite/86660
3917 * testsuite/libgomp.c++/for-15.C (results): Include it in
3918 omp declare target region.
3919 (main): Use map (always, tofrom: results) instead of
3920 map (tofrom: results).
3921
5883c5cc
JJ
3922 PR middle-end/86660
3923 * testsuite/libgomp.c/pr86660.c: New test.
3924
88a4654d
CP
39252018-07-26 Cesar Philippidis <cesar@codesourcery.com>
3926 Tom de Vries <tdevries@suse.de>
3927
3928 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
3929 sufficient resources to launch a kernel, and give a hint on how to fix
3930 it.
3931
0c6c2f5f
CP
39322018-07-26 Cesar Philippidis <cesar@codesourcery.com>
3933 Tom de Vries <tdevries@suse.de>
3934
3935 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
3936 max_threads_per_block and max_threads_per_multiprocessor fields.
3937 (nvptx_open_device): Initialize new fields.
3938 (nvptx_exec): Use num_sms, and new fields.
3939
6dd58010
TV
39402018-07-26 Tom de Vries <tdevries@suse.de>
3941
3942 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
3943 to correct locations. Remove xfail.
3944
b2eb1779
TV
39452018-07-26 Tom de Vries <tdevries@suse.de>
3946
3947 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
3948 acc_wait. Move acc_async_test calls to correct locations. Remove
3949 xfail.
3950
b1f45884
NK
39512018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
3952 Thomas Koenig <tkoenig@gcc.gnu.org>
3953
3954 PR fortran/25829
3955 * testsuite/libgomp.fortran/async_io_1.f90: New test.
3956 * testsuite/libgomp.fortran/async_io_2.f90: New test.
3957 * testsuite/libgomp.fortran/async_io_3.f90: New test.
3958 * testsuite/libgomp.fortran/async_io_4.f90: New test.
3959 * testsuite/libgomp.fortran/async_io_5.f90: New test.
3960 * testsuite/libgomp.fortran/async_io_6.f90: New test.
3961 * testsuite/libgomp.fortran/async_io_7.f90: New test.
3962
3a106211
JJ
39632018-07-17 Jakub Jelinek <jakub@redhat.com>
3964
a3bccfa1
JJ
3965 PR middle-end/86542
3966 * testsuite/libgomp.c++/pr86542.C: New test.
3967
3a106211
JJ
3968 PR middle-end/86539
3969 * testsuite/libgomp.c++/pr86539.C: New test.
3970
2bae8b2f
JJ
39712018-07-11 Jakub Jelinek <jakub@redhat.com>
3972
3973 PR c++/86443
3974 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
3975 (results): Make sure the variable is not inside declare target region.
3976 (qux): Remove unused function.
3977
0b27c3ed
JJ
39782018-07-10 Jakub Jelinek <jakub@redhat.com>
3979
3980 PR c++/86443
3981 * testsuite/libgomp.c++/for-15.C: New test.
3982
f0391511
JJ
39832018-06-26 Jakub Jelinek <jakub@redhat.com>
3984
3985 PR c++/86291
3986 * testsuite/libgomp.c++/pr86291.C: New test.
3987
1a6d1d24
GP
39882018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
3989
3990 * libgomp.texi (Top): Move www.openmp.org to https.
3991 (Enabling OpenMP): Ditto.
3992 (omp_get_active_level): Ditto.
3993 (omp_get_ancestor_thread_num): Ditto.
3994 (omp_get_cancellation): Ditto.
3995 (omp_get_default_device): Ditto.
3996 (omp_get_dynamic): Ditto.
3997 (omp_get_level): Ditto.
3998 (omp_get_max_active_levels): Ditto.
3999 (omp_get_max_task_priority): Ditto.
4000 (omp_get_max_threads): Ditto.
4001 (omp_get_nested): Ditto.
4002 (omp_get_num_devices): Ditto.
4003 (omp_get_num_procs): Ditto.
4004 (omp_get_num_teams): Ditto.
4005 (omp_get_num_threads): Ditto.
4006 (omp_get_proc_bind): Ditto.
4007 (omp_get_schedule): Ditto.
4008 (omp_get_team_num): Ditto.
4009 (omp_get_team_size): Ditto.
4010 (omp_get_thread_limit): Ditto.
4011 (omp_get_thread_num): Ditto.
4012 (omp_in_parallel): Ditto.
4013 (omp_in_final): Ditto.
4014 (omp_is_initial_device): Ditto.
4015 (omp_set_default_device): Ditto.
4016 (omp_set_dynamic): Ditto.
4017 (omp_set_max_active_levels): Ditto.
4018 (omp_set_nested): Ditto.
4019 (omp_set_num_threads): Ditto.
4020 (omp_set_schedule): Ditto.
4021 (omp_init_lock): Ditto.
4022 (omp_set_lock): Ditto.
4023 (omp_test_lock): Ditto.
4024 (omp_unset_lock): Ditto.
4025 (omp_destroy_lock): Ditto.
4026 (omp_init_nest_lock): Ditto.
4027 (omp_set_nest_lock): Ditto.
4028 (omp_test_nest_lock): Ditto.
4029 (omp_unset_nest_lock): Ditto.
4030 (omp_destroy_nest_lock): Ditto.
4031 (omp_get_wtick): Ditto.
4032 (omp_get_wtime): Ditto.
4033 (OMP_CANCELLATION): Ditto.
4034 (OMP_DISPLAY_ENV): Ditto.
4035 (OMP_DEFAULT_DEVICE): Ditto.
4036 (OMP_DYNAMIC): Ditto.
4037 (OMP_MAX_ACTIVE_LEVELS): Ditto.
4038 (OMP_MAX_TASK_PRIORITY): Ditto.
4039 (OMP_NESTED): Ditto.
4040 (OMP_NUM_THREADS): Ditto.
4041 (OMP_PROC_BIND): Ditto.
4042 (OMP_PLACES): Ditto.
4043 (OMP_STACKSIZE): Ditto.
4044 (OMP_SCHEDULE): Ditto.
4045 (OMP_THREAD_LIMIT): Ditto.
4046 (OMP_WAIT_POLICY): Ditto.
4047
31dd69b7
CP
40482018-06-22 Cesar Philippidis <cesar@codesourcery.com>
4049 James Norris <jnorris@codesourcery.com>
4050 Julian Brown <julian@codesourcery.com>
4051 Thomas Schwinge <thomas@codesourcery.com>
4052 Tom de Vries <tom@codesourcery.com>
4053
4054 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
4055 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
4056 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
4057 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
4058 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
4059 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
4060 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
4061 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
4062 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
4063 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
4064 Likewise.
4065 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
4066 Likewise.
4067 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
4068 Likewise.
4069 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
4070 Likewise.
4071 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
4072 Likewise.
4073 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
4074 Likewise.
4075 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4076 Likewise.
4077 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4078 Likewise.
4079 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4080 Likewise.
4081 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4082 Likewise.
4083 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4084 Likewise.
4085 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
4086 Likewise.
4087 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
4088 Likewise.
4089 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
4090 Likewise.
4091 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
4092 Likewise.
4093 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4094 Likewise.
4095 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4096 Likewise.
4097 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4098 Likewise.
4099 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4100 Likewise.
4101 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4102 Likewise.
4103 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4104 Likewise.
4105 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4106 Likewise.
4107 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4108 Likewise.
4109 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4110 Likewise.
4111 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4112 Likewise.
4113 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4114 Likewise.
4115 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
4116 Likewise.
4117 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
4118 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
4119 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
4120 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
4121 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
4122 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
4123 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
4124 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
4125 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
4126 Likewise.
4127 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
4128 Likewise.
4129 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
4130 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
4131 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
4132 Likewise.
4133 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
4134 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
4135 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
4136 Likewise.
4137 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4138 Likewise.
4139 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4140 Likewise.
4141 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4142 Likewise.
4143 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4144 Likewise.
4145 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
4146 Likewise.
4147 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
4148 Likewise.
4149 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
4150 Likewise.
4151 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
4152 Likewise.
4153 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
4154 Likewise.
4155 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
4156 Likewise.
4157 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
4158 Likewise.
4159 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
4160 Likewise.
4161 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
4162 Likewise.
4163 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
4164 Likewise.
4165 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
4166 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
4167 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
4168 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
4169 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
4170 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
4171 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
4172
829c6349
CLT
41732018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
4174 Thomas Schwinge <thomas@codesourcery.com>
4175 Cesar Philippidis <cesar@codesourcery.com>
4176
4177 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
4178 (gomp_acc_remove_pointer): Update declaration.
4179 (gomp_acc_declare_allocate): Declare.
4180 (gomp_remove_var): Declare.
4181 * libgomp.map (OACC_2.5): Define.
4182 * oacc-mem.c (acc_map_data): Update refcount.
4183 (acc_unmap_data): Likewise.
4184 (present_create_copy): Likewise.
4185 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
4186 (acc_copyin): Likewise.
4187 (FLAG_FINALIZE): Define.
4188 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
4189 (acc_delete_finalize): New function.
4190 (acc_delete_finalize_async): New function.
4191 (acc_copyout_finalize): New function.
4192 (acc_copyout_finalize_async): New function.
4193 (gomp_acc_insert_pointer): Update refcounts.
4194 (gomp_acc_remove_pointer): Return if data is not present on the
4195 accelerator.
4196 * oacc-parallel.c (find_pset): Rename to find_pointer.
4197 (find_pointer): Add support for GOMP_MAP_POINTER.
4198 (handle_ftn_pointers): New function.
4199 (GOACC_parallel_keyed): Update refcounts of variables.
4200 (GOACC_enter_exit_data): Add support for finalized data mappings.
4201 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
4202 of fortran arrays.
4203 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
4204 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
4205 for GOMP_MAP_FORCE_FROM.
4206 * openacc.f90 (module openacc_internal): Add
4207 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
4208 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
4209 acc_copyout_finalize and acc_delete_finalize.
4210 (acc_copyout_finalize_32_h): New subroutine.
4211 (acc_copyout_finalize_64_h): New subroutine.
4212 (acc_copyout_finalize_array_h): New subroutine.
4213 (acc_delete_finalize_32_h): New subroutine.
4214 (acc_delete_finalize_64_h): New subroutine.
4215 (acc_delete_finalize_array_h): New subroutine.
4216 * openacc.h (acc_copyout_finalize): Declare.
4217 (acc_copyout_finalize_async): Declare.
4218 (acc_delete_finalize): Declare.
4219 (acc_delete_finalize_async): Declare.
4220 * openacc_lib.h (acc_copyout_finalize): New interface.
4221 (acc_delete_finalize): New interface.
4222 * target.c (gomp_map_vars): Update dynamic_refcount.
4223 (gomp_remove_var): New function.
4224 (gomp_unmap_vars): Use it.
4225 (gomp_unload_image_from_device): Likewise.
4226 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
4227 case to utilize OpenACC 2.5 data clause semantics.
4228 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
4229 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
4230 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
4231 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
4232 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
4233 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
4234 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
4235 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
4236 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
4237 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
4238 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
4239 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
4240 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
4241 utilize OpenACC 2.5 data clause semantics.
4242 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
4243 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
4244 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
4245 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
4246 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
4247 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
4248 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
4249 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
4250 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4251
4358400b
JW
42522018-05-21 Janus Weil <janus@gcc.gnu.org>
4253
4254 PR fortran/85841
4255 PR testsuite/85865
4256 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
4257 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
4258 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
4259 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
4260 * testsuite/libgomp.fortran/task2.f90: Ditto.
4261 * testsuite/libgomp.fortran/vla1.f90: Ditto.
4262 * testsuite/libgomp.fortran/vla2.f90: Ditto.
4263 * testsuite/libgomp.fortran/vla3.f90: Ditto.
4264 * testsuite/libgomp.fortran/vla4.f90: Ditto.
4265 * testsuite/libgomp.fortran/vla5.f90: Ditto.
4266 * testsuite/libgomp.fortran/vla6.f90: Ditto.
4267 * testsuite/libgomp.fortran/vla8.f90: Ditto.
4268 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
4269 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
4270
950ad0ba
CP
42712018-05-18 Cesar Philippidis <cesar@codesourcery.com>
4272
4273 PR c++/85782
4274 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
4275
f5ad16f1
TV
42762018-05-09 Tom de Vries <tom@codesourcery.com>
4277
4278 PR libgomp/82901
4279 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
4280 to GOACC_enter_exit_data.
4281
edbd038a
TV
42822018-05-09 Tom de Vries <tom@codesourcery.com>
4283
4284 PR libgomp/83792
4285 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
4286 (async_synchronous_p): New function.
4287 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
4288 async_valid_p.
4289 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
4290 async_valid_stream_id_p.
4291 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
4292 * oacc-parallel.c (GOACC_parallel_keyed): Same.
4293
37d6c719
TV
42942018-05-07 Tom de Vries <tom@codesourcery.com>
4295
4296 PR testsuite/85677
4297 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
4298 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
4299
63f12215
TV
43002018-05-03 Tom de Vries <tom@codesourcery.com>
4301
4302 PR testsuite/85106
4303 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
4304 extra_tool_flags if it contains an -foffload=-fdump-* flag.
4305 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
4306 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
4307
ec00d3fa
TV
43082018-05-02 Tom de Vries <tom@codesourcery.com>
4309
4310 PR libgomp/85411
4311 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
4312 GOMP_OPENACC_DIM ...
4313 * env.c (parse_gomp_openacc_dim): ... here. New function.
4314 (initialize_env): Call parse_gomp_openacc_dim.
4315 (goacc_default_dims): Define.
4316 * libgomp.h (goacc_default_dims): Declare.
4317 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
4318 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
4319 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
4320 GOMP_PLUGIN_acc_default_dim.
4321 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
4322 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
4323
92243e7c
TV
43242018-05-02 Tom de Vries <tom@codesourcery.com>
4325
4326 PR testsuite/83791
4327 * testsuite/libgomp.c++/udr-9.C: Update.
4328 * testsuite/libgomp.c++/atomic-16.C: Remove.
4329 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
4330 * testsuite/libgomp.c++/loop-13.C: Remove.
4331 * testsuite/libgomp.c++/loop-14.C: Remove.
4332 * testsuite/libgomp.c++/loop-15.C: Remove.
4333 * testsuite/libgomp.c++/monotonic-1.C: Remove.
4334 * testsuite/libgomp.c++/monotonic-2.C: Remove.
4335 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
4336 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
4337 * testsuite/libgomp.c++/ordered-1.C: Remove.
4338 * testsuite/libgomp.c++/pr45784.C: Remove.
4339 * testsuite/libgomp.c++/pr64824.C: Remove.
4340 * testsuite/libgomp.c++/pr64868.C: Remove.
4341 * testsuite/libgomp.c++/pr66199-1.C: Remove.
4342 * testsuite/libgomp.c++/pr66199-2.C: Remove.
4343 * testsuite/libgomp.c++/pr66199-3.C: Remove.
4344 * testsuite/libgomp.c++/pr66199-4.C: Remove.
4345 * testsuite/libgomp.c++/pr66199-5.C: Remove.
4346 * testsuite/libgomp.c++/pr66199-6.C: Remove.
4347 * testsuite/libgomp.c++/pr66199-7.C: Remove.
4348 * testsuite/libgomp.c++/pr66199-8.C: Remove.
4349 * testsuite/libgomp.c++/pr66199-9.C: Remove.
4350 * testsuite/libgomp.c++/pr69389.C: Remove.
4351 * testsuite/libgomp.c++/simd10.C: Remove.
4352 * testsuite/libgomp.c++/simd11.C: Remove.
4353 * testsuite/libgomp.c++/simd12.C: Remove.
4354 * testsuite/libgomp.c++/simd13.C: Remove.
4355 * testsuite/libgomp.c++/target-1.C: Remove.
4356 * testsuite/libgomp.c++/target-3.C: Remove.
4357 * testsuite/libgomp.c++/target-4.C: Remove.
4358 * testsuite/libgomp.c++/target-5.C: Remove.
4359 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
4360 * testsuite/libgomp.c++/taskloop-1.C: Remove.
4361 * testsuite/libgomp.c++/taskloop-2.C: Remove.
4362 * testsuite/libgomp.c++/taskloop-3.C: Remove.
4363 * testsuite/libgomp.c++/taskloop-4.C: Remove.
4364 * testsuite/libgomp.c++/udr-9.C: Remove.
4365 * testsuite/libgomp.c++/for-10.C: Remove.
4366 * testsuite/libgomp.c++/for-11.C: Remove.
4367 * testsuite/libgomp.c++/for-12.C: Remove.
4368 * testsuite/libgomp.c++/for-13.C: Remove.
4369 * testsuite/libgomp.c++/for-14.C: Remove.
4370 * testsuite/libgomp.c++/for-9.C: Remove.
4371 * testsuite/libgomp.c/atomic-18.c: Move ...
4372 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
4373 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
4374 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
4375 * testsuite/libgomp.c/loop-13.c: Move ...
4376 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
4377 * testsuite/libgomp.c/loop-14.c: Move ...
4378 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
4379 * testsuite/libgomp.c/loop-15.c: Remove.
4380 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
4381 * testsuite/libgomp.c/monotonic-1.c: Move ...
4382 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
4383 * testsuite/libgomp.c/monotonic-2.c: Move ...
4384 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
4385 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
4386 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
4387 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
4388 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
4389 * testsuite/libgomp.c/ordered-4.c: Move ...
4390 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
4391 * testsuite/libgomp.c/pr45784.c: Move ...
4392 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
4393 * testsuite/libgomp.c/pr64824.c: Move ...
4394 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
4395 * testsuite/libgomp.c/pr64868.c: Move ...
4396 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
4397 * testsuite/libgomp.c/pr66199-1.c: Move ...
4398 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
4399 * testsuite/libgomp.c/pr66199-2.c: Move ...
4400 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
4401 * testsuite/libgomp.c/pr66199-3.c: Move ...
4402 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
4403 * testsuite/libgomp.c/pr66199-4.c: Move ...
4404 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
4405 * testsuite/libgomp.c/pr66199-5.c: Move ...
4406 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
4407 * testsuite/libgomp.c/pr66199-6.c: Move ...
4408 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
4409 * testsuite/libgomp.c/pr66199-7.c: Move ...
4410 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
4411 * testsuite/libgomp.c/pr66199-8.c: Move ...
4412 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
4413 * testsuite/libgomp.c/pr66199-9.c: Move ...
4414 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
4415 * testsuite/libgomp.c/pr69389.c: Move ...
4416 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
4417 * testsuite/libgomp.c/simd-14.c: Move ...
4418 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
4419 * testsuite/libgomp.c/simd-15.c: Move ...
4420 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
4421 * testsuite/libgomp.c/simd-16.c: Move ...
4422 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
4423 * testsuite/libgomp.c/simd-17.c: Move ...
4424 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
4425 * testsuite/libgomp.c/target-1.c: Move ...
4426 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
4427 * testsuite/libgomp.c/target-10.c: Move ...
4428 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
4429 * testsuite/libgomp.c/target-13.c: Move ...
4430 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
4431 * testsuite/libgomp.c/target-2.c: Move ...
4432 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
4433 * testsuite/libgomp.c/taskgroup-1.c: Move ...
4434 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
4435 * testsuite/libgomp.c/taskloop-1.c: Move ...
4436 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
4437 * testsuite/libgomp.c/taskloop-2.c: Move ...
4438 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
4439 * testsuite/libgomp.c/taskloop-3.c: Move ...
4440 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
4441 * testsuite/libgomp.c/taskloop-4.c: Move ...
4442 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
4443 * testsuite/libgomp.c/udr-1.c: Move ...
4444 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
4445 * testsuite/libgomp.c/for-1.c: Move ...
4446 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
4447 * testsuite/libgomp.c/for-1.h: Move ...
4448 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
4449 * testsuite/libgomp.c/for-2.c: Move ...
4450 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
4451 * testsuite/libgomp.c/for-2.h: Move ...
4452 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
4453 * testsuite/libgomp.c/for-3.c: Move ...
4454 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
4455 * testsuite/libgomp.c/for-4.c: Move ...
4456 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
4457 * testsuite/libgomp.c/for-5.c: Move ...
4458 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
4459 * testsuite/libgomp.c/for-6.c: Move ...
4460 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
4461
1f62d637
TV
44622018-05-02 Tom de Vries <tom@codesourcery.com>
4463
4464 PR libgomp/82428
4465 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
4466 __builtin_goacc_parlevel_{id,size}.
4467 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
4468 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
4469 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
4470 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
4471 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
4472 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
4473 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
4474 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
4475 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
4476 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
4477 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
4478 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
4479 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
4480 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
4481 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
4482 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
4483 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
4484 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
4485 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
4486 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
4487 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
4488 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
4489 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
4490
9220b511
TV
44912018-05-02 Tom de Vries <tom@codesourcery.com>
4492
4493 PR testsuite/85106
4494 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
4495
6c3c13c1
TV
44962018-05-02 Tom de Vries <tom@codesourcery.com>
4497
4498 PR testsuite/85106
4499 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
4500
8d70b61e
JB
45012018-04-29 Julian Brown <julian@codesourcery.com>
4502 Tom de Vries <tom@codesourcery.com>
4503
4504 PR testsuite/85527
4505 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
4506 arbitrary order for iterations of atomic subtract check.
4507
4a57a4b6
TV
45082018-04-28 Tom de Vries <tom@codesourcery.com>
4509
4510 PR testsuite/85527
4511 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
4512 atomic capture results obtained in parallel loop to an array, instead of
4513 to a scalar.
4514
df36a3d3
TV
45152018-04-26 Tom de Vries <tom@codesourcery.com>
4516
4517 PR libgomp/84020
4518 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
4519 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
4520 (process_GOMP_NVPTX_JIT): New function.
4521 (link_ptx): Use process_GOMP_NVPTX_JIT.
4522
d160ae78
RB
45232018-04-26 Richard Biener <rguenther@suse.de>
4524 Tom de Vries <tom@codesourcery.com>
4525
4526 PR lto/85422
4527 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
4528
ca9dc642
TV
45292018-04-26 Tom de Vries <tom@codesourcery.com>
4530
4531 PR target/85519
4532 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
4533 recursion depth from 25 to 23.
4534 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
4535
7b47ecf2
L
45362018-04-24 H.J. Lu <hongjiu.lu@intel.com>
4537
4538 * configure: Regenerated.
4539
e91eba31
NS
45402018-04-20 Nathan Sidwell <nathan@codesourcery.com>
4541 Tom de Vries <tom@codesourcery.com>
4542
4543 PR target/85445
4544 * testsuite/libgomp.oacc-c++/ref-1.C: New.
4545
6e0d40b6
TS
45462018-04-19 Thomas Schwinge <thomas@codesourcery.com>
4547
4548 PR libgomp/85463
4549 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
4550 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
4551 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
4552 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
4553 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
4554 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
4555
4556 PR libfortran/85166
4557 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
4558 abort".
4559 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
4560
a0e1df88
JJ
45612018-04-19 Jakub Jelinek <jakub@redhat.com>
4562
4563 * configure: Regenerated.
4564
001ddaa8
DM
45652018-04-18 David Malcolm <dmalcolm@redhat.com>
4566
4567 PR jit/85384
4568 * configure: Regenerate.
4569
05e0af43
CP
45702018-04-16 Cesar Philippidis <cesar@codesourcery.com>
4571 Tom de Vries <tom@codesourcery.com>
4572
4573 PR middle-end/84955
4574 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
4575 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
4576
bc436e10
TK
45772018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
4578
4579 PR fortran/83064
4580 PR testsuite/85346
4581 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
4582 test from gfortran.dg to here.
4583
ffb164c7
JJ
45842018-04-12 Cesar Philippidis <cesar@codesourcery.com>
4585
4586 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
4587 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
4588
45892018-04-12 Cesar Philippidis <cesar@codesourcery.com>
4590
4591 PR middle-end/84955
4592 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
4593 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
4594
2ba16fd2
TV
45952018-04-05 Tom de Vries <tom@codesourcery.com>
4596
4597 PR target/85204
4598 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
4599
46dbeb40
TV
46002018-03-26 Tom de Vries <tom@codesourcery.com>
4601
4602 PR tree-optimization/85063
4603 * testsuite/libgomp.c/switch-conversion-2.c: New test.
4604 * testsuite/libgomp.c/switch-conversion.c: New test.
4605 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
4606 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
4607
bfc24e32
TK
46082018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
4609
4610 PR fortran/84381
4611 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
4612 call abort by STOP n.
4613 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
4614 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
4615 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
4616 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
4617 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
4618 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
4619 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
4620 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
4621 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
4622 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
4623 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
4624 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
4625 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
4626 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
4627 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
4628 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
4629 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
4630 * testsuite/libgomp.fortran/associate1.f90: Likewise.
4631 * testsuite/libgomp.fortran/associate2.f90: Likewise.
4632 * testsuite/libgomp.fortran/associate3.f90: Likewise.
4633 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
4634 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
4635 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
4636 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
4637 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
4638 * testsuite/libgomp.fortran/character1.f90: Likewise.
4639 * testsuite/libgomp.fortran/character2.f90: Likewise.
4640 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
4641 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
4642 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
4643 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
4644 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
4645 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
4646 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
4647 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
4648 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
4649 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
4650 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
4651 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
4652 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
4653 * testsuite/libgomp.fortran/do1.f90: Likewise.
4654 * testsuite/libgomp.fortran/do2.f90: Likewise.
4655 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
4656 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
4657 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
4658 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
4659 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
4660 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
4661 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
4662 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
4663 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
4664 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
4665 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
4666 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
4667 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
4668 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
4669 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
4670 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
4671 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
4672 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
4673 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
4674 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
4675 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
4676 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
4677 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
4678 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
4679 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
4680 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
4681 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
4682 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
4683 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
4684 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
4685 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
4686 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
4687 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
4688 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
4689 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
4690 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
4691 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
4692 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
4693 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
4694 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
4695 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
4696 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
4697 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
4698 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
4699 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
4700 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
4701 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
4702 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
4703 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
4704 * testsuite/libgomp.fortran/lib1.f90: Likewise.
4705 * testsuite/libgomp.fortran/lib2.f: Likewise.
4706 * testsuite/libgomp.fortran/lib3.f: Likewise.
4707 * testsuite/libgomp.fortran/lib4.f90: Likewise.
4708 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
4709 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
4710 * testsuite/libgomp.fortran/nested1.f90: Likewise.
4711 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
4712 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
4713 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
4714 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
4715 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
4716 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
4717 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
4718 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
4719 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
4720 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
4721 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
4722 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
4723 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
4724 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
4725 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
4726 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
4727 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
4728 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
4729 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
4730 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
4731 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
4732 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
4733 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
4734 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
4735 * testsuite/libgomp.fortran/pr25162.f: Likewise.
4736 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
4737 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
4738 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
4739 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
4740 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
4741 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
4742 * testsuite/libgomp.fortran/pr28390.f: Likewise.
4743 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
4744 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
4745 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
4746 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
4747 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
4748 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
4749 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
4750 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
4751 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
4752 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
4753 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
4754 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
4755 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
4756 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
4757 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
4758 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
4759 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
4760 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
4761 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
4762 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
4763 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
4764 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
4765 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
4766 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
4767 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
4768 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
4769 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
4770 * testsuite/libgomp.fortran/reference1.f90: Likewise.
4771 * testsuite/libgomp.fortran/reference2.f90: Likewise.
4772 * testsuite/libgomp.fortran/retval1.f90: Likewise.
4773 * testsuite/libgomp.fortran/retval2.f90: Likewise.
4774 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
4775 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
4776 * testsuite/libgomp.fortran/simd1.f90: Likewise.
4777 * testsuite/libgomp.fortran/simd2.f90: Likewise.
4778 * testsuite/libgomp.fortran/simd3.f90: Likewise.
4779 * testsuite/libgomp.fortran/simd4.f90: Likewise.
4780 * testsuite/libgomp.fortran/simd5.f90: Likewise.
4781 * testsuite/libgomp.fortran/simd6.f90: Likewise.
4782 * testsuite/libgomp.fortran/simd7.f90: Likewise.
4783 * testsuite/libgomp.fortran/stack.f90: Likewise.
4784 * testsuite/libgomp.fortran/strassen.f90: Likewise.
4785 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
4786 * testsuite/libgomp.fortran/tabs2.f: Likewise.
4787 * testsuite/libgomp.fortran/target1.f90: Likewise.
4788 * testsuite/libgomp.fortran/target2.f90: Likewise.
4789 * testsuite/libgomp.fortran/target3.f90: Likewise.
4790 * testsuite/libgomp.fortran/target4.f90: Likewise.
4791 * testsuite/libgomp.fortran/target5.f90: Likewise.
4792 * testsuite/libgomp.fortran/target6.f90: Likewise.
4793 * testsuite/libgomp.fortran/target7.f90: Likewise.
4794 * testsuite/libgomp.fortran/target8.f90: Likewise.
4795 * testsuite/libgomp.fortran/task1.f90: Likewise.
4796 * testsuite/libgomp.fortran/task2.f90: Likewise.
4797 * testsuite/libgomp.fortran/task3.f90: Likewise.
4798 * testsuite/libgomp.fortran/task4.f90: Likewise.
4799 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
4800 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
4801 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
4802 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
4803 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
4804 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
4805 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
4806 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
4807 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
4808 * testsuite/libgomp.fortran/udr1.f90: Likewise.
4809 * testsuite/libgomp.fortran/udr10.f90: Likewise.
4810 * testsuite/libgomp.fortran/udr11.f90: Likewise.
4811 * testsuite/libgomp.fortran/udr12.f90: Likewise.
4812 * testsuite/libgomp.fortran/udr13.f90: Likewise.
4813 * testsuite/libgomp.fortran/udr14.f90: Likewise.
4814 * testsuite/libgomp.fortran/udr15.f90: Likewise.
4815 * testsuite/libgomp.fortran/udr2.f90: Likewise.
4816 * testsuite/libgomp.fortran/udr3.f90: Likewise.
4817 * testsuite/libgomp.fortran/udr4.f90: Likewise.
4818 * testsuite/libgomp.fortran/udr5.f90: Likewise.
4819 * testsuite/libgomp.fortran/udr6.f90: Likewise.
4820 * testsuite/libgomp.fortran/udr7.f90: Likewise.
4821 * testsuite/libgomp.fortran/udr8.f90: Likewise.
4822 * testsuite/libgomp.fortran/udr9.f90: Likewise.
4823 * testsuite/libgomp.fortran/vla1.f90: Likewise.
4824 * testsuite/libgomp.fortran/vla2.f90: Likewise.
4825 * testsuite/libgomp.fortran/vla3.f90: Likewise.
4826 * testsuite/libgomp.fortran/vla4.f90: Likewise.
4827 * testsuite/libgomp.fortran/vla5.f90: Likewise.
4828 * testsuite/libgomp.fortran/vla6.f90: Likewise.
4829 * testsuite/libgomp.fortran/vla7.f90: Likewise.
4830 * testsuite/libgomp.fortran/vla8.f90: Likewise.
4831 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
4832 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
4833 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
4834 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
4835 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4836 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4837 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4838 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4839 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4840 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4841 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
4842 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
4843 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
4844 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
4845 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
4846 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
4847 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
4848 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
4849 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
4850 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
4851 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
4852 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
4853 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
4854 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
4855 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
4856 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
4857 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
4858 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
4859 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
4860 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
4861 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
4862 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4863 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4864 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4865 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4866 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4867 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
4868 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
4869 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
4870 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4871 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
4872 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4873 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
4874 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
4875 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
4876 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
4877 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
4878 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
4879 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
4880 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
4881 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
4882 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
4883 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
4884 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4885 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
4886 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
4887 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
4888 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
4889 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
4890 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
4891 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
4892 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
4893 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
4894 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
4895 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
4896 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
4897 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
4898 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4899 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4900 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
4901 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
4902 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
4903 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
4904 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
4905 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
4906 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
4907 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
4908 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
4909 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
4910 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
4911 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4912 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4913 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4914 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
4915 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
4916 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
4917 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
4918 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
4919 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
4920 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
4921 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
4922 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
4923 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
4924 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
4925
79cf14ae
RB
49262018-03-20 Richard Biener <rguenther@suse.de>
4927
4928 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
4929 parallelizable loop.
4930
14e335ed
IT
49312018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
4932
4933 PR target/84148
4934 * configure: Regenerate.
4935
83d9be55
JJ
49362018-02-16 Jakub Jelinek <jakub@redhat.com>
4937
4938 PR fortran/84418
4939 * libgomp.fortran/pr84418-1.f90: New test.
4940 * libgomp.fortran/pr84418-2.f90: New test.
4941
d1fe6124
JJ
49422018-02-14 Jakub Jelinek <jakub@redhat.com>
4943
4944 PR fortran/84313
4945 * testsuite/libgomp.fortran/threadprivate4.f90: Add
4946 -std=f2003 -fall-intrinsics into dg-additional-options.
4947
3d224921
MJ
49482018-02-08 Martin Jambor <mjambor@suse.cz>
4949
4950 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
4951 clonable.
4952
c7c30edd
MJ
49532018-02-08 Martin Jambor <mjambor@suse.cz>
4954
4955 * testsuite/libgomp.hsa.c/staticvar.c: New test.
4956
f320fdfd
RO
49572018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4958
4959 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
4960 [__cplusplus]: Declare extern "C".
4961
c31bc4ac
TV
49622018-02-07 Tom de Vries <tom@codesourcery.com>
4963
4964 PR libgomp/84217
4965 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
4966
99ae7ce5
CS
49672018-01-29 Christoph Spiel <cspiel@freenet.de>
4968 Jakub Jelinek <jakub@redhat.com>
4969
4970 PR libgomp/84096
4971 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
4972 instead of omp_lock_t.
4973
e77a1236
TV
49742018-01-25 Tom de Vries <tom@codesourcery.com>
4975
4976 PR target/84028
4977 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
4978
3dede32b
TV
49792018-01-24 Tom de Vries <tom@codesourcery.com>
4980
4981 PR target/83589
4982 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
4983
be606483
TV
49842018-01-24 Tom de Vries <tom@codesourcery.com>
4985
4986 PR target/81352
4987 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
4988
8c8e9a6b
TV
49892018-01-19 Tom de Vries <tom@codesourcery.com>
4990 Cesar Philippidis <cesar@codesourcery.com>
4991
4992 PR target/83920
4993 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
4994 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
4995
65e6aea3
JJ
49962018-01-03 Jakub Jelinek <jakub@redhat.com>
4997
85ec4feb
JJ
4998 Update copyright years.
4999
65e6aea3
JJ
5000 * libgomp.texi: Bump @copying's copyright year.
5001
60bf575c
TV
50022017-12-30 Tom de Vries <tom@codesourcery.com>
5003
5004 PR libgomp/83046
5005 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
5006 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
5007
7ec16b79
TV
50082017-12-27 Tom de Vries <tom@codesourcery.com>
5009
5010 PR c++/83046
5011 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
5012 (test_nonstatic): Fix return type to workaround PR83046.
5013
ac550b9a
JJ
50142017-12-05 Jakub Jelinek <jakub@redhat.com>
5015
5016 PR testsuite/83281
5017 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
5018 j suffix instead of i.
5019 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
5020 Likewise.
5021
ebdc83f0
CP
50222017-12-01 Cesar Philippidis <cesar@codesourcery.com>
5023
5024 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
5025 call to acc_wait (1).
5026
3b3e6283
JJ
50272017-11-24 Jakub Jelinek <jakub@redhat.com>
5028
5029 PR fortran/81304
5030 * testsuite/libgomp.fortran/pr81304.f90: New test.
5031
3b575376
JJ
50322017-11-23 Jakub Jelinek <jakub@redhat.com>
5033
5034 PR fortran/81841
5035 * libgomp.fortran/pr81841.f90: New test.
5036
b13547d8
JJ
50372017-11-22 Jakub Jelinek <jakub@redhat.com>
5038
5039 PR libgomp/83106
5040 * target.c (gomp_target_init): Compute lengths just once and
5041 use them in both malloc size and subsequent copying.
5042
efe33ced
IT
50432017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
5044
5045 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
5046 * acinclude.m4: Add cet.m4.
5047 * configure: Regenerate.
5048 * Makefile.in: Likewise.
5049 * testsuite/Makefile.in: Likewise.
5050
a7cf2612
TV
50512017-11-15 Tom de Vries <tom@codesourcery.com>
5052
5053 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
5054 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
5055 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
5056 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
5057 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
5058 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
5059
dde76623
TV
50602017-11-14 Tom de Vries <tom@codesourcery.com>
5061
5062 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
5063 non-nvidia devices.
5064
4dbeb716
JJ
50652017-11-07 Jakub Jelinek <jakub@redhat.com>
5066
5067 PR c++/82835
5068 * testsuite/libgomp.c++/pr82835.C: New test.
5069
454f8b2b
ML
50702017-11-06 Martin Liska <mliska@suse.cz>
5071
5072 * testsuite/libgomp.c++/loop-2.C: Return a value
5073 for functions with non-void return type, or change type to void,
5074 or add -Wno-return-type for test.
5075 * testsuite/libgomp.c++/loop-4.C: Likewise.
5076 * testsuite/libgomp.c++/parallel-1.C: Likewise.
5077 * testsuite/libgomp.c++/shared-1.C: Likewise.
5078 * testsuite/libgomp.c++/single-1.C: Likewise.
5079 * testsuite/libgomp.c++/single-2.C: Likewise.
5080
12e9c8ce
TV
50812017-10-31 Tom de Vries <tom@codesourcery.com>
5082
5083 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
5084 "do {} while (false)".
5085 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
5086 after HSA_DEBUG call.
5087
7324369a
JJ
50882017-10-28 Jakub Jelinek <jakub@redhat.com>
5089
5090 * target.c (struct gomp_coalesce_buf): New type.
5091 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
5092 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
5093 (gomp_copy_host2dev): Add CBUF argument, if copying into
5094 the cached ranges, memcpy into buffer instead of copying
5095 into device.
5096 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
5097 Add CBUF argument, pass it through to other calls.
5098 (gomp_map_vars): Aggregate copies from host to device if small enough
5099 and with small enough gaps in between into memcpy into a buffer and
5100 fewer host to device copies from the buffer.
5101 (gomp_update): Adjust gomp_copy_host2dev caller.
5102
933ab0e6
TS
51032017-10-17 Thomas Schwinge <thomas@codesourcery.com>
5104
5105 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
5106 run" directive.
5107 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
5108 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
5109 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
5110 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
5111
92d5d01a
TV
51122017-10-16 Tom de Vries <tom@codesourcery.com>
5113
5114 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
5115 openacc_nvidia_accel_selected.
5116 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
5117 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
5118 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
5119 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
5120 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
5121 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
5122 openacc_nvidia_accel_selected. Skip for shared memory device.
5123 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
5124 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
5125
191411e4
MJ
51262017-10-09 Martin Jambor <mjambor@suse.cz>
5127
5128 PR hsa/82416
5129 * testsuite/libgomp.hsa.c/pr82416.c: New test.
5130
e923330e
TV
51312017-10-07 Tom de Vries <tom@codesourcery.com>
5132
5133 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
5134 Remove acc_device_nvidia references.
5135 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
5136 Same.
5137
8fe3ed4c
TV
51382017-10-05 Tom de Vries <tom@codesourcery.com>
5139
5140 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
5141 vector_length(32) clause from acc parallel directive.
5142 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
5143
26596ee5
TV
51442017-10-04 Tom de Vries <tom@codesourcery.com>
5145
5146 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
5147 (main): Reduce sum of arr elements. Assert that hres is exactly
5148 representable in 32-bit floating point.
5149 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
5150 (main): Reduce sum of arr elements. Assert that hres and hmres are
5151 exactly representable in 32-bit floating point.
5152 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
5153
5c561fa9
TV
51542017-09-28 Tom de Vries <tom@codesourcery.com>
5155
5156 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
5157 setting.
5158 * testsuite/libgomp.c++/pr69393.C: Same.
5159 * testsuite/libgomp.c++/taskloop-1.C: Same.
5160 * testsuite/libgomp.c++/taskloop-3.C: Same.
5161 * testsuite/libgomp.c++/taskloop-4.C: Same.
5162 * testsuite/libgomp.c/for-4.c: Same.
5163 * testsuite/libgomp.c/pr66199-3.c: Same.
5164 * testsuite/libgomp.c/pr66199-4.c: Same.
5165 * testsuite/libgomp.c/pr66199-6.c: Same.
5166 * testsuite/libgomp.c/taskloop-1.c: Same.
5167 * testsuite/libgomp.c/taskloop-3.c: Same.
5168 * testsuite/libgomp.c/taskloop-4.c: Same.
5169 * testsuite/libgomp.fortran/aligned1.f03: Same.
5170 * testsuite/libgomp.fortran/condinc1.f: Same.
5171 * testsuite/libgomp.fortran/condinc3.f90: Same.
5172 * testsuite/libgomp.fortran/crayptr1.f90: Same.
5173 * testsuite/libgomp.fortran/crayptr2.f90: Same.
5174 * testsuite/libgomp.fortran/crayptr3.f90: Same.
5175 * testsuite/libgomp.fortran/omp_cond1.f: Same.
5176 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
5177 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
5178 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
5179 * testsuite/libgomp.fortran/recursion1.f90: Same.
5180 * testsuite/libgomp.fortran/target2.f90: Same.
5181 * testsuite/libgomp.fortran/target5.f90: Same.
5182 * testsuite/libgomp.fortran/task3.f90: Same.
5183
7d6206fe
TV
51842017-09-28 Tom de Vries <tom@codesourcery.com>
5185
5186 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
5187 vector_length(32) clause from acc parallel directive.
5188 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
5189
84c8627c
TV
51902017-09-27 Tom de Vries <tom@codesourcery.com>
5191
5192 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
5193 Remove acc_device_nvidia references.
5194
ebc6a85e
TV
51952017-09-16 Tom de Vries <tom@codesourcery.com>
5196
5197 PR c/81875
5198 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
5199
82419efb
TV
52002017-09-14 Tom de Vries <tom@codesourcery.com>
5201
5202 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
5203 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
5204 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
5205 * testsuite/libgomp.c/c.exp: Include test-cases from
5206 libgomp.c-c++-common.
5207 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
5208 files.
5209
8b586510
JJ
52102017-09-14 Jakub Jelinek <jakub@redhat.com>
5211
5212 PR c++/81314
5213 * testsuite/libgomp.c++/pr81314.C: New test.
5214
9651fbaf
GP
52152017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
5216
5217 * libgomp.texi (Top): www.openacc.org now uses https.
5218 (Enabling OpenACC): Ditto.
5219 (acc_get_num_devices): Ditto.
5220 (acc_set_device_type): Ditto.
5221 (acc_get_device_type): Ditto.
5222 (acc_set_device_num): Ditto.
5223 (acc_get_device_num): Ditto.
5224 (acc_async_test): Ditto.
5225 (acc_async_test_all): Ditto.
5226 (acc_wait): Ditto.
5227 (acc_wait_all): Ditto.
5228 (acc_wait_all_async): Ditto.
5229 (acc_wait_async): Ditto.
5230 (acc_init): Ditto.
5231 (acc_shutdown): Ditto.
5232 (acc_on_device): Ditto.
5233 (acc_malloc): Ditto.
5234 (acc_free): Ditto.
5235 (acc_copyin): Ditto.
5236 (acc_present_or_copyin): Ditto.
5237 (acc_create): Ditto.
5238 (acc_present_or_create): Ditto.
5239 (acc_copyout): Ditto.
5240 (acc_delete): Ditto.
5241 (acc_update_device): Ditto.
5242 (acc_update_self): Ditto.
5243 (acc_map_data): Ditto.
5244 (acc_unmap_data): Ditto.
5245 (acc_deviceptr): Ditto.
5246 (acc_hostptr): Ditto.
5247 (acc_is_present): Ditto.
5248 (acc_memcpy_to_device): Ditto.
5249 (acc_memcpy_from_device): Ditto.
5250 (acc_get_current_cuda_device): Ditto.
5251 (acc_get_current_cuda_context): Ditto.
5252 (acc_get_cuda_stream): Ditto.
5253 (acc_set_cuda_stream): Ditto.
5254 (ACC_DEVICE_TYPE): Ditto.
5255 (ACC_DEVICE_NUM): Ditto.
5256 (OpenACC Library Interoperability): Ditto.
5257
50aa16c3
JJ
52582017-08-09 Jakub Jelinek <jakub@redhat.com>
5259
5260 PR c/81687
5261 * testsuite/libgomp.c/pr81687-1.c: New test.
5262 * testsuite/libgomp.c/pr81687-2.c: New test.
5263
56b5041c
JJ
52642017-08-07 Jakub Jelinek <jakub@redhat.com>
5265
5266 PR c/69389
5267 * testsuite/libgomp.c/pr69389.c: New test.
5268 * testsuite/libgomp.c++/pr69389.C: New test.
5269
f4c222c0
TV
52702017-08-07 Tom de Vries <tom@codesourcery.com>
5271
5272 PR middle-end/78266
5273 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
5274 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
5275
a40ff0ae
JJ
52762017-07-27 Jakub Jelinek <jakub@redhat.com>
5277
5278 PR c/45784
5279 * testsuite/libgomp.c/pr45784.c: New test.
5280 * testsuite/libgomp.c++/pr45784.C: New test.
5281
3717fbe3
TV
52822017-07-19 Tom de Vries <tom@codesourcery.com>
5283
5284 * testsuite/libgomp.oacc-c/vec.c: New test.
5285
9607b014
TV
52862017-07-03 Tom de Vries <tom@codesourcery.com>
5287
5288 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
5289
dfb15f6b
TV
52902017-06-27 Tom de Vries <tom@codesourcery.com>
5291
5292 * plugin/plugin-nvptx.c (notify_var): New function.
5293 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
5294
22f1a037
TV
52952017-06-27 Tom de Vries <tom@codesourcery.com>
5296
5297 * env.c (parse_unsigned_long_1): Factor out of ...
5298 (parse_unsigned_long): ... here.
5299 (parse_int_1): Factor out of ...
5300 (parse_int): ... here.
5301 (parse_int_secure): New function.
5302 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
5303 * secure_getenv.h: Factor out of ...
5304 * plugin/plugin-hsa.c: ... here.
5305 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
5306
d54d1fc3
JJ
53072017-06-21 Jakub Jelinek <jakub@redhat.com>
5308
5309 PR c++/81130
5310 * testsuite/libgomp.c++/pr81130.C: New test.
5311
4f4b0ab8
RO
53122017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5313
5314 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
5315 default args.
5316 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
5317 dg-xfail-run-if default args.
5318
40ffd95f
BE
53192017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5320
5321 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
5322 * testsuite/libgomp.c/pr39591-3.c: Likewise.
5323
01275e1e
JJ
53242017-05-30 Jakub Jelinek <jakub@redhat.com>
5325
5326 PR libgomp/80822
5327 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
5328 (gomp_affinity_init_level): Use it. Always analyze the core and thread
5329 sibling lists, depending on level just pick up what CPUs to put
5330 together into a place vs. whether add multiple ordered places.
5331
78672bd8
TS
53322017-05-24 Thomas Schwinge <thomas@codesourcery.com>
5333
7ce64403
TS
5334 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
5335 * libgomp.map (OACC_2.0.1): Add these.
5336 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
5337 for "acc_wait", and "acc_wait_all", respectively.
5338 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
5339 for "acc_wait", and "acc_wait_all", respectively.
5340 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
5341 * libgomp.texi (acc_wait, acc_wait_all): Update.
5342 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
5343 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
5344 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5345
318686c2
TS
5346 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
5347 acc_present_or_copyin and acc_present_or_create procedures,
5348 respectively.
5349 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
5350 generally different variants of OpenACC Runtime Library functions.
5351 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
5352
a6745534
TS
5353 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
5354 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
5355
9b94fbc7
TS
5356 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
5357 of preprocessor definitions.
5358 * libgomp.h (strong_alias): Guard by "#ifdef
5359 HAVE_ATTRIBUTE_ALIAS".
5360 * oacc-mem.c: Provide "acc_pcreate" as alias for
5361 "acc_present_or_create", and "acc_pcopyin" as alias for
5362 "acc_present_or_copyin".
5363 * libgomp.map: New version "OACC_2.0.1".
5364 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
5365 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
5366 its content into...
5367 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
5368 Extend testing.
5369
78672bd8
TS
5370 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
5371 when disabling nvptx offloading.
5372
0c36d0d5
TS
53732017-05-23 Thomas Schwinge <thomas@codesourcery.com>
5374
fd71a9a2
TS
5375 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
5376 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5377 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
5378
0c36d0d5
TS
5379 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
5380 * testsuite/lib/libgomp.exp
5381 (check_effective_target_openacc_nvidia_accel_configured): New
5382 proc.
5383 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
5384 (check_effective_target_c++): New procs.
5385 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
5386 (check_effective_target_c++): Likewise.
5387
c24783c4
JJ
53882017-05-22 Jakub Jelinek <jakub@redhat.com>
5389
655e5265
JJ
5390 PR middle-end/80809
5391 * testsuite/libgomp.c/pr80809-2.c: New test.
5392 * testsuite/libgomp.c/pr80809-3.c: New test.
5393
e9e2ef9f
JJ
5394 PR middle-end/80809
5395 * testsuite/libgomp.c/pr80809-1.c: New test.
5396
c24783c4
JJ
5397 PR middle-end/80853
5398 * testsuite/libgomp.c/pr80853.c: New test.
5399
0da2f96a
TS
54002017-05-19 Thomas Schwinge <thomas@codesourcery.com>
5401
7fd549d2
TS
5402 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
5403 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
5404 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
5405 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
5406 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
5407
0da2f96a
TS
5408 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
5409 Debug output for failure.
5410
62ffe920
RO
54112017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5412
5413 * testsuite/lib/libgomp.exp: Load scanlang.exp.
5414
f49215b1
JJ
54152017-04-27 Jakub Jelinek <jakub@redhat.com>
5416
5417 PR bootstrap/80531
5418 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
5419 bootstrap compare failures.
5420
2260d19d
AM
54212017-04-20 Alexander Monakov <amonakov@ispras.ru>
5422
5423 * testsuite/libgomp.c/target-36.c: New testcase.
5424
19929ba9
JJ
54252017-04-13 Jakub Jelinek <jakub@redhat.com>
5426
5427 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
5428 instead of char.
5429
fbc698e0
JJ
54302017-04-11 Jakub Jelinek <jakub@redhat.com>
5431
5432 PR libgomp/80394
5433 * testsuite/libgomp.c/pr80394.c: New test.
5434
c4060df4
JJ
54352017-04-04 Jakub Jelinek <jakub@redhat.com>
5436
5437 PR libgomp/79876
5438 * config/posix/thread-stacksize.h: New file.
5439 * config/darwin/thread-stacksize.h: New file.
5440 * config/nvptx/thread-stacksize.h: New file.
5441 * env.c: Include thread-stacksize.h.
5442 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
5443 instead of 0. Call pthread_attr_setstacksize even if
5444 GOMP_DEFAULT_STACKSIZE is non-zero.
5445
e02d868a
JJ
54462017-03-30 Jakub Jelinek <jakub@redhat.com>
5447
5448 * env.c (initialize_env): Initialize stacksize to 0.
5449
7ba8651e
CP
54502017-03-22 Cesar Philippidis <cesar@codesourcery.com>
5451
5452 PR c++/80029
5453 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
5454
eebc5e2d
JJ
54552017-03-08 Jakub Jelinek <jakub@redhat.com>
5456
5457 PR c/79940
5458 * testsuite/libgomp.c/pr79940.c: New test.
5459
1eb08f52
RO
54602017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5461
5462 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
5463 targets.
5464 Add __float128 options.
5465
b0f78ff3
JDA
54662017-02-11 John David Anglin <danglin@gcc.gnu.org>
5467
5468 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
5469 hppa*-*-* dg-skip-if directive.
5470
1bbe0d8f
JJ
54712017-02-09 Jakub Jelinek <jakub@redhat.com>
5472
5473 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
5474 dg-skip-if directive into a comment.
5475
02889d23
CLT
54762017-02-09 Nathan Sidwell <nathan@codesourcery.com>
5477 Chung-Lin Tang <cltang@codesourcery.com>
5478
5479 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
5480 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
5481 add additional case.
5482 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
5483 "openacc_nvidia_accel_selected".
5484 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
5485 Add num_workers(8) clause.
5486
5896a41d
JDA
54872017-02-08 John David Anglin <danglin@gcc.gnu.org>
5488
5489 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
5490 hppa*-*-*.
5491 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
5492 include complex.h on hppa*-*-hpux*.
5493 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
5494
345a8c17
TS
54952017-02-02 Thomas Schwinge <thomas@codesourcery.com>
5496
e70ab10d
TS
5497 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
5498
345a8c17
TS
5499 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
5500 GOMP_OFFLOAD_openacc_exec. Adjust all users.
5501 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
5502 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
5503 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
5504 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
5505 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
5506 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
5507 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
5508 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
5509
dced339c
TS
55102017-01-31 Thomas Schwinge <thomas@codesourcery.com>
5511
5512 * libgomp-plugin.h: #include <stdbool.h>.
5513 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
5514 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
5515 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
5516 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
5517 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
5518 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
5519 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
5520 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
5521 (GOMP_OFFLOAD_openacc_register_async_cleanup)
5522 (GOMP_OFFLOAD_openacc_async_test)
5523 (GOMP_OFFLOAD_openacc_async_test_all)
5524 (GOMP_OFFLOAD_openacc_async_wait)
5525 (GOMP_OFFLOAD_openacc_async_wait_async)
5526 (GOMP_OFFLOAD_openacc_async_wait_all)
5527 (GOMP_OFFLOAD_openacc_async_wait_all_async)
5528 (GOMP_OFFLOAD_openacc_async_set_async)
5529 (GOMP_OFFLOAD_openacc_create_thread_data)
5530 (GOMP_OFFLOAD_openacc_destroy_thread_data)
5531 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
5532 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
5533 (GOMP_OFFLOAD_openacc_get_cuda_stream)
5534 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
5535 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
5536 these.
5537 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
5538 (GOMP_OFFLOAD_unload_image): Fix argument types.
5539
23749904
JJ
55402017-01-26 Jakub Jelinek <jakub@redhat.com>
5541
c1cadde1
JJ
5542 * testsuite/lib/libgomp.exp
5543 (check_effective_target_hsa_offloading_selected_nocache): Fix up
5544 check_compile invocation. Fix up removal of executable. Drop
5545 bogus "2>&1" argument.
5546
23749904
JJ
5547 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
5548 directive.
5549
55502017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
5fd1486c
PJ
5551 Martin Jambor <mjambor@suse.cz>
5552
5553 * plugin/hsa.h: Moved to top level include.
5554 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
5555
73aa401e
JJ
55562017-01-21 Jakub Jelinek <jakub@redhat.com>
5557
5558 PR other/79046
5559 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
5560 of cat to get version from BASE-VER file.
5561 * testsuite/Makefile.in: Regenerated.
5562
b32e85fa
JJ
55632017-01-19 Jakub Jelinek <jakub@redhat.com>
5564
5565 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
5566 for _WIN64.
5567
3c36aa6b
JJ
55682017-01-17 Jakub Jelinek <jakub@redhat.com>
5569
d190d5c0
JJ
5570 * plugin/hsa.h: Add GCC runtime library exception.
5571 * plugin/hsa_ext_finalize.h: Likewise.
5572
2393d337
JJ
5573 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
5574 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
5575 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
5576 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
5577 plugin/include/cuda as include dir and -ldl instead of -lcuda as
5578 library to link ptx plugin against.
5579 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
5580 (CUDA_CALLS): Define.
5581 (cuda_lib, cuda_lib_inited): New variables.
5582 (init_cuda_lib): New function.
5583 (CUDA_CALL_PREFIX): Define.
5584 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
5585 (CUDA_CALL): Use FN instead of (FN).
5586 (CUDA_CALL_NOCHECK): Define.
5587 (cuda_error, fini_streams_for_device, select_stream_for_async,
5588 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
5589 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
5590 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
5591 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
5592 CUDA_CALL_NOCHECK.
5593 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
5594 CUDA_CALL_NOCHECK.
5595 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
5596 Use CUDA_CALL_NOCHECK.
5597 * plugin/cuda/cuda.h: New file.
5598 * config.h.in: Regenerated.
5599 * configure: Regenerated.
5600
3c36aa6b
JJ
5601 PR other/79046
5602 * configure.ac: Add GCC_BASE_VER.
5603 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
5604 get version from BASE-VER file.
5605 * testsuite/Makefile.in: Regenerated.
5606 * configure: Regenerated.
5607 * Makefile.in: Regenerated.
5608
c508bc2d
FXC
56092017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5610
5611 PR libgomp/60670
5612 * Makefile.am: Make fincludedir multilib-aware.
5613 * Makefile.in: Regenerate.
5614
c1a9c369
JJ
56152017-01-01 Jakub Jelinek <jakub@redhat.com>
5616
cbe34bb5
JJ
5617 Update copyright years.
5618
c1a9c369
JJ
5619 * libgomp.texi: Bump @copying's copyright year.
5620
e7a7f4be
SH
56212016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
5622
5623 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
5624 pthread_spinlock_t instead of gomp_mutex_t lock.
5625 (gomp_get_thread_pool): Likewise.
5626 (gomp_release_thread_pool): Likewise.
5627 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
5628 Likewise.
5629
d313d52c
SH
56302016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
5631
5632 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
5633 thread pool in case nthreads == 1.
5634
630e3c3a
AM
56352016-11-30 Alexander Monakov <amonakov@ispras.ru>
5636
5637 * config/nvptx/env.c: Delete.
5638 * icv.c: Move definitions of ICV variables back ...
5639 * env.c: ...here. Do not compile environment-related functionality if
5640 LIBGOMP_OFFLOADED_ONLY is set.
5641
9e38af5c
AM
56422016-11-30 Alexander Monakov <amonakov@ispras.ru>
5643
5644 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
5645 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
5646 * configure: Regenerate.
5647 * config.h.in: Likewise.
5648
f96b7f1f
AM
56492016-11-30 Alexander Monakov <amonakov@ispras.ru>
5650
5651 * Makefile.in: Regenerate with automake-1.11.6.
5652 * aclocal.m4: Likewise.
5653 * configure: Likewise.
5654 * testsuite/Makefile.in: Likewise.
5655
6a6951b1
AM
56562016-11-28 Alexander Monakov <amonakov@ispras.ru>
5657
5658 * config/nvptx/critical.c: Delete to use generic implementation.
5659
c7ac071f
JH
56602016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
5661
5662 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
5663 ../../affinity.c as fallback.
5664 * config/nvptx/affinity.c: Delete to use fallback implementation.
5665
6103184e 56662016-11-23 Alexander Monakov <amonakov@ispras.ru>
92a285c1 5667 Jakub Jelinek <jakub@redhat.com>
6103184e
AM
5668 Dmitry Melnik <dm@ispras.ru>
5669
5670 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
5671 * Makefile.in. Regenerate.
5672 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
5673 (LIBGOMP_USE_PTHREADS): ...here; new define.
5674 * configure: Regenerate.
5675 * config.h.in: Likewise.
5676 * config/posix/affinity.c: Move to...
5677 * affinity.c: ...here (new file). Guard use of Pthreads-specific
5678 interface by LIBGOMP_USE_PTHREADS.
5679 * critical.c: Split out GOMP_atomic_{start,end} into...
5680 * atomic.c: ...here (new file).
5681 * env.c: Split out ICV definitions into...
5682 * icv.c: ...here (new file) and...
5683 * icv-device.c: ...here. New file.
5684 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
5685 (gomp_destroy_lock_30): Ditto.
5686 (gomp_set_lock_30): Ditto.
5687 (gomp_unset_lock_30): Ditto.
5688 (gomp_test_lock_30): Ditto.
5689 (gomp_init_nest_lock_30): Ditto.
5690 (gomp_destroy_nest_lock_30): Ditto.
5691 (gomp_set_nest_lock_30): Ditto.
5692 (gomp_unset_nest_lock_30): Ditto.
5693 (gomp_test_nest_lock_30): Ditto.
5694 * lock.c: New.
5695 * config/nvptx/lock.c: New.
5696 * config/nvptx/bar.c: New.
5697 * config/nvptx/bar.h: New.
5698 * config/nvptx/doacross.h: New.
5699 * config/nvptx/error.c: New.
5700 * config/nvptx/icv-device.c: New.
5701 * config/nvptx/mutex.h: New.
5702 * config/nvptx/pool.h: New.
5703 * config/nvptx/proc.c: New.
5704 * config/nvptx/ptrlock.h: New.
5705 * config/nvptx/sem.h: New.
5706 * config/nvptx/simple-bar.h: New.
5707 * config/nvptx/target.c: New.
5708 * config/nvptx/task.c: New.
5709 * config/nvptx/team.c: New.
5710 * config/nvptx/time.c: New.
5711 * config/posix/simple-bar.h: New.
5712 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
5713 (gomp_num_teams_var): Declare.
5714 (struct gomp_thread_pool): Change threads_dock member to
5715 gomp_simple_barrier_t.
5716 [__nvptx__] (gomp_thread): New implementation.
5717 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
5718 (gomp_thread_destructor): Ditto.
5719 (gomp_init_thread_affinity): Ditto.
5720 * team.c: Guard uses of Pthreads-specific interfaces by
5721 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
5722 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
5723 * config/nvptx/alloc.c: Delete.
5724 * config/nvptx/barrier.c: Ditto.
5725 * config/nvptx/fortran.c: Ditto.
5726 * config/nvptx/iter.c: Ditto.
5727 * config/nvptx/iter_ull.c: Ditto.
5728 * config/nvptx/loop.c: Ditto.
5729 * config/nvptx/loop_ull.c: Ditto.
5730 * config/nvptx/ordered.c: Ditto.
5731 * config/nvptx/parallel.c: Ditto.
5732 * config/nvptx/priority_queue.c: Ditto.
5733 * config/nvptx/sections.c: Ditto.
5734 * config/nvptx/single.c: Ditto.
5735 * config/nvptx/splay-tree.c: Ditto.
5736 * config/nvptx/work.c: Ditto.
5737 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
5738 -foffload=-lgfortran in addition to -lgfortran.
5739 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
5740 * plugin/plugin-nvptx.c: Include <limits.h>.
5741 (struct targ_fn_descriptor): Add new fields.
5742 (struct ptx_device): Ditto. Set them...
5743 (nvptx_open_device): ...here.
5744 (nvptx_adjust_launch_bounds): New.
5745 (nvptx_host2dev): Allow NULL 'nvthd'.
5746 (nvptx_dev2host): Ditto.
5747 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
5748 (link_ptx): Adjust log sizes.
5749 (nvptx_host2dev): Allow NULL 'nvthd'.
5750 (nvptx_dev2host): Ditto.
5751 (nvptx_set_clocktick): New. Use it...
5752 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
5753 fields.
5754 (GOMP_OFFLOAD_dev2dev): New.
5755 (nvptx_adjust_launch_bounds): New.
5756 (nvptx_stacks_size): New.
5757 (nvptx_stacks_alloc): New.
5758 (nvptx_stacks_free): New.
5759 (GOMP_OFFLOAD_run): New.
5760 (GOMP_OFFLOAD_async_run): New (stub).
5761
56b1c60e
MJ
57622016-11-23 Martin Jambor <mjambor@suse.cz>
5763
5764 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
5765 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
5766 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
5767
b8d89b03 57682016-11-23 Martin Liska <mliska@suse.cz>
92a285c1 5769 Martin Jambor <mjambor@suse.cz>
b8d89b03
ML
5770
5771 * plugin/hsa.h: New file.
5772 * plugin/hsa_ext_finalize.h: New file.
5773 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
5774 header file unistd.h, and functions secure_getenv, __secure_getenv,
5775 getuid, geteuid, getgid and getegid.
5776 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
5777 -D_GNU_SOURCE.
5778 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
5779 Handle various cases of secure_getenv presence, add an implementation
5780 when we can test effective UID and GID.
5781 (struct hsa_runtime_fn_info): New structure.
5782 (hsa_runtime_fn_info hsa_fns): New variable.
5783 (hsa_runtime_lib): Likewise.
5784 (support_cpu_devices): Likewise.
5785 (init_enviroment_variables): Load newly introduced ENV
5786 variables.
5787 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
5788 (hsa_fatal): Likewise.
5789 (DLSYM_FN): New macro.
5790 (init_hsa_runtime_functions): New function.
5791 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
5792 structure. Depending on environment, also allow CPU devices.
5793 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
5794 (get_kernarg_memory_region): Likewise.
5795 (GOMP_OFFLOAD_init_device): Likewise.
5796 (destroy_hsa_program): Likewise.
5797 (init_basic_kernel_info): New function.
5798 (GOMP_OFFLOAD_load_image): Use it.
5799 (create_and_finalize_hsa_program): Call hsa run-time functions via
5800 hsa_fns structure.
5801 (create_single_kernel_dispatch): Likewise.
5802 (release_kernel_dispatch): Likewise.
5803 (init_single_kernel): Likewise.
5804 (parse_target_attributes): Allow up multiple HSA grid dimensions.
5805 (get_group_size): New function.
5806 (run_kernel): Likewise.
5807 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
5808 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
5809 structure.
5810 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
5811 * testsuite/libgomp-test-support.exp.in: Likewise.
5812 * Makefile.in: Regenerated.
5813 * aclocal.m4: Likewise.
5814 * config.h.in: Likewise.
5815 * configure: Likewise.
5816 * testsuite/Makefile.in: Likewise.
5817
18d2ada8 58182016-11-15 Martin Jambor <mjambor@suse.cz>
92a285c1 5819 Alexander Monakov <amonakov@ispras.ru>
18d2ada8
MJ
5820
5821 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
5822 mapping clauses to target constructs.
5823 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
5824
84c1b9d3
MK
58252016-11-15 Matthias Klose <doko@ubuntu.com>
5826
5827 * configure: Regenerate.
5828
b4c3a85b
JJ
58292016-11-10 Jakub Jelinek <jakub@redhat.com>
5830
8ebd1b31
JJ
5831 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
5832 * omp_lib.h.in (openmp_version): Likewise.
5833 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
5834 of 201307.
5835 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
5836
b4c3a85b
JJ
5837 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
5838 (fib_wrapper): Add map(from: x) clause.
5839 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
5840 (e_53_2): Likewise.
5841 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
5842 (accum): Add map(tmp) clause.
5843 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
5844 (accum): Add map(tofrom: tmp) clause.
5845 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
5846 (gramSchmidt): Likewise.
5847 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
5848 map(tofrom: sum) clause.
5849 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
5850 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
5851 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
5852 only allowed on the loop iterator.
5853 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
5854 * testsuite/libgomp.fortran/taskloop2.f90: New test.
5855 * testsuite/libgomp.fortran/taskloop4.f90: New test.
5856 * testsuite/libgomp.fortran/doacross1.f90: New test.
5857 * testsuite/libgomp.fortran/doacross3.f90: New test.
5858 * testsuite/libgomp.fortran/taskloop1.f90: New test.
5859 * testsuite/libgomp.fortran/taskloop3.f90: New test.
5860 * testsuite/libgomp.fortran/doacross2.f90: New test.
5861 * testsuite/libgomp.c/doacross-1.c (main): Add missing
5862 #pragma omp atomic read.
5863 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
5864 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
5865
6668eb45
CP
58662016-11-02 Cesar Philippidis <cesar@codesourcery.com>
5867 Nathan Sidwell <nathan@acm.org>
5868
5869 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
5870 to determine default geometry.
5871 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
5872 dimension.
5873
f10e37a1
JJ
58742016-11-01 Jakub Jelinek <jakub@redhat.com>
5875
5876 * hashtab.h: Use standard GPLv3 with runtime exception
5877 boilerplate.
5878
015c7760
AH
58792016-10-27 Aldy Hernandez <aldyh@redhat.com>
5880
5881 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
5882 size when allocating new thread.
5883
20a1e5b8
MP
58842016-09-14 Marek Polacek <polacek@redhat.com>
5885
5886 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
5887
1cad9284
JJ
58882016-08-19 Jakub Jelinek <jakub@redhat.com>
5889
5890 PR fortran/71014
5891 * testsuite/libgomp.fortran/pr71014.f90: New test.
5892
2c71d454
CLT
58932016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
5894
5895 PR middle-end/70895
5896 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
5897 firstprivate clauses.
5898 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
5899 copy clauses.
5900 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5901 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
5902 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
5903 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
5904 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5905 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
5906 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5907 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
5908 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5909 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5910 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5911 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
5912
7c713714
CLT
59132016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
5914
5915 PR fortran/70598
5916 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
5917
5c934396
JJ
59182016-08-08 Jakub Jelinek <jakub@redhat.com>
5919
5920 PR c++/58706
5921 * testsuite/libgomp.c++/pr58706.C: New test.
5922
9ef64248
TS
59232016-08-04 Thomas Schwinge <thomas@codesourcery.com>
5924
bbc79c0e
TS
5925 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
5926 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
5927 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
5928 Likewise.
5929 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
5930 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
5931 Likewise.
5932 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
5933
9ef64248
TS
5934 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
5935 test, and don't hardcode -O0.
5936
c1311c86
NS
59372016-08-03 Nathan Sidwell <nathan@codesourcery.com>
5938
5939 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
5940
b1c9c068
CP
59412016-07-15 Cesar Philippidis <cesar@codesourcery.com>
5942
5943 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
5944 test.
5945
b4410f63
L
59462016-07-03 H.J. Lu <hongjiu.lu@intel.com>
5947
5948 PR middle-end/71734
5949 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
5950 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
5951
a8dbab92
JJ
59522016-07-01 Jakub Jelinek <jakub@redhat.com>
5953
5954 PR fortran/71717
5955 * testsuite/libgomp.fortran/associate3.f90: New test.
5956
9b6a8d0f
JJ
59572016-06-17 Jakub Jelinek <jakub@redhat.com>
5958
5959 * testsuite/libgomp.c++/target-21.C: New test.
5960
283635f9
JJ
59612016-06-16 Jakub Jelinek <jakub@redhat.com>
5962
5963 * testsuite/libgomp.c++/target-20.C: New test.
5964
27d6ba88
TS
59652016-06-10 Thomas Schwinge <thomas@codesourcery.com>
5966 Cesar Philippidis <cesar@codesourcery.com>
5967
5968 PR middle-end/71373
5969 * libgomp.oacc-c/nested-function-1.c: New file.
5970 * libgomp.oacc-c/nested-function-2.c: Likewise.
5971 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
5972 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
5973 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
5974
4b1ffdb1
TS
59752016-06-10 Thomas Schwinge <thomas@codesourcery.com>
5976
5977 PR c/71381
5978 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
5979 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
5980 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
5981
d821b794
CLT
59822016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
5983
5984 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
5985 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
5986
3616a8c5
CP
59872016-06-01 Cesar Philippidis <cesar@codesourcery.com>
5988
5989 PR c/70688
5eed9a88 5990 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
3616a8c5 5991
7211a097
JJ
59922016-05-26 Jakub Jelinek <jakub@redhat.com>
5993
5994 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
5995 instead of invalid schedule(static, 0).
5996 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
5997
b4557008
CLT
59982016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
5999
6000 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
6001 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
6002 parameter, use to set async stream around call to gomp_unmap_vars,
6003 call gomp_unmap_vars() with 'do_copyfrom' set to true.
6004 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
6005 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
6006 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
6007 (event_add): Add int parameter, initialize 'val' field when
6008 adding new ptx_event struct.
6009 (nvptx_evec): Adjust event_add() call arguments.
6010 (nvptx_host2dev): Likewise.
6011 (nvptx_dev2host): Likewise.
6012 (nvptx_wait_async): Likewise.
6013 (nvptx_wait_all_async): Likewise.
6014 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
6015 pass to event_add() call.
6016 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
6017 parameter.
6018 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
6019 call openacc.register_async_cleanup_func() hook.
6020 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
6021 * target.c (gomp_copy_from_async): Delete function.
6022 (gomp_map_vars): Remove async_refcount.
6023 (gomp_unmap_vars): Likewise.
6024 (gomp_load_image_to_device): Likewise.
6025 (omp_target_associate_ptr): Likewise.
6026 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
6027 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
6028 (gomp_copy_from_async): Remove.
6029
6ce13072
CLT
60302016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
6031
6032 * target.c (gomp_device_copy): New function.
6033 (gomp_copy_host2dev): Likewise.
6034 (gomp_copy_dev2host): Likewise.
6035 (gomp_free_device_memory): Likewise.
6036 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
6037 (gomp_map_pointer): Likewise.
6038 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
6039 NULL value from alloc_func plugin hook.
6040 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
6041 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
6042 (gomp_unmap_vars): Likewise.
6043 (gomp_update): Adjust to call gomp_copy_dev2host and
6044 gomp_copy_host2dev functions.
6045 (gomp_unload_image_from_device): Handle false value from
6046 unload_image_func plugin hook.
6047 (gomp_init_device): Handle false value from init_device_func
6048 plugin hook.
6049 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
6050 (omp_target_free): Adjust to call gomp_free_device_memory.
6051 (omp_target_memcpy): Handle return values from host2dev_func,
6052 dev2host_func, and dev2dev_func plugin hooks.
6053 (omp_target_memcpy_rect_worker): Likewise.
6054 (gomp_target_fini): Handle false value from fini_device_func
6055 plugin hook.
6056 * libgomp.h (struct gomp_device_descr): Adjust return type of
6057 init_device_func, fini_device_func, unload_image_func, free_func,
6058 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
6059 * oacc-init.c (acc_shutdown_1): Handle false value from
6060 fini_device_func plugin hook.
6061 * oacc-host.c (host_init_device): Change return type to bool.
6062 (host_fini_device): Likewise.
6063 (host_unload_image): Likewise.
6064 (host_free): Likewise.
6065 (host_dev2host): Likewise.
6066 (host_host2dev): Likewise.
6067 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
6068 (acc_memcpy_to_device): Likewise.
6069 (acc_memcpy_from_device): Likewise.
6070 (delete_copyout): Add libfnname parameter, handle free_func
6071 hook fatal error case.
6072 (acc_delete): Adjust delete_copyout call.
6073 (acc_copyout): Likewise.
6074 (update_dev_host): Move gomp_mutex_unlock to after
6075 host2dev/dev2host hook calls.
6076
6077 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
6078 to 'hsa_error_msg', for clarity.
6079 (hsa_fatal): Likewise.
6080 (hsa_error): New function.
6081 (init_hsa_context): Change return type to bool, adjust to return
6082 false on error.
6083 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
6084 return value.
6085 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
6086 return false on error.
6087 (get_agent_info): Adjust to return NULL on error.
6088 (destroy_hsa_program): Change return type to bool, adjust to
6089 return false on error.
6090 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
6091 (destroy_module): Change return type to bool, adjust to
6092 return false on error.
6093 (GOMP_OFFLOAD_unload_image): Likewise.
6094 (GOMP_OFFLOAD_fini_device): Likewise.
6095 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
6096 (GOMP_OFFLOAD_free): Change to return false when called.
6097 (GOMP_OFFLOAD_dev2host): Likewise.
6098 (GOMP_OFFLOAD_host2dev): Likewise.
6099 (GOMP_OFFLOAD_dev2dev): Likewise.
6100
6101 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
6102 (CUDA_CALL): Likewise.
6103 (CUDA_CALL_ASSERT): Likewise.
6104 (map_init): Change return type to bool, use CUDA_CALL* macros.
6105 (map_fini): Likewise.
6106 (init_streams_for_device): Change return type to bool, adjust
6107 call to map_init.
6108 (fini_streams_for_device): Change return type to bool, adjust
6109 call to map_fini.
6110 (select_stream_for_async): Release stream_lock before calls to
6111 GOMP_PLUGIN_fatal, adjust call to map_init.
6112 (nvptx_init): Use CUDA_CALL* macros.
6113 (nvptx_attach_host_thread_to_device): Change return type to bool,
6114 use CUDA_CALL* macros.
6115 (nvptx_open_device): Use CUDA_CALL* macros.
6116 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
6117 macros.
6118 (nvptx_get_num_devices): Use CUDA_CALL* macros.
6119 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
6120 (nvptx_exec): Use CUDA_CALL* macros.
6121 (nvptx_alloc): Use CUDA_CALL* macros.
6122 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
6123 (nvptx_host2dev): Likewise.
6124 (nvptx_dev2host): Likewise.
6125 (nvptx_wait): Use CUDA_CALL* macros.
6126 (nvptx_wait_async): Likewise.
6127 (nvptx_wait_all): Likewise.
6128 (nvptx_wait_all_async): Likewise.
6129 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
6130 use CUDA_CALL* macros, adjust call to map_fini.
6131 (GOMP_OFFLOAD_init_device): Change return type to bool,
6132 adjust code accordingly.
6133 (GOMP_OFFLOAD_fini_device): Likewise.
6134 (GOMP_OFFLOAD_load_image): Adjust calls to
6135 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
6136 use CUDA_CALL* macros.
6137 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
6138 return code.
6139 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
6140 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
6141 handle error return.
6142 (GOMP_OFFLOAD_dev2host): Likewise.
6143 (GOMP_OFFLOAD_host2dev): Likewise.
6144 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
6145 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
6146
e46c7770
CP
61472016-05-24 Cesar Philippidis <cesar@codesourcery.com>
6148
6149 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
6150 (acc_free): Likewise.
6151 (acc_memcpy_to_device): Likewise.
6152 (acc_memcpy_from_device): Likewise.
6153 (acc_deviceptr): Likewise.
6154 (acc_hostptr): Likewise.
6155 (acc_is_present): Likewise.
6156 (acc_map_data): Likewise.
6157 (acc_unmap_data): Likewise.
6158 (present_create_copy): Likewise.
6159 (delete_copyout): Likewise.
6160 (update_dev_host): Likewise.
6161 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
6162 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
6163 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
6164 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
6165 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
6166 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
6167 it only runs on nvptx targets.
6168 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
6169 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
6170 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6171 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6172 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6173 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6174 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6175 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6176 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6177 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
6178 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6179 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6180 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6181 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6182 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6183 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6184 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6185 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6186 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6187 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6188 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6189 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6190 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6191
a5057543
MJ
61922016-05-23 Martin Jambor <mjambor@suse.cz>
6193
6194 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
6195
e37288a6
CLT
61962016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
6197
6198 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
6199 to gomp_init_targets_once.
6200 (acc_set_device_type): Remove !cached_base_dev condition on call to
6201 gomp_init_targets_once, move call to before acc_device_lock acquire,
6202 to avoid deadlock.
6203 (acc_get_device_num): Remove !cached_base_dev condition on call to
6204 gomp_init_targets_once.
6205 (acc_set_device_num): Likewise.
6206
51d9ed48
MJ
62072016-05-16 Martin Jambor <mjambor@suse.cz>
6208
92a285c1 6209 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
51d9ed48 6210
5b37e866
NS
62112016-05-02 Nathan Sidwell <nathan@codesourcery.com>
6212
6213 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
6214 expected partitioning.
6215
e7ff0319
CP
62162016-04-29 Cesar Philippidis <cesar@codesourcery.com>
6217
6218 PR middle-end/70626
6219 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
6220 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
6221 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
6222
c2bd3b69
AM
62232016-04-21 Alexander Monakov <amonakov@ispras.ru>
6224
6225 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
6226 non-fatal.
6227
84311083
JJ
62282016-04-19 Jakub Jelinek <jakub@redhat.com>
6229
6230 PR middle-end/70680
6231 * testsuite/libgomp.c/pr70680-1.c: New test.
6232 * testsuite/libgomp.c/pr70680-2.c: New test.
6233
aadc043f
CP
62342016-04-14 Cesar Philippidis <cesar@codesourcery.com>
6235
6236 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
6237 pass parameter variables to subroutines.
6238
e387fc64
CP
62392016-04-14 Cesar Philippidis <cesar@codesourcery.com>
6240
6241 PR middle-end/70643
6242 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
6243
10c3c424
CP
62442016-04-13 Cesar Philippidis <cesar@codesourcery.com>
6245
6246 PR testsuite/68242
6247 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
6248 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6249
27f9add3
TS
62502016-04-12 Thomas Schwinge <thomas@codesourcery.com>
6251
58d32aeb
TS
6252 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
6253 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
6254 GOACC_declare prototype.
6255
d97633ef
TS
6256 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
6257 Merge this file, and...
6258 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
6259 ... this file, and...
6260 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
6261 ... this file, and...
6262 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
6263 ... this file, and...
6264 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
6265 ... this file, and...
6266 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
6267 ... this file, and...
6268 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
6269 ... this file, and...
6270 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
6271 ... this file, and...
6272 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
6273 ... this file, and...
6274 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
6275 ... this file, and...
6276 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
6277 ... this file, and...
6278 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
6279 ... this file, and...
6280 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
6281 ... this file into...
6282 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
6283 file.
6284
27f9add3
TS
6285 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
6286 Make failure observable.
6287
21f3a236
JJ
62882016-04-12 Jakub Jelinek <jakub@redhat.com>
6289
6290 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
6291 field.
6292 * target.c (gomp_target_fallback_firstprivate,
6293 gomp_target_unshare_firstprivate): Removed.
6294 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
6295 before waiting for dependencies.
6296 (gomp_target_task_fn): Don't copy firstprivate vars here.
6297 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
6298 firstprivate_copies here.
6299 (gomp_create_target_task): Don't initialize firstprivate_copies field.
6300 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
6301 explicit/implicit firstprivate.
6302
c42cfb5c
CP
63032016-04-08 Cesar Philippidis <cesar@codesourcery.com>
6304
6305 PR lto/70289
6306 PR ipa/70348
6307 PR tree-optimization/70373
6308 PR middle-end/70533
6309 PR middle-end/70534
6310 PR middle-end/70535
6311 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
6312 test.
6313 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
6314 test.
6315 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
6316 test.
6317 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
6318 test.
6319 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
6320 test.
6321 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
6322 test.
6323 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
6324 test.
6325 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
6326 test.
6327 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
6328 test.
6329 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
6330 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
6331 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
6332 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
6333 test.
6334 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
6335 test.
6336 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
6337 test.
6338 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
6339 test.
6340 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
6341 coverage.
6342 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6343 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
6344 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
6345 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
6346 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
6347 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
6348 coverage.
6349 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6350 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6351 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6352 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6353 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
6354 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
6355 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
6356 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
6357 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
6358 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
6359 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
6360 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
6361 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6362 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6363 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
6364
2620c80d
TS
63652016-03-30 Thomas Schwinge <thomas@codesourcery.com>
6366 James Norris <jnorris@codesourcery.com>
6367 Nathan Sidwell <nathan@codesourcery.com>
6368 Julian Brown <julian@codesourcery.com>
6369 Cesar Philippidis <cesar@codesourcery.com>
6370 Chung-Lin Tang <cltang@codesourcery.com>
6371 Tom de Vries <tom@codesourcery.com>
6372
6373 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
6374 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
6375 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
6376 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
6377 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
6378 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
6379 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
6380 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
6381 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
6382 XFAIL.
6383 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
6384 Incorporate...
6385 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
6386 file.
6387 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
6388 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
6389 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
6390 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
6391 Likewise.
6392 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
6393 Likewise.
6394 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
6395 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
6396 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
6397 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
6398 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
6399 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
6400 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
6401 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
6402 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
6403 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
6404 Likewise.
6405 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
6406 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
6407 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
6408 file...
6409 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
6410 file into...
6411 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
6412 file. Update.
6413 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
6414 file.
6415 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
6416 Likewise.
6417 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
6418 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
6419 ... this new file. Update.
6420 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
6421 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
6422 ... this new file. Update.
6423 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
6424 file. Incorporate...
6425 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
6426 file, and...
6427 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
6428 file, and...
6429 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
6430 file.
6431 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
6432
ce83104b
TS
64332016-03-29 Thomas Schwinge <thomas@codesourcery.com>
6434
6435 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
6436 set-torture-options.
6437
6e0df3b7
TS
64382016-03-24 Thomas Schwinge <thomas@codesourcery.com>
6439
6440 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
6441 gcc-dg-runtest.
6442 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6443 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
6444 -fno-builtin-acc_on_device instead of -O0.
6445 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
6446 -O0.
6447 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
6448 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
6449 Likewise.
6450 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
6451 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
6452 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
6453 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
6454 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
6455 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
6456 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
6457 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6458 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6459 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
6460 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6461 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
6462 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
6463 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
6464 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
6465 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
6466 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
6467 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
6468 Don't specify -O2.
6469 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
6470 Likewise.
6471 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
6472 Likewise.
6473
f9c8babb
ML
64742016-03-24 Martin Liska <mliska@suse.cz>
6475
6476 * plugin/plugin-hsa.c (packet_store_release): New function
6477 that is taken from the HSA runtime manual.
6478 (GOMP_OFFLOAD_run): Use the function.
6479
04833609
JJ
64802016-03-23 Jakub Jelinek <jakub@redhat.com>
6481
6482 PR c++/70376
6483 * testsuite/libgomp.c++/pr70376.C: New test.
6484
d79ee524
TV
64852016-03-23 Tom de Vries <tom@codesourcery.com>
6486
6487 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
6488 initialization of lresult and lvresult.
6489 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
6490
b6d1f2b5
JN
64912016-03-23 James Norris <jnorris@codesourcery.com>
6492 Daichi Fukuoka <dc-fukuoka@sgi.com>
6493
6494 PR libgomp/69414
6495 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
6496 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
6497 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
6498 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
6499
7397fce2
ML
65002016-03-23 Martin Liska <mliska@suse.cz>
6501
6502 PR hsa/70337
6503 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
6504 argument just in case a dispatched kernel uses that argument.
6505
ee2e7d51
TS
65062016-03-16 Thomas Schwinge <thomas@codesourcery.com>
6507
6508 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
6509 -ftree-parallelize-loops/-fopenacc changes.
6510 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
6511 Likewise.
6512 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
6513 Likewise.
6514 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
6515 Likewise.
6516 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
6517 Likewise.
6518 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
6519 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
6520
be9f7143
TS
65212016-03-13 Thomas Schwinge <thomas@codesourcery.com>
6522
6523 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
6524 always_ld_library_path the path to libgcc_s.
6525
f6c1032d
CP
65262016-03-10 Cesar Philippidis <cesar@codesourcery.com>
6527
6528 PR testsuite/70009
6529 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
6530
5a6452e6
TV
65312016-03-09 Tom de Vries <tom@codesourcery.com>
6532
6533 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
6534 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
6535 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
6536 Same.
6537 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
6538 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
6539 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
6540 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
6541
96a71bd5
MJ
65422016-03-07 Martin Jambor <mjambor@suse.cz>
6543
6544 * testsuite/lib/libgomp.exp
6545 (check_effective_target_hsa_offloading_selected_nocache): New.
6546 (check_effective_target_hsa_offloading_selected): Likewise.
6547 * testsuite/libgomp.hsa.c/c.exp: Likewise.
6548 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
6549 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
6550 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
6551 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
6552 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
6553 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
6554 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
6555 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
6556 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
6557 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
6558 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
6559 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
6560 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
6561 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
6562 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
6563 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
6564
02e0b5b2
MJ
65652016-03-07 Martin Jambor <mjambor@suse.cz>
6566
6567 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
6568 non-shared memory accelerators.
6569 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
6570 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
6571 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
6572 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
6573 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
6574 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
6575 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
6576 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
6577 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
6578
45548f30
MJ
65792016-03-07 Martin Jambor <mjambor@suse.cz>
6580
6581 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
6582 ALWAYS_CFLAGS.
6583
da3d46cb
JJ
65842016-03-02 Jakub Jelinek <jakub@redhat.com>
6585
6586 PR libgomp/69555
6587 * testsuite/libgomp.c++/pr69555-1.C: New test.
6588 * testsuite/libgomp.c++/pr69555-2.C: New test.
6589
622174b2
KM
65902016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
6591 Martin Jambor <mjambor@suse.cz>
6592
6593 * testsuite/lib/libgomp.exp
6594 (check_effective_target_offload_device_shared_as): New proc.
6595 * testsuite/libgomp.c++/declare_target-1.C: New test.
6596
e6861a99
IV
65972016-02-25 Ilya Verbin <ilya.verbin@intel.com>
6598
6599 PR driver/68463
6600 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
6601
f99c3557
TS
66022016-02-23 Thomas Schwinge <thomas@codesourcery.com>
6603
6604 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
6605 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
6606 dims.
6607 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
6608 -ftree-parallelize-loops/-fopenacc changes.
6609 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
6610 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
6611 Likewise.
6612 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
6613 Likewise.
6614 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
6615 Likewise.
6616 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
6617 Likewise.
6618 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
6619 Likewise.
6620 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
6621 Likewise.
6622 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
6623 Likewise.
6624 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
6625 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
6626 Likewise.
6627 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
6628 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
6629 Likewise.
6630 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
6631 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
6632 Likewise.
6633
d5ace3b5
CP
66342016-02-22 Cesar Philippidis <cesar@codesourcery.com>
6635
6636 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
6637
f3609a89
JJ
66382016-02-19 Jakub Jelinek <jakub@redhat.com>
6639
6640 PR driver/69805
6641 * testsuite/libgomp.c/pr69805.c: New test.
6642
2175df99
TV
66432016-02-16 Tom de Vries <tom@codesourcery.com>
6644
6645 PR lto/67709
6646 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
6647
17b6426c
TV
66482016-02-09 Tom de Vries <tom@codesourcery.com>
6649
6650 PR tree-optimization/69599
6651 * testsuite/libgomp.c/omp-nested-3.c: New test.
6652 * testsuite/libgomp.c/pr46032-2.c: New test.
6653 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
6654 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
6655
34df756c
TV
66562016-02-09 Tom de Vries <tom@codesourcery.com>
6657
6658 PR lto/69707
6659 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
6660
5854ee30
AM
66612016-02-02 Alexander Monakov <amonakov@ispras.ru>
6662
6663 * testsuite/libgomp.c/target-31.c: Fix testcase.
6664
e70b6ad7
AM
66652016-02-02 Alexander Monakov <amonakov@ispras.ru>
6666
6667 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
6668 clause.
6669 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
6670 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
6671 reduction and map clauses.
6672 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
6673
bd78a45f
JN
66742016-02-02 James Norris <jnorris@codesourcery.com>
6675
6676 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
6677
41d809d3
TS
66782016-02-02 Thomas Schwinge <thomas@codesourcery.com>
6679
18f60146
TS
6680 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
6681 * oacc-parallel.c (GOACC_host_data): Remove function definition.
6682
1a06f5e6
TS
6683 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
6684 cases.
6685
033ff3d1
TS
6686 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
6687 variables.
6688 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
6689 (hsa_kmt_lib): Set variables.
6690 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
6691 always_ld_library_path.
6692 * Makefile.in: Regenerate.
6693 * configure: Likewise.
6694 * testsuite/Makefile.in: Likewise.
6695
4a88d9b7
TS
6696 * plugin/configfrag.ac (offload_additional_options)
6697 (offload_additional_lib_paths): Don't amend for hsa offloading.
6698 * configure: Regenerate.
6699
41d809d3
TS
6700 * plugin/configfrag.ac: Don't configure for offloading target if
6701 we don't build the corresponding plugin.
6702 * configure: Regenerate.
6703
b6adbb9f
NS
67042016-02-01 Nathan Sidwell <nathan@codesourcery.com>
6705
6706 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
6707 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
6708
8dfdb419
TV
67092016-01-26 Tom de Vries <tom@codesourcery.com>
6710
6711 PR tree-optimization/69110
6712 * testsuite/libgomp.c/pr69110.c: New test.
6713
02ef53f2
RB
67142016-01-25 Richard Biener <rguenther@suse.de>
6715
6716 PR lto/69393
6717 * testsuite/libgomp.c++/pr69393.C: New testcase.
6718
eb4048f2
IV
67192016-01-22 Ilya Verbin <ilya.verbin@intel.com>
6720
6721 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
6722 function wasn't mapped to the device with non-shared memory.
6723
b235cdd5
IV
67242016-01-20 Ilya Verbin <ilya.verbin@intel.com>
6725
6726 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
6727
b2b40051
MJ
67282016-01-19 Martin Jambor <mjambor@suse.cz>
6729 Martin Liska <mliska@suse.cz>
6730
6731 * plugin/Makefrag.am: Add HSA plugin requirements.
6732 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
6733 (HSA_RUNTIME_LIB): Likewise.
6734 (HSA_RUNTIME_CPPFLAGS): Likewise.
6735 (HSA_RUNTIME_INCLUDE): New substitution.
6736 (HSA_RUNTIME_LIB): Likewise.
6737 (HSA_RUNTIME_LDFLAGS): Likewise.
6738 (hsa-runtime): New configure option.
6739 (hsa-runtime-include): Likewise.
6740 (hsa-runtime-lib): Likewise.
6741 (PLUGIN_HSA): New substitution variable.
6742 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
6743 configure options.
6744 (PLUGIN_HSA_CPPFLAGS): Likewise.
6745 (PLUGIN_HSA_LDFLAGS): Likewise.
6746 (PLUGIN_HSA_LIBS): Likewise.
6747 Check that we have access to HSA run-time.
6748 * libgomp-plugin.h (offload_target_type): New element
6749 OFFLOAD_TARGET_TYPE_HSA.
6750 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
6751 args.
6752 (bool gomp_create_target_task): Updated.
6753 (gomp_device_descr): Extra parameter of run_func and async_run_func,
6754 new field can_run_func.
6755 * libgomp_g.h (GOMP_target_ext): Update prototype.
6756 * oacc-host.c (host_run): Added a new parameter args.
6757 * target.c (calculate_firstprivate_requirements): New function.
6758 (copy_firstprivate_data): Likewise.
6759 (gomp_target_fallback_firstprivate): Use them.
6760 (gomp_target_unshare_firstprivate): New function.
6761 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
6762 devices.
6763 (GOMP_target): Do host fallback for all shared memory devices. Do not
6764 pass any args to plugins.
6765 (GOMP_target_ext): Introduce device-specific argument parameter args.
6766 Allow host fallback if device shares memory. Do not remap data if
6767 device has shared memory.
6768 (gomp_target_task_fn): Likewise. Also treat shared memory devices
6769 like host fallback for mappings.
6770 (GOMP_target_data): Treat shared memory devices like host fallback.
6771 (GOMP_target_data_ext): Likewise.
6772 (GOMP_target_update): Likewise.
6773 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
6774 gomp_create_target_task.
6775 (GOMP_target_enter_exit_data): Likewise.
6776 (omp_target_alloc): Treat shared memory devices like host fallback.
6777 (omp_target_free): Likewise.
6778 (omp_target_is_present): Likewise.
6779 (omp_target_memcpy): Likewise.
6780 (omp_target_memcpy_rect): Likewise.
6781 (omp_target_associate_ptr): Likewise.
6782 (gomp_load_plugin_for_device): Also load can_run.
6783 * task.c (GOMP_PLUGIN_target_task_completion): Free
6784 firstprivate_copies.
6785 (gomp_create_target_task): Accept new argument args and store it to
6786 ttask.
6787 * plugin/plugin-hsa.c: New file.
6788
5d7804a9
TV
67892016-01-18 Tom de Vries <tom@codesourcery.com>
6790
6791 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
6792 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
6793 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
6794 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
6795 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
6796 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
6797 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
6798 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
6799 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
6800 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
6801 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
6802 Same.
6803 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
6804 Same.
6805 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
6806 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
6807 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
6808 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
6809 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
6810 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
6811 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
6812 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
6813 Same.
6814 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
6815
cb11f3cf
JJ
68162016-01-15 Jakub Jelinek <jakub@redhat.com>
6817
6818 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
6819
33a126a6
CP
68202016-01-15 Cesar Philippidis <cesar@codesourcery.com>
6821
6822 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
6823
cdf6119d
JN
68242016-01-12 James Norris <jnorris@codesourcery.com>
6825
6826 * libgomp.texi: Updates for OpenACC.
6827
0d58938e
AM
68282016-01-11 Alexander Monakov <amonakov@ispras.ru>
6829
6830 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
6831
95918b49
L
68322016-01-07 H.J. Lu <hongjiu.lu@intel.com>
6833
6834 PR fortran/66680
6835 * testsuite/libgomp.fortran/pr66680.f90: New test.
6836
8fc708b7
JJ
68372016-01-07 Jakub Jelinek <jakub@redhat.com>
6838
6839 PR middle-end/68960
6840 * testsuite/libgomp.c/pr68960.c: New test.
6841
e9b596c1
NS
68422016-01-06 Nathan Sidwell <nathan@acm.org>
6843
1a14faf2 6844 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
e9b596c1
NS
6845 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
6846
21fa2a29
JJ
68472016-01-04 Jakub Jelinek <jakub@redhat.com>
6848
818ab71a
JJ
6849 Update copyright years.
6850
21fa2a29
JJ
6851 * libgomp.texi: Bump @copying's copyright year.
6852
9310efbc
NS
68532015-12-31 Nathan Sidwell <nathan@acm.org>
6854
6855 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
6856 dg-additional-options syntax.
6857 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
6858 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
6859 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
6860 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
6861 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
6862 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
6863 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
6864 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
6865 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
6866 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
6867 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
6868 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
6869 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6870 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
6871 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
6872 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
6873 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
6874 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6875
4a38b02b
IV
68762015-12-15 Ilya Verbin <ilya.verbin@intel.com>
6877
6878 * libgomp.h (REFCOUNT_LINK): Define.
6879 (struct splay_tree_key_s): Add link_key.
6880 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
6881 Replace target address of the pointer with target address of newly
6882 mapped object in the splay tree. Set link pointer on target to the
6883 device address of the mapped object.
6884 (gomp_unmap_vars): Restore target address of the pointer in the splay
6885 tree for REFCOUNT_LINK objects after unmapping.
6886 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
6887 declare target link" objects.
6888 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
6889 "omp declare target link" objects, which were mapped for the image.
6890 (gomp_exit_data): Restore target address of the pointer in the splay
6891 tree for REFCOUNT_LINK objects after unmapping.
6892 * testsuite/libgomp.c/target-link-1.c: New file.
6893
d84ffc0a
IV
68942015-12-14 Ilya Verbin <ilya.verbin@intel.com>
6895
6896 * libgomp.h (gomp_device_state): New enum.
6897 (struct gomp_device_descr): Replace is_initialized with state.
6898 (gomp_fini_device): Remove declaration.
6899 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
6900 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
6901 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
6902 (acc_set_device_type): Use state instead of is_initialized.
6903 (acc_set_device_num): Likewise.
6904 * target.c (resolve_device): Use state instead of is_initialized.
6905 Do not initialize finalized device.
6906 (gomp_map_vars): Do nothing if device is finalized.
6907 (gomp_unmap_vars): Likewise.
6908 (gomp_update): Likewise.
6909 (GOMP_offload_register_ver): Use state instead of is_initialized.
6910 (GOMP_offload_unregister_ver): Likewise.
6911 (gomp_init_device): Likewise.
6912 (gomp_unload_device): Likewise.
6913 (gomp_fini_device): Remove.
6914 (gomp_get_target_fn_addr): Do nothing if device is finalized.
6915 (GOMP_target): Go to host fallback if device is finalized.
6916 (GOMP_target_ext): Likewise.
6917 (gomp_exit_data): Do nothing if device is finalized.
6918 (gomp_target_task_fn): Go to host fallback if device is finalized.
6919 (gomp_target_fini): New static function.
6920 (gomp_target_init): Use state instead of is_initialized.
6921 Call gomp_target_fini at exit.
6922
76680678
TV
69232015-12-09 Tom de Vries <tom@codesourcery.com>
6924
6925 PR tree-optimization/68716
6926 * testsuite/libgomp.c/omp-nested-2.c: New test.
6927
ff7a55bf
TS
69282015-12-02 Thomas Schwinge <thomas@codesourcery.com>
6929
6930 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
6931 target openacc_nvidia_accel_selected.
6932 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
6933 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
6934 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
6935 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
6936
37d5ad46
JB
69372015-12-01 Julian Brown <julian@codesourcery.com>
6938 James Norris <James_Norris@mentor.com>
6939
6940 * oacc-parallel.c (GOACC_host_data): New function.
6941 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
6942 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
6943 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
6944 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
6945 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
6946 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
6947 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
6948
db941d7e
CP
69492015-11-30 James Norris <jnorris@codesourcery.com>
6950 Cesar Philippidis <cesar@codesourcery.com>
6951
6952 libgomp/
6953 * libgomp.oacc-fortran/routine-5.f90: New test.
6954 * libgomp.oacc-fortran/routine-7.f90: New test.
6955 * libgomp.oacc-fortran/routine-9.f90: New test.
6956
e0ca27c5
TV
69572015-11-30 Tom de Vries <tom@codesourcery.com>
6958
6959 PR tree-optimization/46032
6960 * testsuite/libgomp.c/pr46032.c: New test.
6961
aec17bfe
JJ
69622015-11-27 Jakub Jelinek <jakub@redhat.com>
6963
8e4e4719
JJ
6964 PR libgomp/68579
6965 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
6966 (gomp_create_target_task): Call it before freeing
6967 GOMP_TARGET_TASK_DATA tasks.
6968
aec17bfe
JJ
6969 PR c/63326
6970 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
6971 in between case label and OpenMP standalone directives.
6972 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
6973
6cfe90e6
DE
69742015-11-26 David Edelsohn <dje.gcc@gmail.com>
6975
6976 * configure: Regenerate.
6977
0e65fd7d
JJ
69782015-11-26 Jakub Jelinek <jakub@redhat.com>
6979
6980 * testsuite/libgomp.c/target-35.c: New test.
6981
dc7a8b4b
JN
69822015-11-22 James Norris <jnorris@codesourcery.com>
6983 Cesar Philippidis <cesar@codesourcery.com>
6984
6985 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
6986 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
6987 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
6988 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
6989 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
6990
48a78aee
JJ
69912015-11-20 Jakub Jelinek <jakub@redhat.com>
6992
6993 PR middle-end/68221
6994 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
6995 * testsuite/libgomp.c/reduction-12.c: Likewise.
6996 * testsuite/libgomp.c++/reduction-11.C: Likewise.
6997 * testsuite/libgomp.c++/reduction-12.C: Likewise.
6998
2d256816
NS
69992015-11-19 Nathan Sidwell <nathan@codesourcery.com>
7000
7001 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
7002 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
7003 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
7004 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
7005 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
7006 and fix.
7007 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
7008 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
7009
33f47f42
NS
70102015-11-18 Nathan Sidwell <nathan@codesourcery.com>
7011
7012 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
7013 worker & gang cases.
7014 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
7015
3d7bfee0
CP
70162015-11-17 Cesar Philippidis <cesar@codesourcery.com>
7017
7018 * config/nvptx/priority_queue.c: New file.
7019
00b9bd52
JJ
70202015-11-14 Jakub Jelinek <jakub@redhat.com>
7021
7022 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
7023 sections.
7024
e4606348
JJ
70252015-11-14 Jakub Jelinek <jakub@redhat.com>
7026 Aldy Hernandez <aldyh@redhat.com>
7027 Ilya Verbin <ilya.verbin@intel.com>
7028
7029 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
7030 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
7031 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
7032 iterators or IV by chunk size.
7033 * parallel.c (gomp_resolve_num_threads): Don't assume that
7034 if thr->ts.team is non-NULL, then pool must be non-NULL.
7035 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
7036 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
7037 GOMP_PLUGIN_target_task_completion.
7038 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
7039 * Makefile.in: Regenerate.
7040 * libgomp.h: Shuffle prototypes and forward definitions around so
7041 priority queues can be defined.
7042 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
7043 (enum gomp_target_task_state): New enum.
7044 (struct gomp_target_task): Add state, tgt, task and team fields.
7045 (gomp_create_target_task): Change return type to bool, add
7046 state argument.
7047 (gomp_target_task_fn): Change return type to bool.
7048 (struct gomp_device_descr): Add async_run_func.
7049 (struct gomp_task): Remove children, next_child, prev_child,
7050 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
7051 Add pnode field.
7052 (struct gomp_taskgroup): Remove children.
7053 Add taskgroup_queue.
7054 (struct gomp_team): Change task_queue type to a priority queue.
7055 (splay_compare): Define inline.
7056 (priority_queue_offset): New.
7057 (priority_node_to_task): New.
7058 (task_to_priority_node): New.
7059 * oacc-mem.c: Do not include splay-tree.h.
7060 * priority_queue.c: New file.
7061 * priority_queue.h: New file.
7062 * splay-tree.c: Do not include splay-tree.h.
7063 (splay_tree_foreach_internal): New.
7064 (splay_tree_foreach): New.
7065 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
7066 (splay_tree_callback): Define typedef.
7067 * target.c (splay_compare): Move to libgomp.h.
7068 (GOMP_target): Don't adjust *thr in any way around running offloaded
7069 task.
7070 (GOMP_target_ext): Likewise. Handle target nowait.
7071 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
7072 return value from gomp_create_target_task, if false, fallthrough
7073 as if no dependencies exist.
7074 (gomp_target_task_fn): Change return type to bool, return true
7075 if the task should have another part scheduled later. Handle
7076 target nowait.
7077 (gomp_load_plugin_for_device): Initialize async_run.
7078 * task.c (gomp_init_task): Initialize children_queue.
7079 (gomp_clear_parent_in_list): New.
7080 (gomp_clear_parent_in_tree): New.
7081 (gomp_clear_parent): Handle priorities.
7082 (GOMP_task): Likewise.
7083 (priority_queue_move_task_first,
7084 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
7085 New functions.
7086 (gomp_create_target_task): Use priority queues. Change return type
7087 to bool, add state argument, return false if for async
7088 {{enter,exit} data,update} constructs no dependencies need to be
7089 waited for, handle target nowait. Set task->fn to NULL instead of
7090 gomp_target_task_fn.
7091 (verify_children_queue): Remove.
7092 (priority_list_upgrade_task): New.
7093 (priority_queue_upgrade_task): New.
7094 (verify_task_queue): Remove.
7095 (priority_list_downgrade_task): New.
7096 (priority_queue_downgrade_task): New.
7097 (gomp_task_run_pre): Use priority queues.
7098 Abstract code out to priority_queue_downgrade_task.
7099 (gomp_task_run_post_handle_dependers): Use priority queues.
7100 (gomp_task_run_post_remove_parent): Likewise.
7101 (gomp_task_run_post_remove_taskgroup): Likewise.
7102 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
7103 tasks specially.
7104 (GOMP_taskwait): Likewise.
7105 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
7106 priority-queue_upgrade_task.
7107 (GOMP_taskgroup_start): Use priority queues.
7108 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
7109 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
7110 barrier.
7111 * taskloop.c (GOMP_taskloop): Handle priorities.
7112 * team.c (gomp_new_team): Call priority_queue_init.
7113 (free_team): Call priority_queue_free.
7114 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
7115 team created for target nowait in implicit parallel region.
7116 (gomp_team_start): For nested check, test thr->ts.level instead of
7117 thr->ts.team != NULL.
7118 * testsuite/libgomp.c/doacross-3.c: New test.
7119 * testsuite/libgomp.c/ordered-5.c: New test.
7120 * testsuite/libgomp.c/priority.c: New test.
7121 * testsuite/libgomp.c/target-31.c: New test.
7122 * testsuite/libgomp.c/target-32.c: New test.
7123 * testsuite/libgomp.c/target-33.c: New test.
7124 * testsuite/libgomp.c/target-34.c: New test.
7125
1d1ab74f
NS
71262015-11-13 Nathan Sidwell <nathan@codesourcery.com>
7127
c5a64cfe
NS
7128 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
7129
1d1ab74f
NS
7130 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
7131 loop is sequential.
7132
dd3c1b14
NS
71332015-11-13 Nathan Sidwell <nathan@codesourcery.com>
7134
7135 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
7136 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
7137
6e232ba4
JN
71382015-11-12 James Norris <jnorris@codesourcery.com>
7139 Joseph Myers <joseph@codesourcery.com>
7140
7141 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
7142 * oacc-parallel.c (GOACC_declare): New function.
7143 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
7144 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
7145 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
7146 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
7147 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
7148
fffeedeb
NS
71492015-11-12 Nathan Sidwell <nathan@codesourcery.com>
7150
7151 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
7152
182190f2
NS
71532015-11-1 Nathan Sidwell <nathan@codesourcery.com>
7154
7155 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
7156 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
7157
36fa0f5f
NS
71582015-11-09 Nathan Sidwell <nathan@codesourcery.com>
7159
d350c40c
NS
7160 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
7161 inadvertent commit.
7162
71632015-11-09 Nathan Sidwell <nathan@codesourcery.com>
7164
36fa0f5f
NS
7165 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
7166 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
7167 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
7168 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
7169 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
7170
66a5f0b4
TS
71712015-11-06 Thomas Schwinge <thomas@codesourcery.com>
7172
7173 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
7174 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
7175
e01d41e5
JJ
71762015-11-05 Jakub Jelinek <jakub@redhat.com>
7177 Ilya Verbin <ilya.verbin@intel.com>
7178
7179 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
7180 GOMP_loop_nonmonotonic_dynamic_start,
7181 GOMP_loop_nonmonotonic_guided_next,
7182 GOMP_loop_nonmonotonic_guided_start,
7183 GOMP_loop_ull_nonmonotonic_dynamic_next,
7184 GOMP_loop_ull_nonmonotonic_dynamic_start,
7185 GOMP_loop_ull_nonmonotonic_guided_next,
7186 GOMP_loop_ull_nonmonotonic_guided_start,
7187 GOMP_parallel_loop_nonmonotonic_dynamic,
7188 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
7189 (GOMP_target_41): Renamed to ...
7190 (GOMP_target_ext): ... this. Add num_teams and thread_limit
7191 arguments.
7192 (GOMP_target_data_41): Renamed to ...
7193 (GOMP_target_data_ext): ... this.
7194 (GOMP_target_update_41): Renamed to ...
7195 (GOMP_target_update_ext): ... this.
7196 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
7197 GOMP_target_data_ext and GOMP_target_update_ext instead of
7198 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
7199 Export GOMP_loop_nonmonotonic_dynamic_next,
7200 GOMP_loop_nonmonotonic_dynamic_start,
7201 GOMP_loop_nonmonotonic_guided_next,
7202 GOMP_loop_nonmonotonic_guided_start,
7203 GOMP_loop_ull_nonmonotonic_dynamic_next,
7204 GOMP_loop_ull_nonmonotonic_dynamic_start,
7205 GOMP_loop_ull_nonmonotonic_guided_next,
7206 GOMP_loop_ull_nonmonotonic_guided_start,
7207 GOMP_parallel_loop_nonmonotonic_dynamic and
7208 GOMP_parallel_loop_nonmonotonic_guided.
7209 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
7210 GOMP_parallel_loop_nonmonotonic_guided,
7211 GOMP_loop_nonmonotonic_dynamic_start,
7212 GOMP_loop_nonmonotonic_guided_start,
7213 GOMP_loop_nonmonotonic_dynamic_next,
7214 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
7215 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
7216 GOMP_loop_ull_nonmonotonic_guided_start,
7217 GOMP_loop_ull_nonmonotonic_dynamic_next,
7218 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
7219 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
7220 functions.
7221 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
7222 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
7223 Use gomp_map_val function.
7224 (gomp_target_fallback_firstprivate): New static function.
7225 (GOMP_target_41): Renamed to ...
7226 (GOMP_target_ext): ... this. Add num_teams and thread_limit
7227 arguments. Move firstprivate fallback handling into a new
7228 function.
7229 (GOMP_target_data_41): Renamed to ...
7230 (GOMP_target_data_ext): ... this.
7231 (GOMP_target_update_41): Renamed to ...
7232 (GOMP_target_update_ext): ... this.
7233 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
7234 gomp_map_0len_lookup instead of gomp_map_lookup.
7235 (omp_target_is_present): Use gomp_map_0len_lookup instead of
7236 gomp_map_lookup.
7237 * testsuite/libgomp.c/target-28.c: Likewise.
7238 * testsuite/libgomp.c/monotonic-1.c: New test.
7239 * testsuite/libgomp.c/monotonic-2.c: New test.
7240 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
7241 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
7242 * testsuite/libgomp.c/pr66199-5.c: New test.
7243 * testsuite/libgomp.c/pr66199-6.c: New test.
7244 * testsuite/libgomp.c/pr66199-7.c: New test.
7245 * testsuite/libgomp.c/pr66199-8.c: New test.
7246 * testsuite/libgomp.c/pr66199-9.c: New test.
7247 * testsuite/libgomp.c/reduction-11.c: New test.
7248 * testsuite/libgomp.c/reduction-12.c: New test.
7249 * testsuite/libgomp.c/reduction-13.c: New test.
7250 * testsuite/libgomp.c/reduction-14.c: New test.
7251 * testsuite/libgomp.c/reduction-15.c: New test.
7252 * testsuite/libgomp.c/target-12.c (main): Adjust for
7253 omp_target_is_present change for one-past-last element.
7254 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
7255 the same var is both mapped and privatized.
7256 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
7257 handling of zero-length array sections.
7258 * testsuite/libgomp.c/target-28.c: New test.
7259 * testsuite/libgomp.c/target-29.c: New test.
7260 * testsuite/libgomp.c/target-30.c: New test.
7261 * testsuite/libgomp.c/target-teams-1.c: New test.
7262 * testsuite/libgomp.c++/member-6.C: New test.
7263 * testsuite/libgomp.c++/member-7.C: New test.
7264 * testsuite/libgomp.c++/monotonic-1.C: New test.
7265 * testsuite/libgomp.c++/monotonic-2.C: New test.
7266 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
7267 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
7268 * testsuite/libgomp.c++/pr66199-3.C: New test.
7269 * testsuite/libgomp.c++/pr66199-4.C: New test.
7270 * testsuite/libgomp.c++/pr66199-5.C: New test.
7271 * testsuite/libgomp.c++/pr66199-6.C: New test.
7272 * testsuite/libgomp.c++/pr66199-7.C: New test.
7273 * testsuite/libgomp.c++/pr66199-8.C: New test.
7274 * testsuite/libgomp.c++/pr66199-9.C: New test.
7275 * testsuite/libgomp.c++/reduction-11.C: New test.
7276 * testsuite/libgomp.c++/reduction-12.C: New test.
7277 * testsuite/libgomp.c++/target-13.C: New test.
7278 * testsuite/libgomp.c++/target-14.C: New test.
7279 * testsuite/libgomp.c++/target-15.C: New test.
7280 * testsuite/libgomp.c++/target-16.C: New test.
7281 * testsuite/libgomp.c++/target-17.C: New test.
7282 * testsuite/libgomp.c++/target-18.C: New test.
7283 * testsuite/libgomp.c++/target-19.C: New test.
7284
ccc8282b
NS
72852015-11-04 Nathan Sidwell <nathan@codesourcery.com>
7286
7287 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
7288 and reduction copy.
7289 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
7290 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
7291 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
7292 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
7293 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
7294 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
7295 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
7296 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
7297 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
7298 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
7299 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
7300 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
7301 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
7302 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
7303
5d6823a2
NS
73042015-11-04 Nathan Sidwell <nathan@codesourcery.com>
7305
7306 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
7307 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
7308 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
7309 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
7310 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
7311 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
7312 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
7313 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
7314
5c06742f
NS
73152015-11-03 Nathan Sidwell <nathan@codesourcery.com>
7316
7317 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
7318 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
7319 (GOMP_OFFLOAD_openacc_parallel): Likewise.
7320 * oacc-host.c (host_openacc_exec): Likewise.
7321 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
7322
4bf9e5a8
TS
73232015-11-03 Julian Brown <julian@codesourcery.com>
7324 Thomas Schwinge <thomas@codesourcery.com>
7325
7326 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
7327 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
7328 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
7329 Likewise.
7330 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
7331 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
7332
73332015-11-03 James Norris <jnorris@codesourcery.com>
7334
7335 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
7336 file.
7337 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
7338 Likewise.
7339 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
7340 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
7341 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
7342 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
7343 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
7344
a0e701d8
NS
73452015-10-29 Nathan Sidwell <nathan@codesourcery.com>
7346
7347 * openacc.h (enum acc_device_t): Reformat. Ensure layout
7348 compatibility.
7349 (enum acc_async_t): Reformat.
7350 (acc_on_device): Declare compatible with builtin and provide C++
7351 wrapper.
7352 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
7353
41e977ac
TS
73542015-10-29 Thomas Schwinge <thomas@codesourcery.com>
7355 Cesar Philippidis <cesar@codesourcery.com>
7356
7357 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
7358 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
7359 ... this. Add a description of the test at the top of the file.
7360 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
7361 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
7362 ... this. Add a description of the test at the top of the file.
7363
e3091406
NS
73642015-10-28 Nathan Sidwell <nathan@codesourcery.com>
7365
7366 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
7367 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
7368 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
7369 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
7370 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
7371 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
7372
a1c1908b
NS
73732015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7374
7375 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
7376 dimensions.
7377
b3962a4a
TS
73782015-10-27 Thomas Schwinge <thomas@codesourcery.com>
7379
7380 PR testsuite/68063
7381 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
7382
88bae6f4
TS
73832015-10-27 James Norris <jnorris@codesourcery.com>
7384
7385 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
7386 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
7387
8baa7864
TS
73882015-10-26 Thomas Schwinge <thomas@codesourcery.com>
7389
bdeb752c
TS
7390 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
7391 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
7392
ecd4fd43
TS
7393 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
7394 acc_device_nvidia usage.
7395 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
7396 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7397 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
7398
aa8b7d30
TS
7399 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
7400 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
7401
7c8f138d
TS
7402 PR libgomp/66518
7403 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
7404
8baa7864
TS
7405 PR libgomp/65437
7406 PR libgomp/66518
7407 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
7408 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
7409
88ebcde5
TV
74102015-10-23 Tom de Vries <tom@codesourcery.com>
7411
7412 PR testsuite/68063
7413 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
7414
9ef83c04
NS
74152015-10-20 Nathan Sidwell <nathan@codesourcery.com>
7416
7417 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
7418 vector_length.
7419 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
7420
3837c6d6
IV
74212015-10-14 Ilya Verbin <ilya.verbin@intel.com>
7422 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
7423
7424 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
7425 to 0 when mapnum is 0.
7426
ac8a1965
SH
74272015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
7428
7429 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
7430 Cast to int from int32_t.
7431
d9a6bd32
JJ
74322015-10-13 Jakub Jelinek <jakub@redhat.com>
7433 Aldy Hernandez <aldyh@redhat.com>
7434 Ilya Verbin <ilya.verbin@intel.com>
7435
7436 * config/linux/affinity.c (omp_get_place_num_procs,
7437 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
7438 * config/linux/doacross.h: New file.
7439 * config/posix/affinity.c (omp_get_place_num_procs,
7440 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
7441 * config/posix/doacross.h: New file.
7442 * env.c: Include gomp-constants.h.
7443 (struct gomp_task_icv): Rename run_sched_modifier to
7444 run_sched_chunk_size.
7445 (gomp_max_task_priority_var): New variable.
7446 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
7447 (handle_omp_display_env): Change _OPENMP value from 201307 to
7448 201511. Print OMP_MAX_TASK_PRIORITY.
7449 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
7450 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
7451 chunk_size and run_sched_modifier to run_sched_chunk_size.
7452 (omp_get_max_task_priority, omp_get_initial_device,
7453 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
7454 omp_get_partition_place_nums): New functions.
7455 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
7456 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
7457 to chunk_size.
7458 (omp_get_num_places_, omp_get_place_num_procs_,
7459 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
7460 omp_get_place_proc_ids_8_, omp_get_place_num_,
7461 omp_get_partition_num_places_, omp_get_partition_place_nums_,
7462 omp_get_partition_place_nums_8_, omp_get_initial_device_,
7463 omp_get_max_task_priority_): New functions.
7464 * libgomp_g.h (GOMP_loop_doacross_static_start,
7465 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
7466 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
7467 GOMP_loop_ull_doacross_dynamic_start,
7468 GOMP_loop_ull_doacross_guided_start,
7469 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
7470 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
7471 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
7472 GOMP_target_data_41, GOMP_target_update_41,
7473 GOMP_target_enter_exit_data): New prototypes.
7474 (GOMP_task): Add prototype argument.
7475 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
7476 (struct gomp_doacross_work_share): New type.
7477 (struct gomp_work_share): Add doacross field.
7478 (struct gomp_task_icv): Rename run_sched_modifier to
7479 run_sched_chunk_size.
7480 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
7481 GOMP_TASK_UNDEFERRED. Add comments.
7482 (struct gomp_task_depend_entry): Add comments.
7483 (struct gomp_task): Likewise.
7484 (struct gomp_taskgroup): Likewise.
7485 (struct gomp_target_task): New type.
7486 (struct gomp_team): Add comment.
7487 (gomp_get_place_proc_ids_8, gomp_doacross_init,
7488 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
7489 gomp_create_target_task, gomp_target_task_fn): New prototypes.
7490 (struct target_var_desc): New type.
7491 (struct target_mem_desc): Adjust comment. Use struct
7492 target_var_desc instead of splay_tree_key for list.
7493 (REFCOUNT_INFINITY): Define.
7494 (struct splay_tree_key_s): Remove copy_from field.
7495 (struct gomp_device_descr): Add dev2dev_func field.
7496 (enum gomp_map_vars_kind): New enum.
7497 (gomp_map_vars): Add one argument.
7498 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
7499 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
7500 omp_get_place_num_procs, omp_get_place_num_procs_,
7501 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
7502 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
7503 omp_get_place_num_, omp_get_partition_num_places,
7504 omp_get_partition_num_places_, omp_get_partition_place_nums,
7505 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
7506 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
7507 omp_target_free, omp_target_is_present, omp_target_memcpy,
7508 omp_target_memcpy_rect, omp_target_associate_ptr and
7509 omp_target_disassociate_ptr.
7510 (GOMP_4.0.2): Renamed to ...
7511 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
7512 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
7513 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
7514 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
7515 GOMP_loop_doacross_static_start, GOMP_doacross_post,
7516 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
7517 GOMP_loop_ull_doacross_guided_start,
7518 GOMP_loop_ull_doacross_runtime_start,
7519 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
7520 GOMP_doacross_ull_wait.
7521 * libgomp.texi: Document omp_get_max_task_priority.
7522 Rename modifier argument to chunk_size for omp_set_schedule and
7523 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
7524 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
7525 to run_sched_chunk_size renaming.
7526 (GOMP_loop_ordered_runtime_start): Likewise.
7527 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
7528 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
7529 GOMP_parallel_loop_runtime_start): New functions.
7530 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
7531 to run_sched_chunk_size renaming.
7532 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
7533 GOMP_loop_doacross_guided_start): New functions or aliases.
7534 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
7535 run_sched_modifier to run_sched_chunk_size renaming.
7536 (GOMP_loop_ull_ordered_runtime_start): Likewise.
7537 (gomp_loop_ull_doacross_static_start,
7538 gomp_loop_ull_doacross_dynamic_start,
7539 gomp_loop_ull_doacross_guided_start,
7540 GOMP_loop_ull_doacross_runtime_start): New functions.
7541 (GOMP_loop_ull_doacross_static_start,
7542 GOMP_loop_ull_doacross_dynamic_start,
7543 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
7544 * oacc-mem.c (acc_map_data, present_create_copy,
7545 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
7546 to gomp_map_vars.
7547 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
7548 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
7549 instead of false to gomp_map_vars.
7550 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
7551 * omp.h.in (omp_lock_hint_t): New type.
7552 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
7553 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
7554 omp_get_place_num, omp_get_partition_num_places,
7555 omp_get_partition_place_nums, omp_get_initial_device,
7556 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
7557 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
7558 omp_target_associate_ptr, omp_target_disassociate_ptr): New
7559 prototypes.
7560 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
7561 (omp_lock_hint_none, omp_lock_hint_uncontended,
7562 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
7563 omp_lock_hint_speculative): New parameters.
7564 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
7565 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
7566 omp_get_place_num, omp_get_partition_num_places,
7567 omp_get_partition_place_nums, omp_get_initial_device,
7568 omp_get_max_task_priority): New interfaces.
7569 (omp_set_schedule, omp_get_schedule): Rename modifier argument
7570 to chunk_size.
7571 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
7572 (omp_lock_hint_none, omp_lock_hint_uncontended,
7573 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
7574 omp_lock_hint_speculative): New parameters.
7575 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
7576 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
7577 omp_get_place_num, omp_get_partition_num_places,
7578 omp_get_partition_place_nums, omp_get_initial_device,
7579 omp_get_max_task_priority): New functions and subroutines.
7580 * ordered.c: Include stdarg.h and string.h.
7581 (MAX_COLLAPSED_BITS): Define.
7582 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
7583 gomp_doacross_ull_init, GOMP_doacross_ull_post,
7584 GOMP_doacross_ull_wait): New functions.
7585 * target.c: Include errno.h.
7586 (resolve_device): If device is not initialized, call
7587 gomp_init_device on it.
7588 (gomp_map_lookup): New function.
7589 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
7590 Don't bump refcount if REFCOUNT_INFINITY. Handle
7591 GOMP_MAP_ALWAYS_TO_P.
7592 (get_kind): Rename is_openacc argument to short_mapkind.
7593 (gomp_map_pointer): Use gomp_map_lookup.
7594 (gomp_map_fields_existing): New function.
7595 (gomp_map_vars): Rename is_openacc argument to short_mapkind
7596 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
7597 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
7598 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
7599 Adjust for tgt->list changed type and copy_from living in there.
7600 (gomp_copy_from_async): Adjust for tgt->list changed type and
7601 copy_from living in there.
7602 (gomp_unmap_vars): Likewise.
7603 (gomp_update): Likewise. Rename is_openacc argument to
7604 short_mapkind. Don't fail if object is not mapped.
7605 (gomp_load_image_to_device): Initialize refcount to
7606 REFCOUNT_INFINITY.
7607 (gomp_target_fallback): New function.
7608 (gomp_get_target_fn_addr): Likewise.
7609 (GOMP_target): Adjust gomp_map_vars caller, use
7610 gomp_get_target_fn_addr and gomp_target_fallback.
7611 (GOMP_target_41): New function.
7612 (gomp_target_data_fallback): New function.
7613 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
7614 (GOMP_target_data_41): New function.
7615 (GOMP_target_update): Adjust gomp_update caller.
7616 (GOMP_target_update_41): New function.
7617 (gomp_exit_data, GOMP_target_enter_exit_data,
7618 gomp_target_task_fn, omp_target_alloc, omp_target_free,
7619 omp_target_is_present, omp_target_memcpy,
7620 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
7621 omp_target_associate_ptr, omp_target_disassociate_ptr,
7622 gomp_load_plugin_for_device): New functions.
7623 * task.c: Include gomp-constants.h. Include taskloop.c
7624 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
7625 (gomp_task_handle_depend): New function.
7626 (GOMP_task): Use it. Add priority argument. Use
7627 gomp-constant.h constants instead of hardcoded numbers.
7628 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
7629 (gomp_create_target_task): New function.
7630 (verify_children_queue, verify_taskgroup_queue,
7631 verify_task_queue): New functions.
7632 (gomp_task_run_pre): Call verify_*_queue functions.
7633 If an upcoming tied task is about to leave the sibling or
7634 taskgroup queues in an invalid state, adjust appropriately.
7635 Remove taskgroup argument. Add comments.
7636 (gomp_task_run_post_handle_dependers): Add comments.
7637 (gomp_task_run_post_remove_parent): Likewise.
7638 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
7639 (GOMP_taskwait): Likewise. Add comments.
7640 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
7641 problem such that the first non parent_depends_on task does not
7642 end up at the end of the children queue.
7643 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
7644 GOMP_TASK_UNDEFERRED.
7645 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
7646 * taskloop.c: New file.
7647 * testsuite/lib/libgomp.exp
7648 (check_effective_target_offload_device_nonshared_as): New proc.
7649 * testsuite/libgomp.c/affinity-2.c: New test.
7650 * testsuite/libgomp.c/doacross-1.c: New test.
7651 * testsuite/libgomp.c/doacross-2.c: New test.
7652 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
7653 Add map clause to target.
7654 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
7655 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
7656 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
7657 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
7658 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
7659 Likewise.
7660 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
7661 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
7662 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
7663 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
7664 not defined. Use those where needed.
7665 * testsuite/libgomp.c/for-4.c: New test.
7666 * testsuite/libgomp.c/for-5.c: New test.
7667 * testsuite/libgomp.c/for-6.c: New test.
7668 * testsuite/libgomp.c/linear-1.c: New test.
7669 * testsuite/libgomp.c/ordered-4.c: New test.
7670 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
7671 only allowed on the loop iterator.
7672 * testsuite/libgomp.c/pr66199-3.c: New test.
7673 * testsuite/libgomp.c/pr66199-4.c: New test.
7674 * testsuite/libgomp.c/reduction-7.c: New test.
7675 * testsuite/libgomp.c/reduction-8.c: New test.
7676 * testsuite/libgomp.c/reduction-9.c: New test.
7677 * testsuite/libgomp.c/reduction-10.c: New test.
7678 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
7679 map(tofrom:s).
7680 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
7681 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
7682 * testsuite/libgomp.c/target-11.c: New test.
7683 * testsuite/libgomp.c/target-12.c: New test.
7684 * testsuite/libgomp.c/target-13.c: New test.
7685 * testsuite/libgomp.c/target-14.c: New test.
7686 * testsuite/libgomp.c/target-15.c: New test.
7687 * testsuite/libgomp.c/target-16.c: New test.
7688 * testsuite/libgomp.c/target-17.c: New test.
7689 * testsuite/libgomp.c/target-18.c: New test.
7690 * testsuite/libgomp.c/target-19.c: New test.
7691 * testsuite/libgomp.c/target-20.c: New test.
7692 * testsuite/libgomp.c/target-21.c: New test.
7693 * testsuite/libgomp.c/target-22.c: New test.
7694 * testsuite/libgomp.c/target-23.c: New test.
7695 * testsuite/libgomp.c/target-24.c: New test.
7696 * testsuite/libgomp.c/target-25.c: New test.
7697 * testsuite/libgomp.c/target-26.c: New test.
7698 * testsuite/libgomp.c/target-27.c: New test.
7699 * testsuite/libgomp.c/taskloop-1.c: New test.
7700 * testsuite/libgomp.c/taskloop-2.c: New test.
7701 * testsuite/libgomp.c/taskloop-3.c: New test.
7702 * testsuite/libgomp.c/taskloop-4.c: New test.
7703 * testsuite/libgomp.c++/ctor-13.C: New test.
7704 * testsuite/libgomp.c++/doacross-1.C: New test.
7705 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
7706 Replace offload_device with offload_device_nonshared_as.
7707 * testsuite/libgomp.c++/for-12.C: New test.
7708 * testsuite/libgomp.c++/for-13.C: New test.
7709 * testsuite/libgomp.c++/for-14.C: New test.
7710 * testsuite/libgomp.c++/linear-1.C: New test.
7711 * testsuite/libgomp.c++/member-1.C: New test.
7712 * testsuite/libgomp.c++/member-2.C: New test.
7713 * testsuite/libgomp.c++/member-3.C: New test.
7714 * testsuite/libgomp.c++/member-4.C: New test.
7715 * testsuite/libgomp.c++/member-5.C: New test.
7716 * testsuite/libgomp.c++/ordered-1.C: New test.
7717 * testsuite/libgomp.c++/reduction-5.C: New test.
7718 * testsuite/libgomp.c++/reduction-6.C: New test.
7719 * testsuite/libgomp.c++/reduction-7.C: New test.
7720 * testsuite/libgomp.c++/reduction-8.C: New test.
7721 * testsuite/libgomp.c++/reduction-9.C: New test.
7722 * testsuite/libgomp.c++/reduction-10.C: New test.
7723 * testsuite/libgomp.c++/reference-1.C: New test.
7724 * testsuite/libgomp.c++/simd14.C: New test.
7725 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
7726 * testsuite/libgomp.c++/target-5.C: New test.
7727 * testsuite/libgomp.c++/target-6.C: New test.
7728 * testsuite/libgomp.c++/target-7.C: New test.
7729 * testsuite/libgomp.c++/target-8.C: New test.
7730 * testsuite/libgomp.c++/target-9.C: New test.
7731 * testsuite/libgomp.c++/target-10.C: New test.
7732 * testsuite/libgomp.c++/target-11.C: New test.
7733 * testsuite/libgomp.c++/target-12.C: New test.
7734 * testsuite/libgomp.c++/taskloop-1.C: New test.
7735 * testsuite/libgomp.c++/taskloop-2.C: New test.
7736 * testsuite/libgomp.c++/taskloop-3.C: New test.
7737 * testsuite/libgomp.c++/taskloop-4.C: New test.
7738 * testsuite/libgomp.c++/taskloop-5.C: New test.
7739 * testsuite/libgomp.c++/taskloop-6.C: New test.
7740 * testsuite/libgomp.c++/taskloop-7.C: New test.
7741 * testsuite/libgomp.c++/taskloop-8.C: New test.
7742 * testsuite/libgomp.c++/taskloop-9.C: New test.
7743 * testsuite/libgomp.fortran/affinity1.f90: New test.
7744 * testsuite/libgomp.fortran/affinity2.f90: New test.
7745
1f600fea
TV
77462015-10-13 Tom de Vries <tom@codesourcery.com>
7747
7748 PR tree-optimization/67476
7749 * testsuite/libgomp.c/autopar-3.c: New test.
7750 * testsuite/libgomp.c/autopar-4.c: New test.
7751 * testsuite/libgomp.c/autopar-5.c: New test.
7752 * testsuite/libgomp.c/autopar-6.c: New test.
7753 * testsuite/libgomp.c/autopar-7.c: New test.
7754 * testsuite/libgomp.c/autopar-8.c: New test.
7755
058a654b
JN
77562015-10-12 James Norris <jnorris@codesourcery.com>
7757
7758 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
7759 initializer.
7760
9e531d37
DM
77612015-10-09 David Malcolm <dmalcolm@redhat.com>
7762
7763 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
7764 using load_gcc_lib.
7765
113020dc
TS
77662015-10-02 Thomas Schwinge <thomas@codesourcery.com>
7767
7768 * oacc-ptx.h: Remove file, moving its content into...
7769 * config/nvptx/fortran.c: ... here...
7770 * config/nvptx/oacc-init.c: ..., here...
7771 * config/nvptx/oacc-parallel.c: ..., and here.
7772 * config/nvptx/openacc.f90: New file.
7773 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
7774 (link_ptx): Don't link in predefined bits of PTX code.
7775
cc3cd79b
NS
77762015-09-30 Nathan Sidwell <nathan@codesourcery.com>
7777 Bernd Schmidt <bernds@codesourcery.com>
7778
7779 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
7780 (struct targ_ptx_obj): New.
7781 (nvptx_tdata): Move earlier, change data format.
7782 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
7783 objects.
7784 (GOMP_OFFLOAD_load_image): Adjust.
7785
4e2a5450
TS
77862015-09-30 Thomas Schwinge <thomas@codesourcery.com>
7787
7788 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
7789 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
7790 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
7791 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
7792 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7793 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
7794 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
7795 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
7796 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
7797 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
7798 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7799 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
7800 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
7801 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7802 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7803 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7804 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7805 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7806 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7807 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7808 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7809 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7810 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7811 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7812 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7813 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7814 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
7815 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7816 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7817 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7818 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7819 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7820 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
7821 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7822 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7823 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7824 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7825 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7826 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7827 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7828 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7829 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7830 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7831 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7832 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
7833 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
7834 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
7835 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
7836 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
7837 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
7838 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
7839 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
7840 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
7841 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
7842 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
7843 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7844 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7845 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
7846 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
7847 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
7848 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
7849 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
7850 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7851
164453bb
NS
78522015-09-29 Nathan Sidwell <nathan@codesourcery.com>
7853
7854 * oacc-init.c (acc_on_device): Force optimization level.
7855
a12a0437
NS
78562015-09-29 Nathan Sidwell <nathan@codesourcery.com>
7857
7858 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
7859 (cuda_errlist): Delete.
7860 (cuda_error): Reimplement.
7861
3e32ee19
NS
78622015-09-28 Nathan Sidwell <nathan@codesourcery.com>
7863
7864 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
7865 array.
7866 * libgomp.map (GOACC_parallel_keyed): New.
7867 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
7868 all callers.
7869 (GOACC_parallel_keyed): New interface. Lose geometry arguments
7870 and take keyed varargs list. Adjust call to exec_func.
7871 (GOACC_parallel): Force host fallback.
7872 * libgomp_g.h (GOACC_parallel): Remove.
7873 (GOACC_parallel_keyed): Declare.
7874 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
93d90219 7875 (struct targ_gn_descriptor): Replace name field with launch field.
3e32ee19
NS
7876 (nvptx_exec): Lose separate geometry args, take array. Process
7877 dynamic dimensions and adjust.
7878 (struct nvptx_tdata): Replace fn_names field with fn_descs.
7879 (GOMP_OFFLOAD_load_image): Adjust for change in function table
7880 data.
7881 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
7882 passing.
7883 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
7884 passing.
7885
6bb4c3e2
CLT
78862015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
7887
7888 PR libgomp/67141
7889 * oacc-int.h (goacc_host_init): Add declaration.
7890 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
7891 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
7892
74032f47 78932015-09-08 Aditya Kumar <hiraditya@msn.com>
34b18169 7894 Sebastian Pop <s.pop@samsung.com>
74032f47 7895
93d90219 7896 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
74032f47
AK
7897 match o/p.
7898 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
7899 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
7900 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
7901 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
7902 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
7903
97875f4a
JJ
79042015-09-03 Jakub Jelinek <jakub@redhat.com>
7905
7906 * configure.tgt: Add missing ;; in between nvptx and rtems
7907 snippets.
7908
06441dd5
SH
79092015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7910
7911 * config/posix/pool.h (gomp_adjust_thread_attr): New.
7912 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
7913 (gomp_thread_pool_reservoir): Add priority member.
7914 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
7915 priority.
7916 (parse_thread_pools): Likewise.
7917 * team.c (gomp_team_start): Call configuration provided
7918 gomp_adjust_thread_attr(). Destroy thread attributes if
7919 necessary.
7920 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
7921
66c59f92
SH
79222015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7923
7924 * config/posix/pool.h: New.
7925 * config/rtems/pool.h: Likewise.
7926 * config/rtems/proc.c: Likewise.
7927 * libgomp.h (gomp_thread_destructor): Declare.
7928 * team.c: Include configuration provided "pool.h".
7929 (gomp_get_thread_pool): Define in configuration.
7930 (gomp_team_end): Call configuration defined
7931 gomp_release_thread_pool().
7932
13c41b2e
SH
79332015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7934
7935 * config/rtems/bar.c: New.
7936 * config/rtems/bar.h: Likewise.
7937 * config/rtems/mutex.c: Likewise.
7938 * config/rtems/mutex.h: Likewise.
7939 * config/rtems/sem.c: Likewise.
7940 * config/rtems/sem.h: Likewise.
7941 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
7942 <sys/lock.h> header file.
7943 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
7944 supported by Newlib.
7945 * configure: Regenerate.
7946
7892ec67
SH
79472015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7948
7949 * team.c (gomp_new_thread_pool): Delete and move content to ...
7950 (gomp_get_thread_pool): ... new function. Allocate and
7951 initialize thread pool on demand.
7952 (get_last_team): Use gomp_get_thread_pool().
7953 (gomp_team_start): Delete thread pool initialization.
7954
1b96e9a4
TV
79552015-09-03 Tom de Vries <tom@codesourcery.com>
7956
7957 PR tree-optimization/65637
7958 * testsuite/libgomp.c/autopar-2.c: New test.
7959
3ff2d74e
TV
79602015-08-29 Tom de Vries <tom@codesourcery.com>
7961
7962 PR tree-optimization/46193
7963 * testsuite/libgomp.c/pr46193.c: New test.
7964
2a21ff19
NS
79652015-08-24 Nathan Sidwell <nathan@codesourcery.com>
7966
7967 libgomp/
7968 * libgomp.map: Add 4.0.2 version.
7969 * target.c (offload_image_descr): Add version field.
7970 (gomp_load_image_to_device): Add version argument. Adjust plugin
7971 call. Improve load mismatch diagnostic.
7972 (gomp_unload_image_from_device): Add version argument. Adjust plugin
7973 call.
7974 (GOMP_offload_regster): Make stub function, move bulk to ...
7975 (GOMP_offload_register_ver): ... here. Process version argument.
7976 (GOMP_offload_unregister): Make stub function, move bulk to ...
7977 (GOMP_offload_unregister_ver): ... here. Process version argument.
7978 (gomp_init_device): Process version field.
7979 (gomp_unload_device): Process version field.
7980 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
7981 macros. Check plugin version.
7982 * libgomp.h (gomp_device_descr): Add version function field. Adjust
7983 loader and unloader types.
7984 * oacc-host.c: Include gomp-constants.h.
7985 (host_version): New.
7986 (host_load_image, host_unload_image): Adjust.
7987 (host_dispatch): Add host_version.
7988 * plugin/plugin-nvptx.c: Include gomp-constants.h.
7989 (GOMP_OFFLOAD_version): New.
7990 (GOMP_OFFLOAD_load_image): Add version arg and check it.
7991 (GOMP_OFFLOAD_unload_image): Likewise.
7992 * plugin/plugin-host.c: Include gomp-constants.h.
7993 (GOMP_OFFLOAD_version): New.
7994 (GOMP_OFFLOAD_load_image): Add version arg.
7995 (GOMP_OFFLOAD_unload_image): Likewise.
7996
1358a747
TV
79972015-08-24 Tom de Vries <tom@codesourcery.com>
7998
7999 PR tree-optimization/65468
8000 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
8001
6be5c241
TV
80022015-08-24 Tom de Vries <tom@codesourcery.com>
8003
8004 PR tree-optimization/65468
8005 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
8006
bfe7ac89
JV
80072015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
8008
8009 PR libgomp/66761
8010 PR libgomp/67303
8011 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
8012 (gomp_iter_guided_next): Idem.
8013 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
8014 (gomp_iter_ull_guided_next): Idem.
8015 * config/linux/wait.h (do_spin): Idem.
8016
b97e78b7
TS
80172015-08-10 Thomas Schwinge <thomas@codesourcery.com>
8018
8019 * libgomp-plugin.h (enum offload_target_type): Remove
8020 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
8021 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
8022 * openacc.h (enum acc_device_t): Likewise.
8023 * openacc_lib.h: Likewise.
8024 * oacc-init.c (name_of_acc_device_t): Don't handle it.
8025 (acc_on_device): Just use __builtin_acc_on_device.
8026 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
8027 of acc_on_device builtin.
8028 * plugin/plugin-host.h: Remove file.
8029 * plugin/plugin-host.c: Likewise, but salvage some content into...
8030 * oacc-host.c: ... this file.
8031 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
8032 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
8033 * Makefile.in: Regenerate.
8034 * configure: Likewise.
8035 * testsuite/lib/libgomp.exp
8036 (check_effective_target_openacc_host_nonshm_selected): Remove.
8037 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
8038 ACC_DEVICE_TYPE=host_nonshm.
8039 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8040 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8041 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
8042 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
8043 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
8044 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
8045
44a7d18d
TS
80462015-08-10 Thomas Schwinge <thomas@codesourcery.com>
8047 Jakub Jelinek <jakub@redhat.com>
8048
8049 * config/nvptx/affinity.c: New file.
8050 * config/nvptx/alloc.c: Likewise.
8051 * config/nvptx/bar.c: Likewise.
8052 * config/nvptx/barrier.c: Likewise.
8053 * config/nvptx/critical.c: Likewise.
8054 * config/nvptx/env.c: Likewise.
8055 * config/nvptx/error.c: Likewise.
8056 * config/nvptx/fortran.c: Likewise.
8057 * config/nvptx/iter.c: Likewise.
8058 * config/nvptx/iter_ull.c: Likewise.
8059 * config/nvptx/libgomp-plugin.c: Likewise.
8060 * config/nvptx/lock.c: Likewise.
8061 * config/nvptx/loop.c: Likewise.
8062 * config/nvptx/loop_ull.c: Likewise.
8063 * config/nvptx/mutex.c: Likewise.
8064 * config/nvptx/oacc-async.c: Likewise.
8065 * config/nvptx/oacc-cuda.c: Likewise.
8066 * config/nvptx/oacc-host.c: Likewise.
8067 * config/nvptx/oacc-init.c: Likewise.
8068 * config/nvptx/oacc-mem.c: Likewise.
8069 * config/nvptx/oacc-parallel.c: Likewise.
8070 * config/nvptx/oacc-plugin.c: Likewise.
8071 * config/nvptx/omp-lock.h: Likewise.
8072 * config/nvptx/ordered.c: Likewise.
8073 * config/nvptx/parallel.c: Likewise.
8074 * config/nvptx/proc.c: Likewise.
8075 * config/nvptx/ptrlock.c: Likewise.
8076 * config/nvptx/sections.c: Likewise.
8077 * config/nvptx/sem.c: Likewise.
8078 * config/nvptx/single.c: Likewise.
8079 * config/nvptx/splay-tree.c: Likewise.
8080 * config/nvptx/target.c: Likewise.
8081 * config/nvptx/task.c: Likewise.
8082 * config/nvptx/team.c: Likewise.
8083 * config/nvptx/time.c: Likewise.
8084 * config/nvptx/work.c: Likewise.
8085 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
8086 * configure: Regenerate.
8087 * configure.tgt (config_path): Set to "nvptx" for target
8088 nvptx*-*-*.
8089
96a2d174
TS
80902015-08-10 Thomas Schwinge <thomas@codesourcery.com>
8091
8092 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
8093
9ebddeb0
NS
80942015-08-03 Nathan Sidwell <nathan@codesourcery.com>
8095
8096 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
8097 (cuda_errlist): Constify.
8098 (errmsg): Move into ...
8099 (cuda_error): ... here. Make smaller.
8100 (_XSTR, _STR): Delete.
8101 (cuda_synames): Delete.
8102 (verify_device_library): Delete.
8103 (nvptx_init): Don't call it.
8104
12efb1d7
TV
81052015-07-28 Tom de Vries <tom@codesourcery.com>
8106
8107 * testsuite/libgomp.c/uns-outer-4.c: New test.
8108
710ee218
CP
81092015-07-24 Cesar Philippidis <cesar@codesourcery.com>
8110
8111 * testsuite/libgomp.c/pr66714.c: New test.
8112
27c4ac7d
MB
81132015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
8114
8115 PR libgomp/66950
8116 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
8117 (fib_ref): New function.
8118 (fib): Correct corner cases in the recursion.
8119 (main): Replace the non-simd loop with fib_ref call.
8120 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
8121 subroutine.
8122 (fibonacci): Lower the parameter N to 30. Correct accordingly check
8123 for the last array element value. Replace the non-simd loop with
8124 fib_ref call. Remove redundant b_ref array. Remove the comparison
8125 of the last array element with according Fibonacci sequence element.
8126 (fib): Correct corner cases in the recursion.
8127
22be2349
NS
81282015-07-21 Nathan Sidwell <nathan@codesourcery.com>
8129
8130 * target.c (gomp_offload_image_to_device): Rename to ...
8131 (gomp_load_image_to_device): ... here.
8132 (GOMP_offload_register): Adjust call.
8133 (gomp_init_device): Likewise.
8134 (gomp_unload_image_from_device): New. Broken out of ...
8135 (GOMP_offload_unregister): ... here. Call it.
8136 (gomp_unload_device): New.
8137 * libgomp.h (gomp_unload_device): Declare.
8138 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
8139 mem maps.
8140
f3e9a059
NS
81412015-07-20 Nathan Sidwell <nathan@codesourcery.com>
8142
a091118d
NS
8143 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
8144 wait=-specific if.
8145 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
8146 !=0 condition.
8147 (goacc_waits): Move !num_waits handling to ...
8148 (GOACC_wait): ... here, the only caller that might have zero waits.
8149
f3e9a059
NS
8150 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
8151 (struct ptx_image_data): Move earlier, add fns field.
8152 (struct ptx_device): Add images and image_lock fields.
8153 (ptx_images, ptx_image_lock): Delete.
8154 (nvptx_open_device): Initialize images and image_lock fields.
8155 (nvptx_close_device): Destroy image_lock.
8156 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
8157 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
8158 fields.
8159
afb2d80b
NS
81602015-07-17 Nathan Sidwell <nathan@codesourcery.com>
8161
896c28a7
NS
8162 * target.c (GOMP_offload_register): Use int for device type arg.
8163 (GOMP_offload_unregister): Likewise.
8164
ebe4a560
NS
8165 * target.c (struct_offload_image_descr): Constify host_table.
8166 (gomp_offload_image_to_device): Likewise.
8167 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
8168
afb2d80b
NS
8169 * libgomp.h (gomp_device_descr): Constify target data arguments.
8170 * target.c (struct offload_image_descr): Constify target_data.
8171 (gomp_offload_image_to_device): Likewise.
8172 (GOMP_offload_register): Likewise.
93d90219 8173 (GOMP_offload_unregister): Likewise.
afb2d80b
NS
8174 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
8175 GOMP_OFFLOAD_unload_image): Constify target data.
8176 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
8177 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
8178
a4cb876d
NS
81792015-07-16 Nathan Sidwell <nathan@codesourcery.com>
8180
8181 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
8182 Workaround driver library const error.
8183 (struct nvptx_tdata, nvptx_tdata_t): New.
8184 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
8185 type.
8186
28ef6a27
MB
81872015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
8188
8189 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
8190 of EPS parameter from integer to real.
8191 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
8192 type of EPS parameter from integer to real.
8193
6dba0113
SH
81942015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
8195
8196 * team.c (get_last_team): New.
8197 (gomp_new_team): Recycle last non-nested team if possible.
8198 (gomp_team_end): Move team work share list free lock destruction
8199 to ...
8200 (free_team): ... here.
8201
4c1cb4da
MB
82022015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
8203
8204 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
8205 and ref from int to double. Replaced their comparison with
8206 an inequality of their difference and EPS.
8207 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
8208 comparison of pri and a reference number with an inequality of their
8209 difference and EPS.
8210 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
8211 the comparison of sum and sum_ref with an inequality of their
8212 difference and EPS.
8213 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
8214 the comparison of pri and a reference number with an inequality of
8215 their difference and EPS.
8216
343587dc
MB
82172015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
8218
8219 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
8220 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
8221 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
8222 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
8223 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
8224 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
8225 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
8226 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
8227 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
8228 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
8229 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
8230 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
8231 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
8232 variables.
8233 (vec_mult): Likewise. Add #pragma omp taskwait.
8234 (main): Adjust caller.
8235 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
8236 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
8237 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
8238 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
8239 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
8240 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
8241 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
8242 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
8243 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
8244 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
8245 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
8246 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
8247 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
8248 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
8249 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
8250 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
8251 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
8252 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
8253 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
8254 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
8255 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
8256 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
8257 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
8258 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
8259 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
8260 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
8261 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
8262 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
8263 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
8264 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
8265 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
8266 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
8267 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
8268 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
8269 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
8270 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
8271 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
8272 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
8273 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
8274 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
8275 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
8276 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
8277 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
8278 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
8279 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
8280 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
8281 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
8282 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
8283 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
8284 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
8285 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
8286 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
8287 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
8288 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
8289 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
8290 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
8291 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
8292 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
8293 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
8294 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
8295 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
8296 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
8297 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
8298 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
8299 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
8300 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
8301 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
8302 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
8303 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
8304 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
8305 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
8306 (vec_mult): Add !$omp taskwait.
8307 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
8308 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
8309 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
8310 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
8311 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
8312 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
8313 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
8314 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
8315 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
8316 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
8317 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
8318 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
8319 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
8320 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
8321 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
8322 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
8323 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
8324 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
8325 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
8326 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
8327 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
8328 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
8329 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
8330 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
8331 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
8332 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
8333 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
8334 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
8335 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
8336 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
8337 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
8338 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
8339 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
8340 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
8341 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
8342 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
8343 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
8344 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
8345 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
8346 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
8347 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
8348 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
8349 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
8350 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
8351 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
8352 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
8353 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
8354 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
8355 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
8356 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
8357 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
8358 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
8359 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
8360 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
8361 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
8362 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
8363 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
8364 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
8365 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
8366 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
8367 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
8368 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
8369 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
8370 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
8371 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
8372 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
8373 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
8374
9f620bf1
TV
83752015-07-10 Tom de Vries <tom@codesourcery.com>
8376
8377 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
8378 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
8379
a92defda
TS
83802015-07-08 Thomas Schwinge <thomas@codesourcery.com>
8381
8382 PR libgomp/65099
8383 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
8384 in a 64-bit configuration.
8385 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
8386 offloading testing if no such device is available.
8387 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8388 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8389
cadb53a5
TV
83902015-07-08 Tom de Vries <tom@codesourcery.com>
8391
8392 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
8393 second call to f.
8394 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
8395
712cb0bb
TV
83962015-07-07 Tom de Vries <tom@codesourcery.com>
8397
8398 PR tree-optimization/66642
8399 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
8400 iteration count case.
8401 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
8402 function, factor out of ...
8403 (main): ... here. Test low iteration count case.
8404
e5210c77
SH
84052015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
8406
8407 * libgomp.h (gomp_thread_pool): Comment last_team field.
8408
f70360e7
UB
84092015-07-02 Uros Bizjak <ubizjak@gmail.com>
8410
8411 * testsuite/libgomp.c++/pr66702-1.C: Require
8412 vect_simd_clones effective target.
8413 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
8414
b451c271
TV
84152015-06-30 Tom de Vries <tom@codesourcery.com>
8416
8417 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
8418 already set. Use DEFAULT_CFLAGS in dg-runtest.
8419 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
8420 "-O2".
8421
f8e89d9f
TV
84222015-06-30 Tom de Vries <tom@codesourcery.com>
8423
8424 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
8425 already set. Use DEFAULT_CFLAGS in dg-runtest.
8426 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
8427 * testsuite/libgomp.c++/pr64824.C: Same.
8428 * testsuite/libgomp.c++/pr64868.C: Same.
8429 * testsuite/libgomp.c++/pr66199-1.C: Same.
8430 * testsuite/libgomp.c++/pr66199-2.C: Same.
8431 * testsuite/libgomp.c++/target-2.C: Same.
8432 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
8433 -std=<standard> option.
8434 * testsuite/libgomp.c++/udr-11.C: Same.
8435 * testsuite/libgomp.c++/udr-12.C: Same.
8436 * testsuite/libgomp.c++/udr-13.C: Same.
8437 * testsuite/libgomp.c++/udr-14.C: Same.
8438 * testsuite/libgomp.c++/udr-15.C: Same.
8439 * testsuite/libgomp.c++/udr-16.C: Same.
8440 * testsuite/libgomp.c++/udr-17.C: Same.
8441 * testsuite/libgomp.c++/udr-18.C: Same.
8442 * testsuite/libgomp.c++/udr-19.C: Same.
8443 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
8444 * testsuite/libgomp.c++/simd-1.C: Same.
8445 * testsuite/libgomp.c++/simd-2.C: Same.
8446 * testsuite/libgomp.c++/simd-3.C: Same.
8447 * testsuite/libgomp.c++/simd-4.C: Same.
8448 * testsuite/libgomp.c++/simd-5.C: Same.
8449 * testsuite/libgomp.c++/simd-6.C: Same.
8450 * testsuite/libgomp.c++/simd-7.C: Same.
8451 * testsuite/libgomp.c++/simd-8.C: Same.
8452 * testsuite/libgomp.c++/simd-9.C: Same.
8453 * testsuite/libgomp.c++/simd10.C: Same.
8454 * testsuite/libgomp.c++/simd11.C: Same.
8455 * testsuite/libgomp.c++/simd12.C: Same.
8456 * testsuite/libgomp.c++/simd13.C: Same.
8457
3446fe48
JJ
84582015-06-30 Jakub Jelinek <jakub@redhat.com>
8459
8460 PR middle-end/66702
8461 * testsuite/libgomp.c++/pr66702-1.C: New test.
8462 * testsuite/libgomp.c++/pr66702-2.C: New test.
8463
8a36714a
TV
84642015-06-30 Tom de Vries <tom@codesourcery.com>
8465
8466 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
8467 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
8468 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
8469 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
8470
4f75d608
TV
84712015-06-30 Tom de Vries <tom@codesourcery.com>
8472
8473 PR tree-optimization/66652
8474 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
8475 using restrict pointers.
8476 (main): Add arguments to calls to f.
8477 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
8478
6d9d1eeb
AT
84792015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
8480
8481 * configure.ac: Fix check for header <sys/sysctl.h>.
8482 * configure: Regenerate.
8483 * config.h.in: Likewise.
8484
1222f22b
TV
84852015-06-23 Tom de Vries <tom@codesourcery.com>
8486
8487 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
8488 abort.
8489 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
8490
d7efbbf6
TS
84912015-06-19 Thomas Schwinge <thomas@codesourcery.com>
8492
bfcd036f
TS
8493 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
8494 acc_device_nvidia.
8495
d7efbbf6
TS
8496 PR libgomp/66518
8497 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
8498 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8499
d7bfc710
TV
85002015-06-15 Tom de Vries <tom@codesourcery.com>
8501
8502 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
8503 dg-additional-options for any remaining options.
8504 * testsuite/libgomp.c/atomic-2.c: Same.
8505 * testsuite/libgomp.c/atomic-4.c: Same.
8506 * testsuite/libgomp.c/atomic-5.c: Same.
8507 * testsuite/libgomp.c/atomic-6.c: Same.
8508 * testsuite/libgomp.c/autopar-1.c: Same.
8509 * testsuite/libgomp.c/copyin-1.c: Same.
8510 * testsuite/libgomp.c/copyin-2.c: Same.
8511 * testsuite/libgomp.c/copyin-3.c: Same.
8512 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
8513 * testsuite/libgomp.c/nestedfn-5.c: Same.
8514 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
8515 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
8516 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
8517 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
8518 * testsuite/libgomp.c/pr32362-1.c: Same.
8519 * testsuite/libgomp.c/pr32362-2.c: Same.
8520 * testsuite/libgomp.c/pr32362-3.c: Same.
8521 * testsuite/libgomp.c/pr39591-1.c: Same.
8522 * testsuite/libgomp.c/pr39591-2.c: Same.
8523 * testsuite/libgomp.c/pr39591-3.c: Same.
8524 * testsuite/libgomp.c/pr58392.c: Same.
8525 * testsuite/libgomp.c/pr58756.c: Same.
8526 * testsuite/libgomp.c/simd-1.c: Same.
8527 * testsuite/libgomp.c/simd-10.c: Same.
8528 * testsuite/libgomp.c/simd-11.c: Same.
8529 * testsuite/libgomp.c/simd-12.c: Same.
8530 * testsuite/libgomp.c/simd-13.c: Same.
8531 * testsuite/libgomp.c/simd-14.c: Same.
8532 * testsuite/libgomp.c/simd-15.c: Same.
8533 * testsuite/libgomp.c/simd-2.c: Same.
8534 * testsuite/libgomp.c/simd-3.c: Same.
8535 * testsuite/libgomp.c/simd-4.c: Same.
8536 * testsuite/libgomp.c/simd-5.c: Same.
8537 * testsuite/libgomp.c/simd-6.c: Same.
8538 * testsuite/libgomp.c/simd-7.c: Same.
8539 * testsuite/libgomp.c/simd-8.c: Same.
8540 * testsuite/libgomp.c/simd-9.c: Same.
8541
fb5b5352
TV
85422015-06-15 Tom de Vries <tom@codesourcery.com>
8543
8544 * testsuite/libgomp.c/pr35625.c: Fix typo.
8545
ca431bef
TV
85462015-06-15 Tom de Vries <tom@codesourcery.com>
8547
8548 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
8549 in dg-options.
8550 * testsuite/libgomp.c/atomic-3.c: Same.
8551 * testsuite/libgomp.c/debug-1.c: Same.
8552 * testsuite/libgomp.c/nqueens-1.c: Same.
8553 * testsuite/libgomp.c/pr26171.c: Same.
8554 * testsuite/libgomp.c/pr48591.c: Same.
8555 * testsuite/libgomp.c/pr64824.c: Same.
8556 * testsuite/libgomp.c/pr64868.c: Same.
8557 * testsuite/libgomp.c/pr66133.c: Same.
8558 * testsuite/libgomp.c/pr66199-1.c: Same.
8559 * testsuite/libgomp.c/pr66199-2.c: Same.
8560 * testsuite/libgomp.c/target-8.c: Same.
8561
0d8a9e20
TV
85622015-06-15 Tom de Vries <tom@codesourcery.com>
8563
8564 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
8565 -std={gnu99,c99}.
8566 * testsuite/libgomp.c/for-1.c: Same.
8567 * testsuite/libgomp.c/for-2.c: Same.
8568 * testsuite/libgomp.c/for-3.c: Same.
8569 * testsuite/libgomp.c/pr35625.c: Same.
8570 * testsuite/libgomp.c/pr39154.c: Same.
8571 * testsuite/libgomp.c/simd-16.c: Same.
8572 * testsuite/libgomp.c/simd-17.c: Same.
8573
a6860be9
TV
85742015-06-13 Tom de Vries <tom@codesourcery.com>
8575
8576 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
8577
ab3306d2
TV
85782015-06-13 Tom de Vries <tom@codesourcery.com>
8579
8580 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
8581 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
8582 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
8583 (N): Define.
8584 (main): Use N instead of hardcoded constants.
8585
7c82d827
TV
85862015-06-05 Tom de Vries <tom@codesourcery.com>
8587
8588 merge from gomp4 branch:
8589 2015-05-28 Tom de Vries <tom@codesourcery.com>
8590
8591 PR tree-optimization/65443
8592 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
8593 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
8594 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
8595
c469078d
BRF
85962015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8597
8598 * testsuite/libgomp.graphite/bounds.c: Adjust for
8599 cleanup-tree-dump removal.
8600 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
8601 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
8602 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
8603 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
8604 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
8605 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
8606 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
8607 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
8608 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
8609 * testsuite/libgomp.graphite/pr41118.c: Likewise.
8610
bb3caa35
UB
86112015-05-28 Uros Bizjak <ubizjak@gmail.com>
8612
8613 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
8614 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
8615 (futex_wake) [!__x86_64__]: Ditto.
8616
9fb5fd44
JB
86172015-05-28 Julian Brown <julian@codesourcery.com>
8618
8619 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
8620 function comment. Only call gomp_fatal if new argument is true.
8621 (acc_dev_num_out_of_range): New function.
8622 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
8623 acc_dev_num_out_of_range as appropriate.
8624 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
bb3caa35
UB
8625 (acc_get_device_num, acc_set_device_num): Update calls to
8626 resolve_device.
9fb5fd44
JB
8627 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
8628 output.
8629
32eaed93
JB
86302015-05-28 Julian Brown <julian@codesourcery.com>
8631
8632 PR libgomp/65742
32eaed93
JB
8633 * oacc-init.c (plugin/plugin-host.h): Include.
8634 (acc_on_device): Check whether we're in an offloaded region for
8635 host_nonshm
8636 plugin. Don't use __builtin_acc_on_device.
8637 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
8638 nonshm_exec flag in thread-local data.
8639 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
8640 data for host_nonshm plugin.
8641 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
8642 for host_nonshm plugin.
8643 * plugin/plugin-host.h: New.
8644
ea023bcf
UB
86452015-05-27 Uros Bizjak <ubizjak@gmail.com>
8646
8ed501f1
UB
8647 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
8648
86492015-05-27 Uros Bizjak <ubizjak@gmail.com>
8650
8651 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
8652 Declare as int.
8653 (FUTEX_PRIVATE_FLAG): Remove L suffix.
8654 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
8655 Declare as int.
8656
86572015-05-27 Uros Bizjak <ubizjak@gmail.com>
8658
bb3caa35 8659 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
ea023bcf 8660
1716efeb
CLT
86612015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
8662
8663 * target.c (gomp_map_pointer): New function abstracting out
8664 GOMP_MAP_POINTER handling.
8665 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
8666 gomp_map_pointer().
8667
41b37d5e
JJ
86682015-05-19 Jakub Jelinek <jakub@redhat.com>
8669
8670 PR middle-end/66199
8671 * testsuite/libgomp.c/pr66199-1.c: New test.
8672 * testsuite/libgomp.c/pr66199-2.c: New test.
8673 * testsuite/libgomp.c++/pr66199-1.C: New test.
8674 * testsuite/libgomp.c++/pr66199-2.C: New test.
8675 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
8676 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
8677
c8319826
JB
86782015-05-19 Julian Brown <julian@codesourcery.com>
8679
8680 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
8681 on cuInit failure.
8682
b37dddbc
JJ
86832015-05-13 Jakub Jelinek <jakub@redhat.com>
8684
8685 PR middle-end/66133
8686 * testsuite/libgomp.c/pr66133.c: New test.
8687
55fba601
MH
86882015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
8689
8690 * Makefile.in: Regenerated with automake-1.11.6.
8691 * aclocal.m4: Likewise.
8692 * config.h.in: Likewise.
8693 * configure: Likewise.
8694 * testsuite/Makefile.in: Likewise.
8695
1be0899d
JM
86962015-05-08 Jason Merrill <jason@redhat.com>
8697
8698 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
8699 _Complex.
8700
8701 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
8702
d2463960
JB
87032015-05-06 Julian Brown <julian@codesourcery.com>
8704
8705 * oacc-init.c (acc_device_lock): Add explanatory comment.
8706 (resolve_device): Add comment about locking requirement.
8707 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
8708 gomp_init_device and gomp_fini_device calls.
8709 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
8710 (acc_get_device_num, acc_set_device_num): Add locking around
8711 resolve_device and gomp_init_device calls.
8712
e38fdba4
JB
87132015-05-06 Julian Brown <julian@codesourcery.com>
8714
8715 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
8716 goacc_thread_lock on error paths.
8717 * oacc-mem.c (lookup_host): Remove locking from function. Note
8718 locking requirement for caller in function comment.
8719 (lookup_dev): Likewise.
8720 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
8721 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
8722 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
8723 Add locking.
8724
ae8ffbbb
TS
87252015-05-05 Thomas Schwinge <thomas@codesourcery.com>
8726
8727 PR testsuite/65205
8728 PR libgomp/65993
8729 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
8730 don't expect "0x" prefix for "%p" format specifier, don't expect
8731 "(nil)" for NULL pointer.
8732 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8733 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8734 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8735 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8736 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8737 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8738 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8739 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8740 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8741 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8742 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8743 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8744 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8745 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8746 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8747 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8748 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8749 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8750 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8751 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8752 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8753 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8754 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8755 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8756 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8757 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8758 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8759 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8760 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
8761 accurately specify what we're looking for.
8762 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8763 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8764 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8765 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8766 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8767
1309f1d2
JN
87682015-04-30 James Norris <jnorris@codesourcery.com>
8769
8770 PR testsuite/65205
8771 * testsuite/lib/libgomp.exp
8772 (check_effective_target_openacc_host_selected)
8773 (check_effective_target_openacc_host_nonshm_selected): New
8774 procedures.
8775 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
8776 dg-shouldfail.
8777 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
8778 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
8779 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8780 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8781 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8782 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
8783 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8784 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8785 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8786 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8787 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8788 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8789 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8790 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8791 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8792 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
8793 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8794 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8795 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8796 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8797 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8798 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
8799 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8800 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8801 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8802 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8803 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8804 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8805 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8806 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8807 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8808 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8809 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8810 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
8811 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
8812 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
8813 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
8814 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
8815 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
8816 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8817 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8818 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8819 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8820
d93bdab5
JB
88212015-04-08 Julian Brown <julian@codesourcery.com>
8822
8823 * libgomp.h (target_mem_desc: Remove mem_map field.
8824 (acc_dispatch_t): Remove open_device_func, close_device_func,
8825 get_device_num_func, set_device_num_func, target_data members.
8826 Change create_thread_data_func argument to device number instead of
8827 generic pointer.
8828 * oacc-async.c (assert.h): Include.
8829 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
8830 (acc_wait_all, acc_wait_all_async): Use current host thread's
8831 active device, not base_dev.
8832 * oacc-cuda.c (acc_get_current_cuda_device)
8833 (acc_get_current_cuda_context, acc_get_cuda_stream)
8834 (acc_set_cuda_stream): Likewise.
8835 * oacc-host.c (host_dispatch): Don't set open_device_func,
8836 close_device_func, get_device_num_func or set_device_num_func.
8837 * oacc-init.c (base_dev, init_key): Remove.
8838 (cached_base_dev): New.
8839 (name_of_acc_device_t): New.
8840 (acc_init_1): Initialise default-numbered device, not zeroth.
8841 (acc_shutdown_1): Close all devices of a given type.
8842 (goacc_destroy_thread): Don't use base_dev.
8843 (lazy_open, lazy_init, lazy_init_and_open): Remove.
8844 (goacc_attach_host_thread_to_device): New.
8845 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
8846 (acc_get_num_devices): Don't use base_dev.
8847 (acc_set_device_type): Reimplement.
8848 (acc_get_device_type): Don't use base_dev.
8849 (acc_get_device_num): Tweak logic.
8850 (acc_set_device_num): Likewise.
8851 (acc_on_device): Use acc_get_device_type.
8852 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
8853 (goacc_lazy_initialize): Reimplement with acc_init and
8854 goacc_attach_host_thread_to_device.
8855 * oacc-int.h (goacc_thread): Add base_dev field.
8856 (base_dev): Remove extern declaration.
8857 (goacc_attach_host_thread_to_device): Add prototype.
8858 * oacc-mem.c (acc_malloc): Use current thread's device instead of
8859 base_dev.
8860 (acc_free): Likewise.
8861 (acc_memcpy_to_device): Likewise.
8862 (acc_memcpy_from_device): Likewise.
8863 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
8864 goacc_lazy_initialize (throughout).
8865 (GOACC_parallel): Use tgt_offset to locate target functions.
8866 * target.c (gomp_map_vars): Don't set tgt->mem_map.
8867 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
8868 (gomp_load_plugin_for_device): Remove open_device, close_device,
8869 get_device_num, set_device_num openacc hook initialisation. Don't set
8870 openacc.target_data.
8871 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
8872 (GOMP_OFFLOAD_openacc_close_device)
8873 (GOMP_OFFLOAD_openacc_get_device_num)
8874 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
8875 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
8876 to int.
8877 * plugin/plugin-nvptx.c (ptx_inited): Remove.
8878 (instantiated_devices, ptx_dev_lock): New.
8879 (struct ptx_image_data): New.
8880 (ptx_devices, ptx_images, ptx_image_lock): New.
8881 (fini_streams_for_device): Reorder cuStreamDestroy call.
8882 (nvptx_get_num_devices): Remove forward declaration.
8883 (nvptx_init): Change return type to bool.
8884 (nvptx_fini): Remove.
8885 (nvptx_attach_host_thread_to_device): New.
8886 (nvptx_open_device): Return struct ptx_device* instead of void*.
8887 (nvptx_close_device): Change argument type to struct ptx_device*,
8888 return type to void.
8889 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
8890 (kernel_target_data, kernel_host_table): Remove static globals.
8891 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
8892 (GOMP_OFFLOAD_init_device): Reimplement.
8893 (GOMP_OFFLOAD_fini_device): Likewise.
8894 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
8895 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
8896 (GOMP_OFFLOAD_host2dev): Use ORD argument.
8897 (GOMP_OFFLOAD_openacc_open_device)
8898 (GOMP_OFFLOAD_openacc_close_device)
8899 (GOMP_OFFLOAD_openacc_set_device_num)
8900 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
8901 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
8902 (device number).
8903
8904 testsuite/
8905 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
8906
a51df54e
IV
89072015-04-06 Ilya Verbin <ilya.verbin@intel.com>
8908
8909 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
8910 * libgomp.h (struct gomp_memory_mapping): Remove.
8911 (struct target_mem_desc): Change type of mem_map from
8912 gomp_memory_mapping * to splay_tree_s *.
8913 (struct gomp_device_descr): Remove register_image_func, get_table_func.
8914 Add load_image_func, unload_image_func.
8915 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
8916 Remove offload_regions_registered.
8917 (gomp_init_tables): Remove.
8918 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
8919 to splay_tree_s *.
8920 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
8921 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
8922 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
8923 offload_regions_registered.
8924 Initialize load_image_func, unload_image_func, mem_map.root.
8925 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
8926 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
8927 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
8928 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
8929 gomp_memory_mapping *. Use dev's lock and splay_tree.
8930 (lookup_dev): Use dev's lock.
8931 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
8932 (acc_is_present): Likewise.
8933 (acc_map_data): Likewise.
8934 (acc_unmap_data): Likewise. Use dev's lock.
8935 (present_create_copy): Likewise.
8936 (delete_copyout): Pass dev to lookup_host instead of mem_map.
8937 (update_dev_host): Likewise.
8938 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
8939 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
8940 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
8941 (GOMP_OFFLOAD_get_table): Remove
8942 (GOMP_OFFLOAD_load_image): New function.
8943 (GOMP_OFFLOAD_unload_image): New function.
8944 * target.c (register_lock): New mutex for offload image registration.
8945 (num_devices): Do not guard with PLUGIN_SUPPORT.
8946 (gomp_realloc_unlock): New static function.
8947 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
8948 before gomp_fatal.
8949 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
8950 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
8951 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
8952 mem_map's.
8953 (gomp_unmap_vars): Likewise.
8954 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
8955 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
8956 (gomp_offload_image_to_device): New static function.
8957 (GOMP_offload_register): Add mutex lock.
8958 Call gomp_offload_image_to_device for all initialized devices.
8959 Replace gomp_realloc with gomp_realloc_unlock.
8960 (GOMP_offload_unregister): New function.
8961 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
8962 get_table_func from the plugin with calls to init_device_func and
8963 gomp_offload_image_to_device.
8964 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
8965 to splay_tree_s *.
8966 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
8967 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
8968 (GOMP_target_data): Do not call gomp_init_tables.
8969 (GOMP_target_update): Likewise. Remove argument from gomp_update.
8970 (gomp_load_plugin_for_device): Replace register_image and get_table
8971 with load_image and unload_image in DLSYM ().
8972 (gomp_register_images_for_device): Remove function.
8973 (gomp_target_init): Do not initialize current_device.mem_map.*,
8974 current_device.offload_regions_registered.
8975 Remove call to gomp_register_images_for_device.
8976 Do not free offload_images and num_offload_images.
8977
6c384511
JJ
89782015-03-30 Jakub Jelinek <jakub@redhat.com>
8979
8980 PR fortran/65597
8981 * testsuite/libgomp.fortran/pr65597.f90: New test.
8982
3e8165a5
TV
89832015-03-27 Tom de Vries <tom@codesourcery.com>
8984
8985 PR testsuite/65594
8986 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
8987 (init, check): New function.
8988 (foo): Change return type to void.
8989 (main): Call init and check.
8990
4d688c9a
TV
89912015-03-27 Tom de Vries <tom@codesourcery.com>
8992
8993 PR testsuite/65594
8994 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
8995 (foo): Use M for non-inner loops to scale down test-case.
8996
01c0b3b0
KT
89972015-03-25 Kai Tietz <ktietz@redhat.com>
8998
8999 PR libgomp/64972
9000 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
9001 (GOACC_data_start): Likewise.
9002 * target.c (gomp_map_vars): Likewise.
9003
844d9a76
JDA
90042015-03-21 John David Anglin <danglin@gcc.gnu.org>
9005
9006 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
9007 hppa*-*-hpux*.
9008
9b65e171
JJ
90092015-03-19 Jakub Jelinek <jakub@redhat.com>
9010
9011 * testsuite/libgomp.c/target-10.c: New test.
9012 * testsuite/libgomp.c++/target-4.C: New test.
9013
db397e2e
IV
90142015-03-13 Ilya Verbin <ilya.verbin@intel.com>
9015
9016 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
9017 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
9018
cd93945d
SH
90192015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
9020
9021 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
9022 * configure.ac (*-*-rtems*): Assume Pthread is supported.
9023 (pthread.h): Check for this header file.
9024 * configure: Regenerate.
9025
05deba9f
TV
90262015-02-25 Tom de Vries <tom@codesourcery.com>
9027
9028 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
9029 (check_reduction_op, check_reduction_macro, max, min):
9030 Declare.
9031 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
9032 function.
9033 (main): Use new functions.
9034
196904d8
IT
90352015-02-18 Ilya Tocar <ilya.tocar@intel.com>
9036
9037 * target.c (gomp_load_plugin_for_device): Use const char * instead of
9038 char * for variables holding dlerror return values.
9039 (DLSYM_OPT): Ditto.
9040
a2818955
TS
90412015-02-17 Thomas Schwinge <thomas@codesourcery.com>
9042
9043 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
9044
26f93312
TS
90452015-02-17 Thomas Schwinge <thomas@codesourcery.com>
9046 Cesar Philippidis <cesar@codesourcery.com>
9047
9048 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
9049 GOACC_ctaid, and GOACC_nctaid routines.
9050
fa01ffcc
JJ
90512015-02-11 Jakub Jelinek <jakub@redhat.com>
9052
9053 PR c/64824
9054 * testsuite/libgomp.c/atomic-18.c: New test.
9055 * testsuite/libgomp.c++/atomic-16.C: New test.
9056
4886ec8e
JJ
90572015-02-04 Jakub Jelinek <jakub@redhat.com>
9058
9059 PR c/64824
9060 PR c/64868
9061 * testsuite/libgomp.c/pr64824.c: New test.
9062 * testsuite/libgomp.c/pr64868.c: New test.
9063 * testsuite/libgomp.c++/pr64824.C: New test.
9064 * testsuite/libgomp.c++/pr64868.C: New test.
9065
02d3e45e
DE
90662015-02-01 David Edelsohn <dje.gcc@gmail.com>
9067
9068 PR libgomp/64635
9069 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
9070 Link with -lpthread.
9071 * config/aix/plugin-suffix.h: Delete.
9072
b5f7a6ca
JH
90732015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
9074
9075 PR libgomp/64635
9076 * configure.tgt (*-*-aix*): Use config_path "aix posix".
9077 (*-*-darwin*): Use config_path "bsd darwin posix".
9078 (*-*-hpux*): Use config_path "hpux posix".
9079 * target.c: Add include of plugin-suffix.h and use
9080 SONAME_SUFFIX macro.
9081 * config/aix/plugin-suffix.h: New file.
9082 * config/darwin/plugin-suffix.h: New file.
9083 * config/hpux/plugin-suffix.h: New file.
9084 * config/posix/plugin-suffix.h: New file.
9085
b8910447
JJ
90862015-01-23 Jakub Jelinek <jakub@redhat.com>
9087
9088 PR middle-end/64734
9089 * libgomp.c/pr64734.c: New test.
9090
a0c88d06
TV
90912015-01-23 Tom de Vries <tom@codesourcery.com>
9092
9093 PR libgomp/64672
9094 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
9095
1506ae0e
TV
90962015-01-23 Tom de Vries <tom@codesourcery.com>
9097
9098 PR libgomp/64707
9099 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
9100 dg-options.
9101
128b26dc
TS
91022015-01-19 Thomas Schwinge <thomas@codesourcery.com>
9103
bed62c21 9104 PR libgomp/64625
128b26dc
TS
9105 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
9106 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
9107 formal parameter. Update all users.
9108 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
9109 Document unused formal parameter.
9110
6e36114c
TS
91112015-01-16 Thomas Schwinge <thomas@codesourcery.com>
9112
9113 * oacc-parallel.c: Don't include <alloca.h>.
9114 (GOACC_parallel): Use gomp_alloca instead of alloca.
9115
973e9808
GP
91162015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
9117
9118 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
9119
41dbbb37
TS
91202015-01-15 Thomas Schwinge <thomas@codesourcery.com>
9121 James Norris <jnorris@codesourcery.com>
9122 Tom de Vries <tom@codesourcery.com>
9123 Julian Brown <julian@codesourcery.com>
9124 Cesar Philippidis <cesar@codesourcery.com>
9125 Nathan Sidwell <nathan@codesourcery.com>
9126 Tobias Burnus <burnus@net-b.de>
9127
9128 * Makefile.am (search_path): Add $(top_srcdir)/../include.
9129 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
9130 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
9131 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
9132 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
9133 Include $(top_srcdir)/plugin/Makefrag.am.
9134 (nodist_libsubinclude_HEADERS): Add openacc.h.
9135 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
9136 openacc.f90, openacc.mod, openacc_kinds.mod.
9137 (omp_lib.mod): Generalize into...
9138 (%.mod): ... this new rule.
9139 (openacc_kinds.mod, openacc.mod): New rules.
9140 * plugin/configfrag.ac: New file.
9141 * configure.ac: Move plugin/offloading support into it. Include
9142 it. Instantiate testsuite/libgomp-test-support.pt.exp.
9143 * plugin/Makefrag.am: New file.
9144 * testsuite/Makefile.am (OFFLOAD_TARGETS)
9145 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
9146 export.
9147 (libgomp-test-support.exp): New rule.
9148 (all-local): Depend on it.
9149 * Makefile.in: Regenerate.
9150 * testsuite/Makefile.in: Regenerate.
9151 * config.h.in: Likewise.
9152 * configure: Likewise.
9153 * configure.tgt: Harden shell syntax.
9154 * env.c: Include "oacc-int.h".
9155 (parse_acc_device_type): New function.
9156 (gomp_debug_var, goacc_device_type, goacc_device_num): New
9157 variables.
9158 (initialize_env): Initialize those. Call
9159 goacc_runtime_initialize.
9160 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
9161 (gomp_fatal): Call gomp_vfatal.
9162 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
9163 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
9164 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
9165 (splay_tree_node, splay_tree, splay_tree_key)
9166 (struct target_mem_desc, struct splay_tree_key_s)
9167 (struct gomp_memory_mapping, struct acc_dispatch_t)
9168 (struct gomp_device_descr, gomp_acc_insert_pointer)
9169 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
9170 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
9171 (gomp_free_memmap, gomp_fini_device): New declarations.
9172 (gomp_vdebug, gomp_debug): New macros.
9173 Include "splay-tree.h".
9174 * libgomp.map (OACC_2.0): New symbol version. Use for
9175 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
9176 acc_set_device_type_h_, acc_get_device_type,
9177 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
9178 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
9179 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
9180 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
9181 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
9182 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
9183 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
9184 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
9185 acc_copyin_array_h_, acc_present_or_copyin,
9186 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
9187 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
9188 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
9189 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
9190 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
9191 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
9192 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
9193 acc_update_device, acc_update_device_32_h_,
9194 acc_update_device_64_h_, acc_update_device_array_h_,
9195 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
9196 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
9197 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
9198 acc_is_present_64_h_, acc_is_present_array_h_,
9199 acc_memcpy_to_device, acc_memcpy_from_device,
9200 acc_get_current_cuda_device, acc_get_current_cuda_context,
9201 acc_get_cuda_stream, acc_set_cuda_stream.
9202 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
9203 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
9204 GOACC_update, GOACC_wait, GOACC_get_thread_num,
9205 GOACC_get_num_threads.
9206 (GOMP_PLUGIN_1.0): New symbol version. Use for
9207 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
9208 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
9209 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
9210 GOMP_PLUGIN_acc_thread.
9211 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
9212 environment variable.
9213 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
9214 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
9215 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
9216 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
9217 (splay_tree_remove): New declarations.
9218 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
9219 (splay_tree_remove, splay_tree_lookup): Move into...
9220 * splay-tree.c: ... this new file.
9221 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
9222 (splay_tree_node, splay_tree, splay_tree_key)
9223 (struct target_mem_desc, struct splay_tree_key_s)
9224 (struct gomp_device_descr): Don't declare.
9225 (num_devices_openmp): New variable.
9226 (gomp_get_num_devices ): Use it.
9227 (gomp_init_targets_once): New function.
9228 (gomp_get_num_devices ): Use it.
9229 (get_kind, gomp_copy_from_async, gomp_free_memmap)
9230 (gomp_fini_device, gomp_register_image_for_device): New functions.
9231 (gomp_map_vars): Add devaddrs parameter.
9232 (gomp_update): Add mm parameter.
9233 (gomp_init_device): Move most of it into...
9234 (gomp_init_tables): ... this new function.
9235 (gomp_register_images_for_device): Remove function.
9236 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
9237 Make them hidden instead of static.
9238 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
9239 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
9240 (GOMP_target_end_data, GOMP_target_update)
9241 (gomp_load_plugin_for_device, gomp_target_init): Update for
9242 OpenACC changes.
9243 * oacc-async.c: New file.
9244 * oacc-cuda.c: Likewise.
9245 * oacc-host.c: Likewise.
9246 * oacc-init.c: Likewise.
9247 * oacc-int.h: Likewise.
9248 * oacc-mem.c: Likewise.
9249 * oacc-parallel.c: Likewise.
9250 * oacc-plugin.c: Likewise.
9251 * oacc-plugin.h: Likewise.
9252 * oacc-ptx.h: Likewise.
9253 * openacc.f90: Likewise.
9254 * openacc.h: Likewise.
9255 * openacc_lib.h: Likewise.
9256 * plugin/plugin-host.c: Likewise.
9257 * plugin/plugin-nvptx.c: Likewise.
9258 * libgomp-plugin.c: Likewise.
9259 * libgomp-plugin.h: Likewise.
9260 * libgomp_target.h: Remove file after merging content into the
9261 former file. Update all users.
9262 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
9263 (offload_targets_s, offload_targets_s_openacc): New variables.
9264 (check_effective_target_openacc_nvidia_accel_present)
9265 (check_effective_target_openacc_nvidia_accel_selected): New
9266 procedures.
9267 (libgomp_init): Update for OpenACC changes.
9268 * testsuite/libgomp-test-support.exp.in: New file.
9269 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
9270 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9271 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9272 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
9273 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
9274 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
9275 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
9276 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
9277 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
9278 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
9279 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
9280 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
9281 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
9282 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
9283 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
9284 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
9285 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
9286 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
9287 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
9288 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
9289 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
9290 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9291 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
9292 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
9293 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
9294 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
9295 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
9296 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
9297 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
9298 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
9299 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
9300 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
9301 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
9302 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
9303 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
9304 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
9305 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
9306 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
9307 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
9308 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
9309 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
9310 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
9311 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
9312 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
9313 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
9314 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
9315 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
9316 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
9317 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
9318 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
9319 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
9320 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
9321 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
9322 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
9323 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
9324 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
9325 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
9326 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
9327 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
9328 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
9329 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
9330 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
9331 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
9332 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
9333 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
9334 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
9335 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
9336 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
9337 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
9338 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
9339 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
9340 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
9341 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
9342 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
9343 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
9344 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
9345 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
9346 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
9347 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
9348 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
9349 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
9350 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
9351 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
9352 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
9353 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
9354 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
9355 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
9356 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
9357 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
9358 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
9359 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
9360 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
9361 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
9362 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
9363 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
9364 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
9365 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
9366 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
9367 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
9368 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
9369 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
9370 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
9371 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
9372 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
9373 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
9374 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
9375 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
9376 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
9377 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
9378 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
9379 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
9380 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
9381 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
9382 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
9383 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
9384 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
9385 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
9386 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
9387 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
9388 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
9389 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
9390 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
9391 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
9392 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
9393 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
9394 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
9395 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
9396 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
9397 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
9398 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
9399 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
9400 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
9401 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
9402 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
9403 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
9404 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
9405 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
9406 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
9407 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
9408 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
9409 Likewise.
9410 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
9411 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
9412 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
9413 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
9414 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
9415 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
9416 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
9417 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
9418 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
9419 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
9420 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
9421 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
9422 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
9423 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
9424 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
9425 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
9426 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
9427 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
9428 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
9429 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
9430 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
9431 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
9432 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
9433 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
9434 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
9435 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
9436 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
9437 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
9438 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
9439 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
9440 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
9441 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
9442 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
9443 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
9444 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
9445 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
9446 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
9447 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
9448 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
9449 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
9450 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
9451 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
9452 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
9453 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
9454 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
9455 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
9456 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
9457 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
9458 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
9459 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
9460 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
9461 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
9462 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
9463 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
9464 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
9465 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
9466 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
9467 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
9468 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
9469 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
9470
f1f3453e
TS
94712015-01-10 Thomas Schwinge <thomas@codesourcery.com>
9472 Julian Brown <julian@codesourcery.com>
9473 David Malcolm <dmalcolm@redhat.com>
9474
9475 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
9476 to "GNU Offloading and Multi Processing Runtime Library". Change
9477 all users.
9478 * configure: Regenerate.
9479 * libgomp.texi: Update.
9480
f9a0eca4
TS
94812015-01-08 Thomas Schwinge <thomas@codesourcery.com>
9482
b335ef4e
TS
9483 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
9484 "$tgt_dir/lib32".
9485 * configure: Regenerate.
9486
f9a0eca4
TS
9487 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
9488 "intelmic" in $offload_targets.
9489
b67cd4e3
JJ
94902015-01-05 Jakub Jelinek <jakub@redhat.com>
9491
5624e564
JJ
9492 Update copyright years.
9493
b67cd4e3
JJ
9494 * libgomp.texi: Bump @copying's copyright year.
9495
3b41b583
KT
94962014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9497
9498 * testsuite/lib/libgomp.exp: Load target-utils.exp.
93d90219 9499 Move load of target-supports.exp earlier.
3b41b583 9500
2354caec
IV
95012014-12-10 Ilya Verbin <ilya.verbin@intel.com>
9502
9503 * testsuite/libgomp.c/target-9.c: New test.
9504
f50eecba
VR
95052014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
9506
9507 * config.h.in: Regenerate.
9508 * configure: Regenerate.
9509 * configure.ac: Add GCC_CHECK_EMUTLS.
9510 * libgomp.h: Add check for USE_EMUTLS: this case
9511 is equal to HAVE_TLS.
9512 * team.c: Likewise.
9513
68bc9270
UB
95142014-12-03 Uros Bizjak <ubizjak@gmail.com>
9515
9516 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
9517
476ff787
AT
95182014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
9519 Ilya Verbin <ilya.verbin@intel.com>
9520
9521 * testsuite/libgomp.c/target-critical-1.c: New test.
9522
31a30e62
JJ
95232014-11-26 Jakub Jelinek <jakub@redhat.com>
9524
9525 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
68bc9270 9526 to dg-options unless expensive testing is on.
31a30e62
JJ
9527 (TESTITERS): Define to N if not defined.
9528 (main): Use TESTITERS instead of N.
9529 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
9530 dg-additional-options depending on whether expensive testing is on.
9531 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
9532 Decrease N to 100000 and CHUNKSZ to 10000.
9533
3f9e8f13
JJ
95342014-11-24 Jakub Jelinek <jakub@redhat.com>
9535
9536 PR fortran/63938
31a30e62
JJ
9537 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
9538 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
3f9e8f13 9539
c8451a46
SE
95402014-11-21 Steve Ellcey <sellcey@imgtec.com>
9541
9542 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
9543
a699d672
L
95442014-11-21 H.J. Lu <hongjiu.lu@intel.com>
9545
9546 PR bootstrap/63784
9547 * configure: Regenerated.
9548
4a19f719
UB
95492014-11-19 Uros Bizjak <ubizjak@gmail.com>
9550
9551 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
9552 vect_simd_clones effective target.
9553 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
9554
b1bf6c52
JJ
95552014-11-14 Jakub Jelinek <jakub@redhat.com>
9556
9557 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
9558 of 32 as block_size.
9559 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
9560 instead of 32 as block_size.
9561
d64ae614
AT
95622014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
9563 Ilya Verbin <ilya.verbin@intel.com>
9564
9565 * Makefile.in: Regenerate.
9566 * configure: Regenerate.
9567 * configure.ac: Set up offload_additional_options,
9568 offload_additional_lib_paths and offload_targets.
9569 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
9570 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
9571 * testsuite/Makefile.in: Regenerate.
9572 * testsuite/lib/libgomp.exp (libgomp_init): Append
9573 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
9574 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
9575 build directory to LD_LIBRARY_PATH for intelmic offload targets.
9576
122d7303
AT
95772014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
9578 Ilya Verbin <ilya.verbin@intel.com>
9579 Kirill Yukhin <kirill.yukhin@intel.com>
9580 Ilya Tocar <ilya.tocar@intel.com>
9581
9582 * testsuite/lib/libgomp.exp
9583 (check_effective_target_offload_device): New.
9584 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
9585 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
9586 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
9587 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
9588 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
9589 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
9590 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
9591 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
9592 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
9593 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
9594 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
9595 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
9596 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
9597 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
9598 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
9599 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
9600 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
9601 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
9602 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
9603 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
9604 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
9605 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
9606 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
9607 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
9608 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
9609 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
9610 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
9611 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
9612 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
9613 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
9614 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
9615 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
9616 * testsuite/libgomp.c/target-7.c: Fix test.
9617 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
9618 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
9619 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
9620 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
9621 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
9622 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
9623 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
9624 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
9625 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
9626 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
9627 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
9628 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
9629 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
9630 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
9631 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
9632 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
9633 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
9634 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
9635 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
9636 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
9637 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
9638 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
9639 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
9640 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
9641 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
9642 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
9643 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
9644 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
9645 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
9646 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
9647 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
9648
1df3f842
JJ
96492014-11-13 Jakub Jelinek <jakub@redhat.com>
9650 Ilya Verbin <ilya.verbin@intel.com>
9651 Thomas Schwinge <thomas@codesourcery.com>
9652 Andrey Turetskiy <andrey.turetskiy@intel.com>
9653
9654 * libgomp.map (GOMP_4.0.1): New symbol version.
9655 Add GOMP_offload_register.
9656 * libgomp_target.h: New file.
9657 * splay-tree.h: New file.
9658 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
9659 (gomp_target_init): New forward declaration.
9660 (gomp_is_initialized): New static variable.
9661 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
9662 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
9663 New structures.
9664 (offload_images, num_offload_images, devices, num_devices): New static
9665 variables.
9666 (splay_compare): New static function.
9667 (struct gomp_device_descr): New structure.
9668 (gomp_get_num_devices): Call gomp_target_init.
9669 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
9670 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
9671 (GOMP_offload_register): New function.
9672 (GOMP_target): Arrange for host callback to be performed in a separate
9673 initial thread and contention group, inheriting ICVs from
9674 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
9675 Add device initialization and lookup for target function in splay tree.
9676 (GOMP_target_data): Add device initialization and call gomp_map_vars.
9677 (GOMP_target_end_data): Call gomp_unmap_vars.
9678 (GOMP_target_update): Add device initialization and call gomp_update.
9679 (gomp_load_plugin_for_device, gomp_register_images_for_device)
9680 (gomp_target_init): New static functions.
9681
85c64bbe
BS
96822014-11-13 Bernd Schmidt <bernds@codesourcery.com>
9683 Thomas Schwinge <thomas@codesourcery.com>
9684 Ilya Verbin <ilya.verbin@intel.com>
9685 Andrey Turetskiy <andrey.turetskiy@intel.com>
9686
9687 * config.h.in: Regenerate.
9688 * configure: Regenerate.
9689 * configure.ac: Check for libdl, required for plugin support.
9690 (PLUGIN_SUPPORT): Define if plugins are supported.
9691 (enable_offload_targets): Support Intel MIC targets.
9692 (OFFLOAD_TARGETS): List of target names suitable for offloading.
9693
ebf6d33b
FXC
96942014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9695
9696 PR target/63610
9697 * configure: Regenerate.
9698
8c768629
RO
96992014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9700
9701 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
9702
c1d62412
MP
97032014-10-06 Marek Polacek <polacek@redhat.com>
9704
9705 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
9706 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
9707 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
9708 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
9709
44a0c6cb
MP
97102014-10-06 Marek Polacek <polacek@redhat.com>
9711
9712 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
9713 * testsuite/libgomp.c/nqueens-1.c: Likewise.
9714 * testsuite/libgomp.c/pr26943-3.c: Likewise.
9715 * testsuite/libgomp.c/pr26943-4.c: Likewise.
9716 * testsuite/libgomp.c/pr36802-2.c: Likewise.
9717 * testsuite/libgomp.c/pr36802-3.c: Likewise.
9718 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
9719 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
9720 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
9721 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
9722 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
9723 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
9724 * testsuite/libgomp.c/omp-single-1.c: Likewise.
9725 * testsuite/libgomp.c/omp-single-2.c: Likewise.
9726 * testsuite/libgomp.c/omp_matvec.c: Likewise.
9727 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
9728 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
9729 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
9730 declarations.
9731
5771c391
JJ
97322014-10-03 Jakub Jelinek <jakub@redhat.com>
9733
9734 PR libgomp/61200
9735 * testsuite/libgomp.c/pr61200.c: New test.
9736
bce16b88
JJ
97372014-09-18 Jakub Jelinek <jakub@redhat.com>
9738
9739 PR c++/63248
9740 * testsuite/libgomp.c++/pr63248.C: New test.
9741
3696163c
JJ
97422014-08-04 Jakub Jelinek <jakub@redhat.com>
9743
9744 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
9745 is not zero, but taskgroup->children is NULL and there are
9746 any task->children, schedule those instead of waiting.
9747 * testsuite/libgomp.c/depend-6.c: New test.
9748 * testsuite/libgomp.c/depend-7.c: New test.
9749 * testsuite/libgomp.c/depend-8.c: New test.
9750 * testsuite/libgomp.c/depend-9.c: New test.
9751 * testsuite/libgomp.c/depend-10.c: New test.
9752
0494285a
JJ
97532014-08-01 Jakub Jelinek <jakub@redhat.com>
9754
9755 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
9756 (struct gomp_taskwait): New type.
9757 (struct gomp_task): Add taskwait and parent_depends_on, remove
9758 in_taskwait and taskwait_sem fields.
9759 (gomp_finish_task): Don't destroy taskwait_sem.
9760 * task.c (gomp_init_task): Don't init in_taskwait, instead init
9761 taskwait and parent_depends_on.
9762 (GOMP_task): For if (0) tasks with depend clause that depend on
9763 earlier tasks don't defer them, instead call
9764 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
9765 Initialize redundant_out field, for redundant out entries just
9766 move them at the end of linked list instead of removing them
9767 completely, and set redundant_out flag instead of redundant.
9768 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
9769 that task.
9770 (gomp_task_run_post_handle_dependers): If parent is in
9771 gomp_task_maybe_wait_for_dependencies and newly runnable task
9772 is not parent_depends_on, queue it in parent->children linked
9773 list after all runnable tasks with parent_depends_on set.
9774 Adjust for addition of taskwait indirection.
9775 (gomp_task_run_post_remove_parent): If parent is in
9776 gomp_task_maybe_wait_for_dependencies and task to be removed
9777 is parent_depends_on, decrement n_depend and if needed awake
9778 parent. Adjust for addition of taskwait indirection.
9779 (GOMP_taskwait): Adjust for addition of taskwait indirection.
9780 (gomp_task_maybe_wait_for_dependencies): New function.
9781 * testsuite/libgomp.c/depend-5.c: New test.
9782
60ab4b44
TB
97832014-07-13 Tobias Burnus <burnus@net-b.de>
9784
9785 * testsuite/libgomp.fortran/pr34020.f90: Make compile
0494285a 9786 with TS 18508/Fortran 2015.
60ab4b44 9787
773ec47f
MP
97882014-07-06 Marek Polacek <polacek@redhat.com>
9789
9790 PR c/6940
9791 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
9792
f707da16
JJ
97932014-07-03 Jakub Jelinek <jakub@redhat.com>
9794
9795 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
9796 matches regex $lang_source_re, add $lang_include_flags to options.
9797 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
9798 * testsuite/libgomp.c++/c++.exp: Likewise.
9799 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
9800 and lang_include_flags instead of adding -fintrinsic-modules-path= to
9801 ALWAYS_CFLAGS.
9802 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
9803
07b6c044
TS
98042014-07-03 Thomas Schwinge <thomas@codesourcery.com>
9805
9806 * testsuite/libgomp.fortran/fortran.exp: Explain
9807 gfortran-dg-runtest usage.
9808
da6f124d
JJ
98092014-06-25 Jakub Jelinek <jakub@redhat.com>
9810
9811 * testsuite/libgomp.fortran/simd5.f90: New test.
9812 * testsuite/libgomp.fortran/simd6.f90: New test.
9813 * testsuite/libgomp.fortran/simd7.f90: New test.
9814
b46ebd6c
JJ
98152014-06-24 Jakub Jelinek <jakub@redhat.com>
9816
56ad0e38
JJ
9817 * testsuite/libgomp.c/for-2.c: Define SC to static for
9818 #pragma omp for simd testing.
9819 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
9820 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
9821 SC macro.
9822 * testsuite/libgomp.c/simd-14.c: New test.
9823 * testsuite/libgomp.c/simd-15.c: New test.
9824 * testsuite/libgomp.c/simd-16.c: New test.
9825 * testsuite/libgomp.c/simd-17.c: New test.
9826 * testsuite/libgomp.c++/for-10.C: Define SC to static for
9827 #pragma omp for simd testing.
9828 * testsuite/libgomp.c++/simd10.C: New test.
9829 * testsuite/libgomp.c++/simd11.C: New test.
9830 * testsuite/libgomp.c++/simd12.C: New test.
9831 * testsuite/libgomp.c++/simd13.C: New test.
9832
b46ebd6c
JJ
9833 * testsuite/libgomp.fortran/aligned1.f03: New test.
9834 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
9835 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
9836 tasks with !$omp parallel !$omp single.
9837 * testsuite/libgomp.fortran/target8.f90: New test.
9838 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
9839 not to use trim in the combiner, instead call elemental function.
9840 (fn): New elemental function.
9841 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
9842 Make elemental.
9843 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
9844 omp_in): Likewise.
9845 * testsuite/libgomp.fortran/udr12.f90: New test.
9846 * testsuite/libgomp.fortran/udr13.f90: New test.
9847 * testsuite/libgomp.fortran/udr14.f90: New test.
9848 * testsuite/libgomp.fortran/udr15.f90: New test.
9849
f014c653
JJ
98502014-06-18 Jakub Jelinek <jakub@redhat.com>
9851
9852 * omp_lib.f90.in (openmp_version): Set to 201307.
9853 * omp_lib.h.in (openmp_version): Likewise.
9854 * testsuite/libgomp.c/target-8.c: New test.
9855 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
9856 and inbranch clauses.
9857 * testsuite/libgomp.fortran/depend-3.f90: New test.
9858 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
9859 openmp_version.
9860 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9861 * testsuite/libgomp.fortran/target1.f90: New test.
9862 * testsuite/libgomp.fortran/target2.f90: New test.
9863 * testsuite/libgomp.fortran/target3.f90: New test.
9864 * testsuite/libgomp.fortran/target4.f90: New test.
9865 * testsuite/libgomp.fortran/target5.f90: New test.
9866 * testsuite/libgomp.fortran/target6.f90: New test.
9867 * testsuite/libgomp.fortran/target7.f90: New test.
9868
92d28cbb
JJ
98692014-06-10 Jakub Jelinek <jakub@redhat.com>
9870
9871 PR fortran/60928
9872 * testsuite/libgomp.fortran/allocatable9.f90: New test.
9873 * testsuite/libgomp.fortran/allocatable10.f90: New test.
9874 * testsuite/libgomp.fortran/allocatable11.f90: New test.
9875 * testsuite/libgomp.fortran/allocatable12.f90: New test.
9876 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
9877 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
9878 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
9879 * testsuite/libgomp.fortran/associate1.f90: New test.
9880 * testsuite/libgomp.fortran/associate2.f90: New test.
9881 * testsuite/libgomp.fortran/procptr1.f90: New test.
9882
5f23671d
JJ
98832014-06-06 Jakub Jelinek <jakub@redhat.com>
9884
9885 * testsuite/libgomp.fortran/simd1.f90: New test.
9886 * testsuite/libgomp.fortran/udr1.f90: New test.
9887 * testsuite/libgomp.fortran/udr2.f90: New test.
9888 * testsuite/libgomp.fortran/udr3.f90: New test.
9889 * testsuite/libgomp.fortran/udr4.f90: New test.
9890 * testsuite/libgomp.fortran/udr5.f90: New test.
9891 * testsuite/libgomp.fortran/udr6.f90: New test.
9892 * testsuite/libgomp.fortran/udr7.f90: New test.
9893 * testsuite/libgomp.fortran/udr8.f90: New test.
9894 * testsuite/libgomp.fortran/udr9.f90: New test.
9895 * testsuite/libgomp.fortran/udr10.f90: New test.
9896 * testsuite/libgomp.fortran/udr11.f90: New test.
9897
0389fbb5
UB
98982014-05-27 Uros Bizjak <ubizjak@gmail.com>
9899
9900 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
9901 vect_simd_clones effective target.
9902 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
9903
decaaec8
JJ
99042014-05-21 Jakub Jelinek <jakub@redhat.com>
9905
9906 PR middle-end/61252
9907 * testsuite/libgomp.c++/simd-9.C: New test.
9908
72832460
UB
99092014-05-18 Uros Bizjak <ubizjak@gmail.com>
9910
9911 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
9912 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
9913 texts according to their @menu entry positions.
9914
dd2fc525
JJ
99152014-05-11 Jakub Jelinek <jakub@redhat.com>
9916
9917 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
9918 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
9919 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
9920 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
9921 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
9922 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
9923 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
9924 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
9925 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
9926 * testsuite/libgomp.fortran/depend-1.f90: New test.
9927 * testsuite/libgomp.fortran/depend-2.f90: New test.
9928 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
9929 * testsuite/libgomp.fortran/simd1.f90: New test.
9930 * testsuite/libgomp.fortran/simd2.f90: New test.
9931 * testsuite/libgomp.fortran/simd3.f90: New test.
9932 * testsuite/libgomp.fortran/simd4.f90: New test.
9933 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
9934
95782571
JJ
99352014-05-02 Jakub Jelinek <jakub@redhat.com>
9936
9937 * testsuite/libgomp.c/simd-10.c: New test.
9938 * testsuite/libgomp.c/simd-11.c: New test.
9939 * testsuite/libgomp.c/simd-12.c: New test.
9940 * testsuite/libgomp.c/simd-13.c: New test.
9941
f7468577
JJ
99422014-04-24 Jakub Jelinek <jakub@redhat.com>
9943
42056eac
JJ
9944 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
9945 atomic type clauses in any order and optional comma in between.
9946 * testsuite/libgomp.c++/atomic-15.C: Likewise.
9947 * testsuite/libgomp.c/atomic-17.c: Likewise.
9948
f7468577
JJ
9949 * testsuite/libgomp.c/simd-7.c: New test.
9950 * testsuite/libgomp.c/simd-8.c: New test.
9951 * testsuite/libgomp.c/simd-9.c: New test.
9952 * testsuite/libgomp.c/loop-16.c: New test.
9953
ab18f2f5
RH
99542014-04-02 Richard Henderson <rth@redhat.com>
9955
9956 * config/linux/futex.h (futex_wait): Get error value from errno.
9957 (futex_wake): Likewise.
9958
8bcc90b0
JJ
99592014-03-25 Jakub Jelinek <jakub@redhat.com>
9960
9961 PR c++/60331
9962 * testsuite/libgomp.c++/udr-11.C: New test.
9963 * testsuite/libgomp.c++/udr-12.C: New test.
9964 * testsuite/libgomp.c++/udr-13.C: New test.
9965 * testsuite/libgomp.c++/udr-14.C: New test.
9966 * testsuite/libgomp.c++/udr-15.C: New test.
9967 * testsuite/libgomp.c++/udr-16.C: New test.
9968 * testsuite/libgomp.c++/udr-17.C: New test.
9969 * testsuite/libgomp.c++/udr-18.C: New test.
9970 * testsuite/libgomp.c++/udr-19.C: New test.
9971
18d73c7f
RS
99722014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9973
9974 Update copyright years
9975
f9030485
RS
99762014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9977
9978 * hashtab.h: Use the standard form for the copyright notice.
9979
98db73df
TB
99802014-01-02 Tobias Burnus <burnus@net-b.de>
9981
9982 * libgomp.texi: Bump @copying's copyright year.
9983
ae246f7f
AT
99842013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
9985
93d90219 9986 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
ae246f7f
AT
9987 alloca () with __builtin_alloca ().
9988 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
9989 * testsuite/libgomp.c/lock-3.c: Likewise.
9990 * testsuite/libgomp.c/pr48591.c: Likewise.
9991
fa00a5fe
JJ
99922013-12-17 Jakub Jelinek <jakub@redhat.com>
9993
9994 PR testsuite/59534
9995 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
9996 comparisons.
9997
e9792e1d
JJ
99982013-12-16 Jakub Jelinek <jakub@redhat.com>
9999
10000 PR libgomp/58756
10001 * testsuite/libgomp.c/pr58756.c: New test.
10002
cab37c89
JJ
100032013-12-12 Jakub Jelinek <jakub@redhat.com>
10004
10005 PR libgomp/59467
10006 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
10007 !$omp parallel.
10008
de14871c
TS
100092013-11-07 Thomas Schwinge <thomas@codesourcery.com>
10010
1707a5de
TS
10011 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
10012 ALWAYS_CFLAGS.
10013 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
10014 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
10015 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
10016 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
10017 Likewise.
10018
70f05c43
TS
10019 * libgomp_g.h: Include <stddef.h> for size_t.
10020
de14871c
TS
10021 * libgomp.spec.in: Update comment about libgomp's dependencies.
10022 * configure.ac: Likewise.
10023 * configure: Regenerate.
10024
83fd6c5b
TB
100252013-10-16 Tobias Burnus <burnus@net-b.de>
10026
10027 * libgomp.texi: (Runtime Library Routines): Update references for
10028 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
10029 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
10030 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
10031 (Environment Variables): Update references for OpenMP 4.0. Add
10032 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
10033 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
10034 order.
10035
c8673881
JJ
100362013-10-14 Jakub Jelinek <jakub@redhat.com>
10037
10038 * env.c (parse_bind_var): Initialize value to avoid
10039 (false positive) warning.
10040
f89163fd
JJ
100412013-10-12 Jakub Jelinek <jakub@redhat.com>
10042
10043 PR libgomp/58691
10044 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
10045 to check variable.
10046 (gomp_init_num_threads): Move i variable declaration into
10047 #ifdef CPU_ALLOC_SIZE block.
10048 * config/linux/affinity.c (gomp_affinity_init_level): Test
10049 gomp_places_list_len == 0 rather than gomp_places_list == 0
10050 when checking for topology reading error.
10051 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
10052 * env.c (parse_affinity): Add ignore argument, if true, don't populate
10053 gomp_places_list, only parse env var and always return false.
10054 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
10055 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
10056 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
10057 and either of these variables were parsed correctly into a places
10058 list.
10059
1d340638
TS
100602013-10-11 Thomas Schwinge <thomas@codesourcery.com>
10061 Jakub Jelinek <jakub@redhat.com>
10062
10063 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
10064 of 5 loopfn matches.
10065 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
10066 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
10067 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
10068 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
10069 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
10070 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
10071 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
10072 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
10073
71a81c21
TS
100742013-10-11 Thomas Schwinge <thomas@codesourcery.com>
10075
bd87f731
TS
10076 * Makefile.am (omp_lib.mod): Streamline rule.
10077 * Makefile.in: Regenerate.
10078
f5745bed
TS
10079 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
10080 exceptions.
10081
b5512c66
TS
10082 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
10083 * testsuite/libgomp.fortran/lib1.f90: Likewise.
10084 * testsuite/libgomp.fortran/lib2.f: Likewise.
10085 * testsuite/libgomp.fortran/lib3.f: Likewise.
10086
451c19c4
TS
10087 * configure.ac: Typo fix.
10088 * configure: Regenerate.
10089
86a6016d
TS
10090 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
10091 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
10092
71a81c21
TS
10093 * omp.h.in: Don't touch the user's namespace.
10094
acf0174b
JJ
100952013-10-11 Jakub Jelinek <jakub@redhat.com>
10096 Tobias Burnus <burnus@net-b.de>
10097 Richard Henderson <rth@redhat.com>
10098
10099 * target.c: New file.
10100 * Makefile.am (libgomp_la_SOURCES): Add target.c.
10101 * Makefile.in: Regenerated.
10102 * libgomp_g.h (GOMP_task): Add depend argument.
10103 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
10104 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
10105 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
10106 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
10107 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
10108 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
10109 GOMP_taskgroup_start, GOMP_taskgroup_end,
10110 GOMP_parallel_sections): New prototypes.
10111 * fortran.c (omp_is_initial_device): Add ialias_redirect.
10112 (omp_is_initial_device_): New function.
10113 (ULP, STR1, STR2, ialias_redirect): Removed.
10114 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
10115 omp_set_default_device_8_, omp_get_default_device_,
10116 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
10117 functions.
10118 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
10119 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
10120 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
10121 @@GOMP_4.0.
10122 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
10123 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
10124 omp_set_default_device, omp_set_default_device_,
10125 omp_set_default_device_8_, omp_get_default_device,
10126 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
10127 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
10128 omp_get_team_num_): Export @@OMP_4.0.
10129 * team.c (struct gomp_thread_start_data): Add place field.
10130 (gomp_thread_start): Clear thr->thread_pool and
10131 thr->task before returning. Use gomp_team_barrier_wait_final
10132 instead of gomp_team_barrier_wait. Initialize thr->place.
10133 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
10134 team_cancelled and task_queued_count fields.
10135 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
10136 before calling pthread_exit.
10137 (gomp_free_thread): No longer static. Use
10138 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
10139 (gomp_team_start): Add flags argument. Set
10140 thr->thread_pool->threads_busy to nthreads immediately after creating
10141 new pool. Use gomp_managed_threads_lock instead of
10142 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
10143 (gomp_team_end): Use gomp_managed_threads_lock instead of
10144 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
10145 of gomp_team_barrier_wait. If team->team_cancelled, call
93d90219 10146 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
acf0174b
JJ
10147 rather than thr->ts.work_share.
10148 (initialize_team): Don't call gomp_sem_init here.
10149 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
10150 caller.
10151 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
10152 * env.c (gomp_global_icv): Add default_device_var, target_data and
10153 bind_var initializers.
10154 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
10155 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
10156 gomp_places_list_len): New variables.
10157 (parse_bind_var, parse_one_place, parse_places_var): New functions.
10158 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
10159 sized places.
10160 (gomp_cancel_var): New global variable.
10161 (parse_int): New function.
10162 (handle_omp_display_env): New function.
10163 (initialize_env): Use it. Initialize default_device_var.
10164 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
10165 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
10166 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
10167 been successfully parsed (and call gomp_init_affinity in that case).
10168 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
10169 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
10170 omp_get_team_num, omp_is_initial_device): New functions.
10171 * libgomp.h: Include stdlib.h.
10172 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
10173 Define.
10174 (struct target_mem_desc): Forward declare.
10175 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
10176 and thread_limit_var fields.
10177 (gomp_get_num_devices): New prototype.
10178 (gomp_cancel_var): New extern decl.
10179 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
10180 team_cancelled and task_queued_count fields. Add comments about
10181 task_{,queued_,running_}count.
10182 (gomp_cancel_kind): New enum.
10183 (gomp_work_share_end_cancel): New prototype.
10184 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
10185 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
10186 and depend fields.
10187 (struct gomp_taskgroup): New type.
10188 (struct gomp_task_depend_entry,
10189 struct gomp_dependers_vec): New types.
10190 (gomp_finish_task): Free depend_hash if non-NULL.
10191 (struct gomp_team_state): Add place_partition_off
10192 and place_partition_len fields.
10193 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
10194 gomp_places_list_len): New extern decls.
10195 (struct gomp_thread): Add place field.
10196 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
10197 (gomp_init_thread_affinity): Add place argument.
10198 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
10199 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
10200 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
10201 gomp_affinity_init_level, gomp_affinity_print_place): New
10202 prototypes.
10203 (gomp_team_start): Add flags argument.
10204 (gomp_thread_limit_var, gomp_remaining_threads_count,
10205 gomp_remaining_threads_lock): Remove.
10206 (gomp_managed_threads_lock): New variable.
10207 (struct gomp_thread_pool): Add threads_busy field.
10208 (gomp_free_thread): New prototype.
10209 * task.c: Include hashtab.h.
10210 (hash_entry_type): New typedef.
10211 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
10212 (gomp_init_task): Clear dependers, depend_hash, depend_count,
10213 copy_ctors_done and taskgroup fields.
10214 (GOMP_task): Add depend argument, handle depend clauses. If
10215 gomp_team_barrier_cancelled or if it's taskgroup has been
10216 cancelled, don't queue or start new tasks. Set copy_ctors_done
10217 field if needed. Initialize taskgroup field. If copy_ctors_done
10218 and already cancelled, don't discard the task. If taskgroup is
10219 non-NULL, enqueue the task into taskgroup queue. Increment
10220 num_children field in taskgroup. Increment task_queued_count.
10221 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
10222 gomp_task_run_post_remove_taskgroup): New inline functions.
10223 (gomp_task_run_post_handle_depend_hash,
10224 gomp_task_run_post_handle_dependers,
10225 gomp_task_run_post_handle_depend): New functions.
10226 (GOMP_taskwait): Use them. If more than one new tasks
10227 have been queued, wake other threads if needed.
10228 (gomp_barrier_handle_tasks): Likewise. If
10229 gomp_team_barrier_cancelled, don't start any new tasks, just free
10230 all tasks.
10231 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
10232 * omp_lib.f90.in
10233 (omp_proc_bind_kind, omp_proc_bind_false,
10234 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
10235 omp_proc_bind_spread): New params.
10236 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
10237 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
10238 omp_get_team_num, omp_is_initial_device): New interfaces.
10239 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
10240 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
10241 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
10242 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
10243 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
10244 useless use omp_lib_kinds.
10245 * omp.h.in (omp_proc_bind_t): New typedef.
10246 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
10247 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
10248 omp_get_team_num, omp_is_initial_device): New prototypes.
10249 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
10250 through to gomp_team_start.
10251 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
10252 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
10253 Adjust gomp_parallel_loop_start callers.
10254 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
10255 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
10256 GOMP_loop_end_cancel): New functions.
10257 (GOMP_parallel_end): Add ialias_redirect.
10258 * hashtab.h: New file.
10259 * libgomp.texi (Environment Variables): Minor cleanup,
10260 update section refs to OpenMP 4.0rc2.
10261 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
10262 environment variables.
10263 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
10264 team->work_shares_to_free to thr->ts.work_share before calling
10265 free_work_share.
10266 (gomp_work_share_end_cancel): New function.
10267 * config/linux/proc.c: Include errno.h.
10268 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
10269 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
10270 sizeof (cpu_set_t) to determine number of iterations. Fix up check
10271 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
10272 gomp_cpuset_size is sizeof (cpu_set_t).
10273 (gomp_init_num_threads): Initialize gomp_cpuset_size,
10274 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
10275 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
10276 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
10277 contain any logical CPUs.
10278 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
10279 is NULL. Use gomp_cpusetp instead of &cpuset and pass
10280 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
10281 pthread_getaffinity_np. Check gomp_places_list instead of
10282 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
10283 * config/linux/bar.c (gomp_barrier_wait_end,
10284 gomp_barrier_wait_last): Use BAR_* defines.
10285 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
10286 from state where needed. Set work_share_cancelled to 0 on last
10287 thread.
10288 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
10289 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
10290 functions.
10291 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
10292 Add cpusetsize argument.
10293 (gomp_cpuset_size, gomp_cpusetp): Declare.
10294 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
10295 (affinity_counter): Remove.
10296 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
10297 if CPU_ALLOC_SIZE isn't defined.
10298 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
10299 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
10300 bind current thread to the first place.
10301 (gomp_init_thread_affinity): Rewritten. Add place argument, just
10302 pthread_setaffinity_np to gomp_places_list[place].
10303 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
10304 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
10305 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
10306 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
10307 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
10308 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
10309 (gomp_barrier_t): Add awaited_final field.
10310 (gomp_barrier_init): Initialize awaited_final field.
10311 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
10312 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
10313 prototypes.
10314 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
10315 defines.
10316 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
10317 gomp_team_barrier_cancelled): New inline functions.
10318 (gomp_barrier_last_thread,
10319 gomp_team_barrier_set_task_pending,
10320 gomp_team_barrier_clear_task_pending,
10321 gomp_team_barrier_set_waiting_for_tasks,
10322 gomp_team_barrier_waiting_for_tasks,
10323 gomp_team_barrier_done): Use BAR_* defines.
10324 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
10325 (gomp_barrier_wait_end): Use BAR_* defines.
10326 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
10327 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
10328 Use BAR_* defines.
10329 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
10330 gomp_team_barrier_cancel): New functions.
10331 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
10332 argument.
10333 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
10334 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
10335 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
10336 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
10337 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
10338 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
10339 (gomp_barrier_t): Add cancellable field.
10340 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
10341 gomp_team_barrier_cancel): New prototypes.
10342 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
10343 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
10344 gomp_team_barrier_cancelled): New inline functions.
10345 (gomp_barrier_wait_start, gomp_barrier_last_thread,
10346 gomp_team_barrier_set_task_pending,
10347 gomp_team_barrier_clear_task_pending,
10348 gomp_team_barrier_set_waiting_for_tasks,
10349 gomp_team_barrier_waiting_for_tasks,
10350 gomp_team_barrier_done): Use BAR_* defines.
10351 * barrier.c (GOMP_barrier_cancel): New function.
10352 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
10353 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
10354 omp_proc_bind_spread): New params.
10355 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
10356 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
10357 omp_get_team_num, omp_is_initial_device): New externals.
10358 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
10359 New functions.
10360 (gomp_resolve_num_threads): Adjust for thread_limit now being in
10361 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
10362 infinity. If not nested, just return minimum of max_num_threads
10363 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
10364 to the returned value. Otherwise, don't update atomically
10365 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
10366 (GOMP_parallel_end): Adjust for thread_limit now being in
10367 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
10368 infinity. Adjust threads_busy in the pool rather than
10369 gomp_remaining_threads_count. Remember team->nthreads and call
10370 gomp_team_end before adjusting threads_busy, if not nested
10371 afterwards, just set it to 1 non-atomically. Add ialias.
10372 (GOMP_parallel_start): Adjust gomp_team_start caller.
10373 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
10374 * testsuite/libgomp.c/affinity-1.c: New test.
10375 * testsuite/libgomp.c/atomic-15.c: New test.
10376 * testsuite/libgomp.c/atomic-16.c: New test.
10377 * testsuite/libgomp.c/atomic-17.c: New test.
10378 * testsuite/libgomp.c/cancel-for-1.c: New test.
10379 * testsuite/libgomp.c/cancel-for-2.c: New test.
10380 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
10381 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
10382 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
10383 * testsuite/libgomp.c/cancel-sections-1.c: New test.
10384 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
10385 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
10386 * testsuite/libgomp.c/depend-1.c: New test.
10387 * testsuite/libgomp.c/depend-2.c: New test.
10388 * testsuite/libgomp.c/depend-3.c: New test.
10389 * testsuite/libgomp.c/depend-4.c: New test.
10390 * testsuite/libgomp.c/for-1.c: New test.
10391 * testsuite/libgomp.c/for-1.h: New file.
10392 * testsuite/libgomp.c/for-2.c: New test.
10393 * testsuite/libgomp.c/for-2.h: New file.
10394 * testsuite/libgomp.c/for-3.c: New test.
10395 * testsuite/libgomp.c/pr58392.c: New test.
10396 * testsuite/libgomp.c/simd-1.c: New test.
10397 * testsuite/libgomp.c/simd-2.c: New test.
10398 * testsuite/libgomp.c/simd-3.c: New test.
10399 * testsuite/libgomp.c/simd-4.c: New test.
10400 * testsuite/libgomp.c/simd-5.c: New test.
10401 * testsuite/libgomp.c/simd-6.c: New test.
10402 * testsuite/libgomp.c/target-1.c: New test.
10403 * testsuite/libgomp.c/target-2.c: New test.
10404 * testsuite/libgomp.c/target-3.c: New test.
10405 * testsuite/libgomp.c/target-4.c: New test.
10406 * testsuite/libgomp.c/target-5.c: New test.
10407 * testsuite/libgomp.c/target-6.c: New test.
10408 * testsuite/libgomp.c/target-7.c: New test.
10409 * testsuite/libgomp.c/taskgroup-1.c: New test.
10410 * testsuite/libgomp.c/thread-limit-1.c: New test.
10411 * testsuite/libgomp.c/thread-limit-2.c: New test.
10412 * testsuite/libgomp.c/thread-limit-3.c: New test.
10413 * testsuite/libgomp.c/udr-1.c: New test.
10414 * testsuite/libgomp.c/udr-2.c: New test.
10415 * testsuite/libgomp.c/udr-3.c: New test.
10416 * testsuite/libgomp.c++/affinity-1.C: New test.
10417 * testsuite/libgomp.c++/atomic-10.C: New test.
10418 * testsuite/libgomp.c++/atomic-11.C: New test.
10419 * testsuite/libgomp.c++/atomic-12.C: New test.
10420 * testsuite/libgomp.c++/atomic-13.C: New test.
10421 * testsuite/libgomp.c++/atomic-14.C: New test.
10422 * testsuite/libgomp.c++/atomic-15.C: New test.
10423 * testsuite/libgomp.c++/cancel-for-1.C: New test.
10424 * testsuite/libgomp.c++/cancel-for-2.C: New test.
10425 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
10426 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
10427 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
10428 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
10429 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
10430 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
10431 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
10432 * testsuite/libgomp.c++/cancel-test.h: New file.
10433 * testsuite/libgomp.c++/for-9.C: New test.
10434 * testsuite/libgomp.c++/for-10.C: New test.
10435 * testsuite/libgomp.c++/for-11.C: New test.
10436 * testsuite/libgomp.c++/simd-1.C: New test.
10437 * testsuite/libgomp.c++/simd-2.C: New test.
10438 * testsuite/libgomp.c++/simd-3.C: New test.
10439 * testsuite/libgomp.c++/simd-4.C: New test.
10440 * testsuite/libgomp.c++/simd-5.C: New test.
10441 * testsuite/libgomp.c++/simd-6.C: New test.
10442 * testsuite/libgomp.c++/simd-7.C: New test.
10443 * testsuite/libgomp.c++/simd-8.C: New test.
10444 * testsuite/libgomp.c++/target-1.C: New test.
10445 * testsuite/libgomp.c++/target-2.C: New test.
10446 * testsuite/libgomp.c++/target-2-aux.cc: New file.
10447 * testsuite/libgomp.c++/target-3.C: New test.
10448 * testsuite/libgomp.c++/taskgroup-1.C: New test.
10449 * testsuite/libgomp.c++/udr-1.C: New test.
10450 * testsuite/libgomp.c++/udr-2.C: New test.
10451 * testsuite/libgomp.c++/udr-3.C: New test.
10452 * testsuite/libgomp.c++/udr-4.C: New test.
10453 * testsuite/libgomp.c++/udr-5.C: New test.
10454 * testsuite/libgomp.c++/udr-6.C: New test.
10455 * testsuite/libgomp.c++/udr-7.C: New test.
10456 * testsuite/libgomp.c++/udr-8.C: New test.
10457 * testsuite/libgomp.c++/udr-9.C: New test.
10458
bd599dea
JJ
104592013-09-20 Jakub Jelinek <jakub@redhat.com>
10460
10461 PR testsuite/57605
10462 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
10463 ALWAYS_CFLAGS.
10464
3cbe17f7
AM
104652013-09-20 Alan Modra <amodra@gmail.com>
10466
10467 * configure: Regenerate.
10468
4befd127
JJ
104692013-09-19 Jakub Jelinek <jakub@redhat.com>
10470
10471 * testsuite/libgomp.c/sections-2.c: New test.
10472
946c8f7b
MS
104732013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
10474
10475 * testsuite/libgomp.fortran/strassen.f90:
10476 Add dg-skip-if aarch64_tiny.
10477
1ef3b58e
IS
104782013-06-20 Iain Sandoe <iain@codesourcery.com>
10479 Cesar Philippidis <cesar@codesourcery.com>
10480
10481 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
10482 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
10483 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
10484 * testsuite/libgomp.fortran/fortran.exp: Likewise.
10485 * testsuite/libgomp.graphite/graphite.exp: Likewise.
10486 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
10487 Use dg-runtest rather than gfortran-dg-runtest.
10488
9275f73a
TS
104892013-06-10 Thomas Schwinge <thomas@codesourcery.com>
10490
10491 * testsuite/libgomp.c/icv-2.c: Extend current handling of
10492 Linux-based x86 systems to cover all GNU systems.
10493 * testsuite/libgomp.c/lock-3.c: Likewise.
10494 * testsuite/libgomp.c/pr48591.c: Likewise.
10495
492992e2
TS
104962013-06-06 Thomas Schwinge <thomas@codesourcery.com>
10497
48df3acb
TS
10498 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
10499 GNU/Hurd, as done for Linux-based systems.
10500
492992e2
TS
10501 * config/posix/ptrlock.h: Fix comment.
10502
4fed6b25
TB
105032013-05-27 Tobias Burnus <burnus@net-b.de>
10504
10505 PR fortran/57423
10506 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
10507 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
10508 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
10509 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
10510 omp_destroy_nest_lock): Correct arguments to match the one in
10511 the OpenMP spec.
10512 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
10513 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
10514 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
10515 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
10516
5a0f4dd3
JJ
105172013-05-16 Jakub Jelinek <jakub@redhat.com>
10518
10519 * testsuite/libgomp.c/loop-13.c: New test.
10520 * testsuite/libgomp.c/loop-14.c: New test.
10521 * testsuite/libgomp.c/loop-15.c: New test.
10522 * testsuite/libgomp.c++/loop-13.C: New test.
10523 * testsuite/libgomp.c++/loop-14.C: New test.
10524 * testsuite/libgomp.c++/loop-15.C: New test.
10525
6d840d99
JJ
105262013-02-06 Jakub Jelinek <jakub@redhat.com>
10527
10528 PR middle-end/56217
10529 * testsuite/libgomp.c++/pr56217.C: New test.
10530
bed8d8a6
AM
105312013-02-01 Alan Modra <amodra@gmail.com>
10532
10533 * task.c (GOMP_task, GOMP_taskwait): Comment.
10534
3b35cd04
DV
105352013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
10536 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
10537
10538 PR libgomp/55561
10539 * config/linux/wait.h (do_spin): Use atomic load for addr.
10540 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
10541 for intptr and ptrlock.
10542 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
10543 for ptrlock.
10544
9a647288
AM
105452013-01-22 Alan Modra <amodra@gmail.com>
10546
10547 PR libgomp/51376
10548 PR libgomp/56073
10549 * task.c (GOMP_task): Revert 2011-12-09 change.
10550 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
10551 barrier to read task->children..
10552 (gomp_barrier_handle_tasks): ..and matching atomic store with
10553 release barrier here when setting parent->children to NULL.
10554
f34dea03
JJ
105552013-01-16 Jakub Jelinek <jakub@redhat.com>
10556 Tobias Burnus <burnus@net-b.de>
10557
10558 PR driver/55884
10559 * testsuite/libgomp.fortran/fortran.exp: Use
10560 -fintrinsic-modules-path= instead of
10561 -fintrinsic-modules-path.
10562
8129609c
RS
105632013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
10564
10565 Update copyright years.
10566
aa86bf1e
TB
105672012-12-19 Tobias Burnus <burnus@net-b.de>
10568
10569 * testsuite/libgomp.fortran/fortran.exp: Set
10570 -fintrinsic-modules-path.
10571
2865ea66
TB
105722012-12-19 Tobias Burnus <burnus@net-b.de>
10573
10574 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
10575 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
10576
4c5ba8d0
JJ
105772012-11-21 Jakub Jelinek <jakub@redhat.com>
10578
10579 PR libgomp/55411
10580 * team.c (gomp_free_thread): Decrease gomp_managed_threads
10581 if pool had any threads_used.
10582
e9f958c2
JH
105832012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
10584
10585 * testsuite/libgomp.c++/pr24455.C: Use
10586 -Wl,-undefined,dynamic_lookup on darwin.
10587
a57d75dc
DE
105882012-11-07 David Edelsohn <dje.gcc@gmail.com>
10589
10590 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
10591
c6c08485
DH
105922012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
10593
10594 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
10595
c1f37c00
IB
105962012-10-23 Ian Bolton <ian.bolton@arm.com>
10597 Jim MacArthur <jim.macarthur@arm.com>
10598 Marcus Shawcroft <marcus.shawcroft@arm.com>
10599 Nigel Stephens <nigel.stephens@arm.com>
10600 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10601 Richard Earnshaw <rearnsha@arm.com>
10602 Sofiane Naci <sofiane.naci@arm.com>
10603 Stephen Thomas <stephen.thomas@arm.com>
10604 Tejas Belagod <tejas.belagod@arm.com>
10605 Yufeng Zhang <yufeng.zhang@arm.com>
10606
10607 * configure.tgt: Add AArch64.
10608
7c424acd
JM
106092012-10-04 Jason Merrill <jason@redhat.com>
10610
10611 * testsuite/libgomp.c++/tls-init1.C: New.
10612
6608378b
DE
106132012-09-14 David Edelsohn <dje.gcc@gmail.com>
10614
10615 * configure: Regenerated.
10616
c24dbebb
CLT
106172012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
10618
10619 * config/linux/mips/futex.h (sys_futex0): Change to static
10620 function with noinline, nomips16 attributes under MIPS16. Adjust
10621 asm statement to place 'li v0,SYS_futex' immediately before
10622 syscall insn.
10623
3d3949df
SL
106242012-07-04 Sandra Loosemore <sandra@codesourcery.com>
10625
10626 * libgomp.texi (Library Index): Renamed from "Index" to prevent
10627 conflict with index.html on case-insensitive file systems.
10628
68a12ef3
UB
106292012-07-03 Uros Bizjak <ubizjak@gmail.com>
10630
10631 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
10632 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
10633
33ad93b9 106342012-07-02 Richard Guenther <rguenther@suse.de>
68a12ef3
UB
10635 Michael Matz <matz@suse.de>
10636 Tobias Grosser <tobias@grosser.es>
10637 Sebastian Pop <sebpop@gmail.com>
33ad93b9
RG
10638
10639 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
10640 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
10641 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
10642 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
10643
e6fdc918
AS
106442012-06-28 Andreas Schwab <schwab@linux-m68k.org>
10645
10646 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
10647
62e0a1ed
RG
106482012-06-22 Richard Guenther <rguenther@suse.de>
10649
10650 Merge from graphite branch
10651 2012-01-13 Tobias Grosser <tobias@grosser.es>
10652
10653 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10654 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
10655
26127932
JJ
106562012-06-07 Jakub Jelinek <jakub@redhat.com>
10657
10658 PR middle-end/53580
10659 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
10660 use GOMP_barrier () call instead.
10661 * testsuite/libgomp.c/pr26943-3.c: Likewise.
10662 * testsuite/libgomp.c/pr26943-4.c: Likewise.
10663 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
10664 call GOMP_barrier instead.
10665 * testsuite/libgomp.fortran/vla5.f90: Likewise.
10666
43fa5db5
JJ
106672012-06-06 Jakub Jelinek <jakub@redhat.com>
10668
10669 PR libgomp/52993
10670 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
10671 argument to memset call.
10672
e6d5f8c9
L
106732012-05-16 H.J. Lu <hongjiu.lu@intel.com>
10674
10675 * configure: Regenerated.
10676
559d990c
MLI
106772012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
10678
10679 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
10680
b9c23a61
L
106812012-03-31 H.J. Lu <hongjiu.lu@intel.com>
10682
10683 PR bootstrap/52812
10684 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
10685
c140ddf3
JJ
106862012-03-22 Jakub Jelinek <jakub@redhat.com>
10687
10688 PR middle-end/52547
10689 * testsuite/libgomp.c/pr52547.c: New test.
10690
6a26a74d
BRF
106912012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
10692
10693 * testsuite/lib/libgomp.exp: load fortran-modules.exp
10694
b24513a1
RO
106952012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10696
10697 * configure.tgt (mips-sgi-irix6*): Remove.
10698
5c30094f
RO
106992012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10700
10701 * configure.tgt (alpha*-dec-osf*): Remove.
10702
10703 * config/osf/sem.h: Remove.
10704 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
10705
a339c9d6
EB
107062012-02-29 Eric Botcazou <ebotcazou@adacore.com>
10707
10708 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
10709
cc2de92d
RO
107102012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10711
10712 PR libstdc++/52188
10713 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
10714 Remove ENABLE_SYMVERS_SOL2.
10715 * configure: Regenerate.
10716 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
10717 (PREPROCESS): New variable.
10718 (libgomp.ver): New target.
10719 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
10720 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
10721 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
10722 Use libgomp.ver.
10723 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
10724 * Makefile.in: Regenerate.
10725
dd552284
WL
107262012-02-14 Walter Lee <walt@tilera.com>
10727
10728 * configure.tgt: Handle tilegx and tilepro.
10729 * config/linux/tile/futex.h: New file.
10730
31432e21
RG
107312012-02-08 Richard Guenther <rguenther@suse.de>
10732
10733 PR tree-optimization/46886
10734 * testsuite/libgomp.c/pr46886.c: New testcase.
10735
b9264b5f
MK
107362012-01-25 Matthias Klose <doko@ubuntu.com>
10737
10738 * config/linux/arm: Remove empty directory.
10739 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
10740
fbf7be80
AM
107412011-12-09 Alan Modra <amodra@gmail.com>
10742
10743 PR libgomp/51376
10744 * task.c (GOMP_taskwait): Don't access task->children outside of
10745 task_lock mutex region.
10746 (GOMP_task): Likewise.
10747
5de62d00
JJ
107482011-12-06 Jakub Jelinek <jakub@redhat.com>
10749
10750 PR libgomp/51132
10751 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
10752 to file scope.
10753 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
10754 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
10755 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
10756 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
10757 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
10758
45608a43
AM
107592011-12-02 Alan Modra <amodra@gmail.com>
10760
10761 * config/linux/affinity.c: Use atomic rather than sync builtin.
10762 * config/linux/lock.c: Likewise.
10763 * config/linux/ptrlock.h: Likewise.
10764 * config/linux/ptrlock.c: Likewise.
10765 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
10766 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
10767 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
10768 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
10769 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
10770 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
10771 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
10772 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
10773 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
10774 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
10775
ab6dd406
AM
107762011-11-30 Alan Modra <amodra@gmail.com>
10777
10778 PR libgomp/51298
10779 * config/linux/bar.h: Use atomic rather than sync builtins.
10780 * config/linux/bar.c: Likewise. Add missing acquire
10781 synchronisation on generation field.
10782 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
10783 double unlock.
10784
b40c885f
AM
107852011-11-30 Alan Modra <amodra@gmail.com>
10786
10787 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
10788 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
10789 * config/linux/mutex.h: Use atomic rather than sync builtins.
10790 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
10791 * config/linux/omp-lock.h: Comment fix.
10792 * config/linux/arm/mutex.h: Delete.
10793 * config/linux/powerpc/mutex.h: Delete.
10794 * config/linux/ia64/mutex.h: Delete.
10795 * config/linux/mips/mutex.h: Delete.
10796
3e348fcc
AM
107972011-11-30 Alan Modra <amodra@gmail.com>
10798
10799 PR libgomp/51249
10800 * config/linux/sem.h: Rewrite.
10801 * config/linux/sem.c: Rewrite.
10802
cef86eb2
RH
108032011-11-28 Richard Henderson <rth@redhat.com>
10804
10805 * libgomp.h (enum memmodel): New.
10806
c6084f68
AT
108072011-11-21 Andreas Tobler <andreast@fgznet.ch>
10808
10809 * configure: Regenerate.
10810
06fe026c
MK
108112011-10-10 Matthias Klose <doko@ubuntu.com>
10812
10813 * config/posix95: Remove empty directory.
10814
a6c975bd
JJ
108152011-08-26 Jakub Jelinek <jakub@redhat.com>
10816
10817 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
10818
c26dffff
JJ
108192011-08-19 Jakub Jelinek <jakub@redhat.com>
10820
10821 PR fortran/49792
10822 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
10823 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
10824
ddaad3c8
RO
108252011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10826
10827 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
10828
98d03683
RO
108292011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10830
10831 PR libgomp/49965
10832 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
10833
e0b23d9f
UB
108342011-08-03 Uros Bizjak <ubizjak@gmail.com>
10835
10836 * config/linux/proc.h: New.
10837 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
10838 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
10839 (gomp_init_num_threads): Update call to cpuset_popcount.
10840 (get_num_procs): Ditto.
10841 * config/linux/affinity.c (gomp_init_affinity): Call
10842 gomp_cpuset_popcount.
10843
20906c66
JJ
108442011-08-02 Jakub Jelinek <jakub@redhat.com>
10845
10846 PR fortran/42041
10847 PR fortran/46752
10848 * omp.h.in (omp_in_final): New prototype.
10849 * omp_lib.f90.in (omp_in_final): New interface.
10850 (omp_integer_kind, omp_logical_kind): Remove
10851 and replace all its uses in the module with 4.
10852 (openmp_version): Change to 201107.
10853 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
10854 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
10855 kind for the parameters.
10856 (omp_in_final): New external.
10857 (openmp_version): Change to 201107.
10858 * task.c (omp_in_final): New function.
10859 (gomp_init_task): Initialize final_task.
10860 (GOMP_task): Remove unused attribute from flags. Handle final
10861 tasks.
10862 (GOMP_taskyield): New function.
10863 (omp_in_final): Return true if if (false) or final (true) task
10864 or descendant of final (true).
10865 * fortran.c (omp_in_final_): New function.
10866 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
10867 (GOMP_3.0): Export GOMP_taskyield.
10868 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
10869 variables.
10870 (parse_unsigned_long_list): New function.
10871 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
10872 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
10873 even if parse_affinity returned false.
10874 * config/linux/affinity.c (gomp_init_affinity): Handle
10875 gomp_cpu_affinity_len == 0.
10876 * libgomp_g.h (GOMP_taskyield): New prototype.
10877 * libgomp.h (struct gomp_task): Add final_task field.
10878 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
10879 * team.c (gomp_team_start): Override new task's nthreads_var icv
10880 if list form OMP_NUM_THREADS has been used and it has value for
10881 the new nesting level.
10882
10883 * testsuite/libgomp.c/atomic-11.c: New test.
10884 * testsuite/libgomp.c/atomic-12.c: New test.
10885 * testsuite/libgomp.c/atomic-13.c: New test.
10886 * testsuite/libgomp.c/atomic-14.c: New test.
10887 * testsuite/libgomp.c/reduction-6.c: New test.
10888 * testsuite/libgomp.c/task-5.c: New test.
10889 * testsuite/libgomp.c++/atomic-2.C: New test.
10890 * testsuite/libgomp.c++/atomic-3.C: New test.
10891 * testsuite/libgomp.c++/atomic-4.C: New test.
10892 * testsuite/libgomp.c++/atomic-5.C: New test.
10893 * testsuite/libgomp.c++/atomic-6.C: New test.
10894 * testsuite/libgomp.c++/atomic-7.C: New test.
10895 * testsuite/libgomp.c++/atomic-8.C: New test.
10896 * testsuite/libgomp.c++/atomic-9.C: New test.
10897 * testsuite/libgomp.c++/task-8.C: New test.
10898 * testsuite/libgomp.c++/reduction-4.C: New test.
10899 * testsuite/libgomp.fortran/allocatable7.f90: New test.
10900 * testsuite/libgomp.fortran/allocatable8.f90: New test.
10901 * testsuite/libgomp.fortran/crayptr3.f90: New test.
10902 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
10903 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
10904 * testsuite/libgomp.fortran/pointer1.f90: New test.
10905 * testsuite/libgomp.fortran/pointer2.f90: New test.
10906 * testsuite/libgomp.fortran/task4.f90: New test.
10907
109082011-08-02 Tobias Burnus <burnus@net-b.de>
10909
10910 * libgomp.texi: Update OpenMP spec references to 3.1.
10911 (omp_in_final,OMP_PROC_BIND): New sections.
10912 (OMP_NUM_THREADS): Document that the value can be now a list.
10913 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
10914
c01ecafc
L
109152011-08-02 H.J. Lu <hongjiu.lu@intel.com>
10916
10917 * config/linux/x86/futex.h: Check __x86_64__ instead of
10918 __LP64__.
10919
25142650
JJ
109202011-07-29 Jakub Jelinek <jakub@redhat.com>
10921
10922 PR middle-end/49897
10923 PR middle-end/49898
10924 * testsuite/libgomp.c/pr49897-1.c: New test.
10925 * testsuite/libgomp.c/pr49897-2.c: New test.
10926 * testsuite/libgomp.c/pr49898-1.c: New test.
10927 * testsuite/libgomp.c/pr49898-2.c: New test.
10928
f53d712f
L
109292011-07-28 H.J. Lu <hongjiu.lu@intel.com>
10930
10931 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
10932 for ia32 instead of ilp32.
10933
10934 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
10935 * testsuite/libgomp.c/atomic-6.c: Likewise.
10936
3689198d
SP
109372011-07-23 Sebastian Pop <sebastian.pop@amd.com>
10938
10939 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
10940 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
10941
1a79cb73
RO
109422011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10943
10944 PR libgomp/45351
10945 * config/osf/sem.h: New file.
10946 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
10947
c1f51484
RO
109482011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10949
10950 PR target/49541
10951 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
10952 ldflags.
10953
bfee0724
JJ
109542011-07-15 Jakub Jelinek <jakub@redhat.com>
10955
10956 * config/linux/wait.h (do_spin): New inline, largely copied
10957 from do_wait, just don't do futex_wait here, instead return true if
10958 it should be done.
10959 (do_wait): Implement using do_spin.
10960 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
10961 to prototype.
10962 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
10963 __sync_bool_compare_and_swap, pass the oldval to
10964 gomp_mutex_lock_slow.
10965 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
10966 If all mutex contenders are just spinning and not sleeping, don't
10967 change state to 2 unnecessarily. Optimize the loop when state has
10968 already become 2 to use just one atomic operation per loop instead
10969 of two.
10970 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
10971 to prototype.
10972 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
10973 __sync_bool_compare_and_swap, pass the oldval to
10974 gomp_mutex_lock_slow.
10975
fb79f500
JJ
109762011-06-22 Jakub Jelinek <jakub@redhat.com>
10977
10978 PR libgomp/49490
10979 * iter.c (gomp_iter_static_next): For chunk size 0
10980 only use n ceil/ nthreads size for the first
10981 n % nthreads threads in the team instead of
10982 all threads except for the last few ones which
10983 get less work or none at all.
10984 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
10985 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
10986 chunk argument, set run_sched_modifier to 0 for static
10987 resp. 1 for other kinds. If chunk argument is 0
10988 and not static, set value to 1.
10989
4577f730
JJ
109902011-05-19 Jakub Jelinek <jakub@redhat.com>
10991
ea93a47b
JJ
10992 PR c++/49043
10993 * testsuite/libgomp.c++/pr49043.C: New test.
10994
4577f730
JJ
10995 PR c++/48869
10996 * testsuite/libgomp.c++/pr48869.C: New test.
10997
e7385332
JJ
109982011-05-06 Jakub Jelinek <jakub@redhat.com>
10999
11000 PR fortran/48894
11001 * fortran.c: Include limits.h.
11002 (TO_INT): Define.
11003 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
11004 *set.
11005 (omp_set_num_threads_8_, omp_set_schedule_8_,
11006 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
11007 omp_get_team_size_8_): Use TO_INT macro.
11008 * testsuite/libgomp.fortran/pr48894.f90: New test.
11009
20790697
JJ
110102011-04-13 Jakub Jelinek <jakub@redhat.com>
11011
11012 PR middle-end/48591
11013 * testsuite/libgomp.c/pr48591.c: New test.
11014
bf382f5f
RO
110152011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11016
11017 PR bootstrap/48135
11018 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
11019 * configure: Regenerate.
11020
113a53c1
JJ
110212011-02-27 Jakub Jelinek <jakub@redhat.com>
11022
11023 PR fortran/47886
11024 * testsuite/libgomp.fortran/task3.f90: New test.
11025
0024f1af
TB
110262011-02-24 Tobias Burnus <burnus@net-b.de>
11027
11028 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
11029
21e1e594
JJ
110302011-02-23 Jakub Jelinek <jakub@redhat.com>
11031
11032 PR libgomp/47854
11033 * libgomp.texi (omp_get_wtime): Don't say time in the past
11034 must be Unix Epoch.
11035
67962076
JJ
110362011-02-18 Jakub Jelinek <jakub@redhat.com>
11037
11038 PR libgomp/47804
11039 * testsuite/libgomp.fortran/fortran.exp: Check for both
11040 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
11041 but $blddir != "", still append ${blddir}/${lang_library_path}
11042 to ld_library_path.
11043
3808007c
TB
110442011-02-16 Tobias Burnus <burnus@net-b.de>
11045
11046 PR libgomp/47758
11047 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
11048 of libquadmath.a before adding its libpath to ldflags.
11049
53b4d41d
JJ
110502011-02-14 Jakub Jelinek <jakub@redhat.com>
11051
11052 PR libgomp/47731
11053 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
11054 to FUTEX_WAIT futex syscall.
11055 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
11056
029c8f3e
RW
110572011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11058
11059 * configure: Regenerate.
11060
bddd6626
BK
110612011-01-20 Benjamin Kosnik <bkoz@redhat.com>
11062
11063 PR libstdc++/36104
11064 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
11065
f1d4ab26
GP
110662011-01-16 Gerald Pfeifer
11067
11068 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
11069
2b503136
JJ
110702010-12-14 Jakub Jelinek <jakub@redhat.com>
11071
11072 PR fortran/46874
11073 * libgomp.fortran/allocatable6.f90: New test.
11074
c0f9d583
RO
110752010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11076
11077 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
11078 * configure: Regenerate.
11079
7de6ba7a
DK
110802010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
11081
11082 PR target/40125
11083 PR lto/46695
11084 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
11085 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
11086 * aclocal.m4: Regenerate.
11087 * configure: Regenerate.
11088 * Makefile.in: Regenerate.
11089 * testsuite/Makefile.in: Regenerate.
11090
b7516041
JJ
110912010-12-02 Jakub Jelinek <jakub@redhat.com>
11092
edaadf74
JJ
11093 PR fortran/46753
11094 * libgomp.fortran/pr46753.f90: New test.
11095
4c698cf8
JJ
11096 PR libgomp/43706
11097 * env.c (initialize_env): Default to spin count 300000
11098 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
11099 is specified.
11100
b7516041
JJ
11101 PR libgomp/45240
11102 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
11103 at the end if sync builtins aren't supported.
11104
6b43a34c
RO
111052010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11106
11107 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
11108
950691fa
RO
111092010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11110
11111 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
11112
fb9041ea
IS
111132010-11-24 Iain Sandoe <iains@gcc.gnu.org>
11114
11115 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
11116
1ec601bf
FXC
111172010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11118 Tobias Burnus <burnus@net-b.de>
11119
11120 PR fortran/32049
3e348fcc 11121 * configure.ac:
1ec601bf
FXC
11122 * configure: Regenerate.
11123
d213e92e
MS
111242010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
11125
11126 * config/linux/futex.h: New.
11127 * config/linux/arm/mutex.h: New.
11128 * configure.tgt (arm*-*-linux*): Add config path.
11129
89d5c66f
SP
111302010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11131
11132 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
11133
87350d4a
TB
111342010-09-23 Tobias Burnus <burnus@net-b.de>
11135
11136 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
11137 Change Fortran datatype to LOGICAL.
11138 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
11139 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
11140
75bc9e5e
RW
111412010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11142
11143 * configure: Regenerate.
11144
acb5c916
JJ
111452010-07-26 Jakub Jelinek <jakub@redhat.com>
11146
11147 * libgomp.texi: Add function keyword to a couple of Fortran
11148 interfaces, use integer instead of int for Fortran.
11149
6a2ba183
AH
111502010-07-26 Aldy Hernandez <aldyh@redhat.com>
11151
11152 * libgomp.texi: Fix spelling and pasto problems throughout.
11153 Adjust prototypes to match code.
11154
df161b69
TB
111552010-07-24 Tobias Burnus <burnus@net-b.de>
11156
11157 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
11158 silence -fwhole-file warning.
11159
16c9d3b1
RO
111602010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11161
11162 * configure.tgt (*-*-solaris2.[56]*): Removed.
11163
6d28b933
RO
111642010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11165
11166 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
11167 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
11168 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
11169 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
11170 targetting solaris2*.
11171 * configure: Regenerate.
11172 * config.h.in: Regenerate.
11173
11174 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
11175 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
11176 Add libgomp_version_dep.
11177 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
11178 versioning.
11179 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
11180 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
11181 * Makefile.in: Regenerate.
11182
11183 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
11184 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
11185 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
11186 to common block, protected by
11187 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
11188
07a67d6a
GP
111892010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
11190
11191 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
11192
dbd34b89
IS
111932010-06-09 Iain Sandoe <iains@gcc.gnu.org>
11194
11195 PR bootstrap/43170
11196 * configure: Regenerate.
11197
13917ae3
RW
111982010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11199
11200 PR other/43620
11201 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
11202 * configure: Regenerate.
11203 * Makefile.in: Regenerate.
11204 * testsuite/Makefile.in: Regenerate.
11205
b83a701b
JJ
112062010-04-26 Jakub Jelinek <jakub@redhat.com>
11207
11208 PR c/43893
11209 * testsuite/libgomp.c/pr43893.c: New test.
11210 * testsuite/libgomp.c++/pr43893.C: New test.
11211
78db7d92
JJ
112122010-04-21 Jakub Jelinek <jakub@redhat.com>
11213
11214 PR middle-end/43570
11215 * testsuite/libgomp.fortran/vla8.f90: New test.
11216
5221d7a9
JJ
112172010-04-20 Jakub Jelinek <jakub@redhat.com>
11218
e4ba7a60
JJ
11219 PR libgomp/43706
11220 * config/linux/affinity.c (gomp_init_affinity): Decrease
11221 gomp_available_cpus if affinity mask confines the process to fewer
11222 CPUs.
11223 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
11224 non-NULL, just return gomp_available_cpus.
11225
5221d7a9
JJ
11226 PR libgomp/43569
11227 * sections.c (gomp_sections_init): Initialize ws->mode.
11228
289a9f86
UB
112292010-04-14 Uros Bizjak <ubizjak@gmail.com>
11230
11231 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
11232 not unused bar variable.
11233 * configure: Regenerate.
11234
4d9e8446
RW
112352010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11236
11237 * Makefile.in: Regenerate.
11238 * aclocal.m4: Regenerate.
11239 * testsuite/Makefile.in: Regenerate.
11240
80f046cc
JJ
112412010-03-22 Jakub Jelinek <jakub@redhat.com>
11242
11243 PR libgomp/42942
11244 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
11245 (initialize_env): Adjust callers.
11246 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
11247 when the argument is 0.
11248
11249 * testsuite/libgomp.c/pr42942.c: New test.
11250
b58543c3
SP
112512010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
11252
11253 PR middle-end/42644
11254 PR middle-end/42130
11255 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
11256 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
11257
41d1138f
RO
112582010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11259
11260 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
11261 * testsuite/libgomp.c++/task-6.C: Likewise.
11262
6684eb28
SE
112632010-01-28 Steve Ellcey <sje@cup.hp.com>
11264
11265 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
11266
2122aa97
PB
112672010-01-26 Paolo Bonzini <bonzini@gnu.org>
11268
11269 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
11270 * configure: Regenerate.
11271
057dd91d
JJ
112722010-01-26 Jakub Jelinek <jakub@redhat.com>
11273
11274 PR fortran/42866
11275 * testsuite/libgomp.fortran/allocatable5.f90: New test.
11276
d0709b6a
PB
112772010-01-20 Paolo Bonzini <bonzini@gnu.org>
11278
11279 * configure.ac: Test for executability of GFORTRAN.
11280 * configure: Regenerate.
11281
b9497ab5
RO
112822010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11283
11284 * configure: Regenerate.
11285
45de5648
L
112862010-01-04 H.J. Lu <hongjiu.lu@intel.com>
11287
11288 PR libgomp/42602
11289 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
11290
e74003a1
RG
112912010-01-03 Richard Guenther <rguenther@suse.de>
11292
11293 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
11294
1b3abda8
SP
112952009-12-23 Sebastian Pop <sebpop@gmail.com>
11296
11297 * testsuite/libgomp.graphite/pr4118.c: New.
11298
e19977d3
IS
112992009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
11300
11301 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
11302 for darwin, protect the test with require-effective-target tls_runtime.
11303 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
11304
1d32a772
IS
113052009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
11306
11307 PR target/41605
11308 * testsuite/lib/libgomp.exp: Provide -B options to allow for
11309 link spec %s substitutions for static libraries.
11310
deb109b2
JH
113112009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
11312
11313 PR testsuite/42135
11314 * libgomp.graphite/force-parallel-2.c: Reduce array size.
11315
43e02a8a
RW
113162009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11317
11318 * Makefile.in: Regenerate.
11319 * configure: Regenerate.
11320 * testsuite/Makefile.in: Regenerate.
11321
17f35e23
DK
113222009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
11323
11324 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
11325 settings for LC_ALL and LANG.
11326
281e33e1
JJ
113272009-11-25 Jakub Jelinek <jakub@redhat.com>
11328
11329 PR fortran/42162
11330 * testsuite/libgomp.fortran/pr42162.f90: New test.
11331
2b32c27d
JJ
113322009-11-13 Jakub Jelinek <jakub@redhat.com>
11333
11334 PR middle-end/42029
281e33e1 11335 * testsuite/libgomp.c/pr42029.c: New test.
2b32c27d 11336
89c74f4a
JJ
113372009-10-26 Jakub Jelinek <jakub@redhat.com>
11338
11339 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
11340 *s. Accept ld version without text in ()s.
11341 * configure: Regenerated.
11342
7e06c3d6
EB
113432009-10-22 Razya Ladelsky <razya@il.ibm.com>
11344
11345 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
11346
0046b1a7
RW
113472009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11348
11349 PR libgomp/41418
11350 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
11351 or a hyphen (happens with fortran language disabled).
11352 * configure: Regenerate.
11353
c82852f7
RW
113542009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11355
11356 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
11357 use sed script portable to Solaris /bin/sed for extracting ld
11358 version.
11359 * configure: Regenerate.
11360
98f3eb1f
AM
113612009-09-17 Alexander Monakov <amonakov@ispras.ru>
11362
11363 * testsuite/libgomp.graphite/bounds.c: New test.
11364
878f62e5
RW
113652009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11366
11367 * Makefile.am (libgomp_la_LINK): New.
11368 * Makefile.in: Regenerate.
11369
df58e648
RW
113702009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11371
11372 * configure.ac (AC_PREREQ): Bump to 2.64.
11373
5213506e
RW
113742009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11375
70fa0efa
RW
11376 * Makefile.am (install-html, install-pdf): Remove.
11377 * Makefile.in: Regenerate.
11378
5213506e
RW
11379 * Makefile.in: Regenerate.
11380 * aclocal.m4: Regenerate.
11381 * config.h.in: Regenerate.
11382 * configure: Regenerate.
11383 * testsuite/Makefile.in: Regenerate.
11384
84fec8a5
RW
113852009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11386
11387 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
11388 * Makefile.in: Regenerate.
11389
197c68cc
DK
113902009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
11391
11392 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
11393 * Makefile.in: Regenerate.
11394
693d54f2
TB
113952009-08-19 Tobias Burnus <burnus@net-b.de>
11396
11397 PR fortran/41102
11398 omp_lib.h.in: Fix -std=f95 errors.
11399
8cac884c
DE
114002009-08-14 David Edelsohn <edelsohn@gnu.org>
11401
11402 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
11403 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
11404 * testsuite/libgomp.graphite/graphite.exp: New.
11405
78729ee2
AT
114062009-08-05 Andreas Tobler <a.tobler@schweiz.org>
11407
11408 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
11409 only build.
11410
b13b7f39
DD
114112009-08-04 David Daney <ddaney@caviumnetworks.com>
11412
11413 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
11414 needed memory barrier semantics.
11415 * config/linux/mips/mutex.h: New file.
11416
1b3b24c2
RW
114172009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11418
11419 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
11420
396b7fa4
JM
114212009-07-16 Joseph Myers <joseph@codesourcery.com>
11422
11423 * configure: Regenerate.
11424
33cde516
RS
114252009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
11426
11427 PR testsuite/40699
11428 PR testsuite/40707
11429 PR testsuite/40709
11430 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
11431 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
11432 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
11433
bc21bfa5
RS
114342009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
11435
11436 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
11437 options when choosing a multilib.
11438
b30bfd40
RS
114392009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
11440
11441 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
11442 ld_library_path. Use add_path. Add just find_libgcc_s to
11443 ld_library_path, not every libgcc multilib directory.
11444 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
11445 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
11446 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
11447 Use add_path.
11448 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
11449
479c15c2
NF
114502009-06-09 Nathan Froyd <froydnj@codesourcery.com>
11451
11452 * Makefile.am (LTLDFLAGS): Define.
11453 (LINK): Define.
11454 * Makefile.in: Regenerate.
11455
667e6f89
JB
114562009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
11457
11458 PR fortran/39718
11459 * testsuite/libgomp.fortran/fortran.exp: Don't link with
11460 libgfortranbegin, check existence of libgfortran.a instead of
11461 libgfortranbegin.a.
11462
6dea8e99
JJ
114632009-05-20 Jakub Jelinek <jakub@redhat.com>
11464
11465 PR libgomp/40174
11466 * team.c (gomp_thread_start): Destroy thr->release semaphore.
11467 (gomp_free_pool_helper): Likewise.
11468
34d01e1d
VL
114692009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
11470 Jakub Jelinek <jakub@redhat.com>
11471
11472 PR fortran/35423
11473 * testsuite/libgomp.fortran/workshare2.f90: New test.
11474
748086b7
JJ
114752009-04-09 Nick Clifton <nickc@redhat.com>
11476
11477 * iter.c: Change copyright header to refer to version 3 of the
11478 GNU General Public License with version 3.1 of the GCC Runtime
11479 Library Exception and to point readers at the COPYING3 and
11480 COPYING3.RUNTIME files and the FSF's license web page.
11481 * alloc.c: Likewise.
11482 * barrier.c: Likewise.
11483 * config/bsd/proc.c: Likewise.
11484 * config/linux/affinity.c: Likewise.
11485 * config/linux/alpha/futex.h: Likewise.
11486 * config/linux/bar.c: Likewise.
11487 * config/linux/bar.h: Likewise.
11488 * config/linux/ia64/futex.h: Likewise.
11489 * config/linux/ia64/mutex.h: Likewise.
11490 * config/linux/lock.c: Likewise.
11491 * config/linux/mips/futex.h: Likewise.
11492 * config/linux/mutex.c: Likewise.
11493 * config/linux/mutex.h: Likewise.
11494 * config/linux/powerpc/futex.h: Likewise.
11495 * config/linux/proc.c: Likewise.
11496 * config/linux/ptrlock.c: Likewise.
11497 * config/linux/ptrlock.h: Likewise.
11498 * config/linux/s390/futex.h: Likewise.
11499 * config/linux/sem.c: Likewise.
11500 * config/linux/sem.h: Likewise.
11501 * config/linux/sparc/futex.h: Likewise.
11502 * config/linux/wait.h: Likewise.
11503 * config/linux/x86/futex.h: Likewise.
11504 * config/mingw32/proc.c: Likewise.
11505 * config/mingw32/time.c: Likewise.
11506 * config/posix/affinity.c: Likewise.
11507 * config/posix/bar.c: Likewise.
11508 * config/posix/bar.h: Likewise.
11509 * config/posix/lock.c: Likewise.
11510 * config/posix/mutex.h: Likewise.
11511 * config/posix/proc.c: Likewise.
11512 * config/posix/ptrlock.h: Likewise.
11513 * config/posix/sem.c: Likewise.
11514 * config/posix/sem.h: Likewise.
11515 * config/posix/time.c: Likewise.
11516 * config/posix95/lock.c: Likewise.
11517 * critical.c: Likewise.
11518 * env.c: Likewise.
11519 * error.c: Likewise.
11520 * fortran.c: Likewise.
11521 * iter_ull.c: Likewise.
11522 * libgomp.h: Likewise.
11523 * libgomp_f.h.in: Likewise.
11524 * libgomp_g.h: Likewise.
11525 * loop.c: Likewise.
11526 * loop_ull.c: Likewise.
11527 * omp.h.in: Likewise.
11528 * omp_lib.f90.in: Likewise.
11529 * omp_lib.h.in: Likewise.
11530 * ordered.c: Likewise.
11531 * parallel.c: Likewise.
11532 * sections.c: Likewise.
11533 * single.c: Likewise.
11534 * task.c: Likewise.
11535 * team.c: Likewise.
11536 * work.c: Likewise.
11537
115382009-04-09 Jakub Jelinek <jakub@redhat.com>
11539
11540 * testsuite/config/default.exp: Change copyright header to refer to
11541 version 3 of the GNU General Public License and to point readers
11542 at the COPYING3 file and the FSF's license web page.
11543
4f0ae266
JJ
115442009-04-08 Jakub Jelinek <jakub@redhat.com>
11545
11546 PR middle-end/39573
11547 * libgomp.c++/pr39573.C: New test.
11548
03742a9b
JJ
115492009-04-01 Jakub Jelinek <jakub@redhat.com>
11550
11551 PR other/39591
11552 * testsuite/libgomp.c/pr39591-1.c: New test.
11553 * testsuite/libgomp.c/pr39591-2.c: New test.
11554 * testsuite/libgomp.c/pr39591-3.c: New test.
11555
e50ea10b
UB
115562009-03-25 Uros Bizjak <ubizjak@gmail.com>
11557
11558 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
11559 * testsuite/libgomp.c/atomic-6.c: Ditto.
11560
c5cdb03f
JJ
115612009-03-23 Jakub Jelinek <jakub@redhat.com>
11562
11563 PR c/39495
11564 * testsuite/libgomp.c/loop-12.c: New test.
11565 * testsuite/libgomp.c/loop-11.c: New test.
11566 * testsuite/libgomp.c++/loop-11.C: New test.
11567 * testsuite/libgomp.c++/loop-12.C: New test.
11568 * testsuite/libgomp.c++/for-8.C: New test.
11569
7a9d3fe8
RW
115702009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11571
11572 * configure: Regenerate.
11573
3ad6b266
JJ
115742009-02-11 Jakub Jelinek <jakub@redhat.com>
11575
11576 PR middle-end/39154
11577 * testsuite/libgomp.c/pr39154.c: New test.
11578
b39dea08
ILT
115792009-01-30 Ian Lance Taylor <iant@google.com>
11580
11581 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
11582 libgomp_ld_is_gold. Get gold version number.
11583 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
11584 * configure: Rebuild.
11585
72c66596
IS
115862009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
11587
e50ea10b 11588 * testsuite/lib/libgomp.exp: Add -B option for targets that
72c66596
IS
11589 use libgfortran.a%s in their specs.
11590
876080ff
JJ
115912009-01-07 Jakub Jelinek <jakub@redhat.com>
11592
11593 PR libgomp/38086
11594 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
11595 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
11596 HAVE_AS_SYMVER_DIRECTIVE is not defined.
11597 * configure: Regenerated.
11598 * config.h.in: Likewise.
11599
e4ebaef3
JJ
116002008-12-28 Jakub Jelinek <jakub@redhat.com>
11601
11602 PR c++/38650
11603 * testsuite/libgomp.c/pr38650.c: New test.
11604 * testsuite/libgomp.c++/pr38650.C: New test.
11605
382017a6
JJ
116062008-12-27 Jakub Jelinek <jakub@redhat.com>
11607
11608 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
11609
79644b27
UB
116102008-12-26 Uros Bizjak <ubizjak@gmail.com>
11611
11612 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
11613
baafc534
RW
116142008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11615
11616 * configure: Regenerate.
11617
d9c194cb
JJ
116182008-12-08 Jakub Jelinek <jakub@redhat.com>
11619
11620 PR middle-end/36802
11621 * testsuite/libgomp.c/pr36802-1.c: New test.
11622 * testsuite/libgomp.c/pr36802-2.c: New test.
11623 * testsuite/libgomp.c/pr36802-3.c: New test.
11624
86a182bf
JJ
116252008-12-01 Janis Johnson <janis187@us.ibm.com>
11626
11627 PR libgomp/38270
11628 * config/linux/powerpc/mutex.h: New.
11629
956adfaf
JJ
116302008-12-01 Jakub Jelinek <jakub@redhat.com>
11631
a2d4cdc9
JJ
11632 PR c++/38257
11633 * testsuite/libgomp.c++/for-7.C: New test.
11634
956adfaf
JJ
11635 PR c++/38348
11636 * testsuite/libgomp.c++/for-6.C: New test.
11637
d4038ca2
JJ
116382008-11-26 Janis Johnson <janis187@us.ibm.com>
11639
11640 PR testsuite/28870
11641 * testsuite/lib/libgomp.exp: Include new timeout library files.
11642 (libgomp_target_compile): Set timeout value from new proc.
11643
8b159eea
SE
116442008-11-13 Steve Ellcey <sje@cup.hp.com>
11645
11646 PR libgomp/37938
11647 * config/linux/ia64/mutex.h: New.
11648
5c6ed53a
TB
116492008-11-04 Tobias Burnus <burnus@net-b.de>
11650
11651 PR libgomp/37935
11652 * libgomp.texi (Runtime library routines, environment variables):
11653 Update for OpenMP version 3.0.
11654
6b4a97ed
PG
116552008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
11656 Steve Ellcey <sje@cup.hp.com>
11657
11658 * configure: Regenerate for new libtool.
11659 * Makefile.in: Ditto.
11660 * testsuite/Makefile.in: Ditto.
11661
e2b34106
JJ
116622008-09-19 Jakub Jelinek <jakub@redhat.com>
11663 Andreas Tobler <a.tobler@schweiz.org>
11664
11665 * config/bsd/proc.c: New file.
8c3b3600 11666 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
e2b34106
JJ
11667 * configure.ac: Check for header <sys/sysctl.h>
11668 * configure: Regenerate.
11669 * config.h.in: Likewise.
11670
3606b8bf
JJ
116712008-09-05 Janis Johnson <janis187@us.ibm.com>
11672
11673 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
11674
6528b88d
AL
116752008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
11676
11677 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
11678 * Makefile.in: Regenerated.
11679 * testsuite/Makefile.in: Regenerated.
11680
d9b14b12 116812008-08-21 Nathan Froyd <froydnj@codesourcery.com>
8c9570df 11682
a16b68bb 11683 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
8c9570df
NF
11684 depend on blddir if blddir exists.
11685 (libgomp_target_compile): Likewise.
11686 * testsuite/libgomp.c++/c++.exp: Likewise.
11687 * testsuite/libgomp.fortran/fortran.exp: Likewise.
11688
70b1e376
RW
116892008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11690
11691 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
11692 Do not list GPL as Invariant Section.
11693
318e8c3f
IG
116942008-07-28 Ilie Garbacea <ilie@mips.com>
11695 Chao-ying Fu <fu@mips.com>
11696
11697 * configure.tgt: Enable futex for MIPS.
11698 * config/linux/mips/futex.h: New file.
11699
4db72361
JJ
117002008-07-16 Jakub Jelinek <jakub@redhat.com>
11701
11702 * team.c (gomp_team_end): Free team immediately if it has
11703 just one thread.
11704
87bd23b8
DE
117052008-07-08 David Edelsohn <edelsohn@gnu.org>
11706
11707 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
11708 * testsuite/libgomp.fortran/fortran.exp: Same.
11709 * testsuite/libgomp.c/c.exp: Same.
11710 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
11711 directory to library path first.
11712
323ff903
KW
117132008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
11714
11715 * env.c (parse_stacksize): Add cast to avoid warning.
11716 (parse_spincount): Likewise.
11717
b357f682
JJ
117182008-06-27 Jakub Jelinek <jakub@redhat.com>
11719
ca2b1311
JJ
11720 * testsuite/libgomp.c/loop-10.c: New test.
11721 * libgomp.c/loop-3.c (main): Add lastprivate clause.
11722 * libgomp.c++/loop-6.C (main): Likewise.
11723
b357f682
JJ
11724 PR debug/36617
11725 * testsuite/libgomp.c/debug-1.c: New test.
11726
09a46078
JJ
117272008-06-19 Jakub Jelinek <jakub@redhat.com>
11728
11729 * testsuite/libgomp.c/nqueens-1.c: New test.
11730
2368a460
JJ
11731 PR c++/36523
11732 * testsuite/libgomp.c++/task-7.C: New function.
11733
18c04407
RW
117342008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11735
11736 * configure: Regenerate.
11737
9c4e59e0
JDA
117382008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11739
11740 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
11741 mutex when HAVE_SYNC_BUILTINS isn't defined.
11742
6ccde948
RW
117432008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11744
11745 * libgomp.texi (omp_test_lock): Fix typo.
11746
b896f9fd
TB
117472008-06-12 Tobias Burnus <burnus@net-b.de>
11748
11749 * omp_lib.f90.in: Add "implicit none".
11750
c34938a8
JJ
117512008-06-12 Jakub Jelinek <jakub@redhat.com>
11752
11753 PR middle-end/36506
11754 * testsuite/libgomp.c/reduction-5.c: New test.
11755
976e44e3
JJ
117562008-06-11 Jakub Jelinek <jakub@redhat.com>
11757
5f836cbb
JJ
11758 * libgomp.h (struct gomp_task): Add in_tied_task field.
11759 * task.c (gomp_init_task): Initialize it.
11760 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
11761 unconditionally. Don't call gomp_team_barrier_wake if
11762 current task is implicit or if(0) from implicit and number of
11763 running tasks is equal to nthreads - 1.
11764
01501fc8
JJ
11765 PR libgomp/36471
11766 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
11767 omp_get_team_size_8): Fix pastos.
11768
976e44e3
JJ
11769 PR libgomp/36469
11770 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
11771 * configure: Regenerated.
11772 * config.h.in: Regenerated.
11773 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
11774 defined.
11775
e919209b
AT
117762008-06-06 Andreas Tobler <a.tobler@schweiz.org>
11777
11778 PR bootstrap/36452
11779 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
11780 (GOMP_loop_ull_dynamic_start): Likewise.
11781 (GOMP_loop_ull_guided_start): Likewise.
11782 (GOMP_loop_ull_ordered_static_start): Likewise.
11783 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
11784 (GOMP_loop_ull_ordered_guided_start): Likewise.
11785
a68ab351
JJ
117862008-06-06 Jakub Jelinek <jakub@redhat.com>
11787 Richard Henderson <rth@redhat.com>
11788 Ulrich Drepper <drepper@redhat.com>
11789 Jakob Blomer <jakob.blomer@ira.uka.de>
11790
11791 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
11792 Substitute also OMP_*LOCK_25*.
11793 * configure: Regenerated.
11794 * config.h.in: Regenerated.
11795 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
11796 ptrlock.c and task.c.
11797 * Makefile.in: Regenerated.
11798 * testsuite/Makefile.in: Regenerated.
11799 * task.c: New file.
11800 * loop_ull.c: New file.
11801 * iter_ull.c: New file.
11802 * libgomp.h: Include ptrlock.h.
11803 (enum gomp_task_kind): New type.
11804 (struct gomp_team): Add task_lock, task_queue, task_count,
11805 task_running_count, single_count fields. Add
11806 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
11807 Remove work_share_lock, generation_mask,
11808 oldest_live_gen, num_live_gen and init_work_shares fields, add
11809 work work_share_list_alloc, work_share_list_free and work_share_chunk
11810 fields. Change work_shares from pointer to pointers into an array.
11811 Change ordered_release field into gomp_sem_t ** from flexible array
11812 member. Add implicit_task and initial_work_shares fields.
11813 Move close to the end of the struct.
11814 (struct gomp_team_state): Add single_count, last_work_share,
11815 active_level and level fields, remove work_share_generation.
11816 (gomp_barrier_handle_tasks): New prototype.
11817 (gomp_finish_task): New inline function.
11818 (struct gomp_work_share): Move chunk_size, end, incr into
11819 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
11820 next_ll fields. Reshuffle fields. Add next_alloc,
11821 next_ws, next_free and inline_ordered_team_ids fields, change
11822 ordered_team_ids into pointer from flexible array member.
11823 Add mode field. Put lock and next into a different cache line
11824 from most of the write-once fields.
11825 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
11826 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
11827 gomp_iter_ull_guided_next): New prototypes.
11828 (gomp_new_icv): New prototype.
11829 (struct gomp_thread): Add thread_pool and task fields.
11830 (struct gomp_thread_pool): New type.
11831 (gomp_new_team): New prototype.
11832 (gomp_team_start): Change type of last argument.
11833 (gomp_new_work_share): Removed.
11834 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
11835 (gomp_work_share_init_done): New static inline.
11836 (gomp_throttled_spin_count_var, gomp_available_cpus,
11837 gomp_managed_threads): New extern decls.
11838 (gomp_init_task): New prototype.
11839 (gomp_spin_count_var): New extern var decl.
11840 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
11841 or no alias support, or if not PIC.
11842 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
11843 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
11844 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
11845 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
11846 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
11847 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
11848 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
11849 gomp_test_nest_lock_25): New prototypes.
11850 (omp_lock_symver, strong_alias): Define.
11851 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
11852 decls.
11853 (gomp_end_task): New.
11854 (struct gomp_task_icv, gomp_global_icv): New.
11855 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
11856 (struct gomp_task): New.
11857 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
11858 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
11859 (gomp_icv): New.
11860 (gomp_schedule_type): Reorder enum to match
11861 omp_sched_t.
11862 * team.c (struct gomp_thread_start_data): Add thread_pool and task
11863 fields.
11864 (gomp_thread_start): Add gomp_team_barrier_wait call.
11865 For non-nested case remove clearing of docked thread thr fields.
11866 Use pool fields instead of global gomp_* variables. Use
11867 gomp_barrier_wait_last when needed. Initialize ts.active_level.
11868 Create tasks for each member thread.
11869 (free_team): Only destroy team barrier, task_lock here and free it.
11870 (gomp_free_thread): Free last_team if non-NULL.
11871 (gomp_team_end): Call gomp_team_barrier_wait instead of
11872 gomp_barrier_wait. For nested case call one extra
11873 gomp_barrier_wait. Move here some destruction from free_team.
11874 Call free_team on pool->last_team if any, rather than freeing
11875 current team. Destroy work_share_list_free_lock ifndef
11876 HAVE_SYNC_BUILTINS.
11877 (gomp_new_icv): New function.
11878 (gomp_threads, gomp_threads_size, gomp_threads_used,
11879 gomp_threads_dock): Removed.
11880 (gomp_thread_destructor): New variable.
11881 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
11882 functions.
11883 (gomp_team_start): Create new pool if current thread doesn't have
3e348fcc 11884 one. Use pool fields instead of global gomp_* variables.
a68ab351
JJ
11885 Initialize thread_pool field for new threads. Clear single_count.
11886 Change last argument from ws to team, don't create
11887 new team, set ts.work_share to &team->work_shares[0] and clear
11888 ts.last_work_share. Don't clear ts.work_share_generation.
11889 If number of threads changed, adjust atomically gomp_managed_threads.
11890 Use gomp_init_task instead of gomp_new_task,
11891 set thr->task to the corresponding implicit_task array entry.
11892 Create tasks for each member thread. Initialize ts.level.
11893 (initialize_team): Call pthread_key_create on
11894 gomp_thread_destructor.
11895 (team_destructor): New function.
11896 (new_team): Removed.
11897 (gomp_new_team): New function.
11898 (free_team): Free gomp_work_share blocks chained through next_alloc,
11899 instead of freeing work_shares and destroying work_share_lock.
11900 (gomp_team_end): Call gomp_fini_work_share. If number of threads
11901 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
11902 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
11903 of gomp_barrier_wait.
11904 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
11905 instead of gomp_barrier_wait. Call gomp_work_share_init_done
11906 if gomp_work_share_start returned true. Don't unlock ws->lock.
11907 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
11908 of gomp_barrier_wait.
11909 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
11910 gomp_work_share_init_done if gomp_work_share_start returned true.
11911 Don't unlock ws->lock.
11912 * work.c: Include stddef.h.
11913 (free_work_share): Use work_share_list_free_lock instead
11914 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
11915 Call gomp_fini_work_share and then either free ws if orphaned, or
11916 put it into work_share_list_free list of the current team.
11917 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
11918 functions.
11919 (gomp_work_share_start, gomp_work_share_end,
11920 gomp_work_share_end_nowait): Rewritten.
11921 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
11922 (openmp_version): Set to 200805.
11923 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
11924 omp_sched_guided, omp_sched_auto): New parameters.
11925 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11926 omp_set_max_active_levels, omp_get_max_active_levels,
11927 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11928 omp_get_active_level): New interfaces.
11929 * omp_lib.h.in (openmp_version): Set to 200805.
11930 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
11931 omp_sched_guided, omp_sched_auto): New parameters.
11932 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11933 omp_set_max_active_levels, omp_get_max_active_levels,
11934 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11935 omp_get_active_level): New externals.
11936 * loop.c: Include limits.h.
11937 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
11938 GFS_AUTO.
11939 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
11940 Likewise. Use gomp_icv.
11941 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
11942 ts.static_trip here.
11943 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
11944 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
11945 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
11946 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
11947 don't unlock ws->lock, otherwise lock it.
11948 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
11949 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
11950 (gomp_parallel_loop_start): Call gomp_new_team instead of
11951 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
11952 Adjust gomp_team_start caller. Pass 0 as second argument to
11953 gomp_resolve_num_threads.
11954 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
11955 If adding ws->chunk_size nthreads + 1 times after end won't
11956 overflow, set ws->mode to 1.
11957 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
11958 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
11959 GOMP_loop_ull_ordered_static_start,
11960 GOMP_loop_ull_ordered_dynamic_start,
11961 GOMP_loop_ull_ordered_guided_start,
11962 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
11963 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
11964 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
11965 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
11966 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
11967 prototypes.
11968 * libgomp.map: Export lock routines also @@OMP_2.0.
11969 (GOMP_loop_ordered_dynamic_first,
11970 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
11971 GOMP_loop_ordered_static_first): Remove.
11972 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
11973 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
11974 GOMP_loop_ull_ordered_dynamic_next,
11975 GOMP_loop_ull_ordered_dynamic_start,
11976 GOMP_loop_ull_ordered_guided_next,
11977 GOMP_loop_ull_ordered_guided_start,
11978 GOMP_loop_ull_ordered_runtime_next,
11979 GOMP_loop_ull_ordered_runtime_start,
11980 GOMP_loop_ull_ordered_static_next,
11981 GOMP_loop_ull_ordered_static_start,
11982 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
11983 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
11984 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
11985 (omp_set_schedule, omp_get_schedule,
11986 omp_get_thread_limit, omp_set_max_active_levels,
11987 omp_get_max_active_levels, omp_get_level,
11988 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
11989 omp_set_schedule_, omp_set_schedule_8_,
11990 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
11991 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
11992 omp_get_max_active_levels_, omp_get_level_,
11993 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
11994 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
11995 New exports @@OMP_3.0.
11996 * omp.h.in (omp_sched_t): New type.
11997 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11998 omp_set_max_active_levels, omp_get_max_active_levels,
11999 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
12000 omp_get_active_level): New prototypes.
12001 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
12002 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
12003 gomp_thread_limit_var, gomp_remaining_threads_count,
12004 gomp_remaining_threads_lock): New variables.
12005 (parse_spincount): New function.
12006 (initialize_env): Call gomp_init_num_threads unconditionally.
12007 Initialize gomp_available_cpus. Call parse_spincount,
12008 initialize gomp_{,throttled_}spin_count_var
12009 depending on presence and value of OMP_WAIT_POLICY and
12010 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
12011 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
12012 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
12013 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
12014 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
12015 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
12016 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
12017 (gomp_global_icv): New.
12018 (parse_schedule): Use it. Parse "auto".
12019 (omp_set_num_threads): Use gomp_icv.
12020 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
12021 Likewise.
12022 (omp_get_max_threads): Move from parallel.c.
12023 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
12024 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
12025 add ialias.
12026 (parse_stacksize, parse_wait_policy): New functions.
12027 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
12028 both wrappers for compatibility and new locks.
12029 (omp_set_schedule, omp_get_schedule,
12030 omp_get_thread_limit, omp_set_max_active_levels,
12031 omp_get_max_active_levels, omp_get_level,
12032 omp_get_ancestor_thread_num, omp_get_team_size,
12033 omp_get_active_level): New ialias_redirect.
12034 (omp_set_schedule_, omp_set_schedule_8_,
12035 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
12036 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
12037 omp_get_max_active_levels_, omp_get_level_,
12038 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
12039 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
12040 New functions.
12041 * parallel.c: Include limits.h.
12042 (gomp_resolve_num_threads): Add count argument. Rewritten.
12043 (GOMP_parallel_start): Call gomp_new_team and pass that as last
12044 argument to gomp_team_start. Pass 0 as second argument to
12045 gomp_resolve_num_threads.
12046 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
12047 if gomp_thread_limit_var != ULONG_MAX.
12048 (omp_in_parallel): Implement using ts.active_level.
12049 (omp_get_max_threads): Move to env.c.
12050 (omp_get_level, omp_get_ancestor_thread_num,
12051 omp_get_team_size, omp_get_active_level): New functions,
12052 add ialias.
12053 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
12054 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
12055 gomp_iter_dynamic_next instead of the _locked variant and don't take
12056 lock around it, otherwise acquire it before calling
12057 gomp_iter_dynamic_next_locked.
12058 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
12059 gomp_iter_dynamic_next instead of the _locked variant and don't take
12060 lock around it.
12061 (GOMP_parallel_sections_start): Call gomp_new_team instead of
12062 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
12063 Adjust gomp_team_start caller. Pass count as second argument to
12064 gomp_resolve_num_threads, don't adjust num_threads after the call.
12065 Use gomp_icv.
12066 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
12067 ws->chunk_size by incr.
12068 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
12069 code.
12070 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
12071 types.
12072 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
12073 (omp_check_defines): Check even the compat defines.
12074 * config/linux/ptrlock.c: New file.
12075 * config/linux/ptrlock.h: New file.
12076 * config/linux/wait.h: New file.
12077 * config/posix/ptrlock.c: New file.
12078 * config/posix/ptrlock.h: New file.
12079 * config/linux/bar.h (gomp_team_barrier_wait,
12080 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
12081 (gomp_team_barrier_set_task_pending,
12082 gomp_team_barrier_clear_task_pending,
12083 gomp_team_barrier_set_waiting_for_tasks,
12084 gomp_team_barrier_waiting_for_tasks,
12085 gomp_team_barrier_done): New inlines.
12086 (gomp_barrier_t): Rewritten.
12087 (gomp_barrier_state_t): New typedef.
12088 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
12089 gomp_barrier_wait_start): Rewritten.
12090 (gomp_barrier_wait_end): Change second argument to
12091 gomp_barrier_state_t.
12092 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
12093 inlines.
12094 * config/linux/bar.c: Include wait.h instead of libgomp.h and
12095 futex.h.
12096 (gomp_barrier_wait_end): Rewritten.
12097 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
12098 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
12099 * config/posix/bar.h (gomp_barrier_t): Add generation field.
12100 (gomp_barrier_state_t): New typedef.
12101 (gomp_team_barrier_wait,
12102 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
12103 (gomp_barrier_wait_start): Or all but low 2 bits from generation
12104 into the return value. Return gomp_barrier_state_t.
12105 (gomp_team_barrier_set_task_pending,
12106 gomp_team_barrier_clear_task_pending,
12107 gomp_team_barrier_set_waiting_for_tasks,
12108 gomp_team_barrier_waiting_for_tasks,
12109 gomp_team_barrier_done): New inlines.
12110 (gomp_barrier_wait_end): Change second argument to
12111 gomp_barrier_state_t.
12112 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
12113 inlines.
12114 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
12115 (gomp_barrier_wait_end): Change second argument to
3e348fcc 12116 gomp_barrier_state_t.
a68ab351
JJ
12117 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
12118 gomp_team_barrier_wake): New functions.
12119 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
12120 futex.h.
12121 (gomp_futex_wake, gomp_futex_wait): New variables.
12122 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
12123 * config/linux/lock.c: Rewrite to make locks task owned,
12124 for backwards compatibility provide the old entrypoints
12125 if symbol versioning. Include wait.h instead of libgomp.h and
12126 futex.h.
12127 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
12128 * config/posix95/lock.c: Rewrite to make locks task owned,
12129 for backwards compatibility provide the old entrypoints
12130 if symbol versioning.
12131 * config/posix/lock.c: Rewrite to make locks task owned,
12132 for backwards compatibility provide the old entrypoints
12133 if symbol versioning.
12134 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
12135 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
12136 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
12137 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
12138 (sys_futex0): Return error code.
12139 (futex_wake, futex_wait): If ENOSYS was returned, clear
12140 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
12141 (cpu_relax, atomic_write_barrier): New static inlines.
12142 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
12143 (futex_wake, futex_wait): If ENOSYS was returned, clear
12144 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
12145 (cpu_relax, atomic_write_barrier): New static inlines.
12146 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
12147 (sys_futex0): Return error code.
12148 (futex_wake, futex_wait): If ENOSYS was returned, clear
12149 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
12150 (cpu_relax, atomic_write_barrier): New static inlines.
12151 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
12152 (sys_futex0): Return error code.
12153 (futex_wake, futex_wait): If ENOSYS was returned, clear
12154 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
12155 (cpu_relax, atomic_write_barrier): New static inlines.
12156 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
12157 (sys_futex0): Return error code.
12158 (futex_wake, futex_wait): If ENOSYS was returned, clear
12159 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
12160 (cpu_relax, atomic_write_barrier): New static inlines.
12161 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
12162 (sys_futex0): Return error code.
12163 (futex_wake, futex_wait): If ENOSYS was returned, clear
12164 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
12165 (cpu_relax, atomic_write_barrier): New static inlines.
12166 * config/linux/sem.c: Include wait.h instead of libgomp.h and
12167 futex.h.
12168 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
12169 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
12170 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
12171 types.
12172 (omp_nest_lock_t): Change owner into void *, add lock field.
12173 * config/posix95/omp-lock.h: Include semaphore.h.
12174 (omp_lock_25_t, omp_nest_lock_25_t): New types.
12175 (omp_lock_t): Use sem_t instead of mutex if semaphores
12176 aren't broken.
12177 (omp_nest_lock_t): Likewise. Change owner to void *.
12178 * config/posix/omp-lock.h: Include semaphore.h.
12179 (omp_lock_25_t, omp_nest_lock_25_t): New types.
12180 (omp_lock_t): Use sem_t instead of mutex if semaphores
12181 aren't broken.
12182 (omp_nest_lock_t): Likewise. Add owner field.
12183
121842008-06-06 Jakub Jelinek <jakub@redhat.com>
12185
12186 * testsuite/libgomp.c/collapse-1.c: New test.
12187 * testsuite/libgomp.c/collapse-2.c: New test.
12188 * testsuite/libgomp.c/collapse-3.c: New test.
12189 * testsuite/libgomp.c/icv-1.c: New test.
12190 * testsuite/libgomp.c/icv-2.c: New test.
12191 * testsuite/libgomp.c/lib-2.c: New test.
12192 * testsuite/libgomp.c/lock-1.c: New test.
12193 * testsuite/libgomp.c/lock-2.c: New test.
12194 * testsuite/libgomp.c/lock-3.c: New test.
12195 * testsuite/libgomp.c/loop-4.c: New test.
12196 * testsuite/libgomp.c/loop-5.c: New test.
12197 * testsuite/libgomp.c/loop-6.c: New test.
12198 * testsuite/libgomp.c/loop-7.c: New test.
12199 * testsuite/libgomp.c/loop-8.c: New test.
12200 * testsuite/libgomp.c/loop-9.c: New test.
12201 * testsuite/libgomp.c/nested-3.c: New test.
12202 * testsuite/libgomp.c/nestedfn-6.c: New test.
12203 * testsuite/libgomp.c/sort-1.c: New test.
12204 * testsuite/libgomp.c/task-1.c: New test.
12205 * testsuite/libgomp.c/task-2.c: New test.
12206 * testsuite/libgomp.c/task-3.c: New test.
12207 * testsuite/libgomp.c/task-4.c: New test.
12208 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
12209 to C++ testsuite default compiler options.
12210 * testsuite/libgomp.c++/collapse-1.C: New test.
12211 * testsuite/libgomp.c++/collapse-2.C: New test.
12212 * testsuite/libgomp.c++/ctor-10.C: New test.
12213 * testsuite/libgomp.c++/for-1.C: New test.
12214 * testsuite/libgomp.c++/for-2.C: New test.
12215 * testsuite/libgomp.c++/for-3.C: New test.
12216 * testsuite/libgomp.c++/for-4.C: New test.
12217 * testsuite/libgomp.c++/for-5.C: New test.
12218 * testsuite/libgomp.c++/loop-8.C: New test.
12219 * testsuite/libgomp.c++/loop-9.C: New test.
12220 * testsuite/libgomp.c++/loop-10.C: New test.
12221 * testsuite/libgomp.c++/task-1.C: New test.
12222 * testsuite/libgomp.c++/task-2.C: New test.
12223 * testsuite/libgomp.c++/task-3.C: New test.
12224 * testsuite/libgomp.c++/task-4.C: New test.
12225 * testsuite/libgomp.c++/task-5.C: New test.
12226 * testsuite/libgomp.c++/task-6.C: New test.
12227 * testsuite/libgomp.fortran/allocatable1.f90: New test.
12228 * testsuite/libgomp.fortran/allocatable2.f90: New test.
12229 * testsuite/libgomp.fortran/allocatable3.f90: New test.
12230 * testsuite/libgomp.fortran/allocatable4.f90: New test.
12231 * testsuite/libgomp.fortran/collapse1.f90: New test.
12232 * testsuite/libgomp.fortran/collapse2.f90: New test.
12233 * testsuite/libgomp.fortran/collapse3.f90: New test.
12234 * testsuite/libgomp.fortran/collapse4.f90: New test.
12235 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
12236 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
12237 * testsuite/libgomp.fortran/lib4.f90: New test.
12238 * testsuite/libgomp.fortran/lock-1.f90: New test.
12239 * testsuite/libgomp.fortran/lock-2.f90: New test.
12240 * testsuite/libgomp.fortran/nested1.f90: New test.
12241 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
12242 * testsuite/libgomp.fortran/strassen.f90: New test.
12243 * testsuite/libgomp.fortran/tabs1.f90: New test.
12244 * testsuite/libgomp.fortran/tabs2.f: New test.
12245 * testsuite/libgomp.fortran/task1.f90: New test.
12246 * testsuite/libgomp.fortran/task2.f90: New test.
12247 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
12248 * testsuite/libgomp.fortran/vla5.f90: Likewise.
12249 * testsuite/libgomp.c/pr26943-2.c: Likewise.
12250 * testsuite/libgomp.c/pr26943-3.c: Likewise.
12251 * testsuite/libgomp.c/pr26943-4.c: Likewise.
12252
7a0112e7
JJ
122532008-05-23 Jakub Jelinek <jakub@redhat.com>
12254
12255 PR c++/36308
12256 * testsuite/libgomp.c++/ctor-11.C: New test.
12257 * testsuite/libgomp.c++/ctor-12.C: New test.
12258
91a5b394
JJ
122592008-05-15 Janis Johnson <janis187@us.ibm.com>
12260
12261 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
12262
c18c98c0
JJ
122632008-05-07 Jakub Jelinek <jakub@redhat.com>
12264
12265 PR middle-end/36106
12266 * testsuite/libgomp.c/atomic-5.c: New test.
12267 * testsuite/libgomp.c/atomic-6.c: New test.
12268 * testsuite/libgomp.c/autopar-1.c: New test.
12269
6d26724a
RW
122702008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12271
12272 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
12273 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
12274 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
12275 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
12276 * configure: Regenerate.
12277 * Makefile.in, testsuite/Makefile.in: Likewise.
12278
deb984e6
PB
122792008-04-18 Paolo Bonzini <bonzini@gnu.org>
12280
12281 PR bootstrap/35457
12282 * aclocal.m4: Regenerate.
12283 * configure: Regenerate.
12284
9e775963
JJ
122852008-03-18 Jakub Jelinek <jakub@redhat.com>
12286
8119fc93
JJ
12287 PR middle-end/35611
12288 * testsuite/libgomp.c/atomic-4.c: New test.
12289
9e775963
JJ
12290 PR libgomp/35625
12291 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
12292 (gomp_iter_guided_next): Likewise.
12293 * testsuite/libgomp.c/pr35625.c: New test.
12294
38d24731
RW
122952008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12296
12297 * aclocal.m4: Regenerate.
12298 * configure: Likewise.
12299 * Makefile.in: Likewise.
12300 * testsuite/Makefile.in: Likewise.
12301
d0fb20be
JJ
123022008-03-13 Jakub Jelinek <jakub@redhat.com>
12303
12304 PR middle-end/35185
12305 * testsuite/libgomp.c++/pr35185.C: New test.
12306
7c8f7639
JJ
123072008-03-12 Jakub Jelinek <jakub@redhat.com>
12308
12309 PR middle-end/35549
12310 * testsuite/libgomp.c/pr35549.c: New test.
12311
251923f5
JJ
123122008-03-06 Jakub Jelinek <jakub@redhat.com>
12313
12314 * testsuite/libgomp.c/atomic-3.c: New test.
12315
f489fba1
FXC
123162008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12317
12318 PR fortran/33197
251923f5 12319 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
f489fba1
FXC
12320 .F08 file suffixes.
12321
a1b25e49
PG
123222008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
12323
12324 PR libgomp/33131
12325 * configure.ac: Add ACX_HEADER_STRING.
12326 * env.c: Include strings.h.
12327 * aclocal.m4: Regenerate.
12328 * config.h.in: Regenerate.
12329 * configure: Regenerate.
12330 * Makefile.in: Regenerate.
12331 * testsuite/Makefile.in: Regenerate.
12332
6837b3b8
JJ
123332008-02-15 Jakub Jelinek <jakub@redhat.com>
12334
ac84c062
JJ
12335 PR middle-end/35196
12336 * testsuite/libgomp.c/pr35196.c: New test.
12337
6837b3b8
JJ
12338 PR middle-end/35130
12339 * testsuite/libgomp.fortran/pr35130.f90: New test.
12340 * testsuite/libgomp.c/pr35130.c: New test.
12341
c256730c
JJ
123422008-01-25 Jakub Jelinek <jakub@redhat.com>
12343
12344 PR middle-end/33880
12345 * testsuite/libgomp.c/pr33880.c: New test.
12346 * testsuite/libgomp.fortran/pr33880.f90: New test.
12347
c8e95542 123482008-01-24 David Edelsohn <edelsohn@gnu.org>
d653fdfb
DE
12349
12350 * configure: Regenerate.
12351
0f3e711e
JJ
123522008-01-08 Jakub Jelinek <jakub@redhat.com>
12353
12354 * configure.ac: Move futex checking into ../config/futex.m4.
12355 * configure: Rebuilt.
12356 * aclocal.m4: Rebuilt.
12357 * Makefile.in: Rebuilt.
12358
12359 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
12360 2007-10-15 ../config/tls.m4 change.
12361
5259c813
JJ
123622007-12-19 Jakub Jelinek <jakub@redhat.com>
12363
12364 PR c++/34513
12365 * testsuite/libgomp.c/pr34513.c: New test.
12366 * testsuite/libgomp.c++/pr34513.C: New test.
12367
ae8d8879
JH
123682007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
12369
12370 PR target/32765
12371 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
12372
2b4cf991
JJ
123732007-12-04 Jakub Jelinek <jakub@redhat.com>
12374
12375 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
12376
d2dda7fe
JJ
123772007-12-03 Jakub Jelinek <jakub@redhat.com>
12378
12379 * testsuite/libgomp.c/private-1.c: New test.
12380
d683ec81
PB
123812007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
12382 Paolo Bonzini <bonzini@gnu.org>
12383
12384 * Makefile.am: Use space as vpath separator. Use 'vpath %'
12385 instead of 'VPATH ='.
12386 * Makefile.in: Regenerate.
12387
a7415017
MK
123882007-11-23 Matthias Klose <doko@ubuntu.com>
12389
12390 * configure.ac: Adjust makeinfo version check.
12391 * configure: Regenerate.
12392
78e47463
JJ
123932007-11-10 Jakub Jelinek <jakub@redhat.com>
12394
12395 PR fortran/34020
12396 * testsuite/libgomp.fortran/pr34020.f90: New test.
12397
239371f9
JJ
123982007-11-06 Jakub Jelinek <jakub@redhat.com>
12399
12400 PR c++/33894
12401 * testsuite/libgomp.c++/atomic-1.C: New test.
12402
98a5fa94
JJ
124032007-10-25 Jakub Jelinek <jakub@redhat.com>
12404
12405 PR libgomp/33275
12406 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
12407 Make x and y integers rather than (implicit) reals. Add private (j)
12408 clause to the last omp parallel.
12409
3afcaaf4
MR
124102007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
12411
12412 * configure: Regenerate following changes to ../config/tls.m4.
12413
bd69daef
JJ
124142007-09-28 Jakub Jelinek <jakub@redhat.com>
12415
12416 * testsuite/libgomp.fortran/stack.f90: New test.
12417
1d0bd356
DS
124182007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
12419
12420 * config/mingw32/proc.c: New file.
12421
b3172cab
UB
124222007-09-05 Uros Bizjak <ubizjak@gmail.com>
12423
12424 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
12425 (main): Use __get_cpuid to get i386 target fetaures.
12426 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
12427 (main): Use __get_cpuid to get x86_64 target fetaures.
12428
6da17392
JH
124292007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
12430
12431 PR target/32765
12432 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
12433 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
12434
e1c82219
JJ
124352007-07-12 Jakub Jelinek <jakub@redhat.com>
12436
12437 PR fortran/32550
12438 * testsuite/libgomp.fortran/pr32550.f90: New test.
12439 * testsuite/libgomp.fortran/crayptr2.f90: New test.
12440
12a27363
L
124412007-07-05 H.J. Lu <hongjiu.lu@intel.com>
12442
12443 * aclocal.m4: Regenerated.
12444
5349080d
TB
124452007-07-05 Tobias Burnus <burnus@net-b.de>
12446
12447 PR fortran/32359
12448 * testsuite/libgomp.fortran/pr32359.f90: New.
12449
4f9c450c
JJ
124502007-07-02 Jakub Jelinek <jakub@redhat.com>
12451
12452 PR libgomp/32468
12453 * sections.c (GOMP_parallel_sections_start): Only decrease
12454 number of threads to COUNT if dyn_var is true.
12455 * testsuite/libgomp.c/pr32468.c: New test.
12456
28c67ed7
RO
124572007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12458
12459 PR libgomp/26308
12460 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
12461
64964499
JJ
124622007-06-21 Jakub Jelinek <jakub@redhat.com>
12463
12464 PR middle-end/32362
12465 * testsuite/libgomp.c/pr32362-1.c: New test.
12466 * testsuite/libgomp.c/pr32362-2.c: New test.
12467 * testsuite/libgomp.c/pr32362-3.c: New test.
12468
46d8fbd1
JJ
124692007-06-07 Jakub Jelinek <jakub@redhat.com>
12470
12471 * team.c (gomp_team_start): Fix setting up thread_attr
12472 stack size.
12473
82a6cadf
PB
124742007-06-02 Paolo Bonzini <bonzini@gnu.org>
12475
12476 * configure: Regenerate.
12477
1cf3d07d
SE
124782007-05-23 Steve Ellcey <sje@cup.hp.com>
12479
12480 * Makefile.in: Regenerate.
12481 * configure: Regenerate.
12482 * aclocal.m4: Regenerate.
12483 * testsuite/Makefile.in: Regenerate.
12484
12aac30b
JJ
124852007-05-04 Jakub Jelinek <jakub@redhat.com>
12486
12487 * config/linux/proc.c: New file.
12488
f1028b02
JJ
12489 PR libgomp/28482
12490 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
12491
06785a48
DF
124922007-04-19 Daniel Franke <franke.daniel@gmail.com>
12493
12494 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
12495
b3b08ba0
MK
124962007-04-16 Matthias Klose <doko@debian.org>
12497
12498 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
12499 flags if not building with -m64.
12500 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
12501 flag for i?86-*-* targets, if current target matches -m64.
12502
6b2c5ce0
SE
125032007-04-14 Steve Ellcey <sje@cup.hp.com>
12504
12505 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
12506 * Makefile.in: Regenerate.
12507
dd56fe7c
JDA
125082007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12509
12510 PR testsuite/31369
12511 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
12512 ld_library_path.
12513 * testsuite/libgomp.fortran/fortran.exp: Likewise.
12514
a0884cf0
JJ
125152007-04-04 Jakub Jelinek <jakub@redhat.com>
12516
12517 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
12518 decls.
12519 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
12520 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
12521 (parse_affinity): New function.
12522 (initialize_env): Call it and gomp_init_affinity.
12523 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
12524 create new pthread_attr_t and call gomp_init_thread_affinity
12525 on it for each thread before passing the attribute to pthread_create.
12526 * config/linux/affinity.c: New file.
12527 * config/posix/affinity.c: New file.
12528 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
12529 * configure: Rebuilt.
12530 * config.h.in: Rebuilt.
12531 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
12532 * Makefile.in: Rebuilt.
12533
1850744b
AT
125342007-03-23 Andreas Tobler <a.tobler@schweiz.org>
12535
12536 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
12537 *-*-darwin*.
12538 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
12539 and use it if found.
12540
516f1ed8
UB
125412007-03-18 Uros Bizjak <ubizjak@gmail.com>
12542
12543 * testsuite/config/default.exp: New file.
12544 * testsuite/lib/libgomp.exp: New file.
12545 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
12546 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
12547 load_lib *, load_gcc_lib *): Move to libgomp.exp.
12548 (libgomp_load): Remove.
12549 * testsuite/lib/libgomp.exp (libgomp_init): Compute
12550 always_ld_library_path, not ld_library_path. Set additional_flags
12551 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
12552 (target_compile): Do not call libgomp_init. Append lang_library_path
12553 and lang_link_flags to options.
12554 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
12555 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
12556 here.
12557 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
12558 always_ld_library_path. Set LD_LIBRARY_PATH here.
12559 * testsuite/libgomp.fortran/fortran.exp: Ditto.
12560 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
12561 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
12562 CX8 flag.
12563 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
12564 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
12565 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
12566 * testsuite/libgomp.c/pr29947-1.c: Ditto.
12567 * testsuite/libgomp.c/atomic-10.c: Ditto.
12568
2ada56f5
JJ
125692007-03-21 Jakub Jelinek <jakub@redhat.com>
12570
12571 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
12572 dg-final cleanup-modules line.
12573 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
12574 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
12575 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
12576 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
12577 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
12578 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
12579 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
12580
f210f1cd
AS
125812007-03-18 Andreas Schwab <schwab@suse.de>
12582
12583 * acinclude.m4: Adjust regular expression for ld version
12584 extraction.
12585 * configure: Regenerate.
12586
c4dc950d
BM
125872007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
12588
12589 * Makefile.am: Add install-pdf target as copied from
12590 automake v1.10 rules.
12591 * Makefile.in: Regenerate
12592
e02a048f
JJ
125932007-02-07 Jakub Jelinek <jakub@redhat.com>
12594
78e075d4
JJ
12595 PR libgomp/28486
12596 * configure: Regenerate.
12597
e02a048f
JJ
12598 PR c++/30703
12599 * testsuite/libgomp.c++/pr30703.C: New test.
12600
60def7ed
JJ
126012007-02-02 Jakub Jelinek <jakub@redhat.com>
12602
12603 Revert:
12604 2006-07-05 Eric Christopher <echristo@apple.com>
12605 * configure.ac: Depend addition of -pthread on host OS.
12606 * configure: Regenerate.
12607
f1b0882e
RW
126082007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12609
12610 * libgomp.texi: Fix spacing after abbreviations.
12611
748b9d7c
DF
126122007-01-31 Daniel Franke <franke.daniel@gmail.com>
12613
12614 PR libgomp/30546
12615 * configure.ac: Add check for makeinfo
12616 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
a0221aee 12617 if an appropriate version of makeinfo is found.
748b9d7c
DF
12618 * aclocal.m4: Regenerated.
12619 * configure: Regenerated.
12620 * Makefile.in: Regenerated.
12621 * testsuite/Makefile.in: Regenerated.
12622
14734fc7
DF
126232007-01-29 Daniel Franke <franke.daniel@gmail.com>
12624
12625 PR libgomp/30540
12626 * libgomp.texi: More about implementation-dependent settings.
12627
7befd5d2
TB
126282007-01-26 Tobias Burnus <burnus@net-b.de>
12629
12630 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
12631
4288fea2
JJ
126322007-01-24 Jakub Jelinek <jakub@redhat.com>
12633
12634 PR middle-end/30494
12635 * testsuite/libgomp.c/pr30494.c: New test.
12636
627ab4b8
TT
126372007-01-15 Tom Tromey <tromey@redhat.com>
12638
12639 * configure: Rebuilt.
12640 * configure.ac: Fixed comment.
12641
7c2b7f45
DF
126422007-01-14 Daniel Franke <franke.daniel@gmail.com>
12643
12644 * libgomp.texi: Document implementation specific default values of
12645 environment variables.
12646
3721b9e1
DF
126472006-12-21 Daniel Franke <franke.daniel@gmail.com>
12648
12649 PR libgomp/28209
12650 * libgomp.texi: New file.
12651 * configure.ac: Add --enable-generated-files-in-srcdir option.
12652 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
12653 files to srcdir.
12654 * Makefile.in: Regenerated.
12655 * config.h.in: Regenerated.
12656 * testsuite/Makefile.in: Regenerated.
12657 * NOTES: Removed.
12658
62bd6216
DF
126592006-12-04 Daniel Franke <franke.daniel@gmail.com>
12660
12661 PR libgomp/29949
12662 * env.c (omp_set_num_threads): Set illegal thread count to 1.
12663
aad741f4
EB
126642006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
12665
12666 * configure: Regenerate.
12667
22568cc6
JJ
126682006-12-04 Jakub Jelinek <jakub@redhat.com>
12669
12670 PR libgomp/29947
12671 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
12672 start if there shouldn't be any loop iterations.
12673 (gomp_loop_ordered_static_start): Remove start == end test.
12674 * testsuite/libgomp.c/pr29947-1.c: New test.
12675 * testsuite/libgomp.c/pr29947-2.c: New test.
12676
a9690009
EB
126772006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
12678
12679 * configure.tgt: Force initial-exec TLS model on Linux only.
12680
597c25e6
DJ
126812006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
12682
12683 * configure: Regenerated.
12684
6acf0b38
UB
126852006-11-09 Uros Bizjak <ubizjak@gmail.com>
12686
12687 * env.c (parse_schedule): Reject out of range values.
12688 (parse_unsigned_long): Reject out of range, negative or zero values.
12689
a7a53ca5
JJ
126902006-10-29 Jakub Jelinek <jakub@redhat.com>
12691
12692 PR fortran/29629
12693 * testsuite/libgomp.fortran/pr29629.f90: New test.
12694
6d4d216a
EB
126952006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
12696
12697 PR libgomp/29494
12698 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
12699 * config/posix95: New directory.
12700 * config/posix95/omp-lock.h: New file.
12701 * config/posix95/lock.c: Likewise.
12702
5b043f08
GK
127032006-10-14 Geoffrey Keating <geoffk@apple.com>
12704
12705 * aclocal.m4: Regenerate.
12706 * configure: Regenerate.
12707
b50019f0
DS
127082006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
12709
12710 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
12711 '<' to '<='.
12712
8887708e
DS
127132006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
12714
12715 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
12716 test.
12717 * configure: Regenerate.
12718 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
12719
9b9e4cd6
JJ
127202006-09-26 Jakub Jelinek <jakub@redhat.com>
12721
a70ad3bb
JJ
12722 PR middle-end/25261
12723 PR middle-end/28790
12724 * testsuite/libgomp.c/nestedfn-4.c: New test.
12725 * testsuite/libgomp.c/nestedfn-5.c: New test.
12726 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
12727
9b9e4cd6
JJ
12728 PR fortran/29097
12729 * testsuite/libgomp.fortran/condinc1.f: New test.
12730 * testsuite/libgomp.fortran/condinc2.f: New test.
12731 * testsuite/libgomp.fortran/condinc3.f90: New test.
12732 * testsuite/libgomp.fortran/condinc4.f90: New test.
12733 * testsuite/libgomp.fortran/condinc1.inc: New file.
12734
2fb31455
TT
127352006-09-18 Tom Tromey <tromey@redhat.com>
12736
12737 * configure: Rebuilt.
12738
c663e301
JM
127392006-09-13 Joseph S. Myers <joseph@codesourcery.com>
12740
12741 PR c/28768
12742 PR preprocessor/14634
12743 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
12744 to AC_DEFINE.
12745 * configure: Regenerate.
12746
38371be9
SK
127472006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
12748
12749 * testsuite/libgomp.fortran/reduction3.f90: Change
12750 -2147483648 to -huge(i)-1 to avoid overflow.
12751 * testsuite/libgomp.fortran/reduction4.f90: Change
12752 Z'ffffffff' to not(0) to avoid overflow.
12753
571d5ac5
JM
127542006-08-26 Joseph S. Myers <joseph@codesourcery.com>
12755
12756 PR libgomp/25938
12757 * Makefile.am (libsubincludedir): New.
12758 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
12759 * Makefile.in: Regenerate.
12760
89b3e3cd
JJ
127612006-08-17 Jakub Jelinek <jakub@redhat.com>
12762
12763 PR libgomp/28725
12764 * env.c: Include ctype.h.
12765 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
12766 leading and/or trailing whitespace and compare strings case
12767 insensitively.
12768
742fae05
JJ
127692006-07-16 Jakub Jelinek <jakub@redhat.com>
12770
12771 PR fortran/28390
12772 * testsuite/libgomp.fortran/pr28390.f: New test.
12773
a1daed2d
EC
127742006-07-05 Eric Christopher <echristo@apple.com>
12775
12776 * configure.ac: Depend addition of -pthread on host OS.
12777 * configure: Regenerate.
12778
5d7b5199
JJ
127792006-06-21 Jakub Jelinek <jakub@redhat.com>
12780
12781 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
12782 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
12783 defined.
12784
fe5568e9
JJ
127852006-06-20 Jakub Jelinek <jakub@redhat.com>
12786
12787 PR libgomp/26175
12788 PR libgomp/26477
12789 * configure.ac: If neither --enable-linux-futex nor
12790 --disable-linux-futex is passed, determine the default by checking
12791 for compiling and/or running against NPTL. With --enable-linux-futex,
12792 check if SYS_gettid and SYS_futex are defined.
12793 * configure: Rebuilt.
12794
c3b11a40
RH
127952006-06-14 Richard Henderson <rth@redhat.com>
12796
12797 PR libgomp/28008
12798 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
12799 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
12800
d0d1b24d
RH
128012006-06-09 Richard Henderson <rth@redhat.com>
12802
12803 * env.c (gomp_nthreads_var): Change to unsigned long.
12804 (gomp_run_sched_chunk): Likewise.
12805 (parse_unsigned_long): Rename from parse_num_threads and generalize.
12806 (initialize_env): Initialize gomp_thread_attr.
12807 * libgomp.h (gomp_nthreads_var): Update decl.
12808 (gomp_run_sched_chunk): Likewise.
12809 (gomp_thread_attr): Declare.
12810 * team.c (gomp_thread_attr): Export.
12811 (initialize_team): Don't initialize it.
12812
cd75853e
JJ
128132006-06-09 Jakub Jelinek <jakub@redhat.com>
12814
12815 PR fortran/27916
12816 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
12817 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
12818
33815e0c
FXC
128192006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
12820
12821 * config/mingw32/time.c: New file.
12822 * configure.tgt: Use it.
12823
6667de0d
CD
128242006-05-23 Carlos O'Donell <carlos@codesourcery.com>
12825
12826 * Makefile.am: Add install-html target. Add install-html to .PHONY
12827 * Makefile.in: Regenerate.
12828
e962c46b
JDA
128292006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12830
12831 PR libgomp/27612
12832 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
12833 * testsuite/libgomp.c/critical-1.c: Likewise.
12834 * testsuite/libgomp.c/loop-1.c: Likewise.
12835 * testsuite/libgomp.c/loop-2.c: Likewise.
12836 * testsuite/libgomp.c/single-1.c: Likewise.
12837 * testsuite/libgomp.c/ordered-1.c: Likewise.
12838 * testsuite/libgomp.c/ordered-2.c: Likewise.
12839
eeb1d9e0
JJ
128402006-05-15 Jakub Jelinek <jakub@redhat.com>
12841
12842 PR middle-end/27416
12843 * libgomp.fortran/pr27416-1.f90: New test.
12844
693d710f
JJ
128452006-05-03 Jakub Jelinek <jakub@redhat.com>
12846
12847 PR fortran/27395
12848 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
12849 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
12850
8ca5b2a2
JJ
128512006-05-02 Jakub Jelinek <jakub@redhat.com>
12852
12853 PR c++/26943
12854 * testsuite/libgomp.c/pr26943-1.c: New test.
12855 * testsuite/libgomp.c/pr26943-2.c: New test.
12856 * testsuite/libgomp.c/pr26943-3.c: New test.
12857 * testsuite/libgomp.c/pr26943-4.c: New test.
12858 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
12859 * testsuite/libgomp.c++/pr26943.C: New test.
12860
077b0dfb
JJ
128612006-05-02 Jakub Jelinek <jakub@redhat.com>
12862
12863 PR middle-end/27337
12864 * testsuite/libgomp.c++/pr27337.C: New test.
12865
91b6c26d
JJ
128662006-04-26 Jakub Jelinek <jakub@redhat.com>
12867
12868 PR c/26171
12869 * testsuite/libgomp.c/pr26171.c: New test.
12870
60e1758f
RH
128712006-04-25 Richard Henderson <rth@redhat.com>
12872
12873 PR libgomp/25865
12874 * configure.ac: Use GCC_CHECK_TLS.
12875 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
12876 * Makefile.in, aclocal.m4, configure: Regenerate.
12877
615baed7
MK
128782006-04-10 Matthias Klose <doko@debian.org>
12879
12880 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
12881 directory names containing underscores.
12882
fae2b46b
JJ
128832006-03-21 Jakub Jelinek <jakub@redhat.com>
12884
12885 PR c++/26691
12886 * testsuite/libgomp.c++/pr26691.C: New test.
12887
11a5f608
JJ
128882006-03-13 Jakub Jelinek <jakub@redhat.com>
12889
12890 * testsuite/libgomp.fortran/retval2.f90: New test.
12891
1799e5d5
RH
128922006-03-09 Diego Novillo <dnovillo@redhat.com>
12893
12894 * testsuite/libgomp.c++: New directory.
12895
d349482e
AT
128962006-02-25 Shantonu Sen <ssen@opendarwin.org>
12897
12898 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
12899 * config/posix/sem.c: Implement the above.
12900
129012006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
12902
12903 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
12904 define HAVE_BROKEN_POSIX_SEMAPHORES.
12905 * configure: Rebuilt.
12906 * config.h.in: Rebuilt.
12907
124452c9
FXC
129082006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
12909
12910 PR bootstrap/26161
12911 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
12912 for the other pthread check.
12913 * configure: Regenerate.
12914 * config.h.in: Regenerate.
12915
dd8d6dfe
JJ
129162006-02-15 Jakub Jelinek <jakub@redhat.com>
12917
12918 PR libgomp/25938
12919 PR libgomp/25984
12920 * Makefile.am (fincludedir): New variable.
12921 (nodist_include_HEADERS): Remove Fortran files.
12922 (nodist_finclude_HEADERS): New variable.
12923 * Makefile.in: Regenerated.
12924
6c7a4dfd
JJ
129252006-02-13 Jakub Jelinek <jakub@redhat.com>
12926
12927 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
12928 Remove tests for returning assumed character length arrays.
12929
5142e08b
RS
129302006-02-12 Roger Sayle <roger@eyesopen.com>
12931 John David Anglin <dave@hiauly1.hia.nrc.ca>
12932
12933 PR libgomp/25936
12934 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
a1daed2d 12935
5821fba8
UW
129362006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
12937
12938 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
12939
cb2bbc67
EB
129402006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
12941
12942 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
12943 part of LD_LIBRARY_PATH manually.
12944
f05ee80c
L
129452006-02-03 H.J. Lu <hongjiu.lu@intel.com>
12946
12947 PR libgomp/25852
12948 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
12949 libgomp_init.
12950
03b8fe49
PB
129512005-01-25 Paolo Bonzini <bonzini@gnu.org>
12952
12953 PR libgomp/25884
f05ee80c
L
12954 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
12955 * configure.ac (PERL): Don't set.
12956 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
12957 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
12958 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
12959 * omp.h.in: Wrap the new configure substitutions with @ characters.
12960 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
12961 * aclocal.m4, configure, Makefile.in: Regenerate.
12962 * mkomp_h.pl: Delete.
03b8fe49 12963
18cbfd85
PB
129642005-01-24 Paolo Bonzini <bonzini@gnu.org>
12965
12966 PR libgomp/25259
12967 * configure.ac: Use GCC_HEADER_STDINT.
12968 * libgomp.h: Include gstdint.h.
12969 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
12970 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
12971
c41303c6
RH
129722006-01-24 Richard Henderson <rth@redhat.com>
12973
12974 PR libgomp/25942
12975 * configure.ac: Add AM_MAINTAINER_MODE.
12976 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
12977
149b9553
DN
129782006-01-24 Diego Novillo <dnovillo@redhat.com>
12979
12980 * Makefile.in: Regenerate.
12981 * testsuite/Makefile.in: Regenerate.
12982 * aclocal.m4: Regenerate.
12983
192a50ad
AT
129842006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
12985
12986 * config/posix/proc.c: Conditional include of sys/loadavg.h for
12987 Solaris.
12988 * configure.ac: Add check for loadavg.h.
12989 (link_gomp): Adjust comment.
12990 * configure: Regenerate.
12991 * config.h.in: Regenerate.
12992
a55b8e18
SE
129932006-01-21 Steve Ellcey <sje@cup.hp.com>
12994
12995 PR libgomp/25877
12996 * configure.ac: Remove check for alloca.h.
12997 * configure: Regenerate.
12998 * config.h.in: Regenerate.
12999 * libgomp.h: define gomp_alloca to be __builtin_alloca.
13000 * team.c: Remove use of alloca.h.
13001 Call gomp_alloca instead of alloca.
13002
692eeb34
SE
130032006-01-20 Steve Ellcey <sje@cup.hp.com>
13004
13005 PR libgomp/25877
13006 * team.c: Add include of alloca.h.
13007 * configure.ac: Add check for alloca.h.
13008 * configure: Regenerate.
13009 * config.h.in: Regenerate.
13010
953ff289
DN
130112006-01-17 Jakub Jelinek <jakub@redhat.com>
13012
13013 PR fortran/25219
13014 * testsuite/libgomp.fortran/pr25219.f90: New test.
13015
130162005-12-05 Uros Bizjak <uros@kss-loka.si>
13017
13018 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
13019 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
13020 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
13021 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
13022 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
13023 testsuite/libgomp.fortran/threadprivate1.f90,
13024 testsuite/libgomp.fortran/threadprivate2.f90,
13025 testsuite/libgomp.fortran/threadprivate3.f90,
13026 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
13027 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
13028 testsuite/libgomp.fortran/omp_parse3.f90: Change required
13029 effective-target to TLS runtime.
13030
13031 * testsuite/libgomp.fortran/pr25162.f: Require
13032 effective-target TLS runtime.
13033
130342005-12-01 Jakub Jelinek <jakub@redhat.com>
13035
13036 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
13037 * testsuite/libgomp.c/nestedfn-3.c: New test.
13038
130392005-11-30 Jakub Jelinek <jakub@redhat.com>
13040
13041 PR fortran/25162
13042 * testsuite/libgomp.fortran/pr25162.f: New test.
13043
130442005-11-28 Jakub Jelinek <jakub@redhat.com>
13045
13046 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
13047 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
13048
130492005-11-25 Jakub Jelinek <jakub@redhat.com>
13050
13051 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
13052 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
13053 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
13054 single.c, team.c, work.c, config/linux/alpha/futex.h,
13055 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
13056 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
13057 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
13058 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
13059 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
13060 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
13061 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
13062 FSF address.
13063
130642005-11-18 Jakub Jelinek <jakub@redhat.com>
13065
13066 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
13067 to nodist_noinst_HEADERS.
13068 * Makefile.in: Rebuilt.
13069
13070 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
13071 add integer count field.
13072 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
13073 omp_nest_lock_t type change.
13074 (omp_init_nest_lock): Likewise. Initialize count to 0.
13075 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
13076 Increment count.
13077 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
13078 Decrement count.
13079 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
13080 Increment count if successful and return the new nesting level.
13081 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
13082 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
13083 * testsuite/libgomp.c/lib-1.c: New test.
13084 * testsuite/libgomp.fortran/lib1.f90: New test.
13085 * testsuite/libgomp.fortran/lib2.f: New test.
13086 * testsuite/libgomp.fortran/lib3.f: New test.
13087
130882005-11-17 Richard Henderson <rth@redhat.com>
13089
13090 PR 24845
13091 * Makefile.am (nodist_toolexeclib_HEADERS): New.
13092 * configure.ac (link_gomp): New. Substitute it.
13093 (AC_CONFIG_FILES): Add libgomp.spec.
13094 * libgomp.spec.in: New file.
13095 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
13096 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
13097
130982005-11-18 Jakub Jelinek <jakub@redhat.com>
13099
13100 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
13101 reduction(-:var) behaving the same as reduction(+:var).
13102 * testsuite/libgomp.c/reduction-4.c: New test.
13103
131042005-11-15 Uros Bizjak <uros@kss-loka.si>
13105
13106 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
13107 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
13108 testsuite/libgomp.c/copyin-3.c,
13109 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
13110 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
13111 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
13112 testsuite/libgomp.c++/pr24455.C,
13113 testsuite/libgomp.fortran/threadprivate1.f90,
13114 testsuite/libgomp.fortran/threadprivate2.f90,
13115 testsuite/libgomp.fortran/threadprivate3.f90,
13116 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
13117 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
13118 testsuite/libgomp.fortran/omp_parse3.f90: Require
13119 effective-target TLS.
13120
131212005-11-14 Diego Novillo <dnovillo@redhat.com>
13122
13123 * HEADER: Remove.
13124
131252005-11-13 Jakub Jelinek <jakub@redhat.com>
13126
13127 PR libgomp/24797
13128 * team.c (initialize_team): Pass NULL rather than free as
13129 pthread_key_create destructor. Initialize thread specific data
13130 pointer in initial thread to a static local variable rather than
13131 malloced memory.
13132
131332005-11-11 Uros Bizjak <uros@kss-loka.si>
13134
13135 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
13136 its location to ld_library_path.
13137
131382005-11-10 Diego Novillo <dnovillo@redhat.com>
13139
13140 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
13141
131422005-11-10 Diego Novillo <dnovillo@redhat.com>
13143
13144 * testsuite/libgomp.c: Rename from libgomp.dg.
13145
131462005-11-09 Diego Novillo <dnovillo@redhat.com>
13147
13148 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
13149 threadprivate variable 'i'.
13150
131512005-11-09 Jakub Jelinek <jakub@redhat.com>
13152
13153 * config/linux/s390/futex.h: New file.
13154 * configure.tgt: Use it.
13155
13156 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
13157 before the parallel.
13158
131592005-11-08 Jakub Jelinek <jakub@redhat.com>
13160
13161 PR c++/24734
13162 * testsuite/libgomp.c++/master-1.C: New test.
13163
131642005-11-07 Jakub Jelinek <jakub@redhat.com>
13165
13166 * testsuite/libgomp.dg/copyin-3.c: New test.
13167
131682005-11-07 Jakub Jelinek <jakub@redhat.com>
13169
13170 * testsuite/libgomp.fortran/retval1.f90: New test.
13171 * testsuite/libgomp.fortran/vla7.f90: New test.
13172
131732005-11-06 Jakub Jelinek <jakub@redhat.com>
13174
13175 * testsuite/libgomp.fortran/vla2.f90: New test.
13176 * testsuite/libgomp.fortran/vla3.f90: New test.
13177 * testsuite/libgomp.fortran/vla4.f90: New test.
13178 * testsuite/libgomp.fortran/vla5.f90: New test.
13179 * testsuite/libgomp.fortran/vla6.f90: New test.
13180
131812005-11-01 Jakub Jelinek <jakub@redhat.com>
13182
13183 * config/linux/sparc/futex.h: New file.
13184 * configure.tgt: Use it.
13185 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
13186
13187 * critical.c: Include stdlib.h.
13188 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
13189 ignoring return value.
13190 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
13191 LIBGOMP_CHECK_SYNC_BUILTINS check.
13192 * configure: Rebuilt.
13193
131942005-10-31 Jakub Jelinek <jakub@redhat.com>
13195
13196 * testsuite/libgomp.fortran/vla1.f90: New test.
13197
131982005-10-31 Richard Henderson <rth@redhat.com>
13199
13200 * testsuite/libgomp.fortran/character2.f90: Fix race condition
13201 setting 's' in different threads.
13202
132032005-10-31 Jakub Jelinek <jakub@redhat.com>
13204
13205 * libgomp.h (attribute_hidden, ialias): Define.
13206 * config/posix/proc.c (omp_get_num_procs): Add ialias.
13207 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
13208 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
13209 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
13210 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
13211 omp_test_lock, omp_test_nest_lock): Likewise.
13212 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
13213 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
13214 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
13215 omp_test_lock, omp_test_nest_lock): Likewise.
13216 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
13217 omp_get_dynamic, omp_get_nested): Likewise.
13218 * parallel.c (omp_get_num_threads, omp_get_max_threads,
13219 omp_get_thread_num, omp_in_parallel): Likewise.
13220 * fortran.c (ialias_redirect): Define.
13221 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
13222 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
13223 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
13224 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
13225 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
13226 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
13227 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
13228 omp_get_wtime): Add ialias_redirect.
13229
132302005-10-30 Jakub Jelinek <jakub@redhat.com>
13231
13232 * fortran.c: Include stdlib.h.
13233
132342005-10-29 Jakub Jelinek <jakub@redhat.com>
13235
13236 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
13237 * Makefile.in: Regenerated.
13238
132392005-10-28 Jakub Jelinek <jakub@redhat.com>
13240
13241 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
13242 * libgomp_f.h.in (omp_check_defines): New function.
13243 * env.c: Include libgomp_f.h.
13244 (initialize_env): Call omp_check_defines.
13245
13246 * testsuite/libgomp.dg/copyin-2.c: New test.
13247 * testsuite/libgomp.c++/copyin-2.C: New test.
13248 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
13249
13250 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
13251 * testsuite/libgomp.fortran/sharing2.f90: New test.
13252
13253 * testsuite/libgomp.dg/copyin-1.c: New test.
13254 * testsuite/libgomp.c++/copyin-1.C: New test.
13255
132562005-10-26 Jakub Jelinek <jakub@redhat.com>
13257
13258 * testsuite/libgomp.fortran/crayptr1.f90: New test.
13259
13260 * testsuite/libgomp.fortran/workshare1.f90: New test.
13261
13262 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
13263 only test.
13264 * libgomp.fortran/sharing1.f90: New test.
13265
132662005-10-24 Jakub Jelinek <jakub@redhat.com>
13267
13268 PR c++/24502
13269 * testsuite/libgomp.c++/loop-7.C: New test.
13270
13271 * testsuite/libgomp.dg/nestedfn-2.c: New test.
13272
13273 * testsuite/libgomp.dg/nestedfn-1.c: New test.
13274 * testsuite/libgomp.fortran/reduction6.f90: New test.
13275 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
13276
132772005-10-23 Richard Henderson <rth@redhat.com>
13278
13279 * testsuite/libgomp.c++/ctor-1.C: New.
13280 * testsuite/libgomp.c++/ctor-2.C: New.
13281 * testsuite/libgomp.c++/ctor-3.C: New.
13282 * testsuite/libgomp.c++/ctor-4.C: New.
13283 * testsuite/libgomp.c++/ctor-5.C: New.
13284 * testsuite/libgomp.c++/ctor-6.C: New.
13285 * testsuite/libgomp.c++/ctor-7.C: New.
13286 * testsuite/libgomp.c++/ctor-8.C: New.
13287 * testsuite/libgomp.c++/ctor-9.C: New.
13288
132892005-10-21 Diego Novillo <dnovillo@redhat.com>
13290
13291 PR 24455
13292 * testsuite/libgomp.c++/pr24455-1.C: New test.
13293 * testsuite/libgomp.c++/pr24455.C: New test.
13294 * testsuite/libgomp.dg/pr24455-1.c: New test.
13295 * testsuite/libgomp.dg/pr24455.c: New test.
13296
132972005-10-20 Richard Henderson <rth@redhat.com>
13298
13299 * testsuite/libgomp.c++/loop-6.C: New.
13300 * testsuite/libgomp.dg/loop-3.c: New.
13301
133022005-10-20 Jakub Jelinek <jakub@redhat.com>
13303
13304 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
13305 explicitly private.
13306 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
13307 explicitly shared.
13308
133092005-10-19 Diego Novillo <dnovillo@redhat.com>
13310
13311 * testsuite/libgomp.fortran/jacobi.f: New test.
13312
133132005-10-19 Richard Henderson <rth@redhat.com>
13314
13315 * configure.tgt (i?86-linux): Default to with_arch instead of
13316 CFLAGS. Add -mtune to match target_cpu.
13317 (x86_64-linux): Tune to i686.
13318
13319 * fortran.c (omp_test_nest_lock_): Fix typo.
13320
133212005-10-19 Jakub Jelinek <jakub@redhat.com>
13322
13323 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
13324 gomp_ordered_sync): Do nothing if team->nthreads == 1.
13325 * testsuite/libgomp.dg/ordered-3.c: New test.
13326
13327 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
13328 Remove volatile keyword.
13329
13330 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
13331 in COMMON block to avoid warnings on 64-bit targets.
13332
133332005-10-18 Diego Novillo <dnovillo@redhat.com>
13334
13335 * testsuite/libgomp.dg/shared-3.c: New test.
13336
133372005-10-18 Jakub Jelinek <jakub@redhat.com>
13338
13339 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
13340 * testsuite/libgomp.fortran/reduction5.f90: New test.
13341
133422005-10-18 Jakub Jelinek <jakub@redhat.com>
13343
13344 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
13345 dg-options.
13346 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
13347 flush loop now that __sync_synchronize has proper memory barrier.
13348 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
13349 Add -ffixed-form to dg-options.
13350
133512005-10-17 Diego Novillo <dnovillo@redhat.com>
13352
13353 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
13354 from subdirectories.
13355 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
13356 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
13357 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
13358 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
13359 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
13360 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
13361 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
13362 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
13363 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
13364 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
13365 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
13366 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
13367 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
13368 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
13369 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
13370 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
13371 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
13372 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
13373 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
13374 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
13375 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
13376 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
13377 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
13378 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
13379 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
13380
133812005-10-17 Jakub Jelinek <jakub@redhat.com>
13382
13383 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
13384 lang_library_path exists. Use find instead of glob to gather tests.
13385 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
13386
133872005-10-17 Diego Novillo <dnovillo@redhat.com>
13388
13389 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
13390 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
13391 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
13392 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
13393 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
13394 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
13395 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
13396 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
13397 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
13398 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
13399 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
13400 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
13401 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
13402
134032005-10-15 Jakub Jelinek <jakub@redhat.com>
13404
13405 * testsuite/libgomp.dg/vla-1.c: New test.
13406
13407 * testsuite/libgomp.fortran/reference2.f90: New test.
13408
13409 * testsuite/libgomp.fortran/character2.f90: Remove explicit
13410 declaration of omp_get_thread_num.
13411 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
13412 use omp_lib.
13413
13414 * testsuite/libgomp.fortran/reduction1.f90: New test.
13415 * testsuite/libgomp.fortran/reduction2.f90: New test.
13416 * testsuite/libgomp.fortran/reduction3.f90: New test.
13417 * testsuite/libgomp.fortran/reduction4.f90: New test.
13418
134192005-10-13 Richard Henderson <rth@redhat.com>
13420
13421 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
13422 * Makefile.in: Regenerate.
13423 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
13424 * libgomp.h: Include bar.h.
13425 (struct gomp_barrier): Remove.
13426 (struct gomp_team): Add barrier. Replace master_barrier with
13427 master_release. Replace threads with ordered_release.
13428 (struct gomp_thread): Replace barrier with release.
13429 * ordered.c (gomp_ordered_first): Update for ordered_release change.
13430 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
13431 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
13432 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
13433 (GOMP_single_copy_end): Likewise.
13434 * team.c (gomp_threads_dock): New.
13435 (gomp_barrier_init, gomp_barrier_destroy): Remove.
13436 (gomp_thread_start): Use gomp_barrier_wait.
13437 (new_team, free_team): Update for gomp_team changes.
13438 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
13439 (gomp_team_end): Use gomp_barrier_wait.
13440 (initialize_team): Update for gomp_thread changes.
13441 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
13442 (gomp_work_share_end_nowait): Use atomic ops when available.
13443 * config/linux/bar.c, config/linux/bar.h: New files.
13444 * config/posix/bar.c, config/posix/bar.h: New files.
13445
134462005-10-13 Jakub Jelinek <jakub@redhat.com>
13447
13448 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
13449 * testsuite/libgomp.dg/single-2.c: New test.
13450
13451 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
13452 lang_link_flags): Unset, so that they aren't inherited from previously
13453 sourced *.exp.
13454
13455 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
13456
134572005-10-12 Richard Henderson <rth@redhat.com>
13458
13459 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
13460 (libgomp_init): Use lang_test_file, lang_library_path, and
13461 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
13462
13463 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
13464 (lang_test_file, lang_link_flags): New.
13465 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
13466
13467 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
13468 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
13469 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
13470 testsuite/libgomp.c++/parallel-1.C,
13471 testsuite/libgomp.c++/reduction-1.C,
13472 testsuite/libgomp.c++/reduction-2.C,
13473 testsuite/libgomp.c++/reduction-3.C,
13474 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
13475 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
13476 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
13477 New files, largely cribbed from the C testsuite.
13478
134792005-10-12 Jakub Jelinek <jakub@redhat.com>
13480
13481 * testsuite/libgomp.fortran/character1.f90: New test.
13482 * testsuite/libgomp.fortran/character2.f90: New test.
13483
13484 * testsuite/libgomp.dg/nested-1.c: New test.
13485 * testsuite/libgomp.dg/nested-2.c: New test.
13486 * testsuite/libgomp.fortran/do1.f90: New test.
13487 * testsuite/libgomp.fortran/do2.f90: New test.
13488
13489 * testsuite/libgomp.fortran/reference1.f90: New test.
13490
134912005-10-11 Jakub Jelinek <jakub@redhat.com>
13492
13493 * testsuite/libgomp.dg/reduction-1.c: New test.
13494 * testsuite/libgomp.dg/reduction-2.c: New test.
13495 * testsuite/libgomp.dg/reduction-3.c: New test.
13496
134972005-10-10 Jakub Jelinek <jakub@redhat.com>
13498
13499 * testsuite/libgomp.dg/atomic-1.c: New test.
13500 * testsuite/libgomp.dg/atomic-2.c: New test.
13501
135022005-10-09 Richard Henderson <rth@redhat.com>
13503
13504 * critical.c (atomic_lock): New.
13505 (initialize_critical): Initialize it.
13506 (GOMP_atomic_start, GOMP_atomic_end): New.
13507 * libgomp.map: Export them.
13508 * libgomp_g.h: Declare them.
13509
13510 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
13511
135122005-10-02 Richard Henderson <rth@redhat.com>
13513
13514 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
13515 to XCFLAGS instead of CFLAGS.
13516
135172005-09-30 Richard Henderson <rth@redhat.com>
13518
13519 * configure.ac: Determine whether -pthread or -lpthread is needed.
13520 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
93d90219 13521 * Makefile.in, configure: Rebuild.
953ff289
DN
13522
135232005-09-28 Richard Henderson <rth@redhat.com>
13524
13525 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
13526 * testsuite/libgomp.dg/omp-single-3.c: New test.
13527
135282005-09-28 Diego Novillo <dnovillo@redhat.com>
13529
13530 * testsuite/libgomp.dg/omp-single-2.c: New test.
13531 * testsuite/libgomp.dg/shared-2.c: Fix return code.
13532
135332005-09-27 Richard Henderson <rth@redhat.com>
13534
13535 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
13536 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
13537
135382005-09-27 Jakub Jelinek <jakub@redhat.com>
13539
13540 * testsuite/libgomp.dg/omp-loop03.c: New test.
13541
135422005-09-27 Diego Novillo <dnovillo@redhat.com>
13543
13544 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
13545
135462005-09-27 Diego Novillo <dnovillo@redhat.com>
13547
13548 * testsuite/libgomp.dg/omp-single-1.c: New test.
13549 * testsuite/libgomp.dg/shared-1.c: Return 0.
13550 Add prototype for abort.
13551 * testsuite/libgomp.dg/shared-2.c: Likewise.
13552
135532005-09-26 Jakub Jelinek <jakub@redhat.com>
13554
13555 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
13556 constructs.
13557
135582005-09-26 Diego Novillo <dnovillo@redhat.com>
13559
13560 * testsuite/libgomp.dg/shared-1.c: New test.
13561 * testsuite/libgomp.dg/shared-2.c: New test.
13562
135632005-09-24 Richard Henderson <rth@redhat.com>
13564
13565 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
13566
135672005-09-24 Richard Henderson <rth@redhat.com>
13568
13569 * iter.c (gomp_iter_static_next): Round up when computing number
13570 of iterations. Don't bother distributing a remainder equally.
13571
13572 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
13573 Don't call srand. Zero b before testing.
13574 (main): New.
13575
135762005-09-24 Jakub Jelinek <jakub@redhat.com>
13577
13578 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
13579 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
13580
135812005-09-23 Jakub Jelinek <jakub@redhat.com>
13582
13583 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
13584 without !$omp end do, followed immediately by subroutine end.
13585
135862005-09-23 Diego Novillo <dnovillo@redhat.com>
13587
13588 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
13589
135902005-09-22 Richard Henderson <rth@redhat.com>
13591
13592 * critical.c (GOMP_critical_name_start): Change argument to void**.
13593 Reuse the pointer space if the mutex fits.
13594 (GOMP_critical_name_end): Likewise.
13595 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
13596 * libgomp_g.h (GOMP_critical_name_start): Update decl.
13597 (GOMP_critical_name_end): Likewise.
13598 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
13599 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
13600
136012005-09-20 Richard Henderson <rth@redhat.com>
13602
13603 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
13604 (create_lock_lock): New.
13605 (initialize_critical): Initialize it.
13606 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
13607 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
13608
136092005-09-20 Diego Novillo <dnovillo@redhat.com>
13610
13611 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
13612
136132005-09-20 Diego Novillo <dnovillo@redhat.com>
13614
13615 * testsuite/libgomp.dg/omp-loop01.c: New test.
13616 * testsuite/libgomp.dg/omp-loop02.c: New test.
13617
136182005-09-20 Jakub Jelinek <jakub@redhat.com>
13619
13620 * configure.ac (AC_PROG_FC): Add.
13621 (USE_FORTRAN): New automake conditional.
13622 * configure: Rebuilt.
13623 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
13624 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
13625 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
13626 Add rules to build them.
13627 * Makefile.in: Rebuilt.
13628 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
13629 OMP_NEST_LOCK_KIND.
13630 * libgomp.map: Add Fortran wrappers.
13631 * libgomp_f.h.in: New file.
13632 * omp_lib.h.in: New file.
13633 * omp_lib.f90.in: New file.
13634 * fortran.c: New file.
13635 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
13636 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
13637 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
13638 libgfortran has been built.
13639 * testsuite/libgomp.fortran/fortran.exp: New file.
13640 * testsuite/libgomp.fortran/omp_cond1.f: New test.
13641 * testsuite/libgomp.fortran/omp_cond2.f: New test.
13642 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
13643 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
13644 * testsuite/libgomp.fortran/omp_hello.f: New test.
13645 * testsuite/libgomp.fortran/omp_orphan.f: New test.
13646 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
13647 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
13648 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
13649 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
13650 * testsuite/libgomp.fortran/omp_reduction.f: New test.
13651 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
13652 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
13653
136542005-08-30 Richard Henderson <rth@redhat.com>
13655
13656 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
13657 function for when aliases are not usable.
13658 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
13659 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
13660 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
13661 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
13662 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
13663 GOMP_loop_ordered_guided_next): Likewise.
13664 * ordered.c (GOMP_ordered_start): Likewise.
13665
136662005-08-01 Diego Novillo <dnovillo@redhat.com>
13667
13668 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
13669 * testsuite/libgomp.dg/omp_hello.c: Fix return code
13670 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
13671 * testsuite/libgomp.dg/omp_orphan.c: Likewise
13672 * testsuite/libgomp.dg/omp_reduction.c: Likewise
13673 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
13674 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
13675 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
13676 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
13677
136782005-07-07 Eric Christopher <echristo@redhat.com>
13679 Diego Novillo <dnovillo@redhat.com>
13680
13681 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
13682 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
13683 up code.
13684 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
13685 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
13686 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
13687 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
13688 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
13689 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
13690 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
13691
136922005-06-13 Diego Novillo <dnovillo@redhat.com>
13693
13694 * TOPLEVEL.patch: Remove.
13695
136962005-05-16 Richard Henderson <rth@redhat.com>
13697
13698 * configure.ac: Test for clock_gettime.
13699 * config.h.in, configure: Rebuild.
13700 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
13701 (omp_get_wtime): Use clock_gettime if available.
13702 (omp_get_wtick): Use clock_getres if available.
13703
137042005-05-11 Richard Henderson <rth@redhat.com>
13705
13706 * config/linux/ia64/futex.h: New file.
13707 * configure.tgt: Use it.
13708
13709 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
13710
137112005-05-07 Richard Henderson <rth@redhat.com>
13712
13713 * config/linux/powerpc/futex.h: New file.
13714 * configure.tgt: Use it.
13715
13716 * config/linux/i486/futex.h: Merge ...
13717 * config/linux/x86_64/futex.h: ... into ...
13718 * config/linux/x86/futex.h: ... here.
13719 * configure.tgt: Update to match.
13720
137212005-05-06 Richard Henderson <rth@redhat.com>
13722
13723 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
13724 * config/linux/i486/futex.h: Likewise.
13725 * config/linux/x86_64/futex.h: Likewise.
13726
13727 * config/linux/lock.c: New file.
13728 * config/linux/omp-lock.h: New file.
13729
13730 * critical.c, env.h: Don't include omp.h
13731 * config/posix/lock.c: Include libgomp.h instead of omp.h.
13732 * config/posix/time.c: Likewise.
13733 * config/posix/omp-lock.h: New file.
13734 * libgomp.h: Include omp-lock.h and omp.h.
13735 * Makefile.am (nodist_include_HEADERS): New.
13736 (omp.h): New rule.
13737 * configure.ac (PERL): New.
13738 * mkomp_h.pl: New file.
13739 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
13740 with templates.
13741 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
13742
13743 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
13744 build directory. Re-add -march=i486 hack.
13745
13746 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
13747 (libgomp_link_flags): Remove.
13748 (libgomp_initialized): Remove.
13749 (libgomp_init): Don't protect from reinitialization. Copy code
13750 from libstdc++ for getting the multilib set correctly.
13751
137522005-05-05 Richard Henderson <rth@redhat.com>
13753
13754 * config/linux/alpha/futex.h: New file.
13755 * configure.tgt (alpha*-*-linux*): Use it.
13756
13757 * config/posix/mutex.c: New file.
13758 * config/posix/sem.c: Use libgomp.h.
13759
13760 * configure.tgt (x86_64-linux): Also test CC for -m32.
13761 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
13762
a1daed2d 13763 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
953ff289
DN
13764 after $gccpath.
13765
13766 * Makefile.am (SUBDIRS): New.
13767 (libgomp_la_LDFLAGS): Add -lpthread.
13768 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
13769 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
13770
13771 * libgomp_g.h: New file.
13772 * libgomp.h: Split out all public declarations to libgomp_g.h.
13773 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
13774 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
13775 * config/linux/sem.h: Likewise.
13776 * config/posix/sem.h: Likewise.
13777
13778 * Makefile.am (AM_LDFLAGS): New.
13779 (libgomp_version_script): Split out from ...
13780 (libgomp_la_LDFLAGS): ... here.
13781 (libgomp_version_info): New.
13782 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
13783 (LIBGOMP_ENABLE): New.
13784 (LIBGOMP_CHECK_LINKER_FEATURES): New.
13785 (LIBGOMP_ENABLE_SYMVERS): New.
13786 * configure.ac (AC_INIT): Version 1.0.
13787 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
13788 (enable-linux-futex): Likewise. Rename from enable-futex.
13789 (libtool_VERSION): New.
13790 (LIBGOMP_ENABLE_SYMVERS): Use it.
13791 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
13792 * Makefile.in, aclocal.m4, configure: Rebuild.
13793
13794 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
13795 (gomp_mutex_unlock_slow): Fix typo.
13796 * config/linux/sem.c: Similarly.
13797 (gomp_sem_post_slow): Fix typo.
13798 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
13799 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
13800 [__PIC__] (sys_futex0): Don't use tmp output in asm.
13801
13802 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
13803 (libgomp_la_LDFLAGS): Add top_srcdir to path.
13804 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
13805 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
13806 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
13807 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
13808 LDFLAGS. Pull enable_futex check to top-level.
13809 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
13810 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
13811
13812 First attempt at real configury.
13813 * Makefile, config.h: Remove file.
13814 * Makefile.am, Makefile.in: New file.
13815 * acinclude.m4 aclocal.m4: New file.
13816 * configure.ac, configure.tgt, configure: New file.
13817
13818 * config/posix/lock.c: Rename from sys-lock.c.
13819 * config/posix/mutex.h: Rename from sys-mutex.h.
13820 * config/posix/sem.c: Rename from sys-sem.c.
13821 * config/posix/sem.h: Rename from sys-sem.h.
13822 * config/posix/proc.c: Rename from sys-proc.c.
13823 * config/posix/time.c: Rename from sys-proc.c.
13824
13825 * config/linux/mutex.c: New file.
13826 * config/linux/mutex.h: New file.
13827 * config/linux/sem.c: New file.
13828 * config/linux/sem.h: New file.
13829 * config/linux/i486/futex.h: New file.
13830 * config/linux/x86_64/futex.h: New file.
13831
138322005-05-04 Richard Henderson <rth@redhat.com>
13833
13834 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
13835 * libgomp.h: Declare them.
13836 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
13837 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
13838
138392005-05-04 Richard Henderson <rth@redhat.com>
13840
13841 * libgomp-1 code drop
13842
138432005-05-04 Richard Henderson <rth@redhat.com>
13844
13845 * iter.c (gomp_iter_static_next): Return tri-state on 0.
13846 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
13847 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
13848 (gomp_iter_static_next): Update.
13849 (gomp_ordered_static_next): Update.
13850 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
13851 (gomp_loop_ordered_static_start): Likewise. Exit early for a
13852 totally empty range.
13853 (gomp_loop_ordered_static_next): Refine test for calling
13854 gomp_ordered_static_next.
13855 * testsuite/ordered-1.c: Add case for more threads than iterations.
13856
13857 * iter.c (gomp_iter_runtime_next_locked): Remove.
13858 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
a1daed2d 13859 gomp_loop_guided_start, gomp_loop_ordered_static_start,
953ff289
DN
13860 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
13861 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
13862 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
13863 gomp_loop_ordered_guided_next): Downcase name, make static, add
13864 an external alias with the old name.
13865 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
13866 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
13867 switch and call one of the above static functions.
13868 * libgomp.h: Update.
13869
13870 * work.c (gomp_work_share_start): Lock the mutex for !first too.
13871 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
13872 GOMP_loop_guided_start, GOMP_loop_runtime_start,
13873 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
13874 GOMP_loop_ordered_guided_start): Update to match.
13875 * sections.c (GOMP_sections_start): Likewise.
13876 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
13877
13878 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
13879 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
13880 Use bounds check instead of modulus.
13881 (gomp_ordered_sync): Split out of GOMP_ordered_start.
13882 (gomp_ordered_last): Don't sync with ordered_owner here.
13883 (gomp_ordered_next): Likewise.
13884 (gomp_ordered_static_loop_next): Likewise.
13885 * loop.c, libgomp.h: Update to match.
13886
13887 * libgomp.h (GOMP_barrier): Declare.
13888
13889 * testsuite/barrier-1.c: New file.
13890 * testsuite/critical-1.c: New file.
13891 * testsuite/ordered-2.c: New file.
13892 * testsuite/ordered-1.c: New file.
13893 * testsuite/sections-1.c: New file.
13894 * testsuite/single-1.c: New file.
13895 * testsuite/Makefile (TESTS): Add them.
13896
138972005-05-04 Richard Henderson <rth@redhat.com>
13898
13899 * libgomp.h (struct gomp_work_share): Add ordered_owner.
13900 * loop.c (GOMP_loop_static_start): If not the startup thread,
13901 acquire the mutex to wait for initialization complete.
13902 (GOMP_loop_ordered_static_start): Likewise.
13903 (GOMP_loop_ordered_runtime_start): Likewise.
13904 (GOMP_loop_ordered_static_first): Remove.
13905 (GOMP_loop_ordered_dynamic_first): Remove.
13906 (GOMP_loop_ordered_guided_first): Remove.
13907 (GOMP_loop_ordered_runtime_first): Remove.
13908 * ordered.c (gomp_ordered_loop_first): Post to own release when
13909 we're the first thread.
13910 (gomp_ordered_loop_last): Wait on release if not owner.
13911 (gomp_ordered_loop_next): Likewise.
13912 (gomp_ordered_static_loop_init): New.
13913 (gomp_ordered_static_loop_next): Use ordered_owner.
13914 (GOMP_ordered_start): Likewise.
13915 * work.c (gomp_new_work_share): Initialize ordered_owner.
13916
139172005-05-03 Richard Henderson <rth@redhat.com>
13918
13919 * Makefile (OPT): New.
13920 (CFLAGS): Use it.
13921
13922 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
13923 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
13924 * libgomp.h, libgomp.map, NOTES: Update to match.
13925
13926 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
13927 Add initialized and thr members.
13928 (gomp_thread_start): Pause when initially spawned to wait for
13929 the whole team to be created.
13930 (gomp_team_start): Release team members at the end.
13931
13932 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
13933 (f_foo_1): Use GOMP_loop_end.
13934 (f_foo_2): Use GOMP_loop_end_nowait.
13935
13936 * testsuite/loop-2.c: New file.
13937 * testsuite/Makefile (TESTS): Add it.
13938
139392005-05-03 Richard Henderson <rth@redhat.com>
13940
13941 * iter.c (gomp_iter_static_next): Fix overflow check typo.
13942 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
13943 * team.c (new_team): Initialize oldest_live_gen to 1 if no
13944 initial work_share.
13945
13946 * testsuite/Makefile: New file.
13947 * testsuite/loop-1.c: New file.
13948
139492005-05-03 Richard Henderson <rth@redhat.com>
13950
13951 Initial implementation and checkin.
21fa2a29 13952\f
8d9254fc 13953Copyright (C) 2005-2020 Free Software Foundation, Inc.
21fa2a29
JJ
13954
13955Copying and distribution of this file, with or without modification,
13956are permitted in any medium without royalty provided the copyright
13957notice and this notice are preserved.