Allow try_split to split RTX_FRAME_RELATED_P insns
[gcc.git] / libgomp / ChangeLog
1 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
2
3 * plugin/plugin-nvptx.c (nvptx_free):
4 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
5 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
6 comments.
7
8 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
9
10 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
11
12 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
13
14 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
15
16 2020-08-13 Jakub Jelinek <jakub@redhat.com>
17
18 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
19 * testsuite/libgomp.c/loop-23.c (main): Likewise.
20 * testsuite/libgomp.c/loop-24.c: New test.
21
22 2020-08-08 Jakub Jelinek <jakub@redhat.com>
23 Tobias Burnus <tobias@codesourcery.com>
24
25 PR fortran/93553
26 * testsuite/libgomp.fortran/pr93553.f90: New test.
27
28 2020-08-05 Jakub Jelinek <jakub@redhat.com>
29
30 * testsuite/libgomp.c/loop-22.c: New test.
31 * testsuite/libgomp.c/loop-23.c: New test.
32
33 2020-08-05 Jakub Jelinek <jakub@redhat.com>
34
35 PR middle-end/96459
36 * testsuite/libgomp.c/teams-3.c: New test.
37 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
38 if not defined yet.
39 (N(test)): Use it before all N(f*) calls.
40 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
41 (main): Don't call all test_* functions from within
42 #pragma omp teams reduction(|:err), call them directly.
43
44 2020-08-04 Tom de Vries <tdevries@suse.de>
45
46 PR target/96428
47 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
48 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
49
50 2020-08-03 Julian Brown <julian@codesourcery.com>
51 Thomas Schwinge <thomas@codesourcery.com>
52
53 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
54 shared-memory devices. Extend with further checking.
55
56 2020-08-03 Martin Jambor <mjambor@suse.cz>
57
58 * plugin/Makefrag.am: Remove configuration of HSA plugin.
59 * aclocal.m4: Regenerated.
60 * Makefile.in: Regenerated.
61 * config.h.in: Regenerated.
62 * configure: Regenerated.
63 * plugin/configfrag.ac: Likewise.
64 * plugin/hsa_ext_finalize.h: Removed.
65 * plugin/plugin-hsa.c: Likewise.
66 * testsuite/Makefile.in: Regenerated.
67 * testsuite/lib/libgomp.exp
68 (offload_target_to_openacc_device_type): Remove hsa case.
69 (check_effective_target_hsa_offloading_selected_nocache): Removed
70 (check_effective_target_hsa_offloading_selected): Likewise.
71 (libgomp_init): Do not add -Wno-hsa to additional_flags.
72 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
73 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
74 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
75 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
76 * testsuite/libgomp.hsa.c/c.exp: Likewise.
77 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
78 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
79 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
80 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
81 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
82 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
83 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
84 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
85 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
86 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
87 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
88 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
89 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
90 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
91 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
92 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
93 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
94 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
95 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
96
97 2020-07-27 Julian Brown <julian@codesourcery.com>
98 Thomas Schwinge <thomas@codesourcery.com>
99
100 * libgomp.h (struct target_var_desc): Rename do_detach field to
101 is_attach.
102 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
103 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
104 (goacc_enter_data_internal): Don't affect reference counts
105 for attach mappings.
106 (goacc_exit_data_internal): Don't affect reference counts for detach
107 mappings.
108 * target.c (gomp_map_vars_existing): Don't affect reference counts for
109 attach mappings.
110 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
111 mark attach mappings.
112 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
113 reference count for attach mappings.
114 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
115 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
116 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
117 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
118 test as shouldfail.
119 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
120 gracefully in no-finalize mode.
121 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
122
123 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
124
125 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
126 use.
127 * testsuite/libgomp.oacc-c/c.exp: Likewise.
128 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
129
130 2020-07-23 Julian Brown <julian@codesourcery.com>
131 Thomas Schwinge <thomas@codesourcery.com>
132
133 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
134 finalization for detach operation.
135 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
136 New test.
137
138 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
139
140 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
141 * libgomp_f.h.in (omp_check_defines): Check whether
142 sizeof of determined Fortran kind and C typedef match.
143 * omp_lib.f90.in: Add omp_depened_kind.
144 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
145 * configure: Regenerate.
146 * Makefile.in: Regenerate.
147 * testsuite/Makefile.in: Regenerate.
148
149 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
150
151 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
152 gcc/testsuite/c-c++-common/gomp/.
153 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
154 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
155 from gcc/testsuite/gfortran.dg/gomp/.
156 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
157
158 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
159
160 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
161 * omp_lib.h.in: Likewise.
162
163 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
164
165 PR target/95620
166 * testsuite/libgomp.c/pr95620.c: New test.
167
168 2020-07-16 Julian Brown <julian@codesourcery.com>
169 Thomas Schwinge <thomas@codesourcery.com>
170
171 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
172 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
173
174 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
175
176 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
177 avoid conversion on 32bit systems from 32bit to 64bit due
178 to -fdefault-integer-8.
179
180 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
181
182 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
183 variables; add character(kind=4) tests; update TODO comment.
184
185 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
186
187 * allocator.c: Add ialias for omp_init_allocator and
188 omp_destroy_allocator.
189 * configure.ac: Set INTPTR_T_KIND.
190 * configure: Regenerate.
191 * Makefile.in: Regenerate.
192 * testsuite/Makefile.in: Regenerate.
193 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
194 omp_set_default_allocator_, omp_get_default_allocator_): New
195 functions and ialias_redirect.
196 * icv.c: Add ialias for omp_set_default_allocator and
197 omp_get_default_allocator.
198 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
199 omp_destroy_allocator_, omp_set_default_allocator_ and
200 omp_get_default_allocator_.
201 * omp_lib.f90.in: Add allocator traits parameters, declare
202 allocator routines and add related kind parameters.
203 * omp_lib.h.in: Likewise.
204 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
205 * testsuite/libgomp.fortran/alloc-1.F90: New test.
206 * testsuite/libgomp.fortran/alloc-2.F90: New test.
207 * testsuite/libgomp.fortran/alloc-3.F: New test.
208 * testsuite/libgomp.fortran/alloc-4.f90: New test.
209 * testsuite/libgomp.fortran/alloc-5.f90: New test.
210
211 2020-07-14 Tom de Vries <tom@codesourcery.com>
212 Cesar Philippidis <cesar@codesourcery.com>
213 Thomas Schwinge <thomas@codesourcery.com>
214 Kwok Cheung Yeung <kcy@codesourcery.com>
215
216 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
217 New variable.
218 (acc_init_1): Set acc_init_thread to pthread_self (). Set
219 acc_init_state to initializing at the start, and to initialized at the
220 end.
221 (self_initializing_p): New function.
222 (acc_get_device_type): Return acc_device_none if called by thread that
223 is currently executing acc_init_1.
224 * libgomp.texi (acc_get_device_type): Update documentation.
225 (Implementation Status and Implementation-Defined Behavior): Likewise.
226 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
227
228 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
229
230 * config/t-aix: Set BITS from compiler cpp macro.
231
232 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
233
234 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
235
236 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
237
238 PR fortran/67311
239 * testsuite/libgomp.fortran/target-map-1.f90: New test.
240
241 2020-07-14 Jakub Jelinek <jakub@redhat.com>
242
243 * testsuite/libgomp.c/loop-21.c: New test.
244
245 2020-07-13 Julian Brown <julian@codesourcery.com>
246 Thomas Schwinge <thomas@codesourcery.com>
247
248 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
249
250 2020-07-10 Julian Brown <julian@codesourcery.com>
251 Thomas Schwinge <thomas@codesourcery.com>
252
253 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
254 dynamic_refcount.
255 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
256 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
257 dynamic_refcount.
258 (acc_unmap_data): Update comment.
259 (goacc_map_var_existing, goacc_enter_datum): Adjust for
260 dynamic_refcount semantics.
261 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
262 Adjust for dynamic_refcount semantics.
263 (goacc_enter_data_internal): Implement "present" case of dynamic
264 memory-map handling here. Update "non-present" case for
265 dynamic_refcount semantics.
266 (goacc_exit_data_internal): Use goacc_exit_datum_1.
267 * target.c (gomp_map_vars_internal): Remove
268 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
269 handling.
270 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
271 (gomp_load_image_to_device): Substitute dynamic_refcount for
272 virtual_refcount.
273 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
274 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
275 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
276 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
277 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
278 trace output.
279 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
280 trace output.
281 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
282 test.
283 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
284 Remove stale comment.
285 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
286 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
287 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
288 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
289 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
290 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
291
292 2020-07-10 Julian Brown <julian@codesourcery.com>
293 Thomas Schwinge <thomas@codesourcery.com>
294
295 * oacc-mem.c (goacc_map_var_existing): New function.
296 (goacc_enter_datum): Use above function.
297 (goacc_exit_datum_1): New function.
298 (goacc_exit_datum): Use above function.
299
300 2020-07-09 Julian Brown <julian@codesourcery.com>
301 Thomas Schwinge <thomas@codesourcery.com>
302
303 PR middle-end/95270
304 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
305 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
306
307 2020-07-09 Julian Brown <julian@codesourcery.com>
308
309 * oacc-mem.c (find_group_last): Group data-movement clauses
310 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
311 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
312
313 2020-07-09 Jakub Jelinek <jakub@redhat.com>
314
315 * testsuite/libgomp.c/loop-19.c: New test.
316 * testsuite/libgomp.c/loop-20.c: New test.
317
318 2020-07-09 Jakub Jelinek <jakub@redhat.com>
319
320 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
321 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
322 it. Remove __omp_alloctrait_value_max__.
323 * allocator.c (omp_init_allocator): Handle omp_atv_default for
324 omp_atk_alignment and omp_atk_pool_size.
325
326 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
327
328 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
329 behavior for 'GOMP_MAP_FORCE_FROM'.
330 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
331
332 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
333
334 * oacc-mem.c (goacc_exit_data_internal): Remove
335 'GOMP_MAP_ALWAYS_FROM' handling.
336
337 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
338
339 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
340 'scan-assembler' with 'scan-offload-rtl'.
341 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
342 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
343 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
344 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
345
346 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
347
348 * target.c (gomp_map_vars_existing): Assert 'kind !=
349 GOMP_MAP_ATTACH'.
350 (gomp_map_vars_internal): Clean up.
351
352 2020-06-27 Jakub Jelinek <jakub@redhat.com>
353
354 * testsuite/libgomp.c/loop-17.c: New test.
355 * testsuite/libgomp.c/loop-18.c: New test.
356
357 2020-06-26 Marek Polacek <polacek@redhat.com>
358
359 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
360
361 2020-06-23 Alexandre Oliva <oliva@adacore.com>
362
363 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
364 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
365
366 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
367
368 * Makefile.am: Use -include.
369 * Makefile.in: Regenerate.
370
371 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
372
373 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
374 * Makefile.in: Regenerate
375 * configure.ac (tmake_file): Substitute.
376 * configure: Regenerate.
377 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
378 * config/t-aix: New file.
379
380 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
381
382 PR lto/94848
383 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
384 'dg-do run'.
385
386 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
387
388 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
389 variant for HSA_RUNTIME_LIB name.
390 (find_executable_symbol_1): Delete.
391 (find_executable_symbol): Delete.
392 (init_kernel_properties): Add ".kd" suffix to symbol names.
393 (find_load_offset): Delete.
394 (create_and_finalize_hsa_program): Remove relocation handling.
395
396 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
397
398 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
399
400 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
401
402 PR lto/94848
403 PR middle-end/95551
404 * testsuite/libgomp.fortran/target-var.f90: New test.
405
406 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
407 Julian Brown <julian@codesourcery.com>
408
409 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
410 special handling.
411
412 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
413 Julian Brown <julian@codesourcery.com>
414
415 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
416 Simplify.
417
418 2020-06-05 Julian Brown <julian@codesourcery.com>
419
420 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
421 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
422
423 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
424
425 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
426 Evaluate 'copyfrom' individually for each entry.
427 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
428
429 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
430
431 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
432 Evaluate 'finalize' individually for each entry.
433 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
434 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
435 file.
436
437 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
438
439 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
440 usage.
441 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
442
443 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
444 Julian Brown <julian@codesourcery.com>
445
446 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
447 checking.
448 (acc_unmap_data, goacc_exit_data_internal): Restore
449 'is_tgt_unmapped' checking.
450 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
451 file.
452 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
453 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
454 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
455 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
456 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
457 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
458
459 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
460 Julian Brown <julian@codesourcery.com>
461
462 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
463
464 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
465
466 PR libgomp/92854
467 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
468
469 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
470
471 PR libgomp/92854
472 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
473 more.
474
475 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
476 Julian Brown <julian@codesourcery.com>
477
478 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
479 'gomp_map_vars'.
480 (acc_map_data): Clean up accordingly.
481
482 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
483
484 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
485 of over-eager 'finalize' clause.
486 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
487 file.
488 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
489 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
490 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
491 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
492 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
493 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
494 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
495 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
496
497 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
498
499 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
500
501 2020-06-04 Julian Brown <julian@codesourcery.com>
502
503 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
504 error path.
505 (goacc_detach_internal): Likewise.
506
507 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
508
509 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
510 the checkpoint.
511 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
512 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
513 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
514 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
515 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
516
517 2020-06-02 Jakub Jelinek <jakub@redhat.com>
518
519 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
520 defined.
521
522 2020-05-30 Jakub Jelinek <jakub@redhat.com>
523
524 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
525
526 2020-05-30 Jakub Jelinek <jakub@redhat.com>
527
528 * allocator.c (omp_alloc): For size == 0, return NULL early.
529
530 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
531
532 PR bootstrap/95413
533 * configure: Regenerated.
534
535 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
536
537 PR libfortran/95191
538 * testsuite/libgomp.fortran/async_io_9.f90: New test.
539
540 2020-05-19 Jakub Jelinek <jakub@redhat.com>
541
542 * omp.h.in (omp_uintptr_t): New typedef.
543 (__GOMP_UINTPTR_T_ENUM): Define.
544 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
545 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
546 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
547 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
548 omp_get_default_allocator, omp_alloc, omp_free): Declare.
549 * libgomp.h (struct gomp_team_state): Add def_allocator field.
550 (gomp_def_allocator): Declare.
551 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
552 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
553 omp_alloc and omp_free.
554 * team.c (gomp_team_start): Copy over ts.def_allocator.
555 * env.c (gomp_def_allocator): New variable.
556 (parse_wait_policy): Adjust function comment.
557 (parse_allocator): New function.
558 (handle_omp_display_env): Print OMP_ALLOCATOR.
559 (initialize_env): Call parse_allocator.
560 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
561 * allocator.c: New file.
562 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
563 functions.
564 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
565 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
566 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
567 * Makefile.in: Regenerated.
568
569 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
570
571 PR bootstrap/95147
572 * configure: Regenerated.
573
574 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
575
576 PR libfortran/95119
577 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
578
579 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
580
581 * configure: Regenerated.
582
583 2020-05-14 Jakub Jelinek <jakub@redhat.com>
584
585 * testsuite/libgomp.c-c++-common/target-40.c: New test.
586
587 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
588
589 PR fortran/94690
590 * testsuite/libgomp.fortran/pr66199-3.f90: New.
591 * testsuite/libgomp.fortran/pr66199-4.f90: New.
592 * testsuite/libgomp.fortran/pr66199-5.f90: New.
593 * testsuite/libgomp.fortran/pr66199-6.f90: New.
594 * testsuite/libgomp.fortran/pr66199-7.f90: New.
595 * testsuite/libgomp.fortran/pr66199-8.f90: New.
596 * testsuite/libgomp.fortran/pr66199-9.f90: New.
597
598 2020-05-12 Jakub Jelinek <jakub@redhat.com>
599
600 * testsuite/libgomp.c/target-39.c: New test.
601
602 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
603
604 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
605 * openacc.f90 (acc_device_current): Likewise.
606 * openacc.h (acc_device_current): Likewise.
607 * openacc_lib.h (acc_device_current): Likewise.
608
609 PR target/94282
610 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
611 'dg-allow-blank-lines-in-output'.
612
613 * oacc-init.c (get_openacc_name): Handle 'gcn'.
614 * testsuite/lib/libgomp.exp
615 (offload_target_to_openacc_device_type) [amdgcn*]: Return
616 'radeon'. Adjust all users.
617 (check_effective_target_openacc_amdgcn_accel_present): Rename
618 to...
619 (check_effective_target_openacc_radeon_accel_present): ... this.
620 Adjust all users.
621 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
622 (check_effective_target_openacc_radeon_accel_selected): ... this.
623 Adjust all users.
624
625 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
626 'dg-do run'.
627
628 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
629
630 PR other/94629
631
632 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
633 hsa_iterate_agents.
634 (GOMP_OFFLOAD_init_device): Check return values from both calls to
635 hsa_agent_iterate_regions.
636
637 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
638
639 PR middle-end/94635
640 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
641 run'.
642
643 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
644
645 PR middle-end/94120
646 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
647 test case.
648
649 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
650
651 PR middle-end/94635
652 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
653
654 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
655
656 PR libgomp/92843
657 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
658 Rename to...
659 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
660 ... this.
661 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
662 Rename to...
663 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
664 ... this.
665 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
666 Rename to...
667 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
668 ... this.
669 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
670 Rename to...
671 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
672 ... this.
673 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
674 Rename to...
675 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
676 ... this.
677 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
678 Rename to...
679 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
680 ... this.
681 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
682 Rename to...
683 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
684 ... this.
685 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
686 Rename to...
687 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
688 ... this.
689 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
690 Rename to...
691 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
692 ... this.
693 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
694 Rename to...
695 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
696 ... this.
697 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
698 Rename to...
699 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
700 ... this.
701 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
702 Rename to...
703 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
704 ... this.
705 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
706 Rename to...
707 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
708 ... this.
709 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
710 Rename to...
711 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
712 ... this.
713 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
714 Rename to...
715 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
716 ... this.
717 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
718 Rename to...
719 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
720 ... this.
721
722 2020-04-10 Julian Brown <julian@codesourcery.com>
723 Thomas Schwinge <thomas@codesourcery.com>
724
725 PR libgomp/92843
726 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
727 New file.
728 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
729 Likewise.
730 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
731 Likewise.
732 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
733 Likewise.
734 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
735 Likewise.
736 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
737 Likewise.
738 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
739 Likewise.
740 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
741 Likewise.
742 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
743 Likewise.
744 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
745 Likewise.
746 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
747 Likewise.
748 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
749 Likewise.
750 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
751 Likewise.
752 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
753 Likewise.
754 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
755 Likewise.
756 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
757 Likewise.
758
759 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
760
761 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
762 run'.
763
764 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
765
766 PR middle-end/94120
767 * libgomp.oacc-c++/declare-pr94120.C: New.
768
769 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
770
771 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
772 files.
773 * configure: Regenerate.
774 * testsuite/libgomp-site-extra.exp.in: New file.
775 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
776 variable.
777 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
778 variable.
779 * testsuite/Makefile.in: Regenerate.
780
781 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
782
783 PR tree-optimization/89713
784 PR c/94392
785 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
786 'bar.sync'.
787 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
788
789 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
790
791 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
792 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
793
794 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
795
796 PR libgomp/81689
797 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
798
799 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
800
801 PR libgomp/94251
802 * target.c (gomp_load_image_to_device): Fix link
803 variable handling.
804
805 2020-03-19 Jakub Jelinek <jakub@redhat.com>
806
807 PR c++/93931
808 * testsuite/libgomp.c++/pr93931.C: New test.
809
810 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
811
812 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
813 dg-allow-blank-lines-in-output.
814
815 2020-03-18 Julian Brown <julian@codesourcery.com>
816 Tobias Burnus <tobias@codesourcery.com>
817
818 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
819 it work concurrently.
820
821 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
822
823 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
824 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
825 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
826
827 2020-03-14 Jakub Jelinek <jakub@redhat.com>
828
829 PR middle-end/93566
830 * testsuite/libgomp.c/pr93566.c: New test.
831
832 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
833
834 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
835 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
836 integer(acc_device_property) for the type of the return value of
837 acc_get_property.
838
839 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
840
841 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
842 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
843 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
844 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
845 (acc_set_device_num): Fix Fortran argument name, use same name for C.
846 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
847 corrections; add note about the previous interface and named constant.
848 (OpenACC library and environment variables): Fix two typos.
849 * openacc.f90: Use for all procedures the argument names from the spec
850 as for …_h they are user visible.
851 (openacc_kinds): Rename acc_device_property to
852 acc_device_property_kinds and change value to int32 ; and update users.
853 Re-add acc_device_property for for backward compatibility.
854 (acc_get_property_string_h): Clean up as acc_device_property_kind
855 changed.
856 (acc_get_property_h): Likewise and return c_size_t instead of
857 acc_device_property.
858 (openacc): Also export acc_device_property_kinds.
859 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
860 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
861 handling; check against /= 0 instead of == 1 to match C.
862 * openacc_lib.h: Use for all procedures the argument names from the spec
863 as for …_h they are user visible. Place !GCC$ into the first column to
864 be active also for fixed-form souce form.
865 (acc_device_current, acc_device_property_kind, acc_device_property,
866 acc_property_memory, acc_property_free_memory, acc_property_name,
867 acc_property_vendor, acc_property_driver): New named constants.
868 (acc_get_property, acc_get_property_string): New generic interface.
869
870 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
871
872 PR libgomp/93481
873 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
874 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
875 optional.
876 (gomp_target_task_fn): Assert "devicep->async_run_func".
877 (clear_unsupported_flags): New function to remove unsupported flags
878 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
879 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
880 * testsuite/libgomp.c/target-33.c:
881 Remove xfail for offload_target_nvptx.
882 * testsuite/libgomp.c/target-34.c: Likewise.
883
884 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
885
886 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
887 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
888 * testsuite/libgomp.c/target-34.c: Likewise.
889 * testsuite/libgomp.c/target-link-1.c: Add xfail for
890 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
891
892 2020-02-09 Jakub Jelinek <jakub@redhat.com>
893
894 * testsuite/libgomp.c/target-38.c: New test.
895
896 2020-02-06 Jakub Jelinek <jakub@redhat.com>
897
898 PR libgomp/93515
899 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
900
901 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
902
903 * testsuite/lib/libgomp.exp
904 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
905 and not as 'source' argument to libgomp_target_compile.
906
907 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
908
909 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
910 (gcn_gfx801_s): Remove.
911 (isa_hsa_name): Remove gfx801.
912 (isa_gcc_name): Remove gfx801/carizzo.
913 (isa_code): Remove gfx801.
914
915 2020-02-03 Julian Brown <julian@codesourcery.com>
916 Tobias Burnus <tobias@codesourcery.com>
917
918 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
919 and *_finalize variants; document acc_attach and acc_detach; update
920 references from OpenACC 2.0 to 2.6.
921 * openacc.f90 (openacc_version): Update to 201711.
922 * openacc_lib.h (openacc_version): Update to 201711.
923 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
924 openacc_version to 201711.
925 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
926
927 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
928
929 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
930 and vgpr_count fields.
931 (struct kernel_info): Add a field for a hsa_kernel_description.
932 (run_kernel): Reduce the number of threads/workers if the requested
933 number would require too many VGPRs.
934 (init_basic_kernel_info): Initialize description field with
935 the hsa_kernel_description entry for the kernel.
936
937 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
938
939 PR bootstrap/93409
940 * plugin/configfrag.ac (enable_offload_targets): Skip
941 HSA and GCN plugin besides -m32 also for -mx32.
942 * configure: Regenerate.
943
944 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
945
946 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
947
948 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
949
950 * plugin-gcn.c (struct agent_info): Add fields "name" and
951 "vendor_name" ...
952 (GOMP_OFFLOAD_init_device): ... and init from here.
953 (struct hsa_context_info): Add field "driver_version_s" ...
954 (init_hsa_contest): ... and init from here.
955 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
956 implementation.
957 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
958 Enable test execution for amdgcn and host offloading targets.
959 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
960 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
961 (expect_device_properties): Split function into ...
962 (expect_device_string_properties): ... this new function ...
963 (expect_device_memory): ... and this new function.
964 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
965 Add test.
966
967 2020-01-28 Julian Brown <julian@codesourcery.com>
968
969 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
970 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
971 component/non-component variable refs in a single directive.
972 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
973
974 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
975
976 * configure.ac: Handle `--with-toolexeclibdir='.
977 * Makefile.in: Regenerate.
978 * aclocal.m4: Regenerate.
979 * configure: Regenerate.
980 * testsuite/Makefile.in: Regenerate.
981
982 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
983
984 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
985 (expect_device_properties): Remove "expected_free_mem" argument,
986 change "expected_total_mem" argument type to size_t;
987 change types of acc_get_property results to size_t,
988 adapt format strings.
989 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
990 Use %zu instead of %zd to print size_t values.
991 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
992 rename to ...
993 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
994 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
995 rename to ...
996 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
997
998 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
999
1000 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
1001 the device id.
1002
1003 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
1004
1005 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
1006 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
1007 Adjust test dimensions for amdgcn.
1008 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
1009 gang/worker/vector expectations dynamically.
1010 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
1011 (main): Likewise.
1012 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
1013 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
1014 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
1015 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
1016 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
1017 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
1018 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
1019 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
1020 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
1021 (acc_gang): Recognise acc_device_radeon.
1022 (acc_worker): Likewise.
1023 (acc_vector): Likewise.
1024 (main): Set expectations for amdgcn.
1025 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
1026 (main): Adjust gang/worker/vector expectations dynamically.
1027 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
1028 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
1029 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
1030 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
1031 for amdgcn.
1032
1033 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
1034
1035 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
1036 acc_device_radeon.
1037 (openacc): Likewise.
1038 * openacc.f90 (openacc_kinds): Likewise.
1039 (openacc): Likewise.
1040 * openacc.h (acc_device_t): Likewise.
1041 * openacc_lib.h: Likewise.
1042 * testsuite/lib/libgomp.exp
1043 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
1044 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
1045 (cb_compute_construct_end): Likewise.
1046 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
1047 (cb_enqueue_launch_start): Likewise.
1048 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
1049 (cb_enter_data_end): Likewise.
1050 (cb_exit_data_start): Likewise.
1051 (cb_exit_data_end): Likewise.
1052 (cb_compute_construct_end): Likewise.
1053 (cb_enqueue_launch_start): Likewise.
1054 (cb_enqueue_launch_end): Likewise.
1055 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
1056 (main): Likewise.
1057
1058 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
1059
1060 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
1061 to use this instead of 'enum gomp_device_property'.
1062 (GOMP_OFFLOAD_get_property): Rename to...
1063 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
1064 * libgomp.h (struct gomp_device_descr): Move
1065 'GOMP_OFFLOAD_openacc_get_property'...
1066 (struct acc_dispatch_t): ... here. Adjust all users.
1067 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
1068
1069 * target.c (gomp_map_vars_internal)
1070 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
1071 paths.
1072
1073 2020-01-10 Jakub Jelinek <jakub@redhat.com>
1074
1075 PR libgomp/93219
1076 * libgomp.h (gomp_print_string): Change return type from void to int.
1077 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
1078 not all characters have been written.
1079
1080 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
1081
1082 * libgomp.texi: Fix typos, use https.
1083
1084 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
1085
1086 * testsuite/libgomp.fortran/optional-map.f90: Add test for
1087 unallocated/disassociated actual arguments to nonallocatable/nonpointer
1088 dummy arguments; those are/shall be regarded as absent arguments.
1089 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
1090 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
1091
1092 2020-01-01 Jakub Jelinek <jakub@redhat.com>
1093
1094 Update copyright years.
1095
1096 * libgomp.texi: Bump @copying's copyright year.
1097
1098 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
1099
1100 PR libgomp/93065
1101 * oacc-init.c (goacc_runtime_deinitialize): New function.
1102
1103 2019-12-28 Jakub Jelinek <jakub@redhat.com>
1104
1105 PR bootstrap/93074
1106 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
1107 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
1108
1109 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
1110 Frederik Harwath <frederik@codesourcery.com>
1111 Thomas Schwinge <tschwinge@codesourcery.com>
1112
1113 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
1114 * libgomp-plugin.h (gomp_device_property_value): New union.
1115 (gomp_device_property_value): New prototype.
1116 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
1117 constant.
1118 (acc_device_property_t): New enum.
1119 (acc_get_property, acc_get_property_string): New prototypes.
1120 * oacc-init.c (acc_get_device_type): Also assert that result
1121 is not `acc_device_current'.
1122 (get_property_any, acc_get_property, acc_get_property_string):
1123 New functions.
1124 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
1125 `acc_property_memory', `acc_property_free_memory',
1126 `acc_property_name', `acc_property_vendor' and
1127 `acc_property_driver' constants. Add `acc_device_property' data
1128 type.
1129 (openacc_internal): Add `acc_get_property' and
1130 `acc_get_property_string' interfaces. Add `acc_get_property_h',
1131 `acc_get_property_string_h', `acc_get_property_l' and
1132 `acc_get_property_string_l'.
1133 * oacc-host.c (host_get_property): New function.
1134 (host_dispatch): Wire it.
1135 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
1136 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
1137 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
1138 * libgomp.texi (OpenACC Runtime Library Routines): Add
1139 `acc_get_property'.
1140 (acc_get_property): New node.
1141 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
1142 function (stub).
1143 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
1144 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
1145 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
1146 calls.
1147 (GOMP_OFFLOAD_get_property): New function.
1148 (struct ptx_device): Add new field "name".
1149 (cuda_driver_version_s): Add new static variable ...
1150 (nvptx_init): ... and init from here.
1151
1152 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
1153 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
1154 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
1155 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
1156 with test helper functions.
1157
1158 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
1159
1160 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
1161
1162 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
1163 variable.
1164
1165 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
1166
1167 * target.c (gomp_map_vars_internal): Restore 'omp declare target
1168 link' handling.
1169
1170 2019-12-19 Julian Brown <julian@codesourcery.com>
1171
1172 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
1173 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
1174 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
1175
1176 2019-12-19 Julian Brown <julian@codesourcery.com>
1177 Cesar Philippidis <cesar@codesourcery.com>
1178
1179 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
1180 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
1181 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
1182 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
1183 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
1184 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
1185 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
1186 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
1187 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
1188 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
1189 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
1190 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
1191 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
1192
1193 2019-12-19 Julian Brown <julian@codesourcery.com>
1194
1195 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
1196 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
1197 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
1198 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
1199 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
1200 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
1201 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
1202 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
1203 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
1204 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
1205 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
1206 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
1207
1208 2019-12-19 Julian Brown <julian@codesourcery.com>
1209
1210 * libgomp.h (struct target_var_desc): Add do_detach flag.
1211 * oacc-init.c (acc_shutdown_1): Free aux block if present.
1212 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
1213 struct components. Tidy up and add some new checks.
1214 (goacc_enter_data_internal): Update call to find_group_last.
1215 (goacc_exit_data_internal): Support detach operations and
1216 GOMP_MAP_STRUCT.
1217 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
1218 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
1219 attach/detach in enter/exit data detection code.
1220 * target.c (gomp_map_vars_existing): Initialise do_detach field of
1221 tgt_var_desc.
1222 (gomp_map_vars_internal): Support attach.
1223 (gomp_unmap_vars_internal): Support detach.
1224
1225 2019-12-19 Julian Brown <julian@codesourcery.com>
1226 Thomas Schwinge <thomas@codesourcery.com>
1227
1228 * libgomp.h (struct splay_tree_aux): Add attach_count field.
1229 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
1230 * libgomp.map (OACC_2.6): New section. Add acc_attach,
1231 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
1232 acc_detach_finalize_async.
1233 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
1234 acc_detach, acc_detach_async, acc_detach_finalize,
1235 acc_detach_finalize_async): New functions.
1236 * openacc.h (acc_attach, acc_attach_async, acc_detach,
1237 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
1238 prototypes.
1239 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
1240 (gomp_remove_var_internal): Free attachment counts if present.
1241 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
1242 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
1243
1244 2019-12-19 Julian Brown <julian@codesourcery.com>
1245 Cesar Philippidis <cesar@codesourcery.com>
1246
1247 * libgomp.h (gomp_map_val): Add prototype.
1248 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
1249 open-coding device-address calculation.
1250 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
1251 non-present case.
1252
1253 2019-12-19 Julian Brown <julian@codesourcery.com>
1254
1255 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
1256 field for virtual_refcount.
1257 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
1258 (gomp_free_memmap): Remove prototype.
1259 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
1260 instead of calling gomp_free_memmap.
1261 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
1262 dynamic_refcount.
1263 (acc_unmap_data): Open code instead of forcing target_mem_desc's
1264 to_free field to NULL then calling gomp_unmap_vars. Handle
1265 REFCOUNT_INFINITY on target blocks.
1266 (goacc_enter_data): Rename to...
1267 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
1268 handling for mapping groups. Use virtual_refcount instead of
1269 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
1270 map_map_vars_async call. Re-do lookup for target pointer return value.
1271 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
1272 renamed goacc_enter_datum function.
1273 (goacc_exit_data): Rename to...
1274 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
1275 (acc_delete, acc_delete_async, acc_delete_finalize,
1276 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
1277 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
1278 goacc_exit_datum function.
1279 (gomp_acc_remove_pointer, find_pointer): Remove functions.
1280 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
1281 New functions.
1282 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
1283 goacc_exit_data_internal helper functions.
1284 * target.c (gomp_map_vars_internal): Handle
1285 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
1286 semantics.
1287 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
1288 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
1289 virtual_refcount field instead of dynamic_refcount.
1290 (gomp_free_memmap): Remove function.
1291 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
1292 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
1293 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
1294
1295 2019-12-19 Julian Brown <julian@codesourcery.com>
1296 Thomas Schwinge <thomas@codesourcery.com>
1297
1298 * libgomp.h (struct splay_tree_aux): New.
1299 (struct splay_tree_key_s): Replace link_key field with aux pointer.
1300 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
1301 to aux struct.
1302 (gomp_remove_var_internal): Free aux block if present.
1303 (gomp_load_image_to_device): Zero-initialise aux field instead of
1304 link_key field.
1305 (omp_target_associate_pointer): Zero-initialise aux field.
1306
1307 2019-12-18 Jakub Jelinek <jakub@redhat.com>
1308
1309 PR middle-end/86416
1310 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
1311 q or none.
1312 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
1313 L or none.
1314
1315 2019-12-19 Julian Brown <julian@codesourcery.com>
1316 Maciej W. Rozycki <macro@codesourcery.com>
1317 Tobias Burnus <tobias@codesourcery.com>
1318 Thomas Schwinge <thomas@codesourcery.com>
1319
1320 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
1321 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
1322 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
1323 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
1324 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
1325 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
1326 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
1327 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
1328 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
1329
1330 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
1331
1332 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
1333 called...
1334 (goacc_insert_pointer): ... from here, "present" case.
1335 (goacc_insert_pointer): Inline function into...
1336 (GOACC_enter_exit_data): ... here, and simplify.
1337
1338 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
1339 called...
1340 (goacc_insert_pointer): ... from here, "not present" case.
1341
1342 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
1343 all users.
1344
1345 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
1346 'goacc_enter_data', 'goacc_exit_data'.
1347
1348 * oacc-mem.c (delete_copyout): Refactor into...
1349 (goacc_exit_data): ... this. Adjust all users.
1350
1351 * oacc-mem.c (present_create_copy): Refactor into...
1352 (goacc_enter_data): ... this. Adjust all users.
1353
1354 * target.c (gomp_unmap_vars_internal): Add a safeguard to
1355 'gomp_remove_var'.
1356
1357 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
1358 like 'GOMP_MAP_FROM'.
1359
1360 PR libgomp/92726
1361 PR libgomp/92970
1362 PR libgomp/92984
1363 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
1364 fails.
1365 (GOACC_enter_exit_data): Simplify accordingly.
1366 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
1367 subsuming...
1368 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
1369 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
1370 file.
1371 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
1372 subsuming...
1373 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
1374 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
1375 file.
1376 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
1377 subsuming...
1378 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
1379
1380 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
1381 'finalize' handling.
1382
1383 PR libgomp/92848
1384 * oacc-mem.c (acc_map_data, present_create_copy)
1385 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
1386 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
1387 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
1388 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
1389 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
1390 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
1391 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
1392 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
1393 Remove "XFAIL"s.
1394
1395 * target.c (gomp_unmap_tgt): Make it 'static'.
1396 * libgomp.h (gomp_unmap_tgt): Remove.
1397
1398 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
1399
1400 PR middle-end/86416
1401 * testsuite/libgomp.c/pr86416-1.c: New.
1402 * testsuite/libgomp.c/pr86416-2.c: New.
1403
1404 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
1405
1406 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
1407 all symbols as public except for the 'use …, only' imported symbol,
1408 which is private.
1409 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
1410 all symbols from module openacc_kinds as PUBLIC
1411 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
1412 fix comment typo.
1413 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
1414
1415 2019-12-13 Julian Brown <julian@codesourcery.com>
1416
1417 PR libgomp/92881
1418
1419 * libgomp.h (gomp_remove_var_async): Add prototype.
1420 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
1421 gomp_remove_var.
1422 * target.c (gomp_unref_tgt): Change return type to bool, indicating
1423 whether target_mem_desc was unmapped.
1424 (gomp_unref_tgt_void): New.
1425 (gomp_remove_var): Reimplement in terms of...
1426 (gomp_remove_var_internal): ...this new helper function.
1427 (gomp_remove_var_async): New, implemented using above helper function.
1428 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
1429 gomp_unref_tgt.
1430
1431 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
1432
1433 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
1434 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
1435 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
1436 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
1437 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
1438 Likewise.
1439 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
1440 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
1441
1442 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
1443
1444 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
1445 as public except for the 'use …, only' imported symbol, which is
1446 private.
1447 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
1448 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
1449 attributes for acc_copyout_finalize and acc_delete_finalize.
1450
1451 2019-12-11 Jakub Jelinek <jakub@redhat.com>
1452
1453 PR fortran/92899
1454 * testsuite/libgomp.fortran/atomic1.f90: New test.
1455
1456 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
1457
1458 PR libgomp/92843
1459 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
1460 reference counting for structured 'REFCOUNT_INFINITY'. Add some
1461 assertions.
1462 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
1463 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
1464 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
1465 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
1466 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
1467
1468 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
1469 * oacc-mem.c: ... here.
1470 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
1471 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
1472 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
1473 Remove.
1474 * libgomp_g.h: Update.
1475
1476 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
1477 * oacc-async.c: ... here.
1478 * oacc-int.h (goacc_wait): Declare.
1479 * libgomp_g.h: Update
1480
1481 PR libgomp/92854
1482 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
1483 New file.
1484 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
1485 Likewise.
1486 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
1487 Likewise.
1488 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
1489 Likewise.
1490 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
1491 Likewise.
1492 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
1493 Likewise.
1494
1495 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
1496 Julian Brown <julian@codesourcery.com>
1497
1498 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
1499 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
1500
1501 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
1502
1503 * omp_lib.h.in: Fix spelling of function declaration
1504 omp_get_cancell(l)ation.
1505 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
1506 Fix typos.
1507 * env.c: Fix comment typos.
1508 * oacc-host.c: Likewise.
1509 * ordered.c: Likewise.
1510 * task.c: Likewise.
1511 * team.c: Likewise.
1512 * config/gcn/task.c: Likewise.
1513 * config/gcn/team.c: Likewise.
1514 * config/nvptx/task.c: Likewise.
1515 * config/nvptx/team.c: Likewise.
1516 * plugin/plugin-gcn.c: Likewise.
1517 * testsuite/libgomp.fortran/jacobi.f: Likewise.
1518 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
1519 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
1520
1521 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
1522
1523 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
1524 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
1525 unnecessary 'dg-additional-options "-w"'.
1526
1527 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
1528 Julian Brown <julian@codesourcery.com>
1529
1530 PR libgomp/92116
1531 PR libgomp/92877
1532
1533 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
1534 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
1535 Adjust all users.
1536 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
1537 Remove XFAIL.
1538 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
1539 Likewise.
1540 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
1541
1542 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
1543
1544 PR libgomp/92503
1545 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
1546 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
1547 file.
1548 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
1549 Likewise.
1550 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
1551 Likewise.
1552 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
1553 Likewise.
1554 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
1555 Likewise.
1556 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
1557 Likewise.
1558 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
1559 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
1560 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
1561 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
1562 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
1563 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
1564 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
1565 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
1566 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
1567 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
1568
1569 PR libgomp/92840
1570 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
1571 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
1572 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
1573 New file.
1574 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
1575 Likewise.
1576 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
1577 Likewise.
1578 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
1579 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
1580
1581 PR libgomp/92511
1582 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
1583 this file...
1584 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
1585 this file...
1586 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
1587 file...
1588 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
1589 file...
1590 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
1591 ... with their content moved into, and extended in this new file.
1592 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
1593 New file.
1594 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
1595 Likewise.
1596 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
1597 Likewise.
1598 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
1599 Likewise.
1600
1601 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
1602
1603 PR libgomp/92854
1604 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
1605
1606 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
1607
1608 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
1609
1610 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
1611
1612 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
1613 unique.
1614 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
1615 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
1616 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
1617 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
1618 Ditto.
1619 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
1620 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
1621
1622 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
1623
1624 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
1625
1626 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
1627 Kwok Cheung Yeung <kcy@codesourcery.com>
1628
1629 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
1630 if input it a NULL pointer.
1631 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
1632 diagnostic of NULL pointer.
1633 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
1634 * testsuite/libgomp.fortran/optional-map.f90: New.
1635 * testsuite/libgomp.fortran/use_device_addr-1.f90
1636 (test_dummy_opt_callee_1_absent): New.
1637 (test_dummy_opt_call_1): Call it.
1638 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
1639 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
1640 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
1641 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
1642 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
1643 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
1644 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
1645 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
1646 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
1647 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
1648 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
1649 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
1650 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
1651 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
1652 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
1653 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
1654
1655 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
1656
1657 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
1658 expect dg-output of 'Error termination.' for GCN.
1659 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
1660 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
1661
1662 2019-12-04 Jakub Jelinek <jakub@redhat.com>
1663
1664 PR fortran/92756
1665 * testsuite/libgomp.fortran/teams1.f90: New test.
1666 * testsuite/libgomp.fortran/teams2.f90: New test.
1667
1668 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
1669
1670 * oacc-init.c (acc_known_device_type): Add function.
1671 (unknown_device_type_error): Add function.
1672 (name_of_acc_device_t): Change to call unknown_device_type_error
1673 on unknown type.
1674 (resolve_device): Use acc_known_device_type.
1675 (acc_init): Fail if acc_device_t argument is not valid.
1676 (acc_shutdown): Likewise.
1677 (acc_get_num_devices): Likewise.
1678 (acc_set_device_type): Likewise.
1679 (acc_get_device_num): Likewise.
1680 (acc_set_device_num): Likewise.
1681 (acc_on_device): Add comment that argument validity is not checked.
1682
1683 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
1684
1685 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
1686 Recognize amdgcn.
1687 (check_effective_target_openacc_amdgcn_accel_present): New proc.
1688 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
1689 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
1690 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1691 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1692
1693 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1694
1695 PR libgomp/91938
1696 * configure.tgt: Avoid IE tls on *-*-musl*.
1697
1698 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
1699
1700 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
1701 adding a common-block test case.
1702
1703 2019-11-29 Jakub Jelinek <jakub@redhat.com>
1704
1705 PR c++/60228
1706 * testsuite/libgomp.c++/udr-20.C: New test.
1707 * testsuite/libgomp.c++/udr-21.C: New test.
1708
1709 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
1710
1711 * testsuite/lib/libgomp.exp
1712 (check_effective_target_offload_target_nvptx): New proc.
1713 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
1714 'dg-skip-if'.
1715 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
1716 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
1717 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
1718
1719 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1720
1721 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
1722 * testsuite/libgomp.c/pr39591-2.c: Likewise.
1723 * testsuite/libgomp.c/pr39591-3.c: Likewise.
1724 * testsuite/libgomp.c/private-1.c: Likewise.
1725 * testsuite/libgomp.c/task-1.c: Likewise.
1726 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
1727
1728 2019-11-20 Julian Brown <julian@codesourcery.com>
1729
1730 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
1731 aq->mutex here.
1732 (queue_push_launch): Lock aq->mutex before calling
1733 wait_for_queue_nonfull.
1734 (queue_push_callback): Likewise.
1735 (queue_push_asyncwait): Likewise.
1736 (queue_push_placeholder): Likewise.
1737
1738 2019-11-20 Julian Brown <julian@codesourcery.com>
1739
1740 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
1741 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
1742 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
1743 return code.
1744
1745 2019-11-20 Julian Brown <julian@codesourcery.com>
1746
1747 PR libgomp/92511
1748
1749 * oacc-mem.c (present_create_copy): Fix device pointer return value in
1750 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
1751 in non-present/create case.
1752 (delete_copyout): Change error condition to fail only on copies outside
1753 of mapped block. Adjust error message accordingly.
1754 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
1755 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
1756 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
1757 message.
1758 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
1759 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
1760 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
1761
1762 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
1763
1764 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
1765 libatomic in build-tree testing.
1766
1767 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
1768
1769 * testsuite/Makefile.in: Regenerate.
1770
1771 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
1772
1773 * testsuite/libgomp.c/target-print-1.c: New file.
1774 * testsuite/libgomp.fortran/target-print-1.f90: New file.
1775 * testsuite/libgomp.oacc-c/print-1.c: New file.
1776 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
1777
1778 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1779 Kwok Cheung Yeung <kcy@codesourcery.com>
1780 Julian Brown <julian@codesourcery.com>
1781 Tom de Vries <tom@codesourcery.com>
1782
1783 * plugin/Makefrag.am: Add amdgcn plugin support.
1784 * plugin/configfrag.ac: Likewise.
1785 * plugin/plugin-gcn.c: New file.
1786 * configure: Regenerate.
1787 * Makefile.in: Regenerate.
1788 * testsuite/Makefile.in: Regenerate.
1789
1790 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1791
1792 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
1793 and use team_malloc variants.
1794 (gomp_gcn_exit_kernel): Use team_free.
1795 * libgomp.h (TEAM_ARENA_SIZE): Define.
1796 (TEAM_ARENA_START): Define.
1797 (TEAM_ARENA_FREE): Define.
1798 (TEAM_ARENA_END): Define.
1799 (team_malloc): New function.
1800 (team_malloc_cleared): New function.
1801 (team_free): New function.
1802 * team.c (gomp_new_team): Initialize and use team_malloc.
1803 (free_team): Use team_free.
1804 (gomp_free_thread): Use team_free.
1805 (gomp_pause_host): Use team_free.
1806 * work.c (gomp_init_work_share): Use team_malloc.
1807 (gomp_fini_work_share): Use team_free.
1808
1809 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1810 Kwok Cheung Yeung <kcy@codesourcery.com>
1811 Julian Brown <julian@codesourcery.com>
1812 Tom de Vries <tom@codesourcery.com>
1813
1814 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
1815 * Makefile.in: Regenerate.
1816 * config.h.in (PLUGIN_GCN): Add new undef.
1817 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
1818 * config/gcn/affinity-fmt.c: New file.
1819 * config/gcn/bar.c: New file.
1820 * config/gcn/bar.h: New file.
1821 * config/gcn/doacross.h: New file.
1822 * config/gcn/icv-device.c: New file.
1823 * config/gcn/oacc-target.c: New file.
1824 * config/gcn/simple-bar.h: New file.
1825 * config/gcn/target.c: New file.
1826 * config/gcn/task.c: New file.
1827 * config/gcn/team.c: New file.
1828 * config/gcn/time.c: New file.
1829 * configure.ac: Add amdgcn*-*-*.
1830 * configure: Regenerate.
1831 * configure.tgt: Add amdgcn*-*-*.
1832 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
1833 * libgomp.h (gcn_thrs): Add amdgcn variant.
1834 (set_gcn_thrs): Likewise.
1835 (gomp_thread): Likewise.
1836 * oacc-int.h (goacc_thread): Likewise.
1837 * oacc-target.c: New file.
1838 * openacc.f90 (acc_device_gcn): New parameter.
1839 * openacc.h (acc_device_t): Add acc_device_gcn.
1840 * team.c (gomp_free_pool_helper): Add amdgcn support.
1841
1842 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1843 Julian Brown <julian@codesourcery.com>
1844
1845 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
1846 parameter.
1847 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
1848 queue constructor.
1849 * oacc-host.c (host_openacc_async_construct): Add device parameter.
1850 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
1851 device parameter.
1852
1853 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1854
1855 * configure.tgt (nvptx*-*-*): Add "accel" directory.
1856 * config/nvptx/libgomp-plugin.c: Move ...
1857 * config/accel/libgomp-plugin.c: ... to here.
1858 * config/nvptx/lock.c: Move ...
1859 * config/accel/lock.c: ... to here.
1860 * config/nvptx/mutex.c: Move ...
1861 * config/accel/mutex.c: ... to here.
1862 * config/nvptx/mutex.h: Move ...
1863 * config/accel/mutex.h: ... to here.
1864 * config/nvptx/oacc-async.c: Move ...
1865 * config/accel/oacc-async.c: ... to here.
1866 * config/nvptx/oacc-cuda.c: Move ...
1867 * config/accel/oacc-cuda.c: ... to here.
1868 * config/nvptx/oacc-host.c: Move ...
1869 * config/accel/oacc-host.c: ... to here.
1870 * config/nvptx/oacc-init.c: Move ...
1871 * config/accel/oacc-init.c: ... to here.
1872 * config/nvptx/oacc-mem.c: Move ...
1873 * config/accel/oacc-mem.c: ... to here.
1874 * config/nvptx/oacc-plugin.c: Move ...
1875 * config/accel/oacc-plugin.c: ... to here.
1876 * config/nvptx/omp-lock.h: Move ...
1877 * config/accel/omp-lock.h: ... to here.
1878 * config/nvptx/openacc.f90: Move ...
1879 * config/accel/openacc.f90: ... to here.
1880 * config/nvptx/pool.h: Move ...
1881 * config/accel/pool.h: ... to here.
1882 * config/nvptx/proc.c: Move ...
1883 * config/accel/proc.c: ... to here.
1884 * config/nvptx/ptrlock.c: Move ...
1885 * config/accel/ptrlock.c: ... to here.
1886 * config/nvptx/ptrlock.h: Move ...
1887 * config/accel/ptrlock.h: ... to here.
1888 * config/nvptx/sem.c: Move ...
1889 * config/accel/sem.c: ... to here.
1890 * config/nvptx/sem.h: Move ...
1891 * config/accel/sem.h: ... to here.
1892 * config/nvptx/thread-stacksize.h: Move ...
1893 * config/accel/thread-stacksize.h: ... to here.
1894
1895 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
1896 Tobias Burnus <tobias@codesourcery.com>
1897 Frederik Harwath <frederik@codesourcery.com>
1898 Thomas Schwinge <thomas@codesourcery.com>
1899
1900 libgomp/
1901 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
1902 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
1903 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
1904
1905 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
1906 Kwok Cheung Yeung <kcy@codesourcery.com>
1907
1908 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
1909 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
1910
1911 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
1912
1913 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
1914
1915 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
1916 run'.
1917 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
1918 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
1919
1920 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
1921
1922 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
1923 Add expected warnings about missing reduction clauses.
1924 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
1925 Likewise.
1926 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
1927 Likewise.
1928 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
1929 Likewise.
1930
1931 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
1932
1933 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
1934 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
1935 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
1936 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
1937 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
1938 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
1939
1940 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
1941
1942 PR fortran/92305
1943 * testsuite/libgomp.fortran/allocatable2.f90: Use
1944 unique numbers with 'stop'.
1945 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
1946 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
1947 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
1948 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
1949 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
1950
1951 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
1952
1953 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
1954 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
1955 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
1956 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
1957 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
1958 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
1959
1960 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
1961
1962 * testsuite/libgomp.fortran/target9.f90: New.
1963
1964 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
1965
1966 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
1967 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
1968 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
1969 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
1970 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
1971 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
1972 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
1973 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
1974 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
1975 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
1976 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
1977 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
1978 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
1979 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
1980 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
1981 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
1982 * testsuite/libgomp.fortran/associate1.f90: Ditto.
1983 * testsuite/libgomp.fortran/associate2.f90: Ditto.
1984 * testsuite/libgomp.fortran/associate3.f90: Ditto.
1985 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
1986 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
1987 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
1988 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
1989 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
1990 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
1991 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
1992 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
1993 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
1994 * testsuite/libgomp.fortran/character1.f90: Ditto.
1995 * testsuite/libgomp.fortran/character2.f90: Ditto.
1996 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
1997 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
1998 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
1999 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
2000 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
2001 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
2002 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
2003 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
2004 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
2005 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
2006 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
2007 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
2008 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
2009 * testsuite/libgomp.fortran/do1.f90: Ditto.
2010 * testsuite/libgomp.fortran/do2.f90: Ditto.
2011 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
2012 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
2013 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
2014 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
2015 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
2016 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
2017 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
2018 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
2019 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
2020 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
2021 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
2022 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
2023 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
2024 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
2025 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
2026 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
2027 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
2028 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
2029 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
2030 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
2031 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
2032 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
2033 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
2034 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
2035 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
2036 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
2037 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
2038 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
2039 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
2040 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
2041 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
2042 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
2043 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
2044 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
2045 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
2046 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
2047 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
2048 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
2049 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
2050 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
2051 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
2052 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
2053 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
2054 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
2055 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
2056 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
2057 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
2058 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
2059 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
2060 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
2061 * testsuite/libgomp.fortran/lib1.f90: Ditto.
2062 * testsuite/libgomp.fortran/lib4.f90: Ditto.
2063 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
2064 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
2065 * testsuite/libgomp.fortran/nested1.f90: Ditto.
2066 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
2067 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
2068 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
2069 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
2070 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
2071 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
2072 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
2073 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
2074 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
2075 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
2076 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
2077 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
2078 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
2079 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
2080 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
2081 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
2082 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
2083 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
2084 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
2085 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
2086 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
2087 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
2088 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
2089 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
2090 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
2091 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
2092 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
2093 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
2094 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
2095 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
2096 * testsuite/libgomp.fortran/pr28390.f: Ditto.
2097 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
2098 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
2099 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
2100 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
2101 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
2102 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
2103 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
2104 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
2105 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
2106 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
2107 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
2108 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
2109 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
2110 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
2111 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
2112 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
2113 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
2114 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
2115 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
2116 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
2117 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
2118 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
2119 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
2120 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
2121 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
2122 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
2123 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
2124 * testsuite/libgomp.fortran/reference1.f90: Ditto.
2125 * testsuite/libgomp.fortran/reference2.f90: Ditto.
2126 * testsuite/libgomp.fortran/retval1.f90: Ditto.
2127 * testsuite/libgomp.fortran/retval2.f90: Ditto.
2128 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
2129 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
2130 * testsuite/libgomp.fortran/simd1.f90: Ditto.
2131 * testsuite/libgomp.fortran/simd2.f90: Ditto.
2132 * testsuite/libgomp.fortran/simd3.f90: Ditto.
2133 * testsuite/libgomp.fortran/simd4.f90: Ditto.
2134 * testsuite/libgomp.fortran/simd5.f90: Ditto.
2135 * testsuite/libgomp.fortran/simd6.f90: Ditto.
2136 * testsuite/libgomp.fortran/simd7.f90: Ditto.
2137 * testsuite/libgomp.fortran/stack.f90: Ditto.
2138 * testsuite/libgomp.fortran/strassen.f90: Ditto.
2139 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
2140 * testsuite/libgomp.fortran/tabs2.f: Ditto.
2141 * testsuite/libgomp.fortran/target1.f90: Ditto.
2142 * testsuite/libgomp.fortran/target2.f90: Ditto.
2143 * testsuite/libgomp.fortran/target3.f90: Ditto.
2144 * testsuite/libgomp.fortran/target4.f90: Ditto.
2145 * testsuite/libgomp.fortran/target5.f90: Ditto.
2146 * testsuite/libgomp.fortran/target6.f90: Ditto.
2147 * testsuite/libgomp.fortran/target7.f90: Ditto.
2148 * testsuite/libgomp.fortran/target8.f90: Ditto.
2149 * testsuite/libgomp.fortran/task1.f90: Ditto.
2150 * testsuite/libgomp.fortran/task2.f90: Ditto.
2151 * testsuite/libgomp.fortran/task3.f90: Ditto.
2152 * testsuite/libgomp.fortran/task4.f90: Ditto.
2153 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
2154 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
2155 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
2156 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
2157 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
2158 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
2159 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
2160 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
2161 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
2162 * testsuite/libgomp.fortran/udr1.f90: Ditto.
2163 * testsuite/libgomp.fortran/udr10.f90: Ditto.
2164 * testsuite/libgomp.fortran/udr11.f90: Ditto.
2165 * testsuite/libgomp.fortran/udr12.f90: Ditto.
2166 * testsuite/libgomp.fortran/udr13.f90: Ditto.
2167 * testsuite/libgomp.fortran/udr14.f90: Ditto.
2168 * testsuite/libgomp.fortran/udr15.f90: Ditto.
2169 * testsuite/libgomp.fortran/udr2.f90: Ditto.
2170 * testsuite/libgomp.fortran/udr3.f90: Ditto.
2171 * testsuite/libgomp.fortran/udr4.f90: Ditto.
2172 * testsuite/libgomp.fortran/udr5.f90: Ditto.
2173 * testsuite/libgomp.fortran/udr6.f90: Ditto.
2174 * testsuite/libgomp.fortran/udr7.f90: Ditto.
2175 * testsuite/libgomp.fortran/udr8.f90: Ditto.
2176 * testsuite/libgomp.fortran/udr9.f90: Ditto.
2177 * testsuite/libgomp.fortran/vla1.f90: Ditto.
2178 * testsuite/libgomp.fortran/vla2.f90: Ditto.
2179 * testsuite/libgomp.fortran/vla3.f90: Ditto.
2180 * testsuite/libgomp.fortran/vla4.f90: Ditto.
2181 * testsuite/libgomp.fortran/vla5.f90: Ditto.
2182 * testsuite/libgomp.fortran/vla6.f90: Ditto.
2183 * testsuite/libgomp.fortran/vla7.f90: Ditto.
2184 * testsuite/libgomp.fortran/vla8.f90: Ditto.
2185 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
2186 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
2187
2188 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
2189
2190 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
2191 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
2192 Ditto; add 'dg-do run' for torture testing.
2193 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
2194 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
2195 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
2196 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
2197 * testsuite/libgomp.fortran/pr28390.f: Ditto.
2198 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
2199 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
2200 * testsuite/libgomp.fortran/task2.f90: Ditto.
2201 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
2202 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
2203 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
2204 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
2205 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
2206 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
2207
2208 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
2209
2210 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
2211 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
2212 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
2213 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
2214 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
2215 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
2216 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
2217 Use 'stop' not abort().
2218 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
2219 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
2220 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
2221 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
2222 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
2223 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
2224 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
2225 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
2226 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
2227 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
2228 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
2229 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
2230 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
2231 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
2232 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
2233 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
2234 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
2235 Ditto.
2236 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
2237 Ditto.
2238 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
2239 Ditto.
2240 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
2241 Ditto.
2242 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
2243 Ditto.
2244 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
2245 Ditto.
2246 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
2247 Ditto.
2248 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
2249 Ditto.
2250 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
2251 Ditto.
2252 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
2253 Ditto.
2254 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
2255 Ditto.
2256 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
2257 Ditto.
2258 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
2259 Ditto.
2260 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
2261 Ditto.
2262 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
2263 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
2264 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
2265 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
2266 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
2267 Likewise and also add 'dg-do run'.
2268 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
2269 Ditto.
2270
2271 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
2272 Tobias Burnus <tobias@codesourcery.com>
2273
2274 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
2275 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
2276 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
2277
2278 2019-10-14 Jakub Jelinek <jakub@redhat.com>
2279
2280 PR libgomp/92081
2281 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
2282 than 0.
2283
2284 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
2285
2286 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
2287 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
2288
2289 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
2290
2291 PR middle-end/92036
2292 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
2293 file.
2294
2295 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
2296
2297 PR testsuite/91884
2298 * testsuite/libgomp.fortran/fortran.exp: Conditionally
2299 add -lquadmath.
2300 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
2301
2302 2019-10-09 Jakub Jelinek <jakub@redhat.com>
2303
2304 PR libgomp/92028
2305 * target.c (gomp_map_vars_internal): Readd the previous
2306 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
2307 though do that just in the !not_found_cnt case.
2308
2309 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
2310
2311 * gfortran.dg/gomp/target-simd.f90: New.
2312
2313 2019-10-02 Julian Brown <julian@codesourcery.com>
2314 Cesar Philippidis <cesar@codesourcery.com>
2315
2316 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
2317 * target.c (FIELD_TGT_EMPTY): Define.
2318 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
2319 as switch instead of list of ifs.
2320 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
2321
2322 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
2323
2324 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
2325 include. Replace alloca () with __builtin_alloca ().
2326 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
2327
2328 2019-10-01 Jakub Jelinek <jakub@redhat.com>
2329
2330 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
2331 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
2332 * oacc-parallel.c: Don't include "libgomp_g.h".
2333 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
2334 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
2335 * aclocal.m4: Regenerated.
2336 * config.h.in: Regenerated.
2337 * configure: Regenerated.
2338 * Makefile.in: Regenerated.
2339
2340 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
2341
2342 * libgomp_g.h: Include stdint.h instead of gstdint.h.
2343
2344 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
2345
2346 * configure: Regenerate.
2347
2348 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
2349
2350 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
2351 string is initialized.
2352
2353 2019-09-06 Florian Weimer <fweimer@redhat.com>
2354
2355 * configure: Regenerate.
2356
2357 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
2358
2359 PR other/79543
2360 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
2361 scanning to conform to the GNU Coding Standards.
2362 * configure: Regenerate.
2363
2364 2019-08-28 Jakub Jelinek <jakub@redhat.com>
2365
2366 PR libgomp/91530
2367 * testsuite/libgomp.c/scan-21.c: New test.
2368 * testsuite/libgomp.c/scan-22.c: New test.
2369
2370 2019-08-27 Jakub Jelinek <jakub@redhat.com>
2371
2372 PR libgomp/91530
2373 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
2374 targets.
2375 * testsuite/libgomp.c/scan-12.c: Likewise.
2376 * testsuite/libgomp.c/scan-13.c: Likewise.
2377 * testsuite/libgomp.c/scan-14.c: Likewise.
2378 * testsuite/libgomp.c/scan-15.c: Likewise.
2379 * testsuite/libgomp.c/scan-16.c: Likewise.
2380 * testsuite/libgomp.c/scan-17.c: Likewise.
2381 * testsuite/libgomp.c/scan-18.c: Likewise.
2382 * testsuite/libgomp.c/scan-19.c: Likewise.
2383 * testsuite/libgomp.c/scan-20.c: Likewise.
2384 * testsuite/libgomp.c++/scan-9.C: Likewise.
2385 * testsuite/libgomp.c++/scan-10.C: Likewise.
2386 * testsuite/libgomp.c++/scan-11.C: Likewise.
2387 * testsuite/libgomp.c++/scan-12.C: Likewise.
2388 * testsuite/libgomp.c++/scan-14.C: Likewise.
2389 * testsuite/libgomp.c++/scan-15.C: Likewise.
2390 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
2391 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
2392 * testsuite/libgomp.c++/scan-16.C: Likewise.
2393
2394 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
2395
2396 PR fortran/91473
2397 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
2398 -std=legacy so invalid code in the test case is accepted.
2399
2400 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
2401
2402 PR fortran/91422
2403 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
2404 dimension.
2405
2406 2019-08-08 Jakub Jelinek <jakub@redhat.com>
2407
2408 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
2409 perform the lookup in the first loop only if !not_found_cnt, otherwise
2410 perform lookups for it in the second loop guarded with
2411 if (not_found_cnt || has_firstprivate).
2412 * testsuite/libgomp.c/target-37.c: New test.
2413 * testsuite/libgomp.c++/target-22.C: New test.
2414
2415 2019-08-07 Jakub Jelinek <jakub@redhat.com>
2416
2417 * testsuite/libgomp.c/target-18.c (struct S): New type.
2418 (foo): Use use_device_addr clause instead of use_device_ptr clause
2419 where required by OpenMP 5.0, add further tests for both use_device_ptr
2420 and use_device_addr clauses.
2421 * testsuite/libgomp.c++/target-9.C (struct S): New type.
2422 (foo): Use use_device_addr clause instead of use_device_ptr clause
2423 where required by OpenMP 5.0, add further tests for both use_device_ptr
2424 and use_device_addr clauses. Add t and u arguments.
2425 (main): Adjust caller.
2426
2427 2019-08-06 Jakub Jelinek <jakub@redhat.com>
2428
2429 * testsuite/libgomp.c++/loop-13.C: New test.
2430 * testsuite/libgomp.c++/loop-14.C: New test.
2431 * testsuite/libgomp.c++/loop-15.C: New test.
2432
2433 2019-07-31 Jakub Jelinek <jakub@redhat.com>
2434
2435 PR middle-end/91301
2436 * testsuite/libgomp.c++/for-27.C: New test.
2437
2438 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
2439
2440 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
2441 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
2442
2443 2019-07-20 Jakub Jelinek <jakub@redhat.com>
2444
2445 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
2446
2447 2019-07-08 Jakub Jelinek <jakub@redhat.com>
2448
2449 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
2450 * testsuite/libgomp.c++/scan-16.C: Likewise.
2451
2452 2019-07-06 Jakub Jelinek <jakub@redhat.com>
2453
2454 * testsuite/libgomp.c/scan-19.c: New test.
2455 * testsuite/libgomp.c/scan-20.c: New test.
2456
2457 * testsuite/libgomp.c/scan-11.c: New test.
2458 * testsuite/libgomp.c/scan-12.c: New test.
2459 * testsuite/libgomp.c/scan-13.c: New test.
2460 * testsuite/libgomp.c/scan-14.c: New test.
2461 * testsuite/libgomp.c/scan-15.c: New test.
2462 * testsuite/libgomp.c/scan-16.c: New test.
2463 * testsuite/libgomp.c/scan-17.c: New test.
2464 * testsuite/libgomp.c/scan-18.c: New test.
2465 * testsuite/libgomp.c++/scan-9.C: New test.
2466 * testsuite/libgomp.c++/scan-10.C: New test.
2467 * testsuite/libgomp.c++/scan-11.C: New test.
2468 * testsuite/libgomp.c++/scan-12.C: New test.
2469 * testsuite/libgomp.c++/scan-13.C: New test.
2470 * testsuite/libgomp.c++/scan-14.C: New test.
2471 * testsuite/libgomp.c++/scan-15.C: New test.
2472 * testsuite/libgomp.c++/scan-16.C: New test.
2473
2474 2019-07-04 Jakub Jelinek <jakub@redhat.com>
2475
2476 * testsuite/libgomp.c/scan-9.c: New test.
2477 * testsuite/libgomp.c/scan-10.c: New test.
2478
2479 2019-07-03 Jakub Jelinek <jakub@redhat.com>
2480
2481 * testsuite/libgomp.c++/scan-1.C: New test.
2482 * testsuite/libgomp.c++/scan-2.C: New test.
2483 * testsuite/libgomp.c++/scan-3.C: New test.
2484 * testsuite/libgomp.c++/scan-4.C: New test.
2485 * testsuite/libgomp.c++/scan-5.C: New test.
2486 * testsuite/libgomp.c++/scan-6.C: New test.
2487 * testsuite/libgomp.c++/scan-7.C: New test.
2488 * testsuite/libgomp.c++/scan-8.C: New test.
2489 * testsuite/libgomp.c/scan-1.c: New test.
2490 * testsuite/libgomp.c/scan-2.c: New test.
2491 * testsuite/libgomp.c/scan-3.c: New test.
2492 * testsuite/libgomp.c/scan-4.c: New test.
2493 * testsuite/libgomp.c/scan-5.c: New test.
2494 * testsuite/libgomp.c/scan-6.c: New test.
2495 * testsuite/libgomp.c/scan-7.c: New test.
2496 * testsuite/libgomp.c/scan-8.c: New test.
2497
2498 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
2499
2500 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
2501 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
2502 Likewise.
2503
2504 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
2505 check.
2506
2507 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
2508
2509 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
2510 file.
2511
2512 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
2513
2514 PR fortran/90743
2515 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
2516 case.
2517 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
2518 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
2519 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
2520 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
2521
2522 PR testsuite/90861
2523 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
2524
2525 PR middle-end/90862
2526 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
2527
2528 2019-06-16 Tom de Vries <tdevries@suse.de>
2529
2530 PR tree-optimization/89376
2531 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
2532
2533 2019-06-15 Tom de Vries <tdevries@suse.de>
2534
2535 PR tree-optimization/89713
2536 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
2537 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
2538
2539 2019-06-15 Jakub Jelinek <jakub@redhat.com>
2540
2541 PR middle-end/90779
2542 * testsuite/libgomp.c/pr90779.c: New test.
2543 * testsuite/libgomp.fortran/pr90779.f90: New test.
2544
2545 2019-06-15 Tom de Vries <tdevries@suse.de>
2546
2547 PR tree-optimization/90009
2548 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
2549
2550 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
2551
2552 PR tree-optimization/89713
2553 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
2554
2555 2019-06-11 Jakub Jelinek <jakub@redhat.com>
2556
2557 PR target/90811
2558 * testsuite/libgomp.c/pr90811.c: New test.
2559
2560 2019-06-05 Jakub Jelinek <jakub@redhat.com>
2561
2562 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
2563 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
2564
2565 2019-06-04 Jakub Jelinek <jakub@redhat.com>
2566
2567 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
2568 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
2569 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
2570 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
2571
2572 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2573
2574 * configure.ac: Call AX_COUNT_CPUS.
2575 Substitute CPU_COUNT.
2576 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
2577 count fallback.
2578 * aclocal.m4: Regenerate.
2579 * configure: Regenerate.
2580 * Makefile.in, testsuite/Makefile.in: Regenerate.
2581
2582 2019-05-29 Jakub Jelinek <jakub@redhat.com>
2583
2584 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
2585 to ...
2586 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
2587 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
2588 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
2589
2590 2019-05-27 Jakub Jelinek <jakub@redhat.com>
2591
2592 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
2593
2594 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
2595
2596 PR libgomp/90641
2597 * work.c (gomp_init_work_share): Instead of aligning final ordered
2598 value to multiples of long long alignment, align to that the
2599 first part (ordered team ids) and if inline_ordered_team_ids
2600 is not on a long long alignment boundary within the structure,
2601 use __alignof__ (long long) - 1 pad size always.
2602 * loop.c (GOMP_loop_start): Fix *mem computation if
2603 inline_ordered_team_ids is not aligned on long long alignment boundary
2604 within the structure.
2605 * loop-ull.c (GOMP_loop_ull_start): Likewise.
2606 * sections.c (GOMP_sections2_start): Likewise.
2607
2608 2019-05-24 Jakub Jelinek <jakub@redhat.com>
2609
2610 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
2611 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
2612
2613 PR libgomp/90585
2614 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
2615 HAVE_INTTYPES_H is defined.
2616 (print_uint64_t): New typedef.
2617 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
2618 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
2619 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
2620 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
2621 before casting to void *.
2622 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
2623 * oacc-mem.c: Don't include config.h nor stdint.h.
2624 * target.c: Don't include config.h.
2625 * oacc-cuda.c: Likewise.
2626 * oacc-host.c: Don't include stdint.h.
2627
2628 2019-05-20 Jakub Jelinek <jakub@redhat.com>
2629
2630 PR libgomp/90527
2631 * alloc.c (_GNU_SOURCE): Define.
2632
2633 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
2634
2635 * acc_prof.h: New file.
2636 * oacc-profiling.c: Likewise.
2637 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
2638 Add these, respectively.
2639 * Makefile.in: Regenerate.
2640 * env.c (initialize_env): Call goacc_profiling_initialize.
2641 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
2642 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
2643 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
2644 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
2645 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
2646 acc_prof_register, acc_prof_unregister, and acc_register_library.
2647 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
2648 GOMP_PLUGIN_goacc_thread.
2649 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
2650 prof_callbacks_enabled members.
2651 (goacc_prof_enabled, goacc_profiling_initialize)
2652 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
2653 (goacc_profiling_dispatch): Declare.
2654 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
2655 (GOACC_PROFILING_SETUP_P): Define.
2656 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
2657 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
2658 OpenACC Profiling Interface.
2659 * oacc-cuda.c (acc_get_current_cuda_device)
2660 (acc_get_current_cuda_context, acc_get_cuda_stream)
2661 (acc_set_cuda_stream): Likewise.
2662 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
2663 (acc_init, acc_set_device_type, acc_get_device_type)
2664 (acc_get_device_num, goacc_lazy_initialize): Likewise.
2665 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
2666 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
2667 (acc_unmap_data, present_create_copy, delete_copyout)
2668 (update_dev_host): Likewise.
2669 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
2670 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
2671 Likewise.
2672 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
2673 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
2674 Likewise.
2675 * libgomp.texi: Update.
2676 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
2677 file.
2678 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
2679 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
2680 Likewise.
2681 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
2682 Likewise.
2683 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
2684 Likewise.
2685 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
2686 Likewise.
2687
2688 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
2689
2690 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
2691 (struct goacc_asyncqueue_list): Likewise.
2692 (goacc_aq): Likewise.
2693 (goacc_aq_list): Likewise.
2694 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
2695 (GOMP_OFFLOAD_openacc_async_test): Remove.
2696 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
2697 (GOMP_OFFLOAD_openacc_async_wait): Remove.
2698 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
2699 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
2700 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
2701 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
2702 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
2703 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
2704 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
2705 (GOMP_OFFLOAD_openacc_async_exec): Declare.
2706 (GOMP_OFFLOAD_openacc_async_construct): Declare.
2707 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
2708 (GOMP_OFFLOAD_openacc_async_test): Declare.
2709 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
2710 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
2711 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
2712 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
2713 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
2714
2715 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
2716 (gomp_acc_insert_pointer): Adjust declaration.
2717 (gomp_copy_host2dev): New declaration.
2718 (gomp_copy_dev2host): Likewise.
2719 (gomp_map_vars_async): Likewise.
2720 (gomp_unmap_tgt): Likewise.
2721 (gomp_unmap_vars_async): Likewise.
2722 (gomp_fini_device): Likewise.
2723
2724 * oacc-async.c (get_goacc_thread): New function.
2725 (get_goacc_thread_device): New function.
2726 (lookup_goacc_asyncqueue): New function.
2727 (get_goacc_asyncqueue): New function.
2728 (acc_async_test): Adjust code to use new async design.
2729 (acc_async_test_all): Likewise.
2730 (acc_wait): Likewise.
2731 (acc_wait_async): Likewise.
2732 (acc_wait_all): Likewise.
2733 (acc_wait_all_async): Likewise.
2734 (goacc_async_free): New function.
2735 (goacc_init_asyncqueues): Likewise.
2736 (goacc_fini_asyncqueues): Likewise.
2737 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
2738 design.
2739 (acc_set_cuda_stream): Likewise.
2740 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
2741 (host_openacc_register_async_cleanup): Remove.
2742 (host_openacc_async_exec): New function.
2743 (host_openacc_async_test): Adjust parameters.
2744 (host_openacc_async_test_all): Remove.
2745 (host_openacc_async_wait): Remove.
2746 (host_openacc_async_wait_async): Remove.
2747 (host_openacc_async_wait_all): Remove.
2748 (host_openacc_async_wait_all_async): Remove.
2749 (host_openacc_async_set_async): Remove.
2750 (host_openacc_async_synchronize): New function.
2751 (host_openacc_async_serialize): New function.
2752 (host_openacc_async_host2dev): New function.
2753 (host_openacc_async_dev2host): New function.
2754 (host_openacc_async_queue_callback): New function.
2755 (host_openacc_async_construct): New function.
2756 (host_openacc_async_destruct): New function.
2757 (struct gomp_device_descr host_dispatch): Remove initialization of old
2758 interface, add initialization of new async sub-struct.
2759 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
2760 (goacc_attach_host_thread_to_device): Remove old async code usage.
2761 * oacc-int.h (goacc_init_asyncqueues): New declaration.
2762 (goacc_fini_asyncqueues): Likewise.
2763 (goacc_async_copyout_unmap_vars): Likewise.
2764 (goacc_async_free): Likewise.
2765 (get_goacc_asyncqueue): Likewise.
2766 (lookup_goacc_asyncqueue): Likewise.
2767 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
2768 design.
2769 (present_create_copy): Adjust code to use new async design.
2770 (delete_copyout): Likewise.
2771 (update_dev_host): Likewise.
2772 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
2773 async design.
2774 (gomp_acc_remove_pointer): Adjust code to use new async design.
2775 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
2776 design.
2777 (GOACC_enter_exit_data): Likewise.
2778 (goacc_wait): Likewise.
2779 (GOACC_update): Likewise.
2780 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
2781 when called, warn as obsolete in comment.
2782 * target.c (goacc_device_copy_async): New function.
2783 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
2784 add goacc_device_copy_async case.
2785 (gomp_copy_dev2host): Likewise.
2786 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
2787 (gomp_map_pointer): Likewise.
2788 (gomp_map_fields_existing): Likewise.
2789 (gomp_map_vars_internal): New always_inline function, renamed from
2790 gomp_map_vars.
2791 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
2792 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
2793 passing goacc_asyncqueue argument.
2794 (gomp_unmap_tgt): Remove static, add attribute_hidden.
2795 (gomp_unref_tgt): New function.
2796 (gomp_unmap_vars_internal): New always_inline function, renamed from
2797 gomp_unmap_vars.
2798 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
2799 (gomp_unmap_vars_async): Implement by calling
2800 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
2801 (gomp_fini_device): New function.
2802 (gomp_exit_data): Adjust gomp_copy_dev2host call.
2803 (gomp_load_plugin_for_device): Remove old interface, adjust to load
2804 new async interface.
2805 (gomp_target_fini): Adjust code to call gomp_fini_device.
2806
2807 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
2808 (struct ptx_stream): Remove.
2809 (struct nvptx_thread): Remove current_stream field.
2810 (cuda_map_create): Remove.
2811 (cuda_map_destroy): Remove.
2812 (map_init): Remove.
2813 (map_fini): Remove.
2814 (map_pop): Remove.
2815 (map_push): Remove.
2816 (struct goacc_asyncqueue): Define.
2817 (struct nvptx_callback): Define.
2818 (struct ptx_free_block): Define.
2819 (struct ptx_device): Remove null_stream, active_streams, async_streams,
2820 stream_lock, and next fields.
2821 (enum ptx_event_type): Remove.
2822 (struct ptx_event): Remove.
2823 (ptx_event_lock): Remove.
2824 (ptx_events): Remove.
2825 (init_streams_for_device): Remove.
2826 (fini_streams_for_device): Remove.
2827 (select_stream_for_async): Remove.
2828 (nvptx_init): Remove ptx_events and ptx_event_lock references.
2829 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
2830 case.
2831 (nvptx_open_device): Add free_blocks initialization, remove
2832 init_streams_for_device call.
2833 (nvptx_close_device): Remove fini_streams_for_device call, add
2834 free_blocks destruct code.
2835 (event_gc): Remove.
2836 (event_add): Remove.
2837 (nvptx_exec): Adjust parameters and code.
2838 (nvptx_free): Likewise.
2839 (nvptx_host2dev): Remove.
2840 (nvptx_dev2host): Remove.
2841 (nvptx_set_async): Remove.
2842 (nvptx_async_test): Remove.
2843 (nvptx_async_test_all): Remove.
2844 (nvptx_wait): Remove.
2845 (nvptx_wait_async): Remove.
2846 (nvptx_wait_all): Remove.
2847 (nvptx_wait_all_async): Remove.
2848 (nvptx_get_cuda_stream): Remove.
2849 (nvptx_set_cuda_stream): Remove.
2850 (GOMP_OFFLOAD_alloc): Adjust code.
2851 (GOMP_OFFLOAD_free): Likewise.
2852 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
2853 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
2854 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
2855 (GOMP_OFFLOAD_openacc_async_wait): Remove.
2856 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
2857 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
2858 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
2859 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
2860 (cuda_free_argmem): New function.
2861 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
2862 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
2863 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
2864 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
2865 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
2866 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
2867 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
2868 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
2869 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
2870 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
2871 (cuda_callback_wrapper): New function.
2872 (cuda_memcpy_sanity_check): New function.
2873 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
2874 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
2875 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
2876 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
2877
2878 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
2879
2880 PR target/87835
2881 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
2882
2883 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
2884
2885 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
2886
2887 2019-03-27 Kevin Buettner <kevinb@redhat.com>
2888
2889 * team.c (gomp_team_start): Initialize pool->threads[0].
2890
2891 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
2892
2893 * testsuite/libgomp.oacc-c++/c++.exp: Specify
2894 "-foffload=$offload_target".
2895 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2896 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2897 * testsuite/lib/libgomp.exp
2898 (check_effective_target_openacc_nvidia_accel_configured): Remove,
2899 as (conceptually) merged into
2900 check_effective_target_openacc_nvidia_accel_selected. Adjust all
2901 users.
2902
2903 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
2904 * testsuite/libgomp-test-support.exp.in: Adjust.
2905 * testsuite/lib/libgomp.exp: Likewise. Don't populate
2906 openacc_device_types_s.
2907 (offload_target_to_openacc_device_type): New proc.
2908 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
2909 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2910 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2911 * Makefile.in: Regenerate.
2912 * configure: Likewise.
2913 * testsuite/Makefile.in: Likewise.
2914
2915 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
2916 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
2917 instead of OFFLOAD_TARGETS.
2918 * target.c (gomp_target_init): Adjust.
2919 * testsuite/libgomp-test-support.exp.in: Likewise.
2920 * testsuite/lib/libgomp.exp: Likewise. Populate
2921 openacc_device_types_s instead of offload_targets_s_openacc.
2922 (check_effective_target_openacc_nvidia_accel_selected)
2923 (check_effective_target_openacc_host_selected): Adjust.
2924 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
2925 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2926 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2927 * Makefile.in: Regenerate.
2928 * config.h.in: Likewise.
2929 * configure: Likewise.
2930 * testsuite/Makefile.in: Likewise.
2931
2932 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
2933 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
2934 "offloading: supported, but hardware not accessible".
2935 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2936 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2937
2938 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
2939
2940 PR c/87924
2941 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
2942 goacc_wait().
2943 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
2944 and related adjustment.
2945
2946 2019-01-30 Jakub Jelinek <jakub@redhat.com>
2947
2948 PR c++/88988
2949 * testsuite/libgomp.c++/pr88988.C: New test.
2950
2951 2019-01-28 Jakub Jelinek <jakub@redhat.com>
2952
2953 PR middle-end/89002
2954 * testsuite/libgomp.c/pr89002.c: New test.
2955
2956 2019-01-28 Richard Biener <rguenther@suse.de>
2957
2958 PR testsuite/89064
2959 PR tree-optimization/86865
2960 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
2961
2962 2019-01-24 Tom de Vries <tdevries@suse.de>
2963
2964 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
2965 once instantiated_devices drops to 0.
2966
2967 2019-01-23 Tom de Vries <tdevries@suse.de>
2968
2969 PR target/PR88946
2970 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
2971 cuMemFree.
2972 (nvptx_exec): Don't call map_push if mapnum == 0.
2973 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
2974
2975 2019-01-23 Tom de Vries <tdevries@suse.de>
2976
2977 PR target/88941
2978 PR target/88939
2979 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
2980 (map_fini): Remove "assert (!s->map->active)".
2981 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
2982
2983 2019-01-23 Tom de Vries <tdevries@suse.de>
2984
2985 PR target/87835
2986 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
2987 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
2988
2989 2019-01-15 Tom de Vries <tdevries@suse.de>
2990
2991 PR target/80547
2992 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
2993 New test.
2994
2995 2019-01-12 Tom de Vries <tdevries@suse.de>
2996
2997 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
2998 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
2999 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
3000 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
3001
3002 2019-01-12 Tom de Vries <tdevries@suse.de>
3003
3004 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
3005
3006 2019-01-12 Tom de Vries <tdevries@suse.de>
3007
3008 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
3009 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
3010 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
3011
3012 2019-01-12 Tom de Vries <tdevries@suse.de>
3013
3014 PR target/85486
3015 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
3016 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
3017
3018 2019-01-12 Tom de Vries <tdevries@suse.de>
3019
3020 PR target/85381
3021 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
3022 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
3023
3024 2019-01-12 Tom de Vries <tdevries@suse.de>
3025
3026 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
3027 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
3028 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
3029
3030 2019-01-12 Tom de Vries <tdevries@suse.de>
3031
3032 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
3033 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
3034 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
3035
3036 2019-01-12 Tom de Vries <tdevries@suse.de>
3037
3038 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
3039 resources diagnostic.
3040
3041 2019-01-12 Tom de Vries <tdevries@suse.de>
3042
3043 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
3044 vector length to be 128.
3045 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
3046 length 2097152 to be reduced to 1024 instead of 32.
3047
3048 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
3049 James Norris <jnorris@codesourcery.com>
3050
3051 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
3052 Library Routines", and "Environment Variables".
3053
3054 2019-01-11 Tom de Vries <tdevries@suse.de>
3055
3056 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
3057 num_workers 16.
3058
3059 2019-01-11 Tom de Vries <tdevries@suse.de>
3060
3061 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
3062 -foffload=-w.
3063 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
3064 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
3065 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
3066 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
3067
3068 2019-01-11 Tom de Vries <tdevries@suse.de>
3069
3070 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
3071 test.
3072
3073 2019-01-10 Nathan Sidwell <nathan@acm.org>
3074 Julian Brown <julian@codesourcery.com>
3075
3076 PR lto/71959
3077 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
3078 * testsuite/libgomp.oacc-c++/pr71959.C: New.
3079
3080 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3081
3082 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
3083 and paste code.
3084
3085 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3086
3087 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
3088 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
3089 write.
3090
3091 2019-01-09 Tom de Vries <tdevries@suse.de>
3092
3093 PR target/88756
3094 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
3095 #define instead of "const int".
3096 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
3097 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
3098 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
3099 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
3100
3101 2019-01-09 Tom de Vries <tdevries@suse.de>
3102
3103 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
3104 one worker.
3105
3106 2019-01-07 Tom de Vries <tdevries@suse.de>
3107
3108 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
3109 GOMP_OPENACC_DIM argument.
3110
3111 2019-01-03 Tom de Vries <tdevries@suse.de>
3112
3113 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
3114 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
3115
3116 2019-01-01 Jakub Jelinek <jakub@redhat.com>
3117
3118 Update copyright years.
3119
3120 2019-01-01 Jakub Jelinek <jakub@redhat.com>
3121
3122 * libgomp.texi: Bump @copying's copyright year.
3123
3124 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
3125
3126 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
3127 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
3128 (GOACC_declare): Redefine the "device" argument to "flags".
3129
3130 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
3131 Cesar Philippidis <cesar@codesourcery.com>
3132
3133 * target.c (struct gomp_coalesce_chunk): New structure.
3134 (struct gomp_coalesce_buf): Update the chunks member to use that
3135 type. Adjust all users.
3136
3137 2018-12-19 Tom de Vries <tdevries@suse.de>
3138
3139 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
3140 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
3141 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
3142
3143 2018-12-19 Tom de Vries <tdevries@suse.de>
3144
3145 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
3146 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
3147 gcc/testsuite/gcc.dg/goacc.
3148 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
3149
3150 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
3151 Chung-Lin Tang <cltang@codesourcery.com>
3152
3153 * oacc-mem.c (acc_present_or_create): Remove definition and change
3154 to alias of acc_create.
3155 (acc_present_or_copyin): Remove definition and change to alias of
3156 acc_copyin.
3157 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
3158 of acc_present_or_create.
3159 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
3160 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
3161 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
3162 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
3163 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
3164 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
3165 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
3166 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
3167 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
3168 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
3169 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
3170 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
3171 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
3172 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
3173 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
3174 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
3175
3176 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
3177
3178 PR libgomp/88495
3179 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
3180 "identical parameters".
3181 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
3182 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
3183
3184 PR libgomp/88484
3185 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
3186 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
3187
3188 PR libgomp/88407
3189 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
3190 (nvptx_wait_async): Unseen async-argument is a no-op.
3191 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
3192 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
3193 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
3194 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
3195 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
3196 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
3197 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
3198 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
3199 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
3200
3201 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
3202 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
3203
3204 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
3205
3206 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
3207 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
3208 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
3209
3210 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
3211
3212 PR libgomp/88370
3213 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
3214 (acc_set_cuda_stream): Clarify.
3215 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
3216 "async_valid_p".
3217 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
3218 acc_async_sync".
3219 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
3220 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
3221 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
3222 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
3223
3224 2018-12-14 Tom de Vries <tdevries@suse.de>
3225
3226 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
3227 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
3228 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
3229 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
3230 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
3231
3232 2018-12-13 Tom de Vries <tdevries@suse.de>
3233
3234 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
3235 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
3236 * fortran.c (omp_display_affinity_): ... here.
3237 * libgomp.h (gomp_print_string): Declare.
3238 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
3239 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
3240 write.
3241
3242 2018-12-13 Jakub Jelinek <jakub@redhat.com>
3243
3244 PR libgomp/88460
3245 * testsuite/libgomp.c++/for-24.C (results): Include it in
3246 omp declare target region.
3247 (main): Use map (always, tofrom: results) instead of
3248 map (tofrom: results).
3249
3250 2018-12-12 Jakub Jelinek <jakub@redhat.com>
3251
3252 PR fortran/88463
3253 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
3254 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
3255
3256 * testsuite/libgomp.c-c++-common/for-16.c: New test.
3257
3258 2018-12-12 Andreas Schwab <schwab@suse.de>
3259
3260 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
3261 clobbered.
3262
3263 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
3264
3265 PR fortran/88411
3266 * testsuite/libgomp.fortran/async_io_8.f90: New test.
3267
3268 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
3269 Jakub Jelinek <jakub@redhat.com>
3270
3271 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
3272 devicep->host2dev_func.
3273
3274 2018-12-08 Jakub Jelinek <jakub@redhat.com>
3275
3276 PR libgomp/87995
3277 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
3278 tls_runtime effective target.
3279 (t): New threadprivate variable.
3280 (main): Set t in threads which execute iterations of the worksharing
3281 loop. Propagate that to the task after the loop and don't abort
3282 if the current taskgroup hasn't been cancelled.
3283
3284 2018-12-02 Jakub Jelinek <jakub@redhat.com>
3285
3286 * testsuite/libgomp.c/task-reduction-3.c: New test.
3287
3288 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
3289
3290 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
3291
3292 PR libgomp/88288
3293 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
3294 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
3295
3296 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
3297
3298 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
3299
3300 2018-10-19 Richard Biener <rguenther@suse.de>
3301
3302 PR tree-optimization/88182
3303 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
3304
3305 2018-11-26 Jakub Jelinek <jakub@redhat.com>
3306
3307 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
3308 (RUNTEST): Don't define.
3309 (RUNTESTDEFAULTFLAGS): Add.
3310 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
3311 (distclean-am): Depend on distclean-DEJAGNU.
3312 (check-am): If -j% option is present in MFLAGS and if
3313 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
3314 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
3315 * testsuite/Makefile.in: Regenerated.
3316
3317 2018-11-26 Richard Biener <rguenther@suse.de>
3318
3319 PR tree-optimization/88182
3320 * testsuite/libgomp.c++/pr88182.C: New testcase.
3321
3322 2018-11-20 Jakub Jelinek <jakub@redhat.com>
3323
3324 PR bootstrap/88106
3325 * config/mingw32/affinity-fmt.c: New file.
3326
3327 2018-11-09 Jakub Jelinek <jakub@redhat.com>
3328
3329 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
3330 (gomp_display_affinity): Use __builtin_choose_expr to handle
3331 properly handle argument having integral, or pointer or some other
3332 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
3333 with uint64_t type instead of %llx and unsigned long long.
3334
3335 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
3336 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
3337
3338 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3339
3340 * affinity.c: Include <string.h>, <stdio.h>.
3341 (gomp_display_affinity_place): Remove cpusetp.
3342 * teams.c: Include <limits.h>.
3343
3344 2018-11-08 Jakub Jelinek <jakub@redhat.com>
3345
3346 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
3347 in_reduction clause for s[0].
3348
3349 * affinity.c (gomp_display_affinity_place): New function.
3350 * affinity-fmt.c: New file.
3351 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
3352 * config/linux/affinity.c (gomp_display_affinity_place): New function.
3353 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
3354 Move these functions to ...
3355 * config/nvptx/teams.c: ... here. New file.
3356 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
3357 New functions.
3358 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
3359 functions.
3360 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
3361 and _aligned_malloc.
3362 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
3363 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
3364 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
3365 gomp_affinity_format_len): New variables.
3366 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
3367 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
3368 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
3369 modifiers. Display (non-default) chunk sizes. Print
3370 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
3371 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
3372 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
3373 * fortran.c: Include stdio.h and string.h.
3374 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
3375 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
3376 (omp_set_affinity_format_, omp_get_affinity_format_,
3377 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
3378 omp_pause_resource_all_): New functions.
3379 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
3380 switch.
3381 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
3382 functions to ...
3383 * teams.c: ... here. New file.
3384 * libgomp_g.h: Include gstdint.h.
3385 (GOMP_loop_nonmonotonic_runtime_start,
3386 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
3387 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
3388 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
3389 GOMP_parallel_loop_nonmonotonic_runtime,
3390 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
3391 GOMP_loop_ull_nonmonotonic_runtime_start,
3392 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
3393 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
3394 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
3395 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
3396 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
3397 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
3398 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
3399 GOMP_teams_reg): Declare.
3400 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
3401 gomp_aligned_alloc uses fallback implementation.
3402 (gomp_aligned_alloc, gomp_aligned_free): Declare.
3403 (enum gomp_schedule_type): Add GFS_MONOTONIC.
3404 (struct gomp_doacross_work_share): Add extra field.
3405 (struct gomp_work_share): Add task_reductions field.
3406 (struct gomp_taskgroup): Add workshare and reductions fields.
3407 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
3408 (gomp_thread_handle): New typedef.
3409 (gomp_display_affinity_place, gomp_set_affinity_format,
3410 gomp_display_string, gomp_display_affinity,
3411 gomp_display_affinity_thread): Declare.
3412 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
3413 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
3414 gomp_workshare_task_reduction_register): Declare.
3415 (gomp_team_start): Add taskgroup argument.
3416 (gomp_pause_host): Declare.
3417 (gomp_init_work_share, gomp_work_share_start): Change bool argument
3418 to size_t.
3419 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
3420 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
3421 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
3422 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
3423 GOMP_loop_ull_doacross_start,
3424 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
3425 GOMP_loop_maybe_nonmonotonic_runtime_next,
3426 GOMP_loop_maybe_nonmonotonic_runtime_start,
3427 GOMP_loop_nonmonotonic_runtime_next,
3428 GOMP_loop_nonmonotonic_runtime_start,
3429 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
3430 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
3431 GOMP_loop_ull_nonmonotonic_runtime_next,
3432 GOMP_loop_ull_nonmonotonic_runtime_start,
3433 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
3434 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
3435 GOMP_taskgroup_reduction_register,
3436 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
3437 GOMP_teams_reg and GOMP_taskwait_depend.
3438 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
3439 omp_{capture,display}_affinity{,_}, and
3440 omp_[gs]et_affinity_format{,_}.
3441 * loop.c: Include string.h.
3442 (GOMP_loop_runtime_next): Add ialias.
3443 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
3444 (gomp_loop_static_start, gomp_loop_dynamic_start,
3445 gomp_loop_guided_start, gomp_loop_ordered_static_start,
3446 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3447 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
3448 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
3449 or gomp_doacross_init callers.
3450 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
3451 GOMP_loop_doacross_start): New functions.
3452 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3453 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
3454 Mask off GFS_MONOTONIC bit.
3455 (GOMP_loop_maybe_nonmonotonic_runtime_next,
3456 GOMP_loop_maybe_nonmonotonic_runtime_start,
3457 GOMP_loop_nonmonotonic_runtime_next,
3458 GOMP_loop_nonmonotonic_runtime_start,
3459 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
3460 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
3461 functions.
3462 (gomp_parallel_loop_start): Pass NULL as taskgroup to
3463 gomp_team_start.
3464 * loop_ull.c: Include string.h.
3465 (GOMP_loop_ull_runtime_next): Add ialias.
3466 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
3467 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
3468 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
3469 gomp_loop_ull_ordered_dynamic_start,
3470 gomp_loop_ull_ordered_guided_start,
3471 gomp_loop_ull_doacross_static_start,
3472 gomp_loop_ull_doacross_dynamic_start,
3473 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
3474 and gomp_doacross_ull_init callers.
3475 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
3476 GOMP_loop_ull_doacross_start): New functions.
3477 (GOMP_loop_ull_runtime_start,
3478 GOMP_loop_ull_ordered_runtime_start,
3479 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
3480 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
3481 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
3482 GOMP_loop_ull_nonmonotonic_runtime_next,
3483 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
3484 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
3485 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
3486 (omp_pause_resource_t, omp_depend_t): New typedefs.
3487 (enum omp_lock_hint_t): Renamed to ...
3488 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
3489 enumerators using numbers and omp_lock_hint_* as their aliases.
3490 (omp_lock_hint_t): New typedef. Rename to ...
3491 (omp_sync_hint_t): ... this.
3492 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
3493 omp_sync_hint_t instead of omp_lock_hint_t.
3494 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
3495 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
3496 Declare.
3497 (omp_target_is_present, omp_target_disassociate_ptr):
3498 Change first argument from void * to const void *.
3499 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
3500 from void * to const void *.
3501 (omp_target_associate_ptr): Change first and second arguments from
3502 void * to const void *.
3503 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
3504 omp_pause_hard): New parameters.
3505 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
3506 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
3507 New interfaces.
3508 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
3509 omp_pause_hard): New parameters.
3510 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
3511 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
3512 New externals.
3513 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
3514 EXTRA argument. If not needed to prepare array, if extra is 0,
3515 clear ws->doacross, otherwise allocate just doacross structure and
3516 extra payload. If array is needed, allocate also extra payload.
3517 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
3518 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
3519 doacross == NULL.
3520 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
3521 gomp_team_start.
3522 (GOMP_parallel): Likewise. Formatting fix.
3523 (GOMP_parallel_reductions): New function.
3524 (GOMP_cancellation_point): If taskgroup has workshare
3525 flag set, check cancelled of prev taskgroup if any.
3526 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
3527 on prev taskgroup if any.
3528 * sections.c: Include string.h.
3529 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
3530 (GOMP_sections_start): Adjust gomp_work_share_start caller.
3531 (GOMP_sections2_start): New function.
3532 (GOMP_parallel_sections_start, GOMP_parallel_sections):
3533 Pass NULL as taskgroup to gomp_team_start.
3534 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
3535 gomp_work_share_start callers.
3536 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
3537 If taskgroup has workshare flag set, check cancelled on prev
3538 taskgroup if any. Guard all cancellation tests with
3539 gomp_cancel_var test.
3540 (omp_target_is_present, omp_target_disassociate_ptr):
3541 Change ptr argument from void * to const void *.
3542 (omp_target_memcpy): Change src argument from void * to const void *.
3543 (omp_target_memcpy_rect): Likewise.
3544 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
3545 instead of char * where needed.
3546 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
3547 from void * to const void *.
3548 (omp_pause_resource, omp_pause_resource_all): New functions.
3549 * task.c (gomp_task_handle_depend): Handle new depend array format
3550 in addition to the old. Handle mutexinoutset kinds the same as
3551 inout for now, handle unspecified kinds.
3552 (gomp_create_target_task): If taskgroup has workshare flag set, check
3553 cancelled on prev taskgroup if any. Guard all cancellation tests with
3554 gomp_cancel_var test. Handle new depend array format count in
3555 addition to the old.
3556 (GOMP_task): Likewise. Adjust function comment.
3557 (gomp_task_run_pre): If taskgroup has workshare flag set, check
3558 cancelled on prev taskgroup if any. Guard all cancellation tests with
3559 gomp_cancel_var test.
3560 (GOMP_taskwait_depend): New function.
3561 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
3562 format in addition to the old. Handle mutexinoutset kinds the same as
3563 inout for now, handle unspecified kinds. Fix a function comment typo.
3564 (gomp_taskgroup_init): New function.
3565 (GOMP_taskgroup_start): Use it.
3566 (gomp_reduction_register, gomp_create_artificial_team,
3567 GOMP_taskgroup_reduction_register,
3568 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
3569 gomp_parallel_reduction_register,
3570 gomp_workshare_task_reduction_register,
3571 gomp_workshare_taskgroup_start,
3572 GOMP_workshare_task_reduction_unregister): New functions.
3573 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
3574 check cancelled on prev taskgroup if any. Guard all cancellation
3575 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
3576 by calling GOMP_taskgroup_reduction_register.
3577 * team.c (gomp_thread_attr): Remove comment.
3578 (struct gomp_thread_start_data): Add handle field.
3579 (gomp_thread_start): Call pthread_detach.
3580 (gomp_new_team): Adjust gomp_init_work_share caller.
3581 (gomp_free_pool_helper): Call pthread_detach.
3582 (gomp_team_start): Add taskgroup argument, initialize implicit
3583 tasks' taskgroup field to that. Don't call
3584 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
3585 (gomp_team_end): Determine nesting by thr->ts.level != 0
3586 rather than thr->ts.team != NULL.
3587 (gomp_pause_pool_helper, gomp_pause_host): New functions.
3588 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
3589 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
3590 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
3591 if more than 1 allocate also extra payload at the end of array. Never
3592 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
3593 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
3594 return true instead of ws.
3595 * Makefile.in: Regenerated.
3596 * configure: Regenerated.
3597 * config.h.in: Regenerated.
3598 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
3599 in some cases.
3600 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
3601 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
3602 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
3603 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
3604 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
3605 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
3606 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
3607 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
3608 * testsuite/libgomp.c-c++-common/for-10.c: New test.
3609 * testsuite/libgomp.c-c++-common/for-11.c: New test.
3610 * testsuite/libgomp.c-c++-common/for-12.c: New test.
3611 * testsuite/libgomp.c-c++-common/for-13.c: New test.
3612 * testsuite/libgomp.c-c++-common/for-14.c: New test.
3613 * testsuite/libgomp.c-c++-common/for-15.c: New test.
3614 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
3615 define a different N(test), don't define N(f0) to N(f14), but instead
3616 define N(f20) to N(f34) using != comparisons.
3617 * testsuite/libgomp.c-c++-common/for-7.c: New test.
3618 * testsuite/libgomp.c-c++-common/for-8.c: New test.
3619 * testsuite/libgomp.c-c++-common/for-9.c: New test.
3620 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
3621 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
3622 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
3623 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
3624 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
3625 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
3626 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
3627 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
3628 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
3629 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
3630 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
3631 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
3632 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
3633 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
3634 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
3635 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
3636 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
3637 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
3638 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
3639 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
3640 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
3641 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
3642 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
3643 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
3644 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
3645 * testsuite/libgomp.c++/depend-1.C: New test.
3646 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
3647 * testsuite/libgomp.c++/depobj-1.C: New test.
3648 * testsuite/libgomp.c++/for-16.C: New test.
3649 * testsuite/libgomp.c++/for-21.C: New test.
3650 * testsuite/libgomp.c++/for-22.C: New test.
3651 * testsuite/libgomp.c++/for-23.C: New test.
3652 * testsuite/libgomp.c++/for-24.C: New test.
3653 * testsuite/libgomp.c++/for-25.C: New test.
3654 * testsuite/libgomp.c++/for-26.C: New test.
3655 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
3656 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
3657 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
3658 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
3659 * testsuite/libgomp.c++/task-reduction-10.C: New test.
3660 * testsuite/libgomp.c++/task-reduction-11.C: New test.
3661 * testsuite/libgomp.c++/task-reduction-12.C: New test.
3662 * testsuite/libgomp.c++/task-reduction-13.C: New test.
3663 * testsuite/libgomp.c++/task-reduction-14.C: New test.
3664 * testsuite/libgomp.c++/task-reduction-15.C: New test.
3665 * testsuite/libgomp.c++/task-reduction-16.C: New test.
3666 * testsuite/libgomp.c++/task-reduction-17.C: New test.
3667 * testsuite/libgomp.c++/task-reduction-18.C: New test.
3668 * testsuite/libgomp.c++/task-reduction-19.C: New test.
3669 * testsuite/libgomp.c/task-reduction-1.c: New test.
3670 * testsuite/libgomp.c++/task-reduction-1.C: New test.
3671 * testsuite/libgomp.c/task-reduction-2.c: New test.
3672 * testsuite/libgomp.c++/task-reduction-2.C: New test.
3673 * testsuite/libgomp.c++/task-reduction-3.C: New test.
3674 * testsuite/libgomp.c++/task-reduction-4.C: New test.
3675 * testsuite/libgomp.c++/task-reduction-5.C: New test.
3676 * testsuite/libgomp.c++/task-reduction-6.C: New test.
3677 * testsuite/libgomp.c++/task-reduction-7.C: New test.
3678 * testsuite/libgomp.c++/task-reduction-8.C: New test.
3679 * testsuite/libgomp.c++/task-reduction-9.C: New test.
3680 * testsuite/libgomp.c/teams-1.c: New test.
3681 * testsuite/libgomp.c/teams-2.c: New test.
3682 * testsuite/libgomp.c/thread-limit-4.c: New test.
3683 * testsuite/libgomp.c/thread-limit-5.c: New test.
3684 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
3685
3686 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
3687
3688 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
3689 acc_memcpy_to/from_device functions, now with async parameter.
3690 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
3691 (acc_memcpy_from_device): Likewise.
3692 (acc_memcpy_to_device_async): New API function.
3693 (acc_memcpy_from_device_async): Likewise.
3694 (present_create_copy): Add async parameter and async setting/unsetting.
3695 (acc_create): Adjust present_create_copy call.
3696 (acc_copyin): Likewise.
3697 (acc_present_or_create): Likewise.
3698 (acc_present_or_copyin): Likewise.
3699 (acc_create_async): New API function.
3700 (acc_copyin_async): New API function.
3701 (delete_copyout): Add async parameter and async setting/unsetting.
3702 (acc_delete): Adjust delete_copyout call.
3703 (acc_copyout): Likewise.
3704 (acc_delete_async): New API function.
3705 (acc_copyout_async): Likewise.
3706 (update_dev_host): Add async parameter and async setting/unsetting.
3707 (acc_update_device): Adjust update_dev_host call.
3708 (acc_update_self): Likewise.
3709 (acc_update_device_async): New API function.
3710 (acc_update_self_async): Likewise.
3711 * openacc.h (acc_copyin_async): Declare new API function.
3712 (acc_create_async): Likewise.
3713 (acc_copyout_async): Likewise.
3714 (acc_delete_async): Likewise.
3715 (acc_update_device_async): Likewise.
3716 (acc_update_self_async): Likewise.
3717 (acc_memcpy_to_device_async): Likewise.
3718 (acc_memcpy_from_device_async): Likewise.
3719 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
3720 (acc_copyin_async_64_h): New subroutine.
3721 (acc_copyin_async_array_h): New subroutine.
3722 (acc_create_async_32_h): New subroutine.
3723 (acc_create_async_64_h): New subroutine.
3724 (acc_create_async_array_h): New subroutine.
3725 (acc_copyout_async_32_h): New subroutine.
3726 (acc_copyout_async_64_h): New subroutine.
3727 (acc_copyout_async_array_h): New subroutine.
3728 (acc_delete_async_32_h): New subroutine.
3729 (acc_delete_async_64_h): New subroutine.
3730 (acc_delete_async_array_h): New subroutine.
3731 (acc_update_device_async_32_h): New subroutine.
3732 (acc_update_device_async_64_h): New subroutine.
3733 (acc_update_device_async_array_h): New subroutine.
3734 (acc_update_self_async_32_h): New subroutine.
3735 (acc_update_self_async_64_h): New subroutine.
3736 (acc_update_self_async_array_h): New subroutine.
3737 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
3738 (acc_copyin_async_64_h): New subroutine.
3739 (acc_copyin_async_array_h): New subroutine.
3740 (acc_create_async_32_h): New subroutine.
3741 (acc_create_async_64_h): New subroutine.
3742 (acc_create_async_array_h): New subroutine.
3743 (acc_copyout_async_32_h): New subroutine.
3744 (acc_copyout_async_64_h): New subroutine.
3745 (acc_copyout_async_array_h): New subroutine.
3746 (acc_delete_async_32_h): New subroutine.
3747 (acc_delete_async_64_h): New subroutine.
3748 (acc_delete_async_array_h): New subroutine.
3749 (acc_update_device_async_32_h): New subroutine.
3750 (acc_update_device_async_64_h): New subroutine.
3751 (acc_update_device_async_array_h): New subroutine.
3752 (acc_update_self_async_32_h): New subroutine.
3753 (acc_update_self_async_64_h): New subroutine.
3754 (acc_update_self_async_array_h): New subroutine.
3755 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
3756 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
3757 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
3758 acc_memcpy_to_device_async*, acc_update_device_async*, and
3759 acc_update_self_async* entries.
3760 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
3761 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
3762 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
3763
3764 2018-10-31 Joseph Myers <joseph@codesourcery.com>
3765
3766 PR bootstrap/82856
3767 * Makefile.am: Include multilib.am
3768 (AUTOMAKE_OPTIONS): Add info-in-builddir.
3769 (CLEANFILES): Remove libgomp.info.
3770 * configure.ac: Remove AC_PREREQ.
3771 * testsuite/Makefile.am (RUNTEST): Remove quotes.
3772 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
3773 Regenerate.
3774
3775 2018-10-29 Joseph Myers <joseph@codesourcery.com>
3776 Julian Brown <julian@codesourcery.com>
3777
3778 * testsuite/libgomp.oacc-c++/this.C: New.
3779
3780 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
3781
3782 * plugin/plugin-nvptx.c (struct cuda_map): New.
3783 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
3784 h_tail with (cuda_map *) map.
3785 (cuda_map_create): New function.
3786 (cuda_map_destroy): New function.
3787 (map_init): Update to use a linked list of cuda_map objects.
3788 (map_fini): Likewise.
3789 (map_pop): Likewise.
3790 (map_push): Likewise. Return CUdeviceptr instead of void.
3791 (init_streams_for_device): Remove stales references to ptx_stream
3792 members.
3793 (select_stream_for_async): Likewise.
3794 (nvptx_exec): Update call to map_init.
3795
3796 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
3797 Julian Brown <julian@codesourcery.com>
3798
3799 PR middle-end/86336
3800 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
3801
3802 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
3803 Thomas Koenig <tkoenig@gcc.gnu.org>
3804
3805 PR fortran/25829
3806 * testsuite/libgomp.fortran/async_io_1.f90: New test.
3807 * testsuite/libgomp.fortran/async_io_2.f90: New test.
3808 * testsuite/libgomp.fortran/async_io_3.f90: New test.
3809 * testsuite/libgomp.fortran/async_io_4.f90: New test.
3810 * testsuite/libgomp.fortran/async_io_5.f90: New test.
3811 * testsuite/libgomp.fortran/async_io_6.f90: New test.
3812 * testsuite/libgomp.fortran/async_io_7.f90: New test.
3813
3814 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
3815 Tom de Vries <tdevries@suse.de>
3816
3817 PR target/85590
3818 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
3819 (cuOccupancyMaxPotentialBlockSize): Declare.
3820 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
3821 CUDA_ONE_CALL_MAYBE_NULL.
3822 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
3823 CUoccupancyB2DSize and declare
3824 cuOccupancyMaxPotentialBlockSize.
3825 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
3826 default num_gangs and num_workers when the driver supports it.
3827
3828 2018-08-08 Tom de Vries <tdevries@suse.de>
3829
3830 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
3831 CUDA_ONE_CALL_MAYBE_NULL.
3832 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
3833 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
3834 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
3835 are not found.
3836
3837 2018-08-08 Tom de Vries <tdevries@suse.de>
3838
3839 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
3840 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
3841 present.
3842
3843 2018-08-08 Tom de Vries <tdevries@suse.de>
3844
3845 * plugin/plugin-nvptx.c
3846 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
3847 (nvptx_open_device): Use
3848 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
3849
3850 2018-08-08 Tom de Vries <tdevries@suse.de>
3851
3852 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
3853 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
3854
3855 2018-08-07 Tom de Vries <tdevries@suse.de>
3856
3857 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
3858 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
3859 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
3860 corresponding call in CUDA_ONE_CALL. Add def/undef of
3861 CUDA_ONE_CALL_MAYBE_NULL.
3862 (CUDA_CALL_EXISTS): Define.
3863
3864 2018-08-07 Tom de Vries <tdevries@suse.de>
3865
3866 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
3867 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
3868 corresponding undefs right after.
3869
3870 2018-08-04 Tom de Vries <tdevries@suse.de>
3871
3872 * plugin/configfrag.ac: For --without-cuda-driver, set
3873 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
3874 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
3875 * configure: Regenerate.
3876
3877 2018-08-02 Tom de Vries <tdevries@suse.de>
3878
3879 PR target/86660
3880 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
3881 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
3882 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
3883 Same.
3884 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
3885 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
3886 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
3887
3888 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
3889 Thomas Schwinge <thomas@codesourcery.com>
3890
3891 * config/nvptx/oacc-parallel.c: Truncate.
3892
3893 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
3894 James Norris <jnorris@codesourcery.com>
3895
3896 * plugin/plugin-nvptx.c (struct map): Removed.
3897 (map_init, map_pop): Remove use of struct map.
3898 (map_push): Likewise and change argument list.
3899 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
3900
3901 2018-08-01 Tom de Vries <tdevries@suse.de>
3902
3903 * plugin/cuda-lib.def: New file. Factor out of ...
3904 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
3905 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
3906 using CUDA_CALLS.
3907
3908 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
3909
3910 Revert 'AsyncI/O patch committed'.
3911 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
3912 Thomas Koenig <tkoenig@gcc.gnu.org>
3913
3914 PR fortran/25829
3915 * testsuite/libgomp.fortran/async_io_1.f90: New test.
3916 * testsuite/libgomp.fortran/async_io_2.f90: New test.
3917 * testsuite/libgomp.fortran/async_io_3.f90: New test.
3918 * testsuite/libgomp.fortran/async_io_4.f90: New test.
3919 * testsuite/libgomp.fortran/async_io_5.f90: New test.
3920 * testsuite/libgomp.fortran/async_io_6.f90: New test.
3921 * testsuite/libgomp.fortran/async_io_7.f90: New test.
3922
3923 2018-07-30 Tom de Vries <tdevries@suse.de>
3924
3925 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
3926 (nvptx_exec): Ensure worker and vector default dims don't exceed
3927 targ_fn->max_threads_per_block.
3928
3929 2018-07-30 Tom de Vries <tdevries@suse.de>
3930
3931 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
3932 (nvptx_open_device): Init default_dims for device.
3933 (nvptx_exec): Use default_dims from device.
3934
3935 2018-07-26 Jakub Jelinek <jakub@redhat.com>
3936
3937 PR testsuite/86660
3938 * testsuite/libgomp.c++/for-15.C (results): Include it in
3939 omp declare target region.
3940 (main): Use map (always, tofrom: results) instead of
3941 map (tofrom: results).
3942
3943 PR middle-end/86660
3944 * testsuite/libgomp.c/pr86660.c: New test.
3945
3946 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
3947 Tom de Vries <tdevries@suse.de>
3948
3949 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
3950 sufficient resources to launch a kernel, and give a hint on how to fix
3951 it.
3952
3953 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
3954 Tom de Vries <tdevries@suse.de>
3955
3956 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
3957 max_threads_per_block and max_threads_per_multiprocessor fields.
3958 (nvptx_open_device): Initialize new fields.
3959 (nvptx_exec): Use num_sms, and new fields.
3960
3961 2018-07-26 Tom de Vries <tdevries@suse.de>
3962
3963 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
3964 to correct locations. Remove xfail.
3965
3966 2018-07-26 Tom de Vries <tdevries@suse.de>
3967
3968 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
3969 acc_wait. Move acc_async_test calls to correct locations. Remove
3970 xfail.
3971
3972 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
3973 Thomas Koenig <tkoenig@gcc.gnu.org>
3974
3975 PR fortran/25829
3976 * testsuite/libgomp.fortran/async_io_1.f90: New test.
3977 * testsuite/libgomp.fortran/async_io_2.f90: New test.
3978 * testsuite/libgomp.fortran/async_io_3.f90: New test.
3979 * testsuite/libgomp.fortran/async_io_4.f90: New test.
3980 * testsuite/libgomp.fortran/async_io_5.f90: New test.
3981 * testsuite/libgomp.fortran/async_io_6.f90: New test.
3982 * testsuite/libgomp.fortran/async_io_7.f90: New test.
3983
3984 2018-07-17 Jakub Jelinek <jakub@redhat.com>
3985
3986 PR middle-end/86542
3987 * testsuite/libgomp.c++/pr86542.C: New test.
3988
3989 PR middle-end/86539
3990 * testsuite/libgomp.c++/pr86539.C: New test.
3991
3992 2018-07-11 Jakub Jelinek <jakub@redhat.com>
3993
3994 PR c++/86443
3995 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
3996 (results): Make sure the variable is not inside declare target region.
3997 (qux): Remove unused function.
3998
3999 2018-07-10 Jakub Jelinek <jakub@redhat.com>
4000
4001 PR c++/86443
4002 * testsuite/libgomp.c++/for-15.C: New test.
4003
4004 2018-06-26 Jakub Jelinek <jakub@redhat.com>
4005
4006 PR c++/86291
4007 * testsuite/libgomp.c++/pr86291.C: New test.
4008
4009 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
4010
4011 * libgomp.texi (Top): Move www.openmp.org to https.
4012 (Enabling OpenMP): Ditto.
4013 (omp_get_active_level): Ditto.
4014 (omp_get_ancestor_thread_num): Ditto.
4015 (omp_get_cancellation): Ditto.
4016 (omp_get_default_device): Ditto.
4017 (omp_get_dynamic): Ditto.
4018 (omp_get_level): Ditto.
4019 (omp_get_max_active_levels): Ditto.
4020 (omp_get_max_task_priority): Ditto.
4021 (omp_get_max_threads): Ditto.
4022 (omp_get_nested): Ditto.
4023 (omp_get_num_devices): Ditto.
4024 (omp_get_num_procs): Ditto.
4025 (omp_get_num_teams): Ditto.
4026 (omp_get_num_threads): Ditto.
4027 (omp_get_proc_bind): Ditto.
4028 (omp_get_schedule): Ditto.
4029 (omp_get_team_num): Ditto.
4030 (omp_get_team_size): Ditto.
4031 (omp_get_thread_limit): Ditto.
4032 (omp_get_thread_num): Ditto.
4033 (omp_in_parallel): Ditto.
4034 (omp_in_final): Ditto.
4035 (omp_is_initial_device): Ditto.
4036 (omp_set_default_device): Ditto.
4037 (omp_set_dynamic): Ditto.
4038 (omp_set_max_active_levels): Ditto.
4039 (omp_set_nested): Ditto.
4040 (omp_set_num_threads): Ditto.
4041 (omp_set_schedule): Ditto.
4042 (omp_init_lock): Ditto.
4043 (omp_set_lock): Ditto.
4044 (omp_test_lock): Ditto.
4045 (omp_unset_lock): Ditto.
4046 (omp_destroy_lock): Ditto.
4047 (omp_init_nest_lock): Ditto.
4048 (omp_set_nest_lock): Ditto.
4049 (omp_test_nest_lock): Ditto.
4050 (omp_unset_nest_lock): Ditto.
4051 (omp_destroy_nest_lock): Ditto.
4052 (omp_get_wtick): Ditto.
4053 (omp_get_wtime): Ditto.
4054 (OMP_CANCELLATION): Ditto.
4055 (OMP_DISPLAY_ENV): Ditto.
4056 (OMP_DEFAULT_DEVICE): Ditto.
4057 (OMP_DYNAMIC): Ditto.
4058 (OMP_MAX_ACTIVE_LEVELS): Ditto.
4059 (OMP_MAX_TASK_PRIORITY): Ditto.
4060 (OMP_NESTED): Ditto.
4061 (OMP_NUM_THREADS): Ditto.
4062 (OMP_PROC_BIND): Ditto.
4063 (OMP_PLACES): Ditto.
4064 (OMP_STACKSIZE): Ditto.
4065 (OMP_SCHEDULE): Ditto.
4066 (OMP_THREAD_LIMIT): Ditto.
4067 (OMP_WAIT_POLICY): Ditto.
4068
4069 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
4070 James Norris <jnorris@codesourcery.com>
4071 Julian Brown <julian@codesourcery.com>
4072 Thomas Schwinge <thomas@codesourcery.com>
4073 Tom de Vries <tom@codesourcery.com>
4074
4075 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
4076 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
4077 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
4078 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
4079 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
4080 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
4081 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
4082 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
4083 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
4084 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
4085 Likewise.
4086 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
4087 Likewise.
4088 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
4089 Likewise.
4090 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
4091 Likewise.
4092 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
4093 Likewise.
4094 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
4095 Likewise.
4096 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4097 Likewise.
4098 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4099 Likewise.
4100 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4101 Likewise.
4102 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4103 Likewise.
4104 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4105 Likewise.
4106 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
4107 Likewise.
4108 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
4109 Likewise.
4110 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
4111 Likewise.
4112 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
4113 Likewise.
4114 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4115 Likewise.
4116 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4117 Likewise.
4118 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4119 Likewise.
4120 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4121 Likewise.
4122 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4123 Likewise.
4124 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4125 Likewise.
4126 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4127 Likewise.
4128 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4129 Likewise.
4130 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4131 Likewise.
4132 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4133 Likewise.
4134 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4135 Likewise.
4136 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
4137 Likewise.
4138 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
4139 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
4140 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
4141 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
4142 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
4143 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
4144 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
4145 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
4146 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
4147 Likewise.
4148 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
4149 Likewise.
4150 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
4151 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
4152 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
4153 Likewise.
4154 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
4155 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
4156 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
4157 Likewise.
4158 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4159 Likewise.
4160 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4161 Likewise.
4162 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4163 Likewise.
4164 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4165 Likewise.
4166 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
4167 Likewise.
4168 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
4169 Likewise.
4170 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
4171 Likewise.
4172 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
4173 Likewise.
4174 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
4175 Likewise.
4176 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
4177 Likewise.
4178 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
4179 Likewise.
4180 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
4181 Likewise.
4182 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
4183 Likewise.
4184 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
4185 Likewise.
4186 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
4187 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
4188 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
4189 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
4190 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
4191 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
4192 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
4193
4194 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
4195 Thomas Schwinge <thomas@codesourcery.com>
4196 Cesar Philippidis <cesar@codesourcery.com>
4197
4198 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
4199 (gomp_acc_remove_pointer): Update declaration.
4200 (gomp_acc_declare_allocate): Declare.
4201 (gomp_remove_var): Declare.
4202 * libgomp.map (OACC_2.5): Define.
4203 * oacc-mem.c (acc_map_data): Update refcount.
4204 (acc_unmap_data): Likewise.
4205 (present_create_copy): Likewise.
4206 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
4207 (acc_copyin): Likewise.
4208 (FLAG_FINALIZE): Define.
4209 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
4210 (acc_delete_finalize): New function.
4211 (acc_delete_finalize_async): New function.
4212 (acc_copyout_finalize): New function.
4213 (acc_copyout_finalize_async): New function.
4214 (gomp_acc_insert_pointer): Update refcounts.
4215 (gomp_acc_remove_pointer): Return if data is not present on the
4216 accelerator.
4217 * oacc-parallel.c (find_pset): Rename to find_pointer.
4218 (find_pointer): Add support for GOMP_MAP_POINTER.
4219 (handle_ftn_pointers): New function.
4220 (GOACC_parallel_keyed): Update refcounts of variables.
4221 (GOACC_enter_exit_data): Add support for finalized data mappings.
4222 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
4223 of fortran arrays.
4224 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
4225 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
4226 for GOMP_MAP_FORCE_FROM.
4227 * openacc.f90 (module openacc_internal): Add
4228 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
4229 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
4230 acc_copyout_finalize and acc_delete_finalize.
4231 (acc_copyout_finalize_32_h): New subroutine.
4232 (acc_copyout_finalize_64_h): New subroutine.
4233 (acc_copyout_finalize_array_h): New subroutine.
4234 (acc_delete_finalize_32_h): New subroutine.
4235 (acc_delete_finalize_64_h): New subroutine.
4236 (acc_delete_finalize_array_h): New subroutine.
4237 * openacc.h (acc_copyout_finalize): Declare.
4238 (acc_copyout_finalize_async): Declare.
4239 (acc_delete_finalize): Declare.
4240 (acc_delete_finalize_async): Declare.
4241 * openacc_lib.h (acc_copyout_finalize): New interface.
4242 (acc_delete_finalize): New interface.
4243 * target.c (gomp_map_vars): Update dynamic_refcount.
4244 (gomp_remove_var): New function.
4245 (gomp_unmap_vars): Use it.
4246 (gomp_unload_image_from_device): Likewise.
4247 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
4248 case to utilize OpenACC 2.5 data clause semantics.
4249 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
4250 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
4251 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
4252 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
4253 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
4254 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
4255 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
4256 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
4257 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
4258 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
4259 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
4260 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
4261 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
4262 utilize OpenACC 2.5 data clause semantics.
4263 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
4264 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
4265 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
4266 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
4267 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
4268 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
4269 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
4270 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
4271 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4272
4273 2018-05-21 Janus Weil <janus@gcc.gnu.org>
4274
4275 PR fortran/85841
4276 PR testsuite/85865
4277 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
4278 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
4279 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
4280 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
4281 * testsuite/libgomp.fortran/task2.f90: Ditto.
4282 * testsuite/libgomp.fortran/vla1.f90: Ditto.
4283 * testsuite/libgomp.fortran/vla2.f90: Ditto.
4284 * testsuite/libgomp.fortran/vla3.f90: Ditto.
4285 * testsuite/libgomp.fortran/vla4.f90: Ditto.
4286 * testsuite/libgomp.fortran/vla5.f90: Ditto.
4287 * testsuite/libgomp.fortran/vla6.f90: Ditto.
4288 * testsuite/libgomp.fortran/vla8.f90: Ditto.
4289 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
4290 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
4291
4292 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
4293
4294 PR c++/85782
4295 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
4296
4297 2018-05-09 Tom de Vries <tom@codesourcery.com>
4298
4299 PR libgomp/82901
4300 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
4301 to GOACC_enter_exit_data.
4302
4303 2018-05-09 Tom de Vries <tom@codesourcery.com>
4304
4305 PR libgomp/83792
4306 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
4307 (async_synchronous_p): New function.
4308 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
4309 async_valid_p.
4310 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
4311 async_valid_stream_id_p.
4312 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
4313 * oacc-parallel.c (GOACC_parallel_keyed): Same.
4314
4315 2018-05-07 Tom de Vries <tom@codesourcery.com>
4316
4317 PR testsuite/85677
4318 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
4319 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
4320
4321 2018-05-03 Tom de Vries <tom@codesourcery.com>
4322
4323 PR testsuite/85106
4324 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
4325 extra_tool_flags if it contains an -foffload=-fdump-* flag.
4326 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
4327 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
4328
4329 2018-05-02 Tom de Vries <tom@codesourcery.com>
4330
4331 PR libgomp/85411
4332 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
4333 GOMP_OPENACC_DIM ...
4334 * env.c (parse_gomp_openacc_dim): ... here. New function.
4335 (initialize_env): Call parse_gomp_openacc_dim.
4336 (goacc_default_dims): Define.
4337 * libgomp.h (goacc_default_dims): Declare.
4338 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
4339 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
4340 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
4341 GOMP_PLUGIN_acc_default_dim.
4342 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
4343 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
4344
4345 2018-05-02 Tom de Vries <tom@codesourcery.com>
4346
4347 PR testsuite/83791
4348 * testsuite/libgomp.c++/udr-9.C: Update.
4349 * testsuite/libgomp.c++/atomic-16.C: Remove.
4350 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
4351 * testsuite/libgomp.c++/loop-13.C: Remove.
4352 * testsuite/libgomp.c++/loop-14.C: Remove.
4353 * testsuite/libgomp.c++/loop-15.C: Remove.
4354 * testsuite/libgomp.c++/monotonic-1.C: Remove.
4355 * testsuite/libgomp.c++/monotonic-2.C: Remove.
4356 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
4357 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
4358 * testsuite/libgomp.c++/ordered-1.C: Remove.
4359 * testsuite/libgomp.c++/pr45784.C: Remove.
4360 * testsuite/libgomp.c++/pr64824.C: Remove.
4361 * testsuite/libgomp.c++/pr64868.C: Remove.
4362 * testsuite/libgomp.c++/pr66199-1.C: Remove.
4363 * testsuite/libgomp.c++/pr66199-2.C: Remove.
4364 * testsuite/libgomp.c++/pr66199-3.C: Remove.
4365 * testsuite/libgomp.c++/pr66199-4.C: Remove.
4366 * testsuite/libgomp.c++/pr66199-5.C: Remove.
4367 * testsuite/libgomp.c++/pr66199-6.C: Remove.
4368 * testsuite/libgomp.c++/pr66199-7.C: Remove.
4369 * testsuite/libgomp.c++/pr66199-8.C: Remove.
4370 * testsuite/libgomp.c++/pr66199-9.C: Remove.
4371 * testsuite/libgomp.c++/pr69389.C: Remove.
4372 * testsuite/libgomp.c++/simd10.C: Remove.
4373 * testsuite/libgomp.c++/simd11.C: Remove.
4374 * testsuite/libgomp.c++/simd12.C: Remove.
4375 * testsuite/libgomp.c++/simd13.C: Remove.
4376 * testsuite/libgomp.c++/target-1.C: Remove.
4377 * testsuite/libgomp.c++/target-3.C: Remove.
4378 * testsuite/libgomp.c++/target-4.C: Remove.
4379 * testsuite/libgomp.c++/target-5.C: Remove.
4380 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
4381 * testsuite/libgomp.c++/taskloop-1.C: Remove.
4382 * testsuite/libgomp.c++/taskloop-2.C: Remove.
4383 * testsuite/libgomp.c++/taskloop-3.C: Remove.
4384 * testsuite/libgomp.c++/taskloop-4.C: Remove.
4385 * testsuite/libgomp.c++/udr-9.C: Remove.
4386 * testsuite/libgomp.c++/for-10.C: Remove.
4387 * testsuite/libgomp.c++/for-11.C: Remove.
4388 * testsuite/libgomp.c++/for-12.C: Remove.
4389 * testsuite/libgomp.c++/for-13.C: Remove.
4390 * testsuite/libgomp.c++/for-14.C: Remove.
4391 * testsuite/libgomp.c++/for-9.C: Remove.
4392 * testsuite/libgomp.c/atomic-18.c: Move ...
4393 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
4394 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
4395 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
4396 * testsuite/libgomp.c/loop-13.c: Move ...
4397 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
4398 * testsuite/libgomp.c/loop-14.c: Move ...
4399 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
4400 * testsuite/libgomp.c/loop-15.c: Remove.
4401 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
4402 * testsuite/libgomp.c/monotonic-1.c: Move ...
4403 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
4404 * testsuite/libgomp.c/monotonic-2.c: Move ...
4405 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
4406 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
4407 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
4408 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
4409 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
4410 * testsuite/libgomp.c/ordered-4.c: Move ...
4411 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
4412 * testsuite/libgomp.c/pr45784.c: Move ...
4413 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
4414 * testsuite/libgomp.c/pr64824.c: Move ...
4415 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
4416 * testsuite/libgomp.c/pr64868.c: Move ...
4417 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
4418 * testsuite/libgomp.c/pr66199-1.c: Move ...
4419 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
4420 * testsuite/libgomp.c/pr66199-2.c: Move ...
4421 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
4422 * testsuite/libgomp.c/pr66199-3.c: Move ...
4423 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
4424 * testsuite/libgomp.c/pr66199-4.c: Move ...
4425 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
4426 * testsuite/libgomp.c/pr66199-5.c: Move ...
4427 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
4428 * testsuite/libgomp.c/pr66199-6.c: Move ...
4429 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
4430 * testsuite/libgomp.c/pr66199-7.c: Move ...
4431 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
4432 * testsuite/libgomp.c/pr66199-8.c: Move ...
4433 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
4434 * testsuite/libgomp.c/pr66199-9.c: Move ...
4435 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
4436 * testsuite/libgomp.c/pr69389.c: Move ...
4437 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
4438 * testsuite/libgomp.c/simd-14.c: Move ...
4439 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
4440 * testsuite/libgomp.c/simd-15.c: Move ...
4441 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
4442 * testsuite/libgomp.c/simd-16.c: Move ...
4443 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
4444 * testsuite/libgomp.c/simd-17.c: Move ...
4445 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
4446 * testsuite/libgomp.c/target-1.c: Move ...
4447 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
4448 * testsuite/libgomp.c/target-10.c: Move ...
4449 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
4450 * testsuite/libgomp.c/target-13.c: Move ...
4451 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
4452 * testsuite/libgomp.c/target-2.c: Move ...
4453 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
4454 * testsuite/libgomp.c/taskgroup-1.c: Move ...
4455 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
4456 * testsuite/libgomp.c/taskloop-1.c: Move ...
4457 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
4458 * testsuite/libgomp.c/taskloop-2.c: Move ...
4459 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
4460 * testsuite/libgomp.c/taskloop-3.c: Move ...
4461 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
4462 * testsuite/libgomp.c/taskloop-4.c: Move ...
4463 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
4464 * testsuite/libgomp.c/udr-1.c: Move ...
4465 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
4466 * testsuite/libgomp.c/for-1.c: Move ...
4467 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
4468 * testsuite/libgomp.c/for-1.h: Move ...
4469 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
4470 * testsuite/libgomp.c/for-2.c: Move ...
4471 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
4472 * testsuite/libgomp.c/for-2.h: Move ...
4473 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
4474 * testsuite/libgomp.c/for-3.c: Move ...
4475 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
4476 * testsuite/libgomp.c/for-4.c: Move ...
4477 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
4478 * testsuite/libgomp.c/for-5.c: Move ...
4479 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
4480 * testsuite/libgomp.c/for-6.c: Move ...
4481 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
4482
4483 2018-05-02 Tom de Vries <tom@codesourcery.com>
4484
4485 PR libgomp/82428
4486 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
4487 __builtin_goacc_parlevel_{id,size}.
4488 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
4489 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
4490 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
4491 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
4492 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
4493 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
4494 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
4495 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
4496 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
4497 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
4498 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
4499 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
4500 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
4501 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
4502 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
4503 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
4504 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
4505 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
4506 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
4507 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
4508 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
4509 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
4510 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
4511
4512 2018-05-02 Tom de Vries <tom@codesourcery.com>
4513
4514 PR testsuite/85106
4515 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
4516
4517 2018-05-02 Tom de Vries <tom@codesourcery.com>
4518
4519 PR testsuite/85106
4520 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
4521
4522 2018-04-29 Julian Brown <julian@codesourcery.com>
4523 Tom de Vries <tom@codesourcery.com>
4524
4525 PR testsuite/85527
4526 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
4527 arbitrary order for iterations of atomic subtract check.
4528
4529 2018-04-28 Tom de Vries <tom@codesourcery.com>
4530
4531 PR testsuite/85527
4532 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
4533 atomic capture results obtained in parallel loop to an array, instead of
4534 to a scalar.
4535
4536 2018-04-26 Tom de Vries <tom@codesourcery.com>
4537
4538 PR libgomp/84020
4539 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
4540 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
4541 (process_GOMP_NVPTX_JIT): New function.
4542 (link_ptx): Use process_GOMP_NVPTX_JIT.
4543
4544 2018-04-26 Richard Biener <rguenther@suse.de>
4545 Tom de Vries <tom@codesourcery.com>
4546
4547 PR lto/85422
4548 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
4549
4550 2018-04-26 Tom de Vries <tom@codesourcery.com>
4551
4552 PR target/85519
4553 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
4554 recursion depth from 25 to 23.
4555 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
4556
4557 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
4558
4559 * configure: Regenerated.
4560
4561 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
4562 Tom de Vries <tom@codesourcery.com>
4563
4564 PR target/85445
4565 * testsuite/libgomp.oacc-c++/ref-1.C: New.
4566
4567 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
4568
4569 PR libgomp/85463
4570 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
4571 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
4572 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
4573 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
4574 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
4575 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
4576
4577 PR libfortran/85166
4578 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
4579 abort".
4580 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
4581
4582 2018-04-19 Jakub Jelinek <jakub@redhat.com>
4583
4584 * configure: Regenerated.
4585
4586 2018-04-18 David Malcolm <dmalcolm@redhat.com>
4587
4588 PR jit/85384
4589 * configure: Regenerate.
4590
4591 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
4592 Tom de Vries <tom@codesourcery.com>
4593
4594 PR middle-end/84955
4595 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
4596 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
4597
4598 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
4599
4600 PR fortran/83064
4601 PR testsuite/85346
4602 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
4603 test from gfortran.dg to here.
4604
4605 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
4606
4607 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
4608 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
4609
4610 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
4611
4612 PR middle-end/84955
4613 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
4614 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
4615
4616 2018-04-05 Tom de Vries <tom@codesourcery.com>
4617
4618 PR target/85204
4619 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
4620
4621 2018-03-26 Tom de Vries <tom@codesourcery.com>
4622
4623 PR tree-optimization/85063
4624 * testsuite/libgomp.c/switch-conversion-2.c: New test.
4625 * testsuite/libgomp.c/switch-conversion.c: New test.
4626 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
4627 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
4628
4629 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
4630
4631 PR fortran/84381
4632 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
4633 call abort by STOP n.
4634 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
4635 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
4636 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
4637 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
4638 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
4639 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
4640 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
4641 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
4642 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
4643 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
4644 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
4645 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
4646 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
4647 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
4648 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
4649 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
4650 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
4651 * testsuite/libgomp.fortran/associate1.f90: Likewise.
4652 * testsuite/libgomp.fortran/associate2.f90: Likewise.
4653 * testsuite/libgomp.fortran/associate3.f90: Likewise.
4654 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
4655 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
4656 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
4657 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
4658 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
4659 * testsuite/libgomp.fortran/character1.f90: Likewise.
4660 * testsuite/libgomp.fortran/character2.f90: Likewise.
4661 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
4662 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
4663 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
4664 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
4665 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
4666 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
4667 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
4668 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
4669 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
4670 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
4671 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
4672 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
4673 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
4674 * testsuite/libgomp.fortran/do1.f90: Likewise.
4675 * testsuite/libgomp.fortran/do2.f90: Likewise.
4676 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
4677 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
4678 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
4679 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
4680 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
4681 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
4682 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
4683 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
4684 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
4685 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
4686 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
4687 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
4688 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
4689 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
4690 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
4691 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
4692 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
4693 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
4694 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
4695 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
4696 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
4697 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
4698 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
4699 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
4700 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
4701 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
4702 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
4703 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
4704 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
4705 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
4706 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
4707 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
4708 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
4709 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
4710 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
4711 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
4712 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
4713 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
4714 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
4715 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
4716 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
4717 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
4718 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
4719 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
4720 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
4721 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
4722 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
4723 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
4724 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
4725 * testsuite/libgomp.fortran/lib1.f90: Likewise.
4726 * testsuite/libgomp.fortran/lib2.f: Likewise.
4727 * testsuite/libgomp.fortran/lib3.f: Likewise.
4728 * testsuite/libgomp.fortran/lib4.f90: Likewise.
4729 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
4730 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
4731 * testsuite/libgomp.fortran/nested1.f90: Likewise.
4732 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
4733 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
4734 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
4735 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
4736 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
4737 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
4738 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
4739 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
4740 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
4741 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
4742 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
4743 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
4744 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
4745 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
4746 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
4747 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
4748 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
4749 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
4750 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
4751 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
4752 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
4753 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
4754 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
4755 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
4756 * testsuite/libgomp.fortran/pr25162.f: Likewise.
4757 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
4758 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
4759 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
4760 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
4761 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
4762 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
4763 * testsuite/libgomp.fortran/pr28390.f: Likewise.
4764 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
4765 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
4766 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
4767 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
4768 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
4769 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
4770 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
4771 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
4772 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
4773 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
4774 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
4775 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
4776 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
4777 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
4778 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
4779 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
4780 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
4781 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
4782 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
4783 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
4784 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
4785 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
4786 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
4787 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
4788 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
4789 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
4790 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
4791 * testsuite/libgomp.fortran/reference1.f90: Likewise.
4792 * testsuite/libgomp.fortran/reference2.f90: Likewise.
4793 * testsuite/libgomp.fortran/retval1.f90: Likewise.
4794 * testsuite/libgomp.fortran/retval2.f90: Likewise.
4795 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
4796 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
4797 * testsuite/libgomp.fortran/simd1.f90: Likewise.
4798 * testsuite/libgomp.fortran/simd2.f90: Likewise.
4799 * testsuite/libgomp.fortran/simd3.f90: Likewise.
4800 * testsuite/libgomp.fortran/simd4.f90: Likewise.
4801 * testsuite/libgomp.fortran/simd5.f90: Likewise.
4802 * testsuite/libgomp.fortran/simd6.f90: Likewise.
4803 * testsuite/libgomp.fortran/simd7.f90: Likewise.
4804 * testsuite/libgomp.fortran/stack.f90: Likewise.
4805 * testsuite/libgomp.fortran/strassen.f90: Likewise.
4806 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
4807 * testsuite/libgomp.fortran/tabs2.f: Likewise.
4808 * testsuite/libgomp.fortran/target1.f90: Likewise.
4809 * testsuite/libgomp.fortran/target2.f90: Likewise.
4810 * testsuite/libgomp.fortran/target3.f90: Likewise.
4811 * testsuite/libgomp.fortran/target4.f90: Likewise.
4812 * testsuite/libgomp.fortran/target5.f90: Likewise.
4813 * testsuite/libgomp.fortran/target6.f90: Likewise.
4814 * testsuite/libgomp.fortran/target7.f90: Likewise.
4815 * testsuite/libgomp.fortran/target8.f90: Likewise.
4816 * testsuite/libgomp.fortran/task1.f90: Likewise.
4817 * testsuite/libgomp.fortran/task2.f90: Likewise.
4818 * testsuite/libgomp.fortran/task3.f90: Likewise.
4819 * testsuite/libgomp.fortran/task4.f90: Likewise.
4820 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
4821 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
4822 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
4823 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
4824 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
4825 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
4826 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
4827 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
4828 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
4829 * testsuite/libgomp.fortran/udr1.f90: Likewise.
4830 * testsuite/libgomp.fortran/udr10.f90: Likewise.
4831 * testsuite/libgomp.fortran/udr11.f90: Likewise.
4832 * testsuite/libgomp.fortran/udr12.f90: Likewise.
4833 * testsuite/libgomp.fortran/udr13.f90: Likewise.
4834 * testsuite/libgomp.fortran/udr14.f90: Likewise.
4835 * testsuite/libgomp.fortran/udr15.f90: Likewise.
4836 * testsuite/libgomp.fortran/udr2.f90: Likewise.
4837 * testsuite/libgomp.fortran/udr3.f90: Likewise.
4838 * testsuite/libgomp.fortran/udr4.f90: Likewise.
4839 * testsuite/libgomp.fortran/udr5.f90: Likewise.
4840 * testsuite/libgomp.fortran/udr6.f90: Likewise.
4841 * testsuite/libgomp.fortran/udr7.f90: Likewise.
4842 * testsuite/libgomp.fortran/udr8.f90: Likewise.
4843 * testsuite/libgomp.fortran/udr9.f90: Likewise.
4844 * testsuite/libgomp.fortran/vla1.f90: Likewise.
4845 * testsuite/libgomp.fortran/vla2.f90: Likewise.
4846 * testsuite/libgomp.fortran/vla3.f90: Likewise.
4847 * testsuite/libgomp.fortran/vla4.f90: Likewise.
4848 * testsuite/libgomp.fortran/vla5.f90: Likewise.
4849 * testsuite/libgomp.fortran/vla6.f90: Likewise.
4850 * testsuite/libgomp.fortran/vla7.f90: Likewise.
4851 * testsuite/libgomp.fortran/vla8.f90: Likewise.
4852 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
4853 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
4854 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
4855 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
4856 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4857 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4858 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4859 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4860 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4861 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4862 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
4863 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
4864 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
4865 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
4866 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
4867 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
4868 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
4869 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
4870 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
4871 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
4872 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
4873 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
4874 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
4875 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
4876 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
4877 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
4878 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
4879 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
4880 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
4881 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
4882 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
4883 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4884 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4885 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4886 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4887 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4888 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
4889 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
4890 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
4891 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4892 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
4893 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4894 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
4895 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
4896 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
4897 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
4898 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
4899 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
4900 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
4901 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
4902 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
4903 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
4904 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
4905 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4906 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
4907 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
4908 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
4909 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
4910 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
4911 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
4912 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
4913 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
4914 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
4915 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
4916 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
4917 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
4918 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
4919 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4920 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4921 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
4922 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
4923 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
4924 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
4925 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
4926 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
4927 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
4928 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
4929 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
4930 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
4931 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
4932 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4933 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4934 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4935 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
4936 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
4937 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
4938 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
4939 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
4940 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
4941 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
4942 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
4943 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
4944 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
4945 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
4946
4947 2018-03-20 Richard Biener <rguenther@suse.de>
4948
4949 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
4950 parallelizable loop.
4951
4952 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
4953
4954 PR target/84148
4955 * configure: Regenerate.
4956
4957 2018-02-16 Jakub Jelinek <jakub@redhat.com>
4958
4959 PR fortran/84418
4960 * libgomp.fortran/pr84418-1.f90: New test.
4961 * libgomp.fortran/pr84418-2.f90: New test.
4962
4963 2018-02-14 Jakub Jelinek <jakub@redhat.com>
4964
4965 PR fortran/84313
4966 * testsuite/libgomp.fortran/threadprivate4.f90: Add
4967 -std=f2003 -fall-intrinsics into dg-additional-options.
4968
4969 2018-02-08 Martin Jambor <mjambor@suse.cz>
4970
4971 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
4972 clonable.
4973
4974 2018-02-08 Martin Jambor <mjambor@suse.cz>
4975
4976 * testsuite/libgomp.hsa.c/staticvar.c: New test.
4977
4978 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4979
4980 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
4981 [__cplusplus]: Declare extern "C".
4982
4983 2018-02-07 Tom de Vries <tom@codesourcery.com>
4984
4985 PR libgomp/84217
4986 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
4987
4988 2018-01-29 Christoph Spiel <cspiel@freenet.de>
4989 Jakub Jelinek <jakub@redhat.com>
4990
4991 PR libgomp/84096
4992 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
4993 instead of omp_lock_t.
4994
4995 2018-01-25 Tom de Vries <tom@codesourcery.com>
4996
4997 PR target/84028
4998 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
4999
5000 2018-01-24 Tom de Vries <tom@codesourcery.com>
5001
5002 PR target/83589
5003 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
5004
5005 2018-01-24 Tom de Vries <tom@codesourcery.com>
5006
5007 PR target/81352
5008 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
5009
5010 2018-01-19 Tom de Vries <tom@codesourcery.com>
5011 Cesar Philippidis <cesar@codesourcery.com>
5012
5013 PR target/83920
5014 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
5015 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
5016
5017 2018-01-03 Jakub Jelinek <jakub@redhat.com>
5018
5019 Update copyright years.
5020
5021 * libgomp.texi: Bump @copying's copyright year.
5022
5023 2017-12-30 Tom de Vries <tom@codesourcery.com>
5024
5025 PR libgomp/83046
5026 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
5027 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
5028
5029 2017-12-27 Tom de Vries <tom@codesourcery.com>
5030
5031 PR c++/83046
5032 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
5033 (test_nonstatic): Fix return type to workaround PR83046.
5034
5035 2017-12-05 Jakub Jelinek <jakub@redhat.com>
5036
5037 PR testsuite/83281
5038 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
5039 j suffix instead of i.
5040 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
5041 Likewise.
5042
5043 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
5044
5045 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
5046 call to acc_wait (1).
5047
5048 2017-11-24 Jakub Jelinek <jakub@redhat.com>
5049
5050 PR fortran/81304
5051 * testsuite/libgomp.fortran/pr81304.f90: New test.
5052
5053 2017-11-23 Jakub Jelinek <jakub@redhat.com>
5054
5055 PR fortran/81841
5056 * libgomp.fortran/pr81841.f90: New test.
5057
5058 2017-11-22 Jakub Jelinek <jakub@redhat.com>
5059
5060 PR libgomp/83106
5061 * target.c (gomp_target_init): Compute lengths just once and
5062 use them in both malloc size and subsequent copying.
5063
5064 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
5065
5066 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
5067 * acinclude.m4: Add cet.m4.
5068 * configure: Regenerate.
5069 * Makefile.in: Likewise.
5070 * testsuite/Makefile.in: Likewise.
5071
5072 2017-11-15 Tom de Vries <tom@codesourcery.com>
5073
5074 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
5075 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
5076 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
5077 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
5078 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
5079 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
5080
5081 2017-11-14 Tom de Vries <tom@codesourcery.com>
5082
5083 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
5084 non-nvidia devices.
5085
5086 2017-11-07 Jakub Jelinek <jakub@redhat.com>
5087
5088 PR c++/82835
5089 * testsuite/libgomp.c++/pr82835.C: New test.
5090
5091 2017-11-06 Martin Liska <mliska@suse.cz>
5092
5093 * testsuite/libgomp.c++/loop-2.C: Return a value
5094 for functions with non-void return type, or change type to void,
5095 or add -Wno-return-type for test.
5096 * testsuite/libgomp.c++/loop-4.C: Likewise.
5097 * testsuite/libgomp.c++/parallel-1.C: Likewise.
5098 * testsuite/libgomp.c++/shared-1.C: Likewise.
5099 * testsuite/libgomp.c++/single-1.C: Likewise.
5100 * testsuite/libgomp.c++/single-2.C: Likewise.
5101
5102 2017-10-31 Tom de Vries <tom@codesourcery.com>
5103
5104 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
5105 "do {} while (false)".
5106 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
5107 after HSA_DEBUG call.
5108
5109 2017-10-28 Jakub Jelinek <jakub@redhat.com>
5110
5111 * target.c (struct gomp_coalesce_buf): New type.
5112 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
5113 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
5114 (gomp_copy_host2dev): Add CBUF argument, if copying into
5115 the cached ranges, memcpy into buffer instead of copying
5116 into device.
5117 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
5118 Add CBUF argument, pass it through to other calls.
5119 (gomp_map_vars): Aggregate copies from host to device if small enough
5120 and with small enough gaps in between into memcpy into a buffer and
5121 fewer host to device copies from the buffer.
5122 (gomp_update): Adjust gomp_copy_host2dev caller.
5123
5124 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
5125
5126 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
5127 run" directive.
5128 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
5129 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
5130 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
5131 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
5132
5133 2017-10-16 Tom de Vries <tom@codesourcery.com>
5134
5135 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
5136 openacc_nvidia_accel_selected.
5137 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
5138 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
5139 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
5140 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
5141 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
5142 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
5143 openacc_nvidia_accel_selected. Skip for shared memory device.
5144 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
5145 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
5146
5147 2017-10-09 Martin Jambor <mjambor@suse.cz>
5148
5149 PR hsa/82416
5150 * testsuite/libgomp.hsa.c/pr82416.c: New test.
5151
5152 2017-10-07 Tom de Vries <tom@codesourcery.com>
5153
5154 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
5155 Remove acc_device_nvidia references.
5156 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
5157 Same.
5158
5159 2017-10-05 Tom de Vries <tom@codesourcery.com>
5160
5161 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
5162 vector_length(32) clause from acc parallel directive.
5163 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
5164
5165 2017-10-04 Tom de Vries <tom@codesourcery.com>
5166
5167 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
5168 (main): Reduce sum of arr elements. Assert that hres is exactly
5169 representable in 32-bit floating point.
5170 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
5171 (main): Reduce sum of arr elements. Assert that hres and hmres are
5172 exactly representable in 32-bit floating point.
5173 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
5174
5175 2017-09-28 Tom de Vries <tom@codesourcery.com>
5176
5177 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
5178 setting.
5179 * testsuite/libgomp.c++/pr69393.C: Same.
5180 * testsuite/libgomp.c++/taskloop-1.C: Same.
5181 * testsuite/libgomp.c++/taskloop-3.C: Same.
5182 * testsuite/libgomp.c++/taskloop-4.C: Same.
5183 * testsuite/libgomp.c/for-4.c: Same.
5184 * testsuite/libgomp.c/pr66199-3.c: Same.
5185 * testsuite/libgomp.c/pr66199-4.c: Same.
5186 * testsuite/libgomp.c/pr66199-6.c: Same.
5187 * testsuite/libgomp.c/taskloop-1.c: Same.
5188 * testsuite/libgomp.c/taskloop-3.c: Same.
5189 * testsuite/libgomp.c/taskloop-4.c: Same.
5190 * testsuite/libgomp.fortran/aligned1.f03: Same.
5191 * testsuite/libgomp.fortran/condinc1.f: Same.
5192 * testsuite/libgomp.fortran/condinc3.f90: Same.
5193 * testsuite/libgomp.fortran/crayptr1.f90: Same.
5194 * testsuite/libgomp.fortran/crayptr2.f90: Same.
5195 * testsuite/libgomp.fortran/crayptr3.f90: Same.
5196 * testsuite/libgomp.fortran/omp_cond1.f: Same.
5197 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
5198 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
5199 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
5200 * testsuite/libgomp.fortran/recursion1.f90: Same.
5201 * testsuite/libgomp.fortran/target2.f90: Same.
5202 * testsuite/libgomp.fortran/target5.f90: Same.
5203 * testsuite/libgomp.fortran/task3.f90: Same.
5204
5205 2017-09-28 Tom de Vries <tom@codesourcery.com>
5206
5207 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
5208 vector_length(32) clause from acc parallel directive.
5209 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
5210
5211 2017-09-27 Tom de Vries <tom@codesourcery.com>
5212
5213 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
5214 Remove acc_device_nvidia references.
5215
5216 2017-09-16 Tom de Vries <tom@codesourcery.com>
5217
5218 PR c/81875
5219 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
5220
5221 2017-09-14 Tom de Vries <tom@codesourcery.com>
5222
5223 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
5224 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
5225 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
5226 * testsuite/libgomp.c/c.exp: Include test-cases from
5227 libgomp.c-c++-common.
5228 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
5229 files.
5230
5231 2017-09-14 Jakub Jelinek <jakub@redhat.com>
5232
5233 PR c++/81314
5234 * testsuite/libgomp.c++/pr81314.C: New test.
5235
5236 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
5237
5238 * libgomp.texi (Top): www.openacc.org now uses https.
5239 (Enabling OpenACC): Ditto.
5240 (acc_get_num_devices): Ditto.
5241 (acc_set_device_type): Ditto.
5242 (acc_get_device_type): Ditto.
5243 (acc_set_device_num): Ditto.
5244 (acc_get_device_num): Ditto.
5245 (acc_async_test): Ditto.
5246 (acc_async_test_all): Ditto.
5247 (acc_wait): Ditto.
5248 (acc_wait_all): Ditto.
5249 (acc_wait_all_async): Ditto.
5250 (acc_wait_async): Ditto.
5251 (acc_init): Ditto.
5252 (acc_shutdown): Ditto.
5253 (acc_on_device): Ditto.
5254 (acc_malloc): Ditto.
5255 (acc_free): Ditto.
5256 (acc_copyin): Ditto.
5257 (acc_present_or_copyin): Ditto.
5258 (acc_create): Ditto.
5259 (acc_present_or_create): Ditto.
5260 (acc_copyout): Ditto.
5261 (acc_delete): Ditto.
5262 (acc_update_device): Ditto.
5263 (acc_update_self): Ditto.
5264 (acc_map_data): Ditto.
5265 (acc_unmap_data): Ditto.
5266 (acc_deviceptr): Ditto.
5267 (acc_hostptr): Ditto.
5268 (acc_is_present): Ditto.
5269 (acc_memcpy_to_device): Ditto.
5270 (acc_memcpy_from_device): Ditto.
5271 (acc_get_current_cuda_device): Ditto.
5272 (acc_get_current_cuda_context): Ditto.
5273 (acc_get_cuda_stream): Ditto.
5274 (acc_set_cuda_stream): Ditto.
5275 (ACC_DEVICE_TYPE): Ditto.
5276 (ACC_DEVICE_NUM): Ditto.
5277 (OpenACC Library Interoperability): Ditto.
5278
5279 2017-08-09 Jakub Jelinek <jakub@redhat.com>
5280
5281 PR c/81687
5282 * testsuite/libgomp.c/pr81687-1.c: New test.
5283 * testsuite/libgomp.c/pr81687-2.c: New test.
5284
5285 2017-08-07 Jakub Jelinek <jakub@redhat.com>
5286
5287 PR c/69389
5288 * testsuite/libgomp.c/pr69389.c: New test.
5289 * testsuite/libgomp.c++/pr69389.C: New test.
5290
5291 2017-08-07 Tom de Vries <tom@codesourcery.com>
5292
5293 PR middle-end/78266
5294 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
5295 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
5296
5297 2017-07-27 Jakub Jelinek <jakub@redhat.com>
5298
5299 PR c/45784
5300 * testsuite/libgomp.c/pr45784.c: New test.
5301 * testsuite/libgomp.c++/pr45784.C: New test.
5302
5303 2017-07-19 Tom de Vries <tom@codesourcery.com>
5304
5305 * testsuite/libgomp.oacc-c/vec.c: New test.
5306
5307 2017-07-03 Tom de Vries <tom@codesourcery.com>
5308
5309 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
5310
5311 2017-06-27 Tom de Vries <tom@codesourcery.com>
5312
5313 * plugin/plugin-nvptx.c (notify_var): New function.
5314 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
5315
5316 2017-06-27 Tom de Vries <tom@codesourcery.com>
5317
5318 * env.c (parse_unsigned_long_1): Factor out of ...
5319 (parse_unsigned_long): ... here.
5320 (parse_int_1): Factor out of ...
5321 (parse_int): ... here.
5322 (parse_int_secure): New function.
5323 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
5324 * secure_getenv.h: Factor out of ...
5325 * plugin/plugin-hsa.c: ... here.
5326 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
5327
5328 2017-06-21 Jakub Jelinek <jakub@redhat.com>
5329
5330 PR c++/81130
5331 * testsuite/libgomp.c++/pr81130.C: New test.
5332
5333 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5334
5335 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
5336 default args.
5337 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
5338 dg-xfail-run-if default args.
5339
5340 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5341
5342 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
5343 * testsuite/libgomp.c/pr39591-3.c: Likewise.
5344
5345 2017-05-30 Jakub Jelinek <jakub@redhat.com>
5346
5347 PR libgomp/80822
5348 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
5349 (gomp_affinity_init_level): Use it. Always analyze the core and thread
5350 sibling lists, depending on level just pick up what CPUs to put
5351 together into a place vs. whether add multiple ordered places.
5352
5353 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
5354
5355 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
5356 * libgomp.map (OACC_2.0.1): Add these.
5357 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
5358 for "acc_wait", and "acc_wait_all", respectively.
5359 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
5360 for "acc_wait", and "acc_wait_all", respectively.
5361 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
5362 * libgomp.texi (acc_wait, acc_wait_all): Update.
5363 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
5364 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
5365 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5366
5367 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
5368 acc_present_or_copyin and acc_present_or_create procedures,
5369 respectively.
5370 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
5371 generally different variants of OpenACC Runtime Library functions.
5372 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
5373
5374 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
5375 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
5376
5377 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
5378 of preprocessor definitions.
5379 * libgomp.h (strong_alias): Guard by "#ifdef
5380 HAVE_ATTRIBUTE_ALIAS".
5381 * oacc-mem.c: Provide "acc_pcreate" as alias for
5382 "acc_present_or_create", and "acc_pcopyin" as alias for
5383 "acc_present_or_copyin".
5384 * libgomp.map: New version "OACC_2.0.1".
5385 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
5386 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
5387 its content into...
5388 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
5389 Extend testing.
5390
5391 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
5392 when disabling nvptx offloading.
5393
5394 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
5395
5396 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
5397 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5398 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
5399
5400 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
5401 * testsuite/lib/libgomp.exp
5402 (check_effective_target_openacc_nvidia_accel_configured): New
5403 proc.
5404 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
5405 (check_effective_target_c++): New procs.
5406 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
5407 (check_effective_target_c++): Likewise.
5408
5409 2017-05-22 Jakub Jelinek <jakub@redhat.com>
5410
5411 PR middle-end/80809
5412 * testsuite/libgomp.c/pr80809-2.c: New test.
5413 * testsuite/libgomp.c/pr80809-3.c: New test.
5414
5415 PR middle-end/80809
5416 * testsuite/libgomp.c/pr80809-1.c: New test.
5417
5418 PR middle-end/80853
5419 * testsuite/libgomp.c/pr80853.c: New test.
5420
5421 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
5422
5423 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
5424 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
5425 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
5426 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
5427 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
5428
5429 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
5430 Debug output for failure.
5431
5432 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5433
5434 * testsuite/lib/libgomp.exp: Load scanlang.exp.
5435
5436 2017-04-27 Jakub Jelinek <jakub@redhat.com>
5437
5438 PR bootstrap/80531
5439 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
5440 bootstrap compare failures.
5441
5442 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
5443
5444 * testsuite/libgomp.c/target-36.c: New testcase.
5445
5446 2017-04-13 Jakub Jelinek <jakub@redhat.com>
5447
5448 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
5449 instead of char.
5450
5451 2017-04-11 Jakub Jelinek <jakub@redhat.com>
5452
5453 PR libgomp/80394
5454 * testsuite/libgomp.c/pr80394.c: New test.
5455
5456 2017-04-04 Jakub Jelinek <jakub@redhat.com>
5457
5458 PR libgomp/79876
5459 * config/posix/thread-stacksize.h: New file.
5460 * config/darwin/thread-stacksize.h: New file.
5461 * config/nvptx/thread-stacksize.h: New file.
5462 * env.c: Include thread-stacksize.h.
5463 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
5464 instead of 0. Call pthread_attr_setstacksize even if
5465 GOMP_DEFAULT_STACKSIZE is non-zero.
5466
5467 2017-03-30 Jakub Jelinek <jakub@redhat.com>
5468
5469 * env.c (initialize_env): Initialize stacksize to 0.
5470
5471 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
5472
5473 PR c++/80029
5474 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
5475
5476 2017-03-08 Jakub Jelinek <jakub@redhat.com>
5477
5478 PR c/79940
5479 * testsuite/libgomp.c/pr79940.c: New test.
5480
5481 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5482
5483 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
5484 targets.
5485 Add __float128 options.
5486
5487 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
5488
5489 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
5490 hppa*-*-* dg-skip-if directive.
5491
5492 2017-02-09 Jakub Jelinek <jakub@redhat.com>
5493
5494 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
5495 dg-skip-if directive into a comment.
5496
5497 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
5498 Chung-Lin Tang <cltang@codesourcery.com>
5499
5500 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
5501 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
5502 add additional case.
5503 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
5504 "openacc_nvidia_accel_selected".
5505 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
5506 Add num_workers(8) clause.
5507
5508 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
5509
5510 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
5511 hppa*-*-*.
5512 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
5513 include complex.h on hppa*-*-hpux*.
5514 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
5515
5516 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
5517
5518 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
5519
5520 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
5521 GOMP_OFFLOAD_openacc_exec. Adjust all users.
5522 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
5523 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
5524 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
5525 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
5526 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
5527 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
5528 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
5529 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
5530
5531 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
5532
5533 * libgomp-plugin.h: #include <stdbool.h>.
5534 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
5535 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
5536 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
5537 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
5538 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
5539 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
5540 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
5541 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
5542 (GOMP_OFFLOAD_openacc_register_async_cleanup)
5543 (GOMP_OFFLOAD_openacc_async_test)
5544 (GOMP_OFFLOAD_openacc_async_test_all)
5545 (GOMP_OFFLOAD_openacc_async_wait)
5546 (GOMP_OFFLOAD_openacc_async_wait_async)
5547 (GOMP_OFFLOAD_openacc_async_wait_all)
5548 (GOMP_OFFLOAD_openacc_async_wait_all_async)
5549 (GOMP_OFFLOAD_openacc_async_set_async)
5550 (GOMP_OFFLOAD_openacc_create_thread_data)
5551 (GOMP_OFFLOAD_openacc_destroy_thread_data)
5552 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
5553 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
5554 (GOMP_OFFLOAD_openacc_get_cuda_stream)
5555 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
5556 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
5557 these.
5558 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
5559 (GOMP_OFFLOAD_unload_image): Fix argument types.
5560
5561 2017-01-26 Jakub Jelinek <jakub@redhat.com>
5562
5563 * testsuite/lib/libgomp.exp
5564 (check_effective_target_hsa_offloading_selected_nocache): Fix up
5565 check_compile invocation. Fix up removal of executable. Drop
5566 bogus "2>&1" argument.
5567
5568 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
5569 directive.
5570
5571 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
5572 Martin Jambor <mjambor@suse.cz>
5573
5574 * plugin/hsa.h: Moved to top level include.
5575 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
5576
5577 2017-01-21 Jakub Jelinek <jakub@redhat.com>
5578
5579 PR other/79046
5580 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
5581 of cat to get version from BASE-VER file.
5582 * testsuite/Makefile.in: Regenerated.
5583
5584 2017-01-19 Jakub Jelinek <jakub@redhat.com>
5585
5586 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
5587 for _WIN64.
5588
5589 2017-01-17 Jakub Jelinek <jakub@redhat.com>
5590
5591 * plugin/hsa.h: Add GCC runtime library exception.
5592 * plugin/hsa_ext_finalize.h: Likewise.
5593
5594 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
5595 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
5596 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
5597 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
5598 plugin/include/cuda as include dir and -ldl instead of -lcuda as
5599 library to link ptx plugin against.
5600 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
5601 (CUDA_CALLS): Define.
5602 (cuda_lib, cuda_lib_inited): New variables.
5603 (init_cuda_lib): New function.
5604 (CUDA_CALL_PREFIX): Define.
5605 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
5606 (CUDA_CALL): Use FN instead of (FN).
5607 (CUDA_CALL_NOCHECK): Define.
5608 (cuda_error, fini_streams_for_device, select_stream_for_async,
5609 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
5610 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
5611 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
5612 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
5613 CUDA_CALL_NOCHECK.
5614 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
5615 CUDA_CALL_NOCHECK.
5616 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
5617 Use CUDA_CALL_NOCHECK.
5618 * plugin/cuda/cuda.h: New file.
5619 * config.h.in: Regenerated.
5620 * configure: Regenerated.
5621
5622 PR other/79046
5623 * configure.ac: Add GCC_BASE_VER.
5624 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
5625 get version from BASE-VER file.
5626 * testsuite/Makefile.in: Regenerated.
5627 * configure: Regenerated.
5628 * Makefile.in: Regenerated.
5629
5630 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5631
5632 PR libgomp/60670
5633 * Makefile.am: Make fincludedir multilib-aware.
5634 * Makefile.in: Regenerate.
5635
5636 2017-01-01 Jakub Jelinek <jakub@redhat.com>
5637
5638 Update copyright years.
5639
5640 * libgomp.texi: Bump @copying's copyright year.
5641
5642 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
5643
5644 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
5645 pthread_spinlock_t instead of gomp_mutex_t lock.
5646 (gomp_get_thread_pool): Likewise.
5647 (gomp_release_thread_pool): Likewise.
5648 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
5649 Likewise.
5650
5651 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
5652
5653 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
5654 thread pool in case nthreads == 1.
5655
5656 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
5657
5658 * config/nvptx/env.c: Delete.
5659 * icv.c: Move definitions of ICV variables back ...
5660 * env.c: ...here. Do not compile environment-related functionality if
5661 LIBGOMP_OFFLOADED_ONLY is set.
5662
5663 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
5664
5665 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
5666 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
5667 * configure: Regenerate.
5668 * config.h.in: Likewise.
5669
5670 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
5671
5672 * Makefile.in: Regenerate with automake-1.11.6.
5673 * aclocal.m4: Likewise.
5674 * configure: Likewise.
5675 * testsuite/Makefile.in: Likewise.
5676
5677 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
5678
5679 * config/nvptx/critical.c: Delete to use generic implementation.
5680
5681 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
5682
5683 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
5684 ../../affinity.c as fallback.
5685 * config/nvptx/affinity.c: Delete to use fallback implementation.
5686
5687 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
5688 Jakub Jelinek <jakub@redhat.com>
5689 Dmitry Melnik <dm@ispras.ru>
5690
5691 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
5692 * Makefile.in. Regenerate.
5693 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
5694 (LIBGOMP_USE_PTHREADS): ...here; new define.
5695 * configure: Regenerate.
5696 * config.h.in: Likewise.
5697 * config/posix/affinity.c: Move to...
5698 * affinity.c: ...here (new file). Guard use of Pthreads-specific
5699 interface by LIBGOMP_USE_PTHREADS.
5700 * critical.c: Split out GOMP_atomic_{start,end} into...
5701 * atomic.c: ...here (new file).
5702 * env.c: Split out ICV definitions into...
5703 * icv.c: ...here (new file) and...
5704 * icv-device.c: ...here. New file.
5705 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
5706 (gomp_destroy_lock_30): Ditto.
5707 (gomp_set_lock_30): Ditto.
5708 (gomp_unset_lock_30): Ditto.
5709 (gomp_test_lock_30): Ditto.
5710 (gomp_init_nest_lock_30): Ditto.
5711 (gomp_destroy_nest_lock_30): Ditto.
5712 (gomp_set_nest_lock_30): Ditto.
5713 (gomp_unset_nest_lock_30): Ditto.
5714 (gomp_test_nest_lock_30): Ditto.
5715 * lock.c: New.
5716 * config/nvptx/lock.c: New.
5717 * config/nvptx/bar.c: New.
5718 * config/nvptx/bar.h: New.
5719 * config/nvptx/doacross.h: New.
5720 * config/nvptx/error.c: New.
5721 * config/nvptx/icv-device.c: New.
5722 * config/nvptx/mutex.h: New.
5723 * config/nvptx/pool.h: New.
5724 * config/nvptx/proc.c: New.
5725 * config/nvptx/ptrlock.h: New.
5726 * config/nvptx/sem.h: New.
5727 * config/nvptx/simple-bar.h: New.
5728 * config/nvptx/target.c: New.
5729 * config/nvptx/task.c: New.
5730 * config/nvptx/team.c: New.
5731 * config/nvptx/time.c: New.
5732 * config/posix/simple-bar.h: New.
5733 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
5734 (gomp_num_teams_var): Declare.
5735 (struct gomp_thread_pool): Change threads_dock member to
5736 gomp_simple_barrier_t.
5737 [__nvptx__] (gomp_thread): New implementation.
5738 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
5739 (gomp_thread_destructor): Ditto.
5740 (gomp_init_thread_affinity): Ditto.
5741 * team.c: Guard uses of Pthreads-specific interfaces by
5742 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
5743 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
5744 * config/nvptx/alloc.c: Delete.
5745 * config/nvptx/barrier.c: Ditto.
5746 * config/nvptx/fortran.c: Ditto.
5747 * config/nvptx/iter.c: Ditto.
5748 * config/nvptx/iter_ull.c: Ditto.
5749 * config/nvptx/loop.c: Ditto.
5750 * config/nvptx/loop_ull.c: Ditto.
5751 * config/nvptx/ordered.c: Ditto.
5752 * config/nvptx/parallel.c: Ditto.
5753 * config/nvptx/priority_queue.c: Ditto.
5754 * config/nvptx/sections.c: Ditto.
5755 * config/nvptx/single.c: Ditto.
5756 * config/nvptx/splay-tree.c: Ditto.
5757 * config/nvptx/work.c: Ditto.
5758 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
5759 -foffload=-lgfortran in addition to -lgfortran.
5760 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
5761 * plugin/plugin-nvptx.c: Include <limits.h>.
5762 (struct targ_fn_descriptor): Add new fields.
5763 (struct ptx_device): Ditto. Set them...
5764 (nvptx_open_device): ...here.
5765 (nvptx_adjust_launch_bounds): New.
5766 (nvptx_host2dev): Allow NULL 'nvthd'.
5767 (nvptx_dev2host): Ditto.
5768 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
5769 (link_ptx): Adjust log sizes.
5770 (nvptx_host2dev): Allow NULL 'nvthd'.
5771 (nvptx_dev2host): Ditto.
5772 (nvptx_set_clocktick): New. Use it...
5773 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
5774 fields.
5775 (GOMP_OFFLOAD_dev2dev): New.
5776 (nvptx_adjust_launch_bounds): New.
5777 (nvptx_stacks_size): New.
5778 (nvptx_stacks_alloc): New.
5779 (nvptx_stacks_free): New.
5780 (GOMP_OFFLOAD_run): New.
5781 (GOMP_OFFLOAD_async_run): New (stub).
5782
5783 2016-11-23 Martin Jambor <mjambor@suse.cz>
5784
5785 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
5786 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
5787 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
5788
5789 2016-11-23 Martin Liska <mliska@suse.cz>
5790 Martin Jambor <mjambor@suse.cz>
5791
5792 * plugin/hsa.h: New file.
5793 * plugin/hsa_ext_finalize.h: New file.
5794 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
5795 header file unistd.h, and functions secure_getenv, __secure_getenv,
5796 getuid, geteuid, getgid and getegid.
5797 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
5798 -D_GNU_SOURCE.
5799 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
5800 Handle various cases of secure_getenv presence, add an implementation
5801 when we can test effective UID and GID.
5802 (struct hsa_runtime_fn_info): New structure.
5803 (hsa_runtime_fn_info hsa_fns): New variable.
5804 (hsa_runtime_lib): Likewise.
5805 (support_cpu_devices): Likewise.
5806 (init_enviroment_variables): Load newly introduced ENV
5807 variables.
5808 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
5809 (hsa_fatal): Likewise.
5810 (DLSYM_FN): New macro.
5811 (init_hsa_runtime_functions): New function.
5812 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
5813 structure. Depending on environment, also allow CPU devices.
5814 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
5815 (get_kernarg_memory_region): Likewise.
5816 (GOMP_OFFLOAD_init_device): Likewise.
5817 (destroy_hsa_program): Likewise.
5818 (init_basic_kernel_info): New function.
5819 (GOMP_OFFLOAD_load_image): Use it.
5820 (create_and_finalize_hsa_program): Call hsa run-time functions via
5821 hsa_fns structure.
5822 (create_single_kernel_dispatch): Likewise.
5823 (release_kernel_dispatch): Likewise.
5824 (init_single_kernel): Likewise.
5825 (parse_target_attributes): Allow up multiple HSA grid dimensions.
5826 (get_group_size): New function.
5827 (run_kernel): Likewise.
5828 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
5829 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
5830 structure.
5831 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
5832 * testsuite/libgomp-test-support.exp.in: Likewise.
5833 * Makefile.in: Regenerated.
5834 * aclocal.m4: Likewise.
5835 * config.h.in: Likewise.
5836 * configure: Likewise.
5837 * testsuite/Makefile.in: Likewise.
5838
5839 2016-11-15 Martin Jambor <mjambor@suse.cz>
5840 Alexander Monakov <amonakov@ispras.ru>
5841
5842 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
5843 mapping clauses to target constructs.
5844 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
5845
5846 2016-11-15 Matthias Klose <doko@ubuntu.com>
5847
5848 * configure: Regenerate.
5849
5850 2016-11-10 Jakub Jelinek <jakub@redhat.com>
5851
5852 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
5853 * omp_lib.h.in (openmp_version): Likewise.
5854 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
5855 of 201307.
5856 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
5857
5858 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
5859 (fib_wrapper): Add map(from: x) clause.
5860 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
5861 (e_53_2): Likewise.
5862 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
5863 (accum): Add map(tmp) clause.
5864 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
5865 (accum): Add map(tofrom: tmp) clause.
5866 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
5867 (gramSchmidt): Likewise.
5868 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
5869 map(tofrom: sum) clause.
5870 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
5871 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
5872 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
5873 only allowed on the loop iterator.
5874 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
5875 * testsuite/libgomp.fortran/taskloop2.f90: New test.
5876 * testsuite/libgomp.fortran/taskloop4.f90: New test.
5877 * testsuite/libgomp.fortran/doacross1.f90: New test.
5878 * testsuite/libgomp.fortran/doacross3.f90: New test.
5879 * testsuite/libgomp.fortran/taskloop1.f90: New test.
5880 * testsuite/libgomp.fortran/taskloop3.f90: New test.
5881 * testsuite/libgomp.fortran/doacross2.f90: New test.
5882 * testsuite/libgomp.c/doacross-1.c (main): Add missing
5883 #pragma omp atomic read.
5884 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
5885 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
5886
5887 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
5888 Nathan Sidwell <nathan@acm.org>
5889
5890 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
5891 to determine default geometry.
5892 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
5893 dimension.
5894
5895 2016-11-01 Jakub Jelinek <jakub@redhat.com>
5896
5897 * hashtab.h: Use standard GPLv3 with runtime exception
5898 boilerplate.
5899
5900 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
5901
5902 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
5903 size when allocating new thread.
5904
5905 2016-09-14 Marek Polacek <polacek@redhat.com>
5906
5907 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
5908
5909 2016-08-19 Jakub Jelinek <jakub@redhat.com>
5910
5911 PR fortran/71014
5912 * testsuite/libgomp.fortran/pr71014.f90: New test.
5913
5914 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
5915
5916 PR middle-end/70895
5917 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
5918 firstprivate clauses.
5919 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
5920 copy clauses.
5921 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5922 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
5923 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
5924 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
5925 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5926 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
5927 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5928 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
5929 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5930 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5931 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5932 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
5933
5934 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
5935
5936 PR fortran/70598
5937 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
5938
5939 2016-08-08 Jakub Jelinek <jakub@redhat.com>
5940
5941 PR c++/58706
5942 * testsuite/libgomp.c++/pr58706.C: New test.
5943
5944 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
5945
5946 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
5947 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
5948 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
5949 Likewise.
5950 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
5951 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
5952 Likewise.
5953 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
5954
5955 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
5956 test, and don't hardcode -O0.
5957
5958 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
5959
5960 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
5961
5962 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
5963
5964 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
5965 test.
5966
5967 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
5968
5969 PR middle-end/71734
5970 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
5971 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
5972
5973 2016-07-01 Jakub Jelinek <jakub@redhat.com>
5974
5975 PR fortran/71717
5976 * testsuite/libgomp.fortran/associate3.f90: New test.
5977
5978 2016-06-17 Jakub Jelinek <jakub@redhat.com>
5979
5980 * testsuite/libgomp.c++/target-21.C: New test.
5981
5982 2016-06-16 Jakub Jelinek <jakub@redhat.com>
5983
5984 * testsuite/libgomp.c++/target-20.C: New test.
5985
5986 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
5987 Cesar Philippidis <cesar@codesourcery.com>
5988
5989 PR middle-end/71373
5990 * libgomp.oacc-c/nested-function-1.c: New file.
5991 * libgomp.oacc-c/nested-function-2.c: Likewise.
5992 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
5993 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
5994 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
5995
5996 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
5997
5998 PR c/71381
5999 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
6000 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
6001 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
6002
6003 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
6004
6005 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
6006 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
6007
6008 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
6009
6010 PR c/70688
6011 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
6012
6013 2016-05-26 Jakub Jelinek <jakub@redhat.com>
6014
6015 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
6016 instead of invalid schedule(static, 0).
6017 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
6018
6019 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
6020
6021 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
6022 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
6023 parameter, use to set async stream around call to gomp_unmap_vars,
6024 call gomp_unmap_vars() with 'do_copyfrom' set to true.
6025 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
6026 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
6027 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
6028 (event_add): Add int parameter, initialize 'val' field when
6029 adding new ptx_event struct.
6030 (nvptx_evec): Adjust event_add() call arguments.
6031 (nvptx_host2dev): Likewise.
6032 (nvptx_dev2host): Likewise.
6033 (nvptx_wait_async): Likewise.
6034 (nvptx_wait_all_async): Likewise.
6035 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
6036 pass to event_add() call.
6037 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
6038 parameter.
6039 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
6040 call openacc.register_async_cleanup_func() hook.
6041 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
6042 * target.c (gomp_copy_from_async): Delete function.
6043 (gomp_map_vars): Remove async_refcount.
6044 (gomp_unmap_vars): Likewise.
6045 (gomp_load_image_to_device): Likewise.
6046 (omp_target_associate_ptr): Likewise.
6047 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
6048 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
6049 (gomp_copy_from_async): Remove.
6050
6051 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
6052
6053 * target.c (gomp_device_copy): New function.
6054 (gomp_copy_host2dev): Likewise.
6055 (gomp_copy_dev2host): Likewise.
6056 (gomp_free_device_memory): Likewise.
6057 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
6058 (gomp_map_pointer): Likewise.
6059 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
6060 NULL value from alloc_func plugin hook.
6061 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
6062 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
6063 (gomp_unmap_vars): Likewise.
6064 (gomp_update): Adjust to call gomp_copy_dev2host and
6065 gomp_copy_host2dev functions.
6066 (gomp_unload_image_from_device): Handle false value from
6067 unload_image_func plugin hook.
6068 (gomp_init_device): Handle false value from init_device_func
6069 plugin hook.
6070 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
6071 (omp_target_free): Adjust to call gomp_free_device_memory.
6072 (omp_target_memcpy): Handle return values from host2dev_func,
6073 dev2host_func, and dev2dev_func plugin hooks.
6074 (omp_target_memcpy_rect_worker): Likewise.
6075 (gomp_target_fini): Handle false value from fini_device_func
6076 plugin hook.
6077 * libgomp.h (struct gomp_device_descr): Adjust return type of
6078 init_device_func, fini_device_func, unload_image_func, free_func,
6079 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
6080 * oacc-init.c (acc_shutdown_1): Handle false value from
6081 fini_device_func plugin hook.
6082 * oacc-host.c (host_init_device): Change return type to bool.
6083 (host_fini_device): Likewise.
6084 (host_unload_image): Likewise.
6085 (host_free): Likewise.
6086 (host_dev2host): Likewise.
6087 (host_host2dev): Likewise.
6088 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
6089 (acc_memcpy_to_device): Likewise.
6090 (acc_memcpy_from_device): Likewise.
6091 (delete_copyout): Add libfnname parameter, handle free_func
6092 hook fatal error case.
6093 (acc_delete): Adjust delete_copyout call.
6094 (acc_copyout): Likewise.
6095 (update_dev_host): Move gomp_mutex_unlock to after
6096 host2dev/dev2host hook calls.
6097
6098 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
6099 to 'hsa_error_msg', for clarity.
6100 (hsa_fatal): Likewise.
6101 (hsa_error): New function.
6102 (init_hsa_context): Change return type to bool, adjust to return
6103 false on error.
6104 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
6105 return value.
6106 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
6107 return false on error.
6108 (get_agent_info): Adjust to return NULL on error.
6109 (destroy_hsa_program): Change return type to bool, adjust to
6110 return false on error.
6111 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
6112 (destroy_module): Change return type to bool, adjust to
6113 return false on error.
6114 (GOMP_OFFLOAD_unload_image): Likewise.
6115 (GOMP_OFFLOAD_fini_device): Likewise.
6116 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
6117 (GOMP_OFFLOAD_free): Change to return false when called.
6118 (GOMP_OFFLOAD_dev2host): Likewise.
6119 (GOMP_OFFLOAD_host2dev): Likewise.
6120 (GOMP_OFFLOAD_dev2dev): Likewise.
6121
6122 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
6123 (CUDA_CALL): Likewise.
6124 (CUDA_CALL_ASSERT): Likewise.
6125 (map_init): Change return type to bool, use CUDA_CALL* macros.
6126 (map_fini): Likewise.
6127 (init_streams_for_device): Change return type to bool, adjust
6128 call to map_init.
6129 (fini_streams_for_device): Change return type to bool, adjust
6130 call to map_fini.
6131 (select_stream_for_async): Release stream_lock before calls to
6132 GOMP_PLUGIN_fatal, adjust call to map_init.
6133 (nvptx_init): Use CUDA_CALL* macros.
6134 (nvptx_attach_host_thread_to_device): Change return type to bool,
6135 use CUDA_CALL* macros.
6136 (nvptx_open_device): Use CUDA_CALL* macros.
6137 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
6138 macros.
6139 (nvptx_get_num_devices): Use CUDA_CALL* macros.
6140 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
6141 (nvptx_exec): Use CUDA_CALL* macros.
6142 (nvptx_alloc): Use CUDA_CALL* macros.
6143 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
6144 (nvptx_host2dev): Likewise.
6145 (nvptx_dev2host): Likewise.
6146 (nvptx_wait): Use CUDA_CALL* macros.
6147 (nvptx_wait_async): Likewise.
6148 (nvptx_wait_all): Likewise.
6149 (nvptx_wait_all_async): Likewise.
6150 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
6151 use CUDA_CALL* macros, adjust call to map_fini.
6152 (GOMP_OFFLOAD_init_device): Change return type to bool,
6153 adjust code accordingly.
6154 (GOMP_OFFLOAD_fini_device): Likewise.
6155 (GOMP_OFFLOAD_load_image): Adjust calls to
6156 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
6157 use CUDA_CALL* macros.
6158 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
6159 return code.
6160 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
6161 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
6162 handle error return.
6163 (GOMP_OFFLOAD_dev2host): Likewise.
6164 (GOMP_OFFLOAD_host2dev): Likewise.
6165 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
6166 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
6167
6168 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
6169
6170 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
6171 (acc_free): Likewise.
6172 (acc_memcpy_to_device): Likewise.
6173 (acc_memcpy_from_device): Likewise.
6174 (acc_deviceptr): Likewise.
6175 (acc_hostptr): Likewise.
6176 (acc_is_present): Likewise.
6177 (acc_map_data): Likewise.
6178 (acc_unmap_data): Likewise.
6179 (present_create_copy): Likewise.
6180 (delete_copyout): Likewise.
6181 (update_dev_host): Likewise.
6182 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
6183 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
6184 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
6185 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
6186 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
6187 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
6188 it only runs on nvptx targets.
6189 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
6190 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
6191 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6192 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6193 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6194 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6195 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6196 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6197 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6198 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
6199 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6200 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6201 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6202 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6203 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6204 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6205 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6206 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6207 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6208 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6209 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6210 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6211 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6212
6213 2016-05-23 Martin Jambor <mjambor@suse.cz>
6214
6215 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
6216
6217 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
6218
6219 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
6220 to gomp_init_targets_once.
6221 (acc_set_device_type): Remove !cached_base_dev condition on call to
6222 gomp_init_targets_once, move call to before acc_device_lock acquire,
6223 to avoid deadlock.
6224 (acc_get_device_num): Remove !cached_base_dev condition on call to
6225 gomp_init_targets_once.
6226 (acc_set_device_num): Likewise.
6227
6228 2016-05-16 Martin Jambor <mjambor@suse.cz>
6229
6230 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
6231
6232 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
6233
6234 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
6235 expected partitioning.
6236
6237 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
6238
6239 PR middle-end/70626
6240 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
6241 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
6242 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
6243
6244 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
6245
6246 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
6247 non-fatal.
6248
6249 2016-04-19 Jakub Jelinek <jakub@redhat.com>
6250
6251 PR middle-end/70680
6252 * testsuite/libgomp.c/pr70680-1.c: New test.
6253 * testsuite/libgomp.c/pr70680-2.c: New test.
6254
6255 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
6256
6257 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
6258 pass parameter variables to subroutines.
6259
6260 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
6261
6262 PR middle-end/70643
6263 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
6264
6265 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
6266
6267 PR testsuite/68242
6268 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
6269 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6270
6271 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
6272
6273 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
6274 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
6275 GOACC_declare prototype.
6276
6277 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
6278 Merge this file, and...
6279 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
6280 ... this file, and...
6281 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
6282 ... this file, and...
6283 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
6284 ... this file, and...
6285 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
6286 ... this file, and...
6287 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
6288 ... this file, and...
6289 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
6290 ... this file, and...
6291 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
6292 ... this file, and...
6293 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
6294 ... this file, and...
6295 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
6296 ... this file, and...
6297 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
6298 ... this file, and...
6299 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
6300 ... this file, and...
6301 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
6302 ... this file into...
6303 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
6304 file.
6305
6306 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
6307 Make failure observable.
6308
6309 2016-04-12 Jakub Jelinek <jakub@redhat.com>
6310
6311 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
6312 field.
6313 * target.c (gomp_target_fallback_firstprivate,
6314 gomp_target_unshare_firstprivate): Removed.
6315 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
6316 before waiting for dependencies.
6317 (gomp_target_task_fn): Don't copy firstprivate vars here.
6318 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
6319 firstprivate_copies here.
6320 (gomp_create_target_task): Don't initialize firstprivate_copies field.
6321 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
6322 explicit/implicit firstprivate.
6323
6324 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
6325
6326 PR lto/70289
6327 PR ipa/70348
6328 PR tree-optimization/70373
6329 PR middle-end/70533
6330 PR middle-end/70534
6331 PR middle-end/70535
6332 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
6333 test.
6334 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
6335 test.
6336 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
6337 test.
6338 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
6339 test.
6340 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
6341 test.
6342 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
6343 test.
6344 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
6345 test.
6346 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
6347 test.
6348 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
6349 test.
6350 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
6351 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
6352 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
6353 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
6354 test.
6355 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
6356 test.
6357 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
6358 test.
6359 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
6360 test.
6361 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
6362 coverage.
6363 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6364 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
6365 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
6366 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
6367 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
6368 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
6369 coverage.
6370 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6371 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6372 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6373 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6374 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
6375 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
6376 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
6377 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
6378 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
6379 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
6380 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
6381 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
6382 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6383 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6384 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
6385
6386 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
6387 James Norris <jnorris@codesourcery.com>
6388 Nathan Sidwell <nathan@codesourcery.com>
6389 Julian Brown <julian@codesourcery.com>
6390 Cesar Philippidis <cesar@codesourcery.com>
6391 Chung-Lin Tang <cltang@codesourcery.com>
6392 Tom de Vries <tom@codesourcery.com>
6393
6394 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
6395 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
6396 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
6397 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
6398 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
6399 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
6400 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
6401 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
6402 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
6403 XFAIL.
6404 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
6405 Incorporate...
6406 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
6407 file.
6408 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
6409 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
6410 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
6411 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
6412 Likewise.
6413 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
6414 Likewise.
6415 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
6416 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
6417 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
6418 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
6419 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
6420 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
6421 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
6422 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
6423 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
6424 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
6425 Likewise.
6426 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
6427 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
6428 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
6429 file...
6430 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
6431 file into...
6432 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
6433 file. Update.
6434 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
6435 file.
6436 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
6437 Likewise.
6438 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
6439 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
6440 ... this new file. Update.
6441 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
6442 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
6443 ... this new file. Update.
6444 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
6445 file. Incorporate...
6446 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
6447 file, and...
6448 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
6449 file, and...
6450 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
6451 file.
6452 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
6453
6454 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
6455
6456 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
6457 set-torture-options.
6458
6459 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
6460
6461 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
6462 gcc-dg-runtest.
6463 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6464 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
6465 -fno-builtin-acc_on_device instead of -O0.
6466 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
6467 -O0.
6468 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
6469 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
6470 Likewise.
6471 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
6472 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
6473 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
6474 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
6475 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
6476 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
6477 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
6478 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6479 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6480 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
6481 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6482 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
6483 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
6484 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
6485 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
6486 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
6487 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
6488 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
6489 Don't specify -O2.
6490 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
6491 Likewise.
6492 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
6493 Likewise.
6494
6495 2016-03-24 Martin Liska <mliska@suse.cz>
6496
6497 * plugin/plugin-hsa.c (packet_store_release): New function
6498 that is taken from the HSA runtime manual.
6499 (GOMP_OFFLOAD_run): Use the function.
6500
6501 2016-03-23 Jakub Jelinek <jakub@redhat.com>
6502
6503 PR c++/70376
6504 * testsuite/libgomp.c++/pr70376.C: New test.
6505
6506 2016-03-23 Tom de Vries <tom@codesourcery.com>
6507
6508 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
6509 initialization of lresult and lvresult.
6510 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
6511
6512 2016-03-23 James Norris <jnorris@codesourcery.com>
6513 Daichi Fukuoka <dc-fukuoka@sgi.com>
6514
6515 PR libgomp/69414
6516 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
6517 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
6518 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
6519 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
6520
6521 2016-03-23 Martin Liska <mliska@suse.cz>
6522
6523 PR hsa/70337
6524 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
6525 argument just in case a dispatched kernel uses that argument.
6526
6527 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
6528
6529 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
6530 -ftree-parallelize-loops/-fopenacc changes.
6531 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
6532 Likewise.
6533 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
6534 Likewise.
6535 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
6536 Likewise.
6537 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
6538 Likewise.
6539 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
6540 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
6541
6542 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
6543
6544 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
6545 always_ld_library_path the path to libgcc_s.
6546
6547 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
6548
6549 PR testsuite/70009
6550 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
6551
6552 2016-03-09 Tom de Vries <tom@codesourcery.com>
6553
6554 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
6555 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
6556 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
6557 Same.
6558 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
6559 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
6560 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
6561 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
6562
6563 2016-03-07 Martin Jambor <mjambor@suse.cz>
6564
6565 * testsuite/lib/libgomp.exp
6566 (check_effective_target_hsa_offloading_selected_nocache): New.
6567 (check_effective_target_hsa_offloading_selected): Likewise.
6568 * testsuite/libgomp.hsa.c/c.exp: Likewise.
6569 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
6570 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
6571 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
6572 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
6573 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
6574 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
6575 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
6576 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
6577 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
6578 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
6579 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
6580 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
6581 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
6582 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
6583 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
6584 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
6585
6586 2016-03-07 Martin Jambor <mjambor@suse.cz>
6587
6588 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
6589 non-shared memory accelerators.
6590 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
6591 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
6592 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
6593 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
6594 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
6595 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
6596 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
6597 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
6598 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
6599
6600 2016-03-07 Martin Jambor <mjambor@suse.cz>
6601
6602 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
6603 ALWAYS_CFLAGS.
6604
6605 2016-03-02 Jakub Jelinek <jakub@redhat.com>
6606
6607 PR libgomp/69555
6608 * testsuite/libgomp.c++/pr69555-1.C: New test.
6609 * testsuite/libgomp.c++/pr69555-2.C: New test.
6610
6611 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
6612 Martin Jambor <mjambor@suse.cz>
6613
6614 * testsuite/lib/libgomp.exp
6615 (check_effective_target_offload_device_shared_as): New proc.
6616 * testsuite/libgomp.c++/declare_target-1.C: New test.
6617
6618 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
6619
6620 PR driver/68463
6621 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
6622
6623 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
6624
6625 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
6626 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
6627 dims.
6628 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
6629 -ftree-parallelize-loops/-fopenacc changes.
6630 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
6631 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
6632 Likewise.
6633 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
6634 Likewise.
6635 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
6636 Likewise.
6637 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
6638 Likewise.
6639 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
6640 Likewise.
6641 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
6642 Likewise.
6643 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
6644 Likewise.
6645 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
6646 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
6647 Likewise.
6648 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
6649 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
6650 Likewise.
6651 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
6652 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
6653 Likewise.
6654
6655 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
6656
6657 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
6658
6659 2016-02-19 Jakub Jelinek <jakub@redhat.com>
6660
6661 PR driver/69805
6662 * testsuite/libgomp.c/pr69805.c: New test.
6663
6664 2016-02-16 Tom de Vries <tom@codesourcery.com>
6665
6666 PR lto/67709
6667 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
6668
6669 2016-02-09 Tom de Vries <tom@codesourcery.com>
6670
6671 PR tree-optimization/69599
6672 * testsuite/libgomp.c/omp-nested-3.c: New test.
6673 * testsuite/libgomp.c/pr46032-2.c: New test.
6674 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
6675 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
6676
6677 2016-02-09 Tom de Vries <tom@codesourcery.com>
6678
6679 PR lto/69707
6680 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
6681
6682 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
6683
6684 * testsuite/libgomp.c/target-31.c: Fix testcase.
6685
6686 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
6687
6688 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
6689 clause.
6690 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
6691 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
6692 reduction and map clauses.
6693 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
6694
6695 2016-02-02 James Norris <jnorris@codesourcery.com>
6696
6697 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
6698
6699 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
6700
6701 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
6702 * oacc-parallel.c (GOACC_host_data): Remove function definition.
6703
6704 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
6705 cases.
6706
6707 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
6708 variables.
6709 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
6710 (hsa_kmt_lib): Set variables.
6711 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
6712 always_ld_library_path.
6713 * Makefile.in: Regenerate.
6714 * configure: Likewise.
6715 * testsuite/Makefile.in: Likewise.
6716
6717 * plugin/configfrag.ac (offload_additional_options)
6718 (offload_additional_lib_paths): Don't amend for hsa offloading.
6719 * configure: Regenerate.
6720
6721 * plugin/configfrag.ac: Don't configure for offloading target if
6722 we don't build the corresponding plugin.
6723 * configure: Regenerate.
6724
6725 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
6726
6727 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
6728 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
6729
6730 2016-01-26 Tom de Vries <tom@codesourcery.com>
6731
6732 PR tree-optimization/69110
6733 * testsuite/libgomp.c/pr69110.c: New test.
6734
6735 2016-01-25 Richard Biener <rguenther@suse.de>
6736
6737 PR lto/69393
6738 * testsuite/libgomp.c++/pr69393.C: New testcase.
6739
6740 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
6741
6742 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
6743 function wasn't mapped to the device with non-shared memory.
6744
6745 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
6746
6747 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
6748
6749 2016-01-19 Martin Jambor <mjambor@suse.cz>
6750 Martin Liska <mliska@suse.cz>
6751
6752 * plugin/Makefrag.am: Add HSA plugin requirements.
6753 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
6754 (HSA_RUNTIME_LIB): Likewise.
6755 (HSA_RUNTIME_CPPFLAGS): Likewise.
6756 (HSA_RUNTIME_INCLUDE): New substitution.
6757 (HSA_RUNTIME_LIB): Likewise.
6758 (HSA_RUNTIME_LDFLAGS): Likewise.
6759 (hsa-runtime): New configure option.
6760 (hsa-runtime-include): Likewise.
6761 (hsa-runtime-lib): Likewise.
6762 (PLUGIN_HSA): New substitution variable.
6763 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
6764 configure options.
6765 (PLUGIN_HSA_CPPFLAGS): Likewise.
6766 (PLUGIN_HSA_LDFLAGS): Likewise.
6767 (PLUGIN_HSA_LIBS): Likewise.
6768 Check that we have access to HSA run-time.
6769 * libgomp-plugin.h (offload_target_type): New element
6770 OFFLOAD_TARGET_TYPE_HSA.
6771 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
6772 args.
6773 (bool gomp_create_target_task): Updated.
6774 (gomp_device_descr): Extra parameter of run_func and async_run_func,
6775 new field can_run_func.
6776 * libgomp_g.h (GOMP_target_ext): Update prototype.
6777 * oacc-host.c (host_run): Added a new parameter args.
6778 * target.c (calculate_firstprivate_requirements): New function.
6779 (copy_firstprivate_data): Likewise.
6780 (gomp_target_fallback_firstprivate): Use them.
6781 (gomp_target_unshare_firstprivate): New function.
6782 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
6783 devices.
6784 (GOMP_target): Do host fallback for all shared memory devices. Do not
6785 pass any args to plugins.
6786 (GOMP_target_ext): Introduce device-specific argument parameter args.
6787 Allow host fallback if device shares memory. Do not remap data if
6788 device has shared memory.
6789 (gomp_target_task_fn): Likewise. Also treat shared memory devices
6790 like host fallback for mappings.
6791 (GOMP_target_data): Treat shared memory devices like host fallback.
6792 (GOMP_target_data_ext): Likewise.
6793 (GOMP_target_update): Likewise.
6794 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
6795 gomp_create_target_task.
6796 (GOMP_target_enter_exit_data): Likewise.
6797 (omp_target_alloc): Treat shared memory devices like host fallback.
6798 (omp_target_free): Likewise.
6799 (omp_target_is_present): Likewise.
6800 (omp_target_memcpy): Likewise.
6801 (omp_target_memcpy_rect): Likewise.
6802 (omp_target_associate_ptr): Likewise.
6803 (gomp_load_plugin_for_device): Also load can_run.
6804 * task.c (GOMP_PLUGIN_target_task_completion): Free
6805 firstprivate_copies.
6806 (gomp_create_target_task): Accept new argument args and store it to
6807 ttask.
6808 * plugin/plugin-hsa.c: New file.
6809
6810 2016-01-18 Tom de Vries <tom@codesourcery.com>
6811
6812 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
6813 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
6814 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
6815 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
6816 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
6817 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
6818 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
6819 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
6820 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
6821 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
6822 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
6823 Same.
6824 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
6825 Same.
6826 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
6827 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
6828 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
6829 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
6830 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
6831 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
6832 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
6833 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
6834 Same.
6835 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
6836
6837 2016-01-15 Jakub Jelinek <jakub@redhat.com>
6838
6839 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
6840
6841 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
6842
6843 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
6844
6845 2016-01-12 James Norris <jnorris@codesourcery.com>
6846
6847 * libgomp.texi: Updates for OpenACC.
6848
6849 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
6850
6851 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
6852
6853 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
6854
6855 PR fortran/66680
6856 * testsuite/libgomp.fortran/pr66680.f90: New test.
6857
6858 2016-01-07 Jakub Jelinek <jakub@redhat.com>
6859
6860 PR middle-end/68960
6861 * testsuite/libgomp.c/pr68960.c: New test.
6862
6863 2016-01-06 Nathan Sidwell <nathan@acm.org>
6864
6865 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
6866 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
6867
6868 2016-01-04 Jakub Jelinek <jakub@redhat.com>
6869
6870 Update copyright years.
6871
6872 * libgomp.texi: Bump @copying's copyright year.
6873
6874 2015-12-31 Nathan Sidwell <nathan@acm.org>
6875
6876 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
6877 dg-additional-options syntax.
6878 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
6879 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
6880 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
6881 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
6882 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
6883 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
6884 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
6885 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
6886 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
6887 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
6888 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
6889 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
6890 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6891 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
6892 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
6893 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
6894 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
6895 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6896
6897 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
6898
6899 * libgomp.h (REFCOUNT_LINK): Define.
6900 (struct splay_tree_key_s): Add link_key.
6901 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
6902 Replace target address of the pointer with target address of newly
6903 mapped object in the splay tree. Set link pointer on target to the
6904 device address of the mapped object.
6905 (gomp_unmap_vars): Restore target address of the pointer in the splay
6906 tree for REFCOUNT_LINK objects after unmapping.
6907 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
6908 declare target link" objects.
6909 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
6910 "omp declare target link" objects, which were mapped for the image.
6911 (gomp_exit_data): Restore target address of the pointer in the splay
6912 tree for REFCOUNT_LINK objects after unmapping.
6913 * testsuite/libgomp.c/target-link-1.c: New file.
6914
6915 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
6916
6917 * libgomp.h (gomp_device_state): New enum.
6918 (struct gomp_device_descr): Replace is_initialized with state.
6919 (gomp_fini_device): Remove declaration.
6920 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
6921 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
6922 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
6923 (acc_set_device_type): Use state instead of is_initialized.
6924 (acc_set_device_num): Likewise.
6925 * target.c (resolve_device): Use state instead of is_initialized.
6926 Do not initialize finalized device.
6927 (gomp_map_vars): Do nothing if device is finalized.
6928 (gomp_unmap_vars): Likewise.
6929 (gomp_update): Likewise.
6930 (GOMP_offload_register_ver): Use state instead of is_initialized.
6931 (GOMP_offload_unregister_ver): Likewise.
6932 (gomp_init_device): Likewise.
6933 (gomp_unload_device): Likewise.
6934 (gomp_fini_device): Remove.
6935 (gomp_get_target_fn_addr): Do nothing if device is finalized.
6936 (GOMP_target): Go to host fallback if device is finalized.
6937 (GOMP_target_ext): Likewise.
6938 (gomp_exit_data): Do nothing if device is finalized.
6939 (gomp_target_task_fn): Go to host fallback if device is finalized.
6940 (gomp_target_fini): New static function.
6941 (gomp_target_init): Use state instead of is_initialized.
6942 Call gomp_target_fini at exit.
6943
6944 2015-12-09 Tom de Vries <tom@codesourcery.com>
6945
6946 PR tree-optimization/68716
6947 * testsuite/libgomp.c/omp-nested-2.c: New test.
6948
6949 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
6950
6951 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
6952 target openacc_nvidia_accel_selected.
6953 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
6954 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
6955 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
6956 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
6957
6958 2015-12-01 Julian Brown <julian@codesourcery.com>
6959 James Norris <James_Norris@mentor.com>
6960
6961 * oacc-parallel.c (GOACC_host_data): New function.
6962 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
6963 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
6964 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
6965 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
6966 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
6967 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
6968 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
6969
6970 2015-11-30 James Norris <jnorris@codesourcery.com>
6971 Cesar Philippidis <cesar@codesourcery.com>
6972
6973 libgomp/
6974 * libgomp.oacc-fortran/routine-5.f90: New test.
6975 * libgomp.oacc-fortran/routine-7.f90: New test.
6976 * libgomp.oacc-fortran/routine-9.f90: New test.
6977
6978 2015-11-30 Tom de Vries <tom@codesourcery.com>
6979
6980 PR tree-optimization/46032
6981 * testsuite/libgomp.c/pr46032.c: New test.
6982
6983 2015-11-27 Jakub Jelinek <jakub@redhat.com>
6984
6985 PR libgomp/68579
6986 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
6987 (gomp_create_target_task): Call it before freeing
6988 GOMP_TARGET_TASK_DATA tasks.
6989
6990 PR c/63326
6991 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
6992 in between case label and OpenMP standalone directives.
6993 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
6994
6995 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
6996
6997 * configure: Regenerate.
6998
6999 2015-11-26 Jakub Jelinek <jakub@redhat.com>
7000
7001 * testsuite/libgomp.c/target-35.c: New test.
7002
7003 2015-11-22 James Norris <jnorris@codesourcery.com>
7004 Cesar Philippidis <cesar@codesourcery.com>
7005
7006 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
7007 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
7008 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
7009 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
7010 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
7011
7012 2015-11-20 Jakub Jelinek <jakub@redhat.com>
7013
7014 PR middle-end/68221
7015 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
7016 * testsuite/libgomp.c/reduction-12.c: Likewise.
7017 * testsuite/libgomp.c++/reduction-11.C: Likewise.
7018 * testsuite/libgomp.c++/reduction-12.C: Likewise.
7019
7020 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
7021
7022 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
7023 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
7024 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
7025 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
7026 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
7027 and fix.
7028 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
7029 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
7030
7031 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
7032
7033 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
7034 worker & gang cases.
7035 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
7036
7037 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
7038
7039 * config/nvptx/priority_queue.c: New file.
7040
7041 2015-11-14 Jakub Jelinek <jakub@redhat.com>
7042
7043 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
7044 sections.
7045
7046 2015-11-14 Jakub Jelinek <jakub@redhat.com>
7047 Aldy Hernandez <aldyh@redhat.com>
7048 Ilya Verbin <ilya.verbin@intel.com>
7049
7050 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
7051 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
7052 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
7053 iterators or IV by chunk size.
7054 * parallel.c (gomp_resolve_num_threads): Don't assume that
7055 if thr->ts.team is non-NULL, then pool must be non-NULL.
7056 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
7057 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
7058 GOMP_PLUGIN_target_task_completion.
7059 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
7060 * Makefile.in: Regenerate.
7061 * libgomp.h: Shuffle prototypes and forward definitions around so
7062 priority queues can be defined.
7063 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
7064 (enum gomp_target_task_state): New enum.
7065 (struct gomp_target_task): Add state, tgt, task and team fields.
7066 (gomp_create_target_task): Change return type to bool, add
7067 state argument.
7068 (gomp_target_task_fn): Change return type to bool.
7069 (struct gomp_device_descr): Add async_run_func.
7070 (struct gomp_task): Remove children, next_child, prev_child,
7071 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
7072 Add pnode field.
7073 (struct gomp_taskgroup): Remove children.
7074 Add taskgroup_queue.
7075 (struct gomp_team): Change task_queue type to a priority queue.
7076 (splay_compare): Define inline.
7077 (priority_queue_offset): New.
7078 (priority_node_to_task): New.
7079 (task_to_priority_node): New.
7080 * oacc-mem.c: Do not include splay-tree.h.
7081 * priority_queue.c: New file.
7082 * priority_queue.h: New file.
7083 * splay-tree.c: Do not include splay-tree.h.
7084 (splay_tree_foreach_internal): New.
7085 (splay_tree_foreach): New.
7086 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
7087 (splay_tree_callback): Define typedef.
7088 * target.c (splay_compare): Move to libgomp.h.
7089 (GOMP_target): Don't adjust *thr in any way around running offloaded
7090 task.
7091 (GOMP_target_ext): Likewise. Handle target nowait.
7092 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
7093 return value from gomp_create_target_task, if false, fallthrough
7094 as if no dependencies exist.
7095 (gomp_target_task_fn): Change return type to bool, return true
7096 if the task should have another part scheduled later. Handle
7097 target nowait.
7098 (gomp_load_plugin_for_device): Initialize async_run.
7099 * task.c (gomp_init_task): Initialize children_queue.
7100 (gomp_clear_parent_in_list): New.
7101 (gomp_clear_parent_in_tree): New.
7102 (gomp_clear_parent): Handle priorities.
7103 (GOMP_task): Likewise.
7104 (priority_queue_move_task_first,
7105 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
7106 New functions.
7107 (gomp_create_target_task): Use priority queues. Change return type
7108 to bool, add state argument, return false if for async
7109 {{enter,exit} data,update} constructs no dependencies need to be
7110 waited for, handle target nowait. Set task->fn to NULL instead of
7111 gomp_target_task_fn.
7112 (verify_children_queue): Remove.
7113 (priority_list_upgrade_task): New.
7114 (priority_queue_upgrade_task): New.
7115 (verify_task_queue): Remove.
7116 (priority_list_downgrade_task): New.
7117 (priority_queue_downgrade_task): New.
7118 (gomp_task_run_pre): Use priority queues.
7119 Abstract code out to priority_queue_downgrade_task.
7120 (gomp_task_run_post_handle_dependers): Use priority queues.
7121 (gomp_task_run_post_remove_parent): Likewise.
7122 (gomp_task_run_post_remove_taskgroup): Likewise.
7123 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
7124 tasks specially.
7125 (GOMP_taskwait): Likewise.
7126 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
7127 priority-queue_upgrade_task.
7128 (GOMP_taskgroup_start): Use priority queues.
7129 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
7130 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
7131 barrier.
7132 * taskloop.c (GOMP_taskloop): Handle priorities.
7133 * team.c (gomp_new_team): Call priority_queue_init.
7134 (free_team): Call priority_queue_free.
7135 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
7136 team created for target nowait in implicit parallel region.
7137 (gomp_team_start): For nested check, test thr->ts.level instead of
7138 thr->ts.team != NULL.
7139 * testsuite/libgomp.c/doacross-3.c: New test.
7140 * testsuite/libgomp.c/ordered-5.c: New test.
7141 * testsuite/libgomp.c/priority.c: New test.
7142 * testsuite/libgomp.c/target-31.c: New test.
7143 * testsuite/libgomp.c/target-32.c: New test.
7144 * testsuite/libgomp.c/target-33.c: New test.
7145 * testsuite/libgomp.c/target-34.c: New test.
7146
7147 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
7148
7149 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
7150
7151 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
7152 loop is sequential.
7153
7154 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
7155
7156 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
7157 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
7158
7159 2015-11-12 James Norris <jnorris@codesourcery.com>
7160 Joseph Myers <joseph@codesourcery.com>
7161
7162 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
7163 * oacc-parallel.c (GOACC_declare): New function.
7164 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
7165 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
7166 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
7167 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
7168 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
7169
7170 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
7171
7172 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
7173
7174 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
7175
7176 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
7177 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
7178
7179 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
7180
7181 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
7182 inadvertent commit.
7183
7184 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
7185
7186 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
7187 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
7188 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
7189 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
7190 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
7191
7192 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
7193
7194 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
7195 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
7196
7197 2015-11-05 Jakub Jelinek <jakub@redhat.com>
7198 Ilya Verbin <ilya.verbin@intel.com>
7199
7200 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
7201 GOMP_loop_nonmonotonic_dynamic_start,
7202 GOMP_loop_nonmonotonic_guided_next,
7203 GOMP_loop_nonmonotonic_guided_start,
7204 GOMP_loop_ull_nonmonotonic_dynamic_next,
7205 GOMP_loop_ull_nonmonotonic_dynamic_start,
7206 GOMP_loop_ull_nonmonotonic_guided_next,
7207 GOMP_loop_ull_nonmonotonic_guided_start,
7208 GOMP_parallel_loop_nonmonotonic_dynamic,
7209 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
7210 (GOMP_target_41): Renamed to ...
7211 (GOMP_target_ext): ... this. Add num_teams and thread_limit
7212 arguments.
7213 (GOMP_target_data_41): Renamed to ...
7214 (GOMP_target_data_ext): ... this.
7215 (GOMP_target_update_41): Renamed to ...
7216 (GOMP_target_update_ext): ... this.
7217 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
7218 GOMP_target_data_ext and GOMP_target_update_ext instead of
7219 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
7220 Export GOMP_loop_nonmonotonic_dynamic_next,
7221 GOMP_loop_nonmonotonic_dynamic_start,
7222 GOMP_loop_nonmonotonic_guided_next,
7223 GOMP_loop_nonmonotonic_guided_start,
7224 GOMP_loop_ull_nonmonotonic_dynamic_next,
7225 GOMP_loop_ull_nonmonotonic_dynamic_start,
7226 GOMP_loop_ull_nonmonotonic_guided_next,
7227 GOMP_loop_ull_nonmonotonic_guided_start,
7228 GOMP_parallel_loop_nonmonotonic_dynamic and
7229 GOMP_parallel_loop_nonmonotonic_guided.
7230 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
7231 GOMP_parallel_loop_nonmonotonic_guided,
7232 GOMP_loop_nonmonotonic_dynamic_start,
7233 GOMP_loop_nonmonotonic_guided_start,
7234 GOMP_loop_nonmonotonic_dynamic_next,
7235 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
7236 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
7237 GOMP_loop_ull_nonmonotonic_guided_start,
7238 GOMP_loop_ull_nonmonotonic_dynamic_next,
7239 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
7240 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
7241 functions.
7242 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
7243 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
7244 Use gomp_map_val function.
7245 (gomp_target_fallback_firstprivate): New static function.
7246 (GOMP_target_41): Renamed to ...
7247 (GOMP_target_ext): ... this. Add num_teams and thread_limit
7248 arguments. Move firstprivate fallback handling into a new
7249 function.
7250 (GOMP_target_data_41): Renamed to ...
7251 (GOMP_target_data_ext): ... this.
7252 (GOMP_target_update_41): Renamed to ...
7253 (GOMP_target_update_ext): ... this.
7254 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
7255 gomp_map_0len_lookup instead of gomp_map_lookup.
7256 (omp_target_is_present): Use gomp_map_0len_lookup instead of
7257 gomp_map_lookup.
7258 * testsuite/libgomp.c/target-28.c: Likewise.
7259 * testsuite/libgomp.c/monotonic-1.c: New test.
7260 * testsuite/libgomp.c/monotonic-2.c: New test.
7261 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
7262 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
7263 * testsuite/libgomp.c/pr66199-5.c: New test.
7264 * testsuite/libgomp.c/pr66199-6.c: New test.
7265 * testsuite/libgomp.c/pr66199-7.c: New test.
7266 * testsuite/libgomp.c/pr66199-8.c: New test.
7267 * testsuite/libgomp.c/pr66199-9.c: New test.
7268 * testsuite/libgomp.c/reduction-11.c: New test.
7269 * testsuite/libgomp.c/reduction-12.c: New test.
7270 * testsuite/libgomp.c/reduction-13.c: New test.
7271 * testsuite/libgomp.c/reduction-14.c: New test.
7272 * testsuite/libgomp.c/reduction-15.c: New test.
7273 * testsuite/libgomp.c/target-12.c (main): Adjust for
7274 omp_target_is_present change for one-past-last element.
7275 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
7276 the same var is both mapped and privatized.
7277 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
7278 handling of zero-length array sections.
7279 * testsuite/libgomp.c/target-28.c: New test.
7280 * testsuite/libgomp.c/target-29.c: New test.
7281 * testsuite/libgomp.c/target-30.c: New test.
7282 * testsuite/libgomp.c/target-teams-1.c: New test.
7283 * testsuite/libgomp.c++/member-6.C: New test.
7284 * testsuite/libgomp.c++/member-7.C: New test.
7285 * testsuite/libgomp.c++/monotonic-1.C: New test.
7286 * testsuite/libgomp.c++/monotonic-2.C: New test.
7287 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
7288 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
7289 * testsuite/libgomp.c++/pr66199-3.C: New test.
7290 * testsuite/libgomp.c++/pr66199-4.C: New test.
7291 * testsuite/libgomp.c++/pr66199-5.C: New test.
7292 * testsuite/libgomp.c++/pr66199-6.C: New test.
7293 * testsuite/libgomp.c++/pr66199-7.C: New test.
7294 * testsuite/libgomp.c++/pr66199-8.C: New test.
7295 * testsuite/libgomp.c++/pr66199-9.C: New test.
7296 * testsuite/libgomp.c++/reduction-11.C: New test.
7297 * testsuite/libgomp.c++/reduction-12.C: New test.
7298 * testsuite/libgomp.c++/target-13.C: New test.
7299 * testsuite/libgomp.c++/target-14.C: New test.
7300 * testsuite/libgomp.c++/target-15.C: New test.
7301 * testsuite/libgomp.c++/target-16.C: New test.
7302 * testsuite/libgomp.c++/target-17.C: New test.
7303 * testsuite/libgomp.c++/target-18.C: New test.
7304 * testsuite/libgomp.c++/target-19.C: New test.
7305
7306 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
7307
7308 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
7309 and reduction copy.
7310 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
7311 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
7312 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
7313 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
7314 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
7315 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
7316 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
7317 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
7318 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
7319 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
7320 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
7321 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
7322 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
7323 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
7324
7325 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
7326
7327 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
7328 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
7329 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
7330 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
7331 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
7332 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
7333 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
7334 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
7335
7336 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
7337
7338 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
7339 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
7340 (GOMP_OFFLOAD_openacc_parallel): Likewise.
7341 * oacc-host.c (host_openacc_exec): Likewise.
7342 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
7343
7344 2015-11-03 Julian Brown <julian@codesourcery.com>
7345 Thomas Schwinge <thomas@codesourcery.com>
7346
7347 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
7348 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
7349 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
7350 Likewise.
7351 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
7352 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
7353
7354 2015-11-03 James Norris <jnorris@codesourcery.com>
7355
7356 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
7357 file.
7358 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
7359 Likewise.
7360 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
7361 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
7362 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
7363 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
7364 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
7365
7366 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
7367
7368 * openacc.h (enum acc_device_t): Reformat. Ensure layout
7369 compatibility.
7370 (enum acc_async_t): Reformat.
7371 (acc_on_device): Declare compatible with builtin and provide C++
7372 wrapper.
7373 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
7374
7375 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
7376 Cesar Philippidis <cesar@codesourcery.com>
7377
7378 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
7379 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
7380 ... this. Add a description of the test at the top of the file.
7381 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
7382 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
7383 ... this. Add a description of the test at the top of the file.
7384
7385 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
7386
7387 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
7388 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
7389 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
7390 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
7391 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
7392 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
7393
7394 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7395
7396 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
7397 dimensions.
7398
7399 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
7400
7401 PR testsuite/68063
7402 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
7403
7404 2015-10-27 James Norris <jnorris@codesourcery.com>
7405
7406 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
7407 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
7408
7409 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
7410
7411 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
7412 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
7413
7414 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
7415 acc_device_nvidia usage.
7416 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
7417 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7418 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
7419
7420 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
7421 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
7422
7423 PR libgomp/66518
7424 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
7425
7426 PR libgomp/65437
7427 PR libgomp/66518
7428 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
7429 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
7430
7431 2015-10-23 Tom de Vries <tom@codesourcery.com>
7432
7433 PR testsuite/68063
7434 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
7435
7436 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
7437
7438 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
7439 vector_length.
7440 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
7441
7442 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
7443 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
7444
7445 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
7446 to 0 when mapnum is 0.
7447
7448 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
7449
7450 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
7451 Cast to int from int32_t.
7452
7453 2015-10-13 Jakub Jelinek <jakub@redhat.com>
7454 Aldy Hernandez <aldyh@redhat.com>
7455 Ilya Verbin <ilya.verbin@intel.com>
7456
7457 * config/linux/affinity.c (omp_get_place_num_procs,
7458 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
7459 * config/linux/doacross.h: New file.
7460 * config/posix/affinity.c (omp_get_place_num_procs,
7461 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
7462 * config/posix/doacross.h: New file.
7463 * env.c: Include gomp-constants.h.
7464 (struct gomp_task_icv): Rename run_sched_modifier to
7465 run_sched_chunk_size.
7466 (gomp_max_task_priority_var): New variable.
7467 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
7468 (handle_omp_display_env): Change _OPENMP value from 201307 to
7469 201511. Print OMP_MAX_TASK_PRIORITY.
7470 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
7471 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
7472 chunk_size and run_sched_modifier to run_sched_chunk_size.
7473 (omp_get_max_task_priority, omp_get_initial_device,
7474 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
7475 omp_get_partition_place_nums): New functions.
7476 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
7477 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
7478 to chunk_size.
7479 (omp_get_num_places_, omp_get_place_num_procs_,
7480 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
7481 omp_get_place_proc_ids_8_, omp_get_place_num_,
7482 omp_get_partition_num_places_, omp_get_partition_place_nums_,
7483 omp_get_partition_place_nums_8_, omp_get_initial_device_,
7484 omp_get_max_task_priority_): New functions.
7485 * libgomp_g.h (GOMP_loop_doacross_static_start,
7486 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
7487 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
7488 GOMP_loop_ull_doacross_dynamic_start,
7489 GOMP_loop_ull_doacross_guided_start,
7490 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
7491 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
7492 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
7493 GOMP_target_data_41, GOMP_target_update_41,
7494 GOMP_target_enter_exit_data): New prototypes.
7495 (GOMP_task): Add prototype argument.
7496 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
7497 (struct gomp_doacross_work_share): New type.
7498 (struct gomp_work_share): Add doacross field.
7499 (struct gomp_task_icv): Rename run_sched_modifier to
7500 run_sched_chunk_size.
7501 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
7502 GOMP_TASK_UNDEFERRED. Add comments.
7503 (struct gomp_task_depend_entry): Add comments.
7504 (struct gomp_task): Likewise.
7505 (struct gomp_taskgroup): Likewise.
7506 (struct gomp_target_task): New type.
7507 (struct gomp_team): Add comment.
7508 (gomp_get_place_proc_ids_8, gomp_doacross_init,
7509 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
7510 gomp_create_target_task, gomp_target_task_fn): New prototypes.
7511 (struct target_var_desc): New type.
7512 (struct target_mem_desc): Adjust comment. Use struct
7513 target_var_desc instead of splay_tree_key for list.
7514 (REFCOUNT_INFINITY): Define.
7515 (struct splay_tree_key_s): Remove copy_from field.
7516 (struct gomp_device_descr): Add dev2dev_func field.
7517 (enum gomp_map_vars_kind): New enum.
7518 (gomp_map_vars): Add one argument.
7519 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
7520 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
7521 omp_get_place_num_procs, omp_get_place_num_procs_,
7522 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
7523 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
7524 omp_get_place_num_, omp_get_partition_num_places,
7525 omp_get_partition_num_places_, omp_get_partition_place_nums,
7526 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
7527 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
7528 omp_target_free, omp_target_is_present, omp_target_memcpy,
7529 omp_target_memcpy_rect, omp_target_associate_ptr and
7530 omp_target_disassociate_ptr.
7531 (GOMP_4.0.2): Renamed to ...
7532 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
7533 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
7534 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
7535 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
7536 GOMP_loop_doacross_static_start, GOMP_doacross_post,
7537 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
7538 GOMP_loop_ull_doacross_guided_start,
7539 GOMP_loop_ull_doacross_runtime_start,
7540 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
7541 GOMP_doacross_ull_wait.
7542 * libgomp.texi: Document omp_get_max_task_priority.
7543 Rename modifier argument to chunk_size for omp_set_schedule and
7544 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
7545 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
7546 to run_sched_chunk_size renaming.
7547 (GOMP_loop_ordered_runtime_start): Likewise.
7548 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
7549 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
7550 GOMP_parallel_loop_runtime_start): New functions.
7551 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
7552 to run_sched_chunk_size renaming.
7553 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
7554 GOMP_loop_doacross_guided_start): New functions or aliases.
7555 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
7556 run_sched_modifier to run_sched_chunk_size renaming.
7557 (GOMP_loop_ull_ordered_runtime_start): Likewise.
7558 (gomp_loop_ull_doacross_static_start,
7559 gomp_loop_ull_doacross_dynamic_start,
7560 gomp_loop_ull_doacross_guided_start,
7561 GOMP_loop_ull_doacross_runtime_start): New functions.
7562 (GOMP_loop_ull_doacross_static_start,
7563 GOMP_loop_ull_doacross_dynamic_start,
7564 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
7565 * oacc-mem.c (acc_map_data, present_create_copy,
7566 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
7567 to gomp_map_vars.
7568 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
7569 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
7570 instead of false to gomp_map_vars.
7571 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
7572 * omp.h.in (omp_lock_hint_t): New type.
7573 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
7574 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
7575 omp_get_place_num, omp_get_partition_num_places,
7576 omp_get_partition_place_nums, omp_get_initial_device,
7577 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
7578 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
7579 omp_target_associate_ptr, omp_target_disassociate_ptr): New
7580 prototypes.
7581 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
7582 (omp_lock_hint_none, omp_lock_hint_uncontended,
7583 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
7584 omp_lock_hint_speculative): New parameters.
7585 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
7586 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
7587 omp_get_place_num, omp_get_partition_num_places,
7588 omp_get_partition_place_nums, omp_get_initial_device,
7589 omp_get_max_task_priority): New interfaces.
7590 (omp_set_schedule, omp_get_schedule): Rename modifier argument
7591 to chunk_size.
7592 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
7593 (omp_lock_hint_none, omp_lock_hint_uncontended,
7594 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
7595 omp_lock_hint_speculative): New parameters.
7596 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
7597 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
7598 omp_get_place_num, omp_get_partition_num_places,
7599 omp_get_partition_place_nums, omp_get_initial_device,
7600 omp_get_max_task_priority): New functions and subroutines.
7601 * ordered.c: Include stdarg.h and string.h.
7602 (MAX_COLLAPSED_BITS): Define.
7603 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
7604 gomp_doacross_ull_init, GOMP_doacross_ull_post,
7605 GOMP_doacross_ull_wait): New functions.
7606 * target.c: Include errno.h.
7607 (resolve_device): If device is not initialized, call
7608 gomp_init_device on it.
7609 (gomp_map_lookup): New function.
7610 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
7611 Don't bump refcount if REFCOUNT_INFINITY. Handle
7612 GOMP_MAP_ALWAYS_TO_P.
7613 (get_kind): Rename is_openacc argument to short_mapkind.
7614 (gomp_map_pointer): Use gomp_map_lookup.
7615 (gomp_map_fields_existing): New function.
7616 (gomp_map_vars): Rename is_openacc argument to short_mapkind
7617 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
7618 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
7619 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
7620 Adjust for tgt->list changed type and copy_from living in there.
7621 (gomp_copy_from_async): Adjust for tgt->list changed type and
7622 copy_from living in there.
7623 (gomp_unmap_vars): Likewise.
7624 (gomp_update): Likewise. Rename is_openacc argument to
7625 short_mapkind. Don't fail if object is not mapped.
7626 (gomp_load_image_to_device): Initialize refcount to
7627 REFCOUNT_INFINITY.
7628 (gomp_target_fallback): New function.
7629 (gomp_get_target_fn_addr): Likewise.
7630 (GOMP_target): Adjust gomp_map_vars caller, use
7631 gomp_get_target_fn_addr and gomp_target_fallback.
7632 (GOMP_target_41): New function.
7633 (gomp_target_data_fallback): New function.
7634 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
7635 (GOMP_target_data_41): New function.
7636 (GOMP_target_update): Adjust gomp_update caller.
7637 (GOMP_target_update_41): New function.
7638 (gomp_exit_data, GOMP_target_enter_exit_data,
7639 gomp_target_task_fn, omp_target_alloc, omp_target_free,
7640 omp_target_is_present, omp_target_memcpy,
7641 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
7642 omp_target_associate_ptr, omp_target_disassociate_ptr,
7643 gomp_load_plugin_for_device): New functions.
7644 * task.c: Include gomp-constants.h. Include taskloop.c
7645 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
7646 (gomp_task_handle_depend): New function.
7647 (GOMP_task): Use it. Add priority argument. Use
7648 gomp-constant.h constants instead of hardcoded numbers.
7649 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
7650 (gomp_create_target_task): New function.
7651 (verify_children_queue, verify_taskgroup_queue,
7652 verify_task_queue): New functions.
7653 (gomp_task_run_pre): Call verify_*_queue functions.
7654 If an upcoming tied task is about to leave the sibling or
7655 taskgroup queues in an invalid state, adjust appropriately.
7656 Remove taskgroup argument. Add comments.
7657 (gomp_task_run_post_handle_dependers): Add comments.
7658 (gomp_task_run_post_remove_parent): Likewise.
7659 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
7660 (GOMP_taskwait): Likewise. Add comments.
7661 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
7662 problem such that the first non parent_depends_on task does not
7663 end up at the end of the children queue.
7664 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
7665 GOMP_TASK_UNDEFERRED.
7666 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
7667 * taskloop.c: New file.
7668 * testsuite/lib/libgomp.exp
7669 (check_effective_target_offload_device_nonshared_as): New proc.
7670 * testsuite/libgomp.c/affinity-2.c: New test.
7671 * testsuite/libgomp.c/doacross-1.c: New test.
7672 * testsuite/libgomp.c/doacross-2.c: New test.
7673 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
7674 Add map clause to target.
7675 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
7676 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
7677 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
7678 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
7679 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
7680 Likewise.
7681 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
7682 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
7683 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
7684 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
7685 not defined. Use those where needed.
7686 * testsuite/libgomp.c/for-4.c: New test.
7687 * testsuite/libgomp.c/for-5.c: New test.
7688 * testsuite/libgomp.c/for-6.c: New test.
7689 * testsuite/libgomp.c/linear-1.c: New test.
7690 * testsuite/libgomp.c/ordered-4.c: New test.
7691 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
7692 only allowed on the loop iterator.
7693 * testsuite/libgomp.c/pr66199-3.c: New test.
7694 * testsuite/libgomp.c/pr66199-4.c: New test.
7695 * testsuite/libgomp.c/reduction-7.c: New test.
7696 * testsuite/libgomp.c/reduction-8.c: New test.
7697 * testsuite/libgomp.c/reduction-9.c: New test.
7698 * testsuite/libgomp.c/reduction-10.c: New test.
7699 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
7700 map(tofrom:s).
7701 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
7702 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
7703 * testsuite/libgomp.c/target-11.c: New test.
7704 * testsuite/libgomp.c/target-12.c: New test.
7705 * testsuite/libgomp.c/target-13.c: New test.
7706 * testsuite/libgomp.c/target-14.c: New test.
7707 * testsuite/libgomp.c/target-15.c: New test.
7708 * testsuite/libgomp.c/target-16.c: New test.
7709 * testsuite/libgomp.c/target-17.c: New test.
7710 * testsuite/libgomp.c/target-18.c: New test.
7711 * testsuite/libgomp.c/target-19.c: New test.
7712 * testsuite/libgomp.c/target-20.c: New test.
7713 * testsuite/libgomp.c/target-21.c: New test.
7714 * testsuite/libgomp.c/target-22.c: New test.
7715 * testsuite/libgomp.c/target-23.c: New test.
7716 * testsuite/libgomp.c/target-24.c: New test.
7717 * testsuite/libgomp.c/target-25.c: New test.
7718 * testsuite/libgomp.c/target-26.c: New test.
7719 * testsuite/libgomp.c/target-27.c: New test.
7720 * testsuite/libgomp.c/taskloop-1.c: New test.
7721 * testsuite/libgomp.c/taskloop-2.c: New test.
7722 * testsuite/libgomp.c/taskloop-3.c: New test.
7723 * testsuite/libgomp.c/taskloop-4.c: New test.
7724 * testsuite/libgomp.c++/ctor-13.C: New test.
7725 * testsuite/libgomp.c++/doacross-1.C: New test.
7726 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
7727 Replace offload_device with offload_device_nonshared_as.
7728 * testsuite/libgomp.c++/for-12.C: New test.
7729 * testsuite/libgomp.c++/for-13.C: New test.
7730 * testsuite/libgomp.c++/for-14.C: New test.
7731 * testsuite/libgomp.c++/linear-1.C: New test.
7732 * testsuite/libgomp.c++/member-1.C: New test.
7733 * testsuite/libgomp.c++/member-2.C: New test.
7734 * testsuite/libgomp.c++/member-3.C: New test.
7735 * testsuite/libgomp.c++/member-4.C: New test.
7736 * testsuite/libgomp.c++/member-5.C: New test.
7737 * testsuite/libgomp.c++/ordered-1.C: New test.
7738 * testsuite/libgomp.c++/reduction-5.C: New test.
7739 * testsuite/libgomp.c++/reduction-6.C: New test.
7740 * testsuite/libgomp.c++/reduction-7.C: New test.
7741 * testsuite/libgomp.c++/reduction-8.C: New test.
7742 * testsuite/libgomp.c++/reduction-9.C: New test.
7743 * testsuite/libgomp.c++/reduction-10.C: New test.
7744 * testsuite/libgomp.c++/reference-1.C: New test.
7745 * testsuite/libgomp.c++/simd14.C: New test.
7746 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
7747 * testsuite/libgomp.c++/target-5.C: New test.
7748 * testsuite/libgomp.c++/target-6.C: New test.
7749 * testsuite/libgomp.c++/target-7.C: New test.
7750 * testsuite/libgomp.c++/target-8.C: New test.
7751 * testsuite/libgomp.c++/target-9.C: New test.
7752 * testsuite/libgomp.c++/target-10.C: New test.
7753 * testsuite/libgomp.c++/target-11.C: New test.
7754 * testsuite/libgomp.c++/target-12.C: New test.
7755 * testsuite/libgomp.c++/taskloop-1.C: New test.
7756 * testsuite/libgomp.c++/taskloop-2.C: New test.
7757 * testsuite/libgomp.c++/taskloop-3.C: New test.
7758 * testsuite/libgomp.c++/taskloop-4.C: New test.
7759 * testsuite/libgomp.c++/taskloop-5.C: New test.
7760 * testsuite/libgomp.c++/taskloop-6.C: New test.
7761 * testsuite/libgomp.c++/taskloop-7.C: New test.
7762 * testsuite/libgomp.c++/taskloop-8.C: New test.
7763 * testsuite/libgomp.c++/taskloop-9.C: New test.
7764 * testsuite/libgomp.fortran/affinity1.f90: New test.
7765 * testsuite/libgomp.fortran/affinity2.f90: New test.
7766
7767 2015-10-13 Tom de Vries <tom@codesourcery.com>
7768
7769 PR tree-optimization/67476
7770 * testsuite/libgomp.c/autopar-3.c: New test.
7771 * testsuite/libgomp.c/autopar-4.c: New test.
7772 * testsuite/libgomp.c/autopar-5.c: New test.
7773 * testsuite/libgomp.c/autopar-6.c: New test.
7774 * testsuite/libgomp.c/autopar-7.c: New test.
7775 * testsuite/libgomp.c/autopar-8.c: New test.
7776
7777 2015-10-12 James Norris <jnorris@codesourcery.com>
7778
7779 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
7780 initializer.
7781
7782 2015-10-09 David Malcolm <dmalcolm@redhat.com>
7783
7784 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
7785 using load_gcc_lib.
7786
7787 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
7788
7789 * oacc-ptx.h: Remove file, moving its content into...
7790 * config/nvptx/fortran.c: ... here...
7791 * config/nvptx/oacc-init.c: ..., here...
7792 * config/nvptx/oacc-parallel.c: ..., and here.
7793 * config/nvptx/openacc.f90: New file.
7794 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
7795 (link_ptx): Don't link in predefined bits of PTX code.
7796
7797 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
7798 Bernd Schmidt <bernds@codesourcery.com>
7799
7800 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
7801 (struct targ_ptx_obj): New.
7802 (nvptx_tdata): Move earlier, change data format.
7803 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
7804 objects.
7805 (GOMP_OFFLOAD_load_image): Adjust.
7806
7807 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
7808
7809 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
7810 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
7811 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
7812 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
7813 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7814 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
7815 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
7816 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
7817 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
7818 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
7819 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7820 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
7821 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
7822 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7823 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7824 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7825 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7826 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7827 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7828 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7829 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7830 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7831 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7832 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7833 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7834 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7835 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
7836 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7837 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7838 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7839 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7840 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7841 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
7842 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7843 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7844 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7845 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7846 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7847 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7848 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7849 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7850 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7851 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7852 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7853 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
7854 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
7855 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
7856 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
7857 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
7858 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
7859 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
7860 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
7861 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
7862 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
7863 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
7864 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7865 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7866 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
7867 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
7868 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
7869 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
7870 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
7871 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7872
7873 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
7874
7875 * oacc-init.c (acc_on_device): Force optimization level.
7876
7877 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
7878
7879 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
7880 (cuda_errlist): Delete.
7881 (cuda_error): Reimplement.
7882
7883 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
7884
7885 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
7886 array.
7887 * libgomp.map (GOACC_parallel_keyed): New.
7888 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
7889 all callers.
7890 (GOACC_parallel_keyed): New interface. Lose geometry arguments
7891 and take keyed varargs list. Adjust call to exec_func.
7892 (GOACC_parallel): Force host fallback.
7893 * libgomp_g.h (GOACC_parallel): Remove.
7894 (GOACC_parallel_keyed): Declare.
7895 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
7896 (struct targ_gn_descriptor): Replace name field with launch field.
7897 (nvptx_exec): Lose separate geometry args, take array. Process
7898 dynamic dimensions and adjust.
7899 (struct nvptx_tdata): Replace fn_names field with fn_descs.
7900 (GOMP_OFFLOAD_load_image): Adjust for change in function table
7901 data.
7902 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
7903 passing.
7904 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
7905 passing.
7906
7907 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
7908
7909 PR libgomp/67141
7910 * oacc-int.h (goacc_host_init): Add declaration.
7911 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
7912 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
7913
7914 2015-09-08 Aditya Kumar <hiraditya@msn.com>
7915 Sebastian Pop <s.pop@samsung.com>
7916
7917 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
7918 match o/p.
7919 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
7920 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
7921 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
7922 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
7923 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
7924
7925 2015-09-03 Jakub Jelinek <jakub@redhat.com>
7926
7927 * configure.tgt: Add missing ;; in between nvptx and rtems
7928 snippets.
7929
7930 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7931
7932 * config/posix/pool.h (gomp_adjust_thread_attr): New.
7933 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
7934 (gomp_thread_pool_reservoir): Add priority member.
7935 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
7936 priority.
7937 (parse_thread_pools): Likewise.
7938 * team.c (gomp_team_start): Call configuration provided
7939 gomp_adjust_thread_attr(). Destroy thread attributes if
7940 necessary.
7941 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
7942
7943 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7944
7945 * config/posix/pool.h: New.
7946 * config/rtems/pool.h: Likewise.
7947 * config/rtems/proc.c: Likewise.
7948 * libgomp.h (gomp_thread_destructor): Declare.
7949 * team.c: Include configuration provided "pool.h".
7950 (gomp_get_thread_pool): Define in configuration.
7951 (gomp_team_end): Call configuration defined
7952 gomp_release_thread_pool().
7953
7954 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7955
7956 * config/rtems/bar.c: New.
7957 * config/rtems/bar.h: Likewise.
7958 * config/rtems/mutex.c: Likewise.
7959 * config/rtems/mutex.h: Likewise.
7960 * config/rtems/sem.c: Likewise.
7961 * config/rtems/sem.h: Likewise.
7962 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
7963 <sys/lock.h> header file.
7964 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
7965 supported by Newlib.
7966 * configure: Regenerate.
7967
7968 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7969
7970 * team.c (gomp_new_thread_pool): Delete and move content to ...
7971 (gomp_get_thread_pool): ... new function. Allocate and
7972 initialize thread pool on demand.
7973 (get_last_team): Use gomp_get_thread_pool().
7974 (gomp_team_start): Delete thread pool initialization.
7975
7976 2015-09-03 Tom de Vries <tom@codesourcery.com>
7977
7978 PR tree-optimization/65637
7979 * testsuite/libgomp.c/autopar-2.c: New test.
7980
7981 2015-08-29 Tom de Vries <tom@codesourcery.com>
7982
7983 PR tree-optimization/46193
7984 * testsuite/libgomp.c/pr46193.c: New test.
7985
7986 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
7987
7988 libgomp/
7989 * libgomp.map: Add 4.0.2 version.
7990 * target.c (offload_image_descr): Add version field.
7991 (gomp_load_image_to_device): Add version argument. Adjust plugin
7992 call. Improve load mismatch diagnostic.
7993 (gomp_unload_image_from_device): Add version argument. Adjust plugin
7994 call.
7995 (GOMP_offload_regster): Make stub function, move bulk to ...
7996 (GOMP_offload_register_ver): ... here. Process version argument.
7997 (GOMP_offload_unregister): Make stub function, move bulk to ...
7998 (GOMP_offload_unregister_ver): ... here. Process version argument.
7999 (gomp_init_device): Process version field.
8000 (gomp_unload_device): Process version field.
8001 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
8002 macros. Check plugin version.
8003 * libgomp.h (gomp_device_descr): Add version function field. Adjust
8004 loader and unloader types.
8005 * oacc-host.c: Include gomp-constants.h.
8006 (host_version): New.
8007 (host_load_image, host_unload_image): Adjust.
8008 (host_dispatch): Add host_version.
8009 * plugin/plugin-nvptx.c: Include gomp-constants.h.
8010 (GOMP_OFFLOAD_version): New.
8011 (GOMP_OFFLOAD_load_image): Add version arg and check it.
8012 (GOMP_OFFLOAD_unload_image): Likewise.
8013 * plugin/plugin-host.c: Include gomp-constants.h.
8014 (GOMP_OFFLOAD_version): New.
8015 (GOMP_OFFLOAD_load_image): Add version arg.
8016 (GOMP_OFFLOAD_unload_image): Likewise.
8017
8018 2015-08-24 Tom de Vries <tom@codesourcery.com>
8019
8020 PR tree-optimization/65468
8021 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
8022
8023 2015-08-24 Tom de Vries <tom@codesourcery.com>
8024
8025 PR tree-optimization/65468
8026 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
8027
8028 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
8029
8030 PR libgomp/66761
8031 PR libgomp/67303
8032 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
8033 (gomp_iter_guided_next): Idem.
8034 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
8035 (gomp_iter_ull_guided_next): Idem.
8036 * config/linux/wait.h (do_spin): Idem.
8037
8038 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
8039
8040 * libgomp-plugin.h (enum offload_target_type): Remove
8041 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
8042 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
8043 * openacc.h (enum acc_device_t): Likewise.
8044 * openacc_lib.h: Likewise.
8045 * oacc-init.c (name_of_acc_device_t): Don't handle it.
8046 (acc_on_device): Just use __builtin_acc_on_device.
8047 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
8048 of acc_on_device builtin.
8049 * plugin/plugin-host.h: Remove file.
8050 * plugin/plugin-host.c: Likewise, but salvage some content into...
8051 * oacc-host.c: ... this file.
8052 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
8053 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
8054 * Makefile.in: Regenerate.
8055 * configure: Likewise.
8056 * testsuite/lib/libgomp.exp
8057 (check_effective_target_openacc_host_nonshm_selected): Remove.
8058 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
8059 ACC_DEVICE_TYPE=host_nonshm.
8060 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8061 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8062 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
8063 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
8064 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
8065 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
8066
8067 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
8068 Jakub Jelinek <jakub@redhat.com>
8069
8070 * config/nvptx/affinity.c: New file.
8071 * config/nvptx/alloc.c: Likewise.
8072 * config/nvptx/bar.c: Likewise.
8073 * config/nvptx/barrier.c: Likewise.
8074 * config/nvptx/critical.c: Likewise.
8075 * config/nvptx/env.c: Likewise.
8076 * config/nvptx/error.c: Likewise.
8077 * config/nvptx/fortran.c: Likewise.
8078 * config/nvptx/iter.c: Likewise.
8079 * config/nvptx/iter_ull.c: Likewise.
8080 * config/nvptx/libgomp-plugin.c: Likewise.
8081 * config/nvptx/lock.c: Likewise.
8082 * config/nvptx/loop.c: Likewise.
8083 * config/nvptx/loop_ull.c: Likewise.
8084 * config/nvptx/mutex.c: Likewise.
8085 * config/nvptx/oacc-async.c: Likewise.
8086 * config/nvptx/oacc-cuda.c: Likewise.
8087 * config/nvptx/oacc-host.c: Likewise.
8088 * config/nvptx/oacc-init.c: Likewise.
8089 * config/nvptx/oacc-mem.c: Likewise.
8090 * config/nvptx/oacc-parallel.c: Likewise.
8091 * config/nvptx/oacc-plugin.c: Likewise.
8092 * config/nvptx/omp-lock.h: Likewise.
8093 * config/nvptx/ordered.c: Likewise.
8094 * config/nvptx/parallel.c: Likewise.
8095 * config/nvptx/proc.c: Likewise.
8096 * config/nvptx/ptrlock.c: Likewise.
8097 * config/nvptx/sections.c: Likewise.
8098 * config/nvptx/sem.c: Likewise.
8099 * config/nvptx/single.c: Likewise.
8100 * config/nvptx/splay-tree.c: Likewise.
8101 * config/nvptx/target.c: Likewise.
8102 * config/nvptx/task.c: Likewise.
8103 * config/nvptx/team.c: Likewise.
8104 * config/nvptx/time.c: Likewise.
8105 * config/nvptx/work.c: Likewise.
8106 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
8107 * configure: Regenerate.
8108 * configure.tgt (config_path): Set to "nvptx" for target
8109 nvptx*-*-*.
8110
8111 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
8112
8113 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
8114
8115 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
8116
8117 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
8118 (cuda_errlist): Constify.
8119 (errmsg): Move into ...
8120 (cuda_error): ... here. Make smaller.
8121 (_XSTR, _STR): Delete.
8122 (cuda_synames): Delete.
8123 (verify_device_library): Delete.
8124 (nvptx_init): Don't call it.
8125
8126 2015-07-28 Tom de Vries <tom@codesourcery.com>
8127
8128 * testsuite/libgomp.c/uns-outer-4.c: New test.
8129
8130 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
8131
8132 * testsuite/libgomp.c/pr66714.c: New test.
8133
8134 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
8135
8136 PR libgomp/66950
8137 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
8138 (fib_ref): New function.
8139 (fib): Correct corner cases in the recursion.
8140 (main): Replace the non-simd loop with fib_ref call.
8141 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
8142 subroutine.
8143 (fibonacci): Lower the parameter N to 30. Correct accordingly check
8144 for the last array element value. Replace the non-simd loop with
8145 fib_ref call. Remove redundant b_ref array. Remove the comparison
8146 of the last array element with according Fibonacci sequence element.
8147 (fib): Correct corner cases in the recursion.
8148
8149 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
8150
8151 * target.c (gomp_offload_image_to_device): Rename to ...
8152 (gomp_load_image_to_device): ... here.
8153 (GOMP_offload_register): Adjust call.
8154 (gomp_init_device): Likewise.
8155 (gomp_unload_image_from_device): New. Broken out of ...
8156 (GOMP_offload_unregister): ... here. Call it.
8157 (gomp_unload_device): New.
8158 * libgomp.h (gomp_unload_device): Declare.
8159 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
8160 mem maps.
8161
8162 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
8163
8164 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
8165 wait=-specific if.
8166 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
8167 !=0 condition.
8168 (goacc_waits): Move !num_waits handling to ...
8169 (GOACC_wait): ... here, the only caller that might have zero waits.
8170
8171 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
8172 (struct ptx_image_data): Move earlier, add fns field.
8173 (struct ptx_device): Add images and image_lock fields.
8174 (ptx_images, ptx_image_lock): Delete.
8175 (nvptx_open_device): Initialize images and image_lock fields.
8176 (nvptx_close_device): Destroy image_lock.
8177 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
8178 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
8179 fields.
8180
8181 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
8182
8183 * target.c (GOMP_offload_register): Use int for device type arg.
8184 (GOMP_offload_unregister): Likewise.
8185
8186 * target.c (struct_offload_image_descr): Constify host_table.
8187 (gomp_offload_image_to_device): Likewise.
8188 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
8189
8190 * libgomp.h (gomp_device_descr): Constify target data arguments.
8191 * target.c (struct offload_image_descr): Constify target_data.
8192 (gomp_offload_image_to_device): Likewise.
8193 (GOMP_offload_register): Likewise.
8194 (GOMP_offload_unregister): Likewise.
8195 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
8196 GOMP_OFFLOAD_unload_image): Constify target data.
8197 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
8198 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
8199
8200 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
8201
8202 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
8203 Workaround driver library const error.
8204 (struct nvptx_tdata, nvptx_tdata_t): New.
8205 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
8206 type.
8207
8208 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
8209
8210 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
8211 of EPS parameter from integer to real.
8212 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
8213 type of EPS parameter from integer to real.
8214
8215 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
8216
8217 * team.c (get_last_team): New.
8218 (gomp_new_team): Recycle last non-nested team if possible.
8219 (gomp_team_end): Move team work share list free lock destruction
8220 to ...
8221 (free_team): ... here.
8222
8223 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
8224
8225 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
8226 and ref from int to double. Replaced their comparison with
8227 an inequality of their difference and EPS.
8228 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
8229 comparison of pri and a reference number with an inequality of their
8230 difference and EPS.
8231 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
8232 the comparison of sum and sum_ref with an inequality of their
8233 difference and EPS.
8234 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
8235 the comparison of pri and a reference number with an inequality of
8236 their difference and EPS.
8237
8238 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
8239
8240 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
8241 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
8242 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
8243 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
8244 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
8245 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
8246 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
8247 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
8248 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
8249 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
8250 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
8251 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
8252 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
8253 variables.
8254 (vec_mult): Likewise. Add #pragma omp taskwait.
8255 (main): Adjust caller.
8256 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
8257 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
8258 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
8259 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
8260 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
8261 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
8262 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
8263 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
8264 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
8265 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
8266 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
8267 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
8268 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
8269 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
8270 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
8271 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
8272 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
8273 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
8274 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
8275 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
8276 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
8277 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
8278 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
8279 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
8280 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
8281 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
8282 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
8283 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
8284 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
8285 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
8286 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
8287 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
8288 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
8289 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
8290 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
8291 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
8292 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
8293 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
8294 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
8295 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
8296 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
8297 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
8298 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
8299 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
8300 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
8301 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
8302 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
8303 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
8304 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
8305 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
8306 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
8307 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
8308 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
8309 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
8310 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
8311 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
8312 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
8313 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
8314 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
8315 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
8316 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
8317 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
8318 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
8319 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
8320 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
8321 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
8322 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
8323 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
8324 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
8325 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
8326 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
8327 (vec_mult): Add !$omp taskwait.
8328 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
8329 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
8330 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
8331 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
8332 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
8333 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
8334 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
8335 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
8336 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
8337 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
8338 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
8339 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
8340 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
8341 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
8342 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
8343 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
8344 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
8345 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
8346 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
8347 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
8348 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
8349 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
8350 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
8351 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
8352 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
8353 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
8354 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
8355 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
8356 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
8357 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
8358 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
8359 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
8360 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
8361 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
8362 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
8363 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
8364 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
8365 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
8366 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
8367 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
8368 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
8369 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
8370 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
8371 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
8372 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
8373 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
8374 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
8375 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
8376 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
8377 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
8378 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
8379 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
8380 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
8381 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
8382 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
8383 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
8384 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
8385 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
8386 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
8387 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
8388 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
8389 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
8390 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
8391 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
8392 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
8393 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
8394 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
8395
8396 2015-07-10 Tom de Vries <tom@codesourcery.com>
8397
8398 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
8399 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
8400
8401 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
8402
8403 PR libgomp/65099
8404 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
8405 in a 64-bit configuration.
8406 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
8407 offloading testing if no such device is available.
8408 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8409 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8410
8411 2015-07-08 Tom de Vries <tom@codesourcery.com>
8412
8413 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
8414 second call to f.
8415 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
8416
8417 2015-07-07 Tom de Vries <tom@codesourcery.com>
8418
8419 PR tree-optimization/66642
8420 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
8421 iteration count case.
8422 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
8423 function, factor out of ...
8424 (main): ... here. Test low iteration count case.
8425
8426 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
8427
8428 * libgomp.h (gomp_thread_pool): Comment last_team field.
8429
8430 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
8431
8432 * testsuite/libgomp.c++/pr66702-1.C: Require
8433 vect_simd_clones effective target.
8434 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
8435
8436 2015-06-30 Tom de Vries <tom@codesourcery.com>
8437
8438 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
8439 already set. Use DEFAULT_CFLAGS in dg-runtest.
8440 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
8441 "-O2".
8442
8443 2015-06-30 Tom de Vries <tom@codesourcery.com>
8444
8445 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
8446 already set. Use DEFAULT_CFLAGS in dg-runtest.
8447 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
8448 * testsuite/libgomp.c++/pr64824.C: Same.
8449 * testsuite/libgomp.c++/pr64868.C: Same.
8450 * testsuite/libgomp.c++/pr66199-1.C: Same.
8451 * testsuite/libgomp.c++/pr66199-2.C: Same.
8452 * testsuite/libgomp.c++/target-2.C: Same.
8453 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
8454 -std=<standard> option.
8455 * testsuite/libgomp.c++/udr-11.C: Same.
8456 * testsuite/libgomp.c++/udr-12.C: Same.
8457 * testsuite/libgomp.c++/udr-13.C: Same.
8458 * testsuite/libgomp.c++/udr-14.C: Same.
8459 * testsuite/libgomp.c++/udr-15.C: Same.
8460 * testsuite/libgomp.c++/udr-16.C: Same.
8461 * testsuite/libgomp.c++/udr-17.C: Same.
8462 * testsuite/libgomp.c++/udr-18.C: Same.
8463 * testsuite/libgomp.c++/udr-19.C: Same.
8464 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
8465 * testsuite/libgomp.c++/simd-1.C: Same.
8466 * testsuite/libgomp.c++/simd-2.C: Same.
8467 * testsuite/libgomp.c++/simd-3.C: Same.
8468 * testsuite/libgomp.c++/simd-4.C: Same.
8469 * testsuite/libgomp.c++/simd-5.C: Same.
8470 * testsuite/libgomp.c++/simd-6.C: Same.
8471 * testsuite/libgomp.c++/simd-7.C: Same.
8472 * testsuite/libgomp.c++/simd-8.C: Same.
8473 * testsuite/libgomp.c++/simd-9.C: Same.
8474 * testsuite/libgomp.c++/simd10.C: Same.
8475 * testsuite/libgomp.c++/simd11.C: Same.
8476 * testsuite/libgomp.c++/simd12.C: Same.
8477 * testsuite/libgomp.c++/simd13.C: Same.
8478
8479 2015-06-30 Jakub Jelinek <jakub@redhat.com>
8480
8481 PR middle-end/66702
8482 * testsuite/libgomp.c++/pr66702-1.C: New test.
8483 * testsuite/libgomp.c++/pr66702-2.C: New test.
8484
8485 2015-06-30 Tom de Vries <tom@codesourcery.com>
8486
8487 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
8488 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
8489 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
8490 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
8491
8492 2015-06-30 Tom de Vries <tom@codesourcery.com>
8493
8494 PR tree-optimization/66652
8495 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
8496 using restrict pointers.
8497 (main): Add arguments to calls to f.
8498 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
8499
8500 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
8501
8502 * configure.ac: Fix check for header <sys/sysctl.h>.
8503 * configure: Regenerate.
8504 * config.h.in: Likewise.
8505
8506 2015-06-23 Tom de Vries <tom@codesourcery.com>
8507
8508 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
8509 abort.
8510 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
8511
8512 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
8513
8514 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
8515 acc_device_nvidia.
8516
8517 PR libgomp/66518
8518 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
8519 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8520
8521 2015-06-15 Tom de Vries <tom@codesourcery.com>
8522
8523 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
8524 dg-additional-options for any remaining options.
8525 * testsuite/libgomp.c/atomic-2.c: Same.
8526 * testsuite/libgomp.c/atomic-4.c: Same.
8527 * testsuite/libgomp.c/atomic-5.c: Same.
8528 * testsuite/libgomp.c/atomic-6.c: Same.
8529 * testsuite/libgomp.c/autopar-1.c: Same.
8530 * testsuite/libgomp.c/copyin-1.c: Same.
8531 * testsuite/libgomp.c/copyin-2.c: Same.
8532 * testsuite/libgomp.c/copyin-3.c: Same.
8533 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
8534 * testsuite/libgomp.c/nestedfn-5.c: Same.
8535 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
8536 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
8537 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
8538 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
8539 * testsuite/libgomp.c/pr32362-1.c: Same.
8540 * testsuite/libgomp.c/pr32362-2.c: Same.
8541 * testsuite/libgomp.c/pr32362-3.c: Same.
8542 * testsuite/libgomp.c/pr39591-1.c: Same.
8543 * testsuite/libgomp.c/pr39591-2.c: Same.
8544 * testsuite/libgomp.c/pr39591-3.c: Same.
8545 * testsuite/libgomp.c/pr58392.c: Same.
8546 * testsuite/libgomp.c/pr58756.c: Same.
8547 * testsuite/libgomp.c/simd-1.c: Same.
8548 * testsuite/libgomp.c/simd-10.c: Same.
8549 * testsuite/libgomp.c/simd-11.c: Same.
8550 * testsuite/libgomp.c/simd-12.c: Same.
8551 * testsuite/libgomp.c/simd-13.c: Same.
8552 * testsuite/libgomp.c/simd-14.c: Same.
8553 * testsuite/libgomp.c/simd-15.c: Same.
8554 * testsuite/libgomp.c/simd-2.c: Same.
8555 * testsuite/libgomp.c/simd-3.c: Same.
8556 * testsuite/libgomp.c/simd-4.c: Same.
8557 * testsuite/libgomp.c/simd-5.c: Same.
8558 * testsuite/libgomp.c/simd-6.c: Same.
8559 * testsuite/libgomp.c/simd-7.c: Same.
8560 * testsuite/libgomp.c/simd-8.c: Same.
8561 * testsuite/libgomp.c/simd-9.c: Same.
8562
8563 2015-06-15 Tom de Vries <tom@codesourcery.com>
8564
8565 * testsuite/libgomp.c/pr35625.c: Fix typo.
8566
8567 2015-06-15 Tom de Vries <tom@codesourcery.com>
8568
8569 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
8570 in dg-options.
8571 * testsuite/libgomp.c/atomic-3.c: Same.
8572 * testsuite/libgomp.c/debug-1.c: Same.
8573 * testsuite/libgomp.c/nqueens-1.c: Same.
8574 * testsuite/libgomp.c/pr26171.c: Same.
8575 * testsuite/libgomp.c/pr48591.c: Same.
8576 * testsuite/libgomp.c/pr64824.c: Same.
8577 * testsuite/libgomp.c/pr64868.c: Same.
8578 * testsuite/libgomp.c/pr66133.c: Same.
8579 * testsuite/libgomp.c/pr66199-1.c: Same.
8580 * testsuite/libgomp.c/pr66199-2.c: Same.
8581 * testsuite/libgomp.c/target-8.c: Same.
8582
8583 2015-06-15 Tom de Vries <tom@codesourcery.com>
8584
8585 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
8586 -std={gnu99,c99}.
8587 * testsuite/libgomp.c/for-1.c: Same.
8588 * testsuite/libgomp.c/for-2.c: Same.
8589 * testsuite/libgomp.c/for-3.c: Same.
8590 * testsuite/libgomp.c/pr35625.c: Same.
8591 * testsuite/libgomp.c/pr39154.c: Same.
8592 * testsuite/libgomp.c/simd-16.c: Same.
8593 * testsuite/libgomp.c/simd-17.c: Same.
8594
8595 2015-06-13 Tom de Vries <tom@codesourcery.com>
8596
8597 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
8598
8599 2015-06-13 Tom de Vries <tom@codesourcery.com>
8600
8601 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
8602 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
8603 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
8604 (N): Define.
8605 (main): Use N instead of hardcoded constants.
8606
8607 2015-06-05 Tom de Vries <tom@codesourcery.com>
8608
8609 merge from gomp4 branch:
8610 2015-05-28 Tom de Vries <tom@codesourcery.com>
8611
8612 PR tree-optimization/65443
8613 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
8614 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
8615 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
8616
8617 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8618
8619 * testsuite/libgomp.graphite/bounds.c: Adjust for
8620 cleanup-tree-dump removal.
8621 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
8622 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
8623 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
8624 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
8625 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
8626 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
8627 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
8628 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
8629 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
8630 * testsuite/libgomp.graphite/pr41118.c: Likewise.
8631
8632 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
8633
8634 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
8635 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
8636 (futex_wake) [!__x86_64__]: Ditto.
8637
8638 2015-05-28 Julian Brown <julian@codesourcery.com>
8639
8640 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
8641 function comment. Only call gomp_fatal if new argument is true.
8642 (acc_dev_num_out_of_range): New function.
8643 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
8644 acc_dev_num_out_of_range as appropriate.
8645 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
8646 (acc_get_device_num, acc_set_device_num): Update calls to
8647 resolve_device.
8648 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
8649 output.
8650
8651 2015-05-28 Julian Brown <julian@codesourcery.com>
8652
8653 PR libgomp/65742
8654 * oacc-init.c (plugin/plugin-host.h): Include.
8655 (acc_on_device): Check whether we're in an offloaded region for
8656 host_nonshm
8657 plugin. Don't use __builtin_acc_on_device.
8658 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
8659 nonshm_exec flag in thread-local data.
8660 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
8661 data for host_nonshm plugin.
8662 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
8663 for host_nonshm plugin.
8664 * plugin/plugin-host.h: New.
8665
8666 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
8667
8668 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
8669
8670 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
8671
8672 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
8673 Declare as int.
8674 (FUTEX_PRIVATE_FLAG): Remove L suffix.
8675 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
8676 Declare as int.
8677
8678 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
8679
8680 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
8681
8682 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
8683
8684 * target.c (gomp_map_pointer): New function abstracting out
8685 GOMP_MAP_POINTER handling.
8686 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
8687 gomp_map_pointer().
8688
8689 2015-05-19 Jakub Jelinek <jakub@redhat.com>
8690
8691 PR middle-end/66199
8692 * testsuite/libgomp.c/pr66199-1.c: New test.
8693 * testsuite/libgomp.c/pr66199-2.c: New test.
8694 * testsuite/libgomp.c++/pr66199-1.C: New test.
8695 * testsuite/libgomp.c++/pr66199-2.C: New test.
8696 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
8697 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
8698
8699 2015-05-19 Julian Brown <julian@codesourcery.com>
8700
8701 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
8702 on cuInit failure.
8703
8704 2015-05-13 Jakub Jelinek <jakub@redhat.com>
8705
8706 PR middle-end/66133
8707 * testsuite/libgomp.c/pr66133.c: New test.
8708
8709 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
8710
8711 * Makefile.in: Regenerated with automake-1.11.6.
8712 * aclocal.m4: Likewise.
8713 * config.h.in: Likewise.
8714 * configure: Likewise.
8715 * testsuite/Makefile.in: Likewise.
8716
8717 2015-05-08 Jason Merrill <jason@redhat.com>
8718
8719 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
8720 _Complex.
8721
8722 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
8723
8724 2015-05-06 Julian Brown <julian@codesourcery.com>
8725
8726 * oacc-init.c (acc_device_lock): Add explanatory comment.
8727 (resolve_device): Add comment about locking requirement.
8728 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
8729 gomp_init_device and gomp_fini_device calls.
8730 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
8731 (acc_get_device_num, acc_set_device_num): Add locking around
8732 resolve_device and gomp_init_device calls.
8733
8734 2015-05-06 Julian Brown <julian@codesourcery.com>
8735
8736 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
8737 goacc_thread_lock on error paths.
8738 * oacc-mem.c (lookup_host): Remove locking from function. Note
8739 locking requirement for caller in function comment.
8740 (lookup_dev): Likewise.
8741 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
8742 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
8743 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
8744 Add locking.
8745
8746 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
8747
8748 PR testsuite/65205
8749 PR libgomp/65993
8750 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
8751 don't expect "0x" prefix for "%p" format specifier, don't expect
8752 "(nil)" for NULL pointer.
8753 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8754 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8755 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8756 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8757 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8758 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8759 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8760 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8761 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8762 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8763 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8764 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8765 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8766 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8767 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8768 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8769 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8770 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8771 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8772 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8773 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8774 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8775 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8776 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8777 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8778 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8779 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8780 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8781 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
8782 accurately specify what we're looking for.
8783 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8784 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8785 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8786 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8787 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8788
8789 2015-04-30 James Norris <jnorris@codesourcery.com>
8790
8791 PR testsuite/65205
8792 * testsuite/lib/libgomp.exp
8793 (check_effective_target_openacc_host_selected)
8794 (check_effective_target_openacc_host_nonshm_selected): New
8795 procedures.
8796 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
8797 dg-shouldfail.
8798 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
8799 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
8800 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8801 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8802 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8803 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
8804 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8805 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8806 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8807 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8808 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8809 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8810 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8811 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8812 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8813 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
8814 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8815 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8816 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8817 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8818 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8819 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
8820 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8821 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8822 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8823 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8824 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8825 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8826 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8827 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8828 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8829 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8830 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8831 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
8832 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
8833 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
8834 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
8835 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
8836 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
8837 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8838 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8839 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8840 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8841
8842 2015-04-08 Julian Brown <julian@codesourcery.com>
8843
8844 * libgomp.h (target_mem_desc: Remove mem_map field.
8845 (acc_dispatch_t): Remove open_device_func, close_device_func,
8846 get_device_num_func, set_device_num_func, target_data members.
8847 Change create_thread_data_func argument to device number instead of
8848 generic pointer.
8849 * oacc-async.c (assert.h): Include.
8850 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
8851 (acc_wait_all, acc_wait_all_async): Use current host thread's
8852 active device, not base_dev.
8853 * oacc-cuda.c (acc_get_current_cuda_device)
8854 (acc_get_current_cuda_context, acc_get_cuda_stream)
8855 (acc_set_cuda_stream): Likewise.
8856 * oacc-host.c (host_dispatch): Don't set open_device_func,
8857 close_device_func, get_device_num_func or set_device_num_func.
8858 * oacc-init.c (base_dev, init_key): Remove.
8859 (cached_base_dev): New.
8860 (name_of_acc_device_t): New.
8861 (acc_init_1): Initialise default-numbered device, not zeroth.
8862 (acc_shutdown_1): Close all devices of a given type.
8863 (goacc_destroy_thread): Don't use base_dev.
8864 (lazy_open, lazy_init, lazy_init_and_open): Remove.
8865 (goacc_attach_host_thread_to_device): New.
8866 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
8867 (acc_get_num_devices): Don't use base_dev.
8868 (acc_set_device_type): Reimplement.
8869 (acc_get_device_type): Don't use base_dev.
8870 (acc_get_device_num): Tweak logic.
8871 (acc_set_device_num): Likewise.
8872 (acc_on_device): Use acc_get_device_type.
8873 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
8874 (goacc_lazy_initialize): Reimplement with acc_init and
8875 goacc_attach_host_thread_to_device.
8876 * oacc-int.h (goacc_thread): Add base_dev field.
8877 (base_dev): Remove extern declaration.
8878 (goacc_attach_host_thread_to_device): Add prototype.
8879 * oacc-mem.c (acc_malloc): Use current thread's device instead of
8880 base_dev.
8881 (acc_free): Likewise.
8882 (acc_memcpy_to_device): Likewise.
8883 (acc_memcpy_from_device): Likewise.
8884 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
8885 goacc_lazy_initialize (throughout).
8886 (GOACC_parallel): Use tgt_offset to locate target functions.
8887 * target.c (gomp_map_vars): Don't set tgt->mem_map.
8888 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
8889 (gomp_load_plugin_for_device): Remove open_device, close_device,
8890 get_device_num, set_device_num openacc hook initialisation. Don't set
8891 openacc.target_data.
8892 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
8893 (GOMP_OFFLOAD_openacc_close_device)
8894 (GOMP_OFFLOAD_openacc_get_device_num)
8895 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
8896 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
8897 to int.
8898 * plugin/plugin-nvptx.c (ptx_inited): Remove.
8899 (instantiated_devices, ptx_dev_lock): New.
8900 (struct ptx_image_data): New.
8901 (ptx_devices, ptx_images, ptx_image_lock): New.
8902 (fini_streams_for_device): Reorder cuStreamDestroy call.
8903 (nvptx_get_num_devices): Remove forward declaration.
8904 (nvptx_init): Change return type to bool.
8905 (nvptx_fini): Remove.
8906 (nvptx_attach_host_thread_to_device): New.
8907 (nvptx_open_device): Return struct ptx_device* instead of void*.
8908 (nvptx_close_device): Change argument type to struct ptx_device*,
8909 return type to void.
8910 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
8911 (kernel_target_data, kernel_host_table): Remove static globals.
8912 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
8913 (GOMP_OFFLOAD_init_device): Reimplement.
8914 (GOMP_OFFLOAD_fini_device): Likewise.
8915 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
8916 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
8917 (GOMP_OFFLOAD_host2dev): Use ORD argument.
8918 (GOMP_OFFLOAD_openacc_open_device)
8919 (GOMP_OFFLOAD_openacc_close_device)
8920 (GOMP_OFFLOAD_openacc_set_device_num)
8921 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
8922 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
8923 (device number).
8924
8925 testsuite/
8926 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
8927
8928 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
8929
8930 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
8931 * libgomp.h (struct gomp_memory_mapping): Remove.
8932 (struct target_mem_desc): Change type of mem_map from
8933 gomp_memory_mapping * to splay_tree_s *.
8934 (struct gomp_device_descr): Remove register_image_func, get_table_func.
8935 Add load_image_func, unload_image_func.
8936 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
8937 Remove offload_regions_registered.
8938 (gomp_init_tables): Remove.
8939 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
8940 to splay_tree_s *.
8941 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
8942 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
8943 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
8944 offload_regions_registered.
8945 Initialize load_image_func, unload_image_func, mem_map.root.
8946 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
8947 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
8948 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
8949 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
8950 gomp_memory_mapping *. Use dev's lock and splay_tree.
8951 (lookup_dev): Use dev's lock.
8952 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
8953 (acc_is_present): Likewise.
8954 (acc_map_data): Likewise.
8955 (acc_unmap_data): Likewise. Use dev's lock.
8956 (present_create_copy): Likewise.
8957 (delete_copyout): Pass dev to lookup_host instead of mem_map.
8958 (update_dev_host): Likewise.
8959 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
8960 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
8961 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
8962 (GOMP_OFFLOAD_get_table): Remove
8963 (GOMP_OFFLOAD_load_image): New function.
8964 (GOMP_OFFLOAD_unload_image): New function.
8965 * target.c (register_lock): New mutex for offload image registration.
8966 (num_devices): Do not guard with PLUGIN_SUPPORT.
8967 (gomp_realloc_unlock): New static function.
8968 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
8969 before gomp_fatal.
8970 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
8971 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
8972 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
8973 mem_map's.
8974 (gomp_unmap_vars): Likewise.
8975 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
8976 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
8977 (gomp_offload_image_to_device): New static function.
8978 (GOMP_offload_register): Add mutex lock.
8979 Call gomp_offload_image_to_device for all initialized devices.
8980 Replace gomp_realloc with gomp_realloc_unlock.
8981 (GOMP_offload_unregister): New function.
8982 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
8983 get_table_func from the plugin with calls to init_device_func and
8984 gomp_offload_image_to_device.
8985 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
8986 to splay_tree_s *.
8987 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
8988 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
8989 (GOMP_target_data): Do not call gomp_init_tables.
8990 (GOMP_target_update): Likewise. Remove argument from gomp_update.
8991 (gomp_load_plugin_for_device): Replace register_image and get_table
8992 with load_image and unload_image in DLSYM ().
8993 (gomp_register_images_for_device): Remove function.
8994 (gomp_target_init): Do not initialize current_device.mem_map.*,
8995 current_device.offload_regions_registered.
8996 Remove call to gomp_register_images_for_device.
8997 Do not free offload_images and num_offload_images.
8998
8999 2015-03-30 Jakub Jelinek <jakub@redhat.com>
9000
9001 PR fortran/65597
9002 * testsuite/libgomp.fortran/pr65597.f90: New test.
9003
9004 2015-03-27 Tom de Vries <tom@codesourcery.com>
9005
9006 PR testsuite/65594
9007 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
9008 (init, check): New function.
9009 (foo): Change return type to void.
9010 (main): Call init and check.
9011
9012 2015-03-27 Tom de Vries <tom@codesourcery.com>
9013
9014 PR testsuite/65594
9015 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
9016 (foo): Use M for non-inner loops to scale down test-case.
9017
9018 2015-03-25 Kai Tietz <ktietz@redhat.com>
9019
9020 PR libgomp/64972
9021 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
9022 (GOACC_data_start): Likewise.
9023 * target.c (gomp_map_vars): Likewise.
9024
9025 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
9026
9027 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
9028 hppa*-*-hpux*.
9029
9030 2015-03-19 Jakub Jelinek <jakub@redhat.com>
9031
9032 * testsuite/libgomp.c/target-10.c: New test.
9033 * testsuite/libgomp.c++/target-4.C: New test.
9034
9035 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
9036
9037 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
9038 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
9039
9040 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
9041
9042 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
9043 * configure.ac (*-*-rtems*): Assume Pthread is supported.
9044 (pthread.h): Check for this header file.
9045 * configure: Regenerate.
9046
9047 2015-02-25 Tom de Vries <tom@codesourcery.com>
9048
9049 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
9050 (check_reduction_op, check_reduction_macro, max, min):
9051 Declare.
9052 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
9053 function.
9054 (main): Use new functions.
9055
9056 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
9057
9058 * target.c (gomp_load_plugin_for_device): Use const char * instead of
9059 char * for variables holding dlerror return values.
9060 (DLSYM_OPT): Ditto.
9061
9062 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
9063
9064 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
9065
9066 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
9067 Cesar Philippidis <cesar@codesourcery.com>
9068
9069 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
9070 GOACC_ctaid, and GOACC_nctaid routines.
9071
9072 2015-02-11 Jakub Jelinek <jakub@redhat.com>
9073
9074 PR c/64824
9075 * testsuite/libgomp.c/atomic-18.c: New test.
9076 * testsuite/libgomp.c++/atomic-16.C: New test.
9077
9078 2015-02-04 Jakub Jelinek <jakub@redhat.com>
9079
9080 PR c/64824
9081 PR c/64868
9082 * testsuite/libgomp.c/pr64824.c: New test.
9083 * testsuite/libgomp.c/pr64868.c: New test.
9084 * testsuite/libgomp.c++/pr64824.C: New test.
9085 * testsuite/libgomp.c++/pr64868.C: New test.
9086
9087 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
9088
9089 PR libgomp/64635
9090 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
9091 Link with -lpthread.
9092 * config/aix/plugin-suffix.h: Delete.
9093
9094 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
9095
9096 PR libgomp/64635
9097 * configure.tgt (*-*-aix*): Use config_path "aix posix".
9098 (*-*-darwin*): Use config_path "bsd darwin posix".
9099 (*-*-hpux*): Use config_path "hpux posix".
9100 * target.c: Add include of plugin-suffix.h and use
9101 SONAME_SUFFIX macro.
9102 * config/aix/plugin-suffix.h: New file.
9103 * config/darwin/plugin-suffix.h: New file.
9104 * config/hpux/plugin-suffix.h: New file.
9105 * config/posix/plugin-suffix.h: New file.
9106
9107 2015-01-23 Jakub Jelinek <jakub@redhat.com>
9108
9109 PR middle-end/64734
9110 * libgomp.c/pr64734.c: New test.
9111
9112 2015-01-23 Tom de Vries <tom@codesourcery.com>
9113
9114 PR libgomp/64672
9115 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
9116
9117 2015-01-23 Tom de Vries <tom@codesourcery.com>
9118
9119 PR libgomp/64707
9120 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
9121 dg-options.
9122
9123 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
9124
9125 PR libgomp/64625
9126 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
9127 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
9128 formal parameter. Update all users.
9129 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
9130 Document unused formal parameter.
9131
9132 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
9133
9134 * oacc-parallel.c: Don't include <alloca.h>.
9135 (GOACC_parallel): Use gomp_alloca instead of alloca.
9136
9137 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
9138
9139 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
9140
9141 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
9142 James Norris <jnorris@codesourcery.com>
9143 Tom de Vries <tom@codesourcery.com>
9144 Julian Brown <julian@codesourcery.com>
9145 Cesar Philippidis <cesar@codesourcery.com>
9146 Nathan Sidwell <nathan@codesourcery.com>
9147 Tobias Burnus <burnus@net-b.de>
9148
9149 * Makefile.am (search_path): Add $(top_srcdir)/../include.
9150 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
9151 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
9152 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
9153 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
9154 Include $(top_srcdir)/plugin/Makefrag.am.
9155 (nodist_libsubinclude_HEADERS): Add openacc.h.
9156 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
9157 openacc.f90, openacc.mod, openacc_kinds.mod.
9158 (omp_lib.mod): Generalize into...
9159 (%.mod): ... this new rule.
9160 (openacc_kinds.mod, openacc.mod): New rules.
9161 * plugin/configfrag.ac: New file.
9162 * configure.ac: Move plugin/offloading support into it. Include
9163 it. Instantiate testsuite/libgomp-test-support.pt.exp.
9164 * plugin/Makefrag.am: New file.
9165 * testsuite/Makefile.am (OFFLOAD_TARGETS)
9166 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
9167 export.
9168 (libgomp-test-support.exp): New rule.
9169 (all-local): Depend on it.
9170 * Makefile.in: Regenerate.
9171 * testsuite/Makefile.in: Regenerate.
9172 * config.h.in: Likewise.
9173 * configure: Likewise.
9174 * configure.tgt: Harden shell syntax.
9175 * env.c: Include "oacc-int.h".
9176 (parse_acc_device_type): New function.
9177 (gomp_debug_var, goacc_device_type, goacc_device_num): New
9178 variables.
9179 (initialize_env): Initialize those. Call
9180 goacc_runtime_initialize.
9181 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
9182 (gomp_fatal): Call gomp_vfatal.
9183 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
9184 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
9185 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
9186 (splay_tree_node, splay_tree, splay_tree_key)
9187 (struct target_mem_desc, struct splay_tree_key_s)
9188 (struct gomp_memory_mapping, struct acc_dispatch_t)
9189 (struct gomp_device_descr, gomp_acc_insert_pointer)
9190 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
9191 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
9192 (gomp_free_memmap, gomp_fini_device): New declarations.
9193 (gomp_vdebug, gomp_debug): New macros.
9194 Include "splay-tree.h".
9195 * libgomp.map (OACC_2.0): New symbol version. Use for
9196 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
9197 acc_set_device_type_h_, acc_get_device_type,
9198 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
9199 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
9200 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
9201 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
9202 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
9203 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
9204 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
9205 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
9206 acc_copyin_array_h_, acc_present_or_copyin,
9207 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
9208 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
9209 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
9210 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
9211 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
9212 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
9213 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
9214 acc_update_device, acc_update_device_32_h_,
9215 acc_update_device_64_h_, acc_update_device_array_h_,
9216 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
9217 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
9218 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
9219 acc_is_present_64_h_, acc_is_present_array_h_,
9220 acc_memcpy_to_device, acc_memcpy_from_device,
9221 acc_get_current_cuda_device, acc_get_current_cuda_context,
9222 acc_get_cuda_stream, acc_set_cuda_stream.
9223 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
9224 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
9225 GOACC_update, GOACC_wait, GOACC_get_thread_num,
9226 GOACC_get_num_threads.
9227 (GOMP_PLUGIN_1.0): New symbol version. Use for
9228 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
9229 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
9230 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
9231 GOMP_PLUGIN_acc_thread.
9232 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
9233 environment variable.
9234 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
9235 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
9236 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
9237 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
9238 (splay_tree_remove): New declarations.
9239 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
9240 (splay_tree_remove, splay_tree_lookup): Move into...
9241 * splay-tree.c: ... this new file.
9242 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
9243 (splay_tree_node, splay_tree, splay_tree_key)
9244 (struct target_mem_desc, struct splay_tree_key_s)
9245 (struct gomp_device_descr): Don't declare.
9246 (num_devices_openmp): New variable.
9247 (gomp_get_num_devices ): Use it.
9248 (gomp_init_targets_once): New function.
9249 (gomp_get_num_devices ): Use it.
9250 (get_kind, gomp_copy_from_async, gomp_free_memmap)
9251 (gomp_fini_device, gomp_register_image_for_device): New functions.
9252 (gomp_map_vars): Add devaddrs parameter.
9253 (gomp_update): Add mm parameter.
9254 (gomp_init_device): Move most of it into...
9255 (gomp_init_tables): ... this new function.
9256 (gomp_register_images_for_device): Remove function.
9257 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
9258 Make them hidden instead of static.
9259 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
9260 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
9261 (GOMP_target_end_data, GOMP_target_update)
9262 (gomp_load_plugin_for_device, gomp_target_init): Update for
9263 OpenACC changes.
9264 * oacc-async.c: New file.
9265 * oacc-cuda.c: Likewise.
9266 * oacc-host.c: Likewise.
9267 * oacc-init.c: Likewise.
9268 * oacc-int.h: Likewise.
9269 * oacc-mem.c: Likewise.
9270 * oacc-parallel.c: Likewise.
9271 * oacc-plugin.c: Likewise.
9272 * oacc-plugin.h: Likewise.
9273 * oacc-ptx.h: Likewise.
9274 * openacc.f90: Likewise.
9275 * openacc.h: Likewise.
9276 * openacc_lib.h: Likewise.
9277 * plugin/plugin-host.c: Likewise.
9278 * plugin/plugin-nvptx.c: Likewise.
9279 * libgomp-plugin.c: Likewise.
9280 * libgomp-plugin.h: Likewise.
9281 * libgomp_target.h: Remove file after merging content into the
9282 former file. Update all users.
9283 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
9284 (offload_targets_s, offload_targets_s_openacc): New variables.
9285 (check_effective_target_openacc_nvidia_accel_present)
9286 (check_effective_target_openacc_nvidia_accel_selected): New
9287 procedures.
9288 (libgomp_init): Update for OpenACC changes.
9289 * testsuite/libgomp-test-support.exp.in: New file.
9290 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
9291 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9292 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9293 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
9294 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
9295 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
9296 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
9297 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
9298 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
9299 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
9300 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
9301 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
9302 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
9303 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
9304 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
9305 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
9306 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
9307 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
9308 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
9309 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
9310 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
9311 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9312 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
9313 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
9314 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
9315 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
9316 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
9317 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
9318 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
9319 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
9320 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
9321 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
9322 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
9323 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
9324 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
9325 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
9326 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
9327 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
9328 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
9329 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
9330 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
9331 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
9332 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
9333 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
9334 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
9335 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
9336 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
9337 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
9338 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
9339 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
9340 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
9341 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
9342 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
9343 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
9344 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
9345 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
9346 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
9347 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
9348 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
9349 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
9350 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
9351 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
9352 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
9353 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
9354 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
9355 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
9356 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
9357 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
9358 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
9359 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
9360 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
9361 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
9362 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
9363 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
9364 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
9365 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
9366 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
9367 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
9368 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
9369 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
9370 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
9371 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
9372 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
9373 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
9374 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
9375 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
9376 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
9377 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
9378 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
9379 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
9380 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
9381 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
9382 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
9383 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
9384 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
9385 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
9386 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
9387 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
9388 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
9389 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
9390 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
9391 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
9392 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
9393 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
9394 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
9395 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
9396 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
9397 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
9398 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
9399 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
9400 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
9401 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
9402 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
9403 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
9404 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
9405 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
9406 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
9407 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
9408 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
9409 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
9410 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
9411 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
9412 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
9413 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
9414 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
9415 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
9416 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
9417 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
9418 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
9419 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
9420 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
9421 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
9422 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
9423 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
9424 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
9425 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
9426 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
9427 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
9428 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
9429 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
9430 Likewise.
9431 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
9432 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
9433 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
9434 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
9435 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
9436 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
9437 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
9438 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
9439 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
9440 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
9441 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
9442 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
9443 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
9444 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
9445 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
9446 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
9447 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
9448 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
9449 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
9450 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
9451 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
9452 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
9453 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
9454 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
9455 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
9456 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
9457 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
9458 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
9459 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
9460 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
9461 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
9462 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
9463 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
9464 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
9465 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
9466 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
9467 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
9468 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
9469 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
9470 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
9471 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
9472 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
9473 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
9474 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
9475 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
9476 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
9477 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
9478 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
9479 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
9480 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
9481 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
9482 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
9483 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
9484 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
9485 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
9486 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
9487 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
9488 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
9489 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
9490 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
9491
9492 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
9493 Julian Brown <julian@codesourcery.com>
9494 David Malcolm <dmalcolm@redhat.com>
9495
9496 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
9497 to "GNU Offloading and Multi Processing Runtime Library". Change
9498 all users.
9499 * configure: Regenerate.
9500 * libgomp.texi: Update.
9501
9502 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
9503
9504 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
9505 "$tgt_dir/lib32".
9506 * configure: Regenerate.
9507
9508 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
9509 "intelmic" in $offload_targets.
9510
9511 2015-01-05 Jakub Jelinek <jakub@redhat.com>
9512
9513 Update copyright years.
9514
9515 * libgomp.texi: Bump @copying's copyright year.
9516
9517 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9518
9519 * testsuite/lib/libgomp.exp: Load target-utils.exp.
9520 Move load of target-supports.exp earlier.
9521
9522 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
9523
9524 * testsuite/libgomp.c/target-9.c: New test.
9525
9526 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
9527
9528 * config.h.in: Regenerate.
9529 * configure: Regenerate.
9530 * configure.ac: Add GCC_CHECK_EMUTLS.
9531 * libgomp.h: Add check for USE_EMUTLS: this case
9532 is equal to HAVE_TLS.
9533 * team.c: Likewise.
9534
9535 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
9536
9537 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
9538
9539 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
9540 Ilya Verbin <ilya.verbin@intel.com>
9541
9542 * testsuite/libgomp.c/target-critical-1.c: New test.
9543
9544 2014-11-26 Jakub Jelinek <jakub@redhat.com>
9545
9546 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
9547 to dg-options unless expensive testing is on.
9548 (TESTITERS): Define to N if not defined.
9549 (main): Use TESTITERS instead of N.
9550 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
9551 dg-additional-options depending on whether expensive testing is on.
9552 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
9553 Decrease N to 100000 and CHUNKSZ to 10000.
9554
9555 2014-11-24 Jakub Jelinek <jakub@redhat.com>
9556
9557 PR fortran/63938
9558 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
9559 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
9560
9561 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
9562
9563 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
9564
9565 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
9566
9567 PR bootstrap/63784
9568 * configure: Regenerated.
9569
9570 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
9571
9572 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
9573 vect_simd_clones effective target.
9574 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
9575
9576 2014-11-14 Jakub Jelinek <jakub@redhat.com>
9577
9578 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
9579 of 32 as block_size.
9580 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
9581 instead of 32 as block_size.
9582
9583 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
9584 Ilya Verbin <ilya.verbin@intel.com>
9585
9586 * Makefile.in: Regenerate.
9587 * configure: Regenerate.
9588 * configure.ac: Set up offload_additional_options,
9589 offload_additional_lib_paths and offload_targets.
9590 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
9591 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
9592 * testsuite/Makefile.in: Regenerate.
9593 * testsuite/lib/libgomp.exp (libgomp_init): Append
9594 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
9595 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
9596 build directory to LD_LIBRARY_PATH for intelmic offload targets.
9597
9598 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
9599 Ilya Verbin <ilya.verbin@intel.com>
9600 Kirill Yukhin <kirill.yukhin@intel.com>
9601 Ilya Tocar <ilya.tocar@intel.com>
9602
9603 * testsuite/lib/libgomp.exp
9604 (check_effective_target_offload_device): New.
9605 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
9606 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
9607 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
9608 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
9609 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
9610 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
9611 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
9612 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
9613 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
9614 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
9615 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
9616 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
9617 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
9618 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
9619 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
9620 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
9621 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
9622 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
9623 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
9624 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
9625 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
9626 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
9627 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
9628 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
9629 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
9630 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
9631 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
9632 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
9633 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
9634 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
9635 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
9636 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
9637 * testsuite/libgomp.c/target-7.c: Fix test.
9638 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
9639 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
9640 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
9641 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
9642 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
9643 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
9644 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
9645 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
9646 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
9647 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
9648 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
9649 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
9650 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
9651 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
9652 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
9653 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
9654 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
9655 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
9656 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
9657 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
9658 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
9659 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
9660 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
9661 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
9662 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
9663 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
9664 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
9665 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
9666 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
9667 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
9668 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
9669
9670 2014-11-13 Jakub Jelinek <jakub@redhat.com>
9671 Ilya Verbin <ilya.verbin@intel.com>
9672 Thomas Schwinge <thomas@codesourcery.com>
9673 Andrey Turetskiy <andrey.turetskiy@intel.com>
9674
9675 * libgomp.map (GOMP_4.0.1): New symbol version.
9676 Add GOMP_offload_register.
9677 * libgomp_target.h: New file.
9678 * splay-tree.h: New file.
9679 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
9680 (gomp_target_init): New forward declaration.
9681 (gomp_is_initialized): New static variable.
9682 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
9683 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
9684 New structures.
9685 (offload_images, num_offload_images, devices, num_devices): New static
9686 variables.
9687 (splay_compare): New static function.
9688 (struct gomp_device_descr): New structure.
9689 (gomp_get_num_devices): Call gomp_target_init.
9690 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
9691 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
9692 (GOMP_offload_register): New function.
9693 (GOMP_target): Arrange for host callback to be performed in a separate
9694 initial thread and contention group, inheriting ICVs from
9695 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
9696 Add device initialization and lookup for target function in splay tree.
9697 (GOMP_target_data): Add device initialization and call gomp_map_vars.
9698 (GOMP_target_end_data): Call gomp_unmap_vars.
9699 (GOMP_target_update): Add device initialization and call gomp_update.
9700 (gomp_load_plugin_for_device, gomp_register_images_for_device)
9701 (gomp_target_init): New static functions.
9702
9703 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
9704 Thomas Schwinge <thomas@codesourcery.com>
9705 Ilya Verbin <ilya.verbin@intel.com>
9706 Andrey Turetskiy <andrey.turetskiy@intel.com>
9707
9708 * config.h.in: Regenerate.
9709 * configure: Regenerate.
9710 * configure.ac: Check for libdl, required for plugin support.
9711 (PLUGIN_SUPPORT): Define if plugins are supported.
9712 (enable_offload_targets): Support Intel MIC targets.
9713 (OFFLOAD_TARGETS): List of target names suitable for offloading.
9714
9715 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9716
9717 PR target/63610
9718 * configure: Regenerate.
9719
9720 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9721
9722 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
9723
9724 2014-10-06 Marek Polacek <polacek@redhat.com>
9725
9726 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
9727 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
9728 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
9729 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
9730
9731 2014-10-06 Marek Polacek <polacek@redhat.com>
9732
9733 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
9734 * testsuite/libgomp.c/nqueens-1.c: Likewise.
9735 * testsuite/libgomp.c/pr26943-3.c: Likewise.
9736 * testsuite/libgomp.c/pr26943-4.c: Likewise.
9737 * testsuite/libgomp.c/pr36802-2.c: Likewise.
9738 * testsuite/libgomp.c/pr36802-3.c: Likewise.
9739 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
9740 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
9741 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
9742 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
9743 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
9744 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
9745 * testsuite/libgomp.c/omp-single-1.c: Likewise.
9746 * testsuite/libgomp.c/omp-single-2.c: Likewise.
9747 * testsuite/libgomp.c/omp_matvec.c: Likewise.
9748 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
9749 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
9750 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
9751 declarations.
9752
9753 2014-10-03 Jakub Jelinek <jakub@redhat.com>
9754
9755 PR libgomp/61200
9756 * testsuite/libgomp.c/pr61200.c: New test.
9757
9758 2014-09-18 Jakub Jelinek <jakub@redhat.com>
9759
9760 PR c++/63248
9761 * testsuite/libgomp.c++/pr63248.C: New test.
9762
9763 2014-08-04 Jakub Jelinek <jakub@redhat.com>
9764
9765 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
9766 is not zero, but taskgroup->children is NULL and there are
9767 any task->children, schedule those instead of waiting.
9768 * testsuite/libgomp.c/depend-6.c: New test.
9769 * testsuite/libgomp.c/depend-7.c: New test.
9770 * testsuite/libgomp.c/depend-8.c: New test.
9771 * testsuite/libgomp.c/depend-9.c: New test.
9772 * testsuite/libgomp.c/depend-10.c: New test.
9773
9774 2014-08-01 Jakub Jelinek <jakub@redhat.com>
9775
9776 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
9777 (struct gomp_taskwait): New type.
9778 (struct gomp_task): Add taskwait and parent_depends_on, remove
9779 in_taskwait and taskwait_sem fields.
9780 (gomp_finish_task): Don't destroy taskwait_sem.
9781 * task.c (gomp_init_task): Don't init in_taskwait, instead init
9782 taskwait and parent_depends_on.
9783 (GOMP_task): For if (0) tasks with depend clause that depend on
9784 earlier tasks don't defer them, instead call
9785 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
9786 Initialize redundant_out field, for redundant out entries just
9787 move them at the end of linked list instead of removing them
9788 completely, and set redundant_out flag instead of redundant.
9789 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
9790 that task.
9791 (gomp_task_run_post_handle_dependers): If parent is in
9792 gomp_task_maybe_wait_for_dependencies and newly runnable task
9793 is not parent_depends_on, queue it in parent->children linked
9794 list after all runnable tasks with parent_depends_on set.
9795 Adjust for addition of taskwait indirection.
9796 (gomp_task_run_post_remove_parent): If parent is in
9797 gomp_task_maybe_wait_for_dependencies and task to be removed
9798 is parent_depends_on, decrement n_depend and if needed awake
9799 parent. Adjust for addition of taskwait indirection.
9800 (GOMP_taskwait): Adjust for addition of taskwait indirection.
9801 (gomp_task_maybe_wait_for_dependencies): New function.
9802 * testsuite/libgomp.c/depend-5.c: New test.
9803
9804 2014-07-13 Tobias Burnus <burnus@net-b.de>
9805
9806 * testsuite/libgomp.fortran/pr34020.f90: Make compile
9807 with TS 18508/Fortran 2015.
9808
9809 2014-07-06 Marek Polacek <polacek@redhat.com>
9810
9811 PR c/6940
9812 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
9813
9814 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9815
9816 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
9817 matches regex $lang_source_re, add $lang_include_flags to options.
9818 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
9819 * testsuite/libgomp.c++/c++.exp: Likewise.
9820 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
9821 and lang_include_flags instead of adding -fintrinsic-modules-path= to
9822 ALWAYS_CFLAGS.
9823 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
9824
9825 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
9826
9827 * testsuite/libgomp.fortran/fortran.exp: Explain
9828 gfortran-dg-runtest usage.
9829
9830 2014-06-25 Jakub Jelinek <jakub@redhat.com>
9831
9832 * testsuite/libgomp.fortran/simd5.f90: New test.
9833 * testsuite/libgomp.fortran/simd6.f90: New test.
9834 * testsuite/libgomp.fortran/simd7.f90: New test.
9835
9836 2014-06-24 Jakub Jelinek <jakub@redhat.com>
9837
9838 * testsuite/libgomp.c/for-2.c: Define SC to static for
9839 #pragma omp for simd testing.
9840 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
9841 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
9842 SC macro.
9843 * testsuite/libgomp.c/simd-14.c: New test.
9844 * testsuite/libgomp.c/simd-15.c: New test.
9845 * testsuite/libgomp.c/simd-16.c: New test.
9846 * testsuite/libgomp.c/simd-17.c: New test.
9847 * testsuite/libgomp.c++/for-10.C: Define SC to static for
9848 #pragma omp for simd testing.
9849 * testsuite/libgomp.c++/simd10.C: New test.
9850 * testsuite/libgomp.c++/simd11.C: New test.
9851 * testsuite/libgomp.c++/simd12.C: New test.
9852 * testsuite/libgomp.c++/simd13.C: New test.
9853
9854 * testsuite/libgomp.fortran/aligned1.f03: New test.
9855 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
9856 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
9857 tasks with !$omp parallel !$omp single.
9858 * testsuite/libgomp.fortran/target8.f90: New test.
9859 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
9860 not to use trim in the combiner, instead call elemental function.
9861 (fn): New elemental function.
9862 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
9863 Make elemental.
9864 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
9865 omp_in): Likewise.
9866 * testsuite/libgomp.fortran/udr12.f90: New test.
9867 * testsuite/libgomp.fortran/udr13.f90: New test.
9868 * testsuite/libgomp.fortran/udr14.f90: New test.
9869 * testsuite/libgomp.fortran/udr15.f90: New test.
9870
9871 2014-06-18 Jakub Jelinek <jakub@redhat.com>
9872
9873 * omp_lib.f90.in (openmp_version): Set to 201307.
9874 * omp_lib.h.in (openmp_version): Likewise.
9875 * testsuite/libgomp.c/target-8.c: New test.
9876 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
9877 and inbranch clauses.
9878 * testsuite/libgomp.fortran/depend-3.f90: New test.
9879 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
9880 openmp_version.
9881 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9882 * testsuite/libgomp.fortran/target1.f90: New test.
9883 * testsuite/libgomp.fortran/target2.f90: New test.
9884 * testsuite/libgomp.fortran/target3.f90: New test.
9885 * testsuite/libgomp.fortran/target4.f90: New test.
9886 * testsuite/libgomp.fortran/target5.f90: New test.
9887 * testsuite/libgomp.fortran/target6.f90: New test.
9888 * testsuite/libgomp.fortran/target7.f90: New test.
9889
9890 2014-06-10 Jakub Jelinek <jakub@redhat.com>
9891
9892 PR fortran/60928
9893 * testsuite/libgomp.fortran/allocatable9.f90: New test.
9894 * testsuite/libgomp.fortran/allocatable10.f90: New test.
9895 * testsuite/libgomp.fortran/allocatable11.f90: New test.
9896 * testsuite/libgomp.fortran/allocatable12.f90: New test.
9897 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
9898 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
9899 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
9900 * testsuite/libgomp.fortran/associate1.f90: New test.
9901 * testsuite/libgomp.fortran/associate2.f90: New test.
9902 * testsuite/libgomp.fortran/procptr1.f90: New test.
9903
9904 2014-06-06 Jakub Jelinek <jakub@redhat.com>
9905
9906 * testsuite/libgomp.fortran/simd1.f90: New test.
9907 * testsuite/libgomp.fortran/udr1.f90: New test.
9908 * testsuite/libgomp.fortran/udr2.f90: New test.
9909 * testsuite/libgomp.fortran/udr3.f90: New test.
9910 * testsuite/libgomp.fortran/udr4.f90: New test.
9911 * testsuite/libgomp.fortran/udr5.f90: New test.
9912 * testsuite/libgomp.fortran/udr6.f90: New test.
9913 * testsuite/libgomp.fortran/udr7.f90: New test.
9914 * testsuite/libgomp.fortran/udr8.f90: New test.
9915 * testsuite/libgomp.fortran/udr9.f90: New test.
9916 * testsuite/libgomp.fortran/udr10.f90: New test.
9917 * testsuite/libgomp.fortran/udr11.f90: New test.
9918
9919 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
9920
9921 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
9922 vect_simd_clones effective target.
9923 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
9924
9925 2014-05-21 Jakub Jelinek <jakub@redhat.com>
9926
9927 PR middle-end/61252
9928 * testsuite/libgomp.c++/simd-9.C: New test.
9929
9930 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
9931
9932 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
9933 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
9934 texts according to their @menu entry positions.
9935
9936 2014-05-11 Jakub Jelinek <jakub@redhat.com>
9937
9938 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
9939 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
9940 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
9941 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
9942 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
9943 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
9944 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
9945 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
9946 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
9947 * testsuite/libgomp.fortran/depend-1.f90: New test.
9948 * testsuite/libgomp.fortran/depend-2.f90: New test.
9949 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
9950 * testsuite/libgomp.fortran/simd1.f90: New test.
9951 * testsuite/libgomp.fortran/simd2.f90: New test.
9952 * testsuite/libgomp.fortran/simd3.f90: New test.
9953 * testsuite/libgomp.fortran/simd4.f90: New test.
9954 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
9955
9956 2014-05-02 Jakub Jelinek <jakub@redhat.com>
9957
9958 * testsuite/libgomp.c/simd-10.c: New test.
9959 * testsuite/libgomp.c/simd-11.c: New test.
9960 * testsuite/libgomp.c/simd-12.c: New test.
9961 * testsuite/libgomp.c/simd-13.c: New test.
9962
9963 2014-04-24 Jakub Jelinek <jakub@redhat.com>
9964
9965 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
9966 atomic type clauses in any order and optional comma in between.
9967 * testsuite/libgomp.c++/atomic-15.C: Likewise.
9968 * testsuite/libgomp.c/atomic-17.c: Likewise.
9969
9970 * testsuite/libgomp.c/simd-7.c: New test.
9971 * testsuite/libgomp.c/simd-8.c: New test.
9972 * testsuite/libgomp.c/simd-9.c: New test.
9973 * testsuite/libgomp.c/loop-16.c: New test.
9974
9975 2014-04-02 Richard Henderson <rth@redhat.com>
9976
9977 * config/linux/futex.h (futex_wait): Get error value from errno.
9978 (futex_wake): Likewise.
9979
9980 2014-03-25 Jakub Jelinek <jakub@redhat.com>
9981
9982 PR c++/60331
9983 * testsuite/libgomp.c++/udr-11.C: New test.
9984 * testsuite/libgomp.c++/udr-12.C: New test.
9985 * testsuite/libgomp.c++/udr-13.C: New test.
9986 * testsuite/libgomp.c++/udr-14.C: New test.
9987 * testsuite/libgomp.c++/udr-15.C: New test.
9988 * testsuite/libgomp.c++/udr-16.C: New test.
9989 * testsuite/libgomp.c++/udr-17.C: New test.
9990 * testsuite/libgomp.c++/udr-18.C: New test.
9991 * testsuite/libgomp.c++/udr-19.C: New test.
9992
9993 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9994
9995 Update copyright years
9996
9997 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9998
9999 * hashtab.h: Use the standard form for the copyright notice.
10000
10001 2014-01-02 Tobias Burnus <burnus@net-b.de>
10002
10003 * libgomp.texi: Bump @copying's copyright year.
10004
10005 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
10006
10007 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
10008 alloca () with __builtin_alloca ().
10009 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
10010 * testsuite/libgomp.c/lock-3.c: Likewise.
10011 * testsuite/libgomp.c/pr48591.c: Likewise.
10012
10013 2013-12-17 Jakub Jelinek <jakub@redhat.com>
10014
10015 PR testsuite/59534
10016 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
10017 comparisons.
10018
10019 2013-12-16 Jakub Jelinek <jakub@redhat.com>
10020
10021 PR libgomp/58756
10022 * testsuite/libgomp.c/pr58756.c: New test.
10023
10024 2013-12-12 Jakub Jelinek <jakub@redhat.com>
10025
10026 PR libgomp/59467
10027 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
10028 !$omp parallel.
10029
10030 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
10031
10032 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
10033 ALWAYS_CFLAGS.
10034 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
10035 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
10036 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
10037 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
10038 Likewise.
10039
10040 * libgomp_g.h: Include <stddef.h> for size_t.
10041
10042 * libgomp.spec.in: Update comment about libgomp's dependencies.
10043 * configure.ac: Likewise.
10044 * configure: Regenerate.
10045
10046 2013-10-16 Tobias Burnus <burnus@net-b.de>
10047
10048 * libgomp.texi: (Runtime Library Routines): Update references for
10049 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
10050 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
10051 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
10052 (Environment Variables): Update references for OpenMP 4.0. Add
10053 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
10054 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
10055 order.
10056
10057 2013-10-14 Jakub Jelinek <jakub@redhat.com>
10058
10059 * env.c (parse_bind_var): Initialize value to avoid
10060 (false positive) warning.
10061
10062 2013-10-12 Jakub Jelinek <jakub@redhat.com>
10063
10064 PR libgomp/58691
10065 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
10066 to check variable.
10067 (gomp_init_num_threads): Move i variable declaration into
10068 #ifdef CPU_ALLOC_SIZE block.
10069 * config/linux/affinity.c (gomp_affinity_init_level): Test
10070 gomp_places_list_len == 0 rather than gomp_places_list == 0
10071 when checking for topology reading error.
10072 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
10073 * env.c (parse_affinity): Add ignore argument, if true, don't populate
10074 gomp_places_list, only parse env var and always return false.
10075 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
10076 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
10077 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
10078 and either of these variables were parsed correctly into a places
10079 list.
10080
10081 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
10082 Jakub Jelinek <jakub@redhat.com>
10083
10084 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
10085 of 5 loopfn matches.
10086 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
10087 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
10088 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
10089 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
10090 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
10091 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
10092 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
10093 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
10094
10095 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
10096
10097 * Makefile.am (omp_lib.mod): Streamline rule.
10098 * Makefile.in: Regenerate.
10099
10100 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
10101 exceptions.
10102
10103 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
10104 * testsuite/libgomp.fortran/lib1.f90: Likewise.
10105 * testsuite/libgomp.fortran/lib2.f: Likewise.
10106 * testsuite/libgomp.fortran/lib3.f: Likewise.
10107
10108 * configure.ac: Typo fix.
10109 * configure: Regenerate.
10110
10111 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
10112 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
10113
10114 * omp.h.in: Don't touch the user's namespace.
10115
10116 2013-10-11 Jakub Jelinek <jakub@redhat.com>
10117 Tobias Burnus <burnus@net-b.de>
10118 Richard Henderson <rth@redhat.com>
10119
10120 * target.c: New file.
10121 * Makefile.am (libgomp_la_SOURCES): Add target.c.
10122 * Makefile.in: Regenerated.
10123 * libgomp_g.h (GOMP_task): Add depend argument.
10124 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
10125 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
10126 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
10127 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
10128 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
10129 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
10130 GOMP_taskgroup_start, GOMP_taskgroup_end,
10131 GOMP_parallel_sections): New prototypes.
10132 * fortran.c (omp_is_initial_device): Add ialias_redirect.
10133 (omp_is_initial_device_): New function.
10134 (ULP, STR1, STR2, ialias_redirect): Removed.
10135 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
10136 omp_set_default_device_8_, omp_get_default_device_,
10137 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
10138 functions.
10139 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
10140 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
10141 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
10142 @@GOMP_4.0.
10143 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
10144 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
10145 omp_set_default_device, omp_set_default_device_,
10146 omp_set_default_device_8_, omp_get_default_device,
10147 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
10148 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
10149 omp_get_team_num_): Export @@OMP_4.0.
10150 * team.c (struct gomp_thread_start_data): Add place field.
10151 (gomp_thread_start): Clear thr->thread_pool and
10152 thr->task before returning. Use gomp_team_barrier_wait_final
10153 instead of gomp_team_barrier_wait. Initialize thr->place.
10154 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
10155 team_cancelled and task_queued_count fields.
10156 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
10157 before calling pthread_exit.
10158 (gomp_free_thread): No longer static. Use
10159 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
10160 (gomp_team_start): Add flags argument. Set
10161 thr->thread_pool->threads_busy to nthreads immediately after creating
10162 new pool. Use gomp_managed_threads_lock instead of
10163 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
10164 (gomp_team_end): Use gomp_managed_threads_lock instead of
10165 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
10166 of gomp_team_barrier_wait. If team->team_cancelled, call
10167 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
10168 rather than thr->ts.work_share.
10169 (initialize_team): Don't call gomp_sem_init here.
10170 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
10171 caller.
10172 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
10173 * env.c (gomp_global_icv): Add default_device_var, target_data and
10174 bind_var initializers.
10175 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
10176 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
10177 gomp_places_list_len): New variables.
10178 (parse_bind_var, parse_one_place, parse_places_var): New functions.
10179 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
10180 sized places.
10181 (gomp_cancel_var): New global variable.
10182 (parse_int): New function.
10183 (handle_omp_display_env): New function.
10184 (initialize_env): Use it. Initialize default_device_var.
10185 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
10186 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
10187 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
10188 been successfully parsed (and call gomp_init_affinity in that case).
10189 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
10190 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
10191 omp_get_team_num, omp_is_initial_device): New functions.
10192 * libgomp.h: Include stdlib.h.
10193 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
10194 Define.
10195 (struct target_mem_desc): Forward declare.
10196 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
10197 and thread_limit_var fields.
10198 (gomp_get_num_devices): New prototype.
10199 (gomp_cancel_var): New extern decl.
10200 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
10201 team_cancelled and task_queued_count fields. Add comments about
10202 task_{,queued_,running_}count.
10203 (gomp_cancel_kind): New enum.
10204 (gomp_work_share_end_cancel): New prototype.
10205 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
10206 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
10207 and depend fields.
10208 (struct gomp_taskgroup): New type.
10209 (struct gomp_task_depend_entry,
10210 struct gomp_dependers_vec): New types.
10211 (gomp_finish_task): Free depend_hash if non-NULL.
10212 (struct gomp_team_state): Add place_partition_off
10213 and place_partition_len fields.
10214 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
10215 gomp_places_list_len): New extern decls.
10216 (struct gomp_thread): Add place field.
10217 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
10218 (gomp_init_thread_affinity): Add place argument.
10219 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
10220 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
10221 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
10222 gomp_affinity_init_level, gomp_affinity_print_place): New
10223 prototypes.
10224 (gomp_team_start): Add flags argument.
10225 (gomp_thread_limit_var, gomp_remaining_threads_count,
10226 gomp_remaining_threads_lock): Remove.
10227 (gomp_managed_threads_lock): New variable.
10228 (struct gomp_thread_pool): Add threads_busy field.
10229 (gomp_free_thread): New prototype.
10230 * task.c: Include hashtab.h.
10231 (hash_entry_type): New typedef.
10232 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
10233 (gomp_init_task): Clear dependers, depend_hash, depend_count,
10234 copy_ctors_done and taskgroup fields.
10235 (GOMP_task): Add depend argument, handle depend clauses. If
10236 gomp_team_barrier_cancelled or if it's taskgroup has been
10237 cancelled, don't queue or start new tasks. Set copy_ctors_done
10238 field if needed. Initialize taskgroup field. If copy_ctors_done
10239 and already cancelled, don't discard the task. If taskgroup is
10240 non-NULL, enqueue the task into taskgroup queue. Increment
10241 num_children field in taskgroup. Increment task_queued_count.
10242 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
10243 gomp_task_run_post_remove_taskgroup): New inline functions.
10244 (gomp_task_run_post_handle_depend_hash,
10245 gomp_task_run_post_handle_dependers,
10246 gomp_task_run_post_handle_depend): New functions.
10247 (GOMP_taskwait): Use them. If more than one new tasks
10248 have been queued, wake other threads if needed.
10249 (gomp_barrier_handle_tasks): Likewise. If
10250 gomp_team_barrier_cancelled, don't start any new tasks, just free
10251 all tasks.
10252 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
10253 * omp_lib.f90.in
10254 (omp_proc_bind_kind, omp_proc_bind_false,
10255 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
10256 omp_proc_bind_spread): New params.
10257 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
10258 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
10259 omp_get_team_num, omp_is_initial_device): New interfaces.
10260 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
10261 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
10262 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
10263 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
10264 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
10265 useless use omp_lib_kinds.
10266 * omp.h.in (omp_proc_bind_t): New typedef.
10267 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
10268 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
10269 omp_get_team_num, omp_is_initial_device): New prototypes.
10270 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
10271 through to gomp_team_start.
10272 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
10273 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
10274 Adjust gomp_parallel_loop_start callers.
10275 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
10276 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
10277 GOMP_loop_end_cancel): New functions.
10278 (GOMP_parallel_end): Add ialias_redirect.
10279 * hashtab.h: New file.
10280 * libgomp.texi (Environment Variables): Minor cleanup,
10281 update section refs to OpenMP 4.0rc2.
10282 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
10283 environment variables.
10284 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
10285 team->work_shares_to_free to thr->ts.work_share before calling
10286 free_work_share.
10287 (gomp_work_share_end_cancel): New function.
10288 * config/linux/proc.c: Include errno.h.
10289 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
10290 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
10291 sizeof (cpu_set_t) to determine number of iterations. Fix up check
10292 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
10293 gomp_cpuset_size is sizeof (cpu_set_t).
10294 (gomp_init_num_threads): Initialize gomp_cpuset_size,
10295 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
10296 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
10297 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
10298 contain any logical CPUs.
10299 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
10300 is NULL. Use gomp_cpusetp instead of &cpuset and pass
10301 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
10302 pthread_getaffinity_np. Check gomp_places_list instead of
10303 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
10304 * config/linux/bar.c (gomp_barrier_wait_end,
10305 gomp_barrier_wait_last): Use BAR_* defines.
10306 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
10307 from state where needed. Set work_share_cancelled to 0 on last
10308 thread.
10309 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
10310 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
10311 functions.
10312 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
10313 Add cpusetsize argument.
10314 (gomp_cpuset_size, gomp_cpusetp): Declare.
10315 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
10316 (affinity_counter): Remove.
10317 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
10318 if CPU_ALLOC_SIZE isn't defined.
10319 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
10320 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
10321 bind current thread to the first place.
10322 (gomp_init_thread_affinity): Rewritten. Add place argument, just
10323 pthread_setaffinity_np to gomp_places_list[place].
10324 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
10325 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
10326 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
10327 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
10328 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
10329 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
10330 (gomp_barrier_t): Add awaited_final field.
10331 (gomp_barrier_init): Initialize awaited_final field.
10332 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
10333 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
10334 prototypes.
10335 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
10336 defines.
10337 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
10338 gomp_team_barrier_cancelled): New inline functions.
10339 (gomp_barrier_last_thread,
10340 gomp_team_barrier_set_task_pending,
10341 gomp_team_barrier_clear_task_pending,
10342 gomp_team_barrier_set_waiting_for_tasks,
10343 gomp_team_barrier_waiting_for_tasks,
10344 gomp_team_barrier_done): Use BAR_* defines.
10345 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
10346 (gomp_barrier_wait_end): Use BAR_* defines.
10347 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
10348 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
10349 Use BAR_* defines.
10350 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
10351 gomp_team_barrier_cancel): New functions.
10352 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
10353 argument.
10354 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
10355 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
10356 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
10357 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
10358 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
10359 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
10360 (gomp_barrier_t): Add cancellable field.
10361 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
10362 gomp_team_barrier_cancel): New prototypes.
10363 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
10364 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
10365 gomp_team_barrier_cancelled): New inline functions.
10366 (gomp_barrier_wait_start, gomp_barrier_last_thread,
10367 gomp_team_barrier_set_task_pending,
10368 gomp_team_barrier_clear_task_pending,
10369 gomp_team_barrier_set_waiting_for_tasks,
10370 gomp_team_barrier_waiting_for_tasks,
10371 gomp_team_barrier_done): Use BAR_* defines.
10372 * barrier.c (GOMP_barrier_cancel): New function.
10373 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
10374 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
10375 omp_proc_bind_spread): New params.
10376 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
10377 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
10378 omp_get_team_num, omp_is_initial_device): New externals.
10379 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
10380 New functions.
10381 (gomp_resolve_num_threads): Adjust for thread_limit now being in
10382 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
10383 infinity. If not nested, just return minimum of max_num_threads
10384 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
10385 to the returned value. Otherwise, don't update atomically
10386 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
10387 (GOMP_parallel_end): Adjust for thread_limit now being in
10388 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
10389 infinity. Adjust threads_busy in the pool rather than
10390 gomp_remaining_threads_count. Remember team->nthreads and call
10391 gomp_team_end before adjusting threads_busy, if not nested
10392 afterwards, just set it to 1 non-atomically. Add ialias.
10393 (GOMP_parallel_start): Adjust gomp_team_start caller.
10394 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
10395 * testsuite/libgomp.c/affinity-1.c: New test.
10396 * testsuite/libgomp.c/atomic-15.c: New test.
10397 * testsuite/libgomp.c/atomic-16.c: New test.
10398 * testsuite/libgomp.c/atomic-17.c: New test.
10399 * testsuite/libgomp.c/cancel-for-1.c: New test.
10400 * testsuite/libgomp.c/cancel-for-2.c: New test.
10401 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
10402 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
10403 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
10404 * testsuite/libgomp.c/cancel-sections-1.c: New test.
10405 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
10406 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
10407 * testsuite/libgomp.c/depend-1.c: New test.
10408 * testsuite/libgomp.c/depend-2.c: New test.
10409 * testsuite/libgomp.c/depend-3.c: New test.
10410 * testsuite/libgomp.c/depend-4.c: New test.
10411 * testsuite/libgomp.c/for-1.c: New test.
10412 * testsuite/libgomp.c/for-1.h: New file.
10413 * testsuite/libgomp.c/for-2.c: New test.
10414 * testsuite/libgomp.c/for-2.h: New file.
10415 * testsuite/libgomp.c/for-3.c: New test.
10416 * testsuite/libgomp.c/pr58392.c: New test.
10417 * testsuite/libgomp.c/simd-1.c: New test.
10418 * testsuite/libgomp.c/simd-2.c: New test.
10419 * testsuite/libgomp.c/simd-3.c: New test.
10420 * testsuite/libgomp.c/simd-4.c: New test.
10421 * testsuite/libgomp.c/simd-5.c: New test.
10422 * testsuite/libgomp.c/simd-6.c: New test.
10423 * testsuite/libgomp.c/target-1.c: New test.
10424 * testsuite/libgomp.c/target-2.c: New test.
10425 * testsuite/libgomp.c/target-3.c: New test.
10426 * testsuite/libgomp.c/target-4.c: New test.
10427 * testsuite/libgomp.c/target-5.c: New test.
10428 * testsuite/libgomp.c/target-6.c: New test.
10429 * testsuite/libgomp.c/target-7.c: New test.
10430 * testsuite/libgomp.c/taskgroup-1.c: New test.
10431 * testsuite/libgomp.c/thread-limit-1.c: New test.
10432 * testsuite/libgomp.c/thread-limit-2.c: New test.
10433 * testsuite/libgomp.c/thread-limit-3.c: New test.
10434 * testsuite/libgomp.c/udr-1.c: New test.
10435 * testsuite/libgomp.c/udr-2.c: New test.
10436 * testsuite/libgomp.c/udr-3.c: New test.
10437 * testsuite/libgomp.c++/affinity-1.C: New test.
10438 * testsuite/libgomp.c++/atomic-10.C: New test.
10439 * testsuite/libgomp.c++/atomic-11.C: New test.
10440 * testsuite/libgomp.c++/atomic-12.C: New test.
10441 * testsuite/libgomp.c++/atomic-13.C: New test.
10442 * testsuite/libgomp.c++/atomic-14.C: New test.
10443 * testsuite/libgomp.c++/atomic-15.C: New test.
10444 * testsuite/libgomp.c++/cancel-for-1.C: New test.
10445 * testsuite/libgomp.c++/cancel-for-2.C: New test.
10446 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
10447 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
10448 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
10449 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
10450 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
10451 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
10452 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
10453 * testsuite/libgomp.c++/cancel-test.h: New file.
10454 * testsuite/libgomp.c++/for-9.C: New test.
10455 * testsuite/libgomp.c++/for-10.C: New test.
10456 * testsuite/libgomp.c++/for-11.C: New test.
10457 * testsuite/libgomp.c++/simd-1.C: New test.
10458 * testsuite/libgomp.c++/simd-2.C: New test.
10459 * testsuite/libgomp.c++/simd-3.C: New test.
10460 * testsuite/libgomp.c++/simd-4.C: New test.
10461 * testsuite/libgomp.c++/simd-5.C: New test.
10462 * testsuite/libgomp.c++/simd-6.C: New test.
10463 * testsuite/libgomp.c++/simd-7.C: New test.
10464 * testsuite/libgomp.c++/simd-8.C: New test.
10465 * testsuite/libgomp.c++/target-1.C: New test.
10466 * testsuite/libgomp.c++/target-2.C: New test.
10467 * testsuite/libgomp.c++/target-2-aux.cc: New file.
10468 * testsuite/libgomp.c++/target-3.C: New test.
10469 * testsuite/libgomp.c++/taskgroup-1.C: New test.
10470 * testsuite/libgomp.c++/udr-1.C: New test.
10471 * testsuite/libgomp.c++/udr-2.C: New test.
10472 * testsuite/libgomp.c++/udr-3.C: New test.
10473 * testsuite/libgomp.c++/udr-4.C: New test.
10474 * testsuite/libgomp.c++/udr-5.C: New test.
10475 * testsuite/libgomp.c++/udr-6.C: New test.
10476 * testsuite/libgomp.c++/udr-7.C: New test.
10477 * testsuite/libgomp.c++/udr-8.C: New test.
10478 * testsuite/libgomp.c++/udr-9.C: New test.
10479
10480 2013-09-20 Jakub Jelinek <jakub@redhat.com>
10481
10482 PR testsuite/57605
10483 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
10484 ALWAYS_CFLAGS.
10485
10486 2013-09-20 Alan Modra <amodra@gmail.com>
10487
10488 * configure: Regenerate.
10489
10490 2013-09-19 Jakub Jelinek <jakub@redhat.com>
10491
10492 * testsuite/libgomp.c/sections-2.c: New test.
10493
10494 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
10495
10496 * testsuite/libgomp.fortran/strassen.f90:
10497 Add dg-skip-if aarch64_tiny.
10498
10499 2013-06-20 Iain Sandoe <iain@codesourcery.com>
10500 Cesar Philippidis <cesar@codesourcery.com>
10501
10502 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
10503 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
10504 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
10505 * testsuite/libgomp.fortran/fortran.exp: Likewise.
10506 * testsuite/libgomp.graphite/graphite.exp: Likewise.
10507 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
10508 Use dg-runtest rather than gfortran-dg-runtest.
10509
10510 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
10511
10512 * testsuite/libgomp.c/icv-2.c: Extend current handling of
10513 Linux-based x86 systems to cover all GNU systems.
10514 * testsuite/libgomp.c/lock-3.c: Likewise.
10515 * testsuite/libgomp.c/pr48591.c: Likewise.
10516
10517 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
10518
10519 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
10520 GNU/Hurd, as done for Linux-based systems.
10521
10522 * config/posix/ptrlock.h: Fix comment.
10523
10524 2013-05-27 Tobias Burnus <burnus@net-b.de>
10525
10526 PR fortran/57423
10527 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
10528 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
10529 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
10530 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
10531 omp_destroy_nest_lock): Correct arguments to match the one in
10532 the OpenMP spec.
10533 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
10534 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
10535 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
10536 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
10537
10538 2013-05-16 Jakub Jelinek <jakub@redhat.com>
10539
10540 * testsuite/libgomp.c/loop-13.c: New test.
10541 * testsuite/libgomp.c/loop-14.c: New test.
10542 * testsuite/libgomp.c/loop-15.c: New test.
10543 * testsuite/libgomp.c++/loop-13.C: New test.
10544 * testsuite/libgomp.c++/loop-14.C: New test.
10545 * testsuite/libgomp.c++/loop-15.C: New test.
10546
10547 2013-02-06 Jakub Jelinek <jakub@redhat.com>
10548
10549 PR middle-end/56217
10550 * testsuite/libgomp.c++/pr56217.C: New test.
10551
10552 2013-02-01 Alan Modra <amodra@gmail.com>
10553
10554 * task.c (GOMP_task, GOMP_taskwait): Comment.
10555
10556 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
10557 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
10558
10559 PR libgomp/55561
10560 * config/linux/wait.h (do_spin): Use atomic load for addr.
10561 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
10562 for intptr and ptrlock.
10563 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
10564 for ptrlock.
10565
10566 2013-01-22 Alan Modra <amodra@gmail.com>
10567
10568 PR libgomp/51376
10569 PR libgomp/56073
10570 * task.c (GOMP_task): Revert 2011-12-09 change.
10571 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
10572 barrier to read task->children..
10573 (gomp_barrier_handle_tasks): ..and matching atomic store with
10574 release barrier here when setting parent->children to NULL.
10575
10576 2013-01-16 Jakub Jelinek <jakub@redhat.com>
10577 Tobias Burnus <burnus@net-b.de>
10578
10579 PR driver/55884
10580 * testsuite/libgomp.fortran/fortran.exp: Use
10581 -fintrinsic-modules-path= instead of
10582 -fintrinsic-modules-path.
10583
10584 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
10585
10586 Update copyright years.
10587
10588 2012-12-19 Tobias Burnus <burnus@net-b.de>
10589
10590 * testsuite/libgomp.fortran/fortran.exp: Set
10591 -fintrinsic-modules-path.
10592
10593 2012-12-19 Tobias Burnus <burnus@net-b.de>
10594
10595 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
10596 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
10597
10598 2012-11-21 Jakub Jelinek <jakub@redhat.com>
10599
10600 PR libgomp/55411
10601 * team.c (gomp_free_thread): Decrease gomp_managed_threads
10602 if pool had any threads_used.
10603
10604 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
10605
10606 * testsuite/libgomp.c++/pr24455.C: Use
10607 -Wl,-undefined,dynamic_lookup on darwin.
10608
10609 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
10610
10611 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
10612
10613 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
10614
10615 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
10616
10617 2012-10-23 Ian Bolton <ian.bolton@arm.com>
10618 Jim MacArthur <jim.macarthur@arm.com>
10619 Marcus Shawcroft <marcus.shawcroft@arm.com>
10620 Nigel Stephens <nigel.stephens@arm.com>
10621 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10622 Richard Earnshaw <rearnsha@arm.com>
10623 Sofiane Naci <sofiane.naci@arm.com>
10624 Stephen Thomas <stephen.thomas@arm.com>
10625 Tejas Belagod <tejas.belagod@arm.com>
10626 Yufeng Zhang <yufeng.zhang@arm.com>
10627
10628 * configure.tgt: Add AArch64.
10629
10630 2012-10-04 Jason Merrill <jason@redhat.com>
10631
10632 * testsuite/libgomp.c++/tls-init1.C: New.
10633
10634 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
10635
10636 * configure: Regenerated.
10637
10638 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
10639
10640 * config/linux/mips/futex.h (sys_futex0): Change to static
10641 function with noinline, nomips16 attributes under MIPS16. Adjust
10642 asm statement to place 'li v0,SYS_futex' immediately before
10643 syscall insn.
10644
10645 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
10646
10647 * libgomp.texi (Library Index): Renamed from "Index" to prevent
10648 conflict with index.html on case-insensitive file systems.
10649
10650 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
10651
10652 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
10653 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
10654
10655 2012-07-02 Richard Guenther <rguenther@suse.de>
10656 Michael Matz <matz@suse.de>
10657 Tobias Grosser <tobias@grosser.es>
10658 Sebastian Pop <sebpop@gmail.com>
10659
10660 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
10661 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
10662 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
10663 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
10664
10665 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
10666
10667 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
10668
10669 2012-06-22 Richard Guenther <rguenther@suse.de>
10670
10671 Merge from graphite branch
10672 2012-01-13 Tobias Grosser <tobias@grosser.es>
10673
10674 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10675 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
10676
10677 2012-06-07 Jakub Jelinek <jakub@redhat.com>
10678
10679 PR middle-end/53580
10680 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
10681 use GOMP_barrier () call instead.
10682 * testsuite/libgomp.c/pr26943-3.c: Likewise.
10683 * testsuite/libgomp.c/pr26943-4.c: Likewise.
10684 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
10685 call GOMP_barrier instead.
10686 * testsuite/libgomp.fortran/vla5.f90: Likewise.
10687
10688 2012-06-06 Jakub Jelinek <jakub@redhat.com>
10689
10690 PR libgomp/52993
10691 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
10692 argument to memset call.
10693
10694 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
10695
10696 * configure: Regenerated.
10697
10698 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
10699
10700 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
10701
10702 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
10703
10704 PR bootstrap/52812
10705 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
10706
10707 2012-03-22 Jakub Jelinek <jakub@redhat.com>
10708
10709 PR middle-end/52547
10710 * testsuite/libgomp.c/pr52547.c: New test.
10711
10712 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
10713
10714 * testsuite/lib/libgomp.exp: load fortran-modules.exp
10715
10716 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10717
10718 * configure.tgt (mips-sgi-irix6*): Remove.
10719
10720 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10721
10722 * configure.tgt (alpha*-dec-osf*): Remove.
10723
10724 * config/osf/sem.h: Remove.
10725 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
10726
10727 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
10728
10729 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
10730
10731 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10732
10733 PR libstdc++/52188
10734 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
10735 Remove ENABLE_SYMVERS_SOL2.
10736 * configure: Regenerate.
10737 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
10738 (PREPROCESS): New variable.
10739 (libgomp.ver): New target.
10740 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
10741 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
10742 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
10743 Use libgomp.ver.
10744 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
10745 * Makefile.in: Regenerate.
10746
10747 2012-02-14 Walter Lee <walt@tilera.com>
10748
10749 * configure.tgt: Handle tilegx and tilepro.
10750 * config/linux/tile/futex.h: New file.
10751
10752 2012-02-08 Richard Guenther <rguenther@suse.de>
10753
10754 PR tree-optimization/46886
10755 * testsuite/libgomp.c/pr46886.c: New testcase.
10756
10757 2012-01-25 Matthias Klose <doko@ubuntu.com>
10758
10759 * config/linux/arm: Remove empty directory.
10760 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
10761
10762 2011-12-09 Alan Modra <amodra@gmail.com>
10763
10764 PR libgomp/51376
10765 * task.c (GOMP_taskwait): Don't access task->children outside of
10766 task_lock mutex region.
10767 (GOMP_task): Likewise.
10768
10769 2011-12-06 Jakub Jelinek <jakub@redhat.com>
10770
10771 PR libgomp/51132
10772 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
10773 to file scope.
10774 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
10775 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
10776 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
10777 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
10778 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
10779
10780 2011-12-02 Alan Modra <amodra@gmail.com>
10781
10782 * config/linux/affinity.c: Use atomic rather than sync builtin.
10783 * config/linux/lock.c: Likewise.
10784 * config/linux/ptrlock.h: Likewise.
10785 * config/linux/ptrlock.c: Likewise.
10786 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
10787 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
10788 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
10789 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
10790 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
10791 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
10792 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
10793 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
10794 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
10795 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
10796
10797 2011-11-30 Alan Modra <amodra@gmail.com>
10798
10799 PR libgomp/51298
10800 * config/linux/bar.h: Use atomic rather than sync builtins.
10801 * config/linux/bar.c: Likewise. Add missing acquire
10802 synchronisation on generation field.
10803 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
10804 double unlock.
10805
10806 2011-11-30 Alan Modra <amodra@gmail.com>
10807
10808 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
10809 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
10810 * config/linux/mutex.h: Use atomic rather than sync builtins.
10811 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
10812 * config/linux/omp-lock.h: Comment fix.
10813 * config/linux/arm/mutex.h: Delete.
10814 * config/linux/powerpc/mutex.h: Delete.
10815 * config/linux/ia64/mutex.h: Delete.
10816 * config/linux/mips/mutex.h: Delete.
10817
10818 2011-11-30 Alan Modra <amodra@gmail.com>
10819
10820 PR libgomp/51249
10821 * config/linux/sem.h: Rewrite.
10822 * config/linux/sem.c: Rewrite.
10823
10824 2011-11-28 Richard Henderson <rth@redhat.com>
10825
10826 * libgomp.h (enum memmodel): New.
10827
10828 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
10829
10830 * configure: Regenerate.
10831
10832 2011-10-10 Matthias Klose <doko@ubuntu.com>
10833
10834 * config/posix95: Remove empty directory.
10835
10836 2011-08-26 Jakub Jelinek <jakub@redhat.com>
10837
10838 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
10839
10840 2011-08-19 Jakub Jelinek <jakub@redhat.com>
10841
10842 PR fortran/49792
10843 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
10844 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
10845
10846 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10847
10848 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
10849
10850 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10851
10852 PR libgomp/49965
10853 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
10854
10855 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
10856
10857 * config/linux/proc.h: New.
10858 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
10859 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
10860 (gomp_init_num_threads): Update call to cpuset_popcount.
10861 (get_num_procs): Ditto.
10862 * config/linux/affinity.c (gomp_init_affinity): Call
10863 gomp_cpuset_popcount.
10864
10865 2011-08-02 Jakub Jelinek <jakub@redhat.com>
10866
10867 PR fortran/42041
10868 PR fortran/46752
10869 * omp.h.in (omp_in_final): New prototype.
10870 * omp_lib.f90.in (omp_in_final): New interface.
10871 (omp_integer_kind, omp_logical_kind): Remove
10872 and replace all its uses in the module with 4.
10873 (openmp_version): Change to 201107.
10874 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
10875 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
10876 kind for the parameters.
10877 (omp_in_final): New external.
10878 (openmp_version): Change to 201107.
10879 * task.c (omp_in_final): New function.
10880 (gomp_init_task): Initialize final_task.
10881 (GOMP_task): Remove unused attribute from flags. Handle final
10882 tasks.
10883 (GOMP_taskyield): New function.
10884 (omp_in_final): Return true if if (false) or final (true) task
10885 or descendant of final (true).
10886 * fortran.c (omp_in_final_): New function.
10887 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
10888 (GOMP_3.0): Export GOMP_taskyield.
10889 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
10890 variables.
10891 (parse_unsigned_long_list): New function.
10892 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
10893 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
10894 even if parse_affinity returned false.
10895 * config/linux/affinity.c (gomp_init_affinity): Handle
10896 gomp_cpu_affinity_len == 0.
10897 * libgomp_g.h (GOMP_taskyield): New prototype.
10898 * libgomp.h (struct gomp_task): Add final_task field.
10899 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
10900 * team.c (gomp_team_start): Override new task's nthreads_var icv
10901 if list form OMP_NUM_THREADS has been used and it has value for
10902 the new nesting level.
10903
10904 * testsuite/libgomp.c/atomic-11.c: New test.
10905 * testsuite/libgomp.c/atomic-12.c: New test.
10906 * testsuite/libgomp.c/atomic-13.c: New test.
10907 * testsuite/libgomp.c/atomic-14.c: New test.
10908 * testsuite/libgomp.c/reduction-6.c: New test.
10909 * testsuite/libgomp.c/task-5.c: New test.
10910 * testsuite/libgomp.c++/atomic-2.C: New test.
10911 * testsuite/libgomp.c++/atomic-3.C: New test.
10912 * testsuite/libgomp.c++/atomic-4.C: New test.
10913 * testsuite/libgomp.c++/atomic-5.C: New test.
10914 * testsuite/libgomp.c++/atomic-6.C: New test.
10915 * testsuite/libgomp.c++/atomic-7.C: New test.
10916 * testsuite/libgomp.c++/atomic-8.C: New test.
10917 * testsuite/libgomp.c++/atomic-9.C: New test.
10918 * testsuite/libgomp.c++/task-8.C: New test.
10919 * testsuite/libgomp.c++/reduction-4.C: New test.
10920 * testsuite/libgomp.fortran/allocatable7.f90: New test.
10921 * testsuite/libgomp.fortran/allocatable8.f90: New test.
10922 * testsuite/libgomp.fortran/crayptr3.f90: New test.
10923 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
10924 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
10925 * testsuite/libgomp.fortran/pointer1.f90: New test.
10926 * testsuite/libgomp.fortran/pointer2.f90: New test.
10927 * testsuite/libgomp.fortran/task4.f90: New test.
10928
10929 2011-08-02 Tobias Burnus <burnus@net-b.de>
10930
10931 * libgomp.texi: Update OpenMP spec references to 3.1.
10932 (omp_in_final,OMP_PROC_BIND): New sections.
10933 (OMP_NUM_THREADS): Document that the value can be now a list.
10934 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
10935
10936 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
10937
10938 * config/linux/x86/futex.h: Check __x86_64__ instead of
10939 __LP64__.
10940
10941 2011-07-29 Jakub Jelinek <jakub@redhat.com>
10942
10943 PR middle-end/49897
10944 PR middle-end/49898
10945 * testsuite/libgomp.c/pr49897-1.c: New test.
10946 * testsuite/libgomp.c/pr49897-2.c: New test.
10947 * testsuite/libgomp.c/pr49898-1.c: New test.
10948 * testsuite/libgomp.c/pr49898-2.c: New test.
10949
10950 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
10951
10952 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
10953 for ia32 instead of ilp32.
10954
10955 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
10956 * testsuite/libgomp.c/atomic-6.c: Likewise.
10957
10958 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
10959
10960 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
10961 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
10962
10963 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10964
10965 PR libgomp/45351
10966 * config/osf/sem.h: New file.
10967 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
10968
10969 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10970
10971 PR target/49541
10972 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
10973 ldflags.
10974
10975 2011-07-15 Jakub Jelinek <jakub@redhat.com>
10976
10977 * config/linux/wait.h (do_spin): New inline, largely copied
10978 from do_wait, just don't do futex_wait here, instead return true if
10979 it should be done.
10980 (do_wait): Implement using do_spin.
10981 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
10982 to prototype.
10983 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
10984 __sync_bool_compare_and_swap, pass the oldval to
10985 gomp_mutex_lock_slow.
10986 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
10987 If all mutex contenders are just spinning and not sleeping, don't
10988 change state to 2 unnecessarily. Optimize the loop when state has
10989 already become 2 to use just one atomic operation per loop instead
10990 of two.
10991 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
10992 to prototype.
10993 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
10994 __sync_bool_compare_and_swap, pass the oldval to
10995 gomp_mutex_lock_slow.
10996
10997 2011-06-22 Jakub Jelinek <jakub@redhat.com>
10998
10999 PR libgomp/49490
11000 * iter.c (gomp_iter_static_next): For chunk size 0
11001 only use n ceil/ nthreads size for the first
11002 n % nthreads threads in the team instead of
11003 all threads except for the last few ones which
11004 get less work or none at all.
11005 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
11006 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
11007 chunk argument, set run_sched_modifier to 0 for static
11008 resp. 1 for other kinds. If chunk argument is 0
11009 and not static, set value to 1.
11010
11011 2011-05-19 Jakub Jelinek <jakub@redhat.com>
11012
11013 PR c++/49043
11014 * testsuite/libgomp.c++/pr49043.C: New test.
11015
11016 PR c++/48869
11017 * testsuite/libgomp.c++/pr48869.C: New test.
11018
11019 2011-05-06 Jakub Jelinek <jakub@redhat.com>
11020
11021 PR fortran/48894
11022 * fortran.c: Include limits.h.
11023 (TO_INT): Define.
11024 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
11025 *set.
11026 (omp_set_num_threads_8_, omp_set_schedule_8_,
11027 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
11028 omp_get_team_size_8_): Use TO_INT macro.
11029 * testsuite/libgomp.fortran/pr48894.f90: New test.
11030
11031 2011-04-13 Jakub Jelinek <jakub@redhat.com>
11032
11033 PR middle-end/48591
11034 * testsuite/libgomp.c/pr48591.c: New test.
11035
11036 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11037
11038 PR bootstrap/48135
11039 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
11040 * configure: Regenerate.
11041
11042 2011-02-27 Jakub Jelinek <jakub@redhat.com>
11043
11044 PR fortran/47886
11045 * testsuite/libgomp.fortran/task3.f90: New test.
11046
11047 2011-02-24 Tobias Burnus <burnus@net-b.de>
11048
11049 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
11050
11051 2011-02-23 Jakub Jelinek <jakub@redhat.com>
11052
11053 PR libgomp/47854
11054 * libgomp.texi (omp_get_wtime): Don't say time in the past
11055 must be Unix Epoch.
11056
11057 2011-02-18 Jakub Jelinek <jakub@redhat.com>
11058
11059 PR libgomp/47804
11060 * testsuite/libgomp.fortran/fortran.exp: Check for both
11061 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
11062 but $blddir != "", still append ${blddir}/${lang_library_path}
11063 to ld_library_path.
11064
11065 2011-02-16 Tobias Burnus <burnus@net-b.de>
11066
11067 PR libgomp/47758
11068 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
11069 of libquadmath.a before adding its libpath to ldflags.
11070
11071 2011-02-14 Jakub Jelinek <jakub@redhat.com>
11072
11073 PR libgomp/47731
11074 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
11075 to FUTEX_WAIT futex syscall.
11076 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
11077
11078 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11079
11080 * configure: Regenerate.
11081
11082 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
11083
11084 PR libstdc++/36104
11085 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
11086
11087 2011-01-16 Gerald Pfeifer
11088
11089 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
11090
11091 2010-12-14 Jakub Jelinek <jakub@redhat.com>
11092
11093 PR fortran/46874
11094 * libgomp.fortran/allocatable6.f90: New test.
11095
11096 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11097
11098 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
11099 * configure: Regenerate.
11100
11101 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
11102
11103 PR target/40125
11104 PR lto/46695
11105 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
11106 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
11107 * aclocal.m4: Regenerate.
11108 * configure: Regenerate.
11109 * Makefile.in: Regenerate.
11110 * testsuite/Makefile.in: Regenerate.
11111
11112 2010-12-02 Jakub Jelinek <jakub@redhat.com>
11113
11114 PR fortran/46753
11115 * libgomp.fortran/pr46753.f90: New test.
11116
11117 PR libgomp/43706
11118 * env.c (initialize_env): Default to spin count 300000
11119 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
11120 is specified.
11121
11122 PR libgomp/45240
11123 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
11124 at the end if sync builtins aren't supported.
11125
11126 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11127
11128 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
11129
11130 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11131
11132 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
11133
11134 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
11135
11136 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
11137
11138 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11139 Tobias Burnus <burnus@net-b.de>
11140
11141 PR fortran/32049
11142 * configure.ac:
11143 * configure: Regenerate.
11144
11145 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
11146
11147 * config/linux/futex.h: New.
11148 * config/linux/arm/mutex.h: New.
11149 * configure.tgt (arm*-*-linux*): Add config path.
11150
11151 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11152
11153 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
11154
11155 2010-09-23 Tobias Burnus <burnus@net-b.de>
11156
11157 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
11158 Change Fortran datatype to LOGICAL.
11159 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
11160 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
11161
11162 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11163
11164 * configure: Regenerate.
11165
11166 2010-07-26 Jakub Jelinek <jakub@redhat.com>
11167
11168 * libgomp.texi: Add function keyword to a couple of Fortran
11169 interfaces, use integer instead of int for Fortran.
11170
11171 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
11172
11173 * libgomp.texi: Fix spelling and pasto problems throughout.
11174 Adjust prototypes to match code.
11175
11176 2010-07-24 Tobias Burnus <burnus@net-b.de>
11177
11178 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
11179 silence -fwhole-file warning.
11180
11181 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11182
11183 * configure.tgt (*-*-solaris2.[56]*): Removed.
11184
11185 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11186
11187 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
11188 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
11189 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
11190 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
11191 targetting solaris2*.
11192 * configure: Regenerate.
11193 * config.h.in: Regenerate.
11194
11195 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
11196 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
11197 Add libgomp_version_dep.
11198 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
11199 versioning.
11200 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
11201 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
11202 * Makefile.in: Regenerate.
11203
11204 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
11205 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
11206 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
11207 to common block, protected by
11208 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
11209
11210 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
11211
11212 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
11213
11214 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
11215
11216 PR bootstrap/43170
11217 * configure: Regenerate.
11218
11219 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11220
11221 PR other/43620
11222 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
11223 * configure: Regenerate.
11224 * Makefile.in: Regenerate.
11225 * testsuite/Makefile.in: Regenerate.
11226
11227 2010-04-26 Jakub Jelinek <jakub@redhat.com>
11228
11229 PR c/43893
11230 * testsuite/libgomp.c/pr43893.c: New test.
11231 * testsuite/libgomp.c++/pr43893.C: New test.
11232
11233 2010-04-21 Jakub Jelinek <jakub@redhat.com>
11234
11235 PR middle-end/43570
11236 * testsuite/libgomp.fortran/vla8.f90: New test.
11237
11238 2010-04-20 Jakub Jelinek <jakub@redhat.com>
11239
11240 PR libgomp/43706
11241 * config/linux/affinity.c (gomp_init_affinity): Decrease
11242 gomp_available_cpus if affinity mask confines the process to fewer
11243 CPUs.
11244 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
11245 non-NULL, just return gomp_available_cpus.
11246
11247 PR libgomp/43569
11248 * sections.c (gomp_sections_init): Initialize ws->mode.
11249
11250 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
11251
11252 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
11253 not unused bar variable.
11254 * configure: Regenerate.
11255
11256 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11257
11258 * Makefile.in: Regenerate.
11259 * aclocal.m4: Regenerate.
11260 * testsuite/Makefile.in: Regenerate.
11261
11262 2010-03-22 Jakub Jelinek <jakub@redhat.com>
11263
11264 PR libgomp/42942
11265 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
11266 (initialize_env): Adjust callers.
11267 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
11268 when the argument is 0.
11269
11270 * testsuite/libgomp.c/pr42942.c: New test.
11271
11272 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
11273
11274 PR middle-end/42644
11275 PR middle-end/42130
11276 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
11277 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
11278
11279 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11280
11281 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
11282 * testsuite/libgomp.c++/task-6.C: Likewise.
11283
11284 2010-01-28 Steve Ellcey <sje@cup.hp.com>
11285
11286 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
11287
11288 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
11289
11290 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
11291 * configure: Regenerate.
11292
11293 2010-01-26 Jakub Jelinek <jakub@redhat.com>
11294
11295 PR fortran/42866
11296 * testsuite/libgomp.fortran/allocatable5.f90: New test.
11297
11298 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
11299
11300 * configure.ac: Test for executability of GFORTRAN.
11301 * configure: Regenerate.
11302
11303 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11304
11305 * configure: Regenerate.
11306
11307 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
11308
11309 PR libgomp/42602
11310 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
11311
11312 2010-01-03 Richard Guenther <rguenther@suse.de>
11313
11314 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
11315
11316 2009-12-23 Sebastian Pop <sebpop@gmail.com>
11317
11318 * testsuite/libgomp.graphite/pr4118.c: New.
11319
11320 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
11321
11322 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
11323 for darwin, protect the test with require-effective-target tls_runtime.
11324 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
11325
11326 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
11327
11328 PR target/41605
11329 * testsuite/lib/libgomp.exp: Provide -B options to allow for
11330 link spec %s substitutions for static libraries.
11331
11332 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
11333
11334 PR testsuite/42135
11335 * libgomp.graphite/force-parallel-2.c: Reduce array size.
11336
11337 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11338
11339 * Makefile.in: Regenerate.
11340 * configure: Regenerate.
11341 * testsuite/Makefile.in: Regenerate.
11342
11343 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
11344
11345 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
11346 settings for LC_ALL and LANG.
11347
11348 2009-11-25 Jakub Jelinek <jakub@redhat.com>
11349
11350 PR fortran/42162
11351 * testsuite/libgomp.fortran/pr42162.f90: New test.
11352
11353 2009-11-13 Jakub Jelinek <jakub@redhat.com>
11354
11355 PR middle-end/42029
11356 * testsuite/libgomp.c/pr42029.c: New test.
11357
11358 2009-10-26 Jakub Jelinek <jakub@redhat.com>
11359
11360 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
11361 *s. Accept ld version without text in ()s.
11362 * configure: Regenerated.
11363
11364 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
11365
11366 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
11367
11368 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11369
11370 PR libgomp/41418
11371 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
11372 or a hyphen (happens with fortran language disabled).
11373 * configure: Regenerate.
11374
11375 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11376
11377 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
11378 use sed script portable to Solaris /bin/sed for extracting ld
11379 version.
11380 * configure: Regenerate.
11381
11382 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
11383
11384 * testsuite/libgomp.graphite/bounds.c: New test.
11385
11386 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11387
11388 * Makefile.am (libgomp_la_LINK): New.
11389 * Makefile.in: Regenerate.
11390
11391 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11392
11393 * configure.ac (AC_PREREQ): Bump to 2.64.
11394
11395 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11396
11397 * Makefile.am (install-html, install-pdf): Remove.
11398 * Makefile.in: Regenerate.
11399
11400 * Makefile.in: Regenerate.
11401 * aclocal.m4: Regenerate.
11402 * config.h.in: Regenerate.
11403 * configure: Regenerate.
11404 * testsuite/Makefile.in: Regenerate.
11405
11406 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11407
11408 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
11409 * Makefile.in: Regenerate.
11410
11411 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
11412
11413 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
11414 * Makefile.in: Regenerate.
11415
11416 2009-08-19 Tobias Burnus <burnus@net-b.de>
11417
11418 PR fortran/41102
11419 omp_lib.h.in: Fix -std=f95 errors.
11420
11421 2009-08-14 David Edelsohn <edelsohn@gnu.org>
11422
11423 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
11424 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
11425 * testsuite/libgomp.graphite/graphite.exp: New.
11426
11427 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
11428
11429 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
11430 only build.
11431
11432 2009-08-04 David Daney <ddaney@caviumnetworks.com>
11433
11434 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
11435 needed memory barrier semantics.
11436 * config/linux/mips/mutex.h: New file.
11437
11438 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11439
11440 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
11441
11442 2009-07-16 Joseph Myers <joseph@codesourcery.com>
11443
11444 * configure: Regenerate.
11445
11446 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
11447
11448 PR testsuite/40699
11449 PR testsuite/40707
11450 PR testsuite/40709
11451 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
11452 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
11453 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
11454
11455 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
11456
11457 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
11458 options when choosing a multilib.
11459
11460 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
11461
11462 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
11463 ld_library_path. Use add_path. Add just find_libgcc_s to
11464 ld_library_path, not every libgcc multilib directory.
11465 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
11466 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
11467 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
11468 Use add_path.
11469 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
11470
11471 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
11472
11473 * Makefile.am (LTLDFLAGS): Define.
11474 (LINK): Define.
11475 * Makefile.in: Regenerate.
11476
11477 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
11478
11479 PR fortran/39718
11480 * testsuite/libgomp.fortran/fortran.exp: Don't link with
11481 libgfortranbegin, check existence of libgfortran.a instead of
11482 libgfortranbegin.a.
11483
11484 2009-05-20 Jakub Jelinek <jakub@redhat.com>
11485
11486 PR libgomp/40174
11487 * team.c (gomp_thread_start): Destroy thr->release semaphore.
11488 (gomp_free_pool_helper): Likewise.
11489
11490 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
11491 Jakub Jelinek <jakub@redhat.com>
11492
11493 PR fortran/35423
11494 * testsuite/libgomp.fortran/workshare2.f90: New test.
11495
11496 2009-04-09 Nick Clifton <nickc@redhat.com>
11497
11498 * iter.c: Change copyright header to refer to version 3 of the
11499 GNU General Public License with version 3.1 of the GCC Runtime
11500 Library Exception and to point readers at the COPYING3 and
11501 COPYING3.RUNTIME files and the FSF's license web page.
11502 * alloc.c: Likewise.
11503 * barrier.c: Likewise.
11504 * config/bsd/proc.c: Likewise.
11505 * config/linux/affinity.c: Likewise.
11506 * config/linux/alpha/futex.h: Likewise.
11507 * config/linux/bar.c: Likewise.
11508 * config/linux/bar.h: Likewise.
11509 * config/linux/ia64/futex.h: Likewise.
11510 * config/linux/ia64/mutex.h: Likewise.
11511 * config/linux/lock.c: Likewise.
11512 * config/linux/mips/futex.h: Likewise.
11513 * config/linux/mutex.c: Likewise.
11514 * config/linux/mutex.h: Likewise.
11515 * config/linux/powerpc/futex.h: Likewise.
11516 * config/linux/proc.c: Likewise.
11517 * config/linux/ptrlock.c: Likewise.
11518 * config/linux/ptrlock.h: Likewise.
11519 * config/linux/s390/futex.h: Likewise.
11520 * config/linux/sem.c: Likewise.
11521 * config/linux/sem.h: Likewise.
11522 * config/linux/sparc/futex.h: Likewise.
11523 * config/linux/wait.h: Likewise.
11524 * config/linux/x86/futex.h: Likewise.
11525 * config/mingw32/proc.c: Likewise.
11526 * config/mingw32/time.c: Likewise.
11527 * config/posix/affinity.c: Likewise.
11528 * config/posix/bar.c: Likewise.
11529 * config/posix/bar.h: Likewise.
11530 * config/posix/lock.c: Likewise.
11531 * config/posix/mutex.h: Likewise.
11532 * config/posix/proc.c: Likewise.
11533 * config/posix/ptrlock.h: Likewise.
11534 * config/posix/sem.c: Likewise.
11535 * config/posix/sem.h: Likewise.
11536 * config/posix/time.c: Likewise.
11537 * config/posix95/lock.c: Likewise.
11538 * critical.c: Likewise.
11539 * env.c: Likewise.
11540 * error.c: Likewise.
11541 * fortran.c: Likewise.
11542 * iter_ull.c: Likewise.
11543 * libgomp.h: Likewise.
11544 * libgomp_f.h.in: Likewise.
11545 * libgomp_g.h: Likewise.
11546 * loop.c: Likewise.
11547 * loop_ull.c: Likewise.
11548 * omp.h.in: Likewise.
11549 * omp_lib.f90.in: Likewise.
11550 * omp_lib.h.in: Likewise.
11551 * ordered.c: Likewise.
11552 * parallel.c: Likewise.
11553 * sections.c: Likewise.
11554 * single.c: Likewise.
11555 * task.c: Likewise.
11556 * team.c: Likewise.
11557 * work.c: Likewise.
11558
11559 2009-04-09 Jakub Jelinek <jakub@redhat.com>
11560
11561 * testsuite/config/default.exp: Change copyright header to refer to
11562 version 3 of the GNU General Public License and to point readers
11563 at the COPYING3 file and the FSF's license web page.
11564
11565 2009-04-08 Jakub Jelinek <jakub@redhat.com>
11566
11567 PR middle-end/39573
11568 * libgomp.c++/pr39573.C: New test.
11569
11570 2009-04-01 Jakub Jelinek <jakub@redhat.com>
11571
11572 PR other/39591
11573 * testsuite/libgomp.c/pr39591-1.c: New test.
11574 * testsuite/libgomp.c/pr39591-2.c: New test.
11575 * testsuite/libgomp.c/pr39591-3.c: New test.
11576
11577 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
11578
11579 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
11580 * testsuite/libgomp.c/atomic-6.c: Ditto.
11581
11582 2009-03-23 Jakub Jelinek <jakub@redhat.com>
11583
11584 PR c/39495
11585 * testsuite/libgomp.c/loop-12.c: New test.
11586 * testsuite/libgomp.c/loop-11.c: New test.
11587 * testsuite/libgomp.c++/loop-11.C: New test.
11588 * testsuite/libgomp.c++/loop-12.C: New test.
11589 * testsuite/libgomp.c++/for-8.C: New test.
11590
11591 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11592
11593 * configure: Regenerate.
11594
11595 2009-02-11 Jakub Jelinek <jakub@redhat.com>
11596
11597 PR middle-end/39154
11598 * testsuite/libgomp.c/pr39154.c: New test.
11599
11600 2009-01-30 Ian Lance Taylor <iant@google.com>
11601
11602 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
11603 libgomp_ld_is_gold. Get gold version number.
11604 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
11605 * configure: Rebuild.
11606
11607 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
11608
11609 * testsuite/lib/libgomp.exp: Add -B option for targets that
11610 use libgfortran.a%s in their specs.
11611
11612 2009-01-07 Jakub Jelinek <jakub@redhat.com>
11613
11614 PR libgomp/38086
11615 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
11616 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
11617 HAVE_AS_SYMVER_DIRECTIVE is not defined.
11618 * configure: Regenerated.
11619 * config.h.in: Likewise.
11620
11621 2008-12-28 Jakub Jelinek <jakub@redhat.com>
11622
11623 PR c++/38650
11624 * testsuite/libgomp.c/pr38650.c: New test.
11625 * testsuite/libgomp.c++/pr38650.C: New test.
11626
11627 2008-12-27 Jakub Jelinek <jakub@redhat.com>
11628
11629 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
11630
11631 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
11632
11633 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
11634
11635 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11636
11637 * configure: Regenerate.
11638
11639 2008-12-08 Jakub Jelinek <jakub@redhat.com>
11640
11641 PR middle-end/36802
11642 * testsuite/libgomp.c/pr36802-1.c: New test.
11643 * testsuite/libgomp.c/pr36802-2.c: New test.
11644 * testsuite/libgomp.c/pr36802-3.c: New test.
11645
11646 2008-12-01 Janis Johnson <janis187@us.ibm.com>
11647
11648 PR libgomp/38270
11649 * config/linux/powerpc/mutex.h: New.
11650
11651 2008-12-01 Jakub Jelinek <jakub@redhat.com>
11652
11653 PR c++/38257
11654 * testsuite/libgomp.c++/for-7.C: New test.
11655
11656 PR c++/38348
11657 * testsuite/libgomp.c++/for-6.C: New test.
11658
11659 2008-11-26 Janis Johnson <janis187@us.ibm.com>
11660
11661 PR testsuite/28870
11662 * testsuite/lib/libgomp.exp: Include new timeout library files.
11663 (libgomp_target_compile): Set timeout value from new proc.
11664
11665 2008-11-13 Steve Ellcey <sje@cup.hp.com>
11666
11667 PR libgomp/37938
11668 * config/linux/ia64/mutex.h: New.
11669
11670 2008-11-04 Tobias Burnus <burnus@net-b.de>
11671
11672 PR libgomp/37935
11673 * libgomp.texi (Runtime library routines, environment variables):
11674 Update for OpenMP version 3.0.
11675
11676 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
11677 Steve Ellcey <sje@cup.hp.com>
11678
11679 * configure: Regenerate for new libtool.
11680 * Makefile.in: Ditto.
11681 * testsuite/Makefile.in: Ditto.
11682
11683 2008-09-19 Jakub Jelinek <jakub@redhat.com>
11684 Andreas Tobler <a.tobler@schweiz.org>
11685
11686 * config/bsd/proc.c: New file.
11687 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
11688 * configure.ac: Check for header <sys/sysctl.h>
11689 * configure: Regenerate.
11690 * config.h.in: Likewise.
11691
11692 2008-09-05 Janis Johnson <janis187@us.ibm.com>
11693
11694 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
11695
11696 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
11697
11698 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
11699 * Makefile.in: Regenerated.
11700 * testsuite/Makefile.in: Regenerated.
11701
11702 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
11703
11704 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
11705 depend on blddir if blddir exists.
11706 (libgomp_target_compile): Likewise.
11707 * testsuite/libgomp.c++/c++.exp: Likewise.
11708 * testsuite/libgomp.fortran/fortran.exp: Likewise.
11709
11710 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11711
11712 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
11713 Do not list GPL as Invariant Section.
11714
11715 2008-07-28 Ilie Garbacea <ilie@mips.com>
11716 Chao-ying Fu <fu@mips.com>
11717
11718 * configure.tgt: Enable futex for MIPS.
11719 * config/linux/mips/futex.h: New file.
11720
11721 2008-07-16 Jakub Jelinek <jakub@redhat.com>
11722
11723 * team.c (gomp_team_end): Free team immediately if it has
11724 just one thread.
11725
11726 2008-07-08 David Edelsohn <edelsohn@gnu.org>
11727
11728 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
11729 * testsuite/libgomp.fortran/fortran.exp: Same.
11730 * testsuite/libgomp.c/c.exp: Same.
11731 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
11732 directory to library path first.
11733
11734 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
11735
11736 * env.c (parse_stacksize): Add cast to avoid warning.
11737 (parse_spincount): Likewise.
11738
11739 2008-06-27 Jakub Jelinek <jakub@redhat.com>
11740
11741 * testsuite/libgomp.c/loop-10.c: New test.
11742 * libgomp.c/loop-3.c (main): Add lastprivate clause.
11743 * libgomp.c++/loop-6.C (main): Likewise.
11744
11745 PR debug/36617
11746 * testsuite/libgomp.c/debug-1.c: New test.
11747
11748 2008-06-19 Jakub Jelinek <jakub@redhat.com>
11749
11750 * testsuite/libgomp.c/nqueens-1.c: New test.
11751
11752 PR c++/36523
11753 * testsuite/libgomp.c++/task-7.C: New function.
11754
11755 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11756
11757 * configure: Regenerate.
11758
11759 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11760
11761 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
11762 mutex when HAVE_SYNC_BUILTINS isn't defined.
11763
11764 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11765
11766 * libgomp.texi (omp_test_lock): Fix typo.
11767
11768 2008-06-12 Tobias Burnus <burnus@net-b.de>
11769
11770 * omp_lib.f90.in: Add "implicit none".
11771
11772 2008-06-12 Jakub Jelinek <jakub@redhat.com>
11773
11774 PR middle-end/36506
11775 * testsuite/libgomp.c/reduction-5.c: New test.
11776
11777 2008-06-11 Jakub Jelinek <jakub@redhat.com>
11778
11779 * libgomp.h (struct gomp_task): Add in_tied_task field.
11780 * task.c (gomp_init_task): Initialize it.
11781 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
11782 unconditionally. Don't call gomp_team_barrier_wake if
11783 current task is implicit or if(0) from implicit and number of
11784 running tasks is equal to nthreads - 1.
11785
11786 PR libgomp/36471
11787 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
11788 omp_get_team_size_8): Fix pastos.
11789
11790 PR libgomp/36469
11791 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
11792 * configure: Regenerated.
11793 * config.h.in: Regenerated.
11794 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
11795 defined.
11796
11797 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
11798
11799 PR bootstrap/36452
11800 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
11801 (GOMP_loop_ull_dynamic_start): Likewise.
11802 (GOMP_loop_ull_guided_start): Likewise.
11803 (GOMP_loop_ull_ordered_static_start): Likewise.
11804 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
11805 (GOMP_loop_ull_ordered_guided_start): Likewise.
11806
11807 2008-06-06 Jakub Jelinek <jakub@redhat.com>
11808 Richard Henderson <rth@redhat.com>
11809 Ulrich Drepper <drepper@redhat.com>
11810 Jakob Blomer <jakob.blomer@ira.uka.de>
11811
11812 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
11813 Substitute also OMP_*LOCK_25*.
11814 * configure: Regenerated.
11815 * config.h.in: Regenerated.
11816 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
11817 ptrlock.c and task.c.
11818 * Makefile.in: Regenerated.
11819 * testsuite/Makefile.in: Regenerated.
11820 * task.c: New file.
11821 * loop_ull.c: New file.
11822 * iter_ull.c: New file.
11823 * libgomp.h: Include ptrlock.h.
11824 (enum gomp_task_kind): New type.
11825 (struct gomp_team): Add task_lock, task_queue, task_count,
11826 task_running_count, single_count fields. Add
11827 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
11828 Remove work_share_lock, generation_mask,
11829 oldest_live_gen, num_live_gen and init_work_shares fields, add
11830 work work_share_list_alloc, work_share_list_free and work_share_chunk
11831 fields. Change work_shares from pointer to pointers into an array.
11832 Change ordered_release field into gomp_sem_t ** from flexible array
11833 member. Add implicit_task and initial_work_shares fields.
11834 Move close to the end of the struct.
11835 (struct gomp_team_state): Add single_count, last_work_share,
11836 active_level and level fields, remove work_share_generation.
11837 (gomp_barrier_handle_tasks): New prototype.
11838 (gomp_finish_task): New inline function.
11839 (struct gomp_work_share): Move chunk_size, end, incr into
11840 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
11841 next_ll fields. Reshuffle fields. Add next_alloc,
11842 next_ws, next_free and inline_ordered_team_ids fields, change
11843 ordered_team_ids into pointer from flexible array member.
11844 Add mode field. Put lock and next into a different cache line
11845 from most of the write-once fields.
11846 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
11847 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
11848 gomp_iter_ull_guided_next): New prototypes.
11849 (gomp_new_icv): New prototype.
11850 (struct gomp_thread): Add thread_pool and task fields.
11851 (struct gomp_thread_pool): New type.
11852 (gomp_new_team): New prototype.
11853 (gomp_team_start): Change type of last argument.
11854 (gomp_new_work_share): Removed.
11855 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
11856 (gomp_work_share_init_done): New static inline.
11857 (gomp_throttled_spin_count_var, gomp_available_cpus,
11858 gomp_managed_threads): New extern decls.
11859 (gomp_init_task): New prototype.
11860 (gomp_spin_count_var): New extern var decl.
11861 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
11862 or no alias support, or if not PIC.
11863 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
11864 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
11865 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
11866 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
11867 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
11868 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
11869 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
11870 gomp_test_nest_lock_25): New prototypes.
11871 (omp_lock_symver, strong_alias): Define.
11872 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
11873 decls.
11874 (gomp_end_task): New.
11875 (struct gomp_task_icv, gomp_global_icv): New.
11876 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
11877 (struct gomp_task): New.
11878 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
11879 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
11880 (gomp_icv): New.
11881 (gomp_schedule_type): Reorder enum to match
11882 omp_sched_t.
11883 * team.c (struct gomp_thread_start_data): Add thread_pool and task
11884 fields.
11885 (gomp_thread_start): Add gomp_team_barrier_wait call.
11886 For non-nested case remove clearing of docked thread thr fields.
11887 Use pool fields instead of global gomp_* variables. Use
11888 gomp_barrier_wait_last when needed. Initialize ts.active_level.
11889 Create tasks for each member thread.
11890 (free_team): Only destroy team barrier, task_lock here and free it.
11891 (gomp_free_thread): Free last_team if non-NULL.
11892 (gomp_team_end): Call gomp_team_barrier_wait instead of
11893 gomp_barrier_wait. For nested case call one extra
11894 gomp_barrier_wait. Move here some destruction from free_team.
11895 Call free_team on pool->last_team if any, rather than freeing
11896 current team. Destroy work_share_list_free_lock ifndef
11897 HAVE_SYNC_BUILTINS.
11898 (gomp_new_icv): New function.
11899 (gomp_threads, gomp_threads_size, gomp_threads_used,
11900 gomp_threads_dock): Removed.
11901 (gomp_thread_destructor): New variable.
11902 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
11903 functions.
11904 (gomp_team_start): Create new pool if current thread doesn't have
11905 one. Use pool fields instead of global gomp_* variables.
11906 Initialize thread_pool field for new threads. Clear single_count.
11907 Change last argument from ws to team, don't create
11908 new team, set ts.work_share to &team->work_shares[0] and clear
11909 ts.last_work_share. Don't clear ts.work_share_generation.
11910 If number of threads changed, adjust atomically gomp_managed_threads.
11911 Use gomp_init_task instead of gomp_new_task,
11912 set thr->task to the corresponding implicit_task array entry.
11913 Create tasks for each member thread. Initialize ts.level.
11914 (initialize_team): Call pthread_key_create on
11915 gomp_thread_destructor.
11916 (team_destructor): New function.
11917 (new_team): Removed.
11918 (gomp_new_team): New function.
11919 (free_team): Free gomp_work_share blocks chained through next_alloc,
11920 instead of freeing work_shares and destroying work_share_lock.
11921 (gomp_team_end): Call gomp_fini_work_share. If number of threads
11922 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
11923 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
11924 of gomp_barrier_wait.
11925 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
11926 instead of gomp_barrier_wait. Call gomp_work_share_init_done
11927 if gomp_work_share_start returned true. Don't unlock ws->lock.
11928 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
11929 of gomp_barrier_wait.
11930 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
11931 gomp_work_share_init_done if gomp_work_share_start returned true.
11932 Don't unlock ws->lock.
11933 * work.c: Include stddef.h.
11934 (free_work_share): Use work_share_list_free_lock instead
11935 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
11936 Call gomp_fini_work_share and then either free ws if orphaned, or
11937 put it into work_share_list_free list of the current team.
11938 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
11939 functions.
11940 (gomp_work_share_start, gomp_work_share_end,
11941 gomp_work_share_end_nowait): Rewritten.
11942 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
11943 (openmp_version): Set to 200805.
11944 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
11945 omp_sched_guided, omp_sched_auto): New parameters.
11946 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11947 omp_set_max_active_levels, omp_get_max_active_levels,
11948 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11949 omp_get_active_level): New interfaces.
11950 * omp_lib.h.in (openmp_version): Set to 200805.
11951 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
11952 omp_sched_guided, omp_sched_auto): New parameters.
11953 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11954 omp_set_max_active_levels, omp_get_max_active_levels,
11955 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11956 omp_get_active_level): New externals.
11957 * loop.c: Include limits.h.
11958 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
11959 GFS_AUTO.
11960 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
11961 Likewise. Use gomp_icv.
11962 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
11963 ts.static_trip here.
11964 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
11965 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
11966 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
11967 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
11968 don't unlock ws->lock, otherwise lock it.
11969 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
11970 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
11971 (gomp_parallel_loop_start): Call gomp_new_team instead of
11972 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
11973 Adjust gomp_team_start caller. Pass 0 as second argument to
11974 gomp_resolve_num_threads.
11975 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
11976 If adding ws->chunk_size nthreads + 1 times after end won't
11977 overflow, set ws->mode to 1.
11978 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
11979 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
11980 GOMP_loop_ull_ordered_static_start,
11981 GOMP_loop_ull_ordered_dynamic_start,
11982 GOMP_loop_ull_ordered_guided_start,
11983 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
11984 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
11985 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
11986 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
11987 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
11988 prototypes.
11989 * libgomp.map: Export lock routines also @@OMP_2.0.
11990 (GOMP_loop_ordered_dynamic_first,
11991 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
11992 GOMP_loop_ordered_static_first): Remove.
11993 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
11994 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
11995 GOMP_loop_ull_ordered_dynamic_next,
11996 GOMP_loop_ull_ordered_dynamic_start,
11997 GOMP_loop_ull_ordered_guided_next,
11998 GOMP_loop_ull_ordered_guided_start,
11999 GOMP_loop_ull_ordered_runtime_next,
12000 GOMP_loop_ull_ordered_runtime_start,
12001 GOMP_loop_ull_ordered_static_next,
12002 GOMP_loop_ull_ordered_static_start,
12003 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
12004 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
12005 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
12006 (omp_set_schedule, omp_get_schedule,
12007 omp_get_thread_limit, omp_set_max_active_levels,
12008 omp_get_max_active_levels, omp_get_level,
12009 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
12010 omp_set_schedule_, omp_set_schedule_8_,
12011 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
12012 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
12013 omp_get_max_active_levels_, omp_get_level_,
12014 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
12015 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
12016 New exports @@OMP_3.0.
12017 * omp.h.in (omp_sched_t): New type.
12018 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
12019 omp_set_max_active_levels, omp_get_max_active_levels,
12020 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
12021 omp_get_active_level): New prototypes.
12022 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
12023 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
12024 gomp_thread_limit_var, gomp_remaining_threads_count,
12025 gomp_remaining_threads_lock): New variables.
12026 (parse_spincount): New function.
12027 (initialize_env): Call gomp_init_num_threads unconditionally.
12028 Initialize gomp_available_cpus. Call parse_spincount,
12029 initialize gomp_{,throttled_}spin_count_var
12030 depending on presence and value of OMP_WAIT_POLICY and
12031 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
12032 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
12033 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
12034 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
12035 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
12036 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
12037 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
12038 (gomp_global_icv): New.
12039 (parse_schedule): Use it. Parse "auto".
12040 (omp_set_num_threads): Use gomp_icv.
12041 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
12042 Likewise.
12043 (omp_get_max_threads): Move from parallel.c.
12044 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
12045 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
12046 add ialias.
12047 (parse_stacksize, parse_wait_policy): New functions.
12048 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
12049 both wrappers for compatibility and new locks.
12050 (omp_set_schedule, omp_get_schedule,
12051 omp_get_thread_limit, omp_set_max_active_levels,
12052 omp_get_max_active_levels, omp_get_level,
12053 omp_get_ancestor_thread_num, omp_get_team_size,
12054 omp_get_active_level): New ialias_redirect.
12055 (omp_set_schedule_, omp_set_schedule_8_,
12056 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
12057 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
12058 omp_get_max_active_levels_, omp_get_level_,
12059 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
12060 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
12061 New functions.
12062 * parallel.c: Include limits.h.
12063 (gomp_resolve_num_threads): Add count argument. Rewritten.
12064 (GOMP_parallel_start): Call gomp_new_team and pass that as last
12065 argument to gomp_team_start. Pass 0 as second argument to
12066 gomp_resolve_num_threads.
12067 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
12068 if gomp_thread_limit_var != ULONG_MAX.
12069 (omp_in_parallel): Implement using ts.active_level.
12070 (omp_get_max_threads): Move to env.c.
12071 (omp_get_level, omp_get_ancestor_thread_num,
12072 omp_get_team_size, omp_get_active_level): New functions,
12073 add ialias.
12074 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
12075 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
12076 gomp_iter_dynamic_next instead of the _locked variant and don't take
12077 lock around it, otherwise acquire it before calling
12078 gomp_iter_dynamic_next_locked.
12079 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
12080 gomp_iter_dynamic_next instead of the _locked variant and don't take
12081 lock around it.
12082 (GOMP_parallel_sections_start): Call gomp_new_team instead of
12083 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
12084 Adjust gomp_team_start caller. Pass count as second argument to
12085 gomp_resolve_num_threads, don't adjust num_threads after the call.
12086 Use gomp_icv.
12087 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
12088 ws->chunk_size by incr.
12089 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
12090 code.
12091 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
12092 types.
12093 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
12094 (omp_check_defines): Check even the compat defines.
12095 * config/linux/ptrlock.c: New file.
12096 * config/linux/ptrlock.h: New file.
12097 * config/linux/wait.h: New file.
12098 * config/posix/ptrlock.c: New file.
12099 * config/posix/ptrlock.h: New file.
12100 * config/linux/bar.h (gomp_team_barrier_wait,
12101 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
12102 (gomp_team_barrier_set_task_pending,
12103 gomp_team_barrier_clear_task_pending,
12104 gomp_team_barrier_set_waiting_for_tasks,
12105 gomp_team_barrier_waiting_for_tasks,
12106 gomp_team_barrier_done): New inlines.
12107 (gomp_barrier_t): Rewritten.
12108 (gomp_barrier_state_t): New typedef.
12109 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
12110 gomp_barrier_wait_start): Rewritten.
12111 (gomp_barrier_wait_end): Change second argument to
12112 gomp_barrier_state_t.
12113 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
12114 inlines.
12115 * config/linux/bar.c: Include wait.h instead of libgomp.h and
12116 futex.h.
12117 (gomp_barrier_wait_end): Rewritten.
12118 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
12119 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
12120 * config/posix/bar.h (gomp_barrier_t): Add generation field.
12121 (gomp_barrier_state_t): New typedef.
12122 (gomp_team_barrier_wait,
12123 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
12124 (gomp_barrier_wait_start): Or all but low 2 bits from generation
12125 into the return value. Return gomp_barrier_state_t.
12126 (gomp_team_barrier_set_task_pending,
12127 gomp_team_barrier_clear_task_pending,
12128 gomp_team_barrier_set_waiting_for_tasks,
12129 gomp_team_barrier_waiting_for_tasks,
12130 gomp_team_barrier_done): New inlines.
12131 (gomp_barrier_wait_end): Change second argument to
12132 gomp_barrier_state_t.
12133 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
12134 inlines.
12135 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
12136 (gomp_barrier_wait_end): Change second argument to
12137 gomp_barrier_state_t.
12138 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
12139 gomp_team_barrier_wake): New functions.
12140 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
12141 futex.h.
12142 (gomp_futex_wake, gomp_futex_wait): New variables.
12143 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
12144 * config/linux/lock.c: Rewrite to make locks task owned,
12145 for backwards compatibility provide the old entrypoints
12146 if symbol versioning. Include wait.h instead of libgomp.h and
12147 futex.h.
12148 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
12149 * config/posix95/lock.c: Rewrite to make locks task owned,
12150 for backwards compatibility provide the old entrypoints
12151 if symbol versioning.
12152 * config/posix/lock.c: Rewrite to make locks task owned,
12153 for backwards compatibility provide the old entrypoints
12154 if symbol versioning.
12155 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
12156 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
12157 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
12158 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
12159 (sys_futex0): Return error code.
12160 (futex_wake, futex_wait): If ENOSYS was returned, clear
12161 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
12162 (cpu_relax, atomic_write_barrier): New static inlines.
12163 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
12164 (futex_wake, futex_wait): If ENOSYS was returned, clear
12165 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
12166 (cpu_relax, atomic_write_barrier): New static inlines.
12167 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
12168 (sys_futex0): Return error code.
12169 (futex_wake, futex_wait): If ENOSYS was returned, clear
12170 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
12171 (cpu_relax, atomic_write_barrier): New static inlines.
12172 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
12173 (sys_futex0): Return error code.
12174 (futex_wake, futex_wait): If ENOSYS was returned, clear
12175 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
12176 (cpu_relax, atomic_write_barrier): New static inlines.
12177 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
12178 (sys_futex0): Return error code.
12179 (futex_wake, futex_wait): If ENOSYS was returned, clear
12180 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
12181 (cpu_relax, atomic_write_barrier): New static inlines.
12182 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
12183 (sys_futex0): Return error code.
12184 (futex_wake, futex_wait): If ENOSYS was returned, clear
12185 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
12186 (cpu_relax, atomic_write_barrier): New static inlines.
12187 * config/linux/sem.c: Include wait.h instead of libgomp.h and
12188 futex.h.
12189 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
12190 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
12191 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
12192 types.
12193 (omp_nest_lock_t): Change owner into void *, add lock field.
12194 * config/posix95/omp-lock.h: Include semaphore.h.
12195 (omp_lock_25_t, omp_nest_lock_25_t): New types.
12196 (omp_lock_t): Use sem_t instead of mutex if semaphores
12197 aren't broken.
12198 (omp_nest_lock_t): Likewise. Change owner to void *.
12199 * config/posix/omp-lock.h: Include semaphore.h.
12200 (omp_lock_25_t, omp_nest_lock_25_t): New types.
12201 (omp_lock_t): Use sem_t instead of mutex if semaphores
12202 aren't broken.
12203 (omp_nest_lock_t): Likewise. Add owner field.
12204
12205 2008-06-06 Jakub Jelinek <jakub@redhat.com>
12206
12207 * testsuite/libgomp.c/collapse-1.c: New test.
12208 * testsuite/libgomp.c/collapse-2.c: New test.
12209 * testsuite/libgomp.c/collapse-3.c: New test.
12210 * testsuite/libgomp.c/icv-1.c: New test.
12211 * testsuite/libgomp.c/icv-2.c: New test.
12212 * testsuite/libgomp.c/lib-2.c: New test.
12213 * testsuite/libgomp.c/lock-1.c: New test.
12214 * testsuite/libgomp.c/lock-2.c: New test.
12215 * testsuite/libgomp.c/lock-3.c: New test.
12216 * testsuite/libgomp.c/loop-4.c: New test.
12217 * testsuite/libgomp.c/loop-5.c: New test.
12218 * testsuite/libgomp.c/loop-6.c: New test.
12219 * testsuite/libgomp.c/loop-7.c: New test.
12220 * testsuite/libgomp.c/loop-8.c: New test.
12221 * testsuite/libgomp.c/loop-9.c: New test.
12222 * testsuite/libgomp.c/nested-3.c: New test.
12223 * testsuite/libgomp.c/nestedfn-6.c: New test.
12224 * testsuite/libgomp.c/sort-1.c: New test.
12225 * testsuite/libgomp.c/task-1.c: New test.
12226 * testsuite/libgomp.c/task-2.c: New test.
12227 * testsuite/libgomp.c/task-3.c: New test.
12228 * testsuite/libgomp.c/task-4.c: New test.
12229 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
12230 to C++ testsuite default compiler options.
12231 * testsuite/libgomp.c++/collapse-1.C: New test.
12232 * testsuite/libgomp.c++/collapse-2.C: New test.
12233 * testsuite/libgomp.c++/ctor-10.C: New test.
12234 * testsuite/libgomp.c++/for-1.C: New test.
12235 * testsuite/libgomp.c++/for-2.C: New test.
12236 * testsuite/libgomp.c++/for-3.C: New test.
12237 * testsuite/libgomp.c++/for-4.C: New test.
12238 * testsuite/libgomp.c++/for-5.C: New test.
12239 * testsuite/libgomp.c++/loop-8.C: New test.
12240 * testsuite/libgomp.c++/loop-9.C: New test.
12241 * testsuite/libgomp.c++/loop-10.C: New test.
12242 * testsuite/libgomp.c++/task-1.C: New test.
12243 * testsuite/libgomp.c++/task-2.C: New test.
12244 * testsuite/libgomp.c++/task-3.C: New test.
12245 * testsuite/libgomp.c++/task-4.C: New test.
12246 * testsuite/libgomp.c++/task-5.C: New test.
12247 * testsuite/libgomp.c++/task-6.C: New test.
12248 * testsuite/libgomp.fortran/allocatable1.f90: New test.
12249 * testsuite/libgomp.fortran/allocatable2.f90: New test.
12250 * testsuite/libgomp.fortran/allocatable3.f90: New test.
12251 * testsuite/libgomp.fortran/allocatable4.f90: New test.
12252 * testsuite/libgomp.fortran/collapse1.f90: New test.
12253 * testsuite/libgomp.fortran/collapse2.f90: New test.
12254 * testsuite/libgomp.fortran/collapse3.f90: New test.
12255 * testsuite/libgomp.fortran/collapse4.f90: New test.
12256 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
12257 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
12258 * testsuite/libgomp.fortran/lib4.f90: New test.
12259 * testsuite/libgomp.fortran/lock-1.f90: New test.
12260 * testsuite/libgomp.fortran/lock-2.f90: New test.
12261 * testsuite/libgomp.fortran/nested1.f90: New test.
12262 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
12263 * testsuite/libgomp.fortran/strassen.f90: New test.
12264 * testsuite/libgomp.fortran/tabs1.f90: New test.
12265 * testsuite/libgomp.fortran/tabs2.f: New test.
12266 * testsuite/libgomp.fortran/task1.f90: New test.
12267 * testsuite/libgomp.fortran/task2.f90: New test.
12268 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
12269 * testsuite/libgomp.fortran/vla5.f90: Likewise.
12270 * testsuite/libgomp.c/pr26943-2.c: Likewise.
12271 * testsuite/libgomp.c/pr26943-3.c: Likewise.
12272 * testsuite/libgomp.c/pr26943-4.c: Likewise.
12273
12274 2008-05-23 Jakub Jelinek <jakub@redhat.com>
12275
12276 PR c++/36308
12277 * testsuite/libgomp.c++/ctor-11.C: New test.
12278 * testsuite/libgomp.c++/ctor-12.C: New test.
12279
12280 2008-05-15 Janis Johnson <janis187@us.ibm.com>
12281
12282 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
12283
12284 2008-05-07 Jakub Jelinek <jakub@redhat.com>
12285
12286 PR middle-end/36106
12287 * testsuite/libgomp.c/atomic-5.c: New test.
12288 * testsuite/libgomp.c/atomic-6.c: New test.
12289 * testsuite/libgomp.c/autopar-1.c: New test.
12290
12291 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12292
12293 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
12294 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
12295 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
12296 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
12297 * configure: Regenerate.
12298 * Makefile.in, testsuite/Makefile.in: Likewise.
12299
12300 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
12301
12302 PR bootstrap/35457
12303 * aclocal.m4: Regenerate.
12304 * configure: Regenerate.
12305
12306 2008-03-18 Jakub Jelinek <jakub@redhat.com>
12307
12308 PR middle-end/35611
12309 * testsuite/libgomp.c/atomic-4.c: New test.
12310
12311 PR libgomp/35625
12312 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
12313 (gomp_iter_guided_next): Likewise.
12314 * testsuite/libgomp.c/pr35625.c: New test.
12315
12316 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12317
12318 * aclocal.m4: Regenerate.
12319 * configure: Likewise.
12320 * Makefile.in: Likewise.
12321 * testsuite/Makefile.in: Likewise.
12322
12323 2008-03-13 Jakub Jelinek <jakub@redhat.com>
12324
12325 PR middle-end/35185
12326 * testsuite/libgomp.c++/pr35185.C: New test.
12327
12328 2008-03-12 Jakub Jelinek <jakub@redhat.com>
12329
12330 PR middle-end/35549
12331 * testsuite/libgomp.c/pr35549.c: New test.
12332
12333 2008-03-06 Jakub Jelinek <jakub@redhat.com>
12334
12335 * testsuite/libgomp.c/atomic-3.c: New test.
12336
12337 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12338
12339 PR fortran/33197
12340 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
12341 .F08 file suffixes.
12342
12343 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
12344
12345 PR libgomp/33131
12346 * configure.ac: Add ACX_HEADER_STRING.
12347 * env.c: Include strings.h.
12348 * aclocal.m4: Regenerate.
12349 * config.h.in: Regenerate.
12350 * configure: Regenerate.
12351 * Makefile.in: Regenerate.
12352 * testsuite/Makefile.in: Regenerate.
12353
12354 2008-02-15 Jakub Jelinek <jakub@redhat.com>
12355
12356 PR middle-end/35196
12357 * testsuite/libgomp.c/pr35196.c: New test.
12358
12359 PR middle-end/35130
12360 * testsuite/libgomp.fortran/pr35130.f90: New test.
12361 * testsuite/libgomp.c/pr35130.c: New test.
12362
12363 2008-01-25 Jakub Jelinek <jakub@redhat.com>
12364
12365 PR middle-end/33880
12366 * testsuite/libgomp.c/pr33880.c: New test.
12367 * testsuite/libgomp.fortran/pr33880.f90: New test.
12368
12369 2008-01-24 David Edelsohn <edelsohn@gnu.org>
12370
12371 * configure: Regenerate.
12372
12373 2008-01-08 Jakub Jelinek <jakub@redhat.com>
12374
12375 * configure.ac: Move futex checking into ../config/futex.m4.
12376 * configure: Rebuilt.
12377 * aclocal.m4: Rebuilt.
12378 * Makefile.in: Rebuilt.
12379
12380 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
12381 2007-10-15 ../config/tls.m4 change.
12382
12383 2007-12-19 Jakub Jelinek <jakub@redhat.com>
12384
12385 PR c++/34513
12386 * testsuite/libgomp.c/pr34513.c: New test.
12387 * testsuite/libgomp.c++/pr34513.C: New test.
12388
12389 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
12390
12391 PR target/32765
12392 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
12393
12394 2007-12-04 Jakub Jelinek <jakub@redhat.com>
12395
12396 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
12397
12398 2007-12-03 Jakub Jelinek <jakub@redhat.com>
12399
12400 * testsuite/libgomp.c/private-1.c: New test.
12401
12402 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
12403 Paolo Bonzini <bonzini@gnu.org>
12404
12405 * Makefile.am: Use space as vpath separator. Use 'vpath %'
12406 instead of 'VPATH ='.
12407 * Makefile.in: Regenerate.
12408
12409 2007-11-23 Matthias Klose <doko@ubuntu.com>
12410
12411 * configure.ac: Adjust makeinfo version check.
12412 * configure: Regenerate.
12413
12414 2007-11-10 Jakub Jelinek <jakub@redhat.com>
12415
12416 PR fortran/34020
12417 * testsuite/libgomp.fortran/pr34020.f90: New test.
12418
12419 2007-11-06 Jakub Jelinek <jakub@redhat.com>
12420
12421 PR c++/33894
12422 * testsuite/libgomp.c++/atomic-1.C: New test.
12423
12424 2007-10-25 Jakub Jelinek <jakub@redhat.com>
12425
12426 PR libgomp/33275
12427 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
12428 Make x and y integers rather than (implicit) reals. Add private (j)
12429 clause to the last omp parallel.
12430
12431 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
12432
12433 * configure: Regenerate following changes to ../config/tls.m4.
12434
12435 2007-09-28 Jakub Jelinek <jakub@redhat.com>
12436
12437 * testsuite/libgomp.fortran/stack.f90: New test.
12438
12439 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
12440
12441 * config/mingw32/proc.c: New file.
12442
12443 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
12444
12445 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
12446 (main): Use __get_cpuid to get i386 target fetaures.
12447 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
12448 (main): Use __get_cpuid to get x86_64 target fetaures.
12449
12450 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
12451
12452 PR target/32765
12453 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
12454 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
12455
12456 2007-07-12 Jakub Jelinek <jakub@redhat.com>
12457
12458 PR fortran/32550
12459 * testsuite/libgomp.fortran/pr32550.f90: New test.
12460 * testsuite/libgomp.fortran/crayptr2.f90: New test.
12461
12462 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
12463
12464 * aclocal.m4: Regenerated.
12465
12466 2007-07-05 Tobias Burnus <burnus@net-b.de>
12467
12468 PR fortran/32359
12469 * testsuite/libgomp.fortran/pr32359.f90: New.
12470
12471 2007-07-02 Jakub Jelinek <jakub@redhat.com>
12472
12473 PR libgomp/32468
12474 * sections.c (GOMP_parallel_sections_start): Only decrease
12475 number of threads to COUNT if dyn_var is true.
12476 * testsuite/libgomp.c/pr32468.c: New test.
12477
12478 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12479
12480 PR libgomp/26308
12481 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
12482
12483 2007-06-21 Jakub Jelinek <jakub@redhat.com>
12484
12485 PR middle-end/32362
12486 * testsuite/libgomp.c/pr32362-1.c: New test.
12487 * testsuite/libgomp.c/pr32362-2.c: New test.
12488 * testsuite/libgomp.c/pr32362-3.c: New test.
12489
12490 2007-06-07 Jakub Jelinek <jakub@redhat.com>
12491
12492 * team.c (gomp_team_start): Fix setting up thread_attr
12493 stack size.
12494
12495 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
12496
12497 * configure: Regenerate.
12498
12499 2007-05-23 Steve Ellcey <sje@cup.hp.com>
12500
12501 * Makefile.in: Regenerate.
12502 * configure: Regenerate.
12503 * aclocal.m4: Regenerate.
12504 * testsuite/Makefile.in: Regenerate.
12505
12506 2007-05-04 Jakub Jelinek <jakub@redhat.com>
12507
12508 * config/linux/proc.c: New file.
12509
12510 PR libgomp/28482
12511 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
12512
12513 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
12514
12515 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
12516
12517 2007-04-16 Matthias Klose <doko@debian.org>
12518
12519 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
12520 flags if not building with -m64.
12521 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
12522 flag for i?86-*-* targets, if current target matches -m64.
12523
12524 2007-04-14 Steve Ellcey <sje@cup.hp.com>
12525
12526 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
12527 * Makefile.in: Regenerate.
12528
12529 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12530
12531 PR testsuite/31369
12532 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
12533 ld_library_path.
12534 * testsuite/libgomp.fortran/fortran.exp: Likewise.
12535
12536 2007-04-04 Jakub Jelinek <jakub@redhat.com>
12537
12538 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
12539 decls.
12540 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
12541 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
12542 (parse_affinity): New function.
12543 (initialize_env): Call it and gomp_init_affinity.
12544 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
12545 create new pthread_attr_t and call gomp_init_thread_affinity
12546 on it for each thread before passing the attribute to pthread_create.
12547 * config/linux/affinity.c: New file.
12548 * config/posix/affinity.c: New file.
12549 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
12550 * configure: Rebuilt.
12551 * config.h.in: Rebuilt.
12552 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
12553 * Makefile.in: Rebuilt.
12554
12555 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
12556
12557 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
12558 *-*-darwin*.
12559 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
12560 and use it if found.
12561
12562 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
12563
12564 * testsuite/config/default.exp: New file.
12565 * testsuite/lib/libgomp.exp: New file.
12566 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
12567 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
12568 load_lib *, load_gcc_lib *): Move to libgomp.exp.
12569 (libgomp_load): Remove.
12570 * testsuite/lib/libgomp.exp (libgomp_init): Compute
12571 always_ld_library_path, not ld_library_path. Set additional_flags
12572 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
12573 (target_compile): Do not call libgomp_init. Append lang_library_path
12574 and lang_link_flags to options.
12575 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
12576 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
12577 here.
12578 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
12579 always_ld_library_path. Set LD_LIBRARY_PATH here.
12580 * testsuite/libgomp.fortran/fortran.exp: Ditto.
12581 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
12582 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
12583 CX8 flag.
12584 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
12585 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
12586 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
12587 * testsuite/libgomp.c/pr29947-1.c: Ditto.
12588 * testsuite/libgomp.c/atomic-10.c: Ditto.
12589
12590 2007-03-21 Jakub Jelinek <jakub@redhat.com>
12591
12592 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
12593 dg-final cleanup-modules line.
12594 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
12595 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
12596 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
12597 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
12598 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
12599 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
12600 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
12601
12602 2007-03-18 Andreas Schwab <schwab@suse.de>
12603
12604 * acinclude.m4: Adjust regular expression for ld version
12605 extraction.
12606 * configure: Regenerate.
12607
12608 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
12609
12610 * Makefile.am: Add install-pdf target as copied from
12611 automake v1.10 rules.
12612 * Makefile.in: Regenerate
12613
12614 2007-02-07 Jakub Jelinek <jakub@redhat.com>
12615
12616 PR libgomp/28486
12617 * configure: Regenerate.
12618
12619 PR c++/30703
12620 * testsuite/libgomp.c++/pr30703.C: New test.
12621
12622 2007-02-02 Jakub Jelinek <jakub@redhat.com>
12623
12624 Revert:
12625 2006-07-05 Eric Christopher <echristo@apple.com>
12626 * configure.ac: Depend addition of -pthread on host OS.
12627 * configure: Regenerate.
12628
12629 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12630
12631 * libgomp.texi: Fix spacing after abbreviations.
12632
12633 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
12634
12635 PR libgomp/30546
12636 * configure.ac: Add check for makeinfo
12637 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
12638 if an appropriate version of makeinfo is found.
12639 * aclocal.m4: Regenerated.
12640 * configure: Regenerated.
12641 * Makefile.in: Regenerated.
12642 * testsuite/Makefile.in: Regenerated.
12643
12644 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
12645
12646 PR libgomp/30540
12647 * libgomp.texi: More about implementation-dependent settings.
12648
12649 2007-01-26 Tobias Burnus <burnus@net-b.de>
12650
12651 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
12652
12653 2007-01-24 Jakub Jelinek <jakub@redhat.com>
12654
12655 PR middle-end/30494
12656 * testsuite/libgomp.c/pr30494.c: New test.
12657
12658 2007-01-15 Tom Tromey <tromey@redhat.com>
12659
12660 * configure: Rebuilt.
12661 * configure.ac: Fixed comment.
12662
12663 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
12664
12665 * libgomp.texi: Document implementation specific default values of
12666 environment variables.
12667
12668 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
12669
12670 PR libgomp/28209
12671 * libgomp.texi: New file.
12672 * configure.ac: Add --enable-generated-files-in-srcdir option.
12673 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
12674 files to srcdir.
12675 * Makefile.in: Regenerated.
12676 * config.h.in: Regenerated.
12677 * testsuite/Makefile.in: Regenerated.
12678 * NOTES: Removed.
12679
12680 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
12681
12682 PR libgomp/29949
12683 * env.c (omp_set_num_threads): Set illegal thread count to 1.
12684
12685 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
12686
12687 * configure: Regenerate.
12688
12689 2006-12-04 Jakub Jelinek <jakub@redhat.com>
12690
12691 PR libgomp/29947
12692 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
12693 start if there shouldn't be any loop iterations.
12694 (gomp_loop_ordered_static_start): Remove start == end test.
12695 * testsuite/libgomp.c/pr29947-1.c: New test.
12696 * testsuite/libgomp.c/pr29947-2.c: New test.
12697
12698 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
12699
12700 * configure.tgt: Force initial-exec TLS model on Linux only.
12701
12702 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
12703
12704 * configure: Regenerated.
12705
12706 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
12707
12708 * env.c (parse_schedule): Reject out of range values.
12709 (parse_unsigned_long): Reject out of range, negative or zero values.
12710
12711 2006-10-29 Jakub Jelinek <jakub@redhat.com>
12712
12713 PR fortran/29629
12714 * testsuite/libgomp.fortran/pr29629.f90: New test.
12715
12716 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
12717
12718 PR libgomp/29494
12719 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
12720 * config/posix95: New directory.
12721 * config/posix95/omp-lock.h: New file.
12722 * config/posix95/lock.c: Likewise.
12723
12724 2006-10-14 Geoffrey Keating <geoffk@apple.com>
12725
12726 * aclocal.m4: Regenerate.
12727 * configure: Regenerate.
12728
12729 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
12730
12731 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
12732 '<' to '<='.
12733
12734 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
12735
12736 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
12737 test.
12738 * configure: Regenerate.
12739 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
12740
12741 2006-09-26 Jakub Jelinek <jakub@redhat.com>
12742
12743 PR middle-end/25261
12744 PR middle-end/28790
12745 * testsuite/libgomp.c/nestedfn-4.c: New test.
12746 * testsuite/libgomp.c/nestedfn-5.c: New test.
12747 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
12748
12749 PR fortran/29097
12750 * testsuite/libgomp.fortran/condinc1.f: New test.
12751 * testsuite/libgomp.fortran/condinc2.f: New test.
12752 * testsuite/libgomp.fortran/condinc3.f90: New test.
12753 * testsuite/libgomp.fortran/condinc4.f90: New test.
12754 * testsuite/libgomp.fortran/condinc1.inc: New file.
12755
12756 2006-09-18 Tom Tromey <tromey@redhat.com>
12757
12758 * configure: Rebuilt.
12759
12760 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
12761
12762 PR c/28768
12763 PR preprocessor/14634
12764 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
12765 to AC_DEFINE.
12766 * configure: Regenerate.
12767
12768 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
12769
12770 * testsuite/libgomp.fortran/reduction3.f90: Change
12771 -2147483648 to -huge(i)-1 to avoid overflow.
12772 * testsuite/libgomp.fortran/reduction4.f90: Change
12773 Z'ffffffff' to not(0) to avoid overflow.
12774
12775 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
12776
12777 PR libgomp/25938
12778 * Makefile.am (libsubincludedir): New.
12779 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
12780 * Makefile.in: Regenerate.
12781
12782 2006-08-17 Jakub Jelinek <jakub@redhat.com>
12783
12784 PR libgomp/28725
12785 * env.c: Include ctype.h.
12786 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
12787 leading and/or trailing whitespace and compare strings case
12788 insensitively.
12789
12790 2006-07-16 Jakub Jelinek <jakub@redhat.com>
12791
12792 PR fortran/28390
12793 * testsuite/libgomp.fortran/pr28390.f: New test.
12794
12795 2006-07-05 Eric Christopher <echristo@apple.com>
12796
12797 * configure.ac: Depend addition of -pthread on host OS.
12798 * configure: Regenerate.
12799
12800 2006-06-21 Jakub Jelinek <jakub@redhat.com>
12801
12802 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
12803 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
12804 defined.
12805
12806 2006-06-20 Jakub Jelinek <jakub@redhat.com>
12807
12808 PR libgomp/26175
12809 PR libgomp/26477
12810 * configure.ac: If neither --enable-linux-futex nor
12811 --disable-linux-futex is passed, determine the default by checking
12812 for compiling and/or running against NPTL. With --enable-linux-futex,
12813 check if SYS_gettid and SYS_futex are defined.
12814 * configure: Rebuilt.
12815
12816 2006-06-14 Richard Henderson <rth@redhat.com>
12817
12818 PR libgomp/28008
12819 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
12820 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
12821
12822 2006-06-09 Richard Henderson <rth@redhat.com>
12823
12824 * env.c (gomp_nthreads_var): Change to unsigned long.
12825 (gomp_run_sched_chunk): Likewise.
12826 (parse_unsigned_long): Rename from parse_num_threads and generalize.
12827 (initialize_env): Initialize gomp_thread_attr.
12828 * libgomp.h (gomp_nthreads_var): Update decl.
12829 (gomp_run_sched_chunk): Likewise.
12830 (gomp_thread_attr): Declare.
12831 * team.c (gomp_thread_attr): Export.
12832 (initialize_team): Don't initialize it.
12833
12834 2006-06-09 Jakub Jelinek <jakub@redhat.com>
12835
12836 PR fortran/27916
12837 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
12838 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
12839
12840 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
12841
12842 * config/mingw32/time.c: New file.
12843 * configure.tgt: Use it.
12844
12845 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
12846
12847 * Makefile.am: Add install-html target. Add install-html to .PHONY
12848 * Makefile.in: Regenerate.
12849
12850 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12851
12852 PR libgomp/27612
12853 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
12854 * testsuite/libgomp.c/critical-1.c: Likewise.
12855 * testsuite/libgomp.c/loop-1.c: Likewise.
12856 * testsuite/libgomp.c/loop-2.c: Likewise.
12857 * testsuite/libgomp.c/single-1.c: Likewise.
12858 * testsuite/libgomp.c/ordered-1.c: Likewise.
12859 * testsuite/libgomp.c/ordered-2.c: Likewise.
12860
12861 2006-05-15 Jakub Jelinek <jakub@redhat.com>
12862
12863 PR middle-end/27416
12864 * libgomp.fortran/pr27416-1.f90: New test.
12865
12866 2006-05-03 Jakub Jelinek <jakub@redhat.com>
12867
12868 PR fortran/27395
12869 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
12870 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
12871
12872 2006-05-02 Jakub Jelinek <jakub@redhat.com>
12873
12874 PR c++/26943
12875 * testsuite/libgomp.c/pr26943-1.c: New test.
12876 * testsuite/libgomp.c/pr26943-2.c: New test.
12877 * testsuite/libgomp.c/pr26943-3.c: New test.
12878 * testsuite/libgomp.c/pr26943-4.c: New test.
12879 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
12880 * testsuite/libgomp.c++/pr26943.C: New test.
12881
12882 2006-05-02 Jakub Jelinek <jakub@redhat.com>
12883
12884 PR middle-end/27337
12885 * testsuite/libgomp.c++/pr27337.C: New test.
12886
12887 2006-04-26 Jakub Jelinek <jakub@redhat.com>
12888
12889 PR c/26171
12890 * testsuite/libgomp.c/pr26171.c: New test.
12891
12892 2006-04-25 Richard Henderson <rth@redhat.com>
12893
12894 PR libgomp/25865
12895 * configure.ac: Use GCC_CHECK_TLS.
12896 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
12897 * Makefile.in, aclocal.m4, configure: Regenerate.
12898
12899 2006-04-10 Matthias Klose <doko@debian.org>
12900
12901 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
12902 directory names containing underscores.
12903
12904 2006-03-21 Jakub Jelinek <jakub@redhat.com>
12905
12906 PR c++/26691
12907 * testsuite/libgomp.c++/pr26691.C: New test.
12908
12909 2006-03-13 Jakub Jelinek <jakub@redhat.com>
12910
12911 * testsuite/libgomp.fortran/retval2.f90: New test.
12912
12913 2006-03-09 Diego Novillo <dnovillo@redhat.com>
12914
12915 * testsuite/libgomp.c++: New directory.
12916
12917 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
12918
12919 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
12920 * config/posix/sem.c: Implement the above.
12921
12922 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
12923
12924 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
12925 define HAVE_BROKEN_POSIX_SEMAPHORES.
12926 * configure: Rebuilt.
12927 * config.h.in: Rebuilt.
12928
12929 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
12930
12931 PR bootstrap/26161
12932 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
12933 for the other pthread check.
12934 * configure: Regenerate.
12935 * config.h.in: Regenerate.
12936
12937 2006-02-15 Jakub Jelinek <jakub@redhat.com>
12938
12939 PR libgomp/25938
12940 PR libgomp/25984
12941 * Makefile.am (fincludedir): New variable.
12942 (nodist_include_HEADERS): Remove Fortran files.
12943 (nodist_finclude_HEADERS): New variable.
12944 * Makefile.in: Regenerated.
12945
12946 2006-02-13 Jakub Jelinek <jakub@redhat.com>
12947
12948 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
12949 Remove tests for returning assumed character length arrays.
12950
12951 2006-02-12 Roger Sayle <roger@eyesopen.com>
12952 John David Anglin <dave@hiauly1.hia.nrc.ca>
12953
12954 PR libgomp/25936
12955 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
12956
12957 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
12958
12959 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
12960
12961 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
12962
12963 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
12964 part of LD_LIBRARY_PATH manually.
12965
12966 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
12967
12968 PR libgomp/25852
12969 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
12970 libgomp_init.
12971
12972 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
12973
12974 PR libgomp/25884
12975 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
12976 * configure.ac (PERL): Don't set.
12977 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
12978 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
12979 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
12980 * omp.h.in: Wrap the new configure substitutions with @ characters.
12981 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
12982 * aclocal.m4, configure, Makefile.in: Regenerate.
12983 * mkomp_h.pl: Delete.
12984
12985 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
12986
12987 PR libgomp/25259
12988 * configure.ac: Use GCC_HEADER_STDINT.
12989 * libgomp.h: Include gstdint.h.
12990 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
12991 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
12992
12993 2006-01-24 Richard Henderson <rth@redhat.com>
12994
12995 PR libgomp/25942
12996 * configure.ac: Add AM_MAINTAINER_MODE.
12997 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
12998
12999 2006-01-24 Diego Novillo <dnovillo@redhat.com>
13000
13001 * Makefile.in: Regenerate.
13002 * testsuite/Makefile.in: Regenerate.
13003 * aclocal.m4: Regenerate.
13004
13005 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
13006
13007 * config/posix/proc.c: Conditional include of sys/loadavg.h for
13008 Solaris.
13009 * configure.ac: Add check for loadavg.h.
13010 (link_gomp): Adjust comment.
13011 * configure: Regenerate.
13012 * config.h.in: Regenerate.
13013
13014 2006-01-21 Steve Ellcey <sje@cup.hp.com>
13015
13016 PR libgomp/25877
13017 * configure.ac: Remove check for alloca.h.
13018 * configure: Regenerate.
13019 * config.h.in: Regenerate.
13020 * libgomp.h: define gomp_alloca to be __builtin_alloca.
13021 * team.c: Remove use of alloca.h.
13022 Call gomp_alloca instead of alloca.
13023
13024 2006-01-20 Steve Ellcey <sje@cup.hp.com>
13025
13026 PR libgomp/25877
13027 * team.c: Add include of alloca.h.
13028 * configure.ac: Add check for alloca.h.
13029 * configure: Regenerate.
13030 * config.h.in: Regenerate.
13031
13032 2006-01-17 Jakub Jelinek <jakub@redhat.com>
13033
13034 PR fortran/25219
13035 * testsuite/libgomp.fortran/pr25219.f90: New test.
13036
13037 2005-12-05 Uros Bizjak <uros@kss-loka.si>
13038
13039 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
13040 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
13041 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
13042 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
13043 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
13044 testsuite/libgomp.fortran/threadprivate1.f90,
13045 testsuite/libgomp.fortran/threadprivate2.f90,
13046 testsuite/libgomp.fortran/threadprivate3.f90,
13047 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
13048 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
13049 testsuite/libgomp.fortran/omp_parse3.f90: Change required
13050 effective-target to TLS runtime.
13051
13052 * testsuite/libgomp.fortran/pr25162.f: Require
13053 effective-target TLS runtime.
13054
13055 2005-12-01 Jakub Jelinek <jakub@redhat.com>
13056
13057 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
13058 * testsuite/libgomp.c/nestedfn-3.c: New test.
13059
13060 2005-11-30 Jakub Jelinek <jakub@redhat.com>
13061
13062 PR fortran/25162
13063 * testsuite/libgomp.fortran/pr25162.f: New test.
13064
13065 2005-11-28 Jakub Jelinek <jakub@redhat.com>
13066
13067 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
13068 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
13069
13070 2005-11-25 Jakub Jelinek <jakub@redhat.com>
13071
13072 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
13073 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
13074 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
13075 single.c, team.c, work.c, config/linux/alpha/futex.h,
13076 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
13077 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
13078 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
13079 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
13080 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
13081 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
13082 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
13083 FSF address.
13084
13085 2005-11-18 Jakub Jelinek <jakub@redhat.com>
13086
13087 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
13088 to nodist_noinst_HEADERS.
13089 * Makefile.in: Rebuilt.
13090
13091 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
13092 add integer count field.
13093 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
13094 omp_nest_lock_t type change.
13095 (omp_init_nest_lock): Likewise. Initialize count to 0.
13096 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
13097 Increment count.
13098 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
13099 Decrement count.
13100 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
13101 Increment count if successful and return the new nesting level.
13102 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
13103 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
13104 * testsuite/libgomp.c/lib-1.c: New test.
13105 * testsuite/libgomp.fortran/lib1.f90: New test.
13106 * testsuite/libgomp.fortran/lib2.f: New test.
13107 * testsuite/libgomp.fortran/lib3.f: New test.
13108
13109 2005-11-17 Richard Henderson <rth@redhat.com>
13110
13111 PR 24845
13112 * Makefile.am (nodist_toolexeclib_HEADERS): New.
13113 * configure.ac (link_gomp): New. Substitute it.
13114 (AC_CONFIG_FILES): Add libgomp.spec.
13115 * libgomp.spec.in: New file.
13116 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
13117 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
13118
13119 2005-11-18 Jakub Jelinek <jakub@redhat.com>
13120
13121 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
13122 reduction(-:var) behaving the same as reduction(+:var).
13123 * testsuite/libgomp.c/reduction-4.c: New test.
13124
13125 2005-11-15 Uros Bizjak <uros@kss-loka.si>
13126
13127 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
13128 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
13129 testsuite/libgomp.c/copyin-3.c,
13130 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
13131 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
13132 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
13133 testsuite/libgomp.c++/pr24455.C,
13134 testsuite/libgomp.fortran/threadprivate1.f90,
13135 testsuite/libgomp.fortran/threadprivate2.f90,
13136 testsuite/libgomp.fortran/threadprivate3.f90,
13137 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
13138 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
13139 testsuite/libgomp.fortran/omp_parse3.f90: Require
13140 effective-target TLS.
13141
13142 2005-11-14 Diego Novillo <dnovillo@redhat.com>
13143
13144 * HEADER: Remove.
13145
13146 2005-11-13 Jakub Jelinek <jakub@redhat.com>
13147
13148 PR libgomp/24797
13149 * team.c (initialize_team): Pass NULL rather than free as
13150 pthread_key_create destructor. Initialize thread specific data
13151 pointer in initial thread to a static local variable rather than
13152 malloced memory.
13153
13154 2005-11-11 Uros Bizjak <uros@kss-loka.si>
13155
13156 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
13157 its location to ld_library_path.
13158
13159 2005-11-10 Diego Novillo <dnovillo@redhat.com>
13160
13161 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
13162
13163 2005-11-10 Diego Novillo <dnovillo@redhat.com>
13164
13165 * testsuite/libgomp.c: Rename from libgomp.dg.
13166
13167 2005-11-09 Diego Novillo <dnovillo@redhat.com>
13168
13169 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
13170 threadprivate variable 'i'.
13171
13172 2005-11-09 Jakub Jelinek <jakub@redhat.com>
13173
13174 * config/linux/s390/futex.h: New file.
13175 * configure.tgt: Use it.
13176
13177 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
13178 before the parallel.
13179
13180 2005-11-08 Jakub Jelinek <jakub@redhat.com>
13181
13182 PR c++/24734
13183 * testsuite/libgomp.c++/master-1.C: New test.
13184
13185 2005-11-07 Jakub Jelinek <jakub@redhat.com>
13186
13187 * testsuite/libgomp.dg/copyin-3.c: New test.
13188
13189 2005-11-07 Jakub Jelinek <jakub@redhat.com>
13190
13191 * testsuite/libgomp.fortran/retval1.f90: New test.
13192 * testsuite/libgomp.fortran/vla7.f90: New test.
13193
13194 2005-11-06 Jakub Jelinek <jakub@redhat.com>
13195
13196 * testsuite/libgomp.fortran/vla2.f90: New test.
13197 * testsuite/libgomp.fortran/vla3.f90: New test.
13198 * testsuite/libgomp.fortran/vla4.f90: New test.
13199 * testsuite/libgomp.fortran/vla5.f90: New test.
13200 * testsuite/libgomp.fortran/vla6.f90: New test.
13201
13202 2005-11-01 Jakub Jelinek <jakub@redhat.com>
13203
13204 * config/linux/sparc/futex.h: New file.
13205 * configure.tgt: Use it.
13206 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
13207
13208 * critical.c: Include stdlib.h.
13209 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
13210 ignoring return value.
13211 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
13212 LIBGOMP_CHECK_SYNC_BUILTINS check.
13213 * configure: Rebuilt.
13214
13215 2005-10-31 Jakub Jelinek <jakub@redhat.com>
13216
13217 * testsuite/libgomp.fortran/vla1.f90: New test.
13218
13219 2005-10-31 Richard Henderson <rth@redhat.com>
13220
13221 * testsuite/libgomp.fortran/character2.f90: Fix race condition
13222 setting 's' in different threads.
13223
13224 2005-10-31 Jakub Jelinek <jakub@redhat.com>
13225
13226 * libgomp.h (attribute_hidden, ialias): Define.
13227 * config/posix/proc.c (omp_get_num_procs): Add ialias.
13228 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
13229 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
13230 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
13231 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
13232 omp_test_lock, omp_test_nest_lock): Likewise.
13233 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
13234 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
13235 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
13236 omp_test_lock, omp_test_nest_lock): Likewise.
13237 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
13238 omp_get_dynamic, omp_get_nested): Likewise.
13239 * parallel.c (omp_get_num_threads, omp_get_max_threads,
13240 omp_get_thread_num, omp_in_parallel): Likewise.
13241 * fortran.c (ialias_redirect): Define.
13242 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
13243 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
13244 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
13245 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
13246 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
13247 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
13248 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
13249 omp_get_wtime): Add ialias_redirect.
13250
13251 2005-10-30 Jakub Jelinek <jakub@redhat.com>
13252
13253 * fortran.c: Include stdlib.h.
13254
13255 2005-10-29 Jakub Jelinek <jakub@redhat.com>
13256
13257 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
13258 * Makefile.in: Regenerated.
13259
13260 2005-10-28 Jakub Jelinek <jakub@redhat.com>
13261
13262 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
13263 * libgomp_f.h.in (omp_check_defines): New function.
13264 * env.c: Include libgomp_f.h.
13265 (initialize_env): Call omp_check_defines.
13266
13267 * testsuite/libgomp.dg/copyin-2.c: New test.
13268 * testsuite/libgomp.c++/copyin-2.C: New test.
13269 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
13270
13271 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
13272 * testsuite/libgomp.fortran/sharing2.f90: New test.
13273
13274 * testsuite/libgomp.dg/copyin-1.c: New test.
13275 * testsuite/libgomp.c++/copyin-1.C: New test.
13276
13277 2005-10-26 Jakub Jelinek <jakub@redhat.com>
13278
13279 * testsuite/libgomp.fortran/crayptr1.f90: New test.
13280
13281 * testsuite/libgomp.fortran/workshare1.f90: New test.
13282
13283 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
13284 only test.
13285 * libgomp.fortran/sharing1.f90: New test.
13286
13287 2005-10-24 Jakub Jelinek <jakub@redhat.com>
13288
13289 PR c++/24502
13290 * testsuite/libgomp.c++/loop-7.C: New test.
13291
13292 * testsuite/libgomp.dg/nestedfn-2.c: New test.
13293
13294 * testsuite/libgomp.dg/nestedfn-1.c: New test.
13295 * testsuite/libgomp.fortran/reduction6.f90: New test.
13296 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
13297
13298 2005-10-23 Richard Henderson <rth@redhat.com>
13299
13300 * testsuite/libgomp.c++/ctor-1.C: New.
13301 * testsuite/libgomp.c++/ctor-2.C: New.
13302 * testsuite/libgomp.c++/ctor-3.C: New.
13303 * testsuite/libgomp.c++/ctor-4.C: New.
13304 * testsuite/libgomp.c++/ctor-5.C: New.
13305 * testsuite/libgomp.c++/ctor-6.C: New.
13306 * testsuite/libgomp.c++/ctor-7.C: New.
13307 * testsuite/libgomp.c++/ctor-8.C: New.
13308 * testsuite/libgomp.c++/ctor-9.C: New.
13309
13310 2005-10-21 Diego Novillo <dnovillo@redhat.com>
13311
13312 PR 24455
13313 * testsuite/libgomp.c++/pr24455-1.C: New test.
13314 * testsuite/libgomp.c++/pr24455.C: New test.
13315 * testsuite/libgomp.dg/pr24455-1.c: New test.
13316 * testsuite/libgomp.dg/pr24455.c: New test.
13317
13318 2005-10-20 Richard Henderson <rth@redhat.com>
13319
13320 * testsuite/libgomp.c++/loop-6.C: New.
13321 * testsuite/libgomp.dg/loop-3.c: New.
13322
13323 2005-10-20 Jakub Jelinek <jakub@redhat.com>
13324
13325 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
13326 explicitly private.
13327 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
13328 explicitly shared.
13329
13330 2005-10-19 Diego Novillo <dnovillo@redhat.com>
13331
13332 * testsuite/libgomp.fortran/jacobi.f: New test.
13333
13334 2005-10-19 Richard Henderson <rth@redhat.com>
13335
13336 * configure.tgt (i?86-linux): Default to with_arch instead of
13337 CFLAGS. Add -mtune to match target_cpu.
13338 (x86_64-linux): Tune to i686.
13339
13340 * fortran.c (omp_test_nest_lock_): Fix typo.
13341
13342 2005-10-19 Jakub Jelinek <jakub@redhat.com>
13343
13344 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
13345 gomp_ordered_sync): Do nothing if team->nthreads == 1.
13346 * testsuite/libgomp.dg/ordered-3.c: New test.
13347
13348 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
13349 Remove volatile keyword.
13350
13351 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
13352 in COMMON block to avoid warnings on 64-bit targets.
13353
13354 2005-10-18 Diego Novillo <dnovillo@redhat.com>
13355
13356 * testsuite/libgomp.dg/shared-3.c: New test.
13357
13358 2005-10-18 Jakub Jelinek <jakub@redhat.com>
13359
13360 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
13361 * testsuite/libgomp.fortran/reduction5.f90: New test.
13362
13363 2005-10-18 Jakub Jelinek <jakub@redhat.com>
13364
13365 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
13366 dg-options.
13367 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
13368 flush loop now that __sync_synchronize has proper memory barrier.
13369 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
13370 Add -ffixed-form to dg-options.
13371
13372 2005-10-17 Diego Novillo <dnovillo@redhat.com>
13373
13374 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
13375 from subdirectories.
13376 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
13377 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
13378 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
13379 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
13380 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
13381 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
13382 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
13383 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
13384 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
13385 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
13386 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
13387 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
13388 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
13389 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
13390 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
13391 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
13392 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
13393 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
13394 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
13395 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
13396 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
13397 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
13398 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
13399 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
13400 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
13401
13402 2005-10-17 Jakub Jelinek <jakub@redhat.com>
13403
13404 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
13405 lang_library_path exists. Use find instead of glob to gather tests.
13406 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
13407
13408 2005-10-17 Diego Novillo <dnovillo@redhat.com>
13409
13410 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
13411 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
13412 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
13413 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
13414 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
13415 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
13416 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
13417 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
13418 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
13419 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
13420 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
13421 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
13422 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
13423
13424 2005-10-15 Jakub Jelinek <jakub@redhat.com>
13425
13426 * testsuite/libgomp.dg/vla-1.c: New test.
13427
13428 * testsuite/libgomp.fortran/reference2.f90: New test.
13429
13430 * testsuite/libgomp.fortran/character2.f90: Remove explicit
13431 declaration of omp_get_thread_num.
13432 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
13433 use omp_lib.
13434
13435 * testsuite/libgomp.fortran/reduction1.f90: New test.
13436 * testsuite/libgomp.fortran/reduction2.f90: New test.
13437 * testsuite/libgomp.fortran/reduction3.f90: New test.
13438 * testsuite/libgomp.fortran/reduction4.f90: New test.
13439
13440 2005-10-13 Richard Henderson <rth@redhat.com>
13441
13442 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
13443 * Makefile.in: Regenerate.
13444 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
13445 * libgomp.h: Include bar.h.
13446 (struct gomp_barrier): Remove.
13447 (struct gomp_team): Add barrier. Replace master_barrier with
13448 master_release. Replace threads with ordered_release.
13449 (struct gomp_thread): Replace barrier with release.
13450 * ordered.c (gomp_ordered_first): Update for ordered_release change.
13451 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
13452 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
13453 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
13454 (GOMP_single_copy_end): Likewise.
13455 * team.c (gomp_threads_dock): New.
13456 (gomp_barrier_init, gomp_barrier_destroy): Remove.
13457 (gomp_thread_start): Use gomp_barrier_wait.
13458 (new_team, free_team): Update for gomp_team changes.
13459 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
13460 (gomp_team_end): Use gomp_barrier_wait.
13461 (initialize_team): Update for gomp_thread changes.
13462 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
13463 (gomp_work_share_end_nowait): Use atomic ops when available.
13464 * config/linux/bar.c, config/linux/bar.h: New files.
13465 * config/posix/bar.c, config/posix/bar.h: New files.
13466
13467 2005-10-13 Jakub Jelinek <jakub@redhat.com>
13468
13469 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
13470 * testsuite/libgomp.dg/single-2.c: New test.
13471
13472 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
13473 lang_link_flags): Unset, so that they aren't inherited from previously
13474 sourced *.exp.
13475
13476 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
13477
13478 2005-10-12 Richard Henderson <rth@redhat.com>
13479
13480 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
13481 (libgomp_init): Use lang_test_file, lang_library_path, and
13482 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
13483
13484 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
13485 (lang_test_file, lang_link_flags): New.
13486 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
13487
13488 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
13489 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
13490 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
13491 testsuite/libgomp.c++/parallel-1.C,
13492 testsuite/libgomp.c++/reduction-1.C,
13493 testsuite/libgomp.c++/reduction-2.C,
13494 testsuite/libgomp.c++/reduction-3.C,
13495 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
13496 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
13497 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
13498 New files, largely cribbed from the C testsuite.
13499
13500 2005-10-12 Jakub Jelinek <jakub@redhat.com>
13501
13502 * testsuite/libgomp.fortran/character1.f90: New test.
13503 * testsuite/libgomp.fortran/character2.f90: New test.
13504
13505 * testsuite/libgomp.dg/nested-1.c: New test.
13506 * testsuite/libgomp.dg/nested-2.c: New test.
13507 * testsuite/libgomp.fortran/do1.f90: New test.
13508 * testsuite/libgomp.fortran/do2.f90: New test.
13509
13510 * testsuite/libgomp.fortran/reference1.f90: New test.
13511
13512 2005-10-11 Jakub Jelinek <jakub@redhat.com>
13513
13514 * testsuite/libgomp.dg/reduction-1.c: New test.
13515 * testsuite/libgomp.dg/reduction-2.c: New test.
13516 * testsuite/libgomp.dg/reduction-3.c: New test.
13517
13518 2005-10-10 Jakub Jelinek <jakub@redhat.com>
13519
13520 * testsuite/libgomp.dg/atomic-1.c: New test.
13521 * testsuite/libgomp.dg/atomic-2.c: New test.
13522
13523 2005-10-09 Richard Henderson <rth@redhat.com>
13524
13525 * critical.c (atomic_lock): New.
13526 (initialize_critical): Initialize it.
13527 (GOMP_atomic_start, GOMP_atomic_end): New.
13528 * libgomp.map: Export them.
13529 * libgomp_g.h: Declare them.
13530
13531 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
13532
13533 2005-10-02 Richard Henderson <rth@redhat.com>
13534
13535 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
13536 to XCFLAGS instead of CFLAGS.
13537
13538 2005-09-30 Richard Henderson <rth@redhat.com>
13539
13540 * configure.ac: Determine whether -pthread or -lpthread is needed.
13541 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
13542 * Makefile.in, configure: Rebuild.
13543
13544 2005-09-28 Richard Henderson <rth@redhat.com>
13545
13546 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
13547 * testsuite/libgomp.dg/omp-single-3.c: New test.
13548
13549 2005-09-28 Diego Novillo <dnovillo@redhat.com>
13550
13551 * testsuite/libgomp.dg/omp-single-2.c: New test.
13552 * testsuite/libgomp.dg/shared-2.c: Fix return code.
13553
13554 2005-09-27 Richard Henderson <rth@redhat.com>
13555
13556 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
13557 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
13558
13559 2005-09-27 Jakub Jelinek <jakub@redhat.com>
13560
13561 * testsuite/libgomp.dg/omp-loop03.c: New test.
13562
13563 2005-09-27 Diego Novillo <dnovillo@redhat.com>
13564
13565 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
13566
13567 2005-09-27 Diego Novillo <dnovillo@redhat.com>
13568
13569 * testsuite/libgomp.dg/omp-single-1.c: New test.
13570 * testsuite/libgomp.dg/shared-1.c: Return 0.
13571 Add prototype for abort.
13572 * testsuite/libgomp.dg/shared-2.c: Likewise.
13573
13574 2005-09-26 Jakub Jelinek <jakub@redhat.com>
13575
13576 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
13577 constructs.
13578
13579 2005-09-26 Diego Novillo <dnovillo@redhat.com>
13580
13581 * testsuite/libgomp.dg/shared-1.c: New test.
13582 * testsuite/libgomp.dg/shared-2.c: New test.
13583
13584 2005-09-24 Richard Henderson <rth@redhat.com>
13585
13586 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
13587
13588 2005-09-24 Richard Henderson <rth@redhat.com>
13589
13590 * iter.c (gomp_iter_static_next): Round up when computing number
13591 of iterations. Don't bother distributing a remainder equally.
13592
13593 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
13594 Don't call srand. Zero b before testing.
13595 (main): New.
13596
13597 2005-09-24 Jakub Jelinek <jakub@redhat.com>
13598
13599 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
13600 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
13601
13602 2005-09-23 Jakub Jelinek <jakub@redhat.com>
13603
13604 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
13605 without !$omp end do, followed immediately by subroutine end.
13606
13607 2005-09-23 Diego Novillo <dnovillo@redhat.com>
13608
13609 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
13610
13611 2005-09-22 Richard Henderson <rth@redhat.com>
13612
13613 * critical.c (GOMP_critical_name_start): Change argument to void**.
13614 Reuse the pointer space if the mutex fits.
13615 (GOMP_critical_name_end): Likewise.
13616 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
13617 * libgomp_g.h (GOMP_critical_name_start): Update decl.
13618 (GOMP_critical_name_end): Likewise.
13619 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
13620 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
13621
13622 2005-09-20 Richard Henderson <rth@redhat.com>
13623
13624 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
13625 (create_lock_lock): New.
13626 (initialize_critical): Initialize it.
13627 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
13628 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
13629
13630 2005-09-20 Diego Novillo <dnovillo@redhat.com>
13631
13632 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
13633
13634 2005-09-20 Diego Novillo <dnovillo@redhat.com>
13635
13636 * testsuite/libgomp.dg/omp-loop01.c: New test.
13637 * testsuite/libgomp.dg/omp-loop02.c: New test.
13638
13639 2005-09-20 Jakub Jelinek <jakub@redhat.com>
13640
13641 * configure.ac (AC_PROG_FC): Add.
13642 (USE_FORTRAN): New automake conditional.
13643 * configure: Rebuilt.
13644 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
13645 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
13646 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
13647 Add rules to build them.
13648 * Makefile.in: Rebuilt.
13649 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
13650 OMP_NEST_LOCK_KIND.
13651 * libgomp.map: Add Fortran wrappers.
13652 * libgomp_f.h.in: New file.
13653 * omp_lib.h.in: New file.
13654 * omp_lib.f90.in: New file.
13655 * fortran.c: New file.
13656 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
13657 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
13658 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
13659 libgfortran has been built.
13660 * testsuite/libgomp.fortran/fortran.exp: New file.
13661 * testsuite/libgomp.fortran/omp_cond1.f: New test.
13662 * testsuite/libgomp.fortran/omp_cond2.f: New test.
13663 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
13664 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
13665 * testsuite/libgomp.fortran/omp_hello.f: New test.
13666 * testsuite/libgomp.fortran/omp_orphan.f: New test.
13667 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
13668 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
13669 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
13670 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
13671 * testsuite/libgomp.fortran/omp_reduction.f: New test.
13672 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
13673 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
13674
13675 2005-08-30 Richard Henderson <rth@redhat.com>
13676
13677 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
13678 function for when aliases are not usable.
13679 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
13680 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
13681 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
13682 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
13683 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
13684 GOMP_loop_ordered_guided_next): Likewise.
13685 * ordered.c (GOMP_ordered_start): Likewise.
13686
13687 2005-08-01 Diego Novillo <dnovillo@redhat.com>
13688
13689 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
13690 * testsuite/libgomp.dg/omp_hello.c: Fix return code
13691 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
13692 * testsuite/libgomp.dg/omp_orphan.c: Likewise
13693 * testsuite/libgomp.dg/omp_reduction.c: Likewise
13694 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
13695 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
13696 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
13697 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
13698
13699 2005-07-07 Eric Christopher <echristo@redhat.com>
13700 Diego Novillo <dnovillo@redhat.com>
13701
13702 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
13703 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
13704 up code.
13705 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
13706 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
13707 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
13708 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
13709 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
13710 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
13711 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
13712
13713 2005-06-13 Diego Novillo <dnovillo@redhat.com>
13714
13715 * TOPLEVEL.patch: Remove.
13716
13717 2005-05-16 Richard Henderson <rth@redhat.com>
13718
13719 * configure.ac: Test for clock_gettime.
13720 * config.h.in, configure: Rebuild.
13721 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
13722 (omp_get_wtime): Use clock_gettime if available.
13723 (omp_get_wtick): Use clock_getres if available.
13724
13725 2005-05-11 Richard Henderson <rth@redhat.com>
13726
13727 * config/linux/ia64/futex.h: New file.
13728 * configure.tgt: Use it.
13729
13730 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
13731
13732 2005-05-07 Richard Henderson <rth@redhat.com>
13733
13734 * config/linux/powerpc/futex.h: New file.
13735 * configure.tgt: Use it.
13736
13737 * config/linux/i486/futex.h: Merge ...
13738 * config/linux/x86_64/futex.h: ... into ...
13739 * config/linux/x86/futex.h: ... here.
13740 * configure.tgt: Update to match.
13741
13742 2005-05-06 Richard Henderson <rth@redhat.com>
13743
13744 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
13745 * config/linux/i486/futex.h: Likewise.
13746 * config/linux/x86_64/futex.h: Likewise.
13747
13748 * config/linux/lock.c: New file.
13749 * config/linux/omp-lock.h: New file.
13750
13751 * critical.c, env.h: Don't include omp.h
13752 * config/posix/lock.c: Include libgomp.h instead of omp.h.
13753 * config/posix/time.c: Likewise.
13754 * config/posix/omp-lock.h: New file.
13755 * libgomp.h: Include omp-lock.h and omp.h.
13756 * Makefile.am (nodist_include_HEADERS): New.
13757 (omp.h): New rule.
13758 * configure.ac (PERL): New.
13759 * mkomp_h.pl: New file.
13760 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
13761 with templates.
13762 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
13763
13764 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
13765 build directory. Re-add -march=i486 hack.
13766
13767 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
13768 (libgomp_link_flags): Remove.
13769 (libgomp_initialized): Remove.
13770 (libgomp_init): Don't protect from reinitialization. Copy code
13771 from libstdc++ for getting the multilib set correctly.
13772
13773 2005-05-05 Richard Henderson <rth@redhat.com>
13774
13775 * config/linux/alpha/futex.h: New file.
13776 * configure.tgt (alpha*-*-linux*): Use it.
13777
13778 * config/posix/mutex.c: New file.
13779 * config/posix/sem.c: Use libgomp.h.
13780
13781 * configure.tgt (x86_64-linux): Also test CC for -m32.
13782 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
13783
13784 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
13785 after $gccpath.
13786
13787 * Makefile.am (SUBDIRS): New.
13788 (libgomp_la_LDFLAGS): Add -lpthread.
13789 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
13790 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
13791
13792 * libgomp_g.h: New file.
13793 * libgomp.h: Split out all public declarations to libgomp_g.h.
13794 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
13795 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
13796 * config/linux/sem.h: Likewise.
13797 * config/posix/sem.h: Likewise.
13798
13799 * Makefile.am (AM_LDFLAGS): New.
13800 (libgomp_version_script): Split out from ...
13801 (libgomp_la_LDFLAGS): ... here.
13802 (libgomp_version_info): New.
13803 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
13804 (LIBGOMP_ENABLE): New.
13805 (LIBGOMP_CHECK_LINKER_FEATURES): New.
13806 (LIBGOMP_ENABLE_SYMVERS): New.
13807 * configure.ac (AC_INIT): Version 1.0.
13808 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
13809 (enable-linux-futex): Likewise. Rename from enable-futex.
13810 (libtool_VERSION): New.
13811 (LIBGOMP_ENABLE_SYMVERS): Use it.
13812 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
13813 * Makefile.in, aclocal.m4, configure: Rebuild.
13814
13815 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
13816 (gomp_mutex_unlock_slow): Fix typo.
13817 * config/linux/sem.c: Similarly.
13818 (gomp_sem_post_slow): Fix typo.
13819 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
13820 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
13821 [__PIC__] (sys_futex0): Don't use tmp output in asm.
13822
13823 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
13824 (libgomp_la_LDFLAGS): Add top_srcdir to path.
13825 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
13826 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
13827 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
13828 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
13829 LDFLAGS. Pull enable_futex check to top-level.
13830 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
13831 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
13832
13833 First attempt at real configury.
13834 * Makefile, config.h: Remove file.
13835 * Makefile.am, Makefile.in: New file.
13836 * acinclude.m4 aclocal.m4: New file.
13837 * configure.ac, configure.tgt, configure: New file.
13838
13839 * config/posix/lock.c: Rename from sys-lock.c.
13840 * config/posix/mutex.h: Rename from sys-mutex.h.
13841 * config/posix/sem.c: Rename from sys-sem.c.
13842 * config/posix/sem.h: Rename from sys-sem.h.
13843 * config/posix/proc.c: Rename from sys-proc.c.
13844 * config/posix/time.c: Rename from sys-proc.c.
13845
13846 * config/linux/mutex.c: New file.
13847 * config/linux/mutex.h: New file.
13848 * config/linux/sem.c: New file.
13849 * config/linux/sem.h: New file.
13850 * config/linux/i486/futex.h: New file.
13851 * config/linux/x86_64/futex.h: New file.
13852
13853 2005-05-04 Richard Henderson <rth@redhat.com>
13854
13855 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
13856 * libgomp.h: Declare them.
13857 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
13858 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
13859
13860 2005-05-04 Richard Henderson <rth@redhat.com>
13861
13862 * libgomp-1 code drop
13863
13864 2005-05-04 Richard Henderson <rth@redhat.com>
13865
13866 * iter.c (gomp_iter_static_next): Return tri-state on 0.
13867 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
13868 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
13869 (gomp_iter_static_next): Update.
13870 (gomp_ordered_static_next): Update.
13871 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
13872 (gomp_loop_ordered_static_start): Likewise. Exit early for a
13873 totally empty range.
13874 (gomp_loop_ordered_static_next): Refine test for calling
13875 gomp_ordered_static_next.
13876 * testsuite/ordered-1.c: Add case for more threads than iterations.
13877
13878 * iter.c (gomp_iter_runtime_next_locked): Remove.
13879 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
13880 gomp_loop_guided_start, gomp_loop_ordered_static_start,
13881 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
13882 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
13883 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
13884 gomp_loop_ordered_guided_next): Downcase name, make static, add
13885 an external alias with the old name.
13886 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
13887 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
13888 switch and call one of the above static functions.
13889 * libgomp.h: Update.
13890
13891 * work.c (gomp_work_share_start): Lock the mutex for !first too.
13892 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
13893 GOMP_loop_guided_start, GOMP_loop_runtime_start,
13894 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
13895 GOMP_loop_ordered_guided_start): Update to match.
13896 * sections.c (GOMP_sections_start): Likewise.
13897 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
13898
13899 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
13900 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
13901 Use bounds check instead of modulus.
13902 (gomp_ordered_sync): Split out of GOMP_ordered_start.
13903 (gomp_ordered_last): Don't sync with ordered_owner here.
13904 (gomp_ordered_next): Likewise.
13905 (gomp_ordered_static_loop_next): Likewise.
13906 * loop.c, libgomp.h: Update to match.
13907
13908 * libgomp.h (GOMP_barrier): Declare.
13909
13910 * testsuite/barrier-1.c: New file.
13911 * testsuite/critical-1.c: New file.
13912 * testsuite/ordered-2.c: New file.
13913 * testsuite/ordered-1.c: New file.
13914 * testsuite/sections-1.c: New file.
13915 * testsuite/single-1.c: New file.
13916 * testsuite/Makefile (TESTS): Add them.
13917
13918 2005-05-04 Richard Henderson <rth@redhat.com>
13919
13920 * libgomp.h (struct gomp_work_share): Add ordered_owner.
13921 * loop.c (GOMP_loop_static_start): If not the startup thread,
13922 acquire the mutex to wait for initialization complete.
13923 (GOMP_loop_ordered_static_start): Likewise.
13924 (GOMP_loop_ordered_runtime_start): Likewise.
13925 (GOMP_loop_ordered_static_first): Remove.
13926 (GOMP_loop_ordered_dynamic_first): Remove.
13927 (GOMP_loop_ordered_guided_first): Remove.
13928 (GOMP_loop_ordered_runtime_first): Remove.
13929 * ordered.c (gomp_ordered_loop_first): Post to own release when
13930 we're the first thread.
13931 (gomp_ordered_loop_last): Wait on release if not owner.
13932 (gomp_ordered_loop_next): Likewise.
13933 (gomp_ordered_static_loop_init): New.
13934 (gomp_ordered_static_loop_next): Use ordered_owner.
13935 (GOMP_ordered_start): Likewise.
13936 * work.c (gomp_new_work_share): Initialize ordered_owner.
13937
13938 2005-05-03 Richard Henderson <rth@redhat.com>
13939
13940 * Makefile (OPT): New.
13941 (CFLAGS): Use it.
13942
13943 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
13944 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
13945 * libgomp.h, libgomp.map, NOTES: Update to match.
13946
13947 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
13948 Add initialized and thr members.
13949 (gomp_thread_start): Pause when initially spawned to wait for
13950 the whole team to be created.
13951 (gomp_team_start): Release team members at the end.
13952
13953 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
13954 (f_foo_1): Use GOMP_loop_end.
13955 (f_foo_2): Use GOMP_loop_end_nowait.
13956
13957 * testsuite/loop-2.c: New file.
13958 * testsuite/Makefile (TESTS): Add it.
13959
13960 2005-05-03 Richard Henderson <rth@redhat.com>
13961
13962 * iter.c (gomp_iter_static_next): Fix overflow check typo.
13963 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
13964 * team.c (new_team): Initialize oldest_live_gen to 1 if no
13965 initial work_share.
13966
13967 * testsuite/Makefile: New file.
13968 * testsuite/loop-1.c: New file.
13969
13970 2005-05-03 Richard Henderson <rth@redhat.com>
13971
13972 Initial implementation and checkin.
13973 \f
13974 Copyright (C) 2005-2020 Free Software Foundation, Inc.
13975
13976 Copying and distribution of this file, with or without modification,
13977 are permitted in any medium without royalty provided the copyright
13978 notice and this notice are preserved.