[Ada] Fix serial port control setting on GNU/Linux
[gcc.git] / libgomp / ChangeLog
1 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
2
3 * configure: Regenerate.
4
5 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
6
7 * testsuite/libgomp.oacc-c++/cache-1.C: New.
8 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
9
10 2020-11-25 Andrew Stubbs <ams@codesourcery.com>
11
12 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
13 expected results.
14
15 2020-11-24 Andrew Stubbs <ams@codesourcery.com>
16
17 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
18 (reserved): Delete unused define.
19
20 2020-11-24 Thomas Schwinge <thomas@codesourcery.com>
21
22 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
23 Tcl 8.5-specific behavior.
24 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
25
26 2020-11-18 Kwok Cheung Yeung <kcy@codesourcery.com>
27
28 * env.c (gomp_global_icv): Remove nest_var field. Add
29 max_active_levels_var field.
30 (gomp_max_active_levels_var): Remove.
31 (parse_boolean): Return true on success.
32 (handle_omp_display_env): Express OMP_NESTED in terms of
33 max_active_levels_var. Change format specifier for
34 max_active_levels_var.
35 (initialize_env): Set max_active_levels_var from
36 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
37 OMP_PROC_BIND.
38 * icv.c (omp_set_nested): Express in terms of
39 max_active_levels_var.
40 (omp_get_nested): Likewise.
41 (omp_set_max_active_levels): Use max_active_levels_var field instead
42 of gomp_max_active_levels_var.
43 (omp_get_max_active_levels): Likewise.
44 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
45 max_active_levels_var field.
46 (gomp_supported_active_levels): Set to UCHAR_MAX.
47 (gomp_max_active_levels_var): Delete.
48 * libgomp.texi (omp_get_nested): Update documentation.
49 (omp_set_nested): Likewise.
50 (OMP_MAX_ACTIVE_LEVELS): Likewise.
51 (OMP_NESTED): Likewise.
52 (OMP_NUM_THREADS): Likewise.
53 (OMP_PROC_BIND): Likewise.
54 * parallel.c (gomp_resolve_num_threads): Replace reference
55 to nest_var with max_active_levels_var. Use max_active_levels_var
56 field instead of gomp_max_active_levels_var.
57
58 2020-11-18 Tobias Burnus <tobias@codesourcery.com>
59
60 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
61 nvptx_usleep; use also for device={arch(gcn)}.
62
63 2020-11-14 Jakub Jelinek <jakub@redhat.com>
64
65 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
66 (foo): Add tests for non-VLA private and firstprivate clauses on
67 omp task.
68 (bar): Likewise. Remove taking of address from private/firstprivate
69 variables.
70 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
71 (foo): Add p, q, px and s arguments. Add tests for array reductions
72 and for non-VLA private and firstprivate clauses on omp task.
73 (bar): Removed.
74 (main): Adjust foo caller. Don't call bar.
75
76 2020-11-13 Gergö Barany <gergo@codesourcery.com>
77 Thomas Schwinge <thomas@codesourcery.com>
78
79 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
80 New.
81 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
82 Likewise.
83 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
84 Likewise.
85 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
86 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
87
88 2020-11-13 Gergö Barany <gergo@codesourcery.com>
89 Thomas Schwinge <thomas@codesourcery.com>
90
91 PR fortran/94358
92 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
93
94 2020-11-13 Jakub Jelinek <jakub@redhat.com>
95
96 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
97 for array reductions.
98 (main): Adjust foo callers.
99
100 2020-11-12 Jakub Jelinek <jakub@redhat.com>
101
102 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
103 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
104 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
105 * allocator.c (omp_aligned_alloc): New for now static function,
106 add alignment argument and handle it.
107 (omp_alloc): Reimplement using omp_aligned_alloc.
108 (GOMP_alloc, GOMP_free): New functions.
109 (omp_free): Add ialias.
110 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
111 * testsuite/libgomp.c++/allocate-1.C: New test.
112
113 2020-11-12 Thomas Schwinge <thomas@codesourcery.com>
114
115 PR fortran/97782
116 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
117
118 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
119
120 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
121 usable.
122 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
123 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
124 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
125 (goacc_enter_data_internal): Likewise.
126 * target.c (gomp_map_vars_internal):
127 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
128 of gomp_attach_pointer for OpenMP cases.
129 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
130 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
131 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
132
133 2020-11-05 Ulrich Drepper <drepper@redhat.com>
134 Kwok Cheung Yeung <kcy@codesourcery.com>
135
136 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
137 * Makefile.in: Regenerate.
138 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
139 pragmas to ignore -Wdeprecated-declarations warnings.
140 * icv.c: Likewise.
141 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
142 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
143 and omp_get_nested with __GOMP_DEPRECATED_5_0.
144 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
145 deprecated.
146 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
147 to test options.
148 * testsuite/libgomp.c/affinity-1.c: Likewise.
149 * testsuite/libgomp.c/affinity-2.c: Likewise.
150 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
151 * testsuite/libgomp.c/lib-1.c: Likewise.
152 * testsuite/libgomp.c/nested-1.c: Likewise.
153 * testsuite/libgomp.c/nested-2.c: Likewise.
154 * testsuite/libgomp.c/nested-3.c: Likewise.
155 * testsuite/libgomp.c/pr32362-1.c: Likewise.
156 * testsuite/libgomp.c/pr32362-2.c: Likewise.
157 * testsuite/libgomp.c/pr32362-3.c: Likewise.
158 * testsuite/libgomp.c/pr35549.c: Likewise.
159 * testsuite/libgomp.c/pr42942.c: Likewise.
160 * testsuite/libgomp.c/pr61200.c: Likewise.
161 * testsuite/libgomp.c/sort-1.c: Likewise.
162 * testsuite/libgomp.c/target-5.c: Likewise.
163 * testsuite/libgomp.c/target-6.c: Likewise.
164 * testsuite/libgomp.c/teams-1.c: Likewise.
165 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
166 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
167 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
168 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
169 * testsuite/libgomp.fortran/lib1.f90: Likewise.
170 * testsuite/libgomp.fortran/lib2.f: Likewise.
171 * testsuite/libgomp.fortran/nested1.f90: Likewise.
172 * testsuite/libgomp.fortran/teams1.f90: Likewise.
173
174 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
175
176 PR target/85486
177 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
178 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
179 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
180
181 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
182
183 PR testsuite/80219
184 PR testsuite/85303
185 * testsuite/lib/libgomp.exp (libgomp_init): Set
186 'gcc_warning_prefix', 'gcc_error_prefix'.
187
188 2020-10-30 Jakub Jelinek <jakub@redhat.com>
189
190 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
191 even in field_tgt_clear initializer.
192
193 2020-10-28 Jakub Jelinek <jakub@redhat.com>
194
195 * testsuite/libgomp.c/target-42.c: New test.
196
197 2020-10-28 Jakub Jelinek <jakub@redhat.com>
198 Tom de Vries <tdevries@suse.de>
199
200 PR testsuite/81690
201 * testsuite/libgomp.c/usleep.h: New file.
202 * testsuite/libgomp.c/target-32.c: Include usleep.h.
203 (main): Use tgt_usleep instead of usleep.
204 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
205 (main): Use tgt_usleep instead of usleep.
206
207 2020-10-28 Jakub Jelinek <jakub@redhat.com>
208
209 PR lto/96680
210 * testsuite/libgomp.c/declare-variant-1.c: New test.
211
212 2020-10-22 Jakub Jelinek <jakub@redhat.com>
213
214 * testsuite/libgomp.c/target-41.c: New test.
215
216 2020-10-22 Jakub Jelinek <jakub@redhat.com>
217
218 * icv.c (omp_get_initial_device): Remove including corresponding
219 ialias.
220 * icv-device.c (omp_get_initial_device): New function. Return
221 gomp_get_num_devices (). Add ialias.
222 * target.c (resolve_device): Don't fail with
223 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
224 gomp_get_num_devices ().
225 (omp_target_alloc, omp_target_free, omp_target_is_present,
226 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
227 omp_target_disassociate_ptr, omp_pause_resource): Use
228 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
229 first use in the functions, in uses dominated by the
230 gomp_get_num_devices call use num_devices_openmp instead.
231 * libgomp.texi (omp_get_initial_device): Document.
232 * config/gcn/icv-device.c (omp_get_initial_device): New function.
233 Add ialias.
234 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
235 * testsuite/libgomp.c/target-40.c: New test.
236
237 2020-10-21 Jakub Jelinek <jakub@redhat.com>
238
239 * env.c (parse_target_offload): Change new_offload var type to int,
240 preinitialize to -1, remove found var and test new_offload != -1
241 instead of found.
242
243 2020-10-20 Jakub Jelinek <jakub@redhat.com>
244
245 * target.c (gomp_target_init): Inside of the function, use automatic
246 variables corresponding to num_devices, num_devices_openmp and devices
247 global variables and update the globals only at the end of the
248 function.
249
250 2020-10-20 Kwok Cheung Yeung <kcy@codesourcery.com>
251
252 * env.c (gomp_target_offload_var): New.
253 (parse_target_offload): New.
254 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
255 (initialize_env): Parse OMP_TARGET_OFFLOAD.
256 * libgomp.h (gomp_target_offload_t): New.
257 (gomp_target_offload_var): New.
258 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
259 * target.c (resolve_device): Generate error if device not found and
260 offloading is mandatory.
261 (gomp_target_fallback): Generate error if offloading is mandatory.
262 (GOMP_target): Add argument in call to gomp_target_fallback.
263 (GOMP_target_ext): Likewise.
264 (gomp_target_data_fallback): Generate error if offloading is mandatory.
265 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
266 (GOMP_target_data_ext): Likewise.
267 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
268 (gomp_target_init): Return early if offloading is disabled.
269
270 2020-10-15 Kwok Cheung Yeung <kcy@codesourcery.com>
271
272 * libgomp.texi (omp_get_max_active_levels): Modify description.
273 (omp_get_supported_active_levels): Make descriptions consistent.
274
275 2020-10-14 Jakub Jelinek <jakub@redhat.com>
276
277 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
278
279 2020-10-13 Kwok Cheung Yeung <kcy@codesourcery.com>
280
281 * env.c (gomp_max_active_levels_var): Initialize to
282 gomp_supported_active_levels.
283 (initialize_env): Limit gomp_max_active_levels_var to be at most
284 equal to gomp_supported_active_levels.
285 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
286 (omp_get_supported_active_levels_): New.
287 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
288 to at most equal to gomp_supported_active_levels.
289 (omp_get_supported_active_levels): New.
290 * libgomp.h (gomp_supported_active_levels): New.
291 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
292 omp_get_supported_active_levels_.
293 * libgomp.texi (omp_get_supported_active_levels): New.
294 (omp_set_max_active_levels): Update. Add reference to
295 omp_get_supported_active_levels.
296 * omp.h.in (omp_get_supported_active_levels): New.
297 * omp_lib.f90.in (omp_get_supported_active_levels): New.
298 * omp_lib.h.in (omp_get_supported_active_levels): New.
299 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
300 against omp_get_supported_active_levels.
301 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
302
303 2020-10-11 Clement Chigot <clement.chigot@atos.net>
304
305 * config/t-aix: Delete and recreate libgomp before creating
306 FAT library.
307
308 2020-10-08 Tom de Vries <tdevries@suse.de>
309
310 PR libgomp/81802
311 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
312 dimensions.
313
314 2020-10-06 Tom de Vries <tdevries@suse.de>
315
316 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
317
318 2020-10-06 Tom de Vries <tdevries@suse.de>
319
320 PR middle-end/90861
321 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
322
323 2020-10-05 Tom de Vries <tdevries@suse.de>
324
325 PR fortran/95654
326 * testsuite/libgomp.fortran/pr95654.f90: New test.
327
328 2020-10-02 Tobias Burnus <tobias@codesourcery.com>
329
330 * Makefile.in: Regenerate with automake 1.15.1.
331 * aclocal.m4: Likewise.
332 * configure: Likewise.
333 * testsuite/Makefile.in: Likewise.
334
335 2020-09-30 Andrew Stubbs <ams@codesourcery.com>
336
337 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
338 and amdgcn targets.
339
340 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
341
342 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
343
344 2020-09-29 Andrew Stubbs <ams@codesourcery.com>
345
346 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
347 total number of threads is one.
348 (gomp_team_barrier_wake): Likewise.
349 (gomp_team_barrier_wait_end): Likewise.
350 (gomp_team_barrier_wait_cancel_end): Likewise.
351 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
352 (gomp_team_barrier_wake): Likewise.
353 (gomp_team_barrier_wait_end): Likewise.
354 (gomp_team_barrier_wait_cancel_end): Likewise.
355 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
356
357 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
358
359 PR middle-end/96390
360 * testsuite/libgomp.c++/pr96390.C: New test.
361 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
362
363 2020-09-27 Clement Chigot <clement.chigot@atos.net>
364
365 * config/t-aix: Use $(AR) without -X32_64.
366
367 2020-09-25 Jakub Jelinek <jakub@redhat.com>
368
369 * testsuite/libgomp.c/loop-25.c: New test.
370
371 2020-09-22 Tobias Burnus <tobias@codesourcery.com>
372
373 PR fortran/95654
374 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
375
376 2020-09-22 Tom de Vries <tdevries@suse.de>
377
378 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
379 fails.
380
381 2020-09-16 Nathan Sidwell <nathan@acm.org>
382
383 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
384
385 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
386
387 PR fortran/96668
388 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
389
390 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
391
392 PR fortran/96668
393 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
394 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
395 (gomp_map_vars_existing): Update call to it.
396 (gomp_map_fields_existing): Likewise
397 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
398 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
399 remapped.
400 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
401 GOMP_MAP_POINTER.
402 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
403 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
404
405 2020-09-14 Tom de Vries <tdevries@suse.de>
406
407 * config/nvptx/atomic.c: New file. Add
408 __sync_val_compare_and_swap_16.
409 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
410 target offload_target_nvptx.
411
412 2020-09-08 Julian Brown <julian@codesourcery.com>
413
414 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
415 iteration-ordering assumptions.
416
417 2020-09-08 Julian Brown <julian@codesourcery.com>
418
419 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
420 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
421
422 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
423
424 * plugin/plugin-nvptx.c (nvptx_free):
425 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
426 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
427 comments.
428
429 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
430
431 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
432
433 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
434
435 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
436
437 2020-08-13 Jakub Jelinek <jakub@redhat.com>
438
439 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
440 * testsuite/libgomp.c/loop-23.c (main): Likewise.
441 * testsuite/libgomp.c/loop-24.c: New test.
442
443 2020-08-08 Jakub Jelinek <jakub@redhat.com>
444 Tobias Burnus <tobias@codesourcery.com>
445
446 PR fortran/93553
447 * testsuite/libgomp.fortran/pr93553.f90: New test.
448
449 2020-08-05 Jakub Jelinek <jakub@redhat.com>
450
451 * testsuite/libgomp.c/loop-22.c: New test.
452 * testsuite/libgomp.c/loop-23.c: New test.
453
454 2020-08-05 Jakub Jelinek <jakub@redhat.com>
455
456 PR middle-end/96459
457 * testsuite/libgomp.c/teams-3.c: New test.
458 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
459 if not defined yet.
460 (N(test)): Use it before all N(f*) calls.
461 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
462 (main): Don't call all test_* functions from within
463 #pragma omp teams reduction(|:err), call them directly.
464
465 2020-08-04 Tom de Vries <tdevries@suse.de>
466
467 PR target/96428
468 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
469 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
470
471 2020-08-03 Julian Brown <julian@codesourcery.com>
472 Thomas Schwinge <thomas@codesourcery.com>
473
474 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
475 shared-memory devices. Extend with further checking.
476
477 2020-08-03 Martin Jambor <mjambor@suse.cz>
478
479 * plugin/Makefrag.am: Remove configuration of HSA plugin.
480 * aclocal.m4: Regenerated.
481 * Makefile.in: Regenerated.
482 * config.h.in: Regenerated.
483 * configure: Regenerated.
484 * plugin/configfrag.ac: Likewise.
485 * plugin/hsa_ext_finalize.h: Removed.
486 * plugin/plugin-hsa.c: Likewise.
487 * testsuite/Makefile.in: Regenerated.
488 * testsuite/lib/libgomp.exp
489 (offload_target_to_openacc_device_type): Remove hsa case.
490 (check_effective_target_hsa_offloading_selected_nocache): Removed
491 (check_effective_target_hsa_offloading_selected): Likewise.
492 (libgomp_init): Do not add -Wno-hsa to additional_flags.
493 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
494 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
495 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
496 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
497 * testsuite/libgomp.hsa.c/c.exp: Likewise.
498 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
499 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
500 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
501 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
502 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
503 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
504 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
505 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
506 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
507 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
508 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
509 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
510 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
511 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
512 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
513 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
514 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
515 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
516 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
517
518 2020-07-27 Julian Brown <julian@codesourcery.com>
519 Thomas Schwinge <thomas@codesourcery.com>
520
521 * libgomp.h (struct target_var_desc): Rename do_detach field to
522 is_attach.
523 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
524 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
525 (goacc_enter_data_internal): Don't affect reference counts
526 for attach mappings.
527 (goacc_exit_data_internal): Don't affect reference counts for detach
528 mappings.
529 * target.c (gomp_map_vars_existing): Don't affect reference counts for
530 attach mappings.
531 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
532 mark attach mappings.
533 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
534 reference count for attach mappings.
535 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
536 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
537 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
538 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
539 test as shouldfail.
540 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
541 gracefully in no-finalize mode.
542 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
543
544 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
545
546 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
547 use.
548 * testsuite/libgomp.oacc-c/c.exp: Likewise.
549 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
550
551 2020-07-23 Julian Brown <julian@codesourcery.com>
552 Thomas Schwinge <thomas@codesourcery.com>
553
554 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
555 finalization for detach operation.
556 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
557 New test.
558
559 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
560
561 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
562 * libgomp_f.h.in (omp_check_defines): Check whether
563 sizeof of determined Fortran kind and C typedef match.
564 * omp_lib.f90.in: Add omp_depened_kind.
565 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
566 * configure: Regenerate.
567 * Makefile.in: Regenerate.
568 * testsuite/Makefile.in: Regenerate.
569
570 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
571
572 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
573 gcc/testsuite/c-c++-common/gomp/.
574 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
575 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
576 from gcc/testsuite/gfortran.dg/gomp/.
577 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
578
579 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
580
581 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
582 * omp_lib.h.in: Likewise.
583
584 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
585
586 PR target/95620
587 * testsuite/libgomp.c/pr95620.c: New test.
588
589 2020-07-16 Julian Brown <julian@codesourcery.com>
590 Thomas Schwinge <thomas@codesourcery.com>
591
592 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
593 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
594
595 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
596
597 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
598 avoid conversion on 32bit systems from 32bit to 64bit due
599 to -fdefault-integer-8.
600
601 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
602
603 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
604 variables; add character(kind=4) tests; update TODO comment.
605
606 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
607
608 * allocator.c: Add ialias for omp_init_allocator and
609 omp_destroy_allocator.
610 * configure.ac: Set INTPTR_T_KIND.
611 * configure: Regenerate.
612 * Makefile.in: Regenerate.
613 * testsuite/Makefile.in: Regenerate.
614 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
615 omp_set_default_allocator_, omp_get_default_allocator_): New
616 functions and ialias_redirect.
617 * icv.c: Add ialias for omp_set_default_allocator and
618 omp_get_default_allocator.
619 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
620 omp_destroy_allocator_, omp_set_default_allocator_ and
621 omp_get_default_allocator_.
622 * omp_lib.f90.in: Add allocator traits parameters, declare
623 allocator routines and add related kind parameters.
624 * omp_lib.h.in: Likewise.
625 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
626 * testsuite/libgomp.fortran/alloc-1.F90: New test.
627 * testsuite/libgomp.fortran/alloc-2.F90: New test.
628 * testsuite/libgomp.fortran/alloc-3.F: New test.
629 * testsuite/libgomp.fortran/alloc-4.f90: New test.
630 * testsuite/libgomp.fortran/alloc-5.f90: New test.
631
632 2020-07-14 Tom de Vries <tom@codesourcery.com>
633 Cesar Philippidis <cesar@codesourcery.com>
634 Thomas Schwinge <thomas@codesourcery.com>
635 Kwok Cheung Yeung <kcy@codesourcery.com>
636
637 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
638 New variable.
639 (acc_init_1): Set acc_init_thread to pthread_self (). Set
640 acc_init_state to initializing at the start, and to initialized at the
641 end.
642 (self_initializing_p): New function.
643 (acc_get_device_type): Return acc_device_none if called by thread that
644 is currently executing acc_init_1.
645 * libgomp.texi (acc_get_device_type): Update documentation.
646 (Implementation Status and Implementation-Defined Behavior): Likewise.
647 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
648
649 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
650
651 * config/t-aix: Set BITS from compiler cpp macro.
652
653 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
654
655 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
656
657 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
658
659 PR fortran/67311
660 * testsuite/libgomp.fortran/target-map-1.f90: New test.
661
662 2020-07-14 Jakub Jelinek <jakub@redhat.com>
663
664 * testsuite/libgomp.c/loop-21.c: New test.
665
666 2020-07-13 Julian Brown <julian@codesourcery.com>
667 Thomas Schwinge <thomas@codesourcery.com>
668
669 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
670
671 2020-07-10 Julian Brown <julian@codesourcery.com>
672 Thomas Schwinge <thomas@codesourcery.com>
673
674 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
675 dynamic_refcount.
676 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
677 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
678 dynamic_refcount.
679 (acc_unmap_data): Update comment.
680 (goacc_map_var_existing, goacc_enter_datum): Adjust for
681 dynamic_refcount semantics.
682 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
683 Adjust for dynamic_refcount semantics.
684 (goacc_enter_data_internal): Implement "present" case of dynamic
685 memory-map handling here. Update "non-present" case for
686 dynamic_refcount semantics.
687 (goacc_exit_data_internal): Use goacc_exit_datum_1.
688 * target.c (gomp_map_vars_internal): Remove
689 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
690 handling.
691 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
692 (gomp_load_image_to_device): Substitute dynamic_refcount for
693 virtual_refcount.
694 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
695 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
696 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
697 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
698 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
699 trace output.
700 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
701 trace output.
702 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
703 test.
704 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
705 Remove stale comment.
706 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
707 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
708 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
709 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
710 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
711 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
712
713 2020-07-10 Julian Brown <julian@codesourcery.com>
714 Thomas Schwinge <thomas@codesourcery.com>
715
716 * oacc-mem.c (goacc_map_var_existing): New function.
717 (goacc_enter_datum): Use above function.
718 (goacc_exit_datum_1): New function.
719 (goacc_exit_datum): Use above function.
720
721 2020-07-09 Julian Brown <julian@codesourcery.com>
722 Thomas Schwinge <thomas@codesourcery.com>
723
724 PR middle-end/95270
725 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
726 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
727
728 2020-07-09 Julian Brown <julian@codesourcery.com>
729
730 * oacc-mem.c (find_group_last): Group data-movement clauses
731 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
732 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
733
734 2020-07-09 Jakub Jelinek <jakub@redhat.com>
735
736 * testsuite/libgomp.c/loop-19.c: New test.
737 * testsuite/libgomp.c/loop-20.c: New test.
738
739 2020-07-09 Jakub Jelinek <jakub@redhat.com>
740
741 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
742 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
743 it. Remove __omp_alloctrait_value_max__.
744 * allocator.c (omp_init_allocator): Handle omp_atv_default for
745 omp_atk_alignment and omp_atk_pool_size.
746
747 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
748
749 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
750 behavior for 'GOMP_MAP_FORCE_FROM'.
751 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
752
753 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
754
755 * oacc-mem.c (goacc_exit_data_internal): Remove
756 'GOMP_MAP_ALWAYS_FROM' handling.
757
758 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
759
760 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
761 'scan-assembler' with 'scan-offload-rtl'.
762 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
763 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
764 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
765 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
766
767 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
768
769 * target.c (gomp_map_vars_existing): Assert 'kind !=
770 GOMP_MAP_ATTACH'.
771 (gomp_map_vars_internal): Clean up.
772
773 2020-06-27 Jakub Jelinek <jakub@redhat.com>
774
775 * testsuite/libgomp.c/loop-17.c: New test.
776 * testsuite/libgomp.c/loop-18.c: New test.
777
778 2020-06-26 Marek Polacek <polacek@redhat.com>
779
780 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
781
782 2020-06-23 Alexandre Oliva <oliva@adacore.com>
783
784 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
785 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
786
787 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
788
789 * Makefile.am: Use -include.
790 * Makefile.in: Regenerate.
791
792 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
793
794 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
795 * Makefile.in: Regenerate
796 * configure.ac (tmake_file): Substitute.
797 * configure: Regenerate.
798 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
799 * config/t-aix: New file.
800
801 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
802
803 PR lto/94848
804 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
805 'dg-do run'.
806
807 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
808
809 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
810 variant for HSA_RUNTIME_LIB name.
811 (find_executable_symbol_1): Delete.
812 (find_executable_symbol): Delete.
813 (init_kernel_properties): Add ".kd" suffix to symbol names.
814 (find_load_offset): Delete.
815 (create_and_finalize_hsa_program): Remove relocation handling.
816
817 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
818
819 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
820
821 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
822
823 PR lto/94848
824 PR middle-end/95551
825 * testsuite/libgomp.fortran/target-var.f90: New test.
826
827 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
828 Julian Brown <julian@codesourcery.com>
829
830 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
831 special handling.
832
833 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
834 Julian Brown <julian@codesourcery.com>
835
836 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
837 Simplify.
838
839 2020-06-05 Julian Brown <julian@codesourcery.com>
840
841 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
842 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
843
844 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
845
846 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
847 Evaluate 'copyfrom' individually for each entry.
848 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
849
850 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
851
852 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
853 Evaluate 'finalize' individually for each entry.
854 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
855 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
856 file.
857
858 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
859
860 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
861 usage.
862 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
863
864 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
865 Julian Brown <julian@codesourcery.com>
866
867 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
868 checking.
869 (acc_unmap_data, goacc_exit_data_internal): Restore
870 'is_tgt_unmapped' checking.
871 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
872 file.
873 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
874 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
875 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
876 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
877 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
878 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
879
880 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
881 Julian Brown <julian@codesourcery.com>
882
883 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
884
885 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
886
887 PR libgomp/92854
888 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
889
890 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
891
892 PR libgomp/92854
893 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
894 more.
895
896 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
897 Julian Brown <julian@codesourcery.com>
898
899 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
900 'gomp_map_vars'.
901 (acc_map_data): Clean up accordingly.
902
903 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
904
905 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
906 of over-eager 'finalize' clause.
907 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
908 file.
909 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
910 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
911 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
912 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
913 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
914 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
915 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
916 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
917
918 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
919
920 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
921
922 2020-06-04 Julian Brown <julian@codesourcery.com>
923
924 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
925 error path.
926 (goacc_detach_internal): Likewise.
927
928 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
929
930 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
931 the checkpoint.
932 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
933 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
934 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
935 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
936 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
937
938 2020-06-02 Jakub Jelinek <jakub@redhat.com>
939
940 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
941 defined.
942
943 2020-05-30 Jakub Jelinek <jakub@redhat.com>
944
945 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
946
947 2020-05-30 Jakub Jelinek <jakub@redhat.com>
948
949 * allocator.c (omp_alloc): For size == 0, return NULL early.
950
951 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
952
953 PR bootstrap/95413
954 * configure: Regenerated.
955
956 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
957
958 PR libfortran/95191
959 * testsuite/libgomp.fortran/async_io_9.f90: New test.
960
961 2020-05-19 Jakub Jelinek <jakub@redhat.com>
962
963 * omp.h.in (omp_uintptr_t): New typedef.
964 (__GOMP_UINTPTR_T_ENUM): Define.
965 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
966 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
967 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
968 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
969 omp_get_default_allocator, omp_alloc, omp_free): Declare.
970 * libgomp.h (struct gomp_team_state): Add def_allocator field.
971 (gomp_def_allocator): Declare.
972 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
973 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
974 omp_alloc and omp_free.
975 * team.c (gomp_team_start): Copy over ts.def_allocator.
976 * env.c (gomp_def_allocator): New variable.
977 (parse_wait_policy): Adjust function comment.
978 (parse_allocator): New function.
979 (handle_omp_display_env): Print OMP_ALLOCATOR.
980 (initialize_env): Call parse_allocator.
981 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
982 * allocator.c: New file.
983 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
984 functions.
985 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
986 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
987 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
988 * Makefile.in: Regenerated.
989
990 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
991
992 PR bootstrap/95147
993 * configure: Regenerated.
994
995 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
996
997 PR libfortran/95119
998 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
999
1000 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
1001
1002 * configure: Regenerated.
1003
1004 2020-05-14 Jakub Jelinek <jakub@redhat.com>
1005
1006 * testsuite/libgomp.c-c++-common/target-40.c: New test.
1007
1008 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
1009
1010 PR fortran/94690
1011 * testsuite/libgomp.fortran/pr66199-3.f90: New.
1012 * testsuite/libgomp.fortran/pr66199-4.f90: New.
1013 * testsuite/libgomp.fortran/pr66199-5.f90: New.
1014 * testsuite/libgomp.fortran/pr66199-6.f90: New.
1015 * testsuite/libgomp.fortran/pr66199-7.f90: New.
1016 * testsuite/libgomp.fortran/pr66199-8.f90: New.
1017 * testsuite/libgomp.fortran/pr66199-9.f90: New.
1018
1019 2020-05-12 Jakub Jelinek <jakub@redhat.com>
1020
1021 * testsuite/libgomp.c/target-39.c: New test.
1022
1023 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
1024
1025 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
1026 * openacc.f90 (acc_device_current): Likewise.
1027 * openacc.h (acc_device_current): Likewise.
1028 * openacc_lib.h (acc_device_current): Likewise.
1029
1030 PR target/94282
1031 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
1032 'dg-allow-blank-lines-in-output'.
1033
1034 * oacc-init.c (get_openacc_name): Handle 'gcn'.
1035 * testsuite/lib/libgomp.exp
1036 (offload_target_to_openacc_device_type) [amdgcn*]: Return
1037 'radeon'. Adjust all users.
1038 (check_effective_target_openacc_amdgcn_accel_present): Rename
1039 to...
1040 (check_effective_target_openacc_radeon_accel_present): ... this.
1041 Adjust all users.
1042 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
1043 (check_effective_target_openacc_radeon_accel_selected): ... this.
1044 Adjust all users.
1045
1046 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
1047 'dg-do run'.
1048
1049 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
1050
1051 PR other/94629
1052
1053 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
1054 hsa_iterate_agents.
1055 (GOMP_OFFLOAD_init_device): Check return values from both calls to
1056 hsa_agent_iterate_regions.
1057
1058 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
1059
1060 PR middle-end/94635
1061 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
1062 run'.
1063
1064 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
1065
1066 PR middle-end/94120
1067 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
1068 test case.
1069
1070 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
1071
1072 PR middle-end/94635
1073 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
1074
1075 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
1076
1077 PR libgomp/92843
1078 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
1079 Rename to...
1080 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
1081 ... this.
1082 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
1083 Rename to...
1084 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
1085 ... this.
1086 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
1087 Rename to...
1088 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
1089 ... this.
1090 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
1091 Rename to...
1092 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
1093 ... this.
1094 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
1095 Rename to...
1096 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
1097 ... this.
1098 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
1099 Rename to...
1100 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
1101 ... this.
1102 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
1103 Rename to...
1104 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
1105 ... this.
1106 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
1107 Rename to...
1108 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
1109 ... this.
1110 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
1111 Rename to...
1112 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
1113 ... this.
1114 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
1115 Rename to...
1116 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
1117 ... this.
1118 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
1119 Rename to...
1120 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
1121 ... this.
1122 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
1123 Rename to...
1124 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
1125 ... this.
1126 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
1127 Rename to...
1128 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
1129 ... this.
1130 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
1131 Rename to...
1132 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
1133 ... this.
1134 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
1135 Rename to...
1136 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
1137 ... this.
1138 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
1139 Rename to...
1140 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
1141 ... this.
1142
1143 2020-04-10 Julian Brown <julian@codesourcery.com>
1144 Thomas Schwinge <thomas@codesourcery.com>
1145
1146 PR libgomp/92843
1147 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
1148 New file.
1149 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
1150 Likewise.
1151 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
1152 Likewise.
1153 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
1154 Likewise.
1155 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
1156 Likewise.
1157 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
1158 Likewise.
1159 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
1160 Likewise.
1161 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
1162 Likewise.
1163 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
1164 Likewise.
1165 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
1166 Likewise.
1167 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
1168 Likewise.
1169 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
1170 Likewise.
1171 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
1172 Likewise.
1173 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
1174 Likewise.
1175 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
1176 Likewise.
1177 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
1178 Likewise.
1179
1180 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
1181
1182 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
1183 run'.
1184
1185 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
1186
1187 PR middle-end/94120
1188 * libgomp.oacc-c++/declare-pr94120.C: New.
1189
1190 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
1191
1192 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
1193 files.
1194 * configure: Regenerate.
1195 * testsuite/libgomp-site-extra.exp.in: New file.
1196 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
1197 variable.
1198 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
1199 variable.
1200 * testsuite/Makefile.in: Regenerate.
1201
1202 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
1203
1204 PR tree-optimization/89713
1205 PR c/94392
1206 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
1207 'bar.sync'.
1208 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
1209
1210 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
1211
1212 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
1213 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
1214
1215 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
1216
1217 PR libgomp/81689
1218 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
1219
1220 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
1221
1222 PR libgomp/94251
1223 * target.c (gomp_load_image_to_device): Fix link
1224 variable handling.
1225
1226 2020-03-19 Jakub Jelinek <jakub@redhat.com>
1227
1228 PR c++/93931
1229 * testsuite/libgomp.c++/pr93931.C: New test.
1230
1231 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
1232
1233 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
1234 dg-allow-blank-lines-in-output.
1235
1236 2020-03-18 Julian Brown <julian@codesourcery.com>
1237 Tobias Burnus <tobias@codesourcery.com>
1238
1239 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
1240 it work concurrently.
1241
1242 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
1243
1244 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
1245 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
1246 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
1247
1248 2020-03-14 Jakub Jelinek <jakub@redhat.com>
1249
1250 PR middle-end/93566
1251 * testsuite/libgomp.c/pr93566.c: New test.
1252
1253 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
1254
1255 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
1256 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
1257 integer(acc_device_property) for the type of the return value of
1258 acc_get_property.
1259
1260 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
1261
1262 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
1263 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
1264 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
1265 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
1266 (acc_set_device_num): Fix Fortran argument name, use same name for C.
1267 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
1268 corrections; add note about the previous interface and named constant.
1269 (OpenACC library and environment variables): Fix two typos.
1270 * openacc.f90: Use for all procedures the argument names from the spec
1271 as for …_h they are user visible.
1272 (openacc_kinds): Rename acc_device_property to
1273 acc_device_property_kinds and change value to int32 ; and update users.
1274 Re-add acc_device_property for for backward compatibility.
1275 (acc_get_property_string_h): Clean up as acc_device_property_kind
1276 changed.
1277 (acc_get_property_h): Likewise and return c_size_t instead of
1278 acc_device_property.
1279 (openacc): Also export acc_device_property_kinds.
1280 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
1281 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
1282 handling; check against /= 0 instead of == 1 to match C.
1283 * openacc_lib.h: Use for all procedures the argument names from the spec
1284 as for …_h they are user visible. Place !GCC$ into the first column to
1285 be active also for fixed-form souce form.
1286 (acc_device_current, acc_device_property_kind, acc_device_property,
1287 acc_property_memory, acc_property_free_memory, acc_property_name,
1288 acc_property_vendor, acc_property_driver): New named constants.
1289 (acc_get_property, acc_get_property_string): New generic interface.
1290
1291 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
1292
1293 PR libgomp/93481
1294 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
1295 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
1296 optional.
1297 (gomp_target_task_fn): Assert "devicep->async_run_func".
1298 (clear_unsupported_flags): New function to remove unsupported flags
1299 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
1300 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
1301 * testsuite/libgomp.c/target-33.c:
1302 Remove xfail for offload_target_nvptx.
1303 * testsuite/libgomp.c/target-34.c: Likewise.
1304
1305 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
1306
1307 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
1308 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
1309 * testsuite/libgomp.c/target-34.c: Likewise.
1310 * testsuite/libgomp.c/target-link-1.c: Add xfail for
1311 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
1312
1313 2020-02-09 Jakub Jelinek <jakub@redhat.com>
1314
1315 * testsuite/libgomp.c/target-38.c: New test.
1316
1317 2020-02-06 Jakub Jelinek <jakub@redhat.com>
1318
1319 PR libgomp/93515
1320 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
1321
1322 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
1323
1324 * testsuite/lib/libgomp.exp
1325 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
1326 and not as 'source' argument to libgomp_target_compile.
1327
1328 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
1329
1330 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
1331 (gcn_gfx801_s): Remove.
1332 (isa_hsa_name): Remove gfx801.
1333 (isa_gcc_name): Remove gfx801/carizzo.
1334 (isa_code): Remove gfx801.
1335
1336 2020-02-03 Julian Brown <julian@codesourcery.com>
1337 Tobias Burnus <tobias@codesourcery.com>
1338
1339 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
1340 and *_finalize variants; document acc_attach and acc_detach; update
1341 references from OpenACC 2.0 to 2.6.
1342 * openacc.f90 (openacc_version): Update to 201711.
1343 * openacc_lib.h (openacc_version): Update to 201711.
1344 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
1345 openacc_version to 201711.
1346 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
1347
1348 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
1349
1350 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
1351 and vgpr_count fields.
1352 (struct kernel_info): Add a field for a hsa_kernel_description.
1353 (run_kernel): Reduce the number of threads/workers if the requested
1354 number would require too many VGPRs.
1355 (init_basic_kernel_info): Initialize description field with
1356 the hsa_kernel_description entry for the kernel.
1357
1358 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
1359
1360 PR bootstrap/93409
1361 * plugin/configfrag.ac (enable_offload_targets): Skip
1362 HSA and GCN plugin besides -m32 also for -mx32.
1363 * configure: Regenerate.
1364
1365 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
1366
1367 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
1368
1369 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
1370
1371 * plugin-gcn.c (struct agent_info): Add fields "name" and
1372 "vendor_name" ...
1373 (GOMP_OFFLOAD_init_device): ... and init from here.
1374 (struct hsa_context_info): Add field "driver_version_s" ...
1375 (init_hsa_contest): ... and init from here.
1376 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
1377 implementation.
1378 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
1379 Enable test execution for amdgcn and host offloading targets.
1380 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
1381 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
1382 (expect_device_properties): Split function into ...
1383 (expect_device_string_properties): ... this new function ...
1384 (expect_device_memory): ... and this new function.
1385 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
1386 Add test.
1387
1388 2020-01-28 Julian Brown <julian@codesourcery.com>
1389
1390 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
1391 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
1392 component/non-component variable refs in a single directive.
1393 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
1394
1395 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
1396
1397 * configure.ac: Handle `--with-toolexeclibdir='.
1398 * Makefile.in: Regenerate.
1399 * aclocal.m4: Regenerate.
1400 * configure: Regenerate.
1401 * testsuite/Makefile.in: Regenerate.
1402
1403 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
1404
1405 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
1406 (expect_device_properties): Remove "expected_free_mem" argument,
1407 change "expected_total_mem" argument type to size_t;
1408 change types of acc_get_property results to size_t,
1409 adapt format strings.
1410 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
1411 Use %zu instead of %zd to print size_t values.
1412 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
1413 rename to ...
1414 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
1415 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
1416 rename to ...
1417 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
1418
1419 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
1420
1421 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
1422 the device id.
1423
1424 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
1425
1426 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
1427 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
1428 Adjust test dimensions for amdgcn.
1429 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
1430 gang/worker/vector expectations dynamically.
1431 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
1432 (main): Likewise.
1433 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
1434 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
1435 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
1436 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
1437 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
1438 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
1439 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
1440 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
1441 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
1442 (acc_gang): Recognise acc_device_radeon.
1443 (acc_worker): Likewise.
1444 (acc_vector): Likewise.
1445 (main): Set expectations for amdgcn.
1446 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
1447 (main): Adjust gang/worker/vector expectations dynamically.
1448 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
1449 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
1450 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
1451 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
1452 for amdgcn.
1453
1454 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
1455
1456 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
1457 acc_device_radeon.
1458 (openacc): Likewise.
1459 * openacc.f90 (openacc_kinds): Likewise.
1460 (openacc): Likewise.
1461 * openacc.h (acc_device_t): Likewise.
1462 * openacc_lib.h: Likewise.
1463 * testsuite/lib/libgomp.exp
1464 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
1465 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
1466 (cb_compute_construct_end): Likewise.
1467 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
1468 (cb_enqueue_launch_start): Likewise.
1469 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
1470 (cb_enter_data_end): Likewise.
1471 (cb_exit_data_start): Likewise.
1472 (cb_exit_data_end): Likewise.
1473 (cb_compute_construct_end): Likewise.
1474 (cb_enqueue_launch_start): Likewise.
1475 (cb_enqueue_launch_end): Likewise.
1476 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
1477 (main): Likewise.
1478
1479 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
1480
1481 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
1482 to use this instead of 'enum gomp_device_property'.
1483 (GOMP_OFFLOAD_get_property): Rename to...
1484 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
1485 * libgomp.h (struct gomp_device_descr): Move
1486 'GOMP_OFFLOAD_openacc_get_property'...
1487 (struct acc_dispatch_t): ... here. Adjust all users.
1488 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
1489
1490 * target.c (gomp_map_vars_internal)
1491 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
1492 paths.
1493
1494 2020-01-10 Jakub Jelinek <jakub@redhat.com>
1495
1496 PR libgomp/93219
1497 * libgomp.h (gomp_print_string): Change return type from void to int.
1498 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
1499 not all characters have been written.
1500
1501 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
1502
1503 * libgomp.texi: Fix typos, use https.
1504
1505 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
1506
1507 * testsuite/libgomp.fortran/optional-map.f90: Add test for
1508 unallocated/disassociated actual arguments to nonallocatable/nonpointer
1509 dummy arguments; those are/shall be regarded as absent arguments.
1510 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
1511 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
1512
1513 2020-01-01 Jakub Jelinek <jakub@redhat.com>
1514
1515 Update copyright years.
1516
1517 * libgomp.texi: Bump @copying's copyright year.
1518
1519 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
1520
1521 PR libgomp/93065
1522 * oacc-init.c (goacc_runtime_deinitialize): New function.
1523
1524 2019-12-28 Jakub Jelinek <jakub@redhat.com>
1525
1526 PR bootstrap/93074
1527 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
1528 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
1529
1530 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
1531 Frederik Harwath <frederik@codesourcery.com>
1532 Thomas Schwinge <tschwinge@codesourcery.com>
1533
1534 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
1535 * libgomp-plugin.h (gomp_device_property_value): New union.
1536 (gomp_device_property_value): New prototype.
1537 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
1538 constant.
1539 (acc_device_property_t): New enum.
1540 (acc_get_property, acc_get_property_string): New prototypes.
1541 * oacc-init.c (acc_get_device_type): Also assert that result
1542 is not `acc_device_current'.
1543 (get_property_any, acc_get_property, acc_get_property_string):
1544 New functions.
1545 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
1546 `acc_property_memory', `acc_property_free_memory',
1547 `acc_property_name', `acc_property_vendor' and
1548 `acc_property_driver' constants. Add `acc_device_property' data
1549 type.
1550 (openacc_internal): Add `acc_get_property' and
1551 `acc_get_property_string' interfaces. Add `acc_get_property_h',
1552 `acc_get_property_string_h', `acc_get_property_l' and
1553 `acc_get_property_string_l'.
1554 * oacc-host.c (host_get_property): New function.
1555 (host_dispatch): Wire it.
1556 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
1557 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
1558 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
1559 * libgomp.texi (OpenACC Runtime Library Routines): Add
1560 `acc_get_property'.
1561 (acc_get_property): New node.
1562 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
1563 function (stub).
1564 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
1565 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
1566 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
1567 calls.
1568 (GOMP_OFFLOAD_get_property): New function.
1569 (struct ptx_device): Add new field "name".
1570 (cuda_driver_version_s): Add new static variable ...
1571 (nvptx_init): ... and init from here.
1572
1573 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
1574 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
1575 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
1576 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
1577 with test helper functions.
1578
1579 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
1580
1581 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
1582
1583 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
1584 variable.
1585
1586 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
1587
1588 * target.c (gomp_map_vars_internal): Restore 'omp declare target
1589 link' handling.
1590
1591 2019-12-19 Julian Brown <julian@codesourcery.com>
1592
1593 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
1594 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
1595 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
1596
1597 2019-12-19 Julian Brown <julian@codesourcery.com>
1598 Cesar Philippidis <cesar@codesourcery.com>
1599
1600 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
1601 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
1602 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
1603 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
1604 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
1605 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
1606 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
1607 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
1608 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
1609 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
1610 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
1611 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
1612 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
1613
1614 2019-12-19 Julian Brown <julian@codesourcery.com>
1615
1616 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
1617 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
1618 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
1619 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
1620 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
1621 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
1622 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
1623 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
1624 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
1625 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
1626 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
1627 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
1628
1629 2019-12-19 Julian Brown <julian@codesourcery.com>
1630
1631 * libgomp.h (struct target_var_desc): Add do_detach flag.
1632 * oacc-init.c (acc_shutdown_1): Free aux block if present.
1633 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
1634 struct components. Tidy up and add some new checks.
1635 (goacc_enter_data_internal): Update call to find_group_last.
1636 (goacc_exit_data_internal): Support detach operations and
1637 GOMP_MAP_STRUCT.
1638 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
1639 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
1640 attach/detach in enter/exit data detection code.
1641 * target.c (gomp_map_vars_existing): Initialise do_detach field of
1642 tgt_var_desc.
1643 (gomp_map_vars_internal): Support attach.
1644 (gomp_unmap_vars_internal): Support detach.
1645
1646 2019-12-19 Julian Brown <julian@codesourcery.com>
1647 Thomas Schwinge <thomas@codesourcery.com>
1648
1649 * libgomp.h (struct splay_tree_aux): Add attach_count field.
1650 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
1651 * libgomp.map (OACC_2.6): New section. Add acc_attach,
1652 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
1653 acc_detach_finalize_async.
1654 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
1655 acc_detach, acc_detach_async, acc_detach_finalize,
1656 acc_detach_finalize_async): New functions.
1657 * openacc.h (acc_attach, acc_attach_async, acc_detach,
1658 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
1659 prototypes.
1660 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
1661 (gomp_remove_var_internal): Free attachment counts if present.
1662 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
1663 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
1664
1665 2019-12-19 Julian Brown <julian@codesourcery.com>
1666 Cesar Philippidis <cesar@codesourcery.com>
1667
1668 * libgomp.h (gomp_map_val): Add prototype.
1669 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
1670 open-coding device-address calculation.
1671 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
1672 non-present case.
1673
1674 2019-12-19 Julian Brown <julian@codesourcery.com>
1675
1676 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
1677 field for virtual_refcount.
1678 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
1679 (gomp_free_memmap): Remove prototype.
1680 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
1681 instead of calling gomp_free_memmap.
1682 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
1683 dynamic_refcount.
1684 (acc_unmap_data): Open code instead of forcing target_mem_desc's
1685 to_free field to NULL then calling gomp_unmap_vars. Handle
1686 REFCOUNT_INFINITY on target blocks.
1687 (goacc_enter_data): Rename to...
1688 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
1689 handling for mapping groups. Use virtual_refcount instead of
1690 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
1691 map_map_vars_async call. Re-do lookup for target pointer return value.
1692 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
1693 renamed goacc_enter_datum function.
1694 (goacc_exit_data): Rename to...
1695 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
1696 (acc_delete, acc_delete_async, acc_delete_finalize,
1697 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
1698 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
1699 goacc_exit_datum function.
1700 (gomp_acc_remove_pointer, find_pointer): Remove functions.
1701 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
1702 New functions.
1703 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
1704 goacc_exit_data_internal helper functions.
1705 * target.c (gomp_map_vars_internal): Handle
1706 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
1707 semantics.
1708 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
1709 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
1710 virtual_refcount field instead of dynamic_refcount.
1711 (gomp_free_memmap): Remove function.
1712 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
1713 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
1714 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
1715
1716 2019-12-19 Julian Brown <julian@codesourcery.com>
1717 Thomas Schwinge <thomas@codesourcery.com>
1718
1719 * libgomp.h (struct splay_tree_aux): New.
1720 (struct splay_tree_key_s): Replace link_key field with aux pointer.
1721 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
1722 to aux struct.
1723 (gomp_remove_var_internal): Free aux block if present.
1724 (gomp_load_image_to_device): Zero-initialise aux field instead of
1725 link_key field.
1726 (omp_target_associate_pointer): Zero-initialise aux field.
1727
1728 2019-12-18 Jakub Jelinek <jakub@redhat.com>
1729
1730 PR middle-end/86416
1731 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
1732 q or none.
1733 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
1734 L or none.
1735
1736 2019-12-19 Julian Brown <julian@codesourcery.com>
1737 Maciej W. Rozycki <macro@codesourcery.com>
1738 Tobias Burnus <tobias@codesourcery.com>
1739 Thomas Schwinge <thomas@codesourcery.com>
1740
1741 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
1742 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
1743 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
1744 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
1745 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
1746 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
1747 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
1748 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
1749 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
1750
1751 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
1752
1753 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
1754 called...
1755 (goacc_insert_pointer): ... from here, "present" case.
1756 (goacc_insert_pointer): Inline function into...
1757 (GOACC_enter_exit_data): ... here, and simplify.
1758
1759 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
1760 called...
1761 (goacc_insert_pointer): ... from here, "not present" case.
1762
1763 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
1764 all users.
1765
1766 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
1767 'goacc_enter_data', 'goacc_exit_data'.
1768
1769 * oacc-mem.c (delete_copyout): Refactor into...
1770 (goacc_exit_data): ... this. Adjust all users.
1771
1772 * oacc-mem.c (present_create_copy): Refactor into...
1773 (goacc_enter_data): ... this. Adjust all users.
1774
1775 * target.c (gomp_unmap_vars_internal): Add a safeguard to
1776 'gomp_remove_var'.
1777
1778 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
1779 like 'GOMP_MAP_FROM'.
1780
1781 PR libgomp/92726
1782 PR libgomp/92970
1783 PR libgomp/92984
1784 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
1785 fails.
1786 (GOACC_enter_exit_data): Simplify accordingly.
1787 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
1788 subsuming...
1789 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
1790 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
1791 file.
1792 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
1793 subsuming...
1794 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
1795 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
1796 file.
1797 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
1798 subsuming...
1799 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
1800
1801 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
1802 'finalize' handling.
1803
1804 PR libgomp/92848
1805 * oacc-mem.c (acc_map_data, present_create_copy)
1806 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
1807 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
1808 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
1809 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
1810 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
1811 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
1812 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
1813 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
1814 Remove "XFAIL"s.
1815
1816 * target.c (gomp_unmap_tgt): Make it 'static'.
1817 * libgomp.h (gomp_unmap_tgt): Remove.
1818
1819 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
1820
1821 PR middle-end/86416
1822 * testsuite/libgomp.c/pr86416-1.c: New.
1823 * testsuite/libgomp.c/pr86416-2.c: New.
1824
1825 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
1826
1827 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
1828 all symbols as public except for the 'use …, only' imported symbol,
1829 which is private.
1830 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
1831 all symbols from module openacc_kinds as PUBLIC
1832 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
1833 fix comment typo.
1834 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
1835
1836 2019-12-13 Julian Brown <julian@codesourcery.com>
1837
1838 PR libgomp/92881
1839
1840 * libgomp.h (gomp_remove_var_async): Add prototype.
1841 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
1842 gomp_remove_var.
1843 * target.c (gomp_unref_tgt): Change return type to bool, indicating
1844 whether target_mem_desc was unmapped.
1845 (gomp_unref_tgt_void): New.
1846 (gomp_remove_var): Reimplement in terms of...
1847 (gomp_remove_var_internal): ...this new helper function.
1848 (gomp_remove_var_async): New, implemented using above helper function.
1849 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
1850 gomp_unref_tgt.
1851
1852 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
1853
1854 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
1855 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
1856 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
1857 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
1858 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
1859 Likewise.
1860 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
1861 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
1862
1863 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
1864
1865 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
1866 as public except for the 'use …, only' imported symbol, which is
1867 private.
1868 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
1869 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
1870 attributes for acc_copyout_finalize and acc_delete_finalize.
1871
1872 2019-12-11 Jakub Jelinek <jakub@redhat.com>
1873
1874 PR fortran/92899
1875 * testsuite/libgomp.fortran/atomic1.f90: New test.
1876
1877 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
1878
1879 PR libgomp/92843
1880 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
1881 reference counting for structured 'REFCOUNT_INFINITY'. Add some
1882 assertions.
1883 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
1884 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
1885 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
1886 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
1887 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
1888
1889 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
1890 * oacc-mem.c: ... here.
1891 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
1892 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
1893 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
1894 Remove.
1895 * libgomp_g.h: Update.
1896
1897 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
1898 * oacc-async.c: ... here.
1899 * oacc-int.h (goacc_wait): Declare.
1900 * libgomp_g.h: Update
1901
1902 PR libgomp/92854
1903 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
1904 New file.
1905 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
1906 Likewise.
1907 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
1908 Likewise.
1909 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
1910 Likewise.
1911 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
1912 Likewise.
1913 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
1914 Likewise.
1915
1916 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
1917 Julian Brown <julian@codesourcery.com>
1918
1919 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
1920 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
1921
1922 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
1923
1924 * omp_lib.h.in: Fix spelling of function declaration
1925 omp_get_cancell(l)ation.
1926 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
1927 Fix typos.
1928 * env.c: Fix comment typos.
1929 * oacc-host.c: Likewise.
1930 * ordered.c: Likewise.
1931 * task.c: Likewise.
1932 * team.c: Likewise.
1933 * config/gcn/task.c: Likewise.
1934 * config/gcn/team.c: Likewise.
1935 * config/nvptx/task.c: Likewise.
1936 * config/nvptx/team.c: Likewise.
1937 * plugin/plugin-gcn.c: Likewise.
1938 * testsuite/libgomp.fortran/jacobi.f: Likewise.
1939 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
1940 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
1941
1942 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
1943
1944 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
1945 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
1946 unnecessary 'dg-additional-options "-w"'.
1947
1948 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
1949 Julian Brown <julian@codesourcery.com>
1950
1951 PR libgomp/92116
1952 PR libgomp/92877
1953
1954 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
1955 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
1956 Adjust all users.
1957 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
1958 Remove XFAIL.
1959 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
1960 Likewise.
1961 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
1962
1963 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
1964
1965 PR libgomp/92503
1966 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
1967 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
1968 file.
1969 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
1970 Likewise.
1971 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
1972 Likewise.
1973 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
1974 Likewise.
1975 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
1976 Likewise.
1977 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
1978 Likewise.
1979 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
1980 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
1981 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
1982 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
1983 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
1984 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
1985 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
1986 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
1987 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
1988 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
1989
1990 PR libgomp/92840
1991 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
1992 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
1993 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
1994 New file.
1995 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
1996 Likewise.
1997 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
1998 Likewise.
1999 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
2000 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
2001
2002 PR libgomp/92511
2003 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
2004 this file...
2005 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
2006 this file...
2007 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
2008 file...
2009 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
2010 file...
2011 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
2012 ... with their content moved into, and extended in this new file.
2013 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
2014 New file.
2015 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
2016 Likewise.
2017 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
2018 Likewise.
2019 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
2020 Likewise.
2021
2022 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
2023
2024 PR libgomp/92854
2025 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
2026
2027 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
2028
2029 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
2030
2031 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
2032
2033 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
2034 unique.
2035 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
2036 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
2037 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
2038 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
2039 Ditto.
2040 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
2041 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
2042
2043 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
2044
2045 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
2046
2047 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
2048 Kwok Cheung Yeung <kcy@codesourcery.com>
2049
2050 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
2051 if input it a NULL pointer.
2052 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
2053 diagnostic of NULL pointer.
2054 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
2055 * testsuite/libgomp.fortran/optional-map.f90: New.
2056 * testsuite/libgomp.fortran/use_device_addr-1.f90
2057 (test_dummy_opt_callee_1_absent): New.
2058 (test_dummy_opt_call_1): Call it.
2059 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
2060 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
2061 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
2062 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
2063 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
2064 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
2065 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
2066 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
2067 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
2068 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
2069 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
2070 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
2071 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
2072 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
2073 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
2074 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
2075
2076 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
2077
2078 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
2079 expect dg-output of 'Error termination.' for GCN.
2080 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
2081 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
2082
2083 2019-12-04 Jakub Jelinek <jakub@redhat.com>
2084
2085 PR fortran/92756
2086 * testsuite/libgomp.fortran/teams1.f90: New test.
2087 * testsuite/libgomp.fortran/teams2.f90: New test.
2088
2089 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
2090
2091 * oacc-init.c (acc_known_device_type): Add function.
2092 (unknown_device_type_error): Add function.
2093 (name_of_acc_device_t): Change to call unknown_device_type_error
2094 on unknown type.
2095 (resolve_device): Use acc_known_device_type.
2096 (acc_init): Fail if acc_device_t argument is not valid.
2097 (acc_shutdown): Likewise.
2098 (acc_get_num_devices): Likewise.
2099 (acc_set_device_type): Likewise.
2100 (acc_get_device_num): Likewise.
2101 (acc_set_device_num): Likewise.
2102 (acc_on_device): Add comment that argument validity is not checked.
2103
2104 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
2105
2106 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
2107 Recognize amdgcn.
2108 (check_effective_target_openacc_amdgcn_accel_present): New proc.
2109 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
2110 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
2111 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2112 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2113
2114 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
2115
2116 PR libgomp/91938
2117 * configure.tgt: Avoid IE tls on *-*-musl*.
2118
2119 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
2120
2121 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
2122 adding a common-block test case.
2123
2124 2019-11-29 Jakub Jelinek <jakub@redhat.com>
2125
2126 PR c++/60228
2127 * testsuite/libgomp.c++/udr-20.C: New test.
2128 * testsuite/libgomp.c++/udr-21.C: New test.
2129
2130 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
2131
2132 * testsuite/lib/libgomp.exp
2133 (check_effective_target_offload_target_nvptx): New proc.
2134 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
2135 'dg-skip-if'.
2136 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
2137 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
2138 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
2139
2140 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2141
2142 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
2143 * testsuite/libgomp.c/pr39591-2.c: Likewise.
2144 * testsuite/libgomp.c/pr39591-3.c: Likewise.
2145 * testsuite/libgomp.c/private-1.c: Likewise.
2146 * testsuite/libgomp.c/task-1.c: Likewise.
2147 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
2148
2149 2019-11-20 Julian Brown <julian@codesourcery.com>
2150
2151 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
2152 aq->mutex here.
2153 (queue_push_launch): Lock aq->mutex before calling
2154 wait_for_queue_nonfull.
2155 (queue_push_callback): Likewise.
2156 (queue_push_asyncwait): Likewise.
2157 (queue_push_placeholder): Likewise.
2158
2159 2019-11-20 Julian Brown <julian@codesourcery.com>
2160
2161 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
2162 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
2163 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
2164 return code.
2165
2166 2019-11-20 Julian Brown <julian@codesourcery.com>
2167
2168 PR libgomp/92511
2169
2170 * oacc-mem.c (present_create_copy): Fix device pointer return value in
2171 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
2172 in non-present/create case.
2173 (delete_copyout): Change error condition to fail only on copies outside
2174 of mapped block. Adjust error message accordingly.
2175 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
2176 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
2177 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
2178 message.
2179 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
2180 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
2181 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
2182
2183 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
2184
2185 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
2186 libatomic in build-tree testing.
2187
2188 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
2189
2190 * testsuite/Makefile.in: Regenerate.
2191
2192 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
2193
2194 * testsuite/libgomp.c/target-print-1.c: New file.
2195 * testsuite/libgomp.fortran/target-print-1.f90: New file.
2196 * testsuite/libgomp.oacc-c/print-1.c: New file.
2197 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
2198
2199 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
2200 Kwok Cheung Yeung <kcy@codesourcery.com>
2201 Julian Brown <julian@codesourcery.com>
2202 Tom de Vries <tom@codesourcery.com>
2203
2204 * plugin/Makefrag.am: Add amdgcn plugin support.
2205 * plugin/configfrag.ac: Likewise.
2206 * plugin/plugin-gcn.c: New file.
2207 * configure: Regenerate.
2208 * Makefile.in: Regenerate.
2209 * testsuite/Makefile.in: Regenerate.
2210
2211 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
2212
2213 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
2214 and use team_malloc variants.
2215 (gomp_gcn_exit_kernel): Use team_free.
2216 * libgomp.h (TEAM_ARENA_SIZE): Define.
2217 (TEAM_ARENA_START): Define.
2218 (TEAM_ARENA_FREE): Define.
2219 (TEAM_ARENA_END): Define.
2220 (team_malloc): New function.
2221 (team_malloc_cleared): New function.
2222 (team_free): New function.
2223 * team.c (gomp_new_team): Initialize and use team_malloc.
2224 (free_team): Use team_free.
2225 (gomp_free_thread): Use team_free.
2226 (gomp_pause_host): Use team_free.
2227 * work.c (gomp_init_work_share): Use team_malloc.
2228 (gomp_fini_work_share): Use team_free.
2229
2230 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
2231 Kwok Cheung Yeung <kcy@codesourcery.com>
2232 Julian Brown <julian@codesourcery.com>
2233 Tom de Vries <tom@codesourcery.com>
2234
2235 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
2236 * Makefile.in: Regenerate.
2237 * config.h.in (PLUGIN_GCN): Add new undef.
2238 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
2239 * config/gcn/affinity-fmt.c: New file.
2240 * config/gcn/bar.c: New file.
2241 * config/gcn/bar.h: New file.
2242 * config/gcn/doacross.h: New file.
2243 * config/gcn/icv-device.c: New file.
2244 * config/gcn/oacc-target.c: New file.
2245 * config/gcn/simple-bar.h: New file.
2246 * config/gcn/target.c: New file.
2247 * config/gcn/task.c: New file.
2248 * config/gcn/team.c: New file.
2249 * config/gcn/time.c: New file.
2250 * configure.ac: Add amdgcn*-*-*.
2251 * configure: Regenerate.
2252 * configure.tgt: Add amdgcn*-*-*.
2253 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
2254 * libgomp.h (gcn_thrs): Add amdgcn variant.
2255 (set_gcn_thrs): Likewise.
2256 (gomp_thread): Likewise.
2257 * oacc-int.h (goacc_thread): Likewise.
2258 * oacc-target.c: New file.
2259 * openacc.f90 (acc_device_gcn): New parameter.
2260 * openacc.h (acc_device_t): Add acc_device_gcn.
2261 * team.c (gomp_free_pool_helper): Add amdgcn support.
2262
2263 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
2264 Julian Brown <julian@codesourcery.com>
2265
2266 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
2267 parameter.
2268 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
2269 queue constructor.
2270 * oacc-host.c (host_openacc_async_construct): Add device parameter.
2271 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
2272 device parameter.
2273
2274 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
2275
2276 * configure.tgt (nvptx*-*-*): Add "accel" directory.
2277 * config/nvptx/libgomp-plugin.c: Move ...
2278 * config/accel/libgomp-plugin.c: ... to here.
2279 * config/nvptx/lock.c: Move ...
2280 * config/accel/lock.c: ... to here.
2281 * config/nvptx/mutex.c: Move ...
2282 * config/accel/mutex.c: ... to here.
2283 * config/nvptx/mutex.h: Move ...
2284 * config/accel/mutex.h: ... to here.
2285 * config/nvptx/oacc-async.c: Move ...
2286 * config/accel/oacc-async.c: ... to here.
2287 * config/nvptx/oacc-cuda.c: Move ...
2288 * config/accel/oacc-cuda.c: ... to here.
2289 * config/nvptx/oacc-host.c: Move ...
2290 * config/accel/oacc-host.c: ... to here.
2291 * config/nvptx/oacc-init.c: Move ...
2292 * config/accel/oacc-init.c: ... to here.
2293 * config/nvptx/oacc-mem.c: Move ...
2294 * config/accel/oacc-mem.c: ... to here.
2295 * config/nvptx/oacc-plugin.c: Move ...
2296 * config/accel/oacc-plugin.c: ... to here.
2297 * config/nvptx/omp-lock.h: Move ...
2298 * config/accel/omp-lock.h: ... to here.
2299 * config/nvptx/openacc.f90: Move ...
2300 * config/accel/openacc.f90: ... to here.
2301 * config/nvptx/pool.h: Move ...
2302 * config/accel/pool.h: ... to here.
2303 * config/nvptx/proc.c: Move ...
2304 * config/accel/proc.c: ... to here.
2305 * config/nvptx/ptrlock.c: Move ...
2306 * config/accel/ptrlock.c: ... to here.
2307 * config/nvptx/ptrlock.h: Move ...
2308 * config/accel/ptrlock.h: ... to here.
2309 * config/nvptx/sem.c: Move ...
2310 * config/accel/sem.c: ... to here.
2311 * config/nvptx/sem.h: Move ...
2312 * config/accel/sem.h: ... to here.
2313 * config/nvptx/thread-stacksize.h: Move ...
2314 * config/accel/thread-stacksize.h: ... to here.
2315
2316 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
2317 Tobias Burnus <tobias@codesourcery.com>
2318 Frederik Harwath <frederik@codesourcery.com>
2319 Thomas Schwinge <thomas@codesourcery.com>
2320
2321 libgomp/
2322 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
2323 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
2324 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
2325
2326 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
2327 Kwok Cheung Yeung <kcy@codesourcery.com>
2328
2329 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
2330 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
2331
2332 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
2333
2334 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
2335
2336 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
2337 run'.
2338 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
2339 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
2340
2341 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
2342
2343 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
2344 Add expected warnings about missing reduction clauses.
2345 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
2346 Likewise.
2347 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
2348 Likewise.
2349 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
2350 Likewise.
2351
2352 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
2353
2354 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
2355 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
2356 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
2357 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
2358 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
2359 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
2360
2361 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
2362
2363 PR fortran/92305
2364 * testsuite/libgomp.fortran/allocatable2.f90: Use
2365 unique numbers with 'stop'.
2366 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
2367 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
2368 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
2369 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
2370 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
2371
2372 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
2373
2374 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
2375 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
2376 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
2377 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
2378 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
2379 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
2380
2381 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
2382
2383 * testsuite/libgomp.fortran/target9.f90: New.
2384
2385 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
2386
2387 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
2388 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
2389 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
2390 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
2391 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
2392 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
2393 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
2394 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
2395 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
2396 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
2397 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
2398 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
2399 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
2400 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
2401 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
2402 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
2403 * testsuite/libgomp.fortran/associate1.f90: Ditto.
2404 * testsuite/libgomp.fortran/associate2.f90: Ditto.
2405 * testsuite/libgomp.fortran/associate3.f90: Ditto.
2406 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
2407 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
2408 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
2409 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
2410 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
2411 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
2412 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
2413 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
2414 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
2415 * testsuite/libgomp.fortran/character1.f90: Ditto.
2416 * testsuite/libgomp.fortran/character2.f90: Ditto.
2417 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
2418 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
2419 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
2420 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
2421 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
2422 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
2423 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
2424 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
2425 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
2426 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
2427 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
2428 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
2429 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
2430 * testsuite/libgomp.fortran/do1.f90: Ditto.
2431 * testsuite/libgomp.fortran/do2.f90: Ditto.
2432 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
2433 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
2434 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
2435 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
2436 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
2437 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
2438 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
2439 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
2440 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
2441 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
2442 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
2443 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
2444 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
2445 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
2446 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
2447 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
2448 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
2449 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
2450 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
2451 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
2452 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
2453 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
2454 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
2455 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
2456 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
2457 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
2458 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
2459 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
2460 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
2461 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
2462 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
2463 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
2464 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
2465 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
2466 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
2467 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
2468 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
2469 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
2470 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
2471 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
2472 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
2473 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
2474 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
2475 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
2476 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
2477 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
2478 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
2479 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
2480 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
2481 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
2482 * testsuite/libgomp.fortran/lib1.f90: Ditto.
2483 * testsuite/libgomp.fortran/lib4.f90: Ditto.
2484 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
2485 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
2486 * testsuite/libgomp.fortran/nested1.f90: Ditto.
2487 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
2488 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
2489 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
2490 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
2491 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
2492 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
2493 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
2494 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
2495 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
2496 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
2497 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
2498 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
2499 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
2500 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
2501 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
2502 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
2503 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
2504 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
2505 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
2506 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
2507 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
2508 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
2509 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
2510 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
2511 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
2512 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
2513 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
2514 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
2515 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
2516 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
2517 * testsuite/libgomp.fortran/pr28390.f: Ditto.
2518 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
2519 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
2520 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
2521 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
2522 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
2523 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
2524 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
2525 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
2526 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
2527 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
2528 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
2529 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
2530 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
2531 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
2532 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
2533 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
2534 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
2535 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
2536 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
2537 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
2538 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
2539 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
2540 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
2541 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
2542 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
2543 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
2544 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
2545 * testsuite/libgomp.fortran/reference1.f90: Ditto.
2546 * testsuite/libgomp.fortran/reference2.f90: Ditto.
2547 * testsuite/libgomp.fortran/retval1.f90: Ditto.
2548 * testsuite/libgomp.fortran/retval2.f90: Ditto.
2549 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
2550 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
2551 * testsuite/libgomp.fortran/simd1.f90: Ditto.
2552 * testsuite/libgomp.fortran/simd2.f90: Ditto.
2553 * testsuite/libgomp.fortran/simd3.f90: Ditto.
2554 * testsuite/libgomp.fortran/simd4.f90: Ditto.
2555 * testsuite/libgomp.fortran/simd5.f90: Ditto.
2556 * testsuite/libgomp.fortran/simd6.f90: Ditto.
2557 * testsuite/libgomp.fortran/simd7.f90: Ditto.
2558 * testsuite/libgomp.fortran/stack.f90: Ditto.
2559 * testsuite/libgomp.fortran/strassen.f90: Ditto.
2560 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
2561 * testsuite/libgomp.fortran/tabs2.f: Ditto.
2562 * testsuite/libgomp.fortran/target1.f90: Ditto.
2563 * testsuite/libgomp.fortran/target2.f90: Ditto.
2564 * testsuite/libgomp.fortran/target3.f90: Ditto.
2565 * testsuite/libgomp.fortran/target4.f90: Ditto.
2566 * testsuite/libgomp.fortran/target5.f90: Ditto.
2567 * testsuite/libgomp.fortran/target6.f90: Ditto.
2568 * testsuite/libgomp.fortran/target7.f90: Ditto.
2569 * testsuite/libgomp.fortran/target8.f90: Ditto.
2570 * testsuite/libgomp.fortran/task1.f90: Ditto.
2571 * testsuite/libgomp.fortran/task2.f90: Ditto.
2572 * testsuite/libgomp.fortran/task3.f90: Ditto.
2573 * testsuite/libgomp.fortran/task4.f90: Ditto.
2574 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
2575 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
2576 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
2577 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
2578 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
2579 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
2580 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
2581 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
2582 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
2583 * testsuite/libgomp.fortran/udr1.f90: Ditto.
2584 * testsuite/libgomp.fortran/udr10.f90: Ditto.
2585 * testsuite/libgomp.fortran/udr11.f90: Ditto.
2586 * testsuite/libgomp.fortran/udr12.f90: Ditto.
2587 * testsuite/libgomp.fortran/udr13.f90: Ditto.
2588 * testsuite/libgomp.fortran/udr14.f90: Ditto.
2589 * testsuite/libgomp.fortran/udr15.f90: Ditto.
2590 * testsuite/libgomp.fortran/udr2.f90: Ditto.
2591 * testsuite/libgomp.fortran/udr3.f90: Ditto.
2592 * testsuite/libgomp.fortran/udr4.f90: Ditto.
2593 * testsuite/libgomp.fortran/udr5.f90: Ditto.
2594 * testsuite/libgomp.fortran/udr6.f90: Ditto.
2595 * testsuite/libgomp.fortran/udr7.f90: Ditto.
2596 * testsuite/libgomp.fortran/udr8.f90: Ditto.
2597 * testsuite/libgomp.fortran/udr9.f90: Ditto.
2598 * testsuite/libgomp.fortran/vla1.f90: Ditto.
2599 * testsuite/libgomp.fortran/vla2.f90: Ditto.
2600 * testsuite/libgomp.fortran/vla3.f90: Ditto.
2601 * testsuite/libgomp.fortran/vla4.f90: Ditto.
2602 * testsuite/libgomp.fortran/vla5.f90: Ditto.
2603 * testsuite/libgomp.fortran/vla6.f90: Ditto.
2604 * testsuite/libgomp.fortran/vla7.f90: Ditto.
2605 * testsuite/libgomp.fortran/vla8.f90: Ditto.
2606 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
2607 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
2608
2609 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
2610
2611 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
2612 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
2613 Ditto; add 'dg-do run' for torture testing.
2614 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
2615 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
2616 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
2617 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
2618 * testsuite/libgomp.fortran/pr28390.f: Ditto.
2619 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
2620 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
2621 * testsuite/libgomp.fortran/task2.f90: Ditto.
2622 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
2623 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
2624 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
2625 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
2626 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
2627 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
2628
2629 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
2630
2631 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
2632 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
2633 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
2634 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
2635 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
2636 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
2637 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
2638 Use 'stop' not abort().
2639 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
2640 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
2641 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
2642 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
2643 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
2644 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
2645 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
2646 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
2647 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
2648 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
2649 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
2650 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
2651 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
2652 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
2653 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
2654 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
2655 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
2656 Ditto.
2657 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
2658 Ditto.
2659 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
2660 Ditto.
2661 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
2662 Ditto.
2663 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
2664 Ditto.
2665 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
2666 Ditto.
2667 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
2668 Ditto.
2669 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
2670 Ditto.
2671 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
2672 Ditto.
2673 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
2674 Ditto.
2675 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
2676 Ditto.
2677 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
2678 Ditto.
2679 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
2680 Ditto.
2681 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
2682 Ditto.
2683 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
2684 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
2685 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
2686 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
2687 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
2688 Likewise and also add 'dg-do run'.
2689 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
2690 Ditto.
2691
2692 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
2693 Tobias Burnus <tobias@codesourcery.com>
2694
2695 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
2696 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
2697 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
2698
2699 2019-10-14 Jakub Jelinek <jakub@redhat.com>
2700
2701 PR libgomp/92081
2702 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
2703 than 0.
2704
2705 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
2706
2707 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
2708 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
2709
2710 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
2711
2712 PR middle-end/92036
2713 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
2714 file.
2715
2716 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
2717
2718 PR testsuite/91884
2719 * testsuite/libgomp.fortran/fortran.exp: Conditionally
2720 add -lquadmath.
2721 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
2722
2723 2019-10-09 Jakub Jelinek <jakub@redhat.com>
2724
2725 PR libgomp/92028
2726 * target.c (gomp_map_vars_internal): Readd the previous
2727 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
2728 though do that just in the !not_found_cnt case.
2729
2730 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
2731
2732 * gfortran.dg/gomp/target-simd.f90: New.
2733
2734 2019-10-02 Julian Brown <julian@codesourcery.com>
2735 Cesar Philippidis <cesar@codesourcery.com>
2736
2737 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
2738 * target.c (FIELD_TGT_EMPTY): Define.
2739 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
2740 as switch instead of list of ifs.
2741 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
2742
2743 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
2744
2745 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
2746 include. Replace alloca () with __builtin_alloca ().
2747 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
2748
2749 2019-10-01 Jakub Jelinek <jakub@redhat.com>
2750
2751 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
2752 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
2753 * oacc-parallel.c: Don't include "libgomp_g.h".
2754 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
2755 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
2756 * aclocal.m4: Regenerated.
2757 * config.h.in: Regenerated.
2758 * configure: Regenerated.
2759 * Makefile.in: Regenerated.
2760
2761 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
2762
2763 * libgomp_g.h: Include stdint.h instead of gstdint.h.
2764
2765 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
2766
2767 * configure: Regenerate.
2768
2769 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
2770
2771 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
2772 string is initialized.
2773
2774 2019-09-06 Florian Weimer <fweimer@redhat.com>
2775
2776 * configure: Regenerate.
2777
2778 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
2779
2780 PR other/79543
2781 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
2782 scanning to conform to the GNU Coding Standards.
2783 * configure: Regenerate.
2784
2785 2019-08-28 Jakub Jelinek <jakub@redhat.com>
2786
2787 PR libgomp/91530
2788 * testsuite/libgomp.c/scan-21.c: New test.
2789 * testsuite/libgomp.c/scan-22.c: New test.
2790
2791 2019-08-27 Jakub Jelinek <jakub@redhat.com>
2792
2793 PR libgomp/91530
2794 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
2795 targets.
2796 * testsuite/libgomp.c/scan-12.c: Likewise.
2797 * testsuite/libgomp.c/scan-13.c: Likewise.
2798 * testsuite/libgomp.c/scan-14.c: Likewise.
2799 * testsuite/libgomp.c/scan-15.c: Likewise.
2800 * testsuite/libgomp.c/scan-16.c: Likewise.
2801 * testsuite/libgomp.c/scan-17.c: Likewise.
2802 * testsuite/libgomp.c/scan-18.c: Likewise.
2803 * testsuite/libgomp.c/scan-19.c: Likewise.
2804 * testsuite/libgomp.c/scan-20.c: Likewise.
2805 * testsuite/libgomp.c++/scan-9.C: Likewise.
2806 * testsuite/libgomp.c++/scan-10.C: Likewise.
2807 * testsuite/libgomp.c++/scan-11.C: Likewise.
2808 * testsuite/libgomp.c++/scan-12.C: Likewise.
2809 * testsuite/libgomp.c++/scan-14.C: Likewise.
2810 * testsuite/libgomp.c++/scan-15.C: Likewise.
2811 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
2812 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
2813 * testsuite/libgomp.c++/scan-16.C: Likewise.
2814
2815 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
2816
2817 PR fortran/91473
2818 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
2819 -std=legacy so invalid code in the test case is accepted.
2820
2821 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
2822
2823 PR fortran/91422
2824 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
2825 dimension.
2826
2827 2019-08-08 Jakub Jelinek <jakub@redhat.com>
2828
2829 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
2830 perform the lookup in the first loop only if !not_found_cnt, otherwise
2831 perform lookups for it in the second loop guarded with
2832 if (not_found_cnt || has_firstprivate).
2833 * testsuite/libgomp.c/target-37.c: New test.
2834 * testsuite/libgomp.c++/target-22.C: New test.
2835
2836 2019-08-07 Jakub Jelinek <jakub@redhat.com>
2837
2838 * testsuite/libgomp.c/target-18.c (struct S): New type.
2839 (foo): Use use_device_addr clause instead of use_device_ptr clause
2840 where required by OpenMP 5.0, add further tests for both use_device_ptr
2841 and use_device_addr clauses.
2842 * testsuite/libgomp.c++/target-9.C (struct S): New type.
2843 (foo): Use use_device_addr clause instead of use_device_ptr clause
2844 where required by OpenMP 5.0, add further tests for both use_device_ptr
2845 and use_device_addr clauses. Add t and u arguments.
2846 (main): Adjust caller.
2847
2848 2019-08-06 Jakub Jelinek <jakub@redhat.com>
2849
2850 * testsuite/libgomp.c++/loop-13.C: New test.
2851 * testsuite/libgomp.c++/loop-14.C: New test.
2852 * testsuite/libgomp.c++/loop-15.C: New test.
2853
2854 2019-07-31 Jakub Jelinek <jakub@redhat.com>
2855
2856 PR middle-end/91301
2857 * testsuite/libgomp.c++/for-27.C: New test.
2858
2859 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
2860
2861 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
2862 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
2863
2864 2019-07-20 Jakub Jelinek <jakub@redhat.com>
2865
2866 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
2867
2868 2019-07-08 Jakub Jelinek <jakub@redhat.com>
2869
2870 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
2871 * testsuite/libgomp.c++/scan-16.C: Likewise.
2872
2873 2019-07-06 Jakub Jelinek <jakub@redhat.com>
2874
2875 * testsuite/libgomp.c/scan-19.c: New test.
2876 * testsuite/libgomp.c/scan-20.c: New test.
2877
2878 * testsuite/libgomp.c/scan-11.c: New test.
2879 * testsuite/libgomp.c/scan-12.c: New test.
2880 * testsuite/libgomp.c/scan-13.c: New test.
2881 * testsuite/libgomp.c/scan-14.c: New test.
2882 * testsuite/libgomp.c/scan-15.c: New test.
2883 * testsuite/libgomp.c/scan-16.c: New test.
2884 * testsuite/libgomp.c/scan-17.c: New test.
2885 * testsuite/libgomp.c/scan-18.c: New test.
2886 * testsuite/libgomp.c++/scan-9.C: New test.
2887 * testsuite/libgomp.c++/scan-10.C: New test.
2888 * testsuite/libgomp.c++/scan-11.C: New test.
2889 * testsuite/libgomp.c++/scan-12.C: New test.
2890 * testsuite/libgomp.c++/scan-13.C: New test.
2891 * testsuite/libgomp.c++/scan-14.C: New test.
2892 * testsuite/libgomp.c++/scan-15.C: New test.
2893 * testsuite/libgomp.c++/scan-16.C: New test.
2894
2895 2019-07-04 Jakub Jelinek <jakub@redhat.com>
2896
2897 * testsuite/libgomp.c/scan-9.c: New test.
2898 * testsuite/libgomp.c/scan-10.c: New test.
2899
2900 2019-07-03 Jakub Jelinek <jakub@redhat.com>
2901
2902 * testsuite/libgomp.c++/scan-1.C: New test.
2903 * testsuite/libgomp.c++/scan-2.C: New test.
2904 * testsuite/libgomp.c++/scan-3.C: New test.
2905 * testsuite/libgomp.c++/scan-4.C: New test.
2906 * testsuite/libgomp.c++/scan-5.C: New test.
2907 * testsuite/libgomp.c++/scan-6.C: New test.
2908 * testsuite/libgomp.c++/scan-7.C: New test.
2909 * testsuite/libgomp.c++/scan-8.C: New test.
2910 * testsuite/libgomp.c/scan-1.c: New test.
2911 * testsuite/libgomp.c/scan-2.c: New test.
2912 * testsuite/libgomp.c/scan-3.c: New test.
2913 * testsuite/libgomp.c/scan-4.c: New test.
2914 * testsuite/libgomp.c/scan-5.c: New test.
2915 * testsuite/libgomp.c/scan-6.c: New test.
2916 * testsuite/libgomp.c/scan-7.c: New test.
2917 * testsuite/libgomp.c/scan-8.c: New test.
2918
2919 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
2920
2921 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
2922 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
2923 Likewise.
2924
2925 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
2926 check.
2927
2928 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
2929
2930 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
2931 file.
2932
2933 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
2934
2935 PR fortran/90743
2936 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
2937 case.
2938 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
2939 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
2940 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
2941 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
2942
2943 PR testsuite/90861
2944 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
2945
2946 PR middle-end/90862
2947 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
2948
2949 2019-06-16 Tom de Vries <tdevries@suse.de>
2950
2951 PR tree-optimization/89376
2952 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
2953
2954 2019-06-15 Tom de Vries <tdevries@suse.de>
2955
2956 PR tree-optimization/89713
2957 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
2958 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
2959
2960 2019-06-15 Jakub Jelinek <jakub@redhat.com>
2961
2962 PR middle-end/90779
2963 * testsuite/libgomp.c/pr90779.c: New test.
2964 * testsuite/libgomp.fortran/pr90779.f90: New test.
2965
2966 2019-06-15 Tom de Vries <tdevries@suse.de>
2967
2968 PR tree-optimization/90009
2969 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
2970
2971 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
2972
2973 PR tree-optimization/89713
2974 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
2975
2976 2019-06-11 Jakub Jelinek <jakub@redhat.com>
2977
2978 PR target/90811
2979 * testsuite/libgomp.c/pr90811.c: New test.
2980
2981 2019-06-05 Jakub Jelinek <jakub@redhat.com>
2982
2983 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
2984 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
2985
2986 2019-06-04 Jakub Jelinek <jakub@redhat.com>
2987
2988 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
2989 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
2990 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
2991 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
2992
2993 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2994
2995 * configure.ac: Call AX_COUNT_CPUS.
2996 Substitute CPU_COUNT.
2997 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
2998 count fallback.
2999 * aclocal.m4: Regenerate.
3000 * configure: Regenerate.
3001 * Makefile.in, testsuite/Makefile.in: Regenerate.
3002
3003 2019-05-29 Jakub Jelinek <jakub@redhat.com>
3004
3005 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
3006 to ...
3007 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
3008 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
3009 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
3010
3011 2019-05-27 Jakub Jelinek <jakub@redhat.com>
3012
3013 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
3014
3015 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
3016
3017 PR libgomp/90641
3018 * work.c (gomp_init_work_share): Instead of aligning final ordered
3019 value to multiples of long long alignment, align to that the
3020 first part (ordered team ids) and if inline_ordered_team_ids
3021 is not on a long long alignment boundary within the structure,
3022 use __alignof__ (long long) - 1 pad size always.
3023 * loop.c (GOMP_loop_start): Fix *mem computation if
3024 inline_ordered_team_ids is not aligned on long long alignment boundary
3025 within the structure.
3026 * loop-ull.c (GOMP_loop_ull_start): Likewise.
3027 * sections.c (GOMP_sections2_start): Likewise.
3028
3029 2019-05-24 Jakub Jelinek <jakub@redhat.com>
3030
3031 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
3032 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
3033
3034 PR libgomp/90585
3035 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
3036 HAVE_INTTYPES_H is defined.
3037 (print_uint64_t): New typedef.
3038 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
3039 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
3040 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
3041 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
3042 before casting to void *.
3043 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
3044 * oacc-mem.c: Don't include config.h nor stdint.h.
3045 * target.c: Don't include config.h.
3046 * oacc-cuda.c: Likewise.
3047 * oacc-host.c: Don't include stdint.h.
3048
3049 2019-05-20 Jakub Jelinek <jakub@redhat.com>
3050
3051 PR libgomp/90527
3052 * alloc.c (_GNU_SOURCE): Define.
3053
3054 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
3055
3056 * acc_prof.h: New file.
3057 * oacc-profiling.c: Likewise.
3058 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
3059 Add these, respectively.
3060 * Makefile.in: Regenerate.
3061 * env.c (initialize_env): Call goacc_profiling_initialize.
3062 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
3063 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
3064 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
3065 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
3066 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
3067 acc_prof_register, acc_prof_unregister, and acc_register_library.
3068 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
3069 GOMP_PLUGIN_goacc_thread.
3070 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
3071 prof_callbacks_enabled members.
3072 (goacc_prof_enabled, goacc_profiling_initialize)
3073 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
3074 (goacc_profiling_dispatch): Declare.
3075 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
3076 (GOACC_PROFILING_SETUP_P): Define.
3077 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
3078 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
3079 OpenACC Profiling Interface.
3080 * oacc-cuda.c (acc_get_current_cuda_device)
3081 (acc_get_current_cuda_context, acc_get_cuda_stream)
3082 (acc_set_cuda_stream): Likewise.
3083 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
3084 (acc_init, acc_set_device_type, acc_get_device_type)
3085 (acc_get_device_num, goacc_lazy_initialize): Likewise.
3086 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
3087 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
3088 (acc_unmap_data, present_create_copy, delete_copyout)
3089 (update_dev_host): Likewise.
3090 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
3091 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
3092 Likewise.
3093 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
3094 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
3095 Likewise.
3096 * libgomp.texi: Update.
3097 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
3098 file.
3099 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
3100 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3101 Likewise.
3102 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
3103 Likewise.
3104 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
3105 Likewise.
3106 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
3107 Likewise.
3108
3109 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
3110
3111 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
3112 (struct goacc_asyncqueue_list): Likewise.
3113 (goacc_aq): Likewise.
3114 (goacc_aq_list): Likewise.
3115 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
3116 (GOMP_OFFLOAD_openacc_async_test): Remove.
3117 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
3118 (GOMP_OFFLOAD_openacc_async_wait): Remove.
3119 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
3120 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
3121 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
3122 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
3123 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
3124 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
3125 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
3126 (GOMP_OFFLOAD_openacc_async_exec): Declare.
3127 (GOMP_OFFLOAD_openacc_async_construct): Declare.
3128 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
3129 (GOMP_OFFLOAD_openacc_async_test): Declare.
3130 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
3131 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
3132 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
3133 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
3134 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
3135
3136 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
3137 (gomp_acc_insert_pointer): Adjust declaration.
3138 (gomp_copy_host2dev): New declaration.
3139 (gomp_copy_dev2host): Likewise.
3140 (gomp_map_vars_async): Likewise.
3141 (gomp_unmap_tgt): Likewise.
3142 (gomp_unmap_vars_async): Likewise.
3143 (gomp_fini_device): Likewise.
3144
3145 * oacc-async.c (get_goacc_thread): New function.
3146 (get_goacc_thread_device): New function.
3147 (lookup_goacc_asyncqueue): New function.
3148 (get_goacc_asyncqueue): New function.
3149 (acc_async_test): Adjust code to use new async design.
3150 (acc_async_test_all): Likewise.
3151 (acc_wait): Likewise.
3152 (acc_wait_async): Likewise.
3153 (acc_wait_all): Likewise.
3154 (acc_wait_all_async): Likewise.
3155 (goacc_async_free): New function.
3156 (goacc_init_asyncqueues): Likewise.
3157 (goacc_fini_asyncqueues): Likewise.
3158 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
3159 design.
3160 (acc_set_cuda_stream): Likewise.
3161 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
3162 (host_openacc_register_async_cleanup): Remove.
3163 (host_openacc_async_exec): New function.
3164 (host_openacc_async_test): Adjust parameters.
3165 (host_openacc_async_test_all): Remove.
3166 (host_openacc_async_wait): Remove.
3167 (host_openacc_async_wait_async): Remove.
3168 (host_openacc_async_wait_all): Remove.
3169 (host_openacc_async_wait_all_async): Remove.
3170 (host_openacc_async_set_async): Remove.
3171 (host_openacc_async_synchronize): New function.
3172 (host_openacc_async_serialize): New function.
3173 (host_openacc_async_host2dev): New function.
3174 (host_openacc_async_dev2host): New function.
3175 (host_openacc_async_queue_callback): New function.
3176 (host_openacc_async_construct): New function.
3177 (host_openacc_async_destruct): New function.
3178 (struct gomp_device_descr host_dispatch): Remove initialization of old
3179 interface, add initialization of new async sub-struct.
3180 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
3181 (goacc_attach_host_thread_to_device): Remove old async code usage.
3182 * oacc-int.h (goacc_init_asyncqueues): New declaration.
3183 (goacc_fini_asyncqueues): Likewise.
3184 (goacc_async_copyout_unmap_vars): Likewise.
3185 (goacc_async_free): Likewise.
3186 (get_goacc_asyncqueue): Likewise.
3187 (lookup_goacc_asyncqueue): Likewise.
3188 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
3189 design.
3190 (present_create_copy): Adjust code to use new async design.
3191 (delete_copyout): Likewise.
3192 (update_dev_host): Likewise.
3193 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
3194 async design.
3195 (gomp_acc_remove_pointer): Adjust code to use new async design.
3196 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
3197 design.
3198 (GOACC_enter_exit_data): Likewise.
3199 (goacc_wait): Likewise.
3200 (GOACC_update): Likewise.
3201 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
3202 when called, warn as obsolete in comment.
3203 * target.c (goacc_device_copy_async): New function.
3204 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
3205 add goacc_device_copy_async case.
3206 (gomp_copy_dev2host): Likewise.
3207 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
3208 (gomp_map_pointer): Likewise.
3209 (gomp_map_fields_existing): Likewise.
3210 (gomp_map_vars_internal): New always_inline function, renamed from
3211 gomp_map_vars.
3212 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
3213 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
3214 passing goacc_asyncqueue argument.
3215 (gomp_unmap_tgt): Remove static, add attribute_hidden.
3216 (gomp_unref_tgt): New function.
3217 (gomp_unmap_vars_internal): New always_inline function, renamed from
3218 gomp_unmap_vars.
3219 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
3220 (gomp_unmap_vars_async): Implement by calling
3221 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
3222 (gomp_fini_device): New function.
3223 (gomp_exit_data): Adjust gomp_copy_dev2host call.
3224 (gomp_load_plugin_for_device): Remove old interface, adjust to load
3225 new async interface.
3226 (gomp_target_fini): Adjust code to call gomp_fini_device.
3227
3228 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
3229 (struct ptx_stream): Remove.
3230 (struct nvptx_thread): Remove current_stream field.
3231 (cuda_map_create): Remove.
3232 (cuda_map_destroy): Remove.
3233 (map_init): Remove.
3234 (map_fini): Remove.
3235 (map_pop): Remove.
3236 (map_push): Remove.
3237 (struct goacc_asyncqueue): Define.
3238 (struct nvptx_callback): Define.
3239 (struct ptx_free_block): Define.
3240 (struct ptx_device): Remove null_stream, active_streams, async_streams,
3241 stream_lock, and next fields.
3242 (enum ptx_event_type): Remove.
3243 (struct ptx_event): Remove.
3244 (ptx_event_lock): Remove.
3245 (ptx_events): Remove.
3246 (init_streams_for_device): Remove.
3247 (fini_streams_for_device): Remove.
3248 (select_stream_for_async): Remove.
3249 (nvptx_init): Remove ptx_events and ptx_event_lock references.
3250 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
3251 case.
3252 (nvptx_open_device): Add free_blocks initialization, remove
3253 init_streams_for_device call.
3254 (nvptx_close_device): Remove fini_streams_for_device call, add
3255 free_blocks destruct code.
3256 (event_gc): Remove.
3257 (event_add): Remove.
3258 (nvptx_exec): Adjust parameters and code.
3259 (nvptx_free): Likewise.
3260 (nvptx_host2dev): Remove.
3261 (nvptx_dev2host): Remove.
3262 (nvptx_set_async): Remove.
3263 (nvptx_async_test): Remove.
3264 (nvptx_async_test_all): Remove.
3265 (nvptx_wait): Remove.
3266 (nvptx_wait_async): Remove.
3267 (nvptx_wait_all): Remove.
3268 (nvptx_wait_all_async): Remove.
3269 (nvptx_get_cuda_stream): Remove.
3270 (nvptx_set_cuda_stream): Remove.
3271 (GOMP_OFFLOAD_alloc): Adjust code.
3272 (GOMP_OFFLOAD_free): Likewise.
3273 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
3274 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
3275 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
3276 (GOMP_OFFLOAD_openacc_async_wait): Remove.
3277 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
3278 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
3279 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
3280 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
3281 (cuda_free_argmem): New function.
3282 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
3283 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
3284 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
3285 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
3286 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
3287 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
3288 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
3289 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
3290 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
3291 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
3292 (cuda_callback_wrapper): New function.
3293 (cuda_memcpy_sanity_check): New function.
3294 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
3295 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
3296 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
3297 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
3298
3299 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
3300
3301 PR target/87835
3302 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
3303
3304 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
3305
3306 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
3307
3308 2019-03-27 Kevin Buettner <kevinb@redhat.com>
3309
3310 * team.c (gomp_team_start): Initialize pool->threads[0].
3311
3312 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
3313
3314 * testsuite/libgomp.oacc-c++/c++.exp: Specify
3315 "-foffload=$offload_target".
3316 * testsuite/libgomp.oacc-c/c.exp: Likewise.
3317 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
3318 * testsuite/lib/libgomp.exp
3319 (check_effective_target_openacc_nvidia_accel_configured): Remove,
3320 as (conceptually) merged into
3321 check_effective_target_openacc_nvidia_accel_selected. Adjust all
3322 users.
3323
3324 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
3325 * testsuite/libgomp-test-support.exp.in: Adjust.
3326 * testsuite/lib/libgomp.exp: Likewise. Don't populate
3327 openacc_device_types_s.
3328 (offload_target_to_openacc_device_type): New proc.
3329 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
3330 * testsuite/libgomp.oacc-c/c.exp: Likewise.
3331 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
3332 * Makefile.in: Regenerate.
3333 * configure: Likewise.
3334 * testsuite/Makefile.in: Likewise.
3335
3336 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
3337 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
3338 instead of OFFLOAD_TARGETS.
3339 * target.c (gomp_target_init): Adjust.
3340 * testsuite/libgomp-test-support.exp.in: Likewise.
3341 * testsuite/lib/libgomp.exp: Likewise. Populate
3342 openacc_device_types_s instead of offload_targets_s_openacc.
3343 (check_effective_target_openacc_nvidia_accel_selected)
3344 (check_effective_target_openacc_host_selected): Adjust.
3345 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
3346 * testsuite/libgomp.oacc-c/c.exp: Likewise.
3347 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
3348 * Makefile.in: Regenerate.
3349 * config.h.in: Likewise.
3350 * configure: Likewise.
3351 * testsuite/Makefile.in: Likewise.
3352
3353 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
3354 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
3355 "offloading: supported, but hardware not accessible".
3356 * testsuite/libgomp.oacc-c/c.exp: Likewise.
3357 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
3358
3359 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
3360
3361 PR c/87924
3362 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
3363 goacc_wait().
3364 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
3365 and related adjustment.
3366
3367 2019-01-30 Jakub Jelinek <jakub@redhat.com>
3368
3369 PR c++/88988
3370 * testsuite/libgomp.c++/pr88988.C: New test.
3371
3372 2019-01-28 Jakub Jelinek <jakub@redhat.com>
3373
3374 PR middle-end/89002
3375 * testsuite/libgomp.c/pr89002.c: New test.
3376
3377 2019-01-28 Richard Biener <rguenther@suse.de>
3378
3379 PR testsuite/89064
3380 PR tree-optimization/86865
3381 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
3382
3383 2019-01-24 Tom de Vries <tdevries@suse.de>
3384
3385 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
3386 once instantiated_devices drops to 0.
3387
3388 2019-01-23 Tom de Vries <tdevries@suse.de>
3389
3390 PR target/PR88946
3391 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
3392 cuMemFree.
3393 (nvptx_exec): Don't call map_push if mapnum == 0.
3394 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
3395
3396 2019-01-23 Tom de Vries <tdevries@suse.de>
3397
3398 PR target/88941
3399 PR target/88939
3400 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
3401 (map_fini): Remove "assert (!s->map->active)".
3402 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
3403
3404 2019-01-23 Tom de Vries <tdevries@suse.de>
3405
3406 PR target/87835
3407 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
3408 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
3409
3410 2019-01-15 Tom de Vries <tdevries@suse.de>
3411
3412 PR target/80547
3413 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
3414 New test.
3415
3416 2019-01-12 Tom de Vries <tdevries@suse.de>
3417
3418 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
3419 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
3420 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
3421 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
3422
3423 2019-01-12 Tom de Vries <tdevries@suse.de>
3424
3425 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
3426
3427 2019-01-12 Tom de Vries <tdevries@suse.de>
3428
3429 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
3430 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
3431 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
3432
3433 2019-01-12 Tom de Vries <tdevries@suse.de>
3434
3435 PR target/85486
3436 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
3437 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
3438
3439 2019-01-12 Tom de Vries <tdevries@suse.de>
3440
3441 PR target/85381
3442 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
3443 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
3444
3445 2019-01-12 Tom de Vries <tdevries@suse.de>
3446
3447 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
3448 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
3449 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
3450
3451 2019-01-12 Tom de Vries <tdevries@suse.de>
3452
3453 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
3454 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
3455 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
3456
3457 2019-01-12 Tom de Vries <tdevries@suse.de>
3458
3459 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
3460 resources diagnostic.
3461
3462 2019-01-12 Tom de Vries <tdevries@suse.de>
3463
3464 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
3465 vector length to be 128.
3466 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
3467 length 2097152 to be reduced to 1024 instead of 32.
3468
3469 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
3470 James Norris <jnorris@codesourcery.com>
3471
3472 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
3473 Library Routines", and "Environment Variables".
3474
3475 2019-01-11 Tom de Vries <tdevries@suse.de>
3476
3477 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
3478 num_workers 16.
3479
3480 2019-01-11 Tom de Vries <tdevries@suse.de>
3481
3482 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
3483 -foffload=-w.
3484 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
3485 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
3486 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
3487 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
3488
3489 2019-01-11 Tom de Vries <tdevries@suse.de>
3490
3491 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
3492 test.
3493
3494 2019-01-10 Nathan Sidwell <nathan@acm.org>
3495 Julian Brown <julian@codesourcery.com>
3496
3497 PR lto/71959
3498 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
3499 * testsuite/libgomp.oacc-c++/pr71959.C: New.
3500
3501 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3502
3503 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
3504 and paste code.
3505
3506 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3507
3508 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
3509 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
3510 write.
3511
3512 2019-01-09 Tom de Vries <tdevries@suse.de>
3513
3514 PR target/88756
3515 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
3516 #define instead of "const int".
3517 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
3518 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
3519 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
3520 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
3521
3522 2019-01-09 Tom de Vries <tdevries@suse.de>
3523
3524 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
3525 one worker.
3526
3527 2019-01-07 Tom de Vries <tdevries@suse.de>
3528
3529 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
3530 GOMP_OPENACC_DIM argument.
3531
3532 2019-01-03 Tom de Vries <tdevries@suse.de>
3533
3534 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
3535 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
3536
3537 2019-01-01 Jakub Jelinek <jakub@redhat.com>
3538
3539 Update copyright years.
3540
3541 2019-01-01 Jakub Jelinek <jakub@redhat.com>
3542
3543 * libgomp.texi: Bump @copying's copyright year.
3544
3545 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
3546
3547 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
3548 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
3549 (GOACC_declare): Redefine the "device" argument to "flags".
3550
3551 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
3552 Cesar Philippidis <cesar@codesourcery.com>
3553
3554 * target.c (struct gomp_coalesce_chunk): New structure.
3555 (struct gomp_coalesce_buf): Update the chunks member to use that
3556 type. Adjust all users.
3557
3558 2018-12-19 Tom de Vries <tdevries@suse.de>
3559
3560 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
3561 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
3562 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
3563
3564 2018-12-19 Tom de Vries <tdevries@suse.de>
3565
3566 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
3567 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
3568 gcc/testsuite/gcc.dg/goacc.
3569 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
3570
3571 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
3572 Chung-Lin Tang <cltang@codesourcery.com>
3573
3574 * oacc-mem.c (acc_present_or_create): Remove definition and change
3575 to alias of acc_create.
3576 (acc_present_or_copyin): Remove definition and change to alias of
3577 acc_copyin.
3578 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
3579 of acc_present_or_create.
3580 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
3581 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
3582 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
3583 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
3584 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
3585 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
3586 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
3587 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
3588 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
3589 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
3590 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
3591 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
3592 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
3593 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
3594 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
3595 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
3596
3597 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
3598
3599 PR libgomp/88495
3600 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
3601 "identical parameters".
3602 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
3603 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
3604
3605 PR libgomp/88484
3606 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
3607 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
3608
3609 PR libgomp/88407
3610 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
3611 (nvptx_wait_async): Unseen async-argument is a no-op.
3612 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
3613 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
3614 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
3615 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
3616 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
3617 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
3618 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
3619 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
3620 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
3621
3622 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
3623 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
3624
3625 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
3626
3627 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
3628 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
3629 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
3630
3631 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
3632
3633 PR libgomp/88370
3634 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
3635 (acc_set_cuda_stream): Clarify.
3636 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
3637 "async_valid_p".
3638 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
3639 acc_async_sync".
3640 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
3641 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
3642 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
3643 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
3644
3645 2018-12-14 Tom de Vries <tdevries@suse.de>
3646
3647 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
3648 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
3649 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
3650 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
3651 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
3652
3653 2018-12-13 Tom de Vries <tdevries@suse.de>
3654
3655 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
3656 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
3657 * fortran.c (omp_display_affinity_): ... here.
3658 * libgomp.h (gomp_print_string): Declare.
3659 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
3660 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
3661 write.
3662
3663 2018-12-13 Jakub Jelinek <jakub@redhat.com>
3664
3665 PR libgomp/88460
3666 * testsuite/libgomp.c++/for-24.C (results): Include it in
3667 omp declare target region.
3668 (main): Use map (always, tofrom: results) instead of
3669 map (tofrom: results).
3670
3671 2018-12-12 Jakub Jelinek <jakub@redhat.com>
3672
3673 PR fortran/88463
3674 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
3675 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
3676
3677 * testsuite/libgomp.c-c++-common/for-16.c: New test.
3678
3679 2018-12-12 Andreas Schwab <schwab@suse.de>
3680
3681 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
3682 clobbered.
3683
3684 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
3685
3686 PR fortran/88411
3687 * testsuite/libgomp.fortran/async_io_8.f90: New test.
3688
3689 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
3690 Jakub Jelinek <jakub@redhat.com>
3691
3692 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
3693 devicep->host2dev_func.
3694
3695 2018-12-08 Jakub Jelinek <jakub@redhat.com>
3696
3697 PR libgomp/87995
3698 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
3699 tls_runtime effective target.
3700 (t): New threadprivate variable.
3701 (main): Set t in threads which execute iterations of the worksharing
3702 loop. Propagate that to the task after the loop and don't abort
3703 if the current taskgroup hasn't been cancelled.
3704
3705 2018-12-02 Jakub Jelinek <jakub@redhat.com>
3706
3707 * testsuite/libgomp.c/task-reduction-3.c: New test.
3708
3709 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
3710
3711 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
3712
3713 PR libgomp/88288
3714 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
3715 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
3716
3717 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
3718
3719 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
3720
3721 2018-10-19 Richard Biener <rguenther@suse.de>
3722
3723 PR tree-optimization/88182
3724 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
3725
3726 2018-11-26 Jakub Jelinek <jakub@redhat.com>
3727
3728 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
3729 (RUNTEST): Don't define.
3730 (RUNTESTDEFAULTFLAGS): Add.
3731 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
3732 (distclean-am): Depend on distclean-DEJAGNU.
3733 (check-am): If -j% option is present in MFLAGS and if
3734 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
3735 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
3736 * testsuite/Makefile.in: Regenerated.
3737
3738 2018-11-26 Richard Biener <rguenther@suse.de>
3739
3740 PR tree-optimization/88182
3741 * testsuite/libgomp.c++/pr88182.C: New testcase.
3742
3743 2018-11-20 Jakub Jelinek <jakub@redhat.com>
3744
3745 PR bootstrap/88106
3746 * config/mingw32/affinity-fmt.c: New file.
3747
3748 2018-11-09 Jakub Jelinek <jakub@redhat.com>
3749
3750 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
3751 (gomp_display_affinity): Use __builtin_choose_expr to handle
3752 properly handle argument having integral, or pointer or some other
3753 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
3754 with uint64_t type instead of %llx and unsigned long long.
3755
3756 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
3757 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
3758
3759 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3760
3761 * affinity.c: Include <string.h>, <stdio.h>.
3762 (gomp_display_affinity_place): Remove cpusetp.
3763 * teams.c: Include <limits.h>.
3764
3765 2018-11-08 Jakub Jelinek <jakub@redhat.com>
3766
3767 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
3768 in_reduction clause for s[0].
3769
3770 * affinity.c (gomp_display_affinity_place): New function.
3771 * affinity-fmt.c: New file.
3772 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
3773 * config/linux/affinity.c (gomp_display_affinity_place): New function.
3774 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
3775 Move these functions to ...
3776 * config/nvptx/teams.c: ... here. New file.
3777 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
3778 New functions.
3779 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
3780 functions.
3781 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
3782 and _aligned_malloc.
3783 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
3784 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
3785 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
3786 gomp_affinity_format_len): New variables.
3787 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
3788 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
3789 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
3790 modifiers. Display (non-default) chunk sizes. Print
3791 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
3792 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
3793 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
3794 * fortran.c: Include stdio.h and string.h.
3795 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
3796 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
3797 (omp_set_affinity_format_, omp_get_affinity_format_,
3798 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
3799 omp_pause_resource_all_): New functions.
3800 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
3801 switch.
3802 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
3803 functions to ...
3804 * teams.c: ... here. New file.
3805 * libgomp_g.h: Include gstdint.h.
3806 (GOMP_loop_nonmonotonic_runtime_start,
3807 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
3808 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
3809 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
3810 GOMP_parallel_loop_nonmonotonic_runtime,
3811 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
3812 GOMP_loop_ull_nonmonotonic_runtime_start,
3813 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
3814 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
3815 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
3816 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
3817 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
3818 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
3819 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
3820 GOMP_teams_reg): Declare.
3821 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
3822 gomp_aligned_alloc uses fallback implementation.
3823 (gomp_aligned_alloc, gomp_aligned_free): Declare.
3824 (enum gomp_schedule_type): Add GFS_MONOTONIC.
3825 (struct gomp_doacross_work_share): Add extra field.
3826 (struct gomp_work_share): Add task_reductions field.
3827 (struct gomp_taskgroup): Add workshare and reductions fields.
3828 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
3829 (gomp_thread_handle): New typedef.
3830 (gomp_display_affinity_place, gomp_set_affinity_format,
3831 gomp_display_string, gomp_display_affinity,
3832 gomp_display_affinity_thread): Declare.
3833 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
3834 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
3835 gomp_workshare_task_reduction_register): Declare.
3836 (gomp_team_start): Add taskgroup argument.
3837 (gomp_pause_host): Declare.
3838 (gomp_init_work_share, gomp_work_share_start): Change bool argument
3839 to size_t.
3840 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
3841 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
3842 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
3843 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
3844 GOMP_loop_ull_doacross_start,
3845 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
3846 GOMP_loop_maybe_nonmonotonic_runtime_next,
3847 GOMP_loop_maybe_nonmonotonic_runtime_start,
3848 GOMP_loop_nonmonotonic_runtime_next,
3849 GOMP_loop_nonmonotonic_runtime_start,
3850 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
3851 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
3852 GOMP_loop_ull_nonmonotonic_runtime_next,
3853 GOMP_loop_ull_nonmonotonic_runtime_start,
3854 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
3855 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
3856 GOMP_taskgroup_reduction_register,
3857 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
3858 GOMP_teams_reg and GOMP_taskwait_depend.
3859 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
3860 omp_{capture,display}_affinity{,_}, and
3861 omp_[gs]et_affinity_format{,_}.
3862 * loop.c: Include string.h.
3863 (GOMP_loop_runtime_next): Add ialias.
3864 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
3865 (gomp_loop_static_start, gomp_loop_dynamic_start,
3866 gomp_loop_guided_start, gomp_loop_ordered_static_start,
3867 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3868 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
3869 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
3870 or gomp_doacross_init callers.
3871 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
3872 GOMP_loop_doacross_start): New functions.
3873 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3874 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
3875 Mask off GFS_MONOTONIC bit.
3876 (GOMP_loop_maybe_nonmonotonic_runtime_next,
3877 GOMP_loop_maybe_nonmonotonic_runtime_start,
3878 GOMP_loop_nonmonotonic_runtime_next,
3879 GOMP_loop_nonmonotonic_runtime_start,
3880 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
3881 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
3882 functions.
3883 (gomp_parallel_loop_start): Pass NULL as taskgroup to
3884 gomp_team_start.
3885 * loop_ull.c: Include string.h.
3886 (GOMP_loop_ull_runtime_next): Add ialias.
3887 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
3888 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
3889 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
3890 gomp_loop_ull_ordered_dynamic_start,
3891 gomp_loop_ull_ordered_guided_start,
3892 gomp_loop_ull_doacross_static_start,
3893 gomp_loop_ull_doacross_dynamic_start,
3894 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
3895 and gomp_doacross_ull_init callers.
3896 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
3897 GOMP_loop_ull_doacross_start): New functions.
3898 (GOMP_loop_ull_runtime_start,
3899 GOMP_loop_ull_ordered_runtime_start,
3900 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
3901 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
3902 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
3903 GOMP_loop_ull_nonmonotonic_runtime_next,
3904 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
3905 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
3906 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
3907 (omp_pause_resource_t, omp_depend_t): New typedefs.
3908 (enum omp_lock_hint_t): Renamed to ...
3909 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
3910 enumerators using numbers and omp_lock_hint_* as their aliases.
3911 (omp_lock_hint_t): New typedef. Rename to ...
3912 (omp_sync_hint_t): ... this.
3913 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
3914 omp_sync_hint_t instead of omp_lock_hint_t.
3915 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
3916 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
3917 Declare.
3918 (omp_target_is_present, omp_target_disassociate_ptr):
3919 Change first argument from void * to const void *.
3920 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
3921 from void * to const void *.
3922 (omp_target_associate_ptr): Change first and second arguments from
3923 void * to const void *.
3924 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
3925 omp_pause_hard): New parameters.
3926 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
3927 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
3928 New interfaces.
3929 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
3930 omp_pause_hard): New parameters.
3931 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
3932 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
3933 New externals.
3934 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
3935 EXTRA argument. If not needed to prepare array, if extra is 0,
3936 clear ws->doacross, otherwise allocate just doacross structure and
3937 extra payload. If array is needed, allocate also extra payload.
3938 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
3939 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
3940 doacross == NULL.
3941 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
3942 gomp_team_start.
3943 (GOMP_parallel): Likewise. Formatting fix.
3944 (GOMP_parallel_reductions): New function.
3945 (GOMP_cancellation_point): If taskgroup has workshare
3946 flag set, check cancelled of prev taskgroup if any.
3947 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
3948 on prev taskgroup if any.
3949 * sections.c: Include string.h.
3950 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
3951 (GOMP_sections_start): Adjust gomp_work_share_start caller.
3952 (GOMP_sections2_start): New function.
3953 (GOMP_parallel_sections_start, GOMP_parallel_sections):
3954 Pass NULL as taskgroup to gomp_team_start.
3955 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
3956 gomp_work_share_start callers.
3957 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
3958 If taskgroup has workshare flag set, check cancelled on prev
3959 taskgroup if any. Guard all cancellation tests with
3960 gomp_cancel_var test.
3961 (omp_target_is_present, omp_target_disassociate_ptr):
3962 Change ptr argument from void * to const void *.
3963 (omp_target_memcpy): Change src argument from void * to const void *.
3964 (omp_target_memcpy_rect): Likewise.
3965 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
3966 instead of char * where needed.
3967 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
3968 from void * to const void *.
3969 (omp_pause_resource, omp_pause_resource_all): New functions.
3970 * task.c (gomp_task_handle_depend): Handle new depend array format
3971 in addition to the old. Handle mutexinoutset kinds the same as
3972 inout for now, handle unspecified kinds.
3973 (gomp_create_target_task): If taskgroup has workshare flag set, check
3974 cancelled on prev taskgroup if any. Guard all cancellation tests with
3975 gomp_cancel_var test. Handle new depend array format count in
3976 addition to the old.
3977 (GOMP_task): Likewise. Adjust function comment.
3978 (gomp_task_run_pre): If taskgroup has workshare flag set, check
3979 cancelled on prev taskgroup if any. Guard all cancellation tests with
3980 gomp_cancel_var test.
3981 (GOMP_taskwait_depend): New function.
3982 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
3983 format in addition to the old. Handle mutexinoutset kinds the same as
3984 inout for now, handle unspecified kinds. Fix a function comment typo.
3985 (gomp_taskgroup_init): New function.
3986 (GOMP_taskgroup_start): Use it.
3987 (gomp_reduction_register, gomp_create_artificial_team,
3988 GOMP_taskgroup_reduction_register,
3989 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
3990 gomp_parallel_reduction_register,
3991 gomp_workshare_task_reduction_register,
3992 gomp_workshare_taskgroup_start,
3993 GOMP_workshare_task_reduction_unregister): New functions.
3994 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
3995 check cancelled on prev taskgroup if any. Guard all cancellation
3996 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
3997 by calling GOMP_taskgroup_reduction_register.
3998 * team.c (gomp_thread_attr): Remove comment.
3999 (struct gomp_thread_start_data): Add handle field.
4000 (gomp_thread_start): Call pthread_detach.
4001 (gomp_new_team): Adjust gomp_init_work_share caller.
4002 (gomp_free_pool_helper): Call pthread_detach.
4003 (gomp_team_start): Add taskgroup argument, initialize implicit
4004 tasks' taskgroup field to that. Don't call
4005 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
4006 (gomp_team_end): Determine nesting by thr->ts.level != 0
4007 rather than thr->ts.team != NULL.
4008 (gomp_pause_pool_helper, gomp_pause_host): New functions.
4009 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
4010 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
4011 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
4012 if more than 1 allocate also extra payload at the end of array. Never
4013 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
4014 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
4015 return true instead of ws.
4016 * Makefile.in: Regenerated.
4017 * configure: Regenerated.
4018 * config.h.in: Regenerated.
4019 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
4020 in some cases.
4021 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
4022 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
4023 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
4024 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
4025 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
4026 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
4027 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
4028 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
4029 * testsuite/libgomp.c-c++-common/for-10.c: New test.
4030 * testsuite/libgomp.c-c++-common/for-11.c: New test.
4031 * testsuite/libgomp.c-c++-common/for-12.c: New test.
4032 * testsuite/libgomp.c-c++-common/for-13.c: New test.
4033 * testsuite/libgomp.c-c++-common/for-14.c: New test.
4034 * testsuite/libgomp.c-c++-common/for-15.c: New test.
4035 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
4036 define a different N(test), don't define N(f0) to N(f14), but instead
4037 define N(f20) to N(f34) using != comparisons.
4038 * testsuite/libgomp.c-c++-common/for-7.c: New test.
4039 * testsuite/libgomp.c-c++-common/for-8.c: New test.
4040 * testsuite/libgomp.c-c++-common/for-9.c: New test.
4041 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
4042 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
4043 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
4044 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
4045 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
4046 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
4047 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
4048 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
4049 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
4050 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
4051 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
4052 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
4053 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
4054 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
4055 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
4056 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
4057 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
4058 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
4059 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
4060 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
4061 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
4062 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
4063 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
4064 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
4065 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
4066 * testsuite/libgomp.c++/depend-1.C: New test.
4067 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
4068 * testsuite/libgomp.c++/depobj-1.C: New test.
4069 * testsuite/libgomp.c++/for-16.C: New test.
4070 * testsuite/libgomp.c++/for-21.C: New test.
4071 * testsuite/libgomp.c++/for-22.C: New test.
4072 * testsuite/libgomp.c++/for-23.C: New test.
4073 * testsuite/libgomp.c++/for-24.C: New test.
4074 * testsuite/libgomp.c++/for-25.C: New test.
4075 * testsuite/libgomp.c++/for-26.C: New test.
4076 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
4077 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
4078 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
4079 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
4080 * testsuite/libgomp.c++/task-reduction-10.C: New test.
4081 * testsuite/libgomp.c++/task-reduction-11.C: New test.
4082 * testsuite/libgomp.c++/task-reduction-12.C: New test.
4083 * testsuite/libgomp.c++/task-reduction-13.C: New test.
4084 * testsuite/libgomp.c++/task-reduction-14.C: New test.
4085 * testsuite/libgomp.c++/task-reduction-15.C: New test.
4086 * testsuite/libgomp.c++/task-reduction-16.C: New test.
4087 * testsuite/libgomp.c++/task-reduction-17.C: New test.
4088 * testsuite/libgomp.c++/task-reduction-18.C: New test.
4089 * testsuite/libgomp.c++/task-reduction-19.C: New test.
4090 * testsuite/libgomp.c/task-reduction-1.c: New test.
4091 * testsuite/libgomp.c++/task-reduction-1.C: New test.
4092 * testsuite/libgomp.c/task-reduction-2.c: New test.
4093 * testsuite/libgomp.c++/task-reduction-2.C: New test.
4094 * testsuite/libgomp.c++/task-reduction-3.C: New test.
4095 * testsuite/libgomp.c++/task-reduction-4.C: New test.
4096 * testsuite/libgomp.c++/task-reduction-5.C: New test.
4097 * testsuite/libgomp.c++/task-reduction-6.C: New test.
4098 * testsuite/libgomp.c++/task-reduction-7.C: New test.
4099 * testsuite/libgomp.c++/task-reduction-8.C: New test.
4100 * testsuite/libgomp.c++/task-reduction-9.C: New test.
4101 * testsuite/libgomp.c/teams-1.c: New test.
4102 * testsuite/libgomp.c/teams-2.c: New test.
4103 * testsuite/libgomp.c/thread-limit-4.c: New test.
4104 * testsuite/libgomp.c/thread-limit-5.c: New test.
4105 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
4106
4107 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
4108
4109 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
4110 acc_memcpy_to/from_device functions, now with async parameter.
4111 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
4112 (acc_memcpy_from_device): Likewise.
4113 (acc_memcpy_to_device_async): New API function.
4114 (acc_memcpy_from_device_async): Likewise.
4115 (present_create_copy): Add async parameter and async setting/unsetting.
4116 (acc_create): Adjust present_create_copy call.
4117 (acc_copyin): Likewise.
4118 (acc_present_or_create): Likewise.
4119 (acc_present_or_copyin): Likewise.
4120 (acc_create_async): New API function.
4121 (acc_copyin_async): New API function.
4122 (delete_copyout): Add async parameter and async setting/unsetting.
4123 (acc_delete): Adjust delete_copyout call.
4124 (acc_copyout): Likewise.
4125 (acc_delete_async): New API function.
4126 (acc_copyout_async): Likewise.
4127 (update_dev_host): Add async parameter and async setting/unsetting.
4128 (acc_update_device): Adjust update_dev_host call.
4129 (acc_update_self): Likewise.
4130 (acc_update_device_async): New API function.
4131 (acc_update_self_async): Likewise.
4132 * openacc.h (acc_copyin_async): Declare new API function.
4133 (acc_create_async): Likewise.
4134 (acc_copyout_async): Likewise.
4135 (acc_delete_async): Likewise.
4136 (acc_update_device_async): Likewise.
4137 (acc_update_self_async): Likewise.
4138 (acc_memcpy_to_device_async): Likewise.
4139 (acc_memcpy_from_device_async): Likewise.
4140 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
4141 (acc_copyin_async_64_h): New subroutine.
4142 (acc_copyin_async_array_h): New subroutine.
4143 (acc_create_async_32_h): New subroutine.
4144 (acc_create_async_64_h): New subroutine.
4145 (acc_create_async_array_h): New subroutine.
4146 (acc_copyout_async_32_h): New subroutine.
4147 (acc_copyout_async_64_h): New subroutine.
4148 (acc_copyout_async_array_h): New subroutine.
4149 (acc_delete_async_32_h): New subroutine.
4150 (acc_delete_async_64_h): New subroutine.
4151 (acc_delete_async_array_h): New subroutine.
4152 (acc_update_device_async_32_h): New subroutine.
4153 (acc_update_device_async_64_h): New subroutine.
4154 (acc_update_device_async_array_h): New subroutine.
4155 (acc_update_self_async_32_h): New subroutine.
4156 (acc_update_self_async_64_h): New subroutine.
4157 (acc_update_self_async_array_h): New subroutine.
4158 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
4159 (acc_copyin_async_64_h): New subroutine.
4160 (acc_copyin_async_array_h): New subroutine.
4161 (acc_create_async_32_h): New subroutine.
4162 (acc_create_async_64_h): New subroutine.
4163 (acc_create_async_array_h): New subroutine.
4164 (acc_copyout_async_32_h): New subroutine.
4165 (acc_copyout_async_64_h): New subroutine.
4166 (acc_copyout_async_array_h): New subroutine.
4167 (acc_delete_async_32_h): New subroutine.
4168 (acc_delete_async_64_h): New subroutine.
4169 (acc_delete_async_array_h): New subroutine.
4170 (acc_update_device_async_32_h): New subroutine.
4171 (acc_update_device_async_64_h): New subroutine.
4172 (acc_update_device_async_array_h): New subroutine.
4173 (acc_update_self_async_32_h): New subroutine.
4174 (acc_update_self_async_64_h): New subroutine.
4175 (acc_update_self_async_array_h): New subroutine.
4176 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
4177 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
4178 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
4179 acc_memcpy_to_device_async*, acc_update_device_async*, and
4180 acc_update_self_async* entries.
4181 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
4182 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
4183 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
4184
4185 2018-10-31 Joseph Myers <joseph@codesourcery.com>
4186
4187 PR bootstrap/82856
4188 * Makefile.am: Include multilib.am
4189 (AUTOMAKE_OPTIONS): Add info-in-builddir.
4190 (CLEANFILES): Remove libgomp.info.
4191 * configure.ac: Remove AC_PREREQ.
4192 * testsuite/Makefile.am (RUNTEST): Remove quotes.
4193 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
4194 Regenerate.
4195
4196 2018-10-29 Joseph Myers <joseph@codesourcery.com>
4197 Julian Brown <julian@codesourcery.com>
4198
4199 * testsuite/libgomp.oacc-c++/this.C: New.
4200
4201 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
4202
4203 * plugin/plugin-nvptx.c (struct cuda_map): New.
4204 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
4205 h_tail with (cuda_map *) map.
4206 (cuda_map_create): New function.
4207 (cuda_map_destroy): New function.
4208 (map_init): Update to use a linked list of cuda_map objects.
4209 (map_fini): Likewise.
4210 (map_pop): Likewise.
4211 (map_push): Likewise. Return CUdeviceptr instead of void.
4212 (init_streams_for_device): Remove stales references to ptx_stream
4213 members.
4214 (select_stream_for_async): Likewise.
4215 (nvptx_exec): Update call to map_init.
4216
4217 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
4218 Julian Brown <julian@codesourcery.com>
4219
4220 PR middle-end/86336
4221 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
4222
4223 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
4224 Thomas Koenig <tkoenig@gcc.gnu.org>
4225
4226 PR fortran/25829
4227 * testsuite/libgomp.fortran/async_io_1.f90: New test.
4228 * testsuite/libgomp.fortran/async_io_2.f90: New test.
4229 * testsuite/libgomp.fortran/async_io_3.f90: New test.
4230 * testsuite/libgomp.fortran/async_io_4.f90: New test.
4231 * testsuite/libgomp.fortran/async_io_5.f90: New test.
4232 * testsuite/libgomp.fortran/async_io_6.f90: New test.
4233 * testsuite/libgomp.fortran/async_io_7.f90: New test.
4234
4235 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
4236 Tom de Vries <tdevries@suse.de>
4237
4238 PR target/85590
4239 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
4240 (cuOccupancyMaxPotentialBlockSize): Declare.
4241 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
4242 CUDA_ONE_CALL_MAYBE_NULL.
4243 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
4244 CUoccupancyB2DSize and declare
4245 cuOccupancyMaxPotentialBlockSize.
4246 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
4247 default num_gangs and num_workers when the driver supports it.
4248
4249 2018-08-08 Tom de Vries <tdevries@suse.de>
4250
4251 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
4252 CUDA_ONE_CALL_MAYBE_NULL.
4253 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
4254 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
4255 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
4256 are not found.
4257
4258 2018-08-08 Tom de Vries <tdevries@suse.de>
4259
4260 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
4261 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
4262 present.
4263
4264 2018-08-08 Tom de Vries <tdevries@suse.de>
4265
4266 * plugin/plugin-nvptx.c
4267 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
4268 (nvptx_open_device): Use
4269 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
4270
4271 2018-08-08 Tom de Vries <tdevries@suse.de>
4272
4273 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
4274 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
4275
4276 2018-08-07 Tom de Vries <tdevries@suse.de>
4277
4278 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
4279 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
4280 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
4281 corresponding call in CUDA_ONE_CALL. Add def/undef of
4282 CUDA_ONE_CALL_MAYBE_NULL.
4283 (CUDA_CALL_EXISTS): Define.
4284
4285 2018-08-07 Tom de Vries <tdevries@suse.de>
4286
4287 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
4288 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
4289 corresponding undefs right after.
4290
4291 2018-08-04 Tom de Vries <tdevries@suse.de>
4292
4293 * plugin/configfrag.ac: For --without-cuda-driver, set
4294 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
4295 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
4296 * configure: Regenerate.
4297
4298 2018-08-02 Tom de Vries <tdevries@suse.de>
4299
4300 PR target/86660
4301 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
4302 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
4303 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
4304 Same.
4305 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
4306 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
4307 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
4308
4309 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
4310 Thomas Schwinge <thomas@codesourcery.com>
4311
4312 * config/nvptx/oacc-parallel.c: Truncate.
4313
4314 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
4315 James Norris <jnorris@codesourcery.com>
4316
4317 * plugin/plugin-nvptx.c (struct map): Removed.
4318 (map_init, map_pop): Remove use of struct map.
4319 (map_push): Likewise and change argument list.
4320 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
4321
4322 2018-08-01 Tom de Vries <tdevries@suse.de>
4323
4324 * plugin/cuda-lib.def: New file. Factor out of ...
4325 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
4326 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
4327 using CUDA_CALLS.
4328
4329 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
4330
4331 Revert 'AsyncI/O patch committed'.
4332 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
4333 Thomas Koenig <tkoenig@gcc.gnu.org>
4334
4335 PR fortran/25829
4336 * testsuite/libgomp.fortran/async_io_1.f90: New test.
4337 * testsuite/libgomp.fortran/async_io_2.f90: New test.
4338 * testsuite/libgomp.fortran/async_io_3.f90: New test.
4339 * testsuite/libgomp.fortran/async_io_4.f90: New test.
4340 * testsuite/libgomp.fortran/async_io_5.f90: New test.
4341 * testsuite/libgomp.fortran/async_io_6.f90: New test.
4342 * testsuite/libgomp.fortran/async_io_7.f90: New test.
4343
4344 2018-07-30 Tom de Vries <tdevries@suse.de>
4345
4346 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
4347 (nvptx_exec): Ensure worker and vector default dims don't exceed
4348 targ_fn->max_threads_per_block.
4349
4350 2018-07-30 Tom de Vries <tdevries@suse.de>
4351
4352 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
4353 (nvptx_open_device): Init default_dims for device.
4354 (nvptx_exec): Use default_dims from device.
4355
4356 2018-07-26 Jakub Jelinek <jakub@redhat.com>
4357
4358 PR testsuite/86660
4359 * testsuite/libgomp.c++/for-15.C (results): Include it in
4360 omp declare target region.
4361 (main): Use map (always, tofrom: results) instead of
4362 map (tofrom: results).
4363
4364 PR middle-end/86660
4365 * testsuite/libgomp.c/pr86660.c: New test.
4366
4367 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
4368 Tom de Vries <tdevries@suse.de>
4369
4370 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
4371 sufficient resources to launch a kernel, and give a hint on how to fix
4372 it.
4373
4374 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
4375 Tom de Vries <tdevries@suse.de>
4376
4377 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
4378 max_threads_per_block and max_threads_per_multiprocessor fields.
4379 (nvptx_open_device): Initialize new fields.
4380 (nvptx_exec): Use num_sms, and new fields.
4381
4382 2018-07-26 Tom de Vries <tdevries@suse.de>
4383
4384 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
4385 to correct locations. Remove xfail.
4386
4387 2018-07-26 Tom de Vries <tdevries@suse.de>
4388
4389 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
4390 acc_wait. Move acc_async_test calls to correct locations. Remove
4391 xfail.
4392
4393 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
4394 Thomas Koenig <tkoenig@gcc.gnu.org>
4395
4396 PR fortran/25829
4397 * testsuite/libgomp.fortran/async_io_1.f90: New test.
4398 * testsuite/libgomp.fortran/async_io_2.f90: New test.
4399 * testsuite/libgomp.fortran/async_io_3.f90: New test.
4400 * testsuite/libgomp.fortran/async_io_4.f90: New test.
4401 * testsuite/libgomp.fortran/async_io_5.f90: New test.
4402 * testsuite/libgomp.fortran/async_io_6.f90: New test.
4403 * testsuite/libgomp.fortran/async_io_7.f90: New test.
4404
4405 2018-07-17 Jakub Jelinek <jakub@redhat.com>
4406
4407 PR middle-end/86542
4408 * testsuite/libgomp.c++/pr86542.C: New test.
4409
4410 PR middle-end/86539
4411 * testsuite/libgomp.c++/pr86539.C: New test.
4412
4413 2018-07-11 Jakub Jelinek <jakub@redhat.com>
4414
4415 PR c++/86443
4416 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
4417 (results): Make sure the variable is not inside declare target region.
4418 (qux): Remove unused function.
4419
4420 2018-07-10 Jakub Jelinek <jakub@redhat.com>
4421
4422 PR c++/86443
4423 * testsuite/libgomp.c++/for-15.C: New test.
4424
4425 2018-06-26 Jakub Jelinek <jakub@redhat.com>
4426
4427 PR c++/86291
4428 * testsuite/libgomp.c++/pr86291.C: New test.
4429
4430 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
4431
4432 * libgomp.texi (Top): Move www.openmp.org to https.
4433 (Enabling OpenMP): Ditto.
4434 (omp_get_active_level): Ditto.
4435 (omp_get_ancestor_thread_num): Ditto.
4436 (omp_get_cancellation): Ditto.
4437 (omp_get_default_device): Ditto.
4438 (omp_get_dynamic): Ditto.
4439 (omp_get_level): Ditto.
4440 (omp_get_max_active_levels): Ditto.
4441 (omp_get_max_task_priority): Ditto.
4442 (omp_get_max_threads): Ditto.
4443 (omp_get_nested): Ditto.
4444 (omp_get_num_devices): Ditto.
4445 (omp_get_num_procs): Ditto.
4446 (omp_get_num_teams): Ditto.
4447 (omp_get_num_threads): Ditto.
4448 (omp_get_proc_bind): Ditto.
4449 (omp_get_schedule): Ditto.
4450 (omp_get_team_num): Ditto.
4451 (omp_get_team_size): Ditto.
4452 (omp_get_thread_limit): Ditto.
4453 (omp_get_thread_num): Ditto.
4454 (omp_in_parallel): Ditto.
4455 (omp_in_final): Ditto.
4456 (omp_is_initial_device): Ditto.
4457 (omp_set_default_device): Ditto.
4458 (omp_set_dynamic): Ditto.
4459 (omp_set_max_active_levels): Ditto.
4460 (omp_set_nested): Ditto.
4461 (omp_set_num_threads): Ditto.
4462 (omp_set_schedule): Ditto.
4463 (omp_init_lock): Ditto.
4464 (omp_set_lock): Ditto.
4465 (omp_test_lock): Ditto.
4466 (omp_unset_lock): Ditto.
4467 (omp_destroy_lock): Ditto.
4468 (omp_init_nest_lock): Ditto.
4469 (omp_set_nest_lock): Ditto.
4470 (omp_test_nest_lock): Ditto.
4471 (omp_unset_nest_lock): Ditto.
4472 (omp_destroy_nest_lock): Ditto.
4473 (omp_get_wtick): Ditto.
4474 (omp_get_wtime): Ditto.
4475 (OMP_CANCELLATION): Ditto.
4476 (OMP_DISPLAY_ENV): Ditto.
4477 (OMP_DEFAULT_DEVICE): Ditto.
4478 (OMP_DYNAMIC): Ditto.
4479 (OMP_MAX_ACTIVE_LEVELS): Ditto.
4480 (OMP_MAX_TASK_PRIORITY): Ditto.
4481 (OMP_NESTED): Ditto.
4482 (OMP_NUM_THREADS): Ditto.
4483 (OMP_PROC_BIND): Ditto.
4484 (OMP_PLACES): Ditto.
4485 (OMP_STACKSIZE): Ditto.
4486 (OMP_SCHEDULE): Ditto.
4487 (OMP_THREAD_LIMIT): Ditto.
4488 (OMP_WAIT_POLICY): Ditto.
4489
4490 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
4491 James Norris <jnorris@codesourcery.com>
4492 Julian Brown <julian@codesourcery.com>
4493 Thomas Schwinge <thomas@codesourcery.com>
4494 Tom de Vries <tom@codesourcery.com>
4495
4496 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
4497 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
4498 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
4499 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
4500 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
4501 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
4502 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
4503 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
4504 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
4505 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
4506 Likewise.
4507 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
4508 Likewise.
4509 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
4510 Likewise.
4511 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
4512 Likewise.
4513 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
4514 Likewise.
4515 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
4516 Likewise.
4517 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4518 Likewise.
4519 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4520 Likewise.
4521 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4522 Likewise.
4523 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4524 Likewise.
4525 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4526 Likewise.
4527 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
4528 Likewise.
4529 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
4530 Likewise.
4531 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
4532 Likewise.
4533 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
4534 Likewise.
4535 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4536 Likewise.
4537 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4538 Likewise.
4539 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4540 Likewise.
4541 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4542 Likewise.
4543 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4544 Likewise.
4545 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4546 Likewise.
4547 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4548 Likewise.
4549 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4550 Likewise.
4551 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4552 Likewise.
4553 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4554 Likewise.
4555 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4556 Likewise.
4557 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
4558 Likewise.
4559 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
4560 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
4561 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
4562 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
4563 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
4564 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
4565 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
4566 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
4567 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
4568 Likewise.
4569 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
4570 Likewise.
4571 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
4572 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
4573 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
4574 Likewise.
4575 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
4576 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
4577 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
4578 Likewise.
4579 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4580 Likewise.
4581 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4582 Likewise.
4583 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4584 Likewise.
4585 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4586 Likewise.
4587 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
4588 Likewise.
4589 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
4590 Likewise.
4591 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
4592 Likewise.
4593 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
4594 Likewise.
4595 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
4596 Likewise.
4597 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
4598 Likewise.
4599 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
4600 Likewise.
4601 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
4602 Likewise.
4603 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
4604 Likewise.
4605 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
4606 Likewise.
4607 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
4608 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
4609 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
4610 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
4611 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
4612 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
4613 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
4614
4615 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
4616 Thomas Schwinge <thomas@codesourcery.com>
4617 Cesar Philippidis <cesar@codesourcery.com>
4618
4619 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
4620 (gomp_acc_remove_pointer): Update declaration.
4621 (gomp_acc_declare_allocate): Declare.
4622 (gomp_remove_var): Declare.
4623 * libgomp.map (OACC_2.5): Define.
4624 * oacc-mem.c (acc_map_data): Update refcount.
4625 (acc_unmap_data): Likewise.
4626 (present_create_copy): Likewise.
4627 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
4628 (acc_copyin): Likewise.
4629 (FLAG_FINALIZE): Define.
4630 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
4631 (acc_delete_finalize): New function.
4632 (acc_delete_finalize_async): New function.
4633 (acc_copyout_finalize): New function.
4634 (acc_copyout_finalize_async): New function.
4635 (gomp_acc_insert_pointer): Update refcounts.
4636 (gomp_acc_remove_pointer): Return if data is not present on the
4637 accelerator.
4638 * oacc-parallel.c (find_pset): Rename to find_pointer.
4639 (find_pointer): Add support for GOMP_MAP_POINTER.
4640 (handle_ftn_pointers): New function.
4641 (GOACC_parallel_keyed): Update refcounts of variables.
4642 (GOACC_enter_exit_data): Add support for finalized data mappings.
4643 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
4644 of fortran arrays.
4645 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
4646 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
4647 for GOMP_MAP_FORCE_FROM.
4648 * openacc.f90 (module openacc_internal): Add
4649 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
4650 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
4651 acc_copyout_finalize and acc_delete_finalize.
4652 (acc_copyout_finalize_32_h): New subroutine.
4653 (acc_copyout_finalize_64_h): New subroutine.
4654 (acc_copyout_finalize_array_h): New subroutine.
4655 (acc_delete_finalize_32_h): New subroutine.
4656 (acc_delete_finalize_64_h): New subroutine.
4657 (acc_delete_finalize_array_h): New subroutine.
4658 * openacc.h (acc_copyout_finalize): Declare.
4659 (acc_copyout_finalize_async): Declare.
4660 (acc_delete_finalize): Declare.
4661 (acc_delete_finalize_async): Declare.
4662 * openacc_lib.h (acc_copyout_finalize): New interface.
4663 (acc_delete_finalize): New interface.
4664 * target.c (gomp_map_vars): Update dynamic_refcount.
4665 (gomp_remove_var): New function.
4666 (gomp_unmap_vars): Use it.
4667 (gomp_unload_image_from_device): Likewise.
4668 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
4669 case to utilize OpenACC 2.5 data clause semantics.
4670 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
4671 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
4672 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
4673 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
4674 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
4675 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
4676 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
4677 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
4678 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
4679 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
4680 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
4681 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
4682 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
4683 utilize OpenACC 2.5 data clause semantics.
4684 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
4685 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
4686 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
4687 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
4688 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
4689 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
4690 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
4691 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
4692 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4693
4694 2018-05-21 Janus Weil <janus@gcc.gnu.org>
4695
4696 PR fortran/85841
4697 PR testsuite/85865
4698 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
4699 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
4700 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
4701 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
4702 * testsuite/libgomp.fortran/task2.f90: Ditto.
4703 * testsuite/libgomp.fortran/vla1.f90: Ditto.
4704 * testsuite/libgomp.fortran/vla2.f90: Ditto.
4705 * testsuite/libgomp.fortran/vla3.f90: Ditto.
4706 * testsuite/libgomp.fortran/vla4.f90: Ditto.
4707 * testsuite/libgomp.fortran/vla5.f90: Ditto.
4708 * testsuite/libgomp.fortran/vla6.f90: Ditto.
4709 * testsuite/libgomp.fortran/vla8.f90: Ditto.
4710 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
4711 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
4712
4713 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
4714
4715 PR c++/85782
4716 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
4717
4718 2018-05-09 Tom de Vries <tom@codesourcery.com>
4719
4720 PR libgomp/82901
4721 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
4722 to GOACC_enter_exit_data.
4723
4724 2018-05-09 Tom de Vries <tom@codesourcery.com>
4725
4726 PR libgomp/83792
4727 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
4728 (async_synchronous_p): New function.
4729 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
4730 async_valid_p.
4731 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
4732 async_valid_stream_id_p.
4733 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
4734 * oacc-parallel.c (GOACC_parallel_keyed): Same.
4735
4736 2018-05-07 Tom de Vries <tom@codesourcery.com>
4737
4738 PR testsuite/85677
4739 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
4740 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
4741
4742 2018-05-03 Tom de Vries <tom@codesourcery.com>
4743
4744 PR testsuite/85106
4745 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
4746 extra_tool_flags if it contains an -foffload=-fdump-* flag.
4747 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
4748 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
4749
4750 2018-05-02 Tom de Vries <tom@codesourcery.com>
4751
4752 PR libgomp/85411
4753 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
4754 GOMP_OPENACC_DIM ...
4755 * env.c (parse_gomp_openacc_dim): ... here. New function.
4756 (initialize_env): Call parse_gomp_openacc_dim.
4757 (goacc_default_dims): Define.
4758 * libgomp.h (goacc_default_dims): Declare.
4759 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
4760 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
4761 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
4762 GOMP_PLUGIN_acc_default_dim.
4763 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
4764 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
4765
4766 2018-05-02 Tom de Vries <tom@codesourcery.com>
4767
4768 PR testsuite/83791
4769 * testsuite/libgomp.c++/udr-9.C: Update.
4770 * testsuite/libgomp.c++/atomic-16.C: Remove.
4771 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
4772 * testsuite/libgomp.c++/loop-13.C: Remove.
4773 * testsuite/libgomp.c++/loop-14.C: Remove.
4774 * testsuite/libgomp.c++/loop-15.C: Remove.
4775 * testsuite/libgomp.c++/monotonic-1.C: Remove.
4776 * testsuite/libgomp.c++/monotonic-2.C: Remove.
4777 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
4778 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
4779 * testsuite/libgomp.c++/ordered-1.C: Remove.
4780 * testsuite/libgomp.c++/pr45784.C: Remove.
4781 * testsuite/libgomp.c++/pr64824.C: Remove.
4782 * testsuite/libgomp.c++/pr64868.C: Remove.
4783 * testsuite/libgomp.c++/pr66199-1.C: Remove.
4784 * testsuite/libgomp.c++/pr66199-2.C: Remove.
4785 * testsuite/libgomp.c++/pr66199-3.C: Remove.
4786 * testsuite/libgomp.c++/pr66199-4.C: Remove.
4787 * testsuite/libgomp.c++/pr66199-5.C: Remove.
4788 * testsuite/libgomp.c++/pr66199-6.C: Remove.
4789 * testsuite/libgomp.c++/pr66199-7.C: Remove.
4790 * testsuite/libgomp.c++/pr66199-8.C: Remove.
4791 * testsuite/libgomp.c++/pr66199-9.C: Remove.
4792 * testsuite/libgomp.c++/pr69389.C: Remove.
4793 * testsuite/libgomp.c++/simd10.C: Remove.
4794 * testsuite/libgomp.c++/simd11.C: Remove.
4795 * testsuite/libgomp.c++/simd12.C: Remove.
4796 * testsuite/libgomp.c++/simd13.C: Remove.
4797 * testsuite/libgomp.c++/target-1.C: Remove.
4798 * testsuite/libgomp.c++/target-3.C: Remove.
4799 * testsuite/libgomp.c++/target-4.C: Remove.
4800 * testsuite/libgomp.c++/target-5.C: Remove.
4801 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
4802 * testsuite/libgomp.c++/taskloop-1.C: Remove.
4803 * testsuite/libgomp.c++/taskloop-2.C: Remove.
4804 * testsuite/libgomp.c++/taskloop-3.C: Remove.
4805 * testsuite/libgomp.c++/taskloop-4.C: Remove.
4806 * testsuite/libgomp.c++/udr-9.C: Remove.
4807 * testsuite/libgomp.c++/for-10.C: Remove.
4808 * testsuite/libgomp.c++/for-11.C: Remove.
4809 * testsuite/libgomp.c++/for-12.C: Remove.
4810 * testsuite/libgomp.c++/for-13.C: Remove.
4811 * testsuite/libgomp.c++/for-14.C: Remove.
4812 * testsuite/libgomp.c++/for-9.C: Remove.
4813 * testsuite/libgomp.c/atomic-18.c: Move ...
4814 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
4815 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
4816 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
4817 * testsuite/libgomp.c/loop-13.c: Move ...
4818 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
4819 * testsuite/libgomp.c/loop-14.c: Move ...
4820 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
4821 * testsuite/libgomp.c/loop-15.c: Remove.
4822 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
4823 * testsuite/libgomp.c/monotonic-1.c: Move ...
4824 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
4825 * testsuite/libgomp.c/monotonic-2.c: Move ...
4826 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
4827 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
4828 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
4829 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
4830 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
4831 * testsuite/libgomp.c/ordered-4.c: Move ...
4832 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
4833 * testsuite/libgomp.c/pr45784.c: Move ...
4834 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
4835 * testsuite/libgomp.c/pr64824.c: Move ...
4836 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
4837 * testsuite/libgomp.c/pr64868.c: Move ...
4838 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
4839 * testsuite/libgomp.c/pr66199-1.c: Move ...
4840 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
4841 * testsuite/libgomp.c/pr66199-2.c: Move ...
4842 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
4843 * testsuite/libgomp.c/pr66199-3.c: Move ...
4844 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
4845 * testsuite/libgomp.c/pr66199-4.c: Move ...
4846 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
4847 * testsuite/libgomp.c/pr66199-5.c: Move ...
4848 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
4849 * testsuite/libgomp.c/pr66199-6.c: Move ...
4850 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
4851 * testsuite/libgomp.c/pr66199-7.c: Move ...
4852 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
4853 * testsuite/libgomp.c/pr66199-8.c: Move ...
4854 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
4855 * testsuite/libgomp.c/pr66199-9.c: Move ...
4856 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
4857 * testsuite/libgomp.c/pr69389.c: Move ...
4858 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
4859 * testsuite/libgomp.c/simd-14.c: Move ...
4860 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
4861 * testsuite/libgomp.c/simd-15.c: Move ...
4862 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
4863 * testsuite/libgomp.c/simd-16.c: Move ...
4864 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
4865 * testsuite/libgomp.c/simd-17.c: Move ...
4866 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
4867 * testsuite/libgomp.c/target-1.c: Move ...
4868 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
4869 * testsuite/libgomp.c/target-10.c: Move ...
4870 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
4871 * testsuite/libgomp.c/target-13.c: Move ...
4872 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
4873 * testsuite/libgomp.c/target-2.c: Move ...
4874 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
4875 * testsuite/libgomp.c/taskgroup-1.c: Move ...
4876 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
4877 * testsuite/libgomp.c/taskloop-1.c: Move ...
4878 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
4879 * testsuite/libgomp.c/taskloop-2.c: Move ...
4880 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
4881 * testsuite/libgomp.c/taskloop-3.c: Move ...
4882 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
4883 * testsuite/libgomp.c/taskloop-4.c: Move ...
4884 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
4885 * testsuite/libgomp.c/udr-1.c: Move ...
4886 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
4887 * testsuite/libgomp.c/for-1.c: Move ...
4888 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
4889 * testsuite/libgomp.c/for-1.h: Move ...
4890 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
4891 * testsuite/libgomp.c/for-2.c: Move ...
4892 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
4893 * testsuite/libgomp.c/for-2.h: Move ...
4894 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
4895 * testsuite/libgomp.c/for-3.c: Move ...
4896 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
4897 * testsuite/libgomp.c/for-4.c: Move ...
4898 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
4899 * testsuite/libgomp.c/for-5.c: Move ...
4900 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
4901 * testsuite/libgomp.c/for-6.c: Move ...
4902 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
4903
4904 2018-05-02 Tom de Vries <tom@codesourcery.com>
4905
4906 PR libgomp/82428
4907 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
4908 __builtin_goacc_parlevel_{id,size}.
4909 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
4910 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
4911 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
4912 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
4913 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
4914 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
4915 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
4916 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
4917 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
4918 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
4919 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
4920 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
4921 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
4922 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
4923 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
4924 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
4925 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
4926 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
4927 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
4928 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
4929 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
4930 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
4931 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
4932
4933 2018-05-02 Tom de Vries <tom@codesourcery.com>
4934
4935 PR testsuite/85106
4936 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
4937
4938 2018-05-02 Tom de Vries <tom@codesourcery.com>
4939
4940 PR testsuite/85106
4941 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
4942
4943 2018-04-29 Julian Brown <julian@codesourcery.com>
4944 Tom de Vries <tom@codesourcery.com>
4945
4946 PR testsuite/85527
4947 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
4948 arbitrary order for iterations of atomic subtract check.
4949
4950 2018-04-28 Tom de Vries <tom@codesourcery.com>
4951
4952 PR testsuite/85527
4953 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
4954 atomic capture results obtained in parallel loop to an array, instead of
4955 to a scalar.
4956
4957 2018-04-26 Tom de Vries <tom@codesourcery.com>
4958
4959 PR libgomp/84020
4960 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
4961 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
4962 (process_GOMP_NVPTX_JIT): New function.
4963 (link_ptx): Use process_GOMP_NVPTX_JIT.
4964
4965 2018-04-26 Richard Biener <rguenther@suse.de>
4966 Tom de Vries <tom@codesourcery.com>
4967
4968 PR lto/85422
4969 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
4970
4971 2018-04-26 Tom de Vries <tom@codesourcery.com>
4972
4973 PR target/85519
4974 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
4975 recursion depth from 25 to 23.
4976 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
4977
4978 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
4979
4980 * configure: Regenerated.
4981
4982 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
4983 Tom de Vries <tom@codesourcery.com>
4984
4985 PR target/85445
4986 * testsuite/libgomp.oacc-c++/ref-1.C: New.
4987
4988 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
4989
4990 PR libgomp/85463
4991 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
4992 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
4993 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
4994 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
4995 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
4996 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
4997
4998 PR libfortran/85166
4999 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
5000 abort".
5001 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
5002
5003 2018-04-19 Jakub Jelinek <jakub@redhat.com>
5004
5005 * configure: Regenerated.
5006
5007 2018-04-18 David Malcolm <dmalcolm@redhat.com>
5008
5009 PR jit/85384
5010 * configure: Regenerate.
5011
5012 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
5013 Tom de Vries <tom@codesourcery.com>
5014
5015 PR middle-end/84955
5016 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
5017 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
5018
5019 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
5020
5021 PR fortran/83064
5022 PR testsuite/85346
5023 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
5024 test from gfortran.dg to here.
5025
5026 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
5027
5028 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
5029 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
5030
5031 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
5032
5033 PR middle-end/84955
5034 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
5035 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
5036
5037 2018-04-05 Tom de Vries <tom@codesourcery.com>
5038
5039 PR target/85204
5040 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
5041
5042 2018-03-26 Tom de Vries <tom@codesourcery.com>
5043
5044 PR tree-optimization/85063
5045 * testsuite/libgomp.c/switch-conversion-2.c: New test.
5046 * testsuite/libgomp.c/switch-conversion.c: New test.
5047 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
5048 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
5049
5050 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
5051
5052 PR fortran/84381
5053 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
5054 call abort by STOP n.
5055 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
5056 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
5057 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
5058 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
5059 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
5060 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
5061 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
5062 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
5063 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
5064 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
5065 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
5066 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
5067 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
5068 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
5069 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
5070 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
5071 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
5072 * testsuite/libgomp.fortran/associate1.f90: Likewise.
5073 * testsuite/libgomp.fortran/associate2.f90: Likewise.
5074 * testsuite/libgomp.fortran/associate3.f90: Likewise.
5075 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
5076 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
5077 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
5078 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
5079 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
5080 * testsuite/libgomp.fortran/character1.f90: Likewise.
5081 * testsuite/libgomp.fortran/character2.f90: Likewise.
5082 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
5083 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
5084 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
5085 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
5086 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
5087 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
5088 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
5089 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
5090 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
5091 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
5092 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
5093 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
5094 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
5095 * testsuite/libgomp.fortran/do1.f90: Likewise.
5096 * testsuite/libgomp.fortran/do2.f90: Likewise.
5097 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
5098 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
5099 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
5100 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
5101 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
5102 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
5103 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
5104 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
5105 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
5106 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
5107 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
5108 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
5109 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
5110 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
5111 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
5112 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
5113 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
5114 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
5115 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
5116 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
5117 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
5118 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
5119 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
5120 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
5121 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
5122 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
5123 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
5124 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
5125 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
5126 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
5127 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
5128 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
5129 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
5130 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
5131 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
5132 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
5133 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
5134 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
5135 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
5136 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
5137 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
5138 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
5139 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
5140 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
5141 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
5142 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
5143 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
5144 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
5145 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
5146 * testsuite/libgomp.fortran/lib1.f90: Likewise.
5147 * testsuite/libgomp.fortran/lib2.f: Likewise.
5148 * testsuite/libgomp.fortran/lib3.f: Likewise.
5149 * testsuite/libgomp.fortran/lib4.f90: Likewise.
5150 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
5151 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
5152 * testsuite/libgomp.fortran/nested1.f90: Likewise.
5153 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
5154 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
5155 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
5156 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
5157 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
5158 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
5159 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
5160 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
5161 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
5162 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
5163 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
5164 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
5165 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
5166 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
5167 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
5168 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
5169 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
5170 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
5171 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
5172 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
5173 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
5174 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
5175 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
5176 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
5177 * testsuite/libgomp.fortran/pr25162.f: Likewise.
5178 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
5179 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
5180 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
5181 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
5182 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
5183 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
5184 * testsuite/libgomp.fortran/pr28390.f: Likewise.
5185 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
5186 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
5187 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
5188 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
5189 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
5190 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
5191 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
5192 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
5193 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
5194 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
5195 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
5196 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
5197 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
5198 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
5199 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
5200 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
5201 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
5202 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
5203 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
5204 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
5205 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
5206 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
5207 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
5208 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
5209 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
5210 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
5211 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
5212 * testsuite/libgomp.fortran/reference1.f90: Likewise.
5213 * testsuite/libgomp.fortran/reference2.f90: Likewise.
5214 * testsuite/libgomp.fortran/retval1.f90: Likewise.
5215 * testsuite/libgomp.fortran/retval2.f90: Likewise.
5216 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
5217 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
5218 * testsuite/libgomp.fortran/simd1.f90: Likewise.
5219 * testsuite/libgomp.fortran/simd2.f90: Likewise.
5220 * testsuite/libgomp.fortran/simd3.f90: Likewise.
5221 * testsuite/libgomp.fortran/simd4.f90: Likewise.
5222 * testsuite/libgomp.fortran/simd5.f90: Likewise.
5223 * testsuite/libgomp.fortran/simd6.f90: Likewise.
5224 * testsuite/libgomp.fortran/simd7.f90: Likewise.
5225 * testsuite/libgomp.fortran/stack.f90: Likewise.
5226 * testsuite/libgomp.fortran/strassen.f90: Likewise.
5227 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
5228 * testsuite/libgomp.fortran/tabs2.f: Likewise.
5229 * testsuite/libgomp.fortran/target1.f90: Likewise.
5230 * testsuite/libgomp.fortran/target2.f90: Likewise.
5231 * testsuite/libgomp.fortran/target3.f90: Likewise.
5232 * testsuite/libgomp.fortran/target4.f90: Likewise.
5233 * testsuite/libgomp.fortran/target5.f90: Likewise.
5234 * testsuite/libgomp.fortran/target6.f90: Likewise.
5235 * testsuite/libgomp.fortran/target7.f90: Likewise.
5236 * testsuite/libgomp.fortran/target8.f90: Likewise.
5237 * testsuite/libgomp.fortran/task1.f90: Likewise.
5238 * testsuite/libgomp.fortran/task2.f90: Likewise.
5239 * testsuite/libgomp.fortran/task3.f90: Likewise.
5240 * testsuite/libgomp.fortran/task4.f90: Likewise.
5241 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
5242 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
5243 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
5244 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
5245 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
5246 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
5247 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
5248 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
5249 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
5250 * testsuite/libgomp.fortran/udr1.f90: Likewise.
5251 * testsuite/libgomp.fortran/udr10.f90: Likewise.
5252 * testsuite/libgomp.fortran/udr11.f90: Likewise.
5253 * testsuite/libgomp.fortran/udr12.f90: Likewise.
5254 * testsuite/libgomp.fortran/udr13.f90: Likewise.
5255 * testsuite/libgomp.fortran/udr14.f90: Likewise.
5256 * testsuite/libgomp.fortran/udr15.f90: Likewise.
5257 * testsuite/libgomp.fortran/udr2.f90: Likewise.
5258 * testsuite/libgomp.fortran/udr3.f90: Likewise.
5259 * testsuite/libgomp.fortran/udr4.f90: Likewise.
5260 * testsuite/libgomp.fortran/udr5.f90: Likewise.
5261 * testsuite/libgomp.fortran/udr6.f90: Likewise.
5262 * testsuite/libgomp.fortran/udr7.f90: Likewise.
5263 * testsuite/libgomp.fortran/udr8.f90: Likewise.
5264 * testsuite/libgomp.fortran/udr9.f90: Likewise.
5265 * testsuite/libgomp.fortran/vla1.f90: Likewise.
5266 * testsuite/libgomp.fortran/vla2.f90: Likewise.
5267 * testsuite/libgomp.fortran/vla3.f90: Likewise.
5268 * testsuite/libgomp.fortran/vla4.f90: Likewise.
5269 * testsuite/libgomp.fortran/vla5.f90: Likewise.
5270 * testsuite/libgomp.fortran/vla6.f90: Likewise.
5271 * testsuite/libgomp.fortran/vla7.f90: Likewise.
5272 * testsuite/libgomp.fortran/vla8.f90: Likewise.
5273 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
5274 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
5275 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
5276 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
5277 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5278 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5279 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5280 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
5281 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
5282 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
5283 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
5284 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
5285 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
5286 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
5287 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
5288 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
5289 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
5290 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
5291 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
5292 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
5293 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
5294 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
5295 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
5296 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
5297 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
5298 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
5299 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
5300 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
5301 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
5302 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
5303 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5304 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
5305 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
5306 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
5307 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
5308 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
5309 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
5310 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
5311 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
5312 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5313 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
5314 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
5315 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
5316 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
5317 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
5318 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
5319 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
5320 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
5321 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
5322 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
5323 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
5324 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
5325 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
5326 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
5327 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
5328 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
5329 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
5330 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
5331 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
5332 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
5333 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
5334 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
5335 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
5336 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
5337 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
5338 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
5339 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
5340 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5341 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5342 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
5343 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
5344 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
5345 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
5346 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
5347 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5348 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
5349 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5350 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
5351 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
5352 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
5353 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5354 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5355 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
5356 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
5357 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
5358 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
5359 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
5360 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
5361 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
5362 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5363 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
5364 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
5365 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
5366 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
5367
5368 2018-03-20 Richard Biener <rguenther@suse.de>
5369
5370 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
5371 parallelizable loop.
5372
5373 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
5374
5375 PR target/84148
5376 * configure: Regenerate.
5377
5378 2018-02-16 Jakub Jelinek <jakub@redhat.com>
5379
5380 PR fortran/84418
5381 * libgomp.fortran/pr84418-1.f90: New test.
5382 * libgomp.fortran/pr84418-2.f90: New test.
5383
5384 2018-02-14 Jakub Jelinek <jakub@redhat.com>
5385
5386 PR fortran/84313
5387 * testsuite/libgomp.fortran/threadprivate4.f90: Add
5388 -std=f2003 -fall-intrinsics into dg-additional-options.
5389
5390 2018-02-08 Martin Jambor <mjambor@suse.cz>
5391
5392 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
5393 clonable.
5394
5395 2018-02-08 Martin Jambor <mjambor@suse.cz>
5396
5397 * testsuite/libgomp.hsa.c/staticvar.c: New test.
5398
5399 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5400
5401 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
5402 [__cplusplus]: Declare extern "C".
5403
5404 2018-02-07 Tom de Vries <tom@codesourcery.com>
5405
5406 PR libgomp/84217
5407 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
5408
5409 2018-01-29 Christoph Spiel <cspiel@freenet.de>
5410 Jakub Jelinek <jakub@redhat.com>
5411
5412 PR libgomp/84096
5413 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
5414 instead of omp_lock_t.
5415
5416 2018-01-25 Tom de Vries <tom@codesourcery.com>
5417
5418 PR target/84028
5419 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
5420
5421 2018-01-24 Tom de Vries <tom@codesourcery.com>
5422
5423 PR target/83589
5424 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
5425
5426 2018-01-24 Tom de Vries <tom@codesourcery.com>
5427
5428 PR target/81352
5429 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
5430
5431 2018-01-19 Tom de Vries <tom@codesourcery.com>
5432 Cesar Philippidis <cesar@codesourcery.com>
5433
5434 PR target/83920
5435 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
5436 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
5437
5438 2018-01-03 Jakub Jelinek <jakub@redhat.com>
5439
5440 Update copyright years.
5441
5442 * libgomp.texi: Bump @copying's copyright year.
5443
5444 2017-12-30 Tom de Vries <tom@codesourcery.com>
5445
5446 PR libgomp/83046
5447 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
5448 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
5449
5450 2017-12-27 Tom de Vries <tom@codesourcery.com>
5451
5452 PR c++/83046
5453 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
5454 (test_nonstatic): Fix return type to workaround PR83046.
5455
5456 2017-12-05 Jakub Jelinek <jakub@redhat.com>
5457
5458 PR testsuite/83281
5459 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
5460 j suffix instead of i.
5461 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
5462 Likewise.
5463
5464 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
5465
5466 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
5467 call to acc_wait (1).
5468
5469 2017-11-24 Jakub Jelinek <jakub@redhat.com>
5470
5471 PR fortran/81304
5472 * testsuite/libgomp.fortran/pr81304.f90: New test.
5473
5474 2017-11-23 Jakub Jelinek <jakub@redhat.com>
5475
5476 PR fortran/81841
5477 * libgomp.fortran/pr81841.f90: New test.
5478
5479 2017-11-22 Jakub Jelinek <jakub@redhat.com>
5480
5481 PR libgomp/83106
5482 * target.c (gomp_target_init): Compute lengths just once and
5483 use them in both malloc size and subsequent copying.
5484
5485 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
5486
5487 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
5488 * acinclude.m4: Add cet.m4.
5489 * configure: Regenerate.
5490 * Makefile.in: Likewise.
5491 * testsuite/Makefile.in: Likewise.
5492
5493 2017-11-15 Tom de Vries <tom@codesourcery.com>
5494
5495 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
5496 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
5497 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
5498 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
5499 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
5500 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
5501
5502 2017-11-14 Tom de Vries <tom@codesourcery.com>
5503
5504 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
5505 non-nvidia devices.
5506
5507 2017-11-07 Jakub Jelinek <jakub@redhat.com>
5508
5509 PR c++/82835
5510 * testsuite/libgomp.c++/pr82835.C: New test.
5511
5512 2017-11-06 Martin Liska <mliska@suse.cz>
5513
5514 * testsuite/libgomp.c++/loop-2.C: Return a value
5515 for functions with non-void return type, or change type to void,
5516 or add -Wno-return-type for test.
5517 * testsuite/libgomp.c++/loop-4.C: Likewise.
5518 * testsuite/libgomp.c++/parallel-1.C: Likewise.
5519 * testsuite/libgomp.c++/shared-1.C: Likewise.
5520 * testsuite/libgomp.c++/single-1.C: Likewise.
5521 * testsuite/libgomp.c++/single-2.C: Likewise.
5522
5523 2017-10-31 Tom de Vries <tom@codesourcery.com>
5524
5525 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
5526 "do {} while (false)".
5527 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
5528 after HSA_DEBUG call.
5529
5530 2017-10-28 Jakub Jelinek <jakub@redhat.com>
5531
5532 * target.c (struct gomp_coalesce_buf): New type.
5533 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
5534 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
5535 (gomp_copy_host2dev): Add CBUF argument, if copying into
5536 the cached ranges, memcpy into buffer instead of copying
5537 into device.
5538 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
5539 Add CBUF argument, pass it through to other calls.
5540 (gomp_map_vars): Aggregate copies from host to device if small enough
5541 and with small enough gaps in between into memcpy into a buffer and
5542 fewer host to device copies from the buffer.
5543 (gomp_update): Adjust gomp_copy_host2dev caller.
5544
5545 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
5546
5547 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
5548 run" directive.
5549 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
5550 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
5551 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
5552 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
5553
5554 2017-10-16 Tom de Vries <tom@codesourcery.com>
5555
5556 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
5557 openacc_nvidia_accel_selected.
5558 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
5559 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
5560 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
5561 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
5562 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
5563 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
5564 openacc_nvidia_accel_selected. Skip for shared memory device.
5565 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
5566 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
5567
5568 2017-10-09 Martin Jambor <mjambor@suse.cz>
5569
5570 PR hsa/82416
5571 * testsuite/libgomp.hsa.c/pr82416.c: New test.
5572
5573 2017-10-07 Tom de Vries <tom@codesourcery.com>
5574
5575 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
5576 Remove acc_device_nvidia references.
5577 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
5578 Same.
5579
5580 2017-10-05 Tom de Vries <tom@codesourcery.com>
5581
5582 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
5583 vector_length(32) clause from acc parallel directive.
5584 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
5585
5586 2017-10-04 Tom de Vries <tom@codesourcery.com>
5587
5588 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
5589 (main): Reduce sum of arr elements. Assert that hres is exactly
5590 representable in 32-bit floating point.
5591 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
5592 (main): Reduce sum of arr elements. Assert that hres and hmres are
5593 exactly representable in 32-bit floating point.
5594 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
5595
5596 2017-09-28 Tom de Vries <tom@codesourcery.com>
5597
5598 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
5599 setting.
5600 * testsuite/libgomp.c++/pr69393.C: Same.
5601 * testsuite/libgomp.c++/taskloop-1.C: Same.
5602 * testsuite/libgomp.c++/taskloop-3.C: Same.
5603 * testsuite/libgomp.c++/taskloop-4.C: Same.
5604 * testsuite/libgomp.c/for-4.c: Same.
5605 * testsuite/libgomp.c/pr66199-3.c: Same.
5606 * testsuite/libgomp.c/pr66199-4.c: Same.
5607 * testsuite/libgomp.c/pr66199-6.c: Same.
5608 * testsuite/libgomp.c/taskloop-1.c: Same.
5609 * testsuite/libgomp.c/taskloop-3.c: Same.
5610 * testsuite/libgomp.c/taskloop-4.c: Same.
5611 * testsuite/libgomp.fortran/aligned1.f03: Same.
5612 * testsuite/libgomp.fortran/condinc1.f: Same.
5613 * testsuite/libgomp.fortran/condinc3.f90: Same.
5614 * testsuite/libgomp.fortran/crayptr1.f90: Same.
5615 * testsuite/libgomp.fortran/crayptr2.f90: Same.
5616 * testsuite/libgomp.fortran/crayptr3.f90: Same.
5617 * testsuite/libgomp.fortran/omp_cond1.f: Same.
5618 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
5619 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
5620 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
5621 * testsuite/libgomp.fortran/recursion1.f90: Same.
5622 * testsuite/libgomp.fortran/target2.f90: Same.
5623 * testsuite/libgomp.fortran/target5.f90: Same.
5624 * testsuite/libgomp.fortran/task3.f90: Same.
5625
5626 2017-09-28 Tom de Vries <tom@codesourcery.com>
5627
5628 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
5629 vector_length(32) clause from acc parallel directive.
5630 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
5631
5632 2017-09-27 Tom de Vries <tom@codesourcery.com>
5633
5634 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
5635 Remove acc_device_nvidia references.
5636
5637 2017-09-16 Tom de Vries <tom@codesourcery.com>
5638
5639 PR c/81875
5640 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
5641
5642 2017-09-14 Tom de Vries <tom@codesourcery.com>
5643
5644 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
5645 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
5646 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
5647 * testsuite/libgomp.c/c.exp: Include test-cases from
5648 libgomp.c-c++-common.
5649 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
5650 files.
5651
5652 2017-09-14 Jakub Jelinek <jakub@redhat.com>
5653
5654 PR c++/81314
5655 * testsuite/libgomp.c++/pr81314.C: New test.
5656
5657 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
5658
5659 * libgomp.texi (Top): www.openacc.org now uses https.
5660 (Enabling OpenACC): Ditto.
5661 (acc_get_num_devices): Ditto.
5662 (acc_set_device_type): Ditto.
5663 (acc_get_device_type): Ditto.
5664 (acc_set_device_num): Ditto.
5665 (acc_get_device_num): Ditto.
5666 (acc_async_test): Ditto.
5667 (acc_async_test_all): Ditto.
5668 (acc_wait): Ditto.
5669 (acc_wait_all): Ditto.
5670 (acc_wait_all_async): Ditto.
5671 (acc_wait_async): Ditto.
5672 (acc_init): Ditto.
5673 (acc_shutdown): Ditto.
5674 (acc_on_device): Ditto.
5675 (acc_malloc): Ditto.
5676 (acc_free): Ditto.
5677 (acc_copyin): Ditto.
5678 (acc_present_or_copyin): Ditto.
5679 (acc_create): Ditto.
5680 (acc_present_or_create): Ditto.
5681 (acc_copyout): Ditto.
5682 (acc_delete): Ditto.
5683 (acc_update_device): Ditto.
5684 (acc_update_self): Ditto.
5685 (acc_map_data): Ditto.
5686 (acc_unmap_data): Ditto.
5687 (acc_deviceptr): Ditto.
5688 (acc_hostptr): Ditto.
5689 (acc_is_present): Ditto.
5690 (acc_memcpy_to_device): Ditto.
5691 (acc_memcpy_from_device): Ditto.
5692 (acc_get_current_cuda_device): Ditto.
5693 (acc_get_current_cuda_context): Ditto.
5694 (acc_get_cuda_stream): Ditto.
5695 (acc_set_cuda_stream): Ditto.
5696 (ACC_DEVICE_TYPE): Ditto.
5697 (ACC_DEVICE_NUM): Ditto.
5698 (OpenACC Library Interoperability): Ditto.
5699
5700 2017-08-09 Jakub Jelinek <jakub@redhat.com>
5701
5702 PR c/81687
5703 * testsuite/libgomp.c/pr81687-1.c: New test.
5704 * testsuite/libgomp.c/pr81687-2.c: New test.
5705
5706 2017-08-07 Jakub Jelinek <jakub@redhat.com>
5707
5708 PR c/69389
5709 * testsuite/libgomp.c/pr69389.c: New test.
5710 * testsuite/libgomp.c++/pr69389.C: New test.
5711
5712 2017-08-07 Tom de Vries <tom@codesourcery.com>
5713
5714 PR middle-end/78266
5715 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
5716 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
5717
5718 2017-07-27 Jakub Jelinek <jakub@redhat.com>
5719
5720 PR c/45784
5721 * testsuite/libgomp.c/pr45784.c: New test.
5722 * testsuite/libgomp.c++/pr45784.C: New test.
5723
5724 2017-07-19 Tom de Vries <tom@codesourcery.com>
5725
5726 * testsuite/libgomp.oacc-c/vec.c: New test.
5727
5728 2017-07-03 Tom de Vries <tom@codesourcery.com>
5729
5730 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
5731
5732 2017-06-27 Tom de Vries <tom@codesourcery.com>
5733
5734 * plugin/plugin-nvptx.c (notify_var): New function.
5735 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
5736
5737 2017-06-27 Tom de Vries <tom@codesourcery.com>
5738
5739 * env.c (parse_unsigned_long_1): Factor out of ...
5740 (parse_unsigned_long): ... here.
5741 (parse_int_1): Factor out of ...
5742 (parse_int): ... here.
5743 (parse_int_secure): New function.
5744 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
5745 * secure_getenv.h: Factor out of ...
5746 * plugin/plugin-hsa.c: ... here.
5747 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
5748
5749 2017-06-21 Jakub Jelinek <jakub@redhat.com>
5750
5751 PR c++/81130
5752 * testsuite/libgomp.c++/pr81130.C: New test.
5753
5754 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5755
5756 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
5757 default args.
5758 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
5759 dg-xfail-run-if default args.
5760
5761 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5762
5763 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
5764 * testsuite/libgomp.c/pr39591-3.c: Likewise.
5765
5766 2017-05-30 Jakub Jelinek <jakub@redhat.com>
5767
5768 PR libgomp/80822
5769 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
5770 (gomp_affinity_init_level): Use it. Always analyze the core and thread
5771 sibling lists, depending on level just pick up what CPUs to put
5772 together into a place vs. whether add multiple ordered places.
5773
5774 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
5775
5776 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
5777 * libgomp.map (OACC_2.0.1): Add these.
5778 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
5779 for "acc_wait", and "acc_wait_all", respectively.
5780 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
5781 for "acc_wait", and "acc_wait_all", respectively.
5782 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
5783 * libgomp.texi (acc_wait, acc_wait_all): Update.
5784 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
5785 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
5786 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5787
5788 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
5789 acc_present_or_copyin and acc_present_or_create procedures,
5790 respectively.
5791 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
5792 generally different variants of OpenACC Runtime Library functions.
5793 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
5794
5795 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
5796 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
5797
5798 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
5799 of preprocessor definitions.
5800 * libgomp.h (strong_alias): Guard by "#ifdef
5801 HAVE_ATTRIBUTE_ALIAS".
5802 * oacc-mem.c: Provide "acc_pcreate" as alias for
5803 "acc_present_or_create", and "acc_pcopyin" as alias for
5804 "acc_present_or_copyin".
5805 * libgomp.map: New version "OACC_2.0.1".
5806 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
5807 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
5808 its content into...
5809 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
5810 Extend testing.
5811
5812 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
5813 when disabling nvptx offloading.
5814
5815 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
5816
5817 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
5818 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5819 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
5820
5821 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
5822 * testsuite/lib/libgomp.exp
5823 (check_effective_target_openacc_nvidia_accel_configured): New
5824 proc.
5825 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
5826 (check_effective_target_c++): New procs.
5827 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
5828 (check_effective_target_c++): Likewise.
5829
5830 2017-05-22 Jakub Jelinek <jakub@redhat.com>
5831
5832 PR middle-end/80809
5833 * testsuite/libgomp.c/pr80809-2.c: New test.
5834 * testsuite/libgomp.c/pr80809-3.c: New test.
5835
5836 PR middle-end/80809
5837 * testsuite/libgomp.c/pr80809-1.c: New test.
5838
5839 PR middle-end/80853
5840 * testsuite/libgomp.c/pr80853.c: New test.
5841
5842 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
5843
5844 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
5845 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
5846 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
5847 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
5848 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
5849
5850 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
5851 Debug output for failure.
5852
5853 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5854
5855 * testsuite/lib/libgomp.exp: Load scanlang.exp.
5856
5857 2017-04-27 Jakub Jelinek <jakub@redhat.com>
5858
5859 PR bootstrap/80531
5860 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
5861 bootstrap compare failures.
5862
5863 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
5864
5865 * testsuite/libgomp.c/target-36.c: New testcase.
5866
5867 2017-04-13 Jakub Jelinek <jakub@redhat.com>
5868
5869 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
5870 instead of char.
5871
5872 2017-04-11 Jakub Jelinek <jakub@redhat.com>
5873
5874 PR libgomp/80394
5875 * testsuite/libgomp.c/pr80394.c: New test.
5876
5877 2017-04-04 Jakub Jelinek <jakub@redhat.com>
5878
5879 PR libgomp/79876
5880 * config/posix/thread-stacksize.h: New file.
5881 * config/darwin/thread-stacksize.h: New file.
5882 * config/nvptx/thread-stacksize.h: New file.
5883 * env.c: Include thread-stacksize.h.
5884 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
5885 instead of 0. Call pthread_attr_setstacksize even if
5886 GOMP_DEFAULT_STACKSIZE is non-zero.
5887
5888 2017-03-30 Jakub Jelinek <jakub@redhat.com>
5889
5890 * env.c (initialize_env): Initialize stacksize to 0.
5891
5892 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
5893
5894 PR c++/80029
5895 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
5896
5897 2017-03-08 Jakub Jelinek <jakub@redhat.com>
5898
5899 PR c/79940
5900 * testsuite/libgomp.c/pr79940.c: New test.
5901
5902 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5903
5904 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
5905 targets.
5906 Add __float128 options.
5907
5908 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
5909
5910 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
5911 hppa*-*-* dg-skip-if directive.
5912
5913 2017-02-09 Jakub Jelinek <jakub@redhat.com>
5914
5915 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
5916 dg-skip-if directive into a comment.
5917
5918 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
5919 Chung-Lin Tang <cltang@codesourcery.com>
5920
5921 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
5922 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
5923 add additional case.
5924 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
5925 "openacc_nvidia_accel_selected".
5926 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
5927 Add num_workers(8) clause.
5928
5929 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
5930
5931 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
5932 hppa*-*-*.
5933 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
5934 include complex.h on hppa*-*-hpux*.
5935 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
5936
5937 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
5938
5939 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
5940
5941 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
5942 GOMP_OFFLOAD_openacc_exec. Adjust all users.
5943 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
5944 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
5945 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
5946 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
5947 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
5948 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
5949 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
5950 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
5951
5952 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
5953
5954 * libgomp-plugin.h: #include <stdbool.h>.
5955 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
5956 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
5957 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
5958 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
5959 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
5960 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
5961 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
5962 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
5963 (GOMP_OFFLOAD_openacc_register_async_cleanup)
5964 (GOMP_OFFLOAD_openacc_async_test)
5965 (GOMP_OFFLOAD_openacc_async_test_all)
5966 (GOMP_OFFLOAD_openacc_async_wait)
5967 (GOMP_OFFLOAD_openacc_async_wait_async)
5968 (GOMP_OFFLOAD_openacc_async_wait_all)
5969 (GOMP_OFFLOAD_openacc_async_wait_all_async)
5970 (GOMP_OFFLOAD_openacc_async_set_async)
5971 (GOMP_OFFLOAD_openacc_create_thread_data)
5972 (GOMP_OFFLOAD_openacc_destroy_thread_data)
5973 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
5974 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
5975 (GOMP_OFFLOAD_openacc_get_cuda_stream)
5976 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
5977 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
5978 these.
5979 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
5980 (GOMP_OFFLOAD_unload_image): Fix argument types.
5981
5982 2017-01-26 Jakub Jelinek <jakub@redhat.com>
5983
5984 * testsuite/lib/libgomp.exp
5985 (check_effective_target_hsa_offloading_selected_nocache): Fix up
5986 check_compile invocation. Fix up removal of executable. Drop
5987 bogus "2>&1" argument.
5988
5989 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
5990 directive.
5991
5992 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
5993 Martin Jambor <mjambor@suse.cz>
5994
5995 * plugin/hsa.h: Moved to top level include.
5996 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
5997
5998 2017-01-21 Jakub Jelinek <jakub@redhat.com>
5999
6000 PR other/79046
6001 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
6002 of cat to get version from BASE-VER file.
6003 * testsuite/Makefile.in: Regenerated.
6004
6005 2017-01-19 Jakub Jelinek <jakub@redhat.com>
6006
6007 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
6008 for _WIN64.
6009
6010 2017-01-17 Jakub Jelinek <jakub@redhat.com>
6011
6012 * plugin/hsa.h: Add GCC runtime library exception.
6013 * plugin/hsa_ext_finalize.h: Likewise.
6014
6015 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
6016 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
6017 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
6018 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
6019 plugin/include/cuda as include dir and -ldl instead of -lcuda as
6020 library to link ptx plugin against.
6021 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
6022 (CUDA_CALLS): Define.
6023 (cuda_lib, cuda_lib_inited): New variables.
6024 (init_cuda_lib): New function.
6025 (CUDA_CALL_PREFIX): Define.
6026 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
6027 (CUDA_CALL): Use FN instead of (FN).
6028 (CUDA_CALL_NOCHECK): Define.
6029 (cuda_error, fini_streams_for_device, select_stream_for_async,
6030 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
6031 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
6032 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
6033 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
6034 CUDA_CALL_NOCHECK.
6035 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
6036 CUDA_CALL_NOCHECK.
6037 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
6038 Use CUDA_CALL_NOCHECK.
6039 * plugin/cuda/cuda.h: New file.
6040 * config.h.in: Regenerated.
6041 * configure: Regenerated.
6042
6043 PR other/79046
6044 * configure.ac: Add GCC_BASE_VER.
6045 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
6046 get version from BASE-VER file.
6047 * testsuite/Makefile.in: Regenerated.
6048 * configure: Regenerated.
6049 * Makefile.in: Regenerated.
6050
6051 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6052
6053 PR libgomp/60670
6054 * Makefile.am: Make fincludedir multilib-aware.
6055 * Makefile.in: Regenerate.
6056
6057 2017-01-01 Jakub Jelinek <jakub@redhat.com>
6058
6059 Update copyright years.
6060
6061 * libgomp.texi: Bump @copying's copyright year.
6062
6063 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
6064
6065 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
6066 pthread_spinlock_t instead of gomp_mutex_t lock.
6067 (gomp_get_thread_pool): Likewise.
6068 (gomp_release_thread_pool): Likewise.
6069 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
6070 Likewise.
6071
6072 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
6073
6074 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
6075 thread pool in case nthreads == 1.
6076
6077 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
6078
6079 * config/nvptx/env.c: Delete.
6080 * icv.c: Move definitions of ICV variables back ...
6081 * env.c: ...here. Do not compile environment-related functionality if
6082 LIBGOMP_OFFLOADED_ONLY is set.
6083
6084 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
6085
6086 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
6087 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
6088 * configure: Regenerate.
6089 * config.h.in: Likewise.
6090
6091 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
6092
6093 * Makefile.in: Regenerate with automake-1.11.6.
6094 * aclocal.m4: Likewise.
6095 * configure: Likewise.
6096 * testsuite/Makefile.in: Likewise.
6097
6098 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
6099
6100 * config/nvptx/critical.c: Delete to use generic implementation.
6101
6102 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
6103
6104 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
6105 ../../affinity.c as fallback.
6106 * config/nvptx/affinity.c: Delete to use fallback implementation.
6107
6108 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
6109 Jakub Jelinek <jakub@redhat.com>
6110 Dmitry Melnik <dm@ispras.ru>
6111
6112 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
6113 * Makefile.in. Regenerate.
6114 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
6115 (LIBGOMP_USE_PTHREADS): ...here; new define.
6116 * configure: Regenerate.
6117 * config.h.in: Likewise.
6118 * config/posix/affinity.c: Move to...
6119 * affinity.c: ...here (new file). Guard use of Pthreads-specific
6120 interface by LIBGOMP_USE_PTHREADS.
6121 * critical.c: Split out GOMP_atomic_{start,end} into...
6122 * atomic.c: ...here (new file).
6123 * env.c: Split out ICV definitions into...
6124 * icv.c: ...here (new file) and...
6125 * icv-device.c: ...here. New file.
6126 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
6127 (gomp_destroy_lock_30): Ditto.
6128 (gomp_set_lock_30): Ditto.
6129 (gomp_unset_lock_30): Ditto.
6130 (gomp_test_lock_30): Ditto.
6131 (gomp_init_nest_lock_30): Ditto.
6132 (gomp_destroy_nest_lock_30): Ditto.
6133 (gomp_set_nest_lock_30): Ditto.
6134 (gomp_unset_nest_lock_30): Ditto.
6135 (gomp_test_nest_lock_30): Ditto.
6136 * lock.c: New.
6137 * config/nvptx/lock.c: New.
6138 * config/nvptx/bar.c: New.
6139 * config/nvptx/bar.h: New.
6140 * config/nvptx/doacross.h: New.
6141 * config/nvptx/error.c: New.
6142 * config/nvptx/icv-device.c: New.
6143 * config/nvptx/mutex.h: New.
6144 * config/nvptx/pool.h: New.
6145 * config/nvptx/proc.c: New.
6146 * config/nvptx/ptrlock.h: New.
6147 * config/nvptx/sem.h: New.
6148 * config/nvptx/simple-bar.h: New.
6149 * config/nvptx/target.c: New.
6150 * config/nvptx/task.c: New.
6151 * config/nvptx/team.c: New.
6152 * config/nvptx/time.c: New.
6153 * config/posix/simple-bar.h: New.
6154 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
6155 (gomp_num_teams_var): Declare.
6156 (struct gomp_thread_pool): Change threads_dock member to
6157 gomp_simple_barrier_t.
6158 [__nvptx__] (gomp_thread): New implementation.
6159 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
6160 (gomp_thread_destructor): Ditto.
6161 (gomp_init_thread_affinity): Ditto.
6162 * team.c: Guard uses of Pthreads-specific interfaces by
6163 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
6164 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
6165 * config/nvptx/alloc.c: Delete.
6166 * config/nvptx/barrier.c: Ditto.
6167 * config/nvptx/fortran.c: Ditto.
6168 * config/nvptx/iter.c: Ditto.
6169 * config/nvptx/iter_ull.c: Ditto.
6170 * config/nvptx/loop.c: Ditto.
6171 * config/nvptx/loop_ull.c: Ditto.
6172 * config/nvptx/ordered.c: Ditto.
6173 * config/nvptx/parallel.c: Ditto.
6174 * config/nvptx/priority_queue.c: Ditto.
6175 * config/nvptx/sections.c: Ditto.
6176 * config/nvptx/single.c: Ditto.
6177 * config/nvptx/splay-tree.c: Ditto.
6178 * config/nvptx/work.c: Ditto.
6179 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
6180 -foffload=-lgfortran in addition to -lgfortran.
6181 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
6182 * plugin/plugin-nvptx.c: Include <limits.h>.
6183 (struct targ_fn_descriptor): Add new fields.
6184 (struct ptx_device): Ditto. Set them...
6185 (nvptx_open_device): ...here.
6186 (nvptx_adjust_launch_bounds): New.
6187 (nvptx_host2dev): Allow NULL 'nvthd'.
6188 (nvptx_dev2host): Ditto.
6189 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
6190 (link_ptx): Adjust log sizes.
6191 (nvptx_host2dev): Allow NULL 'nvthd'.
6192 (nvptx_dev2host): Ditto.
6193 (nvptx_set_clocktick): New. Use it...
6194 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
6195 fields.
6196 (GOMP_OFFLOAD_dev2dev): New.
6197 (nvptx_adjust_launch_bounds): New.
6198 (nvptx_stacks_size): New.
6199 (nvptx_stacks_alloc): New.
6200 (nvptx_stacks_free): New.
6201 (GOMP_OFFLOAD_run): New.
6202 (GOMP_OFFLOAD_async_run): New (stub).
6203
6204 2016-11-23 Martin Jambor <mjambor@suse.cz>
6205
6206 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
6207 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
6208 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
6209
6210 2016-11-23 Martin Liska <mliska@suse.cz>
6211 Martin Jambor <mjambor@suse.cz>
6212
6213 * plugin/hsa.h: New file.
6214 * plugin/hsa_ext_finalize.h: New file.
6215 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
6216 header file unistd.h, and functions secure_getenv, __secure_getenv,
6217 getuid, geteuid, getgid and getegid.
6218 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
6219 -D_GNU_SOURCE.
6220 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
6221 Handle various cases of secure_getenv presence, add an implementation
6222 when we can test effective UID and GID.
6223 (struct hsa_runtime_fn_info): New structure.
6224 (hsa_runtime_fn_info hsa_fns): New variable.
6225 (hsa_runtime_lib): Likewise.
6226 (support_cpu_devices): Likewise.
6227 (init_enviroment_variables): Load newly introduced ENV
6228 variables.
6229 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
6230 (hsa_fatal): Likewise.
6231 (DLSYM_FN): New macro.
6232 (init_hsa_runtime_functions): New function.
6233 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
6234 structure. Depending on environment, also allow CPU devices.
6235 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
6236 (get_kernarg_memory_region): Likewise.
6237 (GOMP_OFFLOAD_init_device): Likewise.
6238 (destroy_hsa_program): Likewise.
6239 (init_basic_kernel_info): New function.
6240 (GOMP_OFFLOAD_load_image): Use it.
6241 (create_and_finalize_hsa_program): Call hsa run-time functions via
6242 hsa_fns structure.
6243 (create_single_kernel_dispatch): Likewise.
6244 (release_kernel_dispatch): Likewise.
6245 (init_single_kernel): Likewise.
6246 (parse_target_attributes): Allow up multiple HSA grid dimensions.
6247 (get_group_size): New function.
6248 (run_kernel): Likewise.
6249 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
6250 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
6251 structure.
6252 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
6253 * testsuite/libgomp-test-support.exp.in: Likewise.
6254 * Makefile.in: Regenerated.
6255 * aclocal.m4: Likewise.
6256 * config.h.in: Likewise.
6257 * configure: Likewise.
6258 * testsuite/Makefile.in: Likewise.
6259
6260 2016-11-15 Martin Jambor <mjambor@suse.cz>
6261 Alexander Monakov <amonakov@ispras.ru>
6262
6263 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
6264 mapping clauses to target constructs.
6265 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
6266
6267 2016-11-15 Matthias Klose <doko@ubuntu.com>
6268
6269 * configure: Regenerate.
6270
6271 2016-11-10 Jakub Jelinek <jakub@redhat.com>
6272
6273 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
6274 * omp_lib.h.in (openmp_version): Likewise.
6275 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
6276 of 201307.
6277 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
6278
6279 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
6280 (fib_wrapper): Add map(from: x) clause.
6281 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
6282 (e_53_2): Likewise.
6283 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
6284 (accum): Add map(tmp) clause.
6285 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
6286 (accum): Add map(tofrom: tmp) clause.
6287 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
6288 (gramSchmidt): Likewise.
6289 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
6290 map(tofrom: sum) clause.
6291 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
6292 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
6293 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
6294 only allowed on the loop iterator.
6295 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
6296 * testsuite/libgomp.fortran/taskloop2.f90: New test.
6297 * testsuite/libgomp.fortran/taskloop4.f90: New test.
6298 * testsuite/libgomp.fortran/doacross1.f90: New test.
6299 * testsuite/libgomp.fortran/doacross3.f90: New test.
6300 * testsuite/libgomp.fortran/taskloop1.f90: New test.
6301 * testsuite/libgomp.fortran/taskloop3.f90: New test.
6302 * testsuite/libgomp.fortran/doacross2.f90: New test.
6303 * testsuite/libgomp.c/doacross-1.c (main): Add missing
6304 #pragma omp atomic read.
6305 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
6306 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
6307
6308 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
6309 Nathan Sidwell <nathan@acm.org>
6310
6311 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
6312 to determine default geometry.
6313 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
6314 dimension.
6315
6316 2016-11-01 Jakub Jelinek <jakub@redhat.com>
6317
6318 * hashtab.h: Use standard GPLv3 with runtime exception
6319 boilerplate.
6320
6321 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
6322
6323 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
6324 size when allocating new thread.
6325
6326 2016-09-14 Marek Polacek <polacek@redhat.com>
6327
6328 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
6329
6330 2016-08-19 Jakub Jelinek <jakub@redhat.com>
6331
6332 PR fortran/71014
6333 * testsuite/libgomp.fortran/pr71014.f90: New test.
6334
6335 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
6336
6337 PR middle-end/70895
6338 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
6339 firstprivate clauses.
6340 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
6341 copy clauses.
6342 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
6343 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
6344 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
6345 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
6346 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
6347 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
6348 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
6349 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
6350 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
6351 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
6352 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6353 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
6354
6355 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
6356
6357 PR fortran/70598
6358 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
6359
6360 2016-08-08 Jakub Jelinek <jakub@redhat.com>
6361
6362 PR c++/58706
6363 * testsuite/libgomp.c++/pr58706.C: New test.
6364
6365 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
6366
6367 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
6368 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
6369 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
6370 Likewise.
6371 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
6372 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
6373 Likewise.
6374 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
6375
6376 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
6377 test, and don't hardcode -O0.
6378
6379 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
6380
6381 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
6382
6383 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
6384
6385 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
6386 test.
6387
6388 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
6389
6390 PR middle-end/71734
6391 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
6392 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
6393
6394 2016-07-01 Jakub Jelinek <jakub@redhat.com>
6395
6396 PR fortran/71717
6397 * testsuite/libgomp.fortran/associate3.f90: New test.
6398
6399 2016-06-17 Jakub Jelinek <jakub@redhat.com>
6400
6401 * testsuite/libgomp.c++/target-21.C: New test.
6402
6403 2016-06-16 Jakub Jelinek <jakub@redhat.com>
6404
6405 * testsuite/libgomp.c++/target-20.C: New test.
6406
6407 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
6408 Cesar Philippidis <cesar@codesourcery.com>
6409
6410 PR middle-end/71373
6411 * libgomp.oacc-c/nested-function-1.c: New file.
6412 * libgomp.oacc-c/nested-function-2.c: Likewise.
6413 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
6414 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
6415 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
6416
6417 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
6418
6419 PR c/71381
6420 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
6421 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
6422 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
6423
6424 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
6425
6426 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
6427 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
6428
6429 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
6430
6431 PR c/70688
6432 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
6433
6434 2016-05-26 Jakub Jelinek <jakub@redhat.com>
6435
6436 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
6437 instead of invalid schedule(static, 0).
6438 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
6439
6440 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
6441
6442 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
6443 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
6444 parameter, use to set async stream around call to gomp_unmap_vars,
6445 call gomp_unmap_vars() with 'do_copyfrom' set to true.
6446 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
6447 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
6448 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
6449 (event_add): Add int parameter, initialize 'val' field when
6450 adding new ptx_event struct.
6451 (nvptx_evec): Adjust event_add() call arguments.
6452 (nvptx_host2dev): Likewise.
6453 (nvptx_dev2host): Likewise.
6454 (nvptx_wait_async): Likewise.
6455 (nvptx_wait_all_async): Likewise.
6456 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
6457 pass to event_add() call.
6458 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
6459 parameter.
6460 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
6461 call openacc.register_async_cleanup_func() hook.
6462 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
6463 * target.c (gomp_copy_from_async): Delete function.
6464 (gomp_map_vars): Remove async_refcount.
6465 (gomp_unmap_vars): Likewise.
6466 (gomp_load_image_to_device): Likewise.
6467 (omp_target_associate_ptr): Likewise.
6468 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
6469 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
6470 (gomp_copy_from_async): Remove.
6471
6472 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
6473
6474 * target.c (gomp_device_copy): New function.
6475 (gomp_copy_host2dev): Likewise.
6476 (gomp_copy_dev2host): Likewise.
6477 (gomp_free_device_memory): Likewise.
6478 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
6479 (gomp_map_pointer): Likewise.
6480 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
6481 NULL value from alloc_func plugin hook.
6482 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
6483 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
6484 (gomp_unmap_vars): Likewise.
6485 (gomp_update): Adjust to call gomp_copy_dev2host and
6486 gomp_copy_host2dev functions.
6487 (gomp_unload_image_from_device): Handle false value from
6488 unload_image_func plugin hook.
6489 (gomp_init_device): Handle false value from init_device_func
6490 plugin hook.
6491 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
6492 (omp_target_free): Adjust to call gomp_free_device_memory.
6493 (omp_target_memcpy): Handle return values from host2dev_func,
6494 dev2host_func, and dev2dev_func plugin hooks.
6495 (omp_target_memcpy_rect_worker): Likewise.
6496 (gomp_target_fini): Handle false value from fini_device_func
6497 plugin hook.
6498 * libgomp.h (struct gomp_device_descr): Adjust return type of
6499 init_device_func, fini_device_func, unload_image_func, free_func,
6500 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
6501 * oacc-init.c (acc_shutdown_1): Handle false value from
6502 fini_device_func plugin hook.
6503 * oacc-host.c (host_init_device): Change return type to bool.
6504 (host_fini_device): Likewise.
6505 (host_unload_image): Likewise.
6506 (host_free): Likewise.
6507 (host_dev2host): Likewise.
6508 (host_host2dev): Likewise.
6509 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
6510 (acc_memcpy_to_device): Likewise.
6511 (acc_memcpy_from_device): Likewise.
6512 (delete_copyout): Add libfnname parameter, handle free_func
6513 hook fatal error case.
6514 (acc_delete): Adjust delete_copyout call.
6515 (acc_copyout): Likewise.
6516 (update_dev_host): Move gomp_mutex_unlock to after
6517 host2dev/dev2host hook calls.
6518
6519 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
6520 to 'hsa_error_msg', for clarity.
6521 (hsa_fatal): Likewise.
6522 (hsa_error): New function.
6523 (init_hsa_context): Change return type to bool, adjust to return
6524 false on error.
6525 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
6526 return value.
6527 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
6528 return false on error.
6529 (get_agent_info): Adjust to return NULL on error.
6530 (destroy_hsa_program): Change return type to bool, adjust to
6531 return false on error.
6532 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
6533 (destroy_module): Change return type to bool, adjust to
6534 return false on error.
6535 (GOMP_OFFLOAD_unload_image): Likewise.
6536 (GOMP_OFFLOAD_fini_device): Likewise.
6537 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
6538 (GOMP_OFFLOAD_free): Change to return false when called.
6539 (GOMP_OFFLOAD_dev2host): Likewise.
6540 (GOMP_OFFLOAD_host2dev): Likewise.
6541 (GOMP_OFFLOAD_dev2dev): Likewise.
6542
6543 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
6544 (CUDA_CALL): Likewise.
6545 (CUDA_CALL_ASSERT): Likewise.
6546 (map_init): Change return type to bool, use CUDA_CALL* macros.
6547 (map_fini): Likewise.
6548 (init_streams_for_device): Change return type to bool, adjust
6549 call to map_init.
6550 (fini_streams_for_device): Change return type to bool, adjust
6551 call to map_fini.
6552 (select_stream_for_async): Release stream_lock before calls to
6553 GOMP_PLUGIN_fatal, adjust call to map_init.
6554 (nvptx_init): Use CUDA_CALL* macros.
6555 (nvptx_attach_host_thread_to_device): Change return type to bool,
6556 use CUDA_CALL* macros.
6557 (nvptx_open_device): Use CUDA_CALL* macros.
6558 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
6559 macros.
6560 (nvptx_get_num_devices): Use CUDA_CALL* macros.
6561 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
6562 (nvptx_exec): Use CUDA_CALL* macros.
6563 (nvptx_alloc): Use CUDA_CALL* macros.
6564 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
6565 (nvptx_host2dev): Likewise.
6566 (nvptx_dev2host): Likewise.
6567 (nvptx_wait): Use CUDA_CALL* macros.
6568 (nvptx_wait_async): Likewise.
6569 (nvptx_wait_all): Likewise.
6570 (nvptx_wait_all_async): Likewise.
6571 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
6572 use CUDA_CALL* macros, adjust call to map_fini.
6573 (GOMP_OFFLOAD_init_device): Change return type to bool,
6574 adjust code accordingly.
6575 (GOMP_OFFLOAD_fini_device): Likewise.
6576 (GOMP_OFFLOAD_load_image): Adjust calls to
6577 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
6578 use CUDA_CALL* macros.
6579 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
6580 return code.
6581 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
6582 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
6583 handle error return.
6584 (GOMP_OFFLOAD_dev2host): Likewise.
6585 (GOMP_OFFLOAD_host2dev): Likewise.
6586 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
6587 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
6588
6589 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
6590
6591 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
6592 (acc_free): Likewise.
6593 (acc_memcpy_to_device): Likewise.
6594 (acc_memcpy_from_device): Likewise.
6595 (acc_deviceptr): Likewise.
6596 (acc_hostptr): Likewise.
6597 (acc_is_present): Likewise.
6598 (acc_map_data): Likewise.
6599 (acc_unmap_data): Likewise.
6600 (present_create_copy): Likewise.
6601 (delete_copyout): Likewise.
6602 (update_dev_host): Likewise.
6603 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
6604 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
6605 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
6606 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
6607 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
6608 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
6609 it only runs on nvptx targets.
6610 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
6611 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
6612 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6613 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6614 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6615 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6616 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6617 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6618 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6619 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
6620 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6621 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6622 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6623 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6624 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6625 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6626 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6627 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6628 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6629 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6630 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6631 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6632 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6633
6634 2016-05-23 Martin Jambor <mjambor@suse.cz>
6635
6636 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
6637
6638 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
6639
6640 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
6641 to gomp_init_targets_once.
6642 (acc_set_device_type): Remove !cached_base_dev condition on call to
6643 gomp_init_targets_once, move call to before acc_device_lock acquire,
6644 to avoid deadlock.
6645 (acc_get_device_num): Remove !cached_base_dev condition on call to
6646 gomp_init_targets_once.
6647 (acc_set_device_num): Likewise.
6648
6649 2016-05-16 Martin Jambor <mjambor@suse.cz>
6650
6651 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
6652
6653 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
6654
6655 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
6656 expected partitioning.
6657
6658 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
6659
6660 PR middle-end/70626
6661 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
6662 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
6663 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
6664
6665 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
6666
6667 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
6668 non-fatal.
6669
6670 2016-04-19 Jakub Jelinek <jakub@redhat.com>
6671
6672 PR middle-end/70680
6673 * testsuite/libgomp.c/pr70680-1.c: New test.
6674 * testsuite/libgomp.c/pr70680-2.c: New test.
6675
6676 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
6677
6678 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
6679 pass parameter variables to subroutines.
6680
6681 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
6682
6683 PR middle-end/70643
6684 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
6685
6686 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
6687
6688 PR testsuite/68242
6689 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
6690 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6691
6692 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
6693
6694 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
6695 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
6696 GOACC_declare prototype.
6697
6698 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
6699 Merge this file, and...
6700 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
6701 ... this file, and...
6702 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
6703 ... this file, and...
6704 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
6705 ... this file, and...
6706 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
6707 ... this file, and...
6708 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
6709 ... this file, and...
6710 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
6711 ... this file, and...
6712 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
6713 ... this file, and...
6714 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
6715 ... this file, and...
6716 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
6717 ... this file, and...
6718 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
6719 ... this file, and...
6720 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
6721 ... this file, and...
6722 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
6723 ... this file into...
6724 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
6725 file.
6726
6727 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
6728 Make failure observable.
6729
6730 2016-04-12 Jakub Jelinek <jakub@redhat.com>
6731
6732 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
6733 field.
6734 * target.c (gomp_target_fallback_firstprivate,
6735 gomp_target_unshare_firstprivate): Removed.
6736 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
6737 before waiting for dependencies.
6738 (gomp_target_task_fn): Don't copy firstprivate vars here.
6739 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
6740 firstprivate_copies here.
6741 (gomp_create_target_task): Don't initialize firstprivate_copies field.
6742 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
6743 explicit/implicit firstprivate.
6744
6745 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
6746
6747 PR lto/70289
6748 PR ipa/70348
6749 PR tree-optimization/70373
6750 PR middle-end/70533
6751 PR middle-end/70534
6752 PR middle-end/70535
6753 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
6754 test.
6755 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
6756 test.
6757 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
6758 test.
6759 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
6760 test.
6761 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
6762 test.
6763 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
6764 test.
6765 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
6766 test.
6767 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
6768 test.
6769 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
6770 test.
6771 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
6772 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
6773 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
6774 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
6775 test.
6776 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
6777 test.
6778 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
6779 test.
6780 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
6781 test.
6782 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
6783 coverage.
6784 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6785 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
6786 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
6787 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
6788 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
6789 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
6790 coverage.
6791 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6792 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6793 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6794 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6795 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
6796 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
6797 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
6798 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
6799 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
6800 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
6801 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
6802 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
6803 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6804 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6805 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
6806
6807 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
6808 James Norris <jnorris@codesourcery.com>
6809 Nathan Sidwell <nathan@codesourcery.com>
6810 Julian Brown <julian@codesourcery.com>
6811 Cesar Philippidis <cesar@codesourcery.com>
6812 Chung-Lin Tang <cltang@codesourcery.com>
6813 Tom de Vries <tom@codesourcery.com>
6814
6815 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
6816 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
6817 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
6818 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
6819 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
6820 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
6821 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
6822 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
6823 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
6824 XFAIL.
6825 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
6826 Incorporate...
6827 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
6828 file.
6829 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
6830 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
6831 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
6832 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
6833 Likewise.
6834 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
6835 Likewise.
6836 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
6837 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
6838 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
6839 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
6840 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
6841 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
6842 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
6843 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
6844 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
6845 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
6846 Likewise.
6847 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
6848 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
6849 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
6850 file...
6851 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
6852 file into...
6853 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
6854 file. Update.
6855 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
6856 file.
6857 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
6858 Likewise.
6859 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
6860 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
6861 ... this new file. Update.
6862 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
6863 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
6864 ... this new file. Update.
6865 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
6866 file. Incorporate...
6867 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
6868 file, and...
6869 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
6870 file, and...
6871 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
6872 file.
6873 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
6874
6875 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
6876
6877 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
6878 set-torture-options.
6879
6880 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
6881
6882 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
6883 gcc-dg-runtest.
6884 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6885 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
6886 -fno-builtin-acc_on_device instead of -O0.
6887 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
6888 -O0.
6889 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
6890 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
6891 Likewise.
6892 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
6893 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
6894 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
6895 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
6896 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
6897 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
6898 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
6899 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6900 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6901 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
6902 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6903 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
6904 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
6905 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
6906 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
6907 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
6908 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
6909 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
6910 Don't specify -O2.
6911 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
6912 Likewise.
6913 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
6914 Likewise.
6915
6916 2016-03-24 Martin Liska <mliska@suse.cz>
6917
6918 * plugin/plugin-hsa.c (packet_store_release): New function
6919 that is taken from the HSA runtime manual.
6920 (GOMP_OFFLOAD_run): Use the function.
6921
6922 2016-03-23 Jakub Jelinek <jakub@redhat.com>
6923
6924 PR c++/70376
6925 * testsuite/libgomp.c++/pr70376.C: New test.
6926
6927 2016-03-23 Tom de Vries <tom@codesourcery.com>
6928
6929 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
6930 initialization of lresult and lvresult.
6931 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
6932
6933 2016-03-23 James Norris <jnorris@codesourcery.com>
6934 Daichi Fukuoka <dc-fukuoka@sgi.com>
6935
6936 PR libgomp/69414
6937 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
6938 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
6939 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
6940 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
6941
6942 2016-03-23 Martin Liska <mliska@suse.cz>
6943
6944 PR hsa/70337
6945 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
6946 argument just in case a dispatched kernel uses that argument.
6947
6948 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
6949
6950 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
6951 -ftree-parallelize-loops/-fopenacc changes.
6952 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
6953 Likewise.
6954 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
6955 Likewise.
6956 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
6957 Likewise.
6958 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
6959 Likewise.
6960 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
6961 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
6962
6963 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
6964
6965 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
6966 always_ld_library_path the path to libgcc_s.
6967
6968 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
6969
6970 PR testsuite/70009
6971 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
6972
6973 2016-03-09 Tom de Vries <tom@codesourcery.com>
6974
6975 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
6976 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
6977 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
6978 Same.
6979 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
6980 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
6981 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
6982 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
6983
6984 2016-03-07 Martin Jambor <mjambor@suse.cz>
6985
6986 * testsuite/lib/libgomp.exp
6987 (check_effective_target_hsa_offloading_selected_nocache): New.
6988 (check_effective_target_hsa_offloading_selected): Likewise.
6989 * testsuite/libgomp.hsa.c/c.exp: Likewise.
6990 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
6991 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
6992 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
6993 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
6994 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
6995 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
6996 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
6997 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
6998 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
6999 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
7000 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
7001 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
7002 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
7003 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
7004 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
7005 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
7006
7007 2016-03-07 Martin Jambor <mjambor@suse.cz>
7008
7009 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
7010 non-shared memory accelerators.
7011 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
7012 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
7013 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
7014 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
7015 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
7016 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
7017 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
7018 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
7019 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
7020
7021 2016-03-07 Martin Jambor <mjambor@suse.cz>
7022
7023 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
7024 ALWAYS_CFLAGS.
7025
7026 2016-03-02 Jakub Jelinek <jakub@redhat.com>
7027
7028 PR libgomp/69555
7029 * testsuite/libgomp.c++/pr69555-1.C: New test.
7030 * testsuite/libgomp.c++/pr69555-2.C: New test.
7031
7032 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
7033 Martin Jambor <mjambor@suse.cz>
7034
7035 * testsuite/lib/libgomp.exp
7036 (check_effective_target_offload_device_shared_as): New proc.
7037 * testsuite/libgomp.c++/declare_target-1.C: New test.
7038
7039 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
7040
7041 PR driver/68463
7042 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
7043
7044 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
7045
7046 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
7047 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
7048 dims.
7049 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
7050 -ftree-parallelize-loops/-fopenacc changes.
7051 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
7052 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
7053 Likewise.
7054 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
7055 Likewise.
7056 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
7057 Likewise.
7058 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
7059 Likewise.
7060 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
7061 Likewise.
7062 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
7063 Likewise.
7064 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
7065 Likewise.
7066 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
7067 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
7068 Likewise.
7069 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
7070 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
7071 Likewise.
7072 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
7073 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
7074 Likewise.
7075
7076 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
7077
7078 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
7079
7080 2016-02-19 Jakub Jelinek <jakub@redhat.com>
7081
7082 PR driver/69805
7083 * testsuite/libgomp.c/pr69805.c: New test.
7084
7085 2016-02-16 Tom de Vries <tom@codesourcery.com>
7086
7087 PR lto/67709
7088 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
7089
7090 2016-02-09 Tom de Vries <tom@codesourcery.com>
7091
7092 PR tree-optimization/69599
7093 * testsuite/libgomp.c/omp-nested-3.c: New test.
7094 * testsuite/libgomp.c/pr46032-2.c: New test.
7095 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
7096 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
7097
7098 2016-02-09 Tom de Vries <tom@codesourcery.com>
7099
7100 PR lto/69707
7101 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
7102
7103 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
7104
7105 * testsuite/libgomp.c/target-31.c: Fix testcase.
7106
7107 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
7108
7109 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
7110 clause.
7111 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
7112 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
7113 reduction and map clauses.
7114 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
7115
7116 2016-02-02 James Norris <jnorris@codesourcery.com>
7117
7118 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
7119
7120 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
7121
7122 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
7123 * oacc-parallel.c (GOACC_host_data): Remove function definition.
7124
7125 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
7126 cases.
7127
7128 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
7129 variables.
7130 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
7131 (hsa_kmt_lib): Set variables.
7132 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
7133 always_ld_library_path.
7134 * Makefile.in: Regenerate.
7135 * configure: Likewise.
7136 * testsuite/Makefile.in: Likewise.
7137
7138 * plugin/configfrag.ac (offload_additional_options)
7139 (offload_additional_lib_paths): Don't amend for hsa offloading.
7140 * configure: Regenerate.
7141
7142 * plugin/configfrag.ac: Don't configure for offloading target if
7143 we don't build the corresponding plugin.
7144 * configure: Regenerate.
7145
7146 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
7147
7148 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
7149 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
7150
7151 2016-01-26 Tom de Vries <tom@codesourcery.com>
7152
7153 PR tree-optimization/69110
7154 * testsuite/libgomp.c/pr69110.c: New test.
7155
7156 2016-01-25 Richard Biener <rguenther@suse.de>
7157
7158 PR lto/69393
7159 * testsuite/libgomp.c++/pr69393.C: New testcase.
7160
7161 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
7162
7163 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
7164 function wasn't mapped to the device with non-shared memory.
7165
7166 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
7167
7168 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
7169
7170 2016-01-19 Martin Jambor <mjambor@suse.cz>
7171 Martin Liska <mliska@suse.cz>
7172
7173 * plugin/Makefrag.am: Add HSA plugin requirements.
7174 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
7175 (HSA_RUNTIME_LIB): Likewise.
7176 (HSA_RUNTIME_CPPFLAGS): Likewise.
7177 (HSA_RUNTIME_INCLUDE): New substitution.
7178 (HSA_RUNTIME_LIB): Likewise.
7179 (HSA_RUNTIME_LDFLAGS): Likewise.
7180 (hsa-runtime): New configure option.
7181 (hsa-runtime-include): Likewise.
7182 (hsa-runtime-lib): Likewise.
7183 (PLUGIN_HSA): New substitution variable.
7184 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
7185 configure options.
7186 (PLUGIN_HSA_CPPFLAGS): Likewise.
7187 (PLUGIN_HSA_LDFLAGS): Likewise.
7188 (PLUGIN_HSA_LIBS): Likewise.
7189 Check that we have access to HSA run-time.
7190 * libgomp-plugin.h (offload_target_type): New element
7191 OFFLOAD_TARGET_TYPE_HSA.
7192 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
7193 args.
7194 (bool gomp_create_target_task): Updated.
7195 (gomp_device_descr): Extra parameter of run_func and async_run_func,
7196 new field can_run_func.
7197 * libgomp_g.h (GOMP_target_ext): Update prototype.
7198 * oacc-host.c (host_run): Added a new parameter args.
7199 * target.c (calculate_firstprivate_requirements): New function.
7200 (copy_firstprivate_data): Likewise.
7201 (gomp_target_fallback_firstprivate): Use them.
7202 (gomp_target_unshare_firstprivate): New function.
7203 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
7204 devices.
7205 (GOMP_target): Do host fallback for all shared memory devices. Do not
7206 pass any args to plugins.
7207 (GOMP_target_ext): Introduce device-specific argument parameter args.
7208 Allow host fallback if device shares memory. Do not remap data if
7209 device has shared memory.
7210 (gomp_target_task_fn): Likewise. Also treat shared memory devices
7211 like host fallback for mappings.
7212 (GOMP_target_data): Treat shared memory devices like host fallback.
7213 (GOMP_target_data_ext): Likewise.
7214 (GOMP_target_update): Likewise.
7215 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
7216 gomp_create_target_task.
7217 (GOMP_target_enter_exit_data): Likewise.
7218 (omp_target_alloc): Treat shared memory devices like host fallback.
7219 (omp_target_free): Likewise.
7220 (omp_target_is_present): Likewise.
7221 (omp_target_memcpy): Likewise.
7222 (omp_target_memcpy_rect): Likewise.
7223 (omp_target_associate_ptr): Likewise.
7224 (gomp_load_plugin_for_device): Also load can_run.
7225 * task.c (GOMP_PLUGIN_target_task_completion): Free
7226 firstprivate_copies.
7227 (gomp_create_target_task): Accept new argument args and store it to
7228 ttask.
7229 * plugin/plugin-hsa.c: New file.
7230
7231 2016-01-18 Tom de Vries <tom@codesourcery.com>
7232
7233 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
7234 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
7235 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
7236 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
7237 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
7238 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
7239 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
7240 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
7241 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
7242 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
7243 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
7244 Same.
7245 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
7246 Same.
7247 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
7248 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
7249 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
7250 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
7251 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
7252 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
7253 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
7254 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
7255 Same.
7256 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
7257
7258 2016-01-15 Jakub Jelinek <jakub@redhat.com>
7259
7260 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
7261
7262 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
7263
7264 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
7265
7266 2016-01-12 James Norris <jnorris@codesourcery.com>
7267
7268 * libgomp.texi: Updates for OpenACC.
7269
7270 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
7271
7272 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
7273
7274 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
7275
7276 PR fortran/66680
7277 * testsuite/libgomp.fortran/pr66680.f90: New test.
7278
7279 2016-01-07 Jakub Jelinek <jakub@redhat.com>
7280
7281 PR middle-end/68960
7282 * testsuite/libgomp.c/pr68960.c: New test.
7283
7284 2016-01-06 Nathan Sidwell <nathan@acm.org>
7285
7286 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
7287 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
7288
7289 2016-01-04 Jakub Jelinek <jakub@redhat.com>
7290
7291 Update copyright years.
7292
7293 * libgomp.texi: Bump @copying's copyright year.
7294
7295 2015-12-31 Nathan Sidwell <nathan@acm.org>
7296
7297 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
7298 dg-additional-options syntax.
7299 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
7300 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
7301 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
7302 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
7303 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
7304 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
7305 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
7306 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
7307 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
7308 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
7309 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
7310 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
7311 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
7312 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
7313 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
7314 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
7315 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
7316 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
7317
7318 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
7319
7320 * libgomp.h (REFCOUNT_LINK): Define.
7321 (struct splay_tree_key_s): Add link_key.
7322 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
7323 Replace target address of the pointer with target address of newly
7324 mapped object in the splay tree. Set link pointer on target to the
7325 device address of the mapped object.
7326 (gomp_unmap_vars): Restore target address of the pointer in the splay
7327 tree for REFCOUNT_LINK objects after unmapping.
7328 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
7329 declare target link" objects.
7330 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
7331 "omp declare target link" objects, which were mapped for the image.
7332 (gomp_exit_data): Restore target address of the pointer in the splay
7333 tree for REFCOUNT_LINK objects after unmapping.
7334 * testsuite/libgomp.c/target-link-1.c: New file.
7335
7336 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
7337
7338 * libgomp.h (gomp_device_state): New enum.
7339 (struct gomp_device_descr): Replace is_initialized with state.
7340 (gomp_fini_device): Remove declaration.
7341 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
7342 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
7343 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
7344 (acc_set_device_type): Use state instead of is_initialized.
7345 (acc_set_device_num): Likewise.
7346 * target.c (resolve_device): Use state instead of is_initialized.
7347 Do not initialize finalized device.
7348 (gomp_map_vars): Do nothing if device is finalized.
7349 (gomp_unmap_vars): Likewise.
7350 (gomp_update): Likewise.
7351 (GOMP_offload_register_ver): Use state instead of is_initialized.
7352 (GOMP_offload_unregister_ver): Likewise.
7353 (gomp_init_device): Likewise.
7354 (gomp_unload_device): Likewise.
7355 (gomp_fini_device): Remove.
7356 (gomp_get_target_fn_addr): Do nothing if device is finalized.
7357 (GOMP_target): Go to host fallback if device is finalized.
7358 (GOMP_target_ext): Likewise.
7359 (gomp_exit_data): Do nothing if device is finalized.
7360 (gomp_target_task_fn): Go to host fallback if device is finalized.
7361 (gomp_target_fini): New static function.
7362 (gomp_target_init): Use state instead of is_initialized.
7363 Call gomp_target_fini at exit.
7364
7365 2015-12-09 Tom de Vries <tom@codesourcery.com>
7366
7367 PR tree-optimization/68716
7368 * testsuite/libgomp.c/omp-nested-2.c: New test.
7369
7370 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
7371
7372 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
7373 target openacc_nvidia_accel_selected.
7374 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
7375 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
7376 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
7377 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
7378
7379 2015-12-01 Julian Brown <julian@codesourcery.com>
7380 James Norris <James_Norris@mentor.com>
7381
7382 * oacc-parallel.c (GOACC_host_data): New function.
7383 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
7384 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
7385 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
7386 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
7387 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
7388 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
7389 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
7390
7391 2015-11-30 James Norris <jnorris@codesourcery.com>
7392 Cesar Philippidis <cesar@codesourcery.com>
7393
7394 libgomp/
7395 * libgomp.oacc-fortran/routine-5.f90: New test.
7396 * libgomp.oacc-fortran/routine-7.f90: New test.
7397 * libgomp.oacc-fortran/routine-9.f90: New test.
7398
7399 2015-11-30 Tom de Vries <tom@codesourcery.com>
7400
7401 PR tree-optimization/46032
7402 * testsuite/libgomp.c/pr46032.c: New test.
7403
7404 2015-11-27 Jakub Jelinek <jakub@redhat.com>
7405
7406 PR libgomp/68579
7407 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
7408 (gomp_create_target_task): Call it before freeing
7409 GOMP_TARGET_TASK_DATA tasks.
7410
7411 PR c/63326
7412 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
7413 in between case label and OpenMP standalone directives.
7414 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
7415
7416 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
7417
7418 * configure: Regenerate.
7419
7420 2015-11-26 Jakub Jelinek <jakub@redhat.com>
7421
7422 * testsuite/libgomp.c/target-35.c: New test.
7423
7424 2015-11-22 James Norris <jnorris@codesourcery.com>
7425 Cesar Philippidis <cesar@codesourcery.com>
7426
7427 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
7428 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
7429 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
7430 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
7431 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
7432
7433 2015-11-20 Jakub Jelinek <jakub@redhat.com>
7434
7435 PR middle-end/68221
7436 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
7437 * testsuite/libgomp.c/reduction-12.c: Likewise.
7438 * testsuite/libgomp.c++/reduction-11.C: Likewise.
7439 * testsuite/libgomp.c++/reduction-12.C: Likewise.
7440
7441 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
7442
7443 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
7444 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
7445 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
7446 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
7447 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
7448 and fix.
7449 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
7450 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
7451
7452 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
7453
7454 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
7455 worker & gang cases.
7456 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
7457
7458 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
7459
7460 * config/nvptx/priority_queue.c: New file.
7461
7462 2015-11-14 Jakub Jelinek <jakub@redhat.com>
7463
7464 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
7465 sections.
7466
7467 2015-11-14 Jakub Jelinek <jakub@redhat.com>
7468 Aldy Hernandez <aldyh@redhat.com>
7469 Ilya Verbin <ilya.verbin@intel.com>
7470
7471 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
7472 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
7473 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
7474 iterators or IV by chunk size.
7475 * parallel.c (gomp_resolve_num_threads): Don't assume that
7476 if thr->ts.team is non-NULL, then pool must be non-NULL.
7477 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
7478 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
7479 GOMP_PLUGIN_target_task_completion.
7480 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
7481 * Makefile.in: Regenerate.
7482 * libgomp.h: Shuffle prototypes and forward definitions around so
7483 priority queues can be defined.
7484 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
7485 (enum gomp_target_task_state): New enum.
7486 (struct gomp_target_task): Add state, tgt, task and team fields.
7487 (gomp_create_target_task): Change return type to bool, add
7488 state argument.
7489 (gomp_target_task_fn): Change return type to bool.
7490 (struct gomp_device_descr): Add async_run_func.
7491 (struct gomp_task): Remove children, next_child, prev_child,
7492 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
7493 Add pnode field.
7494 (struct gomp_taskgroup): Remove children.
7495 Add taskgroup_queue.
7496 (struct gomp_team): Change task_queue type to a priority queue.
7497 (splay_compare): Define inline.
7498 (priority_queue_offset): New.
7499 (priority_node_to_task): New.
7500 (task_to_priority_node): New.
7501 * oacc-mem.c: Do not include splay-tree.h.
7502 * priority_queue.c: New file.
7503 * priority_queue.h: New file.
7504 * splay-tree.c: Do not include splay-tree.h.
7505 (splay_tree_foreach_internal): New.
7506 (splay_tree_foreach): New.
7507 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
7508 (splay_tree_callback): Define typedef.
7509 * target.c (splay_compare): Move to libgomp.h.
7510 (GOMP_target): Don't adjust *thr in any way around running offloaded
7511 task.
7512 (GOMP_target_ext): Likewise. Handle target nowait.
7513 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
7514 return value from gomp_create_target_task, if false, fallthrough
7515 as if no dependencies exist.
7516 (gomp_target_task_fn): Change return type to bool, return true
7517 if the task should have another part scheduled later. Handle
7518 target nowait.
7519 (gomp_load_plugin_for_device): Initialize async_run.
7520 * task.c (gomp_init_task): Initialize children_queue.
7521 (gomp_clear_parent_in_list): New.
7522 (gomp_clear_parent_in_tree): New.
7523 (gomp_clear_parent): Handle priorities.
7524 (GOMP_task): Likewise.
7525 (priority_queue_move_task_first,
7526 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
7527 New functions.
7528 (gomp_create_target_task): Use priority queues. Change return type
7529 to bool, add state argument, return false if for async
7530 {{enter,exit} data,update} constructs no dependencies need to be
7531 waited for, handle target nowait. Set task->fn to NULL instead of
7532 gomp_target_task_fn.
7533 (verify_children_queue): Remove.
7534 (priority_list_upgrade_task): New.
7535 (priority_queue_upgrade_task): New.
7536 (verify_task_queue): Remove.
7537 (priority_list_downgrade_task): New.
7538 (priority_queue_downgrade_task): New.
7539 (gomp_task_run_pre): Use priority queues.
7540 Abstract code out to priority_queue_downgrade_task.
7541 (gomp_task_run_post_handle_dependers): Use priority queues.
7542 (gomp_task_run_post_remove_parent): Likewise.
7543 (gomp_task_run_post_remove_taskgroup): Likewise.
7544 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
7545 tasks specially.
7546 (GOMP_taskwait): Likewise.
7547 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
7548 priority-queue_upgrade_task.
7549 (GOMP_taskgroup_start): Use priority queues.
7550 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
7551 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
7552 barrier.
7553 * taskloop.c (GOMP_taskloop): Handle priorities.
7554 * team.c (gomp_new_team): Call priority_queue_init.
7555 (free_team): Call priority_queue_free.
7556 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
7557 team created for target nowait in implicit parallel region.
7558 (gomp_team_start): For nested check, test thr->ts.level instead of
7559 thr->ts.team != NULL.
7560 * testsuite/libgomp.c/doacross-3.c: New test.
7561 * testsuite/libgomp.c/ordered-5.c: New test.
7562 * testsuite/libgomp.c/priority.c: New test.
7563 * testsuite/libgomp.c/target-31.c: New test.
7564 * testsuite/libgomp.c/target-32.c: New test.
7565 * testsuite/libgomp.c/target-33.c: New test.
7566 * testsuite/libgomp.c/target-34.c: New test.
7567
7568 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
7569
7570 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
7571
7572 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
7573 loop is sequential.
7574
7575 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
7576
7577 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
7578 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
7579
7580 2015-11-12 James Norris <jnorris@codesourcery.com>
7581 Joseph Myers <joseph@codesourcery.com>
7582
7583 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
7584 * oacc-parallel.c (GOACC_declare): New function.
7585 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
7586 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
7587 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
7588 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
7589 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
7590
7591 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
7592
7593 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
7594
7595 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
7596
7597 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
7598 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
7599
7600 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
7601
7602 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
7603 inadvertent commit.
7604
7605 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
7606
7607 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
7608 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
7609 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
7610 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
7611 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
7612
7613 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
7614
7615 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
7616 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
7617
7618 2015-11-05 Jakub Jelinek <jakub@redhat.com>
7619 Ilya Verbin <ilya.verbin@intel.com>
7620
7621 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
7622 GOMP_loop_nonmonotonic_dynamic_start,
7623 GOMP_loop_nonmonotonic_guided_next,
7624 GOMP_loop_nonmonotonic_guided_start,
7625 GOMP_loop_ull_nonmonotonic_dynamic_next,
7626 GOMP_loop_ull_nonmonotonic_dynamic_start,
7627 GOMP_loop_ull_nonmonotonic_guided_next,
7628 GOMP_loop_ull_nonmonotonic_guided_start,
7629 GOMP_parallel_loop_nonmonotonic_dynamic,
7630 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
7631 (GOMP_target_41): Renamed to ...
7632 (GOMP_target_ext): ... this. Add num_teams and thread_limit
7633 arguments.
7634 (GOMP_target_data_41): Renamed to ...
7635 (GOMP_target_data_ext): ... this.
7636 (GOMP_target_update_41): Renamed to ...
7637 (GOMP_target_update_ext): ... this.
7638 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
7639 GOMP_target_data_ext and GOMP_target_update_ext instead of
7640 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
7641 Export GOMP_loop_nonmonotonic_dynamic_next,
7642 GOMP_loop_nonmonotonic_dynamic_start,
7643 GOMP_loop_nonmonotonic_guided_next,
7644 GOMP_loop_nonmonotonic_guided_start,
7645 GOMP_loop_ull_nonmonotonic_dynamic_next,
7646 GOMP_loop_ull_nonmonotonic_dynamic_start,
7647 GOMP_loop_ull_nonmonotonic_guided_next,
7648 GOMP_loop_ull_nonmonotonic_guided_start,
7649 GOMP_parallel_loop_nonmonotonic_dynamic and
7650 GOMP_parallel_loop_nonmonotonic_guided.
7651 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
7652 GOMP_parallel_loop_nonmonotonic_guided,
7653 GOMP_loop_nonmonotonic_dynamic_start,
7654 GOMP_loop_nonmonotonic_guided_start,
7655 GOMP_loop_nonmonotonic_dynamic_next,
7656 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
7657 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
7658 GOMP_loop_ull_nonmonotonic_guided_start,
7659 GOMP_loop_ull_nonmonotonic_dynamic_next,
7660 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
7661 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
7662 functions.
7663 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
7664 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
7665 Use gomp_map_val function.
7666 (gomp_target_fallback_firstprivate): New static function.
7667 (GOMP_target_41): Renamed to ...
7668 (GOMP_target_ext): ... this. Add num_teams and thread_limit
7669 arguments. Move firstprivate fallback handling into a new
7670 function.
7671 (GOMP_target_data_41): Renamed to ...
7672 (GOMP_target_data_ext): ... this.
7673 (GOMP_target_update_41): Renamed to ...
7674 (GOMP_target_update_ext): ... this.
7675 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
7676 gomp_map_0len_lookup instead of gomp_map_lookup.
7677 (omp_target_is_present): Use gomp_map_0len_lookup instead of
7678 gomp_map_lookup.
7679 * testsuite/libgomp.c/target-28.c: Likewise.
7680 * testsuite/libgomp.c/monotonic-1.c: New test.
7681 * testsuite/libgomp.c/monotonic-2.c: New test.
7682 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
7683 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
7684 * testsuite/libgomp.c/pr66199-5.c: New test.
7685 * testsuite/libgomp.c/pr66199-6.c: New test.
7686 * testsuite/libgomp.c/pr66199-7.c: New test.
7687 * testsuite/libgomp.c/pr66199-8.c: New test.
7688 * testsuite/libgomp.c/pr66199-9.c: New test.
7689 * testsuite/libgomp.c/reduction-11.c: New test.
7690 * testsuite/libgomp.c/reduction-12.c: New test.
7691 * testsuite/libgomp.c/reduction-13.c: New test.
7692 * testsuite/libgomp.c/reduction-14.c: New test.
7693 * testsuite/libgomp.c/reduction-15.c: New test.
7694 * testsuite/libgomp.c/target-12.c (main): Adjust for
7695 omp_target_is_present change for one-past-last element.
7696 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
7697 the same var is both mapped and privatized.
7698 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
7699 handling of zero-length array sections.
7700 * testsuite/libgomp.c/target-28.c: New test.
7701 * testsuite/libgomp.c/target-29.c: New test.
7702 * testsuite/libgomp.c/target-30.c: New test.
7703 * testsuite/libgomp.c/target-teams-1.c: New test.
7704 * testsuite/libgomp.c++/member-6.C: New test.
7705 * testsuite/libgomp.c++/member-7.C: New test.
7706 * testsuite/libgomp.c++/monotonic-1.C: New test.
7707 * testsuite/libgomp.c++/monotonic-2.C: New test.
7708 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
7709 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
7710 * testsuite/libgomp.c++/pr66199-3.C: New test.
7711 * testsuite/libgomp.c++/pr66199-4.C: New test.
7712 * testsuite/libgomp.c++/pr66199-5.C: New test.
7713 * testsuite/libgomp.c++/pr66199-6.C: New test.
7714 * testsuite/libgomp.c++/pr66199-7.C: New test.
7715 * testsuite/libgomp.c++/pr66199-8.C: New test.
7716 * testsuite/libgomp.c++/pr66199-9.C: New test.
7717 * testsuite/libgomp.c++/reduction-11.C: New test.
7718 * testsuite/libgomp.c++/reduction-12.C: New test.
7719 * testsuite/libgomp.c++/target-13.C: New test.
7720 * testsuite/libgomp.c++/target-14.C: New test.
7721 * testsuite/libgomp.c++/target-15.C: New test.
7722 * testsuite/libgomp.c++/target-16.C: New test.
7723 * testsuite/libgomp.c++/target-17.C: New test.
7724 * testsuite/libgomp.c++/target-18.C: New test.
7725 * testsuite/libgomp.c++/target-19.C: New test.
7726
7727 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
7728
7729 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
7730 and reduction copy.
7731 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
7732 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
7733 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
7734 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
7735 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
7736 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
7737 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
7738 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
7739 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
7740 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
7741 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
7742 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
7743 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
7744 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
7745
7746 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
7747
7748 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
7749 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
7750 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
7751 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
7752 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
7753 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
7754 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
7755 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
7756
7757 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
7758
7759 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
7760 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
7761 (GOMP_OFFLOAD_openacc_parallel): Likewise.
7762 * oacc-host.c (host_openacc_exec): Likewise.
7763 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
7764
7765 2015-11-03 Julian Brown <julian@codesourcery.com>
7766 Thomas Schwinge <thomas@codesourcery.com>
7767
7768 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
7769 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
7770 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
7771 Likewise.
7772 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
7773 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
7774
7775 2015-11-03 James Norris <jnorris@codesourcery.com>
7776
7777 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
7778 file.
7779 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
7780 Likewise.
7781 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
7782 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
7783 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
7784 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
7785 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
7786
7787 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
7788
7789 * openacc.h (enum acc_device_t): Reformat. Ensure layout
7790 compatibility.
7791 (enum acc_async_t): Reformat.
7792 (acc_on_device): Declare compatible with builtin and provide C++
7793 wrapper.
7794 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
7795
7796 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
7797 Cesar Philippidis <cesar@codesourcery.com>
7798
7799 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
7800 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
7801 ... this. Add a description of the test at the top of the file.
7802 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
7803 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
7804 ... this. Add a description of the test at the top of the file.
7805
7806 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
7807
7808 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
7809 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
7810 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
7811 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
7812 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
7813 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
7814
7815 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7816
7817 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
7818 dimensions.
7819
7820 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
7821
7822 PR testsuite/68063
7823 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
7824
7825 2015-10-27 James Norris <jnorris@codesourcery.com>
7826
7827 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
7828 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
7829
7830 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
7831
7832 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
7833 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
7834
7835 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
7836 acc_device_nvidia usage.
7837 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
7838 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7839 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
7840
7841 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
7842 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
7843
7844 PR libgomp/66518
7845 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
7846
7847 PR libgomp/65437
7848 PR libgomp/66518
7849 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
7850 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
7851
7852 2015-10-23 Tom de Vries <tom@codesourcery.com>
7853
7854 PR testsuite/68063
7855 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
7856
7857 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
7858
7859 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
7860 vector_length.
7861 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
7862
7863 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
7864 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
7865
7866 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
7867 to 0 when mapnum is 0.
7868
7869 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
7870
7871 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
7872 Cast to int from int32_t.
7873
7874 2015-10-13 Jakub Jelinek <jakub@redhat.com>
7875 Aldy Hernandez <aldyh@redhat.com>
7876 Ilya Verbin <ilya.verbin@intel.com>
7877
7878 * config/linux/affinity.c (omp_get_place_num_procs,
7879 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
7880 * config/linux/doacross.h: New file.
7881 * config/posix/affinity.c (omp_get_place_num_procs,
7882 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
7883 * config/posix/doacross.h: New file.
7884 * env.c: Include gomp-constants.h.
7885 (struct gomp_task_icv): Rename run_sched_modifier to
7886 run_sched_chunk_size.
7887 (gomp_max_task_priority_var): New variable.
7888 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
7889 (handle_omp_display_env): Change _OPENMP value from 201307 to
7890 201511. Print OMP_MAX_TASK_PRIORITY.
7891 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
7892 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
7893 chunk_size and run_sched_modifier to run_sched_chunk_size.
7894 (omp_get_max_task_priority, omp_get_initial_device,
7895 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
7896 omp_get_partition_place_nums): New functions.
7897 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
7898 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
7899 to chunk_size.
7900 (omp_get_num_places_, omp_get_place_num_procs_,
7901 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
7902 omp_get_place_proc_ids_8_, omp_get_place_num_,
7903 omp_get_partition_num_places_, omp_get_partition_place_nums_,
7904 omp_get_partition_place_nums_8_, omp_get_initial_device_,
7905 omp_get_max_task_priority_): New functions.
7906 * libgomp_g.h (GOMP_loop_doacross_static_start,
7907 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
7908 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
7909 GOMP_loop_ull_doacross_dynamic_start,
7910 GOMP_loop_ull_doacross_guided_start,
7911 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
7912 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
7913 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
7914 GOMP_target_data_41, GOMP_target_update_41,
7915 GOMP_target_enter_exit_data): New prototypes.
7916 (GOMP_task): Add prototype argument.
7917 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
7918 (struct gomp_doacross_work_share): New type.
7919 (struct gomp_work_share): Add doacross field.
7920 (struct gomp_task_icv): Rename run_sched_modifier to
7921 run_sched_chunk_size.
7922 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
7923 GOMP_TASK_UNDEFERRED. Add comments.
7924 (struct gomp_task_depend_entry): Add comments.
7925 (struct gomp_task): Likewise.
7926 (struct gomp_taskgroup): Likewise.
7927 (struct gomp_target_task): New type.
7928 (struct gomp_team): Add comment.
7929 (gomp_get_place_proc_ids_8, gomp_doacross_init,
7930 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
7931 gomp_create_target_task, gomp_target_task_fn): New prototypes.
7932 (struct target_var_desc): New type.
7933 (struct target_mem_desc): Adjust comment. Use struct
7934 target_var_desc instead of splay_tree_key for list.
7935 (REFCOUNT_INFINITY): Define.
7936 (struct splay_tree_key_s): Remove copy_from field.
7937 (struct gomp_device_descr): Add dev2dev_func field.
7938 (enum gomp_map_vars_kind): New enum.
7939 (gomp_map_vars): Add one argument.
7940 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
7941 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
7942 omp_get_place_num_procs, omp_get_place_num_procs_,
7943 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
7944 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
7945 omp_get_place_num_, omp_get_partition_num_places,
7946 omp_get_partition_num_places_, omp_get_partition_place_nums,
7947 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
7948 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
7949 omp_target_free, omp_target_is_present, omp_target_memcpy,
7950 omp_target_memcpy_rect, omp_target_associate_ptr and
7951 omp_target_disassociate_ptr.
7952 (GOMP_4.0.2): Renamed to ...
7953 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
7954 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
7955 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
7956 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
7957 GOMP_loop_doacross_static_start, GOMP_doacross_post,
7958 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
7959 GOMP_loop_ull_doacross_guided_start,
7960 GOMP_loop_ull_doacross_runtime_start,
7961 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
7962 GOMP_doacross_ull_wait.
7963 * libgomp.texi: Document omp_get_max_task_priority.
7964 Rename modifier argument to chunk_size for omp_set_schedule and
7965 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
7966 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
7967 to run_sched_chunk_size renaming.
7968 (GOMP_loop_ordered_runtime_start): Likewise.
7969 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
7970 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
7971 GOMP_parallel_loop_runtime_start): New functions.
7972 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
7973 to run_sched_chunk_size renaming.
7974 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
7975 GOMP_loop_doacross_guided_start): New functions or aliases.
7976 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
7977 run_sched_modifier to run_sched_chunk_size renaming.
7978 (GOMP_loop_ull_ordered_runtime_start): Likewise.
7979 (gomp_loop_ull_doacross_static_start,
7980 gomp_loop_ull_doacross_dynamic_start,
7981 gomp_loop_ull_doacross_guided_start,
7982 GOMP_loop_ull_doacross_runtime_start): New functions.
7983 (GOMP_loop_ull_doacross_static_start,
7984 GOMP_loop_ull_doacross_dynamic_start,
7985 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
7986 * oacc-mem.c (acc_map_data, present_create_copy,
7987 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
7988 to gomp_map_vars.
7989 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
7990 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
7991 instead of false to gomp_map_vars.
7992 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
7993 * omp.h.in (omp_lock_hint_t): New type.
7994 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
7995 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
7996 omp_get_place_num, omp_get_partition_num_places,
7997 omp_get_partition_place_nums, omp_get_initial_device,
7998 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
7999 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
8000 omp_target_associate_ptr, omp_target_disassociate_ptr): New
8001 prototypes.
8002 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
8003 (omp_lock_hint_none, omp_lock_hint_uncontended,
8004 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
8005 omp_lock_hint_speculative): New parameters.
8006 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
8007 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
8008 omp_get_place_num, omp_get_partition_num_places,
8009 omp_get_partition_place_nums, omp_get_initial_device,
8010 omp_get_max_task_priority): New interfaces.
8011 (omp_set_schedule, omp_get_schedule): Rename modifier argument
8012 to chunk_size.
8013 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
8014 (omp_lock_hint_none, omp_lock_hint_uncontended,
8015 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
8016 omp_lock_hint_speculative): New parameters.
8017 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
8018 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
8019 omp_get_place_num, omp_get_partition_num_places,
8020 omp_get_partition_place_nums, omp_get_initial_device,
8021 omp_get_max_task_priority): New functions and subroutines.
8022 * ordered.c: Include stdarg.h and string.h.
8023 (MAX_COLLAPSED_BITS): Define.
8024 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
8025 gomp_doacross_ull_init, GOMP_doacross_ull_post,
8026 GOMP_doacross_ull_wait): New functions.
8027 * target.c: Include errno.h.
8028 (resolve_device): If device is not initialized, call
8029 gomp_init_device on it.
8030 (gomp_map_lookup): New function.
8031 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
8032 Don't bump refcount if REFCOUNT_INFINITY. Handle
8033 GOMP_MAP_ALWAYS_TO_P.
8034 (get_kind): Rename is_openacc argument to short_mapkind.
8035 (gomp_map_pointer): Use gomp_map_lookup.
8036 (gomp_map_fields_existing): New function.
8037 (gomp_map_vars): Rename is_openacc argument to short_mapkind
8038 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
8039 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
8040 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
8041 Adjust for tgt->list changed type and copy_from living in there.
8042 (gomp_copy_from_async): Adjust for tgt->list changed type and
8043 copy_from living in there.
8044 (gomp_unmap_vars): Likewise.
8045 (gomp_update): Likewise. Rename is_openacc argument to
8046 short_mapkind. Don't fail if object is not mapped.
8047 (gomp_load_image_to_device): Initialize refcount to
8048 REFCOUNT_INFINITY.
8049 (gomp_target_fallback): New function.
8050 (gomp_get_target_fn_addr): Likewise.
8051 (GOMP_target): Adjust gomp_map_vars caller, use
8052 gomp_get_target_fn_addr and gomp_target_fallback.
8053 (GOMP_target_41): New function.
8054 (gomp_target_data_fallback): New function.
8055 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
8056 (GOMP_target_data_41): New function.
8057 (GOMP_target_update): Adjust gomp_update caller.
8058 (GOMP_target_update_41): New function.
8059 (gomp_exit_data, GOMP_target_enter_exit_data,
8060 gomp_target_task_fn, omp_target_alloc, omp_target_free,
8061 omp_target_is_present, omp_target_memcpy,
8062 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
8063 omp_target_associate_ptr, omp_target_disassociate_ptr,
8064 gomp_load_plugin_for_device): New functions.
8065 * task.c: Include gomp-constants.h. Include taskloop.c
8066 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
8067 (gomp_task_handle_depend): New function.
8068 (GOMP_task): Use it. Add priority argument. Use
8069 gomp-constant.h constants instead of hardcoded numbers.
8070 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
8071 (gomp_create_target_task): New function.
8072 (verify_children_queue, verify_taskgroup_queue,
8073 verify_task_queue): New functions.
8074 (gomp_task_run_pre): Call verify_*_queue functions.
8075 If an upcoming tied task is about to leave the sibling or
8076 taskgroup queues in an invalid state, adjust appropriately.
8077 Remove taskgroup argument. Add comments.
8078 (gomp_task_run_post_handle_dependers): Add comments.
8079 (gomp_task_run_post_remove_parent): Likewise.
8080 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
8081 (GOMP_taskwait): Likewise. Add comments.
8082 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
8083 problem such that the first non parent_depends_on task does not
8084 end up at the end of the children queue.
8085 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
8086 GOMP_TASK_UNDEFERRED.
8087 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
8088 * taskloop.c: New file.
8089 * testsuite/lib/libgomp.exp
8090 (check_effective_target_offload_device_nonshared_as): New proc.
8091 * testsuite/libgomp.c/affinity-2.c: New test.
8092 * testsuite/libgomp.c/doacross-1.c: New test.
8093 * testsuite/libgomp.c/doacross-2.c: New test.
8094 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
8095 Add map clause to target.
8096 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
8097 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
8098 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
8099 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
8100 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
8101 Likewise.
8102 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
8103 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
8104 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
8105 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
8106 not defined. Use those where needed.
8107 * testsuite/libgomp.c/for-4.c: New test.
8108 * testsuite/libgomp.c/for-5.c: New test.
8109 * testsuite/libgomp.c/for-6.c: New test.
8110 * testsuite/libgomp.c/linear-1.c: New test.
8111 * testsuite/libgomp.c/ordered-4.c: New test.
8112 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
8113 only allowed on the loop iterator.
8114 * testsuite/libgomp.c/pr66199-3.c: New test.
8115 * testsuite/libgomp.c/pr66199-4.c: New test.
8116 * testsuite/libgomp.c/reduction-7.c: New test.
8117 * testsuite/libgomp.c/reduction-8.c: New test.
8118 * testsuite/libgomp.c/reduction-9.c: New test.
8119 * testsuite/libgomp.c/reduction-10.c: New test.
8120 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
8121 map(tofrom:s).
8122 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
8123 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
8124 * testsuite/libgomp.c/target-11.c: New test.
8125 * testsuite/libgomp.c/target-12.c: New test.
8126 * testsuite/libgomp.c/target-13.c: New test.
8127 * testsuite/libgomp.c/target-14.c: New test.
8128 * testsuite/libgomp.c/target-15.c: New test.
8129 * testsuite/libgomp.c/target-16.c: New test.
8130 * testsuite/libgomp.c/target-17.c: New test.
8131 * testsuite/libgomp.c/target-18.c: New test.
8132 * testsuite/libgomp.c/target-19.c: New test.
8133 * testsuite/libgomp.c/target-20.c: New test.
8134 * testsuite/libgomp.c/target-21.c: New test.
8135 * testsuite/libgomp.c/target-22.c: New test.
8136 * testsuite/libgomp.c/target-23.c: New test.
8137 * testsuite/libgomp.c/target-24.c: New test.
8138 * testsuite/libgomp.c/target-25.c: New test.
8139 * testsuite/libgomp.c/target-26.c: New test.
8140 * testsuite/libgomp.c/target-27.c: New test.
8141 * testsuite/libgomp.c/taskloop-1.c: New test.
8142 * testsuite/libgomp.c/taskloop-2.c: New test.
8143 * testsuite/libgomp.c/taskloop-3.c: New test.
8144 * testsuite/libgomp.c/taskloop-4.c: New test.
8145 * testsuite/libgomp.c++/ctor-13.C: New test.
8146 * testsuite/libgomp.c++/doacross-1.C: New test.
8147 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
8148 Replace offload_device with offload_device_nonshared_as.
8149 * testsuite/libgomp.c++/for-12.C: New test.
8150 * testsuite/libgomp.c++/for-13.C: New test.
8151 * testsuite/libgomp.c++/for-14.C: New test.
8152 * testsuite/libgomp.c++/linear-1.C: New test.
8153 * testsuite/libgomp.c++/member-1.C: New test.
8154 * testsuite/libgomp.c++/member-2.C: New test.
8155 * testsuite/libgomp.c++/member-3.C: New test.
8156 * testsuite/libgomp.c++/member-4.C: New test.
8157 * testsuite/libgomp.c++/member-5.C: New test.
8158 * testsuite/libgomp.c++/ordered-1.C: New test.
8159 * testsuite/libgomp.c++/reduction-5.C: New test.
8160 * testsuite/libgomp.c++/reduction-6.C: New test.
8161 * testsuite/libgomp.c++/reduction-7.C: New test.
8162 * testsuite/libgomp.c++/reduction-8.C: New test.
8163 * testsuite/libgomp.c++/reduction-9.C: New test.
8164 * testsuite/libgomp.c++/reduction-10.C: New test.
8165 * testsuite/libgomp.c++/reference-1.C: New test.
8166 * testsuite/libgomp.c++/simd14.C: New test.
8167 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
8168 * testsuite/libgomp.c++/target-5.C: New test.
8169 * testsuite/libgomp.c++/target-6.C: New test.
8170 * testsuite/libgomp.c++/target-7.C: New test.
8171 * testsuite/libgomp.c++/target-8.C: New test.
8172 * testsuite/libgomp.c++/target-9.C: New test.
8173 * testsuite/libgomp.c++/target-10.C: New test.
8174 * testsuite/libgomp.c++/target-11.C: New test.
8175 * testsuite/libgomp.c++/target-12.C: New test.
8176 * testsuite/libgomp.c++/taskloop-1.C: New test.
8177 * testsuite/libgomp.c++/taskloop-2.C: New test.
8178 * testsuite/libgomp.c++/taskloop-3.C: New test.
8179 * testsuite/libgomp.c++/taskloop-4.C: New test.
8180 * testsuite/libgomp.c++/taskloop-5.C: New test.
8181 * testsuite/libgomp.c++/taskloop-6.C: New test.
8182 * testsuite/libgomp.c++/taskloop-7.C: New test.
8183 * testsuite/libgomp.c++/taskloop-8.C: New test.
8184 * testsuite/libgomp.c++/taskloop-9.C: New test.
8185 * testsuite/libgomp.fortran/affinity1.f90: New test.
8186 * testsuite/libgomp.fortran/affinity2.f90: New test.
8187
8188 2015-10-13 Tom de Vries <tom@codesourcery.com>
8189
8190 PR tree-optimization/67476
8191 * testsuite/libgomp.c/autopar-3.c: New test.
8192 * testsuite/libgomp.c/autopar-4.c: New test.
8193 * testsuite/libgomp.c/autopar-5.c: New test.
8194 * testsuite/libgomp.c/autopar-6.c: New test.
8195 * testsuite/libgomp.c/autopar-7.c: New test.
8196 * testsuite/libgomp.c/autopar-8.c: New test.
8197
8198 2015-10-12 James Norris <jnorris@codesourcery.com>
8199
8200 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
8201 initializer.
8202
8203 2015-10-09 David Malcolm <dmalcolm@redhat.com>
8204
8205 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
8206 using load_gcc_lib.
8207
8208 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
8209
8210 * oacc-ptx.h: Remove file, moving its content into...
8211 * config/nvptx/fortran.c: ... here...
8212 * config/nvptx/oacc-init.c: ..., here...
8213 * config/nvptx/oacc-parallel.c: ..., and here.
8214 * config/nvptx/openacc.f90: New file.
8215 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
8216 (link_ptx): Don't link in predefined bits of PTX code.
8217
8218 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
8219 Bernd Schmidt <bernds@codesourcery.com>
8220
8221 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
8222 (struct targ_ptx_obj): New.
8223 (nvptx_tdata): Move earlier, change data format.
8224 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
8225 objects.
8226 (GOMP_OFFLOAD_load_image): Adjust.
8227
8228 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
8229
8230 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
8231 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
8232 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
8233 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
8234 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8235 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
8236 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
8237 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
8238 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
8239 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
8240 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8241 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
8242 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
8243 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8244 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8245 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8246 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
8247 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8248 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8249 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8250 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8251 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8252 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8253 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8254 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8255 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8256 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
8257 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8258 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8259 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8260 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8261 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8262 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
8263 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8264 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8265 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8266 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8267 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8268 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8269 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8270 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8271 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8272 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8273 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8274 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
8275 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
8276 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
8277 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
8278 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
8279 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
8280 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8281 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8282 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8283 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8284 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
8285 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8286 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8287 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8288 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8289 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8290 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8291 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8292 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8293
8294 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
8295
8296 * oacc-init.c (acc_on_device): Force optimization level.
8297
8298 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
8299
8300 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
8301 (cuda_errlist): Delete.
8302 (cuda_error): Reimplement.
8303
8304 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
8305
8306 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
8307 array.
8308 * libgomp.map (GOACC_parallel_keyed): New.
8309 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
8310 all callers.
8311 (GOACC_parallel_keyed): New interface. Lose geometry arguments
8312 and take keyed varargs list. Adjust call to exec_func.
8313 (GOACC_parallel): Force host fallback.
8314 * libgomp_g.h (GOACC_parallel): Remove.
8315 (GOACC_parallel_keyed): Declare.
8316 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
8317 (struct targ_gn_descriptor): Replace name field with launch field.
8318 (nvptx_exec): Lose separate geometry args, take array. Process
8319 dynamic dimensions and adjust.
8320 (struct nvptx_tdata): Replace fn_names field with fn_descs.
8321 (GOMP_OFFLOAD_load_image): Adjust for change in function table
8322 data.
8323 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
8324 passing.
8325 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
8326 passing.
8327
8328 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
8329
8330 PR libgomp/67141
8331 * oacc-int.h (goacc_host_init): Add declaration.
8332 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
8333 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
8334
8335 2015-09-08 Aditya Kumar <hiraditya@msn.com>
8336 Sebastian Pop <s.pop@samsung.com>
8337
8338 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
8339 match o/p.
8340 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
8341 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
8342 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
8343 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
8344 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
8345
8346 2015-09-03 Jakub Jelinek <jakub@redhat.com>
8347
8348 * configure.tgt: Add missing ;; in between nvptx and rtems
8349 snippets.
8350
8351 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
8352
8353 * config/posix/pool.h (gomp_adjust_thread_attr): New.
8354 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
8355 (gomp_thread_pool_reservoir): Add priority member.
8356 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
8357 priority.
8358 (parse_thread_pools): Likewise.
8359 * team.c (gomp_team_start): Call configuration provided
8360 gomp_adjust_thread_attr(). Destroy thread attributes if
8361 necessary.
8362 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
8363
8364 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
8365
8366 * config/posix/pool.h: New.
8367 * config/rtems/pool.h: Likewise.
8368 * config/rtems/proc.c: Likewise.
8369 * libgomp.h (gomp_thread_destructor): Declare.
8370 * team.c: Include configuration provided "pool.h".
8371 (gomp_get_thread_pool): Define in configuration.
8372 (gomp_team_end): Call configuration defined
8373 gomp_release_thread_pool().
8374
8375 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
8376
8377 * config/rtems/bar.c: New.
8378 * config/rtems/bar.h: Likewise.
8379 * config/rtems/mutex.c: Likewise.
8380 * config/rtems/mutex.h: Likewise.
8381 * config/rtems/sem.c: Likewise.
8382 * config/rtems/sem.h: Likewise.
8383 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
8384 <sys/lock.h> header file.
8385 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
8386 supported by Newlib.
8387 * configure: Regenerate.
8388
8389 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
8390
8391 * team.c (gomp_new_thread_pool): Delete and move content to ...
8392 (gomp_get_thread_pool): ... new function. Allocate and
8393 initialize thread pool on demand.
8394 (get_last_team): Use gomp_get_thread_pool().
8395 (gomp_team_start): Delete thread pool initialization.
8396
8397 2015-09-03 Tom de Vries <tom@codesourcery.com>
8398
8399 PR tree-optimization/65637
8400 * testsuite/libgomp.c/autopar-2.c: New test.
8401
8402 2015-08-29 Tom de Vries <tom@codesourcery.com>
8403
8404 PR tree-optimization/46193
8405 * testsuite/libgomp.c/pr46193.c: New test.
8406
8407 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
8408
8409 libgomp/
8410 * libgomp.map: Add 4.0.2 version.
8411 * target.c (offload_image_descr): Add version field.
8412 (gomp_load_image_to_device): Add version argument. Adjust plugin
8413 call. Improve load mismatch diagnostic.
8414 (gomp_unload_image_from_device): Add version argument. Adjust plugin
8415 call.
8416 (GOMP_offload_regster): Make stub function, move bulk to ...
8417 (GOMP_offload_register_ver): ... here. Process version argument.
8418 (GOMP_offload_unregister): Make stub function, move bulk to ...
8419 (GOMP_offload_unregister_ver): ... here. Process version argument.
8420 (gomp_init_device): Process version field.
8421 (gomp_unload_device): Process version field.
8422 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
8423 macros. Check plugin version.
8424 * libgomp.h (gomp_device_descr): Add version function field. Adjust
8425 loader and unloader types.
8426 * oacc-host.c: Include gomp-constants.h.
8427 (host_version): New.
8428 (host_load_image, host_unload_image): Adjust.
8429 (host_dispatch): Add host_version.
8430 * plugin/plugin-nvptx.c: Include gomp-constants.h.
8431 (GOMP_OFFLOAD_version): New.
8432 (GOMP_OFFLOAD_load_image): Add version arg and check it.
8433 (GOMP_OFFLOAD_unload_image): Likewise.
8434 * plugin/plugin-host.c: Include gomp-constants.h.
8435 (GOMP_OFFLOAD_version): New.
8436 (GOMP_OFFLOAD_load_image): Add version arg.
8437 (GOMP_OFFLOAD_unload_image): Likewise.
8438
8439 2015-08-24 Tom de Vries <tom@codesourcery.com>
8440
8441 PR tree-optimization/65468
8442 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
8443
8444 2015-08-24 Tom de Vries <tom@codesourcery.com>
8445
8446 PR tree-optimization/65468
8447 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
8448
8449 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
8450
8451 PR libgomp/66761
8452 PR libgomp/67303
8453 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
8454 (gomp_iter_guided_next): Idem.
8455 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
8456 (gomp_iter_ull_guided_next): Idem.
8457 * config/linux/wait.h (do_spin): Idem.
8458
8459 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
8460
8461 * libgomp-plugin.h (enum offload_target_type): Remove
8462 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
8463 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
8464 * openacc.h (enum acc_device_t): Likewise.
8465 * openacc_lib.h: Likewise.
8466 * oacc-init.c (name_of_acc_device_t): Don't handle it.
8467 (acc_on_device): Just use __builtin_acc_on_device.
8468 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
8469 of acc_on_device builtin.
8470 * plugin/plugin-host.h: Remove file.
8471 * plugin/plugin-host.c: Likewise, but salvage some content into...
8472 * oacc-host.c: ... this file.
8473 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
8474 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
8475 * Makefile.in: Regenerate.
8476 * configure: Likewise.
8477 * testsuite/lib/libgomp.exp
8478 (check_effective_target_openacc_host_nonshm_selected): Remove.
8479 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
8480 ACC_DEVICE_TYPE=host_nonshm.
8481 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8482 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8483 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
8484 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
8485 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
8486 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
8487
8488 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
8489 Jakub Jelinek <jakub@redhat.com>
8490
8491 * config/nvptx/affinity.c: New file.
8492 * config/nvptx/alloc.c: Likewise.
8493 * config/nvptx/bar.c: Likewise.
8494 * config/nvptx/barrier.c: Likewise.
8495 * config/nvptx/critical.c: Likewise.
8496 * config/nvptx/env.c: Likewise.
8497 * config/nvptx/error.c: Likewise.
8498 * config/nvptx/fortran.c: Likewise.
8499 * config/nvptx/iter.c: Likewise.
8500 * config/nvptx/iter_ull.c: Likewise.
8501 * config/nvptx/libgomp-plugin.c: Likewise.
8502 * config/nvptx/lock.c: Likewise.
8503 * config/nvptx/loop.c: Likewise.
8504 * config/nvptx/loop_ull.c: Likewise.
8505 * config/nvptx/mutex.c: Likewise.
8506 * config/nvptx/oacc-async.c: Likewise.
8507 * config/nvptx/oacc-cuda.c: Likewise.
8508 * config/nvptx/oacc-host.c: Likewise.
8509 * config/nvptx/oacc-init.c: Likewise.
8510 * config/nvptx/oacc-mem.c: Likewise.
8511 * config/nvptx/oacc-parallel.c: Likewise.
8512 * config/nvptx/oacc-plugin.c: Likewise.
8513 * config/nvptx/omp-lock.h: Likewise.
8514 * config/nvptx/ordered.c: Likewise.
8515 * config/nvptx/parallel.c: Likewise.
8516 * config/nvptx/proc.c: Likewise.
8517 * config/nvptx/ptrlock.c: Likewise.
8518 * config/nvptx/sections.c: Likewise.
8519 * config/nvptx/sem.c: Likewise.
8520 * config/nvptx/single.c: Likewise.
8521 * config/nvptx/splay-tree.c: Likewise.
8522 * config/nvptx/target.c: Likewise.
8523 * config/nvptx/task.c: Likewise.
8524 * config/nvptx/team.c: Likewise.
8525 * config/nvptx/time.c: Likewise.
8526 * config/nvptx/work.c: Likewise.
8527 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
8528 * configure: Regenerate.
8529 * configure.tgt (config_path): Set to "nvptx" for target
8530 nvptx*-*-*.
8531
8532 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
8533
8534 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
8535
8536 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
8537
8538 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
8539 (cuda_errlist): Constify.
8540 (errmsg): Move into ...
8541 (cuda_error): ... here. Make smaller.
8542 (_XSTR, _STR): Delete.
8543 (cuda_synames): Delete.
8544 (verify_device_library): Delete.
8545 (nvptx_init): Don't call it.
8546
8547 2015-07-28 Tom de Vries <tom@codesourcery.com>
8548
8549 * testsuite/libgomp.c/uns-outer-4.c: New test.
8550
8551 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
8552
8553 * testsuite/libgomp.c/pr66714.c: New test.
8554
8555 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
8556
8557 PR libgomp/66950
8558 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
8559 (fib_ref): New function.
8560 (fib): Correct corner cases in the recursion.
8561 (main): Replace the non-simd loop with fib_ref call.
8562 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
8563 subroutine.
8564 (fibonacci): Lower the parameter N to 30. Correct accordingly check
8565 for the last array element value. Replace the non-simd loop with
8566 fib_ref call. Remove redundant b_ref array. Remove the comparison
8567 of the last array element with according Fibonacci sequence element.
8568 (fib): Correct corner cases in the recursion.
8569
8570 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
8571
8572 * target.c (gomp_offload_image_to_device): Rename to ...
8573 (gomp_load_image_to_device): ... here.
8574 (GOMP_offload_register): Adjust call.
8575 (gomp_init_device): Likewise.
8576 (gomp_unload_image_from_device): New. Broken out of ...
8577 (GOMP_offload_unregister): ... here. Call it.
8578 (gomp_unload_device): New.
8579 * libgomp.h (gomp_unload_device): Declare.
8580 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
8581 mem maps.
8582
8583 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
8584
8585 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
8586 wait=-specific if.
8587 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
8588 !=0 condition.
8589 (goacc_waits): Move !num_waits handling to ...
8590 (GOACC_wait): ... here, the only caller that might have zero waits.
8591
8592 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
8593 (struct ptx_image_data): Move earlier, add fns field.
8594 (struct ptx_device): Add images and image_lock fields.
8595 (ptx_images, ptx_image_lock): Delete.
8596 (nvptx_open_device): Initialize images and image_lock fields.
8597 (nvptx_close_device): Destroy image_lock.
8598 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
8599 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
8600 fields.
8601
8602 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
8603
8604 * target.c (GOMP_offload_register): Use int for device type arg.
8605 (GOMP_offload_unregister): Likewise.
8606
8607 * target.c (struct_offload_image_descr): Constify host_table.
8608 (gomp_offload_image_to_device): Likewise.
8609 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
8610
8611 * libgomp.h (gomp_device_descr): Constify target data arguments.
8612 * target.c (struct offload_image_descr): Constify target_data.
8613 (gomp_offload_image_to_device): Likewise.
8614 (GOMP_offload_register): Likewise.
8615 (GOMP_offload_unregister): Likewise.
8616 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
8617 GOMP_OFFLOAD_unload_image): Constify target data.
8618 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
8619 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
8620
8621 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
8622
8623 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
8624 Workaround driver library const error.
8625 (struct nvptx_tdata, nvptx_tdata_t): New.
8626 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
8627 type.
8628
8629 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
8630
8631 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
8632 of EPS parameter from integer to real.
8633 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
8634 type of EPS parameter from integer to real.
8635
8636 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
8637
8638 * team.c (get_last_team): New.
8639 (gomp_new_team): Recycle last non-nested team if possible.
8640 (gomp_team_end): Move team work share list free lock destruction
8641 to ...
8642 (free_team): ... here.
8643
8644 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
8645
8646 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
8647 and ref from int to double. Replaced their comparison with
8648 an inequality of their difference and EPS.
8649 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
8650 comparison of pri and a reference number with an inequality of their
8651 difference and EPS.
8652 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
8653 the comparison of sum and sum_ref with an inequality of their
8654 difference and EPS.
8655 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
8656 the comparison of pri and a reference number with an inequality of
8657 their difference and EPS.
8658
8659 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
8660
8661 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
8662 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
8663 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
8664 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
8665 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
8666 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
8667 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
8668 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
8669 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
8670 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
8671 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
8672 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
8673 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
8674 variables.
8675 (vec_mult): Likewise. Add #pragma omp taskwait.
8676 (main): Adjust caller.
8677 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
8678 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
8679 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
8680 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
8681 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
8682 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
8683 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
8684 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
8685 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
8686 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
8687 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
8688 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
8689 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
8690 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
8691 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
8692 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
8693 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
8694 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
8695 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
8696 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
8697 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
8698 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
8699 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
8700 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
8701 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
8702 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
8703 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
8704 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
8705 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
8706 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
8707 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
8708 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
8709 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
8710 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
8711 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
8712 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
8713 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
8714 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
8715 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
8716 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
8717 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
8718 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
8719 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
8720 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
8721 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
8722 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
8723 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
8724 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
8725 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
8726 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
8727 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
8728 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
8729 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
8730 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
8731 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
8732 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
8733 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
8734 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
8735 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
8736 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
8737 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
8738 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
8739 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
8740 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
8741 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
8742 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
8743 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
8744 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
8745 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
8746 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
8747 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
8748 (vec_mult): Add !$omp taskwait.
8749 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
8750 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
8751 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
8752 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
8753 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
8754 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
8755 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
8756 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
8757 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
8758 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
8759 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
8760 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
8761 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
8762 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
8763 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
8764 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
8765 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
8766 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
8767 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
8768 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
8769 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
8770 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
8771 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
8772 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
8773 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
8774 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
8775 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
8776 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
8777 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
8778 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
8779 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
8780 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
8781 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
8782 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
8783 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
8784 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
8785 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
8786 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
8787 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
8788 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
8789 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
8790 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
8791 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
8792 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
8793 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
8794 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
8795 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
8796 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
8797 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
8798 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
8799 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
8800 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
8801 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
8802 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
8803 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
8804 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
8805 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
8806 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
8807 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
8808 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
8809 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
8810 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
8811 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
8812 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
8813 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
8814 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
8815 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
8816
8817 2015-07-10 Tom de Vries <tom@codesourcery.com>
8818
8819 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
8820 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
8821
8822 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
8823
8824 PR libgomp/65099
8825 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
8826 in a 64-bit configuration.
8827 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
8828 offloading testing if no such device is available.
8829 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8830 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8831
8832 2015-07-08 Tom de Vries <tom@codesourcery.com>
8833
8834 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
8835 second call to f.
8836 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
8837
8838 2015-07-07 Tom de Vries <tom@codesourcery.com>
8839
8840 PR tree-optimization/66642
8841 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
8842 iteration count case.
8843 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
8844 function, factor out of ...
8845 (main): ... here. Test low iteration count case.
8846
8847 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
8848
8849 * libgomp.h (gomp_thread_pool): Comment last_team field.
8850
8851 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
8852
8853 * testsuite/libgomp.c++/pr66702-1.C: Require
8854 vect_simd_clones effective target.
8855 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
8856
8857 2015-06-30 Tom de Vries <tom@codesourcery.com>
8858
8859 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
8860 already set. Use DEFAULT_CFLAGS in dg-runtest.
8861 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
8862 "-O2".
8863
8864 2015-06-30 Tom de Vries <tom@codesourcery.com>
8865
8866 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
8867 already set. Use DEFAULT_CFLAGS in dg-runtest.
8868 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
8869 * testsuite/libgomp.c++/pr64824.C: Same.
8870 * testsuite/libgomp.c++/pr64868.C: Same.
8871 * testsuite/libgomp.c++/pr66199-1.C: Same.
8872 * testsuite/libgomp.c++/pr66199-2.C: Same.
8873 * testsuite/libgomp.c++/target-2.C: Same.
8874 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
8875 -std=<standard> option.
8876 * testsuite/libgomp.c++/udr-11.C: Same.
8877 * testsuite/libgomp.c++/udr-12.C: Same.
8878 * testsuite/libgomp.c++/udr-13.C: Same.
8879 * testsuite/libgomp.c++/udr-14.C: Same.
8880 * testsuite/libgomp.c++/udr-15.C: Same.
8881 * testsuite/libgomp.c++/udr-16.C: Same.
8882 * testsuite/libgomp.c++/udr-17.C: Same.
8883 * testsuite/libgomp.c++/udr-18.C: Same.
8884 * testsuite/libgomp.c++/udr-19.C: Same.
8885 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
8886 * testsuite/libgomp.c++/simd-1.C: Same.
8887 * testsuite/libgomp.c++/simd-2.C: Same.
8888 * testsuite/libgomp.c++/simd-3.C: Same.
8889 * testsuite/libgomp.c++/simd-4.C: Same.
8890 * testsuite/libgomp.c++/simd-5.C: Same.
8891 * testsuite/libgomp.c++/simd-6.C: Same.
8892 * testsuite/libgomp.c++/simd-7.C: Same.
8893 * testsuite/libgomp.c++/simd-8.C: Same.
8894 * testsuite/libgomp.c++/simd-9.C: Same.
8895 * testsuite/libgomp.c++/simd10.C: Same.
8896 * testsuite/libgomp.c++/simd11.C: Same.
8897 * testsuite/libgomp.c++/simd12.C: Same.
8898 * testsuite/libgomp.c++/simd13.C: Same.
8899
8900 2015-06-30 Jakub Jelinek <jakub@redhat.com>
8901
8902 PR middle-end/66702
8903 * testsuite/libgomp.c++/pr66702-1.C: New test.
8904 * testsuite/libgomp.c++/pr66702-2.C: New test.
8905
8906 2015-06-30 Tom de Vries <tom@codesourcery.com>
8907
8908 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
8909 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
8910 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
8911 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
8912
8913 2015-06-30 Tom de Vries <tom@codesourcery.com>
8914
8915 PR tree-optimization/66652
8916 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
8917 using restrict pointers.
8918 (main): Add arguments to calls to f.
8919 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
8920
8921 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
8922
8923 * configure.ac: Fix check for header <sys/sysctl.h>.
8924 * configure: Regenerate.
8925 * config.h.in: Likewise.
8926
8927 2015-06-23 Tom de Vries <tom@codesourcery.com>
8928
8929 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
8930 abort.
8931 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
8932
8933 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
8934
8935 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
8936 acc_device_nvidia.
8937
8938 PR libgomp/66518
8939 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
8940 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8941
8942 2015-06-15 Tom de Vries <tom@codesourcery.com>
8943
8944 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
8945 dg-additional-options for any remaining options.
8946 * testsuite/libgomp.c/atomic-2.c: Same.
8947 * testsuite/libgomp.c/atomic-4.c: Same.
8948 * testsuite/libgomp.c/atomic-5.c: Same.
8949 * testsuite/libgomp.c/atomic-6.c: Same.
8950 * testsuite/libgomp.c/autopar-1.c: Same.
8951 * testsuite/libgomp.c/copyin-1.c: Same.
8952 * testsuite/libgomp.c/copyin-2.c: Same.
8953 * testsuite/libgomp.c/copyin-3.c: Same.
8954 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
8955 * testsuite/libgomp.c/nestedfn-5.c: Same.
8956 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
8957 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
8958 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
8959 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
8960 * testsuite/libgomp.c/pr32362-1.c: Same.
8961 * testsuite/libgomp.c/pr32362-2.c: Same.
8962 * testsuite/libgomp.c/pr32362-3.c: Same.
8963 * testsuite/libgomp.c/pr39591-1.c: Same.
8964 * testsuite/libgomp.c/pr39591-2.c: Same.
8965 * testsuite/libgomp.c/pr39591-3.c: Same.
8966 * testsuite/libgomp.c/pr58392.c: Same.
8967 * testsuite/libgomp.c/pr58756.c: Same.
8968 * testsuite/libgomp.c/simd-1.c: Same.
8969 * testsuite/libgomp.c/simd-10.c: Same.
8970 * testsuite/libgomp.c/simd-11.c: Same.
8971 * testsuite/libgomp.c/simd-12.c: Same.
8972 * testsuite/libgomp.c/simd-13.c: Same.
8973 * testsuite/libgomp.c/simd-14.c: Same.
8974 * testsuite/libgomp.c/simd-15.c: Same.
8975 * testsuite/libgomp.c/simd-2.c: Same.
8976 * testsuite/libgomp.c/simd-3.c: Same.
8977 * testsuite/libgomp.c/simd-4.c: Same.
8978 * testsuite/libgomp.c/simd-5.c: Same.
8979 * testsuite/libgomp.c/simd-6.c: Same.
8980 * testsuite/libgomp.c/simd-7.c: Same.
8981 * testsuite/libgomp.c/simd-8.c: Same.
8982 * testsuite/libgomp.c/simd-9.c: Same.
8983
8984 2015-06-15 Tom de Vries <tom@codesourcery.com>
8985
8986 * testsuite/libgomp.c/pr35625.c: Fix typo.
8987
8988 2015-06-15 Tom de Vries <tom@codesourcery.com>
8989
8990 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
8991 in dg-options.
8992 * testsuite/libgomp.c/atomic-3.c: Same.
8993 * testsuite/libgomp.c/debug-1.c: Same.
8994 * testsuite/libgomp.c/nqueens-1.c: Same.
8995 * testsuite/libgomp.c/pr26171.c: Same.
8996 * testsuite/libgomp.c/pr48591.c: Same.
8997 * testsuite/libgomp.c/pr64824.c: Same.
8998 * testsuite/libgomp.c/pr64868.c: Same.
8999 * testsuite/libgomp.c/pr66133.c: Same.
9000 * testsuite/libgomp.c/pr66199-1.c: Same.
9001 * testsuite/libgomp.c/pr66199-2.c: Same.
9002 * testsuite/libgomp.c/target-8.c: Same.
9003
9004 2015-06-15 Tom de Vries <tom@codesourcery.com>
9005
9006 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
9007 -std={gnu99,c99}.
9008 * testsuite/libgomp.c/for-1.c: Same.
9009 * testsuite/libgomp.c/for-2.c: Same.
9010 * testsuite/libgomp.c/for-3.c: Same.
9011 * testsuite/libgomp.c/pr35625.c: Same.
9012 * testsuite/libgomp.c/pr39154.c: Same.
9013 * testsuite/libgomp.c/simd-16.c: Same.
9014 * testsuite/libgomp.c/simd-17.c: Same.
9015
9016 2015-06-13 Tom de Vries <tom@codesourcery.com>
9017
9018 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
9019
9020 2015-06-13 Tom de Vries <tom@codesourcery.com>
9021
9022 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
9023 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
9024 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
9025 (N): Define.
9026 (main): Use N instead of hardcoded constants.
9027
9028 2015-06-05 Tom de Vries <tom@codesourcery.com>
9029
9030 merge from gomp4 branch:
9031 2015-05-28 Tom de Vries <tom@codesourcery.com>
9032
9033 PR tree-optimization/65443
9034 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
9035 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
9036 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
9037
9038 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9039
9040 * testsuite/libgomp.graphite/bounds.c: Adjust for
9041 cleanup-tree-dump removal.
9042 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
9043 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
9044 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
9045 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
9046 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
9047 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
9048 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9049 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9050 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
9051 * testsuite/libgomp.graphite/pr41118.c: Likewise.
9052
9053 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
9054
9055 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
9056 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
9057 (futex_wake) [!__x86_64__]: Ditto.
9058
9059 2015-05-28 Julian Brown <julian@codesourcery.com>
9060
9061 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
9062 function comment. Only call gomp_fatal if new argument is true.
9063 (acc_dev_num_out_of_range): New function.
9064 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
9065 acc_dev_num_out_of_range as appropriate.
9066 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
9067 (acc_get_device_num, acc_set_device_num): Update calls to
9068 resolve_device.
9069 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
9070 output.
9071
9072 2015-05-28 Julian Brown <julian@codesourcery.com>
9073
9074 PR libgomp/65742
9075 * oacc-init.c (plugin/plugin-host.h): Include.
9076 (acc_on_device): Check whether we're in an offloaded region for
9077 host_nonshm
9078 plugin. Don't use __builtin_acc_on_device.
9079 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
9080 nonshm_exec flag in thread-local data.
9081 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
9082 data for host_nonshm plugin.
9083 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
9084 for host_nonshm plugin.
9085 * plugin/plugin-host.h: New.
9086
9087 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
9088
9089 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
9090
9091 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
9092
9093 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
9094 Declare as int.
9095 (FUTEX_PRIVATE_FLAG): Remove L suffix.
9096 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
9097 Declare as int.
9098
9099 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
9100
9101 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
9102
9103 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
9104
9105 * target.c (gomp_map_pointer): New function abstracting out
9106 GOMP_MAP_POINTER handling.
9107 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
9108 gomp_map_pointer().
9109
9110 2015-05-19 Jakub Jelinek <jakub@redhat.com>
9111
9112 PR middle-end/66199
9113 * testsuite/libgomp.c/pr66199-1.c: New test.
9114 * testsuite/libgomp.c/pr66199-2.c: New test.
9115 * testsuite/libgomp.c++/pr66199-1.C: New test.
9116 * testsuite/libgomp.c++/pr66199-2.C: New test.
9117 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
9118 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
9119
9120 2015-05-19 Julian Brown <julian@codesourcery.com>
9121
9122 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
9123 on cuInit failure.
9124
9125 2015-05-13 Jakub Jelinek <jakub@redhat.com>
9126
9127 PR middle-end/66133
9128 * testsuite/libgomp.c/pr66133.c: New test.
9129
9130 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
9131
9132 * Makefile.in: Regenerated with automake-1.11.6.
9133 * aclocal.m4: Likewise.
9134 * config.h.in: Likewise.
9135 * configure: Likewise.
9136 * testsuite/Makefile.in: Likewise.
9137
9138 2015-05-08 Jason Merrill <jason@redhat.com>
9139
9140 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
9141 _Complex.
9142
9143 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
9144
9145 2015-05-06 Julian Brown <julian@codesourcery.com>
9146
9147 * oacc-init.c (acc_device_lock): Add explanatory comment.
9148 (resolve_device): Add comment about locking requirement.
9149 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
9150 gomp_init_device and gomp_fini_device calls.
9151 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
9152 (acc_get_device_num, acc_set_device_num): Add locking around
9153 resolve_device and gomp_init_device calls.
9154
9155 2015-05-06 Julian Brown <julian@codesourcery.com>
9156
9157 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
9158 goacc_thread_lock on error paths.
9159 * oacc-mem.c (lookup_host): Remove locking from function. Note
9160 locking requirement for caller in function comment.
9161 (lookup_dev): Likewise.
9162 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
9163 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
9164 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
9165 Add locking.
9166
9167 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
9168
9169 PR testsuite/65205
9170 PR libgomp/65993
9171 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
9172 don't expect "0x" prefix for "%p" format specifier, don't expect
9173 "(nil)" for NULL pointer.
9174 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
9175 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
9176 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
9177 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
9178 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
9179 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
9180 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
9181 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
9182 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
9183 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
9184 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
9185 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
9186 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
9187 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
9188 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
9189 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
9190 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
9191 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
9192 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
9193 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
9194 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
9195 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
9196 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
9197 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
9198 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
9199 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
9200 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
9201 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
9202 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
9203 accurately specify what we're looking for.
9204 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
9205 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
9206 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
9207 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
9208 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
9209
9210 2015-04-30 James Norris <jnorris@codesourcery.com>
9211
9212 PR testsuite/65205
9213 * testsuite/lib/libgomp.exp
9214 (check_effective_target_openacc_host_selected)
9215 (check_effective_target_openacc_host_nonshm_selected): New
9216 procedures.
9217 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
9218 dg-shouldfail.
9219 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
9220 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
9221 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
9222 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
9223 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
9224 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
9225 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
9226 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
9227 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
9228 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
9229 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
9230 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
9231 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
9232 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
9233 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
9234 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
9235 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
9236 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
9237 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
9238 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
9239 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
9240 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
9241 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
9242 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
9243 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
9244 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
9245 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
9246 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
9247 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
9248 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
9249 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
9250 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
9251 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
9252 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
9253 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
9254 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
9255 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
9256 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
9257 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
9258 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
9259 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
9260 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
9261 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
9262
9263 2015-04-08 Julian Brown <julian@codesourcery.com>
9264
9265 * libgomp.h (target_mem_desc: Remove mem_map field.
9266 (acc_dispatch_t): Remove open_device_func, close_device_func,
9267 get_device_num_func, set_device_num_func, target_data members.
9268 Change create_thread_data_func argument to device number instead of
9269 generic pointer.
9270 * oacc-async.c (assert.h): Include.
9271 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
9272 (acc_wait_all, acc_wait_all_async): Use current host thread's
9273 active device, not base_dev.
9274 * oacc-cuda.c (acc_get_current_cuda_device)
9275 (acc_get_current_cuda_context, acc_get_cuda_stream)
9276 (acc_set_cuda_stream): Likewise.
9277 * oacc-host.c (host_dispatch): Don't set open_device_func,
9278 close_device_func, get_device_num_func or set_device_num_func.
9279 * oacc-init.c (base_dev, init_key): Remove.
9280 (cached_base_dev): New.
9281 (name_of_acc_device_t): New.
9282 (acc_init_1): Initialise default-numbered device, not zeroth.
9283 (acc_shutdown_1): Close all devices of a given type.
9284 (goacc_destroy_thread): Don't use base_dev.
9285 (lazy_open, lazy_init, lazy_init_and_open): Remove.
9286 (goacc_attach_host_thread_to_device): New.
9287 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
9288 (acc_get_num_devices): Don't use base_dev.
9289 (acc_set_device_type): Reimplement.
9290 (acc_get_device_type): Don't use base_dev.
9291 (acc_get_device_num): Tweak logic.
9292 (acc_set_device_num): Likewise.
9293 (acc_on_device): Use acc_get_device_type.
9294 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
9295 (goacc_lazy_initialize): Reimplement with acc_init and
9296 goacc_attach_host_thread_to_device.
9297 * oacc-int.h (goacc_thread): Add base_dev field.
9298 (base_dev): Remove extern declaration.
9299 (goacc_attach_host_thread_to_device): Add prototype.
9300 * oacc-mem.c (acc_malloc): Use current thread's device instead of
9301 base_dev.
9302 (acc_free): Likewise.
9303 (acc_memcpy_to_device): Likewise.
9304 (acc_memcpy_from_device): Likewise.
9305 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
9306 goacc_lazy_initialize (throughout).
9307 (GOACC_parallel): Use tgt_offset to locate target functions.
9308 * target.c (gomp_map_vars): Don't set tgt->mem_map.
9309 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
9310 (gomp_load_plugin_for_device): Remove open_device, close_device,
9311 get_device_num, set_device_num openacc hook initialisation. Don't set
9312 openacc.target_data.
9313 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
9314 (GOMP_OFFLOAD_openacc_close_device)
9315 (GOMP_OFFLOAD_openacc_get_device_num)
9316 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
9317 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
9318 to int.
9319 * plugin/plugin-nvptx.c (ptx_inited): Remove.
9320 (instantiated_devices, ptx_dev_lock): New.
9321 (struct ptx_image_data): New.
9322 (ptx_devices, ptx_images, ptx_image_lock): New.
9323 (fini_streams_for_device): Reorder cuStreamDestroy call.
9324 (nvptx_get_num_devices): Remove forward declaration.
9325 (nvptx_init): Change return type to bool.
9326 (nvptx_fini): Remove.
9327 (nvptx_attach_host_thread_to_device): New.
9328 (nvptx_open_device): Return struct ptx_device* instead of void*.
9329 (nvptx_close_device): Change argument type to struct ptx_device*,
9330 return type to void.
9331 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
9332 (kernel_target_data, kernel_host_table): Remove static globals.
9333 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
9334 (GOMP_OFFLOAD_init_device): Reimplement.
9335 (GOMP_OFFLOAD_fini_device): Likewise.
9336 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
9337 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
9338 (GOMP_OFFLOAD_host2dev): Use ORD argument.
9339 (GOMP_OFFLOAD_openacc_open_device)
9340 (GOMP_OFFLOAD_openacc_close_device)
9341 (GOMP_OFFLOAD_openacc_set_device_num)
9342 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
9343 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
9344 (device number).
9345
9346 testsuite/
9347 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
9348
9349 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
9350
9351 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
9352 * libgomp.h (struct gomp_memory_mapping): Remove.
9353 (struct target_mem_desc): Change type of mem_map from
9354 gomp_memory_mapping * to splay_tree_s *.
9355 (struct gomp_device_descr): Remove register_image_func, get_table_func.
9356 Add load_image_func, unload_image_func.
9357 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
9358 Remove offload_regions_registered.
9359 (gomp_init_tables): Remove.
9360 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
9361 to splay_tree_s *.
9362 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
9363 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
9364 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
9365 offload_regions_registered.
9366 Initialize load_image_func, unload_image_func, mem_map.root.
9367 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
9368 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
9369 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
9370 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
9371 gomp_memory_mapping *. Use dev's lock and splay_tree.
9372 (lookup_dev): Use dev's lock.
9373 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
9374 (acc_is_present): Likewise.
9375 (acc_map_data): Likewise.
9376 (acc_unmap_data): Likewise. Use dev's lock.
9377 (present_create_copy): Likewise.
9378 (delete_copyout): Pass dev to lookup_host instead of mem_map.
9379 (update_dev_host): Likewise.
9380 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
9381 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
9382 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
9383 (GOMP_OFFLOAD_get_table): Remove
9384 (GOMP_OFFLOAD_load_image): New function.
9385 (GOMP_OFFLOAD_unload_image): New function.
9386 * target.c (register_lock): New mutex for offload image registration.
9387 (num_devices): Do not guard with PLUGIN_SUPPORT.
9388 (gomp_realloc_unlock): New static function.
9389 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
9390 before gomp_fatal.
9391 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
9392 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
9393 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
9394 mem_map's.
9395 (gomp_unmap_vars): Likewise.
9396 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
9397 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
9398 (gomp_offload_image_to_device): New static function.
9399 (GOMP_offload_register): Add mutex lock.
9400 Call gomp_offload_image_to_device for all initialized devices.
9401 Replace gomp_realloc with gomp_realloc_unlock.
9402 (GOMP_offload_unregister): New function.
9403 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
9404 get_table_func from the plugin with calls to init_device_func and
9405 gomp_offload_image_to_device.
9406 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
9407 to splay_tree_s *.
9408 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
9409 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
9410 (GOMP_target_data): Do not call gomp_init_tables.
9411 (GOMP_target_update): Likewise. Remove argument from gomp_update.
9412 (gomp_load_plugin_for_device): Replace register_image and get_table
9413 with load_image and unload_image in DLSYM ().
9414 (gomp_register_images_for_device): Remove function.
9415 (gomp_target_init): Do not initialize current_device.mem_map.*,
9416 current_device.offload_regions_registered.
9417 Remove call to gomp_register_images_for_device.
9418 Do not free offload_images and num_offload_images.
9419
9420 2015-03-30 Jakub Jelinek <jakub@redhat.com>
9421
9422 PR fortran/65597
9423 * testsuite/libgomp.fortran/pr65597.f90: New test.
9424
9425 2015-03-27 Tom de Vries <tom@codesourcery.com>
9426
9427 PR testsuite/65594
9428 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
9429 (init, check): New function.
9430 (foo): Change return type to void.
9431 (main): Call init and check.
9432
9433 2015-03-27 Tom de Vries <tom@codesourcery.com>
9434
9435 PR testsuite/65594
9436 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
9437 (foo): Use M for non-inner loops to scale down test-case.
9438
9439 2015-03-25 Kai Tietz <ktietz@redhat.com>
9440
9441 PR libgomp/64972
9442 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
9443 (GOACC_data_start): Likewise.
9444 * target.c (gomp_map_vars): Likewise.
9445
9446 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
9447
9448 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
9449 hppa*-*-hpux*.
9450
9451 2015-03-19 Jakub Jelinek <jakub@redhat.com>
9452
9453 * testsuite/libgomp.c/target-10.c: New test.
9454 * testsuite/libgomp.c++/target-4.C: New test.
9455
9456 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
9457
9458 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
9459 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
9460
9461 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
9462
9463 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
9464 * configure.ac (*-*-rtems*): Assume Pthread is supported.
9465 (pthread.h): Check for this header file.
9466 * configure: Regenerate.
9467
9468 2015-02-25 Tom de Vries <tom@codesourcery.com>
9469
9470 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
9471 (check_reduction_op, check_reduction_macro, max, min):
9472 Declare.
9473 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
9474 function.
9475 (main): Use new functions.
9476
9477 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
9478
9479 * target.c (gomp_load_plugin_for_device): Use const char * instead of
9480 char * for variables holding dlerror return values.
9481 (DLSYM_OPT): Ditto.
9482
9483 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
9484
9485 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
9486
9487 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
9488 Cesar Philippidis <cesar@codesourcery.com>
9489
9490 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
9491 GOACC_ctaid, and GOACC_nctaid routines.
9492
9493 2015-02-11 Jakub Jelinek <jakub@redhat.com>
9494
9495 PR c/64824
9496 * testsuite/libgomp.c/atomic-18.c: New test.
9497 * testsuite/libgomp.c++/atomic-16.C: New test.
9498
9499 2015-02-04 Jakub Jelinek <jakub@redhat.com>
9500
9501 PR c/64824
9502 PR c/64868
9503 * testsuite/libgomp.c/pr64824.c: New test.
9504 * testsuite/libgomp.c/pr64868.c: New test.
9505 * testsuite/libgomp.c++/pr64824.C: New test.
9506 * testsuite/libgomp.c++/pr64868.C: New test.
9507
9508 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
9509
9510 PR libgomp/64635
9511 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
9512 Link with -lpthread.
9513 * config/aix/plugin-suffix.h: Delete.
9514
9515 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
9516
9517 PR libgomp/64635
9518 * configure.tgt (*-*-aix*): Use config_path "aix posix".
9519 (*-*-darwin*): Use config_path "bsd darwin posix".
9520 (*-*-hpux*): Use config_path "hpux posix".
9521 * target.c: Add include of plugin-suffix.h and use
9522 SONAME_SUFFIX macro.
9523 * config/aix/plugin-suffix.h: New file.
9524 * config/darwin/plugin-suffix.h: New file.
9525 * config/hpux/plugin-suffix.h: New file.
9526 * config/posix/plugin-suffix.h: New file.
9527
9528 2015-01-23 Jakub Jelinek <jakub@redhat.com>
9529
9530 PR middle-end/64734
9531 * libgomp.c/pr64734.c: New test.
9532
9533 2015-01-23 Tom de Vries <tom@codesourcery.com>
9534
9535 PR libgomp/64672
9536 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
9537
9538 2015-01-23 Tom de Vries <tom@codesourcery.com>
9539
9540 PR libgomp/64707
9541 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
9542 dg-options.
9543
9544 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
9545
9546 PR libgomp/64625
9547 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
9548 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
9549 formal parameter. Update all users.
9550 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
9551 Document unused formal parameter.
9552
9553 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
9554
9555 * oacc-parallel.c: Don't include <alloca.h>.
9556 (GOACC_parallel): Use gomp_alloca instead of alloca.
9557
9558 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
9559
9560 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
9561
9562 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
9563 James Norris <jnorris@codesourcery.com>
9564 Tom de Vries <tom@codesourcery.com>
9565 Julian Brown <julian@codesourcery.com>
9566 Cesar Philippidis <cesar@codesourcery.com>
9567 Nathan Sidwell <nathan@codesourcery.com>
9568 Tobias Burnus <burnus@net-b.de>
9569
9570 * Makefile.am (search_path): Add $(top_srcdir)/../include.
9571 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
9572 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
9573 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
9574 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
9575 Include $(top_srcdir)/plugin/Makefrag.am.
9576 (nodist_libsubinclude_HEADERS): Add openacc.h.
9577 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
9578 openacc.f90, openacc.mod, openacc_kinds.mod.
9579 (omp_lib.mod): Generalize into...
9580 (%.mod): ... this new rule.
9581 (openacc_kinds.mod, openacc.mod): New rules.
9582 * plugin/configfrag.ac: New file.
9583 * configure.ac: Move plugin/offloading support into it. Include
9584 it. Instantiate testsuite/libgomp-test-support.pt.exp.
9585 * plugin/Makefrag.am: New file.
9586 * testsuite/Makefile.am (OFFLOAD_TARGETS)
9587 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
9588 export.
9589 (libgomp-test-support.exp): New rule.
9590 (all-local): Depend on it.
9591 * Makefile.in: Regenerate.
9592 * testsuite/Makefile.in: Regenerate.
9593 * config.h.in: Likewise.
9594 * configure: Likewise.
9595 * configure.tgt: Harden shell syntax.
9596 * env.c: Include "oacc-int.h".
9597 (parse_acc_device_type): New function.
9598 (gomp_debug_var, goacc_device_type, goacc_device_num): New
9599 variables.
9600 (initialize_env): Initialize those. Call
9601 goacc_runtime_initialize.
9602 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
9603 (gomp_fatal): Call gomp_vfatal.
9604 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
9605 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
9606 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
9607 (splay_tree_node, splay_tree, splay_tree_key)
9608 (struct target_mem_desc, struct splay_tree_key_s)
9609 (struct gomp_memory_mapping, struct acc_dispatch_t)
9610 (struct gomp_device_descr, gomp_acc_insert_pointer)
9611 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
9612 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
9613 (gomp_free_memmap, gomp_fini_device): New declarations.
9614 (gomp_vdebug, gomp_debug): New macros.
9615 Include "splay-tree.h".
9616 * libgomp.map (OACC_2.0): New symbol version. Use for
9617 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
9618 acc_set_device_type_h_, acc_get_device_type,
9619 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
9620 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
9621 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
9622 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
9623 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
9624 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
9625 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
9626 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
9627 acc_copyin_array_h_, acc_present_or_copyin,
9628 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
9629 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
9630 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
9631 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
9632 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
9633 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
9634 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
9635 acc_update_device, acc_update_device_32_h_,
9636 acc_update_device_64_h_, acc_update_device_array_h_,
9637 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
9638 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
9639 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
9640 acc_is_present_64_h_, acc_is_present_array_h_,
9641 acc_memcpy_to_device, acc_memcpy_from_device,
9642 acc_get_current_cuda_device, acc_get_current_cuda_context,
9643 acc_get_cuda_stream, acc_set_cuda_stream.
9644 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
9645 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
9646 GOACC_update, GOACC_wait, GOACC_get_thread_num,
9647 GOACC_get_num_threads.
9648 (GOMP_PLUGIN_1.0): New symbol version. Use for
9649 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
9650 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
9651 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
9652 GOMP_PLUGIN_acc_thread.
9653 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
9654 environment variable.
9655 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
9656 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
9657 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
9658 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
9659 (splay_tree_remove): New declarations.
9660 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
9661 (splay_tree_remove, splay_tree_lookup): Move into...
9662 * splay-tree.c: ... this new file.
9663 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
9664 (splay_tree_node, splay_tree, splay_tree_key)
9665 (struct target_mem_desc, struct splay_tree_key_s)
9666 (struct gomp_device_descr): Don't declare.
9667 (num_devices_openmp): New variable.
9668 (gomp_get_num_devices ): Use it.
9669 (gomp_init_targets_once): New function.
9670 (gomp_get_num_devices ): Use it.
9671 (get_kind, gomp_copy_from_async, gomp_free_memmap)
9672 (gomp_fini_device, gomp_register_image_for_device): New functions.
9673 (gomp_map_vars): Add devaddrs parameter.
9674 (gomp_update): Add mm parameter.
9675 (gomp_init_device): Move most of it into...
9676 (gomp_init_tables): ... this new function.
9677 (gomp_register_images_for_device): Remove function.
9678 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
9679 Make them hidden instead of static.
9680 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
9681 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
9682 (GOMP_target_end_data, GOMP_target_update)
9683 (gomp_load_plugin_for_device, gomp_target_init): Update for
9684 OpenACC changes.
9685 * oacc-async.c: New file.
9686 * oacc-cuda.c: Likewise.
9687 * oacc-host.c: Likewise.
9688 * oacc-init.c: Likewise.
9689 * oacc-int.h: Likewise.
9690 * oacc-mem.c: Likewise.
9691 * oacc-parallel.c: Likewise.
9692 * oacc-plugin.c: Likewise.
9693 * oacc-plugin.h: Likewise.
9694 * oacc-ptx.h: Likewise.
9695 * openacc.f90: Likewise.
9696 * openacc.h: Likewise.
9697 * openacc_lib.h: Likewise.
9698 * plugin/plugin-host.c: Likewise.
9699 * plugin/plugin-nvptx.c: Likewise.
9700 * libgomp-plugin.c: Likewise.
9701 * libgomp-plugin.h: Likewise.
9702 * libgomp_target.h: Remove file after merging content into the
9703 former file. Update all users.
9704 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
9705 (offload_targets_s, offload_targets_s_openacc): New variables.
9706 (check_effective_target_openacc_nvidia_accel_present)
9707 (check_effective_target_openacc_nvidia_accel_selected): New
9708 procedures.
9709 (libgomp_init): Update for OpenACC changes.
9710 * testsuite/libgomp-test-support.exp.in: New file.
9711 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
9712 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9713 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9714 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
9715 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
9716 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
9717 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
9718 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
9719 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
9720 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
9721 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
9722 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
9723 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
9724 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
9725 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
9726 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
9727 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
9728 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
9729 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
9730 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
9731 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
9732 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9733 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
9734 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
9735 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
9736 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
9737 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
9738 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
9739 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
9740 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
9741 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
9742 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
9743 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
9744 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
9745 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
9746 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
9747 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
9748 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
9749 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
9750 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
9751 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
9752 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
9753 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
9754 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
9755 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
9756 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
9757 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
9758 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
9759 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
9760 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
9761 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
9762 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
9763 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
9764 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
9765 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
9766 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
9767 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
9768 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
9769 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
9770 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
9771 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
9772 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
9773 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
9774 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
9775 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
9776 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
9777 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
9778 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
9779 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
9780 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
9781 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
9782 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
9783 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
9784 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
9785 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
9786 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
9787 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
9788 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
9789 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
9790 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
9791 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
9792 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
9793 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
9794 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
9795 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
9796 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
9797 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
9798 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
9799 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
9800 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
9801 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
9802 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
9803 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
9804 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
9805 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
9806 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
9807 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
9808 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
9809 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
9810 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
9811 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
9812 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
9813 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
9814 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
9815 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
9816 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
9817 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
9818 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
9819 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
9820 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
9821 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
9822 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
9823 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
9824 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
9825 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
9826 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
9827 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
9828 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
9829 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
9830 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
9831 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
9832 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
9833 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
9834 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
9835 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
9836 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
9837 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
9838 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
9839 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
9840 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
9841 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
9842 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
9843 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
9844 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
9845 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
9846 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
9847 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
9848 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
9849 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
9850 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
9851 Likewise.
9852 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
9853 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
9854 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
9855 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
9856 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
9857 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
9858 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
9859 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
9860 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
9861 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
9862 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
9863 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
9864 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
9865 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
9866 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
9867 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
9868 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
9869 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
9870 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
9871 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
9872 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
9873 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
9874 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
9875 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
9876 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
9877 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
9878 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
9879 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
9880 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
9881 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
9882 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
9883 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
9884 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
9885 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
9886 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
9887 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
9888 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
9889 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
9890 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
9891 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
9892 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
9893 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
9894 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
9895 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
9896 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
9897 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
9898 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
9899 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
9900 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
9901 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
9902 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
9903 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
9904 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
9905 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
9906 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
9907 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
9908 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
9909 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
9910 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
9911 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
9912
9913 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
9914 Julian Brown <julian@codesourcery.com>
9915 David Malcolm <dmalcolm@redhat.com>
9916
9917 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
9918 to "GNU Offloading and Multi Processing Runtime Library". Change
9919 all users.
9920 * configure: Regenerate.
9921 * libgomp.texi: Update.
9922
9923 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
9924
9925 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
9926 "$tgt_dir/lib32".
9927 * configure: Regenerate.
9928
9929 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
9930 "intelmic" in $offload_targets.
9931
9932 2015-01-05 Jakub Jelinek <jakub@redhat.com>
9933
9934 Update copyright years.
9935
9936 * libgomp.texi: Bump @copying's copyright year.
9937
9938 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9939
9940 * testsuite/lib/libgomp.exp: Load target-utils.exp.
9941 Move load of target-supports.exp earlier.
9942
9943 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
9944
9945 * testsuite/libgomp.c/target-9.c: New test.
9946
9947 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
9948
9949 * config.h.in: Regenerate.
9950 * configure: Regenerate.
9951 * configure.ac: Add GCC_CHECK_EMUTLS.
9952 * libgomp.h: Add check for USE_EMUTLS: this case
9953 is equal to HAVE_TLS.
9954 * team.c: Likewise.
9955
9956 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
9957
9958 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
9959
9960 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
9961 Ilya Verbin <ilya.verbin@intel.com>
9962
9963 * testsuite/libgomp.c/target-critical-1.c: New test.
9964
9965 2014-11-26 Jakub Jelinek <jakub@redhat.com>
9966
9967 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
9968 to dg-options unless expensive testing is on.
9969 (TESTITERS): Define to N if not defined.
9970 (main): Use TESTITERS instead of N.
9971 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
9972 dg-additional-options depending on whether expensive testing is on.
9973 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
9974 Decrease N to 100000 and CHUNKSZ to 10000.
9975
9976 2014-11-24 Jakub Jelinek <jakub@redhat.com>
9977
9978 PR fortran/63938
9979 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
9980 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
9981
9982 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
9983
9984 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
9985
9986 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
9987
9988 PR bootstrap/63784
9989 * configure: Regenerated.
9990
9991 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
9992
9993 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
9994 vect_simd_clones effective target.
9995 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
9996
9997 2014-11-14 Jakub Jelinek <jakub@redhat.com>
9998
9999 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
10000 of 32 as block_size.
10001 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
10002 instead of 32 as block_size.
10003
10004 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
10005 Ilya Verbin <ilya.verbin@intel.com>
10006
10007 * Makefile.in: Regenerate.
10008 * configure: Regenerate.
10009 * configure.ac: Set up offload_additional_options,
10010 offload_additional_lib_paths and offload_targets.
10011 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
10012 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
10013 * testsuite/Makefile.in: Regenerate.
10014 * testsuite/lib/libgomp.exp (libgomp_init): Append
10015 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
10016 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
10017 build directory to LD_LIBRARY_PATH for intelmic offload targets.
10018
10019 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
10020 Ilya Verbin <ilya.verbin@intel.com>
10021 Kirill Yukhin <kirill.yukhin@intel.com>
10022 Ilya Tocar <ilya.tocar@intel.com>
10023
10024 * testsuite/lib/libgomp.exp
10025 (check_effective_target_offload_device): New.
10026 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
10027 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
10028 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
10029 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
10030 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
10031 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
10032 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
10033 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
10034 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
10035 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
10036 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
10037 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
10038 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
10039 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
10040 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
10041 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
10042 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
10043 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
10044 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
10045 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
10046 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
10047 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
10048 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
10049 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
10050 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
10051 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
10052 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
10053 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
10054 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
10055 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
10056 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
10057 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
10058 * testsuite/libgomp.c/target-7.c: Fix test.
10059 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
10060 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
10061 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
10062 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
10063 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
10064 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
10065 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
10066 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
10067 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
10068 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
10069 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
10070 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
10071 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
10072 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
10073 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
10074 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
10075 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
10076 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
10077 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
10078 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
10079 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
10080 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
10081 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
10082 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
10083 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
10084 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
10085 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
10086 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
10087 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
10088 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
10089 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
10090
10091 2014-11-13 Jakub Jelinek <jakub@redhat.com>
10092 Ilya Verbin <ilya.verbin@intel.com>
10093 Thomas Schwinge <thomas@codesourcery.com>
10094 Andrey Turetskiy <andrey.turetskiy@intel.com>
10095
10096 * libgomp.map (GOMP_4.0.1): New symbol version.
10097 Add GOMP_offload_register.
10098 * libgomp_target.h: New file.
10099 * splay-tree.h: New file.
10100 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
10101 (gomp_target_init): New forward declaration.
10102 (gomp_is_initialized): New static variable.
10103 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
10104 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
10105 New structures.
10106 (offload_images, num_offload_images, devices, num_devices): New static
10107 variables.
10108 (splay_compare): New static function.
10109 (struct gomp_device_descr): New structure.
10110 (gomp_get_num_devices): Call gomp_target_init.
10111 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
10112 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
10113 (GOMP_offload_register): New function.
10114 (GOMP_target): Arrange for host callback to be performed in a separate
10115 initial thread and contention group, inheriting ICVs from
10116 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
10117 Add device initialization and lookup for target function in splay tree.
10118 (GOMP_target_data): Add device initialization and call gomp_map_vars.
10119 (GOMP_target_end_data): Call gomp_unmap_vars.
10120 (GOMP_target_update): Add device initialization and call gomp_update.
10121 (gomp_load_plugin_for_device, gomp_register_images_for_device)
10122 (gomp_target_init): New static functions.
10123
10124 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
10125 Thomas Schwinge <thomas@codesourcery.com>
10126 Ilya Verbin <ilya.verbin@intel.com>
10127 Andrey Turetskiy <andrey.turetskiy@intel.com>
10128
10129 * config.h.in: Regenerate.
10130 * configure: Regenerate.
10131 * configure.ac: Check for libdl, required for plugin support.
10132 (PLUGIN_SUPPORT): Define if plugins are supported.
10133 (enable_offload_targets): Support Intel MIC targets.
10134 (OFFLOAD_TARGETS): List of target names suitable for offloading.
10135
10136 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10137
10138 PR target/63610
10139 * configure: Regenerate.
10140
10141 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10142
10143 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
10144
10145 2014-10-06 Marek Polacek <polacek@redhat.com>
10146
10147 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
10148 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
10149 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
10150 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
10151
10152 2014-10-06 Marek Polacek <polacek@redhat.com>
10153
10154 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
10155 * testsuite/libgomp.c/nqueens-1.c: Likewise.
10156 * testsuite/libgomp.c/pr26943-3.c: Likewise.
10157 * testsuite/libgomp.c/pr26943-4.c: Likewise.
10158 * testsuite/libgomp.c/pr36802-2.c: Likewise.
10159 * testsuite/libgomp.c/pr36802-3.c: Likewise.
10160 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
10161 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
10162 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
10163 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
10164 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
10165 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
10166 * testsuite/libgomp.c/omp-single-1.c: Likewise.
10167 * testsuite/libgomp.c/omp-single-2.c: Likewise.
10168 * testsuite/libgomp.c/omp_matvec.c: Likewise.
10169 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
10170 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
10171 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
10172 declarations.
10173
10174 2014-10-03 Jakub Jelinek <jakub@redhat.com>
10175
10176 PR libgomp/61200
10177 * testsuite/libgomp.c/pr61200.c: New test.
10178
10179 2014-09-18 Jakub Jelinek <jakub@redhat.com>
10180
10181 PR c++/63248
10182 * testsuite/libgomp.c++/pr63248.C: New test.
10183
10184 2014-08-04 Jakub Jelinek <jakub@redhat.com>
10185
10186 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
10187 is not zero, but taskgroup->children is NULL and there are
10188 any task->children, schedule those instead of waiting.
10189 * testsuite/libgomp.c/depend-6.c: New test.
10190 * testsuite/libgomp.c/depend-7.c: New test.
10191 * testsuite/libgomp.c/depend-8.c: New test.
10192 * testsuite/libgomp.c/depend-9.c: New test.
10193 * testsuite/libgomp.c/depend-10.c: New test.
10194
10195 2014-08-01 Jakub Jelinek <jakub@redhat.com>
10196
10197 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
10198 (struct gomp_taskwait): New type.
10199 (struct gomp_task): Add taskwait and parent_depends_on, remove
10200 in_taskwait and taskwait_sem fields.
10201 (gomp_finish_task): Don't destroy taskwait_sem.
10202 * task.c (gomp_init_task): Don't init in_taskwait, instead init
10203 taskwait and parent_depends_on.
10204 (GOMP_task): For if (0) tasks with depend clause that depend on
10205 earlier tasks don't defer them, instead call
10206 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
10207 Initialize redundant_out field, for redundant out entries just
10208 move them at the end of linked list instead of removing them
10209 completely, and set redundant_out flag instead of redundant.
10210 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
10211 that task.
10212 (gomp_task_run_post_handle_dependers): If parent is in
10213 gomp_task_maybe_wait_for_dependencies and newly runnable task
10214 is not parent_depends_on, queue it in parent->children linked
10215 list after all runnable tasks with parent_depends_on set.
10216 Adjust for addition of taskwait indirection.
10217 (gomp_task_run_post_remove_parent): If parent is in
10218 gomp_task_maybe_wait_for_dependencies and task to be removed
10219 is parent_depends_on, decrement n_depend and if needed awake
10220 parent. Adjust for addition of taskwait indirection.
10221 (GOMP_taskwait): Adjust for addition of taskwait indirection.
10222 (gomp_task_maybe_wait_for_dependencies): New function.
10223 * testsuite/libgomp.c/depend-5.c: New test.
10224
10225 2014-07-13 Tobias Burnus <burnus@net-b.de>
10226
10227 * testsuite/libgomp.fortran/pr34020.f90: Make compile
10228 with TS 18508/Fortran 2015.
10229
10230 2014-07-06 Marek Polacek <polacek@redhat.com>
10231
10232 PR c/6940
10233 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
10234
10235 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10236
10237 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
10238 matches regex $lang_source_re, add $lang_include_flags to options.
10239 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
10240 * testsuite/libgomp.c++/c++.exp: Likewise.
10241 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
10242 and lang_include_flags instead of adding -fintrinsic-modules-path= to
10243 ALWAYS_CFLAGS.
10244 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
10245
10246 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
10247
10248 * testsuite/libgomp.fortran/fortran.exp: Explain
10249 gfortran-dg-runtest usage.
10250
10251 2014-06-25 Jakub Jelinek <jakub@redhat.com>
10252
10253 * testsuite/libgomp.fortran/simd5.f90: New test.
10254 * testsuite/libgomp.fortran/simd6.f90: New test.
10255 * testsuite/libgomp.fortran/simd7.f90: New test.
10256
10257 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10258
10259 * testsuite/libgomp.c/for-2.c: Define SC to static for
10260 #pragma omp for simd testing.
10261 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
10262 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
10263 SC macro.
10264 * testsuite/libgomp.c/simd-14.c: New test.
10265 * testsuite/libgomp.c/simd-15.c: New test.
10266 * testsuite/libgomp.c/simd-16.c: New test.
10267 * testsuite/libgomp.c/simd-17.c: New test.
10268 * testsuite/libgomp.c++/for-10.C: Define SC to static for
10269 #pragma omp for simd testing.
10270 * testsuite/libgomp.c++/simd10.C: New test.
10271 * testsuite/libgomp.c++/simd11.C: New test.
10272 * testsuite/libgomp.c++/simd12.C: New test.
10273 * testsuite/libgomp.c++/simd13.C: New test.
10274
10275 * testsuite/libgomp.fortran/aligned1.f03: New test.
10276 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
10277 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
10278 tasks with !$omp parallel !$omp single.
10279 * testsuite/libgomp.fortran/target8.f90: New test.
10280 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
10281 not to use trim in the combiner, instead call elemental function.
10282 (fn): New elemental function.
10283 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
10284 Make elemental.
10285 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
10286 omp_in): Likewise.
10287 * testsuite/libgomp.fortran/udr12.f90: New test.
10288 * testsuite/libgomp.fortran/udr13.f90: New test.
10289 * testsuite/libgomp.fortran/udr14.f90: New test.
10290 * testsuite/libgomp.fortran/udr15.f90: New test.
10291
10292 2014-06-18 Jakub Jelinek <jakub@redhat.com>
10293
10294 * omp_lib.f90.in (openmp_version): Set to 201307.
10295 * omp_lib.h.in (openmp_version): Likewise.
10296 * testsuite/libgomp.c/target-8.c: New test.
10297 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
10298 and inbranch clauses.
10299 * testsuite/libgomp.fortran/depend-3.f90: New test.
10300 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
10301 openmp_version.
10302 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
10303 * testsuite/libgomp.fortran/target1.f90: New test.
10304 * testsuite/libgomp.fortran/target2.f90: New test.
10305 * testsuite/libgomp.fortran/target3.f90: New test.
10306 * testsuite/libgomp.fortran/target4.f90: New test.
10307 * testsuite/libgomp.fortran/target5.f90: New test.
10308 * testsuite/libgomp.fortran/target6.f90: New test.
10309 * testsuite/libgomp.fortran/target7.f90: New test.
10310
10311 2014-06-10 Jakub Jelinek <jakub@redhat.com>
10312
10313 PR fortran/60928
10314 * testsuite/libgomp.fortran/allocatable9.f90: New test.
10315 * testsuite/libgomp.fortran/allocatable10.f90: New test.
10316 * testsuite/libgomp.fortran/allocatable11.f90: New test.
10317 * testsuite/libgomp.fortran/allocatable12.f90: New test.
10318 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
10319 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
10320 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
10321 * testsuite/libgomp.fortran/associate1.f90: New test.
10322 * testsuite/libgomp.fortran/associate2.f90: New test.
10323 * testsuite/libgomp.fortran/procptr1.f90: New test.
10324
10325 2014-06-06 Jakub Jelinek <jakub@redhat.com>
10326
10327 * testsuite/libgomp.fortran/simd1.f90: New test.
10328 * testsuite/libgomp.fortran/udr1.f90: New test.
10329 * testsuite/libgomp.fortran/udr2.f90: New test.
10330 * testsuite/libgomp.fortran/udr3.f90: New test.
10331 * testsuite/libgomp.fortran/udr4.f90: New test.
10332 * testsuite/libgomp.fortran/udr5.f90: New test.
10333 * testsuite/libgomp.fortran/udr6.f90: New test.
10334 * testsuite/libgomp.fortran/udr7.f90: New test.
10335 * testsuite/libgomp.fortran/udr8.f90: New test.
10336 * testsuite/libgomp.fortran/udr9.f90: New test.
10337 * testsuite/libgomp.fortran/udr10.f90: New test.
10338 * testsuite/libgomp.fortran/udr11.f90: New test.
10339
10340 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
10341
10342 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
10343 vect_simd_clones effective target.
10344 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
10345
10346 2014-05-21 Jakub Jelinek <jakub@redhat.com>
10347
10348 PR middle-end/61252
10349 * testsuite/libgomp.c++/simd-9.C: New test.
10350
10351 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
10352
10353 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
10354 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
10355 texts according to their @menu entry positions.
10356
10357 2014-05-11 Jakub Jelinek <jakub@redhat.com>
10358
10359 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
10360 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
10361 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
10362 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
10363 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
10364 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
10365 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
10366 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
10367 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
10368 * testsuite/libgomp.fortran/depend-1.f90: New test.
10369 * testsuite/libgomp.fortran/depend-2.f90: New test.
10370 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
10371 * testsuite/libgomp.fortran/simd1.f90: New test.
10372 * testsuite/libgomp.fortran/simd2.f90: New test.
10373 * testsuite/libgomp.fortran/simd3.f90: New test.
10374 * testsuite/libgomp.fortran/simd4.f90: New test.
10375 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
10376
10377 2014-05-02 Jakub Jelinek <jakub@redhat.com>
10378
10379 * testsuite/libgomp.c/simd-10.c: New test.
10380 * testsuite/libgomp.c/simd-11.c: New test.
10381 * testsuite/libgomp.c/simd-12.c: New test.
10382 * testsuite/libgomp.c/simd-13.c: New test.
10383
10384 2014-04-24 Jakub Jelinek <jakub@redhat.com>
10385
10386 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
10387 atomic type clauses in any order and optional comma in between.
10388 * testsuite/libgomp.c++/atomic-15.C: Likewise.
10389 * testsuite/libgomp.c/atomic-17.c: Likewise.
10390
10391 * testsuite/libgomp.c/simd-7.c: New test.
10392 * testsuite/libgomp.c/simd-8.c: New test.
10393 * testsuite/libgomp.c/simd-9.c: New test.
10394 * testsuite/libgomp.c/loop-16.c: New test.
10395
10396 2014-04-02 Richard Henderson <rth@redhat.com>
10397
10398 * config/linux/futex.h (futex_wait): Get error value from errno.
10399 (futex_wake): Likewise.
10400
10401 2014-03-25 Jakub Jelinek <jakub@redhat.com>
10402
10403 PR c++/60331
10404 * testsuite/libgomp.c++/udr-11.C: New test.
10405 * testsuite/libgomp.c++/udr-12.C: New test.
10406 * testsuite/libgomp.c++/udr-13.C: New test.
10407 * testsuite/libgomp.c++/udr-14.C: New test.
10408 * testsuite/libgomp.c++/udr-15.C: New test.
10409 * testsuite/libgomp.c++/udr-16.C: New test.
10410 * testsuite/libgomp.c++/udr-17.C: New test.
10411 * testsuite/libgomp.c++/udr-18.C: New test.
10412 * testsuite/libgomp.c++/udr-19.C: New test.
10413
10414 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
10415
10416 Update copyright years
10417
10418 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
10419
10420 * hashtab.h: Use the standard form for the copyright notice.
10421
10422 2014-01-02 Tobias Burnus <burnus@net-b.de>
10423
10424 * libgomp.texi: Bump @copying's copyright year.
10425
10426 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
10427
10428 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
10429 alloca () with __builtin_alloca ().
10430 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
10431 * testsuite/libgomp.c/lock-3.c: Likewise.
10432 * testsuite/libgomp.c/pr48591.c: Likewise.
10433
10434 2013-12-17 Jakub Jelinek <jakub@redhat.com>
10435
10436 PR testsuite/59534
10437 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
10438 comparisons.
10439
10440 2013-12-16 Jakub Jelinek <jakub@redhat.com>
10441
10442 PR libgomp/58756
10443 * testsuite/libgomp.c/pr58756.c: New test.
10444
10445 2013-12-12 Jakub Jelinek <jakub@redhat.com>
10446
10447 PR libgomp/59467
10448 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
10449 !$omp parallel.
10450
10451 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
10452
10453 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
10454 ALWAYS_CFLAGS.
10455 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
10456 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
10457 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
10458 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
10459 Likewise.
10460
10461 * libgomp_g.h: Include <stddef.h> for size_t.
10462
10463 * libgomp.spec.in: Update comment about libgomp's dependencies.
10464 * configure.ac: Likewise.
10465 * configure: Regenerate.
10466
10467 2013-10-16 Tobias Burnus <burnus@net-b.de>
10468
10469 * libgomp.texi: (Runtime Library Routines): Update references for
10470 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
10471 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
10472 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
10473 (Environment Variables): Update references for OpenMP 4.0. Add
10474 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
10475 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
10476 order.
10477
10478 2013-10-14 Jakub Jelinek <jakub@redhat.com>
10479
10480 * env.c (parse_bind_var): Initialize value to avoid
10481 (false positive) warning.
10482
10483 2013-10-12 Jakub Jelinek <jakub@redhat.com>
10484
10485 PR libgomp/58691
10486 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
10487 to check variable.
10488 (gomp_init_num_threads): Move i variable declaration into
10489 #ifdef CPU_ALLOC_SIZE block.
10490 * config/linux/affinity.c (gomp_affinity_init_level): Test
10491 gomp_places_list_len == 0 rather than gomp_places_list == 0
10492 when checking for topology reading error.
10493 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
10494 * env.c (parse_affinity): Add ignore argument, if true, don't populate
10495 gomp_places_list, only parse env var and always return false.
10496 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
10497 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
10498 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
10499 and either of these variables were parsed correctly into a places
10500 list.
10501
10502 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
10503 Jakub Jelinek <jakub@redhat.com>
10504
10505 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
10506 of 5 loopfn matches.
10507 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
10508 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
10509 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
10510 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
10511 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
10512 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
10513 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
10514 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
10515
10516 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
10517
10518 * Makefile.am (omp_lib.mod): Streamline rule.
10519 * Makefile.in: Regenerate.
10520
10521 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
10522 exceptions.
10523
10524 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
10525 * testsuite/libgomp.fortran/lib1.f90: Likewise.
10526 * testsuite/libgomp.fortran/lib2.f: Likewise.
10527 * testsuite/libgomp.fortran/lib3.f: Likewise.
10528
10529 * configure.ac: Typo fix.
10530 * configure: Regenerate.
10531
10532 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
10533 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
10534
10535 * omp.h.in: Don't touch the user's namespace.
10536
10537 2013-10-11 Jakub Jelinek <jakub@redhat.com>
10538 Tobias Burnus <burnus@net-b.de>
10539 Richard Henderson <rth@redhat.com>
10540
10541 * target.c: New file.
10542 * Makefile.am (libgomp_la_SOURCES): Add target.c.
10543 * Makefile.in: Regenerated.
10544 * libgomp_g.h (GOMP_task): Add depend argument.
10545 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
10546 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
10547 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
10548 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
10549 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
10550 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
10551 GOMP_taskgroup_start, GOMP_taskgroup_end,
10552 GOMP_parallel_sections): New prototypes.
10553 * fortran.c (omp_is_initial_device): Add ialias_redirect.
10554 (omp_is_initial_device_): New function.
10555 (ULP, STR1, STR2, ialias_redirect): Removed.
10556 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
10557 omp_set_default_device_8_, omp_get_default_device_,
10558 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
10559 functions.
10560 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
10561 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
10562 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
10563 @@GOMP_4.0.
10564 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
10565 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
10566 omp_set_default_device, omp_set_default_device_,
10567 omp_set_default_device_8_, omp_get_default_device,
10568 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
10569 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
10570 omp_get_team_num_): Export @@OMP_4.0.
10571 * team.c (struct gomp_thread_start_data): Add place field.
10572 (gomp_thread_start): Clear thr->thread_pool and
10573 thr->task before returning. Use gomp_team_barrier_wait_final
10574 instead of gomp_team_barrier_wait. Initialize thr->place.
10575 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
10576 team_cancelled and task_queued_count fields.
10577 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
10578 before calling pthread_exit.
10579 (gomp_free_thread): No longer static. Use
10580 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
10581 (gomp_team_start): Add flags argument. Set
10582 thr->thread_pool->threads_busy to nthreads immediately after creating
10583 new pool. Use gomp_managed_threads_lock instead of
10584 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
10585 (gomp_team_end): Use gomp_managed_threads_lock instead of
10586 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
10587 of gomp_team_barrier_wait. If team->team_cancelled, call
10588 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
10589 rather than thr->ts.work_share.
10590 (initialize_team): Don't call gomp_sem_init here.
10591 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
10592 caller.
10593 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
10594 * env.c (gomp_global_icv): Add default_device_var, target_data and
10595 bind_var initializers.
10596 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
10597 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
10598 gomp_places_list_len): New variables.
10599 (parse_bind_var, parse_one_place, parse_places_var): New functions.
10600 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
10601 sized places.
10602 (gomp_cancel_var): New global variable.
10603 (parse_int): New function.
10604 (handle_omp_display_env): New function.
10605 (initialize_env): Use it. Initialize default_device_var.
10606 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
10607 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
10608 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
10609 been successfully parsed (and call gomp_init_affinity in that case).
10610 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
10611 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
10612 omp_get_team_num, omp_is_initial_device): New functions.
10613 * libgomp.h: Include stdlib.h.
10614 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
10615 Define.
10616 (struct target_mem_desc): Forward declare.
10617 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
10618 and thread_limit_var fields.
10619 (gomp_get_num_devices): New prototype.
10620 (gomp_cancel_var): New extern decl.
10621 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
10622 team_cancelled and task_queued_count fields. Add comments about
10623 task_{,queued_,running_}count.
10624 (gomp_cancel_kind): New enum.
10625 (gomp_work_share_end_cancel): New prototype.
10626 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
10627 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
10628 and depend fields.
10629 (struct gomp_taskgroup): New type.
10630 (struct gomp_task_depend_entry,
10631 struct gomp_dependers_vec): New types.
10632 (gomp_finish_task): Free depend_hash if non-NULL.
10633 (struct gomp_team_state): Add place_partition_off
10634 and place_partition_len fields.
10635 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
10636 gomp_places_list_len): New extern decls.
10637 (struct gomp_thread): Add place field.
10638 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
10639 (gomp_init_thread_affinity): Add place argument.
10640 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
10641 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
10642 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
10643 gomp_affinity_init_level, gomp_affinity_print_place): New
10644 prototypes.
10645 (gomp_team_start): Add flags argument.
10646 (gomp_thread_limit_var, gomp_remaining_threads_count,
10647 gomp_remaining_threads_lock): Remove.
10648 (gomp_managed_threads_lock): New variable.
10649 (struct gomp_thread_pool): Add threads_busy field.
10650 (gomp_free_thread): New prototype.
10651 * task.c: Include hashtab.h.
10652 (hash_entry_type): New typedef.
10653 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
10654 (gomp_init_task): Clear dependers, depend_hash, depend_count,
10655 copy_ctors_done and taskgroup fields.
10656 (GOMP_task): Add depend argument, handle depend clauses. If
10657 gomp_team_barrier_cancelled or if it's taskgroup has been
10658 cancelled, don't queue or start new tasks. Set copy_ctors_done
10659 field if needed. Initialize taskgroup field. If copy_ctors_done
10660 and already cancelled, don't discard the task. If taskgroup is
10661 non-NULL, enqueue the task into taskgroup queue. Increment
10662 num_children field in taskgroup. Increment task_queued_count.
10663 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
10664 gomp_task_run_post_remove_taskgroup): New inline functions.
10665 (gomp_task_run_post_handle_depend_hash,
10666 gomp_task_run_post_handle_dependers,
10667 gomp_task_run_post_handle_depend): New functions.
10668 (GOMP_taskwait): Use them. If more than one new tasks
10669 have been queued, wake other threads if needed.
10670 (gomp_barrier_handle_tasks): Likewise. If
10671 gomp_team_barrier_cancelled, don't start any new tasks, just free
10672 all tasks.
10673 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
10674 * omp_lib.f90.in
10675 (omp_proc_bind_kind, omp_proc_bind_false,
10676 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
10677 omp_proc_bind_spread): New params.
10678 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
10679 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
10680 omp_get_team_num, omp_is_initial_device): New interfaces.
10681 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
10682 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
10683 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
10684 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
10685 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
10686 useless use omp_lib_kinds.
10687 * omp.h.in (omp_proc_bind_t): New typedef.
10688 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
10689 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
10690 omp_get_team_num, omp_is_initial_device): New prototypes.
10691 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
10692 through to gomp_team_start.
10693 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
10694 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
10695 Adjust gomp_parallel_loop_start callers.
10696 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
10697 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
10698 GOMP_loop_end_cancel): New functions.
10699 (GOMP_parallel_end): Add ialias_redirect.
10700 * hashtab.h: New file.
10701 * libgomp.texi (Environment Variables): Minor cleanup,
10702 update section refs to OpenMP 4.0rc2.
10703 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
10704 environment variables.
10705 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
10706 team->work_shares_to_free to thr->ts.work_share before calling
10707 free_work_share.
10708 (gomp_work_share_end_cancel): New function.
10709 * config/linux/proc.c: Include errno.h.
10710 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
10711 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
10712 sizeof (cpu_set_t) to determine number of iterations. Fix up check
10713 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
10714 gomp_cpuset_size is sizeof (cpu_set_t).
10715 (gomp_init_num_threads): Initialize gomp_cpuset_size,
10716 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
10717 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
10718 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
10719 contain any logical CPUs.
10720 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
10721 is NULL. Use gomp_cpusetp instead of &cpuset and pass
10722 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
10723 pthread_getaffinity_np. Check gomp_places_list instead of
10724 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
10725 * config/linux/bar.c (gomp_barrier_wait_end,
10726 gomp_barrier_wait_last): Use BAR_* defines.
10727 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
10728 from state where needed. Set work_share_cancelled to 0 on last
10729 thread.
10730 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
10731 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
10732 functions.
10733 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
10734 Add cpusetsize argument.
10735 (gomp_cpuset_size, gomp_cpusetp): Declare.
10736 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
10737 (affinity_counter): Remove.
10738 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
10739 if CPU_ALLOC_SIZE isn't defined.
10740 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
10741 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
10742 bind current thread to the first place.
10743 (gomp_init_thread_affinity): Rewritten. Add place argument, just
10744 pthread_setaffinity_np to gomp_places_list[place].
10745 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
10746 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
10747 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
10748 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
10749 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
10750 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
10751 (gomp_barrier_t): Add awaited_final field.
10752 (gomp_barrier_init): Initialize awaited_final field.
10753 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
10754 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
10755 prototypes.
10756 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
10757 defines.
10758 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
10759 gomp_team_barrier_cancelled): New inline functions.
10760 (gomp_barrier_last_thread,
10761 gomp_team_barrier_set_task_pending,
10762 gomp_team_barrier_clear_task_pending,
10763 gomp_team_barrier_set_waiting_for_tasks,
10764 gomp_team_barrier_waiting_for_tasks,
10765 gomp_team_barrier_done): Use BAR_* defines.
10766 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
10767 (gomp_barrier_wait_end): Use BAR_* defines.
10768 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
10769 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
10770 Use BAR_* defines.
10771 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
10772 gomp_team_barrier_cancel): New functions.
10773 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
10774 argument.
10775 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
10776 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
10777 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
10778 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
10779 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
10780 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
10781 (gomp_barrier_t): Add cancellable field.
10782 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
10783 gomp_team_barrier_cancel): New prototypes.
10784 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
10785 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
10786 gomp_team_barrier_cancelled): New inline functions.
10787 (gomp_barrier_wait_start, gomp_barrier_last_thread,
10788 gomp_team_barrier_set_task_pending,
10789 gomp_team_barrier_clear_task_pending,
10790 gomp_team_barrier_set_waiting_for_tasks,
10791 gomp_team_barrier_waiting_for_tasks,
10792 gomp_team_barrier_done): Use BAR_* defines.
10793 * barrier.c (GOMP_barrier_cancel): New function.
10794 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
10795 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
10796 omp_proc_bind_spread): New params.
10797 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
10798 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
10799 omp_get_team_num, omp_is_initial_device): New externals.
10800 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
10801 New functions.
10802 (gomp_resolve_num_threads): Adjust for thread_limit now being in
10803 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
10804 infinity. If not nested, just return minimum of max_num_threads
10805 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
10806 to the returned value. Otherwise, don't update atomically
10807 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
10808 (GOMP_parallel_end): Adjust for thread_limit now being in
10809 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
10810 infinity. Adjust threads_busy in the pool rather than
10811 gomp_remaining_threads_count. Remember team->nthreads and call
10812 gomp_team_end before adjusting threads_busy, if not nested
10813 afterwards, just set it to 1 non-atomically. Add ialias.
10814 (GOMP_parallel_start): Adjust gomp_team_start caller.
10815 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
10816 * testsuite/libgomp.c/affinity-1.c: New test.
10817 * testsuite/libgomp.c/atomic-15.c: New test.
10818 * testsuite/libgomp.c/atomic-16.c: New test.
10819 * testsuite/libgomp.c/atomic-17.c: New test.
10820 * testsuite/libgomp.c/cancel-for-1.c: New test.
10821 * testsuite/libgomp.c/cancel-for-2.c: New test.
10822 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
10823 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
10824 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
10825 * testsuite/libgomp.c/cancel-sections-1.c: New test.
10826 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
10827 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
10828 * testsuite/libgomp.c/depend-1.c: New test.
10829 * testsuite/libgomp.c/depend-2.c: New test.
10830 * testsuite/libgomp.c/depend-3.c: New test.
10831 * testsuite/libgomp.c/depend-4.c: New test.
10832 * testsuite/libgomp.c/for-1.c: New test.
10833 * testsuite/libgomp.c/for-1.h: New file.
10834 * testsuite/libgomp.c/for-2.c: New test.
10835 * testsuite/libgomp.c/for-2.h: New file.
10836 * testsuite/libgomp.c/for-3.c: New test.
10837 * testsuite/libgomp.c/pr58392.c: New test.
10838 * testsuite/libgomp.c/simd-1.c: New test.
10839 * testsuite/libgomp.c/simd-2.c: New test.
10840 * testsuite/libgomp.c/simd-3.c: New test.
10841 * testsuite/libgomp.c/simd-4.c: New test.
10842 * testsuite/libgomp.c/simd-5.c: New test.
10843 * testsuite/libgomp.c/simd-6.c: New test.
10844 * testsuite/libgomp.c/target-1.c: New test.
10845 * testsuite/libgomp.c/target-2.c: New test.
10846 * testsuite/libgomp.c/target-3.c: New test.
10847 * testsuite/libgomp.c/target-4.c: New test.
10848 * testsuite/libgomp.c/target-5.c: New test.
10849 * testsuite/libgomp.c/target-6.c: New test.
10850 * testsuite/libgomp.c/target-7.c: New test.
10851 * testsuite/libgomp.c/taskgroup-1.c: New test.
10852 * testsuite/libgomp.c/thread-limit-1.c: New test.
10853 * testsuite/libgomp.c/thread-limit-2.c: New test.
10854 * testsuite/libgomp.c/thread-limit-3.c: New test.
10855 * testsuite/libgomp.c/udr-1.c: New test.
10856 * testsuite/libgomp.c/udr-2.c: New test.
10857 * testsuite/libgomp.c/udr-3.c: New test.
10858 * testsuite/libgomp.c++/affinity-1.C: New test.
10859 * testsuite/libgomp.c++/atomic-10.C: New test.
10860 * testsuite/libgomp.c++/atomic-11.C: New test.
10861 * testsuite/libgomp.c++/atomic-12.C: New test.
10862 * testsuite/libgomp.c++/atomic-13.C: New test.
10863 * testsuite/libgomp.c++/atomic-14.C: New test.
10864 * testsuite/libgomp.c++/atomic-15.C: New test.
10865 * testsuite/libgomp.c++/cancel-for-1.C: New test.
10866 * testsuite/libgomp.c++/cancel-for-2.C: New test.
10867 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
10868 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
10869 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
10870 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
10871 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
10872 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
10873 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
10874 * testsuite/libgomp.c++/cancel-test.h: New file.
10875 * testsuite/libgomp.c++/for-9.C: New test.
10876 * testsuite/libgomp.c++/for-10.C: New test.
10877 * testsuite/libgomp.c++/for-11.C: New test.
10878 * testsuite/libgomp.c++/simd-1.C: New test.
10879 * testsuite/libgomp.c++/simd-2.C: New test.
10880 * testsuite/libgomp.c++/simd-3.C: New test.
10881 * testsuite/libgomp.c++/simd-4.C: New test.
10882 * testsuite/libgomp.c++/simd-5.C: New test.
10883 * testsuite/libgomp.c++/simd-6.C: New test.
10884 * testsuite/libgomp.c++/simd-7.C: New test.
10885 * testsuite/libgomp.c++/simd-8.C: New test.
10886 * testsuite/libgomp.c++/target-1.C: New test.
10887 * testsuite/libgomp.c++/target-2.C: New test.
10888 * testsuite/libgomp.c++/target-2-aux.cc: New file.
10889 * testsuite/libgomp.c++/target-3.C: New test.
10890 * testsuite/libgomp.c++/taskgroup-1.C: New test.
10891 * testsuite/libgomp.c++/udr-1.C: New test.
10892 * testsuite/libgomp.c++/udr-2.C: New test.
10893 * testsuite/libgomp.c++/udr-3.C: New test.
10894 * testsuite/libgomp.c++/udr-4.C: New test.
10895 * testsuite/libgomp.c++/udr-5.C: New test.
10896 * testsuite/libgomp.c++/udr-6.C: New test.
10897 * testsuite/libgomp.c++/udr-7.C: New test.
10898 * testsuite/libgomp.c++/udr-8.C: New test.
10899 * testsuite/libgomp.c++/udr-9.C: New test.
10900
10901 2013-09-20 Jakub Jelinek <jakub@redhat.com>
10902
10903 PR testsuite/57605
10904 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
10905 ALWAYS_CFLAGS.
10906
10907 2013-09-20 Alan Modra <amodra@gmail.com>
10908
10909 * configure: Regenerate.
10910
10911 2013-09-19 Jakub Jelinek <jakub@redhat.com>
10912
10913 * testsuite/libgomp.c/sections-2.c: New test.
10914
10915 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
10916
10917 * testsuite/libgomp.fortran/strassen.f90:
10918 Add dg-skip-if aarch64_tiny.
10919
10920 2013-06-20 Iain Sandoe <iain@codesourcery.com>
10921 Cesar Philippidis <cesar@codesourcery.com>
10922
10923 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
10924 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
10925 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
10926 * testsuite/libgomp.fortran/fortran.exp: Likewise.
10927 * testsuite/libgomp.graphite/graphite.exp: Likewise.
10928 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
10929 Use dg-runtest rather than gfortran-dg-runtest.
10930
10931 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
10932
10933 * testsuite/libgomp.c/icv-2.c: Extend current handling of
10934 Linux-based x86 systems to cover all GNU systems.
10935 * testsuite/libgomp.c/lock-3.c: Likewise.
10936 * testsuite/libgomp.c/pr48591.c: Likewise.
10937
10938 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
10939
10940 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
10941 GNU/Hurd, as done for Linux-based systems.
10942
10943 * config/posix/ptrlock.h: Fix comment.
10944
10945 2013-05-27 Tobias Burnus <burnus@net-b.de>
10946
10947 PR fortran/57423
10948 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
10949 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
10950 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
10951 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
10952 omp_destroy_nest_lock): Correct arguments to match the one in
10953 the OpenMP spec.
10954 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
10955 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
10956 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
10957 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
10958
10959 2013-05-16 Jakub Jelinek <jakub@redhat.com>
10960
10961 * testsuite/libgomp.c/loop-13.c: New test.
10962 * testsuite/libgomp.c/loop-14.c: New test.
10963 * testsuite/libgomp.c/loop-15.c: New test.
10964 * testsuite/libgomp.c++/loop-13.C: New test.
10965 * testsuite/libgomp.c++/loop-14.C: New test.
10966 * testsuite/libgomp.c++/loop-15.C: New test.
10967
10968 2013-02-06 Jakub Jelinek <jakub@redhat.com>
10969
10970 PR middle-end/56217
10971 * testsuite/libgomp.c++/pr56217.C: New test.
10972
10973 2013-02-01 Alan Modra <amodra@gmail.com>
10974
10975 * task.c (GOMP_task, GOMP_taskwait): Comment.
10976
10977 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
10978 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
10979
10980 PR libgomp/55561
10981 * config/linux/wait.h (do_spin): Use atomic load for addr.
10982 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
10983 for intptr and ptrlock.
10984 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
10985 for ptrlock.
10986
10987 2013-01-22 Alan Modra <amodra@gmail.com>
10988
10989 PR libgomp/51376
10990 PR libgomp/56073
10991 * task.c (GOMP_task): Revert 2011-12-09 change.
10992 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
10993 barrier to read task->children..
10994 (gomp_barrier_handle_tasks): ..and matching atomic store with
10995 release barrier here when setting parent->children to NULL.
10996
10997 2013-01-16 Jakub Jelinek <jakub@redhat.com>
10998 Tobias Burnus <burnus@net-b.de>
10999
11000 PR driver/55884
11001 * testsuite/libgomp.fortran/fortran.exp: Use
11002 -fintrinsic-modules-path= instead of
11003 -fintrinsic-modules-path.
11004
11005 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
11006
11007 Update copyright years.
11008
11009 2012-12-19 Tobias Burnus <burnus@net-b.de>
11010
11011 * testsuite/libgomp.fortran/fortran.exp: Set
11012 -fintrinsic-modules-path.
11013
11014 2012-12-19 Tobias Burnus <burnus@net-b.de>
11015
11016 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
11017 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
11018
11019 2012-11-21 Jakub Jelinek <jakub@redhat.com>
11020
11021 PR libgomp/55411
11022 * team.c (gomp_free_thread): Decrease gomp_managed_threads
11023 if pool had any threads_used.
11024
11025 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
11026
11027 * testsuite/libgomp.c++/pr24455.C: Use
11028 -Wl,-undefined,dynamic_lookup on darwin.
11029
11030 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
11031
11032 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
11033
11034 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
11035
11036 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
11037
11038 2012-10-23 Ian Bolton <ian.bolton@arm.com>
11039 Jim MacArthur <jim.macarthur@arm.com>
11040 Marcus Shawcroft <marcus.shawcroft@arm.com>
11041 Nigel Stephens <nigel.stephens@arm.com>
11042 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11043 Richard Earnshaw <rearnsha@arm.com>
11044 Sofiane Naci <sofiane.naci@arm.com>
11045 Stephen Thomas <stephen.thomas@arm.com>
11046 Tejas Belagod <tejas.belagod@arm.com>
11047 Yufeng Zhang <yufeng.zhang@arm.com>
11048
11049 * configure.tgt: Add AArch64.
11050
11051 2012-10-04 Jason Merrill <jason@redhat.com>
11052
11053 * testsuite/libgomp.c++/tls-init1.C: New.
11054
11055 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
11056
11057 * configure: Regenerated.
11058
11059 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
11060
11061 * config/linux/mips/futex.h (sys_futex0): Change to static
11062 function with noinline, nomips16 attributes under MIPS16. Adjust
11063 asm statement to place 'li v0,SYS_futex' immediately before
11064 syscall insn.
11065
11066 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
11067
11068 * libgomp.texi (Library Index): Renamed from "Index" to prevent
11069 conflict with index.html on case-insensitive file systems.
11070
11071 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
11072
11073 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
11074 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
11075
11076 2012-07-02 Richard Guenther <rguenther@suse.de>
11077 Michael Matz <matz@suse.de>
11078 Tobias Grosser <tobias@grosser.es>
11079 Sebastian Pop <sebpop@gmail.com>
11080
11081 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
11082 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
11083 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
11084 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
11085
11086 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
11087
11088 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
11089
11090 2012-06-22 Richard Guenther <rguenther@suse.de>
11091
11092 Merge from graphite branch
11093 2012-01-13 Tobias Grosser <tobias@grosser.es>
11094
11095 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
11096 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
11097
11098 2012-06-07 Jakub Jelinek <jakub@redhat.com>
11099
11100 PR middle-end/53580
11101 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
11102 use GOMP_barrier () call instead.
11103 * testsuite/libgomp.c/pr26943-3.c: Likewise.
11104 * testsuite/libgomp.c/pr26943-4.c: Likewise.
11105 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
11106 call GOMP_barrier instead.
11107 * testsuite/libgomp.fortran/vla5.f90: Likewise.
11108
11109 2012-06-06 Jakub Jelinek <jakub@redhat.com>
11110
11111 PR libgomp/52993
11112 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
11113 argument to memset call.
11114
11115 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
11116
11117 * configure: Regenerated.
11118
11119 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
11120
11121 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
11122
11123 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
11124
11125 PR bootstrap/52812
11126 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
11127
11128 2012-03-22 Jakub Jelinek <jakub@redhat.com>
11129
11130 PR middle-end/52547
11131 * testsuite/libgomp.c/pr52547.c: New test.
11132
11133 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11134
11135 * testsuite/lib/libgomp.exp: load fortran-modules.exp
11136
11137 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11138
11139 * configure.tgt (mips-sgi-irix6*): Remove.
11140
11141 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11142
11143 * configure.tgt (alpha*-dec-osf*): Remove.
11144
11145 * config/osf/sem.h: Remove.
11146 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
11147
11148 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
11149
11150 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
11151
11152 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11153
11154 PR libstdc++/52188
11155 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
11156 Remove ENABLE_SYMVERS_SOL2.
11157 * configure: Regenerate.
11158 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
11159 (PREPROCESS): New variable.
11160 (libgomp.ver): New target.
11161 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
11162 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
11163 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
11164 Use libgomp.ver.
11165 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
11166 * Makefile.in: Regenerate.
11167
11168 2012-02-14 Walter Lee <walt@tilera.com>
11169
11170 * configure.tgt: Handle tilegx and tilepro.
11171 * config/linux/tile/futex.h: New file.
11172
11173 2012-02-08 Richard Guenther <rguenther@suse.de>
11174
11175 PR tree-optimization/46886
11176 * testsuite/libgomp.c/pr46886.c: New testcase.
11177
11178 2012-01-25 Matthias Klose <doko@ubuntu.com>
11179
11180 * config/linux/arm: Remove empty directory.
11181 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
11182
11183 2011-12-09 Alan Modra <amodra@gmail.com>
11184
11185 PR libgomp/51376
11186 * task.c (GOMP_taskwait): Don't access task->children outside of
11187 task_lock mutex region.
11188 (GOMP_task): Likewise.
11189
11190 2011-12-06 Jakub Jelinek <jakub@redhat.com>
11191
11192 PR libgomp/51132
11193 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
11194 to file scope.
11195 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
11196 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
11197 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
11198 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
11199 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
11200
11201 2011-12-02 Alan Modra <amodra@gmail.com>
11202
11203 * config/linux/affinity.c: Use atomic rather than sync builtin.
11204 * config/linux/lock.c: Likewise.
11205 * config/linux/ptrlock.h: Likewise.
11206 * config/linux/ptrlock.c: Likewise.
11207 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
11208 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
11209 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
11210 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
11211 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
11212 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
11213 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
11214 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
11215 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
11216 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
11217
11218 2011-11-30 Alan Modra <amodra@gmail.com>
11219
11220 PR libgomp/51298
11221 * config/linux/bar.h: Use atomic rather than sync builtins.
11222 * config/linux/bar.c: Likewise. Add missing acquire
11223 synchronisation on generation field.
11224 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
11225 double unlock.
11226
11227 2011-11-30 Alan Modra <amodra@gmail.com>
11228
11229 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
11230 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
11231 * config/linux/mutex.h: Use atomic rather than sync builtins.
11232 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
11233 * config/linux/omp-lock.h: Comment fix.
11234 * config/linux/arm/mutex.h: Delete.
11235 * config/linux/powerpc/mutex.h: Delete.
11236 * config/linux/ia64/mutex.h: Delete.
11237 * config/linux/mips/mutex.h: Delete.
11238
11239 2011-11-30 Alan Modra <amodra@gmail.com>
11240
11241 PR libgomp/51249
11242 * config/linux/sem.h: Rewrite.
11243 * config/linux/sem.c: Rewrite.
11244
11245 2011-11-28 Richard Henderson <rth@redhat.com>
11246
11247 * libgomp.h (enum memmodel): New.
11248
11249 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
11250
11251 * configure: Regenerate.
11252
11253 2011-10-10 Matthias Klose <doko@ubuntu.com>
11254
11255 * config/posix95: Remove empty directory.
11256
11257 2011-08-26 Jakub Jelinek <jakub@redhat.com>
11258
11259 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
11260
11261 2011-08-19 Jakub Jelinek <jakub@redhat.com>
11262
11263 PR fortran/49792
11264 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
11265 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
11266
11267 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11268
11269 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
11270
11271 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11272
11273 PR libgomp/49965
11274 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
11275
11276 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
11277
11278 * config/linux/proc.h: New.
11279 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
11280 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
11281 (gomp_init_num_threads): Update call to cpuset_popcount.
11282 (get_num_procs): Ditto.
11283 * config/linux/affinity.c (gomp_init_affinity): Call
11284 gomp_cpuset_popcount.
11285
11286 2011-08-02 Jakub Jelinek <jakub@redhat.com>
11287
11288 PR fortran/42041
11289 PR fortran/46752
11290 * omp.h.in (omp_in_final): New prototype.
11291 * omp_lib.f90.in (omp_in_final): New interface.
11292 (omp_integer_kind, omp_logical_kind): Remove
11293 and replace all its uses in the module with 4.
11294 (openmp_version): Change to 201107.
11295 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
11296 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
11297 kind for the parameters.
11298 (omp_in_final): New external.
11299 (openmp_version): Change to 201107.
11300 * task.c (omp_in_final): New function.
11301 (gomp_init_task): Initialize final_task.
11302 (GOMP_task): Remove unused attribute from flags. Handle final
11303 tasks.
11304 (GOMP_taskyield): New function.
11305 (omp_in_final): Return true if if (false) or final (true) task
11306 or descendant of final (true).
11307 * fortran.c (omp_in_final_): New function.
11308 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
11309 (GOMP_3.0): Export GOMP_taskyield.
11310 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
11311 variables.
11312 (parse_unsigned_long_list): New function.
11313 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
11314 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
11315 even if parse_affinity returned false.
11316 * config/linux/affinity.c (gomp_init_affinity): Handle
11317 gomp_cpu_affinity_len == 0.
11318 * libgomp_g.h (GOMP_taskyield): New prototype.
11319 * libgomp.h (struct gomp_task): Add final_task field.
11320 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
11321 * team.c (gomp_team_start): Override new task's nthreads_var icv
11322 if list form OMP_NUM_THREADS has been used and it has value for
11323 the new nesting level.
11324
11325 * testsuite/libgomp.c/atomic-11.c: New test.
11326 * testsuite/libgomp.c/atomic-12.c: New test.
11327 * testsuite/libgomp.c/atomic-13.c: New test.
11328 * testsuite/libgomp.c/atomic-14.c: New test.
11329 * testsuite/libgomp.c/reduction-6.c: New test.
11330 * testsuite/libgomp.c/task-5.c: New test.
11331 * testsuite/libgomp.c++/atomic-2.C: New test.
11332 * testsuite/libgomp.c++/atomic-3.C: New test.
11333 * testsuite/libgomp.c++/atomic-4.C: New test.
11334 * testsuite/libgomp.c++/atomic-5.C: New test.
11335 * testsuite/libgomp.c++/atomic-6.C: New test.
11336 * testsuite/libgomp.c++/atomic-7.C: New test.
11337 * testsuite/libgomp.c++/atomic-8.C: New test.
11338 * testsuite/libgomp.c++/atomic-9.C: New test.
11339 * testsuite/libgomp.c++/task-8.C: New test.
11340 * testsuite/libgomp.c++/reduction-4.C: New test.
11341 * testsuite/libgomp.fortran/allocatable7.f90: New test.
11342 * testsuite/libgomp.fortran/allocatable8.f90: New test.
11343 * testsuite/libgomp.fortran/crayptr3.f90: New test.
11344 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
11345 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
11346 * testsuite/libgomp.fortran/pointer1.f90: New test.
11347 * testsuite/libgomp.fortran/pointer2.f90: New test.
11348 * testsuite/libgomp.fortran/task4.f90: New test.
11349
11350 2011-08-02 Tobias Burnus <burnus@net-b.de>
11351
11352 * libgomp.texi: Update OpenMP spec references to 3.1.
11353 (omp_in_final,OMP_PROC_BIND): New sections.
11354 (OMP_NUM_THREADS): Document that the value can be now a list.
11355 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
11356
11357 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
11358
11359 * config/linux/x86/futex.h: Check __x86_64__ instead of
11360 __LP64__.
11361
11362 2011-07-29 Jakub Jelinek <jakub@redhat.com>
11363
11364 PR middle-end/49897
11365 PR middle-end/49898
11366 * testsuite/libgomp.c/pr49897-1.c: New test.
11367 * testsuite/libgomp.c/pr49897-2.c: New test.
11368 * testsuite/libgomp.c/pr49898-1.c: New test.
11369 * testsuite/libgomp.c/pr49898-2.c: New test.
11370
11371 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
11372
11373 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
11374 for ia32 instead of ilp32.
11375
11376 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
11377 * testsuite/libgomp.c/atomic-6.c: Likewise.
11378
11379 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
11380
11381 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
11382 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
11383
11384 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11385
11386 PR libgomp/45351
11387 * config/osf/sem.h: New file.
11388 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
11389
11390 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11391
11392 PR target/49541
11393 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
11394 ldflags.
11395
11396 2011-07-15 Jakub Jelinek <jakub@redhat.com>
11397
11398 * config/linux/wait.h (do_spin): New inline, largely copied
11399 from do_wait, just don't do futex_wait here, instead return true if
11400 it should be done.
11401 (do_wait): Implement using do_spin.
11402 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
11403 to prototype.
11404 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
11405 __sync_bool_compare_and_swap, pass the oldval to
11406 gomp_mutex_lock_slow.
11407 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
11408 If all mutex contenders are just spinning and not sleeping, don't
11409 change state to 2 unnecessarily. Optimize the loop when state has
11410 already become 2 to use just one atomic operation per loop instead
11411 of two.
11412 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
11413 to prototype.
11414 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
11415 __sync_bool_compare_and_swap, pass the oldval to
11416 gomp_mutex_lock_slow.
11417
11418 2011-06-22 Jakub Jelinek <jakub@redhat.com>
11419
11420 PR libgomp/49490
11421 * iter.c (gomp_iter_static_next): For chunk size 0
11422 only use n ceil/ nthreads size for the first
11423 n % nthreads threads in the team instead of
11424 all threads except for the last few ones which
11425 get less work or none at all.
11426 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
11427 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
11428 chunk argument, set run_sched_modifier to 0 for static
11429 resp. 1 for other kinds. If chunk argument is 0
11430 and not static, set value to 1.
11431
11432 2011-05-19 Jakub Jelinek <jakub@redhat.com>
11433
11434 PR c++/49043
11435 * testsuite/libgomp.c++/pr49043.C: New test.
11436
11437 PR c++/48869
11438 * testsuite/libgomp.c++/pr48869.C: New test.
11439
11440 2011-05-06 Jakub Jelinek <jakub@redhat.com>
11441
11442 PR fortran/48894
11443 * fortran.c: Include limits.h.
11444 (TO_INT): Define.
11445 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
11446 *set.
11447 (omp_set_num_threads_8_, omp_set_schedule_8_,
11448 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
11449 omp_get_team_size_8_): Use TO_INT macro.
11450 * testsuite/libgomp.fortran/pr48894.f90: New test.
11451
11452 2011-04-13 Jakub Jelinek <jakub@redhat.com>
11453
11454 PR middle-end/48591
11455 * testsuite/libgomp.c/pr48591.c: New test.
11456
11457 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11458
11459 PR bootstrap/48135
11460 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
11461 * configure: Regenerate.
11462
11463 2011-02-27 Jakub Jelinek <jakub@redhat.com>
11464
11465 PR fortran/47886
11466 * testsuite/libgomp.fortran/task3.f90: New test.
11467
11468 2011-02-24 Tobias Burnus <burnus@net-b.de>
11469
11470 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
11471
11472 2011-02-23 Jakub Jelinek <jakub@redhat.com>
11473
11474 PR libgomp/47854
11475 * libgomp.texi (omp_get_wtime): Don't say time in the past
11476 must be Unix Epoch.
11477
11478 2011-02-18 Jakub Jelinek <jakub@redhat.com>
11479
11480 PR libgomp/47804
11481 * testsuite/libgomp.fortran/fortran.exp: Check for both
11482 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
11483 but $blddir != "", still append ${blddir}/${lang_library_path}
11484 to ld_library_path.
11485
11486 2011-02-16 Tobias Burnus <burnus@net-b.de>
11487
11488 PR libgomp/47758
11489 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
11490 of libquadmath.a before adding its libpath to ldflags.
11491
11492 2011-02-14 Jakub Jelinek <jakub@redhat.com>
11493
11494 PR libgomp/47731
11495 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
11496 to FUTEX_WAIT futex syscall.
11497 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
11498
11499 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11500
11501 * configure: Regenerate.
11502
11503 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
11504
11505 PR libstdc++/36104
11506 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
11507
11508 2011-01-16 Gerald Pfeifer
11509
11510 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
11511
11512 2010-12-14 Jakub Jelinek <jakub@redhat.com>
11513
11514 PR fortran/46874
11515 * libgomp.fortran/allocatable6.f90: New test.
11516
11517 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11518
11519 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
11520 * configure: Regenerate.
11521
11522 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
11523
11524 PR target/40125
11525 PR lto/46695
11526 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
11527 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
11528 * aclocal.m4: Regenerate.
11529 * configure: Regenerate.
11530 * Makefile.in: Regenerate.
11531 * testsuite/Makefile.in: Regenerate.
11532
11533 2010-12-02 Jakub Jelinek <jakub@redhat.com>
11534
11535 PR fortran/46753
11536 * libgomp.fortran/pr46753.f90: New test.
11537
11538 PR libgomp/43706
11539 * env.c (initialize_env): Default to spin count 300000
11540 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
11541 is specified.
11542
11543 PR libgomp/45240
11544 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
11545 at the end if sync builtins aren't supported.
11546
11547 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11548
11549 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
11550
11551 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11552
11553 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
11554
11555 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
11556
11557 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
11558
11559 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11560 Tobias Burnus <burnus@net-b.de>
11561
11562 PR fortran/32049
11563 * configure.ac:
11564 * configure: Regenerate.
11565
11566 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
11567
11568 * config/linux/futex.h: New.
11569 * config/linux/arm/mutex.h: New.
11570 * configure.tgt (arm*-*-linux*): Add config path.
11571
11572 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11573
11574 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
11575
11576 2010-09-23 Tobias Burnus <burnus@net-b.de>
11577
11578 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
11579 Change Fortran datatype to LOGICAL.
11580 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
11581 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
11582
11583 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11584
11585 * configure: Regenerate.
11586
11587 2010-07-26 Jakub Jelinek <jakub@redhat.com>
11588
11589 * libgomp.texi: Add function keyword to a couple of Fortran
11590 interfaces, use integer instead of int for Fortran.
11591
11592 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
11593
11594 * libgomp.texi: Fix spelling and pasto problems throughout.
11595 Adjust prototypes to match code.
11596
11597 2010-07-24 Tobias Burnus <burnus@net-b.de>
11598
11599 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
11600 silence -fwhole-file warning.
11601
11602 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11603
11604 * configure.tgt (*-*-solaris2.[56]*): Removed.
11605
11606 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11607
11608 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
11609 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
11610 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
11611 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
11612 targetting solaris2*.
11613 * configure: Regenerate.
11614 * config.h.in: Regenerate.
11615
11616 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
11617 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
11618 Add libgomp_version_dep.
11619 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
11620 versioning.
11621 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
11622 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
11623 * Makefile.in: Regenerate.
11624
11625 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
11626 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
11627 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
11628 to common block, protected by
11629 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
11630
11631 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
11632
11633 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
11634
11635 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
11636
11637 PR bootstrap/43170
11638 * configure: Regenerate.
11639
11640 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11641
11642 PR other/43620
11643 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
11644 * configure: Regenerate.
11645 * Makefile.in: Regenerate.
11646 * testsuite/Makefile.in: Regenerate.
11647
11648 2010-04-26 Jakub Jelinek <jakub@redhat.com>
11649
11650 PR c/43893
11651 * testsuite/libgomp.c/pr43893.c: New test.
11652 * testsuite/libgomp.c++/pr43893.C: New test.
11653
11654 2010-04-21 Jakub Jelinek <jakub@redhat.com>
11655
11656 PR middle-end/43570
11657 * testsuite/libgomp.fortran/vla8.f90: New test.
11658
11659 2010-04-20 Jakub Jelinek <jakub@redhat.com>
11660
11661 PR libgomp/43706
11662 * config/linux/affinity.c (gomp_init_affinity): Decrease
11663 gomp_available_cpus if affinity mask confines the process to fewer
11664 CPUs.
11665 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
11666 non-NULL, just return gomp_available_cpus.
11667
11668 PR libgomp/43569
11669 * sections.c (gomp_sections_init): Initialize ws->mode.
11670
11671 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
11672
11673 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
11674 not unused bar variable.
11675 * configure: Regenerate.
11676
11677 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11678
11679 * Makefile.in: Regenerate.
11680 * aclocal.m4: Regenerate.
11681 * testsuite/Makefile.in: Regenerate.
11682
11683 2010-03-22 Jakub Jelinek <jakub@redhat.com>
11684
11685 PR libgomp/42942
11686 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
11687 (initialize_env): Adjust callers.
11688 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
11689 when the argument is 0.
11690
11691 * testsuite/libgomp.c/pr42942.c: New test.
11692
11693 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
11694
11695 PR middle-end/42644
11696 PR middle-end/42130
11697 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
11698 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
11699
11700 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11701
11702 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
11703 * testsuite/libgomp.c++/task-6.C: Likewise.
11704
11705 2010-01-28 Steve Ellcey <sje@cup.hp.com>
11706
11707 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
11708
11709 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
11710
11711 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
11712 * configure: Regenerate.
11713
11714 2010-01-26 Jakub Jelinek <jakub@redhat.com>
11715
11716 PR fortran/42866
11717 * testsuite/libgomp.fortran/allocatable5.f90: New test.
11718
11719 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
11720
11721 * configure.ac: Test for executability of GFORTRAN.
11722 * configure: Regenerate.
11723
11724 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11725
11726 * configure: Regenerate.
11727
11728 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
11729
11730 PR libgomp/42602
11731 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
11732
11733 2010-01-03 Richard Guenther <rguenther@suse.de>
11734
11735 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
11736
11737 2009-12-23 Sebastian Pop <sebpop@gmail.com>
11738
11739 * testsuite/libgomp.graphite/pr4118.c: New.
11740
11741 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
11742
11743 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
11744 for darwin, protect the test with require-effective-target tls_runtime.
11745 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
11746
11747 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
11748
11749 PR target/41605
11750 * testsuite/lib/libgomp.exp: Provide -B options to allow for
11751 link spec %s substitutions for static libraries.
11752
11753 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
11754
11755 PR testsuite/42135
11756 * libgomp.graphite/force-parallel-2.c: Reduce array size.
11757
11758 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11759
11760 * Makefile.in: Regenerate.
11761 * configure: Regenerate.
11762 * testsuite/Makefile.in: Regenerate.
11763
11764 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
11765
11766 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
11767 settings for LC_ALL and LANG.
11768
11769 2009-11-25 Jakub Jelinek <jakub@redhat.com>
11770
11771 PR fortran/42162
11772 * testsuite/libgomp.fortran/pr42162.f90: New test.
11773
11774 2009-11-13 Jakub Jelinek <jakub@redhat.com>
11775
11776 PR middle-end/42029
11777 * testsuite/libgomp.c/pr42029.c: New test.
11778
11779 2009-10-26 Jakub Jelinek <jakub@redhat.com>
11780
11781 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
11782 *s. Accept ld version without text in ()s.
11783 * configure: Regenerated.
11784
11785 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
11786
11787 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
11788
11789 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11790
11791 PR libgomp/41418
11792 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
11793 or a hyphen (happens with fortran language disabled).
11794 * configure: Regenerate.
11795
11796 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11797
11798 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
11799 use sed script portable to Solaris /bin/sed for extracting ld
11800 version.
11801 * configure: Regenerate.
11802
11803 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
11804
11805 * testsuite/libgomp.graphite/bounds.c: New test.
11806
11807 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11808
11809 * Makefile.am (libgomp_la_LINK): New.
11810 * Makefile.in: Regenerate.
11811
11812 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11813
11814 * configure.ac (AC_PREREQ): Bump to 2.64.
11815
11816 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11817
11818 * Makefile.am (install-html, install-pdf): Remove.
11819 * Makefile.in: Regenerate.
11820
11821 * Makefile.in: Regenerate.
11822 * aclocal.m4: Regenerate.
11823 * config.h.in: Regenerate.
11824 * configure: Regenerate.
11825 * testsuite/Makefile.in: Regenerate.
11826
11827 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11828
11829 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
11830 * Makefile.in: Regenerate.
11831
11832 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
11833
11834 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
11835 * Makefile.in: Regenerate.
11836
11837 2009-08-19 Tobias Burnus <burnus@net-b.de>
11838
11839 PR fortran/41102
11840 omp_lib.h.in: Fix -std=f95 errors.
11841
11842 2009-08-14 David Edelsohn <edelsohn@gnu.org>
11843
11844 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
11845 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
11846 * testsuite/libgomp.graphite/graphite.exp: New.
11847
11848 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
11849
11850 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
11851 only build.
11852
11853 2009-08-04 David Daney <ddaney@caviumnetworks.com>
11854
11855 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
11856 needed memory barrier semantics.
11857 * config/linux/mips/mutex.h: New file.
11858
11859 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11860
11861 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
11862
11863 2009-07-16 Joseph Myers <joseph@codesourcery.com>
11864
11865 * configure: Regenerate.
11866
11867 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
11868
11869 PR testsuite/40699
11870 PR testsuite/40707
11871 PR testsuite/40709
11872 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
11873 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
11874 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
11875
11876 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
11877
11878 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
11879 options when choosing a multilib.
11880
11881 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
11882
11883 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
11884 ld_library_path. Use add_path. Add just find_libgcc_s to
11885 ld_library_path, not every libgcc multilib directory.
11886 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
11887 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
11888 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
11889 Use add_path.
11890 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
11891
11892 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
11893
11894 * Makefile.am (LTLDFLAGS): Define.
11895 (LINK): Define.
11896 * Makefile.in: Regenerate.
11897
11898 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
11899
11900 PR fortran/39718
11901 * testsuite/libgomp.fortran/fortran.exp: Don't link with
11902 libgfortranbegin, check existence of libgfortran.a instead of
11903 libgfortranbegin.a.
11904
11905 2009-05-20 Jakub Jelinek <jakub@redhat.com>
11906
11907 PR libgomp/40174
11908 * team.c (gomp_thread_start): Destroy thr->release semaphore.
11909 (gomp_free_pool_helper): Likewise.
11910
11911 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
11912 Jakub Jelinek <jakub@redhat.com>
11913
11914 PR fortran/35423
11915 * testsuite/libgomp.fortran/workshare2.f90: New test.
11916
11917 2009-04-09 Nick Clifton <nickc@redhat.com>
11918
11919 * iter.c: Change copyright header to refer to version 3 of the
11920 GNU General Public License with version 3.1 of the GCC Runtime
11921 Library Exception and to point readers at the COPYING3 and
11922 COPYING3.RUNTIME files and the FSF's license web page.
11923 * alloc.c: Likewise.
11924 * barrier.c: Likewise.
11925 * config/bsd/proc.c: Likewise.
11926 * config/linux/affinity.c: Likewise.
11927 * config/linux/alpha/futex.h: Likewise.
11928 * config/linux/bar.c: Likewise.
11929 * config/linux/bar.h: Likewise.
11930 * config/linux/ia64/futex.h: Likewise.
11931 * config/linux/ia64/mutex.h: Likewise.
11932 * config/linux/lock.c: Likewise.
11933 * config/linux/mips/futex.h: Likewise.
11934 * config/linux/mutex.c: Likewise.
11935 * config/linux/mutex.h: Likewise.
11936 * config/linux/powerpc/futex.h: Likewise.
11937 * config/linux/proc.c: Likewise.
11938 * config/linux/ptrlock.c: Likewise.
11939 * config/linux/ptrlock.h: Likewise.
11940 * config/linux/s390/futex.h: Likewise.
11941 * config/linux/sem.c: Likewise.
11942 * config/linux/sem.h: Likewise.
11943 * config/linux/sparc/futex.h: Likewise.
11944 * config/linux/wait.h: Likewise.
11945 * config/linux/x86/futex.h: Likewise.
11946 * config/mingw32/proc.c: Likewise.
11947 * config/mingw32/time.c: Likewise.
11948 * config/posix/affinity.c: Likewise.
11949 * config/posix/bar.c: Likewise.
11950 * config/posix/bar.h: Likewise.
11951 * config/posix/lock.c: Likewise.
11952 * config/posix/mutex.h: Likewise.
11953 * config/posix/proc.c: Likewise.
11954 * config/posix/ptrlock.h: Likewise.
11955 * config/posix/sem.c: Likewise.
11956 * config/posix/sem.h: Likewise.
11957 * config/posix/time.c: Likewise.
11958 * config/posix95/lock.c: Likewise.
11959 * critical.c: Likewise.
11960 * env.c: Likewise.
11961 * error.c: Likewise.
11962 * fortran.c: Likewise.
11963 * iter_ull.c: Likewise.
11964 * libgomp.h: Likewise.
11965 * libgomp_f.h.in: Likewise.
11966 * libgomp_g.h: Likewise.
11967 * loop.c: Likewise.
11968 * loop_ull.c: Likewise.
11969 * omp.h.in: Likewise.
11970 * omp_lib.f90.in: Likewise.
11971 * omp_lib.h.in: Likewise.
11972 * ordered.c: Likewise.
11973 * parallel.c: Likewise.
11974 * sections.c: Likewise.
11975 * single.c: Likewise.
11976 * task.c: Likewise.
11977 * team.c: Likewise.
11978 * work.c: Likewise.
11979
11980 2009-04-09 Jakub Jelinek <jakub@redhat.com>
11981
11982 * testsuite/config/default.exp: Change copyright header to refer to
11983 version 3 of the GNU General Public License and to point readers
11984 at the COPYING3 file and the FSF's license web page.
11985
11986 2009-04-08 Jakub Jelinek <jakub@redhat.com>
11987
11988 PR middle-end/39573
11989 * libgomp.c++/pr39573.C: New test.
11990
11991 2009-04-01 Jakub Jelinek <jakub@redhat.com>
11992
11993 PR other/39591
11994 * testsuite/libgomp.c/pr39591-1.c: New test.
11995 * testsuite/libgomp.c/pr39591-2.c: New test.
11996 * testsuite/libgomp.c/pr39591-3.c: New test.
11997
11998 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
11999
12000 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
12001 * testsuite/libgomp.c/atomic-6.c: Ditto.
12002
12003 2009-03-23 Jakub Jelinek <jakub@redhat.com>
12004
12005 PR c/39495
12006 * testsuite/libgomp.c/loop-12.c: New test.
12007 * testsuite/libgomp.c/loop-11.c: New test.
12008 * testsuite/libgomp.c++/loop-11.C: New test.
12009 * testsuite/libgomp.c++/loop-12.C: New test.
12010 * testsuite/libgomp.c++/for-8.C: New test.
12011
12012 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12013
12014 * configure: Regenerate.
12015
12016 2009-02-11 Jakub Jelinek <jakub@redhat.com>
12017
12018 PR middle-end/39154
12019 * testsuite/libgomp.c/pr39154.c: New test.
12020
12021 2009-01-30 Ian Lance Taylor <iant@google.com>
12022
12023 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
12024 libgomp_ld_is_gold. Get gold version number.
12025 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
12026 * configure: Rebuild.
12027
12028 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
12029
12030 * testsuite/lib/libgomp.exp: Add -B option for targets that
12031 use libgfortran.a%s in their specs.
12032
12033 2009-01-07 Jakub Jelinek <jakub@redhat.com>
12034
12035 PR libgomp/38086
12036 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
12037 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
12038 HAVE_AS_SYMVER_DIRECTIVE is not defined.
12039 * configure: Regenerated.
12040 * config.h.in: Likewise.
12041
12042 2008-12-28 Jakub Jelinek <jakub@redhat.com>
12043
12044 PR c++/38650
12045 * testsuite/libgomp.c/pr38650.c: New test.
12046 * testsuite/libgomp.c++/pr38650.C: New test.
12047
12048 2008-12-27 Jakub Jelinek <jakub@redhat.com>
12049
12050 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
12051
12052 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
12053
12054 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
12055
12056 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12057
12058 * configure: Regenerate.
12059
12060 2008-12-08 Jakub Jelinek <jakub@redhat.com>
12061
12062 PR middle-end/36802
12063 * testsuite/libgomp.c/pr36802-1.c: New test.
12064 * testsuite/libgomp.c/pr36802-2.c: New test.
12065 * testsuite/libgomp.c/pr36802-3.c: New test.
12066
12067 2008-12-01 Janis Johnson <janis187@us.ibm.com>
12068
12069 PR libgomp/38270
12070 * config/linux/powerpc/mutex.h: New.
12071
12072 2008-12-01 Jakub Jelinek <jakub@redhat.com>
12073
12074 PR c++/38257
12075 * testsuite/libgomp.c++/for-7.C: New test.
12076
12077 PR c++/38348
12078 * testsuite/libgomp.c++/for-6.C: New test.
12079
12080 2008-11-26 Janis Johnson <janis187@us.ibm.com>
12081
12082 PR testsuite/28870
12083 * testsuite/lib/libgomp.exp: Include new timeout library files.
12084 (libgomp_target_compile): Set timeout value from new proc.
12085
12086 2008-11-13 Steve Ellcey <sje@cup.hp.com>
12087
12088 PR libgomp/37938
12089 * config/linux/ia64/mutex.h: New.
12090
12091 2008-11-04 Tobias Burnus <burnus@net-b.de>
12092
12093 PR libgomp/37935
12094 * libgomp.texi (Runtime library routines, environment variables):
12095 Update for OpenMP version 3.0.
12096
12097 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
12098 Steve Ellcey <sje@cup.hp.com>
12099
12100 * configure: Regenerate for new libtool.
12101 * Makefile.in: Ditto.
12102 * testsuite/Makefile.in: Ditto.
12103
12104 2008-09-19 Jakub Jelinek <jakub@redhat.com>
12105 Andreas Tobler <a.tobler@schweiz.org>
12106
12107 * config/bsd/proc.c: New file.
12108 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
12109 * configure.ac: Check for header <sys/sysctl.h>
12110 * configure: Regenerate.
12111 * config.h.in: Likewise.
12112
12113 2008-09-05 Janis Johnson <janis187@us.ibm.com>
12114
12115 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
12116
12117 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
12118
12119 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
12120 * Makefile.in: Regenerated.
12121 * testsuite/Makefile.in: Regenerated.
12122
12123 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
12124
12125 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
12126 depend on blddir if blddir exists.
12127 (libgomp_target_compile): Likewise.
12128 * testsuite/libgomp.c++/c++.exp: Likewise.
12129 * testsuite/libgomp.fortran/fortran.exp: Likewise.
12130
12131 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12132
12133 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
12134 Do not list GPL as Invariant Section.
12135
12136 2008-07-28 Ilie Garbacea <ilie@mips.com>
12137 Chao-ying Fu <fu@mips.com>
12138
12139 * configure.tgt: Enable futex for MIPS.
12140 * config/linux/mips/futex.h: New file.
12141
12142 2008-07-16 Jakub Jelinek <jakub@redhat.com>
12143
12144 * team.c (gomp_team_end): Free team immediately if it has
12145 just one thread.
12146
12147 2008-07-08 David Edelsohn <edelsohn@gnu.org>
12148
12149 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
12150 * testsuite/libgomp.fortran/fortran.exp: Same.
12151 * testsuite/libgomp.c/c.exp: Same.
12152 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
12153 directory to library path first.
12154
12155 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
12156
12157 * env.c (parse_stacksize): Add cast to avoid warning.
12158 (parse_spincount): Likewise.
12159
12160 2008-06-27 Jakub Jelinek <jakub@redhat.com>
12161
12162 * testsuite/libgomp.c/loop-10.c: New test.
12163 * libgomp.c/loop-3.c (main): Add lastprivate clause.
12164 * libgomp.c++/loop-6.C (main): Likewise.
12165
12166 PR debug/36617
12167 * testsuite/libgomp.c/debug-1.c: New test.
12168
12169 2008-06-19 Jakub Jelinek <jakub@redhat.com>
12170
12171 * testsuite/libgomp.c/nqueens-1.c: New test.
12172
12173 PR c++/36523
12174 * testsuite/libgomp.c++/task-7.C: New function.
12175
12176 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12177
12178 * configure: Regenerate.
12179
12180 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12181
12182 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
12183 mutex when HAVE_SYNC_BUILTINS isn't defined.
12184
12185 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12186
12187 * libgomp.texi (omp_test_lock): Fix typo.
12188
12189 2008-06-12 Tobias Burnus <burnus@net-b.de>
12190
12191 * omp_lib.f90.in: Add "implicit none".
12192
12193 2008-06-12 Jakub Jelinek <jakub@redhat.com>
12194
12195 PR middle-end/36506
12196 * testsuite/libgomp.c/reduction-5.c: New test.
12197
12198 2008-06-11 Jakub Jelinek <jakub@redhat.com>
12199
12200 * libgomp.h (struct gomp_task): Add in_tied_task field.
12201 * task.c (gomp_init_task): Initialize it.
12202 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
12203 unconditionally. Don't call gomp_team_barrier_wake if
12204 current task is implicit or if(0) from implicit and number of
12205 running tasks is equal to nthreads - 1.
12206
12207 PR libgomp/36471
12208 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
12209 omp_get_team_size_8): Fix pastos.
12210
12211 PR libgomp/36469
12212 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
12213 * configure: Regenerated.
12214 * config.h.in: Regenerated.
12215 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
12216 defined.
12217
12218 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
12219
12220 PR bootstrap/36452
12221 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
12222 (GOMP_loop_ull_dynamic_start): Likewise.
12223 (GOMP_loop_ull_guided_start): Likewise.
12224 (GOMP_loop_ull_ordered_static_start): Likewise.
12225 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
12226 (GOMP_loop_ull_ordered_guided_start): Likewise.
12227
12228 2008-06-06 Jakub Jelinek <jakub@redhat.com>
12229 Richard Henderson <rth@redhat.com>
12230 Ulrich Drepper <drepper@redhat.com>
12231 Jakob Blomer <jakob.blomer@ira.uka.de>
12232
12233 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
12234 Substitute also OMP_*LOCK_25*.
12235 * configure: Regenerated.
12236 * config.h.in: Regenerated.
12237 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
12238 ptrlock.c and task.c.
12239 * Makefile.in: Regenerated.
12240 * testsuite/Makefile.in: Regenerated.
12241 * task.c: New file.
12242 * loop_ull.c: New file.
12243 * iter_ull.c: New file.
12244 * libgomp.h: Include ptrlock.h.
12245 (enum gomp_task_kind): New type.
12246 (struct gomp_team): Add task_lock, task_queue, task_count,
12247 task_running_count, single_count fields. Add
12248 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
12249 Remove work_share_lock, generation_mask,
12250 oldest_live_gen, num_live_gen and init_work_shares fields, add
12251 work work_share_list_alloc, work_share_list_free and work_share_chunk
12252 fields. Change work_shares from pointer to pointers into an array.
12253 Change ordered_release field into gomp_sem_t ** from flexible array
12254 member. Add implicit_task and initial_work_shares fields.
12255 Move close to the end of the struct.
12256 (struct gomp_team_state): Add single_count, last_work_share,
12257 active_level and level fields, remove work_share_generation.
12258 (gomp_barrier_handle_tasks): New prototype.
12259 (gomp_finish_task): New inline function.
12260 (struct gomp_work_share): Move chunk_size, end, incr into
12261 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
12262 next_ll fields. Reshuffle fields. Add next_alloc,
12263 next_ws, next_free and inline_ordered_team_ids fields, change
12264 ordered_team_ids into pointer from flexible array member.
12265 Add mode field. Put lock and next into a different cache line
12266 from most of the write-once fields.
12267 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
12268 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
12269 gomp_iter_ull_guided_next): New prototypes.
12270 (gomp_new_icv): New prototype.
12271 (struct gomp_thread): Add thread_pool and task fields.
12272 (struct gomp_thread_pool): New type.
12273 (gomp_new_team): New prototype.
12274 (gomp_team_start): Change type of last argument.
12275 (gomp_new_work_share): Removed.
12276 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
12277 (gomp_work_share_init_done): New static inline.
12278 (gomp_throttled_spin_count_var, gomp_available_cpus,
12279 gomp_managed_threads): New extern decls.
12280 (gomp_init_task): New prototype.
12281 (gomp_spin_count_var): New extern var decl.
12282 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
12283 or no alias support, or if not PIC.
12284 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
12285 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
12286 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
12287 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
12288 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
12289 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
12290 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
12291 gomp_test_nest_lock_25): New prototypes.
12292 (omp_lock_symver, strong_alias): Define.
12293 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
12294 decls.
12295 (gomp_end_task): New.
12296 (struct gomp_task_icv, gomp_global_icv): New.
12297 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
12298 (struct gomp_task): New.
12299 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
12300 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
12301 (gomp_icv): New.
12302 (gomp_schedule_type): Reorder enum to match
12303 omp_sched_t.
12304 * team.c (struct gomp_thread_start_data): Add thread_pool and task
12305 fields.
12306 (gomp_thread_start): Add gomp_team_barrier_wait call.
12307 For non-nested case remove clearing of docked thread thr fields.
12308 Use pool fields instead of global gomp_* variables. Use
12309 gomp_barrier_wait_last when needed. Initialize ts.active_level.
12310 Create tasks for each member thread.
12311 (free_team): Only destroy team barrier, task_lock here and free it.
12312 (gomp_free_thread): Free last_team if non-NULL.
12313 (gomp_team_end): Call gomp_team_barrier_wait instead of
12314 gomp_barrier_wait. For nested case call one extra
12315 gomp_barrier_wait. Move here some destruction from free_team.
12316 Call free_team on pool->last_team if any, rather than freeing
12317 current team. Destroy work_share_list_free_lock ifndef
12318 HAVE_SYNC_BUILTINS.
12319 (gomp_new_icv): New function.
12320 (gomp_threads, gomp_threads_size, gomp_threads_used,
12321 gomp_threads_dock): Removed.
12322 (gomp_thread_destructor): New variable.
12323 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
12324 functions.
12325 (gomp_team_start): Create new pool if current thread doesn't have
12326 one. Use pool fields instead of global gomp_* variables.
12327 Initialize thread_pool field for new threads. Clear single_count.
12328 Change last argument from ws to team, don't create
12329 new team, set ts.work_share to &team->work_shares[0] and clear
12330 ts.last_work_share. Don't clear ts.work_share_generation.
12331 If number of threads changed, adjust atomically gomp_managed_threads.
12332 Use gomp_init_task instead of gomp_new_task,
12333 set thr->task to the corresponding implicit_task array entry.
12334 Create tasks for each member thread. Initialize ts.level.
12335 (initialize_team): Call pthread_key_create on
12336 gomp_thread_destructor.
12337 (team_destructor): New function.
12338 (new_team): Removed.
12339 (gomp_new_team): New function.
12340 (free_team): Free gomp_work_share blocks chained through next_alloc,
12341 instead of freeing work_shares and destroying work_share_lock.
12342 (gomp_team_end): Call gomp_fini_work_share. If number of threads
12343 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
12344 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
12345 of gomp_barrier_wait.
12346 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
12347 instead of gomp_barrier_wait. Call gomp_work_share_init_done
12348 if gomp_work_share_start returned true. Don't unlock ws->lock.
12349 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
12350 of gomp_barrier_wait.
12351 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
12352 gomp_work_share_init_done if gomp_work_share_start returned true.
12353 Don't unlock ws->lock.
12354 * work.c: Include stddef.h.
12355 (free_work_share): Use work_share_list_free_lock instead
12356 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
12357 Call gomp_fini_work_share and then either free ws if orphaned, or
12358 put it into work_share_list_free list of the current team.
12359 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
12360 functions.
12361 (gomp_work_share_start, gomp_work_share_end,
12362 gomp_work_share_end_nowait): Rewritten.
12363 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
12364 (openmp_version): Set to 200805.
12365 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
12366 omp_sched_guided, omp_sched_auto): New parameters.
12367 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
12368 omp_set_max_active_levels, omp_get_max_active_levels,
12369 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
12370 omp_get_active_level): New interfaces.
12371 * omp_lib.h.in (openmp_version): Set to 200805.
12372 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
12373 omp_sched_guided, omp_sched_auto): New parameters.
12374 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
12375 omp_set_max_active_levels, omp_get_max_active_levels,
12376 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
12377 omp_get_active_level): New externals.
12378 * loop.c: Include limits.h.
12379 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
12380 GFS_AUTO.
12381 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
12382 Likewise. Use gomp_icv.
12383 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
12384 ts.static_trip here.
12385 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
12386 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
12387 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
12388 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
12389 don't unlock ws->lock, otherwise lock it.
12390 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
12391 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
12392 (gomp_parallel_loop_start): Call gomp_new_team instead of
12393 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
12394 Adjust gomp_team_start caller. Pass 0 as second argument to
12395 gomp_resolve_num_threads.
12396 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
12397 If adding ws->chunk_size nthreads + 1 times after end won't
12398 overflow, set ws->mode to 1.
12399 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
12400 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
12401 GOMP_loop_ull_ordered_static_start,
12402 GOMP_loop_ull_ordered_dynamic_start,
12403 GOMP_loop_ull_ordered_guided_start,
12404 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
12405 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
12406 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
12407 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
12408 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
12409 prototypes.
12410 * libgomp.map: Export lock routines also @@OMP_2.0.
12411 (GOMP_loop_ordered_dynamic_first,
12412 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
12413 GOMP_loop_ordered_static_first): Remove.
12414 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
12415 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
12416 GOMP_loop_ull_ordered_dynamic_next,
12417 GOMP_loop_ull_ordered_dynamic_start,
12418 GOMP_loop_ull_ordered_guided_next,
12419 GOMP_loop_ull_ordered_guided_start,
12420 GOMP_loop_ull_ordered_runtime_next,
12421 GOMP_loop_ull_ordered_runtime_start,
12422 GOMP_loop_ull_ordered_static_next,
12423 GOMP_loop_ull_ordered_static_start,
12424 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
12425 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
12426 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
12427 (omp_set_schedule, omp_get_schedule,
12428 omp_get_thread_limit, omp_set_max_active_levels,
12429 omp_get_max_active_levels, omp_get_level,
12430 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
12431 omp_set_schedule_, omp_set_schedule_8_,
12432 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
12433 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
12434 omp_get_max_active_levels_, omp_get_level_,
12435 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
12436 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
12437 New exports @@OMP_3.0.
12438 * omp.h.in (omp_sched_t): New type.
12439 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
12440 omp_set_max_active_levels, omp_get_max_active_levels,
12441 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
12442 omp_get_active_level): New prototypes.
12443 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
12444 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
12445 gomp_thread_limit_var, gomp_remaining_threads_count,
12446 gomp_remaining_threads_lock): New variables.
12447 (parse_spincount): New function.
12448 (initialize_env): Call gomp_init_num_threads unconditionally.
12449 Initialize gomp_available_cpus. Call parse_spincount,
12450 initialize gomp_{,throttled_}spin_count_var
12451 depending on presence and value of OMP_WAIT_POLICY and
12452 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
12453 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
12454 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
12455 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
12456 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
12457 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
12458 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
12459 (gomp_global_icv): New.
12460 (parse_schedule): Use it. Parse "auto".
12461 (omp_set_num_threads): Use gomp_icv.
12462 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
12463 Likewise.
12464 (omp_get_max_threads): Move from parallel.c.
12465 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
12466 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
12467 add ialias.
12468 (parse_stacksize, parse_wait_policy): New functions.
12469 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
12470 both wrappers for compatibility and new locks.
12471 (omp_set_schedule, omp_get_schedule,
12472 omp_get_thread_limit, omp_set_max_active_levels,
12473 omp_get_max_active_levels, omp_get_level,
12474 omp_get_ancestor_thread_num, omp_get_team_size,
12475 omp_get_active_level): New ialias_redirect.
12476 (omp_set_schedule_, omp_set_schedule_8_,
12477 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
12478 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
12479 omp_get_max_active_levels_, omp_get_level_,
12480 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
12481 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
12482 New functions.
12483 * parallel.c: Include limits.h.
12484 (gomp_resolve_num_threads): Add count argument. Rewritten.
12485 (GOMP_parallel_start): Call gomp_new_team and pass that as last
12486 argument to gomp_team_start. Pass 0 as second argument to
12487 gomp_resolve_num_threads.
12488 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
12489 if gomp_thread_limit_var != ULONG_MAX.
12490 (omp_in_parallel): Implement using ts.active_level.
12491 (omp_get_max_threads): Move to env.c.
12492 (omp_get_level, omp_get_ancestor_thread_num,
12493 omp_get_team_size, omp_get_active_level): New functions,
12494 add ialias.
12495 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
12496 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
12497 gomp_iter_dynamic_next instead of the _locked variant and don't take
12498 lock around it, otherwise acquire it before calling
12499 gomp_iter_dynamic_next_locked.
12500 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
12501 gomp_iter_dynamic_next instead of the _locked variant and don't take
12502 lock around it.
12503 (GOMP_parallel_sections_start): Call gomp_new_team instead of
12504 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
12505 Adjust gomp_team_start caller. Pass count as second argument to
12506 gomp_resolve_num_threads, don't adjust num_threads after the call.
12507 Use gomp_icv.
12508 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
12509 ws->chunk_size by incr.
12510 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
12511 code.
12512 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
12513 types.
12514 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
12515 (omp_check_defines): Check even the compat defines.
12516 * config/linux/ptrlock.c: New file.
12517 * config/linux/ptrlock.h: New file.
12518 * config/linux/wait.h: New file.
12519 * config/posix/ptrlock.c: New file.
12520 * config/posix/ptrlock.h: New file.
12521 * config/linux/bar.h (gomp_team_barrier_wait,
12522 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
12523 (gomp_team_barrier_set_task_pending,
12524 gomp_team_barrier_clear_task_pending,
12525 gomp_team_barrier_set_waiting_for_tasks,
12526 gomp_team_barrier_waiting_for_tasks,
12527 gomp_team_barrier_done): New inlines.
12528 (gomp_barrier_t): Rewritten.
12529 (gomp_barrier_state_t): New typedef.
12530 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
12531 gomp_barrier_wait_start): Rewritten.
12532 (gomp_barrier_wait_end): Change second argument to
12533 gomp_barrier_state_t.
12534 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
12535 inlines.
12536 * config/linux/bar.c: Include wait.h instead of libgomp.h and
12537 futex.h.
12538 (gomp_barrier_wait_end): Rewritten.
12539 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
12540 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
12541 * config/posix/bar.h (gomp_barrier_t): Add generation field.
12542 (gomp_barrier_state_t): New typedef.
12543 (gomp_team_barrier_wait,
12544 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
12545 (gomp_barrier_wait_start): Or all but low 2 bits from generation
12546 into the return value. Return gomp_barrier_state_t.
12547 (gomp_team_barrier_set_task_pending,
12548 gomp_team_barrier_clear_task_pending,
12549 gomp_team_barrier_set_waiting_for_tasks,
12550 gomp_team_barrier_waiting_for_tasks,
12551 gomp_team_barrier_done): New inlines.
12552 (gomp_barrier_wait_end): Change second argument to
12553 gomp_barrier_state_t.
12554 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
12555 inlines.
12556 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
12557 (gomp_barrier_wait_end): Change second argument to
12558 gomp_barrier_state_t.
12559 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
12560 gomp_team_barrier_wake): New functions.
12561 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
12562 futex.h.
12563 (gomp_futex_wake, gomp_futex_wait): New variables.
12564 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
12565 * config/linux/lock.c: Rewrite to make locks task owned,
12566 for backwards compatibility provide the old entrypoints
12567 if symbol versioning. Include wait.h instead of libgomp.h and
12568 futex.h.
12569 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
12570 * config/posix95/lock.c: Rewrite to make locks task owned,
12571 for backwards compatibility provide the old entrypoints
12572 if symbol versioning.
12573 * config/posix/lock.c: Rewrite to make locks task owned,
12574 for backwards compatibility provide the old entrypoints
12575 if symbol versioning.
12576 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
12577 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
12578 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
12579 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
12580 (sys_futex0): Return error code.
12581 (futex_wake, futex_wait): If ENOSYS was returned, clear
12582 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
12583 (cpu_relax, atomic_write_barrier): New static inlines.
12584 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
12585 (futex_wake, futex_wait): If ENOSYS was returned, clear
12586 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
12587 (cpu_relax, atomic_write_barrier): New static inlines.
12588 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
12589 (sys_futex0): Return error code.
12590 (futex_wake, futex_wait): If ENOSYS was returned, clear
12591 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
12592 (cpu_relax, atomic_write_barrier): New static inlines.
12593 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
12594 (sys_futex0): Return error code.
12595 (futex_wake, futex_wait): If ENOSYS was returned, clear
12596 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
12597 (cpu_relax, atomic_write_barrier): New static inlines.
12598 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
12599 (sys_futex0): Return error code.
12600 (futex_wake, futex_wait): If ENOSYS was returned, clear
12601 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
12602 (cpu_relax, atomic_write_barrier): New static inlines.
12603 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
12604 (sys_futex0): Return error code.
12605 (futex_wake, futex_wait): If ENOSYS was returned, clear
12606 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
12607 (cpu_relax, atomic_write_barrier): New static inlines.
12608 * config/linux/sem.c: Include wait.h instead of libgomp.h and
12609 futex.h.
12610 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
12611 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
12612 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
12613 types.
12614 (omp_nest_lock_t): Change owner into void *, add lock field.
12615 * config/posix95/omp-lock.h: Include semaphore.h.
12616 (omp_lock_25_t, omp_nest_lock_25_t): New types.
12617 (omp_lock_t): Use sem_t instead of mutex if semaphores
12618 aren't broken.
12619 (omp_nest_lock_t): Likewise. Change owner to void *.
12620 * config/posix/omp-lock.h: Include semaphore.h.
12621 (omp_lock_25_t, omp_nest_lock_25_t): New types.
12622 (omp_lock_t): Use sem_t instead of mutex if semaphores
12623 aren't broken.
12624 (omp_nest_lock_t): Likewise. Add owner field.
12625
12626 2008-06-06 Jakub Jelinek <jakub@redhat.com>
12627
12628 * testsuite/libgomp.c/collapse-1.c: New test.
12629 * testsuite/libgomp.c/collapse-2.c: New test.
12630 * testsuite/libgomp.c/collapse-3.c: New test.
12631 * testsuite/libgomp.c/icv-1.c: New test.
12632 * testsuite/libgomp.c/icv-2.c: New test.
12633 * testsuite/libgomp.c/lib-2.c: New test.
12634 * testsuite/libgomp.c/lock-1.c: New test.
12635 * testsuite/libgomp.c/lock-2.c: New test.
12636 * testsuite/libgomp.c/lock-3.c: New test.
12637 * testsuite/libgomp.c/loop-4.c: New test.
12638 * testsuite/libgomp.c/loop-5.c: New test.
12639 * testsuite/libgomp.c/loop-6.c: New test.
12640 * testsuite/libgomp.c/loop-7.c: New test.
12641 * testsuite/libgomp.c/loop-8.c: New test.
12642 * testsuite/libgomp.c/loop-9.c: New test.
12643 * testsuite/libgomp.c/nested-3.c: New test.
12644 * testsuite/libgomp.c/nestedfn-6.c: New test.
12645 * testsuite/libgomp.c/sort-1.c: New test.
12646 * testsuite/libgomp.c/task-1.c: New test.
12647 * testsuite/libgomp.c/task-2.c: New test.
12648 * testsuite/libgomp.c/task-3.c: New test.
12649 * testsuite/libgomp.c/task-4.c: New test.
12650 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
12651 to C++ testsuite default compiler options.
12652 * testsuite/libgomp.c++/collapse-1.C: New test.
12653 * testsuite/libgomp.c++/collapse-2.C: New test.
12654 * testsuite/libgomp.c++/ctor-10.C: New test.
12655 * testsuite/libgomp.c++/for-1.C: New test.
12656 * testsuite/libgomp.c++/for-2.C: New test.
12657 * testsuite/libgomp.c++/for-3.C: New test.
12658 * testsuite/libgomp.c++/for-4.C: New test.
12659 * testsuite/libgomp.c++/for-5.C: New test.
12660 * testsuite/libgomp.c++/loop-8.C: New test.
12661 * testsuite/libgomp.c++/loop-9.C: New test.
12662 * testsuite/libgomp.c++/loop-10.C: New test.
12663 * testsuite/libgomp.c++/task-1.C: New test.
12664 * testsuite/libgomp.c++/task-2.C: New test.
12665 * testsuite/libgomp.c++/task-3.C: New test.
12666 * testsuite/libgomp.c++/task-4.C: New test.
12667 * testsuite/libgomp.c++/task-5.C: New test.
12668 * testsuite/libgomp.c++/task-6.C: New test.
12669 * testsuite/libgomp.fortran/allocatable1.f90: New test.
12670 * testsuite/libgomp.fortran/allocatable2.f90: New test.
12671 * testsuite/libgomp.fortran/allocatable3.f90: New test.
12672 * testsuite/libgomp.fortran/allocatable4.f90: New test.
12673 * testsuite/libgomp.fortran/collapse1.f90: New test.
12674 * testsuite/libgomp.fortran/collapse2.f90: New test.
12675 * testsuite/libgomp.fortran/collapse3.f90: New test.
12676 * testsuite/libgomp.fortran/collapse4.f90: New test.
12677 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
12678 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
12679 * testsuite/libgomp.fortran/lib4.f90: New test.
12680 * testsuite/libgomp.fortran/lock-1.f90: New test.
12681 * testsuite/libgomp.fortran/lock-2.f90: New test.
12682 * testsuite/libgomp.fortran/nested1.f90: New test.
12683 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
12684 * testsuite/libgomp.fortran/strassen.f90: New test.
12685 * testsuite/libgomp.fortran/tabs1.f90: New test.
12686 * testsuite/libgomp.fortran/tabs2.f: New test.
12687 * testsuite/libgomp.fortran/task1.f90: New test.
12688 * testsuite/libgomp.fortran/task2.f90: New test.
12689 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
12690 * testsuite/libgomp.fortran/vla5.f90: Likewise.
12691 * testsuite/libgomp.c/pr26943-2.c: Likewise.
12692 * testsuite/libgomp.c/pr26943-3.c: Likewise.
12693 * testsuite/libgomp.c/pr26943-4.c: Likewise.
12694
12695 2008-05-23 Jakub Jelinek <jakub@redhat.com>
12696
12697 PR c++/36308
12698 * testsuite/libgomp.c++/ctor-11.C: New test.
12699 * testsuite/libgomp.c++/ctor-12.C: New test.
12700
12701 2008-05-15 Janis Johnson <janis187@us.ibm.com>
12702
12703 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
12704
12705 2008-05-07 Jakub Jelinek <jakub@redhat.com>
12706
12707 PR middle-end/36106
12708 * testsuite/libgomp.c/atomic-5.c: New test.
12709 * testsuite/libgomp.c/atomic-6.c: New test.
12710 * testsuite/libgomp.c/autopar-1.c: New test.
12711
12712 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12713
12714 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
12715 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
12716 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
12717 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
12718 * configure: Regenerate.
12719 * Makefile.in, testsuite/Makefile.in: Likewise.
12720
12721 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
12722
12723 PR bootstrap/35457
12724 * aclocal.m4: Regenerate.
12725 * configure: Regenerate.
12726
12727 2008-03-18 Jakub Jelinek <jakub@redhat.com>
12728
12729 PR middle-end/35611
12730 * testsuite/libgomp.c/atomic-4.c: New test.
12731
12732 PR libgomp/35625
12733 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
12734 (gomp_iter_guided_next): Likewise.
12735 * testsuite/libgomp.c/pr35625.c: New test.
12736
12737 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12738
12739 * aclocal.m4: Regenerate.
12740 * configure: Likewise.
12741 * Makefile.in: Likewise.
12742 * testsuite/Makefile.in: Likewise.
12743
12744 2008-03-13 Jakub Jelinek <jakub@redhat.com>
12745
12746 PR middle-end/35185
12747 * testsuite/libgomp.c++/pr35185.C: New test.
12748
12749 2008-03-12 Jakub Jelinek <jakub@redhat.com>
12750
12751 PR middle-end/35549
12752 * testsuite/libgomp.c/pr35549.c: New test.
12753
12754 2008-03-06 Jakub Jelinek <jakub@redhat.com>
12755
12756 * testsuite/libgomp.c/atomic-3.c: New test.
12757
12758 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12759
12760 PR fortran/33197
12761 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
12762 .F08 file suffixes.
12763
12764 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
12765
12766 PR libgomp/33131
12767 * configure.ac: Add ACX_HEADER_STRING.
12768 * env.c: Include strings.h.
12769 * aclocal.m4: Regenerate.
12770 * config.h.in: Regenerate.
12771 * configure: Regenerate.
12772 * Makefile.in: Regenerate.
12773 * testsuite/Makefile.in: Regenerate.
12774
12775 2008-02-15 Jakub Jelinek <jakub@redhat.com>
12776
12777 PR middle-end/35196
12778 * testsuite/libgomp.c/pr35196.c: New test.
12779
12780 PR middle-end/35130
12781 * testsuite/libgomp.fortran/pr35130.f90: New test.
12782 * testsuite/libgomp.c/pr35130.c: New test.
12783
12784 2008-01-25 Jakub Jelinek <jakub@redhat.com>
12785
12786 PR middle-end/33880
12787 * testsuite/libgomp.c/pr33880.c: New test.
12788 * testsuite/libgomp.fortran/pr33880.f90: New test.
12789
12790 2008-01-24 David Edelsohn <edelsohn@gnu.org>
12791
12792 * configure: Regenerate.
12793
12794 2008-01-08 Jakub Jelinek <jakub@redhat.com>
12795
12796 * configure.ac: Move futex checking into ../config/futex.m4.
12797 * configure: Rebuilt.
12798 * aclocal.m4: Rebuilt.
12799 * Makefile.in: Rebuilt.
12800
12801 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
12802 2007-10-15 ../config/tls.m4 change.
12803
12804 2007-12-19 Jakub Jelinek <jakub@redhat.com>
12805
12806 PR c++/34513
12807 * testsuite/libgomp.c/pr34513.c: New test.
12808 * testsuite/libgomp.c++/pr34513.C: New test.
12809
12810 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
12811
12812 PR target/32765
12813 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
12814
12815 2007-12-04 Jakub Jelinek <jakub@redhat.com>
12816
12817 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
12818
12819 2007-12-03 Jakub Jelinek <jakub@redhat.com>
12820
12821 * testsuite/libgomp.c/private-1.c: New test.
12822
12823 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
12824 Paolo Bonzini <bonzini@gnu.org>
12825
12826 * Makefile.am: Use space as vpath separator. Use 'vpath %'
12827 instead of 'VPATH ='.
12828 * Makefile.in: Regenerate.
12829
12830 2007-11-23 Matthias Klose <doko@ubuntu.com>
12831
12832 * configure.ac: Adjust makeinfo version check.
12833 * configure: Regenerate.
12834
12835 2007-11-10 Jakub Jelinek <jakub@redhat.com>
12836
12837 PR fortran/34020
12838 * testsuite/libgomp.fortran/pr34020.f90: New test.
12839
12840 2007-11-06 Jakub Jelinek <jakub@redhat.com>
12841
12842 PR c++/33894
12843 * testsuite/libgomp.c++/atomic-1.C: New test.
12844
12845 2007-10-25 Jakub Jelinek <jakub@redhat.com>
12846
12847 PR libgomp/33275
12848 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
12849 Make x and y integers rather than (implicit) reals. Add private (j)
12850 clause to the last omp parallel.
12851
12852 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
12853
12854 * configure: Regenerate following changes to ../config/tls.m4.
12855
12856 2007-09-28 Jakub Jelinek <jakub@redhat.com>
12857
12858 * testsuite/libgomp.fortran/stack.f90: New test.
12859
12860 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
12861
12862 * config/mingw32/proc.c: New file.
12863
12864 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
12865
12866 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
12867 (main): Use __get_cpuid to get i386 target fetaures.
12868 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
12869 (main): Use __get_cpuid to get x86_64 target fetaures.
12870
12871 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
12872
12873 PR target/32765
12874 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
12875 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
12876
12877 2007-07-12 Jakub Jelinek <jakub@redhat.com>
12878
12879 PR fortran/32550
12880 * testsuite/libgomp.fortran/pr32550.f90: New test.
12881 * testsuite/libgomp.fortran/crayptr2.f90: New test.
12882
12883 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
12884
12885 * aclocal.m4: Regenerated.
12886
12887 2007-07-05 Tobias Burnus <burnus@net-b.de>
12888
12889 PR fortran/32359
12890 * testsuite/libgomp.fortran/pr32359.f90: New.
12891
12892 2007-07-02 Jakub Jelinek <jakub@redhat.com>
12893
12894 PR libgomp/32468
12895 * sections.c (GOMP_parallel_sections_start): Only decrease
12896 number of threads to COUNT if dyn_var is true.
12897 * testsuite/libgomp.c/pr32468.c: New test.
12898
12899 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12900
12901 PR libgomp/26308
12902 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
12903
12904 2007-06-21 Jakub Jelinek <jakub@redhat.com>
12905
12906 PR middle-end/32362
12907 * testsuite/libgomp.c/pr32362-1.c: New test.
12908 * testsuite/libgomp.c/pr32362-2.c: New test.
12909 * testsuite/libgomp.c/pr32362-3.c: New test.
12910
12911 2007-06-07 Jakub Jelinek <jakub@redhat.com>
12912
12913 * team.c (gomp_team_start): Fix setting up thread_attr
12914 stack size.
12915
12916 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
12917
12918 * configure: Regenerate.
12919
12920 2007-05-23 Steve Ellcey <sje@cup.hp.com>
12921
12922 * Makefile.in: Regenerate.
12923 * configure: Regenerate.
12924 * aclocal.m4: Regenerate.
12925 * testsuite/Makefile.in: Regenerate.
12926
12927 2007-05-04 Jakub Jelinek <jakub@redhat.com>
12928
12929 * config/linux/proc.c: New file.
12930
12931 PR libgomp/28482
12932 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
12933
12934 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
12935
12936 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
12937
12938 2007-04-16 Matthias Klose <doko@debian.org>
12939
12940 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
12941 flags if not building with -m64.
12942 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
12943 flag for i?86-*-* targets, if current target matches -m64.
12944
12945 2007-04-14 Steve Ellcey <sje@cup.hp.com>
12946
12947 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
12948 * Makefile.in: Regenerate.
12949
12950 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12951
12952 PR testsuite/31369
12953 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
12954 ld_library_path.
12955 * testsuite/libgomp.fortran/fortran.exp: Likewise.
12956
12957 2007-04-04 Jakub Jelinek <jakub@redhat.com>
12958
12959 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
12960 decls.
12961 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
12962 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
12963 (parse_affinity): New function.
12964 (initialize_env): Call it and gomp_init_affinity.
12965 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
12966 create new pthread_attr_t and call gomp_init_thread_affinity
12967 on it for each thread before passing the attribute to pthread_create.
12968 * config/linux/affinity.c: New file.
12969 * config/posix/affinity.c: New file.
12970 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
12971 * configure: Rebuilt.
12972 * config.h.in: Rebuilt.
12973 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
12974 * Makefile.in: Rebuilt.
12975
12976 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
12977
12978 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
12979 *-*-darwin*.
12980 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
12981 and use it if found.
12982
12983 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
12984
12985 * testsuite/config/default.exp: New file.
12986 * testsuite/lib/libgomp.exp: New file.
12987 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
12988 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
12989 load_lib *, load_gcc_lib *): Move to libgomp.exp.
12990 (libgomp_load): Remove.
12991 * testsuite/lib/libgomp.exp (libgomp_init): Compute
12992 always_ld_library_path, not ld_library_path. Set additional_flags
12993 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
12994 (target_compile): Do not call libgomp_init. Append lang_library_path
12995 and lang_link_flags to options.
12996 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
12997 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
12998 here.
12999 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
13000 always_ld_library_path. Set LD_LIBRARY_PATH here.
13001 * testsuite/libgomp.fortran/fortran.exp: Ditto.
13002 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
13003 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
13004 CX8 flag.
13005 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
13006 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
13007 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
13008 * testsuite/libgomp.c/pr29947-1.c: Ditto.
13009 * testsuite/libgomp.c/atomic-10.c: Ditto.
13010
13011 2007-03-21 Jakub Jelinek <jakub@redhat.com>
13012
13013 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
13014 dg-final cleanup-modules line.
13015 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
13016 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
13017 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
13018 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
13019 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
13020 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
13021 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
13022
13023 2007-03-18 Andreas Schwab <schwab@suse.de>
13024
13025 * acinclude.m4: Adjust regular expression for ld version
13026 extraction.
13027 * configure: Regenerate.
13028
13029 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
13030
13031 * Makefile.am: Add install-pdf target as copied from
13032 automake v1.10 rules.
13033 * Makefile.in: Regenerate
13034
13035 2007-02-07 Jakub Jelinek <jakub@redhat.com>
13036
13037 PR libgomp/28486
13038 * configure: Regenerate.
13039
13040 PR c++/30703
13041 * testsuite/libgomp.c++/pr30703.C: New test.
13042
13043 2007-02-02 Jakub Jelinek <jakub@redhat.com>
13044
13045 Revert:
13046 2006-07-05 Eric Christopher <echristo@apple.com>
13047 * configure.ac: Depend addition of -pthread on host OS.
13048 * configure: Regenerate.
13049
13050 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13051
13052 * libgomp.texi: Fix spacing after abbreviations.
13053
13054 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
13055
13056 PR libgomp/30546
13057 * configure.ac: Add check for makeinfo
13058 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
13059 if an appropriate version of makeinfo is found.
13060 * aclocal.m4: Regenerated.
13061 * configure: Regenerated.
13062 * Makefile.in: Regenerated.
13063 * testsuite/Makefile.in: Regenerated.
13064
13065 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
13066
13067 PR libgomp/30540
13068 * libgomp.texi: More about implementation-dependent settings.
13069
13070 2007-01-26 Tobias Burnus <burnus@net-b.de>
13071
13072 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
13073
13074 2007-01-24 Jakub Jelinek <jakub@redhat.com>
13075
13076 PR middle-end/30494
13077 * testsuite/libgomp.c/pr30494.c: New test.
13078
13079 2007-01-15 Tom Tromey <tromey@redhat.com>
13080
13081 * configure: Rebuilt.
13082 * configure.ac: Fixed comment.
13083
13084 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
13085
13086 * libgomp.texi: Document implementation specific default values of
13087 environment variables.
13088
13089 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
13090
13091 PR libgomp/28209
13092 * libgomp.texi: New file.
13093 * configure.ac: Add --enable-generated-files-in-srcdir option.
13094 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
13095 files to srcdir.
13096 * Makefile.in: Regenerated.
13097 * config.h.in: Regenerated.
13098 * testsuite/Makefile.in: Regenerated.
13099 * NOTES: Removed.
13100
13101 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
13102
13103 PR libgomp/29949
13104 * env.c (omp_set_num_threads): Set illegal thread count to 1.
13105
13106 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
13107
13108 * configure: Regenerate.
13109
13110 2006-12-04 Jakub Jelinek <jakub@redhat.com>
13111
13112 PR libgomp/29947
13113 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
13114 start if there shouldn't be any loop iterations.
13115 (gomp_loop_ordered_static_start): Remove start == end test.
13116 * testsuite/libgomp.c/pr29947-1.c: New test.
13117 * testsuite/libgomp.c/pr29947-2.c: New test.
13118
13119 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
13120
13121 * configure.tgt: Force initial-exec TLS model on Linux only.
13122
13123 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
13124
13125 * configure: Regenerated.
13126
13127 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
13128
13129 * env.c (parse_schedule): Reject out of range values.
13130 (parse_unsigned_long): Reject out of range, negative or zero values.
13131
13132 2006-10-29 Jakub Jelinek <jakub@redhat.com>
13133
13134 PR fortran/29629
13135 * testsuite/libgomp.fortran/pr29629.f90: New test.
13136
13137 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
13138
13139 PR libgomp/29494
13140 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
13141 * config/posix95: New directory.
13142 * config/posix95/omp-lock.h: New file.
13143 * config/posix95/lock.c: Likewise.
13144
13145 2006-10-14 Geoffrey Keating <geoffk@apple.com>
13146
13147 * aclocal.m4: Regenerate.
13148 * configure: Regenerate.
13149
13150 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
13151
13152 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
13153 '<' to '<='.
13154
13155 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
13156
13157 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
13158 test.
13159 * configure: Regenerate.
13160 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
13161
13162 2006-09-26 Jakub Jelinek <jakub@redhat.com>
13163
13164 PR middle-end/25261
13165 PR middle-end/28790
13166 * testsuite/libgomp.c/nestedfn-4.c: New test.
13167 * testsuite/libgomp.c/nestedfn-5.c: New test.
13168 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
13169
13170 PR fortran/29097
13171 * testsuite/libgomp.fortran/condinc1.f: New test.
13172 * testsuite/libgomp.fortran/condinc2.f: New test.
13173 * testsuite/libgomp.fortran/condinc3.f90: New test.
13174 * testsuite/libgomp.fortran/condinc4.f90: New test.
13175 * testsuite/libgomp.fortran/condinc1.inc: New file.
13176
13177 2006-09-18 Tom Tromey <tromey@redhat.com>
13178
13179 * configure: Rebuilt.
13180
13181 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
13182
13183 PR c/28768
13184 PR preprocessor/14634
13185 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
13186 to AC_DEFINE.
13187 * configure: Regenerate.
13188
13189 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
13190
13191 * testsuite/libgomp.fortran/reduction3.f90: Change
13192 -2147483648 to -huge(i)-1 to avoid overflow.
13193 * testsuite/libgomp.fortran/reduction4.f90: Change
13194 Z'ffffffff' to not(0) to avoid overflow.
13195
13196 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
13197
13198 PR libgomp/25938
13199 * Makefile.am (libsubincludedir): New.
13200 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
13201 * Makefile.in: Regenerate.
13202
13203 2006-08-17 Jakub Jelinek <jakub@redhat.com>
13204
13205 PR libgomp/28725
13206 * env.c: Include ctype.h.
13207 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
13208 leading and/or trailing whitespace and compare strings case
13209 insensitively.
13210
13211 2006-07-16 Jakub Jelinek <jakub@redhat.com>
13212
13213 PR fortran/28390
13214 * testsuite/libgomp.fortran/pr28390.f: New test.
13215
13216 2006-07-05 Eric Christopher <echristo@apple.com>
13217
13218 * configure.ac: Depend addition of -pthread on host OS.
13219 * configure: Regenerate.
13220
13221 2006-06-21 Jakub Jelinek <jakub@redhat.com>
13222
13223 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
13224 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
13225 defined.
13226
13227 2006-06-20 Jakub Jelinek <jakub@redhat.com>
13228
13229 PR libgomp/26175
13230 PR libgomp/26477
13231 * configure.ac: If neither --enable-linux-futex nor
13232 --disable-linux-futex is passed, determine the default by checking
13233 for compiling and/or running against NPTL. With --enable-linux-futex,
13234 check if SYS_gettid and SYS_futex are defined.
13235 * configure: Rebuilt.
13236
13237 2006-06-14 Richard Henderson <rth@redhat.com>
13238
13239 PR libgomp/28008
13240 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
13241 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
13242
13243 2006-06-09 Richard Henderson <rth@redhat.com>
13244
13245 * env.c (gomp_nthreads_var): Change to unsigned long.
13246 (gomp_run_sched_chunk): Likewise.
13247 (parse_unsigned_long): Rename from parse_num_threads and generalize.
13248 (initialize_env): Initialize gomp_thread_attr.
13249 * libgomp.h (gomp_nthreads_var): Update decl.
13250 (gomp_run_sched_chunk): Likewise.
13251 (gomp_thread_attr): Declare.
13252 * team.c (gomp_thread_attr): Export.
13253 (initialize_team): Don't initialize it.
13254
13255 2006-06-09 Jakub Jelinek <jakub@redhat.com>
13256
13257 PR fortran/27916
13258 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
13259 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
13260
13261 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
13262
13263 * config/mingw32/time.c: New file.
13264 * configure.tgt: Use it.
13265
13266 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
13267
13268 * Makefile.am: Add install-html target. Add install-html to .PHONY
13269 * Makefile.in: Regenerate.
13270
13271 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13272
13273 PR libgomp/27612
13274 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
13275 * testsuite/libgomp.c/critical-1.c: Likewise.
13276 * testsuite/libgomp.c/loop-1.c: Likewise.
13277 * testsuite/libgomp.c/loop-2.c: Likewise.
13278 * testsuite/libgomp.c/single-1.c: Likewise.
13279 * testsuite/libgomp.c/ordered-1.c: Likewise.
13280 * testsuite/libgomp.c/ordered-2.c: Likewise.
13281
13282 2006-05-15 Jakub Jelinek <jakub@redhat.com>
13283
13284 PR middle-end/27416
13285 * libgomp.fortran/pr27416-1.f90: New test.
13286
13287 2006-05-03 Jakub Jelinek <jakub@redhat.com>
13288
13289 PR fortran/27395
13290 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
13291 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
13292
13293 2006-05-02 Jakub Jelinek <jakub@redhat.com>
13294
13295 PR c++/26943
13296 * testsuite/libgomp.c/pr26943-1.c: New test.
13297 * testsuite/libgomp.c/pr26943-2.c: New test.
13298 * testsuite/libgomp.c/pr26943-3.c: New test.
13299 * testsuite/libgomp.c/pr26943-4.c: New test.
13300 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
13301 * testsuite/libgomp.c++/pr26943.C: New test.
13302
13303 2006-05-02 Jakub Jelinek <jakub@redhat.com>
13304
13305 PR middle-end/27337
13306 * testsuite/libgomp.c++/pr27337.C: New test.
13307
13308 2006-04-26 Jakub Jelinek <jakub@redhat.com>
13309
13310 PR c/26171
13311 * testsuite/libgomp.c/pr26171.c: New test.
13312
13313 2006-04-25 Richard Henderson <rth@redhat.com>
13314
13315 PR libgomp/25865
13316 * configure.ac: Use GCC_CHECK_TLS.
13317 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
13318 * Makefile.in, aclocal.m4, configure: Regenerate.
13319
13320 2006-04-10 Matthias Klose <doko@debian.org>
13321
13322 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
13323 directory names containing underscores.
13324
13325 2006-03-21 Jakub Jelinek <jakub@redhat.com>
13326
13327 PR c++/26691
13328 * testsuite/libgomp.c++/pr26691.C: New test.
13329
13330 2006-03-13 Jakub Jelinek <jakub@redhat.com>
13331
13332 * testsuite/libgomp.fortran/retval2.f90: New test.
13333
13334 2006-03-09 Diego Novillo <dnovillo@redhat.com>
13335
13336 * testsuite/libgomp.c++: New directory.
13337
13338 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
13339
13340 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
13341 * config/posix/sem.c: Implement the above.
13342
13343 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
13344
13345 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
13346 define HAVE_BROKEN_POSIX_SEMAPHORES.
13347 * configure: Rebuilt.
13348 * config.h.in: Rebuilt.
13349
13350 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
13351
13352 PR bootstrap/26161
13353 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
13354 for the other pthread check.
13355 * configure: Regenerate.
13356 * config.h.in: Regenerate.
13357
13358 2006-02-15 Jakub Jelinek <jakub@redhat.com>
13359
13360 PR libgomp/25938
13361 PR libgomp/25984
13362 * Makefile.am (fincludedir): New variable.
13363 (nodist_include_HEADERS): Remove Fortran files.
13364 (nodist_finclude_HEADERS): New variable.
13365 * Makefile.in: Regenerated.
13366
13367 2006-02-13 Jakub Jelinek <jakub@redhat.com>
13368
13369 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
13370 Remove tests for returning assumed character length arrays.
13371
13372 2006-02-12 Roger Sayle <roger@eyesopen.com>
13373 John David Anglin <dave@hiauly1.hia.nrc.ca>
13374
13375 PR libgomp/25936
13376 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
13377
13378 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
13379
13380 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
13381
13382 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
13383
13384 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
13385 part of LD_LIBRARY_PATH manually.
13386
13387 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
13388
13389 PR libgomp/25852
13390 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
13391 libgomp_init.
13392
13393 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
13394
13395 PR libgomp/25884
13396 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
13397 * configure.ac (PERL): Don't set.
13398 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
13399 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
13400 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
13401 * omp.h.in: Wrap the new configure substitutions with @ characters.
13402 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
13403 * aclocal.m4, configure, Makefile.in: Regenerate.
13404 * mkomp_h.pl: Delete.
13405
13406 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
13407
13408 PR libgomp/25259
13409 * configure.ac: Use GCC_HEADER_STDINT.
13410 * libgomp.h: Include gstdint.h.
13411 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
13412 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
13413
13414 2006-01-24 Richard Henderson <rth@redhat.com>
13415
13416 PR libgomp/25942
13417 * configure.ac: Add AM_MAINTAINER_MODE.
13418 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
13419
13420 2006-01-24 Diego Novillo <dnovillo@redhat.com>
13421
13422 * Makefile.in: Regenerate.
13423 * testsuite/Makefile.in: Regenerate.
13424 * aclocal.m4: Regenerate.
13425
13426 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
13427
13428 * config/posix/proc.c: Conditional include of sys/loadavg.h for
13429 Solaris.
13430 * configure.ac: Add check for loadavg.h.
13431 (link_gomp): Adjust comment.
13432 * configure: Regenerate.
13433 * config.h.in: Regenerate.
13434
13435 2006-01-21 Steve Ellcey <sje@cup.hp.com>
13436
13437 PR libgomp/25877
13438 * configure.ac: Remove check for alloca.h.
13439 * configure: Regenerate.
13440 * config.h.in: Regenerate.
13441 * libgomp.h: define gomp_alloca to be __builtin_alloca.
13442 * team.c: Remove use of alloca.h.
13443 Call gomp_alloca instead of alloca.
13444
13445 2006-01-20 Steve Ellcey <sje@cup.hp.com>
13446
13447 PR libgomp/25877
13448 * team.c: Add include of alloca.h.
13449 * configure.ac: Add check for alloca.h.
13450 * configure: Regenerate.
13451 * config.h.in: Regenerate.
13452
13453 2006-01-17 Jakub Jelinek <jakub@redhat.com>
13454
13455 PR fortran/25219
13456 * testsuite/libgomp.fortran/pr25219.f90: New test.
13457
13458 2005-12-05 Uros Bizjak <uros@kss-loka.si>
13459
13460 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
13461 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
13462 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
13463 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
13464 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
13465 testsuite/libgomp.fortran/threadprivate1.f90,
13466 testsuite/libgomp.fortran/threadprivate2.f90,
13467 testsuite/libgomp.fortran/threadprivate3.f90,
13468 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
13469 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
13470 testsuite/libgomp.fortran/omp_parse3.f90: Change required
13471 effective-target to TLS runtime.
13472
13473 * testsuite/libgomp.fortran/pr25162.f: Require
13474 effective-target TLS runtime.
13475
13476 2005-12-01 Jakub Jelinek <jakub@redhat.com>
13477
13478 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
13479 * testsuite/libgomp.c/nestedfn-3.c: New test.
13480
13481 2005-11-30 Jakub Jelinek <jakub@redhat.com>
13482
13483 PR fortran/25162
13484 * testsuite/libgomp.fortran/pr25162.f: New test.
13485
13486 2005-11-28 Jakub Jelinek <jakub@redhat.com>
13487
13488 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
13489 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
13490
13491 2005-11-25 Jakub Jelinek <jakub@redhat.com>
13492
13493 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
13494 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
13495 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
13496 single.c, team.c, work.c, config/linux/alpha/futex.h,
13497 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
13498 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
13499 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
13500 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
13501 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
13502 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
13503 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
13504 FSF address.
13505
13506 2005-11-18 Jakub Jelinek <jakub@redhat.com>
13507
13508 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
13509 to nodist_noinst_HEADERS.
13510 * Makefile.in: Rebuilt.
13511
13512 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
13513 add integer count field.
13514 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
13515 omp_nest_lock_t type change.
13516 (omp_init_nest_lock): Likewise. Initialize count to 0.
13517 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
13518 Increment count.
13519 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
13520 Decrement count.
13521 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
13522 Increment count if successful and return the new nesting level.
13523 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
13524 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
13525 * testsuite/libgomp.c/lib-1.c: New test.
13526 * testsuite/libgomp.fortran/lib1.f90: New test.
13527 * testsuite/libgomp.fortran/lib2.f: New test.
13528 * testsuite/libgomp.fortran/lib3.f: New test.
13529
13530 2005-11-17 Richard Henderson <rth@redhat.com>
13531
13532 PR 24845
13533 * Makefile.am (nodist_toolexeclib_HEADERS): New.
13534 * configure.ac (link_gomp): New. Substitute it.
13535 (AC_CONFIG_FILES): Add libgomp.spec.
13536 * libgomp.spec.in: New file.
13537 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
13538 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
13539
13540 2005-11-18 Jakub Jelinek <jakub@redhat.com>
13541
13542 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
13543 reduction(-:var) behaving the same as reduction(+:var).
13544 * testsuite/libgomp.c/reduction-4.c: New test.
13545
13546 2005-11-15 Uros Bizjak <uros@kss-loka.si>
13547
13548 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
13549 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
13550 testsuite/libgomp.c/copyin-3.c,
13551 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
13552 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
13553 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
13554 testsuite/libgomp.c++/pr24455.C,
13555 testsuite/libgomp.fortran/threadprivate1.f90,
13556 testsuite/libgomp.fortran/threadprivate2.f90,
13557 testsuite/libgomp.fortran/threadprivate3.f90,
13558 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
13559 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
13560 testsuite/libgomp.fortran/omp_parse3.f90: Require
13561 effective-target TLS.
13562
13563 2005-11-14 Diego Novillo <dnovillo@redhat.com>
13564
13565 * HEADER: Remove.
13566
13567 2005-11-13 Jakub Jelinek <jakub@redhat.com>
13568
13569 PR libgomp/24797
13570 * team.c (initialize_team): Pass NULL rather than free as
13571 pthread_key_create destructor. Initialize thread specific data
13572 pointer in initial thread to a static local variable rather than
13573 malloced memory.
13574
13575 2005-11-11 Uros Bizjak <uros@kss-loka.si>
13576
13577 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
13578 its location to ld_library_path.
13579
13580 2005-11-10 Diego Novillo <dnovillo@redhat.com>
13581
13582 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
13583
13584 2005-11-10 Diego Novillo <dnovillo@redhat.com>
13585
13586 * testsuite/libgomp.c: Rename from libgomp.dg.
13587
13588 2005-11-09 Diego Novillo <dnovillo@redhat.com>
13589
13590 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
13591 threadprivate variable 'i'.
13592
13593 2005-11-09 Jakub Jelinek <jakub@redhat.com>
13594
13595 * config/linux/s390/futex.h: New file.
13596 * configure.tgt: Use it.
13597
13598 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
13599 before the parallel.
13600
13601 2005-11-08 Jakub Jelinek <jakub@redhat.com>
13602
13603 PR c++/24734
13604 * testsuite/libgomp.c++/master-1.C: New test.
13605
13606 2005-11-07 Jakub Jelinek <jakub@redhat.com>
13607
13608 * testsuite/libgomp.dg/copyin-3.c: New test.
13609
13610 2005-11-07 Jakub Jelinek <jakub@redhat.com>
13611
13612 * testsuite/libgomp.fortran/retval1.f90: New test.
13613 * testsuite/libgomp.fortran/vla7.f90: New test.
13614
13615 2005-11-06 Jakub Jelinek <jakub@redhat.com>
13616
13617 * testsuite/libgomp.fortran/vla2.f90: New test.
13618 * testsuite/libgomp.fortran/vla3.f90: New test.
13619 * testsuite/libgomp.fortran/vla4.f90: New test.
13620 * testsuite/libgomp.fortran/vla5.f90: New test.
13621 * testsuite/libgomp.fortran/vla6.f90: New test.
13622
13623 2005-11-01 Jakub Jelinek <jakub@redhat.com>
13624
13625 * config/linux/sparc/futex.h: New file.
13626 * configure.tgt: Use it.
13627 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
13628
13629 * critical.c: Include stdlib.h.
13630 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
13631 ignoring return value.
13632 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
13633 LIBGOMP_CHECK_SYNC_BUILTINS check.
13634 * configure: Rebuilt.
13635
13636 2005-10-31 Jakub Jelinek <jakub@redhat.com>
13637
13638 * testsuite/libgomp.fortran/vla1.f90: New test.
13639
13640 2005-10-31 Richard Henderson <rth@redhat.com>
13641
13642 * testsuite/libgomp.fortran/character2.f90: Fix race condition
13643 setting 's' in different threads.
13644
13645 2005-10-31 Jakub Jelinek <jakub@redhat.com>
13646
13647 * libgomp.h (attribute_hidden, ialias): Define.
13648 * config/posix/proc.c (omp_get_num_procs): Add ialias.
13649 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
13650 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
13651 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
13652 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
13653 omp_test_lock, omp_test_nest_lock): Likewise.
13654 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
13655 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
13656 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
13657 omp_test_lock, omp_test_nest_lock): Likewise.
13658 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
13659 omp_get_dynamic, omp_get_nested): Likewise.
13660 * parallel.c (omp_get_num_threads, omp_get_max_threads,
13661 omp_get_thread_num, omp_in_parallel): Likewise.
13662 * fortran.c (ialias_redirect): Define.
13663 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
13664 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
13665 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
13666 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
13667 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
13668 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
13669 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
13670 omp_get_wtime): Add ialias_redirect.
13671
13672 2005-10-30 Jakub Jelinek <jakub@redhat.com>
13673
13674 * fortran.c: Include stdlib.h.
13675
13676 2005-10-29 Jakub Jelinek <jakub@redhat.com>
13677
13678 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
13679 * Makefile.in: Regenerated.
13680
13681 2005-10-28 Jakub Jelinek <jakub@redhat.com>
13682
13683 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
13684 * libgomp_f.h.in (omp_check_defines): New function.
13685 * env.c: Include libgomp_f.h.
13686 (initialize_env): Call omp_check_defines.
13687
13688 * testsuite/libgomp.dg/copyin-2.c: New test.
13689 * testsuite/libgomp.c++/copyin-2.C: New test.
13690 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
13691
13692 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
13693 * testsuite/libgomp.fortran/sharing2.f90: New test.
13694
13695 * testsuite/libgomp.dg/copyin-1.c: New test.
13696 * testsuite/libgomp.c++/copyin-1.C: New test.
13697
13698 2005-10-26 Jakub Jelinek <jakub@redhat.com>
13699
13700 * testsuite/libgomp.fortran/crayptr1.f90: New test.
13701
13702 * testsuite/libgomp.fortran/workshare1.f90: New test.
13703
13704 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
13705 only test.
13706 * libgomp.fortran/sharing1.f90: New test.
13707
13708 2005-10-24 Jakub Jelinek <jakub@redhat.com>
13709
13710 PR c++/24502
13711 * testsuite/libgomp.c++/loop-7.C: New test.
13712
13713 * testsuite/libgomp.dg/nestedfn-2.c: New test.
13714
13715 * testsuite/libgomp.dg/nestedfn-1.c: New test.
13716 * testsuite/libgomp.fortran/reduction6.f90: New test.
13717 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
13718
13719 2005-10-23 Richard Henderson <rth@redhat.com>
13720
13721 * testsuite/libgomp.c++/ctor-1.C: New.
13722 * testsuite/libgomp.c++/ctor-2.C: New.
13723 * testsuite/libgomp.c++/ctor-3.C: New.
13724 * testsuite/libgomp.c++/ctor-4.C: New.
13725 * testsuite/libgomp.c++/ctor-5.C: New.
13726 * testsuite/libgomp.c++/ctor-6.C: New.
13727 * testsuite/libgomp.c++/ctor-7.C: New.
13728 * testsuite/libgomp.c++/ctor-8.C: New.
13729 * testsuite/libgomp.c++/ctor-9.C: New.
13730
13731 2005-10-21 Diego Novillo <dnovillo@redhat.com>
13732
13733 PR 24455
13734 * testsuite/libgomp.c++/pr24455-1.C: New test.
13735 * testsuite/libgomp.c++/pr24455.C: New test.
13736 * testsuite/libgomp.dg/pr24455-1.c: New test.
13737 * testsuite/libgomp.dg/pr24455.c: New test.
13738
13739 2005-10-20 Richard Henderson <rth@redhat.com>
13740
13741 * testsuite/libgomp.c++/loop-6.C: New.
13742 * testsuite/libgomp.dg/loop-3.c: New.
13743
13744 2005-10-20 Jakub Jelinek <jakub@redhat.com>
13745
13746 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
13747 explicitly private.
13748 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
13749 explicitly shared.
13750
13751 2005-10-19 Diego Novillo <dnovillo@redhat.com>
13752
13753 * testsuite/libgomp.fortran/jacobi.f: New test.
13754
13755 2005-10-19 Richard Henderson <rth@redhat.com>
13756
13757 * configure.tgt (i?86-linux): Default to with_arch instead of
13758 CFLAGS. Add -mtune to match target_cpu.
13759 (x86_64-linux): Tune to i686.
13760
13761 * fortran.c (omp_test_nest_lock_): Fix typo.
13762
13763 2005-10-19 Jakub Jelinek <jakub@redhat.com>
13764
13765 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
13766 gomp_ordered_sync): Do nothing if team->nthreads == 1.
13767 * testsuite/libgomp.dg/ordered-3.c: New test.
13768
13769 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
13770 Remove volatile keyword.
13771
13772 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
13773 in COMMON block to avoid warnings on 64-bit targets.
13774
13775 2005-10-18 Diego Novillo <dnovillo@redhat.com>
13776
13777 * testsuite/libgomp.dg/shared-3.c: New test.
13778
13779 2005-10-18 Jakub Jelinek <jakub@redhat.com>
13780
13781 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
13782 * testsuite/libgomp.fortran/reduction5.f90: New test.
13783
13784 2005-10-18 Jakub Jelinek <jakub@redhat.com>
13785
13786 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
13787 dg-options.
13788 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
13789 flush loop now that __sync_synchronize has proper memory barrier.
13790 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
13791 Add -ffixed-form to dg-options.
13792
13793 2005-10-17 Diego Novillo <dnovillo@redhat.com>
13794
13795 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
13796 from subdirectories.
13797 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
13798 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
13799 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
13800 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
13801 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
13802 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
13803 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
13804 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
13805 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
13806 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
13807 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
13808 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
13809 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
13810 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
13811 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
13812 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
13813 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
13814 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
13815 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
13816 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
13817 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
13818 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
13819 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
13820 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
13821 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
13822
13823 2005-10-17 Jakub Jelinek <jakub@redhat.com>
13824
13825 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
13826 lang_library_path exists. Use find instead of glob to gather tests.
13827 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
13828
13829 2005-10-17 Diego Novillo <dnovillo@redhat.com>
13830
13831 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
13832 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
13833 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
13834 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
13835 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
13836 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
13837 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
13838 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
13839 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
13840 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
13841 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
13842 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
13843 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
13844
13845 2005-10-15 Jakub Jelinek <jakub@redhat.com>
13846
13847 * testsuite/libgomp.dg/vla-1.c: New test.
13848
13849 * testsuite/libgomp.fortran/reference2.f90: New test.
13850
13851 * testsuite/libgomp.fortran/character2.f90: Remove explicit
13852 declaration of omp_get_thread_num.
13853 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
13854 use omp_lib.
13855
13856 * testsuite/libgomp.fortran/reduction1.f90: New test.
13857 * testsuite/libgomp.fortran/reduction2.f90: New test.
13858 * testsuite/libgomp.fortran/reduction3.f90: New test.
13859 * testsuite/libgomp.fortran/reduction4.f90: New test.
13860
13861 2005-10-13 Richard Henderson <rth@redhat.com>
13862
13863 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
13864 * Makefile.in: Regenerate.
13865 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
13866 * libgomp.h: Include bar.h.
13867 (struct gomp_barrier): Remove.
13868 (struct gomp_team): Add barrier. Replace master_barrier with
13869 master_release. Replace threads with ordered_release.
13870 (struct gomp_thread): Replace barrier with release.
13871 * ordered.c (gomp_ordered_first): Update for ordered_release change.
13872 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
13873 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
13874 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
13875 (GOMP_single_copy_end): Likewise.
13876 * team.c (gomp_threads_dock): New.
13877 (gomp_barrier_init, gomp_barrier_destroy): Remove.
13878 (gomp_thread_start): Use gomp_barrier_wait.
13879 (new_team, free_team): Update for gomp_team changes.
13880 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
13881 (gomp_team_end): Use gomp_barrier_wait.
13882 (initialize_team): Update for gomp_thread changes.
13883 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
13884 (gomp_work_share_end_nowait): Use atomic ops when available.
13885 * config/linux/bar.c, config/linux/bar.h: New files.
13886 * config/posix/bar.c, config/posix/bar.h: New files.
13887
13888 2005-10-13 Jakub Jelinek <jakub@redhat.com>
13889
13890 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
13891 * testsuite/libgomp.dg/single-2.c: New test.
13892
13893 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
13894 lang_link_flags): Unset, so that they aren't inherited from previously
13895 sourced *.exp.
13896
13897 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
13898
13899 2005-10-12 Richard Henderson <rth@redhat.com>
13900
13901 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
13902 (libgomp_init): Use lang_test_file, lang_library_path, and
13903 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
13904
13905 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
13906 (lang_test_file, lang_link_flags): New.
13907 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
13908
13909 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
13910 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
13911 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
13912 testsuite/libgomp.c++/parallel-1.C,
13913 testsuite/libgomp.c++/reduction-1.C,
13914 testsuite/libgomp.c++/reduction-2.C,
13915 testsuite/libgomp.c++/reduction-3.C,
13916 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
13917 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
13918 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
13919 New files, largely cribbed from the C testsuite.
13920
13921 2005-10-12 Jakub Jelinek <jakub@redhat.com>
13922
13923 * testsuite/libgomp.fortran/character1.f90: New test.
13924 * testsuite/libgomp.fortran/character2.f90: New test.
13925
13926 * testsuite/libgomp.dg/nested-1.c: New test.
13927 * testsuite/libgomp.dg/nested-2.c: New test.
13928 * testsuite/libgomp.fortran/do1.f90: New test.
13929 * testsuite/libgomp.fortran/do2.f90: New test.
13930
13931 * testsuite/libgomp.fortran/reference1.f90: New test.
13932
13933 2005-10-11 Jakub Jelinek <jakub@redhat.com>
13934
13935 * testsuite/libgomp.dg/reduction-1.c: New test.
13936 * testsuite/libgomp.dg/reduction-2.c: New test.
13937 * testsuite/libgomp.dg/reduction-3.c: New test.
13938
13939 2005-10-10 Jakub Jelinek <jakub@redhat.com>
13940
13941 * testsuite/libgomp.dg/atomic-1.c: New test.
13942 * testsuite/libgomp.dg/atomic-2.c: New test.
13943
13944 2005-10-09 Richard Henderson <rth@redhat.com>
13945
13946 * critical.c (atomic_lock): New.
13947 (initialize_critical): Initialize it.
13948 (GOMP_atomic_start, GOMP_atomic_end): New.
13949 * libgomp.map: Export them.
13950 * libgomp_g.h: Declare them.
13951
13952 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
13953
13954 2005-10-02 Richard Henderson <rth@redhat.com>
13955
13956 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
13957 to XCFLAGS instead of CFLAGS.
13958
13959 2005-09-30 Richard Henderson <rth@redhat.com>
13960
13961 * configure.ac: Determine whether -pthread or -lpthread is needed.
13962 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
13963 * Makefile.in, configure: Rebuild.
13964
13965 2005-09-28 Richard Henderson <rth@redhat.com>
13966
13967 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
13968 * testsuite/libgomp.dg/omp-single-3.c: New test.
13969
13970 2005-09-28 Diego Novillo <dnovillo@redhat.com>
13971
13972 * testsuite/libgomp.dg/omp-single-2.c: New test.
13973 * testsuite/libgomp.dg/shared-2.c: Fix return code.
13974
13975 2005-09-27 Richard Henderson <rth@redhat.com>
13976
13977 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
13978 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
13979
13980 2005-09-27 Jakub Jelinek <jakub@redhat.com>
13981
13982 * testsuite/libgomp.dg/omp-loop03.c: New test.
13983
13984 2005-09-27 Diego Novillo <dnovillo@redhat.com>
13985
13986 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
13987
13988 2005-09-27 Diego Novillo <dnovillo@redhat.com>
13989
13990 * testsuite/libgomp.dg/omp-single-1.c: New test.
13991 * testsuite/libgomp.dg/shared-1.c: Return 0.
13992 Add prototype for abort.
13993 * testsuite/libgomp.dg/shared-2.c: Likewise.
13994
13995 2005-09-26 Jakub Jelinek <jakub@redhat.com>
13996
13997 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
13998 constructs.
13999
14000 2005-09-26 Diego Novillo <dnovillo@redhat.com>
14001
14002 * testsuite/libgomp.dg/shared-1.c: New test.
14003 * testsuite/libgomp.dg/shared-2.c: New test.
14004
14005 2005-09-24 Richard Henderson <rth@redhat.com>
14006
14007 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
14008
14009 2005-09-24 Richard Henderson <rth@redhat.com>
14010
14011 * iter.c (gomp_iter_static_next): Round up when computing number
14012 of iterations. Don't bother distributing a remainder equally.
14013
14014 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
14015 Don't call srand. Zero b before testing.
14016 (main): New.
14017
14018 2005-09-24 Jakub Jelinek <jakub@redhat.com>
14019
14020 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
14021 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
14022
14023 2005-09-23 Jakub Jelinek <jakub@redhat.com>
14024
14025 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
14026 without !$omp end do, followed immediately by subroutine end.
14027
14028 2005-09-23 Diego Novillo <dnovillo@redhat.com>
14029
14030 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
14031
14032 2005-09-22 Richard Henderson <rth@redhat.com>
14033
14034 * critical.c (GOMP_critical_name_start): Change argument to void**.
14035 Reuse the pointer space if the mutex fits.
14036 (GOMP_critical_name_end): Likewise.
14037 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
14038 * libgomp_g.h (GOMP_critical_name_start): Update decl.
14039 (GOMP_critical_name_end): Likewise.
14040 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
14041 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
14042
14043 2005-09-20 Richard Henderson <rth@redhat.com>
14044
14045 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
14046 (create_lock_lock): New.
14047 (initialize_critical): Initialize it.
14048 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
14049 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
14050
14051 2005-09-20 Diego Novillo <dnovillo@redhat.com>
14052
14053 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
14054
14055 2005-09-20 Diego Novillo <dnovillo@redhat.com>
14056
14057 * testsuite/libgomp.dg/omp-loop01.c: New test.
14058 * testsuite/libgomp.dg/omp-loop02.c: New test.
14059
14060 2005-09-20 Jakub Jelinek <jakub@redhat.com>
14061
14062 * configure.ac (AC_PROG_FC): Add.
14063 (USE_FORTRAN): New automake conditional.
14064 * configure: Rebuilt.
14065 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
14066 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
14067 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
14068 Add rules to build them.
14069 * Makefile.in: Rebuilt.
14070 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
14071 OMP_NEST_LOCK_KIND.
14072 * libgomp.map: Add Fortran wrappers.
14073 * libgomp_f.h.in: New file.
14074 * omp_lib.h.in: New file.
14075 * omp_lib.f90.in: New file.
14076 * fortran.c: New file.
14077 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
14078 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
14079 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
14080 libgfortran has been built.
14081 * testsuite/libgomp.fortran/fortran.exp: New file.
14082 * testsuite/libgomp.fortran/omp_cond1.f: New test.
14083 * testsuite/libgomp.fortran/omp_cond2.f: New test.
14084 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
14085 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
14086 * testsuite/libgomp.fortran/omp_hello.f: New test.
14087 * testsuite/libgomp.fortran/omp_orphan.f: New test.
14088 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
14089 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
14090 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
14091 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
14092 * testsuite/libgomp.fortran/omp_reduction.f: New test.
14093 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
14094 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
14095
14096 2005-08-30 Richard Henderson <rth@redhat.com>
14097
14098 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
14099 function for when aliases are not usable.
14100 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
14101 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
14102 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
14103 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
14104 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
14105 GOMP_loop_ordered_guided_next): Likewise.
14106 * ordered.c (GOMP_ordered_start): Likewise.
14107
14108 2005-08-01 Diego Novillo <dnovillo@redhat.com>
14109
14110 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
14111 * testsuite/libgomp.dg/omp_hello.c: Fix return code
14112 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
14113 * testsuite/libgomp.dg/omp_orphan.c: Likewise
14114 * testsuite/libgomp.dg/omp_reduction.c: Likewise
14115 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
14116 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
14117 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
14118 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
14119
14120 2005-07-07 Eric Christopher <echristo@redhat.com>
14121 Diego Novillo <dnovillo@redhat.com>
14122
14123 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
14124 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
14125 up code.
14126 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
14127 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
14128 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
14129 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
14130 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
14131 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
14132 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
14133
14134 2005-06-13 Diego Novillo <dnovillo@redhat.com>
14135
14136 * TOPLEVEL.patch: Remove.
14137
14138 2005-05-16 Richard Henderson <rth@redhat.com>
14139
14140 * configure.ac: Test for clock_gettime.
14141 * config.h.in, configure: Rebuild.
14142 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
14143 (omp_get_wtime): Use clock_gettime if available.
14144 (omp_get_wtick): Use clock_getres if available.
14145
14146 2005-05-11 Richard Henderson <rth@redhat.com>
14147
14148 * config/linux/ia64/futex.h: New file.
14149 * configure.tgt: Use it.
14150
14151 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
14152
14153 2005-05-07 Richard Henderson <rth@redhat.com>
14154
14155 * config/linux/powerpc/futex.h: New file.
14156 * configure.tgt: Use it.
14157
14158 * config/linux/i486/futex.h: Merge ...
14159 * config/linux/x86_64/futex.h: ... into ...
14160 * config/linux/x86/futex.h: ... here.
14161 * configure.tgt: Update to match.
14162
14163 2005-05-06 Richard Henderson <rth@redhat.com>
14164
14165 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
14166 * config/linux/i486/futex.h: Likewise.
14167 * config/linux/x86_64/futex.h: Likewise.
14168
14169 * config/linux/lock.c: New file.
14170 * config/linux/omp-lock.h: New file.
14171
14172 * critical.c, env.h: Don't include omp.h
14173 * config/posix/lock.c: Include libgomp.h instead of omp.h.
14174 * config/posix/time.c: Likewise.
14175 * config/posix/omp-lock.h: New file.
14176 * libgomp.h: Include omp-lock.h and omp.h.
14177 * Makefile.am (nodist_include_HEADERS): New.
14178 (omp.h): New rule.
14179 * configure.ac (PERL): New.
14180 * mkomp_h.pl: New file.
14181 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
14182 with templates.
14183 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
14184
14185 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
14186 build directory. Re-add -march=i486 hack.
14187
14188 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
14189 (libgomp_link_flags): Remove.
14190 (libgomp_initialized): Remove.
14191 (libgomp_init): Don't protect from reinitialization. Copy code
14192 from libstdc++ for getting the multilib set correctly.
14193
14194 2005-05-05 Richard Henderson <rth@redhat.com>
14195
14196 * config/linux/alpha/futex.h: New file.
14197 * configure.tgt (alpha*-*-linux*): Use it.
14198
14199 * config/posix/mutex.c: New file.
14200 * config/posix/sem.c: Use libgomp.h.
14201
14202 * configure.tgt (x86_64-linux): Also test CC for -m32.
14203 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
14204
14205 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
14206 after $gccpath.
14207
14208 * Makefile.am (SUBDIRS): New.
14209 (libgomp_la_LDFLAGS): Add -lpthread.
14210 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
14211 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
14212
14213 * libgomp_g.h: New file.
14214 * libgomp.h: Split out all public declarations to libgomp_g.h.
14215 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
14216 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
14217 * config/linux/sem.h: Likewise.
14218 * config/posix/sem.h: Likewise.
14219
14220 * Makefile.am (AM_LDFLAGS): New.
14221 (libgomp_version_script): Split out from ...
14222 (libgomp_la_LDFLAGS): ... here.
14223 (libgomp_version_info): New.
14224 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
14225 (LIBGOMP_ENABLE): New.
14226 (LIBGOMP_CHECK_LINKER_FEATURES): New.
14227 (LIBGOMP_ENABLE_SYMVERS): New.
14228 * configure.ac (AC_INIT): Version 1.0.
14229 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
14230 (enable-linux-futex): Likewise. Rename from enable-futex.
14231 (libtool_VERSION): New.
14232 (LIBGOMP_ENABLE_SYMVERS): Use it.
14233 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
14234 * Makefile.in, aclocal.m4, configure: Rebuild.
14235
14236 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
14237 (gomp_mutex_unlock_slow): Fix typo.
14238 * config/linux/sem.c: Similarly.
14239 (gomp_sem_post_slow): Fix typo.
14240 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
14241 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
14242 [__PIC__] (sys_futex0): Don't use tmp output in asm.
14243
14244 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
14245 (libgomp_la_LDFLAGS): Add top_srcdir to path.
14246 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
14247 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
14248 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
14249 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
14250 LDFLAGS. Pull enable_futex check to top-level.
14251 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
14252 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
14253
14254 First attempt at real configury.
14255 * Makefile, config.h: Remove file.
14256 * Makefile.am, Makefile.in: New file.
14257 * acinclude.m4 aclocal.m4: New file.
14258 * configure.ac, configure.tgt, configure: New file.
14259
14260 * config/posix/lock.c: Rename from sys-lock.c.
14261 * config/posix/mutex.h: Rename from sys-mutex.h.
14262 * config/posix/sem.c: Rename from sys-sem.c.
14263 * config/posix/sem.h: Rename from sys-sem.h.
14264 * config/posix/proc.c: Rename from sys-proc.c.
14265 * config/posix/time.c: Rename from sys-proc.c.
14266
14267 * config/linux/mutex.c: New file.
14268 * config/linux/mutex.h: New file.
14269 * config/linux/sem.c: New file.
14270 * config/linux/sem.h: New file.
14271 * config/linux/i486/futex.h: New file.
14272 * config/linux/x86_64/futex.h: New file.
14273
14274 2005-05-04 Richard Henderson <rth@redhat.com>
14275
14276 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
14277 * libgomp.h: Declare them.
14278 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
14279 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
14280
14281 2005-05-04 Richard Henderson <rth@redhat.com>
14282
14283 * libgomp-1 code drop
14284
14285 2005-05-04 Richard Henderson <rth@redhat.com>
14286
14287 * iter.c (gomp_iter_static_next): Return tri-state on 0.
14288 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
14289 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
14290 (gomp_iter_static_next): Update.
14291 (gomp_ordered_static_next): Update.
14292 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
14293 (gomp_loop_ordered_static_start): Likewise. Exit early for a
14294 totally empty range.
14295 (gomp_loop_ordered_static_next): Refine test for calling
14296 gomp_ordered_static_next.
14297 * testsuite/ordered-1.c: Add case for more threads than iterations.
14298
14299 * iter.c (gomp_iter_runtime_next_locked): Remove.
14300 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
14301 gomp_loop_guided_start, gomp_loop_ordered_static_start,
14302 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
14303 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
14304 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
14305 gomp_loop_ordered_guided_next): Downcase name, make static, add
14306 an external alias with the old name.
14307 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
14308 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
14309 switch and call one of the above static functions.
14310 * libgomp.h: Update.
14311
14312 * work.c (gomp_work_share_start): Lock the mutex for !first too.
14313 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
14314 GOMP_loop_guided_start, GOMP_loop_runtime_start,
14315 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
14316 GOMP_loop_ordered_guided_start): Update to match.
14317 * sections.c (GOMP_sections_start): Likewise.
14318 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
14319
14320 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
14321 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
14322 Use bounds check instead of modulus.
14323 (gomp_ordered_sync): Split out of GOMP_ordered_start.
14324 (gomp_ordered_last): Don't sync with ordered_owner here.
14325 (gomp_ordered_next): Likewise.
14326 (gomp_ordered_static_loop_next): Likewise.
14327 * loop.c, libgomp.h: Update to match.
14328
14329 * libgomp.h (GOMP_barrier): Declare.
14330
14331 * testsuite/barrier-1.c: New file.
14332 * testsuite/critical-1.c: New file.
14333 * testsuite/ordered-2.c: New file.
14334 * testsuite/ordered-1.c: New file.
14335 * testsuite/sections-1.c: New file.
14336 * testsuite/single-1.c: New file.
14337 * testsuite/Makefile (TESTS): Add them.
14338
14339 2005-05-04 Richard Henderson <rth@redhat.com>
14340
14341 * libgomp.h (struct gomp_work_share): Add ordered_owner.
14342 * loop.c (GOMP_loop_static_start): If not the startup thread,
14343 acquire the mutex to wait for initialization complete.
14344 (GOMP_loop_ordered_static_start): Likewise.
14345 (GOMP_loop_ordered_runtime_start): Likewise.
14346 (GOMP_loop_ordered_static_first): Remove.
14347 (GOMP_loop_ordered_dynamic_first): Remove.
14348 (GOMP_loop_ordered_guided_first): Remove.
14349 (GOMP_loop_ordered_runtime_first): Remove.
14350 * ordered.c (gomp_ordered_loop_first): Post to own release when
14351 we're the first thread.
14352 (gomp_ordered_loop_last): Wait on release if not owner.
14353 (gomp_ordered_loop_next): Likewise.
14354 (gomp_ordered_static_loop_init): New.
14355 (gomp_ordered_static_loop_next): Use ordered_owner.
14356 (GOMP_ordered_start): Likewise.
14357 * work.c (gomp_new_work_share): Initialize ordered_owner.
14358
14359 2005-05-03 Richard Henderson <rth@redhat.com>
14360
14361 * Makefile (OPT): New.
14362 (CFLAGS): Use it.
14363
14364 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
14365 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
14366 * libgomp.h, libgomp.map, NOTES: Update to match.
14367
14368 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
14369 Add initialized and thr members.
14370 (gomp_thread_start): Pause when initially spawned to wait for
14371 the whole team to be created.
14372 (gomp_team_start): Release team members at the end.
14373
14374 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
14375 (f_foo_1): Use GOMP_loop_end.
14376 (f_foo_2): Use GOMP_loop_end_nowait.
14377
14378 * testsuite/loop-2.c: New file.
14379 * testsuite/Makefile (TESTS): Add it.
14380
14381 2005-05-03 Richard Henderson <rth@redhat.com>
14382
14383 * iter.c (gomp_iter_static_next): Fix overflow check typo.
14384 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
14385 * team.c (new_team): Initialize oldest_live_gen to 1 if no
14386 initial work_share.
14387
14388 * testsuite/Makefile: New file.
14389 * testsuite/loop-1.c: New file.
14390
14391 2005-05-03 Richard Henderson <rth@redhat.com>
14392
14393 Initial implementation and checkin.
14394 \f
14395 Copyright (C) 2005-2020 Free Software Foundation, Inc.
14396
14397 Copying and distribution of this file, with or without modification,
14398 are permitted in any medium without royalty provided the copyright
14399 notice and this notice are preserved.