]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/ChangeLog
Update ChangeLog and version files for release
[thirdparty/gcc.git] / libgomp / ChangeLog
1 2023-05-29 Release Manager
2
3 * GCC 11.4.0 released.
4
5 2023-05-02 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
12 2023-05-02 Jakub Jelinek <jakub@redhat.com>
13
14 Backported from master:
15 2023-01-19 Jakub Jelinek <jakub@redhat.com>
16
17 PR middle-end/108459
18 * testsuite/libgomp.c/pr108459.c: New test.
19
20 2023-05-02 Jakub Jelinek <jakub@redhat.com>
21
22 Backported from master:
23 2022-12-21 Jakub Jelinek <jakub@redhat.com>
24
25 PR c++/108180
26 * testsuite/libgomp.c++/pr108180.C: New test.
27
28 2023-03-09 Tobias Burnus <tobias@codesourcery.com>
29
30 Backported from master:
31 2023-03-01 Tobias Burnus <tobias@codesourcery.com>
32
33 PR middle-end/108546
34 * testsuite/libgomp.fortran/is_device_ptr-3.f90: New test.
35 * testsuite/libgomp.fortran/use_device_ptr-optional-4.f90: New test.
36
37 2022-11-04 Jakub Jelinek <jakub@redhat.com>
38
39 Backported from master:
40 2022-10-12 Jakub Jelinek <jakub@redhat.com>
41
42 * task.c (gomp_create_artificial_team): Fix up handling of invocations
43 from within explicit task.
44 * target.c (GOMP_target_ext): Likewise.
45 * testsuite/libgomp.c/task-7.c: New test.
46 * testsuite/libgomp.c/task-8.c: New test.
47 * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
48 * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
49
50 2022-11-04 Jakub Jelinek <jakub@redhat.com>
51
52 Backported from master:
53 2022-09-24 Jakub Jelinek <jakub@redhat.com>
54
55 PR c/106981
56 * testsuite/libgomp.c-c++-common/pr106981.c: New test.
57
58 2022-11-04 Jakub Jelinek <jakub@redhat.com>
59
60 Backported from master:
61 2022-06-21 Jakub Jelinek <jakub@redhat.com>
62 Paul Iannetta <piannetta@kalrayinc.com>
63
64 PR libgomp/106045
65 * testsuite/libgomp.c/target-31.c: Add private (i) clause.
66
67 2022-04-21 Release Manager
68
69 * GCC 11.3.0 released.
70
71 2022-02-19 Jakub Jelinek <jakub@redhat.com>
72
73 Backported from master:
74 2022-02-08 Jakub Jelinek <jakub@redhat.com>
75
76 PR libgomp/104385
77 * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
78 clear task->parent.
79 * testsuite/libgomp.c/pr104385.c: New test.
80
81 2021-11-29 Jakub Jelinek <jakub@redhat.com>
82
83 Backported from master:
84 2021-11-24 Jakub Jelinek <jakub@redhat.com>
85
86 PR middle-end/103384
87 * testsuite/libgomp.c/declare-variant-2.c: New test.
88
89 2021-10-18 Jakub Jelinek <jakub@redhat.com>
90
91 Backported from master:
92 2021-10-15 Jakub Jelinek <jakub@redhat.com>
93
94 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
95 after creating count places clean up and return immediately.
96 * testsuite/libgomp.c/places-6.c: New test.
97 * testsuite/libgomp.c/places-7.c: New test.
98 * testsuite/libgomp.c/places-8.c: New test.
99
100 2021-09-28 Tobias Burnus <tobias@codesourcery.com>
101
102 Backported from master:
103 2021-09-28 Tobias Burnus <tobias@codesourcery.com>
104
105 PR libgomp/96661
106 * configure.ac: Only check for int-type = 2*size_t support when
107 building with Fortran support.
108 * configure: Regenerate.
109
110 2021-07-28 Release Manager
111
112 * GCC 11.2.0 released.
113
114 2021-07-18 Jakub Jelinek <jakub@redhat.com>
115
116 Backported from master:
117 2021-07-01 Jakub Jelinek <jakub@redhat.com>
118
119 PR middle-end/94366
120 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
121
122 2021-07-18 Tobias Burnus <tobias@codesourcery.com>
123
124 Backported from master:
125 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
126
127 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
128 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
129 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
130 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
131
132 2021-07-18 Jakub Jelinek <jakub@redhat.com>
133
134 Backported from master:
135 2021-07-13 Jakub Jelinek <jakub@redhat.com>
136 Florian Weimer <fweimer@redhat.com>
137
138 * config/linux/sem.h: Don't include limits.h.
139 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
140 * config/linux/affinity.c: Include limits.h.
141
142 2021-06-23 Jakub Jelinek <jakub@redhat.com>
143
144 Backported from master:
145 2021-06-23 Jakub Jelinek <jakub@redhat.com>
146
147 PR middle-end/101167
148 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
149
150 2021-06-16 Richard Biener <rguenther@suse.de>
151
152 PR tree-optimization/100981
153 * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
154
155 2021-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
156
157 Backported from master:
158 2021-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
159
160 * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
161 if new tasks generated.
162 * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
163
164 2021-05-13 Tobias Burnus <tobias@codesourcery.com>
165
166 Backported from master:
167 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
168
169 * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
170 * testsuite/libgomp.fortran/task-detach-12.f90: New test.
171
172 2021-05-12 Jakub Jelinek <jakub@redhat.com>
173
174 Backported from master:
175 2021-05-11 Jakub Jelinek <jakub@redhat.com>
176
177 PR middle-end/100471
178 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
179 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
180 reduction pointer.
181 * testsuite/libgomp.c/task-reduction-4.c: New test.
182
183 2021-05-06 Roman Zhuykov <zhroma@ispras.ru>
184
185 Backported from master:
186 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
187
188 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
189
190 2021-04-29 Tom de Vries <tdevries@suse.de>
191
192 Backported from master:
193 2021-04-29 Tom de Vries <tdevries@suse.de>
194
195 PR target/100232
196 * testsuite/libgomp.c/target-43.c: New file.
197
198 2021-04-27 Tobias Burnus <tobias@codesourcery.com>
199
200 Backported from master:
201 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
202
203 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
204 New, based on check_effective_target_offload_target_nvptx.
205 (check_effective_target_offload_target_nvptx): Call it.
206 (check_effective_target_offload_target_amdgcn): New.
207 * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
208 Require target offload_target_nvptx || offload_target_amdgcn.
209 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
210 * testsuite/libgomp.c/pr86416-1.c: Likewise.
211 * testsuite/libgomp.c/pr86416-2.c: Likewise.
212
213 2021-04-27 Release Manager
214
215 * GCC 11.1.0 released.
216
217 2021-04-22 Richard Biener <rguenther@suse.de>
218
219 Backported from master:
220 2021-04-22 Richard Biener <rguenther@suse.de>
221
222 * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
223 only on nvptx-none.
224
225 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
226
227 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
228 '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
229 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
230 Likewise.
231 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
232 Likewise.
233 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
234
235 2021-04-15 Thomas Schwinge <thomas@codesourcery.com>
236
237 PR target/99555
238 * testsuite/lib/libgomp.exp
239 (check_effective_target_offload_device_nvptx): New.
240 * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
241 resolved, make sure that we exit quickly, with error status,
242 XFAILed.
243 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
244 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
245
246 2021-04-14 Jakub Jelinek <jakub@redhat.com>
247
248 PR testsuite/100071
249 * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
250 cp = omp_alloc with cp, p arguments instead of cq, q and call
251 c_f_pointer after last cq = omp_alloc with cq, q.
252
253 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
254
255 PR middle-end/98088
256 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
257 for loop with GT/GE condition.
258 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
259
260 2021-04-09 Thomas Schwinge <thomas@codesourcery.com>
261
262 PR middle-end/84991
263 PR middle-end/84992
264 PR middle-end/90779
265 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
266
267 2021-04-09 Jakub Jelinek <jakub@redhat.com>
268
269 PR libgomp/99984
270 * team.c (gomp_thread_start): Call pthread_setspecific for
271 !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
272 has been initialized to avoid false positive warning.
273
274 2021-03-29 Tobias Burnus <tobias@codesourcery.com>
275
276 PR target/99555
277 * testsuite/lib/on_device_arch.c: Move to ...
278 * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
279 * testsuite/libgomp.fortran/on_device_arch.c: New file;
280 #include on_device_arch.h.
281 * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
282 on_device_arch.h instead of using dg-additional-source.
283 * testsuite/libgomp.c/pr99555-1.c: Likewise.
284 * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
285 on_device_arch.c without relative paths.
286
287 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
288
289 * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
290 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
291 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
292 * config.h.in: Regenerate.
293 * configure: Likewise.
294
295 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
296
297 PR target/99555
298 * testsuite/lib/on_device_arch.c: New file.
299 * testsuite/libgomp.c/pr99555-1.c: Likewise.
300 * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
301 skip for nvptx offloading, with error status.
302 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
303
304 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
305
306 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
307 OpenACC 'serial' construct diagnostic for nvptx offloading.
308
309 2021-03-15 Tobias Burnus <tobias@codesourcery.com>
310
311 PR c++/99509
312 * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
313
314 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
315
316 PR fortran/98858
317 * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
318
319 2021-03-04 Jakub Jelinek <jakub@redhat.com>
320
321 * configure.ac: Add AC_CHECK_SIZEOF([void *]).
322 * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
323 checking of -m32 or -mx32 options on the command line.
324 * config.h.in: Regenerated.
325 * configure: Regenerated.
326
327 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
328
329 * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
330 support from the target.
331
332 2021-02-25 Kwok Cheung Yeung <kcy@codesourcery.com>
333 Jakub Jelinek <jakub@redhat.com>
334
335 PR libgomp/98738
336 * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
337 (struct gomp_task): Replace detach and completion_sem fields with
338 union containing completion_sem and detach_team. Add deferred_p
339 field.
340 (struct gomp_team): Remove task_detach_queue.
341 * task.c: Include assert.h.
342 (gomp_init_task): Initialize deferred_p and completion_sem fields.
343 Rearrange initialization order of fields.
344 (task_fulfilled_p): Delete.
345 (GOMP_task): Use address of task as the event handle. Remove
346 initialization of detach field. Initialize deferred_p field.
347 Use automatic local for completion_sem. Initialize detach_team field
348 for deferred tasks.
349 (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
350 Set kind of suspended detach task to GOMP_TASK_DETACHED and
351 decrement task_running_count. Move finish_cancelled block out of
352 else branch. Relocate call to gomp_team_barrier_done.
353 (GOMP_taskwait): Handle tasks with completion events that have not
354 been fulfilled.
355 (GOMP_taskgroup_end): Likewise.
356 (omp_fulfill_event): Use address of task as event handle. Post to
357 completion_sem for undeferred tasks. Clear detach_team if task
358 has not finished. For finished tasks, handle post-execution tasks,
359 call gomp_team_barrier_wake if necessary, and free task.
360 * team.c (gomp_new_team): Remove initialization of task_detach_queue.
361 (free_team): Remove free of task_detach_queue.
362 * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
363 * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
364 * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
365 * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
366 * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
367 Change data-sharing of detach events on enclosing parallel to private.
368 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. Remove
369 taskwait directive.
370 * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
371 * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
372 * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
373 * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
374 * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
375 * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
376 * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
377 * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
378 * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
379 * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
380 Change data-sharing of detach events on enclosing parallel to private.
381 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise. Remove
382 taskwait directive.
383 * testsuite/libgomp.fortran/task-detach-7.f90: New.
384 * testsuite/libgomp.fortran/task-detach-8.f90: New.
385 * testsuite/libgomp.fortran/task-detach-9.f90: New.
386 * testsuite/libgomp.fortran/task-detach-10.f90: New.
387 * testsuite/libgomp.fortran/task-detach-11.f90: New.
388
389 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
390
391 PR fortran/99171
392 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
393
394 2021-02-17 Julian Brown <julian@codesourcery.com>
395
396 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
397 expected errors.
398
399 2021-02-17 Julian Brown <julian@codesourcery.com>
400
401 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
402 * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
403
404 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
405
406 * config/linux/x86/futex.h (__futex_wait):
407 Revert output type back to long.
408 (__futex_wake): Ditto.
409 (futex_wait): Update for revert.
410 (futex_wake): Ditto.
411
412 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
413
414 * config/linux/x86/futex.h (__futex_wait): New static inline
415 wrapper function. Correct output type to int and
416 timeout type to void *.
417 (__futex_wake): New static inline wrapper function.
418 Correct output type to int.
419 (futex_wait): Use __futex_wait.
420 (futex_wake): Use __futex_wake.
421
422 2021-02-10 Julian Brown <julian@codesourcery.com>
423
424 PR fortran/98979
425 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
426 errors.
427
428 2021-02-04 Julian Brown <julian@codesourcery.com>
429
430 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
431
432 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
433
434 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
435 EF_AMDGPU_MACH_AMDGCN_GFX908.
436 (gcn_gfx908_s): New constant string.
437 (isa_hsa_name): Add gfx908.
438 (isa_code): Add gfx908.
439
440 2021-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
441
442 * libgomp.texi (omp_fulfill_event): New entry.
443
444 2021-01-20 Jakub Jelinek <jakub@redhat.com>
445
446 * task.c (GOMP_task): Rename priority argument to priority_arg,
447 add priority automatic variable and modify that variable. Instead of
448 clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
449 check flags for that bit.
450
451 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
452
453 PR fortran/98476
454 * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
455
456 2021-01-18 Andreas Schwab <schwab@suse.de>
457
458 * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
459
460 2021-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
461
462 * config/rtems/sem.h (gomp_sem_getcount): New function.
463
464 2021-01-18 Jakub Jelinek <jakub@redhat.com>
465
466 * config/linux/sem.h (gomp_sem_getcount): New function.
467 * config/posix/sem.h (gomp_sem_getcount): New function.
468 * config/posix/sem.c (gomp_sem_getcount): New function.
469 * config/accel/sem.h (gomp_sem_getcount): New function.
470 * task.c (task_fulfilled_p): Use gomp_sem_getcount.
471 (omp_fulfill_event): Likewise.
472
473 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
474
475 * fortran.c (omp_fulfill_event_): New.
476 * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
477 (struct gomp_team): Add task_detach_queue and task_detach_count
478 fields.
479 * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
480 * libgomp_g.h (GOMP_task): Add extra argument.
481 * omp.h.in (enum omp_event_handle_t): New.
482 (omp_fulfill_event): New.
483 * omp_lib.f90.in (omp_event_handle_kind): New.
484 (omp_fulfill_event): New.
485 * omp_lib.h.in (omp_event_handle_kind): New.
486 (omp_fulfill_event): Declare.
487 * priority_queue.c (priority_tree_find): New.
488 (priority_list_find): New.
489 (priority_queue_find): New.
490 * priority_queue.h (priority_queue_predicate): New.
491 (priority_queue_find): New.
492 * task.c (gomp_init_task): Initialize detach field.
493 (task_fulfilled_p): New.
494 (GOMP_task): Add detach argument. Ignore detach argument if
495 GOMP_TASK_FLAG_DETACH not set in flags. Initialize completion_sem
496 field. Copy address of completion_sem into detach argument and
497 into the start of the data record. Wait for detach event if task
498 not deferred.
499 (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
500 Remove completed tasks and requeue dependent tasks.
501 (omp_fulfill_event): New.
502 * team.c (gomp_new_team): Initialize task_detach_queue and
503 task_detach_count fields.
504 (free_team): Free task_detach_queue field.
505 * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
506 * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
507 * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
508 * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
509 * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
510 * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
511 * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
512 * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
513 * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
514 * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
515 * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
516 * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
517
518 2021-01-15 Jakub Jelinek <jakub@redhat.com>
519
520 PR target/70454
521 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
522 be added through preprocessor check on
523 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
524
525 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
526
527 PR libgomp/65099
528 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
529 configurations.
530 * configure: Regenerate.
531 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
532 check.
533
534 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
535
536 * configure: Re-generate.
537
538 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
539
540 * configure: Re-generate.
541
542 2021-01-05 Julian Brown <julian@codesourcery.com>
543
544 * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
545 (struct ptx_device): Add omp_stacks struct.
546 (nvptx_open_device): Initialise cached-stacks housekeeping info.
547 (nvptx_close_device): Free cached stacks block and mutex.
548 (nvptx_stacks_free): New function.
549 (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
550 (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
551 (nvptx_stacks_alloc): Rename to...
552 (nvptx_stacks_acquire): This. Cache stacks block between runs if same
553 size or smaller is required.
554 (nvptx_stacks_free): Remove.
555 (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
556 during kernel execution.
557
558 2021-01-01 Jakub Jelinek <jakub@redhat.com>
559
560 * libgomp.texi: Bump @copying's copyright year.
561
562 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
563
564 * libgomp.texi (Top): Avoid bad "up" link.
565
566 2020-12-18 Jakub Jelinek <jakub@redhat.com>
567
568 * testsuite/libgomp.c/task-6.c: New test.
569
570 2020-12-09 Andrew Stubbs <ams@codesourcery.com>
571
572 * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
573 (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
574
575 2020-12-08 Tobias Burnus <tobias@codesourcery.com>
576
577 * testsuite/libgomp.fortran/scan-1.f90: New test.
578
579 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
580
581 PR target/97865
582 * configure: Regenerate.
583
584 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
585
586 * configure: Regenerate.
587
588 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
589
590 * testsuite/libgomp.oacc-c++/cache-1.C: New.
591 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
592
593 2020-11-25 Andrew Stubbs <ams@codesourcery.com>
594
595 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
596 expected results.
597
598 2020-11-24 Andrew Stubbs <ams@codesourcery.com>
599
600 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
601 (reserved): Delete unused define.
602
603 2020-11-24 Thomas Schwinge <thomas@codesourcery.com>
604
605 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
606 Tcl 8.5-specific behavior.
607 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
608
609 2020-11-18 Kwok Cheung Yeung <kcy@codesourcery.com>
610
611 * env.c (gomp_global_icv): Remove nest_var field. Add
612 max_active_levels_var field.
613 (gomp_max_active_levels_var): Remove.
614 (parse_boolean): Return true on success.
615 (handle_omp_display_env): Express OMP_NESTED in terms of
616 max_active_levels_var. Change format specifier for
617 max_active_levels_var.
618 (initialize_env): Set max_active_levels_var from
619 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
620 OMP_PROC_BIND.
621 * icv.c (omp_set_nested): Express in terms of
622 max_active_levels_var.
623 (omp_get_nested): Likewise.
624 (omp_set_max_active_levels): Use max_active_levels_var field instead
625 of gomp_max_active_levels_var.
626 (omp_get_max_active_levels): Likewise.
627 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
628 max_active_levels_var field.
629 (gomp_supported_active_levels): Set to UCHAR_MAX.
630 (gomp_max_active_levels_var): Delete.
631 * libgomp.texi (omp_get_nested): Update documentation.
632 (omp_set_nested): Likewise.
633 (OMP_MAX_ACTIVE_LEVELS): Likewise.
634 (OMP_NESTED): Likewise.
635 (OMP_NUM_THREADS): Likewise.
636 (OMP_PROC_BIND): Likewise.
637 * parallel.c (gomp_resolve_num_threads): Replace reference
638 to nest_var with max_active_levels_var. Use max_active_levels_var
639 field instead of gomp_max_active_levels_var.
640
641 2020-11-18 Tobias Burnus <tobias@codesourcery.com>
642
643 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
644 nvptx_usleep; use also for device={arch(gcn)}.
645
646 2020-11-14 Jakub Jelinek <jakub@redhat.com>
647
648 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
649 (foo): Add tests for non-VLA private and firstprivate clauses on
650 omp task.
651 (bar): Likewise. Remove taking of address from private/firstprivate
652 variables.
653 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
654 (foo): Add p, q, px and s arguments. Add tests for array reductions
655 and for non-VLA private and firstprivate clauses on omp task.
656 (bar): Removed.
657 (main): Adjust foo caller. Don't call bar.
658
659 2020-11-13 Gergö Barany <gergo@codesourcery.com>
660 Thomas Schwinge <thomas@codesourcery.com>
661
662 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
663 New.
664 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
665 Likewise.
666 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
667 Likewise.
668 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
669 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
670
671 2020-11-13 Gergö Barany <gergo@codesourcery.com>
672 Thomas Schwinge <thomas@codesourcery.com>
673
674 PR fortran/94358
675 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
676
677 2020-11-13 Jakub Jelinek <jakub@redhat.com>
678
679 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
680 for array reductions.
681 (main): Adjust foo callers.
682
683 2020-11-12 Jakub Jelinek <jakub@redhat.com>
684
685 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
686 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
687 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
688 * allocator.c (omp_aligned_alloc): New for now static function,
689 add alignment argument and handle it.
690 (omp_alloc): Reimplement using omp_aligned_alloc.
691 (GOMP_alloc, GOMP_free): New functions.
692 (omp_free): Add ialias.
693 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
694 * testsuite/libgomp.c++/allocate-1.C: New test.
695
696 2020-11-12 Thomas Schwinge <thomas@codesourcery.com>
697
698 PR fortran/97782
699 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
700
701 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
702
703 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
704 usable.
705 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
706 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
707 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
708 (goacc_enter_data_internal): Likewise.
709 * target.c (gomp_map_vars_internal):
710 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
711 of gomp_attach_pointer for OpenMP cases.
712 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
713 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
714 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
715
716 2020-11-05 Ulrich Drepper <drepper@redhat.com>
717 Kwok Cheung Yeung <kcy@codesourcery.com>
718
719 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
720 * Makefile.in: Regenerate.
721 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
722 pragmas to ignore -Wdeprecated-declarations warnings.
723 * icv.c: Likewise.
724 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
725 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
726 and omp_get_nested with __GOMP_DEPRECATED_5_0.
727 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
728 deprecated.
729 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
730 to test options.
731 * testsuite/libgomp.c/affinity-1.c: Likewise.
732 * testsuite/libgomp.c/affinity-2.c: Likewise.
733 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
734 * testsuite/libgomp.c/lib-1.c: Likewise.
735 * testsuite/libgomp.c/nested-1.c: Likewise.
736 * testsuite/libgomp.c/nested-2.c: Likewise.
737 * testsuite/libgomp.c/nested-3.c: Likewise.
738 * testsuite/libgomp.c/pr32362-1.c: Likewise.
739 * testsuite/libgomp.c/pr32362-2.c: Likewise.
740 * testsuite/libgomp.c/pr32362-3.c: Likewise.
741 * testsuite/libgomp.c/pr35549.c: Likewise.
742 * testsuite/libgomp.c/pr42942.c: Likewise.
743 * testsuite/libgomp.c/pr61200.c: Likewise.
744 * testsuite/libgomp.c/sort-1.c: Likewise.
745 * testsuite/libgomp.c/target-5.c: Likewise.
746 * testsuite/libgomp.c/target-6.c: Likewise.
747 * testsuite/libgomp.c/teams-1.c: Likewise.
748 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
749 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
750 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
751 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
752 * testsuite/libgomp.fortran/lib1.f90: Likewise.
753 * testsuite/libgomp.fortran/lib2.f: Likewise.
754 * testsuite/libgomp.fortran/nested1.f90: Likewise.
755 * testsuite/libgomp.fortran/teams1.f90: Likewise.
756
757 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
758
759 PR target/85486
760 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
761 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
762 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
763
764 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
765
766 PR testsuite/80219
767 PR testsuite/85303
768 * testsuite/lib/libgomp.exp (libgomp_init): Set
769 'gcc_warning_prefix', 'gcc_error_prefix'.
770
771 2020-10-30 Jakub Jelinek <jakub@redhat.com>
772
773 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
774 even in field_tgt_clear initializer.
775
776 2020-10-28 Jakub Jelinek <jakub@redhat.com>
777
778 * testsuite/libgomp.c/target-42.c: New test.
779
780 2020-10-28 Jakub Jelinek <jakub@redhat.com>
781 Tom de Vries <tdevries@suse.de>
782
783 PR testsuite/81690
784 * testsuite/libgomp.c/usleep.h: New file.
785 * testsuite/libgomp.c/target-32.c: Include usleep.h.
786 (main): Use tgt_usleep instead of usleep.
787 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
788 (main): Use tgt_usleep instead of usleep.
789
790 2020-10-28 Jakub Jelinek <jakub@redhat.com>
791
792 PR lto/96680
793 * testsuite/libgomp.c/declare-variant-1.c: New test.
794
795 2020-10-22 Jakub Jelinek <jakub@redhat.com>
796
797 * testsuite/libgomp.c/target-41.c: New test.
798
799 2020-10-22 Jakub Jelinek <jakub@redhat.com>
800
801 * icv.c (omp_get_initial_device): Remove including corresponding
802 ialias.
803 * icv-device.c (omp_get_initial_device): New function. Return
804 gomp_get_num_devices (). Add ialias.
805 * target.c (resolve_device): Don't fail with
806 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
807 gomp_get_num_devices ().
808 (omp_target_alloc, omp_target_free, omp_target_is_present,
809 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
810 omp_target_disassociate_ptr, omp_pause_resource): Use
811 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
812 first use in the functions, in uses dominated by the
813 gomp_get_num_devices call use num_devices_openmp instead.
814 * libgomp.texi (omp_get_initial_device): Document.
815 * config/gcn/icv-device.c (omp_get_initial_device): New function.
816 Add ialias.
817 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
818 * testsuite/libgomp.c/target-40.c: New test.
819
820 2020-10-21 Jakub Jelinek <jakub@redhat.com>
821
822 * env.c (parse_target_offload): Change new_offload var type to int,
823 preinitialize to -1, remove found var and test new_offload != -1
824 instead of found.
825
826 2020-10-20 Jakub Jelinek <jakub@redhat.com>
827
828 * target.c (gomp_target_init): Inside of the function, use automatic
829 variables corresponding to num_devices, num_devices_openmp and devices
830 global variables and update the globals only at the end of the
831 function.
832
833 2020-10-20 Kwok Cheung Yeung <kcy@codesourcery.com>
834
835 * env.c (gomp_target_offload_var): New.
836 (parse_target_offload): New.
837 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
838 (initialize_env): Parse OMP_TARGET_OFFLOAD.
839 * libgomp.h (gomp_target_offload_t): New.
840 (gomp_target_offload_var): New.
841 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
842 * target.c (resolve_device): Generate error if device not found and
843 offloading is mandatory.
844 (gomp_target_fallback): Generate error if offloading is mandatory.
845 (GOMP_target): Add argument in call to gomp_target_fallback.
846 (GOMP_target_ext): Likewise.
847 (gomp_target_data_fallback): Generate error if offloading is mandatory.
848 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
849 (GOMP_target_data_ext): Likewise.
850 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
851 (gomp_target_init): Return early if offloading is disabled.
852
853 2020-10-15 Kwok Cheung Yeung <kcy@codesourcery.com>
854
855 * libgomp.texi (omp_get_max_active_levels): Modify description.
856 (omp_get_supported_active_levels): Make descriptions consistent.
857
858 2020-10-14 Jakub Jelinek <jakub@redhat.com>
859
860 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
861
862 2020-10-13 Kwok Cheung Yeung <kcy@codesourcery.com>
863
864 * env.c (gomp_max_active_levels_var): Initialize to
865 gomp_supported_active_levels.
866 (initialize_env): Limit gomp_max_active_levels_var to be at most
867 equal to gomp_supported_active_levels.
868 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
869 (omp_get_supported_active_levels_): New.
870 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
871 to at most equal to gomp_supported_active_levels.
872 (omp_get_supported_active_levels): New.
873 * libgomp.h (gomp_supported_active_levels): New.
874 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
875 omp_get_supported_active_levels_.
876 * libgomp.texi (omp_get_supported_active_levels): New.
877 (omp_set_max_active_levels): Update. Add reference to
878 omp_get_supported_active_levels.
879 * omp.h.in (omp_get_supported_active_levels): New.
880 * omp_lib.f90.in (omp_get_supported_active_levels): New.
881 * omp_lib.h.in (omp_get_supported_active_levels): New.
882 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
883 against omp_get_supported_active_levels.
884 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
885
886 2020-10-11 Clement Chigot <clement.chigot@atos.net>
887
888 * config/t-aix: Delete and recreate libgomp before creating
889 FAT library.
890
891 2020-10-08 Tom de Vries <tdevries@suse.de>
892
893 PR libgomp/81802
894 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
895 dimensions.
896
897 2020-10-06 Tom de Vries <tdevries@suse.de>
898
899 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
900
901 2020-10-06 Tom de Vries <tdevries@suse.de>
902
903 PR middle-end/90861
904 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
905
906 2020-10-05 Tom de Vries <tdevries@suse.de>
907
908 PR fortran/95654
909 * testsuite/libgomp.fortran/pr95654.f90: New test.
910
911 2020-10-02 Tobias Burnus <tobias@codesourcery.com>
912
913 * Makefile.in: Regenerate with automake 1.15.1.
914 * aclocal.m4: Likewise.
915 * configure: Likewise.
916 * testsuite/Makefile.in: Likewise.
917
918 2020-09-30 Andrew Stubbs <ams@codesourcery.com>
919
920 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
921 and amdgcn targets.
922
923 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
924
925 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
926
927 2020-09-29 Andrew Stubbs <ams@codesourcery.com>
928
929 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
930 total number of threads is one.
931 (gomp_team_barrier_wake): Likewise.
932 (gomp_team_barrier_wait_end): Likewise.
933 (gomp_team_barrier_wait_cancel_end): Likewise.
934 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
935 (gomp_team_barrier_wake): Likewise.
936 (gomp_team_barrier_wait_end): Likewise.
937 (gomp_team_barrier_wait_cancel_end): Likewise.
938 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
939
940 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
941
942 PR middle-end/96390
943 * testsuite/libgomp.c++/pr96390.C: New test.
944 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
945
946 2020-09-27 Clement Chigot <clement.chigot@atos.net>
947
948 * config/t-aix: Use $(AR) without -X32_64.
949
950 2020-09-25 Jakub Jelinek <jakub@redhat.com>
951
952 * testsuite/libgomp.c/loop-25.c: New test.
953
954 2020-09-22 Tobias Burnus <tobias@codesourcery.com>
955
956 PR fortran/95654
957 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
958
959 2020-09-22 Tom de Vries <tdevries@suse.de>
960
961 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
962 fails.
963
964 2020-09-16 Nathan Sidwell <nathan@acm.org>
965
966 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
967
968 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
969
970 PR fortran/96668
971 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
972
973 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
974
975 PR fortran/96668
976 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
977 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
978 (gomp_map_vars_existing): Update call to it.
979 (gomp_map_fields_existing): Likewise
980 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
981 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
982 remapped.
983 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
984 GOMP_MAP_POINTER.
985 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
986 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
987
988 2020-09-14 Tom de Vries <tdevries@suse.de>
989
990 * config/nvptx/atomic.c: New file. Add
991 __sync_val_compare_and_swap_16.
992 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
993 target offload_target_nvptx.
994
995 2020-09-08 Julian Brown <julian@codesourcery.com>
996
997 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
998 iteration-ordering assumptions.
999
1000 2020-09-08 Julian Brown <julian@codesourcery.com>
1001
1002 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
1003 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
1004
1005 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
1006
1007 * plugin/plugin-nvptx.c (nvptx_free):
1008 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
1009 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
1010 comments.
1011
1012 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
1013
1014 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
1015
1016 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
1017
1018 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
1019
1020 2020-08-13 Jakub Jelinek <jakub@redhat.com>
1021
1022 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
1023 * testsuite/libgomp.c/loop-23.c (main): Likewise.
1024 * testsuite/libgomp.c/loop-24.c: New test.
1025
1026 2020-08-08 Jakub Jelinek <jakub@redhat.com>
1027 Tobias Burnus <tobias@codesourcery.com>
1028
1029 PR fortran/93553
1030 * testsuite/libgomp.fortran/pr93553.f90: New test.
1031
1032 2020-08-05 Jakub Jelinek <jakub@redhat.com>
1033
1034 * testsuite/libgomp.c/loop-22.c: New test.
1035 * testsuite/libgomp.c/loop-23.c: New test.
1036
1037 2020-08-05 Jakub Jelinek <jakub@redhat.com>
1038
1039 PR middle-end/96459
1040 * testsuite/libgomp.c/teams-3.c: New test.
1041 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
1042 if not defined yet.
1043 (N(test)): Use it before all N(f*) calls.
1044 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
1045 (main): Don't call all test_* functions from within
1046 #pragma omp teams reduction(|:err), call them directly.
1047
1048 2020-08-04 Tom de Vries <tdevries@suse.de>
1049
1050 PR target/96428
1051 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
1052 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
1053
1054 2020-08-03 Julian Brown <julian@codesourcery.com>
1055 Thomas Schwinge <thomas@codesourcery.com>
1056
1057 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
1058 shared-memory devices. Extend with further checking.
1059
1060 2020-08-03 Martin Jambor <mjambor@suse.cz>
1061
1062 * plugin/Makefrag.am: Remove configuration of HSA plugin.
1063 * aclocal.m4: Regenerated.
1064 * Makefile.in: Regenerated.
1065 * config.h.in: Regenerated.
1066 * configure: Regenerated.
1067 * plugin/configfrag.ac: Likewise.
1068 * plugin/hsa_ext_finalize.h: Removed.
1069 * plugin/plugin-hsa.c: Likewise.
1070 * testsuite/Makefile.in: Regenerated.
1071 * testsuite/lib/libgomp.exp
1072 (offload_target_to_openacc_device_type): Remove hsa case.
1073 (check_effective_target_hsa_offloading_selected_nocache): Removed
1074 (check_effective_target_hsa_offloading_selected): Likewise.
1075 (libgomp_init): Do not add -Wno-hsa to additional_flags.
1076 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
1077 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
1078 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
1079 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
1080 * testsuite/libgomp.hsa.c/c.exp: Likewise.
1081 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
1082 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
1083 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
1084 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
1085 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
1086 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
1087 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
1088 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
1089 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
1090 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
1091 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
1092 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
1093 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
1094 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
1095 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
1096 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
1097 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
1098 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
1099 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
1100
1101 2020-07-27 Julian Brown <julian@codesourcery.com>
1102 Thomas Schwinge <thomas@codesourcery.com>
1103
1104 * libgomp.h (struct target_var_desc): Rename do_detach field to
1105 is_attach.
1106 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
1107 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
1108 (goacc_enter_data_internal): Don't affect reference counts
1109 for attach mappings.
1110 (goacc_exit_data_internal): Don't affect reference counts for detach
1111 mappings.
1112 * target.c (gomp_map_vars_existing): Don't affect reference counts for
1113 attach mappings.
1114 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
1115 mark attach mappings.
1116 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
1117 reference count for attach mappings.
1118 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
1119 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
1120 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
1121 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
1122 test as shouldfail.
1123 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
1124 gracefully in no-finalize mode.
1125 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
1126
1127 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
1128
1129 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
1130 use.
1131 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1132 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1133
1134 2020-07-23 Julian Brown <julian@codesourcery.com>
1135 Thomas Schwinge <thomas@codesourcery.com>
1136
1137 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
1138 finalization for detach operation.
1139 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
1140 New test.
1141
1142 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
1143
1144 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
1145 * libgomp_f.h.in (omp_check_defines): Check whether
1146 sizeof of determined Fortran kind and C typedef match.
1147 * omp_lib.f90.in: Add omp_depened_kind.
1148 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
1149 * configure: Regenerate.
1150 * Makefile.in: Regenerate.
1151 * testsuite/Makefile.in: Regenerate.
1152
1153 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
1154
1155 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
1156 gcc/testsuite/c-c++-common/gomp/.
1157 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
1158 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
1159 from gcc/testsuite/gfortran.dg/gomp/.
1160 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
1161
1162 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
1163
1164 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
1165 * omp_lib.h.in: Likewise.
1166
1167 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
1168
1169 PR target/95620
1170 * testsuite/libgomp.c/pr95620.c: New test.
1171
1172 2020-07-16 Julian Brown <julian@codesourcery.com>
1173 Thomas Schwinge <thomas@codesourcery.com>
1174
1175 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
1176 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
1177
1178 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
1179
1180 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
1181 avoid conversion on 32bit systems from 32bit to 64bit due
1182 to -fdefault-integer-8.
1183
1184 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
1185
1186 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
1187 variables; add character(kind=4) tests; update TODO comment.
1188
1189 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
1190
1191 * allocator.c: Add ialias for omp_init_allocator and
1192 omp_destroy_allocator.
1193 * configure.ac: Set INTPTR_T_KIND.
1194 * configure: Regenerate.
1195 * Makefile.in: Regenerate.
1196 * testsuite/Makefile.in: Regenerate.
1197 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
1198 omp_set_default_allocator_, omp_get_default_allocator_): New
1199 functions and ialias_redirect.
1200 * icv.c: Add ialias for omp_set_default_allocator and
1201 omp_get_default_allocator.
1202 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
1203 omp_destroy_allocator_, omp_set_default_allocator_ and
1204 omp_get_default_allocator_.
1205 * omp_lib.f90.in: Add allocator traits parameters, declare
1206 allocator routines and add related kind parameters.
1207 * omp_lib.h.in: Likewise.
1208 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
1209 * testsuite/libgomp.fortran/alloc-1.F90: New test.
1210 * testsuite/libgomp.fortran/alloc-2.F90: New test.
1211 * testsuite/libgomp.fortran/alloc-3.F: New test.
1212 * testsuite/libgomp.fortran/alloc-4.f90: New test.
1213 * testsuite/libgomp.fortran/alloc-5.f90: New test.
1214
1215 2020-07-14 Tom de Vries <tom@codesourcery.com>
1216 Cesar Philippidis <cesar@codesourcery.com>
1217 Thomas Schwinge <thomas@codesourcery.com>
1218 Kwok Cheung Yeung <kcy@codesourcery.com>
1219
1220 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
1221 New variable.
1222 (acc_init_1): Set acc_init_thread to pthread_self (). Set
1223 acc_init_state to initializing at the start, and to initialized at the
1224 end.
1225 (self_initializing_p): New function.
1226 (acc_get_device_type): Return acc_device_none if called by thread that
1227 is currently executing acc_init_1.
1228 * libgomp.texi (acc_get_device_type): Update documentation.
1229 (Implementation Status and Implementation-Defined Behavior): Likewise.
1230 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
1231
1232 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
1233
1234 * config/t-aix: Set BITS from compiler cpp macro.
1235
1236 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
1237
1238 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
1239
1240 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
1241
1242 PR fortran/67311
1243 * testsuite/libgomp.fortran/target-map-1.f90: New test.
1244
1245 2020-07-14 Jakub Jelinek <jakub@redhat.com>
1246
1247 * testsuite/libgomp.c/loop-21.c: New test.
1248
1249 2020-07-13 Julian Brown <julian@codesourcery.com>
1250 Thomas Schwinge <thomas@codesourcery.com>
1251
1252 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
1253
1254 2020-07-10 Julian Brown <julian@codesourcery.com>
1255 Thomas Schwinge <thomas@codesourcery.com>
1256
1257 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
1258 dynamic_refcount.
1259 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
1260 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
1261 dynamic_refcount.
1262 (acc_unmap_data): Update comment.
1263 (goacc_map_var_existing, goacc_enter_datum): Adjust for
1264 dynamic_refcount semantics.
1265 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
1266 Adjust for dynamic_refcount semantics.
1267 (goacc_enter_data_internal): Implement "present" case of dynamic
1268 memory-map handling here. Update "non-present" case for
1269 dynamic_refcount semantics.
1270 (goacc_exit_data_internal): Use goacc_exit_datum_1.
1271 * target.c (gomp_map_vars_internal): Remove
1272 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
1273 handling.
1274 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
1275 (gomp_load_image_to_device): Substitute dynamic_refcount for
1276 virtual_refcount.
1277 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
1278 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
1279 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
1280 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
1281 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
1282 trace output.
1283 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
1284 trace output.
1285 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
1286 test.
1287 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
1288 Remove stale comment.
1289 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
1290 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
1291 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
1292 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
1293 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
1294 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
1295
1296 2020-07-10 Julian Brown <julian@codesourcery.com>
1297 Thomas Schwinge <thomas@codesourcery.com>
1298
1299 * oacc-mem.c (goacc_map_var_existing): New function.
1300 (goacc_enter_datum): Use above function.
1301 (goacc_exit_datum_1): New function.
1302 (goacc_exit_datum): Use above function.
1303
1304 2020-07-09 Julian Brown <julian@codesourcery.com>
1305 Thomas Schwinge <thomas@codesourcery.com>
1306
1307 PR middle-end/95270
1308 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
1309 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
1310
1311 2020-07-09 Julian Brown <julian@codesourcery.com>
1312
1313 * oacc-mem.c (find_group_last): Group data-movement clauses
1314 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
1315 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
1316
1317 2020-07-09 Jakub Jelinek <jakub@redhat.com>
1318
1319 * testsuite/libgomp.c/loop-19.c: New test.
1320 * testsuite/libgomp.c/loop-20.c: New test.
1321
1322 2020-07-09 Jakub Jelinek <jakub@redhat.com>
1323
1324 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
1325 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
1326 it. Remove __omp_alloctrait_value_max__.
1327 * allocator.c (omp_init_allocator): Handle omp_atv_default for
1328 omp_atk_alignment and omp_atk_pool_size.
1329
1330 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
1331
1332 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
1333 behavior for 'GOMP_MAP_FORCE_FROM'.
1334 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
1335
1336 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
1337
1338 * oacc-mem.c (goacc_exit_data_internal): Remove
1339 'GOMP_MAP_ALWAYS_FROM' handling.
1340
1341 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
1342
1343 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
1344 'scan-assembler' with 'scan-offload-rtl'.
1345 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
1346 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
1347 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
1348 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
1349
1350 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
1351
1352 * target.c (gomp_map_vars_existing): Assert 'kind !=
1353 GOMP_MAP_ATTACH'.
1354 (gomp_map_vars_internal): Clean up.
1355
1356 2020-06-27 Jakub Jelinek <jakub@redhat.com>
1357
1358 * testsuite/libgomp.c/loop-17.c: New test.
1359 * testsuite/libgomp.c/loop-18.c: New test.
1360
1361 2020-06-26 Marek Polacek <polacek@redhat.com>
1362
1363 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
1364
1365 2020-06-23 Alexandre Oliva <oliva@adacore.com>
1366
1367 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
1368 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
1369
1370 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
1371
1372 * Makefile.am: Use -include.
1373 * Makefile.in: Regenerate.
1374
1375 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
1376
1377 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
1378 * Makefile.in: Regenerate
1379 * configure.ac (tmake_file): Substitute.
1380 * configure: Regenerate.
1381 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
1382 * config/t-aix: New file.
1383
1384 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
1385
1386 PR lto/94848
1387 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
1388 'dg-do run'.
1389
1390 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
1391
1392 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
1393 variant for HSA_RUNTIME_LIB name.
1394 (find_executable_symbol_1): Delete.
1395 (find_executable_symbol): Delete.
1396 (init_kernel_properties): Add ".kd" suffix to symbol names.
1397 (find_load_offset): Delete.
1398 (create_and_finalize_hsa_program): Remove relocation handling.
1399
1400 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
1401
1402 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
1403
1404 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
1405
1406 PR lto/94848
1407 PR middle-end/95551
1408 * testsuite/libgomp.fortran/target-var.f90: New test.
1409
1410 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
1411 Julian Brown <julian@codesourcery.com>
1412
1413 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
1414 special handling.
1415
1416 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
1417 Julian Brown <julian@codesourcery.com>
1418
1419 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
1420 Simplify.
1421
1422 2020-06-05 Julian Brown <julian@codesourcery.com>
1423
1424 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
1425 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
1426
1427 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
1428
1429 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
1430 Evaluate 'copyfrom' individually for each entry.
1431 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
1432
1433 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
1434
1435 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
1436 Evaluate 'finalize' individually for each entry.
1437 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
1438 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
1439 file.
1440
1441 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
1442
1443 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
1444 usage.
1445 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
1446
1447 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
1448 Julian Brown <julian@codesourcery.com>
1449
1450 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
1451 checking.
1452 (acc_unmap_data, goacc_exit_data_internal): Restore
1453 'is_tgt_unmapped' checking.
1454 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
1455 file.
1456 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
1457 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
1458 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
1459 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
1460 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
1461 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
1462
1463 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
1464 Julian Brown <julian@codesourcery.com>
1465
1466 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
1467
1468 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
1469
1470 PR libgomp/92854
1471 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
1472
1473 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
1474
1475 PR libgomp/92854
1476 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
1477 more.
1478
1479 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
1480 Julian Brown <julian@codesourcery.com>
1481
1482 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
1483 'gomp_map_vars'.
1484 (acc_map_data): Clean up accordingly.
1485
1486 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
1487
1488 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
1489 of over-eager 'finalize' clause.
1490 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
1491 file.
1492 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
1493 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
1494 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
1495 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
1496 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
1497 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
1498 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
1499 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
1500
1501 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
1502
1503 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
1504
1505 2020-06-04 Julian Brown <julian@codesourcery.com>
1506
1507 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
1508 error path.
1509 (goacc_detach_internal): Likewise.
1510
1511 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
1512
1513 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
1514 the checkpoint.
1515 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
1516 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
1517 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
1518 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
1519 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
1520
1521 2020-06-02 Jakub Jelinek <jakub@redhat.com>
1522
1523 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
1524 defined.
1525
1526 2020-05-30 Jakub Jelinek <jakub@redhat.com>
1527
1528 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
1529
1530 2020-05-30 Jakub Jelinek <jakub@redhat.com>
1531
1532 * allocator.c (omp_alloc): For size == 0, return NULL early.
1533
1534 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
1535
1536 PR bootstrap/95413
1537 * configure: Regenerated.
1538
1539 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
1540
1541 PR libfortran/95191
1542 * testsuite/libgomp.fortran/async_io_9.f90: New test.
1543
1544 2020-05-19 Jakub Jelinek <jakub@redhat.com>
1545
1546 * omp.h.in (omp_uintptr_t): New typedef.
1547 (__GOMP_UINTPTR_T_ENUM): Define.
1548 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
1549 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
1550 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
1551 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
1552 omp_get_default_allocator, omp_alloc, omp_free): Declare.
1553 * libgomp.h (struct gomp_team_state): Add def_allocator field.
1554 (gomp_def_allocator): Declare.
1555 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
1556 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
1557 omp_alloc and omp_free.
1558 * team.c (gomp_team_start): Copy over ts.def_allocator.
1559 * env.c (gomp_def_allocator): New variable.
1560 (parse_wait_policy): Adjust function comment.
1561 (parse_allocator): New function.
1562 (handle_omp_display_env): Print OMP_ALLOCATOR.
1563 (initialize_env): Call parse_allocator.
1564 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
1565 * allocator.c: New file.
1566 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
1567 functions.
1568 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
1569 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
1570 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
1571 * Makefile.in: Regenerated.
1572
1573 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
1574
1575 PR bootstrap/95147
1576 * configure: Regenerated.
1577
1578 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
1579
1580 PR libfortran/95119
1581 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
1582
1583 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
1584
1585 * configure: Regenerated.
1586
1587 2020-05-14 Jakub Jelinek <jakub@redhat.com>
1588
1589 * testsuite/libgomp.c-c++-common/target-40.c: New test.
1590
1591 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
1592
1593 PR fortran/94690
1594 * testsuite/libgomp.fortran/pr66199-3.f90: New.
1595 * testsuite/libgomp.fortran/pr66199-4.f90: New.
1596 * testsuite/libgomp.fortran/pr66199-5.f90: New.
1597 * testsuite/libgomp.fortran/pr66199-6.f90: New.
1598 * testsuite/libgomp.fortran/pr66199-7.f90: New.
1599 * testsuite/libgomp.fortran/pr66199-8.f90: New.
1600 * testsuite/libgomp.fortran/pr66199-9.f90: New.
1601
1602 2020-05-12 Jakub Jelinek <jakub@redhat.com>
1603
1604 * testsuite/libgomp.c/target-39.c: New test.
1605
1606 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
1607
1608 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
1609 * openacc.f90 (acc_device_current): Likewise.
1610 * openacc.h (acc_device_current): Likewise.
1611 * openacc_lib.h (acc_device_current): Likewise.
1612
1613 PR target/94282
1614 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
1615 'dg-allow-blank-lines-in-output'.
1616
1617 * oacc-init.c (get_openacc_name): Handle 'gcn'.
1618 * testsuite/lib/libgomp.exp
1619 (offload_target_to_openacc_device_type) [amdgcn*]: Return
1620 'radeon'. Adjust all users.
1621 (check_effective_target_openacc_amdgcn_accel_present): Rename
1622 to...
1623 (check_effective_target_openacc_radeon_accel_present): ... this.
1624 Adjust all users.
1625 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
1626 (check_effective_target_openacc_radeon_accel_selected): ... this.
1627 Adjust all users.
1628
1629 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
1630 'dg-do run'.
1631
1632 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
1633
1634 PR other/94629
1635
1636 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
1637 hsa_iterate_agents.
1638 (GOMP_OFFLOAD_init_device): Check return values from both calls to
1639 hsa_agent_iterate_regions.
1640
1641 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
1642
1643 PR middle-end/94635
1644 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
1645 run'.
1646
1647 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
1648
1649 PR middle-end/94120
1650 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
1651 test case.
1652
1653 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
1654
1655 PR middle-end/94635
1656 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
1657
1658 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
1659
1660 PR libgomp/92843
1661 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
1662 Rename to...
1663 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
1664 ... this.
1665 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
1666 Rename to...
1667 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
1668 ... this.
1669 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
1670 Rename to...
1671 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
1672 ... this.
1673 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
1674 Rename to...
1675 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
1676 ... this.
1677 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
1678 Rename to...
1679 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
1680 ... this.
1681 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
1682 Rename to...
1683 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
1684 ... this.
1685 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
1686 Rename to...
1687 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
1688 ... this.
1689 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
1690 Rename to...
1691 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
1692 ... this.
1693 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
1694 Rename to...
1695 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
1696 ... this.
1697 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
1698 Rename to...
1699 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
1700 ... this.
1701 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
1702 Rename to...
1703 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
1704 ... this.
1705 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
1706 Rename to...
1707 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
1708 ... this.
1709 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
1710 Rename to...
1711 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
1712 ... this.
1713 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
1714 Rename to...
1715 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
1716 ... this.
1717 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
1718 Rename to...
1719 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
1720 ... this.
1721 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
1722 Rename to...
1723 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
1724 ... this.
1725
1726 2020-04-10 Julian Brown <julian@codesourcery.com>
1727 Thomas Schwinge <thomas@codesourcery.com>
1728
1729 PR libgomp/92843
1730 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
1731 New file.
1732 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
1733 Likewise.
1734 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
1735 Likewise.
1736 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
1737 Likewise.
1738 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
1739 Likewise.
1740 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
1741 Likewise.
1742 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
1743 Likewise.
1744 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
1745 Likewise.
1746 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
1747 Likewise.
1748 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
1749 Likewise.
1750 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
1751 Likewise.
1752 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
1753 Likewise.
1754 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
1755 Likewise.
1756 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
1757 Likewise.
1758 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
1759 Likewise.
1760 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
1761 Likewise.
1762
1763 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
1764
1765 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
1766 run'.
1767
1768 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
1769
1770 PR middle-end/94120
1771 * libgomp.oacc-c++/declare-pr94120.C: New.
1772
1773 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
1774
1775 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
1776 files.
1777 * configure: Regenerate.
1778 * testsuite/libgomp-site-extra.exp.in: New file.
1779 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
1780 variable.
1781 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
1782 variable.
1783 * testsuite/Makefile.in: Regenerate.
1784
1785 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
1786
1787 PR tree-optimization/89713
1788 PR c/94392
1789 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
1790 'bar.sync'.
1791 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
1792
1793 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
1794
1795 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
1796 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
1797
1798 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
1799
1800 PR libgomp/81689
1801 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
1802
1803 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
1804
1805 PR libgomp/94251
1806 * target.c (gomp_load_image_to_device): Fix link
1807 variable handling.
1808
1809 2020-03-19 Jakub Jelinek <jakub@redhat.com>
1810
1811 PR c++/93931
1812 * testsuite/libgomp.c++/pr93931.C: New test.
1813
1814 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
1815
1816 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
1817 dg-allow-blank-lines-in-output.
1818
1819 2020-03-18 Julian Brown <julian@codesourcery.com>
1820 Tobias Burnus <tobias@codesourcery.com>
1821
1822 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
1823 it work concurrently.
1824
1825 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
1826
1827 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
1828 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
1829 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
1830
1831 2020-03-14 Jakub Jelinek <jakub@redhat.com>
1832
1833 PR middle-end/93566
1834 * testsuite/libgomp.c/pr93566.c: New test.
1835
1836 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
1837
1838 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
1839 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
1840 integer(acc_device_property) for the type of the return value of
1841 acc_get_property.
1842
1843 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
1844
1845 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
1846 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
1847 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
1848 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
1849 (acc_set_device_num): Fix Fortran argument name, use same name for C.
1850 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
1851 corrections; add note about the previous interface and named constant.
1852 (OpenACC library and environment variables): Fix two typos.
1853 * openacc.f90: Use for all procedures the argument names from the spec
1854 as for …_h they are user visible.
1855 (openacc_kinds): Rename acc_device_property to
1856 acc_device_property_kinds and change value to int32 ; and update users.
1857 Re-add acc_device_property for for backward compatibility.
1858 (acc_get_property_string_h): Clean up as acc_device_property_kind
1859 changed.
1860 (acc_get_property_h): Likewise and return c_size_t instead of
1861 acc_device_property.
1862 (openacc): Also export acc_device_property_kinds.
1863 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
1864 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
1865 handling; check against /= 0 instead of == 1 to match C.
1866 * openacc_lib.h: Use for all procedures the argument names from the spec
1867 as for …_h they are user visible. Place !GCC$ into the first column to
1868 be active also for fixed-form souce form.
1869 (acc_device_current, acc_device_property_kind, acc_device_property,
1870 acc_property_memory, acc_property_free_memory, acc_property_name,
1871 acc_property_vendor, acc_property_driver): New named constants.
1872 (acc_get_property, acc_get_property_string): New generic interface.
1873
1874 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
1875
1876 PR libgomp/93481
1877 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
1878 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
1879 optional.
1880 (gomp_target_task_fn): Assert "devicep->async_run_func".
1881 (clear_unsupported_flags): New function to remove unsupported flags
1882 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
1883 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
1884 * testsuite/libgomp.c/target-33.c:
1885 Remove xfail for offload_target_nvptx.
1886 * testsuite/libgomp.c/target-34.c: Likewise.
1887
1888 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
1889
1890 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
1891 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
1892 * testsuite/libgomp.c/target-34.c: Likewise.
1893 * testsuite/libgomp.c/target-link-1.c: Add xfail for
1894 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
1895
1896 2020-02-09 Jakub Jelinek <jakub@redhat.com>
1897
1898 * testsuite/libgomp.c/target-38.c: New test.
1899
1900 2020-02-06 Jakub Jelinek <jakub@redhat.com>
1901
1902 PR libgomp/93515
1903 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
1904
1905 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
1906
1907 * testsuite/lib/libgomp.exp
1908 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
1909 and not as 'source' argument to libgomp_target_compile.
1910
1911 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
1912
1913 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
1914 (gcn_gfx801_s): Remove.
1915 (isa_hsa_name): Remove gfx801.
1916 (isa_gcc_name): Remove gfx801/carizzo.
1917 (isa_code): Remove gfx801.
1918
1919 2020-02-03 Julian Brown <julian@codesourcery.com>
1920 Tobias Burnus <tobias@codesourcery.com>
1921
1922 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
1923 and *_finalize variants; document acc_attach and acc_detach; update
1924 references from OpenACC 2.0 to 2.6.
1925 * openacc.f90 (openacc_version): Update to 201711.
1926 * openacc_lib.h (openacc_version): Update to 201711.
1927 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
1928 openacc_version to 201711.
1929 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
1930
1931 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
1932
1933 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
1934 and vgpr_count fields.
1935 (struct kernel_info): Add a field for a hsa_kernel_description.
1936 (run_kernel): Reduce the number of threads/workers if the requested
1937 number would require too many VGPRs.
1938 (init_basic_kernel_info): Initialize description field with
1939 the hsa_kernel_description entry for the kernel.
1940
1941 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
1942
1943 PR bootstrap/93409
1944 * plugin/configfrag.ac (enable_offload_targets): Skip
1945 HSA and GCN plugin besides -m32 also for -mx32.
1946 * configure: Regenerate.
1947
1948 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
1949
1950 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
1951
1952 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
1953
1954 * plugin-gcn.c (struct agent_info): Add fields "name" and
1955 "vendor_name" ...
1956 (GOMP_OFFLOAD_init_device): ... and init from here.
1957 (struct hsa_context_info): Add field "driver_version_s" ...
1958 (init_hsa_contest): ... and init from here.
1959 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
1960 implementation.
1961 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
1962 Enable test execution for amdgcn and host offloading targets.
1963 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
1964 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
1965 (expect_device_properties): Split function into ...
1966 (expect_device_string_properties): ... this new function ...
1967 (expect_device_memory): ... and this new function.
1968 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
1969 Add test.
1970
1971 2020-01-28 Julian Brown <julian@codesourcery.com>
1972
1973 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
1974 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
1975 component/non-component variable refs in a single directive.
1976 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
1977
1978 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
1979
1980 * configure.ac: Handle `--with-toolexeclibdir='.
1981 * Makefile.in: Regenerate.
1982 * aclocal.m4: Regenerate.
1983 * configure: Regenerate.
1984 * testsuite/Makefile.in: Regenerate.
1985
1986 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
1987
1988 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
1989 (expect_device_properties): Remove "expected_free_mem" argument,
1990 change "expected_total_mem" argument type to size_t;
1991 change types of acc_get_property results to size_t,
1992 adapt format strings.
1993 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
1994 Use %zu instead of %zd to print size_t values.
1995 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
1996 rename to ...
1997 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
1998 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
1999 rename to ...
2000 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
2001
2002 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
2003
2004 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
2005 the device id.
2006
2007 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
2008
2009 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
2010 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
2011 Adjust test dimensions for amdgcn.
2012 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
2013 gang/worker/vector expectations dynamically.
2014 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
2015 (main): Likewise.
2016 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
2017 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
2018 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
2019 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
2020 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
2021 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
2022 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
2023 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
2024 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
2025 (acc_gang): Recognise acc_device_radeon.
2026 (acc_worker): Likewise.
2027 (acc_vector): Likewise.
2028 (main): Set expectations for amdgcn.
2029 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
2030 (main): Adjust gang/worker/vector expectations dynamically.
2031 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
2032 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
2033 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
2034 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
2035 for amdgcn.
2036
2037 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
2038
2039 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
2040 acc_device_radeon.
2041 (openacc): Likewise.
2042 * openacc.f90 (openacc_kinds): Likewise.
2043 (openacc): Likewise.
2044 * openacc.h (acc_device_t): Likewise.
2045 * openacc_lib.h: Likewise.
2046 * testsuite/lib/libgomp.exp
2047 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
2048 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
2049 (cb_compute_construct_end): Likewise.
2050 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
2051 (cb_enqueue_launch_start): Likewise.
2052 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
2053 (cb_enter_data_end): Likewise.
2054 (cb_exit_data_start): Likewise.
2055 (cb_exit_data_end): Likewise.
2056 (cb_compute_construct_end): Likewise.
2057 (cb_enqueue_launch_start): Likewise.
2058 (cb_enqueue_launch_end): Likewise.
2059 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
2060 (main): Likewise.
2061
2062 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
2063
2064 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
2065 to use this instead of 'enum gomp_device_property'.
2066 (GOMP_OFFLOAD_get_property): Rename to...
2067 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
2068 * libgomp.h (struct gomp_device_descr): Move
2069 'GOMP_OFFLOAD_openacc_get_property'...
2070 (struct acc_dispatch_t): ... here. Adjust all users.
2071 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
2072
2073 * target.c (gomp_map_vars_internal)
2074 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
2075 paths.
2076
2077 2020-01-10 Jakub Jelinek <jakub@redhat.com>
2078
2079 PR libgomp/93219
2080 * libgomp.h (gomp_print_string): Change return type from void to int.
2081 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
2082 not all characters have been written.
2083
2084 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
2085
2086 * libgomp.texi: Fix typos, use https.
2087
2088 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
2089
2090 * testsuite/libgomp.fortran/optional-map.f90: Add test for
2091 unallocated/disassociated actual arguments to nonallocatable/nonpointer
2092 dummy arguments; those are/shall be regarded as absent arguments.
2093 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
2094 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
2095
2096 2020-01-01 Jakub Jelinek <jakub@redhat.com>
2097
2098 Update copyright years.
2099
2100 * libgomp.texi: Bump @copying's copyright year.
2101
2102 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
2103
2104 PR libgomp/93065
2105 * oacc-init.c (goacc_runtime_deinitialize): New function.
2106
2107 2019-12-28 Jakub Jelinek <jakub@redhat.com>
2108
2109 PR bootstrap/93074
2110 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
2111 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
2112
2113 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
2114 Frederik Harwath <frederik@codesourcery.com>
2115 Thomas Schwinge <tschwinge@codesourcery.com>
2116
2117 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
2118 * libgomp-plugin.h (gomp_device_property_value): New union.
2119 (gomp_device_property_value): New prototype.
2120 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
2121 constant.
2122 (acc_device_property_t): New enum.
2123 (acc_get_property, acc_get_property_string): New prototypes.
2124 * oacc-init.c (acc_get_device_type): Also assert that result
2125 is not `acc_device_current'.
2126 (get_property_any, acc_get_property, acc_get_property_string):
2127 New functions.
2128 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
2129 `acc_property_memory', `acc_property_free_memory',
2130 `acc_property_name', `acc_property_vendor' and
2131 `acc_property_driver' constants. Add `acc_device_property' data
2132 type.
2133 (openacc_internal): Add `acc_get_property' and
2134 `acc_get_property_string' interfaces. Add `acc_get_property_h',
2135 `acc_get_property_string_h', `acc_get_property_l' and
2136 `acc_get_property_string_l'.
2137 * oacc-host.c (host_get_property): New function.
2138 (host_dispatch): Wire it.
2139 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
2140 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
2141 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
2142 * libgomp.texi (OpenACC Runtime Library Routines): Add
2143 `acc_get_property'.
2144 (acc_get_property): New node.
2145 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
2146 function (stub).
2147 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
2148 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
2149 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
2150 calls.
2151 (GOMP_OFFLOAD_get_property): New function.
2152 (struct ptx_device): Add new field "name".
2153 (cuda_driver_version_s): Add new static variable ...
2154 (nvptx_init): ... and init from here.
2155
2156 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
2157 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
2158 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
2159 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
2160 with test helper functions.
2161
2162 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
2163
2164 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
2165
2166 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
2167 variable.
2168
2169 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
2170
2171 * target.c (gomp_map_vars_internal): Restore 'omp declare target
2172 link' handling.
2173
2174 2019-12-19 Julian Brown <julian@codesourcery.com>
2175
2176 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
2177 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
2178 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
2179
2180 2019-12-19 Julian Brown <julian@codesourcery.com>
2181 Cesar Philippidis <cesar@codesourcery.com>
2182
2183 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
2184 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
2185 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
2186 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
2187 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
2188 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
2189 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
2190 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
2191 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
2192 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
2193 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
2194 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
2195 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
2196
2197 2019-12-19 Julian Brown <julian@codesourcery.com>
2198
2199 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
2200 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
2201 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
2202 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
2203 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
2204 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
2205 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
2206 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
2207 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
2208 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
2209 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
2210 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
2211
2212 2019-12-19 Julian Brown <julian@codesourcery.com>
2213
2214 * libgomp.h (struct target_var_desc): Add do_detach flag.
2215 * oacc-init.c (acc_shutdown_1): Free aux block if present.
2216 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
2217 struct components. Tidy up and add some new checks.
2218 (goacc_enter_data_internal): Update call to find_group_last.
2219 (goacc_exit_data_internal): Support detach operations and
2220 GOMP_MAP_STRUCT.
2221 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
2222 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
2223 attach/detach in enter/exit data detection code.
2224 * target.c (gomp_map_vars_existing): Initialise do_detach field of
2225 tgt_var_desc.
2226 (gomp_map_vars_internal): Support attach.
2227 (gomp_unmap_vars_internal): Support detach.
2228
2229 2019-12-19 Julian Brown <julian@codesourcery.com>
2230 Thomas Schwinge <thomas@codesourcery.com>
2231
2232 * libgomp.h (struct splay_tree_aux): Add attach_count field.
2233 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
2234 * libgomp.map (OACC_2.6): New section. Add acc_attach,
2235 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
2236 acc_detach_finalize_async.
2237 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
2238 acc_detach, acc_detach_async, acc_detach_finalize,
2239 acc_detach_finalize_async): New functions.
2240 * openacc.h (acc_attach, acc_attach_async, acc_detach,
2241 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
2242 prototypes.
2243 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
2244 (gomp_remove_var_internal): Free attachment counts if present.
2245 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
2246 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
2247
2248 2019-12-19 Julian Brown <julian@codesourcery.com>
2249 Cesar Philippidis <cesar@codesourcery.com>
2250
2251 * libgomp.h (gomp_map_val): Add prototype.
2252 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
2253 open-coding device-address calculation.
2254 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
2255 non-present case.
2256
2257 2019-12-19 Julian Brown <julian@codesourcery.com>
2258
2259 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
2260 field for virtual_refcount.
2261 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
2262 (gomp_free_memmap): Remove prototype.
2263 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
2264 instead of calling gomp_free_memmap.
2265 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
2266 dynamic_refcount.
2267 (acc_unmap_data): Open code instead of forcing target_mem_desc's
2268 to_free field to NULL then calling gomp_unmap_vars. Handle
2269 REFCOUNT_INFINITY on target blocks.
2270 (goacc_enter_data): Rename to...
2271 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
2272 handling for mapping groups. Use virtual_refcount instead of
2273 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
2274 map_map_vars_async call. Re-do lookup for target pointer return value.
2275 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
2276 renamed goacc_enter_datum function.
2277 (goacc_exit_data): Rename to...
2278 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
2279 (acc_delete, acc_delete_async, acc_delete_finalize,
2280 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
2281 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
2282 goacc_exit_datum function.
2283 (gomp_acc_remove_pointer, find_pointer): Remove functions.
2284 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
2285 New functions.
2286 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
2287 goacc_exit_data_internal helper functions.
2288 * target.c (gomp_map_vars_internal): Handle
2289 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
2290 semantics.
2291 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
2292 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
2293 virtual_refcount field instead of dynamic_refcount.
2294 (gomp_free_memmap): Remove function.
2295 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
2296 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
2297 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
2298
2299 2019-12-19 Julian Brown <julian@codesourcery.com>
2300 Thomas Schwinge <thomas@codesourcery.com>
2301
2302 * libgomp.h (struct splay_tree_aux): New.
2303 (struct splay_tree_key_s): Replace link_key field with aux pointer.
2304 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
2305 to aux struct.
2306 (gomp_remove_var_internal): Free aux block if present.
2307 (gomp_load_image_to_device): Zero-initialise aux field instead of
2308 link_key field.
2309 (omp_target_associate_pointer): Zero-initialise aux field.
2310
2311 2019-12-18 Jakub Jelinek <jakub@redhat.com>
2312
2313 PR middle-end/86416
2314 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
2315 q or none.
2316 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
2317 L or none.
2318
2319 2019-12-19 Julian Brown <julian@codesourcery.com>
2320 Maciej W. Rozycki <macro@codesourcery.com>
2321 Tobias Burnus <tobias@codesourcery.com>
2322 Thomas Schwinge <thomas@codesourcery.com>
2323
2324 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
2325 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
2326 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
2327 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
2328 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
2329 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
2330 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
2331 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
2332 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
2333
2334 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
2335
2336 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
2337 called...
2338 (goacc_insert_pointer): ... from here, "present" case.
2339 (goacc_insert_pointer): Inline function into...
2340 (GOACC_enter_exit_data): ... here, and simplify.
2341
2342 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
2343 called...
2344 (goacc_insert_pointer): ... from here, "not present" case.
2345
2346 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
2347 all users.
2348
2349 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
2350 'goacc_enter_data', 'goacc_exit_data'.
2351
2352 * oacc-mem.c (delete_copyout): Refactor into...
2353 (goacc_exit_data): ... this. Adjust all users.
2354
2355 * oacc-mem.c (present_create_copy): Refactor into...
2356 (goacc_enter_data): ... this. Adjust all users.
2357
2358 * target.c (gomp_unmap_vars_internal): Add a safeguard to
2359 'gomp_remove_var'.
2360
2361 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
2362 like 'GOMP_MAP_FROM'.
2363
2364 PR libgomp/92726
2365 PR libgomp/92970
2366 PR libgomp/92984
2367 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
2368 fails.
2369 (GOACC_enter_exit_data): Simplify accordingly.
2370 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
2371 subsuming...
2372 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
2373 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
2374 file.
2375 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
2376 subsuming...
2377 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
2378 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
2379 file.
2380 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
2381 subsuming...
2382 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
2383
2384 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
2385 'finalize' handling.
2386
2387 PR libgomp/92848
2388 * oacc-mem.c (acc_map_data, present_create_copy)
2389 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
2390 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
2391 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
2392 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
2393 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
2394 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
2395 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
2396 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
2397 Remove "XFAIL"s.
2398
2399 * target.c (gomp_unmap_tgt): Make it 'static'.
2400 * libgomp.h (gomp_unmap_tgt): Remove.
2401
2402 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
2403
2404 PR middle-end/86416
2405 * testsuite/libgomp.c/pr86416-1.c: New.
2406 * testsuite/libgomp.c/pr86416-2.c: New.
2407
2408 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
2409
2410 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
2411 all symbols as public except for the 'use …, only' imported symbol,
2412 which is private.
2413 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
2414 all symbols from module openacc_kinds as PUBLIC
2415 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
2416 fix comment typo.
2417 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
2418
2419 2019-12-13 Julian Brown <julian@codesourcery.com>
2420
2421 PR libgomp/92881
2422
2423 * libgomp.h (gomp_remove_var_async): Add prototype.
2424 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
2425 gomp_remove_var.
2426 * target.c (gomp_unref_tgt): Change return type to bool, indicating
2427 whether target_mem_desc was unmapped.
2428 (gomp_unref_tgt_void): New.
2429 (gomp_remove_var): Reimplement in terms of...
2430 (gomp_remove_var_internal): ...this new helper function.
2431 (gomp_remove_var_async): New, implemented using above helper function.
2432 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
2433 gomp_unref_tgt.
2434
2435 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
2436
2437 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
2438 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
2439 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
2440 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
2441 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
2442 Likewise.
2443 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
2444 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
2445
2446 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
2447
2448 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
2449 as public except for the 'use …, only' imported symbol, which is
2450 private.
2451 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
2452 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
2453 attributes for acc_copyout_finalize and acc_delete_finalize.
2454
2455 2019-12-11 Jakub Jelinek <jakub@redhat.com>
2456
2457 PR fortran/92899
2458 * testsuite/libgomp.fortran/atomic1.f90: New test.
2459
2460 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
2461
2462 PR libgomp/92843
2463 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
2464 reference counting for structured 'REFCOUNT_INFINITY'. Add some
2465 assertions.
2466 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
2467 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
2468 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
2469 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
2470 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
2471
2472 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
2473 * oacc-mem.c: ... here.
2474 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
2475 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
2476 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
2477 Remove.
2478 * libgomp_g.h: Update.
2479
2480 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
2481 * oacc-async.c: ... here.
2482 * oacc-int.h (goacc_wait): Declare.
2483 * libgomp_g.h: Update
2484
2485 PR libgomp/92854
2486 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
2487 New file.
2488 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
2489 Likewise.
2490 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
2491 Likewise.
2492 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
2493 Likewise.
2494 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
2495 Likewise.
2496 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
2497 Likewise.
2498
2499 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
2500 Julian Brown <julian@codesourcery.com>
2501
2502 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
2503 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
2504
2505 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
2506
2507 * omp_lib.h.in: Fix spelling of function declaration
2508 omp_get_cancell(l)ation.
2509 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
2510 Fix typos.
2511 * env.c: Fix comment typos.
2512 * oacc-host.c: Likewise.
2513 * ordered.c: Likewise.
2514 * task.c: Likewise.
2515 * team.c: Likewise.
2516 * config/gcn/task.c: Likewise.
2517 * config/gcn/team.c: Likewise.
2518 * config/nvptx/task.c: Likewise.
2519 * config/nvptx/team.c: Likewise.
2520 * plugin/plugin-gcn.c: Likewise.
2521 * testsuite/libgomp.fortran/jacobi.f: Likewise.
2522 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
2523 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
2524
2525 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
2526
2527 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
2528 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
2529 unnecessary 'dg-additional-options "-w"'.
2530
2531 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
2532 Julian Brown <julian@codesourcery.com>
2533
2534 PR libgomp/92116
2535 PR libgomp/92877
2536
2537 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
2538 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
2539 Adjust all users.
2540 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
2541 Remove XFAIL.
2542 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
2543 Likewise.
2544 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
2545
2546 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
2547
2548 PR libgomp/92503
2549 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
2550 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
2551 file.
2552 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
2553 Likewise.
2554 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
2555 Likewise.
2556 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
2557 Likewise.
2558 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
2559 Likewise.
2560 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
2561 Likewise.
2562 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
2563 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
2564 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
2565 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
2566 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
2567 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
2568 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
2569 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
2570 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
2571 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
2572
2573 PR libgomp/92840
2574 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
2575 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
2576 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
2577 New file.
2578 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
2579 Likewise.
2580 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
2581 Likewise.
2582 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
2583 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
2584
2585 PR libgomp/92511
2586 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
2587 this file...
2588 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
2589 this file...
2590 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
2591 file...
2592 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
2593 file...
2594 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
2595 ... with their content moved into, and extended in this new file.
2596 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
2597 New file.
2598 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
2599 Likewise.
2600 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
2601 Likewise.
2602 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
2603 Likewise.
2604
2605 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
2606
2607 PR libgomp/92854
2608 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
2609
2610 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
2611
2612 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
2613
2614 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
2615
2616 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
2617 unique.
2618 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
2619 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
2620 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
2621 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
2622 Ditto.
2623 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
2624 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
2625
2626 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
2627
2628 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
2629
2630 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
2631 Kwok Cheung Yeung <kcy@codesourcery.com>
2632
2633 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
2634 if input it a NULL pointer.
2635 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
2636 diagnostic of NULL pointer.
2637 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
2638 * testsuite/libgomp.fortran/optional-map.f90: New.
2639 * testsuite/libgomp.fortran/use_device_addr-1.f90
2640 (test_dummy_opt_callee_1_absent): New.
2641 (test_dummy_opt_call_1): Call it.
2642 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
2643 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
2644 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
2645 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
2646 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
2647 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
2648 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
2649 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
2650 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
2651 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
2652 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
2653 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
2654 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
2655 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
2656 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
2657 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
2658
2659 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
2660
2661 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
2662 expect dg-output of 'Error termination.' for GCN.
2663 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
2664 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
2665
2666 2019-12-04 Jakub Jelinek <jakub@redhat.com>
2667
2668 PR fortran/92756
2669 * testsuite/libgomp.fortran/teams1.f90: New test.
2670 * testsuite/libgomp.fortran/teams2.f90: New test.
2671
2672 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
2673
2674 * oacc-init.c (acc_known_device_type): Add function.
2675 (unknown_device_type_error): Add function.
2676 (name_of_acc_device_t): Change to call unknown_device_type_error
2677 on unknown type.
2678 (resolve_device): Use acc_known_device_type.
2679 (acc_init): Fail if acc_device_t argument is not valid.
2680 (acc_shutdown): Likewise.
2681 (acc_get_num_devices): Likewise.
2682 (acc_set_device_type): Likewise.
2683 (acc_get_device_num): Likewise.
2684 (acc_set_device_num): Likewise.
2685 (acc_on_device): Add comment that argument validity is not checked.
2686
2687 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
2688
2689 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
2690 Recognize amdgcn.
2691 (check_effective_target_openacc_amdgcn_accel_present): New proc.
2692 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
2693 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
2694 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2695 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2696
2697 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
2698
2699 PR libgomp/91938
2700 * configure.tgt: Avoid IE tls on *-*-musl*.
2701
2702 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
2703
2704 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
2705 adding a common-block test case.
2706
2707 2019-11-29 Jakub Jelinek <jakub@redhat.com>
2708
2709 PR c++/60228
2710 * testsuite/libgomp.c++/udr-20.C: New test.
2711 * testsuite/libgomp.c++/udr-21.C: New test.
2712
2713 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
2714
2715 * testsuite/lib/libgomp.exp
2716 (check_effective_target_offload_target_nvptx): New proc.
2717 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
2718 'dg-skip-if'.
2719 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
2720 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
2721 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
2722
2723 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2724
2725 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
2726 * testsuite/libgomp.c/pr39591-2.c: Likewise.
2727 * testsuite/libgomp.c/pr39591-3.c: Likewise.
2728 * testsuite/libgomp.c/private-1.c: Likewise.
2729 * testsuite/libgomp.c/task-1.c: Likewise.
2730 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
2731
2732 2019-11-20 Julian Brown <julian@codesourcery.com>
2733
2734 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
2735 aq->mutex here.
2736 (queue_push_launch): Lock aq->mutex before calling
2737 wait_for_queue_nonfull.
2738 (queue_push_callback): Likewise.
2739 (queue_push_asyncwait): Likewise.
2740 (queue_push_placeholder): Likewise.
2741
2742 2019-11-20 Julian Brown <julian@codesourcery.com>
2743
2744 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
2745 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
2746 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
2747 return code.
2748
2749 2019-11-20 Julian Brown <julian@codesourcery.com>
2750
2751 PR libgomp/92511
2752
2753 * oacc-mem.c (present_create_copy): Fix device pointer return value in
2754 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
2755 in non-present/create case.
2756 (delete_copyout): Change error condition to fail only on copies outside
2757 of mapped block. Adjust error message accordingly.
2758 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
2759 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
2760 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
2761 message.
2762 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
2763 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
2764 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
2765
2766 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
2767
2768 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
2769 libatomic in build-tree testing.
2770
2771 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
2772
2773 * testsuite/Makefile.in: Regenerate.
2774
2775 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
2776
2777 * testsuite/libgomp.c/target-print-1.c: New file.
2778 * testsuite/libgomp.fortran/target-print-1.f90: New file.
2779 * testsuite/libgomp.oacc-c/print-1.c: New file.
2780 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
2781
2782 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
2783 Kwok Cheung Yeung <kcy@codesourcery.com>
2784 Julian Brown <julian@codesourcery.com>
2785 Tom de Vries <tom@codesourcery.com>
2786
2787 * plugin/Makefrag.am: Add amdgcn plugin support.
2788 * plugin/configfrag.ac: Likewise.
2789 * plugin/plugin-gcn.c: New file.
2790 * configure: Regenerate.
2791 * Makefile.in: Regenerate.
2792 * testsuite/Makefile.in: Regenerate.
2793
2794 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
2795
2796 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
2797 and use team_malloc variants.
2798 (gomp_gcn_exit_kernel): Use team_free.
2799 * libgomp.h (TEAM_ARENA_SIZE): Define.
2800 (TEAM_ARENA_START): Define.
2801 (TEAM_ARENA_FREE): Define.
2802 (TEAM_ARENA_END): Define.
2803 (team_malloc): New function.
2804 (team_malloc_cleared): New function.
2805 (team_free): New function.
2806 * team.c (gomp_new_team): Initialize and use team_malloc.
2807 (free_team): Use team_free.
2808 (gomp_free_thread): Use team_free.
2809 (gomp_pause_host): Use team_free.
2810 * work.c (gomp_init_work_share): Use team_malloc.
2811 (gomp_fini_work_share): Use team_free.
2812
2813 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
2814 Kwok Cheung Yeung <kcy@codesourcery.com>
2815 Julian Brown <julian@codesourcery.com>
2816 Tom de Vries <tom@codesourcery.com>
2817
2818 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
2819 * Makefile.in: Regenerate.
2820 * config.h.in (PLUGIN_GCN): Add new undef.
2821 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
2822 * config/gcn/affinity-fmt.c: New file.
2823 * config/gcn/bar.c: New file.
2824 * config/gcn/bar.h: New file.
2825 * config/gcn/doacross.h: New file.
2826 * config/gcn/icv-device.c: New file.
2827 * config/gcn/oacc-target.c: New file.
2828 * config/gcn/simple-bar.h: New file.
2829 * config/gcn/target.c: New file.
2830 * config/gcn/task.c: New file.
2831 * config/gcn/team.c: New file.
2832 * config/gcn/time.c: New file.
2833 * configure.ac: Add amdgcn*-*-*.
2834 * configure: Regenerate.
2835 * configure.tgt: Add amdgcn*-*-*.
2836 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
2837 * libgomp.h (gcn_thrs): Add amdgcn variant.
2838 (set_gcn_thrs): Likewise.
2839 (gomp_thread): Likewise.
2840 * oacc-int.h (goacc_thread): Likewise.
2841 * oacc-target.c: New file.
2842 * openacc.f90 (acc_device_gcn): New parameter.
2843 * openacc.h (acc_device_t): Add acc_device_gcn.
2844 * team.c (gomp_free_pool_helper): Add amdgcn support.
2845
2846 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
2847 Julian Brown <julian@codesourcery.com>
2848
2849 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
2850 parameter.
2851 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
2852 queue constructor.
2853 * oacc-host.c (host_openacc_async_construct): Add device parameter.
2854 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
2855 device parameter.
2856
2857 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
2858
2859 * configure.tgt (nvptx*-*-*): Add "accel" directory.
2860 * config/nvptx/libgomp-plugin.c: Move ...
2861 * config/accel/libgomp-plugin.c: ... to here.
2862 * config/nvptx/lock.c: Move ...
2863 * config/accel/lock.c: ... to here.
2864 * config/nvptx/mutex.c: Move ...
2865 * config/accel/mutex.c: ... to here.
2866 * config/nvptx/mutex.h: Move ...
2867 * config/accel/mutex.h: ... to here.
2868 * config/nvptx/oacc-async.c: Move ...
2869 * config/accel/oacc-async.c: ... to here.
2870 * config/nvptx/oacc-cuda.c: Move ...
2871 * config/accel/oacc-cuda.c: ... to here.
2872 * config/nvptx/oacc-host.c: Move ...
2873 * config/accel/oacc-host.c: ... to here.
2874 * config/nvptx/oacc-init.c: Move ...
2875 * config/accel/oacc-init.c: ... to here.
2876 * config/nvptx/oacc-mem.c: Move ...
2877 * config/accel/oacc-mem.c: ... to here.
2878 * config/nvptx/oacc-plugin.c: Move ...
2879 * config/accel/oacc-plugin.c: ... to here.
2880 * config/nvptx/omp-lock.h: Move ...
2881 * config/accel/omp-lock.h: ... to here.
2882 * config/nvptx/openacc.f90: Move ...
2883 * config/accel/openacc.f90: ... to here.
2884 * config/nvptx/pool.h: Move ...
2885 * config/accel/pool.h: ... to here.
2886 * config/nvptx/proc.c: Move ...
2887 * config/accel/proc.c: ... to here.
2888 * config/nvptx/ptrlock.c: Move ...
2889 * config/accel/ptrlock.c: ... to here.
2890 * config/nvptx/ptrlock.h: Move ...
2891 * config/accel/ptrlock.h: ... to here.
2892 * config/nvptx/sem.c: Move ...
2893 * config/accel/sem.c: ... to here.
2894 * config/nvptx/sem.h: Move ...
2895 * config/accel/sem.h: ... to here.
2896 * config/nvptx/thread-stacksize.h: Move ...
2897 * config/accel/thread-stacksize.h: ... to here.
2898
2899 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
2900 Tobias Burnus <tobias@codesourcery.com>
2901 Frederik Harwath <frederik@codesourcery.com>
2902 Thomas Schwinge <thomas@codesourcery.com>
2903
2904 libgomp/
2905 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
2906 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
2907 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
2908
2909 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
2910 Kwok Cheung Yeung <kcy@codesourcery.com>
2911
2912 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
2913 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
2914
2915 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
2916
2917 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
2918
2919 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
2920 run'.
2921 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
2922 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
2923
2924 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
2925
2926 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
2927 Add expected warnings about missing reduction clauses.
2928 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
2929 Likewise.
2930 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
2931 Likewise.
2932 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
2933 Likewise.
2934
2935 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
2936
2937 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
2938 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
2939 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
2940 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
2941 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
2942 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
2943
2944 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
2945
2946 PR fortran/92305
2947 * testsuite/libgomp.fortran/allocatable2.f90: Use
2948 unique numbers with 'stop'.
2949 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
2950 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
2951 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
2952 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
2953 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
2954
2955 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
2956
2957 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
2958 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
2959 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
2960 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
2961 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
2962 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
2963
2964 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
2965
2966 * testsuite/libgomp.fortran/target9.f90: New.
2967
2968 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
2969
2970 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
2971 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
2972 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
2973 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
2974 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
2975 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
2976 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
2977 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
2978 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
2979 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
2980 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
2981 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
2982 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
2983 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
2984 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
2985 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
2986 * testsuite/libgomp.fortran/associate1.f90: Ditto.
2987 * testsuite/libgomp.fortran/associate2.f90: Ditto.
2988 * testsuite/libgomp.fortran/associate3.f90: Ditto.
2989 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
2990 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
2991 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
2992 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
2993 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
2994 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
2995 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
2996 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
2997 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
2998 * testsuite/libgomp.fortran/character1.f90: Ditto.
2999 * testsuite/libgomp.fortran/character2.f90: Ditto.
3000 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
3001 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
3002 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
3003 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
3004 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
3005 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
3006 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
3007 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
3008 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
3009 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
3010 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
3011 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
3012 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
3013 * testsuite/libgomp.fortran/do1.f90: Ditto.
3014 * testsuite/libgomp.fortran/do2.f90: Ditto.
3015 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
3016 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
3017 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
3018 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
3019 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
3020 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
3021 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
3022 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
3023 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
3024 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
3025 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
3026 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
3027 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
3028 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
3029 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
3030 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
3031 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
3032 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
3033 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
3034 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
3035 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
3036 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
3037 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
3038 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
3039 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
3040 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
3041 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
3042 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
3043 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
3044 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
3045 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
3046 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
3047 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
3048 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
3049 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
3050 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
3051 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
3052 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
3053 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
3054 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
3055 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
3056 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
3057 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
3058 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
3059 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
3060 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
3061 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
3062 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
3063 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
3064 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
3065 * testsuite/libgomp.fortran/lib1.f90: Ditto.
3066 * testsuite/libgomp.fortran/lib4.f90: Ditto.
3067 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
3068 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
3069 * testsuite/libgomp.fortran/nested1.f90: Ditto.
3070 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
3071 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
3072 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
3073 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
3074 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
3075 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
3076 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
3077 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
3078 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
3079 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
3080 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
3081 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
3082 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
3083 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
3084 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
3085 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
3086 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
3087 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
3088 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
3089 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
3090 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
3091 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
3092 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
3093 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
3094 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
3095 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
3096 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
3097 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
3098 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
3099 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
3100 * testsuite/libgomp.fortran/pr28390.f: Ditto.
3101 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
3102 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
3103 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
3104 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
3105 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
3106 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
3107 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
3108 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
3109 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
3110 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
3111 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
3112 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
3113 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
3114 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
3115 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
3116 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
3117 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
3118 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
3119 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
3120 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
3121 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
3122 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
3123 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
3124 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
3125 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
3126 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
3127 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
3128 * testsuite/libgomp.fortran/reference1.f90: Ditto.
3129 * testsuite/libgomp.fortran/reference2.f90: Ditto.
3130 * testsuite/libgomp.fortran/retval1.f90: Ditto.
3131 * testsuite/libgomp.fortran/retval2.f90: Ditto.
3132 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
3133 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
3134 * testsuite/libgomp.fortran/simd1.f90: Ditto.
3135 * testsuite/libgomp.fortran/simd2.f90: Ditto.
3136 * testsuite/libgomp.fortran/simd3.f90: Ditto.
3137 * testsuite/libgomp.fortran/simd4.f90: Ditto.
3138 * testsuite/libgomp.fortran/simd5.f90: Ditto.
3139 * testsuite/libgomp.fortran/simd6.f90: Ditto.
3140 * testsuite/libgomp.fortran/simd7.f90: Ditto.
3141 * testsuite/libgomp.fortran/stack.f90: Ditto.
3142 * testsuite/libgomp.fortran/strassen.f90: Ditto.
3143 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
3144 * testsuite/libgomp.fortran/tabs2.f: Ditto.
3145 * testsuite/libgomp.fortran/target1.f90: Ditto.
3146 * testsuite/libgomp.fortran/target2.f90: Ditto.
3147 * testsuite/libgomp.fortran/target3.f90: Ditto.
3148 * testsuite/libgomp.fortran/target4.f90: Ditto.
3149 * testsuite/libgomp.fortran/target5.f90: Ditto.
3150 * testsuite/libgomp.fortran/target6.f90: Ditto.
3151 * testsuite/libgomp.fortran/target7.f90: Ditto.
3152 * testsuite/libgomp.fortran/target8.f90: Ditto.
3153 * testsuite/libgomp.fortran/task1.f90: Ditto.
3154 * testsuite/libgomp.fortran/task2.f90: Ditto.
3155 * testsuite/libgomp.fortran/task3.f90: Ditto.
3156 * testsuite/libgomp.fortran/task4.f90: Ditto.
3157 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
3158 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
3159 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
3160 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
3161 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
3162 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
3163 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
3164 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
3165 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
3166 * testsuite/libgomp.fortran/udr1.f90: Ditto.
3167 * testsuite/libgomp.fortran/udr10.f90: Ditto.
3168 * testsuite/libgomp.fortran/udr11.f90: Ditto.
3169 * testsuite/libgomp.fortran/udr12.f90: Ditto.
3170 * testsuite/libgomp.fortran/udr13.f90: Ditto.
3171 * testsuite/libgomp.fortran/udr14.f90: Ditto.
3172 * testsuite/libgomp.fortran/udr15.f90: Ditto.
3173 * testsuite/libgomp.fortran/udr2.f90: Ditto.
3174 * testsuite/libgomp.fortran/udr3.f90: Ditto.
3175 * testsuite/libgomp.fortran/udr4.f90: Ditto.
3176 * testsuite/libgomp.fortran/udr5.f90: Ditto.
3177 * testsuite/libgomp.fortran/udr6.f90: Ditto.
3178 * testsuite/libgomp.fortran/udr7.f90: Ditto.
3179 * testsuite/libgomp.fortran/udr8.f90: Ditto.
3180 * testsuite/libgomp.fortran/udr9.f90: Ditto.
3181 * testsuite/libgomp.fortran/vla1.f90: Ditto.
3182 * testsuite/libgomp.fortran/vla2.f90: Ditto.
3183 * testsuite/libgomp.fortran/vla3.f90: Ditto.
3184 * testsuite/libgomp.fortran/vla4.f90: Ditto.
3185 * testsuite/libgomp.fortran/vla5.f90: Ditto.
3186 * testsuite/libgomp.fortran/vla6.f90: Ditto.
3187 * testsuite/libgomp.fortran/vla7.f90: Ditto.
3188 * testsuite/libgomp.fortran/vla8.f90: Ditto.
3189 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
3190 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
3191
3192 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
3193
3194 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
3195 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
3196 Ditto; add 'dg-do run' for torture testing.
3197 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
3198 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
3199 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
3200 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
3201 * testsuite/libgomp.fortran/pr28390.f: Ditto.
3202 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
3203 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
3204 * testsuite/libgomp.fortran/task2.f90: Ditto.
3205 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
3206 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
3207 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
3208 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
3209 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
3210 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
3211
3212 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
3213
3214 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
3215 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
3216 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
3217 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
3218 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
3219 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
3220 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
3221 Use 'stop' not abort().
3222 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
3223 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
3224 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
3225 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
3226 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
3227 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
3228 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
3229 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
3230 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
3231 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
3232 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
3233 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
3234 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
3235 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
3236 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
3237 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
3238 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
3239 Ditto.
3240 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3241 Ditto.
3242 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3243 Ditto.
3244 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3245 Ditto.
3246 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3247 Ditto.
3248 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
3249 Ditto.
3250 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
3251 Ditto.
3252 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
3253 Ditto.
3254 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
3255 Ditto.
3256 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
3257 Ditto.
3258 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
3259 Ditto.
3260 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
3261 Ditto.
3262 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
3263 Ditto.
3264 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
3265 Ditto.
3266 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
3267 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
3268 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
3269 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
3270 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
3271 Likewise and also add 'dg-do run'.
3272 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
3273 Ditto.
3274
3275 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
3276 Tobias Burnus <tobias@codesourcery.com>
3277
3278 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
3279 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
3280 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
3281
3282 2019-10-14 Jakub Jelinek <jakub@redhat.com>
3283
3284 PR libgomp/92081
3285 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
3286 than 0.
3287
3288 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
3289
3290 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
3291 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
3292
3293 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
3294
3295 PR middle-end/92036
3296 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
3297 file.
3298
3299 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
3300
3301 PR testsuite/91884
3302 * testsuite/libgomp.fortran/fortran.exp: Conditionally
3303 add -lquadmath.
3304 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
3305
3306 2019-10-09 Jakub Jelinek <jakub@redhat.com>
3307
3308 PR libgomp/92028
3309 * target.c (gomp_map_vars_internal): Readd the previous
3310 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
3311 though do that just in the !not_found_cnt case.
3312
3313 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
3314
3315 * gfortran.dg/gomp/target-simd.f90: New.
3316
3317 2019-10-02 Julian Brown <julian@codesourcery.com>
3318 Cesar Philippidis <cesar@codesourcery.com>
3319
3320 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
3321 * target.c (FIELD_TGT_EMPTY): Define.
3322 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
3323 as switch instead of list of ifs.
3324 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
3325
3326 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
3327
3328 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
3329 include. Replace alloca () with __builtin_alloca ().
3330 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
3331
3332 2019-10-01 Jakub Jelinek <jakub@redhat.com>
3333
3334 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
3335 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
3336 * oacc-parallel.c: Don't include "libgomp_g.h".
3337 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
3338 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
3339 * aclocal.m4: Regenerated.
3340 * config.h.in: Regenerated.
3341 * configure: Regenerated.
3342 * Makefile.in: Regenerated.
3343
3344 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
3345
3346 * libgomp_g.h: Include stdint.h instead of gstdint.h.
3347
3348 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
3349
3350 * configure: Regenerate.
3351
3352 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
3353
3354 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
3355 string is initialized.
3356
3357 2019-09-06 Florian Weimer <fweimer@redhat.com>
3358
3359 * configure: Regenerate.
3360
3361 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
3362
3363 PR other/79543
3364 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
3365 scanning to conform to the GNU Coding Standards.
3366 * configure: Regenerate.
3367
3368 2019-08-28 Jakub Jelinek <jakub@redhat.com>
3369
3370 PR libgomp/91530
3371 * testsuite/libgomp.c/scan-21.c: New test.
3372 * testsuite/libgomp.c/scan-22.c: New test.
3373
3374 2019-08-27 Jakub Jelinek <jakub@redhat.com>
3375
3376 PR libgomp/91530
3377 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
3378 targets.
3379 * testsuite/libgomp.c/scan-12.c: Likewise.
3380 * testsuite/libgomp.c/scan-13.c: Likewise.
3381 * testsuite/libgomp.c/scan-14.c: Likewise.
3382 * testsuite/libgomp.c/scan-15.c: Likewise.
3383 * testsuite/libgomp.c/scan-16.c: Likewise.
3384 * testsuite/libgomp.c/scan-17.c: Likewise.
3385 * testsuite/libgomp.c/scan-18.c: Likewise.
3386 * testsuite/libgomp.c/scan-19.c: Likewise.
3387 * testsuite/libgomp.c/scan-20.c: Likewise.
3388 * testsuite/libgomp.c++/scan-9.C: Likewise.
3389 * testsuite/libgomp.c++/scan-10.C: Likewise.
3390 * testsuite/libgomp.c++/scan-11.C: Likewise.
3391 * testsuite/libgomp.c++/scan-12.C: Likewise.
3392 * testsuite/libgomp.c++/scan-14.C: Likewise.
3393 * testsuite/libgomp.c++/scan-15.C: Likewise.
3394 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
3395 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
3396 * testsuite/libgomp.c++/scan-16.C: Likewise.
3397
3398 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
3399
3400 PR fortran/91473
3401 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
3402 -std=legacy so invalid code in the test case is accepted.
3403
3404 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
3405
3406 PR fortran/91422
3407 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
3408 dimension.
3409
3410 2019-08-08 Jakub Jelinek <jakub@redhat.com>
3411
3412 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
3413 perform the lookup in the first loop only if !not_found_cnt, otherwise
3414 perform lookups for it in the second loop guarded with
3415 if (not_found_cnt || has_firstprivate).
3416 * testsuite/libgomp.c/target-37.c: New test.
3417 * testsuite/libgomp.c++/target-22.C: New test.
3418
3419 2019-08-07 Jakub Jelinek <jakub@redhat.com>
3420
3421 * testsuite/libgomp.c/target-18.c (struct S): New type.
3422 (foo): Use use_device_addr clause instead of use_device_ptr clause
3423 where required by OpenMP 5.0, add further tests for both use_device_ptr
3424 and use_device_addr clauses.
3425 * testsuite/libgomp.c++/target-9.C (struct S): New type.
3426 (foo): Use use_device_addr clause instead of use_device_ptr clause
3427 where required by OpenMP 5.0, add further tests for both use_device_ptr
3428 and use_device_addr clauses. Add t and u arguments.
3429 (main): Adjust caller.
3430
3431 2019-08-06 Jakub Jelinek <jakub@redhat.com>
3432
3433 * testsuite/libgomp.c++/loop-13.C: New test.
3434 * testsuite/libgomp.c++/loop-14.C: New test.
3435 * testsuite/libgomp.c++/loop-15.C: New test.
3436
3437 2019-07-31 Jakub Jelinek <jakub@redhat.com>
3438
3439 PR middle-end/91301
3440 * testsuite/libgomp.c++/for-27.C: New test.
3441
3442 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
3443
3444 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
3445 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
3446
3447 2019-07-20 Jakub Jelinek <jakub@redhat.com>
3448
3449 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
3450
3451 2019-07-08 Jakub Jelinek <jakub@redhat.com>
3452
3453 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
3454 * testsuite/libgomp.c++/scan-16.C: Likewise.
3455
3456 2019-07-06 Jakub Jelinek <jakub@redhat.com>
3457
3458 * testsuite/libgomp.c/scan-19.c: New test.
3459 * testsuite/libgomp.c/scan-20.c: New test.
3460
3461 * testsuite/libgomp.c/scan-11.c: New test.
3462 * testsuite/libgomp.c/scan-12.c: New test.
3463 * testsuite/libgomp.c/scan-13.c: New test.
3464 * testsuite/libgomp.c/scan-14.c: New test.
3465 * testsuite/libgomp.c/scan-15.c: New test.
3466 * testsuite/libgomp.c/scan-16.c: New test.
3467 * testsuite/libgomp.c/scan-17.c: New test.
3468 * testsuite/libgomp.c/scan-18.c: New test.
3469 * testsuite/libgomp.c++/scan-9.C: New test.
3470 * testsuite/libgomp.c++/scan-10.C: New test.
3471 * testsuite/libgomp.c++/scan-11.C: New test.
3472 * testsuite/libgomp.c++/scan-12.C: New test.
3473 * testsuite/libgomp.c++/scan-13.C: New test.
3474 * testsuite/libgomp.c++/scan-14.C: New test.
3475 * testsuite/libgomp.c++/scan-15.C: New test.
3476 * testsuite/libgomp.c++/scan-16.C: New test.
3477
3478 2019-07-04 Jakub Jelinek <jakub@redhat.com>
3479
3480 * testsuite/libgomp.c/scan-9.c: New test.
3481 * testsuite/libgomp.c/scan-10.c: New test.
3482
3483 2019-07-03 Jakub Jelinek <jakub@redhat.com>
3484
3485 * testsuite/libgomp.c++/scan-1.C: New test.
3486 * testsuite/libgomp.c++/scan-2.C: New test.
3487 * testsuite/libgomp.c++/scan-3.C: New test.
3488 * testsuite/libgomp.c++/scan-4.C: New test.
3489 * testsuite/libgomp.c++/scan-5.C: New test.
3490 * testsuite/libgomp.c++/scan-6.C: New test.
3491 * testsuite/libgomp.c++/scan-7.C: New test.
3492 * testsuite/libgomp.c++/scan-8.C: New test.
3493 * testsuite/libgomp.c/scan-1.c: New test.
3494 * testsuite/libgomp.c/scan-2.c: New test.
3495 * testsuite/libgomp.c/scan-3.c: New test.
3496 * testsuite/libgomp.c/scan-4.c: New test.
3497 * testsuite/libgomp.c/scan-5.c: New test.
3498 * testsuite/libgomp.c/scan-6.c: New test.
3499 * testsuite/libgomp.c/scan-7.c: New test.
3500 * testsuite/libgomp.c/scan-8.c: New test.
3501
3502 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
3503
3504 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
3505 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
3506 Likewise.
3507
3508 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
3509 check.
3510
3511 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
3512
3513 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
3514 file.
3515
3516 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
3517
3518 PR fortran/90743
3519 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
3520 case.
3521 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
3522 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
3523 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
3524 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
3525
3526 PR testsuite/90861
3527 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
3528
3529 PR middle-end/90862
3530 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
3531
3532 2019-06-16 Tom de Vries <tdevries@suse.de>
3533
3534 PR tree-optimization/89376
3535 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
3536
3537 2019-06-15 Tom de Vries <tdevries@suse.de>
3538
3539 PR tree-optimization/89713
3540 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
3541 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
3542
3543 2019-06-15 Jakub Jelinek <jakub@redhat.com>
3544
3545 PR middle-end/90779
3546 * testsuite/libgomp.c/pr90779.c: New test.
3547 * testsuite/libgomp.fortran/pr90779.f90: New test.
3548
3549 2019-06-15 Tom de Vries <tdevries@suse.de>
3550
3551 PR tree-optimization/90009
3552 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
3553
3554 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
3555
3556 PR tree-optimization/89713
3557 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
3558
3559 2019-06-11 Jakub Jelinek <jakub@redhat.com>
3560
3561 PR target/90811
3562 * testsuite/libgomp.c/pr90811.c: New test.
3563
3564 2019-06-05 Jakub Jelinek <jakub@redhat.com>
3565
3566 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
3567 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
3568
3569 2019-06-04 Jakub Jelinek <jakub@redhat.com>
3570
3571 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
3572 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
3573 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
3574 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
3575
3576 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3577
3578 * configure.ac: Call AX_COUNT_CPUS.
3579 Substitute CPU_COUNT.
3580 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
3581 count fallback.
3582 * aclocal.m4: Regenerate.
3583 * configure: Regenerate.
3584 * Makefile.in, testsuite/Makefile.in: Regenerate.
3585
3586 2019-05-29 Jakub Jelinek <jakub@redhat.com>
3587
3588 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
3589 to ...
3590 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
3591 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
3592 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
3593
3594 2019-05-27 Jakub Jelinek <jakub@redhat.com>
3595
3596 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
3597
3598 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
3599
3600 PR libgomp/90641
3601 * work.c (gomp_init_work_share): Instead of aligning final ordered
3602 value to multiples of long long alignment, align to that the
3603 first part (ordered team ids) and if inline_ordered_team_ids
3604 is not on a long long alignment boundary within the structure,
3605 use __alignof__ (long long) - 1 pad size always.
3606 * loop.c (GOMP_loop_start): Fix *mem computation if
3607 inline_ordered_team_ids is not aligned on long long alignment boundary
3608 within the structure.
3609 * loop-ull.c (GOMP_loop_ull_start): Likewise.
3610 * sections.c (GOMP_sections2_start): Likewise.
3611
3612 2019-05-24 Jakub Jelinek <jakub@redhat.com>
3613
3614 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
3615 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
3616
3617 PR libgomp/90585
3618 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
3619 HAVE_INTTYPES_H is defined.
3620 (print_uint64_t): New typedef.
3621 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
3622 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
3623 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
3624 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
3625 before casting to void *.
3626 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
3627 * oacc-mem.c: Don't include config.h nor stdint.h.
3628 * target.c: Don't include config.h.
3629 * oacc-cuda.c: Likewise.
3630 * oacc-host.c: Don't include stdint.h.
3631
3632 2019-05-20 Jakub Jelinek <jakub@redhat.com>
3633
3634 PR libgomp/90527
3635 * alloc.c (_GNU_SOURCE): Define.
3636
3637 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
3638
3639 * acc_prof.h: New file.
3640 * oacc-profiling.c: Likewise.
3641 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
3642 Add these, respectively.
3643 * Makefile.in: Regenerate.
3644 * env.c (initialize_env): Call goacc_profiling_initialize.
3645 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
3646 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
3647 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
3648 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
3649 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
3650 acc_prof_register, acc_prof_unregister, and acc_register_library.
3651 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
3652 GOMP_PLUGIN_goacc_thread.
3653 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
3654 prof_callbacks_enabled members.
3655 (goacc_prof_enabled, goacc_profiling_initialize)
3656 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
3657 (goacc_profiling_dispatch): Declare.
3658 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
3659 (GOACC_PROFILING_SETUP_P): Define.
3660 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
3661 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
3662 OpenACC Profiling Interface.
3663 * oacc-cuda.c (acc_get_current_cuda_device)
3664 (acc_get_current_cuda_context, acc_get_cuda_stream)
3665 (acc_set_cuda_stream): Likewise.
3666 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
3667 (acc_init, acc_set_device_type, acc_get_device_type)
3668 (acc_get_device_num, goacc_lazy_initialize): Likewise.
3669 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
3670 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
3671 (acc_unmap_data, present_create_copy, delete_copyout)
3672 (update_dev_host): Likewise.
3673 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
3674 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
3675 Likewise.
3676 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
3677 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
3678 Likewise.
3679 * libgomp.texi: Update.
3680 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
3681 file.
3682 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
3683 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3684 Likewise.
3685 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
3686 Likewise.
3687 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
3688 Likewise.
3689 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
3690 Likewise.
3691
3692 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
3693
3694 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
3695 (struct goacc_asyncqueue_list): Likewise.
3696 (goacc_aq): Likewise.
3697 (goacc_aq_list): Likewise.
3698 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
3699 (GOMP_OFFLOAD_openacc_async_test): Remove.
3700 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
3701 (GOMP_OFFLOAD_openacc_async_wait): Remove.
3702 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
3703 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
3704 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
3705 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
3706 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
3707 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
3708 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
3709 (GOMP_OFFLOAD_openacc_async_exec): Declare.
3710 (GOMP_OFFLOAD_openacc_async_construct): Declare.
3711 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
3712 (GOMP_OFFLOAD_openacc_async_test): Declare.
3713 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
3714 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
3715 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
3716 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
3717 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
3718
3719 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
3720 (gomp_acc_insert_pointer): Adjust declaration.
3721 (gomp_copy_host2dev): New declaration.
3722 (gomp_copy_dev2host): Likewise.
3723 (gomp_map_vars_async): Likewise.
3724 (gomp_unmap_tgt): Likewise.
3725 (gomp_unmap_vars_async): Likewise.
3726 (gomp_fini_device): Likewise.
3727
3728 * oacc-async.c (get_goacc_thread): New function.
3729 (get_goacc_thread_device): New function.
3730 (lookup_goacc_asyncqueue): New function.
3731 (get_goacc_asyncqueue): New function.
3732 (acc_async_test): Adjust code to use new async design.
3733 (acc_async_test_all): Likewise.
3734 (acc_wait): Likewise.
3735 (acc_wait_async): Likewise.
3736 (acc_wait_all): Likewise.
3737 (acc_wait_all_async): Likewise.
3738 (goacc_async_free): New function.
3739 (goacc_init_asyncqueues): Likewise.
3740 (goacc_fini_asyncqueues): Likewise.
3741 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
3742 design.
3743 (acc_set_cuda_stream): Likewise.
3744 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
3745 (host_openacc_register_async_cleanup): Remove.
3746 (host_openacc_async_exec): New function.
3747 (host_openacc_async_test): Adjust parameters.
3748 (host_openacc_async_test_all): Remove.
3749 (host_openacc_async_wait): Remove.
3750 (host_openacc_async_wait_async): Remove.
3751 (host_openacc_async_wait_all): Remove.
3752 (host_openacc_async_wait_all_async): Remove.
3753 (host_openacc_async_set_async): Remove.
3754 (host_openacc_async_synchronize): New function.
3755 (host_openacc_async_serialize): New function.
3756 (host_openacc_async_host2dev): New function.
3757 (host_openacc_async_dev2host): New function.
3758 (host_openacc_async_queue_callback): New function.
3759 (host_openacc_async_construct): New function.
3760 (host_openacc_async_destruct): New function.
3761 (struct gomp_device_descr host_dispatch): Remove initialization of old
3762 interface, add initialization of new async sub-struct.
3763 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
3764 (goacc_attach_host_thread_to_device): Remove old async code usage.
3765 * oacc-int.h (goacc_init_asyncqueues): New declaration.
3766 (goacc_fini_asyncqueues): Likewise.
3767 (goacc_async_copyout_unmap_vars): Likewise.
3768 (goacc_async_free): Likewise.
3769 (get_goacc_asyncqueue): Likewise.
3770 (lookup_goacc_asyncqueue): Likewise.
3771 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
3772 design.
3773 (present_create_copy): Adjust code to use new async design.
3774 (delete_copyout): Likewise.
3775 (update_dev_host): Likewise.
3776 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
3777 async design.
3778 (gomp_acc_remove_pointer): Adjust code to use new async design.
3779 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
3780 design.
3781 (GOACC_enter_exit_data): Likewise.
3782 (goacc_wait): Likewise.
3783 (GOACC_update): Likewise.
3784 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
3785 when called, warn as obsolete in comment.
3786 * target.c (goacc_device_copy_async): New function.
3787 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
3788 add goacc_device_copy_async case.
3789 (gomp_copy_dev2host): Likewise.
3790 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
3791 (gomp_map_pointer): Likewise.
3792 (gomp_map_fields_existing): Likewise.
3793 (gomp_map_vars_internal): New always_inline function, renamed from
3794 gomp_map_vars.
3795 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
3796 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
3797 passing goacc_asyncqueue argument.
3798 (gomp_unmap_tgt): Remove static, add attribute_hidden.
3799 (gomp_unref_tgt): New function.
3800 (gomp_unmap_vars_internal): New always_inline function, renamed from
3801 gomp_unmap_vars.
3802 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
3803 (gomp_unmap_vars_async): Implement by calling
3804 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
3805 (gomp_fini_device): New function.
3806 (gomp_exit_data): Adjust gomp_copy_dev2host call.
3807 (gomp_load_plugin_for_device): Remove old interface, adjust to load
3808 new async interface.
3809 (gomp_target_fini): Adjust code to call gomp_fini_device.
3810
3811 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
3812 (struct ptx_stream): Remove.
3813 (struct nvptx_thread): Remove current_stream field.
3814 (cuda_map_create): Remove.
3815 (cuda_map_destroy): Remove.
3816 (map_init): Remove.
3817 (map_fini): Remove.
3818 (map_pop): Remove.
3819 (map_push): Remove.
3820 (struct goacc_asyncqueue): Define.
3821 (struct nvptx_callback): Define.
3822 (struct ptx_free_block): Define.
3823 (struct ptx_device): Remove null_stream, active_streams, async_streams,
3824 stream_lock, and next fields.
3825 (enum ptx_event_type): Remove.
3826 (struct ptx_event): Remove.
3827 (ptx_event_lock): Remove.
3828 (ptx_events): Remove.
3829 (init_streams_for_device): Remove.
3830 (fini_streams_for_device): Remove.
3831 (select_stream_for_async): Remove.
3832 (nvptx_init): Remove ptx_events and ptx_event_lock references.
3833 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
3834 case.
3835 (nvptx_open_device): Add free_blocks initialization, remove
3836 init_streams_for_device call.
3837 (nvptx_close_device): Remove fini_streams_for_device call, add
3838 free_blocks destruct code.
3839 (event_gc): Remove.
3840 (event_add): Remove.
3841 (nvptx_exec): Adjust parameters and code.
3842 (nvptx_free): Likewise.
3843 (nvptx_host2dev): Remove.
3844 (nvptx_dev2host): Remove.
3845 (nvptx_set_async): Remove.
3846 (nvptx_async_test): Remove.
3847 (nvptx_async_test_all): Remove.
3848 (nvptx_wait): Remove.
3849 (nvptx_wait_async): Remove.
3850 (nvptx_wait_all): Remove.
3851 (nvptx_wait_all_async): Remove.
3852 (nvptx_get_cuda_stream): Remove.
3853 (nvptx_set_cuda_stream): Remove.
3854 (GOMP_OFFLOAD_alloc): Adjust code.
3855 (GOMP_OFFLOAD_free): Likewise.
3856 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
3857 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
3858 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
3859 (GOMP_OFFLOAD_openacc_async_wait): Remove.
3860 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
3861 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
3862 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
3863 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
3864 (cuda_free_argmem): New function.
3865 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
3866 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
3867 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
3868 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
3869 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
3870 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
3871 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
3872 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
3873 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
3874 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
3875 (cuda_callback_wrapper): New function.
3876 (cuda_memcpy_sanity_check): New function.
3877 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
3878 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
3879 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
3880 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
3881
3882 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
3883
3884 PR target/87835
3885 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
3886
3887 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
3888
3889 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
3890
3891 2019-03-27 Kevin Buettner <kevinb@redhat.com>
3892
3893 * team.c (gomp_team_start): Initialize pool->threads[0].
3894
3895 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
3896
3897 * testsuite/libgomp.oacc-c++/c++.exp: Specify
3898 "-foffload=$offload_target".
3899 * testsuite/libgomp.oacc-c/c.exp: Likewise.
3900 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
3901 * testsuite/lib/libgomp.exp
3902 (check_effective_target_openacc_nvidia_accel_configured): Remove,
3903 as (conceptually) merged into
3904 check_effective_target_openacc_nvidia_accel_selected. Adjust all
3905 users.
3906
3907 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
3908 * testsuite/libgomp-test-support.exp.in: Adjust.
3909 * testsuite/lib/libgomp.exp: Likewise. Don't populate
3910 openacc_device_types_s.
3911 (offload_target_to_openacc_device_type): New proc.
3912 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
3913 * testsuite/libgomp.oacc-c/c.exp: Likewise.
3914 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
3915 * Makefile.in: Regenerate.
3916 * configure: Likewise.
3917 * testsuite/Makefile.in: Likewise.
3918
3919 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
3920 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
3921 instead of OFFLOAD_TARGETS.
3922 * target.c (gomp_target_init): Adjust.
3923 * testsuite/libgomp-test-support.exp.in: Likewise.
3924 * testsuite/lib/libgomp.exp: Likewise. Populate
3925 openacc_device_types_s instead of offload_targets_s_openacc.
3926 (check_effective_target_openacc_nvidia_accel_selected)
3927 (check_effective_target_openacc_host_selected): Adjust.
3928 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
3929 * testsuite/libgomp.oacc-c/c.exp: Likewise.
3930 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
3931 * Makefile.in: Regenerate.
3932 * config.h.in: Likewise.
3933 * configure: Likewise.
3934 * testsuite/Makefile.in: Likewise.
3935
3936 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
3937 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
3938 "offloading: supported, but hardware not accessible".
3939 * testsuite/libgomp.oacc-c/c.exp: Likewise.
3940 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
3941
3942 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
3943
3944 PR c/87924
3945 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
3946 goacc_wait().
3947 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
3948 and related adjustment.
3949
3950 2019-01-30 Jakub Jelinek <jakub@redhat.com>
3951
3952 PR c++/88988
3953 * testsuite/libgomp.c++/pr88988.C: New test.
3954
3955 2019-01-28 Jakub Jelinek <jakub@redhat.com>
3956
3957 PR middle-end/89002
3958 * testsuite/libgomp.c/pr89002.c: New test.
3959
3960 2019-01-28 Richard Biener <rguenther@suse.de>
3961
3962 PR testsuite/89064
3963 PR tree-optimization/86865
3964 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
3965
3966 2019-01-24 Tom de Vries <tdevries@suse.de>
3967
3968 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
3969 once instantiated_devices drops to 0.
3970
3971 2019-01-23 Tom de Vries <tdevries@suse.de>
3972
3973 PR target/PR88946
3974 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
3975 cuMemFree.
3976 (nvptx_exec): Don't call map_push if mapnum == 0.
3977 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
3978
3979 2019-01-23 Tom de Vries <tdevries@suse.de>
3980
3981 PR target/88941
3982 PR target/88939
3983 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
3984 (map_fini): Remove "assert (!s->map->active)".
3985 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
3986
3987 2019-01-23 Tom de Vries <tdevries@suse.de>
3988
3989 PR target/87835
3990 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
3991 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
3992
3993 2019-01-15 Tom de Vries <tdevries@suse.de>
3994
3995 PR target/80547
3996 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
3997 New test.
3998
3999 2019-01-12 Tom de Vries <tdevries@suse.de>
4000
4001 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
4002 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
4003 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
4004 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
4005
4006 2019-01-12 Tom de Vries <tdevries@suse.de>
4007
4008 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
4009
4010 2019-01-12 Tom de Vries <tdevries@suse.de>
4011
4012 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
4013 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
4014 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
4015
4016 2019-01-12 Tom de Vries <tdevries@suse.de>
4017
4018 PR target/85486
4019 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
4020 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
4021
4022 2019-01-12 Tom de Vries <tdevries@suse.de>
4023
4024 PR target/85381
4025 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
4026 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
4027
4028 2019-01-12 Tom de Vries <tdevries@suse.de>
4029
4030 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
4031 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
4032 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
4033
4034 2019-01-12 Tom de Vries <tdevries@suse.de>
4035
4036 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
4037 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
4038 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
4039
4040 2019-01-12 Tom de Vries <tdevries@suse.de>
4041
4042 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
4043 resources diagnostic.
4044
4045 2019-01-12 Tom de Vries <tdevries@suse.de>
4046
4047 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
4048 vector length to be 128.
4049 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
4050 length 2097152 to be reduced to 1024 instead of 32.
4051
4052 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
4053 James Norris <jnorris@codesourcery.com>
4054
4055 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
4056 Library Routines", and "Environment Variables".
4057
4058 2019-01-11 Tom de Vries <tdevries@suse.de>
4059
4060 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
4061 num_workers 16.
4062
4063 2019-01-11 Tom de Vries <tdevries@suse.de>
4064
4065 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
4066 -foffload=-w.
4067 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
4068 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
4069 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
4070 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
4071
4072 2019-01-11 Tom de Vries <tdevries@suse.de>
4073
4074 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
4075 test.
4076
4077 2019-01-10 Nathan Sidwell <nathan@acm.org>
4078 Julian Brown <julian@codesourcery.com>
4079
4080 PR lto/71959
4081 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
4082 * testsuite/libgomp.oacc-c++/pr71959.C: New.
4083
4084 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
4085
4086 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
4087 and paste code.
4088
4089 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
4090
4091 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
4092 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
4093 write.
4094
4095 2019-01-09 Tom de Vries <tdevries@suse.de>
4096
4097 PR target/88756
4098 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
4099 #define instead of "const int".
4100 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
4101 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
4102 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
4103 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
4104
4105 2019-01-09 Tom de Vries <tdevries@suse.de>
4106
4107 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
4108 one worker.
4109
4110 2019-01-07 Tom de Vries <tdevries@suse.de>
4111
4112 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
4113 GOMP_OPENACC_DIM argument.
4114
4115 2019-01-03 Tom de Vries <tdevries@suse.de>
4116
4117 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
4118 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
4119
4120 2019-01-01 Jakub Jelinek <jakub@redhat.com>
4121
4122 Update copyright years.
4123
4124 2019-01-01 Jakub Jelinek <jakub@redhat.com>
4125
4126 * libgomp.texi: Bump @copying's copyright year.
4127
4128 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
4129
4130 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
4131 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
4132 (GOACC_declare): Redefine the "device" argument to "flags".
4133
4134 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
4135 Cesar Philippidis <cesar@codesourcery.com>
4136
4137 * target.c (struct gomp_coalesce_chunk): New structure.
4138 (struct gomp_coalesce_buf): Update the chunks member to use that
4139 type. Adjust all users.
4140
4141 2018-12-19 Tom de Vries <tdevries@suse.de>
4142
4143 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
4144 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
4145 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
4146
4147 2018-12-19 Tom de Vries <tdevries@suse.de>
4148
4149 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
4150 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
4151 gcc/testsuite/gcc.dg/goacc.
4152 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
4153
4154 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
4155 Chung-Lin Tang <cltang@codesourcery.com>
4156
4157 * oacc-mem.c (acc_present_or_create): Remove definition and change
4158 to alias of acc_create.
4159 (acc_present_or_copyin): Remove definition and change to alias of
4160 acc_copyin.
4161 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
4162 of acc_present_or_create.
4163 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
4164 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
4165 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
4166 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
4167 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
4168 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
4169 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
4170 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
4171 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
4172 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
4173 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
4174 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
4175 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
4176 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
4177 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
4178 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
4179
4180 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
4181
4182 PR libgomp/88495
4183 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
4184 "identical parameters".
4185 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
4186 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
4187
4188 PR libgomp/88484
4189 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
4190 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
4191
4192 PR libgomp/88407
4193 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
4194 (nvptx_wait_async): Unseen async-argument is a no-op.
4195 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
4196 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
4197 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
4198 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
4199 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
4200 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
4201 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
4202 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
4203 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
4204
4205 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
4206 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
4207
4208 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
4209
4210 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
4211 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
4212 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
4213
4214 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
4215
4216 PR libgomp/88370
4217 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
4218 (acc_set_cuda_stream): Clarify.
4219 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
4220 "async_valid_p".
4221 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
4222 acc_async_sync".
4223 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
4224 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
4225 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
4226 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
4227
4228 2018-12-14 Tom de Vries <tdevries@suse.de>
4229
4230 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
4231 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
4232 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
4233 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
4234 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
4235
4236 2018-12-13 Tom de Vries <tdevries@suse.de>
4237
4238 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
4239 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
4240 * fortran.c (omp_display_affinity_): ... here.
4241 * libgomp.h (gomp_print_string): Declare.
4242 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
4243 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
4244 write.
4245
4246 2018-12-13 Jakub Jelinek <jakub@redhat.com>
4247
4248 PR libgomp/88460
4249 * testsuite/libgomp.c++/for-24.C (results): Include it in
4250 omp declare target region.
4251 (main): Use map (always, tofrom: results) instead of
4252 map (tofrom: results).
4253
4254 2018-12-12 Jakub Jelinek <jakub@redhat.com>
4255
4256 PR fortran/88463
4257 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
4258 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
4259
4260 * testsuite/libgomp.c-c++-common/for-16.c: New test.
4261
4262 2018-12-12 Andreas Schwab <schwab@suse.de>
4263
4264 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
4265 clobbered.
4266
4267 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
4268
4269 PR fortran/88411
4270 * testsuite/libgomp.fortran/async_io_8.f90: New test.
4271
4272 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
4273 Jakub Jelinek <jakub@redhat.com>
4274
4275 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
4276 devicep->host2dev_func.
4277
4278 2018-12-08 Jakub Jelinek <jakub@redhat.com>
4279
4280 PR libgomp/87995
4281 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
4282 tls_runtime effective target.
4283 (t): New threadprivate variable.
4284 (main): Set t in threads which execute iterations of the worksharing
4285 loop. Propagate that to the task after the loop and don't abort
4286 if the current taskgroup hasn't been cancelled.
4287
4288 2018-12-02 Jakub Jelinek <jakub@redhat.com>
4289
4290 * testsuite/libgomp.c/task-reduction-3.c: New test.
4291
4292 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
4293
4294 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
4295
4296 PR libgomp/88288
4297 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
4298 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
4299
4300 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
4301
4302 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
4303
4304 2018-10-19 Richard Biener <rguenther@suse.de>
4305
4306 PR tree-optimization/88182
4307 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
4308
4309 2018-11-26 Jakub Jelinek <jakub@redhat.com>
4310
4311 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
4312 (RUNTEST): Don't define.
4313 (RUNTESTDEFAULTFLAGS): Add.
4314 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
4315 (distclean-am): Depend on distclean-DEJAGNU.
4316 (check-am): If -j% option is present in MFLAGS and if
4317 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
4318 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
4319 * testsuite/Makefile.in: Regenerated.
4320
4321 2018-11-26 Richard Biener <rguenther@suse.de>
4322
4323 PR tree-optimization/88182
4324 * testsuite/libgomp.c++/pr88182.C: New testcase.
4325
4326 2018-11-20 Jakub Jelinek <jakub@redhat.com>
4327
4328 PR bootstrap/88106
4329 * config/mingw32/affinity-fmt.c: New file.
4330
4331 2018-11-09 Jakub Jelinek <jakub@redhat.com>
4332
4333 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
4334 (gomp_display_affinity): Use __builtin_choose_expr to handle
4335 properly handle argument having integral, or pointer or some other
4336 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
4337 with uint64_t type instead of %llx and unsigned long long.
4338
4339 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
4340 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
4341
4342 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4343
4344 * affinity.c: Include <string.h>, <stdio.h>.
4345 (gomp_display_affinity_place): Remove cpusetp.
4346 * teams.c: Include <limits.h>.
4347
4348 2018-11-08 Jakub Jelinek <jakub@redhat.com>
4349
4350 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
4351 in_reduction clause for s[0].
4352
4353 * affinity.c (gomp_display_affinity_place): New function.
4354 * affinity-fmt.c: New file.
4355 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
4356 * config/linux/affinity.c (gomp_display_affinity_place): New function.
4357 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
4358 Move these functions to ...
4359 * config/nvptx/teams.c: ... here. New file.
4360 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
4361 New functions.
4362 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
4363 functions.
4364 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
4365 and _aligned_malloc.
4366 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
4367 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
4368 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
4369 gomp_affinity_format_len): New variables.
4370 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
4371 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
4372 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
4373 modifiers. Display (non-default) chunk sizes. Print
4374 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
4375 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
4376 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
4377 * fortran.c: Include stdio.h and string.h.
4378 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
4379 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
4380 (omp_set_affinity_format_, omp_get_affinity_format_,
4381 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
4382 omp_pause_resource_all_): New functions.
4383 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
4384 switch.
4385 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
4386 functions to ...
4387 * teams.c: ... here. New file.
4388 * libgomp_g.h: Include gstdint.h.
4389 (GOMP_loop_nonmonotonic_runtime_start,
4390 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
4391 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
4392 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
4393 GOMP_parallel_loop_nonmonotonic_runtime,
4394 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
4395 GOMP_loop_ull_nonmonotonic_runtime_start,
4396 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
4397 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
4398 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
4399 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
4400 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
4401 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
4402 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
4403 GOMP_teams_reg): Declare.
4404 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
4405 gomp_aligned_alloc uses fallback implementation.
4406 (gomp_aligned_alloc, gomp_aligned_free): Declare.
4407 (enum gomp_schedule_type): Add GFS_MONOTONIC.
4408 (struct gomp_doacross_work_share): Add extra field.
4409 (struct gomp_work_share): Add task_reductions field.
4410 (struct gomp_taskgroup): Add workshare and reductions fields.
4411 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
4412 (gomp_thread_handle): New typedef.
4413 (gomp_display_affinity_place, gomp_set_affinity_format,
4414 gomp_display_string, gomp_display_affinity,
4415 gomp_display_affinity_thread): Declare.
4416 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
4417 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
4418 gomp_workshare_task_reduction_register): Declare.
4419 (gomp_team_start): Add taskgroup argument.
4420 (gomp_pause_host): Declare.
4421 (gomp_init_work_share, gomp_work_share_start): Change bool argument
4422 to size_t.
4423 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
4424 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
4425 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
4426 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
4427 GOMP_loop_ull_doacross_start,
4428 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
4429 GOMP_loop_maybe_nonmonotonic_runtime_next,
4430 GOMP_loop_maybe_nonmonotonic_runtime_start,
4431 GOMP_loop_nonmonotonic_runtime_next,
4432 GOMP_loop_nonmonotonic_runtime_start,
4433 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
4434 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
4435 GOMP_loop_ull_nonmonotonic_runtime_next,
4436 GOMP_loop_ull_nonmonotonic_runtime_start,
4437 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
4438 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
4439 GOMP_taskgroup_reduction_register,
4440 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
4441 GOMP_teams_reg and GOMP_taskwait_depend.
4442 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
4443 omp_{capture,display}_affinity{,_}, and
4444 omp_[gs]et_affinity_format{,_}.
4445 * loop.c: Include string.h.
4446 (GOMP_loop_runtime_next): Add ialias.
4447 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
4448 (gomp_loop_static_start, gomp_loop_dynamic_start,
4449 gomp_loop_guided_start, gomp_loop_ordered_static_start,
4450 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
4451 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
4452 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
4453 or gomp_doacross_init callers.
4454 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
4455 GOMP_loop_doacross_start): New functions.
4456 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
4457 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
4458 Mask off GFS_MONOTONIC bit.
4459 (GOMP_loop_maybe_nonmonotonic_runtime_next,
4460 GOMP_loop_maybe_nonmonotonic_runtime_start,
4461 GOMP_loop_nonmonotonic_runtime_next,
4462 GOMP_loop_nonmonotonic_runtime_start,
4463 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
4464 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
4465 functions.
4466 (gomp_parallel_loop_start): Pass NULL as taskgroup to
4467 gomp_team_start.
4468 * loop_ull.c: Include string.h.
4469 (GOMP_loop_ull_runtime_next): Add ialias.
4470 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
4471 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
4472 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
4473 gomp_loop_ull_ordered_dynamic_start,
4474 gomp_loop_ull_ordered_guided_start,
4475 gomp_loop_ull_doacross_static_start,
4476 gomp_loop_ull_doacross_dynamic_start,
4477 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
4478 and gomp_doacross_ull_init callers.
4479 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
4480 GOMP_loop_ull_doacross_start): New functions.
4481 (GOMP_loop_ull_runtime_start,
4482 GOMP_loop_ull_ordered_runtime_start,
4483 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
4484 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
4485 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
4486 GOMP_loop_ull_nonmonotonic_runtime_next,
4487 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
4488 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
4489 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
4490 (omp_pause_resource_t, omp_depend_t): New typedefs.
4491 (enum omp_lock_hint_t): Renamed to ...
4492 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
4493 enumerators using numbers and omp_lock_hint_* as their aliases.
4494 (omp_lock_hint_t): New typedef. Rename to ...
4495 (omp_sync_hint_t): ... this.
4496 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
4497 omp_sync_hint_t instead of omp_lock_hint_t.
4498 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
4499 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
4500 Declare.
4501 (omp_target_is_present, omp_target_disassociate_ptr):
4502 Change first argument from void * to const void *.
4503 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
4504 from void * to const void *.
4505 (omp_target_associate_ptr): Change first and second arguments from
4506 void * to const void *.
4507 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
4508 omp_pause_hard): New parameters.
4509 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
4510 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
4511 New interfaces.
4512 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
4513 omp_pause_hard): New parameters.
4514 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
4515 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
4516 New externals.
4517 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
4518 EXTRA argument. If not needed to prepare array, if extra is 0,
4519 clear ws->doacross, otherwise allocate just doacross structure and
4520 extra payload. If array is needed, allocate also extra payload.
4521 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
4522 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
4523 doacross == NULL.
4524 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
4525 gomp_team_start.
4526 (GOMP_parallel): Likewise. Formatting fix.
4527 (GOMP_parallel_reductions): New function.
4528 (GOMP_cancellation_point): If taskgroup has workshare
4529 flag set, check cancelled of prev taskgroup if any.
4530 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
4531 on prev taskgroup if any.
4532 * sections.c: Include string.h.
4533 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
4534 (GOMP_sections_start): Adjust gomp_work_share_start caller.
4535 (GOMP_sections2_start): New function.
4536 (GOMP_parallel_sections_start, GOMP_parallel_sections):
4537 Pass NULL as taskgroup to gomp_team_start.
4538 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
4539 gomp_work_share_start callers.
4540 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
4541 If taskgroup has workshare flag set, check cancelled on prev
4542 taskgroup if any. Guard all cancellation tests with
4543 gomp_cancel_var test.
4544 (omp_target_is_present, omp_target_disassociate_ptr):
4545 Change ptr argument from void * to const void *.
4546 (omp_target_memcpy): Change src argument from void * to const void *.
4547 (omp_target_memcpy_rect): Likewise.
4548 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
4549 instead of char * where needed.
4550 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
4551 from void * to const void *.
4552 (omp_pause_resource, omp_pause_resource_all): New functions.
4553 * task.c (gomp_task_handle_depend): Handle new depend array format
4554 in addition to the old. Handle mutexinoutset kinds the same as
4555 inout for now, handle unspecified kinds.
4556 (gomp_create_target_task): If taskgroup has workshare flag set, check
4557 cancelled on prev taskgroup if any. Guard all cancellation tests with
4558 gomp_cancel_var test. Handle new depend array format count in
4559 addition to the old.
4560 (GOMP_task): Likewise. Adjust function comment.
4561 (gomp_task_run_pre): If taskgroup has workshare flag set, check
4562 cancelled on prev taskgroup if any. Guard all cancellation tests with
4563 gomp_cancel_var test.
4564 (GOMP_taskwait_depend): New function.
4565 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
4566 format in addition to the old. Handle mutexinoutset kinds the same as
4567 inout for now, handle unspecified kinds. Fix a function comment typo.
4568 (gomp_taskgroup_init): New function.
4569 (GOMP_taskgroup_start): Use it.
4570 (gomp_reduction_register, gomp_create_artificial_team,
4571 GOMP_taskgroup_reduction_register,
4572 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
4573 gomp_parallel_reduction_register,
4574 gomp_workshare_task_reduction_register,
4575 gomp_workshare_taskgroup_start,
4576 GOMP_workshare_task_reduction_unregister): New functions.
4577 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
4578 check cancelled on prev taskgroup if any. Guard all cancellation
4579 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
4580 by calling GOMP_taskgroup_reduction_register.
4581 * team.c (gomp_thread_attr): Remove comment.
4582 (struct gomp_thread_start_data): Add handle field.
4583 (gomp_thread_start): Call pthread_detach.
4584 (gomp_new_team): Adjust gomp_init_work_share caller.
4585 (gomp_free_pool_helper): Call pthread_detach.
4586 (gomp_team_start): Add taskgroup argument, initialize implicit
4587 tasks' taskgroup field to that. Don't call
4588 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
4589 (gomp_team_end): Determine nesting by thr->ts.level != 0
4590 rather than thr->ts.team != NULL.
4591 (gomp_pause_pool_helper, gomp_pause_host): New functions.
4592 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
4593 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
4594 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
4595 if more than 1 allocate also extra payload at the end of array. Never
4596 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
4597 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
4598 return true instead of ws.
4599 * Makefile.in: Regenerated.
4600 * configure: Regenerated.
4601 * config.h.in: Regenerated.
4602 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
4603 in some cases.
4604 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
4605 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
4606 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
4607 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
4608 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
4609 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
4610 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
4611 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
4612 * testsuite/libgomp.c-c++-common/for-10.c: New test.
4613 * testsuite/libgomp.c-c++-common/for-11.c: New test.
4614 * testsuite/libgomp.c-c++-common/for-12.c: New test.
4615 * testsuite/libgomp.c-c++-common/for-13.c: New test.
4616 * testsuite/libgomp.c-c++-common/for-14.c: New test.
4617 * testsuite/libgomp.c-c++-common/for-15.c: New test.
4618 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
4619 define a different N(test), don't define N(f0) to N(f14), but instead
4620 define N(f20) to N(f34) using != comparisons.
4621 * testsuite/libgomp.c-c++-common/for-7.c: New test.
4622 * testsuite/libgomp.c-c++-common/for-8.c: New test.
4623 * testsuite/libgomp.c-c++-common/for-9.c: New test.
4624 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
4625 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
4626 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
4627 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
4628 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
4629 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
4630 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
4631 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
4632 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
4633 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
4634 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
4635 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
4636 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
4637 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
4638 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
4639 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
4640 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
4641 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
4642 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
4643 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
4644 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
4645 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
4646 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
4647 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
4648 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
4649 * testsuite/libgomp.c++/depend-1.C: New test.
4650 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
4651 * testsuite/libgomp.c++/depobj-1.C: New test.
4652 * testsuite/libgomp.c++/for-16.C: New test.
4653 * testsuite/libgomp.c++/for-21.C: New test.
4654 * testsuite/libgomp.c++/for-22.C: New test.
4655 * testsuite/libgomp.c++/for-23.C: New test.
4656 * testsuite/libgomp.c++/for-24.C: New test.
4657 * testsuite/libgomp.c++/for-25.C: New test.
4658 * testsuite/libgomp.c++/for-26.C: New test.
4659 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
4660 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
4661 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
4662 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
4663 * testsuite/libgomp.c++/task-reduction-10.C: New test.
4664 * testsuite/libgomp.c++/task-reduction-11.C: New test.
4665 * testsuite/libgomp.c++/task-reduction-12.C: New test.
4666 * testsuite/libgomp.c++/task-reduction-13.C: New test.
4667 * testsuite/libgomp.c++/task-reduction-14.C: New test.
4668 * testsuite/libgomp.c++/task-reduction-15.C: New test.
4669 * testsuite/libgomp.c++/task-reduction-16.C: New test.
4670 * testsuite/libgomp.c++/task-reduction-17.C: New test.
4671 * testsuite/libgomp.c++/task-reduction-18.C: New test.
4672 * testsuite/libgomp.c++/task-reduction-19.C: New test.
4673 * testsuite/libgomp.c/task-reduction-1.c: New test.
4674 * testsuite/libgomp.c++/task-reduction-1.C: New test.
4675 * testsuite/libgomp.c/task-reduction-2.c: New test.
4676 * testsuite/libgomp.c++/task-reduction-2.C: New test.
4677 * testsuite/libgomp.c++/task-reduction-3.C: New test.
4678 * testsuite/libgomp.c++/task-reduction-4.C: New test.
4679 * testsuite/libgomp.c++/task-reduction-5.C: New test.
4680 * testsuite/libgomp.c++/task-reduction-6.C: New test.
4681 * testsuite/libgomp.c++/task-reduction-7.C: New test.
4682 * testsuite/libgomp.c++/task-reduction-8.C: New test.
4683 * testsuite/libgomp.c++/task-reduction-9.C: New test.
4684 * testsuite/libgomp.c/teams-1.c: New test.
4685 * testsuite/libgomp.c/teams-2.c: New test.
4686 * testsuite/libgomp.c/thread-limit-4.c: New test.
4687 * testsuite/libgomp.c/thread-limit-5.c: New test.
4688 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
4689
4690 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
4691
4692 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
4693 acc_memcpy_to/from_device functions, now with async parameter.
4694 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
4695 (acc_memcpy_from_device): Likewise.
4696 (acc_memcpy_to_device_async): New API function.
4697 (acc_memcpy_from_device_async): Likewise.
4698 (present_create_copy): Add async parameter and async setting/unsetting.
4699 (acc_create): Adjust present_create_copy call.
4700 (acc_copyin): Likewise.
4701 (acc_present_or_create): Likewise.
4702 (acc_present_or_copyin): Likewise.
4703 (acc_create_async): New API function.
4704 (acc_copyin_async): New API function.
4705 (delete_copyout): Add async parameter and async setting/unsetting.
4706 (acc_delete): Adjust delete_copyout call.
4707 (acc_copyout): Likewise.
4708 (acc_delete_async): New API function.
4709 (acc_copyout_async): Likewise.
4710 (update_dev_host): Add async parameter and async setting/unsetting.
4711 (acc_update_device): Adjust update_dev_host call.
4712 (acc_update_self): Likewise.
4713 (acc_update_device_async): New API function.
4714 (acc_update_self_async): Likewise.
4715 * openacc.h (acc_copyin_async): Declare new API function.
4716 (acc_create_async): Likewise.
4717 (acc_copyout_async): Likewise.
4718 (acc_delete_async): Likewise.
4719 (acc_update_device_async): Likewise.
4720 (acc_update_self_async): Likewise.
4721 (acc_memcpy_to_device_async): Likewise.
4722 (acc_memcpy_from_device_async): Likewise.
4723 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
4724 (acc_copyin_async_64_h): New subroutine.
4725 (acc_copyin_async_array_h): New subroutine.
4726 (acc_create_async_32_h): New subroutine.
4727 (acc_create_async_64_h): New subroutine.
4728 (acc_create_async_array_h): New subroutine.
4729 (acc_copyout_async_32_h): New subroutine.
4730 (acc_copyout_async_64_h): New subroutine.
4731 (acc_copyout_async_array_h): New subroutine.
4732 (acc_delete_async_32_h): New subroutine.
4733 (acc_delete_async_64_h): New subroutine.
4734 (acc_delete_async_array_h): New subroutine.
4735 (acc_update_device_async_32_h): New subroutine.
4736 (acc_update_device_async_64_h): New subroutine.
4737 (acc_update_device_async_array_h): New subroutine.
4738 (acc_update_self_async_32_h): New subroutine.
4739 (acc_update_self_async_64_h): New subroutine.
4740 (acc_update_self_async_array_h): New subroutine.
4741 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
4742 (acc_copyin_async_64_h): New subroutine.
4743 (acc_copyin_async_array_h): New subroutine.
4744 (acc_create_async_32_h): New subroutine.
4745 (acc_create_async_64_h): New subroutine.
4746 (acc_create_async_array_h): New subroutine.
4747 (acc_copyout_async_32_h): New subroutine.
4748 (acc_copyout_async_64_h): New subroutine.
4749 (acc_copyout_async_array_h): New subroutine.
4750 (acc_delete_async_32_h): New subroutine.
4751 (acc_delete_async_64_h): New subroutine.
4752 (acc_delete_async_array_h): New subroutine.
4753 (acc_update_device_async_32_h): New subroutine.
4754 (acc_update_device_async_64_h): New subroutine.
4755 (acc_update_device_async_array_h): New subroutine.
4756 (acc_update_self_async_32_h): New subroutine.
4757 (acc_update_self_async_64_h): New subroutine.
4758 (acc_update_self_async_array_h): New subroutine.
4759 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
4760 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
4761 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
4762 acc_memcpy_to_device_async*, acc_update_device_async*, and
4763 acc_update_self_async* entries.
4764 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
4765 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
4766 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
4767
4768 2018-10-31 Joseph Myers <joseph@codesourcery.com>
4769
4770 PR bootstrap/82856
4771 * Makefile.am: Include multilib.am
4772 (AUTOMAKE_OPTIONS): Add info-in-builddir.
4773 (CLEANFILES): Remove libgomp.info.
4774 * configure.ac: Remove AC_PREREQ.
4775 * testsuite/Makefile.am (RUNTEST): Remove quotes.
4776 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
4777 Regenerate.
4778
4779 2018-10-29 Joseph Myers <joseph@codesourcery.com>
4780 Julian Brown <julian@codesourcery.com>
4781
4782 * testsuite/libgomp.oacc-c++/this.C: New.
4783
4784 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
4785
4786 * plugin/plugin-nvptx.c (struct cuda_map): New.
4787 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
4788 h_tail with (cuda_map *) map.
4789 (cuda_map_create): New function.
4790 (cuda_map_destroy): New function.
4791 (map_init): Update to use a linked list of cuda_map objects.
4792 (map_fini): Likewise.
4793 (map_pop): Likewise.
4794 (map_push): Likewise. Return CUdeviceptr instead of void.
4795 (init_streams_for_device): Remove stales references to ptx_stream
4796 members.
4797 (select_stream_for_async): Likewise.
4798 (nvptx_exec): Update call to map_init.
4799
4800 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
4801 Julian Brown <julian@codesourcery.com>
4802
4803 PR middle-end/86336
4804 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
4805
4806 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
4807 Thomas Koenig <tkoenig@gcc.gnu.org>
4808
4809 PR fortran/25829
4810 * testsuite/libgomp.fortran/async_io_1.f90: New test.
4811 * testsuite/libgomp.fortran/async_io_2.f90: New test.
4812 * testsuite/libgomp.fortran/async_io_3.f90: New test.
4813 * testsuite/libgomp.fortran/async_io_4.f90: New test.
4814 * testsuite/libgomp.fortran/async_io_5.f90: New test.
4815 * testsuite/libgomp.fortran/async_io_6.f90: New test.
4816 * testsuite/libgomp.fortran/async_io_7.f90: New test.
4817
4818 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
4819 Tom de Vries <tdevries@suse.de>
4820
4821 PR target/85590
4822 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
4823 (cuOccupancyMaxPotentialBlockSize): Declare.
4824 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
4825 CUDA_ONE_CALL_MAYBE_NULL.
4826 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
4827 CUoccupancyB2DSize and declare
4828 cuOccupancyMaxPotentialBlockSize.
4829 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
4830 default num_gangs and num_workers when the driver supports it.
4831
4832 2018-08-08 Tom de Vries <tdevries@suse.de>
4833
4834 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
4835 CUDA_ONE_CALL_MAYBE_NULL.
4836 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
4837 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
4838 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
4839 are not found.
4840
4841 2018-08-08 Tom de Vries <tdevries@suse.de>
4842
4843 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
4844 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
4845 present.
4846
4847 2018-08-08 Tom de Vries <tdevries@suse.de>
4848
4849 * plugin/plugin-nvptx.c
4850 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
4851 (nvptx_open_device): Use
4852 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
4853
4854 2018-08-08 Tom de Vries <tdevries@suse.de>
4855
4856 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
4857 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
4858
4859 2018-08-07 Tom de Vries <tdevries@suse.de>
4860
4861 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
4862 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
4863 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
4864 corresponding call in CUDA_ONE_CALL. Add def/undef of
4865 CUDA_ONE_CALL_MAYBE_NULL.
4866 (CUDA_CALL_EXISTS): Define.
4867
4868 2018-08-07 Tom de Vries <tdevries@suse.de>
4869
4870 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
4871 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
4872 corresponding undefs right after.
4873
4874 2018-08-04 Tom de Vries <tdevries@suse.de>
4875
4876 * plugin/configfrag.ac: For --without-cuda-driver, set
4877 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
4878 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
4879 * configure: Regenerate.
4880
4881 2018-08-02 Tom de Vries <tdevries@suse.de>
4882
4883 PR target/86660
4884 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
4885 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
4886 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
4887 Same.
4888 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
4889 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
4890 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
4891
4892 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
4893 Thomas Schwinge <thomas@codesourcery.com>
4894
4895 * config/nvptx/oacc-parallel.c: Truncate.
4896
4897 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
4898 James Norris <jnorris@codesourcery.com>
4899
4900 * plugin/plugin-nvptx.c (struct map): Removed.
4901 (map_init, map_pop): Remove use of struct map.
4902 (map_push): Likewise and change argument list.
4903 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
4904
4905 2018-08-01 Tom de Vries <tdevries@suse.de>
4906
4907 * plugin/cuda-lib.def: New file. Factor out of ...
4908 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
4909 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
4910 using CUDA_CALLS.
4911
4912 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
4913
4914 Revert 'AsyncI/O patch committed'.
4915 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
4916 Thomas Koenig <tkoenig@gcc.gnu.org>
4917
4918 PR fortran/25829
4919 * testsuite/libgomp.fortran/async_io_1.f90: New test.
4920 * testsuite/libgomp.fortran/async_io_2.f90: New test.
4921 * testsuite/libgomp.fortran/async_io_3.f90: New test.
4922 * testsuite/libgomp.fortran/async_io_4.f90: New test.
4923 * testsuite/libgomp.fortran/async_io_5.f90: New test.
4924 * testsuite/libgomp.fortran/async_io_6.f90: New test.
4925 * testsuite/libgomp.fortran/async_io_7.f90: New test.
4926
4927 2018-07-30 Tom de Vries <tdevries@suse.de>
4928
4929 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
4930 (nvptx_exec): Ensure worker and vector default dims don't exceed
4931 targ_fn->max_threads_per_block.
4932
4933 2018-07-30 Tom de Vries <tdevries@suse.de>
4934
4935 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
4936 (nvptx_open_device): Init default_dims for device.
4937 (nvptx_exec): Use default_dims from device.
4938
4939 2018-07-26 Jakub Jelinek <jakub@redhat.com>
4940
4941 PR testsuite/86660
4942 * testsuite/libgomp.c++/for-15.C (results): Include it in
4943 omp declare target region.
4944 (main): Use map (always, tofrom: results) instead of
4945 map (tofrom: results).
4946
4947 PR middle-end/86660
4948 * testsuite/libgomp.c/pr86660.c: New test.
4949
4950 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
4951 Tom de Vries <tdevries@suse.de>
4952
4953 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
4954 sufficient resources to launch a kernel, and give a hint on how to fix
4955 it.
4956
4957 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
4958 Tom de Vries <tdevries@suse.de>
4959
4960 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
4961 max_threads_per_block and max_threads_per_multiprocessor fields.
4962 (nvptx_open_device): Initialize new fields.
4963 (nvptx_exec): Use num_sms, and new fields.
4964
4965 2018-07-26 Tom de Vries <tdevries@suse.de>
4966
4967 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
4968 to correct locations. Remove xfail.
4969
4970 2018-07-26 Tom de Vries <tdevries@suse.de>
4971
4972 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
4973 acc_wait. Move acc_async_test calls to correct locations. Remove
4974 xfail.
4975
4976 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
4977 Thomas Koenig <tkoenig@gcc.gnu.org>
4978
4979 PR fortran/25829
4980 * testsuite/libgomp.fortran/async_io_1.f90: New test.
4981 * testsuite/libgomp.fortran/async_io_2.f90: New test.
4982 * testsuite/libgomp.fortran/async_io_3.f90: New test.
4983 * testsuite/libgomp.fortran/async_io_4.f90: New test.
4984 * testsuite/libgomp.fortran/async_io_5.f90: New test.
4985 * testsuite/libgomp.fortran/async_io_6.f90: New test.
4986 * testsuite/libgomp.fortran/async_io_7.f90: New test.
4987
4988 2018-07-17 Jakub Jelinek <jakub@redhat.com>
4989
4990 PR middle-end/86542
4991 * testsuite/libgomp.c++/pr86542.C: New test.
4992
4993 PR middle-end/86539
4994 * testsuite/libgomp.c++/pr86539.C: New test.
4995
4996 2018-07-11 Jakub Jelinek <jakub@redhat.com>
4997
4998 PR c++/86443
4999 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
5000 (results): Make sure the variable is not inside declare target region.
5001 (qux): Remove unused function.
5002
5003 2018-07-10 Jakub Jelinek <jakub@redhat.com>
5004
5005 PR c++/86443
5006 * testsuite/libgomp.c++/for-15.C: New test.
5007
5008 2018-06-26 Jakub Jelinek <jakub@redhat.com>
5009
5010 PR c++/86291
5011 * testsuite/libgomp.c++/pr86291.C: New test.
5012
5013 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
5014
5015 * libgomp.texi (Top): Move www.openmp.org to https.
5016 (Enabling OpenMP): Ditto.
5017 (omp_get_active_level): Ditto.
5018 (omp_get_ancestor_thread_num): Ditto.
5019 (omp_get_cancellation): Ditto.
5020 (omp_get_default_device): Ditto.
5021 (omp_get_dynamic): Ditto.
5022 (omp_get_level): Ditto.
5023 (omp_get_max_active_levels): Ditto.
5024 (omp_get_max_task_priority): Ditto.
5025 (omp_get_max_threads): Ditto.
5026 (omp_get_nested): Ditto.
5027 (omp_get_num_devices): Ditto.
5028 (omp_get_num_procs): Ditto.
5029 (omp_get_num_teams): Ditto.
5030 (omp_get_num_threads): Ditto.
5031 (omp_get_proc_bind): Ditto.
5032 (omp_get_schedule): Ditto.
5033 (omp_get_team_num): Ditto.
5034 (omp_get_team_size): Ditto.
5035 (omp_get_thread_limit): Ditto.
5036 (omp_get_thread_num): Ditto.
5037 (omp_in_parallel): Ditto.
5038 (omp_in_final): Ditto.
5039 (omp_is_initial_device): Ditto.
5040 (omp_set_default_device): Ditto.
5041 (omp_set_dynamic): Ditto.
5042 (omp_set_max_active_levels): Ditto.
5043 (omp_set_nested): Ditto.
5044 (omp_set_num_threads): Ditto.
5045 (omp_set_schedule): Ditto.
5046 (omp_init_lock): Ditto.
5047 (omp_set_lock): Ditto.
5048 (omp_test_lock): Ditto.
5049 (omp_unset_lock): Ditto.
5050 (omp_destroy_lock): Ditto.
5051 (omp_init_nest_lock): Ditto.
5052 (omp_set_nest_lock): Ditto.
5053 (omp_test_nest_lock): Ditto.
5054 (omp_unset_nest_lock): Ditto.
5055 (omp_destroy_nest_lock): Ditto.
5056 (omp_get_wtick): Ditto.
5057 (omp_get_wtime): Ditto.
5058 (OMP_CANCELLATION): Ditto.
5059 (OMP_DISPLAY_ENV): Ditto.
5060 (OMP_DEFAULT_DEVICE): Ditto.
5061 (OMP_DYNAMIC): Ditto.
5062 (OMP_MAX_ACTIVE_LEVELS): Ditto.
5063 (OMP_MAX_TASK_PRIORITY): Ditto.
5064 (OMP_NESTED): Ditto.
5065 (OMP_NUM_THREADS): Ditto.
5066 (OMP_PROC_BIND): Ditto.
5067 (OMP_PLACES): Ditto.
5068 (OMP_STACKSIZE): Ditto.
5069 (OMP_SCHEDULE): Ditto.
5070 (OMP_THREAD_LIMIT): Ditto.
5071 (OMP_WAIT_POLICY): Ditto.
5072
5073 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
5074 James Norris <jnorris@codesourcery.com>
5075 Julian Brown <julian@codesourcery.com>
5076 Thomas Schwinge <thomas@codesourcery.com>
5077 Tom de Vries <tom@codesourcery.com>
5078
5079 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
5080 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
5081 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
5082 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
5083 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
5084 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
5085 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
5086 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
5087 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
5088 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
5089 Likewise.
5090 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
5091 Likewise.
5092 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
5093 Likewise.
5094 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
5095 Likewise.
5096 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
5097 Likewise.
5098 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
5099 Likewise.
5100 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
5101 Likewise.
5102 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
5103 Likewise.
5104 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
5105 Likewise.
5106 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
5107 Likewise.
5108 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
5109 Likewise.
5110 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
5111 Likewise.
5112 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
5113 Likewise.
5114 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
5115 Likewise.
5116 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
5117 Likewise.
5118 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
5119 Likewise.
5120 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
5121 Likewise.
5122 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
5123 Likewise.
5124 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
5125 Likewise.
5126 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
5127 Likewise.
5128 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
5129 Likewise.
5130 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
5131 Likewise.
5132 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
5133 Likewise.
5134 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
5135 Likewise.
5136 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
5137 Likewise.
5138 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
5139 Likewise.
5140 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
5141 Likewise.
5142 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
5143 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
5144 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
5145 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
5146 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
5147 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
5148 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
5149 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
5150 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
5151 Likewise.
5152 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
5153 Likewise.
5154 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
5155 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
5156 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
5157 Likewise.
5158 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
5159 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
5160 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
5161 Likewise.
5162 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
5163 Likewise.
5164 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
5165 Likewise.
5166 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
5167 Likewise.
5168 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
5169 Likewise.
5170 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
5171 Likewise.
5172 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
5173 Likewise.
5174 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
5175 Likewise.
5176 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
5177 Likewise.
5178 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
5179 Likewise.
5180 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
5181 Likewise.
5182 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
5183 Likewise.
5184 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
5185 Likewise.
5186 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
5187 Likewise.
5188 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
5189 Likewise.
5190 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
5191 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
5192 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
5193 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
5194 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
5195 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
5196 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
5197
5198 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
5199 Thomas Schwinge <thomas@codesourcery.com>
5200 Cesar Philippidis <cesar@codesourcery.com>
5201
5202 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
5203 (gomp_acc_remove_pointer): Update declaration.
5204 (gomp_acc_declare_allocate): Declare.
5205 (gomp_remove_var): Declare.
5206 * libgomp.map (OACC_2.5): Define.
5207 * oacc-mem.c (acc_map_data): Update refcount.
5208 (acc_unmap_data): Likewise.
5209 (present_create_copy): Likewise.
5210 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
5211 (acc_copyin): Likewise.
5212 (FLAG_FINALIZE): Define.
5213 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
5214 (acc_delete_finalize): New function.
5215 (acc_delete_finalize_async): New function.
5216 (acc_copyout_finalize): New function.
5217 (acc_copyout_finalize_async): New function.
5218 (gomp_acc_insert_pointer): Update refcounts.
5219 (gomp_acc_remove_pointer): Return if data is not present on the
5220 accelerator.
5221 * oacc-parallel.c (find_pset): Rename to find_pointer.
5222 (find_pointer): Add support for GOMP_MAP_POINTER.
5223 (handle_ftn_pointers): New function.
5224 (GOACC_parallel_keyed): Update refcounts of variables.
5225 (GOACC_enter_exit_data): Add support for finalized data mappings.
5226 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
5227 of fortran arrays.
5228 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
5229 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
5230 for GOMP_MAP_FORCE_FROM.
5231 * openacc.f90 (module openacc_internal): Add
5232 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
5233 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
5234 acc_copyout_finalize and acc_delete_finalize.
5235 (acc_copyout_finalize_32_h): New subroutine.
5236 (acc_copyout_finalize_64_h): New subroutine.
5237 (acc_copyout_finalize_array_h): New subroutine.
5238 (acc_delete_finalize_32_h): New subroutine.
5239 (acc_delete_finalize_64_h): New subroutine.
5240 (acc_delete_finalize_array_h): New subroutine.
5241 * openacc.h (acc_copyout_finalize): Declare.
5242 (acc_copyout_finalize_async): Declare.
5243 (acc_delete_finalize): Declare.
5244 (acc_delete_finalize_async): Declare.
5245 * openacc_lib.h (acc_copyout_finalize): New interface.
5246 (acc_delete_finalize): New interface.
5247 * target.c (gomp_map_vars): Update dynamic_refcount.
5248 (gomp_remove_var): New function.
5249 (gomp_unmap_vars): Use it.
5250 (gomp_unload_image_from_device): Likewise.
5251 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
5252 case to utilize OpenACC 2.5 data clause semantics.
5253 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
5254 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
5255 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
5256 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
5257 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
5258 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
5259 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
5260 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5261 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5262 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
5263 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
5264 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
5265 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
5266 utilize OpenACC 2.5 data clause semantics.
5267 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
5268 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
5269 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
5270 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
5271 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
5272 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
5273 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
5274 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
5275 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
5276
5277 2018-05-21 Janus Weil <janus@gcc.gnu.org>
5278
5279 PR fortran/85841
5280 PR testsuite/85865
5281 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
5282 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
5283 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
5284 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
5285 * testsuite/libgomp.fortran/task2.f90: Ditto.
5286 * testsuite/libgomp.fortran/vla1.f90: Ditto.
5287 * testsuite/libgomp.fortran/vla2.f90: Ditto.
5288 * testsuite/libgomp.fortran/vla3.f90: Ditto.
5289 * testsuite/libgomp.fortran/vla4.f90: Ditto.
5290 * testsuite/libgomp.fortran/vla5.f90: Ditto.
5291 * testsuite/libgomp.fortran/vla6.f90: Ditto.
5292 * testsuite/libgomp.fortran/vla8.f90: Ditto.
5293 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
5294 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
5295
5296 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
5297
5298 PR c++/85782
5299 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
5300
5301 2018-05-09 Tom de Vries <tom@codesourcery.com>
5302
5303 PR libgomp/82901
5304 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
5305 to GOACC_enter_exit_data.
5306
5307 2018-05-09 Tom de Vries <tom@codesourcery.com>
5308
5309 PR libgomp/83792
5310 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
5311 (async_synchronous_p): New function.
5312 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
5313 async_valid_p.
5314 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
5315 async_valid_stream_id_p.
5316 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
5317 * oacc-parallel.c (GOACC_parallel_keyed): Same.
5318
5319 2018-05-07 Tom de Vries <tom@codesourcery.com>
5320
5321 PR testsuite/85677
5322 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
5323 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
5324
5325 2018-05-03 Tom de Vries <tom@codesourcery.com>
5326
5327 PR testsuite/85106
5328 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
5329 extra_tool_flags if it contains an -foffload=-fdump-* flag.
5330 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
5331 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
5332
5333 2018-05-02 Tom de Vries <tom@codesourcery.com>
5334
5335 PR libgomp/85411
5336 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
5337 GOMP_OPENACC_DIM ...
5338 * env.c (parse_gomp_openacc_dim): ... here. New function.
5339 (initialize_env): Call parse_gomp_openacc_dim.
5340 (goacc_default_dims): Define.
5341 * libgomp.h (goacc_default_dims): Declare.
5342 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
5343 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
5344 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
5345 GOMP_PLUGIN_acc_default_dim.
5346 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
5347 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
5348
5349 2018-05-02 Tom de Vries <tom@codesourcery.com>
5350
5351 PR testsuite/83791
5352 * testsuite/libgomp.c++/udr-9.C: Update.
5353 * testsuite/libgomp.c++/atomic-16.C: Remove.
5354 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
5355 * testsuite/libgomp.c++/loop-13.C: Remove.
5356 * testsuite/libgomp.c++/loop-14.C: Remove.
5357 * testsuite/libgomp.c++/loop-15.C: Remove.
5358 * testsuite/libgomp.c++/monotonic-1.C: Remove.
5359 * testsuite/libgomp.c++/monotonic-2.C: Remove.
5360 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
5361 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
5362 * testsuite/libgomp.c++/ordered-1.C: Remove.
5363 * testsuite/libgomp.c++/pr45784.C: Remove.
5364 * testsuite/libgomp.c++/pr64824.C: Remove.
5365 * testsuite/libgomp.c++/pr64868.C: Remove.
5366 * testsuite/libgomp.c++/pr66199-1.C: Remove.
5367 * testsuite/libgomp.c++/pr66199-2.C: Remove.
5368 * testsuite/libgomp.c++/pr66199-3.C: Remove.
5369 * testsuite/libgomp.c++/pr66199-4.C: Remove.
5370 * testsuite/libgomp.c++/pr66199-5.C: Remove.
5371 * testsuite/libgomp.c++/pr66199-6.C: Remove.
5372 * testsuite/libgomp.c++/pr66199-7.C: Remove.
5373 * testsuite/libgomp.c++/pr66199-8.C: Remove.
5374 * testsuite/libgomp.c++/pr66199-9.C: Remove.
5375 * testsuite/libgomp.c++/pr69389.C: Remove.
5376 * testsuite/libgomp.c++/simd10.C: Remove.
5377 * testsuite/libgomp.c++/simd11.C: Remove.
5378 * testsuite/libgomp.c++/simd12.C: Remove.
5379 * testsuite/libgomp.c++/simd13.C: Remove.
5380 * testsuite/libgomp.c++/target-1.C: Remove.
5381 * testsuite/libgomp.c++/target-3.C: Remove.
5382 * testsuite/libgomp.c++/target-4.C: Remove.
5383 * testsuite/libgomp.c++/target-5.C: Remove.
5384 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
5385 * testsuite/libgomp.c++/taskloop-1.C: Remove.
5386 * testsuite/libgomp.c++/taskloop-2.C: Remove.
5387 * testsuite/libgomp.c++/taskloop-3.C: Remove.
5388 * testsuite/libgomp.c++/taskloop-4.C: Remove.
5389 * testsuite/libgomp.c++/udr-9.C: Remove.
5390 * testsuite/libgomp.c++/for-10.C: Remove.
5391 * testsuite/libgomp.c++/for-11.C: Remove.
5392 * testsuite/libgomp.c++/for-12.C: Remove.
5393 * testsuite/libgomp.c++/for-13.C: Remove.
5394 * testsuite/libgomp.c++/for-14.C: Remove.
5395 * testsuite/libgomp.c++/for-9.C: Remove.
5396 * testsuite/libgomp.c/atomic-18.c: Move ...
5397 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
5398 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
5399 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
5400 * testsuite/libgomp.c/loop-13.c: Move ...
5401 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
5402 * testsuite/libgomp.c/loop-14.c: Move ...
5403 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
5404 * testsuite/libgomp.c/loop-15.c: Remove.
5405 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
5406 * testsuite/libgomp.c/monotonic-1.c: Move ...
5407 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
5408 * testsuite/libgomp.c/monotonic-2.c: Move ...
5409 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
5410 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
5411 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
5412 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
5413 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
5414 * testsuite/libgomp.c/ordered-4.c: Move ...
5415 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
5416 * testsuite/libgomp.c/pr45784.c: Move ...
5417 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
5418 * testsuite/libgomp.c/pr64824.c: Move ...
5419 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
5420 * testsuite/libgomp.c/pr64868.c: Move ...
5421 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
5422 * testsuite/libgomp.c/pr66199-1.c: Move ...
5423 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
5424 * testsuite/libgomp.c/pr66199-2.c: Move ...
5425 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
5426 * testsuite/libgomp.c/pr66199-3.c: Move ...
5427 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
5428 * testsuite/libgomp.c/pr66199-4.c: Move ...
5429 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
5430 * testsuite/libgomp.c/pr66199-5.c: Move ...
5431 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
5432 * testsuite/libgomp.c/pr66199-6.c: Move ...
5433 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
5434 * testsuite/libgomp.c/pr66199-7.c: Move ...
5435 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
5436 * testsuite/libgomp.c/pr66199-8.c: Move ...
5437 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
5438 * testsuite/libgomp.c/pr66199-9.c: Move ...
5439 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
5440 * testsuite/libgomp.c/pr69389.c: Move ...
5441 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
5442 * testsuite/libgomp.c/simd-14.c: Move ...
5443 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
5444 * testsuite/libgomp.c/simd-15.c: Move ...
5445 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
5446 * testsuite/libgomp.c/simd-16.c: Move ...
5447 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
5448 * testsuite/libgomp.c/simd-17.c: Move ...
5449 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
5450 * testsuite/libgomp.c/target-1.c: Move ...
5451 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
5452 * testsuite/libgomp.c/target-10.c: Move ...
5453 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
5454 * testsuite/libgomp.c/target-13.c: Move ...
5455 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
5456 * testsuite/libgomp.c/target-2.c: Move ...
5457 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
5458 * testsuite/libgomp.c/taskgroup-1.c: Move ...
5459 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
5460 * testsuite/libgomp.c/taskloop-1.c: Move ...
5461 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
5462 * testsuite/libgomp.c/taskloop-2.c: Move ...
5463 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
5464 * testsuite/libgomp.c/taskloop-3.c: Move ...
5465 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
5466 * testsuite/libgomp.c/taskloop-4.c: Move ...
5467 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
5468 * testsuite/libgomp.c/udr-1.c: Move ...
5469 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
5470 * testsuite/libgomp.c/for-1.c: Move ...
5471 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
5472 * testsuite/libgomp.c/for-1.h: Move ...
5473 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
5474 * testsuite/libgomp.c/for-2.c: Move ...
5475 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
5476 * testsuite/libgomp.c/for-2.h: Move ...
5477 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
5478 * testsuite/libgomp.c/for-3.c: Move ...
5479 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
5480 * testsuite/libgomp.c/for-4.c: Move ...
5481 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
5482 * testsuite/libgomp.c/for-5.c: Move ...
5483 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
5484 * testsuite/libgomp.c/for-6.c: Move ...
5485 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
5486
5487 2018-05-02 Tom de Vries <tom@codesourcery.com>
5488
5489 PR libgomp/82428
5490 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
5491 __builtin_goacc_parlevel_{id,size}.
5492 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
5493 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
5494 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
5495 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
5496 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
5497 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
5498 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
5499 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
5500 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
5501 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
5502 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
5503 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
5504 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
5505 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
5506 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
5507 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
5508 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
5509 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
5510 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
5511 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
5512 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
5513 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
5514 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
5515
5516 2018-05-02 Tom de Vries <tom@codesourcery.com>
5517
5518 PR testsuite/85106
5519 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
5520
5521 2018-05-02 Tom de Vries <tom@codesourcery.com>
5522
5523 PR testsuite/85106
5524 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
5525
5526 2018-04-29 Julian Brown <julian@codesourcery.com>
5527 Tom de Vries <tom@codesourcery.com>
5528
5529 PR testsuite/85527
5530 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
5531 arbitrary order for iterations of atomic subtract check.
5532
5533 2018-04-28 Tom de Vries <tom@codesourcery.com>
5534
5535 PR testsuite/85527
5536 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
5537 atomic capture results obtained in parallel loop to an array, instead of
5538 to a scalar.
5539
5540 2018-04-26 Tom de Vries <tom@codesourcery.com>
5541
5542 PR libgomp/84020
5543 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
5544 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
5545 (process_GOMP_NVPTX_JIT): New function.
5546 (link_ptx): Use process_GOMP_NVPTX_JIT.
5547
5548 2018-04-26 Richard Biener <rguenther@suse.de>
5549 Tom de Vries <tom@codesourcery.com>
5550
5551 PR lto/85422
5552 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
5553
5554 2018-04-26 Tom de Vries <tom@codesourcery.com>
5555
5556 PR target/85519
5557 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
5558 recursion depth from 25 to 23.
5559 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
5560
5561 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
5562
5563 * configure: Regenerated.
5564
5565 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
5566 Tom de Vries <tom@codesourcery.com>
5567
5568 PR target/85445
5569 * testsuite/libgomp.oacc-c++/ref-1.C: New.
5570
5571 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
5572
5573 PR libgomp/85463
5574 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
5575 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
5576 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
5577 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
5578 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
5579 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
5580
5581 PR libfortran/85166
5582 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
5583 abort".
5584 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
5585
5586 2018-04-19 Jakub Jelinek <jakub@redhat.com>
5587
5588 * configure: Regenerated.
5589
5590 2018-04-18 David Malcolm <dmalcolm@redhat.com>
5591
5592 PR jit/85384
5593 * configure: Regenerate.
5594
5595 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
5596 Tom de Vries <tom@codesourcery.com>
5597
5598 PR middle-end/84955
5599 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
5600 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
5601
5602 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
5603
5604 PR fortran/83064
5605 PR testsuite/85346
5606 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
5607 test from gfortran.dg to here.
5608
5609 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
5610
5611 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
5612 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
5613
5614 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
5615
5616 PR middle-end/84955
5617 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
5618 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
5619
5620 2018-04-05 Tom de Vries <tom@codesourcery.com>
5621
5622 PR target/85204
5623 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
5624
5625 2018-03-26 Tom de Vries <tom@codesourcery.com>
5626
5627 PR tree-optimization/85063
5628 * testsuite/libgomp.c/switch-conversion-2.c: New test.
5629 * testsuite/libgomp.c/switch-conversion.c: New test.
5630 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
5631 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
5632
5633 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
5634
5635 PR fortran/84381
5636 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
5637 call abort by STOP n.
5638 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
5639 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
5640 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
5641 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
5642 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
5643 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
5644 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
5645 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
5646 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
5647 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
5648 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
5649 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
5650 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
5651 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
5652 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
5653 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
5654 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
5655 * testsuite/libgomp.fortran/associate1.f90: Likewise.
5656 * testsuite/libgomp.fortran/associate2.f90: Likewise.
5657 * testsuite/libgomp.fortran/associate3.f90: Likewise.
5658 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
5659 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
5660 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
5661 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
5662 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
5663 * testsuite/libgomp.fortran/character1.f90: Likewise.
5664 * testsuite/libgomp.fortran/character2.f90: Likewise.
5665 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
5666 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
5667 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
5668 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
5669 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
5670 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
5671 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
5672 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
5673 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
5674 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
5675 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
5676 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
5677 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
5678 * testsuite/libgomp.fortran/do1.f90: Likewise.
5679 * testsuite/libgomp.fortran/do2.f90: Likewise.
5680 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
5681 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
5682 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
5683 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
5684 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
5685 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
5686 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
5687 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
5688 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
5689 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
5690 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
5691 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
5692 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
5693 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
5694 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
5695 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
5696 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
5697 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
5698 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
5699 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
5700 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
5701 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
5702 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
5703 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
5704 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
5705 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
5706 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
5707 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
5708 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
5709 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
5710 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
5711 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
5712 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
5713 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
5714 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
5715 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
5716 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
5717 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
5718 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
5719 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
5720 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
5721 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
5722 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
5723 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
5724 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
5725 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
5726 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
5727 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
5728 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
5729 * testsuite/libgomp.fortran/lib1.f90: Likewise.
5730 * testsuite/libgomp.fortran/lib2.f: Likewise.
5731 * testsuite/libgomp.fortran/lib3.f: Likewise.
5732 * testsuite/libgomp.fortran/lib4.f90: Likewise.
5733 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
5734 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
5735 * testsuite/libgomp.fortran/nested1.f90: Likewise.
5736 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
5737 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
5738 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
5739 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
5740 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
5741 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
5742 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
5743 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
5744 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
5745 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
5746 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
5747 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
5748 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
5749 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
5750 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
5751 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
5752 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
5753 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
5754 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
5755 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
5756 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
5757 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
5758 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
5759 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
5760 * testsuite/libgomp.fortran/pr25162.f: Likewise.
5761 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
5762 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
5763 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
5764 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
5765 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
5766 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
5767 * testsuite/libgomp.fortran/pr28390.f: Likewise.
5768 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
5769 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
5770 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
5771 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
5772 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
5773 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
5774 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
5775 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
5776 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
5777 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
5778 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
5779 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
5780 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
5781 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
5782 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
5783 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
5784 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
5785 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
5786 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
5787 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
5788 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
5789 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
5790 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
5791 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
5792 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
5793 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
5794 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
5795 * testsuite/libgomp.fortran/reference1.f90: Likewise.
5796 * testsuite/libgomp.fortran/reference2.f90: Likewise.
5797 * testsuite/libgomp.fortran/retval1.f90: Likewise.
5798 * testsuite/libgomp.fortran/retval2.f90: Likewise.
5799 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
5800 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
5801 * testsuite/libgomp.fortran/simd1.f90: Likewise.
5802 * testsuite/libgomp.fortran/simd2.f90: Likewise.
5803 * testsuite/libgomp.fortran/simd3.f90: Likewise.
5804 * testsuite/libgomp.fortran/simd4.f90: Likewise.
5805 * testsuite/libgomp.fortran/simd5.f90: Likewise.
5806 * testsuite/libgomp.fortran/simd6.f90: Likewise.
5807 * testsuite/libgomp.fortran/simd7.f90: Likewise.
5808 * testsuite/libgomp.fortran/stack.f90: Likewise.
5809 * testsuite/libgomp.fortran/strassen.f90: Likewise.
5810 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
5811 * testsuite/libgomp.fortran/tabs2.f: Likewise.
5812 * testsuite/libgomp.fortran/target1.f90: Likewise.
5813 * testsuite/libgomp.fortran/target2.f90: Likewise.
5814 * testsuite/libgomp.fortran/target3.f90: Likewise.
5815 * testsuite/libgomp.fortran/target4.f90: Likewise.
5816 * testsuite/libgomp.fortran/target5.f90: Likewise.
5817 * testsuite/libgomp.fortran/target6.f90: Likewise.
5818 * testsuite/libgomp.fortran/target7.f90: Likewise.
5819 * testsuite/libgomp.fortran/target8.f90: Likewise.
5820 * testsuite/libgomp.fortran/task1.f90: Likewise.
5821 * testsuite/libgomp.fortran/task2.f90: Likewise.
5822 * testsuite/libgomp.fortran/task3.f90: Likewise.
5823 * testsuite/libgomp.fortran/task4.f90: Likewise.
5824 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
5825 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
5826 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
5827 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
5828 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
5829 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
5830 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
5831 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
5832 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
5833 * testsuite/libgomp.fortran/udr1.f90: Likewise.
5834 * testsuite/libgomp.fortran/udr10.f90: Likewise.
5835 * testsuite/libgomp.fortran/udr11.f90: Likewise.
5836 * testsuite/libgomp.fortran/udr12.f90: Likewise.
5837 * testsuite/libgomp.fortran/udr13.f90: Likewise.
5838 * testsuite/libgomp.fortran/udr14.f90: Likewise.
5839 * testsuite/libgomp.fortran/udr15.f90: Likewise.
5840 * testsuite/libgomp.fortran/udr2.f90: Likewise.
5841 * testsuite/libgomp.fortran/udr3.f90: Likewise.
5842 * testsuite/libgomp.fortran/udr4.f90: Likewise.
5843 * testsuite/libgomp.fortran/udr5.f90: Likewise.
5844 * testsuite/libgomp.fortran/udr6.f90: Likewise.
5845 * testsuite/libgomp.fortran/udr7.f90: Likewise.
5846 * testsuite/libgomp.fortran/udr8.f90: Likewise.
5847 * testsuite/libgomp.fortran/udr9.f90: Likewise.
5848 * testsuite/libgomp.fortran/vla1.f90: Likewise.
5849 * testsuite/libgomp.fortran/vla2.f90: Likewise.
5850 * testsuite/libgomp.fortran/vla3.f90: Likewise.
5851 * testsuite/libgomp.fortran/vla4.f90: Likewise.
5852 * testsuite/libgomp.fortran/vla5.f90: Likewise.
5853 * testsuite/libgomp.fortran/vla6.f90: Likewise.
5854 * testsuite/libgomp.fortran/vla7.f90: Likewise.
5855 * testsuite/libgomp.fortran/vla8.f90: Likewise.
5856 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
5857 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
5858 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
5859 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
5860 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5861 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5862 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5863 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
5864 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
5865 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
5866 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
5867 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
5868 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
5869 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
5870 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
5871 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
5872 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
5873 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
5874 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
5875 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
5876 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
5877 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
5878 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
5879 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
5880 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
5881 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
5882 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
5883 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
5884 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
5885 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
5886 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5887 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
5888 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
5889 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
5890 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
5891 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
5892 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
5893 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
5894 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
5895 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5896 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
5897 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
5898 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
5899 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
5900 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
5901 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
5902 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
5903 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
5904 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
5905 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
5906 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
5907 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
5908 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
5909 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
5910 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
5911 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
5912 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
5913 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
5914 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
5915 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
5916 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
5917 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
5918 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
5919 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
5920 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
5921 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
5922 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
5923 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5924 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5925 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
5926 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
5927 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
5928 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
5929 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
5930 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5931 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
5932 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5933 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
5934 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
5935 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
5936 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5937 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5938 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
5939 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
5940 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
5941 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
5942 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
5943 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
5944 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
5945 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5946 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
5947 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
5948 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
5949 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
5950
5951 2018-03-20 Richard Biener <rguenther@suse.de>
5952
5953 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
5954 parallelizable loop.
5955
5956 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
5957
5958 PR target/84148
5959 * configure: Regenerate.
5960
5961 2018-02-16 Jakub Jelinek <jakub@redhat.com>
5962
5963 PR fortran/84418
5964 * libgomp.fortran/pr84418-1.f90: New test.
5965 * libgomp.fortran/pr84418-2.f90: New test.
5966
5967 2018-02-14 Jakub Jelinek <jakub@redhat.com>
5968
5969 PR fortran/84313
5970 * testsuite/libgomp.fortran/threadprivate4.f90: Add
5971 -std=f2003 -fall-intrinsics into dg-additional-options.
5972
5973 2018-02-08 Martin Jambor <mjambor@suse.cz>
5974
5975 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
5976 clonable.
5977
5978 2018-02-08 Martin Jambor <mjambor@suse.cz>
5979
5980 * testsuite/libgomp.hsa.c/staticvar.c: New test.
5981
5982 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5983
5984 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
5985 [__cplusplus]: Declare extern "C".
5986
5987 2018-02-07 Tom de Vries <tom@codesourcery.com>
5988
5989 PR libgomp/84217
5990 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
5991
5992 2018-01-29 Christoph Spiel <cspiel@freenet.de>
5993 Jakub Jelinek <jakub@redhat.com>
5994
5995 PR libgomp/84096
5996 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
5997 instead of omp_lock_t.
5998
5999 2018-01-25 Tom de Vries <tom@codesourcery.com>
6000
6001 PR target/84028
6002 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
6003
6004 2018-01-24 Tom de Vries <tom@codesourcery.com>
6005
6006 PR target/83589
6007 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
6008
6009 2018-01-24 Tom de Vries <tom@codesourcery.com>
6010
6011 PR target/81352
6012 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
6013
6014 2018-01-19 Tom de Vries <tom@codesourcery.com>
6015 Cesar Philippidis <cesar@codesourcery.com>
6016
6017 PR target/83920
6018 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
6019 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
6020
6021 2018-01-03 Jakub Jelinek <jakub@redhat.com>
6022
6023 Update copyright years.
6024
6025 * libgomp.texi: Bump @copying's copyright year.
6026
6027 2017-12-30 Tom de Vries <tom@codesourcery.com>
6028
6029 PR libgomp/83046
6030 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
6031 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
6032
6033 2017-12-27 Tom de Vries <tom@codesourcery.com>
6034
6035 PR c++/83046
6036 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
6037 (test_nonstatic): Fix return type to workaround PR83046.
6038
6039 2017-12-05 Jakub Jelinek <jakub@redhat.com>
6040
6041 PR testsuite/83281
6042 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
6043 j suffix instead of i.
6044 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
6045 Likewise.
6046
6047 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
6048
6049 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
6050 call to acc_wait (1).
6051
6052 2017-11-24 Jakub Jelinek <jakub@redhat.com>
6053
6054 PR fortran/81304
6055 * testsuite/libgomp.fortran/pr81304.f90: New test.
6056
6057 2017-11-23 Jakub Jelinek <jakub@redhat.com>
6058
6059 PR fortran/81841
6060 * libgomp.fortran/pr81841.f90: New test.
6061
6062 2017-11-22 Jakub Jelinek <jakub@redhat.com>
6063
6064 PR libgomp/83106
6065 * target.c (gomp_target_init): Compute lengths just once and
6066 use them in both malloc size and subsequent copying.
6067
6068 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
6069
6070 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
6071 * acinclude.m4: Add cet.m4.
6072 * configure: Regenerate.
6073 * Makefile.in: Likewise.
6074 * testsuite/Makefile.in: Likewise.
6075
6076 2017-11-15 Tom de Vries <tom@codesourcery.com>
6077
6078 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
6079 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
6080 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
6081 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
6082 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
6083 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
6084
6085 2017-11-14 Tom de Vries <tom@codesourcery.com>
6086
6087 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
6088 non-nvidia devices.
6089
6090 2017-11-07 Jakub Jelinek <jakub@redhat.com>
6091
6092 PR c++/82835
6093 * testsuite/libgomp.c++/pr82835.C: New test.
6094
6095 2017-11-06 Martin Liska <mliska@suse.cz>
6096
6097 * testsuite/libgomp.c++/loop-2.C: Return a value
6098 for functions with non-void return type, or change type to void,
6099 or add -Wno-return-type for test.
6100 * testsuite/libgomp.c++/loop-4.C: Likewise.
6101 * testsuite/libgomp.c++/parallel-1.C: Likewise.
6102 * testsuite/libgomp.c++/shared-1.C: Likewise.
6103 * testsuite/libgomp.c++/single-1.C: Likewise.
6104 * testsuite/libgomp.c++/single-2.C: Likewise.
6105
6106 2017-10-31 Tom de Vries <tom@codesourcery.com>
6107
6108 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
6109 "do {} while (false)".
6110 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
6111 after HSA_DEBUG call.
6112
6113 2017-10-28 Jakub Jelinek <jakub@redhat.com>
6114
6115 * target.c (struct gomp_coalesce_buf): New type.
6116 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
6117 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
6118 (gomp_copy_host2dev): Add CBUF argument, if copying into
6119 the cached ranges, memcpy into buffer instead of copying
6120 into device.
6121 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
6122 Add CBUF argument, pass it through to other calls.
6123 (gomp_map_vars): Aggregate copies from host to device if small enough
6124 and with small enough gaps in between into memcpy into a buffer and
6125 fewer host to device copies from the buffer.
6126 (gomp_update): Adjust gomp_copy_host2dev caller.
6127
6128 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
6129
6130 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
6131 run" directive.
6132 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
6133 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
6134 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
6135 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
6136
6137 2017-10-16 Tom de Vries <tom@codesourcery.com>
6138
6139 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
6140 openacc_nvidia_accel_selected.
6141 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
6142 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
6143 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
6144 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
6145 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
6146 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
6147 openacc_nvidia_accel_selected. Skip for shared memory device.
6148 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
6149 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
6150
6151 2017-10-09 Martin Jambor <mjambor@suse.cz>
6152
6153 PR hsa/82416
6154 * testsuite/libgomp.hsa.c/pr82416.c: New test.
6155
6156 2017-10-07 Tom de Vries <tom@codesourcery.com>
6157
6158 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
6159 Remove acc_device_nvidia references.
6160 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
6161 Same.
6162
6163 2017-10-05 Tom de Vries <tom@codesourcery.com>
6164
6165 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
6166 vector_length(32) clause from acc parallel directive.
6167 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
6168
6169 2017-10-04 Tom de Vries <tom@codesourcery.com>
6170
6171 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
6172 (main): Reduce sum of arr elements. Assert that hres is exactly
6173 representable in 32-bit floating point.
6174 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
6175 (main): Reduce sum of arr elements. Assert that hres and hmres are
6176 exactly representable in 32-bit floating point.
6177 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
6178
6179 2017-09-28 Tom de Vries <tom@codesourcery.com>
6180
6181 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
6182 setting.
6183 * testsuite/libgomp.c++/pr69393.C: Same.
6184 * testsuite/libgomp.c++/taskloop-1.C: Same.
6185 * testsuite/libgomp.c++/taskloop-3.C: Same.
6186 * testsuite/libgomp.c++/taskloop-4.C: Same.
6187 * testsuite/libgomp.c/for-4.c: Same.
6188 * testsuite/libgomp.c/pr66199-3.c: Same.
6189 * testsuite/libgomp.c/pr66199-4.c: Same.
6190 * testsuite/libgomp.c/pr66199-6.c: Same.
6191 * testsuite/libgomp.c/taskloop-1.c: Same.
6192 * testsuite/libgomp.c/taskloop-3.c: Same.
6193 * testsuite/libgomp.c/taskloop-4.c: Same.
6194 * testsuite/libgomp.fortran/aligned1.f03: Same.
6195 * testsuite/libgomp.fortran/condinc1.f: Same.
6196 * testsuite/libgomp.fortran/condinc3.f90: Same.
6197 * testsuite/libgomp.fortran/crayptr1.f90: Same.
6198 * testsuite/libgomp.fortran/crayptr2.f90: Same.
6199 * testsuite/libgomp.fortran/crayptr3.f90: Same.
6200 * testsuite/libgomp.fortran/omp_cond1.f: Same.
6201 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
6202 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
6203 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
6204 * testsuite/libgomp.fortran/recursion1.f90: Same.
6205 * testsuite/libgomp.fortran/target2.f90: Same.
6206 * testsuite/libgomp.fortran/target5.f90: Same.
6207 * testsuite/libgomp.fortran/task3.f90: Same.
6208
6209 2017-09-28 Tom de Vries <tom@codesourcery.com>
6210
6211 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
6212 vector_length(32) clause from acc parallel directive.
6213 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
6214
6215 2017-09-27 Tom de Vries <tom@codesourcery.com>
6216
6217 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
6218 Remove acc_device_nvidia references.
6219
6220 2017-09-16 Tom de Vries <tom@codesourcery.com>
6221
6222 PR c/81875
6223 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
6224
6225 2017-09-14 Tom de Vries <tom@codesourcery.com>
6226
6227 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
6228 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
6229 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
6230 * testsuite/libgomp.c/c.exp: Include test-cases from
6231 libgomp.c-c++-common.
6232 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
6233 files.
6234
6235 2017-09-14 Jakub Jelinek <jakub@redhat.com>
6236
6237 PR c++/81314
6238 * testsuite/libgomp.c++/pr81314.C: New test.
6239
6240 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
6241
6242 * libgomp.texi (Top): www.openacc.org now uses https.
6243 (Enabling OpenACC): Ditto.
6244 (acc_get_num_devices): Ditto.
6245 (acc_set_device_type): Ditto.
6246 (acc_get_device_type): Ditto.
6247 (acc_set_device_num): Ditto.
6248 (acc_get_device_num): Ditto.
6249 (acc_async_test): Ditto.
6250 (acc_async_test_all): Ditto.
6251 (acc_wait): Ditto.
6252 (acc_wait_all): Ditto.
6253 (acc_wait_all_async): Ditto.
6254 (acc_wait_async): Ditto.
6255 (acc_init): Ditto.
6256 (acc_shutdown): Ditto.
6257 (acc_on_device): Ditto.
6258 (acc_malloc): Ditto.
6259 (acc_free): Ditto.
6260 (acc_copyin): Ditto.
6261 (acc_present_or_copyin): Ditto.
6262 (acc_create): Ditto.
6263 (acc_present_or_create): Ditto.
6264 (acc_copyout): Ditto.
6265 (acc_delete): Ditto.
6266 (acc_update_device): Ditto.
6267 (acc_update_self): Ditto.
6268 (acc_map_data): Ditto.
6269 (acc_unmap_data): Ditto.
6270 (acc_deviceptr): Ditto.
6271 (acc_hostptr): Ditto.
6272 (acc_is_present): Ditto.
6273 (acc_memcpy_to_device): Ditto.
6274 (acc_memcpy_from_device): Ditto.
6275 (acc_get_current_cuda_device): Ditto.
6276 (acc_get_current_cuda_context): Ditto.
6277 (acc_get_cuda_stream): Ditto.
6278 (acc_set_cuda_stream): Ditto.
6279 (ACC_DEVICE_TYPE): Ditto.
6280 (ACC_DEVICE_NUM): Ditto.
6281 (OpenACC Library Interoperability): Ditto.
6282
6283 2017-08-09 Jakub Jelinek <jakub@redhat.com>
6284
6285 PR c/81687
6286 * testsuite/libgomp.c/pr81687-1.c: New test.
6287 * testsuite/libgomp.c/pr81687-2.c: New test.
6288
6289 2017-08-07 Jakub Jelinek <jakub@redhat.com>
6290
6291 PR c/69389
6292 * testsuite/libgomp.c/pr69389.c: New test.
6293 * testsuite/libgomp.c++/pr69389.C: New test.
6294
6295 2017-08-07 Tom de Vries <tom@codesourcery.com>
6296
6297 PR middle-end/78266
6298 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
6299 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
6300
6301 2017-07-27 Jakub Jelinek <jakub@redhat.com>
6302
6303 PR c/45784
6304 * testsuite/libgomp.c/pr45784.c: New test.
6305 * testsuite/libgomp.c++/pr45784.C: New test.
6306
6307 2017-07-19 Tom de Vries <tom@codesourcery.com>
6308
6309 * testsuite/libgomp.oacc-c/vec.c: New test.
6310
6311 2017-07-03 Tom de Vries <tom@codesourcery.com>
6312
6313 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
6314
6315 2017-06-27 Tom de Vries <tom@codesourcery.com>
6316
6317 * plugin/plugin-nvptx.c (notify_var): New function.
6318 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
6319
6320 2017-06-27 Tom de Vries <tom@codesourcery.com>
6321
6322 * env.c (parse_unsigned_long_1): Factor out of ...
6323 (parse_unsigned_long): ... here.
6324 (parse_int_1): Factor out of ...
6325 (parse_int): ... here.
6326 (parse_int_secure): New function.
6327 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
6328 * secure_getenv.h: Factor out of ...
6329 * plugin/plugin-hsa.c: ... here.
6330 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
6331
6332 2017-06-21 Jakub Jelinek <jakub@redhat.com>
6333
6334 PR c++/81130
6335 * testsuite/libgomp.c++/pr81130.C: New test.
6336
6337 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6338
6339 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
6340 default args.
6341 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
6342 dg-xfail-run-if default args.
6343
6344 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
6345
6346 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
6347 * testsuite/libgomp.c/pr39591-3.c: Likewise.
6348
6349 2017-05-30 Jakub Jelinek <jakub@redhat.com>
6350
6351 PR libgomp/80822
6352 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
6353 (gomp_affinity_init_level): Use it. Always analyze the core and thread
6354 sibling lists, depending on level just pick up what CPUs to put
6355 together into a place vs. whether add multiple ordered places.
6356
6357 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
6358
6359 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
6360 * libgomp.map (OACC_2.0.1): Add these.
6361 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
6362 for "acc_wait", and "acc_wait_all", respectively.
6363 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
6364 for "acc_wait", and "acc_wait_all", respectively.
6365 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
6366 * libgomp.texi (acc_wait, acc_wait_all): Update.
6367 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
6368 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
6369 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6370
6371 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
6372 acc_present_or_copyin and acc_present_or_create procedures,
6373 respectively.
6374 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
6375 generally different variants of OpenACC Runtime Library functions.
6376 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
6377
6378 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
6379 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
6380
6381 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
6382 of preprocessor definitions.
6383 * libgomp.h (strong_alias): Guard by "#ifdef
6384 HAVE_ATTRIBUTE_ALIAS".
6385 * oacc-mem.c: Provide "acc_pcreate" as alias for
6386 "acc_present_or_create", and "acc_pcopyin" as alias for
6387 "acc_present_or_copyin".
6388 * libgomp.map: New version "OACC_2.0.1".
6389 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
6390 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
6391 its content into...
6392 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
6393 Extend testing.
6394
6395 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
6396 when disabling nvptx offloading.
6397
6398 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
6399
6400 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
6401 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
6402 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
6403
6404 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
6405 * testsuite/lib/libgomp.exp
6406 (check_effective_target_openacc_nvidia_accel_configured): New
6407 proc.
6408 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
6409 (check_effective_target_c++): New procs.
6410 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
6411 (check_effective_target_c++): Likewise.
6412
6413 2017-05-22 Jakub Jelinek <jakub@redhat.com>
6414
6415 PR middle-end/80809
6416 * testsuite/libgomp.c/pr80809-2.c: New test.
6417 * testsuite/libgomp.c/pr80809-3.c: New test.
6418
6419 PR middle-end/80809
6420 * testsuite/libgomp.c/pr80809-1.c: New test.
6421
6422 PR middle-end/80853
6423 * testsuite/libgomp.c/pr80853.c: New test.
6424
6425 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
6426
6427 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
6428 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
6429 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
6430 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
6431 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
6432
6433 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
6434 Debug output for failure.
6435
6436 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6437
6438 * testsuite/lib/libgomp.exp: Load scanlang.exp.
6439
6440 2017-04-27 Jakub Jelinek <jakub@redhat.com>
6441
6442 PR bootstrap/80531
6443 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
6444 bootstrap compare failures.
6445
6446 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
6447
6448 * testsuite/libgomp.c/target-36.c: New testcase.
6449
6450 2017-04-13 Jakub Jelinek <jakub@redhat.com>
6451
6452 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
6453 instead of char.
6454
6455 2017-04-11 Jakub Jelinek <jakub@redhat.com>
6456
6457 PR libgomp/80394
6458 * testsuite/libgomp.c/pr80394.c: New test.
6459
6460 2017-04-04 Jakub Jelinek <jakub@redhat.com>
6461
6462 PR libgomp/79876
6463 * config/posix/thread-stacksize.h: New file.
6464 * config/darwin/thread-stacksize.h: New file.
6465 * config/nvptx/thread-stacksize.h: New file.
6466 * env.c: Include thread-stacksize.h.
6467 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
6468 instead of 0. Call pthread_attr_setstacksize even if
6469 GOMP_DEFAULT_STACKSIZE is non-zero.
6470
6471 2017-03-30 Jakub Jelinek <jakub@redhat.com>
6472
6473 * env.c (initialize_env): Initialize stacksize to 0.
6474
6475 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
6476
6477 PR c++/80029
6478 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
6479
6480 2017-03-08 Jakub Jelinek <jakub@redhat.com>
6481
6482 PR c/79940
6483 * testsuite/libgomp.c/pr79940.c: New test.
6484
6485 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6486
6487 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
6488 targets.
6489 Add __float128 options.
6490
6491 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
6492
6493 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
6494 hppa*-*-* dg-skip-if directive.
6495
6496 2017-02-09 Jakub Jelinek <jakub@redhat.com>
6497
6498 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
6499 dg-skip-if directive into a comment.
6500
6501 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
6502 Chung-Lin Tang <cltang@codesourcery.com>
6503
6504 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
6505 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
6506 add additional case.
6507 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
6508 "openacc_nvidia_accel_selected".
6509 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
6510 Add num_workers(8) clause.
6511
6512 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
6513
6514 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
6515 hppa*-*-*.
6516 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
6517 include complex.h on hppa*-*-hpux*.
6518 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
6519
6520 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
6521
6522 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
6523
6524 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
6525 GOMP_OFFLOAD_openacc_exec. Adjust all users.
6526 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
6527 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
6528 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
6529 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
6530 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
6531 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
6532 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
6533 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
6534
6535 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
6536
6537 * libgomp-plugin.h: #include <stdbool.h>.
6538 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
6539 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
6540 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
6541 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
6542 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
6543 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
6544 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
6545 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
6546 (GOMP_OFFLOAD_openacc_register_async_cleanup)
6547 (GOMP_OFFLOAD_openacc_async_test)
6548 (GOMP_OFFLOAD_openacc_async_test_all)
6549 (GOMP_OFFLOAD_openacc_async_wait)
6550 (GOMP_OFFLOAD_openacc_async_wait_async)
6551 (GOMP_OFFLOAD_openacc_async_wait_all)
6552 (GOMP_OFFLOAD_openacc_async_wait_all_async)
6553 (GOMP_OFFLOAD_openacc_async_set_async)
6554 (GOMP_OFFLOAD_openacc_create_thread_data)
6555 (GOMP_OFFLOAD_openacc_destroy_thread_data)
6556 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
6557 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
6558 (GOMP_OFFLOAD_openacc_get_cuda_stream)
6559 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
6560 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
6561 these.
6562 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
6563 (GOMP_OFFLOAD_unload_image): Fix argument types.
6564
6565 2017-01-26 Jakub Jelinek <jakub@redhat.com>
6566
6567 * testsuite/lib/libgomp.exp
6568 (check_effective_target_hsa_offloading_selected_nocache): Fix up
6569 check_compile invocation. Fix up removal of executable. Drop
6570 bogus "2>&1" argument.
6571
6572 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
6573 directive.
6574
6575 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
6576 Martin Jambor <mjambor@suse.cz>
6577
6578 * plugin/hsa.h: Moved to top level include.
6579 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
6580
6581 2017-01-21 Jakub Jelinek <jakub@redhat.com>
6582
6583 PR other/79046
6584 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
6585 of cat to get version from BASE-VER file.
6586 * testsuite/Makefile.in: Regenerated.
6587
6588 2017-01-19 Jakub Jelinek <jakub@redhat.com>
6589
6590 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
6591 for _WIN64.
6592
6593 2017-01-17 Jakub Jelinek <jakub@redhat.com>
6594
6595 * plugin/hsa.h: Add GCC runtime library exception.
6596 * plugin/hsa_ext_finalize.h: Likewise.
6597
6598 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
6599 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
6600 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
6601 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
6602 plugin/include/cuda as include dir and -ldl instead of -lcuda as
6603 library to link ptx plugin against.
6604 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
6605 (CUDA_CALLS): Define.
6606 (cuda_lib, cuda_lib_inited): New variables.
6607 (init_cuda_lib): New function.
6608 (CUDA_CALL_PREFIX): Define.
6609 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
6610 (CUDA_CALL): Use FN instead of (FN).
6611 (CUDA_CALL_NOCHECK): Define.
6612 (cuda_error, fini_streams_for_device, select_stream_for_async,
6613 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
6614 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
6615 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
6616 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
6617 CUDA_CALL_NOCHECK.
6618 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
6619 CUDA_CALL_NOCHECK.
6620 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
6621 Use CUDA_CALL_NOCHECK.
6622 * plugin/cuda/cuda.h: New file.
6623 * config.h.in: Regenerated.
6624 * configure: Regenerated.
6625
6626 PR other/79046
6627 * configure.ac: Add GCC_BASE_VER.
6628 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
6629 get version from BASE-VER file.
6630 * testsuite/Makefile.in: Regenerated.
6631 * configure: Regenerated.
6632 * Makefile.in: Regenerated.
6633
6634 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6635
6636 PR libgomp/60670
6637 * Makefile.am: Make fincludedir multilib-aware.
6638 * Makefile.in: Regenerate.
6639
6640 2017-01-01 Jakub Jelinek <jakub@redhat.com>
6641
6642 Update copyright years.
6643
6644 * libgomp.texi: Bump @copying's copyright year.
6645
6646 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
6647
6648 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
6649 pthread_spinlock_t instead of gomp_mutex_t lock.
6650 (gomp_get_thread_pool): Likewise.
6651 (gomp_release_thread_pool): Likewise.
6652 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
6653 Likewise.
6654
6655 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
6656
6657 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
6658 thread pool in case nthreads == 1.
6659
6660 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
6661
6662 * config/nvptx/env.c: Delete.
6663 * icv.c: Move definitions of ICV variables back ...
6664 * env.c: ...here. Do not compile environment-related functionality if
6665 LIBGOMP_OFFLOADED_ONLY is set.
6666
6667 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
6668
6669 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
6670 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
6671 * configure: Regenerate.
6672 * config.h.in: Likewise.
6673
6674 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
6675
6676 * Makefile.in: Regenerate with automake-1.11.6.
6677 * aclocal.m4: Likewise.
6678 * configure: Likewise.
6679 * testsuite/Makefile.in: Likewise.
6680
6681 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
6682
6683 * config/nvptx/critical.c: Delete to use generic implementation.
6684
6685 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
6686
6687 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
6688 ../../affinity.c as fallback.
6689 * config/nvptx/affinity.c: Delete to use fallback implementation.
6690
6691 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
6692 Jakub Jelinek <jakub@redhat.com>
6693 Dmitry Melnik <dm@ispras.ru>
6694
6695 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
6696 * Makefile.in. Regenerate.
6697 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
6698 (LIBGOMP_USE_PTHREADS): ...here; new define.
6699 * configure: Regenerate.
6700 * config.h.in: Likewise.
6701 * config/posix/affinity.c: Move to...
6702 * affinity.c: ...here (new file). Guard use of Pthreads-specific
6703 interface by LIBGOMP_USE_PTHREADS.
6704 * critical.c: Split out GOMP_atomic_{start,end} into...
6705 * atomic.c: ...here (new file).
6706 * env.c: Split out ICV definitions into...
6707 * icv.c: ...here (new file) and...
6708 * icv-device.c: ...here. New file.
6709 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
6710 (gomp_destroy_lock_30): Ditto.
6711 (gomp_set_lock_30): Ditto.
6712 (gomp_unset_lock_30): Ditto.
6713 (gomp_test_lock_30): Ditto.
6714 (gomp_init_nest_lock_30): Ditto.
6715 (gomp_destroy_nest_lock_30): Ditto.
6716 (gomp_set_nest_lock_30): Ditto.
6717 (gomp_unset_nest_lock_30): Ditto.
6718 (gomp_test_nest_lock_30): Ditto.
6719 * lock.c: New.
6720 * config/nvptx/lock.c: New.
6721 * config/nvptx/bar.c: New.
6722 * config/nvptx/bar.h: New.
6723 * config/nvptx/doacross.h: New.
6724 * config/nvptx/error.c: New.
6725 * config/nvptx/icv-device.c: New.
6726 * config/nvptx/mutex.h: New.
6727 * config/nvptx/pool.h: New.
6728 * config/nvptx/proc.c: New.
6729 * config/nvptx/ptrlock.h: New.
6730 * config/nvptx/sem.h: New.
6731 * config/nvptx/simple-bar.h: New.
6732 * config/nvptx/target.c: New.
6733 * config/nvptx/task.c: New.
6734 * config/nvptx/team.c: New.
6735 * config/nvptx/time.c: New.
6736 * config/posix/simple-bar.h: New.
6737 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
6738 (gomp_num_teams_var): Declare.
6739 (struct gomp_thread_pool): Change threads_dock member to
6740 gomp_simple_barrier_t.
6741 [__nvptx__] (gomp_thread): New implementation.
6742 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
6743 (gomp_thread_destructor): Ditto.
6744 (gomp_init_thread_affinity): Ditto.
6745 * team.c: Guard uses of Pthreads-specific interfaces by
6746 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
6747 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
6748 * config/nvptx/alloc.c: Delete.
6749 * config/nvptx/barrier.c: Ditto.
6750 * config/nvptx/fortran.c: Ditto.
6751 * config/nvptx/iter.c: Ditto.
6752 * config/nvptx/iter_ull.c: Ditto.
6753 * config/nvptx/loop.c: Ditto.
6754 * config/nvptx/loop_ull.c: Ditto.
6755 * config/nvptx/ordered.c: Ditto.
6756 * config/nvptx/parallel.c: Ditto.
6757 * config/nvptx/priority_queue.c: Ditto.
6758 * config/nvptx/sections.c: Ditto.
6759 * config/nvptx/single.c: Ditto.
6760 * config/nvptx/splay-tree.c: Ditto.
6761 * config/nvptx/work.c: Ditto.
6762 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
6763 -foffload=-lgfortran in addition to -lgfortran.
6764 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
6765 * plugin/plugin-nvptx.c: Include <limits.h>.
6766 (struct targ_fn_descriptor): Add new fields.
6767 (struct ptx_device): Ditto. Set them...
6768 (nvptx_open_device): ...here.
6769 (nvptx_adjust_launch_bounds): New.
6770 (nvptx_host2dev): Allow NULL 'nvthd'.
6771 (nvptx_dev2host): Ditto.
6772 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
6773 (link_ptx): Adjust log sizes.
6774 (nvptx_host2dev): Allow NULL 'nvthd'.
6775 (nvptx_dev2host): Ditto.
6776 (nvptx_set_clocktick): New. Use it...
6777 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
6778 fields.
6779 (GOMP_OFFLOAD_dev2dev): New.
6780 (nvptx_adjust_launch_bounds): New.
6781 (nvptx_stacks_size): New.
6782 (nvptx_stacks_alloc): New.
6783 (nvptx_stacks_free): New.
6784 (GOMP_OFFLOAD_run): New.
6785 (GOMP_OFFLOAD_async_run): New (stub).
6786
6787 2016-11-23 Martin Jambor <mjambor@suse.cz>
6788
6789 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
6790 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
6791 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
6792
6793 2016-11-23 Martin Liska <mliska@suse.cz>
6794 Martin Jambor <mjambor@suse.cz>
6795
6796 * plugin/hsa.h: New file.
6797 * plugin/hsa_ext_finalize.h: New file.
6798 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
6799 header file unistd.h, and functions secure_getenv, __secure_getenv,
6800 getuid, geteuid, getgid and getegid.
6801 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
6802 -D_GNU_SOURCE.
6803 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
6804 Handle various cases of secure_getenv presence, add an implementation
6805 when we can test effective UID and GID.
6806 (struct hsa_runtime_fn_info): New structure.
6807 (hsa_runtime_fn_info hsa_fns): New variable.
6808 (hsa_runtime_lib): Likewise.
6809 (support_cpu_devices): Likewise.
6810 (init_enviroment_variables): Load newly introduced ENV
6811 variables.
6812 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
6813 (hsa_fatal): Likewise.
6814 (DLSYM_FN): New macro.
6815 (init_hsa_runtime_functions): New function.
6816 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
6817 structure. Depending on environment, also allow CPU devices.
6818 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
6819 (get_kernarg_memory_region): Likewise.
6820 (GOMP_OFFLOAD_init_device): Likewise.
6821 (destroy_hsa_program): Likewise.
6822 (init_basic_kernel_info): New function.
6823 (GOMP_OFFLOAD_load_image): Use it.
6824 (create_and_finalize_hsa_program): Call hsa run-time functions via
6825 hsa_fns structure.
6826 (create_single_kernel_dispatch): Likewise.
6827 (release_kernel_dispatch): Likewise.
6828 (init_single_kernel): Likewise.
6829 (parse_target_attributes): Allow up multiple HSA grid dimensions.
6830 (get_group_size): New function.
6831 (run_kernel): Likewise.
6832 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
6833 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
6834 structure.
6835 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
6836 * testsuite/libgomp-test-support.exp.in: Likewise.
6837 * Makefile.in: Regenerated.
6838 * aclocal.m4: Likewise.
6839 * config.h.in: Likewise.
6840 * configure: Likewise.
6841 * testsuite/Makefile.in: Likewise.
6842
6843 2016-11-15 Martin Jambor <mjambor@suse.cz>
6844 Alexander Monakov <amonakov@ispras.ru>
6845
6846 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
6847 mapping clauses to target constructs.
6848 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
6849
6850 2016-11-15 Matthias Klose <doko@ubuntu.com>
6851
6852 * configure: Regenerate.
6853
6854 2016-11-10 Jakub Jelinek <jakub@redhat.com>
6855
6856 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
6857 * omp_lib.h.in (openmp_version): Likewise.
6858 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
6859 of 201307.
6860 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
6861
6862 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
6863 (fib_wrapper): Add map(from: x) clause.
6864 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
6865 (e_53_2): Likewise.
6866 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
6867 (accum): Add map(tmp) clause.
6868 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
6869 (accum): Add map(tofrom: tmp) clause.
6870 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
6871 (gramSchmidt): Likewise.
6872 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
6873 map(tofrom: sum) clause.
6874 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
6875 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
6876 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
6877 only allowed on the loop iterator.
6878 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
6879 * testsuite/libgomp.fortran/taskloop2.f90: New test.
6880 * testsuite/libgomp.fortran/taskloop4.f90: New test.
6881 * testsuite/libgomp.fortran/doacross1.f90: New test.
6882 * testsuite/libgomp.fortran/doacross3.f90: New test.
6883 * testsuite/libgomp.fortran/taskloop1.f90: New test.
6884 * testsuite/libgomp.fortran/taskloop3.f90: New test.
6885 * testsuite/libgomp.fortran/doacross2.f90: New test.
6886 * testsuite/libgomp.c/doacross-1.c (main): Add missing
6887 #pragma omp atomic read.
6888 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
6889 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
6890
6891 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
6892 Nathan Sidwell <nathan@acm.org>
6893
6894 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
6895 to determine default geometry.
6896 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
6897 dimension.
6898
6899 2016-11-01 Jakub Jelinek <jakub@redhat.com>
6900
6901 * hashtab.h: Use standard GPLv3 with runtime exception
6902 boilerplate.
6903
6904 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
6905
6906 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
6907 size when allocating new thread.
6908
6909 2016-09-14 Marek Polacek <polacek@redhat.com>
6910
6911 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
6912
6913 2016-08-19 Jakub Jelinek <jakub@redhat.com>
6914
6915 PR fortran/71014
6916 * testsuite/libgomp.fortran/pr71014.f90: New test.
6917
6918 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
6919
6920 PR middle-end/70895
6921 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
6922 firstprivate clauses.
6923 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
6924 copy clauses.
6925 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
6926 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
6927 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
6928 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
6929 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
6930 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
6931 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
6932 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
6933 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
6934 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
6935 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6936 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
6937
6938 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
6939
6940 PR fortran/70598
6941 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
6942
6943 2016-08-08 Jakub Jelinek <jakub@redhat.com>
6944
6945 PR c++/58706
6946 * testsuite/libgomp.c++/pr58706.C: New test.
6947
6948 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
6949
6950 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
6951 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
6952 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
6953 Likewise.
6954 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
6955 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
6956 Likewise.
6957 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
6958
6959 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
6960 test, and don't hardcode -O0.
6961
6962 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
6963
6964 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
6965
6966 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
6967
6968 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
6969 test.
6970
6971 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
6972
6973 PR middle-end/71734
6974 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
6975 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
6976
6977 2016-07-01 Jakub Jelinek <jakub@redhat.com>
6978
6979 PR fortran/71717
6980 * testsuite/libgomp.fortran/associate3.f90: New test.
6981
6982 2016-06-17 Jakub Jelinek <jakub@redhat.com>
6983
6984 * testsuite/libgomp.c++/target-21.C: New test.
6985
6986 2016-06-16 Jakub Jelinek <jakub@redhat.com>
6987
6988 * testsuite/libgomp.c++/target-20.C: New test.
6989
6990 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
6991 Cesar Philippidis <cesar@codesourcery.com>
6992
6993 PR middle-end/71373
6994 * libgomp.oacc-c/nested-function-1.c: New file.
6995 * libgomp.oacc-c/nested-function-2.c: Likewise.
6996 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
6997 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
6998 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
6999
7000 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
7001
7002 PR c/71381
7003 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
7004 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
7005 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
7006
7007 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
7008
7009 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
7010 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
7011
7012 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
7013
7014 PR c/70688
7015 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
7016
7017 2016-05-26 Jakub Jelinek <jakub@redhat.com>
7018
7019 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
7020 instead of invalid schedule(static, 0).
7021 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
7022
7023 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
7024
7025 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
7026 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
7027 parameter, use to set async stream around call to gomp_unmap_vars,
7028 call gomp_unmap_vars() with 'do_copyfrom' set to true.
7029 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
7030 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
7031 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
7032 (event_add): Add int parameter, initialize 'val' field when
7033 adding new ptx_event struct.
7034 (nvptx_evec): Adjust event_add() call arguments.
7035 (nvptx_host2dev): Likewise.
7036 (nvptx_dev2host): Likewise.
7037 (nvptx_wait_async): Likewise.
7038 (nvptx_wait_all_async): Likewise.
7039 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
7040 pass to event_add() call.
7041 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
7042 parameter.
7043 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
7044 call openacc.register_async_cleanup_func() hook.
7045 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
7046 * target.c (gomp_copy_from_async): Delete function.
7047 (gomp_map_vars): Remove async_refcount.
7048 (gomp_unmap_vars): Likewise.
7049 (gomp_load_image_to_device): Likewise.
7050 (omp_target_associate_ptr): Likewise.
7051 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
7052 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
7053 (gomp_copy_from_async): Remove.
7054
7055 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
7056
7057 * target.c (gomp_device_copy): New function.
7058 (gomp_copy_host2dev): Likewise.
7059 (gomp_copy_dev2host): Likewise.
7060 (gomp_free_device_memory): Likewise.
7061 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
7062 (gomp_map_pointer): Likewise.
7063 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
7064 NULL value from alloc_func plugin hook.
7065 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
7066 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
7067 (gomp_unmap_vars): Likewise.
7068 (gomp_update): Adjust to call gomp_copy_dev2host and
7069 gomp_copy_host2dev functions.
7070 (gomp_unload_image_from_device): Handle false value from
7071 unload_image_func plugin hook.
7072 (gomp_init_device): Handle false value from init_device_func
7073 plugin hook.
7074 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
7075 (omp_target_free): Adjust to call gomp_free_device_memory.
7076 (omp_target_memcpy): Handle return values from host2dev_func,
7077 dev2host_func, and dev2dev_func plugin hooks.
7078 (omp_target_memcpy_rect_worker): Likewise.
7079 (gomp_target_fini): Handle false value from fini_device_func
7080 plugin hook.
7081 * libgomp.h (struct gomp_device_descr): Adjust return type of
7082 init_device_func, fini_device_func, unload_image_func, free_func,
7083 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
7084 * oacc-init.c (acc_shutdown_1): Handle false value from
7085 fini_device_func plugin hook.
7086 * oacc-host.c (host_init_device): Change return type to bool.
7087 (host_fini_device): Likewise.
7088 (host_unload_image): Likewise.
7089 (host_free): Likewise.
7090 (host_dev2host): Likewise.
7091 (host_host2dev): Likewise.
7092 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
7093 (acc_memcpy_to_device): Likewise.
7094 (acc_memcpy_from_device): Likewise.
7095 (delete_copyout): Add libfnname parameter, handle free_func
7096 hook fatal error case.
7097 (acc_delete): Adjust delete_copyout call.
7098 (acc_copyout): Likewise.
7099 (update_dev_host): Move gomp_mutex_unlock to after
7100 host2dev/dev2host hook calls.
7101
7102 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
7103 to 'hsa_error_msg', for clarity.
7104 (hsa_fatal): Likewise.
7105 (hsa_error): New function.
7106 (init_hsa_context): Change return type to bool, adjust to return
7107 false on error.
7108 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
7109 return value.
7110 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
7111 return false on error.
7112 (get_agent_info): Adjust to return NULL on error.
7113 (destroy_hsa_program): Change return type to bool, adjust to
7114 return false on error.
7115 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
7116 (destroy_module): Change return type to bool, adjust to
7117 return false on error.
7118 (GOMP_OFFLOAD_unload_image): Likewise.
7119 (GOMP_OFFLOAD_fini_device): Likewise.
7120 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
7121 (GOMP_OFFLOAD_free): Change to return false when called.
7122 (GOMP_OFFLOAD_dev2host): Likewise.
7123 (GOMP_OFFLOAD_host2dev): Likewise.
7124 (GOMP_OFFLOAD_dev2dev): Likewise.
7125
7126 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
7127 (CUDA_CALL): Likewise.
7128 (CUDA_CALL_ASSERT): Likewise.
7129 (map_init): Change return type to bool, use CUDA_CALL* macros.
7130 (map_fini): Likewise.
7131 (init_streams_for_device): Change return type to bool, adjust
7132 call to map_init.
7133 (fini_streams_for_device): Change return type to bool, adjust
7134 call to map_fini.
7135 (select_stream_for_async): Release stream_lock before calls to
7136 GOMP_PLUGIN_fatal, adjust call to map_init.
7137 (nvptx_init): Use CUDA_CALL* macros.
7138 (nvptx_attach_host_thread_to_device): Change return type to bool,
7139 use CUDA_CALL* macros.
7140 (nvptx_open_device): Use CUDA_CALL* macros.
7141 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
7142 macros.
7143 (nvptx_get_num_devices): Use CUDA_CALL* macros.
7144 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
7145 (nvptx_exec): Use CUDA_CALL* macros.
7146 (nvptx_alloc): Use CUDA_CALL* macros.
7147 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
7148 (nvptx_host2dev): Likewise.
7149 (nvptx_dev2host): Likewise.
7150 (nvptx_wait): Use CUDA_CALL* macros.
7151 (nvptx_wait_async): Likewise.
7152 (nvptx_wait_all): Likewise.
7153 (nvptx_wait_all_async): Likewise.
7154 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
7155 use CUDA_CALL* macros, adjust call to map_fini.
7156 (GOMP_OFFLOAD_init_device): Change return type to bool,
7157 adjust code accordingly.
7158 (GOMP_OFFLOAD_fini_device): Likewise.
7159 (GOMP_OFFLOAD_load_image): Adjust calls to
7160 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
7161 use CUDA_CALL* macros.
7162 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
7163 return code.
7164 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
7165 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
7166 handle error return.
7167 (GOMP_OFFLOAD_dev2host): Likewise.
7168 (GOMP_OFFLOAD_host2dev): Likewise.
7169 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
7170 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
7171
7172 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
7173
7174 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
7175 (acc_free): Likewise.
7176 (acc_memcpy_to_device): Likewise.
7177 (acc_memcpy_from_device): Likewise.
7178 (acc_deviceptr): Likewise.
7179 (acc_hostptr): Likewise.
7180 (acc_is_present): Likewise.
7181 (acc_map_data): Likewise.
7182 (acc_unmap_data): Likewise.
7183 (present_create_copy): Likewise.
7184 (delete_copyout): Likewise.
7185 (update_dev_host): Likewise.
7186 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
7187 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
7188 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
7189 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
7190 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
7191 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
7192 it only runs on nvptx targets.
7193 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
7194 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
7195 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7196 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7197 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7198 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7199 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7200 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7201 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7202 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
7203 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7204 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7205 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7206 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7207 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7208 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7209 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7210 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7211 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7212 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7213 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7214 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7215 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7216
7217 2016-05-23 Martin Jambor <mjambor@suse.cz>
7218
7219 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
7220
7221 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
7222
7223 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
7224 to gomp_init_targets_once.
7225 (acc_set_device_type): Remove !cached_base_dev condition on call to
7226 gomp_init_targets_once, move call to before acc_device_lock acquire,
7227 to avoid deadlock.
7228 (acc_get_device_num): Remove !cached_base_dev condition on call to
7229 gomp_init_targets_once.
7230 (acc_set_device_num): Likewise.
7231
7232 2016-05-16 Martin Jambor <mjambor@suse.cz>
7233
7234 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
7235
7236 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
7237
7238 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
7239 expected partitioning.
7240
7241 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
7242
7243 PR middle-end/70626
7244 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
7245 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
7246 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
7247
7248 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
7249
7250 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
7251 non-fatal.
7252
7253 2016-04-19 Jakub Jelinek <jakub@redhat.com>
7254
7255 PR middle-end/70680
7256 * testsuite/libgomp.c/pr70680-1.c: New test.
7257 * testsuite/libgomp.c/pr70680-2.c: New test.
7258
7259 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
7260
7261 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
7262 pass parameter variables to subroutines.
7263
7264 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
7265
7266 PR middle-end/70643
7267 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
7268
7269 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
7270
7271 PR testsuite/68242
7272 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
7273 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
7274
7275 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
7276
7277 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
7278 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
7279 GOACC_declare prototype.
7280
7281 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
7282 Merge this file, and...
7283 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
7284 ... this file, and...
7285 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
7286 ... this file, and...
7287 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
7288 ... this file, and...
7289 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
7290 ... this file, and...
7291 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
7292 ... this file, and...
7293 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
7294 ... this file, and...
7295 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
7296 ... this file, and...
7297 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
7298 ... this file, and...
7299 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
7300 ... this file, and...
7301 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
7302 ... this file, and...
7303 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
7304 ... this file, and...
7305 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
7306 ... this file into...
7307 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
7308 file.
7309
7310 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
7311 Make failure observable.
7312
7313 2016-04-12 Jakub Jelinek <jakub@redhat.com>
7314
7315 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
7316 field.
7317 * target.c (gomp_target_fallback_firstprivate,
7318 gomp_target_unshare_firstprivate): Removed.
7319 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
7320 before waiting for dependencies.
7321 (gomp_target_task_fn): Don't copy firstprivate vars here.
7322 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
7323 firstprivate_copies here.
7324 (gomp_create_target_task): Don't initialize firstprivate_copies field.
7325 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
7326 explicit/implicit firstprivate.
7327
7328 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
7329
7330 PR lto/70289
7331 PR ipa/70348
7332 PR tree-optimization/70373
7333 PR middle-end/70533
7334 PR middle-end/70534
7335 PR middle-end/70535
7336 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
7337 test.
7338 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
7339 test.
7340 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
7341 test.
7342 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
7343 test.
7344 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
7345 test.
7346 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
7347 test.
7348 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
7349 test.
7350 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
7351 test.
7352 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
7353 test.
7354 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
7355 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
7356 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
7357 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
7358 test.
7359 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
7360 test.
7361 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
7362 test.
7363 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
7364 test.
7365 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
7366 coverage.
7367 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
7368 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
7369 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
7370 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
7371 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
7372 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
7373 coverage.
7374 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
7375 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
7376 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
7377 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
7378 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
7379 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
7380 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
7381 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
7382 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
7383 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
7384 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
7385 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
7386 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
7387 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
7388 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
7389
7390 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
7391 James Norris <jnorris@codesourcery.com>
7392 Nathan Sidwell <nathan@codesourcery.com>
7393 Julian Brown <julian@codesourcery.com>
7394 Cesar Philippidis <cesar@codesourcery.com>
7395 Chung-Lin Tang <cltang@codesourcery.com>
7396 Tom de Vries <tom@codesourcery.com>
7397
7398 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
7399 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
7400 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
7401 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
7402 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
7403 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
7404 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
7405 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
7406 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
7407 XFAIL.
7408 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
7409 Incorporate...
7410 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
7411 file.
7412 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
7413 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
7414 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
7415 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
7416 Likewise.
7417 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
7418 Likewise.
7419 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
7420 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
7421 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
7422 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
7423 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
7424 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
7425 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
7426 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
7427 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
7428 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
7429 Likewise.
7430 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
7431 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
7432 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
7433 file...
7434 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
7435 file into...
7436 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
7437 file. Update.
7438 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
7439 file.
7440 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
7441 Likewise.
7442 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
7443 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
7444 ... this new file. Update.
7445 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
7446 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
7447 ... this new file. Update.
7448 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
7449 file. Incorporate...
7450 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
7451 file, and...
7452 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
7453 file, and...
7454 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
7455 file.
7456 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
7457
7458 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
7459
7460 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
7461 set-torture-options.
7462
7463 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
7464
7465 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
7466 gcc-dg-runtest.
7467 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7468 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
7469 -fno-builtin-acc_on_device instead of -O0.
7470 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
7471 -O0.
7472 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
7473 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
7474 Likewise.
7475 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
7476 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
7477 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
7478 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
7479 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
7480 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
7481 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
7482 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
7483 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
7484 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
7485 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
7486 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
7487 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
7488 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
7489 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
7490 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
7491 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
7492 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
7493 Don't specify -O2.
7494 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
7495 Likewise.
7496 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
7497 Likewise.
7498
7499 2016-03-24 Martin Liska <mliska@suse.cz>
7500
7501 * plugin/plugin-hsa.c (packet_store_release): New function
7502 that is taken from the HSA runtime manual.
7503 (GOMP_OFFLOAD_run): Use the function.
7504
7505 2016-03-23 Jakub Jelinek <jakub@redhat.com>
7506
7507 PR c++/70376
7508 * testsuite/libgomp.c++/pr70376.C: New test.
7509
7510 2016-03-23 Tom de Vries <tom@codesourcery.com>
7511
7512 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
7513 initialization of lresult and lvresult.
7514 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
7515
7516 2016-03-23 James Norris <jnorris@codesourcery.com>
7517 Daichi Fukuoka <dc-fukuoka@sgi.com>
7518
7519 PR libgomp/69414
7520 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
7521 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
7522 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
7523 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
7524
7525 2016-03-23 Martin Liska <mliska@suse.cz>
7526
7527 PR hsa/70337
7528 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
7529 argument just in case a dispatched kernel uses that argument.
7530
7531 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
7532
7533 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
7534 -ftree-parallelize-loops/-fopenacc changes.
7535 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
7536 Likewise.
7537 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
7538 Likewise.
7539 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
7540 Likewise.
7541 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
7542 Likewise.
7543 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
7544 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
7545
7546 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
7547
7548 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
7549 always_ld_library_path the path to libgcc_s.
7550
7551 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
7552
7553 PR testsuite/70009
7554 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
7555
7556 2016-03-09 Tom de Vries <tom@codesourcery.com>
7557
7558 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
7559 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
7560 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
7561 Same.
7562 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
7563 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
7564 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
7565 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
7566
7567 2016-03-07 Martin Jambor <mjambor@suse.cz>
7568
7569 * testsuite/lib/libgomp.exp
7570 (check_effective_target_hsa_offloading_selected_nocache): New.
7571 (check_effective_target_hsa_offloading_selected): Likewise.
7572 * testsuite/libgomp.hsa.c/c.exp: Likewise.
7573 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
7574 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
7575 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
7576 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
7577 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
7578 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
7579 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
7580 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
7581 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
7582 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
7583 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
7584 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
7585 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
7586 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
7587 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
7588 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
7589
7590 2016-03-07 Martin Jambor <mjambor@suse.cz>
7591
7592 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
7593 non-shared memory accelerators.
7594 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
7595 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
7596 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
7597 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
7598 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
7599 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
7600 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
7601 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
7602 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
7603
7604 2016-03-07 Martin Jambor <mjambor@suse.cz>
7605
7606 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
7607 ALWAYS_CFLAGS.
7608
7609 2016-03-02 Jakub Jelinek <jakub@redhat.com>
7610
7611 PR libgomp/69555
7612 * testsuite/libgomp.c++/pr69555-1.C: New test.
7613 * testsuite/libgomp.c++/pr69555-2.C: New test.
7614
7615 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
7616 Martin Jambor <mjambor@suse.cz>
7617
7618 * testsuite/lib/libgomp.exp
7619 (check_effective_target_offload_device_shared_as): New proc.
7620 * testsuite/libgomp.c++/declare_target-1.C: New test.
7621
7622 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
7623
7624 PR driver/68463
7625 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
7626
7627 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
7628
7629 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
7630 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
7631 dims.
7632 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
7633 -ftree-parallelize-loops/-fopenacc changes.
7634 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
7635 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
7636 Likewise.
7637 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
7638 Likewise.
7639 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
7640 Likewise.
7641 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
7642 Likewise.
7643 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
7644 Likewise.
7645 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
7646 Likewise.
7647 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
7648 Likewise.
7649 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
7650 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
7651 Likewise.
7652 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
7653 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
7654 Likewise.
7655 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
7656 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
7657 Likewise.
7658
7659 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
7660
7661 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
7662
7663 2016-02-19 Jakub Jelinek <jakub@redhat.com>
7664
7665 PR driver/69805
7666 * testsuite/libgomp.c/pr69805.c: New test.
7667
7668 2016-02-16 Tom de Vries <tom@codesourcery.com>
7669
7670 PR lto/67709
7671 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
7672
7673 2016-02-09 Tom de Vries <tom@codesourcery.com>
7674
7675 PR tree-optimization/69599
7676 * testsuite/libgomp.c/omp-nested-3.c: New test.
7677 * testsuite/libgomp.c/pr46032-2.c: New test.
7678 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
7679 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
7680
7681 2016-02-09 Tom de Vries <tom@codesourcery.com>
7682
7683 PR lto/69707
7684 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
7685
7686 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
7687
7688 * testsuite/libgomp.c/target-31.c: Fix testcase.
7689
7690 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
7691
7692 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
7693 clause.
7694 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
7695 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
7696 reduction and map clauses.
7697 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
7698
7699 2016-02-02 James Norris <jnorris@codesourcery.com>
7700
7701 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
7702
7703 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
7704
7705 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
7706 * oacc-parallel.c (GOACC_host_data): Remove function definition.
7707
7708 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
7709 cases.
7710
7711 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
7712 variables.
7713 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
7714 (hsa_kmt_lib): Set variables.
7715 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
7716 always_ld_library_path.
7717 * Makefile.in: Regenerate.
7718 * configure: Likewise.
7719 * testsuite/Makefile.in: Likewise.
7720
7721 * plugin/configfrag.ac (offload_additional_options)
7722 (offload_additional_lib_paths): Don't amend for hsa offloading.
7723 * configure: Regenerate.
7724
7725 * plugin/configfrag.ac: Don't configure for offloading target if
7726 we don't build the corresponding plugin.
7727 * configure: Regenerate.
7728
7729 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
7730
7731 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
7732 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
7733
7734 2016-01-26 Tom de Vries <tom@codesourcery.com>
7735
7736 PR tree-optimization/69110
7737 * testsuite/libgomp.c/pr69110.c: New test.
7738
7739 2016-01-25 Richard Biener <rguenther@suse.de>
7740
7741 PR lto/69393
7742 * testsuite/libgomp.c++/pr69393.C: New testcase.
7743
7744 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
7745
7746 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
7747 function wasn't mapped to the device with non-shared memory.
7748
7749 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
7750
7751 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
7752
7753 2016-01-19 Martin Jambor <mjambor@suse.cz>
7754 Martin Liska <mliska@suse.cz>
7755
7756 * plugin/Makefrag.am: Add HSA plugin requirements.
7757 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
7758 (HSA_RUNTIME_LIB): Likewise.
7759 (HSA_RUNTIME_CPPFLAGS): Likewise.
7760 (HSA_RUNTIME_INCLUDE): New substitution.
7761 (HSA_RUNTIME_LIB): Likewise.
7762 (HSA_RUNTIME_LDFLAGS): Likewise.
7763 (hsa-runtime): New configure option.
7764 (hsa-runtime-include): Likewise.
7765 (hsa-runtime-lib): Likewise.
7766 (PLUGIN_HSA): New substitution variable.
7767 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
7768 configure options.
7769 (PLUGIN_HSA_CPPFLAGS): Likewise.
7770 (PLUGIN_HSA_LDFLAGS): Likewise.
7771 (PLUGIN_HSA_LIBS): Likewise.
7772 Check that we have access to HSA run-time.
7773 * libgomp-plugin.h (offload_target_type): New element
7774 OFFLOAD_TARGET_TYPE_HSA.
7775 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
7776 args.
7777 (bool gomp_create_target_task): Updated.
7778 (gomp_device_descr): Extra parameter of run_func and async_run_func,
7779 new field can_run_func.
7780 * libgomp_g.h (GOMP_target_ext): Update prototype.
7781 * oacc-host.c (host_run): Added a new parameter args.
7782 * target.c (calculate_firstprivate_requirements): New function.
7783 (copy_firstprivate_data): Likewise.
7784 (gomp_target_fallback_firstprivate): Use them.
7785 (gomp_target_unshare_firstprivate): New function.
7786 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
7787 devices.
7788 (GOMP_target): Do host fallback for all shared memory devices. Do not
7789 pass any args to plugins.
7790 (GOMP_target_ext): Introduce device-specific argument parameter args.
7791 Allow host fallback if device shares memory. Do not remap data if
7792 device has shared memory.
7793 (gomp_target_task_fn): Likewise. Also treat shared memory devices
7794 like host fallback for mappings.
7795 (GOMP_target_data): Treat shared memory devices like host fallback.
7796 (GOMP_target_data_ext): Likewise.
7797 (GOMP_target_update): Likewise.
7798 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
7799 gomp_create_target_task.
7800 (GOMP_target_enter_exit_data): Likewise.
7801 (omp_target_alloc): Treat shared memory devices like host fallback.
7802 (omp_target_free): Likewise.
7803 (omp_target_is_present): Likewise.
7804 (omp_target_memcpy): Likewise.
7805 (omp_target_memcpy_rect): Likewise.
7806 (omp_target_associate_ptr): Likewise.
7807 (gomp_load_plugin_for_device): Also load can_run.
7808 * task.c (GOMP_PLUGIN_target_task_completion): Free
7809 firstprivate_copies.
7810 (gomp_create_target_task): Accept new argument args and store it to
7811 ttask.
7812 * plugin/plugin-hsa.c: New file.
7813
7814 2016-01-18 Tom de Vries <tom@codesourcery.com>
7815
7816 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
7817 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
7818 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
7819 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
7820 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
7821 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
7822 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
7823 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
7824 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
7825 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
7826 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
7827 Same.
7828 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
7829 Same.
7830 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
7831 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
7832 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
7833 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
7834 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
7835 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
7836 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
7837 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
7838 Same.
7839 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
7840
7841 2016-01-15 Jakub Jelinek <jakub@redhat.com>
7842
7843 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
7844
7845 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
7846
7847 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
7848
7849 2016-01-12 James Norris <jnorris@codesourcery.com>
7850
7851 * libgomp.texi: Updates for OpenACC.
7852
7853 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
7854
7855 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
7856
7857 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
7858
7859 PR fortran/66680
7860 * testsuite/libgomp.fortran/pr66680.f90: New test.
7861
7862 2016-01-07 Jakub Jelinek <jakub@redhat.com>
7863
7864 PR middle-end/68960
7865 * testsuite/libgomp.c/pr68960.c: New test.
7866
7867 2016-01-06 Nathan Sidwell <nathan@acm.org>
7868
7869 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
7870 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
7871
7872 2016-01-04 Jakub Jelinek <jakub@redhat.com>
7873
7874 Update copyright years.
7875
7876 * libgomp.texi: Bump @copying's copyright year.
7877
7878 2015-12-31 Nathan Sidwell <nathan@acm.org>
7879
7880 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
7881 dg-additional-options syntax.
7882 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
7883 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
7884 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
7885 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
7886 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
7887 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
7888 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
7889 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
7890 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
7891 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
7892 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
7893 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
7894 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
7895 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
7896 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
7897 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
7898 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
7899 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
7900
7901 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
7902
7903 * libgomp.h (REFCOUNT_LINK): Define.
7904 (struct splay_tree_key_s): Add link_key.
7905 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
7906 Replace target address of the pointer with target address of newly
7907 mapped object in the splay tree. Set link pointer on target to the
7908 device address of the mapped object.
7909 (gomp_unmap_vars): Restore target address of the pointer in the splay
7910 tree for REFCOUNT_LINK objects after unmapping.
7911 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
7912 declare target link" objects.
7913 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
7914 "omp declare target link" objects, which were mapped for the image.
7915 (gomp_exit_data): Restore target address of the pointer in the splay
7916 tree for REFCOUNT_LINK objects after unmapping.
7917 * testsuite/libgomp.c/target-link-1.c: New file.
7918
7919 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
7920
7921 * libgomp.h (gomp_device_state): New enum.
7922 (struct gomp_device_descr): Replace is_initialized with state.
7923 (gomp_fini_device): Remove declaration.
7924 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
7925 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
7926 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
7927 (acc_set_device_type): Use state instead of is_initialized.
7928 (acc_set_device_num): Likewise.
7929 * target.c (resolve_device): Use state instead of is_initialized.
7930 Do not initialize finalized device.
7931 (gomp_map_vars): Do nothing if device is finalized.
7932 (gomp_unmap_vars): Likewise.
7933 (gomp_update): Likewise.
7934 (GOMP_offload_register_ver): Use state instead of is_initialized.
7935 (GOMP_offload_unregister_ver): Likewise.
7936 (gomp_init_device): Likewise.
7937 (gomp_unload_device): Likewise.
7938 (gomp_fini_device): Remove.
7939 (gomp_get_target_fn_addr): Do nothing if device is finalized.
7940 (GOMP_target): Go to host fallback if device is finalized.
7941 (GOMP_target_ext): Likewise.
7942 (gomp_exit_data): Do nothing if device is finalized.
7943 (gomp_target_task_fn): Go to host fallback if device is finalized.
7944 (gomp_target_fini): New static function.
7945 (gomp_target_init): Use state instead of is_initialized.
7946 Call gomp_target_fini at exit.
7947
7948 2015-12-09 Tom de Vries <tom@codesourcery.com>
7949
7950 PR tree-optimization/68716
7951 * testsuite/libgomp.c/omp-nested-2.c: New test.
7952
7953 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
7954
7955 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
7956 target openacc_nvidia_accel_selected.
7957 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
7958 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
7959 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
7960 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
7961
7962 2015-12-01 Julian Brown <julian@codesourcery.com>
7963 James Norris <James_Norris@mentor.com>
7964
7965 * oacc-parallel.c (GOACC_host_data): New function.
7966 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
7967 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
7968 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
7969 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
7970 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
7971 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
7972 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
7973
7974 2015-11-30 James Norris <jnorris@codesourcery.com>
7975 Cesar Philippidis <cesar@codesourcery.com>
7976
7977 libgomp/
7978 * libgomp.oacc-fortran/routine-5.f90: New test.
7979 * libgomp.oacc-fortran/routine-7.f90: New test.
7980 * libgomp.oacc-fortran/routine-9.f90: New test.
7981
7982 2015-11-30 Tom de Vries <tom@codesourcery.com>
7983
7984 PR tree-optimization/46032
7985 * testsuite/libgomp.c/pr46032.c: New test.
7986
7987 2015-11-27 Jakub Jelinek <jakub@redhat.com>
7988
7989 PR libgomp/68579
7990 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
7991 (gomp_create_target_task): Call it before freeing
7992 GOMP_TARGET_TASK_DATA tasks.
7993
7994 PR c/63326
7995 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
7996 in between case label and OpenMP standalone directives.
7997 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
7998
7999 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
8000
8001 * configure: Regenerate.
8002
8003 2015-11-26 Jakub Jelinek <jakub@redhat.com>
8004
8005 * testsuite/libgomp.c/target-35.c: New test.
8006
8007 2015-11-22 James Norris <jnorris@codesourcery.com>
8008 Cesar Philippidis <cesar@codesourcery.com>
8009
8010 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
8011 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
8012 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
8013 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
8014 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
8015
8016 2015-11-20 Jakub Jelinek <jakub@redhat.com>
8017
8018 PR middle-end/68221
8019 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
8020 * testsuite/libgomp.c/reduction-12.c: Likewise.
8021 * testsuite/libgomp.c++/reduction-11.C: Likewise.
8022 * testsuite/libgomp.c++/reduction-12.C: Likewise.
8023
8024 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
8025
8026 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
8027 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
8028 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
8029 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
8030 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
8031 and fix.
8032 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
8033 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
8034
8035 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
8036
8037 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
8038 worker & gang cases.
8039 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
8040
8041 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
8042
8043 * config/nvptx/priority_queue.c: New file.
8044
8045 2015-11-14 Jakub Jelinek <jakub@redhat.com>
8046
8047 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
8048 sections.
8049
8050 2015-11-14 Jakub Jelinek <jakub@redhat.com>
8051 Aldy Hernandez <aldyh@redhat.com>
8052 Ilya Verbin <ilya.verbin@intel.com>
8053
8054 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
8055 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
8056 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
8057 iterators or IV by chunk size.
8058 * parallel.c (gomp_resolve_num_threads): Don't assume that
8059 if thr->ts.team is non-NULL, then pool must be non-NULL.
8060 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
8061 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
8062 GOMP_PLUGIN_target_task_completion.
8063 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
8064 * Makefile.in: Regenerate.
8065 * libgomp.h: Shuffle prototypes and forward definitions around so
8066 priority queues can be defined.
8067 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
8068 (enum gomp_target_task_state): New enum.
8069 (struct gomp_target_task): Add state, tgt, task and team fields.
8070 (gomp_create_target_task): Change return type to bool, add
8071 state argument.
8072 (gomp_target_task_fn): Change return type to bool.
8073 (struct gomp_device_descr): Add async_run_func.
8074 (struct gomp_task): Remove children, next_child, prev_child,
8075 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
8076 Add pnode field.
8077 (struct gomp_taskgroup): Remove children.
8078 Add taskgroup_queue.
8079 (struct gomp_team): Change task_queue type to a priority queue.
8080 (splay_compare): Define inline.
8081 (priority_queue_offset): New.
8082 (priority_node_to_task): New.
8083 (task_to_priority_node): New.
8084 * oacc-mem.c: Do not include splay-tree.h.
8085 * priority_queue.c: New file.
8086 * priority_queue.h: New file.
8087 * splay-tree.c: Do not include splay-tree.h.
8088 (splay_tree_foreach_internal): New.
8089 (splay_tree_foreach): New.
8090 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
8091 (splay_tree_callback): Define typedef.
8092 * target.c (splay_compare): Move to libgomp.h.
8093 (GOMP_target): Don't adjust *thr in any way around running offloaded
8094 task.
8095 (GOMP_target_ext): Likewise. Handle target nowait.
8096 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
8097 return value from gomp_create_target_task, if false, fallthrough
8098 as if no dependencies exist.
8099 (gomp_target_task_fn): Change return type to bool, return true
8100 if the task should have another part scheduled later. Handle
8101 target nowait.
8102 (gomp_load_plugin_for_device): Initialize async_run.
8103 * task.c (gomp_init_task): Initialize children_queue.
8104 (gomp_clear_parent_in_list): New.
8105 (gomp_clear_parent_in_tree): New.
8106 (gomp_clear_parent): Handle priorities.
8107 (GOMP_task): Likewise.
8108 (priority_queue_move_task_first,
8109 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
8110 New functions.
8111 (gomp_create_target_task): Use priority queues. Change return type
8112 to bool, add state argument, return false if for async
8113 {{enter,exit} data,update} constructs no dependencies need to be
8114 waited for, handle target nowait. Set task->fn to NULL instead of
8115 gomp_target_task_fn.
8116 (verify_children_queue): Remove.
8117 (priority_list_upgrade_task): New.
8118 (priority_queue_upgrade_task): New.
8119 (verify_task_queue): Remove.
8120 (priority_list_downgrade_task): New.
8121 (priority_queue_downgrade_task): New.
8122 (gomp_task_run_pre): Use priority queues.
8123 Abstract code out to priority_queue_downgrade_task.
8124 (gomp_task_run_post_handle_dependers): Use priority queues.
8125 (gomp_task_run_post_remove_parent): Likewise.
8126 (gomp_task_run_post_remove_taskgroup): Likewise.
8127 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
8128 tasks specially.
8129 (GOMP_taskwait): Likewise.
8130 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
8131 priority-queue_upgrade_task.
8132 (GOMP_taskgroup_start): Use priority queues.
8133 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
8134 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
8135 barrier.
8136 * taskloop.c (GOMP_taskloop): Handle priorities.
8137 * team.c (gomp_new_team): Call priority_queue_init.
8138 (free_team): Call priority_queue_free.
8139 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
8140 team created for target nowait in implicit parallel region.
8141 (gomp_team_start): For nested check, test thr->ts.level instead of
8142 thr->ts.team != NULL.
8143 * testsuite/libgomp.c/doacross-3.c: New test.
8144 * testsuite/libgomp.c/ordered-5.c: New test.
8145 * testsuite/libgomp.c/priority.c: New test.
8146 * testsuite/libgomp.c/target-31.c: New test.
8147 * testsuite/libgomp.c/target-32.c: New test.
8148 * testsuite/libgomp.c/target-33.c: New test.
8149 * testsuite/libgomp.c/target-34.c: New test.
8150
8151 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
8152
8153 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
8154
8155 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
8156 loop is sequential.
8157
8158 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
8159
8160 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
8161 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
8162
8163 2015-11-12 James Norris <jnorris@codesourcery.com>
8164 Joseph Myers <joseph@codesourcery.com>
8165
8166 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
8167 * oacc-parallel.c (GOACC_declare): New function.
8168 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
8169 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
8170 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
8171 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
8172 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
8173
8174 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
8175
8176 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
8177
8178 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
8179
8180 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
8181 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
8182
8183 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
8184
8185 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
8186 inadvertent commit.
8187
8188 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
8189
8190 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
8191 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
8192 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
8193 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
8194 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
8195
8196 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
8197
8198 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
8199 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
8200
8201 2015-11-05 Jakub Jelinek <jakub@redhat.com>
8202 Ilya Verbin <ilya.verbin@intel.com>
8203
8204 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
8205 GOMP_loop_nonmonotonic_dynamic_start,
8206 GOMP_loop_nonmonotonic_guided_next,
8207 GOMP_loop_nonmonotonic_guided_start,
8208 GOMP_loop_ull_nonmonotonic_dynamic_next,
8209 GOMP_loop_ull_nonmonotonic_dynamic_start,
8210 GOMP_loop_ull_nonmonotonic_guided_next,
8211 GOMP_loop_ull_nonmonotonic_guided_start,
8212 GOMP_parallel_loop_nonmonotonic_dynamic,
8213 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
8214 (GOMP_target_41): Renamed to ...
8215 (GOMP_target_ext): ... this. Add num_teams and thread_limit
8216 arguments.
8217 (GOMP_target_data_41): Renamed to ...
8218 (GOMP_target_data_ext): ... this.
8219 (GOMP_target_update_41): Renamed to ...
8220 (GOMP_target_update_ext): ... this.
8221 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
8222 GOMP_target_data_ext and GOMP_target_update_ext instead of
8223 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
8224 Export GOMP_loop_nonmonotonic_dynamic_next,
8225 GOMP_loop_nonmonotonic_dynamic_start,
8226 GOMP_loop_nonmonotonic_guided_next,
8227 GOMP_loop_nonmonotonic_guided_start,
8228 GOMP_loop_ull_nonmonotonic_dynamic_next,
8229 GOMP_loop_ull_nonmonotonic_dynamic_start,
8230 GOMP_loop_ull_nonmonotonic_guided_next,
8231 GOMP_loop_ull_nonmonotonic_guided_start,
8232 GOMP_parallel_loop_nonmonotonic_dynamic and
8233 GOMP_parallel_loop_nonmonotonic_guided.
8234 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
8235 GOMP_parallel_loop_nonmonotonic_guided,
8236 GOMP_loop_nonmonotonic_dynamic_start,
8237 GOMP_loop_nonmonotonic_guided_start,
8238 GOMP_loop_nonmonotonic_dynamic_next,
8239 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
8240 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
8241 GOMP_loop_ull_nonmonotonic_guided_start,
8242 GOMP_loop_ull_nonmonotonic_dynamic_next,
8243 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
8244 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
8245 functions.
8246 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
8247 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
8248 Use gomp_map_val function.
8249 (gomp_target_fallback_firstprivate): New static function.
8250 (GOMP_target_41): Renamed to ...
8251 (GOMP_target_ext): ... this. Add num_teams and thread_limit
8252 arguments. Move firstprivate fallback handling into a new
8253 function.
8254 (GOMP_target_data_41): Renamed to ...
8255 (GOMP_target_data_ext): ... this.
8256 (GOMP_target_update_41): Renamed to ...
8257 (GOMP_target_update_ext): ... this.
8258 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
8259 gomp_map_0len_lookup instead of gomp_map_lookup.
8260 (omp_target_is_present): Use gomp_map_0len_lookup instead of
8261 gomp_map_lookup.
8262 * testsuite/libgomp.c/target-28.c: Likewise.
8263 * testsuite/libgomp.c/monotonic-1.c: New test.
8264 * testsuite/libgomp.c/monotonic-2.c: New test.
8265 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
8266 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
8267 * testsuite/libgomp.c/pr66199-5.c: New test.
8268 * testsuite/libgomp.c/pr66199-6.c: New test.
8269 * testsuite/libgomp.c/pr66199-7.c: New test.
8270 * testsuite/libgomp.c/pr66199-8.c: New test.
8271 * testsuite/libgomp.c/pr66199-9.c: New test.
8272 * testsuite/libgomp.c/reduction-11.c: New test.
8273 * testsuite/libgomp.c/reduction-12.c: New test.
8274 * testsuite/libgomp.c/reduction-13.c: New test.
8275 * testsuite/libgomp.c/reduction-14.c: New test.
8276 * testsuite/libgomp.c/reduction-15.c: New test.
8277 * testsuite/libgomp.c/target-12.c (main): Adjust for
8278 omp_target_is_present change for one-past-last element.
8279 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
8280 the same var is both mapped and privatized.
8281 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
8282 handling of zero-length array sections.
8283 * testsuite/libgomp.c/target-28.c: New test.
8284 * testsuite/libgomp.c/target-29.c: New test.
8285 * testsuite/libgomp.c/target-30.c: New test.
8286 * testsuite/libgomp.c/target-teams-1.c: New test.
8287 * testsuite/libgomp.c++/member-6.C: New test.
8288 * testsuite/libgomp.c++/member-7.C: New test.
8289 * testsuite/libgomp.c++/monotonic-1.C: New test.
8290 * testsuite/libgomp.c++/monotonic-2.C: New test.
8291 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
8292 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
8293 * testsuite/libgomp.c++/pr66199-3.C: New test.
8294 * testsuite/libgomp.c++/pr66199-4.C: New test.
8295 * testsuite/libgomp.c++/pr66199-5.C: New test.
8296 * testsuite/libgomp.c++/pr66199-6.C: New test.
8297 * testsuite/libgomp.c++/pr66199-7.C: New test.
8298 * testsuite/libgomp.c++/pr66199-8.C: New test.
8299 * testsuite/libgomp.c++/pr66199-9.C: New test.
8300 * testsuite/libgomp.c++/reduction-11.C: New test.
8301 * testsuite/libgomp.c++/reduction-12.C: New test.
8302 * testsuite/libgomp.c++/target-13.C: New test.
8303 * testsuite/libgomp.c++/target-14.C: New test.
8304 * testsuite/libgomp.c++/target-15.C: New test.
8305 * testsuite/libgomp.c++/target-16.C: New test.
8306 * testsuite/libgomp.c++/target-17.C: New test.
8307 * testsuite/libgomp.c++/target-18.C: New test.
8308 * testsuite/libgomp.c++/target-19.C: New test.
8309
8310 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
8311
8312 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
8313 and reduction copy.
8314 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
8315 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
8316 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
8317 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8318 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
8319 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
8320 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
8321 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
8322 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
8323 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
8324 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
8325 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
8326 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8327 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
8328
8329 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
8330
8331 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
8332 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
8333 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
8334 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
8335 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
8336 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
8337 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
8338 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
8339
8340 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
8341
8342 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
8343 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
8344 (GOMP_OFFLOAD_openacc_parallel): Likewise.
8345 * oacc-host.c (host_openacc_exec): Likewise.
8346 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
8347
8348 2015-11-03 Julian Brown <julian@codesourcery.com>
8349 Thomas Schwinge <thomas@codesourcery.com>
8350
8351 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
8352 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
8353 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
8354 Likewise.
8355 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
8356 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
8357
8358 2015-11-03 James Norris <jnorris@codesourcery.com>
8359
8360 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
8361 file.
8362 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
8363 Likewise.
8364 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
8365 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
8366 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
8367 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
8368 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
8369
8370 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
8371
8372 * openacc.h (enum acc_device_t): Reformat. Ensure layout
8373 compatibility.
8374 (enum acc_async_t): Reformat.
8375 (acc_on_device): Declare compatible with builtin and provide C++
8376 wrapper.
8377 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
8378
8379 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
8380 Cesar Philippidis <cesar@codesourcery.com>
8381
8382 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
8383 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
8384 ... this. Add a description of the test at the top of the file.
8385 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
8386 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
8387 ... this. Add a description of the test at the top of the file.
8388
8389 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
8390
8391 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
8392 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
8393 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
8394 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
8395 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
8396 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
8397
8398 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
8399
8400 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
8401 dimensions.
8402
8403 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
8404
8405 PR testsuite/68063
8406 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
8407
8408 2015-10-27 James Norris <jnorris@codesourcery.com>
8409
8410 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
8411 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
8412
8413 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
8414
8415 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
8416 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
8417
8418 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
8419 acc_device_nvidia usage.
8420 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
8421 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
8422 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
8423
8424 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
8425 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
8426
8427 PR libgomp/66518
8428 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
8429
8430 PR libgomp/65437
8431 PR libgomp/66518
8432 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
8433 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
8434
8435 2015-10-23 Tom de Vries <tom@codesourcery.com>
8436
8437 PR testsuite/68063
8438 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
8439
8440 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
8441
8442 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
8443 vector_length.
8444 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8445
8446 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
8447 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
8448
8449 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
8450 to 0 when mapnum is 0.
8451
8452 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
8453
8454 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
8455 Cast to int from int32_t.
8456
8457 2015-10-13 Jakub Jelinek <jakub@redhat.com>
8458 Aldy Hernandez <aldyh@redhat.com>
8459 Ilya Verbin <ilya.verbin@intel.com>
8460
8461 * config/linux/affinity.c (omp_get_place_num_procs,
8462 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
8463 * config/linux/doacross.h: New file.
8464 * config/posix/affinity.c (omp_get_place_num_procs,
8465 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
8466 * config/posix/doacross.h: New file.
8467 * env.c: Include gomp-constants.h.
8468 (struct gomp_task_icv): Rename run_sched_modifier to
8469 run_sched_chunk_size.
8470 (gomp_max_task_priority_var): New variable.
8471 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
8472 (handle_omp_display_env): Change _OPENMP value from 201307 to
8473 201511. Print OMP_MAX_TASK_PRIORITY.
8474 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
8475 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
8476 chunk_size and run_sched_modifier to run_sched_chunk_size.
8477 (omp_get_max_task_priority, omp_get_initial_device,
8478 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
8479 omp_get_partition_place_nums): New functions.
8480 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
8481 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
8482 to chunk_size.
8483 (omp_get_num_places_, omp_get_place_num_procs_,
8484 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
8485 omp_get_place_proc_ids_8_, omp_get_place_num_,
8486 omp_get_partition_num_places_, omp_get_partition_place_nums_,
8487 omp_get_partition_place_nums_8_, omp_get_initial_device_,
8488 omp_get_max_task_priority_): New functions.
8489 * libgomp_g.h (GOMP_loop_doacross_static_start,
8490 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
8491 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
8492 GOMP_loop_ull_doacross_dynamic_start,
8493 GOMP_loop_ull_doacross_guided_start,
8494 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
8495 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
8496 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
8497 GOMP_target_data_41, GOMP_target_update_41,
8498 GOMP_target_enter_exit_data): New prototypes.
8499 (GOMP_task): Add prototype argument.
8500 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
8501 (struct gomp_doacross_work_share): New type.
8502 (struct gomp_work_share): Add doacross field.
8503 (struct gomp_task_icv): Rename run_sched_modifier to
8504 run_sched_chunk_size.
8505 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
8506 GOMP_TASK_UNDEFERRED. Add comments.
8507 (struct gomp_task_depend_entry): Add comments.
8508 (struct gomp_task): Likewise.
8509 (struct gomp_taskgroup): Likewise.
8510 (struct gomp_target_task): New type.
8511 (struct gomp_team): Add comment.
8512 (gomp_get_place_proc_ids_8, gomp_doacross_init,
8513 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
8514 gomp_create_target_task, gomp_target_task_fn): New prototypes.
8515 (struct target_var_desc): New type.
8516 (struct target_mem_desc): Adjust comment. Use struct
8517 target_var_desc instead of splay_tree_key for list.
8518 (REFCOUNT_INFINITY): Define.
8519 (struct splay_tree_key_s): Remove copy_from field.
8520 (struct gomp_device_descr): Add dev2dev_func field.
8521 (enum gomp_map_vars_kind): New enum.
8522 (gomp_map_vars): Add one argument.
8523 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
8524 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
8525 omp_get_place_num_procs, omp_get_place_num_procs_,
8526 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
8527 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
8528 omp_get_place_num_, omp_get_partition_num_places,
8529 omp_get_partition_num_places_, omp_get_partition_place_nums,
8530 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
8531 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
8532 omp_target_free, omp_target_is_present, omp_target_memcpy,
8533 omp_target_memcpy_rect, omp_target_associate_ptr and
8534 omp_target_disassociate_ptr.
8535 (GOMP_4.0.2): Renamed to ...
8536 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
8537 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
8538 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
8539 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
8540 GOMP_loop_doacross_static_start, GOMP_doacross_post,
8541 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
8542 GOMP_loop_ull_doacross_guided_start,
8543 GOMP_loop_ull_doacross_runtime_start,
8544 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
8545 GOMP_doacross_ull_wait.
8546 * libgomp.texi: Document omp_get_max_task_priority.
8547 Rename modifier argument to chunk_size for omp_set_schedule and
8548 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
8549 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
8550 to run_sched_chunk_size renaming.
8551 (GOMP_loop_ordered_runtime_start): Likewise.
8552 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
8553 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
8554 GOMP_parallel_loop_runtime_start): New functions.
8555 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
8556 to run_sched_chunk_size renaming.
8557 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
8558 GOMP_loop_doacross_guided_start): New functions or aliases.
8559 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
8560 run_sched_modifier to run_sched_chunk_size renaming.
8561 (GOMP_loop_ull_ordered_runtime_start): Likewise.
8562 (gomp_loop_ull_doacross_static_start,
8563 gomp_loop_ull_doacross_dynamic_start,
8564 gomp_loop_ull_doacross_guided_start,
8565 GOMP_loop_ull_doacross_runtime_start): New functions.
8566 (GOMP_loop_ull_doacross_static_start,
8567 GOMP_loop_ull_doacross_dynamic_start,
8568 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
8569 * oacc-mem.c (acc_map_data, present_create_copy,
8570 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
8571 to gomp_map_vars.
8572 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
8573 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
8574 instead of false to gomp_map_vars.
8575 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
8576 * omp.h.in (omp_lock_hint_t): New type.
8577 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
8578 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
8579 omp_get_place_num, omp_get_partition_num_places,
8580 omp_get_partition_place_nums, omp_get_initial_device,
8581 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
8582 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
8583 omp_target_associate_ptr, omp_target_disassociate_ptr): New
8584 prototypes.
8585 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
8586 (omp_lock_hint_none, omp_lock_hint_uncontended,
8587 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
8588 omp_lock_hint_speculative): New parameters.
8589 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
8590 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
8591 omp_get_place_num, omp_get_partition_num_places,
8592 omp_get_partition_place_nums, omp_get_initial_device,
8593 omp_get_max_task_priority): New interfaces.
8594 (omp_set_schedule, omp_get_schedule): Rename modifier argument
8595 to chunk_size.
8596 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
8597 (omp_lock_hint_none, omp_lock_hint_uncontended,
8598 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
8599 omp_lock_hint_speculative): New parameters.
8600 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
8601 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
8602 omp_get_place_num, omp_get_partition_num_places,
8603 omp_get_partition_place_nums, omp_get_initial_device,
8604 omp_get_max_task_priority): New functions and subroutines.
8605 * ordered.c: Include stdarg.h and string.h.
8606 (MAX_COLLAPSED_BITS): Define.
8607 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
8608 gomp_doacross_ull_init, GOMP_doacross_ull_post,
8609 GOMP_doacross_ull_wait): New functions.
8610 * target.c: Include errno.h.
8611 (resolve_device): If device is not initialized, call
8612 gomp_init_device on it.
8613 (gomp_map_lookup): New function.
8614 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
8615 Don't bump refcount if REFCOUNT_INFINITY. Handle
8616 GOMP_MAP_ALWAYS_TO_P.
8617 (get_kind): Rename is_openacc argument to short_mapkind.
8618 (gomp_map_pointer): Use gomp_map_lookup.
8619 (gomp_map_fields_existing): New function.
8620 (gomp_map_vars): Rename is_openacc argument to short_mapkind
8621 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
8622 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
8623 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
8624 Adjust for tgt->list changed type and copy_from living in there.
8625 (gomp_copy_from_async): Adjust for tgt->list changed type and
8626 copy_from living in there.
8627 (gomp_unmap_vars): Likewise.
8628 (gomp_update): Likewise. Rename is_openacc argument to
8629 short_mapkind. Don't fail if object is not mapped.
8630 (gomp_load_image_to_device): Initialize refcount to
8631 REFCOUNT_INFINITY.
8632 (gomp_target_fallback): New function.
8633 (gomp_get_target_fn_addr): Likewise.
8634 (GOMP_target): Adjust gomp_map_vars caller, use
8635 gomp_get_target_fn_addr and gomp_target_fallback.
8636 (GOMP_target_41): New function.
8637 (gomp_target_data_fallback): New function.
8638 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
8639 (GOMP_target_data_41): New function.
8640 (GOMP_target_update): Adjust gomp_update caller.
8641 (GOMP_target_update_41): New function.
8642 (gomp_exit_data, GOMP_target_enter_exit_data,
8643 gomp_target_task_fn, omp_target_alloc, omp_target_free,
8644 omp_target_is_present, omp_target_memcpy,
8645 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
8646 omp_target_associate_ptr, omp_target_disassociate_ptr,
8647 gomp_load_plugin_for_device): New functions.
8648 * task.c: Include gomp-constants.h. Include taskloop.c
8649 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
8650 (gomp_task_handle_depend): New function.
8651 (GOMP_task): Use it. Add priority argument. Use
8652 gomp-constant.h constants instead of hardcoded numbers.
8653 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
8654 (gomp_create_target_task): New function.
8655 (verify_children_queue, verify_taskgroup_queue,
8656 verify_task_queue): New functions.
8657 (gomp_task_run_pre): Call verify_*_queue functions.
8658 If an upcoming tied task is about to leave the sibling or
8659 taskgroup queues in an invalid state, adjust appropriately.
8660 Remove taskgroup argument. Add comments.
8661 (gomp_task_run_post_handle_dependers): Add comments.
8662 (gomp_task_run_post_remove_parent): Likewise.
8663 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
8664 (GOMP_taskwait): Likewise. Add comments.
8665 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
8666 problem such that the first non parent_depends_on task does not
8667 end up at the end of the children queue.
8668 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
8669 GOMP_TASK_UNDEFERRED.
8670 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
8671 * taskloop.c: New file.
8672 * testsuite/lib/libgomp.exp
8673 (check_effective_target_offload_device_nonshared_as): New proc.
8674 * testsuite/libgomp.c/affinity-2.c: New test.
8675 * testsuite/libgomp.c/doacross-1.c: New test.
8676 * testsuite/libgomp.c/doacross-2.c: New test.
8677 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
8678 Add map clause to target.
8679 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
8680 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
8681 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
8682 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
8683 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
8684 Likewise.
8685 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
8686 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
8687 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
8688 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
8689 not defined. Use those where needed.
8690 * testsuite/libgomp.c/for-4.c: New test.
8691 * testsuite/libgomp.c/for-5.c: New test.
8692 * testsuite/libgomp.c/for-6.c: New test.
8693 * testsuite/libgomp.c/linear-1.c: New test.
8694 * testsuite/libgomp.c/ordered-4.c: New test.
8695 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
8696 only allowed on the loop iterator.
8697 * testsuite/libgomp.c/pr66199-3.c: New test.
8698 * testsuite/libgomp.c/pr66199-4.c: New test.
8699 * testsuite/libgomp.c/reduction-7.c: New test.
8700 * testsuite/libgomp.c/reduction-8.c: New test.
8701 * testsuite/libgomp.c/reduction-9.c: New test.
8702 * testsuite/libgomp.c/reduction-10.c: New test.
8703 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
8704 map(tofrom:s).
8705 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
8706 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
8707 * testsuite/libgomp.c/target-11.c: New test.
8708 * testsuite/libgomp.c/target-12.c: New test.
8709 * testsuite/libgomp.c/target-13.c: New test.
8710 * testsuite/libgomp.c/target-14.c: New test.
8711 * testsuite/libgomp.c/target-15.c: New test.
8712 * testsuite/libgomp.c/target-16.c: New test.
8713 * testsuite/libgomp.c/target-17.c: New test.
8714 * testsuite/libgomp.c/target-18.c: New test.
8715 * testsuite/libgomp.c/target-19.c: New test.
8716 * testsuite/libgomp.c/target-20.c: New test.
8717 * testsuite/libgomp.c/target-21.c: New test.
8718 * testsuite/libgomp.c/target-22.c: New test.
8719 * testsuite/libgomp.c/target-23.c: New test.
8720 * testsuite/libgomp.c/target-24.c: New test.
8721 * testsuite/libgomp.c/target-25.c: New test.
8722 * testsuite/libgomp.c/target-26.c: New test.
8723 * testsuite/libgomp.c/target-27.c: New test.
8724 * testsuite/libgomp.c/taskloop-1.c: New test.
8725 * testsuite/libgomp.c/taskloop-2.c: New test.
8726 * testsuite/libgomp.c/taskloop-3.c: New test.
8727 * testsuite/libgomp.c/taskloop-4.c: New test.
8728 * testsuite/libgomp.c++/ctor-13.C: New test.
8729 * testsuite/libgomp.c++/doacross-1.C: New test.
8730 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
8731 Replace offload_device with offload_device_nonshared_as.
8732 * testsuite/libgomp.c++/for-12.C: New test.
8733 * testsuite/libgomp.c++/for-13.C: New test.
8734 * testsuite/libgomp.c++/for-14.C: New test.
8735 * testsuite/libgomp.c++/linear-1.C: New test.
8736 * testsuite/libgomp.c++/member-1.C: New test.
8737 * testsuite/libgomp.c++/member-2.C: New test.
8738 * testsuite/libgomp.c++/member-3.C: New test.
8739 * testsuite/libgomp.c++/member-4.C: New test.
8740 * testsuite/libgomp.c++/member-5.C: New test.
8741 * testsuite/libgomp.c++/ordered-1.C: New test.
8742 * testsuite/libgomp.c++/reduction-5.C: New test.
8743 * testsuite/libgomp.c++/reduction-6.C: New test.
8744 * testsuite/libgomp.c++/reduction-7.C: New test.
8745 * testsuite/libgomp.c++/reduction-8.C: New test.
8746 * testsuite/libgomp.c++/reduction-9.C: New test.
8747 * testsuite/libgomp.c++/reduction-10.C: New test.
8748 * testsuite/libgomp.c++/reference-1.C: New test.
8749 * testsuite/libgomp.c++/simd14.C: New test.
8750 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
8751 * testsuite/libgomp.c++/target-5.C: New test.
8752 * testsuite/libgomp.c++/target-6.C: New test.
8753 * testsuite/libgomp.c++/target-7.C: New test.
8754 * testsuite/libgomp.c++/target-8.C: New test.
8755 * testsuite/libgomp.c++/target-9.C: New test.
8756 * testsuite/libgomp.c++/target-10.C: New test.
8757 * testsuite/libgomp.c++/target-11.C: New test.
8758 * testsuite/libgomp.c++/target-12.C: New test.
8759 * testsuite/libgomp.c++/taskloop-1.C: New test.
8760 * testsuite/libgomp.c++/taskloop-2.C: New test.
8761 * testsuite/libgomp.c++/taskloop-3.C: New test.
8762 * testsuite/libgomp.c++/taskloop-4.C: New test.
8763 * testsuite/libgomp.c++/taskloop-5.C: New test.
8764 * testsuite/libgomp.c++/taskloop-6.C: New test.
8765 * testsuite/libgomp.c++/taskloop-7.C: New test.
8766 * testsuite/libgomp.c++/taskloop-8.C: New test.
8767 * testsuite/libgomp.c++/taskloop-9.C: New test.
8768 * testsuite/libgomp.fortran/affinity1.f90: New test.
8769 * testsuite/libgomp.fortran/affinity2.f90: New test.
8770
8771 2015-10-13 Tom de Vries <tom@codesourcery.com>
8772
8773 PR tree-optimization/67476
8774 * testsuite/libgomp.c/autopar-3.c: New test.
8775 * testsuite/libgomp.c/autopar-4.c: New test.
8776 * testsuite/libgomp.c/autopar-5.c: New test.
8777 * testsuite/libgomp.c/autopar-6.c: New test.
8778 * testsuite/libgomp.c/autopar-7.c: New test.
8779 * testsuite/libgomp.c/autopar-8.c: New test.
8780
8781 2015-10-12 James Norris <jnorris@codesourcery.com>
8782
8783 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
8784 initializer.
8785
8786 2015-10-09 David Malcolm <dmalcolm@redhat.com>
8787
8788 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
8789 using load_gcc_lib.
8790
8791 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
8792
8793 * oacc-ptx.h: Remove file, moving its content into...
8794 * config/nvptx/fortran.c: ... here...
8795 * config/nvptx/oacc-init.c: ..., here...
8796 * config/nvptx/oacc-parallel.c: ..., and here.
8797 * config/nvptx/openacc.f90: New file.
8798 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
8799 (link_ptx): Don't link in predefined bits of PTX code.
8800
8801 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
8802 Bernd Schmidt <bernds@codesourcery.com>
8803
8804 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
8805 (struct targ_ptx_obj): New.
8806 (nvptx_tdata): Move earlier, change data format.
8807 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
8808 objects.
8809 (GOMP_OFFLOAD_load_image): Adjust.
8810
8811 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
8812
8813 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
8814 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
8815 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
8816 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
8817 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8818 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
8819 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
8820 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
8821 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
8822 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
8823 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8824 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
8825 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
8826 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8827 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8828 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8829 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
8830 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8831 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8832 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8833 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8834 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8835 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8836 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8837 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8838 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8839 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
8840 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8841 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8842 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8843 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8844 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8845 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
8846 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8847 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8848 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8849 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8850 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8851 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8852 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8853 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8854 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8855 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8856 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8857 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
8858 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
8859 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
8860 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
8861 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
8862 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
8863 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8864 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8865 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8866 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8867 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
8868 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8869 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8870 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8871 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8872 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8873 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8874 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8875 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8876
8877 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
8878
8879 * oacc-init.c (acc_on_device): Force optimization level.
8880
8881 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
8882
8883 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
8884 (cuda_errlist): Delete.
8885 (cuda_error): Reimplement.
8886
8887 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
8888
8889 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
8890 array.
8891 * libgomp.map (GOACC_parallel_keyed): New.
8892 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
8893 all callers.
8894 (GOACC_parallel_keyed): New interface. Lose geometry arguments
8895 and take keyed varargs list. Adjust call to exec_func.
8896 (GOACC_parallel): Force host fallback.
8897 * libgomp_g.h (GOACC_parallel): Remove.
8898 (GOACC_parallel_keyed): Declare.
8899 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
8900 (struct targ_gn_descriptor): Replace name field with launch field.
8901 (nvptx_exec): Lose separate geometry args, take array. Process
8902 dynamic dimensions and adjust.
8903 (struct nvptx_tdata): Replace fn_names field with fn_descs.
8904 (GOMP_OFFLOAD_load_image): Adjust for change in function table
8905 data.
8906 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
8907 passing.
8908 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
8909 passing.
8910
8911 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
8912
8913 PR libgomp/67141
8914 * oacc-int.h (goacc_host_init): Add declaration.
8915 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
8916 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
8917
8918 2015-09-08 Aditya Kumar <hiraditya@msn.com>
8919 Sebastian Pop <s.pop@samsung.com>
8920
8921 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
8922 match o/p.
8923 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
8924 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
8925 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
8926 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
8927 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
8928
8929 2015-09-03 Jakub Jelinek <jakub@redhat.com>
8930
8931 * configure.tgt: Add missing ;; in between nvptx and rtems
8932 snippets.
8933
8934 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
8935
8936 * config/posix/pool.h (gomp_adjust_thread_attr): New.
8937 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
8938 (gomp_thread_pool_reservoir): Add priority member.
8939 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
8940 priority.
8941 (parse_thread_pools): Likewise.
8942 * team.c (gomp_team_start): Call configuration provided
8943 gomp_adjust_thread_attr(). Destroy thread attributes if
8944 necessary.
8945 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
8946
8947 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
8948
8949 * config/posix/pool.h: New.
8950 * config/rtems/pool.h: Likewise.
8951 * config/rtems/proc.c: Likewise.
8952 * libgomp.h (gomp_thread_destructor): Declare.
8953 * team.c: Include configuration provided "pool.h".
8954 (gomp_get_thread_pool): Define in configuration.
8955 (gomp_team_end): Call configuration defined
8956 gomp_release_thread_pool().
8957
8958 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
8959
8960 * config/rtems/bar.c: New.
8961 * config/rtems/bar.h: Likewise.
8962 * config/rtems/mutex.c: Likewise.
8963 * config/rtems/mutex.h: Likewise.
8964 * config/rtems/sem.c: Likewise.
8965 * config/rtems/sem.h: Likewise.
8966 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
8967 <sys/lock.h> header file.
8968 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
8969 supported by Newlib.
8970 * configure: Regenerate.
8971
8972 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
8973
8974 * team.c (gomp_new_thread_pool): Delete and move content to ...
8975 (gomp_get_thread_pool): ... new function. Allocate and
8976 initialize thread pool on demand.
8977 (get_last_team): Use gomp_get_thread_pool().
8978 (gomp_team_start): Delete thread pool initialization.
8979
8980 2015-09-03 Tom de Vries <tom@codesourcery.com>
8981
8982 PR tree-optimization/65637
8983 * testsuite/libgomp.c/autopar-2.c: New test.
8984
8985 2015-08-29 Tom de Vries <tom@codesourcery.com>
8986
8987 PR tree-optimization/46193
8988 * testsuite/libgomp.c/pr46193.c: New test.
8989
8990 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
8991
8992 libgomp/
8993 * libgomp.map: Add 4.0.2 version.
8994 * target.c (offload_image_descr): Add version field.
8995 (gomp_load_image_to_device): Add version argument. Adjust plugin
8996 call. Improve load mismatch diagnostic.
8997 (gomp_unload_image_from_device): Add version argument. Adjust plugin
8998 call.
8999 (GOMP_offload_regster): Make stub function, move bulk to ...
9000 (GOMP_offload_register_ver): ... here. Process version argument.
9001 (GOMP_offload_unregister): Make stub function, move bulk to ...
9002 (GOMP_offload_unregister_ver): ... here. Process version argument.
9003 (gomp_init_device): Process version field.
9004 (gomp_unload_device): Process version field.
9005 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
9006 macros. Check plugin version.
9007 * libgomp.h (gomp_device_descr): Add version function field. Adjust
9008 loader and unloader types.
9009 * oacc-host.c: Include gomp-constants.h.
9010 (host_version): New.
9011 (host_load_image, host_unload_image): Adjust.
9012 (host_dispatch): Add host_version.
9013 * plugin/plugin-nvptx.c: Include gomp-constants.h.
9014 (GOMP_OFFLOAD_version): New.
9015 (GOMP_OFFLOAD_load_image): Add version arg and check it.
9016 (GOMP_OFFLOAD_unload_image): Likewise.
9017 * plugin/plugin-host.c: Include gomp-constants.h.
9018 (GOMP_OFFLOAD_version): New.
9019 (GOMP_OFFLOAD_load_image): Add version arg.
9020 (GOMP_OFFLOAD_unload_image): Likewise.
9021
9022 2015-08-24 Tom de Vries <tom@codesourcery.com>
9023
9024 PR tree-optimization/65468
9025 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
9026
9027 2015-08-24 Tom de Vries <tom@codesourcery.com>
9028
9029 PR tree-optimization/65468
9030 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
9031
9032 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
9033
9034 PR libgomp/66761
9035 PR libgomp/67303
9036 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
9037 (gomp_iter_guided_next): Idem.
9038 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
9039 (gomp_iter_ull_guided_next): Idem.
9040 * config/linux/wait.h (do_spin): Idem.
9041
9042 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
9043
9044 * libgomp-plugin.h (enum offload_target_type): Remove
9045 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
9046 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
9047 * openacc.h (enum acc_device_t): Likewise.
9048 * openacc_lib.h: Likewise.
9049 * oacc-init.c (name_of_acc_device_t): Don't handle it.
9050 (acc_on_device): Just use __builtin_acc_on_device.
9051 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
9052 of acc_on_device builtin.
9053 * plugin/plugin-host.h: Remove file.
9054 * plugin/plugin-host.c: Likewise, but salvage some content into...
9055 * oacc-host.c: ... this file.
9056 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
9057 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
9058 * Makefile.in: Regenerate.
9059 * configure: Likewise.
9060 * testsuite/lib/libgomp.exp
9061 (check_effective_target_openacc_host_nonshm_selected): Remove.
9062 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
9063 ACC_DEVICE_TYPE=host_nonshm.
9064 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9065 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9066 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
9067 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
9068 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
9069 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
9070
9071 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
9072 Jakub Jelinek <jakub@redhat.com>
9073
9074 * config/nvptx/affinity.c: New file.
9075 * config/nvptx/alloc.c: Likewise.
9076 * config/nvptx/bar.c: Likewise.
9077 * config/nvptx/barrier.c: Likewise.
9078 * config/nvptx/critical.c: Likewise.
9079 * config/nvptx/env.c: Likewise.
9080 * config/nvptx/error.c: Likewise.
9081 * config/nvptx/fortran.c: Likewise.
9082 * config/nvptx/iter.c: Likewise.
9083 * config/nvptx/iter_ull.c: Likewise.
9084 * config/nvptx/libgomp-plugin.c: Likewise.
9085 * config/nvptx/lock.c: Likewise.
9086 * config/nvptx/loop.c: Likewise.
9087 * config/nvptx/loop_ull.c: Likewise.
9088 * config/nvptx/mutex.c: Likewise.
9089 * config/nvptx/oacc-async.c: Likewise.
9090 * config/nvptx/oacc-cuda.c: Likewise.
9091 * config/nvptx/oacc-host.c: Likewise.
9092 * config/nvptx/oacc-init.c: Likewise.
9093 * config/nvptx/oacc-mem.c: Likewise.
9094 * config/nvptx/oacc-parallel.c: Likewise.
9095 * config/nvptx/oacc-plugin.c: Likewise.
9096 * config/nvptx/omp-lock.h: Likewise.
9097 * config/nvptx/ordered.c: Likewise.
9098 * config/nvptx/parallel.c: Likewise.
9099 * config/nvptx/proc.c: Likewise.
9100 * config/nvptx/ptrlock.c: Likewise.
9101 * config/nvptx/sections.c: Likewise.
9102 * config/nvptx/sem.c: Likewise.
9103 * config/nvptx/single.c: Likewise.
9104 * config/nvptx/splay-tree.c: Likewise.
9105 * config/nvptx/target.c: Likewise.
9106 * config/nvptx/task.c: Likewise.
9107 * config/nvptx/team.c: Likewise.
9108 * config/nvptx/time.c: Likewise.
9109 * config/nvptx/work.c: Likewise.
9110 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
9111 * configure: Regenerate.
9112 * configure.tgt (config_path): Set to "nvptx" for target
9113 nvptx*-*-*.
9114
9115 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
9116
9117 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
9118
9119 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
9120
9121 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
9122 (cuda_errlist): Constify.
9123 (errmsg): Move into ...
9124 (cuda_error): ... here. Make smaller.
9125 (_XSTR, _STR): Delete.
9126 (cuda_synames): Delete.
9127 (verify_device_library): Delete.
9128 (nvptx_init): Don't call it.
9129
9130 2015-07-28 Tom de Vries <tom@codesourcery.com>
9131
9132 * testsuite/libgomp.c/uns-outer-4.c: New test.
9133
9134 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
9135
9136 * testsuite/libgomp.c/pr66714.c: New test.
9137
9138 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
9139
9140 PR libgomp/66950
9141 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
9142 (fib_ref): New function.
9143 (fib): Correct corner cases in the recursion.
9144 (main): Replace the non-simd loop with fib_ref call.
9145 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
9146 subroutine.
9147 (fibonacci): Lower the parameter N to 30. Correct accordingly check
9148 for the last array element value. Replace the non-simd loop with
9149 fib_ref call. Remove redundant b_ref array. Remove the comparison
9150 of the last array element with according Fibonacci sequence element.
9151 (fib): Correct corner cases in the recursion.
9152
9153 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
9154
9155 * target.c (gomp_offload_image_to_device): Rename to ...
9156 (gomp_load_image_to_device): ... here.
9157 (GOMP_offload_register): Adjust call.
9158 (gomp_init_device): Likewise.
9159 (gomp_unload_image_from_device): New. Broken out of ...
9160 (GOMP_offload_unregister): ... here. Call it.
9161 (gomp_unload_device): New.
9162 * libgomp.h (gomp_unload_device): Declare.
9163 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
9164 mem maps.
9165
9166 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
9167
9168 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
9169 wait=-specific if.
9170 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
9171 !=0 condition.
9172 (goacc_waits): Move !num_waits handling to ...
9173 (GOACC_wait): ... here, the only caller that might have zero waits.
9174
9175 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
9176 (struct ptx_image_data): Move earlier, add fns field.
9177 (struct ptx_device): Add images and image_lock fields.
9178 (ptx_images, ptx_image_lock): Delete.
9179 (nvptx_open_device): Initialize images and image_lock fields.
9180 (nvptx_close_device): Destroy image_lock.
9181 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
9182 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
9183 fields.
9184
9185 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
9186
9187 * target.c (GOMP_offload_register): Use int for device type arg.
9188 (GOMP_offload_unregister): Likewise.
9189
9190 * target.c (struct_offload_image_descr): Constify host_table.
9191 (gomp_offload_image_to_device): Likewise.
9192 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
9193
9194 * libgomp.h (gomp_device_descr): Constify target data arguments.
9195 * target.c (struct offload_image_descr): Constify target_data.
9196 (gomp_offload_image_to_device): Likewise.
9197 (GOMP_offload_register): Likewise.
9198 (GOMP_offload_unregister): Likewise.
9199 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
9200 GOMP_OFFLOAD_unload_image): Constify target data.
9201 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
9202 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
9203
9204 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
9205
9206 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
9207 Workaround driver library const error.
9208 (struct nvptx_tdata, nvptx_tdata_t): New.
9209 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
9210 type.
9211
9212 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
9213
9214 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
9215 of EPS parameter from integer to real.
9216 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
9217 type of EPS parameter from integer to real.
9218
9219 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
9220
9221 * team.c (get_last_team): New.
9222 (gomp_new_team): Recycle last non-nested team if possible.
9223 (gomp_team_end): Move team work share list free lock destruction
9224 to ...
9225 (free_team): ... here.
9226
9227 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
9228
9229 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
9230 and ref from int to double. Replaced their comparison with
9231 an inequality of their difference and EPS.
9232 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
9233 comparison of pri and a reference number with an inequality of their
9234 difference and EPS.
9235 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
9236 the comparison of sum and sum_ref with an inequality of their
9237 difference and EPS.
9238 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
9239 the comparison of pri and a reference number with an inequality of
9240 their difference and EPS.
9241
9242 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
9243
9244 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
9245 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
9246 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
9247 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
9248 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
9249 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
9250 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
9251 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
9252 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
9253 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
9254 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
9255 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
9256 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
9257 variables.
9258 (vec_mult): Likewise. Add #pragma omp taskwait.
9259 (main): Adjust caller.
9260 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
9261 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
9262 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
9263 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
9264 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
9265 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
9266 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
9267 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
9268 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
9269 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
9270 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
9271 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
9272 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
9273 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
9274 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
9275 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
9276 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
9277 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
9278 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
9279 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
9280 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
9281 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
9282 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
9283 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
9284 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
9285 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
9286 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
9287 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
9288 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
9289 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
9290 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
9291 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
9292 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
9293 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
9294 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
9295 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
9296 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
9297 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
9298 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
9299 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
9300 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
9301 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
9302 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
9303 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
9304 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
9305 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
9306 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
9307 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
9308 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
9309 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
9310 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
9311 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
9312 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
9313 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
9314 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
9315 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
9316 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
9317 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
9318 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
9319 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
9320 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
9321 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
9322 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
9323 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
9324 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
9325 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
9326 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
9327 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
9328 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
9329 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
9330 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
9331 (vec_mult): Add !$omp taskwait.
9332 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
9333 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
9334 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
9335 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
9336 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
9337 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
9338 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
9339 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
9340 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
9341 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
9342 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
9343 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
9344 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
9345 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
9346 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
9347 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
9348 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
9349 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
9350 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
9351 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
9352 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
9353 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
9354 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
9355 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
9356 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
9357 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
9358 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
9359 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
9360 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
9361 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
9362 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
9363 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
9364 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
9365 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
9366 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
9367 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
9368 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
9369 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
9370 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
9371 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
9372 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
9373 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
9374 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
9375 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
9376 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
9377 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
9378 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
9379 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
9380 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
9381 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
9382 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
9383 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
9384 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
9385 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
9386 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
9387 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
9388 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
9389 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
9390 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
9391 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
9392 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
9393 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
9394 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
9395 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
9396 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
9397 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
9398 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
9399
9400 2015-07-10 Tom de Vries <tom@codesourcery.com>
9401
9402 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
9403 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
9404
9405 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
9406
9407 PR libgomp/65099
9408 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
9409 in a 64-bit configuration.
9410 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
9411 offloading testing if no such device is available.
9412 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9413 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9414
9415 2015-07-08 Tom de Vries <tom@codesourcery.com>
9416
9417 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
9418 second call to f.
9419 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
9420
9421 2015-07-07 Tom de Vries <tom@codesourcery.com>
9422
9423 PR tree-optimization/66642
9424 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
9425 iteration count case.
9426 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
9427 function, factor out of ...
9428 (main): ... here. Test low iteration count case.
9429
9430 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
9431
9432 * libgomp.h (gomp_thread_pool): Comment last_team field.
9433
9434 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
9435
9436 * testsuite/libgomp.c++/pr66702-1.C: Require
9437 vect_simd_clones effective target.
9438 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
9439
9440 2015-06-30 Tom de Vries <tom@codesourcery.com>
9441
9442 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
9443 already set. Use DEFAULT_CFLAGS in dg-runtest.
9444 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
9445 "-O2".
9446
9447 2015-06-30 Tom de Vries <tom@codesourcery.com>
9448
9449 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
9450 already set. Use DEFAULT_CFLAGS in dg-runtest.
9451 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
9452 * testsuite/libgomp.c++/pr64824.C: Same.
9453 * testsuite/libgomp.c++/pr64868.C: Same.
9454 * testsuite/libgomp.c++/pr66199-1.C: Same.
9455 * testsuite/libgomp.c++/pr66199-2.C: Same.
9456 * testsuite/libgomp.c++/target-2.C: Same.
9457 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
9458 -std=<standard> option.
9459 * testsuite/libgomp.c++/udr-11.C: Same.
9460 * testsuite/libgomp.c++/udr-12.C: Same.
9461 * testsuite/libgomp.c++/udr-13.C: Same.
9462 * testsuite/libgomp.c++/udr-14.C: Same.
9463 * testsuite/libgomp.c++/udr-15.C: Same.
9464 * testsuite/libgomp.c++/udr-16.C: Same.
9465 * testsuite/libgomp.c++/udr-17.C: Same.
9466 * testsuite/libgomp.c++/udr-18.C: Same.
9467 * testsuite/libgomp.c++/udr-19.C: Same.
9468 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
9469 * testsuite/libgomp.c++/simd-1.C: Same.
9470 * testsuite/libgomp.c++/simd-2.C: Same.
9471 * testsuite/libgomp.c++/simd-3.C: Same.
9472 * testsuite/libgomp.c++/simd-4.C: Same.
9473 * testsuite/libgomp.c++/simd-5.C: Same.
9474 * testsuite/libgomp.c++/simd-6.C: Same.
9475 * testsuite/libgomp.c++/simd-7.C: Same.
9476 * testsuite/libgomp.c++/simd-8.C: Same.
9477 * testsuite/libgomp.c++/simd-9.C: Same.
9478 * testsuite/libgomp.c++/simd10.C: Same.
9479 * testsuite/libgomp.c++/simd11.C: Same.
9480 * testsuite/libgomp.c++/simd12.C: Same.
9481 * testsuite/libgomp.c++/simd13.C: Same.
9482
9483 2015-06-30 Jakub Jelinek <jakub@redhat.com>
9484
9485 PR middle-end/66702
9486 * testsuite/libgomp.c++/pr66702-1.C: New test.
9487 * testsuite/libgomp.c++/pr66702-2.C: New test.
9488
9489 2015-06-30 Tom de Vries <tom@codesourcery.com>
9490
9491 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
9492 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
9493 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
9494 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
9495
9496 2015-06-30 Tom de Vries <tom@codesourcery.com>
9497
9498 PR tree-optimization/66652
9499 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
9500 using restrict pointers.
9501 (main): Add arguments to calls to f.
9502 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
9503
9504 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
9505
9506 * configure.ac: Fix check for header <sys/sysctl.h>.
9507 * configure: Regenerate.
9508 * config.h.in: Likewise.
9509
9510 2015-06-23 Tom de Vries <tom@codesourcery.com>
9511
9512 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
9513 abort.
9514 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
9515
9516 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
9517
9518 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
9519 acc_device_nvidia.
9520
9521 PR libgomp/66518
9522 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
9523 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
9524
9525 2015-06-15 Tom de Vries <tom@codesourcery.com>
9526
9527 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
9528 dg-additional-options for any remaining options.
9529 * testsuite/libgomp.c/atomic-2.c: Same.
9530 * testsuite/libgomp.c/atomic-4.c: Same.
9531 * testsuite/libgomp.c/atomic-5.c: Same.
9532 * testsuite/libgomp.c/atomic-6.c: Same.
9533 * testsuite/libgomp.c/autopar-1.c: Same.
9534 * testsuite/libgomp.c/copyin-1.c: Same.
9535 * testsuite/libgomp.c/copyin-2.c: Same.
9536 * testsuite/libgomp.c/copyin-3.c: Same.
9537 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
9538 * testsuite/libgomp.c/nestedfn-5.c: Same.
9539 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
9540 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
9541 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
9542 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
9543 * testsuite/libgomp.c/pr32362-1.c: Same.
9544 * testsuite/libgomp.c/pr32362-2.c: Same.
9545 * testsuite/libgomp.c/pr32362-3.c: Same.
9546 * testsuite/libgomp.c/pr39591-1.c: Same.
9547 * testsuite/libgomp.c/pr39591-2.c: Same.
9548 * testsuite/libgomp.c/pr39591-3.c: Same.
9549 * testsuite/libgomp.c/pr58392.c: Same.
9550 * testsuite/libgomp.c/pr58756.c: Same.
9551 * testsuite/libgomp.c/simd-1.c: Same.
9552 * testsuite/libgomp.c/simd-10.c: Same.
9553 * testsuite/libgomp.c/simd-11.c: Same.
9554 * testsuite/libgomp.c/simd-12.c: Same.
9555 * testsuite/libgomp.c/simd-13.c: Same.
9556 * testsuite/libgomp.c/simd-14.c: Same.
9557 * testsuite/libgomp.c/simd-15.c: Same.
9558 * testsuite/libgomp.c/simd-2.c: Same.
9559 * testsuite/libgomp.c/simd-3.c: Same.
9560 * testsuite/libgomp.c/simd-4.c: Same.
9561 * testsuite/libgomp.c/simd-5.c: Same.
9562 * testsuite/libgomp.c/simd-6.c: Same.
9563 * testsuite/libgomp.c/simd-7.c: Same.
9564 * testsuite/libgomp.c/simd-8.c: Same.
9565 * testsuite/libgomp.c/simd-9.c: Same.
9566
9567 2015-06-15 Tom de Vries <tom@codesourcery.com>
9568
9569 * testsuite/libgomp.c/pr35625.c: Fix typo.
9570
9571 2015-06-15 Tom de Vries <tom@codesourcery.com>
9572
9573 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
9574 in dg-options.
9575 * testsuite/libgomp.c/atomic-3.c: Same.
9576 * testsuite/libgomp.c/debug-1.c: Same.
9577 * testsuite/libgomp.c/nqueens-1.c: Same.
9578 * testsuite/libgomp.c/pr26171.c: Same.
9579 * testsuite/libgomp.c/pr48591.c: Same.
9580 * testsuite/libgomp.c/pr64824.c: Same.
9581 * testsuite/libgomp.c/pr64868.c: Same.
9582 * testsuite/libgomp.c/pr66133.c: Same.
9583 * testsuite/libgomp.c/pr66199-1.c: Same.
9584 * testsuite/libgomp.c/pr66199-2.c: Same.
9585 * testsuite/libgomp.c/target-8.c: Same.
9586
9587 2015-06-15 Tom de Vries <tom@codesourcery.com>
9588
9589 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
9590 -std={gnu99,c99}.
9591 * testsuite/libgomp.c/for-1.c: Same.
9592 * testsuite/libgomp.c/for-2.c: Same.
9593 * testsuite/libgomp.c/for-3.c: Same.
9594 * testsuite/libgomp.c/pr35625.c: Same.
9595 * testsuite/libgomp.c/pr39154.c: Same.
9596 * testsuite/libgomp.c/simd-16.c: Same.
9597 * testsuite/libgomp.c/simd-17.c: Same.
9598
9599 2015-06-13 Tom de Vries <tom@codesourcery.com>
9600
9601 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
9602
9603 2015-06-13 Tom de Vries <tom@codesourcery.com>
9604
9605 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
9606 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
9607 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
9608 (N): Define.
9609 (main): Use N instead of hardcoded constants.
9610
9611 2015-06-05 Tom de Vries <tom@codesourcery.com>
9612
9613 merge from gomp4 branch:
9614 2015-05-28 Tom de Vries <tom@codesourcery.com>
9615
9616 PR tree-optimization/65443
9617 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
9618 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
9619 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
9620
9621 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9622
9623 * testsuite/libgomp.graphite/bounds.c: Adjust for
9624 cleanup-tree-dump removal.
9625 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
9626 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
9627 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
9628 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
9629 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
9630 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
9631 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9632 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9633 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
9634 * testsuite/libgomp.graphite/pr41118.c: Likewise.
9635
9636 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
9637
9638 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
9639 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
9640 (futex_wake) [!__x86_64__]: Ditto.
9641
9642 2015-05-28 Julian Brown <julian@codesourcery.com>
9643
9644 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
9645 function comment. Only call gomp_fatal if new argument is true.
9646 (acc_dev_num_out_of_range): New function.
9647 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
9648 acc_dev_num_out_of_range as appropriate.
9649 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
9650 (acc_get_device_num, acc_set_device_num): Update calls to
9651 resolve_device.
9652 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
9653 output.
9654
9655 2015-05-28 Julian Brown <julian@codesourcery.com>
9656
9657 PR libgomp/65742
9658 * oacc-init.c (plugin/plugin-host.h): Include.
9659 (acc_on_device): Check whether we're in an offloaded region for
9660 host_nonshm
9661 plugin. Don't use __builtin_acc_on_device.
9662 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
9663 nonshm_exec flag in thread-local data.
9664 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
9665 data for host_nonshm plugin.
9666 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
9667 for host_nonshm plugin.
9668 * plugin/plugin-host.h: New.
9669
9670 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
9671
9672 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
9673
9674 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
9675
9676 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
9677 Declare as int.
9678 (FUTEX_PRIVATE_FLAG): Remove L suffix.
9679 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
9680 Declare as int.
9681
9682 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
9683
9684 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
9685
9686 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
9687
9688 * target.c (gomp_map_pointer): New function abstracting out
9689 GOMP_MAP_POINTER handling.
9690 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
9691 gomp_map_pointer().
9692
9693 2015-05-19 Jakub Jelinek <jakub@redhat.com>
9694
9695 PR middle-end/66199
9696 * testsuite/libgomp.c/pr66199-1.c: New test.
9697 * testsuite/libgomp.c/pr66199-2.c: New test.
9698 * testsuite/libgomp.c++/pr66199-1.C: New test.
9699 * testsuite/libgomp.c++/pr66199-2.C: New test.
9700 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
9701 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
9702
9703 2015-05-19 Julian Brown <julian@codesourcery.com>
9704
9705 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
9706 on cuInit failure.
9707
9708 2015-05-13 Jakub Jelinek <jakub@redhat.com>
9709
9710 PR middle-end/66133
9711 * testsuite/libgomp.c/pr66133.c: New test.
9712
9713 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
9714
9715 * Makefile.in: Regenerated with automake-1.11.6.
9716 * aclocal.m4: Likewise.
9717 * config.h.in: Likewise.
9718 * configure: Likewise.
9719 * testsuite/Makefile.in: Likewise.
9720
9721 2015-05-08 Jason Merrill <jason@redhat.com>
9722
9723 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
9724 _Complex.
9725
9726 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
9727
9728 2015-05-06 Julian Brown <julian@codesourcery.com>
9729
9730 * oacc-init.c (acc_device_lock): Add explanatory comment.
9731 (resolve_device): Add comment about locking requirement.
9732 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
9733 gomp_init_device and gomp_fini_device calls.
9734 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
9735 (acc_get_device_num, acc_set_device_num): Add locking around
9736 resolve_device and gomp_init_device calls.
9737
9738 2015-05-06 Julian Brown <julian@codesourcery.com>
9739
9740 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
9741 goacc_thread_lock on error paths.
9742 * oacc-mem.c (lookup_host): Remove locking from function. Note
9743 locking requirement for caller in function comment.
9744 (lookup_dev): Likewise.
9745 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
9746 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
9747 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
9748 Add locking.
9749
9750 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
9751
9752 PR testsuite/65205
9753 PR libgomp/65993
9754 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
9755 don't expect "0x" prefix for "%p" format specifier, don't expect
9756 "(nil)" for NULL pointer.
9757 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
9758 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
9759 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
9760 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
9761 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
9762 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
9763 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
9764 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
9765 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
9766 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
9767 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
9768 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
9769 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
9770 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
9771 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
9772 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
9773 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
9774 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
9775 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
9776 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
9777 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
9778 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
9779 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
9780 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
9781 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
9782 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
9783 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
9784 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
9785 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
9786 accurately specify what we're looking for.
9787 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
9788 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
9789 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
9790 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
9791 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
9792
9793 2015-04-30 James Norris <jnorris@codesourcery.com>
9794
9795 PR testsuite/65205
9796 * testsuite/lib/libgomp.exp
9797 (check_effective_target_openacc_host_selected)
9798 (check_effective_target_openacc_host_nonshm_selected): New
9799 procedures.
9800 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
9801 dg-shouldfail.
9802 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
9803 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
9804 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
9805 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
9806 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
9807 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
9808 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
9809 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
9810 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
9811 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
9812 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
9813 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
9814 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
9815 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
9816 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
9817 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
9818 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
9819 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
9820 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
9821 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
9822 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
9823 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
9824 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
9825 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
9826 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
9827 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
9828 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
9829 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
9830 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
9831 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
9832 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
9833 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
9834 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
9835 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
9836 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
9837 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
9838 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
9839 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
9840 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
9841 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
9842 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
9843 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
9844 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
9845
9846 2015-04-08 Julian Brown <julian@codesourcery.com>
9847
9848 * libgomp.h (target_mem_desc: Remove mem_map field.
9849 (acc_dispatch_t): Remove open_device_func, close_device_func,
9850 get_device_num_func, set_device_num_func, target_data members.
9851 Change create_thread_data_func argument to device number instead of
9852 generic pointer.
9853 * oacc-async.c (assert.h): Include.
9854 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
9855 (acc_wait_all, acc_wait_all_async): Use current host thread's
9856 active device, not base_dev.
9857 * oacc-cuda.c (acc_get_current_cuda_device)
9858 (acc_get_current_cuda_context, acc_get_cuda_stream)
9859 (acc_set_cuda_stream): Likewise.
9860 * oacc-host.c (host_dispatch): Don't set open_device_func,
9861 close_device_func, get_device_num_func or set_device_num_func.
9862 * oacc-init.c (base_dev, init_key): Remove.
9863 (cached_base_dev): New.
9864 (name_of_acc_device_t): New.
9865 (acc_init_1): Initialise default-numbered device, not zeroth.
9866 (acc_shutdown_1): Close all devices of a given type.
9867 (goacc_destroy_thread): Don't use base_dev.
9868 (lazy_open, lazy_init, lazy_init_and_open): Remove.
9869 (goacc_attach_host_thread_to_device): New.
9870 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
9871 (acc_get_num_devices): Don't use base_dev.
9872 (acc_set_device_type): Reimplement.
9873 (acc_get_device_type): Don't use base_dev.
9874 (acc_get_device_num): Tweak logic.
9875 (acc_set_device_num): Likewise.
9876 (acc_on_device): Use acc_get_device_type.
9877 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
9878 (goacc_lazy_initialize): Reimplement with acc_init and
9879 goacc_attach_host_thread_to_device.
9880 * oacc-int.h (goacc_thread): Add base_dev field.
9881 (base_dev): Remove extern declaration.
9882 (goacc_attach_host_thread_to_device): Add prototype.
9883 * oacc-mem.c (acc_malloc): Use current thread's device instead of
9884 base_dev.
9885 (acc_free): Likewise.
9886 (acc_memcpy_to_device): Likewise.
9887 (acc_memcpy_from_device): Likewise.
9888 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
9889 goacc_lazy_initialize (throughout).
9890 (GOACC_parallel): Use tgt_offset to locate target functions.
9891 * target.c (gomp_map_vars): Don't set tgt->mem_map.
9892 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
9893 (gomp_load_plugin_for_device): Remove open_device, close_device,
9894 get_device_num, set_device_num openacc hook initialisation. Don't set
9895 openacc.target_data.
9896 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
9897 (GOMP_OFFLOAD_openacc_close_device)
9898 (GOMP_OFFLOAD_openacc_get_device_num)
9899 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
9900 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
9901 to int.
9902 * plugin/plugin-nvptx.c (ptx_inited): Remove.
9903 (instantiated_devices, ptx_dev_lock): New.
9904 (struct ptx_image_data): New.
9905 (ptx_devices, ptx_images, ptx_image_lock): New.
9906 (fini_streams_for_device): Reorder cuStreamDestroy call.
9907 (nvptx_get_num_devices): Remove forward declaration.
9908 (nvptx_init): Change return type to bool.
9909 (nvptx_fini): Remove.
9910 (nvptx_attach_host_thread_to_device): New.
9911 (nvptx_open_device): Return struct ptx_device* instead of void*.
9912 (nvptx_close_device): Change argument type to struct ptx_device*,
9913 return type to void.
9914 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
9915 (kernel_target_data, kernel_host_table): Remove static globals.
9916 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
9917 (GOMP_OFFLOAD_init_device): Reimplement.
9918 (GOMP_OFFLOAD_fini_device): Likewise.
9919 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
9920 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
9921 (GOMP_OFFLOAD_host2dev): Use ORD argument.
9922 (GOMP_OFFLOAD_openacc_open_device)
9923 (GOMP_OFFLOAD_openacc_close_device)
9924 (GOMP_OFFLOAD_openacc_set_device_num)
9925 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
9926 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
9927 (device number).
9928
9929 testsuite/
9930 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
9931
9932 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
9933
9934 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
9935 * libgomp.h (struct gomp_memory_mapping): Remove.
9936 (struct target_mem_desc): Change type of mem_map from
9937 gomp_memory_mapping * to splay_tree_s *.
9938 (struct gomp_device_descr): Remove register_image_func, get_table_func.
9939 Add load_image_func, unload_image_func.
9940 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
9941 Remove offload_regions_registered.
9942 (gomp_init_tables): Remove.
9943 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
9944 to splay_tree_s *.
9945 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
9946 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
9947 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
9948 offload_regions_registered.
9949 Initialize load_image_func, unload_image_func, mem_map.root.
9950 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
9951 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
9952 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
9953 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
9954 gomp_memory_mapping *. Use dev's lock and splay_tree.
9955 (lookup_dev): Use dev's lock.
9956 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
9957 (acc_is_present): Likewise.
9958 (acc_map_data): Likewise.
9959 (acc_unmap_data): Likewise. Use dev's lock.
9960 (present_create_copy): Likewise.
9961 (delete_copyout): Pass dev to lookup_host instead of mem_map.
9962 (update_dev_host): Likewise.
9963 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
9964 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
9965 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
9966 (GOMP_OFFLOAD_get_table): Remove
9967 (GOMP_OFFLOAD_load_image): New function.
9968 (GOMP_OFFLOAD_unload_image): New function.
9969 * target.c (register_lock): New mutex for offload image registration.
9970 (num_devices): Do not guard with PLUGIN_SUPPORT.
9971 (gomp_realloc_unlock): New static function.
9972 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
9973 before gomp_fatal.
9974 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
9975 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
9976 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
9977 mem_map's.
9978 (gomp_unmap_vars): Likewise.
9979 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
9980 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
9981 (gomp_offload_image_to_device): New static function.
9982 (GOMP_offload_register): Add mutex lock.
9983 Call gomp_offload_image_to_device for all initialized devices.
9984 Replace gomp_realloc with gomp_realloc_unlock.
9985 (GOMP_offload_unregister): New function.
9986 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
9987 get_table_func from the plugin with calls to init_device_func and
9988 gomp_offload_image_to_device.
9989 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
9990 to splay_tree_s *.
9991 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
9992 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
9993 (GOMP_target_data): Do not call gomp_init_tables.
9994 (GOMP_target_update): Likewise. Remove argument from gomp_update.
9995 (gomp_load_plugin_for_device): Replace register_image and get_table
9996 with load_image and unload_image in DLSYM ().
9997 (gomp_register_images_for_device): Remove function.
9998 (gomp_target_init): Do not initialize current_device.mem_map.*,
9999 current_device.offload_regions_registered.
10000 Remove call to gomp_register_images_for_device.
10001 Do not free offload_images and num_offload_images.
10002
10003 2015-03-30 Jakub Jelinek <jakub@redhat.com>
10004
10005 PR fortran/65597
10006 * testsuite/libgomp.fortran/pr65597.f90: New test.
10007
10008 2015-03-27 Tom de Vries <tom@codesourcery.com>
10009
10010 PR testsuite/65594
10011 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
10012 (init, check): New function.
10013 (foo): Change return type to void.
10014 (main): Call init and check.
10015
10016 2015-03-27 Tom de Vries <tom@codesourcery.com>
10017
10018 PR testsuite/65594
10019 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
10020 (foo): Use M for non-inner loops to scale down test-case.
10021
10022 2015-03-25 Kai Tietz <ktietz@redhat.com>
10023
10024 PR libgomp/64972
10025 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
10026 (GOACC_data_start): Likewise.
10027 * target.c (gomp_map_vars): Likewise.
10028
10029 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
10030
10031 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
10032 hppa*-*-hpux*.
10033
10034 2015-03-19 Jakub Jelinek <jakub@redhat.com>
10035
10036 * testsuite/libgomp.c/target-10.c: New test.
10037 * testsuite/libgomp.c++/target-4.C: New test.
10038
10039 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
10040
10041 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
10042 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
10043
10044 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
10045
10046 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
10047 * configure.ac (*-*-rtems*): Assume Pthread is supported.
10048 (pthread.h): Check for this header file.
10049 * configure: Regenerate.
10050
10051 2015-02-25 Tom de Vries <tom@codesourcery.com>
10052
10053 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
10054 (check_reduction_op, check_reduction_macro, max, min):
10055 Declare.
10056 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
10057 function.
10058 (main): Use new functions.
10059
10060 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
10061
10062 * target.c (gomp_load_plugin_for_device): Use const char * instead of
10063 char * for variables holding dlerror return values.
10064 (DLSYM_OPT): Ditto.
10065
10066 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
10067
10068 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
10069
10070 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
10071 Cesar Philippidis <cesar@codesourcery.com>
10072
10073 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
10074 GOACC_ctaid, and GOACC_nctaid routines.
10075
10076 2015-02-11 Jakub Jelinek <jakub@redhat.com>
10077
10078 PR c/64824
10079 * testsuite/libgomp.c/atomic-18.c: New test.
10080 * testsuite/libgomp.c++/atomic-16.C: New test.
10081
10082 2015-02-04 Jakub Jelinek <jakub@redhat.com>
10083
10084 PR c/64824
10085 PR c/64868
10086 * testsuite/libgomp.c/pr64824.c: New test.
10087 * testsuite/libgomp.c/pr64868.c: New test.
10088 * testsuite/libgomp.c++/pr64824.C: New test.
10089 * testsuite/libgomp.c++/pr64868.C: New test.
10090
10091 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
10092
10093 PR libgomp/64635
10094 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
10095 Link with -lpthread.
10096 * config/aix/plugin-suffix.h: Delete.
10097
10098 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
10099
10100 PR libgomp/64635
10101 * configure.tgt (*-*-aix*): Use config_path "aix posix".
10102 (*-*-darwin*): Use config_path "bsd darwin posix".
10103 (*-*-hpux*): Use config_path "hpux posix".
10104 * target.c: Add include of plugin-suffix.h and use
10105 SONAME_SUFFIX macro.
10106 * config/aix/plugin-suffix.h: New file.
10107 * config/darwin/plugin-suffix.h: New file.
10108 * config/hpux/plugin-suffix.h: New file.
10109 * config/posix/plugin-suffix.h: New file.
10110
10111 2015-01-23 Jakub Jelinek <jakub@redhat.com>
10112
10113 PR middle-end/64734
10114 * libgomp.c/pr64734.c: New test.
10115
10116 2015-01-23 Tom de Vries <tom@codesourcery.com>
10117
10118 PR libgomp/64672
10119 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
10120
10121 2015-01-23 Tom de Vries <tom@codesourcery.com>
10122
10123 PR libgomp/64707
10124 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
10125 dg-options.
10126
10127 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
10128
10129 PR libgomp/64625
10130 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
10131 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
10132 formal parameter. Update all users.
10133 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
10134 Document unused formal parameter.
10135
10136 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
10137
10138 * oacc-parallel.c: Don't include <alloca.h>.
10139 (GOACC_parallel): Use gomp_alloca instead of alloca.
10140
10141 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
10142
10143 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
10144
10145 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
10146 James Norris <jnorris@codesourcery.com>
10147 Tom de Vries <tom@codesourcery.com>
10148 Julian Brown <julian@codesourcery.com>
10149 Cesar Philippidis <cesar@codesourcery.com>
10150 Nathan Sidwell <nathan@codesourcery.com>
10151 Tobias Burnus <burnus@net-b.de>
10152
10153 * Makefile.am (search_path): Add $(top_srcdir)/../include.
10154 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
10155 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
10156 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
10157 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
10158 Include $(top_srcdir)/plugin/Makefrag.am.
10159 (nodist_libsubinclude_HEADERS): Add openacc.h.
10160 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
10161 openacc.f90, openacc.mod, openacc_kinds.mod.
10162 (omp_lib.mod): Generalize into...
10163 (%.mod): ... this new rule.
10164 (openacc_kinds.mod, openacc.mod): New rules.
10165 * plugin/configfrag.ac: New file.
10166 * configure.ac: Move plugin/offloading support into it. Include
10167 it. Instantiate testsuite/libgomp-test-support.pt.exp.
10168 * plugin/Makefrag.am: New file.
10169 * testsuite/Makefile.am (OFFLOAD_TARGETS)
10170 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
10171 export.
10172 (libgomp-test-support.exp): New rule.
10173 (all-local): Depend on it.
10174 * Makefile.in: Regenerate.
10175 * testsuite/Makefile.in: Regenerate.
10176 * config.h.in: Likewise.
10177 * configure: Likewise.
10178 * configure.tgt: Harden shell syntax.
10179 * env.c: Include "oacc-int.h".
10180 (parse_acc_device_type): New function.
10181 (gomp_debug_var, goacc_device_type, goacc_device_num): New
10182 variables.
10183 (initialize_env): Initialize those. Call
10184 goacc_runtime_initialize.
10185 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
10186 (gomp_fatal): Call gomp_vfatal.
10187 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
10188 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
10189 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
10190 (splay_tree_node, splay_tree, splay_tree_key)
10191 (struct target_mem_desc, struct splay_tree_key_s)
10192 (struct gomp_memory_mapping, struct acc_dispatch_t)
10193 (struct gomp_device_descr, gomp_acc_insert_pointer)
10194 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
10195 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
10196 (gomp_free_memmap, gomp_fini_device): New declarations.
10197 (gomp_vdebug, gomp_debug): New macros.
10198 Include "splay-tree.h".
10199 * libgomp.map (OACC_2.0): New symbol version. Use for
10200 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
10201 acc_set_device_type_h_, acc_get_device_type,
10202 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
10203 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
10204 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
10205 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
10206 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
10207 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
10208 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
10209 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
10210 acc_copyin_array_h_, acc_present_or_copyin,
10211 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
10212 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
10213 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
10214 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
10215 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
10216 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
10217 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
10218 acc_update_device, acc_update_device_32_h_,
10219 acc_update_device_64_h_, acc_update_device_array_h_,
10220 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
10221 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
10222 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
10223 acc_is_present_64_h_, acc_is_present_array_h_,
10224 acc_memcpy_to_device, acc_memcpy_from_device,
10225 acc_get_current_cuda_device, acc_get_current_cuda_context,
10226 acc_get_cuda_stream, acc_set_cuda_stream.
10227 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
10228 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
10229 GOACC_update, GOACC_wait, GOACC_get_thread_num,
10230 GOACC_get_num_threads.
10231 (GOMP_PLUGIN_1.0): New symbol version. Use for
10232 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
10233 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
10234 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
10235 GOMP_PLUGIN_acc_thread.
10236 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
10237 environment variable.
10238 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
10239 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
10240 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
10241 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
10242 (splay_tree_remove): New declarations.
10243 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
10244 (splay_tree_remove, splay_tree_lookup): Move into...
10245 * splay-tree.c: ... this new file.
10246 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
10247 (splay_tree_node, splay_tree, splay_tree_key)
10248 (struct target_mem_desc, struct splay_tree_key_s)
10249 (struct gomp_device_descr): Don't declare.
10250 (num_devices_openmp): New variable.
10251 (gomp_get_num_devices ): Use it.
10252 (gomp_init_targets_once): New function.
10253 (gomp_get_num_devices ): Use it.
10254 (get_kind, gomp_copy_from_async, gomp_free_memmap)
10255 (gomp_fini_device, gomp_register_image_for_device): New functions.
10256 (gomp_map_vars): Add devaddrs parameter.
10257 (gomp_update): Add mm parameter.
10258 (gomp_init_device): Move most of it into...
10259 (gomp_init_tables): ... this new function.
10260 (gomp_register_images_for_device): Remove function.
10261 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
10262 Make them hidden instead of static.
10263 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
10264 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
10265 (GOMP_target_end_data, GOMP_target_update)
10266 (gomp_load_plugin_for_device, gomp_target_init): Update for
10267 OpenACC changes.
10268 * oacc-async.c: New file.
10269 * oacc-cuda.c: Likewise.
10270 * oacc-host.c: Likewise.
10271 * oacc-init.c: Likewise.
10272 * oacc-int.h: Likewise.
10273 * oacc-mem.c: Likewise.
10274 * oacc-parallel.c: Likewise.
10275 * oacc-plugin.c: Likewise.
10276 * oacc-plugin.h: Likewise.
10277 * oacc-ptx.h: Likewise.
10278 * openacc.f90: Likewise.
10279 * openacc.h: Likewise.
10280 * openacc_lib.h: Likewise.
10281 * plugin/plugin-host.c: Likewise.
10282 * plugin/plugin-nvptx.c: Likewise.
10283 * libgomp-plugin.c: Likewise.
10284 * libgomp-plugin.h: Likewise.
10285 * libgomp_target.h: Remove file after merging content into the
10286 former file. Update all users.
10287 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
10288 (offload_targets_s, offload_targets_s_openacc): New variables.
10289 (check_effective_target_openacc_nvidia_accel_present)
10290 (check_effective_target_openacc_nvidia_accel_selected): New
10291 procedures.
10292 (libgomp_init): Update for OpenACC changes.
10293 * testsuite/libgomp-test-support.exp.in: New file.
10294 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
10295 * testsuite/libgomp.oacc-c/c.exp: Likewise.
10296 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10297 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
10298 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
10299 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
10300 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
10301 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
10302 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
10303 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
10304 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
10305 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
10306 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
10307 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
10308 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
10309 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
10310 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
10311 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
10312 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
10313 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
10314 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
10315 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10316 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
10317 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
10318 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10319 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10320 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10321 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10322 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10323 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10324 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10325 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
10326 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
10327 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
10328 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
10329 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
10330 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
10331 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
10332 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
10333 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
10334 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
10335 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
10336 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10337 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
10338 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
10339 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
10340 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
10341 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
10342 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
10343 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
10344 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
10345 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
10346 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10347 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
10348 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
10349 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
10350 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
10351 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
10352 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
10353 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
10354 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
10355 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
10356 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
10357 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
10358 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
10359 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
10360 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
10361 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
10362 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
10363 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
10364 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
10365 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
10366 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
10367 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
10368 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
10369 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
10370 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
10371 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
10372 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
10373 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
10374 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
10375 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
10376 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
10377 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
10378 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
10379 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
10380 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
10381 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
10382 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
10383 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
10384 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
10385 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
10386 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
10387 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
10388 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
10389 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
10390 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
10391 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
10392 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
10393 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
10394 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
10395 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
10396 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
10397 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
10398 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
10399 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
10400 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
10401 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
10402 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
10403 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
10404 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
10405 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
10406 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
10407 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
10408 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
10409 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
10410 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
10411 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
10412 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
10413 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
10414 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
10415 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
10416 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
10417 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
10418 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
10419 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
10420 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
10421 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
10422 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
10423 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
10424 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
10425 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
10426 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
10427 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
10428 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
10429 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
10430 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
10431 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
10432 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
10433 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
10434 Likewise.
10435 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
10436 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
10437 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
10438 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
10439 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
10440 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
10441 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
10442 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
10443 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
10444 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
10445 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
10446 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
10447 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
10448 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
10449 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
10450 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
10451 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
10452 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
10453 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
10454 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
10455 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
10456 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
10457 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
10458 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
10459 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
10460 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
10461 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
10462 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10463 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10464 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10465 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10466 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10467 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10468 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10469 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
10470 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
10471 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
10472 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
10473 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
10474 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
10475 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
10476 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
10477 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
10478 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
10479 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
10480 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
10481 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
10482 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
10483 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
10484 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
10485 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
10486 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
10487 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
10488 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
10489 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
10490 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
10491 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
10492 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
10493 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
10494 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
10495
10496 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
10497 Julian Brown <julian@codesourcery.com>
10498 David Malcolm <dmalcolm@redhat.com>
10499
10500 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
10501 to "GNU Offloading and Multi Processing Runtime Library". Change
10502 all users.
10503 * configure: Regenerate.
10504 * libgomp.texi: Update.
10505
10506 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
10507
10508 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
10509 "$tgt_dir/lib32".
10510 * configure: Regenerate.
10511
10512 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
10513 "intelmic" in $offload_targets.
10514
10515 2015-01-05 Jakub Jelinek <jakub@redhat.com>
10516
10517 Update copyright years.
10518
10519 * libgomp.texi: Bump @copying's copyright year.
10520
10521 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10522
10523 * testsuite/lib/libgomp.exp: Load target-utils.exp.
10524 Move load of target-supports.exp earlier.
10525
10526 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
10527
10528 * testsuite/libgomp.c/target-9.c: New test.
10529
10530 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
10531
10532 * config.h.in: Regenerate.
10533 * configure: Regenerate.
10534 * configure.ac: Add GCC_CHECK_EMUTLS.
10535 * libgomp.h: Add check for USE_EMUTLS: this case
10536 is equal to HAVE_TLS.
10537 * team.c: Likewise.
10538
10539 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
10540
10541 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
10542
10543 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
10544 Ilya Verbin <ilya.verbin@intel.com>
10545
10546 * testsuite/libgomp.c/target-critical-1.c: New test.
10547
10548 2014-11-26 Jakub Jelinek <jakub@redhat.com>
10549
10550 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
10551 to dg-options unless expensive testing is on.
10552 (TESTITERS): Define to N if not defined.
10553 (main): Use TESTITERS instead of N.
10554 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
10555 dg-additional-options depending on whether expensive testing is on.
10556 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
10557 Decrease N to 100000 and CHUNKSZ to 10000.
10558
10559 2014-11-24 Jakub Jelinek <jakub@redhat.com>
10560
10561 PR fortran/63938
10562 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
10563 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
10564
10565 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
10566
10567 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
10568
10569 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
10570
10571 PR bootstrap/63784
10572 * configure: Regenerated.
10573
10574 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
10575
10576 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
10577 vect_simd_clones effective target.
10578 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
10579
10580 2014-11-14 Jakub Jelinek <jakub@redhat.com>
10581
10582 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
10583 of 32 as block_size.
10584 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
10585 instead of 32 as block_size.
10586
10587 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
10588 Ilya Verbin <ilya.verbin@intel.com>
10589
10590 * Makefile.in: Regenerate.
10591 * configure: Regenerate.
10592 * configure.ac: Set up offload_additional_options,
10593 offload_additional_lib_paths and offload_targets.
10594 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
10595 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
10596 * testsuite/Makefile.in: Regenerate.
10597 * testsuite/lib/libgomp.exp (libgomp_init): Append
10598 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
10599 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
10600 build directory to LD_LIBRARY_PATH for intelmic offload targets.
10601
10602 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
10603 Ilya Verbin <ilya.verbin@intel.com>
10604 Kirill Yukhin <kirill.yukhin@intel.com>
10605 Ilya Tocar <ilya.tocar@intel.com>
10606
10607 * testsuite/lib/libgomp.exp
10608 (check_effective_target_offload_device): New.
10609 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
10610 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
10611 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
10612 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
10613 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
10614 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
10615 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
10616 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
10617 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
10618 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
10619 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
10620 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
10621 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
10622 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
10623 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
10624 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
10625 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
10626 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
10627 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
10628 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
10629 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
10630 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
10631 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
10632 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
10633 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
10634 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
10635 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
10636 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
10637 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
10638 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
10639 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
10640 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
10641 * testsuite/libgomp.c/target-7.c: Fix test.
10642 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
10643 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
10644 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
10645 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
10646 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
10647 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
10648 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
10649 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
10650 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
10651 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
10652 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
10653 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
10654 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
10655 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
10656 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
10657 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
10658 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
10659 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
10660 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
10661 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
10662 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
10663 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
10664 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
10665 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
10666 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
10667 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
10668 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
10669 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
10670 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
10671 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
10672 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
10673
10674 2014-11-13 Jakub Jelinek <jakub@redhat.com>
10675 Ilya Verbin <ilya.verbin@intel.com>
10676 Thomas Schwinge <thomas@codesourcery.com>
10677 Andrey Turetskiy <andrey.turetskiy@intel.com>
10678
10679 * libgomp.map (GOMP_4.0.1): New symbol version.
10680 Add GOMP_offload_register.
10681 * libgomp_target.h: New file.
10682 * splay-tree.h: New file.
10683 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
10684 (gomp_target_init): New forward declaration.
10685 (gomp_is_initialized): New static variable.
10686 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
10687 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
10688 New structures.
10689 (offload_images, num_offload_images, devices, num_devices): New static
10690 variables.
10691 (splay_compare): New static function.
10692 (struct gomp_device_descr): New structure.
10693 (gomp_get_num_devices): Call gomp_target_init.
10694 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
10695 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
10696 (GOMP_offload_register): New function.
10697 (GOMP_target): Arrange for host callback to be performed in a separate
10698 initial thread and contention group, inheriting ICVs from
10699 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
10700 Add device initialization and lookup for target function in splay tree.
10701 (GOMP_target_data): Add device initialization and call gomp_map_vars.
10702 (GOMP_target_end_data): Call gomp_unmap_vars.
10703 (GOMP_target_update): Add device initialization and call gomp_update.
10704 (gomp_load_plugin_for_device, gomp_register_images_for_device)
10705 (gomp_target_init): New static functions.
10706
10707 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
10708 Thomas Schwinge <thomas@codesourcery.com>
10709 Ilya Verbin <ilya.verbin@intel.com>
10710 Andrey Turetskiy <andrey.turetskiy@intel.com>
10711
10712 * config.h.in: Regenerate.
10713 * configure: Regenerate.
10714 * configure.ac: Check for libdl, required for plugin support.
10715 (PLUGIN_SUPPORT): Define if plugins are supported.
10716 (enable_offload_targets): Support Intel MIC targets.
10717 (OFFLOAD_TARGETS): List of target names suitable for offloading.
10718
10719 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10720
10721 PR target/63610
10722 * configure: Regenerate.
10723
10724 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10725
10726 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
10727
10728 2014-10-06 Marek Polacek <polacek@redhat.com>
10729
10730 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
10731 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
10732 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
10733 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
10734
10735 2014-10-06 Marek Polacek <polacek@redhat.com>
10736
10737 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
10738 * testsuite/libgomp.c/nqueens-1.c: Likewise.
10739 * testsuite/libgomp.c/pr26943-3.c: Likewise.
10740 * testsuite/libgomp.c/pr26943-4.c: Likewise.
10741 * testsuite/libgomp.c/pr36802-2.c: Likewise.
10742 * testsuite/libgomp.c/pr36802-3.c: Likewise.
10743 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
10744 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
10745 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
10746 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
10747 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
10748 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
10749 * testsuite/libgomp.c/omp-single-1.c: Likewise.
10750 * testsuite/libgomp.c/omp-single-2.c: Likewise.
10751 * testsuite/libgomp.c/omp_matvec.c: Likewise.
10752 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
10753 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
10754 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
10755 declarations.
10756
10757 2014-10-03 Jakub Jelinek <jakub@redhat.com>
10758
10759 PR libgomp/61200
10760 * testsuite/libgomp.c/pr61200.c: New test.
10761
10762 2014-09-18 Jakub Jelinek <jakub@redhat.com>
10763
10764 PR c++/63248
10765 * testsuite/libgomp.c++/pr63248.C: New test.
10766
10767 2014-08-04 Jakub Jelinek <jakub@redhat.com>
10768
10769 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
10770 is not zero, but taskgroup->children is NULL and there are
10771 any task->children, schedule those instead of waiting.
10772 * testsuite/libgomp.c/depend-6.c: New test.
10773 * testsuite/libgomp.c/depend-7.c: New test.
10774 * testsuite/libgomp.c/depend-8.c: New test.
10775 * testsuite/libgomp.c/depend-9.c: New test.
10776 * testsuite/libgomp.c/depend-10.c: New test.
10777
10778 2014-08-01 Jakub Jelinek <jakub@redhat.com>
10779
10780 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
10781 (struct gomp_taskwait): New type.
10782 (struct gomp_task): Add taskwait and parent_depends_on, remove
10783 in_taskwait and taskwait_sem fields.
10784 (gomp_finish_task): Don't destroy taskwait_sem.
10785 * task.c (gomp_init_task): Don't init in_taskwait, instead init
10786 taskwait and parent_depends_on.
10787 (GOMP_task): For if (0) tasks with depend clause that depend on
10788 earlier tasks don't defer them, instead call
10789 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
10790 Initialize redundant_out field, for redundant out entries just
10791 move them at the end of linked list instead of removing them
10792 completely, and set redundant_out flag instead of redundant.
10793 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
10794 that task.
10795 (gomp_task_run_post_handle_dependers): If parent is in
10796 gomp_task_maybe_wait_for_dependencies and newly runnable task
10797 is not parent_depends_on, queue it in parent->children linked
10798 list after all runnable tasks with parent_depends_on set.
10799 Adjust for addition of taskwait indirection.
10800 (gomp_task_run_post_remove_parent): If parent is in
10801 gomp_task_maybe_wait_for_dependencies and task to be removed
10802 is parent_depends_on, decrement n_depend and if needed awake
10803 parent. Adjust for addition of taskwait indirection.
10804 (GOMP_taskwait): Adjust for addition of taskwait indirection.
10805 (gomp_task_maybe_wait_for_dependencies): New function.
10806 * testsuite/libgomp.c/depend-5.c: New test.
10807
10808 2014-07-13 Tobias Burnus <burnus@net-b.de>
10809
10810 * testsuite/libgomp.fortran/pr34020.f90: Make compile
10811 with TS 18508/Fortran 2015.
10812
10813 2014-07-06 Marek Polacek <polacek@redhat.com>
10814
10815 PR c/6940
10816 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
10817
10818 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10819
10820 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
10821 matches regex $lang_source_re, add $lang_include_flags to options.
10822 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
10823 * testsuite/libgomp.c++/c++.exp: Likewise.
10824 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
10825 and lang_include_flags instead of adding -fintrinsic-modules-path= to
10826 ALWAYS_CFLAGS.
10827 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
10828
10829 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
10830
10831 * testsuite/libgomp.fortran/fortran.exp: Explain
10832 gfortran-dg-runtest usage.
10833
10834 2014-06-25 Jakub Jelinek <jakub@redhat.com>
10835
10836 * testsuite/libgomp.fortran/simd5.f90: New test.
10837 * testsuite/libgomp.fortran/simd6.f90: New test.
10838 * testsuite/libgomp.fortran/simd7.f90: New test.
10839
10840 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10841
10842 * testsuite/libgomp.c/for-2.c: Define SC to static for
10843 #pragma omp for simd testing.
10844 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
10845 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
10846 SC macro.
10847 * testsuite/libgomp.c/simd-14.c: New test.
10848 * testsuite/libgomp.c/simd-15.c: New test.
10849 * testsuite/libgomp.c/simd-16.c: New test.
10850 * testsuite/libgomp.c/simd-17.c: New test.
10851 * testsuite/libgomp.c++/for-10.C: Define SC to static for
10852 #pragma omp for simd testing.
10853 * testsuite/libgomp.c++/simd10.C: New test.
10854 * testsuite/libgomp.c++/simd11.C: New test.
10855 * testsuite/libgomp.c++/simd12.C: New test.
10856 * testsuite/libgomp.c++/simd13.C: New test.
10857
10858 * testsuite/libgomp.fortran/aligned1.f03: New test.
10859 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
10860 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
10861 tasks with !$omp parallel !$omp single.
10862 * testsuite/libgomp.fortran/target8.f90: New test.
10863 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
10864 not to use trim in the combiner, instead call elemental function.
10865 (fn): New elemental function.
10866 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
10867 Make elemental.
10868 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
10869 omp_in): Likewise.
10870 * testsuite/libgomp.fortran/udr12.f90: New test.
10871 * testsuite/libgomp.fortran/udr13.f90: New test.
10872 * testsuite/libgomp.fortran/udr14.f90: New test.
10873 * testsuite/libgomp.fortran/udr15.f90: New test.
10874
10875 2014-06-18 Jakub Jelinek <jakub@redhat.com>
10876
10877 * omp_lib.f90.in (openmp_version): Set to 201307.
10878 * omp_lib.h.in (openmp_version): Likewise.
10879 * testsuite/libgomp.c/target-8.c: New test.
10880 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
10881 and inbranch clauses.
10882 * testsuite/libgomp.fortran/depend-3.f90: New test.
10883 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
10884 openmp_version.
10885 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
10886 * testsuite/libgomp.fortran/target1.f90: New test.
10887 * testsuite/libgomp.fortran/target2.f90: New test.
10888 * testsuite/libgomp.fortran/target3.f90: New test.
10889 * testsuite/libgomp.fortran/target4.f90: New test.
10890 * testsuite/libgomp.fortran/target5.f90: New test.
10891 * testsuite/libgomp.fortran/target6.f90: New test.
10892 * testsuite/libgomp.fortran/target7.f90: New test.
10893
10894 2014-06-10 Jakub Jelinek <jakub@redhat.com>
10895
10896 PR fortran/60928
10897 * testsuite/libgomp.fortran/allocatable9.f90: New test.
10898 * testsuite/libgomp.fortran/allocatable10.f90: New test.
10899 * testsuite/libgomp.fortran/allocatable11.f90: New test.
10900 * testsuite/libgomp.fortran/allocatable12.f90: New test.
10901 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
10902 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
10903 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
10904 * testsuite/libgomp.fortran/associate1.f90: New test.
10905 * testsuite/libgomp.fortran/associate2.f90: New test.
10906 * testsuite/libgomp.fortran/procptr1.f90: New test.
10907
10908 2014-06-06 Jakub Jelinek <jakub@redhat.com>
10909
10910 * testsuite/libgomp.fortran/simd1.f90: New test.
10911 * testsuite/libgomp.fortran/udr1.f90: New test.
10912 * testsuite/libgomp.fortran/udr2.f90: New test.
10913 * testsuite/libgomp.fortran/udr3.f90: New test.
10914 * testsuite/libgomp.fortran/udr4.f90: New test.
10915 * testsuite/libgomp.fortran/udr5.f90: New test.
10916 * testsuite/libgomp.fortran/udr6.f90: New test.
10917 * testsuite/libgomp.fortran/udr7.f90: New test.
10918 * testsuite/libgomp.fortran/udr8.f90: New test.
10919 * testsuite/libgomp.fortran/udr9.f90: New test.
10920 * testsuite/libgomp.fortran/udr10.f90: New test.
10921 * testsuite/libgomp.fortran/udr11.f90: New test.
10922
10923 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
10924
10925 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
10926 vect_simd_clones effective target.
10927 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
10928
10929 2014-05-21 Jakub Jelinek <jakub@redhat.com>
10930
10931 PR middle-end/61252
10932 * testsuite/libgomp.c++/simd-9.C: New test.
10933
10934 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
10935
10936 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
10937 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
10938 texts according to their @menu entry positions.
10939
10940 2014-05-11 Jakub Jelinek <jakub@redhat.com>
10941
10942 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
10943 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
10944 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
10945 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
10946 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
10947 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
10948 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
10949 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
10950 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
10951 * testsuite/libgomp.fortran/depend-1.f90: New test.
10952 * testsuite/libgomp.fortran/depend-2.f90: New test.
10953 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
10954 * testsuite/libgomp.fortran/simd1.f90: New test.
10955 * testsuite/libgomp.fortran/simd2.f90: New test.
10956 * testsuite/libgomp.fortran/simd3.f90: New test.
10957 * testsuite/libgomp.fortran/simd4.f90: New test.
10958 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
10959
10960 2014-05-02 Jakub Jelinek <jakub@redhat.com>
10961
10962 * testsuite/libgomp.c/simd-10.c: New test.
10963 * testsuite/libgomp.c/simd-11.c: New test.
10964 * testsuite/libgomp.c/simd-12.c: New test.
10965 * testsuite/libgomp.c/simd-13.c: New test.
10966
10967 2014-04-24 Jakub Jelinek <jakub@redhat.com>
10968
10969 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
10970 atomic type clauses in any order and optional comma in between.
10971 * testsuite/libgomp.c++/atomic-15.C: Likewise.
10972 * testsuite/libgomp.c/atomic-17.c: Likewise.
10973
10974 * testsuite/libgomp.c/simd-7.c: New test.
10975 * testsuite/libgomp.c/simd-8.c: New test.
10976 * testsuite/libgomp.c/simd-9.c: New test.
10977 * testsuite/libgomp.c/loop-16.c: New test.
10978
10979 2014-04-02 Richard Henderson <rth@redhat.com>
10980
10981 * config/linux/futex.h (futex_wait): Get error value from errno.
10982 (futex_wake): Likewise.
10983
10984 2014-03-25 Jakub Jelinek <jakub@redhat.com>
10985
10986 PR c++/60331
10987 * testsuite/libgomp.c++/udr-11.C: New test.
10988 * testsuite/libgomp.c++/udr-12.C: New test.
10989 * testsuite/libgomp.c++/udr-13.C: New test.
10990 * testsuite/libgomp.c++/udr-14.C: New test.
10991 * testsuite/libgomp.c++/udr-15.C: New test.
10992 * testsuite/libgomp.c++/udr-16.C: New test.
10993 * testsuite/libgomp.c++/udr-17.C: New test.
10994 * testsuite/libgomp.c++/udr-18.C: New test.
10995 * testsuite/libgomp.c++/udr-19.C: New test.
10996
10997 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
10998
10999 Update copyright years
11000
11001 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
11002
11003 * hashtab.h: Use the standard form for the copyright notice.
11004
11005 2014-01-02 Tobias Burnus <burnus@net-b.de>
11006
11007 * libgomp.texi: Bump @copying's copyright year.
11008
11009 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
11010
11011 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
11012 alloca () with __builtin_alloca ().
11013 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
11014 * testsuite/libgomp.c/lock-3.c: Likewise.
11015 * testsuite/libgomp.c/pr48591.c: Likewise.
11016
11017 2013-12-17 Jakub Jelinek <jakub@redhat.com>
11018
11019 PR testsuite/59534
11020 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
11021 comparisons.
11022
11023 2013-12-16 Jakub Jelinek <jakub@redhat.com>
11024
11025 PR libgomp/58756
11026 * testsuite/libgomp.c/pr58756.c: New test.
11027
11028 2013-12-12 Jakub Jelinek <jakub@redhat.com>
11029
11030 PR libgomp/59467
11031 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
11032 !$omp parallel.
11033
11034 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
11035
11036 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
11037 ALWAYS_CFLAGS.
11038 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
11039 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
11040 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
11041 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
11042 Likewise.
11043
11044 * libgomp_g.h: Include <stddef.h> for size_t.
11045
11046 * libgomp.spec.in: Update comment about libgomp's dependencies.
11047 * configure.ac: Likewise.
11048 * configure: Regenerate.
11049
11050 2013-10-16 Tobias Burnus <burnus@net-b.de>
11051
11052 * libgomp.texi: (Runtime Library Routines): Update references for
11053 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
11054 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
11055 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
11056 (Environment Variables): Update references for OpenMP 4.0. Add
11057 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
11058 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
11059 order.
11060
11061 2013-10-14 Jakub Jelinek <jakub@redhat.com>
11062
11063 * env.c (parse_bind_var): Initialize value to avoid
11064 (false positive) warning.
11065
11066 2013-10-12 Jakub Jelinek <jakub@redhat.com>
11067
11068 PR libgomp/58691
11069 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
11070 to check variable.
11071 (gomp_init_num_threads): Move i variable declaration into
11072 #ifdef CPU_ALLOC_SIZE block.
11073 * config/linux/affinity.c (gomp_affinity_init_level): Test
11074 gomp_places_list_len == 0 rather than gomp_places_list == 0
11075 when checking for topology reading error.
11076 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
11077 * env.c (parse_affinity): Add ignore argument, if true, don't populate
11078 gomp_places_list, only parse env var and always return false.
11079 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
11080 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
11081 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
11082 and either of these variables were parsed correctly into a places
11083 list.
11084
11085 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
11086 Jakub Jelinek <jakub@redhat.com>
11087
11088 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
11089 of 5 loopfn matches.
11090 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
11091 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
11092 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
11093 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
11094 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
11095 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
11096 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
11097 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
11098
11099 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
11100
11101 * Makefile.am (omp_lib.mod): Streamline rule.
11102 * Makefile.in: Regenerate.
11103
11104 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
11105 exceptions.
11106
11107 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
11108 * testsuite/libgomp.fortran/lib1.f90: Likewise.
11109 * testsuite/libgomp.fortran/lib2.f: Likewise.
11110 * testsuite/libgomp.fortran/lib3.f: Likewise.
11111
11112 * configure.ac: Typo fix.
11113 * configure: Regenerate.
11114
11115 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
11116 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
11117
11118 * omp.h.in: Don't touch the user's namespace.
11119
11120 2013-10-11 Jakub Jelinek <jakub@redhat.com>
11121 Tobias Burnus <burnus@net-b.de>
11122 Richard Henderson <rth@redhat.com>
11123
11124 * target.c: New file.
11125 * Makefile.am (libgomp_la_SOURCES): Add target.c.
11126 * Makefile.in: Regenerated.
11127 * libgomp_g.h (GOMP_task): Add depend argument.
11128 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
11129 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
11130 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
11131 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
11132 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
11133 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
11134 GOMP_taskgroup_start, GOMP_taskgroup_end,
11135 GOMP_parallel_sections): New prototypes.
11136 * fortran.c (omp_is_initial_device): Add ialias_redirect.
11137 (omp_is_initial_device_): New function.
11138 (ULP, STR1, STR2, ialias_redirect): Removed.
11139 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
11140 omp_set_default_device_8_, omp_get_default_device_,
11141 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
11142 functions.
11143 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
11144 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
11145 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
11146 @@GOMP_4.0.
11147 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
11148 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
11149 omp_set_default_device, omp_set_default_device_,
11150 omp_set_default_device_8_, omp_get_default_device,
11151 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
11152 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
11153 omp_get_team_num_): Export @@OMP_4.0.
11154 * team.c (struct gomp_thread_start_data): Add place field.
11155 (gomp_thread_start): Clear thr->thread_pool and
11156 thr->task before returning. Use gomp_team_barrier_wait_final
11157 instead of gomp_team_barrier_wait. Initialize thr->place.
11158 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
11159 team_cancelled and task_queued_count fields.
11160 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
11161 before calling pthread_exit.
11162 (gomp_free_thread): No longer static. Use
11163 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
11164 (gomp_team_start): Add flags argument. Set
11165 thr->thread_pool->threads_busy to nthreads immediately after creating
11166 new pool. Use gomp_managed_threads_lock instead of
11167 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
11168 (gomp_team_end): Use gomp_managed_threads_lock instead of
11169 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
11170 of gomp_team_barrier_wait. If team->team_cancelled, call
11171 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
11172 rather than thr->ts.work_share.
11173 (initialize_team): Don't call gomp_sem_init here.
11174 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
11175 caller.
11176 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
11177 * env.c (gomp_global_icv): Add default_device_var, target_data and
11178 bind_var initializers.
11179 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
11180 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
11181 gomp_places_list_len): New variables.
11182 (parse_bind_var, parse_one_place, parse_places_var): New functions.
11183 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
11184 sized places.
11185 (gomp_cancel_var): New global variable.
11186 (parse_int): New function.
11187 (handle_omp_display_env): New function.
11188 (initialize_env): Use it. Initialize default_device_var.
11189 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
11190 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
11191 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
11192 been successfully parsed (and call gomp_init_affinity in that case).
11193 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
11194 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
11195 omp_get_team_num, omp_is_initial_device): New functions.
11196 * libgomp.h: Include stdlib.h.
11197 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
11198 Define.
11199 (struct target_mem_desc): Forward declare.
11200 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
11201 and thread_limit_var fields.
11202 (gomp_get_num_devices): New prototype.
11203 (gomp_cancel_var): New extern decl.
11204 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
11205 team_cancelled and task_queued_count fields. Add comments about
11206 task_{,queued_,running_}count.
11207 (gomp_cancel_kind): New enum.
11208 (gomp_work_share_end_cancel): New prototype.
11209 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
11210 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
11211 and depend fields.
11212 (struct gomp_taskgroup): New type.
11213 (struct gomp_task_depend_entry,
11214 struct gomp_dependers_vec): New types.
11215 (gomp_finish_task): Free depend_hash if non-NULL.
11216 (struct gomp_team_state): Add place_partition_off
11217 and place_partition_len fields.
11218 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
11219 gomp_places_list_len): New extern decls.
11220 (struct gomp_thread): Add place field.
11221 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
11222 (gomp_init_thread_affinity): Add place argument.
11223 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
11224 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
11225 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
11226 gomp_affinity_init_level, gomp_affinity_print_place): New
11227 prototypes.
11228 (gomp_team_start): Add flags argument.
11229 (gomp_thread_limit_var, gomp_remaining_threads_count,
11230 gomp_remaining_threads_lock): Remove.
11231 (gomp_managed_threads_lock): New variable.
11232 (struct gomp_thread_pool): Add threads_busy field.
11233 (gomp_free_thread): New prototype.
11234 * task.c: Include hashtab.h.
11235 (hash_entry_type): New typedef.
11236 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
11237 (gomp_init_task): Clear dependers, depend_hash, depend_count,
11238 copy_ctors_done and taskgroup fields.
11239 (GOMP_task): Add depend argument, handle depend clauses. If
11240 gomp_team_barrier_cancelled or if it's taskgroup has been
11241 cancelled, don't queue or start new tasks. Set copy_ctors_done
11242 field if needed. Initialize taskgroup field. If copy_ctors_done
11243 and already cancelled, don't discard the task. If taskgroup is
11244 non-NULL, enqueue the task into taskgroup queue. Increment
11245 num_children field in taskgroup. Increment task_queued_count.
11246 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
11247 gomp_task_run_post_remove_taskgroup): New inline functions.
11248 (gomp_task_run_post_handle_depend_hash,
11249 gomp_task_run_post_handle_dependers,
11250 gomp_task_run_post_handle_depend): New functions.
11251 (GOMP_taskwait): Use them. If more than one new tasks
11252 have been queued, wake other threads if needed.
11253 (gomp_barrier_handle_tasks): Likewise. If
11254 gomp_team_barrier_cancelled, don't start any new tasks, just free
11255 all tasks.
11256 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
11257 * omp_lib.f90.in
11258 (omp_proc_bind_kind, omp_proc_bind_false,
11259 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
11260 omp_proc_bind_spread): New params.
11261 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
11262 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
11263 omp_get_team_num, omp_is_initial_device): New interfaces.
11264 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
11265 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
11266 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
11267 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
11268 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
11269 useless use omp_lib_kinds.
11270 * omp.h.in (omp_proc_bind_t): New typedef.
11271 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
11272 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
11273 omp_get_team_num, omp_is_initial_device): New prototypes.
11274 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
11275 through to gomp_team_start.
11276 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
11277 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
11278 Adjust gomp_parallel_loop_start callers.
11279 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
11280 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
11281 GOMP_loop_end_cancel): New functions.
11282 (GOMP_parallel_end): Add ialias_redirect.
11283 * hashtab.h: New file.
11284 * libgomp.texi (Environment Variables): Minor cleanup,
11285 update section refs to OpenMP 4.0rc2.
11286 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
11287 environment variables.
11288 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
11289 team->work_shares_to_free to thr->ts.work_share before calling
11290 free_work_share.
11291 (gomp_work_share_end_cancel): New function.
11292 * config/linux/proc.c: Include errno.h.
11293 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
11294 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
11295 sizeof (cpu_set_t) to determine number of iterations. Fix up check
11296 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
11297 gomp_cpuset_size is sizeof (cpu_set_t).
11298 (gomp_init_num_threads): Initialize gomp_cpuset_size,
11299 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
11300 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
11301 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
11302 contain any logical CPUs.
11303 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
11304 is NULL. Use gomp_cpusetp instead of &cpuset and pass
11305 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
11306 pthread_getaffinity_np. Check gomp_places_list instead of
11307 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
11308 * config/linux/bar.c (gomp_barrier_wait_end,
11309 gomp_barrier_wait_last): Use BAR_* defines.
11310 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
11311 from state where needed. Set work_share_cancelled to 0 on last
11312 thread.
11313 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
11314 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
11315 functions.
11316 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
11317 Add cpusetsize argument.
11318 (gomp_cpuset_size, gomp_cpusetp): Declare.
11319 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
11320 (affinity_counter): Remove.
11321 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
11322 if CPU_ALLOC_SIZE isn't defined.
11323 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
11324 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
11325 bind current thread to the first place.
11326 (gomp_init_thread_affinity): Rewritten. Add place argument, just
11327 pthread_setaffinity_np to gomp_places_list[place].
11328 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
11329 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
11330 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
11331 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
11332 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
11333 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
11334 (gomp_barrier_t): Add awaited_final field.
11335 (gomp_barrier_init): Initialize awaited_final field.
11336 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
11337 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
11338 prototypes.
11339 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
11340 defines.
11341 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
11342 gomp_team_barrier_cancelled): New inline functions.
11343 (gomp_barrier_last_thread,
11344 gomp_team_barrier_set_task_pending,
11345 gomp_team_barrier_clear_task_pending,
11346 gomp_team_barrier_set_waiting_for_tasks,
11347 gomp_team_barrier_waiting_for_tasks,
11348 gomp_team_barrier_done): Use BAR_* defines.
11349 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
11350 (gomp_barrier_wait_end): Use BAR_* defines.
11351 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
11352 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
11353 Use BAR_* defines.
11354 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
11355 gomp_team_barrier_cancel): New functions.
11356 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
11357 argument.
11358 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
11359 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
11360 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
11361 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
11362 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
11363 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
11364 (gomp_barrier_t): Add cancellable field.
11365 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
11366 gomp_team_barrier_cancel): New prototypes.
11367 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
11368 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
11369 gomp_team_barrier_cancelled): New inline functions.
11370 (gomp_barrier_wait_start, gomp_barrier_last_thread,
11371 gomp_team_barrier_set_task_pending,
11372 gomp_team_barrier_clear_task_pending,
11373 gomp_team_barrier_set_waiting_for_tasks,
11374 gomp_team_barrier_waiting_for_tasks,
11375 gomp_team_barrier_done): Use BAR_* defines.
11376 * barrier.c (GOMP_barrier_cancel): New function.
11377 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
11378 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
11379 omp_proc_bind_spread): New params.
11380 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
11381 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
11382 omp_get_team_num, omp_is_initial_device): New externals.
11383 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
11384 New functions.
11385 (gomp_resolve_num_threads): Adjust for thread_limit now being in
11386 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
11387 infinity. If not nested, just return minimum of max_num_threads
11388 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
11389 to the returned value. Otherwise, don't update atomically
11390 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
11391 (GOMP_parallel_end): Adjust for thread_limit now being in
11392 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
11393 infinity. Adjust threads_busy in the pool rather than
11394 gomp_remaining_threads_count. Remember team->nthreads and call
11395 gomp_team_end before adjusting threads_busy, if not nested
11396 afterwards, just set it to 1 non-atomically. Add ialias.
11397 (GOMP_parallel_start): Adjust gomp_team_start caller.
11398 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
11399 * testsuite/libgomp.c/affinity-1.c: New test.
11400 * testsuite/libgomp.c/atomic-15.c: New test.
11401 * testsuite/libgomp.c/atomic-16.c: New test.
11402 * testsuite/libgomp.c/atomic-17.c: New test.
11403 * testsuite/libgomp.c/cancel-for-1.c: New test.
11404 * testsuite/libgomp.c/cancel-for-2.c: New test.
11405 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
11406 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
11407 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
11408 * testsuite/libgomp.c/cancel-sections-1.c: New test.
11409 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
11410 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
11411 * testsuite/libgomp.c/depend-1.c: New test.
11412 * testsuite/libgomp.c/depend-2.c: New test.
11413 * testsuite/libgomp.c/depend-3.c: New test.
11414 * testsuite/libgomp.c/depend-4.c: New test.
11415 * testsuite/libgomp.c/for-1.c: New test.
11416 * testsuite/libgomp.c/for-1.h: New file.
11417 * testsuite/libgomp.c/for-2.c: New test.
11418 * testsuite/libgomp.c/for-2.h: New file.
11419 * testsuite/libgomp.c/for-3.c: New test.
11420 * testsuite/libgomp.c/pr58392.c: New test.
11421 * testsuite/libgomp.c/simd-1.c: New test.
11422 * testsuite/libgomp.c/simd-2.c: New test.
11423 * testsuite/libgomp.c/simd-3.c: New test.
11424 * testsuite/libgomp.c/simd-4.c: New test.
11425 * testsuite/libgomp.c/simd-5.c: New test.
11426 * testsuite/libgomp.c/simd-6.c: New test.
11427 * testsuite/libgomp.c/target-1.c: New test.
11428 * testsuite/libgomp.c/target-2.c: New test.
11429 * testsuite/libgomp.c/target-3.c: New test.
11430 * testsuite/libgomp.c/target-4.c: New test.
11431 * testsuite/libgomp.c/target-5.c: New test.
11432 * testsuite/libgomp.c/target-6.c: New test.
11433 * testsuite/libgomp.c/target-7.c: New test.
11434 * testsuite/libgomp.c/taskgroup-1.c: New test.
11435 * testsuite/libgomp.c/thread-limit-1.c: New test.
11436 * testsuite/libgomp.c/thread-limit-2.c: New test.
11437 * testsuite/libgomp.c/thread-limit-3.c: New test.
11438 * testsuite/libgomp.c/udr-1.c: New test.
11439 * testsuite/libgomp.c/udr-2.c: New test.
11440 * testsuite/libgomp.c/udr-3.c: New test.
11441 * testsuite/libgomp.c++/affinity-1.C: New test.
11442 * testsuite/libgomp.c++/atomic-10.C: New test.
11443 * testsuite/libgomp.c++/atomic-11.C: New test.
11444 * testsuite/libgomp.c++/atomic-12.C: New test.
11445 * testsuite/libgomp.c++/atomic-13.C: New test.
11446 * testsuite/libgomp.c++/atomic-14.C: New test.
11447 * testsuite/libgomp.c++/atomic-15.C: New test.
11448 * testsuite/libgomp.c++/cancel-for-1.C: New test.
11449 * testsuite/libgomp.c++/cancel-for-2.C: New test.
11450 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
11451 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
11452 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
11453 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
11454 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
11455 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
11456 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
11457 * testsuite/libgomp.c++/cancel-test.h: New file.
11458 * testsuite/libgomp.c++/for-9.C: New test.
11459 * testsuite/libgomp.c++/for-10.C: New test.
11460 * testsuite/libgomp.c++/for-11.C: New test.
11461 * testsuite/libgomp.c++/simd-1.C: New test.
11462 * testsuite/libgomp.c++/simd-2.C: New test.
11463 * testsuite/libgomp.c++/simd-3.C: New test.
11464 * testsuite/libgomp.c++/simd-4.C: New test.
11465 * testsuite/libgomp.c++/simd-5.C: New test.
11466 * testsuite/libgomp.c++/simd-6.C: New test.
11467 * testsuite/libgomp.c++/simd-7.C: New test.
11468 * testsuite/libgomp.c++/simd-8.C: New test.
11469 * testsuite/libgomp.c++/target-1.C: New test.
11470 * testsuite/libgomp.c++/target-2.C: New test.
11471 * testsuite/libgomp.c++/target-2-aux.cc: New file.
11472 * testsuite/libgomp.c++/target-3.C: New test.
11473 * testsuite/libgomp.c++/taskgroup-1.C: New test.
11474 * testsuite/libgomp.c++/udr-1.C: New test.
11475 * testsuite/libgomp.c++/udr-2.C: New test.
11476 * testsuite/libgomp.c++/udr-3.C: New test.
11477 * testsuite/libgomp.c++/udr-4.C: New test.
11478 * testsuite/libgomp.c++/udr-5.C: New test.
11479 * testsuite/libgomp.c++/udr-6.C: New test.
11480 * testsuite/libgomp.c++/udr-7.C: New test.
11481 * testsuite/libgomp.c++/udr-8.C: New test.
11482 * testsuite/libgomp.c++/udr-9.C: New test.
11483
11484 2013-09-20 Jakub Jelinek <jakub@redhat.com>
11485
11486 PR testsuite/57605
11487 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
11488 ALWAYS_CFLAGS.
11489
11490 2013-09-20 Alan Modra <amodra@gmail.com>
11491
11492 * configure: Regenerate.
11493
11494 2013-09-19 Jakub Jelinek <jakub@redhat.com>
11495
11496 * testsuite/libgomp.c/sections-2.c: New test.
11497
11498 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
11499
11500 * testsuite/libgomp.fortran/strassen.f90:
11501 Add dg-skip-if aarch64_tiny.
11502
11503 2013-06-20 Iain Sandoe <iain@codesourcery.com>
11504 Cesar Philippidis <cesar@codesourcery.com>
11505
11506 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
11507 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
11508 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
11509 * testsuite/libgomp.fortran/fortran.exp: Likewise.
11510 * testsuite/libgomp.graphite/graphite.exp: Likewise.
11511 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
11512 Use dg-runtest rather than gfortran-dg-runtest.
11513
11514 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
11515
11516 * testsuite/libgomp.c/icv-2.c: Extend current handling of
11517 Linux-based x86 systems to cover all GNU systems.
11518 * testsuite/libgomp.c/lock-3.c: Likewise.
11519 * testsuite/libgomp.c/pr48591.c: Likewise.
11520
11521 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
11522
11523 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
11524 GNU/Hurd, as done for Linux-based systems.
11525
11526 * config/posix/ptrlock.h: Fix comment.
11527
11528 2013-05-27 Tobias Burnus <burnus@net-b.de>
11529
11530 PR fortran/57423
11531 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
11532 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
11533 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
11534 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
11535 omp_destroy_nest_lock): Correct arguments to match the one in
11536 the OpenMP spec.
11537 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
11538 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
11539 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
11540 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
11541
11542 2013-05-16 Jakub Jelinek <jakub@redhat.com>
11543
11544 * testsuite/libgomp.c/loop-13.c: New test.
11545 * testsuite/libgomp.c/loop-14.c: New test.
11546 * testsuite/libgomp.c/loop-15.c: New test.
11547 * testsuite/libgomp.c++/loop-13.C: New test.
11548 * testsuite/libgomp.c++/loop-14.C: New test.
11549 * testsuite/libgomp.c++/loop-15.C: New test.
11550
11551 2013-02-06 Jakub Jelinek <jakub@redhat.com>
11552
11553 PR middle-end/56217
11554 * testsuite/libgomp.c++/pr56217.C: New test.
11555
11556 2013-02-01 Alan Modra <amodra@gmail.com>
11557
11558 * task.c (GOMP_task, GOMP_taskwait): Comment.
11559
11560 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
11561 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
11562
11563 PR libgomp/55561
11564 * config/linux/wait.h (do_spin): Use atomic load for addr.
11565 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
11566 for intptr and ptrlock.
11567 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
11568 for ptrlock.
11569
11570 2013-01-22 Alan Modra <amodra@gmail.com>
11571
11572 PR libgomp/51376
11573 PR libgomp/56073
11574 * task.c (GOMP_task): Revert 2011-12-09 change.
11575 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
11576 barrier to read task->children..
11577 (gomp_barrier_handle_tasks): ..and matching atomic store with
11578 release barrier here when setting parent->children to NULL.
11579
11580 2013-01-16 Jakub Jelinek <jakub@redhat.com>
11581 Tobias Burnus <burnus@net-b.de>
11582
11583 PR driver/55884
11584 * testsuite/libgomp.fortran/fortran.exp: Use
11585 -fintrinsic-modules-path= instead of
11586 -fintrinsic-modules-path.
11587
11588 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
11589
11590 Update copyright years.
11591
11592 2012-12-19 Tobias Burnus <burnus@net-b.de>
11593
11594 * testsuite/libgomp.fortran/fortran.exp: Set
11595 -fintrinsic-modules-path.
11596
11597 2012-12-19 Tobias Burnus <burnus@net-b.de>
11598
11599 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
11600 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
11601
11602 2012-11-21 Jakub Jelinek <jakub@redhat.com>
11603
11604 PR libgomp/55411
11605 * team.c (gomp_free_thread): Decrease gomp_managed_threads
11606 if pool had any threads_used.
11607
11608 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
11609
11610 * testsuite/libgomp.c++/pr24455.C: Use
11611 -Wl,-undefined,dynamic_lookup on darwin.
11612
11613 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
11614
11615 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
11616
11617 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
11618
11619 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
11620
11621 2012-10-23 Ian Bolton <ian.bolton@arm.com>
11622 Jim MacArthur <jim.macarthur@arm.com>
11623 Marcus Shawcroft <marcus.shawcroft@arm.com>
11624 Nigel Stephens <nigel.stephens@arm.com>
11625 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11626 Richard Earnshaw <rearnsha@arm.com>
11627 Sofiane Naci <sofiane.naci@arm.com>
11628 Stephen Thomas <stephen.thomas@arm.com>
11629 Tejas Belagod <tejas.belagod@arm.com>
11630 Yufeng Zhang <yufeng.zhang@arm.com>
11631
11632 * configure.tgt: Add AArch64.
11633
11634 2012-10-04 Jason Merrill <jason@redhat.com>
11635
11636 * testsuite/libgomp.c++/tls-init1.C: New.
11637
11638 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
11639
11640 * configure: Regenerated.
11641
11642 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
11643
11644 * config/linux/mips/futex.h (sys_futex0): Change to static
11645 function with noinline, nomips16 attributes under MIPS16. Adjust
11646 asm statement to place 'li v0,SYS_futex' immediately before
11647 syscall insn.
11648
11649 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
11650
11651 * libgomp.texi (Library Index): Renamed from "Index" to prevent
11652 conflict with index.html on case-insensitive file systems.
11653
11654 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
11655
11656 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
11657 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
11658
11659 2012-07-02 Richard Guenther <rguenther@suse.de>
11660 Michael Matz <matz@suse.de>
11661 Tobias Grosser <tobias@grosser.es>
11662 Sebastian Pop <sebpop@gmail.com>
11663
11664 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
11665 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
11666 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
11667 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
11668
11669 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
11670
11671 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
11672
11673 2012-06-22 Richard Guenther <rguenther@suse.de>
11674
11675 Merge from graphite branch
11676 2012-01-13 Tobias Grosser <tobias@grosser.es>
11677
11678 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
11679 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
11680
11681 2012-06-07 Jakub Jelinek <jakub@redhat.com>
11682
11683 PR middle-end/53580
11684 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
11685 use GOMP_barrier () call instead.
11686 * testsuite/libgomp.c/pr26943-3.c: Likewise.
11687 * testsuite/libgomp.c/pr26943-4.c: Likewise.
11688 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
11689 call GOMP_barrier instead.
11690 * testsuite/libgomp.fortran/vla5.f90: Likewise.
11691
11692 2012-06-06 Jakub Jelinek <jakub@redhat.com>
11693
11694 PR libgomp/52993
11695 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
11696 argument to memset call.
11697
11698 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
11699
11700 * configure: Regenerated.
11701
11702 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
11703
11704 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
11705
11706 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
11707
11708 PR bootstrap/52812
11709 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
11710
11711 2012-03-22 Jakub Jelinek <jakub@redhat.com>
11712
11713 PR middle-end/52547
11714 * testsuite/libgomp.c/pr52547.c: New test.
11715
11716 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11717
11718 * testsuite/lib/libgomp.exp: load fortran-modules.exp
11719
11720 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11721
11722 * configure.tgt (mips-sgi-irix6*): Remove.
11723
11724 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11725
11726 * configure.tgt (alpha*-dec-osf*): Remove.
11727
11728 * config/osf/sem.h: Remove.
11729 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
11730
11731 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
11732
11733 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
11734
11735 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11736
11737 PR libstdc++/52188
11738 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
11739 Remove ENABLE_SYMVERS_SOL2.
11740 * configure: Regenerate.
11741 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
11742 (PREPROCESS): New variable.
11743 (libgomp.ver): New target.
11744 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
11745 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
11746 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
11747 Use libgomp.ver.
11748 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
11749 * Makefile.in: Regenerate.
11750
11751 2012-02-14 Walter Lee <walt@tilera.com>
11752
11753 * configure.tgt: Handle tilegx and tilepro.
11754 * config/linux/tile/futex.h: New file.
11755
11756 2012-02-08 Richard Guenther <rguenther@suse.de>
11757
11758 PR tree-optimization/46886
11759 * testsuite/libgomp.c/pr46886.c: New testcase.
11760
11761 2012-01-25 Matthias Klose <doko@ubuntu.com>
11762
11763 * config/linux/arm: Remove empty directory.
11764 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
11765
11766 2011-12-09 Alan Modra <amodra@gmail.com>
11767
11768 PR libgomp/51376
11769 * task.c (GOMP_taskwait): Don't access task->children outside of
11770 task_lock mutex region.
11771 (GOMP_task): Likewise.
11772
11773 2011-12-06 Jakub Jelinek <jakub@redhat.com>
11774
11775 PR libgomp/51132
11776 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
11777 to file scope.
11778 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
11779 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
11780 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
11781 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
11782 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
11783
11784 2011-12-02 Alan Modra <amodra@gmail.com>
11785
11786 * config/linux/affinity.c: Use atomic rather than sync builtin.
11787 * config/linux/lock.c: Likewise.
11788 * config/linux/ptrlock.h: Likewise.
11789 * config/linux/ptrlock.c: Likewise.
11790 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
11791 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
11792 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
11793 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
11794 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
11795 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
11796 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
11797 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
11798 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
11799 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
11800
11801 2011-11-30 Alan Modra <amodra@gmail.com>
11802
11803 PR libgomp/51298
11804 * config/linux/bar.h: Use atomic rather than sync builtins.
11805 * config/linux/bar.c: Likewise. Add missing acquire
11806 synchronisation on generation field.
11807 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
11808 double unlock.
11809
11810 2011-11-30 Alan Modra <amodra@gmail.com>
11811
11812 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
11813 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
11814 * config/linux/mutex.h: Use atomic rather than sync builtins.
11815 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
11816 * config/linux/omp-lock.h: Comment fix.
11817 * config/linux/arm/mutex.h: Delete.
11818 * config/linux/powerpc/mutex.h: Delete.
11819 * config/linux/ia64/mutex.h: Delete.
11820 * config/linux/mips/mutex.h: Delete.
11821
11822 2011-11-30 Alan Modra <amodra@gmail.com>
11823
11824 PR libgomp/51249
11825 * config/linux/sem.h: Rewrite.
11826 * config/linux/sem.c: Rewrite.
11827
11828 2011-11-28 Richard Henderson <rth@redhat.com>
11829
11830 * libgomp.h (enum memmodel): New.
11831
11832 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
11833
11834 * configure: Regenerate.
11835
11836 2011-10-10 Matthias Klose <doko@ubuntu.com>
11837
11838 * config/posix95: Remove empty directory.
11839
11840 2011-08-26 Jakub Jelinek <jakub@redhat.com>
11841
11842 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
11843
11844 2011-08-19 Jakub Jelinek <jakub@redhat.com>
11845
11846 PR fortran/49792
11847 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
11848 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
11849
11850 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11851
11852 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
11853
11854 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11855
11856 PR libgomp/49965
11857 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
11858
11859 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
11860
11861 * config/linux/proc.h: New.
11862 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
11863 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
11864 (gomp_init_num_threads): Update call to cpuset_popcount.
11865 (get_num_procs): Ditto.
11866 * config/linux/affinity.c (gomp_init_affinity): Call
11867 gomp_cpuset_popcount.
11868
11869 2011-08-02 Jakub Jelinek <jakub@redhat.com>
11870
11871 PR fortran/42041
11872 PR fortran/46752
11873 * omp.h.in (omp_in_final): New prototype.
11874 * omp_lib.f90.in (omp_in_final): New interface.
11875 (omp_integer_kind, omp_logical_kind): Remove
11876 and replace all its uses in the module with 4.
11877 (openmp_version): Change to 201107.
11878 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
11879 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
11880 kind for the parameters.
11881 (omp_in_final): New external.
11882 (openmp_version): Change to 201107.
11883 * task.c (omp_in_final): New function.
11884 (gomp_init_task): Initialize final_task.
11885 (GOMP_task): Remove unused attribute from flags. Handle final
11886 tasks.
11887 (GOMP_taskyield): New function.
11888 (omp_in_final): Return true if if (false) or final (true) task
11889 or descendant of final (true).
11890 * fortran.c (omp_in_final_): New function.
11891 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
11892 (GOMP_3.0): Export GOMP_taskyield.
11893 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
11894 variables.
11895 (parse_unsigned_long_list): New function.
11896 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
11897 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
11898 even if parse_affinity returned false.
11899 * config/linux/affinity.c (gomp_init_affinity): Handle
11900 gomp_cpu_affinity_len == 0.
11901 * libgomp_g.h (GOMP_taskyield): New prototype.
11902 * libgomp.h (struct gomp_task): Add final_task field.
11903 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
11904 * team.c (gomp_team_start): Override new task's nthreads_var icv
11905 if list form OMP_NUM_THREADS has been used and it has value for
11906 the new nesting level.
11907
11908 * testsuite/libgomp.c/atomic-11.c: New test.
11909 * testsuite/libgomp.c/atomic-12.c: New test.
11910 * testsuite/libgomp.c/atomic-13.c: New test.
11911 * testsuite/libgomp.c/atomic-14.c: New test.
11912 * testsuite/libgomp.c/reduction-6.c: New test.
11913 * testsuite/libgomp.c/task-5.c: New test.
11914 * testsuite/libgomp.c++/atomic-2.C: New test.
11915 * testsuite/libgomp.c++/atomic-3.C: New test.
11916 * testsuite/libgomp.c++/atomic-4.C: New test.
11917 * testsuite/libgomp.c++/atomic-5.C: New test.
11918 * testsuite/libgomp.c++/atomic-6.C: New test.
11919 * testsuite/libgomp.c++/atomic-7.C: New test.
11920 * testsuite/libgomp.c++/atomic-8.C: New test.
11921 * testsuite/libgomp.c++/atomic-9.C: New test.
11922 * testsuite/libgomp.c++/task-8.C: New test.
11923 * testsuite/libgomp.c++/reduction-4.C: New test.
11924 * testsuite/libgomp.fortran/allocatable7.f90: New test.
11925 * testsuite/libgomp.fortran/allocatable8.f90: New test.
11926 * testsuite/libgomp.fortran/crayptr3.f90: New test.
11927 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
11928 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
11929 * testsuite/libgomp.fortran/pointer1.f90: New test.
11930 * testsuite/libgomp.fortran/pointer2.f90: New test.
11931 * testsuite/libgomp.fortran/task4.f90: New test.
11932
11933 2011-08-02 Tobias Burnus <burnus@net-b.de>
11934
11935 * libgomp.texi: Update OpenMP spec references to 3.1.
11936 (omp_in_final,OMP_PROC_BIND): New sections.
11937 (OMP_NUM_THREADS): Document that the value can be now a list.
11938 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
11939
11940 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
11941
11942 * config/linux/x86/futex.h: Check __x86_64__ instead of
11943 __LP64__.
11944
11945 2011-07-29 Jakub Jelinek <jakub@redhat.com>
11946
11947 PR middle-end/49897
11948 PR middle-end/49898
11949 * testsuite/libgomp.c/pr49897-1.c: New test.
11950 * testsuite/libgomp.c/pr49897-2.c: New test.
11951 * testsuite/libgomp.c/pr49898-1.c: New test.
11952 * testsuite/libgomp.c/pr49898-2.c: New test.
11953
11954 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
11955
11956 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
11957 for ia32 instead of ilp32.
11958
11959 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
11960 * testsuite/libgomp.c/atomic-6.c: Likewise.
11961
11962 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
11963
11964 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
11965 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
11966
11967 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11968
11969 PR libgomp/45351
11970 * config/osf/sem.h: New file.
11971 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
11972
11973 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11974
11975 PR target/49541
11976 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
11977 ldflags.
11978
11979 2011-07-15 Jakub Jelinek <jakub@redhat.com>
11980
11981 * config/linux/wait.h (do_spin): New inline, largely copied
11982 from do_wait, just don't do futex_wait here, instead return true if
11983 it should be done.
11984 (do_wait): Implement using do_spin.
11985 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
11986 to prototype.
11987 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
11988 __sync_bool_compare_and_swap, pass the oldval to
11989 gomp_mutex_lock_slow.
11990 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
11991 If all mutex contenders are just spinning and not sleeping, don't
11992 change state to 2 unnecessarily. Optimize the loop when state has
11993 already become 2 to use just one atomic operation per loop instead
11994 of two.
11995 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
11996 to prototype.
11997 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
11998 __sync_bool_compare_and_swap, pass the oldval to
11999 gomp_mutex_lock_slow.
12000
12001 2011-06-22 Jakub Jelinek <jakub@redhat.com>
12002
12003 PR libgomp/49490
12004 * iter.c (gomp_iter_static_next): For chunk size 0
12005 only use n ceil/ nthreads size for the first
12006 n % nthreads threads in the team instead of
12007 all threads except for the last few ones which
12008 get less work or none at all.
12009 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
12010 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
12011 chunk argument, set run_sched_modifier to 0 for static
12012 resp. 1 for other kinds. If chunk argument is 0
12013 and not static, set value to 1.
12014
12015 2011-05-19 Jakub Jelinek <jakub@redhat.com>
12016
12017 PR c++/49043
12018 * testsuite/libgomp.c++/pr49043.C: New test.
12019
12020 PR c++/48869
12021 * testsuite/libgomp.c++/pr48869.C: New test.
12022
12023 2011-05-06 Jakub Jelinek <jakub@redhat.com>
12024
12025 PR fortran/48894
12026 * fortran.c: Include limits.h.
12027 (TO_INT): Define.
12028 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
12029 *set.
12030 (omp_set_num_threads_8_, omp_set_schedule_8_,
12031 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
12032 omp_get_team_size_8_): Use TO_INT macro.
12033 * testsuite/libgomp.fortran/pr48894.f90: New test.
12034
12035 2011-04-13 Jakub Jelinek <jakub@redhat.com>
12036
12037 PR middle-end/48591
12038 * testsuite/libgomp.c/pr48591.c: New test.
12039
12040 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12041
12042 PR bootstrap/48135
12043 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
12044 * configure: Regenerate.
12045
12046 2011-02-27 Jakub Jelinek <jakub@redhat.com>
12047
12048 PR fortran/47886
12049 * testsuite/libgomp.fortran/task3.f90: New test.
12050
12051 2011-02-24 Tobias Burnus <burnus@net-b.de>
12052
12053 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
12054
12055 2011-02-23 Jakub Jelinek <jakub@redhat.com>
12056
12057 PR libgomp/47854
12058 * libgomp.texi (omp_get_wtime): Don't say time in the past
12059 must be Unix Epoch.
12060
12061 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12062
12063 PR libgomp/47804
12064 * testsuite/libgomp.fortran/fortran.exp: Check for both
12065 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
12066 but $blddir != "", still append ${blddir}/${lang_library_path}
12067 to ld_library_path.
12068
12069 2011-02-16 Tobias Burnus <burnus@net-b.de>
12070
12071 PR libgomp/47758
12072 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
12073 of libquadmath.a before adding its libpath to ldflags.
12074
12075 2011-02-14 Jakub Jelinek <jakub@redhat.com>
12076
12077 PR libgomp/47731
12078 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
12079 to FUTEX_WAIT futex syscall.
12080 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
12081
12082 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12083
12084 * configure: Regenerate.
12085
12086 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
12087
12088 PR libstdc++/36104
12089 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
12090
12091 2011-01-16 Gerald Pfeifer
12092
12093 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
12094
12095 2010-12-14 Jakub Jelinek <jakub@redhat.com>
12096
12097 PR fortran/46874
12098 * libgomp.fortran/allocatable6.f90: New test.
12099
12100 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12101
12102 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
12103 * configure: Regenerate.
12104
12105 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
12106
12107 PR target/40125
12108 PR lto/46695
12109 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
12110 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
12111 * aclocal.m4: Regenerate.
12112 * configure: Regenerate.
12113 * Makefile.in: Regenerate.
12114 * testsuite/Makefile.in: Regenerate.
12115
12116 2010-12-02 Jakub Jelinek <jakub@redhat.com>
12117
12118 PR fortran/46753
12119 * libgomp.fortran/pr46753.f90: New test.
12120
12121 PR libgomp/43706
12122 * env.c (initialize_env): Default to spin count 300000
12123 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
12124 is specified.
12125
12126 PR libgomp/45240
12127 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
12128 at the end if sync builtins aren't supported.
12129
12130 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12131
12132 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
12133
12134 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12135
12136 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
12137
12138 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
12139
12140 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
12141
12142 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12143 Tobias Burnus <burnus@net-b.de>
12144
12145 PR fortran/32049
12146 * configure.ac:
12147 * configure: Regenerate.
12148
12149 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
12150
12151 * config/linux/futex.h: New.
12152 * config/linux/arm/mutex.h: New.
12153 * configure.tgt (arm*-*-linux*): Add config path.
12154
12155 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
12156
12157 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
12158
12159 2010-09-23 Tobias Burnus <burnus@net-b.de>
12160
12161 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
12162 Change Fortran datatype to LOGICAL.
12163 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
12164 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
12165
12166 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12167
12168 * configure: Regenerate.
12169
12170 2010-07-26 Jakub Jelinek <jakub@redhat.com>
12171
12172 * libgomp.texi: Add function keyword to a couple of Fortran
12173 interfaces, use integer instead of int for Fortran.
12174
12175 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
12176
12177 * libgomp.texi: Fix spelling and pasto problems throughout.
12178 Adjust prototypes to match code.
12179
12180 2010-07-24 Tobias Burnus <burnus@net-b.de>
12181
12182 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
12183 silence -fwhole-file warning.
12184
12185 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12186
12187 * configure.tgt (*-*-solaris2.[56]*): Removed.
12188
12189 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12190
12191 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
12192 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
12193 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
12194 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
12195 targetting solaris2*.
12196 * configure: Regenerate.
12197 * config.h.in: Regenerate.
12198
12199 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
12200 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
12201 Add libgomp_version_dep.
12202 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
12203 versioning.
12204 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
12205 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
12206 * Makefile.in: Regenerate.
12207
12208 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
12209 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
12210 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
12211 to common block, protected by
12212 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
12213
12214 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
12215
12216 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
12217
12218 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
12219
12220 PR bootstrap/43170
12221 * configure: Regenerate.
12222
12223 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12224
12225 PR other/43620
12226 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
12227 * configure: Regenerate.
12228 * Makefile.in: Regenerate.
12229 * testsuite/Makefile.in: Regenerate.
12230
12231 2010-04-26 Jakub Jelinek <jakub@redhat.com>
12232
12233 PR c/43893
12234 * testsuite/libgomp.c/pr43893.c: New test.
12235 * testsuite/libgomp.c++/pr43893.C: New test.
12236
12237 2010-04-21 Jakub Jelinek <jakub@redhat.com>
12238
12239 PR middle-end/43570
12240 * testsuite/libgomp.fortran/vla8.f90: New test.
12241
12242 2010-04-20 Jakub Jelinek <jakub@redhat.com>
12243
12244 PR libgomp/43706
12245 * config/linux/affinity.c (gomp_init_affinity): Decrease
12246 gomp_available_cpus if affinity mask confines the process to fewer
12247 CPUs.
12248 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
12249 non-NULL, just return gomp_available_cpus.
12250
12251 PR libgomp/43569
12252 * sections.c (gomp_sections_init): Initialize ws->mode.
12253
12254 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12255
12256 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
12257 not unused bar variable.
12258 * configure: Regenerate.
12259
12260 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12261
12262 * Makefile.in: Regenerate.
12263 * aclocal.m4: Regenerate.
12264 * testsuite/Makefile.in: Regenerate.
12265
12266 2010-03-22 Jakub Jelinek <jakub@redhat.com>
12267
12268 PR libgomp/42942
12269 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
12270 (initialize_env): Adjust callers.
12271 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
12272 when the argument is 0.
12273
12274 * testsuite/libgomp.c/pr42942.c: New test.
12275
12276 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
12277
12278 PR middle-end/42644
12279 PR middle-end/42130
12280 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
12281 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
12282
12283 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12284
12285 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
12286 * testsuite/libgomp.c++/task-6.C: Likewise.
12287
12288 2010-01-28 Steve Ellcey <sje@cup.hp.com>
12289
12290 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
12291
12292 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
12293
12294 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
12295 * configure: Regenerate.
12296
12297 2010-01-26 Jakub Jelinek <jakub@redhat.com>
12298
12299 PR fortran/42866
12300 * testsuite/libgomp.fortran/allocatable5.f90: New test.
12301
12302 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
12303
12304 * configure.ac: Test for executability of GFORTRAN.
12305 * configure: Regenerate.
12306
12307 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12308
12309 * configure: Regenerate.
12310
12311 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
12312
12313 PR libgomp/42602
12314 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
12315
12316 2010-01-03 Richard Guenther <rguenther@suse.de>
12317
12318 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
12319
12320 2009-12-23 Sebastian Pop <sebpop@gmail.com>
12321
12322 * testsuite/libgomp.graphite/pr4118.c: New.
12323
12324 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
12325
12326 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
12327 for darwin, protect the test with require-effective-target tls_runtime.
12328 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
12329
12330 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
12331
12332 PR target/41605
12333 * testsuite/lib/libgomp.exp: Provide -B options to allow for
12334 link spec %s substitutions for static libraries.
12335
12336 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
12337
12338 PR testsuite/42135
12339 * libgomp.graphite/force-parallel-2.c: Reduce array size.
12340
12341 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12342
12343 * Makefile.in: Regenerate.
12344 * configure: Regenerate.
12345 * testsuite/Makefile.in: Regenerate.
12346
12347 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
12348
12349 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
12350 settings for LC_ALL and LANG.
12351
12352 2009-11-25 Jakub Jelinek <jakub@redhat.com>
12353
12354 PR fortran/42162
12355 * testsuite/libgomp.fortran/pr42162.f90: New test.
12356
12357 2009-11-13 Jakub Jelinek <jakub@redhat.com>
12358
12359 PR middle-end/42029
12360 * testsuite/libgomp.c/pr42029.c: New test.
12361
12362 2009-10-26 Jakub Jelinek <jakub@redhat.com>
12363
12364 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
12365 *s. Accept ld version without text in ()s.
12366 * configure: Regenerated.
12367
12368 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
12369
12370 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
12371
12372 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12373
12374 PR libgomp/41418
12375 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
12376 or a hyphen (happens with fortran language disabled).
12377 * configure: Regenerate.
12378
12379 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12380
12381 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
12382 use sed script portable to Solaris /bin/sed for extracting ld
12383 version.
12384 * configure: Regenerate.
12385
12386 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
12387
12388 * testsuite/libgomp.graphite/bounds.c: New test.
12389
12390 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12391
12392 * Makefile.am (libgomp_la_LINK): New.
12393 * Makefile.in: Regenerate.
12394
12395 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12396
12397 * configure.ac (AC_PREREQ): Bump to 2.64.
12398
12399 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12400
12401 * Makefile.am (install-html, install-pdf): Remove.
12402 * Makefile.in: Regenerate.
12403
12404 * Makefile.in: Regenerate.
12405 * aclocal.m4: Regenerate.
12406 * config.h.in: Regenerate.
12407 * configure: Regenerate.
12408 * testsuite/Makefile.in: Regenerate.
12409
12410 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12411
12412 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
12413 * Makefile.in: Regenerate.
12414
12415 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
12416
12417 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
12418 * Makefile.in: Regenerate.
12419
12420 2009-08-19 Tobias Burnus <burnus@net-b.de>
12421
12422 PR fortran/41102
12423 omp_lib.h.in: Fix -std=f95 errors.
12424
12425 2009-08-14 David Edelsohn <edelsohn@gnu.org>
12426
12427 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
12428 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
12429 * testsuite/libgomp.graphite/graphite.exp: New.
12430
12431 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
12432
12433 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
12434 only build.
12435
12436 2009-08-04 David Daney <ddaney@caviumnetworks.com>
12437
12438 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
12439 needed memory barrier semantics.
12440 * config/linux/mips/mutex.h: New file.
12441
12442 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12443
12444 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
12445
12446 2009-07-16 Joseph Myers <joseph@codesourcery.com>
12447
12448 * configure: Regenerate.
12449
12450 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
12451
12452 PR testsuite/40699
12453 PR testsuite/40707
12454 PR testsuite/40709
12455 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
12456 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
12457 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
12458
12459 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
12460
12461 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
12462 options when choosing a multilib.
12463
12464 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
12465
12466 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
12467 ld_library_path. Use add_path. Add just find_libgcc_s to
12468 ld_library_path, not every libgcc multilib directory.
12469 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
12470 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
12471 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
12472 Use add_path.
12473 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
12474
12475 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
12476
12477 * Makefile.am (LTLDFLAGS): Define.
12478 (LINK): Define.
12479 * Makefile.in: Regenerate.
12480
12481 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
12482
12483 PR fortran/39718
12484 * testsuite/libgomp.fortran/fortran.exp: Don't link with
12485 libgfortranbegin, check existence of libgfortran.a instead of
12486 libgfortranbegin.a.
12487
12488 2009-05-20 Jakub Jelinek <jakub@redhat.com>
12489
12490 PR libgomp/40174
12491 * team.c (gomp_thread_start): Destroy thr->release semaphore.
12492 (gomp_free_pool_helper): Likewise.
12493
12494 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
12495 Jakub Jelinek <jakub@redhat.com>
12496
12497 PR fortran/35423
12498 * testsuite/libgomp.fortran/workshare2.f90: New test.
12499
12500 2009-04-09 Nick Clifton <nickc@redhat.com>
12501
12502 * iter.c: Change copyright header to refer to version 3 of the
12503 GNU General Public License with version 3.1 of the GCC Runtime
12504 Library Exception and to point readers at the COPYING3 and
12505 COPYING3.RUNTIME files and the FSF's license web page.
12506 * alloc.c: Likewise.
12507 * barrier.c: Likewise.
12508 * config/bsd/proc.c: Likewise.
12509 * config/linux/affinity.c: Likewise.
12510 * config/linux/alpha/futex.h: Likewise.
12511 * config/linux/bar.c: Likewise.
12512 * config/linux/bar.h: Likewise.
12513 * config/linux/ia64/futex.h: Likewise.
12514 * config/linux/ia64/mutex.h: Likewise.
12515 * config/linux/lock.c: Likewise.
12516 * config/linux/mips/futex.h: Likewise.
12517 * config/linux/mutex.c: Likewise.
12518 * config/linux/mutex.h: Likewise.
12519 * config/linux/powerpc/futex.h: Likewise.
12520 * config/linux/proc.c: Likewise.
12521 * config/linux/ptrlock.c: Likewise.
12522 * config/linux/ptrlock.h: Likewise.
12523 * config/linux/s390/futex.h: Likewise.
12524 * config/linux/sem.c: Likewise.
12525 * config/linux/sem.h: Likewise.
12526 * config/linux/sparc/futex.h: Likewise.
12527 * config/linux/wait.h: Likewise.
12528 * config/linux/x86/futex.h: Likewise.
12529 * config/mingw32/proc.c: Likewise.
12530 * config/mingw32/time.c: Likewise.
12531 * config/posix/affinity.c: Likewise.
12532 * config/posix/bar.c: Likewise.
12533 * config/posix/bar.h: Likewise.
12534 * config/posix/lock.c: Likewise.
12535 * config/posix/mutex.h: Likewise.
12536 * config/posix/proc.c: Likewise.
12537 * config/posix/ptrlock.h: Likewise.
12538 * config/posix/sem.c: Likewise.
12539 * config/posix/sem.h: Likewise.
12540 * config/posix/time.c: Likewise.
12541 * config/posix95/lock.c: Likewise.
12542 * critical.c: Likewise.
12543 * env.c: Likewise.
12544 * error.c: Likewise.
12545 * fortran.c: Likewise.
12546 * iter_ull.c: Likewise.
12547 * libgomp.h: Likewise.
12548 * libgomp_f.h.in: Likewise.
12549 * libgomp_g.h: Likewise.
12550 * loop.c: Likewise.
12551 * loop_ull.c: Likewise.
12552 * omp.h.in: Likewise.
12553 * omp_lib.f90.in: Likewise.
12554 * omp_lib.h.in: Likewise.
12555 * ordered.c: Likewise.
12556 * parallel.c: Likewise.
12557 * sections.c: Likewise.
12558 * single.c: Likewise.
12559 * task.c: Likewise.
12560 * team.c: Likewise.
12561 * work.c: Likewise.
12562
12563 2009-04-09 Jakub Jelinek <jakub@redhat.com>
12564
12565 * testsuite/config/default.exp: Change copyright header to refer to
12566 version 3 of the GNU General Public License and to point readers
12567 at the COPYING3 file and the FSF's license web page.
12568
12569 2009-04-08 Jakub Jelinek <jakub@redhat.com>
12570
12571 PR middle-end/39573
12572 * libgomp.c++/pr39573.C: New test.
12573
12574 2009-04-01 Jakub Jelinek <jakub@redhat.com>
12575
12576 PR other/39591
12577 * testsuite/libgomp.c/pr39591-1.c: New test.
12578 * testsuite/libgomp.c/pr39591-2.c: New test.
12579 * testsuite/libgomp.c/pr39591-3.c: New test.
12580
12581 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
12582
12583 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
12584 * testsuite/libgomp.c/atomic-6.c: Ditto.
12585
12586 2009-03-23 Jakub Jelinek <jakub@redhat.com>
12587
12588 PR c/39495
12589 * testsuite/libgomp.c/loop-12.c: New test.
12590 * testsuite/libgomp.c/loop-11.c: New test.
12591 * testsuite/libgomp.c++/loop-11.C: New test.
12592 * testsuite/libgomp.c++/loop-12.C: New test.
12593 * testsuite/libgomp.c++/for-8.C: New test.
12594
12595 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12596
12597 * configure: Regenerate.
12598
12599 2009-02-11 Jakub Jelinek <jakub@redhat.com>
12600
12601 PR middle-end/39154
12602 * testsuite/libgomp.c/pr39154.c: New test.
12603
12604 2009-01-30 Ian Lance Taylor <iant@google.com>
12605
12606 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
12607 libgomp_ld_is_gold. Get gold version number.
12608 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
12609 * configure: Rebuild.
12610
12611 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
12612
12613 * testsuite/lib/libgomp.exp: Add -B option for targets that
12614 use libgfortran.a%s in their specs.
12615
12616 2009-01-07 Jakub Jelinek <jakub@redhat.com>
12617
12618 PR libgomp/38086
12619 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
12620 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
12621 HAVE_AS_SYMVER_DIRECTIVE is not defined.
12622 * configure: Regenerated.
12623 * config.h.in: Likewise.
12624
12625 2008-12-28 Jakub Jelinek <jakub@redhat.com>
12626
12627 PR c++/38650
12628 * testsuite/libgomp.c/pr38650.c: New test.
12629 * testsuite/libgomp.c++/pr38650.C: New test.
12630
12631 2008-12-27 Jakub Jelinek <jakub@redhat.com>
12632
12633 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
12634
12635 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
12636
12637 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
12638
12639 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12640
12641 * configure: Regenerate.
12642
12643 2008-12-08 Jakub Jelinek <jakub@redhat.com>
12644
12645 PR middle-end/36802
12646 * testsuite/libgomp.c/pr36802-1.c: New test.
12647 * testsuite/libgomp.c/pr36802-2.c: New test.
12648 * testsuite/libgomp.c/pr36802-3.c: New test.
12649
12650 2008-12-01 Janis Johnson <janis187@us.ibm.com>
12651
12652 PR libgomp/38270
12653 * config/linux/powerpc/mutex.h: New.
12654
12655 2008-12-01 Jakub Jelinek <jakub@redhat.com>
12656
12657 PR c++/38257
12658 * testsuite/libgomp.c++/for-7.C: New test.
12659
12660 PR c++/38348
12661 * testsuite/libgomp.c++/for-6.C: New test.
12662
12663 2008-11-26 Janis Johnson <janis187@us.ibm.com>
12664
12665 PR testsuite/28870
12666 * testsuite/lib/libgomp.exp: Include new timeout library files.
12667 (libgomp_target_compile): Set timeout value from new proc.
12668
12669 2008-11-13 Steve Ellcey <sje@cup.hp.com>
12670
12671 PR libgomp/37938
12672 * config/linux/ia64/mutex.h: New.
12673
12674 2008-11-04 Tobias Burnus <burnus@net-b.de>
12675
12676 PR libgomp/37935
12677 * libgomp.texi (Runtime library routines, environment variables):
12678 Update for OpenMP version 3.0.
12679
12680 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
12681 Steve Ellcey <sje@cup.hp.com>
12682
12683 * configure: Regenerate for new libtool.
12684 * Makefile.in: Ditto.
12685 * testsuite/Makefile.in: Ditto.
12686
12687 2008-09-19 Jakub Jelinek <jakub@redhat.com>
12688 Andreas Tobler <a.tobler@schweiz.org>
12689
12690 * config/bsd/proc.c: New file.
12691 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
12692 * configure.ac: Check for header <sys/sysctl.h>
12693 * configure: Regenerate.
12694 * config.h.in: Likewise.
12695
12696 2008-09-05 Janis Johnson <janis187@us.ibm.com>
12697
12698 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
12699
12700 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
12701
12702 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
12703 * Makefile.in: Regenerated.
12704 * testsuite/Makefile.in: Regenerated.
12705
12706 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
12707
12708 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
12709 depend on blddir if blddir exists.
12710 (libgomp_target_compile): Likewise.
12711 * testsuite/libgomp.c++/c++.exp: Likewise.
12712 * testsuite/libgomp.fortran/fortran.exp: Likewise.
12713
12714 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12715
12716 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
12717 Do not list GPL as Invariant Section.
12718
12719 2008-07-28 Ilie Garbacea <ilie@mips.com>
12720 Chao-ying Fu <fu@mips.com>
12721
12722 * configure.tgt: Enable futex for MIPS.
12723 * config/linux/mips/futex.h: New file.
12724
12725 2008-07-16 Jakub Jelinek <jakub@redhat.com>
12726
12727 * team.c (gomp_team_end): Free team immediately if it has
12728 just one thread.
12729
12730 2008-07-08 David Edelsohn <edelsohn@gnu.org>
12731
12732 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
12733 * testsuite/libgomp.fortran/fortran.exp: Same.
12734 * testsuite/libgomp.c/c.exp: Same.
12735 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
12736 directory to library path first.
12737
12738 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
12739
12740 * env.c (parse_stacksize): Add cast to avoid warning.
12741 (parse_spincount): Likewise.
12742
12743 2008-06-27 Jakub Jelinek <jakub@redhat.com>
12744
12745 * testsuite/libgomp.c/loop-10.c: New test.
12746 * libgomp.c/loop-3.c (main): Add lastprivate clause.
12747 * libgomp.c++/loop-6.C (main): Likewise.
12748
12749 PR debug/36617
12750 * testsuite/libgomp.c/debug-1.c: New test.
12751
12752 2008-06-19 Jakub Jelinek <jakub@redhat.com>
12753
12754 * testsuite/libgomp.c/nqueens-1.c: New test.
12755
12756 PR c++/36523
12757 * testsuite/libgomp.c++/task-7.C: New function.
12758
12759 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12760
12761 * configure: Regenerate.
12762
12763 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12764
12765 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
12766 mutex when HAVE_SYNC_BUILTINS isn't defined.
12767
12768 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12769
12770 * libgomp.texi (omp_test_lock): Fix typo.
12771
12772 2008-06-12 Tobias Burnus <burnus@net-b.de>
12773
12774 * omp_lib.f90.in: Add "implicit none".
12775
12776 2008-06-12 Jakub Jelinek <jakub@redhat.com>
12777
12778 PR middle-end/36506
12779 * testsuite/libgomp.c/reduction-5.c: New test.
12780
12781 2008-06-11 Jakub Jelinek <jakub@redhat.com>
12782
12783 * libgomp.h (struct gomp_task): Add in_tied_task field.
12784 * task.c (gomp_init_task): Initialize it.
12785 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
12786 unconditionally. Don't call gomp_team_barrier_wake if
12787 current task is implicit or if(0) from implicit and number of
12788 running tasks is equal to nthreads - 1.
12789
12790 PR libgomp/36471
12791 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
12792 omp_get_team_size_8): Fix pastos.
12793
12794 PR libgomp/36469
12795 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
12796 * configure: Regenerated.
12797 * config.h.in: Regenerated.
12798 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
12799 defined.
12800
12801 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
12802
12803 PR bootstrap/36452
12804 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
12805 (GOMP_loop_ull_dynamic_start): Likewise.
12806 (GOMP_loop_ull_guided_start): Likewise.
12807 (GOMP_loop_ull_ordered_static_start): Likewise.
12808 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
12809 (GOMP_loop_ull_ordered_guided_start): Likewise.
12810
12811 2008-06-06 Jakub Jelinek <jakub@redhat.com>
12812 Richard Henderson <rth@redhat.com>
12813 Ulrich Drepper <drepper@redhat.com>
12814 Jakob Blomer <jakob.blomer@ira.uka.de>
12815
12816 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
12817 Substitute also OMP_*LOCK_25*.
12818 * configure: Regenerated.
12819 * config.h.in: Regenerated.
12820 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
12821 ptrlock.c and task.c.
12822 * Makefile.in: Regenerated.
12823 * testsuite/Makefile.in: Regenerated.
12824 * task.c: New file.
12825 * loop_ull.c: New file.
12826 * iter_ull.c: New file.
12827 * libgomp.h: Include ptrlock.h.
12828 (enum gomp_task_kind): New type.
12829 (struct gomp_team): Add task_lock, task_queue, task_count,
12830 task_running_count, single_count fields. Add
12831 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
12832 Remove work_share_lock, generation_mask,
12833 oldest_live_gen, num_live_gen and init_work_shares fields, add
12834 work work_share_list_alloc, work_share_list_free and work_share_chunk
12835 fields. Change work_shares from pointer to pointers into an array.
12836 Change ordered_release field into gomp_sem_t ** from flexible array
12837 member. Add implicit_task and initial_work_shares fields.
12838 Move close to the end of the struct.
12839 (struct gomp_team_state): Add single_count, last_work_share,
12840 active_level and level fields, remove work_share_generation.
12841 (gomp_barrier_handle_tasks): New prototype.
12842 (gomp_finish_task): New inline function.
12843 (struct gomp_work_share): Move chunk_size, end, incr into
12844 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
12845 next_ll fields. Reshuffle fields. Add next_alloc,
12846 next_ws, next_free and inline_ordered_team_ids fields, change
12847 ordered_team_ids into pointer from flexible array member.
12848 Add mode field. Put lock and next into a different cache line
12849 from most of the write-once fields.
12850 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
12851 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
12852 gomp_iter_ull_guided_next): New prototypes.
12853 (gomp_new_icv): New prototype.
12854 (struct gomp_thread): Add thread_pool and task fields.
12855 (struct gomp_thread_pool): New type.
12856 (gomp_new_team): New prototype.
12857 (gomp_team_start): Change type of last argument.
12858 (gomp_new_work_share): Removed.
12859 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
12860 (gomp_work_share_init_done): New static inline.
12861 (gomp_throttled_spin_count_var, gomp_available_cpus,
12862 gomp_managed_threads): New extern decls.
12863 (gomp_init_task): New prototype.
12864 (gomp_spin_count_var): New extern var decl.
12865 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
12866 or no alias support, or if not PIC.
12867 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
12868 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
12869 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
12870 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
12871 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
12872 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
12873 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
12874 gomp_test_nest_lock_25): New prototypes.
12875 (omp_lock_symver, strong_alias): Define.
12876 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
12877 decls.
12878 (gomp_end_task): New.
12879 (struct gomp_task_icv, gomp_global_icv): New.
12880 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
12881 (struct gomp_task): New.
12882 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
12883 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
12884 (gomp_icv): New.
12885 (gomp_schedule_type): Reorder enum to match
12886 omp_sched_t.
12887 * team.c (struct gomp_thread_start_data): Add thread_pool and task
12888 fields.
12889 (gomp_thread_start): Add gomp_team_barrier_wait call.
12890 For non-nested case remove clearing of docked thread thr fields.
12891 Use pool fields instead of global gomp_* variables. Use
12892 gomp_barrier_wait_last when needed. Initialize ts.active_level.
12893 Create tasks for each member thread.
12894 (free_team): Only destroy team barrier, task_lock here and free it.
12895 (gomp_free_thread): Free last_team if non-NULL.
12896 (gomp_team_end): Call gomp_team_barrier_wait instead of
12897 gomp_barrier_wait. For nested case call one extra
12898 gomp_barrier_wait. Move here some destruction from free_team.
12899 Call free_team on pool->last_team if any, rather than freeing
12900 current team. Destroy work_share_list_free_lock ifndef
12901 HAVE_SYNC_BUILTINS.
12902 (gomp_new_icv): New function.
12903 (gomp_threads, gomp_threads_size, gomp_threads_used,
12904 gomp_threads_dock): Removed.
12905 (gomp_thread_destructor): New variable.
12906 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
12907 functions.
12908 (gomp_team_start): Create new pool if current thread doesn't have
12909 one. Use pool fields instead of global gomp_* variables.
12910 Initialize thread_pool field for new threads. Clear single_count.
12911 Change last argument from ws to team, don't create
12912 new team, set ts.work_share to &team->work_shares[0] and clear
12913 ts.last_work_share. Don't clear ts.work_share_generation.
12914 If number of threads changed, adjust atomically gomp_managed_threads.
12915 Use gomp_init_task instead of gomp_new_task,
12916 set thr->task to the corresponding implicit_task array entry.
12917 Create tasks for each member thread. Initialize ts.level.
12918 (initialize_team): Call pthread_key_create on
12919 gomp_thread_destructor.
12920 (team_destructor): New function.
12921 (new_team): Removed.
12922 (gomp_new_team): New function.
12923 (free_team): Free gomp_work_share blocks chained through next_alloc,
12924 instead of freeing work_shares and destroying work_share_lock.
12925 (gomp_team_end): Call gomp_fini_work_share. If number of threads
12926 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
12927 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
12928 of gomp_barrier_wait.
12929 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
12930 instead of gomp_barrier_wait. Call gomp_work_share_init_done
12931 if gomp_work_share_start returned true. Don't unlock ws->lock.
12932 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
12933 of gomp_barrier_wait.
12934 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
12935 gomp_work_share_init_done if gomp_work_share_start returned true.
12936 Don't unlock ws->lock.
12937 * work.c: Include stddef.h.
12938 (free_work_share): Use work_share_list_free_lock instead
12939 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
12940 Call gomp_fini_work_share and then either free ws if orphaned, or
12941 put it into work_share_list_free list of the current team.
12942 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
12943 functions.
12944 (gomp_work_share_start, gomp_work_share_end,
12945 gomp_work_share_end_nowait): Rewritten.
12946 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
12947 (openmp_version): Set to 200805.
12948 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
12949 omp_sched_guided, omp_sched_auto): New parameters.
12950 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
12951 omp_set_max_active_levels, omp_get_max_active_levels,
12952 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
12953 omp_get_active_level): New interfaces.
12954 * omp_lib.h.in (openmp_version): Set to 200805.
12955 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
12956 omp_sched_guided, omp_sched_auto): New parameters.
12957 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
12958 omp_set_max_active_levels, omp_get_max_active_levels,
12959 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
12960 omp_get_active_level): New externals.
12961 * loop.c: Include limits.h.
12962 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
12963 GFS_AUTO.
12964 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
12965 Likewise. Use gomp_icv.
12966 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
12967 ts.static_trip here.
12968 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
12969 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
12970 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
12971 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
12972 don't unlock ws->lock, otherwise lock it.
12973 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
12974 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
12975 (gomp_parallel_loop_start): Call gomp_new_team instead of
12976 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
12977 Adjust gomp_team_start caller. Pass 0 as second argument to
12978 gomp_resolve_num_threads.
12979 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
12980 If adding ws->chunk_size nthreads + 1 times after end won't
12981 overflow, set ws->mode to 1.
12982 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
12983 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
12984 GOMP_loop_ull_ordered_static_start,
12985 GOMP_loop_ull_ordered_dynamic_start,
12986 GOMP_loop_ull_ordered_guided_start,
12987 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
12988 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
12989 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
12990 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
12991 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
12992 prototypes.
12993 * libgomp.map: Export lock routines also @@OMP_2.0.
12994 (GOMP_loop_ordered_dynamic_first,
12995 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
12996 GOMP_loop_ordered_static_first): Remove.
12997 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
12998 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
12999 GOMP_loop_ull_ordered_dynamic_next,
13000 GOMP_loop_ull_ordered_dynamic_start,
13001 GOMP_loop_ull_ordered_guided_next,
13002 GOMP_loop_ull_ordered_guided_start,
13003 GOMP_loop_ull_ordered_runtime_next,
13004 GOMP_loop_ull_ordered_runtime_start,
13005 GOMP_loop_ull_ordered_static_next,
13006 GOMP_loop_ull_ordered_static_start,
13007 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
13008 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
13009 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
13010 (omp_set_schedule, omp_get_schedule,
13011 omp_get_thread_limit, omp_set_max_active_levels,
13012 omp_get_max_active_levels, omp_get_level,
13013 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
13014 omp_set_schedule_, omp_set_schedule_8_,
13015 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
13016 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
13017 omp_get_max_active_levels_, omp_get_level_,
13018 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
13019 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
13020 New exports @@OMP_3.0.
13021 * omp.h.in (omp_sched_t): New type.
13022 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
13023 omp_set_max_active_levels, omp_get_max_active_levels,
13024 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
13025 omp_get_active_level): New prototypes.
13026 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
13027 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
13028 gomp_thread_limit_var, gomp_remaining_threads_count,
13029 gomp_remaining_threads_lock): New variables.
13030 (parse_spincount): New function.
13031 (initialize_env): Call gomp_init_num_threads unconditionally.
13032 Initialize gomp_available_cpus. Call parse_spincount,
13033 initialize gomp_{,throttled_}spin_count_var
13034 depending on presence and value of OMP_WAIT_POLICY and
13035 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
13036 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
13037 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
13038 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
13039 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
13040 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
13041 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
13042 (gomp_global_icv): New.
13043 (parse_schedule): Use it. Parse "auto".
13044 (omp_set_num_threads): Use gomp_icv.
13045 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
13046 Likewise.
13047 (omp_get_max_threads): Move from parallel.c.
13048 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
13049 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
13050 add ialias.
13051 (parse_stacksize, parse_wait_policy): New functions.
13052 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
13053 both wrappers for compatibility and new locks.
13054 (omp_set_schedule, omp_get_schedule,
13055 omp_get_thread_limit, omp_set_max_active_levels,
13056 omp_get_max_active_levels, omp_get_level,
13057 omp_get_ancestor_thread_num, omp_get_team_size,
13058 omp_get_active_level): New ialias_redirect.
13059 (omp_set_schedule_, omp_set_schedule_8_,
13060 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
13061 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
13062 omp_get_max_active_levels_, omp_get_level_,
13063 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
13064 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
13065 New functions.
13066 * parallel.c: Include limits.h.
13067 (gomp_resolve_num_threads): Add count argument. Rewritten.
13068 (GOMP_parallel_start): Call gomp_new_team and pass that as last
13069 argument to gomp_team_start. Pass 0 as second argument to
13070 gomp_resolve_num_threads.
13071 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
13072 if gomp_thread_limit_var != ULONG_MAX.
13073 (omp_in_parallel): Implement using ts.active_level.
13074 (omp_get_max_threads): Move to env.c.
13075 (omp_get_level, omp_get_ancestor_thread_num,
13076 omp_get_team_size, omp_get_active_level): New functions,
13077 add ialias.
13078 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
13079 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
13080 gomp_iter_dynamic_next instead of the _locked variant and don't take
13081 lock around it, otherwise acquire it before calling
13082 gomp_iter_dynamic_next_locked.
13083 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
13084 gomp_iter_dynamic_next instead of the _locked variant and don't take
13085 lock around it.
13086 (GOMP_parallel_sections_start): Call gomp_new_team instead of
13087 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
13088 Adjust gomp_team_start caller. Pass count as second argument to
13089 gomp_resolve_num_threads, don't adjust num_threads after the call.
13090 Use gomp_icv.
13091 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
13092 ws->chunk_size by incr.
13093 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
13094 code.
13095 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
13096 types.
13097 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
13098 (omp_check_defines): Check even the compat defines.
13099 * config/linux/ptrlock.c: New file.
13100 * config/linux/ptrlock.h: New file.
13101 * config/linux/wait.h: New file.
13102 * config/posix/ptrlock.c: New file.
13103 * config/posix/ptrlock.h: New file.
13104 * config/linux/bar.h (gomp_team_barrier_wait,
13105 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
13106 (gomp_team_barrier_set_task_pending,
13107 gomp_team_barrier_clear_task_pending,
13108 gomp_team_barrier_set_waiting_for_tasks,
13109 gomp_team_barrier_waiting_for_tasks,
13110 gomp_team_barrier_done): New inlines.
13111 (gomp_barrier_t): Rewritten.
13112 (gomp_barrier_state_t): New typedef.
13113 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
13114 gomp_barrier_wait_start): Rewritten.
13115 (gomp_barrier_wait_end): Change second argument to
13116 gomp_barrier_state_t.
13117 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
13118 inlines.
13119 * config/linux/bar.c: Include wait.h instead of libgomp.h and
13120 futex.h.
13121 (gomp_barrier_wait_end): Rewritten.
13122 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
13123 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
13124 * config/posix/bar.h (gomp_barrier_t): Add generation field.
13125 (gomp_barrier_state_t): New typedef.
13126 (gomp_team_barrier_wait,
13127 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
13128 (gomp_barrier_wait_start): Or all but low 2 bits from generation
13129 into the return value. Return gomp_barrier_state_t.
13130 (gomp_team_barrier_set_task_pending,
13131 gomp_team_barrier_clear_task_pending,
13132 gomp_team_barrier_set_waiting_for_tasks,
13133 gomp_team_barrier_waiting_for_tasks,
13134 gomp_team_barrier_done): New inlines.
13135 (gomp_barrier_wait_end): Change second argument to
13136 gomp_barrier_state_t.
13137 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
13138 inlines.
13139 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
13140 (gomp_barrier_wait_end): Change second argument to
13141 gomp_barrier_state_t.
13142 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
13143 gomp_team_barrier_wake): New functions.
13144 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
13145 futex.h.
13146 (gomp_futex_wake, gomp_futex_wait): New variables.
13147 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
13148 * config/linux/lock.c: Rewrite to make locks task owned,
13149 for backwards compatibility provide the old entrypoints
13150 if symbol versioning. Include wait.h instead of libgomp.h and
13151 futex.h.
13152 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
13153 * config/posix95/lock.c: Rewrite to make locks task owned,
13154 for backwards compatibility provide the old entrypoints
13155 if symbol versioning.
13156 * config/posix/lock.c: Rewrite to make locks task owned,
13157 for backwards compatibility provide the old entrypoints
13158 if symbol versioning.
13159 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
13160 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
13161 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
13162 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
13163 (sys_futex0): Return error code.
13164 (futex_wake, futex_wait): If ENOSYS was returned, clear
13165 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
13166 (cpu_relax, atomic_write_barrier): New static inlines.
13167 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
13168 (futex_wake, futex_wait): If ENOSYS was returned, clear
13169 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
13170 (cpu_relax, atomic_write_barrier): New static inlines.
13171 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
13172 (sys_futex0): Return error code.
13173 (futex_wake, futex_wait): If ENOSYS was returned, clear
13174 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
13175 (cpu_relax, atomic_write_barrier): New static inlines.
13176 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
13177 (sys_futex0): Return error code.
13178 (futex_wake, futex_wait): If ENOSYS was returned, clear
13179 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
13180 (cpu_relax, atomic_write_barrier): New static inlines.
13181 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
13182 (sys_futex0): Return error code.
13183 (futex_wake, futex_wait): If ENOSYS was returned, clear
13184 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
13185 (cpu_relax, atomic_write_barrier): New static inlines.
13186 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
13187 (sys_futex0): Return error code.
13188 (futex_wake, futex_wait): If ENOSYS was returned, clear
13189 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
13190 (cpu_relax, atomic_write_barrier): New static inlines.
13191 * config/linux/sem.c: Include wait.h instead of libgomp.h and
13192 futex.h.
13193 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
13194 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
13195 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
13196 types.
13197 (omp_nest_lock_t): Change owner into void *, add lock field.
13198 * config/posix95/omp-lock.h: Include semaphore.h.
13199 (omp_lock_25_t, omp_nest_lock_25_t): New types.
13200 (omp_lock_t): Use sem_t instead of mutex if semaphores
13201 aren't broken.
13202 (omp_nest_lock_t): Likewise. Change owner to void *.
13203 * config/posix/omp-lock.h: Include semaphore.h.
13204 (omp_lock_25_t, omp_nest_lock_25_t): New types.
13205 (omp_lock_t): Use sem_t instead of mutex if semaphores
13206 aren't broken.
13207 (omp_nest_lock_t): Likewise. Add owner field.
13208
13209 2008-06-06 Jakub Jelinek <jakub@redhat.com>
13210
13211 * testsuite/libgomp.c/collapse-1.c: New test.
13212 * testsuite/libgomp.c/collapse-2.c: New test.
13213 * testsuite/libgomp.c/collapse-3.c: New test.
13214 * testsuite/libgomp.c/icv-1.c: New test.
13215 * testsuite/libgomp.c/icv-2.c: New test.
13216 * testsuite/libgomp.c/lib-2.c: New test.
13217 * testsuite/libgomp.c/lock-1.c: New test.
13218 * testsuite/libgomp.c/lock-2.c: New test.
13219 * testsuite/libgomp.c/lock-3.c: New test.
13220 * testsuite/libgomp.c/loop-4.c: New test.
13221 * testsuite/libgomp.c/loop-5.c: New test.
13222 * testsuite/libgomp.c/loop-6.c: New test.
13223 * testsuite/libgomp.c/loop-7.c: New test.
13224 * testsuite/libgomp.c/loop-8.c: New test.
13225 * testsuite/libgomp.c/loop-9.c: New test.
13226 * testsuite/libgomp.c/nested-3.c: New test.
13227 * testsuite/libgomp.c/nestedfn-6.c: New test.
13228 * testsuite/libgomp.c/sort-1.c: New test.
13229 * testsuite/libgomp.c/task-1.c: New test.
13230 * testsuite/libgomp.c/task-2.c: New test.
13231 * testsuite/libgomp.c/task-3.c: New test.
13232 * testsuite/libgomp.c/task-4.c: New test.
13233 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
13234 to C++ testsuite default compiler options.
13235 * testsuite/libgomp.c++/collapse-1.C: New test.
13236 * testsuite/libgomp.c++/collapse-2.C: New test.
13237 * testsuite/libgomp.c++/ctor-10.C: New test.
13238 * testsuite/libgomp.c++/for-1.C: New test.
13239 * testsuite/libgomp.c++/for-2.C: New test.
13240 * testsuite/libgomp.c++/for-3.C: New test.
13241 * testsuite/libgomp.c++/for-4.C: New test.
13242 * testsuite/libgomp.c++/for-5.C: New test.
13243 * testsuite/libgomp.c++/loop-8.C: New test.
13244 * testsuite/libgomp.c++/loop-9.C: New test.
13245 * testsuite/libgomp.c++/loop-10.C: New test.
13246 * testsuite/libgomp.c++/task-1.C: New test.
13247 * testsuite/libgomp.c++/task-2.C: New test.
13248 * testsuite/libgomp.c++/task-3.C: New test.
13249 * testsuite/libgomp.c++/task-4.C: New test.
13250 * testsuite/libgomp.c++/task-5.C: New test.
13251 * testsuite/libgomp.c++/task-6.C: New test.
13252 * testsuite/libgomp.fortran/allocatable1.f90: New test.
13253 * testsuite/libgomp.fortran/allocatable2.f90: New test.
13254 * testsuite/libgomp.fortran/allocatable3.f90: New test.
13255 * testsuite/libgomp.fortran/allocatable4.f90: New test.
13256 * testsuite/libgomp.fortran/collapse1.f90: New test.
13257 * testsuite/libgomp.fortran/collapse2.f90: New test.
13258 * testsuite/libgomp.fortran/collapse3.f90: New test.
13259 * testsuite/libgomp.fortran/collapse4.f90: New test.
13260 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
13261 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
13262 * testsuite/libgomp.fortran/lib4.f90: New test.
13263 * testsuite/libgomp.fortran/lock-1.f90: New test.
13264 * testsuite/libgomp.fortran/lock-2.f90: New test.
13265 * testsuite/libgomp.fortran/nested1.f90: New test.
13266 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
13267 * testsuite/libgomp.fortran/strassen.f90: New test.
13268 * testsuite/libgomp.fortran/tabs1.f90: New test.
13269 * testsuite/libgomp.fortran/tabs2.f: New test.
13270 * testsuite/libgomp.fortran/task1.f90: New test.
13271 * testsuite/libgomp.fortran/task2.f90: New test.
13272 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
13273 * testsuite/libgomp.fortran/vla5.f90: Likewise.
13274 * testsuite/libgomp.c/pr26943-2.c: Likewise.
13275 * testsuite/libgomp.c/pr26943-3.c: Likewise.
13276 * testsuite/libgomp.c/pr26943-4.c: Likewise.
13277
13278 2008-05-23 Jakub Jelinek <jakub@redhat.com>
13279
13280 PR c++/36308
13281 * testsuite/libgomp.c++/ctor-11.C: New test.
13282 * testsuite/libgomp.c++/ctor-12.C: New test.
13283
13284 2008-05-15 Janis Johnson <janis187@us.ibm.com>
13285
13286 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
13287
13288 2008-05-07 Jakub Jelinek <jakub@redhat.com>
13289
13290 PR middle-end/36106
13291 * testsuite/libgomp.c/atomic-5.c: New test.
13292 * testsuite/libgomp.c/atomic-6.c: New test.
13293 * testsuite/libgomp.c/autopar-1.c: New test.
13294
13295 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13296
13297 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
13298 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
13299 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
13300 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
13301 * configure: Regenerate.
13302 * Makefile.in, testsuite/Makefile.in: Likewise.
13303
13304 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
13305
13306 PR bootstrap/35457
13307 * aclocal.m4: Regenerate.
13308 * configure: Regenerate.
13309
13310 2008-03-18 Jakub Jelinek <jakub@redhat.com>
13311
13312 PR middle-end/35611
13313 * testsuite/libgomp.c/atomic-4.c: New test.
13314
13315 PR libgomp/35625
13316 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
13317 (gomp_iter_guided_next): Likewise.
13318 * testsuite/libgomp.c/pr35625.c: New test.
13319
13320 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13321
13322 * aclocal.m4: Regenerate.
13323 * configure: Likewise.
13324 * Makefile.in: Likewise.
13325 * testsuite/Makefile.in: Likewise.
13326
13327 2008-03-13 Jakub Jelinek <jakub@redhat.com>
13328
13329 PR middle-end/35185
13330 * testsuite/libgomp.c++/pr35185.C: New test.
13331
13332 2008-03-12 Jakub Jelinek <jakub@redhat.com>
13333
13334 PR middle-end/35549
13335 * testsuite/libgomp.c/pr35549.c: New test.
13336
13337 2008-03-06 Jakub Jelinek <jakub@redhat.com>
13338
13339 * testsuite/libgomp.c/atomic-3.c: New test.
13340
13341 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13342
13343 PR fortran/33197
13344 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
13345 .F08 file suffixes.
13346
13347 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
13348
13349 PR libgomp/33131
13350 * configure.ac: Add ACX_HEADER_STRING.
13351 * env.c: Include strings.h.
13352 * aclocal.m4: Regenerate.
13353 * config.h.in: Regenerate.
13354 * configure: Regenerate.
13355 * Makefile.in: Regenerate.
13356 * testsuite/Makefile.in: Regenerate.
13357
13358 2008-02-15 Jakub Jelinek <jakub@redhat.com>
13359
13360 PR middle-end/35196
13361 * testsuite/libgomp.c/pr35196.c: New test.
13362
13363 PR middle-end/35130
13364 * testsuite/libgomp.fortran/pr35130.f90: New test.
13365 * testsuite/libgomp.c/pr35130.c: New test.
13366
13367 2008-01-25 Jakub Jelinek <jakub@redhat.com>
13368
13369 PR middle-end/33880
13370 * testsuite/libgomp.c/pr33880.c: New test.
13371 * testsuite/libgomp.fortran/pr33880.f90: New test.
13372
13373 2008-01-24 David Edelsohn <edelsohn@gnu.org>
13374
13375 * configure: Regenerate.
13376
13377 2008-01-08 Jakub Jelinek <jakub@redhat.com>
13378
13379 * configure.ac: Move futex checking into ../config/futex.m4.
13380 * configure: Rebuilt.
13381 * aclocal.m4: Rebuilt.
13382 * Makefile.in: Rebuilt.
13383
13384 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
13385 2007-10-15 ../config/tls.m4 change.
13386
13387 2007-12-19 Jakub Jelinek <jakub@redhat.com>
13388
13389 PR c++/34513
13390 * testsuite/libgomp.c/pr34513.c: New test.
13391 * testsuite/libgomp.c++/pr34513.C: New test.
13392
13393 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
13394
13395 PR target/32765
13396 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
13397
13398 2007-12-04 Jakub Jelinek <jakub@redhat.com>
13399
13400 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
13401
13402 2007-12-03 Jakub Jelinek <jakub@redhat.com>
13403
13404 * testsuite/libgomp.c/private-1.c: New test.
13405
13406 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
13407 Paolo Bonzini <bonzini@gnu.org>
13408
13409 * Makefile.am: Use space as vpath separator. Use 'vpath %'
13410 instead of 'VPATH ='.
13411 * Makefile.in: Regenerate.
13412
13413 2007-11-23 Matthias Klose <doko@ubuntu.com>
13414
13415 * configure.ac: Adjust makeinfo version check.
13416 * configure: Regenerate.
13417
13418 2007-11-10 Jakub Jelinek <jakub@redhat.com>
13419
13420 PR fortran/34020
13421 * testsuite/libgomp.fortran/pr34020.f90: New test.
13422
13423 2007-11-06 Jakub Jelinek <jakub@redhat.com>
13424
13425 PR c++/33894
13426 * testsuite/libgomp.c++/atomic-1.C: New test.
13427
13428 2007-10-25 Jakub Jelinek <jakub@redhat.com>
13429
13430 PR libgomp/33275
13431 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
13432 Make x and y integers rather than (implicit) reals. Add private (j)
13433 clause to the last omp parallel.
13434
13435 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
13436
13437 * configure: Regenerate following changes to ../config/tls.m4.
13438
13439 2007-09-28 Jakub Jelinek <jakub@redhat.com>
13440
13441 * testsuite/libgomp.fortran/stack.f90: New test.
13442
13443 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
13444
13445 * config/mingw32/proc.c: New file.
13446
13447 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
13448
13449 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
13450 (main): Use __get_cpuid to get i386 target fetaures.
13451 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
13452 (main): Use __get_cpuid to get x86_64 target fetaures.
13453
13454 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
13455
13456 PR target/32765
13457 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
13458 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
13459
13460 2007-07-12 Jakub Jelinek <jakub@redhat.com>
13461
13462 PR fortran/32550
13463 * testsuite/libgomp.fortran/pr32550.f90: New test.
13464 * testsuite/libgomp.fortran/crayptr2.f90: New test.
13465
13466 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
13467
13468 * aclocal.m4: Regenerated.
13469
13470 2007-07-05 Tobias Burnus <burnus@net-b.de>
13471
13472 PR fortran/32359
13473 * testsuite/libgomp.fortran/pr32359.f90: New.
13474
13475 2007-07-02 Jakub Jelinek <jakub@redhat.com>
13476
13477 PR libgomp/32468
13478 * sections.c (GOMP_parallel_sections_start): Only decrease
13479 number of threads to COUNT if dyn_var is true.
13480 * testsuite/libgomp.c/pr32468.c: New test.
13481
13482 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13483
13484 PR libgomp/26308
13485 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
13486
13487 2007-06-21 Jakub Jelinek <jakub@redhat.com>
13488
13489 PR middle-end/32362
13490 * testsuite/libgomp.c/pr32362-1.c: New test.
13491 * testsuite/libgomp.c/pr32362-2.c: New test.
13492 * testsuite/libgomp.c/pr32362-3.c: New test.
13493
13494 2007-06-07 Jakub Jelinek <jakub@redhat.com>
13495
13496 * team.c (gomp_team_start): Fix setting up thread_attr
13497 stack size.
13498
13499 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
13500
13501 * configure: Regenerate.
13502
13503 2007-05-23 Steve Ellcey <sje@cup.hp.com>
13504
13505 * Makefile.in: Regenerate.
13506 * configure: Regenerate.
13507 * aclocal.m4: Regenerate.
13508 * testsuite/Makefile.in: Regenerate.
13509
13510 2007-05-04 Jakub Jelinek <jakub@redhat.com>
13511
13512 * config/linux/proc.c: New file.
13513
13514 PR libgomp/28482
13515 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
13516
13517 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
13518
13519 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
13520
13521 2007-04-16 Matthias Klose <doko@debian.org>
13522
13523 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
13524 flags if not building with -m64.
13525 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
13526 flag for i?86-*-* targets, if current target matches -m64.
13527
13528 2007-04-14 Steve Ellcey <sje@cup.hp.com>
13529
13530 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
13531 * Makefile.in: Regenerate.
13532
13533 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13534
13535 PR testsuite/31369
13536 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
13537 ld_library_path.
13538 * testsuite/libgomp.fortran/fortran.exp: Likewise.
13539
13540 2007-04-04 Jakub Jelinek <jakub@redhat.com>
13541
13542 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
13543 decls.
13544 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
13545 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
13546 (parse_affinity): New function.
13547 (initialize_env): Call it and gomp_init_affinity.
13548 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
13549 create new pthread_attr_t and call gomp_init_thread_affinity
13550 on it for each thread before passing the attribute to pthread_create.
13551 * config/linux/affinity.c: New file.
13552 * config/posix/affinity.c: New file.
13553 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
13554 * configure: Rebuilt.
13555 * config.h.in: Rebuilt.
13556 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
13557 * Makefile.in: Rebuilt.
13558
13559 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
13560
13561 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
13562 *-*-darwin*.
13563 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
13564 and use it if found.
13565
13566 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
13567
13568 * testsuite/config/default.exp: New file.
13569 * testsuite/lib/libgomp.exp: New file.
13570 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
13571 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
13572 load_lib *, load_gcc_lib *): Move to libgomp.exp.
13573 (libgomp_load): Remove.
13574 * testsuite/lib/libgomp.exp (libgomp_init): Compute
13575 always_ld_library_path, not ld_library_path. Set additional_flags
13576 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
13577 (target_compile): Do not call libgomp_init. Append lang_library_path
13578 and lang_link_flags to options.
13579 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
13580 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
13581 here.
13582 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
13583 always_ld_library_path. Set LD_LIBRARY_PATH here.
13584 * testsuite/libgomp.fortran/fortran.exp: Ditto.
13585 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
13586 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
13587 CX8 flag.
13588 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
13589 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
13590 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
13591 * testsuite/libgomp.c/pr29947-1.c: Ditto.
13592 * testsuite/libgomp.c/atomic-10.c: Ditto.
13593
13594 2007-03-21 Jakub Jelinek <jakub@redhat.com>
13595
13596 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
13597 dg-final cleanup-modules line.
13598 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
13599 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
13600 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
13601 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
13602 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
13603 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
13604 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
13605
13606 2007-03-18 Andreas Schwab <schwab@suse.de>
13607
13608 * acinclude.m4: Adjust regular expression for ld version
13609 extraction.
13610 * configure: Regenerate.
13611
13612 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
13613
13614 * Makefile.am: Add install-pdf target as copied from
13615 automake v1.10 rules.
13616 * Makefile.in: Regenerate
13617
13618 2007-02-07 Jakub Jelinek <jakub@redhat.com>
13619
13620 PR libgomp/28486
13621 * configure: Regenerate.
13622
13623 PR c++/30703
13624 * testsuite/libgomp.c++/pr30703.C: New test.
13625
13626 2007-02-02 Jakub Jelinek <jakub@redhat.com>
13627
13628 Revert:
13629 2006-07-05 Eric Christopher <echristo@apple.com>
13630 * configure.ac: Depend addition of -pthread on host OS.
13631 * configure: Regenerate.
13632
13633 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13634
13635 * libgomp.texi: Fix spacing after abbreviations.
13636
13637 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
13638
13639 PR libgomp/30546
13640 * configure.ac: Add check for makeinfo
13641 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
13642 if an appropriate version of makeinfo is found.
13643 * aclocal.m4: Regenerated.
13644 * configure: Regenerated.
13645 * Makefile.in: Regenerated.
13646 * testsuite/Makefile.in: Regenerated.
13647
13648 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
13649
13650 PR libgomp/30540
13651 * libgomp.texi: More about implementation-dependent settings.
13652
13653 2007-01-26 Tobias Burnus <burnus@net-b.de>
13654
13655 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
13656
13657 2007-01-24 Jakub Jelinek <jakub@redhat.com>
13658
13659 PR middle-end/30494
13660 * testsuite/libgomp.c/pr30494.c: New test.
13661
13662 2007-01-15 Tom Tromey <tromey@redhat.com>
13663
13664 * configure: Rebuilt.
13665 * configure.ac: Fixed comment.
13666
13667 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
13668
13669 * libgomp.texi: Document implementation specific default values of
13670 environment variables.
13671
13672 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
13673
13674 PR libgomp/28209
13675 * libgomp.texi: New file.
13676 * configure.ac: Add --enable-generated-files-in-srcdir option.
13677 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
13678 files to srcdir.
13679 * Makefile.in: Regenerated.
13680 * config.h.in: Regenerated.
13681 * testsuite/Makefile.in: Regenerated.
13682 * NOTES: Removed.
13683
13684 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
13685
13686 PR libgomp/29949
13687 * env.c (omp_set_num_threads): Set illegal thread count to 1.
13688
13689 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
13690
13691 * configure: Regenerate.
13692
13693 2006-12-04 Jakub Jelinek <jakub@redhat.com>
13694
13695 PR libgomp/29947
13696 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
13697 start if there shouldn't be any loop iterations.
13698 (gomp_loop_ordered_static_start): Remove start == end test.
13699 * testsuite/libgomp.c/pr29947-1.c: New test.
13700 * testsuite/libgomp.c/pr29947-2.c: New test.
13701
13702 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
13703
13704 * configure.tgt: Force initial-exec TLS model on Linux only.
13705
13706 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
13707
13708 * configure: Regenerated.
13709
13710 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
13711
13712 * env.c (parse_schedule): Reject out of range values.
13713 (parse_unsigned_long): Reject out of range, negative or zero values.
13714
13715 2006-10-29 Jakub Jelinek <jakub@redhat.com>
13716
13717 PR fortran/29629
13718 * testsuite/libgomp.fortran/pr29629.f90: New test.
13719
13720 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
13721
13722 PR libgomp/29494
13723 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
13724 * config/posix95: New directory.
13725 * config/posix95/omp-lock.h: New file.
13726 * config/posix95/lock.c: Likewise.
13727
13728 2006-10-14 Geoffrey Keating <geoffk@apple.com>
13729
13730 * aclocal.m4: Regenerate.
13731 * configure: Regenerate.
13732
13733 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
13734
13735 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
13736 '<' to '<='.
13737
13738 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
13739
13740 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
13741 test.
13742 * configure: Regenerate.
13743 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
13744
13745 2006-09-26 Jakub Jelinek <jakub@redhat.com>
13746
13747 PR middle-end/25261
13748 PR middle-end/28790
13749 * testsuite/libgomp.c/nestedfn-4.c: New test.
13750 * testsuite/libgomp.c/nestedfn-5.c: New test.
13751 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
13752
13753 PR fortran/29097
13754 * testsuite/libgomp.fortran/condinc1.f: New test.
13755 * testsuite/libgomp.fortran/condinc2.f: New test.
13756 * testsuite/libgomp.fortran/condinc3.f90: New test.
13757 * testsuite/libgomp.fortran/condinc4.f90: New test.
13758 * testsuite/libgomp.fortran/condinc1.inc: New file.
13759
13760 2006-09-18 Tom Tromey <tromey@redhat.com>
13761
13762 * configure: Rebuilt.
13763
13764 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
13765
13766 PR c/28768
13767 PR preprocessor/14634
13768 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
13769 to AC_DEFINE.
13770 * configure: Regenerate.
13771
13772 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
13773
13774 * testsuite/libgomp.fortran/reduction3.f90: Change
13775 -2147483648 to -huge(i)-1 to avoid overflow.
13776 * testsuite/libgomp.fortran/reduction4.f90: Change
13777 Z'ffffffff' to not(0) to avoid overflow.
13778
13779 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
13780
13781 PR libgomp/25938
13782 * Makefile.am (libsubincludedir): New.
13783 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
13784 * Makefile.in: Regenerate.
13785
13786 2006-08-17 Jakub Jelinek <jakub@redhat.com>
13787
13788 PR libgomp/28725
13789 * env.c: Include ctype.h.
13790 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
13791 leading and/or trailing whitespace and compare strings case
13792 insensitively.
13793
13794 2006-07-16 Jakub Jelinek <jakub@redhat.com>
13795
13796 PR fortran/28390
13797 * testsuite/libgomp.fortran/pr28390.f: New test.
13798
13799 2006-07-05 Eric Christopher <echristo@apple.com>
13800
13801 * configure.ac: Depend addition of -pthread on host OS.
13802 * configure: Regenerate.
13803
13804 2006-06-21 Jakub Jelinek <jakub@redhat.com>
13805
13806 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
13807 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
13808 defined.
13809
13810 2006-06-20 Jakub Jelinek <jakub@redhat.com>
13811
13812 PR libgomp/26175
13813 PR libgomp/26477
13814 * configure.ac: If neither --enable-linux-futex nor
13815 --disable-linux-futex is passed, determine the default by checking
13816 for compiling and/or running against NPTL. With --enable-linux-futex,
13817 check if SYS_gettid and SYS_futex are defined.
13818 * configure: Rebuilt.
13819
13820 2006-06-14 Richard Henderson <rth@redhat.com>
13821
13822 PR libgomp/28008
13823 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
13824 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
13825
13826 2006-06-09 Richard Henderson <rth@redhat.com>
13827
13828 * env.c (gomp_nthreads_var): Change to unsigned long.
13829 (gomp_run_sched_chunk): Likewise.
13830 (parse_unsigned_long): Rename from parse_num_threads and generalize.
13831 (initialize_env): Initialize gomp_thread_attr.
13832 * libgomp.h (gomp_nthreads_var): Update decl.
13833 (gomp_run_sched_chunk): Likewise.
13834 (gomp_thread_attr): Declare.
13835 * team.c (gomp_thread_attr): Export.
13836 (initialize_team): Don't initialize it.
13837
13838 2006-06-09 Jakub Jelinek <jakub@redhat.com>
13839
13840 PR fortran/27916
13841 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
13842 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
13843
13844 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
13845
13846 * config/mingw32/time.c: New file.
13847 * configure.tgt: Use it.
13848
13849 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
13850
13851 * Makefile.am: Add install-html target. Add install-html to .PHONY
13852 * Makefile.in: Regenerate.
13853
13854 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13855
13856 PR libgomp/27612
13857 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
13858 * testsuite/libgomp.c/critical-1.c: Likewise.
13859 * testsuite/libgomp.c/loop-1.c: Likewise.
13860 * testsuite/libgomp.c/loop-2.c: Likewise.
13861 * testsuite/libgomp.c/single-1.c: Likewise.
13862 * testsuite/libgomp.c/ordered-1.c: Likewise.
13863 * testsuite/libgomp.c/ordered-2.c: Likewise.
13864
13865 2006-05-15 Jakub Jelinek <jakub@redhat.com>
13866
13867 PR middle-end/27416
13868 * libgomp.fortran/pr27416-1.f90: New test.
13869
13870 2006-05-03 Jakub Jelinek <jakub@redhat.com>
13871
13872 PR fortran/27395
13873 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
13874 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
13875
13876 2006-05-02 Jakub Jelinek <jakub@redhat.com>
13877
13878 PR c++/26943
13879 * testsuite/libgomp.c/pr26943-1.c: New test.
13880 * testsuite/libgomp.c/pr26943-2.c: New test.
13881 * testsuite/libgomp.c/pr26943-3.c: New test.
13882 * testsuite/libgomp.c/pr26943-4.c: New test.
13883 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
13884 * testsuite/libgomp.c++/pr26943.C: New test.
13885
13886 2006-05-02 Jakub Jelinek <jakub@redhat.com>
13887
13888 PR middle-end/27337
13889 * testsuite/libgomp.c++/pr27337.C: New test.
13890
13891 2006-04-26 Jakub Jelinek <jakub@redhat.com>
13892
13893 PR c/26171
13894 * testsuite/libgomp.c/pr26171.c: New test.
13895
13896 2006-04-25 Richard Henderson <rth@redhat.com>
13897
13898 PR libgomp/25865
13899 * configure.ac: Use GCC_CHECK_TLS.
13900 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
13901 * Makefile.in, aclocal.m4, configure: Regenerate.
13902
13903 2006-04-10 Matthias Klose <doko@debian.org>
13904
13905 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
13906 directory names containing underscores.
13907
13908 2006-03-21 Jakub Jelinek <jakub@redhat.com>
13909
13910 PR c++/26691
13911 * testsuite/libgomp.c++/pr26691.C: New test.
13912
13913 2006-03-13 Jakub Jelinek <jakub@redhat.com>
13914
13915 * testsuite/libgomp.fortran/retval2.f90: New test.
13916
13917 2006-03-09 Diego Novillo <dnovillo@redhat.com>
13918
13919 * testsuite/libgomp.c++: New directory.
13920
13921 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
13922
13923 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
13924 * config/posix/sem.c: Implement the above.
13925
13926 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
13927
13928 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
13929 define HAVE_BROKEN_POSIX_SEMAPHORES.
13930 * configure: Rebuilt.
13931 * config.h.in: Rebuilt.
13932
13933 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
13934
13935 PR bootstrap/26161
13936 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
13937 for the other pthread check.
13938 * configure: Regenerate.
13939 * config.h.in: Regenerate.
13940
13941 2006-02-15 Jakub Jelinek <jakub@redhat.com>
13942
13943 PR libgomp/25938
13944 PR libgomp/25984
13945 * Makefile.am (fincludedir): New variable.
13946 (nodist_include_HEADERS): Remove Fortran files.
13947 (nodist_finclude_HEADERS): New variable.
13948 * Makefile.in: Regenerated.
13949
13950 2006-02-13 Jakub Jelinek <jakub@redhat.com>
13951
13952 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
13953 Remove tests for returning assumed character length arrays.
13954
13955 2006-02-12 Roger Sayle <roger@eyesopen.com>
13956 John David Anglin <dave@hiauly1.hia.nrc.ca>
13957
13958 PR libgomp/25936
13959 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
13960
13961 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
13962
13963 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
13964
13965 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
13966
13967 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
13968 part of LD_LIBRARY_PATH manually.
13969
13970 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
13971
13972 PR libgomp/25852
13973 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
13974 libgomp_init.
13975
13976 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
13977
13978 PR libgomp/25884
13979 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
13980 * configure.ac (PERL): Don't set.
13981 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
13982 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
13983 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
13984 * omp.h.in: Wrap the new configure substitutions with @ characters.
13985 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
13986 * aclocal.m4, configure, Makefile.in: Regenerate.
13987 * mkomp_h.pl: Delete.
13988
13989 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
13990
13991 PR libgomp/25259
13992 * configure.ac: Use GCC_HEADER_STDINT.
13993 * libgomp.h: Include gstdint.h.
13994 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
13995 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
13996
13997 2006-01-24 Richard Henderson <rth@redhat.com>
13998
13999 PR libgomp/25942
14000 * configure.ac: Add AM_MAINTAINER_MODE.
14001 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
14002
14003 2006-01-24 Diego Novillo <dnovillo@redhat.com>
14004
14005 * Makefile.in: Regenerate.
14006 * testsuite/Makefile.in: Regenerate.
14007 * aclocal.m4: Regenerate.
14008
14009 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
14010
14011 * config/posix/proc.c: Conditional include of sys/loadavg.h for
14012 Solaris.
14013 * configure.ac: Add check for loadavg.h.
14014 (link_gomp): Adjust comment.
14015 * configure: Regenerate.
14016 * config.h.in: Regenerate.
14017
14018 2006-01-21 Steve Ellcey <sje@cup.hp.com>
14019
14020 PR libgomp/25877
14021 * configure.ac: Remove check for alloca.h.
14022 * configure: Regenerate.
14023 * config.h.in: Regenerate.
14024 * libgomp.h: define gomp_alloca to be __builtin_alloca.
14025 * team.c: Remove use of alloca.h.
14026 Call gomp_alloca instead of alloca.
14027
14028 2006-01-20 Steve Ellcey <sje@cup.hp.com>
14029
14030 PR libgomp/25877
14031 * team.c: Add include of alloca.h.
14032 * configure.ac: Add check for alloca.h.
14033 * configure: Regenerate.
14034 * config.h.in: Regenerate.
14035
14036 2006-01-17 Jakub Jelinek <jakub@redhat.com>
14037
14038 PR fortran/25219
14039 * testsuite/libgomp.fortran/pr25219.f90: New test.
14040
14041 2005-12-05 Uros Bizjak <uros@kss-loka.si>
14042
14043 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
14044 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
14045 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
14046 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
14047 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
14048 testsuite/libgomp.fortran/threadprivate1.f90,
14049 testsuite/libgomp.fortran/threadprivate2.f90,
14050 testsuite/libgomp.fortran/threadprivate3.f90,
14051 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
14052 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
14053 testsuite/libgomp.fortran/omp_parse3.f90: Change required
14054 effective-target to TLS runtime.
14055
14056 * testsuite/libgomp.fortran/pr25162.f: Require
14057 effective-target TLS runtime.
14058
14059 2005-12-01 Jakub Jelinek <jakub@redhat.com>
14060
14061 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
14062 * testsuite/libgomp.c/nestedfn-3.c: New test.
14063
14064 2005-11-30 Jakub Jelinek <jakub@redhat.com>
14065
14066 PR fortran/25162
14067 * testsuite/libgomp.fortran/pr25162.f: New test.
14068
14069 2005-11-28 Jakub Jelinek <jakub@redhat.com>
14070
14071 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
14072 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
14073
14074 2005-11-25 Jakub Jelinek <jakub@redhat.com>
14075
14076 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
14077 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
14078 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
14079 single.c, team.c, work.c, config/linux/alpha/futex.h,
14080 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
14081 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
14082 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
14083 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
14084 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
14085 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
14086 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
14087 FSF address.
14088
14089 2005-11-18 Jakub Jelinek <jakub@redhat.com>
14090
14091 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
14092 to nodist_noinst_HEADERS.
14093 * Makefile.in: Rebuilt.
14094
14095 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
14096 add integer count field.
14097 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
14098 omp_nest_lock_t type change.
14099 (omp_init_nest_lock): Likewise. Initialize count to 0.
14100 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
14101 Increment count.
14102 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
14103 Decrement count.
14104 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
14105 Increment count if successful and return the new nesting level.
14106 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
14107 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
14108 * testsuite/libgomp.c/lib-1.c: New test.
14109 * testsuite/libgomp.fortran/lib1.f90: New test.
14110 * testsuite/libgomp.fortran/lib2.f: New test.
14111 * testsuite/libgomp.fortran/lib3.f: New test.
14112
14113 2005-11-17 Richard Henderson <rth@redhat.com>
14114
14115 PR 24845
14116 * Makefile.am (nodist_toolexeclib_HEADERS): New.
14117 * configure.ac (link_gomp): New. Substitute it.
14118 (AC_CONFIG_FILES): Add libgomp.spec.
14119 * libgomp.spec.in: New file.
14120 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
14121 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
14122
14123 2005-11-18 Jakub Jelinek <jakub@redhat.com>
14124
14125 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
14126 reduction(-:var) behaving the same as reduction(+:var).
14127 * testsuite/libgomp.c/reduction-4.c: New test.
14128
14129 2005-11-15 Uros Bizjak <uros@kss-loka.si>
14130
14131 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
14132 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
14133 testsuite/libgomp.c/copyin-3.c,
14134 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
14135 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
14136 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
14137 testsuite/libgomp.c++/pr24455.C,
14138 testsuite/libgomp.fortran/threadprivate1.f90,
14139 testsuite/libgomp.fortran/threadprivate2.f90,
14140 testsuite/libgomp.fortran/threadprivate3.f90,
14141 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
14142 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
14143 testsuite/libgomp.fortran/omp_parse3.f90: Require
14144 effective-target TLS.
14145
14146 2005-11-14 Diego Novillo <dnovillo@redhat.com>
14147
14148 * HEADER: Remove.
14149
14150 2005-11-13 Jakub Jelinek <jakub@redhat.com>
14151
14152 PR libgomp/24797
14153 * team.c (initialize_team): Pass NULL rather than free as
14154 pthread_key_create destructor. Initialize thread specific data
14155 pointer in initial thread to a static local variable rather than
14156 malloced memory.
14157
14158 2005-11-11 Uros Bizjak <uros@kss-loka.si>
14159
14160 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
14161 its location to ld_library_path.
14162
14163 2005-11-10 Diego Novillo <dnovillo@redhat.com>
14164
14165 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
14166
14167 2005-11-10 Diego Novillo <dnovillo@redhat.com>
14168
14169 * testsuite/libgomp.c: Rename from libgomp.dg.
14170
14171 2005-11-09 Diego Novillo <dnovillo@redhat.com>
14172
14173 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
14174 threadprivate variable 'i'.
14175
14176 2005-11-09 Jakub Jelinek <jakub@redhat.com>
14177
14178 * config/linux/s390/futex.h: New file.
14179 * configure.tgt: Use it.
14180
14181 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
14182 before the parallel.
14183
14184 2005-11-08 Jakub Jelinek <jakub@redhat.com>
14185
14186 PR c++/24734
14187 * testsuite/libgomp.c++/master-1.C: New test.
14188
14189 2005-11-07 Jakub Jelinek <jakub@redhat.com>
14190
14191 * testsuite/libgomp.dg/copyin-3.c: New test.
14192
14193 2005-11-07 Jakub Jelinek <jakub@redhat.com>
14194
14195 * testsuite/libgomp.fortran/retval1.f90: New test.
14196 * testsuite/libgomp.fortran/vla7.f90: New test.
14197
14198 2005-11-06 Jakub Jelinek <jakub@redhat.com>
14199
14200 * testsuite/libgomp.fortran/vla2.f90: New test.
14201 * testsuite/libgomp.fortran/vla3.f90: New test.
14202 * testsuite/libgomp.fortran/vla4.f90: New test.
14203 * testsuite/libgomp.fortran/vla5.f90: New test.
14204 * testsuite/libgomp.fortran/vla6.f90: New test.
14205
14206 2005-11-01 Jakub Jelinek <jakub@redhat.com>
14207
14208 * config/linux/sparc/futex.h: New file.
14209 * configure.tgt: Use it.
14210 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
14211
14212 * critical.c: Include stdlib.h.
14213 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
14214 ignoring return value.
14215 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
14216 LIBGOMP_CHECK_SYNC_BUILTINS check.
14217 * configure: Rebuilt.
14218
14219 2005-10-31 Jakub Jelinek <jakub@redhat.com>
14220
14221 * testsuite/libgomp.fortran/vla1.f90: New test.
14222
14223 2005-10-31 Richard Henderson <rth@redhat.com>
14224
14225 * testsuite/libgomp.fortran/character2.f90: Fix race condition
14226 setting 's' in different threads.
14227
14228 2005-10-31 Jakub Jelinek <jakub@redhat.com>
14229
14230 * libgomp.h (attribute_hidden, ialias): Define.
14231 * config/posix/proc.c (omp_get_num_procs): Add ialias.
14232 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
14233 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
14234 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
14235 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
14236 omp_test_lock, omp_test_nest_lock): Likewise.
14237 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
14238 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
14239 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
14240 omp_test_lock, omp_test_nest_lock): Likewise.
14241 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
14242 omp_get_dynamic, omp_get_nested): Likewise.
14243 * parallel.c (omp_get_num_threads, omp_get_max_threads,
14244 omp_get_thread_num, omp_in_parallel): Likewise.
14245 * fortran.c (ialias_redirect): Define.
14246 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
14247 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
14248 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
14249 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
14250 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
14251 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
14252 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
14253 omp_get_wtime): Add ialias_redirect.
14254
14255 2005-10-30 Jakub Jelinek <jakub@redhat.com>
14256
14257 * fortran.c: Include stdlib.h.
14258
14259 2005-10-29 Jakub Jelinek <jakub@redhat.com>
14260
14261 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
14262 * Makefile.in: Regenerated.
14263
14264 2005-10-28 Jakub Jelinek <jakub@redhat.com>
14265
14266 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
14267 * libgomp_f.h.in (omp_check_defines): New function.
14268 * env.c: Include libgomp_f.h.
14269 (initialize_env): Call omp_check_defines.
14270
14271 * testsuite/libgomp.dg/copyin-2.c: New test.
14272 * testsuite/libgomp.c++/copyin-2.C: New test.
14273 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
14274
14275 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
14276 * testsuite/libgomp.fortran/sharing2.f90: New test.
14277
14278 * testsuite/libgomp.dg/copyin-1.c: New test.
14279 * testsuite/libgomp.c++/copyin-1.C: New test.
14280
14281 2005-10-26 Jakub Jelinek <jakub@redhat.com>
14282
14283 * testsuite/libgomp.fortran/crayptr1.f90: New test.
14284
14285 * testsuite/libgomp.fortran/workshare1.f90: New test.
14286
14287 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
14288 only test.
14289 * libgomp.fortran/sharing1.f90: New test.
14290
14291 2005-10-24 Jakub Jelinek <jakub@redhat.com>
14292
14293 PR c++/24502
14294 * testsuite/libgomp.c++/loop-7.C: New test.
14295
14296 * testsuite/libgomp.dg/nestedfn-2.c: New test.
14297
14298 * testsuite/libgomp.dg/nestedfn-1.c: New test.
14299 * testsuite/libgomp.fortran/reduction6.f90: New test.
14300 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
14301
14302 2005-10-23 Richard Henderson <rth@redhat.com>
14303
14304 * testsuite/libgomp.c++/ctor-1.C: New.
14305 * testsuite/libgomp.c++/ctor-2.C: New.
14306 * testsuite/libgomp.c++/ctor-3.C: New.
14307 * testsuite/libgomp.c++/ctor-4.C: New.
14308 * testsuite/libgomp.c++/ctor-5.C: New.
14309 * testsuite/libgomp.c++/ctor-6.C: New.
14310 * testsuite/libgomp.c++/ctor-7.C: New.
14311 * testsuite/libgomp.c++/ctor-8.C: New.
14312 * testsuite/libgomp.c++/ctor-9.C: New.
14313
14314 2005-10-21 Diego Novillo <dnovillo@redhat.com>
14315
14316 PR 24455
14317 * testsuite/libgomp.c++/pr24455-1.C: New test.
14318 * testsuite/libgomp.c++/pr24455.C: New test.
14319 * testsuite/libgomp.dg/pr24455-1.c: New test.
14320 * testsuite/libgomp.dg/pr24455.c: New test.
14321
14322 2005-10-20 Richard Henderson <rth@redhat.com>
14323
14324 * testsuite/libgomp.c++/loop-6.C: New.
14325 * testsuite/libgomp.dg/loop-3.c: New.
14326
14327 2005-10-20 Jakub Jelinek <jakub@redhat.com>
14328
14329 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
14330 explicitly private.
14331 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
14332 explicitly shared.
14333
14334 2005-10-19 Diego Novillo <dnovillo@redhat.com>
14335
14336 * testsuite/libgomp.fortran/jacobi.f: New test.
14337
14338 2005-10-19 Richard Henderson <rth@redhat.com>
14339
14340 * configure.tgt (i?86-linux): Default to with_arch instead of
14341 CFLAGS. Add -mtune to match target_cpu.
14342 (x86_64-linux): Tune to i686.
14343
14344 * fortran.c (omp_test_nest_lock_): Fix typo.
14345
14346 2005-10-19 Jakub Jelinek <jakub@redhat.com>
14347
14348 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
14349 gomp_ordered_sync): Do nothing if team->nthreads == 1.
14350 * testsuite/libgomp.dg/ordered-3.c: New test.
14351
14352 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
14353 Remove volatile keyword.
14354
14355 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
14356 in COMMON block to avoid warnings on 64-bit targets.
14357
14358 2005-10-18 Diego Novillo <dnovillo@redhat.com>
14359
14360 * testsuite/libgomp.dg/shared-3.c: New test.
14361
14362 2005-10-18 Jakub Jelinek <jakub@redhat.com>
14363
14364 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
14365 * testsuite/libgomp.fortran/reduction5.f90: New test.
14366
14367 2005-10-18 Jakub Jelinek <jakub@redhat.com>
14368
14369 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
14370 dg-options.
14371 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
14372 flush loop now that __sync_synchronize has proper memory barrier.
14373 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
14374 Add -ffixed-form to dg-options.
14375
14376 2005-10-17 Diego Novillo <dnovillo@redhat.com>
14377
14378 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
14379 from subdirectories.
14380 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
14381 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
14382 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
14383 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
14384 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
14385 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
14386 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
14387 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
14388 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
14389 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
14390 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
14391 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
14392 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
14393 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
14394 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
14395 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
14396 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
14397 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
14398 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
14399 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
14400 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
14401 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
14402 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
14403 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
14404 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
14405
14406 2005-10-17 Jakub Jelinek <jakub@redhat.com>
14407
14408 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
14409 lang_library_path exists. Use find instead of glob to gather tests.
14410 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
14411
14412 2005-10-17 Diego Novillo <dnovillo@redhat.com>
14413
14414 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
14415 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
14416 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
14417 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
14418 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
14419 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
14420 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
14421 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
14422 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
14423 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
14424 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
14425 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
14426 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
14427
14428 2005-10-15 Jakub Jelinek <jakub@redhat.com>
14429
14430 * testsuite/libgomp.dg/vla-1.c: New test.
14431
14432 * testsuite/libgomp.fortran/reference2.f90: New test.
14433
14434 * testsuite/libgomp.fortran/character2.f90: Remove explicit
14435 declaration of omp_get_thread_num.
14436 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
14437 use omp_lib.
14438
14439 * testsuite/libgomp.fortran/reduction1.f90: New test.
14440 * testsuite/libgomp.fortran/reduction2.f90: New test.
14441 * testsuite/libgomp.fortran/reduction3.f90: New test.
14442 * testsuite/libgomp.fortran/reduction4.f90: New test.
14443
14444 2005-10-13 Richard Henderson <rth@redhat.com>
14445
14446 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
14447 * Makefile.in: Regenerate.
14448 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
14449 * libgomp.h: Include bar.h.
14450 (struct gomp_barrier): Remove.
14451 (struct gomp_team): Add barrier. Replace master_barrier with
14452 master_release. Replace threads with ordered_release.
14453 (struct gomp_thread): Replace barrier with release.
14454 * ordered.c (gomp_ordered_first): Update for ordered_release change.
14455 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
14456 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
14457 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
14458 (GOMP_single_copy_end): Likewise.
14459 * team.c (gomp_threads_dock): New.
14460 (gomp_barrier_init, gomp_barrier_destroy): Remove.
14461 (gomp_thread_start): Use gomp_barrier_wait.
14462 (new_team, free_team): Update for gomp_team changes.
14463 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
14464 (gomp_team_end): Use gomp_barrier_wait.
14465 (initialize_team): Update for gomp_thread changes.
14466 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
14467 (gomp_work_share_end_nowait): Use atomic ops when available.
14468 * config/linux/bar.c, config/linux/bar.h: New files.
14469 * config/posix/bar.c, config/posix/bar.h: New files.
14470
14471 2005-10-13 Jakub Jelinek <jakub@redhat.com>
14472
14473 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
14474 * testsuite/libgomp.dg/single-2.c: New test.
14475
14476 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
14477 lang_link_flags): Unset, so that they aren't inherited from previously
14478 sourced *.exp.
14479
14480 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
14481
14482 2005-10-12 Richard Henderson <rth@redhat.com>
14483
14484 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
14485 (libgomp_init): Use lang_test_file, lang_library_path, and
14486 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
14487
14488 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
14489 (lang_test_file, lang_link_flags): New.
14490 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
14491
14492 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
14493 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
14494 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
14495 testsuite/libgomp.c++/parallel-1.C,
14496 testsuite/libgomp.c++/reduction-1.C,
14497 testsuite/libgomp.c++/reduction-2.C,
14498 testsuite/libgomp.c++/reduction-3.C,
14499 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
14500 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
14501 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
14502 New files, largely cribbed from the C testsuite.
14503
14504 2005-10-12 Jakub Jelinek <jakub@redhat.com>
14505
14506 * testsuite/libgomp.fortran/character1.f90: New test.
14507 * testsuite/libgomp.fortran/character2.f90: New test.
14508
14509 * testsuite/libgomp.dg/nested-1.c: New test.
14510 * testsuite/libgomp.dg/nested-2.c: New test.
14511 * testsuite/libgomp.fortran/do1.f90: New test.
14512 * testsuite/libgomp.fortran/do2.f90: New test.
14513
14514 * testsuite/libgomp.fortran/reference1.f90: New test.
14515
14516 2005-10-11 Jakub Jelinek <jakub@redhat.com>
14517
14518 * testsuite/libgomp.dg/reduction-1.c: New test.
14519 * testsuite/libgomp.dg/reduction-2.c: New test.
14520 * testsuite/libgomp.dg/reduction-3.c: New test.
14521
14522 2005-10-10 Jakub Jelinek <jakub@redhat.com>
14523
14524 * testsuite/libgomp.dg/atomic-1.c: New test.
14525 * testsuite/libgomp.dg/atomic-2.c: New test.
14526
14527 2005-10-09 Richard Henderson <rth@redhat.com>
14528
14529 * critical.c (atomic_lock): New.
14530 (initialize_critical): Initialize it.
14531 (GOMP_atomic_start, GOMP_atomic_end): New.
14532 * libgomp.map: Export them.
14533 * libgomp_g.h: Declare them.
14534
14535 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
14536
14537 2005-10-02 Richard Henderson <rth@redhat.com>
14538
14539 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
14540 to XCFLAGS instead of CFLAGS.
14541
14542 2005-09-30 Richard Henderson <rth@redhat.com>
14543
14544 * configure.ac: Determine whether -pthread or -lpthread is needed.
14545 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
14546 * Makefile.in, configure: Rebuild.
14547
14548 2005-09-28 Richard Henderson <rth@redhat.com>
14549
14550 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
14551 * testsuite/libgomp.dg/omp-single-3.c: New test.
14552
14553 2005-09-28 Diego Novillo <dnovillo@redhat.com>
14554
14555 * testsuite/libgomp.dg/omp-single-2.c: New test.
14556 * testsuite/libgomp.dg/shared-2.c: Fix return code.
14557
14558 2005-09-27 Richard Henderson <rth@redhat.com>
14559
14560 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
14561 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
14562
14563 2005-09-27 Jakub Jelinek <jakub@redhat.com>
14564
14565 * testsuite/libgomp.dg/omp-loop03.c: New test.
14566
14567 2005-09-27 Diego Novillo <dnovillo@redhat.com>
14568
14569 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
14570
14571 2005-09-27 Diego Novillo <dnovillo@redhat.com>
14572
14573 * testsuite/libgomp.dg/omp-single-1.c: New test.
14574 * testsuite/libgomp.dg/shared-1.c: Return 0.
14575 Add prototype for abort.
14576 * testsuite/libgomp.dg/shared-2.c: Likewise.
14577
14578 2005-09-26 Jakub Jelinek <jakub@redhat.com>
14579
14580 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
14581 constructs.
14582
14583 2005-09-26 Diego Novillo <dnovillo@redhat.com>
14584
14585 * testsuite/libgomp.dg/shared-1.c: New test.
14586 * testsuite/libgomp.dg/shared-2.c: New test.
14587
14588 2005-09-24 Richard Henderson <rth@redhat.com>
14589
14590 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
14591
14592 2005-09-24 Richard Henderson <rth@redhat.com>
14593
14594 * iter.c (gomp_iter_static_next): Round up when computing number
14595 of iterations. Don't bother distributing a remainder equally.
14596
14597 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
14598 Don't call srand. Zero b before testing.
14599 (main): New.
14600
14601 2005-09-24 Jakub Jelinek <jakub@redhat.com>
14602
14603 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
14604 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
14605
14606 2005-09-23 Jakub Jelinek <jakub@redhat.com>
14607
14608 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
14609 without !$omp end do, followed immediately by subroutine end.
14610
14611 2005-09-23 Diego Novillo <dnovillo@redhat.com>
14612
14613 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
14614
14615 2005-09-22 Richard Henderson <rth@redhat.com>
14616
14617 * critical.c (GOMP_critical_name_start): Change argument to void**.
14618 Reuse the pointer space if the mutex fits.
14619 (GOMP_critical_name_end): Likewise.
14620 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
14621 * libgomp_g.h (GOMP_critical_name_start): Update decl.
14622 (GOMP_critical_name_end): Likewise.
14623 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
14624 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
14625
14626 2005-09-20 Richard Henderson <rth@redhat.com>
14627
14628 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
14629 (create_lock_lock): New.
14630 (initialize_critical): Initialize it.
14631 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
14632 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
14633
14634 2005-09-20 Diego Novillo <dnovillo@redhat.com>
14635
14636 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
14637
14638 2005-09-20 Diego Novillo <dnovillo@redhat.com>
14639
14640 * testsuite/libgomp.dg/omp-loop01.c: New test.
14641 * testsuite/libgomp.dg/omp-loop02.c: New test.
14642
14643 2005-09-20 Jakub Jelinek <jakub@redhat.com>
14644
14645 * configure.ac (AC_PROG_FC): Add.
14646 (USE_FORTRAN): New automake conditional.
14647 * configure: Rebuilt.
14648 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
14649 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
14650 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
14651 Add rules to build them.
14652 * Makefile.in: Rebuilt.
14653 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
14654 OMP_NEST_LOCK_KIND.
14655 * libgomp.map: Add Fortran wrappers.
14656 * libgomp_f.h.in: New file.
14657 * omp_lib.h.in: New file.
14658 * omp_lib.f90.in: New file.
14659 * fortran.c: New file.
14660 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
14661 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
14662 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
14663 libgfortran has been built.
14664 * testsuite/libgomp.fortran/fortran.exp: New file.
14665 * testsuite/libgomp.fortran/omp_cond1.f: New test.
14666 * testsuite/libgomp.fortran/omp_cond2.f: New test.
14667 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
14668 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
14669 * testsuite/libgomp.fortran/omp_hello.f: New test.
14670 * testsuite/libgomp.fortran/omp_orphan.f: New test.
14671 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
14672 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
14673 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
14674 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
14675 * testsuite/libgomp.fortran/omp_reduction.f: New test.
14676 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
14677 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
14678
14679 2005-08-30 Richard Henderson <rth@redhat.com>
14680
14681 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
14682 function for when aliases are not usable.
14683 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
14684 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
14685 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
14686 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
14687 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
14688 GOMP_loop_ordered_guided_next): Likewise.
14689 * ordered.c (GOMP_ordered_start): Likewise.
14690
14691 2005-08-01 Diego Novillo <dnovillo@redhat.com>
14692
14693 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
14694 * testsuite/libgomp.dg/omp_hello.c: Fix return code
14695 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
14696 * testsuite/libgomp.dg/omp_orphan.c: Likewise
14697 * testsuite/libgomp.dg/omp_reduction.c: Likewise
14698 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
14699 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
14700 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
14701 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
14702
14703 2005-07-07 Eric Christopher <echristo@redhat.com>
14704 Diego Novillo <dnovillo@redhat.com>
14705
14706 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
14707 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
14708 up code.
14709 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
14710 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
14711 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
14712 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
14713 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
14714 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
14715 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
14716
14717 2005-06-13 Diego Novillo <dnovillo@redhat.com>
14718
14719 * TOPLEVEL.patch: Remove.
14720
14721 2005-05-16 Richard Henderson <rth@redhat.com>
14722
14723 * configure.ac: Test for clock_gettime.
14724 * config.h.in, configure: Rebuild.
14725 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
14726 (omp_get_wtime): Use clock_gettime if available.
14727 (omp_get_wtick): Use clock_getres if available.
14728
14729 2005-05-11 Richard Henderson <rth@redhat.com>
14730
14731 * config/linux/ia64/futex.h: New file.
14732 * configure.tgt: Use it.
14733
14734 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
14735
14736 2005-05-07 Richard Henderson <rth@redhat.com>
14737
14738 * config/linux/powerpc/futex.h: New file.
14739 * configure.tgt: Use it.
14740
14741 * config/linux/i486/futex.h: Merge ...
14742 * config/linux/x86_64/futex.h: ... into ...
14743 * config/linux/x86/futex.h: ... here.
14744 * configure.tgt: Update to match.
14745
14746 2005-05-06 Richard Henderson <rth@redhat.com>
14747
14748 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
14749 * config/linux/i486/futex.h: Likewise.
14750 * config/linux/x86_64/futex.h: Likewise.
14751
14752 * config/linux/lock.c: New file.
14753 * config/linux/omp-lock.h: New file.
14754
14755 * critical.c, env.h: Don't include omp.h
14756 * config/posix/lock.c: Include libgomp.h instead of omp.h.
14757 * config/posix/time.c: Likewise.
14758 * config/posix/omp-lock.h: New file.
14759 * libgomp.h: Include omp-lock.h and omp.h.
14760 * Makefile.am (nodist_include_HEADERS): New.
14761 (omp.h): New rule.
14762 * configure.ac (PERL): New.
14763 * mkomp_h.pl: New file.
14764 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
14765 with templates.
14766 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
14767
14768 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
14769 build directory. Re-add -march=i486 hack.
14770
14771 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
14772 (libgomp_link_flags): Remove.
14773 (libgomp_initialized): Remove.
14774 (libgomp_init): Don't protect from reinitialization. Copy code
14775 from libstdc++ for getting the multilib set correctly.
14776
14777 2005-05-05 Richard Henderson <rth@redhat.com>
14778
14779 * config/linux/alpha/futex.h: New file.
14780 * configure.tgt (alpha*-*-linux*): Use it.
14781
14782 * config/posix/mutex.c: New file.
14783 * config/posix/sem.c: Use libgomp.h.
14784
14785 * configure.tgt (x86_64-linux): Also test CC for -m32.
14786 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
14787
14788 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
14789 after $gccpath.
14790
14791 * Makefile.am (SUBDIRS): New.
14792 (libgomp_la_LDFLAGS): Add -lpthread.
14793 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
14794 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
14795
14796 * libgomp_g.h: New file.
14797 * libgomp.h: Split out all public declarations to libgomp_g.h.
14798 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
14799 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
14800 * config/linux/sem.h: Likewise.
14801 * config/posix/sem.h: Likewise.
14802
14803 * Makefile.am (AM_LDFLAGS): New.
14804 (libgomp_version_script): Split out from ...
14805 (libgomp_la_LDFLAGS): ... here.
14806 (libgomp_version_info): New.
14807 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
14808 (LIBGOMP_ENABLE): New.
14809 (LIBGOMP_CHECK_LINKER_FEATURES): New.
14810 (LIBGOMP_ENABLE_SYMVERS): New.
14811 * configure.ac (AC_INIT): Version 1.0.
14812 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
14813 (enable-linux-futex): Likewise. Rename from enable-futex.
14814 (libtool_VERSION): New.
14815 (LIBGOMP_ENABLE_SYMVERS): Use it.
14816 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
14817 * Makefile.in, aclocal.m4, configure: Rebuild.
14818
14819 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
14820 (gomp_mutex_unlock_slow): Fix typo.
14821 * config/linux/sem.c: Similarly.
14822 (gomp_sem_post_slow): Fix typo.
14823 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
14824 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
14825 [__PIC__] (sys_futex0): Don't use tmp output in asm.
14826
14827 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
14828 (libgomp_la_LDFLAGS): Add top_srcdir to path.
14829 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
14830 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
14831 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
14832 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
14833 LDFLAGS. Pull enable_futex check to top-level.
14834 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
14835 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
14836
14837 First attempt at real configury.
14838 * Makefile, config.h: Remove file.
14839 * Makefile.am, Makefile.in: New file.
14840 * acinclude.m4 aclocal.m4: New file.
14841 * configure.ac, configure.tgt, configure: New file.
14842
14843 * config/posix/lock.c: Rename from sys-lock.c.
14844 * config/posix/mutex.h: Rename from sys-mutex.h.
14845 * config/posix/sem.c: Rename from sys-sem.c.
14846 * config/posix/sem.h: Rename from sys-sem.h.
14847 * config/posix/proc.c: Rename from sys-proc.c.
14848 * config/posix/time.c: Rename from sys-proc.c.
14849
14850 * config/linux/mutex.c: New file.
14851 * config/linux/mutex.h: New file.
14852 * config/linux/sem.c: New file.
14853 * config/linux/sem.h: New file.
14854 * config/linux/i486/futex.h: New file.
14855 * config/linux/x86_64/futex.h: New file.
14856
14857 2005-05-04 Richard Henderson <rth@redhat.com>
14858
14859 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
14860 * libgomp.h: Declare them.
14861 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
14862 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
14863
14864 2005-05-04 Richard Henderson <rth@redhat.com>
14865
14866 * libgomp-1 code drop
14867
14868 2005-05-04 Richard Henderson <rth@redhat.com>
14869
14870 * iter.c (gomp_iter_static_next): Return tri-state on 0.
14871 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
14872 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
14873 (gomp_iter_static_next): Update.
14874 (gomp_ordered_static_next): Update.
14875 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
14876 (gomp_loop_ordered_static_start): Likewise. Exit early for a
14877 totally empty range.
14878 (gomp_loop_ordered_static_next): Refine test for calling
14879 gomp_ordered_static_next.
14880 * testsuite/ordered-1.c: Add case for more threads than iterations.
14881
14882 * iter.c (gomp_iter_runtime_next_locked): Remove.
14883 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
14884 gomp_loop_guided_start, gomp_loop_ordered_static_start,
14885 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
14886 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
14887 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
14888 gomp_loop_ordered_guided_next): Downcase name, make static, add
14889 an external alias with the old name.
14890 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
14891 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
14892 switch and call one of the above static functions.
14893 * libgomp.h: Update.
14894
14895 * work.c (gomp_work_share_start): Lock the mutex for !first too.
14896 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
14897 GOMP_loop_guided_start, GOMP_loop_runtime_start,
14898 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
14899 GOMP_loop_ordered_guided_start): Update to match.
14900 * sections.c (GOMP_sections_start): Likewise.
14901 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
14902
14903 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
14904 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
14905 Use bounds check instead of modulus.
14906 (gomp_ordered_sync): Split out of GOMP_ordered_start.
14907 (gomp_ordered_last): Don't sync with ordered_owner here.
14908 (gomp_ordered_next): Likewise.
14909 (gomp_ordered_static_loop_next): Likewise.
14910 * loop.c, libgomp.h: Update to match.
14911
14912 * libgomp.h (GOMP_barrier): Declare.
14913
14914 * testsuite/barrier-1.c: New file.
14915 * testsuite/critical-1.c: New file.
14916 * testsuite/ordered-2.c: New file.
14917 * testsuite/ordered-1.c: New file.
14918 * testsuite/sections-1.c: New file.
14919 * testsuite/single-1.c: New file.
14920 * testsuite/Makefile (TESTS): Add them.
14921
14922 2005-05-04 Richard Henderson <rth@redhat.com>
14923
14924 * libgomp.h (struct gomp_work_share): Add ordered_owner.
14925 * loop.c (GOMP_loop_static_start): If not the startup thread,
14926 acquire the mutex to wait for initialization complete.
14927 (GOMP_loop_ordered_static_start): Likewise.
14928 (GOMP_loop_ordered_runtime_start): Likewise.
14929 (GOMP_loop_ordered_static_first): Remove.
14930 (GOMP_loop_ordered_dynamic_first): Remove.
14931 (GOMP_loop_ordered_guided_first): Remove.
14932 (GOMP_loop_ordered_runtime_first): Remove.
14933 * ordered.c (gomp_ordered_loop_first): Post to own release when
14934 we're the first thread.
14935 (gomp_ordered_loop_last): Wait on release if not owner.
14936 (gomp_ordered_loop_next): Likewise.
14937 (gomp_ordered_static_loop_init): New.
14938 (gomp_ordered_static_loop_next): Use ordered_owner.
14939 (GOMP_ordered_start): Likewise.
14940 * work.c (gomp_new_work_share): Initialize ordered_owner.
14941
14942 2005-05-03 Richard Henderson <rth@redhat.com>
14943
14944 * Makefile (OPT): New.
14945 (CFLAGS): Use it.
14946
14947 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
14948 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
14949 * libgomp.h, libgomp.map, NOTES: Update to match.
14950
14951 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
14952 Add initialized and thr members.
14953 (gomp_thread_start): Pause when initially spawned to wait for
14954 the whole team to be created.
14955 (gomp_team_start): Release team members at the end.
14956
14957 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
14958 (f_foo_1): Use GOMP_loop_end.
14959 (f_foo_2): Use GOMP_loop_end_nowait.
14960
14961 * testsuite/loop-2.c: New file.
14962 * testsuite/Makefile (TESTS): Add it.
14963
14964 2005-05-03 Richard Henderson <rth@redhat.com>
14965
14966 * iter.c (gomp_iter_static_next): Fix overflow check typo.
14967 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
14968 * team.c (new_team): Initialize oldest_live_gen to 1 if no
14969 initial work_share.
14970
14971 * testsuite/Makefile: New file.
14972 * testsuite/loop-1.c: New file.
14973
14974 2005-05-03 Richard Henderson <rth@redhat.com>
14975
14976 Initial implementation and checkin.
14977 \f
14978 Copyright (C) 2005-2021 Free Software Foundation, Inc.
14979
14980 Copying and distribution of this file, with or without modification,
14981 are permitted in any medium without royalty provided the copyright
14982 notice and this notice are preserved.