]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgomp/ChangeLog
libstdc++: Make ranges::construct_at constexpr-friendly [PR95788]
[thirdparty/gcc.git] / libgomp / ChangeLog
CommitLineData
8e97b905
GA
12020-10-06 Tom de Vries <tdevries@suse.de>
2
3 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
4
52020-10-06 Tom de Vries <tdevries@suse.de>
6
7 PR middle-end/90861
8 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
9
7e9282ae
GA
102020-10-05 Tom de Vries <tdevries@suse.de>
11
12 PR fortran/95654
13 * testsuite/libgomp.fortran/pr95654.f90: New test.
14
b0b9b8f0
GA
152020-10-02 Tobias Burnus <tobias@codesourcery.com>
16
17 * Makefile.in: Regenerate with automake 1.15.1.
18 * aclocal.m4: Likewise.
19 * configure: Likewise.
20 * testsuite/Makefile.in: Likewise.
21
660bfe61
GA
222020-09-30 Andrew Stubbs <ams@codesourcery.com>
23
24 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
25 and amdgcn targets.
26
272020-09-30 Tobias Burnus <tobias@codesourcery.com>
28
29 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
30
93bca37c
GA
312020-09-29 Andrew Stubbs <ams@codesourcery.com>
32
33 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
34 total number of threads is one.
35 (gomp_team_barrier_wake): Likewise.
36 (gomp_team_barrier_wait_end): Likewise.
37 (gomp_team_barrier_wait_cancel_end): Likewise.
38 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
39 (gomp_team_barrier_wake): Likewise.
40 (gomp_team_barrier_wait_end): Likewise.
41 (gomp_team_barrier_wait_cancel_end): Likewise.
42 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
43
e84761c6
GA
442020-09-28 Tobias Burnus <tobias@codesourcery.com>
45
46 PR middle-end/96390
47 * testsuite/libgomp.c++/pr96390.C: New test.
48 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
49
4383c595
GA
502020-09-27 Clement Chigot <clement.chigot@atos.net>
51
52 * config/t-aix: Use $(AR) without -X32_64.
53
cdd8f031
GA
542020-09-25 Jakub Jelinek <jakub@redhat.com>
55
56 * testsuite/libgomp.c/loop-25.c: New test.
57
521d2711
GA
582020-09-22 Tobias Burnus <tobias@codesourcery.com>
59
60 PR fortran/95654
61 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
62
632020-09-22 Tom de Vries <tdevries@suse.de>
64
65 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
66 fails.
67
ecde1b0a
GA
682020-09-16 Nathan Sidwell <nathan@acm.org>
69
70 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
71
9f7ab8c5
GA
722020-09-15 Tobias Burnus <tobias@codesourcery.com>
73
74 PR fortran/96668
75 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
76
772020-09-15 Tobias Burnus <tobias@codesourcery.com>
78
79 PR fortran/96668
80 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
81 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
82 (gomp_map_vars_existing): Update call to it.
83 (gomp_map_fields_existing): Likewise
84 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
85 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
86 remapped.
87 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
88 GOMP_MAP_POINTER.
89 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
90 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
91
50a71cd0
GA
922020-09-14 Tom de Vries <tdevries@suse.de>
93
94 * config/nvptx/atomic.c: New file. Add
95 __sync_val_compare_and_swap_16.
96 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
97 target offload_target_nvptx.
98
31a05046
GA
992020-09-08 Julian Brown <julian@codesourcery.com>
100
101 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
102 iteration-ordering assumptions.
103
1042020-09-08 Julian Brown <julian@codesourcery.com>
105
106 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
107 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
108
5b9a3d2a
GA
1092020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
110
111 * plugin/plugin-nvptx.c (nvptx_free):
112 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
113 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
114 comments.
115
1162020-08-20 Tobias Burnus <tobias@codesourcery.com>
117
118 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
119
b3cb5606
GA
1202020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
121
122 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
123
1242020-08-13 Jakub Jelinek <jakub@redhat.com>
125
126 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
127 * testsuite/libgomp.c/loop-23.c (main): Likewise.
128 * testsuite/libgomp.c/loop-24.c: New test.
129
bc0ca715
GA
1302020-08-08 Jakub Jelinek <jakub@redhat.com>
131 Tobias Burnus <tobias@codesourcery.com>
132
133 PR fortran/93553
134 * testsuite/libgomp.fortran/pr93553.f90: New test.
135
aa5ea20c
GA
1362020-08-05 Jakub Jelinek <jakub@redhat.com>
137
138 * testsuite/libgomp.c/loop-22.c: New test.
139 * testsuite/libgomp.c/loop-23.c: New test.
140
1412020-08-05 Jakub Jelinek <jakub@redhat.com>
142
143 PR middle-end/96459
144 * testsuite/libgomp.c/teams-3.c: New test.
145 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
146 if not defined yet.
147 (N(test)): Use it before all N(f*) calls.
148 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
149 (main): Don't call all test_* functions from within
150 #pragma omp teams reduction(|:err), call them directly.
151
abba2591
GA
1522020-08-04 Tom de Vries <tdevries@suse.de>
153
154 PR target/96428
155 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
156 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
157
6a1ad710
GA
1582020-08-03 Julian Brown <julian@codesourcery.com>
159 Thomas Schwinge <thomas@codesourcery.com>
160
161 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
162 shared-memory devices. Extend with further checking.
163
1642020-08-03 Martin Jambor <mjambor@suse.cz>
165
166 * plugin/Makefrag.am: Remove configuration of HSA plugin.
167 * aclocal.m4: Regenerated.
168 * Makefile.in: Regenerated.
169 * config.h.in: Regenerated.
170 * configure: Regenerated.
171 * plugin/configfrag.ac: Likewise.
172 * plugin/hsa_ext_finalize.h: Removed.
173 * plugin/plugin-hsa.c: Likewise.
174 * testsuite/Makefile.in: Regenerated.
175 * testsuite/lib/libgomp.exp
176 (offload_target_to_openacc_device_type): Remove hsa case.
177 (check_effective_target_hsa_offloading_selected_nocache): Removed
178 (check_effective_target_hsa_offloading_selected): Likewise.
179 (libgomp_init): Do not add -Wno-hsa to additional_flags.
180 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
181 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
182 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
183 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
184 * testsuite/libgomp.hsa.c/c.exp: Likewise.
185 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
186 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
187 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
188 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
189 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
190 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
191 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
192 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
193 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
194 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
195 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
196 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
197 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
198 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
199 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
200 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
201 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
202 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
203 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
204
e71dab87
GA
2052020-07-27 Julian Brown <julian@codesourcery.com>
206 Thomas Schwinge <thomas@codesourcery.com>
207
208 * libgomp.h (struct target_var_desc): Rename do_detach field to
209 is_attach.
210 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
211 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
212 (goacc_enter_data_internal): Don't affect reference counts
213 for attach mappings.
214 (goacc_exit_data_internal): Don't affect reference counts for detach
215 mappings.
216 * target.c (gomp_map_vars_existing): Don't affect reference counts for
217 attach mappings.
218 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
219 mark attach mappings.
220 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
221 reference count for attach mappings.
222 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
223 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
224 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
225 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
226 test as shouldfail.
227 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
228 gracefully in no-finalize mode.
229 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
230
53256ee3
GA
2312020-07-24 Thomas Schwinge <thomas@codesourcery.com>
232
233 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
234 use.
235 * testsuite/libgomp.oacc-c/c.exp: Likewise.
236 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
237
9bb403dc
GA
2382020-07-23 Julian Brown <julian@codesourcery.com>
239 Thomas Schwinge <thomas@codesourcery.com>
240
241 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
242 finalization for detach operation.
243 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
244 New test.
245
2462020-07-23 Tobias Burnus <tobias@codesourcery.com>
247
248 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
249 * libgomp_f.h.in (omp_check_defines): Check whether
250 sizeof of determined Fortran kind and C typedef match.
251 * omp_lib.f90.in: Add omp_depened_kind.
252 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
253 * configure: Regenerate.
254 * Makefile.in: Regenerate.
255 * testsuite/Makefile.in: Regenerate.
256
3ea9abca
GA
2572020-07-22 Tobias Burnus <tobias@codesourcery.com>
258
259 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
260 gcc/testsuite/c-c++-common/gomp/.
261 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
262 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
263 from gcc/testsuite/gfortran.dg/gomp/.
264 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
265
2662020-07-22 Tobias Burnus <tobias@codesourcery.com>
267
268 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
269 * omp_lib.h.in: Likewise.
270
aeb34e15
GA
2712020-07-18 H.J. Lu <hjl.tools@gmail.com>
272
273 PR target/95620
274 * testsuite/libgomp.c/pr95620.c: New test.
275
96686b3f
GA
2762020-07-16 Julian Brown <julian@codesourcery.com>
277 Thomas Schwinge <thomas@codesourcery.com>
278
279 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
280 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
281
fe8185b5
GA
2822020-07-15 Tobias Burnus <tobias@codesourcery.com>
283
284 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
285 avoid conversion on 32bit systems from 32bit to 64bit due
286 to -fdefault-integer-8.
287
2882020-07-15 Tobias Burnus <tobias@codesourcery.com>
289
290 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
291 variables; add character(kind=4) tests; update TODO comment.
292
2932020-07-15 Tobias Burnus <tobias@codesourcery.com>
294
295 * allocator.c: Add ialias for omp_init_allocator and
296 omp_destroy_allocator.
297 * configure.ac: Set INTPTR_T_KIND.
298 * configure: Regenerate.
299 * Makefile.in: Regenerate.
300 * testsuite/Makefile.in: Regenerate.
301 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
302 omp_set_default_allocator_, omp_get_default_allocator_): New
303 functions and ialias_redirect.
304 * icv.c: Add ialias for omp_set_default_allocator and
305 omp_get_default_allocator.
306 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
307 omp_destroy_allocator_, omp_set_default_allocator_ and
308 omp_get_default_allocator_.
309 * omp_lib.f90.in: Add allocator traits parameters, declare
310 allocator routines and add related kind parameters.
311 * omp_lib.h.in: Likewise.
312 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
313 * testsuite/libgomp.fortran/alloc-1.F90: New test.
314 * testsuite/libgomp.fortran/alloc-2.F90: New test.
315 * testsuite/libgomp.fortran/alloc-3.F: New test.
316 * testsuite/libgomp.fortran/alloc-4.f90: New test.
317 * testsuite/libgomp.fortran/alloc-5.f90: New test.
318
8ca07a30
GA
3192020-07-14 Tom de Vries <tom@codesourcery.com>
320 Cesar Philippidis <cesar@codesourcery.com>
321 Thomas Schwinge <thomas@codesourcery.com>
322 Kwok Cheung Yeung <kcy@codesourcery.com>
323
324 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
325 New variable.
326 (acc_init_1): Set acc_init_thread to pthread_self (). Set
327 acc_init_state to initializing at the start, and to initialized at the
328 end.
329 (self_initializing_p): New function.
330 (acc_get_device_type): Return acc_device_none if called by thread that
331 is currently executing acc_init_1.
332 * libgomp.texi (acc_get_device_type): Update documentation.
333 (Implementation Status and Implementation-Defined Behavior): Likewise.
334 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
335
3362020-07-14 David Edelsohn <dje.gcc@gmail.com>
337
338 * config/t-aix: Set BITS from compiler cpp macro.
339
3402020-07-14 Tobias Burnus <tobias@codesourcery.com>
341
342 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
343
3442020-07-14 Tobias Burnus <tobias@codesourcery.com>
345
346 PR fortran/67311
347 * testsuite/libgomp.fortran/target-map-1.f90: New test.
348
3492020-07-14 Jakub Jelinek <jakub@redhat.com>
350
351 * testsuite/libgomp.c/loop-21.c: New test.
352
ea69fcf9
GA
3532020-07-13 Julian Brown <julian@codesourcery.com>
354 Thomas Schwinge <thomas@codesourcery.com>
355
356 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
357
86536295
GA
3582020-07-10 Julian Brown <julian@codesourcery.com>
359 Thomas Schwinge <thomas@codesourcery.com>
360
361 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
362 dynamic_refcount.
363 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
364 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
365 dynamic_refcount.
366 (acc_unmap_data): Update comment.
367 (goacc_map_var_existing, goacc_enter_datum): Adjust for
368 dynamic_refcount semantics.
369 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
370 Adjust for dynamic_refcount semantics.
371 (goacc_enter_data_internal): Implement "present" case of dynamic
372 memory-map handling here. Update "non-present" case for
373 dynamic_refcount semantics.
374 (goacc_exit_data_internal): Use goacc_exit_datum_1.
375 * target.c (gomp_map_vars_internal): Remove
376 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
377 handling.
378 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
379 (gomp_load_image_to_device): Substitute dynamic_refcount for
380 virtual_refcount.
381 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
382 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
383 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
384 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
385 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
386 trace output.
387 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
388 trace output.
389 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
390 test.
391 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
392 Remove stale comment.
393 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
394 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
395 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
396 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
397 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
398 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
399
4002020-07-10 Julian Brown <julian@codesourcery.com>
401 Thomas Schwinge <thomas@codesourcery.com>
402
403 * oacc-mem.c (goacc_map_var_existing): New function.
404 (goacc_enter_datum): Use above function.
405 (goacc_exit_datum_1): New function.
406 (goacc_exit_datum): Use above function.
407
3f8ca9cb
GA
4082020-07-09 Julian Brown <julian@codesourcery.com>
409 Thomas Schwinge <thomas@codesourcery.com>
410
411 PR middle-end/95270
412 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
413 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
414
4152020-07-09 Julian Brown <julian@codesourcery.com>
416
417 * oacc-mem.c (find_group_last): Group data-movement clauses
418 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
419 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
420
4212020-07-09 Jakub Jelinek <jakub@redhat.com>
422
423 * testsuite/libgomp.c/loop-19.c: New test.
424 * testsuite/libgomp.c/loop-20.c: New test.
425
4262020-07-09 Jakub Jelinek <jakub@redhat.com>
427
428 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
429 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
430 it. Remove __omp_alloctrait_value_max__.
431 * allocator.c (omp_init_allocator): Handle omp_atv_default for
432 omp_atk_alignment and omp_atk_pool_size.
433
b991c834
GA
4342020-07-03 Thomas Schwinge <thomas@codesourcery.com>
435
436 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
437 behavior for 'GOMP_MAP_FORCE_FROM'.
438 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
439
4402020-07-03 Thomas Schwinge <thomas@codesourcery.com>
441
442 * oacc-mem.c (goacc_exit_data_internal): Remove
443 'GOMP_MAP_ALWAYS_FROM' handling.
444
46fbb6c6
GA
4452020-06-30 Thomas Schwinge <thomas@codesourcery.com>
446
447 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
448 'scan-assembler' with 'scan-offload-rtl'.
449 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
450 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
451 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
452 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
453
4542020-06-30 Thomas Schwinge <thomas@codesourcery.com>
455
456 * target.c (gomp_map_vars_existing): Assert 'kind !=
457 GOMP_MAP_ATTACH'.
458 (gomp_map_vars_internal): Clean up.
459
9a33c41f
GA
4602020-06-27 Jakub Jelinek <jakub@redhat.com>
461
462 * testsuite/libgomp.c/loop-17.c: New test.
463 * testsuite/libgomp.c/loop-18.c: New test.
464
c9c05f73
GA
4652020-06-26 Marek Polacek <polacek@redhat.com>
466
467 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
468
4543acc8
GA
4692020-06-23 Alexandre Oliva <oliva@adacore.com>
470
471 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
472 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
473
605a8f3b
GA
4742020-06-22 David Edelsohn <dje.gcc@gmail.com>
475
476 * Makefile.am: Use -include.
477 * Makefile.in: Regenerate.
478
f86e11a2
GA
4792020-06-21 David Edelsohn <dje.gcc@gmail.com>
480
481 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
482 * Makefile.in: Regenerate
483 * configure.ac (tmake_file): Substitute.
484 * configure: Regenerate.
485 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
486 * config/t-aix: New file.
487
aff95ee7
GA
4882020-06-17 Thomas Schwinge <thomas@codesourcery.com>
489
490 PR lto/94848
491 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
492 'dg-do run'.
493
4942020-06-17 Andrew Stubbs <ams@codesourcery.com>
495
496 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
497 variant for HSA_RUNTIME_LIB name.
498 (find_executable_symbol_1): Delete.
499 (find_executable_symbol): Delete.
500 (init_kernel_properties): Add ".kd" suffix to symbol names.
501 (find_load_offset): Delete.
502 (create_and_finalize_hsa_program): Remove relocation handling.
503
56638b9b
GA
5042020-06-16 Tobias Burnus <tobias@codesourcery.com>
505
506 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
507
2c455ae0
GA
5082020-06-08 Tobias Burnus <tobias@codesourcery.com>
509
510 PR lto/94848
511 PR middle-end/95551
512 * testsuite/libgomp.fortran/target-var.f90: New test.
513
1a59f3db
GA
5142020-06-05 Thomas Schwinge <thomas@codesourcery.com>
515 Julian Brown <julian@codesourcery.com>
516
517 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
518 special handling.
519
5202020-06-05 Thomas Schwinge <thomas@codesourcery.com>
521 Julian Brown <julian@codesourcery.com>
522
523 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
524 Simplify.
525
5262020-06-05 Julian Brown <julian@codesourcery.com>
527
528 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
529 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
530
3add3425
GA
5312020-06-04 Thomas Schwinge <thomas@codesourcery.com>
532
533 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
534 Evaluate 'copyfrom' individually for each entry.
535 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
536
5372020-06-04 Thomas Schwinge <thomas@codesourcery.com>
538
539 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
540 Evaluate 'finalize' individually for each entry.
541 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
542 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
543 file.
544
5452020-06-04 Thomas Schwinge <thomas@codesourcery.com>
546
547 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
548 usage.
549 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
550
5512020-06-04 Thomas Schwinge <thomas@codesourcery.com>
552 Julian Brown <julian@codesourcery.com>
553
554 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
555 checking.
556 (acc_unmap_data, goacc_exit_data_internal): Restore
557 'is_tgt_unmapped' checking.
558 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
559 file.
560 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
561 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
562 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
563 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
564 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
565 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
566
5672020-06-04 Thomas Schwinge <thomas@codesourcery.com>
568 Julian Brown <julian@codesourcery.com>
569
570 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
571
5722020-06-04 Thomas Schwinge <thomas@codesourcery.com>
573
574 PR libgomp/92854
575 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
576
5772020-06-04 Thomas Schwinge <thomas@codesourcery.com>
578
579 PR libgomp/92854
580 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
581 more.
582
5832020-06-04 Thomas Schwinge <thomas@codesourcery.com>
584 Julian Brown <julian@codesourcery.com>
585
586 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
587 'gomp_map_vars'.
588 (acc_map_data): Clean up accordingly.
589
5902020-06-04 Thomas Schwinge <thomas@codesourcery.com>
591
592 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
593 of over-eager 'finalize' clause.
594 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
595 file.
596 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
597 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
598 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
599 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
600 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
601 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
602 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
603 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
604
6052020-06-04 Thomas Schwinge <thomas@codesourcery.com>
606
607 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
608
6092020-06-04 Julian Brown <julian@codesourcery.com>
610
611 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
612 error path.
613 (goacc_detach_internal): Likewise.
614
6152020-06-04 Thomas Schwinge <thomas@codesourcery.com>
616
617 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
618 the checkpoint.
619 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
620 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
621 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
622 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
623 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
624
a9312a79
GA
6252020-06-02 Jakub Jelinek <jakub@redhat.com>
626
627 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
628 defined.
629
945b53cc
GA
6302020-05-30 Jakub Jelinek <jakub@redhat.com>
631
632 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
633
6342020-05-30 Jakub Jelinek <jakub@redhat.com>
635
636 * allocator.c (omp_alloc): For size == 0, return NULL early.
637
885ef72f
GA
6382020-05-29 H.J. Lu <hjl.tools@gmail.com>
639
640 PR bootstrap/95413
641 * configure: Regenerated.
642
8df7ee67
TK
6432020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
644
645 PR libfortran/95191
646 * testsuite/libgomp.fortran/async_io_9.f90: New test.
647
800bcc8c
JJ
6482020-05-19 Jakub Jelinek <jakub@redhat.com>
649
650 * omp.h.in (omp_uintptr_t): New typedef.
651 (__GOMP_UINTPTR_T_ENUM): Define.
652 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
653 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
654 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
655 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
656 omp_get_default_allocator, omp_alloc, omp_free): Declare.
657 * libgomp.h (struct gomp_team_state): Add def_allocator field.
658 (gomp_def_allocator): Declare.
659 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
660 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
661 omp_alloc and omp_free.
662 * team.c (gomp_team_start): Copy over ts.def_allocator.
663 * env.c (gomp_def_allocator): New variable.
664 (parse_wait_policy): Adjust function comment.
665 (parse_allocator): New function.
666 (handle_omp_display_env): Print OMP_ALLOCATOR.
667 (initialize_env): Call parse_allocator.
668 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
669 * allocator.c: New file.
670 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
671 functions.
672 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
673 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
674 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
675 * Makefile.in: Regenerated.
676
4c1a5d8b
L
6772020-05-15 H.J. Lu <hongjiu.lu@intel.com>
678
679 PR bootstrap/95147
680 * configure: Regenerated.
681
cdc34b50
TK
6822020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
683
684 PR libfortran/95119
685 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
686
6872020-05-14 H.J. Lu <hongjiu.lu@intel.com>
688
689 * configure: Regenerated.
690
6912020-05-14 Jakub Jelinek <jakub@redhat.com>
692
693 * testsuite/libgomp.c-c++-common/target-40.c: New test.
694
f884bef2
TB
6952020-05-13 Tobias Burnus <tobias@codesourcery.com>
696
697 PR fortran/94690
698 * testsuite/libgomp.fortran/pr66199-3.f90: New.
699 * testsuite/libgomp.fortran/pr66199-4.f90: New.
700 * testsuite/libgomp.fortran/pr66199-5.f90: New.
701 * testsuite/libgomp.fortran/pr66199-6.f90: New.
702 * testsuite/libgomp.fortran/pr66199-7.f90: New.
703 * testsuite/libgomp.fortran/pr66199-8.f90: New.
704 * testsuite/libgomp.fortran/pr66199-9.f90: New.
705
dc703151
JJ
7062020-05-12 Jakub Jelinek <jakub@redhat.com>
707
708 * testsuite/libgomp.c/target-39.c: New test.
709
b9dc11b6
TS
7102020-04-29 Thomas Schwinge <thomas@codesourcery.com>
711
a5d0bc12
TS
712 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
713 * openacc.f90 (acc_device_current): Likewise.
714 * openacc.h (acc_device_current): Likewise.
715 * openacc_lib.h (acc_device_current): Likewise.
716
7f198924
TS
717 PR target/94282
718 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
719 'dg-allow-blank-lines-in-output'.
720
4912a04f
TS
721 * oacc-init.c (get_openacc_name): Handle 'gcn'.
722 * testsuite/lib/libgomp.exp
723 (offload_target_to_openacc_device_type) [amdgcn*]: Return
724 'radeon'. Adjust all users.
725 (check_effective_target_openacc_amdgcn_accel_present): Rename
726 to...
727 (check_effective_target_openacc_radeon_accel_present): ... this.
728 Adjust all users.
729 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
730 (check_effective_target_openacc_radeon_accel_selected): ... this.
731 Adjust all users.
732
b9dc11b6
TS
733 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
734 'dg-do run'.
735
966de09b
AS
7362020-04-23 Andrew Stubbs <ams@codesourcery.com>
737
738 PR other/94629
739
740 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
741 hsa_iterate_agents.
742 (GOMP_OFFLOAD_init_device): Check return values from both calls to
743 hsa_agent_iterate_regions.
744
3f5d94c1
TS
7452020-04-20 Thomas Schwinge <thomas@codesourcery.com>
746
747 PR middle-end/94635
748 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
749 run'.
750
85d8c05a
TB
7512020-04-20 Tobias Burnus <tobias@codesourcery.com>
752
753 PR middle-end/94120
754 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
755 test case.
756
af557050
TB
7572020-04-17 Tobias Burnus <tobias@codesourcery.com>
758
759 PR middle-end/94635
760 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
761
af4c9257
TS
7622020-04-13 Thomas Schwinge <thomas@codesourcery.com>
763
764 PR libgomp/92843
765 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
766 Rename to...
767 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
768 ... this.
769 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
770 Rename to...
771 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
772 ... this.
773 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
774 Rename to...
775 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
776 ... this.
777 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
778 Rename to...
779 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
780 ... this.
781 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
782 Rename to...
783 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
784 ... this.
785 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
786 Rename to...
787 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
788 ... this.
789 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
790 Rename to...
791 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
792 ... this.
793 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
794 Rename to...
795 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
796 ... this.
797 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
798 Rename to...
799 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
800 ... this.
801 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
802 Rename to...
803 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
804 ... this.
805 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
806 Rename to...
807 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
808 ... this.
809 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
810 Rename to...
811 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
812 ... this.
813 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
814 Rename to...
815 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
816 ... this.
817 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
818 Rename to...
819 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
820 ... this.
821 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
822 Rename to...
823 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
824 ... this.
825 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
826 Rename to...
827 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
828 ... this.
829
be9862dd
JB
8302020-04-10 Julian Brown <julian@codesourcery.com>
831 Thomas Schwinge <thomas@codesourcery.com>
832
833 PR libgomp/92843
834 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
835 New file.
836 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
837 Likewise.
838 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
839 Likewise.
840 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
841 Likewise.
842 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
843 Likewise.
844 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
845 Likewise.
846 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
847 Likewise.
848 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
849 Likewise.
850 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
851 Likewise.
852 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
853 Likewise.
854 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
855 Likewise.
856 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
857 Likewise.
858 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
859 Likewise.
860 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
861 Likewise.
862 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
863 Likewise.
864 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
865 Likewise.
866
6b816a5f
TS
8672020-04-10 Thomas Schwinge <thomas@codesourcery.com>
868
869 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
870 run'.
871
13e41d8b
TB
8722020-04-08 Tobias Burnus <tobias@codesourcery.com>
873
874 PR middle-end/94120
875 * libgomp.oacc-c++/declare-pr94120.C: New.
876
749bd22d
MR
8772020-04-06 Maciej W. Rozycki <macro@wdc.com>
878
879 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
880 files.
881 * configure: Regenerate.
882 * testsuite/libgomp-site-extra.exp.in: New file.
883 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
884 variable.
885 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
886 variable.
887 * testsuite/Makefile.in: Regenerate.
888
2b1e849b
TS
8892020-04-03 Thomas Schwinge <thomas@codesourcery.com>
890
891 PR tree-optimization/89713
892 PR c/94392
893 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
894 'bar.sync'.
895 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
896
689418b9
TB
8972020-03-31 Tobias Burnus <tobias@codesourcery.com>
898
899 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
900 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
901
c2211a60
TB
9022020-03-24 Tobias Burnus <tobias@codesourcery.com>
903
904 PR libgomp/81689
905 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
906
4897bb00
TB
9072020-03-20 Tobias Burnus <tobias@codesourcery.com>
908
909 PR libgomp/94251
910 * target.c (gomp_load_image_to_device): Fix link
911 variable handling.
912
02f7334a
JJ
9132020-03-19 Jakub Jelinek <jakub@redhat.com>
914
915 PR c++/93931
916 * testsuite/libgomp.c++/pr93931.C: New test.
917
bb83e069
TB
9182020-03-19 Tobias Burnus <tobias@codesourcery.com>
919
920 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
921 dg-allow-blank-lines-in-output.
922
26cbcfe5
TB
9232020-03-18 Julian Brown <julian@codesourcery.com>
924 Tobias Burnus <tobias@codesourcery.com>
925
926 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
927 it work concurrently.
928
4da92887
TB
9292020-03-18 Tobias Burnus <tobias@codesourcery.com>
930
931 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
932 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
933 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
934
9c3cdb43
JJ
9352020-03-14 Jakub Jelinek <jakub@redhat.com>
936
937 PR middle-end/93566
938 * testsuite/libgomp.c/pr93566.c: New test.
939
83d45e1d
FH
9402020-02-21 Frederik Harwath <frederik@codesourcery.com>
941
942 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
943 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
944 integer(acc_device_property) for the type of the return value of
945 acc_get_property.
946
8d1a1cb1
TB
9472020-02-19 Tobias Burnus <tobias@codesourcery.com>
948
949 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
950 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
951 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
952 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
953 (acc_set_device_num): Fix Fortran argument name, use same name for C.
954 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
955 corrections; add note about the previous interface and named constant.
956 (OpenACC library and environment variables): Fix two typos.
957 * openacc.f90: Use for all procedures the argument names from the spec
958 as for …_h they are user visible.
959 (openacc_kinds): Rename acc_device_property to
960 acc_device_property_kinds and change value to int32 ; and update users.
961 Re-add acc_device_property for for backward compatibility.
962 (acc_get_property_string_h): Clean up as acc_device_property_kind
963 changed.
964 (acc_get_property_h): Likewise and return c_size_t instead of
965 acc_device_property.
966 (openacc): Also export acc_device_property_kinds.
967 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
968 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
969 handling; check against /= 0 instead of == 1 to match C.
970 * openacc_lib.h: Use for all procedures the argument names from the spec
971 as for …_h they are user visible. Place !GCC$ into the first column to
972 be active also for fixed-form souce form.
973 (acc_device_current, acc_device_property_kind, acc_device_property,
974 acc_property_memory, acc_property_free_memory, acc_property_name,
975 acc_property_vendor, acc_property_driver): New named constants.
976 (acc_get_property, acc_get_property_string): New generic interface.
977
2d9eb4e4
FH
9782020-02-13 Frederik Harwath <frederik@codesourcery.com>
979
980 PR libgomp/93481
981 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
982 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
983 optional.
984 (gomp_target_task_fn): Assert "devicep->async_run_func".
985 (clear_unsupported_flags): New function to remove unsupported flags
986 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
987 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
988 * testsuite/libgomp.c/target-33.c:
989 Remove xfail for offload_target_nvptx.
990 * testsuite/libgomp.c/target-34.c: Likewise.
fd789c81
FH
991
9922020-02-10 Frederik Harwath <frederik@codesourcery.com>
993
994 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
995 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
996 * testsuite/libgomp.c/target-34.c: Likewise.
997 * testsuite/libgomp.c/target-link-1.c: Add xfail for
998 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
999
9bc3b95d
JJ
10002020-02-09 Jakub Jelinek <jakub@redhat.com>
1001
1002 * testsuite/libgomp.c/target-38.c: New test.
1003
cb3f0648
JJ
10042020-02-06 Jakub Jelinek <jakub@redhat.com>
1005
1006 PR libgomp/93515
1007 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
1008
91bc3c98
TB
10092020-02-05 Tobias Burnus <tobias@codesourcery.com>
1010
1011 * testsuite/lib/libgomp.exp
1012 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
1013 and not as 'source' argument to libgomp_target_compile.
1014
591f869a
AS
10152020-02-03 Andrew Stubbs <ams@codesourcery.com>
1016
1017 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
1018 (gcn_gfx801_s): Remove.
1019 (isa_hsa_name): Remove gfx801.
1020 (isa_gcc_name): Remove gfx801/carizzo.
1021 (isa_code): Remove gfx801.
1022
e464fc90
TB
10232020-02-03 Julian Brown <julian@codesourcery.com>
1024 Tobias Burnus <tobias@codesourcery.com>
1025
1026 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
1027 and *_finalize variants; document acc_attach and acc_detach; update
1028 references from OpenACC 2.0 to 2.6.
1029 * openacc.f90 (openacc_version): Update to 201711.
1030 * openacc_lib.h (openacc_version): Update to 201711.
1031 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
1032 openacc_version to 201711.
1033 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
1034
5a28e272
KCY
10352020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
1036
1037 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
1038 and vgpr_count fields.
1039 (struct kernel_info): Add a field for a hsa_kernel_description.
1040 (run_kernel): Reduce the number of threads/workers if the requested
1041 number would require too many VGPRs.
1042 (init_basic_kernel_info): Initialize description field with
1043 the hsa_kernel_description entry for the kernel.
1044
5ab5d81b
TB
10452020-01-29 Tobias Burnus <tobias@codesourcery.com>
1046
1047 PR bootstrap/93409
1048 * plugin/configfrag.ac (enable_offload_targets): Skip
1049 HSA and GCN plugin besides -m32 also for -mx32.
1050 * configure: Regenerate.
1051
989a5fb3
FH
10522020-01-29 Frederik Harwath <frederik@codesourcery.com>
1053
1054 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
2e5ea579
FH
1055
10562020-01-29 Frederik Harwath <frederik@codesourcery.com>
1057
1058 * plugin-gcn.c (struct agent_info): Add fields "name" and
1059 "vendor_name" ...
1060 (GOMP_OFFLOAD_init_device): ... and init from here.
1061 (struct hsa_context_info): Add field "driver_version_s" ...
1062 (init_hsa_contest): ... and init from here.
1063 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
1064 implementation.
1065 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
1066 Enable test execution for amdgcn and host offloading targets.
1067 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
1068 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
1069 (expect_device_properties): Split function into ...
1070 (expect_device_string_properties): ... this new function ...
1071 (expect_device_memory): ... and this new function.
1072 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
1073 Add test.
1074
278c3214
JB
10752020-01-28 Julian Brown <julian@codesourcery.com>
1076
1077 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
1078 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
1079 component/non-component variable refs in a single directive.
1080 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
1081
e8e66971
MR
10822020-01-24 Maciej W. Rozycki <macro@wdc.com>
1083
1084 * configure.ac: Handle `--with-toolexeclibdir='.
1085 * Makefile.in: Regenerate.
1086 * aclocal.m4: Regenerate.
1087 * configure: Regenerate.
1088 * testsuite/Makefile.in: Regenerate.
1089
9e424d97
FH
10902020-01-24 Frederik Harwath <frederik@codesourcery.com>
1091
1092 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
1093 (expect_device_properties): Remove "expected_free_mem" argument,
1094 change "expected_total_mem" argument type to size_t;
1095 change types of acc_get_property results to size_t,
1096 adapt format strings.
1097 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
1098 Use %zu instead of %zd to print size_t values.
1099 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
1100 rename to ...
1101 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
1102 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
1103 rename to ...
1104 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
1105
14e5e746
AS
11062020-01-23 Andrew Stubbs <ams@codesourcery.com>
1107
1108 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
1109 the device id.
1110
09e0ad62
AS
11112020-01-20 Andrew Stubbs <ams@codesourcery.com>
1112
1113 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
1114 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
1115 Adjust test dimensions for amdgcn.
1116 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
1117 gang/worker/vector expectations dynamically.
1118 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
1119 (main): Likewise.
1120 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
1121 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
1122 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
1123 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
1124 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
1125 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
1126 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
1127 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
1128 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
1129 (acc_gang): Recognise acc_device_radeon.
1130 (acc_worker): Likewise.
1131 (acc_vector): Likewise.
1132 (main): Set expectations for amdgcn.
1133 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
1134 (main): Adjust gang/worker/vector expectations dynamically.
1135 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
1136 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
1137 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
1138 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
1139 for amdgcn.
1140
6687d13a
AS
11412020-01-17 Andrew Stubbs <ams@codesourcery.com>
1142
1143 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
1144 acc_device_radeon.
1145 (openacc): Likewise.
1146 * openacc.f90 (openacc_kinds): Likewise.
1147 (openacc): Likewise.
1148 * openacc.h (acc_device_t): Likewise.
1149 * openacc_lib.h: Likewise.
1150 * testsuite/lib/libgomp.exp
1151 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
1152 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
1153 (cb_compute_construct_end): Likewise.
1154 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
1155 (cb_enqueue_launch_start): Likewise.
1156 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
1157 (cb_enter_data_end): Likewise.
1158 (cb_exit_data_start): Likewise.
1159 (cb_exit_data_end): Likewise.
1160 (cb_compute_construct_end): Likewise.
1161 (cb_enqueue_launch_start): Likewise.
1162 (cb_enqueue_launch_end): Likewise.
1163 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
1164 (main): Likewise.
1165
b3b75e66
TS
11662020-01-10 Thomas Schwinge <thomas@codesourcery.com>
1167
6fc0385c
TS
1168 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
1169 to use this instead of 'enum gomp_device_property'.
1170 (GOMP_OFFLOAD_get_property): Rename to...
1171 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
1172 * libgomp.h (struct gomp_device_descr): Move
1173 'GOMP_OFFLOAD_openacc_get_property'...
1174 (struct acc_dispatch_t): ... here. Adjust all users.
1175 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
1176
b3b75e66
TS
1177 * target.c (gomp_map_vars_internal)
1178 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
1179 paths.
1180
91df4397
JJ
11812020-01-10 Jakub Jelinek <jakub@redhat.com>
1182
1183 PR libgomp/93219
1184 * libgomp.h (gomp_print_string): Change return type from void to int.
1185 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
1186 not all characters have been written.
1187
df2c0d36
TB
11882020-01-08 Tobias Burnus <tobias@codesourcery.com>
1189
1190 * libgomp.texi: Fix typos, use https.
1191
f760c0c7
TB
11922020-01-03 Tobias Burnus <tobias@codesourcery.com>
1193
1194 * testsuite/libgomp.fortran/optional-map.f90: Add test for
1195 unallocated/disassociated actual arguments to nonallocatable/nonpointer
1196 dummy arguments; those are/shall be regarded as absent arguments.
1197 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
1198 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
1199
7e7065b9
JJ
12002020-01-01 Jakub Jelinek <jakub@redhat.com>
1201
8d9254fc
JJ
1202 Update copyright years.
1203
7e7065b9
JJ
1204 * libgomp.texi: Bump @copying's copyright year.
1205
2c829799
AM
12062019-12-31 Ayush Mittal <ayush.m@samsung.com>
1207
1208 PR libgomp/93065
1209 * oacc-init.c (goacc_runtime_deinitialize): New function.
1210
e9dcb75e
JJ
12112019-12-28 Jakub Jelinek <jakub@redhat.com>
1212
1213 PR bootstrap/93074
1214 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
1215 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
1216
6c84c8bf
MR
12172019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
1218 Frederik Harwath <frederik@codesourcery.com>
1219 Thomas Schwinge <tschwinge@codesourcery.com>
1220
1221 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
1222 * libgomp-plugin.h (gomp_device_property_value): New union.
1223 (gomp_device_property_value): New prototype.
1224 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
1225 constant.
1226 (acc_device_property_t): New enum.
1227 (acc_get_property, acc_get_property_string): New prototypes.
1228 * oacc-init.c (acc_get_device_type): Also assert that result
1229 is not `acc_device_current'.
1230 (get_property_any, acc_get_property, acc_get_property_string):
1231 New functions.
1232 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
1233 `acc_property_memory', `acc_property_free_memory',
1234 `acc_property_name', `acc_property_vendor' and
1235 `acc_property_driver' constants. Add `acc_device_property' data
1236 type.
1237 (openacc_internal): Add `acc_get_property' and
1238 `acc_get_property_string' interfaces. Add `acc_get_property_h',
1239 `acc_get_property_string_h', `acc_get_property_l' and
1240 `acc_get_property_string_l'.
1241 * oacc-host.c (host_get_property): New function.
1242 (host_dispatch): Wire it.
1243 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
1244 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
1245 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
1246 * libgomp.texi (OpenACC Runtime Library Routines): Add
1247 `acc_get_property'.
1248 (acc_get_property): New node.
1249 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
1250 function (stub).
1251 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
1252 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
1253 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
1254 calls.
1255 (GOMP_OFFLOAD_get_property): New function.
1256 (struct ptx_device): Add new field "name".
1257 (cuda_driver_version_s): Add new static variable ...
1258 (nvptx_init): ... and init from here.
1259
1260 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
1261 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
1262 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
1263 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
1264 with test helper functions.
1265
1266 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
1267
c8e759b4
MR
12682019-12-22 Maciej W. Rozycki <macro@wdc.com>
1269
1270 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
1271 variable.
1272
b092fb3b
TS
12732019-12-21 Thomas Schwinge <thomas@codesourcery.com>
1274
1275 * target.c (gomp_map_vars_internal): Restore 'omp declare target
1276 link' handling.
1277
9be3ac5d
JB
12782019-12-19 Julian Brown <julian@codesourcery.com>
1279
1280 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
1281 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
1282 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
1283
02817027
JB
12842019-12-19 Julian Brown <julian@codesourcery.com>
1285 Cesar Philippidis <cesar@codesourcery.com>
1286
1287 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
1288 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
1289 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
1290 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
1291 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
1292 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
1293 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
1294 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
1295 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
1296 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
1297 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
1298 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
1299 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
1300
c2eb021f
JB
13012019-12-19 Julian Brown <julian@codesourcery.com>
1302
1303 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
1304 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
1305 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
1306 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
1307 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
1308 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
1309 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
1310 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
1311 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
1312 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
1313 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
1314 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
1315
8e7e71ff
JB
13162019-12-19 Julian Brown <julian@codesourcery.com>
1317
1318 * libgomp.h (struct target_var_desc): Add do_detach flag.
1319 * oacc-init.c (acc_shutdown_1): Free aux block if present.
1320 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
1321 struct components. Tidy up and add some new checks.
1322 (goacc_enter_data_internal): Update call to find_group_last.
1323 (goacc_exit_data_internal): Support detach operations and
1324 GOMP_MAP_STRUCT.
1325 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
1326 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
1327 attach/detach in enter/exit data detection code.
1328 * target.c (gomp_map_vars_existing): Initialise do_detach field of
1329 tgt_var_desc.
1330 (gomp_map_vars_internal): Support attach.
1331 (gomp_unmap_vars_internal): Support detach.
1332
5d5be7bf
JB
13332019-12-19 Julian Brown <julian@codesourcery.com>
1334 Thomas Schwinge <thomas@codesourcery.com>
1335
1336 * libgomp.h (struct splay_tree_aux): Add attach_count field.
1337 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
1338 * libgomp.map (OACC_2.6): New section. Add acc_attach,
1339 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
1340 acc_detach_finalize_async.
1341 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
1342 acc_detach, acc_detach_async, acc_detach_finalize,
1343 acc_detach_finalize_async): New functions.
1344 * openacc.h (acc_attach, acc_attach_async, acc_detach,
1345 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
1346 prototypes.
1347 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
1348 (gomp_remove_var_internal): Free attachment counts if present.
1349 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
1350 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
1351
5bcd470b
JB
13522019-12-19 Julian Brown <julian@codesourcery.com>
1353 Cesar Philippidis <cesar@codesourcery.com>
1354
1355 * libgomp.h (gomp_map_val): Add prototype.
1356 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
1357 open-coding device-address calculation.
1358 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
1359 non-present case.
1360
378da98f
JB
13612019-12-19 Julian Brown <julian@codesourcery.com>
1362
1363 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
1364 field for virtual_refcount.
1365 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
1366 (gomp_free_memmap): Remove prototype.
1367 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
1368 instead of calling gomp_free_memmap.
1369 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
1370 dynamic_refcount.
1371 (acc_unmap_data): Open code instead of forcing target_mem_desc's
1372 to_free field to NULL then calling gomp_unmap_vars. Handle
1373 REFCOUNT_INFINITY on target blocks.
1374 (goacc_enter_data): Rename to...
1375 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
1376 handling for mapping groups. Use virtual_refcount instead of
1377 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
1378 map_map_vars_async call. Re-do lookup for target pointer return value.
1379 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
1380 renamed goacc_enter_datum function.
1381 (goacc_exit_data): Rename to...
1382 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
1383 (acc_delete, acc_delete_async, acc_delete_finalize,
1384 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
1385 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
1386 goacc_exit_datum function.
1387 (gomp_acc_remove_pointer, find_pointer): Remove functions.
1388 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
1389 New functions.
1390 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
1391 goacc_exit_data_internal helper functions.
1392 * target.c (gomp_map_vars_internal): Handle
1393 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
1394 semantics.
1395 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
1396 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
1397 virtual_refcount field instead of dynamic_refcount.
1398 (gomp_free_memmap): Remove function.
1399 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
1400 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
1401 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
1402
2a656a93
JB
14032019-12-19 Julian Brown <julian@codesourcery.com>
1404 Thomas Schwinge <thomas@codesourcery.com>
1405
1406 * libgomp.h (struct splay_tree_aux): New.
1407 (struct splay_tree_key_s): Replace link_key field with aux pointer.
1408 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
1409 to aux struct.
1410 (gomp_remove_var_internal): Free aux block if present.
1411 (gomp_load_image_to_device): Zero-initialise aux field instead of
1412 link_key field.
1413 (omp_target_associate_pointer): Zero-initialise aux field.
1414
601399c0
JJ
14152019-12-18 Jakub Jelinek <jakub@redhat.com>
1416
1417 PR middle-end/86416
1418 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
1419 q or none.
1420 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
1421 L or none.
1422
a6163563
JB
14232019-12-19 Julian Brown <julian@codesourcery.com>
1424 Maciej W. Rozycki <macro@codesourcery.com>
1425 Tobias Burnus <tobias@codesourcery.com>
1426 Thomas Schwinge <thomas@codesourcery.com>
1427
1428 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
1429 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
1430 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
1431 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
1432 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
1433 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
1434 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
1435 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
1436 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
1437
6278b549
TS
14382019-12-18 Thomas Schwinge <thomas@codesourcery.com>
1439
77ce5555
TS
1440 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
1441 called...
1442 (goacc_insert_pointer): ... from here, "present" case.
1443 (goacc_insert_pointer): Inline function into...
1444 (GOACC_enter_exit_data): ... here, and simplify.
1445
9444a299
TS
1446 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
1447 called...
1448 (goacc_insert_pointer): ... from here, "not present" case.
1449
5031b619
TS
1450 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
1451 all users.
1452
1a79b578
TS
1453 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
1454 'goacc_enter_data', 'goacc_exit_data'.
1455
34cfe31e
TS
1456 * oacc-mem.c (delete_copyout): Refactor into...
1457 (goacc_exit_data): ... this. Adjust all users.
1458
aaf0e9d7
TS
1459 * oacc-mem.c (present_create_copy): Refactor into...
1460 (goacc_enter_data): ... this. Adjust all users.
1461
83d1d065
TS
1462 * target.c (gomp_unmap_vars_internal): Add a safeguard to
1463 'gomp_remove_var'.
1464
cc3f11f5
TS
1465 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
1466 like 'GOMP_MAP_FROM'.
1467
ddb25eb9
TS
1468 PR libgomp/92726
1469 PR libgomp/92970
1470 PR libgomp/92984
1471 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
1472 fails.
1473 (GOACC_enter_exit_data): Simplify accordingly.
1474 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
1475 subsuming...
1476 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
1477 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
1478 file.
1479 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
1480 subsuming...
1481 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
1482 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
1483 file.
1484 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
1485 subsuming...
1486 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
1487
32128577
TS
1488 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
1489 'finalize' handling.
1490
ba40277f
TS
1491 PR libgomp/92848
1492 * oacc-mem.c (acc_map_data, present_create_copy)
1493 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
1494 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
1495 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
1496 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
1497 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
1498 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
1499 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
1500 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
1501 Remove "XFAIL"s.
1502
6278b549
TS
1503 * target.c (gomp_unmap_tgt): Make it 'static'.
1504 * libgomp.h (gomp_unmap_tgt): Remove.
1505
c80c9e26
TB
15062019-12-18 Tobias Burnus <tobias@codesourcery.com>
1507
1508 PR middle-end/86416
1509 * testsuite/libgomp.c/pr86416-1.c: New.
1510 * testsuite/libgomp.c/pr86416-2.c: New.
1511
0b8499a4
TB
15122019-12-17 Tobias Burnus <tobias@codesourcery.com>
1513
1514 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
1515 all symbols as public except for the 'use …, only' imported symbol,
1516 which is private.
1517 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
1518 all symbols from module openacc_kinds as PUBLIC
1519 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
1520 fix comment typo.
1521 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
1522
1cbd94e8
JB
15232019-12-13 Julian Brown <julian@codesourcery.com>
1524
1525 PR libgomp/92881
1526
1527 * libgomp.h (gomp_remove_var_async): Add prototype.
1528 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
1529 gomp_remove_var.
1530 * target.c (gomp_unref_tgt): Change return type to bool, indicating
1531 whether target_mem_desc was unmapped.
1532 (gomp_unref_tgt_void): New.
1533 (gomp_remove_var): Reimplement in terms of...
1534 (gomp_remove_var_internal): ...this new helper function.
1535 (gomp_remove_var_async): New, implemented using above helper function.
1536 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
1537 gomp_unref_tgt.
1538
26b74ed0
AS
15392019-12-13 Andrew Stubbs <ams@codesourcery.com>
1540
1541 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
1542 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
1543 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
1544 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
1545 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
1546 Likewise.
1547 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
1548 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
1549
7858bb96
TB
15502019-12-13 Tobias Burnus <tobias@codesourcery.com>
1551
1552 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
1553 as public except for the 'use …, only' imported symbol, which is
1554 private.
1555 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
1556 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
1557 attributes for acc_copyout_finalize and acc_delete_finalize.
1558
f8ac7d8f
JJ
15592019-12-11 Jakub Jelinek <jakub@redhat.com>
1560
1561 PR fortran/92899
1562 * testsuite/libgomp.fortran/atomic1.f90: New test.
1563
3d1b5e71
TS
15642019-12-11 Thomas Schwinge <thomas@codesourcery.com>
1565
d6e8c01c
TS
1566 PR libgomp/92843
1567 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
1568 reference counting for structured 'REFCOUNT_INFINITY'. Add some
1569 assertions.
1570 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
1571 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
1572 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
1573 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
1574 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
1575
57963e39
TS
1576 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
1577 * oacc-mem.c: ... here.
1578 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
1579 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
1580 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
1581 Remove.
1582 * libgomp_g.h: Update.
1583
c5578b56
TS
1584 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
1585 * oacc-async.c: ... here.
1586 * oacc-int.h (goacc_wait): Declare.
1587 * libgomp_g.h: Update
1588
3d1b5e71
TS
1589 PR libgomp/92854
1590 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
1591 New file.
1592 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
1593 Likewise.
1594 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
1595 Likewise.
1596 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
1597 Likewise.
1598 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
1599 Likewise.
1600 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
1601 Likewise.
1602
5e939438
TS
16032019-12-11 Thomas Schwinge <thomas@codesourcery.com>
1604 Julian Brown <julian@codesourcery.com>
1605
1606 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
1607 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
1608
93d90219
TB
16092019-12-11 Tobias Burnus <tobias@codesourcery.com>
1610
1611 * omp_lib.h.in: Fix spelling of function declaration
1612 omp_get_cancell(l)ation.
1613 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
1614 Fix typos.
1615 * env.c: Fix comment typos.
1616 * oacc-host.c: Likewise.
1617 * ordered.c: Likewise.
1618 * task.c: Likewise.
1619 * team.c: Likewise.
1620 * config/gcn/task.c: Likewise.
1621 * config/gcn/team.c: Likewise.
1622 * config/nvptx/task.c: Likewise.
1623 * config/nvptx/team.c: Likewise.
1624 * plugin/plugin-gcn.c: Likewise.
1625 * testsuite/libgomp.fortran/jacobi.f: Likewise.
1626 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
1627 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
1628
a0221aee
TB
16292019-12-11 Tobias Burnus <tobias@codesourcery.com>
1630
1631 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
1632 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
1633 unnecessary 'dg-additional-options "-w"'.
1634
47afc7b4
TS
16352019-12-09 Thomas Schwinge <thomas@codesourcery.com>
1636 Julian Brown <julian@codesourcery.com>
1637
1638 PR libgomp/92116
1639 PR libgomp/92877
1640
1641 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
1642 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
1643 Adjust all users.
1644 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
1645 Remove XFAIL.
1646 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
1647 Likewise.
1648 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
1649
b5859e40
TS
16502019-12-09 Thomas Schwinge <thomas@codesourcery.com>
1651
cec41816
TS
1652 PR libgomp/92503
1653 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
1654 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
1655 file.
1656 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
1657 Likewise.
1658 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
1659 Likewise.
1660 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
1661 Likewise.
1662 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
1663 Likewise.
1664 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
1665 Likewise.
1666 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
1667 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
1668 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
1669 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
1670 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
1671 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
1672 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
1673 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
1674 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
1675 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
1676
e103542b
TS
1677 PR libgomp/92840
1678 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
1679 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
1680 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
1681 New file.
1682 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
1683 Likewise.
1684 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
1685 Likewise.
1686 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
1687 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
1688
41f36f22
TS
1689 PR libgomp/92511
1690 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
1691 this file...
1692 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
1693 this file...
1694 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
1695 file...
1696 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
1697 file...
1698 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
1699 ... with their content moved into, and extended in this new file.
1700 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
1701 New file.
1702 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
1703 Likewise.
1704 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
1705 Likewise.
1706 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
1707 Likewise.
1708
6effebe1
TS
1709 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
1710
7d020473
TS
1711 PR libgomp/92854
1712 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
1713
1e1fb715
TS
1714 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
1715
b5859e40
TS
1716 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
1717
11586ed9
TB
17182019-12-09 Tobias Burnus <tobias@codesourcery.com>
1719
1720 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
1721 unique.
1722 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
1723 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
1724 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
1725 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
1726 Ditto.
1727 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
1728 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
1729
3ad4a03a
KCY
17302019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
1731
1732 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
1733
6e4d01d6
TB
17342019-12-06 Tobias Burnus <tobias@codesourcery.com>
1735 Kwok Cheung Yeung <kcy@codesourcery.com>
1736
1737 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
1738 if input it a NULL pointer.
1739 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
1740 diagnostic of NULL pointer.
1741 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
1742 * testsuite/libgomp.fortran/optional-map.f90: New.
1743 * testsuite/libgomp.fortran/use_device_addr-1.f90
1744 (test_dummy_opt_callee_1_absent): New.
1745 (test_dummy_opt_call_1): Call it.
1746 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
1747 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
1748 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
1749 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
1750 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
1751 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
1752 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
1753 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
1754 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
1755 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
1756 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
1757 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
1758 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
1759 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
1760 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
1761 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
1762
ad80ec46
TB
17632019-12-05 Tobias Burnus <tobias@codesourcery.com>
1764
1765 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
1766 expect dg-output of 'Error termination.' for GCN.
1767 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
1768 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
1769
a8a5f4cc
JJ
17702019-12-04 Jakub Jelinek <jakub@redhat.com>
1771
1772 PR fortran/92756
1773 * testsuite/libgomp.fortran/teams1.f90: New test.
1774 * testsuite/libgomp.fortran/teams2.f90: New test.
1775
d8f0024b
FH
17762019-12-03 Frederik Harwath <frederik@codesourcery.com>
1777
1778 * oacc-init.c (acc_known_device_type): Add function.
1779 (unknown_device_type_error): Add function.
1780 (name_of_acc_device_t): Change to call unknown_device_type_error
1781 on unknown type.
1782 (resolve_device): Use acc_known_device_type.
1783 (acc_init): Fail if acc_device_t argument is not valid.
1784 (acc_shutdown): Likewise.
1785 (acc_get_num_devices): Likewise.
1786 (acc_set_device_type): Likewise.
1787 (acc_get_device_num): Likewise.
1788 (acc_set_device_num): Likewise.
1789 (acc_on_device): Add comment that argument validity is not checked.
1790
83caa34e
AS
17912019-12-03 Andrew Stubbs <ams@codesourcery.com>
1792
1793 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
1794 Recognize amdgcn.
1795 (check_effective_target_openacc_amdgcn_accel_present): New proc.
1796 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
1797 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
1798 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1799 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1800
00484365
SN
18012019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1802
1803 PR libgomp/91938
1804 * configure.tgt: Avoid IE tls on *-*-musl*.
1805
9909a059
TB
18062019-11-29 Tobias Burnus <tobias@codesourcery.com>
1807
1808 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
1809 adding a common-block test case.
1810
b3f44388
JJ
18112019-11-29 Jakub Jelinek <jakub@redhat.com>
1812
1813 PR c++/60228
1814 * testsuite/libgomp.c++/udr-20.C: New test.
1815 * testsuite/libgomp.c++/udr-21.C: New test.
1816
b1a73b48
TS
18172019-11-27 Thomas Schwinge <thomas@codesourcery.com>
1818
1819 * testsuite/lib/libgomp.exp
1820 (check_effective_target_offload_target_nvptx): New proc.
1821 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
1822 'dg-skip-if'.
1823 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
1824 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
1825 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
1826
b8e72446
RO
18272019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1828
1829 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
1830 * testsuite/libgomp.c/pr39591-2.c: Likewise.
1831 * testsuite/libgomp.c/pr39591-3.c: Likewise.
1832 * testsuite/libgomp.c/private-1.c: Likewise.
1833 * testsuite/libgomp.c/task-1.c: Likewise.
1834 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
1835
d88b27da
JB
18362019-11-20 Julian Brown <julian@codesourcery.com>
1837
1838 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
1839 aq->mutex here.
1840 (queue_push_launch): Lock aq->mutex before calling
1841 wait_for_queue_nonfull.
1842 (queue_push_callback): Likewise.
1843 (queue_push_asyncwait): Likewise.
1844 (queue_push_placeholder): Likewise.
1845
8d2f4ddf
JB
18462019-11-20 Julian Brown <julian@codesourcery.com>
1847
1848 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
1849 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
1850 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
1851 return code.
1852
e307b05f
JB
18532019-11-20 Julian Brown <julian@codesourcery.com>
1854
1855 PR libgomp/92511
1856
1857 * oacc-mem.c (present_create_copy): Fix device pointer return value in
1858 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
1859 in non-present/create case.
1860 (delete_copyout): Change error condition to fail only on copies outside
1861 of mapped block. Adjust error message accordingly.
1862 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
1863 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
1864 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
1865 message.
1866 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
1867 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
1868 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
1869
83115e9e
MR
18702019-11-20 Maciej W. Rozycki <macro@wdc.com>
1871
1872 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
1873 libatomic in build-tree testing.
1874
a1289887
MR
18752019-11-18 Maciej W. Rozycki <macro@wdc.com>
1876
1877 * testsuite/Makefile.in: Regenerate.
1878
8916ba87
AS
18792019-11-15 Andrew Stubbs <ams@codesourcery.com>
1880
1881 * testsuite/libgomp.c/target-print-1.c: New file.
1882 * testsuite/libgomp.fortran/target-print-1.f90: New file.
1883 * testsuite/libgomp.oacc-c/print-1.c: New file.
1884 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
1885
237957cc
AS
18862019-11-13 Andrew Stubbs <ams@codesourcery.com>
1887 Kwok Cheung Yeung <kcy@codesourcery.com>
1888 Julian Brown <julian@codesourcery.com>
1889 Tom de Vries <tom@codesourcery.com>
1890
1891 * plugin/Makefrag.am: Add amdgcn plugin support.
1892 * plugin/configfrag.ac: Likewise.
1893 * plugin/plugin-gcn.c: New file.
1894 * configure: Regenerate.
1895 * Makefile.in: Regenerate.
1896 * testsuite/Makefile.in: Regenerate.
1897
cee16451
AS
18982019-11-13 Andrew Stubbs <ams@codesourcery.com>
1899
1900 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
1901 and use team_malloc variants.
1902 (gomp_gcn_exit_kernel): Use team_free.
1903 * libgomp.h (TEAM_ARENA_SIZE): Define.
1904 (TEAM_ARENA_START): Define.
1905 (TEAM_ARENA_FREE): Define.
1906 (TEAM_ARENA_END): Define.
1907 (team_malloc): New function.
1908 (team_malloc_cleared): New function.
1909 (team_free): New function.
1910 * team.c (gomp_new_team): Initialize and use team_malloc.
1911 (free_team): Use team_free.
1912 (gomp_free_thread): Use team_free.
1913 (gomp_pause_host): Use team_free.
1914 * work.c (gomp_init_work_share): Use team_malloc.
1915 (gomp_fini_work_share): Use team_free.
1916
fa499995
AS
19172019-11-13 Andrew Stubbs <ams@codesourcery.com>
1918 Kwok Cheung Yeung <kcy@codesourcery.com>
1919 Julian Brown <julian@codesourcery.com>
1920 Tom de Vries <tom@codesourcery.com>
1921
1922 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
1923 * Makefile.in: Regenerate.
1924 * config.h.in (PLUGIN_GCN): Add new undef.
1925 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
1926 * config/gcn/affinity-fmt.c: New file.
1927 * config/gcn/bar.c: New file.
1928 * config/gcn/bar.h: New file.
1929 * config/gcn/doacross.h: New file.
1930 * config/gcn/icv-device.c: New file.
1931 * config/gcn/oacc-target.c: New file.
1932 * config/gcn/simple-bar.h: New file.
1933 * config/gcn/target.c: New file.
1934 * config/gcn/task.c: New file.
1935 * config/gcn/team.c: New file.
1936 * config/gcn/time.c: New file.
1937 * configure.ac: Add amdgcn*-*-*.
1938 * configure: Regenerate.
1939 * configure.tgt: Add amdgcn*-*-*.
1940 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
1941 * libgomp.h (gcn_thrs): Add amdgcn variant.
1942 (set_gcn_thrs): Likewise.
1943 (gomp_thread): Likewise.
1944 * oacc-int.h (goacc_thread): Likewise.
1945 * oacc-target.c: New file.
1946 * openacc.f90 (acc_device_gcn): New parameter.
1947 * openacc.h (acc_device_t): Add acc_device_gcn.
1948 * team.c (gomp_free_pool_helper): Add amdgcn support.
1949
d2903ce0
AS
19502019-11-13 Andrew Stubbs <ams@codesourcery.com>
1951 Julian Brown <julian@codesourcery.com>
1952
1953 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
1954 parameter.
1955 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
1956 queue constructor.
1957 * oacc-host.c (host_openacc_async_construct): Add device parameter.
1958 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
1959 device parameter.
1960
b3d14b3a
AS
19612019-11-13 Andrew Stubbs <ams@codesourcery.com>
1962
1963 * configure.tgt (nvptx*-*-*): Add "accel" directory.
1964 * config/nvptx/libgomp-plugin.c: Move ...
1965 * config/accel/libgomp-plugin.c: ... to here.
1966 * config/nvptx/lock.c: Move ...
1967 * config/accel/lock.c: ... to here.
1968 * config/nvptx/mutex.c: Move ...
1969 * config/accel/mutex.c: ... to here.
1970 * config/nvptx/mutex.h: Move ...
1971 * config/accel/mutex.h: ... to here.
1972 * config/nvptx/oacc-async.c: Move ...
1973 * config/accel/oacc-async.c: ... to here.
1974 * config/nvptx/oacc-cuda.c: Move ...
1975 * config/accel/oacc-cuda.c: ... to here.
1976 * config/nvptx/oacc-host.c: Move ...
1977 * config/accel/oacc-host.c: ... to here.
1978 * config/nvptx/oacc-init.c: Move ...
1979 * config/accel/oacc-init.c: ... to here.
1980 * config/nvptx/oacc-mem.c: Move ...
1981 * config/accel/oacc-mem.c: ... to here.
1982 * config/nvptx/oacc-plugin.c: Move ...
1983 * config/accel/oacc-plugin.c: ... to here.
1984 * config/nvptx/omp-lock.h: Move ...
1985 * config/accel/omp-lock.h: ... to here.
1986 * config/nvptx/openacc.f90: Move ...
1987 * config/accel/openacc.f90: ... to here.
1988 * config/nvptx/pool.h: Move ...
1989 * config/accel/pool.h: ... to here.
1990 * config/nvptx/proc.c: Move ...
1991 * config/accel/proc.c: ... to here.
1992 * config/nvptx/ptrlock.c: Move ...
1993 * config/accel/ptrlock.c: ... to here.
1994 * config/nvptx/ptrlock.h: Move ...
1995 * config/accel/ptrlock.h: ... to here.
1996 * config/nvptx/sem.c: Move ...
1997 * config/accel/sem.c: ... to here.
1998 * config/nvptx/sem.h: Move ...
1999 * config/accel/sem.h: ... to here.
2000 * config/nvptx/thread-stacksize.h: Move ...
2001 * config/accel/thread-stacksize.h: ... to here.
2002
62aee289
MR
20032019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
2004 Tobias Burnus <tobias@codesourcery.com>
2005 Frederik Harwath <frederik@codesourcery.com>
2006 Thomas Schwinge <thomas@codesourcery.com>
2007
2008 libgomp/
2009 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
2010 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
2011 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
2012
a2c26c50
TB
20132019-11-11 Tobias Burnus <tobias@codesourcery.com>
2014 Kwok Cheung Yeung <kcy@codesourcery.com>
2015
2016 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
2017 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
2018
6d4868f3
TS
20192019-11-11 Thomas Schwinge <thomas@codesourcery.com>
2020
bfa1837b
TS
2021 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
2022
6d4868f3
TS
2023 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
2024 run'.
2025 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
2026 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
2027
5d183d17
FH
20282019-11-06 Thomas Schwinge <thomas@codesourcery.com>
2029
2030 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
2031 Add expected warnings about missing reduction clauses.
2032 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
2033 Likewise.
2034 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
2035 Likewise.
2036 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
2037 Likewise.
2038
d8f03b03
TB
20392019-11-04 Tobias Burnus <tobias@codesourcery.com>
2040
2041 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
2042 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
2043 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
2044 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
2045 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
2046 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
2047
12fd2ec5
TB
20482019-11-04 Tobias Burnus <tobias@codesourcery.com>
2049
2050 PR fortran/92305
2051 * testsuite/libgomp.fortran/allocatable2.f90: Use
2052 unique numbers with 'stop'.
2053 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
2054 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
2055 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
2056 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
2057 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
2058
92e63bd2
TB
20592019-11-01 Tobias Burnus <tobias@codesourcery.com>
2060
2061 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
2062 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
2063 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
2064 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
2065 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
2066 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
2067
91ae0a46
TB
20682019-10-30 Tobias Burnus <tobias@codesourcery.com>
2069
2070 * testsuite/libgomp.fortran/target9.f90: New.
2071
c425e66b
TB
20722019-10-30 Tobias Burnus <tobias@codesourcery.com>
2073
2074 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
2075 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
2076 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
2077 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
2078 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
2079 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
2080 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
2081 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
2082 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
2083 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
2084 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
2085 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
2086 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
2087 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
2088 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
2089 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
2090 * testsuite/libgomp.fortran/associate1.f90: Ditto.
2091 * testsuite/libgomp.fortran/associate2.f90: Ditto.
2092 * testsuite/libgomp.fortran/associate3.f90: Ditto.
2093 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
2094 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
2095 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
2096 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
2097 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
2098 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
2099 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
2100 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
2101 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
2102 * testsuite/libgomp.fortran/character1.f90: Ditto.
2103 * testsuite/libgomp.fortran/character2.f90: Ditto.
2104 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
2105 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
2106 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
2107 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
2108 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
2109 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
2110 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
2111 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
2112 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
2113 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
2114 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
2115 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
2116 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
2117 * testsuite/libgomp.fortran/do1.f90: Ditto.
2118 * testsuite/libgomp.fortran/do2.f90: Ditto.
2119 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
2120 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
2121 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
2122 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
2123 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
2124 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
2125 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
2126 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
2127 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
2128 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
2129 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
2130 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
2131 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
2132 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
2133 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
2134 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
2135 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
2136 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
2137 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
2138 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
2139 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
2140 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
2141 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
2142 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
2143 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
2144 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
2145 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
2146 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
2147 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
2148 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
2149 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
2150 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
2151 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
2152 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
2153 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
2154 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
2155 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
2156 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
2157 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
2158 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
2159 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
2160 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
2161 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
2162 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
2163 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
2164 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
2165 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
2166 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
2167 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
2168 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
2169 * testsuite/libgomp.fortran/lib1.f90: Ditto.
2170 * testsuite/libgomp.fortran/lib4.f90: Ditto.
2171 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
2172 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
2173 * testsuite/libgomp.fortran/nested1.f90: Ditto.
2174 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
2175 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
2176 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
2177 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
2178 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
2179 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
2180 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
2181 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
2182 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
2183 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
2184 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
2185 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
2186 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
2187 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
2188 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
2189 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
2190 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
2191 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
2192 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
2193 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
2194 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
2195 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
2196 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
2197 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
2198 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
2199 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
2200 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
2201 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
2202 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
2203 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
2204 * testsuite/libgomp.fortran/pr28390.f: Ditto.
2205 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
2206 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
2207 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
2208 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
2209 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
2210 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
2211 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
2212 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
2213 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
2214 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
2215 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
2216 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
2217 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
2218 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
2219 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
2220 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
2221 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
2222 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
2223 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
2224 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
2225 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
2226 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
2227 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
2228 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
2229 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
2230 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
2231 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
2232 * testsuite/libgomp.fortran/reference1.f90: Ditto.
2233 * testsuite/libgomp.fortran/reference2.f90: Ditto.
2234 * testsuite/libgomp.fortran/retval1.f90: Ditto.
2235 * testsuite/libgomp.fortran/retval2.f90: Ditto.
2236 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
2237 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
2238 * testsuite/libgomp.fortran/simd1.f90: Ditto.
2239 * testsuite/libgomp.fortran/simd2.f90: Ditto.
2240 * testsuite/libgomp.fortran/simd3.f90: Ditto.
2241 * testsuite/libgomp.fortran/simd4.f90: Ditto.
2242 * testsuite/libgomp.fortran/simd5.f90: Ditto.
2243 * testsuite/libgomp.fortran/simd6.f90: Ditto.
2244 * testsuite/libgomp.fortran/simd7.f90: Ditto.
2245 * testsuite/libgomp.fortran/stack.f90: Ditto.
2246 * testsuite/libgomp.fortran/strassen.f90: Ditto.
2247 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
2248 * testsuite/libgomp.fortran/tabs2.f: Ditto.
2249 * testsuite/libgomp.fortran/target1.f90: Ditto.
2250 * testsuite/libgomp.fortran/target2.f90: Ditto.
2251 * testsuite/libgomp.fortran/target3.f90: Ditto.
2252 * testsuite/libgomp.fortran/target4.f90: Ditto.
2253 * testsuite/libgomp.fortran/target5.f90: Ditto.
2254 * testsuite/libgomp.fortran/target6.f90: Ditto.
2255 * testsuite/libgomp.fortran/target7.f90: Ditto.
2256 * testsuite/libgomp.fortran/target8.f90: Ditto.
2257 * testsuite/libgomp.fortran/task1.f90: Ditto.
2258 * testsuite/libgomp.fortran/task2.f90: Ditto.
2259 * testsuite/libgomp.fortran/task3.f90: Ditto.
2260 * testsuite/libgomp.fortran/task4.f90: Ditto.
2261 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
2262 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
2263 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
2264 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
2265 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
2266 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
2267 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
2268 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
2269 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
2270 * testsuite/libgomp.fortran/udr1.f90: Ditto.
2271 * testsuite/libgomp.fortran/udr10.f90: Ditto.
2272 * testsuite/libgomp.fortran/udr11.f90: Ditto.
2273 * testsuite/libgomp.fortran/udr12.f90: Ditto.
2274 * testsuite/libgomp.fortran/udr13.f90: Ditto.
2275 * testsuite/libgomp.fortran/udr14.f90: Ditto.
2276 * testsuite/libgomp.fortran/udr15.f90: Ditto.
2277 * testsuite/libgomp.fortran/udr2.f90: Ditto.
2278 * testsuite/libgomp.fortran/udr3.f90: Ditto.
2279 * testsuite/libgomp.fortran/udr4.f90: Ditto.
2280 * testsuite/libgomp.fortran/udr5.f90: Ditto.
2281 * testsuite/libgomp.fortran/udr6.f90: Ditto.
2282 * testsuite/libgomp.fortran/udr7.f90: Ditto.
2283 * testsuite/libgomp.fortran/udr8.f90: Ditto.
2284 * testsuite/libgomp.fortran/udr9.f90: Ditto.
2285 * testsuite/libgomp.fortran/vla1.f90: Ditto.
2286 * testsuite/libgomp.fortran/vla2.f90: Ditto.
2287 * testsuite/libgomp.fortran/vla3.f90: Ditto.
2288 * testsuite/libgomp.fortran/vla4.f90: Ditto.
2289 * testsuite/libgomp.fortran/vla5.f90: Ditto.
2290 * testsuite/libgomp.fortran/vla6.f90: Ditto.
2291 * testsuite/libgomp.fortran/vla7.f90: Ditto.
2292 * testsuite/libgomp.fortran/vla8.f90: Ditto.
2293 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
2294 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
2295
01509e2f
TB
22962019-10-30 Tobias Burnus <tobias@codesourcery.com>
2297
2298 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
2299 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
2300 Ditto; add 'dg-do run' for torture testing.
2301 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
2302 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
2303 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
2304 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
2305 * testsuite/libgomp.fortran/pr28390.f: Ditto.
2306 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
2307 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
2308 * testsuite/libgomp.fortran/task2.f90: Ditto.
2309 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
2310 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
2311 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
2312 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
2313 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
2314 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
2315
ffbdd78a
TB
23162019-10-28 Tobias Burnus <tobias@codesourcery.com>
2317
2318 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
2319 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
2320 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
2321 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
2322 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
2323 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
2324 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
2325 Use 'stop' not abort().
2326 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
2327 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
2328 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
2329 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
2330 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
2331 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
2332 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
2333 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
2334 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
2335 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
2336 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
2337 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
2338 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
2339 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
2340 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
2341 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
2342 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
2343 Ditto.
2344 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
2345 Ditto.
2346 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
2347 Ditto.
2348 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
2349 Ditto.
2350 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
2351 Ditto.
2352 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
2353 Ditto.
2354 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
2355 Ditto.
2356 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
2357 Ditto.
2358 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
2359 Ditto.
2360 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
2361 Ditto.
2362 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
2363 Ditto.
2364 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
2365 Ditto.
2366 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
2367 Ditto.
2368 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
2369 Ditto.
2370 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
2371 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
2372 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
2373 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
2374 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
2375 Likewise and also add 'dg-do run'.
2376 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
2377 Ditto.
2378
ec084613
CP
23792019-10-25 Cesar Philippidis <cesar@codesourcery.com>
2380 Tobias Burnus <tobias@codesourcery.com>
2381
2382 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
2383 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
2384 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
2385
77ef3394
JJ
23862019-10-14 Jakub Jelinek <jakub@redhat.com>
2387
2388 PR libgomp/92081
2389 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
2390 than 0.
2391
08c14aaa
TB
23922019-10-11 Tobias Burnus <tobias@codesourcery.com>
2393
2394 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
2395 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
2396
6bbead0c
TS
23972019-10-09 Thomas Schwinge <thomas@codesourcery.com>
2398
2399 PR middle-end/92036
2400 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
2401 file.
2402
eba3dee8
TB
24032019-10-09 Tobias Burnus <tobias@codesourcery.com>
2404
2405 PR testsuite/91884
2406 * testsuite/libgomp.fortran/fortran.exp: Conditionally
2407 add -lquadmath.
2408 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
2409
7d48e14f
JJ
24102019-10-09 Jakub Jelinek <jakub@redhat.com>
2411
2412 PR libgomp/92028
2413 * target.c (gomp_map_vars_internal): Readd the previous
2414 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
2415 though do that just in the !not_found_cnt case.
2416
65b67cf3
TB
24172019-10-08 Tobias Burnus <tobias@codesourcery.com>
2418
2419 * gfortran.dg/gomp/target-simd.f90: New.
2420
6c7e076b
JB
24212019-10-02 Julian Brown <julian@codesourcery.com>
2422 Cesar Philippidis <cesar@codesourcery.com>
2423
2424 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
2425 * target.c (FIELD_TGT_EMPTY): Define.
2426 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
2427 as switch instead of list of ifs.
2428 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
2429
d61bff85
AT
24302019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
2431
2432 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
2433 include. Replace alloca () with __builtin_alloca ().
2434 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
2435
810f316d
JJ
24362019-10-01 Jakub Jelinek <jakub@redhat.com>
2437
2438 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
2439 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
2440 * oacc-parallel.c: Don't include "libgomp_g.h".
2441 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
2442 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
2443 * aclocal.m4: Regenerated.
2444 * config.h.in: Regenerated.
2445 * configure: Regenerated.
2446 * Makefile.in: Regenerated.
2447
d7f9ee98
KCY
24482019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
2449
2450 * libgomp_g.h: Include stdint.h instead of gstdint.h.
2451
e9085da5
MR
24522019-09-27 Maciej W. Rozycki <macro@wdc.com>
2453
2454 * configure: Regenerate.
2455
c28712be
TB
24562019-09-13 Tobias Burnus <tobias@codesourcery.com>
2457
2458 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
2459 string is initialized.
2460
3c086f8d
FW
24612019-09-06 Florian Weimer <fweimer@redhat.com>
2462
2463 * configure: Regenerate.
2464
c6c2d1bc
CLT
24652019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
2466
2467 PR other/79543
2468 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
2469 scanning to conform to the GNU Coding Standards.
2470 * configure: Regenerate.
2471
5cb72d83
JJ
24722019-08-28 Jakub Jelinek <jakub@redhat.com>
2473
2474 PR libgomp/91530
2475 * testsuite/libgomp.c/scan-21.c: New test.
2476 * testsuite/libgomp.c/scan-22.c: New test.
2477
0ad7981c
JJ
24782019-08-27 Jakub Jelinek <jakub@redhat.com>
2479
2480 PR libgomp/91530
2481 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
2482 targets.
2483 * testsuite/libgomp.c/scan-12.c: Likewise.
2484 * testsuite/libgomp.c/scan-13.c: Likewise.
2485 * testsuite/libgomp.c/scan-14.c: Likewise.
2486 * testsuite/libgomp.c/scan-15.c: Likewise.
2487 * testsuite/libgomp.c/scan-16.c: Likewise.
2488 * testsuite/libgomp.c/scan-17.c: Likewise.
2489 * testsuite/libgomp.c/scan-18.c: Likewise.
2490 * testsuite/libgomp.c/scan-19.c: Likewise.
2491 * testsuite/libgomp.c/scan-20.c: Likewise.
2492 * testsuite/libgomp.c++/scan-9.C: Likewise.
2493 * testsuite/libgomp.c++/scan-10.C: Likewise.
2494 * testsuite/libgomp.c++/scan-11.C: Likewise.
2495 * testsuite/libgomp.c++/scan-12.C: Likewise.
2496 * testsuite/libgomp.c++/scan-14.C: Likewise.
2497 * testsuite/libgomp.c++/scan-15.C: Likewise.
2498 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
2499 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
2500 * testsuite/libgomp.c++/scan-16.C: Likewise.
2501
1e67491a
TK
25022019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
2503
2504 PR fortran/91473
2505 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
2506 -std=legacy so invalid code in the test case is accepted.
2507
393fdeb1
TK
25082019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
2509
2510 PR fortran/91422
2511 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
2512 dimension.
2513
8860d270
JJ
25142019-08-08 Jakub Jelinek <jakub@redhat.com>
2515
2516 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
2517 perform the lookup in the first loop only if !not_found_cnt, otherwise
2518 perform lookups for it in the second loop guarded with
2519 if (not_found_cnt || has_firstprivate).
2520 * testsuite/libgomp.c/target-37.c: New test.
2521 * testsuite/libgomp.c++/target-22.C: New test.
2522
398e3feb
JJ
25232019-08-07 Jakub Jelinek <jakub@redhat.com>
2524
2525 * testsuite/libgomp.c/target-18.c (struct S): New type.
2526 (foo): Use use_device_addr clause instead of use_device_ptr clause
2527 where required by OpenMP 5.0, add further tests for both use_device_ptr
2528 and use_device_addr clauses.
2529 * testsuite/libgomp.c++/target-9.C (struct S): New type.
2530 (foo): Use use_device_addr clause instead of use_device_ptr clause
2531 where required by OpenMP 5.0, add further tests for both use_device_ptr
2532 and use_device_addr clauses. Add t and u arguments.
2533 (main): Adjust caller.
2534
d81ab49d
JJ
25352019-08-06 Jakub Jelinek <jakub@redhat.com>
2536
2537 * testsuite/libgomp.c++/loop-13.C: New test.
2538 * testsuite/libgomp.c++/loop-14.C: New test.
2539 * testsuite/libgomp.c++/loop-15.C: New test.
2540
c3ac76aa
JJ
25412019-07-31 Jakub Jelinek <jakub@redhat.com>
2542
2543 PR middle-end/91301
2544 * testsuite/libgomp.c++/for-27.C: New test.
2545
8dc63166
SK
25462019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
2547
393fdeb1 2548 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
8dc63166 2549 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
393fdeb1 2550
554a530f
JJ
25512019-07-20 Jakub Jelinek <jakub@redhat.com>
2552
2553 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
2554
6cda84b5
JJ
25552019-07-08 Jakub Jelinek <jakub@redhat.com>
2556
2557 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
2558 * testsuite/libgomp.c++/scan-16.C: Likewise.
2559
1f52d1a8
JJ
25602019-07-06 Jakub Jelinek <jakub@redhat.com>
2561
6f67abcd
JJ
2562 * testsuite/libgomp.c/scan-19.c: New test.
2563 * testsuite/libgomp.c/scan-20.c: New test.
2564
1f52d1a8
JJ
2565 * testsuite/libgomp.c/scan-11.c: New test.
2566 * testsuite/libgomp.c/scan-12.c: New test.
2567 * testsuite/libgomp.c/scan-13.c: New test.
2568 * testsuite/libgomp.c/scan-14.c: New test.
2569 * testsuite/libgomp.c/scan-15.c: New test.
2570 * testsuite/libgomp.c/scan-16.c: New test.
2571 * testsuite/libgomp.c/scan-17.c: New test.
2572 * testsuite/libgomp.c/scan-18.c: New test.
2573 * testsuite/libgomp.c++/scan-9.C: New test.
2574 * testsuite/libgomp.c++/scan-10.C: New test.
2575 * testsuite/libgomp.c++/scan-11.C: New test.
2576 * testsuite/libgomp.c++/scan-12.C: New test.
2577 * testsuite/libgomp.c++/scan-13.C: New test.
2578 * testsuite/libgomp.c++/scan-14.C: New test.
2579 * testsuite/libgomp.c++/scan-15.C: New test.
2580 * testsuite/libgomp.c++/scan-16.C: New test.
2581
2f03073f
JJ
25822019-07-04 Jakub Jelinek <jakub@redhat.com>
2583
2584 * testsuite/libgomp.c/scan-9.c: New test.
2585 * testsuite/libgomp.c/scan-10.c: New test.
2586
2f6bb511
JJ
25872019-07-03 Jakub Jelinek <jakub@redhat.com>
2588
2589 * testsuite/libgomp.c++/scan-1.C: New test.
2590 * testsuite/libgomp.c++/scan-2.C: New test.
2591 * testsuite/libgomp.c++/scan-3.C: New test.
2592 * testsuite/libgomp.c++/scan-4.C: New test.
2593 * testsuite/libgomp.c++/scan-5.C: New test.
2594 * testsuite/libgomp.c++/scan-6.C: New test.
2595 * testsuite/libgomp.c++/scan-7.C: New test.
2596 * testsuite/libgomp.c++/scan-8.C: New test.
2597 * testsuite/libgomp.c/scan-1.c: New test.
2598 * testsuite/libgomp.c/scan-2.c: New test.
2599 * testsuite/libgomp.c/scan-3.c: New test.
2600 * testsuite/libgomp.c/scan-4.c: New test.
2601 * testsuite/libgomp.c/scan-5.c: New test.
2602 * testsuite/libgomp.c/scan-6.c: New test.
2603 * testsuite/libgomp.c/scan-7.c: New test.
2604 * testsuite/libgomp.c/scan-8.c: New test.
2605
bd194a51
TS
26062019-06-18 Thomas Schwinge <thomas@codesourcery.com>
2607
85fca03a
TS
2608 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
2609 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
2610 Likewise.
2611
bd194a51
TS
2612 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
2613 check.
2614
6652161e
CP
26152019-06-18 Cesar Philippidis <cesar@codesourcery.com>
2616
2617 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
2618 file.
2619
3a37d6f6
TS
26202019-06-18 Thomas Schwinge <thomas@codesourcery.com>
2621
4017da8d
TS
2622 PR fortran/90743
2623 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
2624 case.
2625 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
2626 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
2627 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
2628 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
2629
6f7c1f65
TS
2630 PR testsuite/90861
2631 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
2632
3a37d6f6
TS
2633 PR middle-end/90862
2634 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
2635
f45ce17d
TV
26362019-06-16 Tom de Vries <tdevries@suse.de>
2637
2638 PR tree-optimization/89376
2639 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
2640
00908992
TV
26412019-06-15 Tom de Vries <tdevries@suse.de>
2642
2643 PR tree-optimization/89713
2644 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
2645 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
2646
211b7533
JJ
26472019-06-15 Jakub Jelinek <jakub@redhat.com>
2648
2649 PR middle-end/90779
2650 * testsuite/libgomp.c/pr90779.c: New test.
2651 * testsuite/libgomp.fortran/pr90779.f90: New test.
2652
120a01d1
TV
26532019-06-15 Tom de Vries <tdevries@suse.de>
2654
2655 PR tree-optimization/90009
2656 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
2657
c29c92c7
FX
26582019-06-13 Feng Xue <fxue@os.amperecomputing.com>
2659
2660 PR tree-optimization/89713
2661 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
2662
ce9c4ec3
JJ
26632019-06-11 Jakub Jelinek <jakub@redhat.com>
2664
2665 PR target/90811
2666 * testsuite/libgomp.c/pr90811.c: New test.
2667
28b3a77c
JJ
26682019-06-05 Jakub Jelinek <jakub@redhat.com>
2669
2670 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
2671 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
2672
7855700e
JJ
26732019-06-04 Jakub Jelinek <jakub@redhat.com>
2674
2675 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
2676 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
2677 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
2678 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
2679
a7155c2e
RO
26802019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2681
2682 * configure.ac: Call AX_COUNT_CPUS.
2683 Substitute CPU_COUNT.
2684 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
2685 count fallback.
2686 * aclocal.m4: Regenerate.
2687 * configure: Regenerate.
2688 * Makefile.in, testsuite/Makefile.in: Regenerate.
2689
7e47198b
JJ
26902019-05-29 Jakub Jelinek <jakub@redhat.com>
2691
2692 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
2693 to ...
2694 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
2695 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
2696 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
2697
fcfb8032
JJ
26982019-05-27 Jakub Jelinek <jakub@redhat.com>
2699
8e7757ba
JJ
2700 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
2701
36c7a3ff
JJ
2702 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
2703
fcfb8032
JJ
2704 PR libgomp/90641
2705 * work.c (gomp_init_work_share): Instead of aligning final ordered
2706 value to multiples of long long alignment, align to that the
2707 first part (ordered team ids) and if inline_ordered_team_ids
2708 is not on a long long alignment boundary within the structure,
2709 use __alignof__ (long long) - 1 pad size always.
2710 * loop.c (GOMP_loop_start): Fix *mem computation if
2711 inline_ordered_team_ids is not aligned on long long alignment boundary
2712 within the structure.
2713 * loop-ull.c (GOMP_loop_ull_start): Likewise.
2714 * sections.c (GOMP_sections2_start): Likewise.
2715
b5c26449
JJ
27162019-05-24 Jakub Jelinek <jakub@redhat.com>
2717
6c7ae8c5
JJ
2718 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
2719 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
2720
b5c26449
JJ
2721 PR libgomp/90585
2722 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
2723 HAVE_INTTYPES_H is defined.
2724 (print_uint64_t): New typedef.
2725 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
2726 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
2727 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
2728 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
2729 before casting to void *.
2730 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
2731 * oacc-mem.c: Don't include config.h nor stdint.h.
2732 * target.c: Don't include config.h.
2733 * oacc-cuda.c: Likewise.
2734 * oacc-host.c: Don't include stdint.h.
2735
3e03ed66
JJ
27362019-05-20 Jakub Jelinek <jakub@redhat.com>
2737
2738 PR libgomp/90527
2739 * alloc.c (_GNU_SOURCE): Define.
2740
5fae049d
TS
27412019-05-17 Thomas Schwinge <thomas@codesourcery.com>
2742
2743 * acc_prof.h: New file.
2744 * oacc-profiling.c: Likewise.
2745 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
2746 Add these, respectively.
2747 * Makefile.in: Regenerate.
2748 * env.c (initialize_env): Call goacc_profiling_initialize.
2749 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
2750 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
2751 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
2752 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
2753 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
2754 acc_prof_register, acc_prof_unregister, and acc_register_library.
2755 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
2756 GOMP_PLUGIN_goacc_thread.
2757 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
2758 prof_callbacks_enabled members.
2759 (goacc_prof_enabled, goacc_profiling_initialize)
2760 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
2761 (goacc_profiling_dispatch): Declare.
2762 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
2763 (GOACC_PROFILING_SETUP_P): Define.
2764 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
2765 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
2766 OpenACC Profiling Interface.
2767 * oacc-cuda.c (acc_get_current_cuda_device)
2768 (acc_get_current_cuda_context, acc_get_cuda_stream)
2769 (acc_set_cuda_stream): Likewise.
2770 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
2771 (acc_init, acc_set_device_type, acc_get_device_type)
2772 (acc_get_device_num, goacc_lazy_initialize): Likewise.
2773 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
2774 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
2775 (acc_unmap_data, present_create_copy, delete_copyout)
2776 (update_dev_host): Likewise.
2777 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
2778 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
2779 Likewise.
2780 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
2781 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
2782 Likewise.
2783 * libgomp.texi: Update.
2784 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
2785 file.
2786 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
2787 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
2788 Likewise.
2789 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
2790 Likewise.
2791 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
2792 Likewise.
2793 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
2794 Likewise.
2795
1f4c5b9b
CLT
27962019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
2797
2798 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
2799 (struct goacc_asyncqueue_list): Likewise.
2800 (goacc_aq): Likewise.
2801 (goacc_aq_list): Likewise.
2802 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
2803 (GOMP_OFFLOAD_openacc_async_test): Remove.
2804 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
2805 (GOMP_OFFLOAD_openacc_async_wait): Remove.
2806 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
2807 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
2808 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
2809 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
2810 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
2811 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
2812 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
2813 (GOMP_OFFLOAD_openacc_async_exec): Declare.
2814 (GOMP_OFFLOAD_openacc_async_construct): Declare.
2815 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
2816 (GOMP_OFFLOAD_openacc_async_test): Declare.
2817 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
2818 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
2819 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
2820 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
2821 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
2822
2823 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
2824 (gomp_acc_insert_pointer): Adjust declaration.
2825 (gomp_copy_host2dev): New declaration.
2826 (gomp_copy_dev2host): Likewise.
2827 (gomp_map_vars_async): Likewise.
2828 (gomp_unmap_tgt): Likewise.
2829 (gomp_unmap_vars_async): Likewise.
2830 (gomp_fini_device): Likewise.
2831
2832 * oacc-async.c (get_goacc_thread): New function.
2833 (get_goacc_thread_device): New function.
2834 (lookup_goacc_asyncqueue): New function.
2835 (get_goacc_asyncqueue): New function.
2836 (acc_async_test): Adjust code to use new async design.
2837 (acc_async_test_all): Likewise.
2838 (acc_wait): Likewise.
2839 (acc_wait_async): Likewise.
2840 (acc_wait_all): Likewise.
2841 (acc_wait_all_async): Likewise.
2842 (goacc_async_free): New function.
2843 (goacc_init_asyncqueues): Likewise.
2844 (goacc_fini_asyncqueues): Likewise.
2845 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
2846 design.
2847 (acc_set_cuda_stream): Likewise.
2848 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
2849 (host_openacc_register_async_cleanup): Remove.
2850 (host_openacc_async_exec): New function.
2851 (host_openacc_async_test): Adjust parameters.
2852 (host_openacc_async_test_all): Remove.
2853 (host_openacc_async_wait): Remove.
2854 (host_openacc_async_wait_async): Remove.
2855 (host_openacc_async_wait_all): Remove.
2856 (host_openacc_async_wait_all_async): Remove.
2857 (host_openacc_async_set_async): Remove.
2858 (host_openacc_async_synchronize): New function.
2859 (host_openacc_async_serialize): New function.
2860 (host_openacc_async_host2dev): New function.
2861 (host_openacc_async_dev2host): New function.
2862 (host_openacc_async_queue_callback): New function.
2863 (host_openacc_async_construct): New function.
2864 (host_openacc_async_destruct): New function.
2865 (struct gomp_device_descr host_dispatch): Remove initialization of old
93d90219 2866 interface, add initialization of new async sub-struct.
1f4c5b9b
CLT
2867 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
2868 (goacc_attach_host_thread_to_device): Remove old async code usage.
2869 * oacc-int.h (goacc_init_asyncqueues): New declaration.
2870 (goacc_fini_asyncqueues): Likewise.
2871 (goacc_async_copyout_unmap_vars): Likewise.
2872 (goacc_async_free): Likewise.
2873 (get_goacc_asyncqueue): Likewise.
2874 (lookup_goacc_asyncqueue): Likewise.
2875 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
2876 design.
2877 (present_create_copy): Adjust code to use new async design.
2878 (delete_copyout): Likewise.
2879 (update_dev_host): Likewise.
2880 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
2881 async design.
2882 (gomp_acc_remove_pointer): Adjust code to use new async design.
2883 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
2884 design.
2885 (GOACC_enter_exit_data): Likewise.
2886 (goacc_wait): Likewise.
2887 (GOACC_update): Likewise.
2888 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
2889 when called, warn as obsolete in comment.
2890 * target.c (goacc_device_copy_async): New function.
2891 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
2892 add goacc_device_copy_async case.
2893 (gomp_copy_dev2host): Likewise.
2894 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
2895 (gomp_map_pointer): Likewise.
2896 (gomp_map_fields_existing): Likewise.
2897 (gomp_map_vars_internal): New always_inline function, renamed from
2898 gomp_map_vars.
2899 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
2900 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
2901 passing goacc_asyncqueue argument.
2902 (gomp_unmap_tgt): Remove static, add attribute_hidden.
2903 (gomp_unref_tgt): New function.
2904 (gomp_unmap_vars_internal): New always_inline function, renamed from
2905 gomp_unmap_vars.
2906 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
2907 (gomp_unmap_vars_async): Implement by calling
2908 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
2909 (gomp_fini_device): New function.
2910 (gomp_exit_data): Adjust gomp_copy_dev2host call.
2911 (gomp_load_plugin_for_device): Remove old interface, adjust to load
2912 new async interface.
2913 (gomp_target_fini): Adjust code to call gomp_fini_device.
2914
2915 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
2916 (struct ptx_stream): Remove.
2917 (struct nvptx_thread): Remove current_stream field.
2918 (cuda_map_create): Remove.
2919 (cuda_map_destroy): Remove.
2920 (map_init): Remove.
2921 (map_fini): Remove.
2922 (map_pop): Remove.
2923 (map_push): Remove.
2924 (struct goacc_asyncqueue): Define.
2925 (struct nvptx_callback): Define.
2926 (struct ptx_free_block): Define.
2927 (struct ptx_device): Remove null_stream, active_streams, async_streams,
2928 stream_lock, and next fields.
2929 (enum ptx_event_type): Remove.
2930 (struct ptx_event): Remove.
2931 (ptx_event_lock): Remove.
2932 (ptx_events): Remove.
2933 (init_streams_for_device): Remove.
2934 (fini_streams_for_device): Remove.
2935 (select_stream_for_async): Remove.
2936 (nvptx_init): Remove ptx_events and ptx_event_lock references.
2937 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
2938 case.
2939 (nvptx_open_device): Add free_blocks initialization, remove
2940 init_streams_for_device call.
2941 (nvptx_close_device): Remove fini_streams_for_device call, add
2942 free_blocks destruct code.
2943 (event_gc): Remove.
2944 (event_add): Remove.
2945 (nvptx_exec): Adjust parameters and code.
2946 (nvptx_free): Likewise.
2947 (nvptx_host2dev): Remove.
2948 (nvptx_dev2host): Remove.
2949 (nvptx_set_async): Remove.
2950 (nvptx_async_test): Remove.
2951 (nvptx_async_test_all): Remove.
2952 (nvptx_wait): Remove.
2953 (nvptx_wait_async): Remove.
2954 (nvptx_wait_all): Remove.
2955 (nvptx_wait_all_async): Remove.
2956 (nvptx_get_cuda_stream): Remove.
2957 (nvptx_set_cuda_stream): Remove.
2958 (GOMP_OFFLOAD_alloc): Adjust code.
2959 (GOMP_OFFLOAD_free): Likewise.
2960 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
2961 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
2962 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
2963 (GOMP_OFFLOAD_openacc_async_wait): Remove.
2964 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
2965 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
2966 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
2967 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
2968 (cuda_free_argmem): New function.
2969 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
2970 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
2971 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
2972 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
2973 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
2974 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
2975 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
2976 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
2977 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
2978 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
2979 (cuda_callback_wrapper): New function.
2980 (cuda_memcpy_sanity_check): New function.
2981 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
2982 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
2983 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
2984 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
2985
da2d30c1
TS
29862019-05-07 Thomas Schwinge <thomas@codesourcery.com>
2987
2988 PR target/87835
2989 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
2990
2bbbfa4e
TS
29912019-05-06 Thomas Schwinge <thomas@codesourcery.com>
2992
2993 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
2994
bbf1efe1
KB
29952019-03-27 Kevin Buettner <kevinb@redhat.com>
2996
2997 * team.c (gomp_team_start): Initialize pool->threads[0].
2998
1241136c
TS
29992019-02-22 Thomas Schwinge <thomas@codesourcery.com>
3000
b03d721a
TS
3001 * testsuite/libgomp.oacc-c++/c++.exp: Specify
3002 "-foffload=$offload_target".
3003 * testsuite/libgomp.oacc-c/c.exp: Likewise.
3004 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
3005 * testsuite/lib/libgomp.exp
3006 (check_effective_target_openacc_nvidia_accel_configured): Remove,
3007 as (conceptually) merged into
3008 check_effective_target_openacc_nvidia_accel_selected. Adjust all
3009 users.
3010
0a0384b4
TS
3011 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
3012 * testsuite/libgomp-test-support.exp.in: Adjust.
3013 * testsuite/lib/libgomp.exp: Likewise. Don't populate
3014 openacc_device_types_s.
3015 (offload_target_to_openacc_device_type): New proc.
3016 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
3017 * testsuite/libgomp.oacc-c/c.exp: Likewise.
3018 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
3019 * Makefile.in: Regenerate.
3020 * configure: Likewise.
3021 * testsuite/Makefile.in: Likewise.
3022
ee332b4a
TS
3023 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
3024 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
3025 instead of OFFLOAD_TARGETS.
3026 * target.c (gomp_target_init): Adjust.
3027 * testsuite/libgomp-test-support.exp.in: Likewise.
3028 * testsuite/lib/libgomp.exp: Likewise. Populate
3029 openacc_device_types_s instead of offload_targets_s_openacc.
3030 (check_effective_target_openacc_nvidia_accel_selected)
3031 (check_effective_target_openacc_host_selected): Adjust.
3032 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
3033 * testsuite/libgomp.oacc-c/c.exp: Likewise.
3034 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
3035 * Makefile.in: Regenerate.
3036 * config.h.in: Likewise.
3037 * configure: Likewise.
3038 * testsuite/Makefile.in: Likewise.
3039
1241136c
TS
3040 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
3041 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
3042 "offloading: supported, but hardware not accessible".
3043 * testsuite/libgomp.oacc-c/c.exp: Likewise.
3044 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
3045
19695f4d
CLT
30462019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
3047
3048 PR c/87924
3049 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
3050 goacc_wait().
3051 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
3052 and related adjustment.
3053
8b44f8ec
JJ
30542019-01-30 Jakub Jelinek <jakub@redhat.com>
3055
3056 PR c++/88988
3057 * testsuite/libgomp.c++/pr88988.C: New test.
3058
be3a87e7
JJ
30592019-01-28 Jakub Jelinek <jakub@redhat.com>
3060
3061 PR middle-end/89002
3062 * testsuite/libgomp.c/pr89002.c: New test.
3063
497ef4d7
RB
30642019-01-28 Richard Biener <rguenther@suse.de>
3065
3066 PR testsuite/89064
3067 PR tree-optimization/86865
3068 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
3069
738c56d4
TV
30702019-01-24 Tom de Vries <tdevries@suse.de>
3071
3072 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
3073 once instantiated_devices drops to 0.
3074
4a75460b
TV
30752019-01-23 Tom de Vries <tdevries@suse.de>
3076
3077 PR target/PR88946
3078 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
3079 cuMemFree.
3080 (nvptx_exec): Don't call map_push if mapnum == 0.
3081 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
3082
4fef8e4d
TV
30832019-01-23 Tom de Vries <tdevries@suse.de>
3084
3085 PR target/88941
3086 PR target/88939
3087 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
3088 (map_fini): Remove "assert (!s->map->active)".
3089 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
3090
2ee6cb22
TV
30912019-01-23 Tom de Vries <tdevries@suse.de>
3092
3093 PR target/87835
3094 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
3095 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
3096
d41d952c
TV
30972019-01-15 Tom de Vries <tdevries@suse.de>
3098
3099 PR target/80547
3100 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
3101 New test.
3102
efb56ae8
TV
31032019-01-12 Tom de Vries <tdevries@suse.de>
3104
3105 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
3106 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
3107 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
3108 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
3109
2c2ff168
TV
31102019-01-12 Tom de Vries <tdevries@suse.de>
3111
3112 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
3113
a1057758
TV
31142019-01-12 Tom de Vries <tdevries@suse.de>
3115
3116 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
3117 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
3118 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
3119
56314b77
TV
31202019-01-12 Tom de Vries <tdevries@suse.de>
3121
3122 PR target/85486
3123 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
3124 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
3125
b39e4366
TV
31262019-01-12 Tom de Vries <tdevries@suse.de>
3127
3128 PR target/85381
3129 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
3130 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
3131
2cb7a501
TV
31322019-01-12 Tom de Vries <tdevries@suse.de>
3133
3134 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
3135 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
3136 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
3137
8e77f71e
TV
31382019-01-12 Tom de Vries <tdevries@suse.de>
3139
3140 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
3141 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
3142 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
3143
52d22ece
TV
31442019-01-12 Tom de Vries <tdevries@suse.de>
3145
3146 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
3147 resources diagnostic.
3148
2b9d9e39
TV
31492019-01-12 Tom de Vries <tdevries@suse.de>
3150
3151 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
3152 vector length to be 128.
3153 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
3154 length 2097152 to be reduced to 1024 instead of 32.
3155
4102bda6
TS
31562019-01-11 Thomas Schwinge <thomas@codesourcery.com>
3157 James Norris <jnorris@codesourcery.com>
3158
3159 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
3160 Library Routines", and "Environment Variables".
3161
052aaace
TV
31622019-01-11 Tom de Vries <tdevries@suse.de>
3163
3164 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
3165 num_workers 16.
3166
9390f916
TV
31672019-01-11 Tom de Vries <tdevries@suse.de>
3168
3169 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
3170 -foffload=-w.
3171 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
3172 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
3173 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
3174 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
3175
2c3e7ad2
TV
31762019-01-11 Tom de Vries <tdevries@suse.de>
3177
3178 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
3179 test.
3180
e222497d
NS
31812019-01-10 Nathan Sidwell <nathan@acm.org>
3182 Julian Brown <julian@codesourcery.com>
3183
3184 PR lto/71959
3185 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
3186 * testsuite/libgomp.oacc-c++/pr71959.C: New.
3187
cb87fec3
SH
31882019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3189
3190 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
3191 and paste code.
3192
30b4d0d0
SH
31932019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3194
3195 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
3196 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
3197 write.
3198
5d0bc70a
TV
31992019-01-09 Tom de Vries <tdevries@suse.de>
3200
3201 PR target/88756
3202 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
3203 #define instead of "const int".
3204 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
3205 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
3206 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
3207 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
3208
2c372e81
TV
32092019-01-09 Tom de Vries <tdevries@suse.de>
3210
3211 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
3212 one worker.
3213
43493c97
TV
32142019-01-07 Tom de Vries <tdevries@suse.de>
3215
3216 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
3217 GOMP_OPENACC_DIM argument.
3218
5c571497
TV
32192019-01-03 Tom de Vries <tdevries@suse.de>
3220
3221 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
3222 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
3223
a5544970
JJ
32242019-01-01 Jakub Jelinek <jakub@redhat.com>
3225
3226 Update copyright years.
3227
3f27508c
JJ
32282019-01-01 Jakub Jelinek <jakub@redhat.com>
3229
3230 * libgomp.texi: Bump @copying's copyright year.
3231
59d5960c
TS
32322018-12-28 Thomas Schwinge <thomas@codesourcery.com>
3233
3234 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
3235 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
3236 (GOACC_declare): Redefine the "device" argument to "flags".
3237
a44c1790
TS
32382018-12-28 Thomas Schwinge <thomas@codesourcery.com>
3239 Cesar Philippidis <cesar@codesourcery.com>
3240
3241 * target.c (struct gomp_coalesce_chunk): New structure.
3242 (struct gomp_coalesce_buf): Update the chunks member to use that
3243 type. Adjust all users.
3244
a152954e
TV
32452018-12-19 Tom de Vries <tdevries@suse.de>
3246
3247 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
3248 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
3249 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
3250
49188cd1
TV
32512018-12-19 Tom de Vries <tdevries@suse.de>
3252
3253 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
3254 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
3255 gcc/testsuite/gcc.dg/goacc.
3256 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
3257
c759830b
TS
32582018-12-14 Thomas Schwinge <thomas@codesourcery.com>
3259 Chung-Lin Tang <cltang@codesourcery.com>
3260
3261 * oacc-mem.c (acc_present_or_create): Remove definition and change
3262 to alias of acc_create.
3263 (acc_present_or_copyin): Remove definition and change to alias of
3264 acc_copyin.
3265 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
3266 of acc_present_or_create.
3267 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
3268 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
3269 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
3270 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
3271 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
3272 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
3273 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
3274 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
3275 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
3276 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
3277 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
3278 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
3279 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
3280 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
3281 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
3282 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
3283
7de562ee
TS
32842018-12-14 Thomas Schwinge <thomas@codesourcery.com>
3285
f847198e
TS
3286 PR libgomp/88495
3287 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
3288 "identical parameters".
3289 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
3290 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
3291
c8ab8aab
TS
3292 PR libgomp/88484
3293 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
3294 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
3295
1404af62
TS
3296 PR libgomp/88407
3297 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
3298 (nvptx_wait_async): Unseen async-argument is a no-op.
3299 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
3300 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
3301 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
3302 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
3303 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
3304 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
3305 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
3306 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
3307 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
3308
7de562ee
TS
3309 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
3310 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
3311
17469af7
CLT
33122018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
3313
3314 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
3315 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
3316 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
3317
18c247cc
TS
33182018-12-14 Thomas Schwinge <thomas@codesourcery.com>
3319
3320 PR libgomp/88370
3321 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
3322 (acc_set_cuda_stream): Clarify.
3323 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
3324 "async_valid_p".
3325 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
3326 acc_async_sync".
3327 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
3328 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
3329 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
3330 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
3331
b0aba46c
TV
33322018-12-14 Tom de Vries <tdevries@suse.de>
3333
3334 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
3335 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
3336 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
3337 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
3338 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
3339
fe0827ee
TV
33402018-12-13 Tom de Vries <tdevries@suse.de>
3341
3342 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
3343 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
3344 * fortran.c (omp_display_affinity_): ... here.
3345 * libgomp.h (gomp_print_string): Declare.
3346 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
3347 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
3348 write.
3349
a51f8c92
JJ
33502018-12-13 Jakub Jelinek <jakub@redhat.com>
3351
3352 PR libgomp/88460
3353 * testsuite/libgomp.c++/for-24.C (results): Include it in
3354 omp declare target region.
3355 (main): Use map (always, tofrom: results) instead of
3356 map (tofrom: results).
3357
a6ef2ac9
JJ
33582018-12-12 Jakub Jelinek <jakub@redhat.com>
3359
7a289b7d
JJ
3360 PR fortran/88463
3361 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
3362 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
3363
a6ef2ac9
JJ
3364 * testsuite/libgomp.c-c++-common/for-16.c: New test.
3365
9c47a019
AS
33662018-12-12 Andreas Schwab <schwab@suse.de>
3367
3368 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
3369 clobbered.
3370
d0cbb206
TK
33712018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
3372
3373 PR fortran/88411
3374 * testsuite/libgomp.fortran/async_io_8.f90: New test.
3375
84ca08d2
TS
33762018-12-09 Thomas Schwinge <thomas@codesourcery.com>
3377 Jakub Jelinek <jakub@redhat.com>
3378
3379 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
3380 devicep->host2dev_func.
3381
6997628d
JJ
33822018-12-08 Jakub Jelinek <jakub@redhat.com>
3383
3384 PR libgomp/87995
3385 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
3386 tls_runtime effective target.
3387 (t): New threadprivate variable.
3388 (main): Set t in threads which execute iterations of the worksharing
3389 loop. Propagate that to the task after the loop and don't abort
3390 if the current taskgroup hasn't been cancelled.
3391
daa8c1d7
JJ
33922018-12-02 Jakub Jelinek <jakub@redhat.com>
3393
4a82df9a
JJ
3394 * testsuite/libgomp.c/task-reduction-3.c: New test.
3395
daa8c1d7
JJ
3396 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
3397
fe570ff8
CP
33982018-11-30 Cesar Philippidis <cesar@codesourcery.com>
3399
3400 PR libgomp/88288
3401 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
3402 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
3403
c223608f
TS
34042018-11-30 Thomas Schwinge <thomas@codesourcery.com>
3405
3406 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
3407
fc60283c
RB
34082018-10-19 Richard Biener <rguenther@suse.de>
3409
3410 PR tree-optimization/88182
3411 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
3412
ffcf3b79
JJ
34132018-11-26 Jakub Jelinek <jakub@redhat.com>
3414
3415 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
3416 (RUNTEST): Don't define.
3417 (RUNTESTDEFAULTFLAGS): Add.
3418 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
3419 (distclean-am): Depend on distclean-DEJAGNU.
3420 (check-am): If -j% option is present in MFLAGS and if
3421 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
3422 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
3423 * testsuite/Makefile.in: Regenerated.
3424
ef6e6914
RB
34252018-11-26 Richard Biener <rguenther@suse.de>
3426
3427 PR tree-optimization/88182
3428 * testsuite/libgomp.c++/pr88182.C: New testcase.
3429
72d3bb76
JJ
34302018-11-20 Jakub Jelinek <jakub@redhat.com>
3431
3432 PR bootstrap/88106
3433 * config/mingw32/affinity-fmt.c: New file.
3434
207286c3
JJ
34352018-11-09 Jakub Jelinek <jakub@redhat.com>
3436
9666c522
JJ
3437 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
3438 (gomp_display_affinity): Use __builtin_choose_expr to handle
3439 properly handle argument having integral, or pointer or some other
3440 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
3441 with uint64_t type instead of %llx and unsigned long long.
3442
207286c3
JJ
3443 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
3444 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
3445
2033f45b
RO
34462018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3447
3448 * affinity.c: Include <string.h>, <stdio.h>.
3449 (gomp_display_affinity_place): Remove cpusetp.
3450 * teams.c: Include <limits.h>.
3451
28567c40
JJ
34522018-11-08 Jakub Jelinek <jakub@redhat.com>
3453
8991d779
JJ
3454 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
3455 in_reduction clause for s[0].
3456
28567c40
JJ
3457 * affinity.c (gomp_display_affinity_place): New function.
3458 * affinity-fmt.c: New file.
3459 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
3460 * config/linux/affinity.c (gomp_display_affinity_place): New function.
3461 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
3462 Move these functions to ...
3463 * config/nvptx/teams.c: ... here. New file.
3464 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
3465 New functions.
3466 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
3467 functions.
3468 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
3469 and _aligned_malloc.
3470 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
3471 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
3472 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
3473 gomp_affinity_format_len): New variables.
3474 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
3475 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
3476 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
3477 modifiers. Display (non-default) chunk sizes. Print
3478 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
3479 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
3480 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
3481 * fortran.c: Include stdio.h and string.h.
3482 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
3483 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
3484 (omp_set_affinity_format_, omp_get_affinity_format_,
3485 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
3486 omp_pause_resource_all_): New functions.
3487 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
3488 switch.
3489 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
3490 functions to ...
3491 * teams.c: ... here. New file.
3492 * libgomp_g.h: Include gstdint.h.
3493 (GOMP_loop_nonmonotonic_runtime_start,
3494 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
3495 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
3496 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
3497 GOMP_parallel_loop_nonmonotonic_runtime,
3498 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
3499 GOMP_loop_ull_nonmonotonic_runtime_start,
3500 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
3501 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
3502 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
3503 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
3504 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
3505 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
3506 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
3507 GOMP_teams_reg): Declare.
3508 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
3509 gomp_aligned_alloc uses fallback implementation.
3510 (gomp_aligned_alloc, gomp_aligned_free): Declare.
3511 (enum gomp_schedule_type): Add GFS_MONOTONIC.
3512 (struct gomp_doacross_work_share): Add extra field.
3513 (struct gomp_work_share): Add task_reductions field.
3514 (struct gomp_taskgroup): Add workshare and reductions fields.
3515 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
3516 (gomp_thread_handle): New typedef.
3517 (gomp_display_affinity_place, gomp_set_affinity_format,
3518 gomp_display_string, gomp_display_affinity,
3519 gomp_display_affinity_thread): Declare.
3520 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
3521 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
3522 gomp_workshare_task_reduction_register): Declare.
3523 (gomp_team_start): Add taskgroup argument.
3524 (gomp_pause_host): Declare.
3525 (gomp_init_work_share, gomp_work_share_start): Change bool argument
3526 to size_t.
3527 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
3528 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
3529 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
3530 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
3531 GOMP_loop_ull_doacross_start,
3532 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
3533 GOMP_loop_maybe_nonmonotonic_runtime_next,
3534 GOMP_loop_maybe_nonmonotonic_runtime_start,
3535 GOMP_loop_nonmonotonic_runtime_next,
3536 GOMP_loop_nonmonotonic_runtime_start,
3537 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
3538 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
3539 GOMP_loop_ull_nonmonotonic_runtime_next,
3540 GOMP_loop_ull_nonmonotonic_runtime_start,
3541 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
3542 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
3543 GOMP_taskgroup_reduction_register,
3544 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
3545 GOMP_teams_reg and GOMP_taskwait_depend.
3546 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
3547 omp_{capture,display}_affinity{,_}, and
3548 omp_[gs]et_affinity_format{,_}.
3549 * loop.c: Include string.h.
3550 (GOMP_loop_runtime_next): Add ialias.
3551 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
3552 (gomp_loop_static_start, gomp_loop_dynamic_start,
3553 gomp_loop_guided_start, gomp_loop_ordered_static_start,
3554 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3555 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
3556 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
3557 or gomp_doacross_init callers.
3558 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
3559 GOMP_loop_doacross_start): New functions.
3560 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3561 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
3562 Mask off GFS_MONOTONIC bit.
3563 (GOMP_loop_maybe_nonmonotonic_runtime_next,
3564 GOMP_loop_maybe_nonmonotonic_runtime_start,
3565 GOMP_loop_nonmonotonic_runtime_next,
3566 GOMP_loop_nonmonotonic_runtime_start,
3567 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
3568 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
3569 functions.
3570 (gomp_parallel_loop_start): Pass NULL as taskgroup to
3571 gomp_team_start.
3572 * loop_ull.c: Include string.h.
3573 (GOMP_loop_ull_runtime_next): Add ialias.
3574 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
3575 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
3576 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
3577 gomp_loop_ull_ordered_dynamic_start,
3578 gomp_loop_ull_ordered_guided_start,
3579 gomp_loop_ull_doacross_static_start,
3580 gomp_loop_ull_doacross_dynamic_start,
3581 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
3582 and gomp_doacross_ull_init callers.
3583 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
3584 GOMP_loop_ull_doacross_start): New functions.
3585 (GOMP_loop_ull_runtime_start,
3586 GOMP_loop_ull_ordered_runtime_start,
3587 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
3588 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
3589 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
3590 GOMP_loop_ull_nonmonotonic_runtime_next,
3591 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
3592 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
3593 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
3594 (omp_pause_resource_t, omp_depend_t): New typedefs.
3595 (enum omp_lock_hint_t): Renamed to ...
3596 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
3597 enumerators using numbers and omp_lock_hint_* as their aliases.
3598 (omp_lock_hint_t): New typedef. Rename to ...
3599 (omp_sync_hint_t): ... this.
3600 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
3601 omp_sync_hint_t instead of omp_lock_hint_t.
3602 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
3603 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
3604 Declare.
3605 (omp_target_is_present, omp_target_disassociate_ptr):
3606 Change first argument from void * to const void *.
3607 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
3608 from void * to const void *.
3609 (omp_target_associate_ptr): Change first and second arguments from
3610 void * to const void *.
3611 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
3612 omp_pause_hard): New parameters.
3613 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
3614 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
3615 New interfaces.
3616 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
3617 omp_pause_hard): New parameters.
3618 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
3619 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
3620 New externals.
3621 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
3622 EXTRA argument. If not needed to prepare array, if extra is 0,
3623 clear ws->doacross, otherwise allocate just doacross structure and
3624 extra payload. If array is needed, allocate also extra payload.
3625 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
3626 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
3627 doacross == NULL.
3628 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
3629 gomp_team_start.
3630 (GOMP_parallel): Likewise. Formatting fix.
3631 (GOMP_parallel_reductions): New function.
3632 (GOMP_cancellation_point): If taskgroup has workshare
3633 flag set, check cancelled of prev taskgroup if any.
3634 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
3635 on prev taskgroup if any.
3636 * sections.c: Include string.h.
3637 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
3638 (GOMP_sections_start): Adjust gomp_work_share_start caller.
3639 (GOMP_sections2_start): New function.
3640 (GOMP_parallel_sections_start, GOMP_parallel_sections):
3641 Pass NULL as taskgroup to gomp_team_start.
3642 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
3643 gomp_work_share_start callers.
3644 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
3645 If taskgroup has workshare flag set, check cancelled on prev
3646 taskgroup if any. Guard all cancellation tests with
3647 gomp_cancel_var test.
3648 (omp_target_is_present, omp_target_disassociate_ptr):
3649 Change ptr argument from void * to const void *.
3650 (omp_target_memcpy): Change src argument from void * to const void *.
3651 (omp_target_memcpy_rect): Likewise.
3652 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
3653 instead of char * where needed.
3654 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
3655 from void * to const void *.
3656 (omp_pause_resource, omp_pause_resource_all): New functions.
3657 * task.c (gomp_task_handle_depend): Handle new depend array format
3658 in addition to the old. Handle mutexinoutset kinds the same as
3659 inout for now, handle unspecified kinds.
3660 (gomp_create_target_task): If taskgroup has workshare flag set, check
3661 cancelled on prev taskgroup if any. Guard all cancellation tests with
3662 gomp_cancel_var test. Handle new depend array format count in
3663 addition to the old.
3664 (GOMP_task): Likewise. Adjust function comment.
3665 (gomp_task_run_pre): If taskgroup has workshare flag set, check
3666 cancelled on prev taskgroup if any. Guard all cancellation tests with
3667 gomp_cancel_var test.
3668 (GOMP_taskwait_depend): New function.
3669 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
3670 format in addition to the old. Handle mutexinoutset kinds the same as
3671 inout for now, handle unspecified kinds. Fix a function comment typo.
3672 (gomp_taskgroup_init): New function.
3673 (GOMP_taskgroup_start): Use it.
3674 (gomp_reduction_register, gomp_create_artificial_team,
3675 GOMP_taskgroup_reduction_register,
3676 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
3677 gomp_parallel_reduction_register,
3678 gomp_workshare_task_reduction_register,
3679 gomp_workshare_taskgroup_start,
3680 GOMP_workshare_task_reduction_unregister): New functions.
3681 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
3682 check cancelled on prev taskgroup if any. Guard all cancellation
3683 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
3684 by calling GOMP_taskgroup_reduction_register.
3685 * team.c (gomp_thread_attr): Remove comment.
3686 (struct gomp_thread_start_data): Add handle field.
3687 (gomp_thread_start): Call pthread_detach.
3688 (gomp_new_team): Adjust gomp_init_work_share caller.
3689 (gomp_free_pool_helper): Call pthread_detach.
3690 (gomp_team_start): Add taskgroup argument, initialize implicit
3691 tasks' taskgroup field to that. Don't call
3692 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
3693 (gomp_team_end): Determine nesting by thr->ts.level != 0
3694 rather than thr->ts.team != NULL.
3695 (gomp_pause_pool_helper, gomp_pause_host): New functions.
3696 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
3697 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
3698 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
3699 if more than 1 allocate also extra payload at the end of array. Never
3700 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
3701 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
3702 return true instead of ws.
3703 * Makefile.in: Regenerated.
3704 * configure: Regenerated.
3705 * config.h.in: Regenerated.
3706 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
3707 in some cases.
3708 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
3709 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
3710 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
3711 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
3712 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
3713 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
3714 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
3715 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
3716 * testsuite/libgomp.c-c++-common/for-10.c: New test.
3717 * testsuite/libgomp.c-c++-common/for-11.c: New test.
3718 * testsuite/libgomp.c-c++-common/for-12.c: New test.
3719 * testsuite/libgomp.c-c++-common/for-13.c: New test.
3720 * testsuite/libgomp.c-c++-common/for-14.c: New test.
3721 * testsuite/libgomp.c-c++-common/for-15.c: New test.
3722 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
3723 define a different N(test), don't define N(f0) to N(f14), but instead
3724 define N(f20) to N(f34) using != comparisons.
3725 * testsuite/libgomp.c-c++-common/for-7.c: New test.
3726 * testsuite/libgomp.c-c++-common/for-8.c: New test.
3727 * testsuite/libgomp.c-c++-common/for-9.c: New test.
3728 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
3729 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
3730 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
3731 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
3732 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
3733 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
3734 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
3735 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
3736 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
3737 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
3738 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
3739 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
3740 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
3741 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
3742 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
3743 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
3744 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
3745 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
3746 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
3747 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
3748 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
3749 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
3750 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
3751 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
3752 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
3753 * testsuite/libgomp.c++/depend-1.C: New test.
3754 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
3755 * testsuite/libgomp.c++/depobj-1.C: New test.
3756 * testsuite/libgomp.c++/for-16.C: New test.
3757 * testsuite/libgomp.c++/for-21.C: New test.
3758 * testsuite/libgomp.c++/for-22.C: New test.
3759 * testsuite/libgomp.c++/for-23.C: New test.
3760 * testsuite/libgomp.c++/for-24.C: New test.
3761 * testsuite/libgomp.c++/for-25.C: New test.
3762 * testsuite/libgomp.c++/for-26.C: New test.
3763 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
3764 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
3765 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
3766 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
3767 * testsuite/libgomp.c++/task-reduction-10.C: New test.
3768 * testsuite/libgomp.c++/task-reduction-11.C: New test.
3769 * testsuite/libgomp.c++/task-reduction-12.C: New test.
3770 * testsuite/libgomp.c++/task-reduction-13.C: New test.
3771 * testsuite/libgomp.c++/task-reduction-14.C: New test.
3772 * testsuite/libgomp.c++/task-reduction-15.C: New test.
3773 * testsuite/libgomp.c++/task-reduction-16.C: New test.
3774 * testsuite/libgomp.c++/task-reduction-17.C: New test.
3775 * testsuite/libgomp.c++/task-reduction-18.C: New test.
3776 * testsuite/libgomp.c++/task-reduction-19.C: New test.
3777 * testsuite/libgomp.c/task-reduction-1.c: New test.
3778 * testsuite/libgomp.c++/task-reduction-1.C: New test.
3779 * testsuite/libgomp.c/task-reduction-2.c: New test.
3780 * testsuite/libgomp.c++/task-reduction-2.C: New test.
3781 * testsuite/libgomp.c++/task-reduction-3.C: New test.
3782 * testsuite/libgomp.c++/task-reduction-4.C: New test.
3783 * testsuite/libgomp.c++/task-reduction-5.C: New test.
3784 * testsuite/libgomp.c++/task-reduction-6.C: New test.
3785 * testsuite/libgomp.c++/task-reduction-7.C: New test.
3786 * testsuite/libgomp.c++/task-reduction-8.C: New test.
3787 * testsuite/libgomp.c++/task-reduction-9.C: New test.
3788 * testsuite/libgomp.c/teams-1.c: New test.
3789 * testsuite/libgomp.c/teams-2.c: New test.
3790 * testsuite/libgomp.c/thread-limit-4.c: New test.
3791 * testsuite/libgomp.c/thread-limit-5.c: New test.
3792 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
3793
58168bbf
CLT
37942018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
3795
3796 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
3797 acc_memcpy_to/from_device functions, now with async parameter.
3798 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
3799 (acc_memcpy_from_device): Likewise.
3800 (acc_memcpy_to_device_async): New API function.
3801 (acc_memcpy_from_device_async): Likewise.
3802 (present_create_copy): Add async parameter and async setting/unsetting.
3803 (acc_create): Adjust present_create_copy call.
3804 (acc_copyin): Likewise.
3805 (acc_present_or_create): Likewise.
3806 (acc_present_or_copyin): Likewise.
3807 (acc_create_async): New API function.
3808 (acc_copyin_async): New API function.
3809 (delete_copyout): Add async parameter and async setting/unsetting.
3810 (acc_delete): Adjust delete_copyout call.
3811 (acc_copyout): Likewise.
3812 (acc_delete_async): New API function.
3813 (acc_copyout_async): Likewise.
3814 (update_dev_host): Add async parameter and async setting/unsetting.
3815 (acc_update_device): Adjust update_dev_host call.
3816 (acc_update_self): Likewise.
3817 (acc_update_device_async): New API function.
3818 (acc_update_self_async): Likewise.
3819 * openacc.h (acc_copyin_async): Declare new API function.
3820 (acc_create_async): Likewise.
3821 (acc_copyout_async): Likewise.
3822 (acc_delete_async): Likewise.
3823 (acc_update_device_async): Likewise.
3824 (acc_update_self_async): Likewise.
3825 (acc_memcpy_to_device_async): Likewise.
3826 (acc_memcpy_from_device_async): Likewise.
3827 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
3828 (acc_copyin_async_64_h): New subroutine.
3829 (acc_copyin_async_array_h): New subroutine.
3830 (acc_create_async_32_h): New subroutine.
3831 (acc_create_async_64_h): New subroutine.
3832 (acc_create_async_array_h): New subroutine.
3833 (acc_copyout_async_32_h): New subroutine.
3834 (acc_copyout_async_64_h): New subroutine.
3835 (acc_copyout_async_array_h): New subroutine.
3836 (acc_delete_async_32_h): New subroutine.
3837 (acc_delete_async_64_h): New subroutine.
3838 (acc_delete_async_array_h): New subroutine.
3839 (acc_update_device_async_32_h): New subroutine.
3840 (acc_update_device_async_64_h): New subroutine.
3841 (acc_update_device_async_array_h): New subroutine.
3842 (acc_update_self_async_32_h): New subroutine.
3843 (acc_update_self_async_64_h): New subroutine.
3844 (acc_update_self_async_array_h): New subroutine.
3845 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
3846 (acc_copyin_async_64_h): New subroutine.
3847 (acc_copyin_async_array_h): New subroutine.
3848 (acc_create_async_32_h): New subroutine.
3849 (acc_create_async_64_h): New subroutine.
3850 (acc_create_async_array_h): New subroutine.
3851 (acc_copyout_async_32_h): New subroutine.
3852 (acc_copyout_async_64_h): New subroutine.
3853 (acc_copyout_async_array_h): New subroutine.
3854 (acc_delete_async_32_h): New subroutine.
3855 (acc_delete_async_64_h): New subroutine.
3856 (acc_delete_async_array_h): New subroutine.
3857 (acc_update_device_async_32_h): New subroutine.
3858 (acc_update_device_async_64_h): New subroutine.
3859 (acc_update_device_async_array_h): New subroutine.
3860 (acc_update_self_async_32_h): New subroutine.
3861 (acc_update_self_async_64_h): New subroutine.
3862 (acc_update_self_async_array_h): New subroutine.
3863 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
3864 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
3865 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
3866 acc_memcpy_to_device_async*, acc_update_device_async*, and
3867 acc_update_self_async* entries.
3868 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
3869 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
3870 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
3871
22e05272
JM
38722018-10-31 Joseph Myers <joseph@codesourcery.com>
3873
3874 PR bootstrap/82856
3875 * Makefile.am: Include multilib.am
3876 (AUTOMAKE_OPTIONS): Add info-in-builddir.
3877 (CLEANFILES): Remove libgomp.info.
3878 * configure.ac: Remove AC_PREREQ.
3879 * testsuite/Makefile.am (RUNTEST): Remove quotes.
3880 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
3881 Regenerate.
3882
87a5ccfb
JM
38832018-10-29 Joseph Myers <joseph@codesourcery.com>
3884 Julian Brown <julian@codesourcery.com>
3885
3886 * testsuite/libgomp.oacc-c++/this.C: New.
3887
2049befd
CP
38882018-09-18 Cesar Philippidis <cesar@codesourcery.com>
3889
3890 * plugin/plugin-nvptx.c (struct cuda_map): New.
3891 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
3892 h_tail with (cuda_map *) map.
3893 (cuda_map_create): New function.
3894 (cuda_map_destroy): New function.
3895 (map_init): Update to use a linked list of cuda_map objects.
3896 (map_fini): Likewise.
3897 (map_pop): Likewise.
3898 (map_push): Likewise. Return CUdeviceptr instead of void.
3899 (init_streams_for_device): Remove stales references to ptx_stream
3900 members.
3901 (select_stream_for_async): Likewise.
3902 (nvptx_exec): Update call to map_init.
3903
8e36332c
CP
39042018-09-09 Cesar Philippidis <cesar@codesourcery.com>
3905 Julian Brown <julian@codesourcery.com>
3906
3907 PR middle-end/86336
3908 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
3909
2b4c9065
NK
39102018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
3911 Thomas Koenig <tkoenig@gcc.gnu.org>
3912
3913 PR fortran/25829
3914 * testsuite/libgomp.fortran/async_io_1.f90: New test.
3915 * testsuite/libgomp.fortran/async_io_2.f90: New test.
3916 * testsuite/libgomp.fortran/async_io_3.f90: New test.
3917 * testsuite/libgomp.fortran/async_io_4.f90: New test.
3918 * testsuite/libgomp.fortran/async_io_5.f90: New test.
3919 * testsuite/libgomp.fortran/async_io_6.f90: New test.
3920 * testsuite/libgomp.fortran/async_io_7.f90: New test.
3921
bd9b3d3d
CP
39222018-08-13 Cesar Philippidis <cesar@codesourcery.com>
3923 Tom de Vries <tdevries@suse.de>
3924
3925 PR target/85590
3926 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
3927 (cuOccupancyMaxPotentialBlockSize): Declare.
3928 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
3929 CUDA_ONE_CALL_MAYBE_NULL.
3930 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
3931 CUoccupancyB2DSize and declare
3932 cuOccupancyMaxPotentialBlockSize.
3933 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
3934 default num_gangs and num_workers when the driver supports it.
3935
8e09a12f
TV
39362018-08-08 Tom de Vries <tdevries@suse.de>
3937
3938 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
3939 CUDA_ONE_CALL_MAYBE_NULL.
3940 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
3941 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
3942 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
3943 are not found.
3944
cedd9bd0
TV
39452018-08-08 Tom de Vries <tdevries@suse.de>
3946
3947 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
3948 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
3949 present.
3950
b113af95
TV
39512018-08-08 Tom de Vries <tdevries@suse.de>
3952
3953 * plugin/plugin-nvptx.c
3954 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
3955 (nvptx_open_device): Use
3956 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
3957
94767dac
TV
39582018-08-08 Tom de Vries <tdevries@suse.de>
3959
3960 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
3961 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
3962
02150de8
TV
39632018-08-07 Tom de Vries <tdevries@suse.de>
3964
3965 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
3966 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
3967 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
3968 corresponding call in CUDA_ONE_CALL. Add def/undef of
3969 CUDA_ONE_CALL_MAYBE_NULL.
3970 (CUDA_CALL_EXISTS): Define.
3971
9e28b107
TV
39722018-08-07 Tom de Vries <tdevries@suse.de>
3973
3974 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
3975 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
3976 corresponding undefs right after.
3977
09940090
TV
39782018-08-04 Tom de Vries <tdevries@suse.de>
3979
3980 * plugin/configfrag.ac: For --without-cuda-driver, set
3981 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
3982 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
3983 * configure: Regenerate.
3984
77e0a97a
TV
39852018-08-02 Tom de Vries <tdevries@suse.de>
3986
3987 PR target/86660
3988 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
3989 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
3990 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
3991 Same.
3992 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
3993 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
3994 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
3995
701d080a
CP
39962018-08-01 Cesar Philippidis <cesar@codesourcery.com>
3997 Thomas Schwinge <thomas@codesourcery.com>
3998
3999 * config/nvptx/oacc-parallel.c: Truncate.
4000
094db6be
CP
40012018-08-01 Cesar Philippidis <cesar@codesourcery.com>
4002 James Norris <jnorris@codesourcery.com>
4003
4004 * plugin/plugin-nvptx.c (struct map): Removed.
701d080a
CP
4005 (map_init, map_pop): Remove use of struct map.
4006 (map_push): Likewise and change argument list.
094db6be
CP
4007 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
4008
8c6310a2
TV
40092018-08-01 Tom de Vries <tdevries@suse.de>
4010
4011 * plugin/cuda-lib.def: New file. Factor out of ...
4012 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
4013 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
4014 using CUDA_CALLS.
4015
1d4a51cf
AV
40162018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
4017
4018 Revert 'AsyncI/O patch committed'.
4019 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
4020 Thomas Koenig <tkoenig@gcc.gnu.org>
4021
4022 PR fortran/25829
4023 * testsuite/libgomp.fortran/async_io_1.f90: New test.
4024 * testsuite/libgomp.fortran/async_io_2.f90: New test.
4025 * testsuite/libgomp.fortran/async_io_3.f90: New test.
4026 * testsuite/libgomp.fortran/async_io_4.f90: New test.
4027 * testsuite/libgomp.fortran/async_io_5.f90: New test.
4028 * testsuite/libgomp.fortran/async_io_6.f90: New test.
4029 * testsuite/libgomp.fortran/async_io_7.f90: New test.
4030
4cdfee3f
TV
40312018-07-30 Tom de Vries <tdevries@suse.de>
4032
4033 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
4034 (nvptx_exec): Ensure worker and vector default dims don't exceed
4035 targ_fn->max_threads_per_block.
4036
0b210c43
TV
40372018-07-30 Tom de Vries <tdevries@suse.de>
4038
4039 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
4040 (nvptx_open_device): Init default_dims for device.
4041 (nvptx_exec): Use default_dims from device.
4042
5883c5cc
JJ
40432018-07-26 Jakub Jelinek <jakub@redhat.com>
4044
5d36384c
JJ
4045 PR testsuite/86660
4046 * testsuite/libgomp.c++/for-15.C (results): Include it in
4047 omp declare target region.
4048 (main): Use map (always, tofrom: results) instead of
4049 map (tofrom: results).
4050
5883c5cc
JJ
4051 PR middle-end/86660
4052 * testsuite/libgomp.c/pr86660.c: New test.
4053
88a4654d
CP
40542018-07-26 Cesar Philippidis <cesar@codesourcery.com>
4055 Tom de Vries <tdevries@suse.de>
4056
4057 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
4058 sufficient resources to launch a kernel, and give a hint on how to fix
4059 it.
4060
0c6c2f5f
CP
40612018-07-26 Cesar Philippidis <cesar@codesourcery.com>
4062 Tom de Vries <tdevries@suse.de>
4063
4064 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
4065 max_threads_per_block and max_threads_per_multiprocessor fields.
4066 (nvptx_open_device): Initialize new fields.
4067 (nvptx_exec): Use num_sms, and new fields.
4068
6dd58010
TV
40692018-07-26 Tom de Vries <tdevries@suse.de>
4070
4071 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
4072 to correct locations. Remove xfail.
4073
b2eb1779
TV
40742018-07-26 Tom de Vries <tdevries@suse.de>
4075
4076 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
4077 acc_wait. Move acc_async_test calls to correct locations. Remove
4078 xfail.
4079
b1f45884
NK
40802018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
4081 Thomas Koenig <tkoenig@gcc.gnu.org>
4082
4083 PR fortran/25829
4084 * testsuite/libgomp.fortran/async_io_1.f90: New test.
4085 * testsuite/libgomp.fortran/async_io_2.f90: New test.
4086 * testsuite/libgomp.fortran/async_io_3.f90: New test.
4087 * testsuite/libgomp.fortran/async_io_4.f90: New test.
4088 * testsuite/libgomp.fortran/async_io_5.f90: New test.
4089 * testsuite/libgomp.fortran/async_io_6.f90: New test.
4090 * testsuite/libgomp.fortran/async_io_7.f90: New test.
4091
3a106211
JJ
40922018-07-17 Jakub Jelinek <jakub@redhat.com>
4093
a3bccfa1
JJ
4094 PR middle-end/86542
4095 * testsuite/libgomp.c++/pr86542.C: New test.
4096
3a106211
JJ
4097 PR middle-end/86539
4098 * testsuite/libgomp.c++/pr86539.C: New test.
4099
2bae8b2f
JJ
41002018-07-11 Jakub Jelinek <jakub@redhat.com>
4101
4102 PR c++/86443
4103 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
4104 (results): Make sure the variable is not inside declare target region.
4105 (qux): Remove unused function.
4106
0b27c3ed
JJ
41072018-07-10 Jakub Jelinek <jakub@redhat.com>
4108
4109 PR c++/86443
4110 * testsuite/libgomp.c++/for-15.C: New test.
4111
f0391511
JJ
41122018-06-26 Jakub Jelinek <jakub@redhat.com>
4113
4114 PR c++/86291
4115 * testsuite/libgomp.c++/pr86291.C: New test.
4116
1a6d1d24
GP
41172018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
4118
4119 * libgomp.texi (Top): Move www.openmp.org to https.
4120 (Enabling OpenMP): Ditto.
4121 (omp_get_active_level): Ditto.
4122 (omp_get_ancestor_thread_num): Ditto.
4123 (omp_get_cancellation): Ditto.
4124 (omp_get_default_device): Ditto.
4125 (omp_get_dynamic): Ditto.
4126 (omp_get_level): Ditto.
4127 (omp_get_max_active_levels): Ditto.
4128 (omp_get_max_task_priority): Ditto.
4129 (omp_get_max_threads): Ditto.
4130 (omp_get_nested): Ditto.
4131 (omp_get_num_devices): Ditto.
4132 (omp_get_num_procs): Ditto.
4133 (omp_get_num_teams): Ditto.
4134 (omp_get_num_threads): Ditto.
4135 (omp_get_proc_bind): Ditto.
4136 (omp_get_schedule): Ditto.
4137 (omp_get_team_num): Ditto.
4138 (omp_get_team_size): Ditto.
4139 (omp_get_thread_limit): Ditto.
4140 (omp_get_thread_num): Ditto.
4141 (omp_in_parallel): Ditto.
4142 (omp_in_final): Ditto.
4143 (omp_is_initial_device): Ditto.
4144 (omp_set_default_device): Ditto.
4145 (omp_set_dynamic): Ditto.
4146 (omp_set_max_active_levels): Ditto.
4147 (omp_set_nested): Ditto.
4148 (omp_set_num_threads): Ditto.
4149 (omp_set_schedule): Ditto.
4150 (omp_init_lock): Ditto.
4151 (omp_set_lock): Ditto.
4152 (omp_test_lock): Ditto.
4153 (omp_unset_lock): Ditto.
4154 (omp_destroy_lock): Ditto.
4155 (omp_init_nest_lock): Ditto.
4156 (omp_set_nest_lock): Ditto.
4157 (omp_test_nest_lock): Ditto.
4158 (omp_unset_nest_lock): Ditto.
4159 (omp_destroy_nest_lock): Ditto.
4160 (omp_get_wtick): Ditto.
4161 (omp_get_wtime): Ditto.
4162 (OMP_CANCELLATION): Ditto.
4163 (OMP_DISPLAY_ENV): Ditto.
4164 (OMP_DEFAULT_DEVICE): Ditto.
4165 (OMP_DYNAMIC): Ditto.
4166 (OMP_MAX_ACTIVE_LEVELS): Ditto.
4167 (OMP_MAX_TASK_PRIORITY): Ditto.
4168 (OMP_NESTED): Ditto.
4169 (OMP_NUM_THREADS): Ditto.
4170 (OMP_PROC_BIND): Ditto.
4171 (OMP_PLACES): Ditto.
4172 (OMP_STACKSIZE): Ditto.
4173 (OMP_SCHEDULE): Ditto.
4174 (OMP_THREAD_LIMIT): Ditto.
4175 (OMP_WAIT_POLICY): Ditto.
4176
31dd69b7
CP
41772018-06-22 Cesar Philippidis <cesar@codesourcery.com>
4178 James Norris <jnorris@codesourcery.com>
4179 Julian Brown <julian@codesourcery.com>
4180 Thomas Schwinge <thomas@codesourcery.com>
4181 Tom de Vries <tom@codesourcery.com>
4182
4183 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
4184 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
4185 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
4186 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
4187 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
4188 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
4189 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
4190 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
4191 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
4192 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
4193 Likewise.
4194 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
4195 Likewise.
4196 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
4197 Likewise.
4198 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
4199 Likewise.
4200 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
4201 Likewise.
4202 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
4203 Likewise.
4204 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4205 Likewise.
4206 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4207 Likewise.
4208 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4209 Likewise.
4210 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4211 Likewise.
4212 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4213 Likewise.
4214 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
4215 Likewise.
4216 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
4217 Likewise.
4218 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
4219 Likewise.
4220 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
4221 Likewise.
4222 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4223 Likewise.
4224 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4225 Likewise.
4226 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4227 Likewise.
4228 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4229 Likewise.
4230 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4231 Likewise.
4232 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4233 Likewise.
4234 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4235 Likewise.
4236 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4237 Likewise.
4238 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4239 Likewise.
4240 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4241 Likewise.
4242 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4243 Likewise.
4244 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
4245 Likewise.
4246 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
4247 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
4248 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
4249 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
4250 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
4251 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
4252 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
4253 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
4254 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
4255 Likewise.
4256 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
4257 Likewise.
4258 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
4259 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
4260 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
4261 Likewise.
4262 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
4263 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
4264 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
4265 Likewise.
4266 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4267 Likewise.
4268 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4269 Likewise.
4270 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4271 Likewise.
4272 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4273 Likewise.
4274 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
4275 Likewise.
4276 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
4277 Likewise.
4278 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
4279 Likewise.
4280 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
4281 Likewise.
4282 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
4283 Likewise.
4284 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
4285 Likewise.
4286 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
4287 Likewise.
4288 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
4289 Likewise.
4290 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
4291 Likewise.
4292 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
4293 Likewise.
4294 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
4295 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
4296 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
4297 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
4298 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
4299 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
4300 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
4301
829c6349
CLT
43022018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
4303 Thomas Schwinge <thomas@codesourcery.com>
4304 Cesar Philippidis <cesar@codesourcery.com>
4305
4306 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
4307 (gomp_acc_remove_pointer): Update declaration.
4308 (gomp_acc_declare_allocate): Declare.
4309 (gomp_remove_var): Declare.
4310 * libgomp.map (OACC_2.5): Define.
4311 * oacc-mem.c (acc_map_data): Update refcount.
4312 (acc_unmap_data): Likewise.
4313 (present_create_copy): Likewise.
4314 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
4315 (acc_copyin): Likewise.
4316 (FLAG_FINALIZE): Define.
4317 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
4318 (acc_delete_finalize): New function.
4319 (acc_delete_finalize_async): New function.
4320 (acc_copyout_finalize): New function.
4321 (acc_copyout_finalize_async): New function.
4322 (gomp_acc_insert_pointer): Update refcounts.
4323 (gomp_acc_remove_pointer): Return if data is not present on the
4324 accelerator.
4325 * oacc-parallel.c (find_pset): Rename to find_pointer.
4326 (find_pointer): Add support for GOMP_MAP_POINTER.
4327 (handle_ftn_pointers): New function.
4328 (GOACC_parallel_keyed): Update refcounts of variables.
4329 (GOACC_enter_exit_data): Add support for finalized data mappings.
4330 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
4331 of fortran arrays.
4332 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
4333 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
4334 for GOMP_MAP_FORCE_FROM.
4335 * openacc.f90 (module openacc_internal): Add
4336 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
4337 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
4338 acc_copyout_finalize and acc_delete_finalize.
4339 (acc_copyout_finalize_32_h): New subroutine.
4340 (acc_copyout_finalize_64_h): New subroutine.
4341 (acc_copyout_finalize_array_h): New subroutine.
4342 (acc_delete_finalize_32_h): New subroutine.
4343 (acc_delete_finalize_64_h): New subroutine.
4344 (acc_delete_finalize_array_h): New subroutine.
4345 * openacc.h (acc_copyout_finalize): Declare.
4346 (acc_copyout_finalize_async): Declare.
4347 (acc_delete_finalize): Declare.
4348 (acc_delete_finalize_async): Declare.
4349 * openacc_lib.h (acc_copyout_finalize): New interface.
4350 (acc_delete_finalize): New interface.
4351 * target.c (gomp_map_vars): Update dynamic_refcount.
4352 (gomp_remove_var): New function.
4353 (gomp_unmap_vars): Use it.
4354 (gomp_unload_image_from_device): Likewise.
4355 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
4356 case to utilize OpenACC 2.5 data clause semantics.
4357 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
4358 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
4359 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
4360 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
4361 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
4362 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
4363 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
4364 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
4365 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
4366 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
4367 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
4368 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
4369 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
4370 utilize OpenACC 2.5 data clause semantics.
4371 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
4372 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
4373 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
4374 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
4375 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
4376 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
4377 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
4378 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
4379 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4380
4358400b
JW
43812018-05-21 Janus Weil <janus@gcc.gnu.org>
4382
4383 PR fortran/85841
4384 PR testsuite/85865
4385 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
4386 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
4387 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
4388 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
4389 * testsuite/libgomp.fortran/task2.f90: Ditto.
4390 * testsuite/libgomp.fortran/vla1.f90: Ditto.
4391 * testsuite/libgomp.fortran/vla2.f90: Ditto.
4392 * testsuite/libgomp.fortran/vla3.f90: Ditto.
4393 * testsuite/libgomp.fortran/vla4.f90: Ditto.
4394 * testsuite/libgomp.fortran/vla5.f90: Ditto.
4395 * testsuite/libgomp.fortran/vla6.f90: Ditto.
4396 * testsuite/libgomp.fortran/vla8.f90: Ditto.
4397 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
4398 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
4399
950ad0ba
CP
44002018-05-18 Cesar Philippidis <cesar@codesourcery.com>
4401
4402 PR c++/85782
4403 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
4404
f5ad16f1
TV
44052018-05-09 Tom de Vries <tom@codesourcery.com>
4406
4407 PR libgomp/82901
4408 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
4409 to GOACC_enter_exit_data.
4410
edbd038a
TV
44112018-05-09 Tom de Vries <tom@codesourcery.com>
4412
4413 PR libgomp/83792
4414 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
4415 (async_synchronous_p): New function.
4416 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
4417 async_valid_p.
4418 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
4419 async_valid_stream_id_p.
4420 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
4421 * oacc-parallel.c (GOACC_parallel_keyed): Same.
4422
37d6c719
TV
44232018-05-07 Tom de Vries <tom@codesourcery.com>
4424
4425 PR testsuite/85677
4426 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
4427 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
4428
63f12215
TV
44292018-05-03 Tom de Vries <tom@codesourcery.com>
4430
4431 PR testsuite/85106
4432 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
4433 extra_tool_flags if it contains an -foffload=-fdump-* flag.
4434 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
4435 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
4436
ec00d3fa
TV
44372018-05-02 Tom de Vries <tom@codesourcery.com>
4438
4439 PR libgomp/85411
4440 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
4441 GOMP_OPENACC_DIM ...
4442 * env.c (parse_gomp_openacc_dim): ... here. New function.
4443 (initialize_env): Call parse_gomp_openacc_dim.
4444 (goacc_default_dims): Define.
4445 * libgomp.h (goacc_default_dims): Declare.
4446 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
4447 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
4448 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
4449 GOMP_PLUGIN_acc_default_dim.
4450 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
4451 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
4452
92243e7c
TV
44532018-05-02 Tom de Vries <tom@codesourcery.com>
4454
4455 PR testsuite/83791
4456 * testsuite/libgomp.c++/udr-9.C: Update.
4457 * testsuite/libgomp.c++/atomic-16.C: Remove.
4458 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
4459 * testsuite/libgomp.c++/loop-13.C: Remove.
4460 * testsuite/libgomp.c++/loop-14.C: Remove.
4461 * testsuite/libgomp.c++/loop-15.C: Remove.
4462 * testsuite/libgomp.c++/monotonic-1.C: Remove.
4463 * testsuite/libgomp.c++/monotonic-2.C: Remove.
4464 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
4465 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
4466 * testsuite/libgomp.c++/ordered-1.C: Remove.
4467 * testsuite/libgomp.c++/pr45784.C: Remove.
4468 * testsuite/libgomp.c++/pr64824.C: Remove.
4469 * testsuite/libgomp.c++/pr64868.C: Remove.
4470 * testsuite/libgomp.c++/pr66199-1.C: Remove.
4471 * testsuite/libgomp.c++/pr66199-2.C: Remove.
4472 * testsuite/libgomp.c++/pr66199-3.C: Remove.
4473 * testsuite/libgomp.c++/pr66199-4.C: Remove.
4474 * testsuite/libgomp.c++/pr66199-5.C: Remove.
4475 * testsuite/libgomp.c++/pr66199-6.C: Remove.
4476 * testsuite/libgomp.c++/pr66199-7.C: Remove.
4477 * testsuite/libgomp.c++/pr66199-8.C: Remove.
4478 * testsuite/libgomp.c++/pr66199-9.C: Remove.
4479 * testsuite/libgomp.c++/pr69389.C: Remove.
4480 * testsuite/libgomp.c++/simd10.C: Remove.
4481 * testsuite/libgomp.c++/simd11.C: Remove.
4482 * testsuite/libgomp.c++/simd12.C: Remove.
4483 * testsuite/libgomp.c++/simd13.C: Remove.
4484 * testsuite/libgomp.c++/target-1.C: Remove.
4485 * testsuite/libgomp.c++/target-3.C: Remove.
4486 * testsuite/libgomp.c++/target-4.C: Remove.
4487 * testsuite/libgomp.c++/target-5.C: Remove.
4488 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
4489 * testsuite/libgomp.c++/taskloop-1.C: Remove.
4490 * testsuite/libgomp.c++/taskloop-2.C: Remove.
4491 * testsuite/libgomp.c++/taskloop-3.C: Remove.
4492 * testsuite/libgomp.c++/taskloop-4.C: Remove.
4493 * testsuite/libgomp.c++/udr-9.C: Remove.
4494 * testsuite/libgomp.c++/for-10.C: Remove.
4495 * testsuite/libgomp.c++/for-11.C: Remove.
4496 * testsuite/libgomp.c++/for-12.C: Remove.
4497 * testsuite/libgomp.c++/for-13.C: Remove.
4498 * testsuite/libgomp.c++/for-14.C: Remove.
4499 * testsuite/libgomp.c++/for-9.C: Remove.
4500 * testsuite/libgomp.c/atomic-18.c: Move ...
4501 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
4502 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
4503 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
4504 * testsuite/libgomp.c/loop-13.c: Move ...
4505 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
4506 * testsuite/libgomp.c/loop-14.c: Move ...
4507 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
4508 * testsuite/libgomp.c/loop-15.c: Remove.
4509 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
4510 * testsuite/libgomp.c/monotonic-1.c: Move ...
4511 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
4512 * testsuite/libgomp.c/monotonic-2.c: Move ...
4513 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
4514 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
4515 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
4516 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
4517 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
4518 * testsuite/libgomp.c/ordered-4.c: Move ...
4519 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
4520 * testsuite/libgomp.c/pr45784.c: Move ...
4521 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
4522 * testsuite/libgomp.c/pr64824.c: Move ...
4523 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
4524 * testsuite/libgomp.c/pr64868.c: Move ...
4525 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
4526 * testsuite/libgomp.c/pr66199-1.c: Move ...
4527 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
4528 * testsuite/libgomp.c/pr66199-2.c: Move ...
4529 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
4530 * testsuite/libgomp.c/pr66199-3.c: Move ...
4531 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
4532 * testsuite/libgomp.c/pr66199-4.c: Move ...
4533 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
4534 * testsuite/libgomp.c/pr66199-5.c: Move ...
4535 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
4536 * testsuite/libgomp.c/pr66199-6.c: Move ...
4537 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
4538 * testsuite/libgomp.c/pr66199-7.c: Move ...
4539 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
4540 * testsuite/libgomp.c/pr66199-8.c: Move ...
4541 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
4542 * testsuite/libgomp.c/pr66199-9.c: Move ...
4543 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
4544 * testsuite/libgomp.c/pr69389.c: Move ...
4545 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
4546 * testsuite/libgomp.c/simd-14.c: Move ...
4547 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
4548 * testsuite/libgomp.c/simd-15.c: Move ...
4549 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
4550 * testsuite/libgomp.c/simd-16.c: Move ...
4551 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
4552 * testsuite/libgomp.c/simd-17.c: Move ...
4553 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
4554 * testsuite/libgomp.c/target-1.c: Move ...
4555 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
4556 * testsuite/libgomp.c/target-10.c: Move ...
4557 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
4558 * testsuite/libgomp.c/target-13.c: Move ...
4559 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
4560 * testsuite/libgomp.c/target-2.c: Move ...
4561 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
4562 * testsuite/libgomp.c/taskgroup-1.c: Move ...
4563 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
4564 * testsuite/libgomp.c/taskloop-1.c: Move ...
4565 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
4566 * testsuite/libgomp.c/taskloop-2.c: Move ...
4567 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
4568 * testsuite/libgomp.c/taskloop-3.c: Move ...
4569 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
4570 * testsuite/libgomp.c/taskloop-4.c: Move ...
4571 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
4572 * testsuite/libgomp.c/udr-1.c: Move ...
4573 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
4574 * testsuite/libgomp.c/for-1.c: Move ...
4575 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
4576 * testsuite/libgomp.c/for-1.h: Move ...
4577 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
4578 * testsuite/libgomp.c/for-2.c: Move ...
4579 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
4580 * testsuite/libgomp.c/for-2.h: Move ...
4581 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
4582 * testsuite/libgomp.c/for-3.c: Move ...
4583 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
4584 * testsuite/libgomp.c/for-4.c: Move ...
4585 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
4586 * testsuite/libgomp.c/for-5.c: Move ...
4587 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
4588 * testsuite/libgomp.c/for-6.c: Move ...
4589 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
4590
1f62d637
TV
45912018-05-02 Tom de Vries <tom@codesourcery.com>
4592
4593 PR libgomp/82428
4594 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
4595 __builtin_goacc_parlevel_{id,size}.
4596 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
4597 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
4598 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
4599 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
4600 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
4601 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
4602 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
4603 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
4604 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
4605 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
4606 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
4607 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
4608 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
4609 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
4610 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
4611 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
4612 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
4613 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
4614 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
4615 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
4616 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
4617 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
4618 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
4619
9220b511
TV
46202018-05-02 Tom de Vries <tom@codesourcery.com>
4621
4622 PR testsuite/85106
4623 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
4624
6c3c13c1
TV
46252018-05-02 Tom de Vries <tom@codesourcery.com>
4626
4627 PR testsuite/85106
4628 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
4629
8d70b61e
JB
46302018-04-29 Julian Brown <julian@codesourcery.com>
4631 Tom de Vries <tom@codesourcery.com>
4632
4633 PR testsuite/85527
4634 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
4635 arbitrary order for iterations of atomic subtract check.
4636
4a57a4b6
TV
46372018-04-28 Tom de Vries <tom@codesourcery.com>
4638
4639 PR testsuite/85527
4640 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
4641 atomic capture results obtained in parallel loop to an array, instead of
4642 to a scalar.
4643
df36a3d3
TV
46442018-04-26 Tom de Vries <tom@codesourcery.com>
4645
4646 PR libgomp/84020
4647 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
4648 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
4649 (process_GOMP_NVPTX_JIT): New function.
4650 (link_ptx): Use process_GOMP_NVPTX_JIT.
4651
d160ae78
RB
46522018-04-26 Richard Biener <rguenther@suse.de>
4653 Tom de Vries <tom@codesourcery.com>
4654
4655 PR lto/85422
4656 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
4657
ca9dc642
TV
46582018-04-26 Tom de Vries <tom@codesourcery.com>
4659
4660 PR target/85519
4661 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
4662 recursion depth from 25 to 23.
4663 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
4664
7b47ecf2
L
46652018-04-24 H.J. Lu <hongjiu.lu@intel.com>
4666
4667 * configure: Regenerated.
4668
e91eba31
NS
46692018-04-20 Nathan Sidwell <nathan@codesourcery.com>
4670 Tom de Vries <tom@codesourcery.com>
4671
4672 PR target/85445
4673 * testsuite/libgomp.oacc-c++/ref-1.C: New.
4674
6e0d40b6
TS
46752018-04-19 Thomas Schwinge <thomas@codesourcery.com>
4676
4677 PR libgomp/85463
4678 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
4679 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
4680 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
4681 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
4682 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
4683 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
4684
4685 PR libfortran/85166
4686 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
4687 abort".
4688 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
4689
a0e1df88
JJ
46902018-04-19 Jakub Jelinek <jakub@redhat.com>
4691
4692 * configure: Regenerated.
4693
001ddaa8
DM
46942018-04-18 David Malcolm <dmalcolm@redhat.com>
4695
4696 PR jit/85384
4697 * configure: Regenerate.
4698
05e0af43
CP
46992018-04-16 Cesar Philippidis <cesar@codesourcery.com>
4700 Tom de Vries <tom@codesourcery.com>
4701
4702 PR middle-end/84955
4703 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
4704 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
4705
bc436e10
TK
47062018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
4707
4708 PR fortran/83064
4709 PR testsuite/85346
4710 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
4711 test from gfortran.dg to here.
4712
ffb164c7
JJ
47132018-04-12 Cesar Philippidis <cesar@codesourcery.com>
4714
4715 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
4716 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
4717
47182018-04-12 Cesar Philippidis <cesar@codesourcery.com>
4719
4720 PR middle-end/84955
4721 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
4722 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
4723
2ba16fd2
TV
47242018-04-05 Tom de Vries <tom@codesourcery.com>
4725
4726 PR target/85204
4727 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
4728
46dbeb40
TV
47292018-03-26 Tom de Vries <tom@codesourcery.com>
4730
4731 PR tree-optimization/85063
4732 * testsuite/libgomp.c/switch-conversion-2.c: New test.
4733 * testsuite/libgomp.c/switch-conversion.c: New test.
4734 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
4735 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
4736
bfc24e32
TK
47372018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
4738
4739 PR fortran/84381
4740 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
4741 call abort by STOP n.
4742 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
4743 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
4744 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
4745 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
4746 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
4747 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
4748 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
4749 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
4750 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
4751 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
4752 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
4753 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
4754 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
4755 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
4756 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
4757 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
4758 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
4759 * testsuite/libgomp.fortran/associate1.f90: Likewise.
4760 * testsuite/libgomp.fortran/associate2.f90: Likewise.
4761 * testsuite/libgomp.fortran/associate3.f90: Likewise.
4762 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
4763 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
4764 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
4765 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
4766 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
4767 * testsuite/libgomp.fortran/character1.f90: Likewise.
4768 * testsuite/libgomp.fortran/character2.f90: Likewise.
4769 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
4770 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
4771 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
4772 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
4773 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
4774 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
4775 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
4776 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
4777 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
4778 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
4779 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
4780 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
4781 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
4782 * testsuite/libgomp.fortran/do1.f90: Likewise.
4783 * testsuite/libgomp.fortran/do2.f90: Likewise.
4784 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
4785 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
4786 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
4787 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
4788 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
4789 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
4790 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
4791 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
4792 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
4793 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
4794 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
4795 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
4796 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
4797 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
4798 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
4799 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
4800 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
4801 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
4802 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
4803 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
4804 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
4805 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
4806 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
4807 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
4808 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
4809 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
4810 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
4811 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
4812 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
4813 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
4814 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
4815 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
4816 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
4817 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
4818 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
4819 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
4820 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
4821 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
4822 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
4823 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
4824 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
4825 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
4826 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
4827 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
4828 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
4829 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
4830 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
4831 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
4832 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
4833 * testsuite/libgomp.fortran/lib1.f90: Likewise.
4834 * testsuite/libgomp.fortran/lib2.f: Likewise.
4835 * testsuite/libgomp.fortran/lib3.f: Likewise.
4836 * testsuite/libgomp.fortran/lib4.f90: Likewise.
4837 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
4838 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
4839 * testsuite/libgomp.fortran/nested1.f90: Likewise.
4840 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
4841 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
4842 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
4843 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
4844 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
4845 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
4846 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
4847 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
4848 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
4849 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
4850 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
4851 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
4852 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
4853 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
4854 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
4855 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
4856 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
4857 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
4858 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
4859 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
4860 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
4861 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
4862 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
4863 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
4864 * testsuite/libgomp.fortran/pr25162.f: Likewise.
4865 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
4866 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
4867 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
4868 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
4869 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
4870 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
4871 * testsuite/libgomp.fortran/pr28390.f: Likewise.
4872 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
4873 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
4874 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
4875 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
4876 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
4877 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
4878 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
4879 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
4880 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
4881 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
4882 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
4883 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
4884 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
4885 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
4886 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
4887 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
4888 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
4889 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
4890 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
4891 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
4892 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
4893 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
4894 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
4895 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
4896 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
4897 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
4898 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
4899 * testsuite/libgomp.fortran/reference1.f90: Likewise.
4900 * testsuite/libgomp.fortran/reference2.f90: Likewise.
4901 * testsuite/libgomp.fortran/retval1.f90: Likewise.
4902 * testsuite/libgomp.fortran/retval2.f90: Likewise.
4903 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
4904 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
4905 * testsuite/libgomp.fortran/simd1.f90: Likewise.
4906 * testsuite/libgomp.fortran/simd2.f90: Likewise.
4907 * testsuite/libgomp.fortran/simd3.f90: Likewise.
4908 * testsuite/libgomp.fortran/simd4.f90: Likewise.
4909 * testsuite/libgomp.fortran/simd5.f90: Likewise.
4910 * testsuite/libgomp.fortran/simd6.f90: Likewise.
4911 * testsuite/libgomp.fortran/simd7.f90: Likewise.
4912 * testsuite/libgomp.fortran/stack.f90: Likewise.
4913 * testsuite/libgomp.fortran/strassen.f90: Likewise.
4914 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
4915 * testsuite/libgomp.fortran/tabs2.f: Likewise.
4916 * testsuite/libgomp.fortran/target1.f90: Likewise.
4917 * testsuite/libgomp.fortran/target2.f90: Likewise.
4918 * testsuite/libgomp.fortran/target3.f90: Likewise.
4919 * testsuite/libgomp.fortran/target4.f90: Likewise.
4920 * testsuite/libgomp.fortran/target5.f90: Likewise.
4921 * testsuite/libgomp.fortran/target6.f90: Likewise.
4922 * testsuite/libgomp.fortran/target7.f90: Likewise.
4923 * testsuite/libgomp.fortran/target8.f90: Likewise.
4924 * testsuite/libgomp.fortran/task1.f90: Likewise.
4925 * testsuite/libgomp.fortran/task2.f90: Likewise.
4926 * testsuite/libgomp.fortran/task3.f90: Likewise.
4927 * testsuite/libgomp.fortran/task4.f90: Likewise.
4928 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
4929 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
4930 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
4931 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
4932 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
4933 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
4934 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
4935 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
4936 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
4937 * testsuite/libgomp.fortran/udr1.f90: Likewise.
4938 * testsuite/libgomp.fortran/udr10.f90: Likewise.
4939 * testsuite/libgomp.fortran/udr11.f90: Likewise.
4940 * testsuite/libgomp.fortran/udr12.f90: Likewise.
4941 * testsuite/libgomp.fortran/udr13.f90: Likewise.
4942 * testsuite/libgomp.fortran/udr14.f90: Likewise.
4943 * testsuite/libgomp.fortran/udr15.f90: Likewise.
4944 * testsuite/libgomp.fortran/udr2.f90: Likewise.
4945 * testsuite/libgomp.fortran/udr3.f90: Likewise.
4946 * testsuite/libgomp.fortran/udr4.f90: Likewise.
4947 * testsuite/libgomp.fortran/udr5.f90: Likewise.
4948 * testsuite/libgomp.fortran/udr6.f90: Likewise.
4949 * testsuite/libgomp.fortran/udr7.f90: Likewise.
4950 * testsuite/libgomp.fortran/udr8.f90: Likewise.
4951 * testsuite/libgomp.fortran/udr9.f90: Likewise.
4952 * testsuite/libgomp.fortran/vla1.f90: Likewise.
4953 * testsuite/libgomp.fortran/vla2.f90: Likewise.
4954 * testsuite/libgomp.fortran/vla3.f90: Likewise.
4955 * testsuite/libgomp.fortran/vla4.f90: Likewise.
4956 * testsuite/libgomp.fortran/vla5.f90: Likewise.
4957 * testsuite/libgomp.fortran/vla6.f90: Likewise.
4958 * testsuite/libgomp.fortran/vla7.f90: Likewise.
4959 * testsuite/libgomp.fortran/vla8.f90: Likewise.
4960 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
4961 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
4962 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
4963 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
4964 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4965 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4966 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4967 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4968 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4969 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4970 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
4971 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
4972 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
4973 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
4974 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
4975 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
4976 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
4977 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
4978 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
4979 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
4980 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
4981 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
4982 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
4983 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
4984 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
4985 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
4986 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
4987 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
4988 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
4989 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
4990 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
4991 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4992 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4993 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4994 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4995 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4996 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
4997 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
4998 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
4999 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5000 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
5001 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
5002 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
5003 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
5004 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
5005 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
5006 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
5007 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
5008 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
5009 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
5010 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
5011 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
5012 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
5013 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
5014 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
5015 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
5016 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
5017 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
5018 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
5019 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
5020 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
5021 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
5022 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
5023 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
5024 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
5025 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
5026 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
5027 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5028 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5029 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
5030 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
5031 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
5032 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
5033 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
5034 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5035 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
5036 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5037 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
5038 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
5039 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
5040 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5041 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5042 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
5043 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
5044 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
5045 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
5046 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
5047 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
5048 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
5049 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5050 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
5051 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
5052 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
5053 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
5054
79cf14ae
RB
50552018-03-20 Richard Biener <rguenther@suse.de>
5056
5057 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
5058 parallelizable loop.
5059
14e335ed
IT
50602018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
5061
5062 PR target/84148
5063 * configure: Regenerate.
5064
83d9be55
JJ
50652018-02-16 Jakub Jelinek <jakub@redhat.com>
5066
5067 PR fortran/84418
5068 * libgomp.fortran/pr84418-1.f90: New test.
5069 * libgomp.fortran/pr84418-2.f90: New test.
5070
d1fe6124
JJ
50712018-02-14 Jakub Jelinek <jakub@redhat.com>
5072
5073 PR fortran/84313
5074 * testsuite/libgomp.fortran/threadprivate4.f90: Add
5075 -std=f2003 -fall-intrinsics into dg-additional-options.
5076
3d224921
MJ
50772018-02-08 Martin Jambor <mjambor@suse.cz>
5078
5079 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
5080 clonable.
5081
c7c30edd
MJ
50822018-02-08 Martin Jambor <mjambor@suse.cz>
5083
5084 * testsuite/libgomp.hsa.c/staticvar.c: New test.
5085
f320fdfd
RO
50862018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5087
5088 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
5089 [__cplusplus]: Declare extern "C".
5090
c31bc4ac
TV
50912018-02-07 Tom de Vries <tom@codesourcery.com>
5092
5093 PR libgomp/84217
5094 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
5095
99ae7ce5
CS
50962018-01-29 Christoph Spiel <cspiel@freenet.de>
5097 Jakub Jelinek <jakub@redhat.com>
5098
5099 PR libgomp/84096
5100 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
5101 instead of omp_lock_t.
5102
e77a1236
TV
51032018-01-25 Tom de Vries <tom@codesourcery.com>
5104
5105 PR target/84028
5106 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
5107
3dede32b
TV
51082018-01-24 Tom de Vries <tom@codesourcery.com>
5109
5110 PR target/83589
5111 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
5112
be606483
TV
51132018-01-24 Tom de Vries <tom@codesourcery.com>
5114
5115 PR target/81352
5116 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
5117
8c8e9a6b
TV
51182018-01-19 Tom de Vries <tom@codesourcery.com>
5119 Cesar Philippidis <cesar@codesourcery.com>
5120
5121 PR target/83920
5122 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
5123 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
5124
65e6aea3
JJ
51252018-01-03 Jakub Jelinek <jakub@redhat.com>
5126
85ec4feb
JJ
5127 Update copyright years.
5128
65e6aea3
JJ
5129 * libgomp.texi: Bump @copying's copyright year.
5130
60bf575c
TV
51312017-12-30 Tom de Vries <tom@codesourcery.com>
5132
5133 PR libgomp/83046
5134 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
5135 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
5136
7ec16b79
TV
51372017-12-27 Tom de Vries <tom@codesourcery.com>
5138
5139 PR c++/83046
5140 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
5141 (test_nonstatic): Fix return type to workaround PR83046.
5142
ac550b9a
JJ
51432017-12-05 Jakub Jelinek <jakub@redhat.com>
5144
5145 PR testsuite/83281
5146 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
5147 j suffix instead of i.
5148 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
5149 Likewise.
5150
ebdc83f0
CP
51512017-12-01 Cesar Philippidis <cesar@codesourcery.com>
5152
5153 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
5154 call to acc_wait (1).
5155
3b3e6283
JJ
51562017-11-24 Jakub Jelinek <jakub@redhat.com>
5157
5158 PR fortran/81304
5159 * testsuite/libgomp.fortran/pr81304.f90: New test.
5160
3b575376
JJ
51612017-11-23 Jakub Jelinek <jakub@redhat.com>
5162
5163 PR fortran/81841
5164 * libgomp.fortran/pr81841.f90: New test.
5165
b13547d8
JJ
51662017-11-22 Jakub Jelinek <jakub@redhat.com>
5167
5168 PR libgomp/83106
5169 * target.c (gomp_target_init): Compute lengths just once and
5170 use them in both malloc size and subsequent copying.
5171
efe33ced
IT
51722017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
5173
5174 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
5175 * acinclude.m4: Add cet.m4.
5176 * configure: Regenerate.
5177 * Makefile.in: Likewise.
5178 * testsuite/Makefile.in: Likewise.
5179
a7cf2612
TV
51802017-11-15 Tom de Vries <tom@codesourcery.com>
5181
5182 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
5183 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
5184 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
5185 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
5186 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
5187 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
5188
dde76623
TV
51892017-11-14 Tom de Vries <tom@codesourcery.com>
5190
5191 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
5192 non-nvidia devices.
5193
4dbeb716
JJ
51942017-11-07 Jakub Jelinek <jakub@redhat.com>
5195
5196 PR c++/82835
5197 * testsuite/libgomp.c++/pr82835.C: New test.
5198
454f8b2b
ML
51992017-11-06 Martin Liska <mliska@suse.cz>
5200
5201 * testsuite/libgomp.c++/loop-2.C: Return a value
5202 for functions with non-void return type, or change type to void,
5203 or add -Wno-return-type for test.
5204 * testsuite/libgomp.c++/loop-4.C: Likewise.
5205 * testsuite/libgomp.c++/parallel-1.C: Likewise.
5206 * testsuite/libgomp.c++/shared-1.C: Likewise.
5207 * testsuite/libgomp.c++/single-1.C: Likewise.
5208 * testsuite/libgomp.c++/single-2.C: Likewise.
5209
12e9c8ce
TV
52102017-10-31 Tom de Vries <tom@codesourcery.com>
5211
5212 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
5213 "do {} while (false)".
5214 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
5215 after HSA_DEBUG call.
5216
7324369a
JJ
52172017-10-28 Jakub Jelinek <jakub@redhat.com>
5218
5219 * target.c (struct gomp_coalesce_buf): New type.
5220 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
5221 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
5222 (gomp_copy_host2dev): Add CBUF argument, if copying into
5223 the cached ranges, memcpy into buffer instead of copying
5224 into device.
5225 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
5226 Add CBUF argument, pass it through to other calls.
5227 (gomp_map_vars): Aggregate copies from host to device if small enough
5228 and with small enough gaps in between into memcpy into a buffer and
5229 fewer host to device copies from the buffer.
5230 (gomp_update): Adjust gomp_copy_host2dev caller.
5231
933ab0e6
TS
52322017-10-17 Thomas Schwinge <thomas@codesourcery.com>
5233
5234 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
5235 run" directive.
5236 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
5237 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
5238 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
5239 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
5240
92d5d01a
TV
52412017-10-16 Tom de Vries <tom@codesourcery.com>
5242
5243 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
5244 openacc_nvidia_accel_selected.
5245 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
5246 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
5247 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
5248 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
5249 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
5250 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
5251 openacc_nvidia_accel_selected. Skip for shared memory device.
5252 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
5253 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
5254
191411e4
MJ
52552017-10-09 Martin Jambor <mjambor@suse.cz>
5256
5257 PR hsa/82416
5258 * testsuite/libgomp.hsa.c/pr82416.c: New test.
5259
e923330e
TV
52602017-10-07 Tom de Vries <tom@codesourcery.com>
5261
5262 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
5263 Remove acc_device_nvidia references.
5264 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
5265 Same.
5266
8fe3ed4c
TV
52672017-10-05 Tom de Vries <tom@codesourcery.com>
5268
5269 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
5270 vector_length(32) clause from acc parallel directive.
5271 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
5272
26596ee5
TV
52732017-10-04 Tom de Vries <tom@codesourcery.com>
5274
5275 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
5276 (main): Reduce sum of arr elements. Assert that hres is exactly
5277 representable in 32-bit floating point.
5278 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
5279 (main): Reduce sum of arr elements. Assert that hres and hmres are
5280 exactly representable in 32-bit floating point.
5281 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
5282
5c561fa9
TV
52832017-09-28 Tom de Vries <tom@codesourcery.com>
5284
5285 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
5286 setting.
5287 * testsuite/libgomp.c++/pr69393.C: Same.
5288 * testsuite/libgomp.c++/taskloop-1.C: Same.
5289 * testsuite/libgomp.c++/taskloop-3.C: Same.
5290 * testsuite/libgomp.c++/taskloop-4.C: Same.
5291 * testsuite/libgomp.c/for-4.c: Same.
5292 * testsuite/libgomp.c/pr66199-3.c: Same.
5293 * testsuite/libgomp.c/pr66199-4.c: Same.
5294 * testsuite/libgomp.c/pr66199-6.c: Same.
5295 * testsuite/libgomp.c/taskloop-1.c: Same.
5296 * testsuite/libgomp.c/taskloop-3.c: Same.
5297 * testsuite/libgomp.c/taskloop-4.c: Same.
5298 * testsuite/libgomp.fortran/aligned1.f03: Same.
5299 * testsuite/libgomp.fortran/condinc1.f: Same.
5300 * testsuite/libgomp.fortran/condinc3.f90: Same.
5301 * testsuite/libgomp.fortran/crayptr1.f90: Same.
5302 * testsuite/libgomp.fortran/crayptr2.f90: Same.
5303 * testsuite/libgomp.fortran/crayptr3.f90: Same.
5304 * testsuite/libgomp.fortran/omp_cond1.f: Same.
5305 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
5306 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
5307 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
5308 * testsuite/libgomp.fortran/recursion1.f90: Same.
5309 * testsuite/libgomp.fortran/target2.f90: Same.
5310 * testsuite/libgomp.fortran/target5.f90: Same.
5311 * testsuite/libgomp.fortran/task3.f90: Same.
5312
7d6206fe
TV
53132017-09-28 Tom de Vries <tom@codesourcery.com>
5314
5315 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
5316 vector_length(32) clause from acc parallel directive.
5317 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
5318
84c8627c
TV
53192017-09-27 Tom de Vries <tom@codesourcery.com>
5320
5321 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
5322 Remove acc_device_nvidia references.
5323
ebc6a85e
TV
53242017-09-16 Tom de Vries <tom@codesourcery.com>
5325
5326 PR c/81875
5327 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
5328
82419efb
TV
53292017-09-14 Tom de Vries <tom@codesourcery.com>
5330
5331 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
5332 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
5333 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
5334 * testsuite/libgomp.c/c.exp: Include test-cases from
5335 libgomp.c-c++-common.
5336 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
5337 files.
5338
8b586510
JJ
53392017-09-14 Jakub Jelinek <jakub@redhat.com>
5340
5341 PR c++/81314
5342 * testsuite/libgomp.c++/pr81314.C: New test.
5343
9651fbaf
GP
53442017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
5345
5346 * libgomp.texi (Top): www.openacc.org now uses https.
5347 (Enabling OpenACC): Ditto.
5348 (acc_get_num_devices): Ditto.
5349 (acc_set_device_type): Ditto.
5350 (acc_get_device_type): Ditto.
5351 (acc_set_device_num): Ditto.
5352 (acc_get_device_num): Ditto.
5353 (acc_async_test): Ditto.
5354 (acc_async_test_all): Ditto.
5355 (acc_wait): Ditto.
5356 (acc_wait_all): Ditto.
5357 (acc_wait_all_async): Ditto.
5358 (acc_wait_async): Ditto.
5359 (acc_init): Ditto.
5360 (acc_shutdown): Ditto.
5361 (acc_on_device): Ditto.
5362 (acc_malloc): Ditto.
5363 (acc_free): Ditto.
5364 (acc_copyin): Ditto.
5365 (acc_present_or_copyin): Ditto.
5366 (acc_create): Ditto.
5367 (acc_present_or_create): Ditto.
5368 (acc_copyout): Ditto.
5369 (acc_delete): Ditto.
5370 (acc_update_device): Ditto.
5371 (acc_update_self): Ditto.
5372 (acc_map_data): Ditto.
5373 (acc_unmap_data): Ditto.
5374 (acc_deviceptr): Ditto.
5375 (acc_hostptr): Ditto.
5376 (acc_is_present): Ditto.
5377 (acc_memcpy_to_device): Ditto.
5378 (acc_memcpy_from_device): Ditto.
5379 (acc_get_current_cuda_device): Ditto.
5380 (acc_get_current_cuda_context): Ditto.
5381 (acc_get_cuda_stream): Ditto.
5382 (acc_set_cuda_stream): Ditto.
5383 (ACC_DEVICE_TYPE): Ditto.
5384 (ACC_DEVICE_NUM): Ditto.
5385 (OpenACC Library Interoperability): Ditto.
5386
50aa16c3
JJ
53872017-08-09 Jakub Jelinek <jakub@redhat.com>
5388
5389 PR c/81687
5390 * testsuite/libgomp.c/pr81687-1.c: New test.
5391 * testsuite/libgomp.c/pr81687-2.c: New test.
5392
56b5041c
JJ
53932017-08-07 Jakub Jelinek <jakub@redhat.com>
5394
5395 PR c/69389
5396 * testsuite/libgomp.c/pr69389.c: New test.
5397 * testsuite/libgomp.c++/pr69389.C: New test.
5398
f4c222c0
TV
53992017-08-07 Tom de Vries <tom@codesourcery.com>
5400
5401 PR middle-end/78266
5402 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
5403 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
5404
a40ff0ae
JJ
54052017-07-27 Jakub Jelinek <jakub@redhat.com>
5406
5407 PR c/45784
5408 * testsuite/libgomp.c/pr45784.c: New test.
5409 * testsuite/libgomp.c++/pr45784.C: New test.
5410
3717fbe3
TV
54112017-07-19 Tom de Vries <tom@codesourcery.com>
5412
5413 * testsuite/libgomp.oacc-c/vec.c: New test.
5414
9607b014
TV
54152017-07-03 Tom de Vries <tom@codesourcery.com>
5416
5417 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
5418
dfb15f6b
TV
54192017-06-27 Tom de Vries <tom@codesourcery.com>
5420
5421 * plugin/plugin-nvptx.c (notify_var): New function.
5422 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
5423
22f1a037
TV
54242017-06-27 Tom de Vries <tom@codesourcery.com>
5425
5426 * env.c (parse_unsigned_long_1): Factor out of ...
5427 (parse_unsigned_long): ... here.
5428 (parse_int_1): Factor out of ...
5429 (parse_int): ... here.
5430 (parse_int_secure): New function.
5431 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
5432 * secure_getenv.h: Factor out of ...
5433 * plugin/plugin-hsa.c: ... here.
5434 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
5435
d54d1fc3
JJ
54362017-06-21 Jakub Jelinek <jakub@redhat.com>
5437
5438 PR c++/81130
5439 * testsuite/libgomp.c++/pr81130.C: New test.
5440
4f4b0ab8
RO
54412017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5442
5443 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
5444 default args.
5445 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
5446 dg-xfail-run-if default args.
5447
40ffd95f
BE
54482017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5449
5450 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
5451 * testsuite/libgomp.c/pr39591-3.c: Likewise.
5452
01275e1e
JJ
54532017-05-30 Jakub Jelinek <jakub@redhat.com>
5454
5455 PR libgomp/80822
5456 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
5457 (gomp_affinity_init_level): Use it. Always analyze the core and thread
5458 sibling lists, depending on level just pick up what CPUs to put
5459 together into a place vs. whether add multiple ordered places.
5460
78672bd8
TS
54612017-05-24 Thomas Schwinge <thomas@codesourcery.com>
5462
7ce64403
TS
5463 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
5464 * libgomp.map (OACC_2.0.1): Add these.
5465 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
5466 for "acc_wait", and "acc_wait_all", respectively.
5467 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
5468 for "acc_wait", and "acc_wait_all", respectively.
5469 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
5470 * libgomp.texi (acc_wait, acc_wait_all): Update.
5471 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
5472 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
5473 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5474
318686c2
TS
5475 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
5476 acc_present_or_copyin and acc_present_or_create procedures,
5477 respectively.
5478 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
5479 generally different variants of OpenACC Runtime Library functions.
5480 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
5481
a6745534
TS
5482 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
5483 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
5484
9b94fbc7
TS
5485 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
5486 of preprocessor definitions.
5487 * libgomp.h (strong_alias): Guard by "#ifdef
5488 HAVE_ATTRIBUTE_ALIAS".
5489 * oacc-mem.c: Provide "acc_pcreate" as alias for
5490 "acc_present_or_create", and "acc_pcopyin" as alias for
5491 "acc_present_or_copyin".
5492 * libgomp.map: New version "OACC_2.0.1".
5493 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
5494 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
5495 its content into...
5496 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
5497 Extend testing.
5498
78672bd8
TS
5499 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
5500 when disabling nvptx offloading.
5501
0c36d0d5
TS
55022017-05-23 Thomas Schwinge <thomas@codesourcery.com>
5503
fd71a9a2
TS
5504 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
5505 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5506 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
5507
0c36d0d5
TS
5508 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
5509 * testsuite/lib/libgomp.exp
5510 (check_effective_target_openacc_nvidia_accel_configured): New
5511 proc.
5512 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
5513 (check_effective_target_c++): New procs.
5514 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
5515 (check_effective_target_c++): Likewise.
5516
c24783c4
JJ
55172017-05-22 Jakub Jelinek <jakub@redhat.com>
5518
655e5265
JJ
5519 PR middle-end/80809
5520 * testsuite/libgomp.c/pr80809-2.c: New test.
5521 * testsuite/libgomp.c/pr80809-3.c: New test.
5522
e9e2ef9f
JJ
5523 PR middle-end/80809
5524 * testsuite/libgomp.c/pr80809-1.c: New test.
5525
c24783c4
JJ
5526 PR middle-end/80853
5527 * testsuite/libgomp.c/pr80853.c: New test.
5528
0da2f96a
TS
55292017-05-19 Thomas Schwinge <thomas@codesourcery.com>
5530
7fd549d2
TS
5531 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
5532 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
5533 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
5534 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
5535 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
5536
0da2f96a
TS
5537 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
5538 Debug output for failure.
5539
62ffe920
RO
55402017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5541
5542 * testsuite/lib/libgomp.exp: Load scanlang.exp.
5543
f49215b1
JJ
55442017-04-27 Jakub Jelinek <jakub@redhat.com>
5545
5546 PR bootstrap/80531
5547 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
5548 bootstrap compare failures.
5549
2260d19d
AM
55502017-04-20 Alexander Monakov <amonakov@ispras.ru>
5551
5552 * testsuite/libgomp.c/target-36.c: New testcase.
5553
19929ba9
JJ
55542017-04-13 Jakub Jelinek <jakub@redhat.com>
5555
5556 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
5557 instead of char.
5558
fbc698e0
JJ
55592017-04-11 Jakub Jelinek <jakub@redhat.com>
5560
5561 PR libgomp/80394
5562 * testsuite/libgomp.c/pr80394.c: New test.
5563
c4060df4
JJ
55642017-04-04 Jakub Jelinek <jakub@redhat.com>
5565
5566 PR libgomp/79876
5567 * config/posix/thread-stacksize.h: New file.
5568 * config/darwin/thread-stacksize.h: New file.
5569 * config/nvptx/thread-stacksize.h: New file.
5570 * env.c: Include thread-stacksize.h.
5571 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
5572 instead of 0. Call pthread_attr_setstacksize even if
5573 GOMP_DEFAULT_STACKSIZE is non-zero.
5574
e02d868a
JJ
55752017-03-30 Jakub Jelinek <jakub@redhat.com>
5576
5577 * env.c (initialize_env): Initialize stacksize to 0.
5578
7ba8651e
CP
55792017-03-22 Cesar Philippidis <cesar@codesourcery.com>
5580
5581 PR c++/80029
5582 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
5583
eebc5e2d
JJ
55842017-03-08 Jakub Jelinek <jakub@redhat.com>
5585
5586 PR c/79940
5587 * testsuite/libgomp.c/pr79940.c: New test.
5588
1eb08f52
RO
55892017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5590
5591 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
5592 targets.
5593 Add __float128 options.
5594
b0f78ff3
JDA
55952017-02-11 John David Anglin <danglin@gcc.gnu.org>
5596
5597 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
5598 hppa*-*-* dg-skip-if directive.
5599
1bbe0d8f
JJ
56002017-02-09 Jakub Jelinek <jakub@redhat.com>
5601
5602 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
5603 dg-skip-if directive into a comment.
5604
02889d23
CLT
56052017-02-09 Nathan Sidwell <nathan@codesourcery.com>
5606 Chung-Lin Tang <cltang@codesourcery.com>
5607
5608 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
5609 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
5610 add additional case.
5611 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
5612 "openacc_nvidia_accel_selected".
5613 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
5614 Add num_workers(8) clause.
5615
5896a41d
JDA
56162017-02-08 John David Anglin <danglin@gcc.gnu.org>
5617
5618 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
5619 hppa*-*-*.
5620 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
5621 include complex.h on hppa*-*-hpux*.
5622 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
5623
345a8c17
TS
56242017-02-02 Thomas Schwinge <thomas@codesourcery.com>
5625
e70ab10d
TS
5626 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
5627
345a8c17
TS
5628 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
5629 GOMP_OFFLOAD_openacc_exec. Adjust all users.
5630 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
5631 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
5632 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
5633 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
5634 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
5635 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
5636 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
5637 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
5638
dced339c
TS
56392017-01-31 Thomas Schwinge <thomas@codesourcery.com>
5640
5641 * libgomp-plugin.h: #include <stdbool.h>.
5642 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
5643 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
5644 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
5645 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
5646 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
5647 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
5648 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
5649 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
5650 (GOMP_OFFLOAD_openacc_register_async_cleanup)
5651 (GOMP_OFFLOAD_openacc_async_test)
5652 (GOMP_OFFLOAD_openacc_async_test_all)
5653 (GOMP_OFFLOAD_openacc_async_wait)
5654 (GOMP_OFFLOAD_openacc_async_wait_async)
5655 (GOMP_OFFLOAD_openacc_async_wait_all)
5656 (GOMP_OFFLOAD_openacc_async_wait_all_async)
5657 (GOMP_OFFLOAD_openacc_async_set_async)
5658 (GOMP_OFFLOAD_openacc_create_thread_data)
5659 (GOMP_OFFLOAD_openacc_destroy_thread_data)
5660 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
5661 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
5662 (GOMP_OFFLOAD_openacc_get_cuda_stream)
5663 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
5664 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
5665 these.
5666 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
5667 (GOMP_OFFLOAD_unload_image): Fix argument types.
5668
23749904
JJ
56692017-01-26 Jakub Jelinek <jakub@redhat.com>
5670
c1cadde1
JJ
5671 * testsuite/lib/libgomp.exp
5672 (check_effective_target_hsa_offloading_selected_nocache): Fix up
5673 check_compile invocation. Fix up removal of executable. Drop
5674 bogus "2>&1" argument.
5675
23749904
JJ
5676 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
5677 directive.
5678
56792017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
5fd1486c
PJ
5680 Martin Jambor <mjambor@suse.cz>
5681
5682 * plugin/hsa.h: Moved to top level include.
5683 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
5684
73aa401e
JJ
56852017-01-21 Jakub Jelinek <jakub@redhat.com>
5686
5687 PR other/79046
5688 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
5689 of cat to get version from BASE-VER file.
5690 * testsuite/Makefile.in: Regenerated.
5691
b32e85fa
JJ
56922017-01-19 Jakub Jelinek <jakub@redhat.com>
5693
5694 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
5695 for _WIN64.
5696
3c36aa6b
JJ
56972017-01-17 Jakub Jelinek <jakub@redhat.com>
5698
d190d5c0
JJ
5699 * plugin/hsa.h: Add GCC runtime library exception.
5700 * plugin/hsa_ext_finalize.h: Likewise.
5701
2393d337
JJ
5702 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
5703 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
5704 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
5705 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
5706 plugin/include/cuda as include dir and -ldl instead of -lcuda as
5707 library to link ptx plugin against.
5708 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
5709 (CUDA_CALLS): Define.
5710 (cuda_lib, cuda_lib_inited): New variables.
5711 (init_cuda_lib): New function.
5712 (CUDA_CALL_PREFIX): Define.
5713 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
5714 (CUDA_CALL): Use FN instead of (FN).
5715 (CUDA_CALL_NOCHECK): Define.
5716 (cuda_error, fini_streams_for_device, select_stream_for_async,
5717 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
5718 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
5719 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
5720 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
5721 CUDA_CALL_NOCHECK.
5722 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
5723 CUDA_CALL_NOCHECK.
5724 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
5725 Use CUDA_CALL_NOCHECK.
5726 * plugin/cuda/cuda.h: New file.
5727 * config.h.in: Regenerated.
5728 * configure: Regenerated.
5729
3c36aa6b
JJ
5730 PR other/79046
5731 * configure.ac: Add GCC_BASE_VER.
5732 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
5733 get version from BASE-VER file.
5734 * testsuite/Makefile.in: Regenerated.
5735 * configure: Regenerated.
5736 * Makefile.in: Regenerated.
5737
c508bc2d
FXC
57382017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5739
5740 PR libgomp/60670
5741 * Makefile.am: Make fincludedir multilib-aware.
5742 * Makefile.in: Regenerate.
5743
c1a9c369
JJ
57442017-01-01 Jakub Jelinek <jakub@redhat.com>
5745
cbe34bb5
JJ
5746 Update copyright years.
5747
c1a9c369
JJ
5748 * libgomp.texi: Bump @copying's copyright year.
5749
e7a7f4be
SH
57502016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
5751
5752 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
5753 pthread_spinlock_t instead of gomp_mutex_t lock.
5754 (gomp_get_thread_pool): Likewise.
5755 (gomp_release_thread_pool): Likewise.
5756 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
5757 Likewise.
5758
d313d52c
SH
57592016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
5760
5761 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
5762 thread pool in case nthreads == 1.
5763
630e3c3a
AM
57642016-11-30 Alexander Monakov <amonakov@ispras.ru>
5765
5766 * config/nvptx/env.c: Delete.
5767 * icv.c: Move definitions of ICV variables back ...
5768 * env.c: ...here. Do not compile environment-related functionality if
5769 LIBGOMP_OFFLOADED_ONLY is set.
5770
9e38af5c
AM
57712016-11-30 Alexander Monakov <amonakov@ispras.ru>
5772
5773 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
5774 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
5775 * configure: Regenerate.
5776 * config.h.in: Likewise.
5777
f96b7f1f
AM
57782016-11-30 Alexander Monakov <amonakov@ispras.ru>
5779
5780 * Makefile.in: Regenerate with automake-1.11.6.
5781 * aclocal.m4: Likewise.
5782 * configure: Likewise.
5783 * testsuite/Makefile.in: Likewise.
5784
6a6951b1
AM
57852016-11-28 Alexander Monakov <amonakov@ispras.ru>
5786
5787 * config/nvptx/critical.c: Delete to use generic implementation.
5788
c7ac071f
JH
57892016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
5790
5791 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
5792 ../../affinity.c as fallback.
5793 * config/nvptx/affinity.c: Delete to use fallback implementation.
5794
6103184e 57952016-11-23 Alexander Monakov <amonakov@ispras.ru>
92a285c1 5796 Jakub Jelinek <jakub@redhat.com>
6103184e
AM
5797 Dmitry Melnik <dm@ispras.ru>
5798
5799 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
5800 * Makefile.in. Regenerate.
5801 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
5802 (LIBGOMP_USE_PTHREADS): ...here; new define.
5803 * configure: Regenerate.
5804 * config.h.in: Likewise.
5805 * config/posix/affinity.c: Move to...
5806 * affinity.c: ...here (new file). Guard use of Pthreads-specific
5807 interface by LIBGOMP_USE_PTHREADS.
5808 * critical.c: Split out GOMP_atomic_{start,end} into...
5809 * atomic.c: ...here (new file).
5810 * env.c: Split out ICV definitions into...
5811 * icv.c: ...here (new file) and...
5812 * icv-device.c: ...here. New file.
5813 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
5814 (gomp_destroy_lock_30): Ditto.
5815 (gomp_set_lock_30): Ditto.
5816 (gomp_unset_lock_30): Ditto.
5817 (gomp_test_lock_30): Ditto.
5818 (gomp_init_nest_lock_30): Ditto.
5819 (gomp_destroy_nest_lock_30): Ditto.
5820 (gomp_set_nest_lock_30): Ditto.
5821 (gomp_unset_nest_lock_30): Ditto.
5822 (gomp_test_nest_lock_30): Ditto.
5823 * lock.c: New.
5824 * config/nvptx/lock.c: New.
5825 * config/nvptx/bar.c: New.
5826 * config/nvptx/bar.h: New.
5827 * config/nvptx/doacross.h: New.
5828 * config/nvptx/error.c: New.
5829 * config/nvptx/icv-device.c: New.
5830 * config/nvptx/mutex.h: New.
5831 * config/nvptx/pool.h: New.
5832 * config/nvptx/proc.c: New.
5833 * config/nvptx/ptrlock.h: New.
5834 * config/nvptx/sem.h: New.
5835 * config/nvptx/simple-bar.h: New.
5836 * config/nvptx/target.c: New.
5837 * config/nvptx/task.c: New.
5838 * config/nvptx/team.c: New.
5839 * config/nvptx/time.c: New.
5840 * config/posix/simple-bar.h: New.
5841 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
5842 (gomp_num_teams_var): Declare.
5843 (struct gomp_thread_pool): Change threads_dock member to
5844 gomp_simple_barrier_t.
5845 [__nvptx__] (gomp_thread): New implementation.
5846 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
5847 (gomp_thread_destructor): Ditto.
5848 (gomp_init_thread_affinity): Ditto.
5849 * team.c: Guard uses of Pthreads-specific interfaces by
5850 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
5851 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
5852 * config/nvptx/alloc.c: Delete.
5853 * config/nvptx/barrier.c: Ditto.
5854 * config/nvptx/fortran.c: Ditto.
5855 * config/nvptx/iter.c: Ditto.
5856 * config/nvptx/iter_ull.c: Ditto.
5857 * config/nvptx/loop.c: Ditto.
5858 * config/nvptx/loop_ull.c: Ditto.
5859 * config/nvptx/ordered.c: Ditto.
5860 * config/nvptx/parallel.c: Ditto.
5861 * config/nvptx/priority_queue.c: Ditto.
5862 * config/nvptx/sections.c: Ditto.
5863 * config/nvptx/single.c: Ditto.
5864 * config/nvptx/splay-tree.c: Ditto.
5865 * config/nvptx/work.c: Ditto.
5866 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
5867 -foffload=-lgfortran in addition to -lgfortran.
5868 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
5869 * plugin/plugin-nvptx.c: Include <limits.h>.
5870 (struct targ_fn_descriptor): Add new fields.
5871 (struct ptx_device): Ditto. Set them...
5872 (nvptx_open_device): ...here.
5873 (nvptx_adjust_launch_bounds): New.
5874 (nvptx_host2dev): Allow NULL 'nvthd'.
5875 (nvptx_dev2host): Ditto.
5876 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
5877 (link_ptx): Adjust log sizes.
5878 (nvptx_host2dev): Allow NULL 'nvthd'.
5879 (nvptx_dev2host): Ditto.
5880 (nvptx_set_clocktick): New. Use it...
5881 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
5882 fields.
5883 (GOMP_OFFLOAD_dev2dev): New.
5884 (nvptx_adjust_launch_bounds): New.
5885 (nvptx_stacks_size): New.
5886 (nvptx_stacks_alloc): New.
5887 (nvptx_stacks_free): New.
5888 (GOMP_OFFLOAD_run): New.
5889 (GOMP_OFFLOAD_async_run): New (stub).
5890
56b1c60e
MJ
58912016-11-23 Martin Jambor <mjambor@suse.cz>
5892
5893 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
5894 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
5895 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
5896
b8d89b03 58972016-11-23 Martin Liska <mliska@suse.cz>
92a285c1 5898 Martin Jambor <mjambor@suse.cz>
b8d89b03
ML
5899
5900 * plugin/hsa.h: New file.
5901 * plugin/hsa_ext_finalize.h: New file.
5902 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
5903 header file unistd.h, and functions secure_getenv, __secure_getenv,
5904 getuid, geteuid, getgid and getegid.
5905 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
5906 -D_GNU_SOURCE.
5907 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
5908 Handle various cases of secure_getenv presence, add an implementation
5909 when we can test effective UID and GID.
5910 (struct hsa_runtime_fn_info): New structure.
5911 (hsa_runtime_fn_info hsa_fns): New variable.
5912 (hsa_runtime_lib): Likewise.
5913 (support_cpu_devices): Likewise.
5914 (init_enviroment_variables): Load newly introduced ENV
5915 variables.
5916 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
5917 (hsa_fatal): Likewise.
5918 (DLSYM_FN): New macro.
5919 (init_hsa_runtime_functions): New function.
5920 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
5921 structure. Depending on environment, also allow CPU devices.
5922 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
5923 (get_kernarg_memory_region): Likewise.
5924 (GOMP_OFFLOAD_init_device): Likewise.
5925 (destroy_hsa_program): Likewise.
5926 (init_basic_kernel_info): New function.
5927 (GOMP_OFFLOAD_load_image): Use it.
5928 (create_and_finalize_hsa_program): Call hsa run-time functions via
5929 hsa_fns structure.
5930 (create_single_kernel_dispatch): Likewise.
5931 (release_kernel_dispatch): Likewise.
5932 (init_single_kernel): Likewise.
5933 (parse_target_attributes): Allow up multiple HSA grid dimensions.
5934 (get_group_size): New function.
5935 (run_kernel): Likewise.
5936 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
5937 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
5938 structure.
5939 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
5940 * testsuite/libgomp-test-support.exp.in: Likewise.
5941 * Makefile.in: Regenerated.
5942 * aclocal.m4: Likewise.
5943 * config.h.in: Likewise.
5944 * configure: Likewise.
5945 * testsuite/Makefile.in: Likewise.
5946
18d2ada8 59472016-11-15 Martin Jambor <mjambor@suse.cz>
92a285c1 5948 Alexander Monakov <amonakov@ispras.ru>
18d2ada8
MJ
5949
5950 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
5951 mapping clauses to target constructs.
5952 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
5953
84c1b9d3
MK
59542016-11-15 Matthias Klose <doko@ubuntu.com>
5955
5956 * configure: Regenerate.
5957
b4c3a85b
JJ
59582016-11-10 Jakub Jelinek <jakub@redhat.com>
5959
8ebd1b31
JJ
5960 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
5961 * omp_lib.h.in (openmp_version): Likewise.
5962 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
5963 of 201307.
5964 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
5965
b4c3a85b
JJ
5966 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
5967 (fib_wrapper): Add map(from: x) clause.
5968 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
5969 (e_53_2): Likewise.
5970 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
5971 (accum): Add map(tmp) clause.
5972 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
5973 (accum): Add map(tofrom: tmp) clause.
5974 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
5975 (gramSchmidt): Likewise.
5976 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
5977 map(tofrom: sum) clause.
5978 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
5979 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
5980 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
5981 only allowed on the loop iterator.
5982 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
5983 * testsuite/libgomp.fortran/taskloop2.f90: New test.
5984 * testsuite/libgomp.fortran/taskloop4.f90: New test.
5985 * testsuite/libgomp.fortran/doacross1.f90: New test.
5986 * testsuite/libgomp.fortran/doacross3.f90: New test.
5987 * testsuite/libgomp.fortran/taskloop1.f90: New test.
5988 * testsuite/libgomp.fortran/taskloop3.f90: New test.
5989 * testsuite/libgomp.fortran/doacross2.f90: New test.
5990 * testsuite/libgomp.c/doacross-1.c (main): Add missing
5991 #pragma omp atomic read.
5992 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
5993 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
5994
6668eb45
CP
59952016-11-02 Cesar Philippidis <cesar@codesourcery.com>
5996 Nathan Sidwell <nathan@acm.org>
5997
5998 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
5999 to determine default geometry.
6000 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
6001 dimension.
6002
f10e37a1
JJ
60032016-11-01 Jakub Jelinek <jakub@redhat.com>
6004
6005 * hashtab.h: Use standard GPLv3 with runtime exception
6006 boilerplate.
6007
015c7760
AH
60082016-10-27 Aldy Hernandez <aldyh@redhat.com>
6009
6010 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
6011 size when allocating new thread.
6012
20a1e5b8
MP
60132016-09-14 Marek Polacek <polacek@redhat.com>
6014
6015 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
6016
1cad9284
JJ
60172016-08-19 Jakub Jelinek <jakub@redhat.com>
6018
6019 PR fortran/71014
6020 * testsuite/libgomp.fortran/pr71014.f90: New test.
6021
2c71d454
CLT
60222016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
6023
6024 PR middle-end/70895
6025 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
6026 firstprivate clauses.
6027 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
6028 copy clauses.
6029 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
6030 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
6031 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
6032 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
6033 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
6034 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
6035 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
6036 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
6037 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
6038 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
6039 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6040 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
6041
7c713714
CLT
60422016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
6043
6044 PR fortran/70598
6045 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
6046
5c934396
JJ
60472016-08-08 Jakub Jelinek <jakub@redhat.com>
6048
6049 PR c++/58706
6050 * testsuite/libgomp.c++/pr58706.C: New test.
6051
9ef64248
TS
60522016-08-04 Thomas Schwinge <thomas@codesourcery.com>
6053
bbc79c0e
TS
6054 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
6055 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
6056 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
6057 Likewise.
6058 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
6059 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
6060 Likewise.
6061 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
6062
9ef64248
TS
6063 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
6064 test, and don't hardcode -O0.
6065
c1311c86
NS
60662016-08-03 Nathan Sidwell <nathan@codesourcery.com>
6067
6068 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
6069
b1c9c068
CP
60702016-07-15 Cesar Philippidis <cesar@codesourcery.com>
6071
6072 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
6073 test.
6074
b4410f63
L
60752016-07-03 H.J. Lu <hongjiu.lu@intel.com>
6076
6077 PR middle-end/71734
6078 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
6079 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
6080
a8dbab92
JJ
60812016-07-01 Jakub Jelinek <jakub@redhat.com>
6082
6083 PR fortran/71717
6084 * testsuite/libgomp.fortran/associate3.f90: New test.
6085
9b6a8d0f
JJ
60862016-06-17 Jakub Jelinek <jakub@redhat.com>
6087
6088 * testsuite/libgomp.c++/target-21.C: New test.
6089
283635f9
JJ
60902016-06-16 Jakub Jelinek <jakub@redhat.com>
6091
6092 * testsuite/libgomp.c++/target-20.C: New test.
6093
27d6ba88
TS
60942016-06-10 Thomas Schwinge <thomas@codesourcery.com>
6095 Cesar Philippidis <cesar@codesourcery.com>
6096
6097 PR middle-end/71373
6098 * libgomp.oacc-c/nested-function-1.c: New file.
6099 * libgomp.oacc-c/nested-function-2.c: Likewise.
6100 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
6101 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
6102 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
6103
4b1ffdb1
TS
61042016-06-10 Thomas Schwinge <thomas@codesourcery.com>
6105
6106 PR c/71381
6107 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
6108 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
6109 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
6110
d821b794
CLT
61112016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
6112
6113 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
6114 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
6115
3616a8c5
CP
61162016-06-01 Cesar Philippidis <cesar@codesourcery.com>
6117
6118 PR c/70688
5eed9a88 6119 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
3616a8c5 6120
7211a097
JJ
61212016-05-26 Jakub Jelinek <jakub@redhat.com>
6122
6123 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
6124 instead of invalid schedule(static, 0).
6125 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
6126
b4557008
CLT
61272016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
6128
6129 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
6130 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
6131 parameter, use to set async stream around call to gomp_unmap_vars,
6132 call gomp_unmap_vars() with 'do_copyfrom' set to true.
6133 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
6134 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
6135 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
6136 (event_add): Add int parameter, initialize 'val' field when
6137 adding new ptx_event struct.
6138 (nvptx_evec): Adjust event_add() call arguments.
6139 (nvptx_host2dev): Likewise.
6140 (nvptx_dev2host): Likewise.
6141 (nvptx_wait_async): Likewise.
6142 (nvptx_wait_all_async): Likewise.
6143 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
6144 pass to event_add() call.
6145 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
6146 parameter.
6147 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
6148 call openacc.register_async_cleanup_func() hook.
6149 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
6150 * target.c (gomp_copy_from_async): Delete function.
6151 (gomp_map_vars): Remove async_refcount.
6152 (gomp_unmap_vars): Likewise.
6153 (gomp_load_image_to_device): Likewise.
6154 (omp_target_associate_ptr): Likewise.
6155 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
6156 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
6157 (gomp_copy_from_async): Remove.
6158
6ce13072
CLT
61592016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
6160
6161 * target.c (gomp_device_copy): New function.
6162 (gomp_copy_host2dev): Likewise.
6163 (gomp_copy_dev2host): Likewise.
6164 (gomp_free_device_memory): Likewise.
6165 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
6166 (gomp_map_pointer): Likewise.
6167 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
6168 NULL value from alloc_func plugin hook.
6169 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
6170 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
6171 (gomp_unmap_vars): Likewise.
6172 (gomp_update): Adjust to call gomp_copy_dev2host and
6173 gomp_copy_host2dev functions.
6174 (gomp_unload_image_from_device): Handle false value from
6175 unload_image_func plugin hook.
6176 (gomp_init_device): Handle false value from init_device_func
6177 plugin hook.
6178 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
6179 (omp_target_free): Adjust to call gomp_free_device_memory.
6180 (omp_target_memcpy): Handle return values from host2dev_func,
6181 dev2host_func, and dev2dev_func plugin hooks.
6182 (omp_target_memcpy_rect_worker): Likewise.
6183 (gomp_target_fini): Handle false value from fini_device_func
6184 plugin hook.
6185 * libgomp.h (struct gomp_device_descr): Adjust return type of
6186 init_device_func, fini_device_func, unload_image_func, free_func,
6187 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
6188 * oacc-init.c (acc_shutdown_1): Handle false value from
6189 fini_device_func plugin hook.
6190 * oacc-host.c (host_init_device): Change return type to bool.
6191 (host_fini_device): Likewise.
6192 (host_unload_image): Likewise.
6193 (host_free): Likewise.
6194 (host_dev2host): Likewise.
6195 (host_host2dev): Likewise.
6196 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
6197 (acc_memcpy_to_device): Likewise.
6198 (acc_memcpy_from_device): Likewise.
6199 (delete_copyout): Add libfnname parameter, handle free_func
6200 hook fatal error case.
6201 (acc_delete): Adjust delete_copyout call.
6202 (acc_copyout): Likewise.
6203 (update_dev_host): Move gomp_mutex_unlock to after
6204 host2dev/dev2host hook calls.
6205
6206 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
6207 to 'hsa_error_msg', for clarity.
6208 (hsa_fatal): Likewise.
6209 (hsa_error): New function.
6210 (init_hsa_context): Change return type to bool, adjust to return
6211 false on error.
6212 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
6213 return value.
6214 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
6215 return false on error.
6216 (get_agent_info): Adjust to return NULL on error.
6217 (destroy_hsa_program): Change return type to bool, adjust to
6218 return false on error.
6219 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
6220 (destroy_module): Change return type to bool, adjust to
6221 return false on error.
6222 (GOMP_OFFLOAD_unload_image): Likewise.
6223 (GOMP_OFFLOAD_fini_device): Likewise.
6224 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
6225 (GOMP_OFFLOAD_free): Change to return false when called.
6226 (GOMP_OFFLOAD_dev2host): Likewise.
6227 (GOMP_OFFLOAD_host2dev): Likewise.
6228 (GOMP_OFFLOAD_dev2dev): Likewise.
6229
6230 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
6231 (CUDA_CALL): Likewise.
6232 (CUDA_CALL_ASSERT): Likewise.
6233 (map_init): Change return type to bool, use CUDA_CALL* macros.
6234 (map_fini): Likewise.
6235 (init_streams_for_device): Change return type to bool, adjust
6236 call to map_init.
6237 (fini_streams_for_device): Change return type to bool, adjust
6238 call to map_fini.
6239 (select_stream_for_async): Release stream_lock before calls to
6240 GOMP_PLUGIN_fatal, adjust call to map_init.
6241 (nvptx_init): Use CUDA_CALL* macros.
6242 (nvptx_attach_host_thread_to_device): Change return type to bool,
6243 use CUDA_CALL* macros.
6244 (nvptx_open_device): Use CUDA_CALL* macros.
6245 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
6246 macros.
6247 (nvptx_get_num_devices): Use CUDA_CALL* macros.
6248 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
6249 (nvptx_exec): Use CUDA_CALL* macros.
6250 (nvptx_alloc): Use CUDA_CALL* macros.
6251 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
6252 (nvptx_host2dev): Likewise.
6253 (nvptx_dev2host): Likewise.
6254 (nvptx_wait): Use CUDA_CALL* macros.
6255 (nvptx_wait_async): Likewise.
6256 (nvptx_wait_all): Likewise.
6257 (nvptx_wait_all_async): Likewise.
6258 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
6259 use CUDA_CALL* macros, adjust call to map_fini.
6260 (GOMP_OFFLOAD_init_device): Change return type to bool,
6261 adjust code accordingly.
6262 (GOMP_OFFLOAD_fini_device): Likewise.
6263 (GOMP_OFFLOAD_load_image): Adjust calls to
6264 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
6265 use CUDA_CALL* macros.
6266 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
6267 return code.
6268 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
6269 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
6270 handle error return.
6271 (GOMP_OFFLOAD_dev2host): Likewise.
6272 (GOMP_OFFLOAD_host2dev): Likewise.
6273 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
6274 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
6275
e46c7770
CP
62762016-05-24 Cesar Philippidis <cesar@codesourcery.com>
6277
6278 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
6279 (acc_free): Likewise.
6280 (acc_memcpy_to_device): Likewise.
6281 (acc_memcpy_from_device): Likewise.
6282 (acc_deviceptr): Likewise.
6283 (acc_hostptr): Likewise.
6284 (acc_is_present): Likewise.
6285 (acc_map_data): Likewise.
6286 (acc_unmap_data): Likewise.
6287 (present_create_copy): Likewise.
6288 (delete_copyout): Likewise.
6289 (update_dev_host): Likewise.
6290 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
6291 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
6292 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
6293 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
6294 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
6295 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
6296 it only runs on nvptx targets.
6297 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
6298 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
6299 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6300 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6301 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6302 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6303 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6304 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6305 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6306 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
6307 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6308 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6309 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6310 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6311 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6312 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6313 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6314 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6315 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6316 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6317 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6318 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6319 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6320
a5057543
MJ
63212016-05-23 Martin Jambor <mjambor@suse.cz>
6322
6323 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
6324
e37288a6
CLT
63252016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
6326
6327 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
6328 to gomp_init_targets_once.
6329 (acc_set_device_type): Remove !cached_base_dev condition on call to
6330 gomp_init_targets_once, move call to before acc_device_lock acquire,
6331 to avoid deadlock.
6332 (acc_get_device_num): Remove !cached_base_dev condition on call to
6333 gomp_init_targets_once.
6334 (acc_set_device_num): Likewise.
6335
51d9ed48
MJ
63362016-05-16 Martin Jambor <mjambor@suse.cz>
6337
92a285c1 6338 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
51d9ed48 6339
5b37e866
NS
63402016-05-02 Nathan Sidwell <nathan@codesourcery.com>
6341
6342 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
6343 expected partitioning.
6344
e7ff0319
CP
63452016-04-29 Cesar Philippidis <cesar@codesourcery.com>
6346
6347 PR middle-end/70626
6348 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
6349 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
6350 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
6351
c2bd3b69
AM
63522016-04-21 Alexander Monakov <amonakov@ispras.ru>
6353
6354 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
6355 non-fatal.
6356
84311083
JJ
63572016-04-19 Jakub Jelinek <jakub@redhat.com>
6358
6359 PR middle-end/70680
6360 * testsuite/libgomp.c/pr70680-1.c: New test.
6361 * testsuite/libgomp.c/pr70680-2.c: New test.
6362
aadc043f
CP
63632016-04-14 Cesar Philippidis <cesar@codesourcery.com>
6364
6365 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
6366 pass parameter variables to subroutines.
6367
e387fc64
CP
63682016-04-14 Cesar Philippidis <cesar@codesourcery.com>
6369
6370 PR middle-end/70643
6371 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
6372
10c3c424
CP
63732016-04-13 Cesar Philippidis <cesar@codesourcery.com>
6374
6375 PR testsuite/68242
6376 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
6377 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6378
27f9add3
TS
63792016-04-12 Thomas Schwinge <thomas@codesourcery.com>
6380
58d32aeb
TS
6381 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
6382 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
6383 GOACC_declare prototype.
6384
d97633ef
TS
6385 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
6386 Merge this file, and...
6387 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
6388 ... this file, and...
6389 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
6390 ... this file, and...
6391 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
6392 ... this file, and...
6393 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
6394 ... this file, and...
6395 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
6396 ... this file, and...
6397 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
6398 ... this file, and...
6399 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
6400 ... this file, and...
6401 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
6402 ... this file, and...
6403 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
6404 ... this file, and...
6405 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
6406 ... this file, and...
6407 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
6408 ... this file, and...
6409 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
6410 ... this file into...
6411 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
6412 file.
6413
27f9add3
TS
6414 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
6415 Make failure observable.
6416
21f3a236
JJ
64172016-04-12 Jakub Jelinek <jakub@redhat.com>
6418
6419 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
6420 field.
6421 * target.c (gomp_target_fallback_firstprivate,
6422 gomp_target_unshare_firstprivate): Removed.
6423 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
6424 before waiting for dependencies.
6425 (gomp_target_task_fn): Don't copy firstprivate vars here.
6426 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
6427 firstprivate_copies here.
6428 (gomp_create_target_task): Don't initialize firstprivate_copies field.
6429 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
6430 explicit/implicit firstprivate.
6431
c42cfb5c
CP
64322016-04-08 Cesar Philippidis <cesar@codesourcery.com>
6433
6434 PR lto/70289
6435 PR ipa/70348
6436 PR tree-optimization/70373
6437 PR middle-end/70533
6438 PR middle-end/70534
6439 PR middle-end/70535
6440 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
6441 test.
6442 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
6443 test.
6444 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
6445 test.
6446 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
6447 test.
6448 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
6449 test.
6450 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
6451 test.
6452 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
6453 test.
6454 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
6455 test.
6456 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
6457 test.
6458 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
6459 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
6460 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
6461 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
6462 test.
6463 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
6464 test.
6465 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
6466 test.
6467 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
6468 test.
6469 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
6470 coverage.
6471 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6472 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
6473 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
6474 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
6475 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
6476 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
6477 coverage.
6478 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6479 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6480 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6481 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6482 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
6483 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
6484 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
6485 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
6486 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
6487 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
6488 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
6489 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
6490 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6491 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6492 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
6493
2620c80d
TS
64942016-03-30 Thomas Schwinge <thomas@codesourcery.com>
6495 James Norris <jnorris@codesourcery.com>
6496 Nathan Sidwell <nathan@codesourcery.com>
6497 Julian Brown <julian@codesourcery.com>
6498 Cesar Philippidis <cesar@codesourcery.com>
6499 Chung-Lin Tang <cltang@codesourcery.com>
6500 Tom de Vries <tom@codesourcery.com>
6501
6502 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
6503 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
6504 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
6505 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
6506 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
6507 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
6508 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
6509 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
6510 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
6511 XFAIL.
6512 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
6513 Incorporate...
6514 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
6515 file.
6516 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
6517 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
6518 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
6519 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
6520 Likewise.
6521 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
6522 Likewise.
6523 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
6524 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
6525 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
6526 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
6527 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
6528 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
6529 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
6530 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
6531 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
6532 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
6533 Likewise.
6534 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
6535 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
6536 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
6537 file...
6538 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
6539 file into...
6540 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
6541 file. Update.
6542 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
6543 file.
6544 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
6545 Likewise.
6546 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
6547 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
6548 ... this new file. Update.
6549 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
6550 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
6551 ... this new file. Update.
6552 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
6553 file. Incorporate...
6554 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
6555 file, and...
6556 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
6557 file, and...
6558 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
6559 file.
6560 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
6561
ce83104b
TS
65622016-03-29 Thomas Schwinge <thomas@codesourcery.com>
6563
6564 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
6565 set-torture-options.
6566
6e0df3b7
TS
65672016-03-24 Thomas Schwinge <thomas@codesourcery.com>
6568
6569 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
6570 gcc-dg-runtest.
6571 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6572 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
6573 -fno-builtin-acc_on_device instead of -O0.
6574 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
6575 -O0.
6576 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
6577 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
6578 Likewise.
6579 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
6580 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
6581 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
6582 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
6583 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
6584 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
6585 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
6586 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6587 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6588 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
6589 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6590 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
6591 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
6592 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
6593 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
6594 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
6595 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
6596 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
6597 Don't specify -O2.
6598 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
6599 Likewise.
6600 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
6601 Likewise.
6602
f9c8babb
ML
66032016-03-24 Martin Liska <mliska@suse.cz>
6604
6605 * plugin/plugin-hsa.c (packet_store_release): New function
6606 that is taken from the HSA runtime manual.
6607 (GOMP_OFFLOAD_run): Use the function.
6608
04833609
JJ
66092016-03-23 Jakub Jelinek <jakub@redhat.com>
6610
6611 PR c++/70376
6612 * testsuite/libgomp.c++/pr70376.C: New test.
6613
d79ee524
TV
66142016-03-23 Tom de Vries <tom@codesourcery.com>
6615
6616 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
6617 initialization of lresult and lvresult.
6618 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
6619
b6d1f2b5
JN
66202016-03-23 James Norris <jnorris@codesourcery.com>
6621 Daichi Fukuoka <dc-fukuoka@sgi.com>
6622
6623 PR libgomp/69414
6624 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
6625 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
6626 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
6627 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
6628
7397fce2
ML
66292016-03-23 Martin Liska <mliska@suse.cz>
6630
6631 PR hsa/70337
6632 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
6633 argument just in case a dispatched kernel uses that argument.
6634
ee2e7d51
TS
66352016-03-16 Thomas Schwinge <thomas@codesourcery.com>
6636
6637 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
6638 -ftree-parallelize-loops/-fopenacc changes.
6639 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
6640 Likewise.
6641 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
6642 Likewise.
6643 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
6644 Likewise.
6645 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
6646 Likewise.
6647 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
6648 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
6649
be9f7143
TS
66502016-03-13 Thomas Schwinge <thomas@codesourcery.com>
6651
6652 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
6653 always_ld_library_path the path to libgcc_s.
6654
f6c1032d
CP
66552016-03-10 Cesar Philippidis <cesar@codesourcery.com>
6656
6657 PR testsuite/70009
6658 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
6659
5a6452e6
TV
66602016-03-09 Tom de Vries <tom@codesourcery.com>
6661
6662 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
6663 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
6664 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
6665 Same.
6666 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
6667 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
6668 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
6669 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
6670
96a71bd5
MJ
66712016-03-07 Martin Jambor <mjambor@suse.cz>
6672
6673 * testsuite/lib/libgomp.exp
6674 (check_effective_target_hsa_offloading_selected_nocache): New.
6675 (check_effective_target_hsa_offloading_selected): Likewise.
6676 * testsuite/libgomp.hsa.c/c.exp: Likewise.
6677 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
6678 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
6679 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
6680 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
6681 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
6682 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
6683 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
6684 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
6685 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
6686 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
6687 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
6688 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
6689 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
6690 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
6691 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
6692 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
6693
02e0b5b2
MJ
66942016-03-07 Martin Jambor <mjambor@suse.cz>
6695
6696 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
6697 non-shared memory accelerators.
6698 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
6699 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
6700 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
6701 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
6702 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
6703 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
6704 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
6705 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
6706 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
6707
45548f30
MJ
67082016-03-07 Martin Jambor <mjambor@suse.cz>
6709
6710 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
6711 ALWAYS_CFLAGS.
6712
da3d46cb
JJ
67132016-03-02 Jakub Jelinek <jakub@redhat.com>
6714
6715 PR libgomp/69555
6716 * testsuite/libgomp.c++/pr69555-1.C: New test.
6717 * testsuite/libgomp.c++/pr69555-2.C: New test.
6718
622174b2
KM
67192016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
6720 Martin Jambor <mjambor@suse.cz>
6721
6722 * testsuite/lib/libgomp.exp
6723 (check_effective_target_offload_device_shared_as): New proc.
6724 * testsuite/libgomp.c++/declare_target-1.C: New test.
6725
e6861a99
IV
67262016-02-25 Ilya Verbin <ilya.verbin@intel.com>
6727
6728 PR driver/68463
6729 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
6730
f99c3557
TS
67312016-02-23 Thomas Schwinge <thomas@codesourcery.com>
6732
6733 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
6734 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
6735 dims.
6736 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
6737 -ftree-parallelize-loops/-fopenacc changes.
6738 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
6739 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
6740 Likewise.
6741 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
6742 Likewise.
6743 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
6744 Likewise.
6745 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
6746 Likewise.
6747 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
6748 Likewise.
6749 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
6750 Likewise.
6751 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
6752 Likewise.
6753 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
6754 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
6755 Likewise.
6756 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
6757 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
6758 Likewise.
6759 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
6760 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
6761 Likewise.
6762
d5ace3b5
CP
67632016-02-22 Cesar Philippidis <cesar@codesourcery.com>
6764
6765 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
6766
f3609a89
JJ
67672016-02-19 Jakub Jelinek <jakub@redhat.com>
6768
6769 PR driver/69805
6770 * testsuite/libgomp.c/pr69805.c: New test.
6771
2175df99
TV
67722016-02-16 Tom de Vries <tom@codesourcery.com>
6773
6774 PR lto/67709
6775 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
6776
17b6426c
TV
67772016-02-09 Tom de Vries <tom@codesourcery.com>
6778
6779 PR tree-optimization/69599
6780 * testsuite/libgomp.c/omp-nested-3.c: New test.
6781 * testsuite/libgomp.c/pr46032-2.c: New test.
6782 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
6783 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
6784
34df756c
TV
67852016-02-09 Tom de Vries <tom@codesourcery.com>
6786
6787 PR lto/69707
6788 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
6789
5854ee30
AM
67902016-02-02 Alexander Monakov <amonakov@ispras.ru>
6791
6792 * testsuite/libgomp.c/target-31.c: Fix testcase.
6793
e70b6ad7
AM
67942016-02-02 Alexander Monakov <amonakov@ispras.ru>
6795
6796 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
6797 clause.
6798 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
6799 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
6800 reduction and map clauses.
6801 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
6802
bd78a45f
JN
68032016-02-02 James Norris <jnorris@codesourcery.com>
6804
6805 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
6806
41d809d3
TS
68072016-02-02 Thomas Schwinge <thomas@codesourcery.com>
6808
18f60146
TS
6809 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
6810 * oacc-parallel.c (GOACC_host_data): Remove function definition.
6811
1a06f5e6
TS
6812 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
6813 cases.
6814
033ff3d1
TS
6815 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
6816 variables.
6817 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
6818 (hsa_kmt_lib): Set variables.
6819 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
6820 always_ld_library_path.
6821 * Makefile.in: Regenerate.
6822 * configure: Likewise.
6823 * testsuite/Makefile.in: Likewise.
6824
4a88d9b7
TS
6825 * plugin/configfrag.ac (offload_additional_options)
6826 (offload_additional_lib_paths): Don't amend for hsa offloading.
6827 * configure: Regenerate.
6828
41d809d3
TS
6829 * plugin/configfrag.ac: Don't configure for offloading target if
6830 we don't build the corresponding plugin.
6831 * configure: Regenerate.
6832
b6adbb9f
NS
68332016-02-01 Nathan Sidwell <nathan@codesourcery.com>
6834
6835 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
6836 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
6837
8dfdb419
TV
68382016-01-26 Tom de Vries <tom@codesourcery.com>
6839
6840 PR tree-optimization/69110
6841 * testsuite/libgomp.c/pr69110.c: New test.
6842
02ef53f2
RB
68432016-01-25 Richard Biener <rguenther@suse.de>
6844
6845 PR lto/69393
6846 * testsuite/libgomp.c++/pr69393.C: New testcase.
6847
eb4048f2
IV
68482016-01-22 Ilya Verbin <ilya.verbin@intel.com>
6849
6850 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
6851 function wasn't mapped to the device with non-shared memory.
6852
b235cdd5
IV
68532016-01-20 Ilya Verbin <ilya.verbin@intel.com>
6854
6855 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
6856
b2b40051
MJ
68572016-01-19 Martin Jambor <mjambor@suse.cz>
6858 Martin Liska <mliska@suse.cz>
6859
6860 * plugin/Makefrag.am: Add HSA plugin requirements.
6861 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
6862 (HSA_RUNTIME_LIB): Likewise.
6863 (HSA_RUNTIME_CPPFLAGS): Likewise.
6864 (HSA_RUNTIME_INCLUDE): New substitution.
6865 (HSA_RUNTIME_LIB): Likewise.
6866 (HSA_RUNTIME_LDFLAGS): Likewise.
6867 (hsa-runtime): New configure option.
6868 (hsa-runtime-include): Likewise.
6869 (hsa-runtime-lib): Likewise.
6870 (PLUGIN_HSA): New substitution variable.
6871 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
6872 configure options.
6873 (PLUGIN_HSA_CPPFLAGS): Likewise.
6874 (PLUGIN_HSA_LDFLAGS): Likewise.
6875 (PLUGIN_HSA_LIBS): Likewise.
6876 Check that we have access to HSA run-time.
6877 * libgomp-plugin.h (offload_target_type): New element
6878 OFFLOAD_TARGET_TYPE_HSA.
6879 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
6880 args.
6881 (bool gomp_create_target_task): Updated.
6882 (gomp_device_descr): Extra parameter of run_func and async_run_func,
6883 new field can_run_func.
6884 * libgomp_g.h (GOMP_target_ext): Update prototype.
6885 * oacc-host.c (host_run): Added a new parameter args.
6886 * target.c (calculate_firstprivate_requirements): New function.
6887 (copy_firstprivate_data): Likewise.
6888 (gomp_target_fallback_firstprivate): Use them.
6889 (gomp_target_unshare_firstprivate): New function.
6890 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
6891 devices.
6892 (GOMP_target): Do host fallback for all shared memory devices. Do not
6893 pass any args to plugins.
6894 (GOMP_target_ext): Introduce device-specific argument parameter args.
6895 Allow host fallback if device shares memory. Do not remap data if
6896 device has shared memory.
6897 (gomp_target_task_fn): Likewise. Also treat shared memory devices
6898 like host fallback for mappings.
6899 (GOMP_target_data): Treat shared memory devices like host fallback.
6900 (GOMP_target_data_ext): Likewise.
6901 (GOMP_target_update): Likewise.
6902 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
6903 gomp_create_target_task.
6904 (GOMP_target_enter_exit_data): Likewise.
6905 (omp_target_alloc): Treat shared memory devices like host fallback.
6906 (omp_target_free): Likewise.
6907 (omp_target_is_present): Likewise.
6908 (omp_target_memcpy): Likewise.
6909 (omp_target_memcpy_rect): Likewise.
6910 (omp_target_associate_ptr): Likewise.
6911 (gomp_load_plugin_for_device): Also load can_run.
6912 * task.c (GOMP_PLUGIN_target_task_completion): Free
6913 firstprivate_copies.
6914 (gomp_create_target_task): Accept new argument args and store it to
6915 ttask.
6916 * plugin/plugin-hsa.c: New file.
6917
5d7804a9
TV
69182016-01-18 Tom de Vries <tom@codesourcery.com>
6919
6920 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
6921 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
6922 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
6923 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
6924 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
6925 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
6926 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
6927 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
6928 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
6929 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
6930 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
6931 Same.
6932 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
6933 Same.
6934 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
6935 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
6936 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
6937 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
6938 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
6939 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
6940 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
6941 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
6942 Same.
6943 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
6944
cb11f3cf
JJ
69452016-01-15 Jakub Jelinek <jakub@redhat.com>
6946
6947 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
6948
33a126a6
CP
69492016-01-15 Cesar Philippidis <cesar@codesourcery.com>
6950
6951 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
6952
cdf6119d
JN
69532016-01-12 James Norris <jnorris@codesourcery.com>
6954
6955 * libgomp.texi: Updates for OpenACC.
6956
0d58938e
AM
69572016-01-11 Alexander Monakov <amonakov@ispras.ru>
6958
6959 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
6960
95918b49
L
69612016-01-07 H.J. Lu <hongjiu.lu@intel.com>
6962
6963 PR fortran/66680
6964 * testsuite/libgomp.fortran/pr66680.f90: New test.
6965
8fc708b7
JJ
69662016-01-07 Jakub Jelinek <jakub@redhat.com>
6967
6968 PR middle-end/68960
6969 * testsuite/libgomp.c/pr68960.c: New test.
6970
e9b596c1
NS
69712016-01-06 Nathan Sidwell <nathan@acm.org>
6972
1a14faf2 6973 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
e9b596c1
NS
6974 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
6975
21fa2a29
JJ
69762016-01-04 Jakub Jelinek <jakub@redhat.com>
6977
818ab71a
JJ
6978 Update copyright years.
6979
21fa2a29
JJ
6980 * libgomp.texi: Bump @copying's copyright year.
6981
9310efbc
NS
69822015-12-31 Nathan Sidwell <nathan@acm.org>
6983
6984 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
6985 dg-additional-options syntax.
6986 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
6987 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
6988 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
6989 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
6990 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
6991 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
6992 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
6993 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
6994 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
6995 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
6996 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
6997 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
6998 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6999 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
7000 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
7001 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
7002 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
7003 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
7004
4a38b02b
IV
70052015-12-15 Ilya Verbin <ilya.verbin@intel.com>
7006
7007 * libgomp.h (REFCOUNT_LINK): Define.
7008 (struct splay_tree_key_s): Add link_key.
7009 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
7010 Replace target address of the pointer with target address of newly
7011 mapped object in the splay tree. Set link pointer on target to the
7012 device address of the mapped object.
7013 (gomp_unmap_vars): Restore target address of the pointer in the splay
7014 tree for REFCOUNT_LINK objects after unmapping.
7015 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
7016 declare target link" objects.
7017 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
7018 "omp declare target link" objects, which were mapped for the image.
7019 (gomp_exit_data): Restore target address of the pointer in the splay
7020 tree for REFCOUNT_LINK objects after unmapping.
7021 * testsuite/libgomp.c/target-link-1.c: New file.
7022
d84ffc0a
IV
70232015-12-14 Ilya Verbin <ilya.verbin@intel.com>
7024
7025 * libgomp.h (gomp_device_state): New enum.
7026 (struct gomp_device_descr): Replace is_initialized with state.
7027 (gomp_fini_device): Remove declaration.
7028 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
7029 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
7030 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
7031 (acc_set_device_type): Use state instead of is_initialized.
7032 (acc_set_device_num): Likewise.
7033 * target.c (resolve_device): Use state instead of is_initialized.
7034 Do not initialize finalized device.
7035 (gomp_map_vars): Do nothing if device is finalized.
7036 (gomp_unmap_vars): Likewise.
7037 (gomp_update): Likewise.
7038 (GOMP_offload_register_ver): Use state instead of is_initialized.
7039 (GOMP_offload_unregister_ver): Likewise.
7040 (gomp_init_device): Likewise.
7041 (gomp_unload_device): Likewise.
7042 (gomp_fini_device): Remove.
7043 (gomp_get_target_fn_addr): Do nothing if device is finalized.
7044 (GOMP_target): Go to host fallback if device is finalized.
7045 (GOMP_target_ext): Likewise.
7046 (gomp_exit_data): Do nothing if device is finalized.
7047 (gomp_target_task_fn): Go to host fallback if device is finalized.
7048 (gomp_target_fini): New static function.
7049 (gomp_target_init): Use state instead of is_initialized.
7050 Call gomp_target_fini at exit.
7051
76680678
TV
70522015-12-09 Tom de Vries <tom@codesourcery.com>
7053
7054 PR tree-optimization/68716
7055 * testsuite/libgomp.c/omp-nested-2.c: New test.
7056
ff7a55bf
TS
70572015-12-02 Thomas Schwinge <thomas@codesourcery.com>
7058
7059 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
7060 target openacc_nvidia_accel_selected.
7061 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
7062 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
7063 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
7064 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
7065
37d5ad46
JB
70662015-12-01 Julian Brown <julian@codesourcery.com>
7067 James Norris <James_Norris@mentor.com>
7068
7069 * oacc-parallel.c (GOACC_host_data): New function.
7070 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
7071 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
7072 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
7073 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
7074 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
7075 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
7076 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
7077
db941d7e
CP
70782015-11-30 James Norris <jnorris@codesourcery.com>
7079 Cesar Philippidis <cesar@codesourcery.com>
7080
7081 libgomp/
7082 * libgomp.oacc-fortran/routine-5.f90: New test.
7083 * libgomp.oacc-fortran/routine-7.f90: New test.
7084 * libgomp.oacc-fortran/routine-9.f90: New test.
7085
e0ca27c5
TV
70862015-11-30 Tom de Vries <tom@codesourcery.com>
7087
7088 PR tree-optimization/46032
7089 * testsuite/libgomp.c/pr46032.c: New test.
7090
aec17bfe
JJ
70912015-11-27 Jakub Jelinek <jakub@redhat.com>
7092
8e4e4719
JJ
7093 PR libgomp/68579
7094 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
7095 (gomp_create_target_task): Call it before freeing
7096 GOMP_TARGET_TASK_DATA tasks.
7097
aec17bfe
JJ
7098 PR c/63326
7099 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
7100 in between case label and OpenMP standalone directives.
7101 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
7102
6cfe90e6
DE
71032015-11-26 David Edelsohn <dje.gcc@gmail.com>
7104
7105 * configure: Regenerate.
7106
0e65fd7d
JJ
71072015-11-26 Jakub Jelinek <jakub@redhat.com>
7108
7109 * testsuite/libgomp.c/target-35.c: New test.
7110
dc7a8b4b
JN
71112015-11-22 James Norris <jnorris@codesourcery.com>
7112 Cesar Philippidis <cesar@codesourcery.com>
7113
7114 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
7115 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
7116 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
7117 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
7118 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
7119
48a78aee
JJ
71202015-11-20 Jakub Jelinek <jakub@redhat.com>
7121
7122 PR middle-end/68221
7123 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
7124 * testsuite/libgomp.c/reduction-12.c: Likewise.
7125 * testsuite/libgomp.c++/reduction-11.C: Likewise.
7126 * testsuite/libgomp.c++/reduction-12.C: Likewise.
7127
2d256816
NS
71282015-11-19 Nathan Sidwell <nathan@codesourcery.com>
7129
7130 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
7131 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
7132 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
7133 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
7134 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
7135 and fix.
7136 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
7137 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
7138
33f47f42
NS
71392015-11-18 Nathan Sidwell <nathan@codesourcery.com>
7140
7141 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
7142 worker & gang cases.
7143 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
7144
3d7bfee0
CP
71452015-11-17 Cesar Philippidis <cesar@codesourcery.com>
7146
7147 * config/nvptx/priority_queue.c: New file.
7148
00b9bd52
JJ
71492015-11-14 Jakub Jelinek <jakub@redhat.com>
7150
7151 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
7152 sections.
7153
e4606348
JJ
71542015-11-14 Jakub Jelinek <jakub@redhat.com>
7155 Aldy Hernandez <aldyh@redhat.com>
7156 Ilya Verbin <ilya.verbin@intel.com>
7157
7158 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
7159 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
7160 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
7161 iterators or IV by chunk size.
7162 * parallel.c (gomp_resolve_num_threads): Don't assume that
7163 if thr->ts.team is non-NULL, then pool must be non-NULL.
7164 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
7165 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
7166 GOMP_PLUGIN_target_task_completion.
7167 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
7168 * Makefile.in: Regenerate.
7169 * libgomp.h: Shuffle prototypes and forward definitions around so
7170 priority queues can be defined.
7171 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
7172 (enum gomp_target_task_state): New enum.
7173 (struct gomp_target_task): Add state, tgt, task and team fields.
7174 (gomp_create_target_task): Change return type to bool, add
7175 state argument.
7176 (gomp_target_task_fn): Change return type to bool.
7177 (struct gomp_device_descr): Add async_run_func.
7178 (struct gomp_task): Remove children, next_child, prev_child,
7179 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
7180 Add pnode field.
7181 (struct gomp_taskgroup): Remove children.
7182 Add taskgroup_queue.
7183 (struct gomp_team): Change task_queue type to a priority queue.
7184 (splay_compare): Define inline.
7185 (priority_queue_offset): New.
7186 (priority_node_to_task): New.
7187 (task_to_priority_node): New.
7188 * oacc-mem.c: Do not include splay-tree.h.
7189 * priority_queue.c: New file.
7190 * priority_queue.h: New file.
7191 * splay-tree.c: Do not include splay-tree.h.
7192 (splay_tree_foreach_internal): New.
7193 (splay_tree_foreach): New.
7194 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
7195 (splay_tree_callback): Define typedef.
7196 * target.c (splay_compare): Move to libgomp.h.
7197 (GOMP_target): Don't adjust *thr in any way around running offloaded
7198 task.
7199 (GOMP_target_ext): Likewise. Handle target nowait.
7200 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
7201 return value from gomp_create_target_task, if false, fallthrough
7202 as if no dependencies exist.
7203 (gomp_target_task_fn): Change return type to bool, return true
7204 if the task should have another part scheduled later. Handle
7205 target nowait.
7206 (gomp_load_plugin_for_device): Initialize async_run.
7207 * task.c (gomp_init_task): Initialize children_queue.
7208 (gomp_clear_parent_in_list): New.
7209 (gomp_clear_parent_in_tree): New.
7210 (gomp_clear_parent): Handle priorities.
7211 (GOMP_task): Likewise.
7212 (priority_queue_move_task_first,
7213 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
7214 New functions.
7215 (gomp_create_target_task): Use priority queues. Change return type
7216 to bool, add state argument, return false if for async
7217 {{enter,exit} data,update} constructs no dependencies need to be
7218 waited for, handle target nowait. Set task->fn to NULL instead of
7219 gomp_target_task_fn.
7220 (verify_children_queue): Remove.
7221 (priority_list_upgrade_task): New.
7222 (priority_queue_upgrade_task): New.
7223 (verify_task_queue): Remove.
7224 (priority_list_downgrade_task): New.
7225 (priority_queue_downgrade_task): New.
7226 (gomp_task_run_pre): Use priority queues.
7227 Abstract code out to priority_queue_downgrade_task.
7228 (gomp_task_run_post_handle_dependers): Use priority queues.
7229 (gomp_task_run_post_remove_parent): Likewise.
7230 (gomp_task_run_post_remove_taskgroup): Likewise.
7231 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
7232 tasks specially.
7233 (GOMP_taskwait): Likewise.
7234 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
7235 priority-queue_upgrade_task.
7236 (GOMP_taskgroup_start): Use priority queues.
7237 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
7238 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
7239 barrier.
7240 * taskloop.c (GOMP_taskloop): Handle priorities.
7241 * team.c (gomp_new_team): Call priority_queue_init.
7242 (free_team): Call priority_queue_free.
7243 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
7244 team created for target nowait in implicit parallel region.
7245 (gomp_team_start): For nested check, test thr->ts.level instead of
7246 thr->ts.team != NULL.
7247 * testsuite/libgomp.c/doacross-3.c: New test.
7248 * testsuite/libgomp.c/ordered-5.c: New test.
7249 * testsuite/libgomp.c/priority.c: New test.
7250 * testsuite/libgomp.c/target-31.c: New test.
7251 * testsuite/libgomp.c/target-32.c: New test.
7252 * testsuite/libgomp.c/target-33.c: New test.
7253 * testsuite/libgomp.c/target-34.c: New test.
7254
1d1ab74f
NS
72552015-11-13 Nathan Sidwell <nathan@codesourcery.com>
7256
c5a64cfe
NS
7257 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
7258
1d1ab74f
NS
7259 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
7260 loop is sequential.
7261
dd3c1b14
NS
72622015-11-13 Nathan Sidwell <nathan@codesourcery.com>
7263
7264 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
7265 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
7266
6e232ba4
JN
72672015-11-12 James Norris <jnorris@codesourcery.com>
7268 Joseph Myers <joseph@codesourcery.com>
7269
7270 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
7271 * oacc-parallel.c (GOACC_declare): New function.
7272 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
7273 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
7274 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
7275 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
7276 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
7277
fffeedeb
NS
72782015-11-12 Nathan Sidwell <nathan@codesourcery.com>
7279
7280 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
7281
182190f2
NS
72822015-11-1 Nathan Sidwell <nathan@codesourcery.com>
7283
7284 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
7285 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
7286
36fa0f5f
NS
72872015-11-09 Nathan Sidwell <nathan@codesourcery.com>
7288
d350c40c
NS
7289 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
7290 inadvertent commit.
7291
72922015-11-09 Nathan Sidwell <nathan@codesourcery.com>
7293
36fa0f5f
NS
7294 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
7295 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
7296 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
7297 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
7298 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
7299
66a5f0b4
TS
73002015-11-06 Thomas Schwinge <thomas@codesourcery.com>
7301
7302 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
7303 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
7304
e01d41e5
JJ
73052015-11-05 Jakub Jelinek <jakub@redhat.com>
7306 Ilya Verbin <ilya.verbin@intel.com>
7307
7308 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
7309 GOMP_loop_nonmonotonic_dynamic_start,
7310 GOMP_loop_nonmonotonic_guided_next,
7311 GOMP_loop_nonmonotonic_guided_start,
7312 GOMP_loop_ull_nonmonotonic_dynamic_next,
7313 GOMP_loop_ull_nonmonotonic_dynamic_start,
7314 GOMP_loop_ull_nonmonotonic_guided_next,
7315 GOMP_loop_ull_nonmonotonic_guided_start,
7316 GOMP_parallel_loop_nonmonotonic_dynamic,
7317 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
7318 (GOMP_target_41): Renamed to ...
7319 (GOMP_target_ext): ... this. Add num_teams and thread_limit
7320 arguments.
7321 (GOMP_target_data_41): Renamed to ...
7322 (GOMP_target_data_ext): ... this.
7323 (GOMP_target_update_41): Renamed to ...
7324 (GOMP_target_update_ext): ... this.
7325 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
7326 GOMP_target_data_ext and GOMP_target_update_ext instead of
7327 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
7328 Export GOMP_loop_nonmonotonic_dynamic_next,
7329 GOMP_loop_nonmonotonic_dynamic_start,
7330 GOMP_loop_nonmonotonic_guided_next,
7331 GOMP_loop_nonmonotonic_guided_start,
7332 GOMP_loop_ull_nonmonotonic_dynamic_next,
7333 GOMP_loop_ull_nonmonotonic_dynamic_start,
7334 GOMP_loop_ull_nonmonotonic_guided_next,
7335 GOMP_loop_ull_nonmonotonic_guided_start,
7336 GOMP_parallel_loop_nonmonotonic_dynamic and
7337 GOMP_parallel_loop_nonmonotonic_guided.
7338 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
7339 GOMP_parallel_loop_nonmonotonic_guided,
7340 GOMP_loop_nonmonotonic_dynamic_start,
7341 GOMP_loop_nonmonotonic_guided_start,
7342 GOMP_loop_nonmonotonic_dynamic_next,
7343 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
7344 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
7345 GOMP_loop_ull_nonmonotonic_guided_start,
7346 GOMP_loop_ull_nonmonotonic_dynamic_next,
7347 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
7348 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
7349 functions.
7350 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
7351 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
7352 Use gomp_map_val function.
7353 (gomp_target_fallback_firstprivate): New static function.
7354 (GOMP_target_41): Renamed to ...
7355 (GOMP_target_ext): ... this. Add num_teams and thread_limit
7356 arguments. Move firstprivate fallback handling into a new
7357 function.
7358 (GOMP_target_data_41): Renamed to ...
7359 (GOMP_target_data_ext): ... this.
7360 (GOMP_target_update_41): Renamed to ...
7361 (GOMP_target_update_ext): ... this.
7362 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
7363 gomp_map_0len_lookup instead of gomp_map_lookup.
7364 (omp_target_is_present): Use gomp_map_0len_lookup instead of
7365 gomp_map_lookup.
7366 * testsuite/libgomp.c/target-28.c: Likewise.
7367 * testsuite/libgomp.c/monotonic-1.c: New test.
7368 * testsuite/libgomp.c/monotonic-2.c: New test.
7369 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
7370 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
7371 * testsuite/libgomp.c/pr66199-5.c: New test.
7372 * testsuite/libgomp.c/pr66199-6.c: New test.
7373 * testsuite/libgomp.c/pr66199-7.c: New test.
7374 * testsuite/libgomp.c/pr66199-8.c: New test.
7375 * testsuite/libgomp.c/pr66199-9.c: New test.
7376 * testsuite/libgomp.c/reduction-11.c: New test.
7377 * testsuite/libgomp.c/reduction-12.c: New test.
7378 * testsuite/libgomp.c/reduction-13.c: New test.
7379 * testsuite/libgomp.c/reduction-14.c: New test.
7380 * testsuite/libgomp.c/reduction-15.c: New test.
7381 * testsuite/libgomp.c/target-12.c (main): Adjust for
7382 omp_target_is_present change for one-past-last element.
7383 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
7384 the same var is both mapped and privatized.
7385 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
7386 handling of zero-length array sections.
7387 * testsuite/libgomp.c/target-28.c: New test.
7388 * testsuite/libgomp.c/target-29.c: New test.
7389 * testsuite/libgomp.c/target-30.c: New test.
7390 * testsuite/libgomp.c/target-teams-1.c: New test.
7391 * testsuite/libgomp.c++/member-6.C: New test.
7392 * testsuite/libgomp.c++/member-7.C: New test.
7393 * testsuite/libgomp.c++/monotonic-1.C: New test.
7394 * testsuite/libgomp.c++/monotonic-2.C: New test.
7395 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
7396 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
7397 * testsuite/libgomp.c++/pr66199-3.C: New test.
7398 * testsuite/libgomp.c++/pr66199-4.C: New test.
7399 * testsuite/libgomp.c++/pr66199-5.C: New test.
7400 * testsuite/libgomp.c++/pr66199-6.C: New test.
7401 * testsuite/libgomp.c++/pr66199-7.C: New test.
7402 * testsuite/libgomp.c++/pr66199-8.C: New test.
7403 * testsuite/libgomp.c++/pr66199-9.C: New test.
7404 * testsuite/libgomp.c++/reduction-11.C: New test.
7405 * testsuite/libgomp.c++/reduction-12.C: New test.
7406 * testsuite/libgomp.c++/target-13.C: New test.
7407 * testsuite/libgomp.c++/target-14.C: New test.
7408 * testsuite/libgomp.c++/target-15.C: New test.
7409 * testsuite/libgomp.c++/target-16.C: New test.
7410 * testsuite/libgomp.c++/target-17.C: New test.
7411 * testsuite/libgomp.c++/target-18.C: New test.
7412 * testsuite/libgomp.c++/target-19.C: New test.
7413
ccc8282b
NS
74142015-11-04 Nathan Sidwell <nathan@codesourcery.com>
7415
7416 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
7417 and reduction copy.
7418 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
7419 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
7420 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
7421 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
7422 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
7423 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
7424 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
7425 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
7426 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
7427 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
7428 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
7429 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
7430 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
7431 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
7432
5d6823a2
NS
74332015-11-04 Nathan Sidwell <nathan@codesourcery.com>
7434
7435 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
7436 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
7437 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
7438 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
7439 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
7440 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
7441 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
7442 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
7443
5c06742f
NS
74442015-11-03 Nathan Sidwell <nathan@codesourcery.com>
7445
7446 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
7447 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
7448 (GOMP_OFFLOAD_openacc_parallel): Likewise.
7449 * oacc-host.c (host_openacc_exec): Likewise.
7450 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
7451
4bf9e5a8
TS
74522015-11-03 Julian Brown <julian@codesourcery.com>
7453 Thomas Schwinge <thomas@codesourcery.com>
7454
7455 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
7456 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
7457 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
7458 Likewise.
7459 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
7460 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
7461
74622015-11-03 James Norris <jnorris@codesourcery.com>
7463
7464 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
7465 file.
7466 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
7467 Likewise.
7468 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
7469 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
7470 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
7471 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
7472 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
7473
a0e701d8
NS
74742015-10-29 Nathan Sidwell <nathan@codesourcery.com>
7475
7476 * openacc.h (enum acc_device_t): Reformat. Ensure layout
7477 compatibility.
7478 (enum acc_async_t): Reformat.
7479 (acc_on_device): Declare compatible with builtin and provide C++
7480 wrapper.
7481 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
7482
41e977ac
TS
74832015-10-29 Thomas Schwinge <thomas@codesourcery.com>
7484 Cesar Philippidis <cesar@codesourcery.com>
7485
7486 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
7487 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
7488 ... this. Add a description of the test at the top of the file.
7489 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
7490 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
7491 ... this. Add a description of the test at the top of the file.
7492
e3091406
NS
74932015-10-28 Nathan Sidwell <nathan@codesourcery.com>
7494
7495 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
7496 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
7497 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
7498 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
7499 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
7500 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
7501
a1c1908b
NS
75022015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7503
7504 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
7505 dimensions.
7506
b3962a4a
TS
75072015-10-27 Thomas Schwinge <thomas@codesourcery.com>
7508
7509 PR testsuite/68063
7510 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
7511
88bae6f4
TS
75122015-10-27 James Norris <jnorris@codesourcery.com>
7513
7514 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
7515 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
7516
8baa7864
TS
75172015-10-26 Thomas Schwinge <thomas@codesourcery.com>
7518
bdeb752c
TS
7519 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
7520 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
7521
ecd4fd43
TS
7522 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
7523 acc_device_nvidia usage.
7524 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
7525 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7526 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
7527
aa8b7d30
TS
7528 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
7529 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
7530
7c8f138d
TS
7531 PR libgomp/66518
7532 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
7533
8baa7864
TS
7534 PR libgomp/65437
7535 PR libgomp/66518
7536 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
7537 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
7538
88ebcde5
TV
75392015-10-23 Tom de Vries <tom@codesourcery.com>
7540
7541 PR testsuite/68063
7542 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
7543
9ef83c04
NS
75442015-10-20 Nathan Sidwell <nathan@codesourcery.com>
7545
7546 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
7547 vector_length.
7548 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
7549
3837c6d6
IV
75502015-10-14 Ilya Verbin <ilya.verbin@intel.com>
7551 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
7552
7553 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
7554 to 0 when mapnum is 0.
7555
ac8a1965
SH
75562015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
7557
7558 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
7559 Cast to int from int32_t.
7560
d9a6bd32
JJ
75612015-10-13 Jakub Jelinek <jakub@redhat.com>
7562 Aldy Hernandez <aldyh@redhat.com>
7563 Ilya Verbin <ilya.verbin@intel.com>
7564
7565 * config/linux/affinity.c (omp_get_place_num_procs,
7566 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
7567 * config/linux/doacross.h: New file.
7568 * config/posix/affinity.c (omp_get_place_num_procs,
7569 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
7570 * config/posix/doacross.h: New file.
7571 * env.c: Include gomp-constants.h.
7572 (struct gomp_task_icv): Rename run_sched_modifier to
7573 run_sched_chunk_size.
7574 (gomp_max_task_priority_var): New variable.
7575 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
7576 (handle_omp_display_env): Change _OPENMP value from 201307 to
7577 201511. Print OMP_MAX_TASK_PRIORITY.
7578 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
7579 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
7580 chunk_size and run_sched_modifier to run_sched_chunk_size.
7581 (omp_get_max_task_priority, omp_get_initial_device,
7582 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
7583 omp_get_partition_place_nums): New functions.
7584 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
7585 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
7586 to chunk_size.
7587 (omp_get_num_places_, omp_get_place_num_procs_,
7588 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
7589 omp_get_place_proc_ids_8_, omp_get_place_num_,
7590 omp_get_partition_num_places_, omp_get_partition_place_nums_,
7591 omp_get_partition_place_nums_8_, omp_get_initial_device_,
7592 omp_get_max_task_priority_): New functions.
7593 * libgomp_g.h (GOMP_loop_doacross_static_start,
7594 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
7595 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
7596 GOMP_loop_ull_doacross_dynamic_start,
7597 GOMP_loop_ull_doacross_guided_start,
7598 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
7599 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
7600 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
7601 GOMP_target_data_41, GOMP_target_update_41,
7602 GOMP_target_enter_exit_data): New prototypes.
7603 (GOMP_task): Add prototype argument.
7604 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
7605 (struct gomp_doacross_work_share): New type.
7606 (struct gomp_work_share): Add doacross field.
7607 (struct gomp_task_icv): Rename run_sched_modifier to
7608 run_sched_chunk_size.
7609 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
7610 GOMP_TASK_UNDEFERRED. Add comments.
7611 (struct gomp_task_depend_entry): Add comments.
7612 (struct gomp_task): Likewise.
7613 (struct gomp_taskgroup): Likewise.
7614 (struct gomp_target_task): New type.
7615 (struct gomp_team): Add comment.
7616 (gomp_get_place_proc_ids_8, gomp_doacross_init,
7617 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
7618 gomp_create_target_task, gomp_target_task_fn): New prototypes.
7619 (struct target_var_desc): New type.
7620 (struct target_mem_desc): Adjust comment. Use struct
7621 target_var_desc instead of splay_tree_key for list.
7622 (REFCOUNT_INFINITY): Define.
7623 (struct splay_tree_key_s): Remove copy_from field.
7624 (struct gomp_device_descr): Add dev2dev_func field.
7625 (enum gomp_map_vars_kind): New enum.
7626 (gomp_map_vars): Add one argument.
7627 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
7628 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
7629 omp_get_place_num_procs, omp_get_place_num_procs_,
7630 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
7631 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
7632 omp_get_place_num_, omp_get_partition_num_places,
7633 omp_get_partition_num_places_, omp_get_partition_place_nums,
7634 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
7635 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
7636 omp_target_free, omp_target_is_present, omp_target_memcpy,
7637 omp_target_memcpy_rect, omp_target_associate_ptr and
7638 omp_target_disassociate_ptr.
7639 (GOMP_4.0.2): Renamed to ...
7640 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
7641 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
7642 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
7643 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
7644 GOMP_loop_doacross_static_start, GOMP_doacross_post,
7645 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
7646 GOMP_loop_ull_doacross_guided_start,
7647 GOMP_loop_ull_doacross_runtime_start,
7648 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
7649 GOMP_doacross_ull_wait.
7650 * libgomp.texi: Document omp_get_max_task_priority.
7651 Rename modifier argument to chunk_size for omp_set_schedule and
7652 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
7653 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
7654 to run_sched_chunk_size renaming.
7655 (GOMP_loop_ordered_runtime_start): Likewise.
7656 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
7657 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
7658 GOMP_parallel_loop_runtime_start): New functions.
7659 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
7660 to run_sched_chunk_size renaming.
7661 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
7662 GOMP_loop_doacross_guided_start): New functions or aliases.
7663 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
7664 run_sched_modifier to run_sched_chunk_size renaming.
7665 (GOMP_loop_ull_ordered_runtime_start): Likewise.
7666 (gomp_loop_ull_doacross_static_start,
7667 gomp_loop_ull_doacross_dynamic_start,
7668 gomp_loop_ull_doacross_guided_start,
7669 GOMP_loop_ull_doacross_runtime_start): New functions.
7670 (GOMP_loop_ull_doacross_static_start,
7671 GOMP_loop_ull_doacross_dynamic_start,
7672 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
7673 * oacc-mem.c (acc_map_data, present_create_copy,
7674 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
7675 to gomp_map_vars.
7676 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
7677 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
7678 instead of false to gomp_map_vars.
7679 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
7680 * omp.h.in (omp_lock_hint_t): New type.
7681 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
7682 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
7683 omp_get_place_num, omp_get_partition_num_places,
7684 omp_get_partition_place_nums, omp_get_initial_device,
7685 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
7686 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
7687 omp_target_associate_ptr, omp_target_disassociate_ptr): New
7688 prototypes.
7689 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
7690 (omp_lock_hint_none, omp_lock_hint_uncontended,
7691 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
7692 omp_lock_hint_speculative): New parameters.
7693 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
7694 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
7695 omp_get_place_num, omp_get_partition_num_places,
7696 omp_get_partition_place_nums, omp_get_initial_device,
7697 omp_get_max_task_priority): New interfaces.
7698 (omp_set_schedule, omp_get_schedule): Rename modifier argument
7699 to chunk_size.
7700 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
7701 (omp_lock_hint_none, omp_lock_hint_uncontended,
7702 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
7703 omp_lock_hint_speculative): New parameters.
7704 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
7705 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
7706 omp_get_place_num, omp_get_partition_num_places,
7707 omp_get_partition_place_nums, omp_get_initial_device,
7708 omp_get_max_task_priority): New functions and subroutines.
7709 * ordered.c: Include stdarg.h and string.h.
7710 (MAX_COLLAPSED_BITS): Define.
7711 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
7712 gomp_doacross_ull_init, GOMP_doacross_ull_post,
7713 GOMP_doacross_ull_wait): New functions.
7714 * target.c: Include errno.h.
7715 (resolve_device): If device is not initialized, call
7716 gomp_init_device on it.
7717 (gomp_map_lookup): New function.
7718 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
7719 Don't bump refcount if REFCOUNT_INFINITY. Handle
7720 GOMP_MAP_ALWAYS_TO_P.
7721 (get_kind): Rename is_openacc argument to short_mapkind.
7722 (gomp_map_pointer): Use gomp_map_lookup.
7723 (gomp_map_fields_existing): New function.
7724 (gomp_map_vars): Rename is_openacc argument to short_mapkind
7725 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
7726 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
7727 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
7728 Adjust for tgt->list changed type and copy_from living in there.
7729 (gomp_copy_from_async): Adjust for tgt->list changed type and
7730 copy_from living in there.
7731 (gomp_unmap_vars): Likewise.
7732 (gomp_update): Likewise. Rename is_openacc argument to
7733 short_mapkind. Don't fail if object is not mapped.
7734 (gomp_load_image_to_device): Initialize refcount to
7735 REFCOUNT_INFINITY.
7736 (gomp_target_fallback): New function.
7737 (gomp_get_target_fn_addr): Likewise.
7738 (GOMP_target): Adjust gomp_map_vars caller, use
7739 gomp_get_target_fn_addr and gomp_target_fallback.
7740 (GOMP_target_41): New function.
7741 (gomp_target_data_fallback): New function.
7742 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
7743 (GOMP_target_data_41): New function.
7744 (GOMP_target_update): Adjust gomp_update caller.
7745 (GOMP_target_update_41): New function.
7746 (gomp_exit_data, GOMP_target_enter_exit_data,
7747 gomp_target_task_fn, omp_target_alloc, omp_target_free,
7748 omp_target_is_present, omp_target_memcpy,
7749 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
7750 omp_target_associate_ptr, omp_target_disassociate_ptr,
7751 gomp_load_plugin_for_device): New functions.
7752 * task.c: Include gomp-constants.h. Include taskloop.c
7753 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
7754 (gomp_task_handle_depend): New function.
7755 (GOMP_task): Use it. Add priority argument. Use
7756 gomp-constant.h constants instead of hardcoded numbers.
7757 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
7758 (gomp_create_target_task): New function.
7759 (verify_children_queue, verify_taskgroup_queue,
7760 verify_task_queue): New functions.
7761 (gomp_task_run_pre): Call verify_*_queue functions.
7762 If an upcoming tied task is about to leave the sibling or
7763 taskgroup queues in an invalid state, adjust appropriately.
7764 Remove taskgroup argument. Add comments.
7765 (gomp_task_run_post_handle_dependers): Add comments.
7766 (gomp_task_run_post_remove_parent): Likewise.
7767 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
7768 (GOMP_taskwait): Likewise. Add comments.
7769 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
7770 problem such that the first non parent_depends_on task does not
7771 end up at the end of the children queue.
7772 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
7773 GOMP_TASK_UNDEFERRED.
7774 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
7775 * taskloop.c: New file.
7776 * testsuite/lib/libgomp.exp
7777 (check_effective_target_offload_device_nonshared_as): New proc.
7778 * testsuite/libgomp.c/affinity-2.c: New test.
7779 * testsuite/libgomp.c/doacross-1.c: New test.
7780 * testsuite/libgomp.c/doacross-2.c: New test.
7781 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
7782 Add map clause to target.
7783 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
7784 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
7785 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
7786 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
7787 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
7788 Likewise.
7789 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
7790 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
7791 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
7792 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
7793 not defined. Use those where needed.
7794 * testsuite/libgomp.c/for-4.c: New test.
7795 * testsuite/libgomp.c/for-5.c: New test.
7796 * testsuite/libgomp.c/for-6.c: New test.
7797 * testsuite/libgomp.c/linear-1.c: New test.
7798 * testsuite/libgomp.c/ordered-4.c: New test.
7799 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
7800 only allowed on the loop iterator.
7801 * testsuite/libgomp.c/pr66199-3.c: New test.
7802 * testsuite/libgomp.c/pr66199-4.c: New test.
7803 * testsuite/libgomp.c/reduction-7.c: New test.
7804 * testsuite/libgomp.c/reduction-8.c: New test.
7805 * testsuite/libgomp.c/reduction-9.c: New test.
7806 * testsuite/libgomp.c/reduction-10.c: New test.
7807 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
7808 map(tofrom:s).
7809 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
7810 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
7811 * testsuite/libgomp.c/target-11.c: New test.
7812 * testsuite/libgomp.c/target-12.c: New test.
7813 * testsuite/libgomp.c/target-13.c: New test.
7814 * testsuite/libgomp.c/target-14.c: New test.
7815 * testsuite/libgomp.c/target-15.c: New test.
7816 * testsuite/libgomp.c/target-16.c: New test.
7817 * testsuite/libgomp.c/target-17.c: New test.
7818 * testsuite/libgomp.c/target-18.c: New test.
7819 * testsuite/libgomp.c/target-19.c: New test.
7820 * testsuite/libgomp.c/target-20.c: New test.
7821 * testsuite/libgomp.c/target-21.c: New test.
7822 * testsuite/libgomp.c/target-22.c: New test.
7823 * testsuite/libgomp.c/target-23.c: New test.
7824 * testsuite/libgomp.c/target-24.c: New test.
7825 * testsuite/libgomp.c/target-25.c: New test.
7826 * testsuite/libgomp.c/target-26.c: New test.
7827 * testsuite/libgomp.c/target-27.c: New test.
7828 * testsuite/libgomp.c/taskloop-1.c: New test.
7829 * testsuite/libgomp.c/taskloop-2.c: New test.
7830 * testsuite/libgomp.c/taskloop-3.c: New test.
7831 * testsuite/libgomp.c/taskloop-4.c: New test.
7832 * testsuite/libgomp.c++/ctor-13.C: New test.
7833 * testsuite/libgomp.c++/doacross-1.C: New test.
7834 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
7835 Replace offload_device with offload_device_nonshared_as.
7836 * testsuite/libgomp.c++/for-12.C: New test.
7837 * testsuite/libgomp.c++/for-13.C: New test.
7838 * testsuite/libgomp.c++/for-14.C: New test.
7839 * testsuite/libgomp.c++/linear-1.C: New test.
7840 * testsuite/libgomp.c++/member-1.C: New test.
7841 * testsuite/libgomp.c++/member-2.C: New test.
7842 * testsuite/libgomp.c++/member-3.C: New test.
7843 * testsuite/libgomp.c++/member-4.C: New test.
7844 * testsuite/libgomp.c++/member-5.C: New test.
7845 * testsuite/libgomp.c++/ordered-1.C: New test.
7846 * testsuite/libgomp.c++/reduction-5.C: New test.
7847 * testsuite/libgomp.c++/reduction-6.C: New test.
7848 * testsuite/libgomp.c++/reduction-7.C: New test.
7849 * testsuite/libgomp.c++/reduction-8.C: New test.
7850 * testsuite/libgomp.c++/reduction-9.C: New test.
7851 * testsuite/libgomp.c++/reduction-10.C: New test.
7852 * testsuite/libgomp.c++/reference-1.C: New test.
7853 * testsuite/libgomp.c++/simd14.C: New test.
7854 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
7855 * testsuite/libgomp.c++/target-5.C: New test.
7856 * testsuite/libgomp.c++/target-6.C: New test.
7857 * testsuite/libgomp.c++/target-7.C: New test.
7858 * testsuite/libgomp.c++/target-8.C: New test.
7859 * testsuite/libgomp.c++/target-9.C: New test.
7860 * testsuite/libgomp.c++/target-10.C: New test.
7861 * testsuite/libgomp.c++/target-11.C: New test.
7862 * testsuite/libgomp.c++/target-12.C: New test.
7863 * testsuite/libgomp.c++/taskloop-1.C: New test.
7864 * testsuite/libgomp.c++/taskloop-2.C: New test.
7865 * testsuite/libgomp.c++/taskloop-3.C: New test.
7866 * testsuite/libgomp.c++/taskloop-4.C: New test.
7867 * testsuite/libgomp.c++/taskloop-5.C: New test.
7868 * testsuite/libgomp.c++/taskloop-6.C: New test.
7869 * testsuite/libgomp.c++/taskloop-7.C: New test.
7870 * testsuite/libgomp.c++/taskloop-8.C: New test.
7871 * testsuite/libgomp.c++/taskloop-9.C: New test.
7872 * testsuite/libgomp.fortran/affinity1.f90: New test.
7873 * testsuite/libgomp.fortran/affinity2.f90: New test.
7874
1f600fea
TV
78752015-10-13 Tom de Vries <tom@codesourcery.com>
7876
7877 PR tree-optimization/67476
7878 * testsuite/libgomp.c/autopar-3.c: New test.
7879 * testsuite/libgomp.c/autopar-4.c: New test.
7880 * testsuite/libgomp.c/autopar-5.c: New test.
7881 * testsuite/libgomp.c/autopar-6.c: New test.
7882 * testsuite/libgomp.c/autopar-7.c: New test.
7883 * testsuite/libgomp.c/autopar-8.c: New test.
7884
058a654b
JN
78852015-10-12 James Norris <jnorris@codesourcery.com>
7886
7887 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
7888 initializer.
7889
9e531d37
DM
78902015-10-09 David Malcolm <dmalcolm@redhat.com>
7891
7892 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
7893 using load_gcc_lib.
7894
113020dc
TS
78952015-10-02 Thomas Schwinge <thomas@codesourcery.com>
7896
7897 * oacc-ptx.h: Remove file, moving its content into...
7898 * config/nvptx/fortran.c: ... here...
7899 * config/nvptx/oacc-init.c: ..., here...
7900 * config/nvptx/oacc-parallel.c: ..., and here.
7901 * config/nvptx/openacc.f90: New file.
7902 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
7903 (link_ptx): Don't link in predefined bits of PTX code.
7904
cc3cd79b
NS
79052015-09-30 Nathan Sidwell <nathan@codesourcery.com>
7906 Bernd Schmidt <bernds@codesourcery.com>
7907
7908 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
7909 (struct targ_ptx_obj): New.
7910 (nvptx_tdata): Move earlier, change data format.
7911 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
7912 objects.
7913 (GOMP_OFFLOAD_load_image): Adjust.
7914
4e2a5450
TS
79152015-09-30 Thomas Schwinge <thomas@codesourcery.com>
7916
7917 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
7918 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
7919 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
7920 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
7921 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7922 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
7923 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
7924 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
7925 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
7926 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
7927 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7928 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
7929 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
7930 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7931 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7932 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7933 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7934 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7935 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7936 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7937 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7938 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7939 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7940 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7941 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7942 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7943 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
7944 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7945 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7946 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7947 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7948 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7949 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
7950 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7951 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7952 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7953 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7954 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7955 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7956 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7957 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7958 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7959 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7960 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7961 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
7962 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
7963 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
7964 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
7965 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
7966 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
7967 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
7968 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
7969 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
7970 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
7971 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
7972 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7973 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7974 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
7975 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
7976 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
7977 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
7978 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
7979 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7980
164453bb
NS
79812015-09-29 Nathan Sidwell <nathan@codesourcery.com>
7982
7983 * oacc-init.c (acc_on_device): Force optimization level.
7984
a12a0437
NS
79852015-09-29 Nathan Sidwell <nathan@codesourcery.com>
7986
7987 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
7988 (cuda_errlist): Delete.
7989 (cuda_error): Reimplement.
7990
3e32ee19
NS
79912015-09-28 Nathan Sidwell <nathan@codesourcery.com>
7992
7993 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
7994 array.
7995 * libgomp.map (GOACC_parallel_keyed): New.
7996 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
7997 all callers.
7998 (GOACC_parallel_keyed): New interface. Lose geometry arguments
7999 and take keyed varargs list. Adjust call to exec_func.
8000 (GOACC_parallel): Force host fallback.
8001 * libgomp_g.h (GOACC_parallel): Remove.
8002 (GOACC_parallel_keyed): Declare.
8003 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
93d90219 8004 (struct targ_gn_descriptor): Replace name field with launch field.
3e32ee19
NS
8005 (nvptx_exec): Lose separate geometry args, take array. Process
8006 dynamic dimensions and adjust.
8007 (struct nvptx_tdata): Replace fn_names field with fn_descs.
8008 (GOMP_OFFLOAD_load_image): Adjust for change in function table
8009 data.
8010 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
8011 passing.
8012 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
8013 passing.
8014
6bb4c3e2
CLT
80152015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
8016
8017 PR libgomp/67141
8018 * oacc-int.h (goacc_host_init): Add declaration.
8019 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
8020 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
8021
74032f47 80222015-09-08 Aditya Kumar <hiraditya@msn.com>
34b18169 8023 Sebastian Pop <s.pop@samsung.com>
74032f47 8024
93d90219 8025 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
74032f47
AK
8026 match o/p.
8027 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
8028 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
8029 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
8030 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
8031 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
8032
97875f4a
JJ
80332015-09-03 Jakub Jelinek <jakub@redhat.com>
8034
8035 * configure.tgt: Add missing ;; in between nvptx and rtems
8036 snippets.
8037
06441dd5
SH
80382015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
8039
8040 * config/posix/pool.h (gomp_adjust_thread_attr): New.
8041 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
8042 (gomp_thread_pool_reservoir): Add priority member.
8043 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
8044 priority.
8045 (parse_thread_pools): Likewise.
8046 * team.c (gomp_team_start): Call configuration provided
8047 gomp_adjust_thread_attr(). Destroy thread attributes if
8048 necessary.
8049 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
8050
66c59f92
SH
80512015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
8052
8053 * config/posix/pool.h: New.
8054 * config/rtems/pool.h: Likewise.
8055 * config/rtems/proc.c: Likewise.
8056 * libgomp.h (gomp_thread_destructor): Declare.
8057 * team.c: Include configuration provided "pool.h".
8058 (gomp_get_thread_pool): Define in configuration.
8059 (gomp_team_end): Call configuration defined
8060 gomp_release_thread_pool().
8061
13c41b2e
SH
80622015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
8063
8064 * config/rtems/bar.c: New.
8065 * config/rtems/bar.h: Likewise.
8066 * config/rtems/mutex.c: Likewise.
8067 * config/rtems/mutex.h: Likewise.
8068 * config/rtems/sem.c: Likewise.
8069 * config/rtems/sem.h: Likewise.
8070 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
8071 <sys/lock.h> header file.
8072 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
8073 supported by Newlib.
8074 * configure: Regenerate.
8075
7892ec67
SH
80762015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
8077
8078 * team.c (gomp_new_thread_pool): Delete and move content to ...
8079 (gomp_get_thread_pool): ... new function. Allocate and
8080 initialize thread pool on demand.
8081 (get_last_team): Use gomp_get_thread_pool().
8082 (gomp_team_start): Delete thread pool initialization.
8083
1b96e9a4
TV
80842015-09-03 Tom de Vries <tom@codesourcery.com>
8085
8086 PR tree-optimization/65637
8087 * testsuite/libgomp.c/autopar-2.c: New test.
8088
3ff2d74e
TV
80892015-08-29 Tom de Vries <tom@codesourcery.com>
8090
8091 PR tree-optimization/46193
8092 * testsuite/libgomp.c/pr46193.c: New test.
8093
2a21ff19
NS
80942015-08-24 Nathan Sidwell <nathan@codesourcery.com>
8095
8096 libgomp/
8097 * libgomp.map: Add 4.0.2 version.
8098 * target.c (offload_image_descr): Add version field.
8099 (gomp_load_image_to_device): Add version argument. Adjust plugin
8100 call. Improve load mismatch diagnostic.
8101 (gomp_unload_image_from_device): Add version argument. Adjust plugin
8102 call.
8103 (GOMP_offload_regster): Make stub function, move bulk to ...
8104 (GOMP_offload_register_ver): ... here. Process version argument.
8105 (GOMP_offload_unregister): Make stub function, move bulk to ...
8106 (GOMP_offload_unregister_ver): ... here. Process version argument.
8107 (gomp_init_device): Process version field.
8108 (gomp_unload_device): Process version field.
8109 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
8110 macros. Check plugin version.
8111 * libgomp.h (gomp_device_descr): Add version function field. Adjust
8112 loader and unloader types.
8113 * oacc-host.c: Include gomp-constants.h.
8114 (host_version): New.
8115 (host_load_image, host_unload_image): Adjust.
8116 (host_dispatch): Add host_version.
8117 * plugin/plugin-nvptx.c: Include gomp-constants.h.
8118 (GOMP_OFFLOAD_version): New.
8119 (GOMP_OFFLOAD_load_image): Add version arg and check it.
8120 (GOMP_OFFLOAD_unload_image): Likewise.
8121 * plugin/plugin-host.c: Include gomp-constants.h.
8122 (GOMP_OFFLOAD_version): New.
8123 (GOMP_OFFLOAD_load_image): Add version arg.
8124 (GOMP_OFFLOAD_unload_image): Likewise.
8125
1358a747
TV
81262015-08-24 Tom de Vries <tom@codesourcery.com>
8127
8128 PR tree-optimization/65468
8129 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
8130
6be5c241
TV
81312015-08-24 Tom de Vries <tom@codesourcery.com>
8132
8133 PR tree-optimization/65468
8134 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
8135
bfe7ac89
JV
81362015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
8137
8138 PR libgomp/66761
8139 PR libgomp/67303
8140 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
8141 (gomp_iter_guided_next): Idem.
8142 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
8143 (gomp_iter_ull_guided_next): Idem.
8144 * config/linux/wait.h (do_spin): Idem.
8145
b97e78b7
TS
81462015-08-10 Thomas Schwinge <thomas@codesourcery.com>
8147
8148 * libgomp-plugin.h (enum offload_target_type): Remove
8149 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
8150 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
8151 * openacc.h (enum acc_device_t): Likewise.
8152 * openacc_lib.h: Likewise.
8153 * oacc-init.c (name_of_acc_device_t): Don't handle it.
8154 (acc_on_device): Just use __builtin_acc_on_device.
8155 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
8156 of acc_on_device builtin.
8157 * plugin/plugin-host.h: Remove file.
8158 * plugin/plugin-host.c: Likewise, but salvage some content into...
8159 * oacc-host.c: ... this file.
8160 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
8161 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
8162 * Makefile.in: Regenerate.
8163 * configure: Likewise.
8164 * testsuite/lib/libgomp.exp
8165 (check_effective_target_openacc_host_nonshm_selected): Remove.
8166 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
8167 ACC_DEVICE_TYPE=host_nonshm.
8168 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8169 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8170 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
8171 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
8172 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
8173 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
8174
44a7d18d
TS
81752015-08-10 Thomas Schwinge <thomas@codesourcery.com>
8176 Jakub Jelinek <jakub@redhat.com>
8177
8178 * config/nvptx/affinity.c: New file.
8179 * config/nvptx/alloc.c: Likewise.
8180 * config/nvptx/bar.c: Likewise.
8181 * config/nvptx/barrier.c: Likewise.
8182 * config/nvptx/critical.c: Likewise.
8183 * config/nvptx/env.c: Likewise.
8184 * config/nvptx/error.c: Likewise.
8185 * config/nvptx/fortran.c: Likewise.
8186 * config/nvptx/iter.c: Likewise.
8187 * config/nvptx/iter_ull.c: Likewise.
8188 * config/nvptx/libgomp-plugin.c: Likewise.
8189 * config/nvptx/lock.c: Likewise.
8190 * config/nvptx/loop.c: Likewise.
8191 * config/nvptx/loop_ull.c: Likewise.
8192 * config/nvptx/mutex.c: Likewise.
8193 * config/nvptx/oacc-async.c: Likewise.
8194 * config/nvptx/oacc-cuda.c: Likewise.
8195 * config/nvptx/oacc-host.c: Likewise.
8196 * config/nvptx/oacc-init.c: Likewise.
8197 * config/nvptx/oacc-mem.c: Likewise.
8198 * config/nvptx/oacc-parallel.c: Likewise.
8199 * config/nvptx/oacc-plugin.c: Likewise.
8200 * config/nvptx/omp-lock.h: Likewise.
8201 * config/nvptx/ordered.c: Likewise.
8202 * config/nvptx/parallel.c: Likewise.
8203 * config/nvptx/proc.c: Likewise.
8204 * config/nvptx/ptrlock.c: Likewise.
8205 * config/nvptx/sections.c: Likewise.
8206 * config/nvptx/sem.c: Likewise.
8207 * config/nvptx/single.c: Likewise.
8208 * config/nvptx/splay-tree.c: Likewise.
8209 * config/nvptx/target.c: Likewise.
8210 * config/nvptx/task.c: Likewise.
8211 * config/nvptx/team.c: Likewise.
8212 * config/nvptx/time.c: Likewise.
8213 * config/nvptx/work.c: Likewise.
8214 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
8215 * configure: Regenerate.
8216 * configure.tgt (config_path): Set to "nvptx" for target
8217 nvptx*-*-*.
8218
96a2d174
TS
82192015-08-10 Thomas Schwinge <thomas@codesourcery.com>
8220
8221 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
8222
9ebddeb0
NS
82232015-08-03 Nathan Sidwell <nathan@codesourcery.com>
8224
8225 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
8226 (cuda_errlist): Constify.
8227 (errmsg): Move into ...
8228 (cuda_error): ... here. Make smaller.
8229 (_XSTR, _STR): Delete.
8230 (cuda_synames): Delete.
8231 (verify_device_library): Delete.
8232 (nvptx_init): Don't call it.
8233
12efb1d7
TV
82342015-07-28 Tom de Vries <tom@codesourcery.com>
8235
8236 * testsuite/libgomp.c/uns-outer-4.c: New test.
8237
710ee218
CP
82382015-07-24 Cesar Philippidis <cesar@codesourcery.com>
8239
8240 * testsuite/libgomp.c/pr66714.c: New test.
8241
27c4ac7d
MB
82422015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
8243
8244 PR libgomp/66950
8245 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
8246 (fib_ref): New function.
8247 (fib): Correct corner cases in the recursion.
8248 (main): Replace the non-simd loop with fib_ref call.
8249 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
8250 subroutine.
8251 (fibonacci): Lower the parameter N to 30. Correct accordingly check
8252 for the last array element value. Replace the non-simd loop with
8253 fib_ref call. Remove redundant b_ref array. Remove the comparison
8254 of the last array element with according Fibonacci sequence element.
8255 (fib): Correct corner cases in the recursion.
8256
22be2349
NS
82572015-07-21 Nathan Sidwell <nathan@codesourcery.com>
8258
8259 * target.c (gomp_offload_image_to_device): Rename to ...
8260 (gomp_load_image_to_device): ... here.
8261 (GOMP_offload_register): Adjust call.
8262 (gomp_init_device): Likewise.
8263 (gomp_unload_image_from_device): New. Broken out of ...
8264 (GOMP_offload_unregister): ... here. Call it.
8265 (gomp_unload_device): New.
8266 * libgomp.h (gomp_unload_device): Declare.
8267 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
8268 mem maps.
8269
f3e9a059
NS
82702015-07-20 Nathan Sidwell <nathan@codesourcery.com>
8271
a091118d
NS
8272 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
8273 wait=-specific if.
8274 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
8275 !=0 condition.
8276 (goacc_waits): Move !num_waits handling to ...
8277 (GOACC_wait): ... here, the only caller that might have zero waits.
8278
f3e9a059
NS
8279 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
8280 (struct ptx_image_data): Move earlier, add fns field.
8281 (struct ptx_device): Add images and image_lock fields.
8282 (ptx_images, ptx_image_lock): Delete.
8283 (nvptx_open_device): Initialize images and image_lock fields.
8284 (nvptx_close_device): Destroy image_lock.
8285 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
8286 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
8287 fields.
8288
afb2d80b
NS
82892015-07-17 Nathan Sidwell <nathan@codesourcery.com>
8290
896c28a7
NS
8291 * target.c (GOMP_offload_register): Use int for device type arg.
8292 (GOMP_offload_unregister): Likewise.
8293
ebe4a560
NS
8294 * target.c (struct_offload_image_descr): Constify host_table.
8295 (gomp_offload_image_to_device): Likewise.
8296 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
8297
afb2d80b
NS
8298 * libgomp.h (gomp_device_descr): Constify target data arguments.
8299 * target.c (struct offload_image_descr): Constify target_data.
8300 (gomp_offload_image_to_device): Likewise.
8301 (GOMP_offload_register): Likewise.
93d90219 8302 (GOMP_offload_unregister): Likewise.
afb2d80b
NS
8303 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
8304 GOMP_OFFLOAD_unload_image): Constify target data.
8305 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
8306 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
8307
a4cb876d
NS
83082015-07-16 Nathan Sidwell <nathan@codesourcery.com>
8309
8310 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
8311 Workaround driver library const error.
8312 (struct nvptx_tdata, nvptx_tdata_t): New.
8313 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
8314 type.
8315
28ef6a27
MB
83162015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
8317
8318 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
8319 of EPS parameter from integer to real.
8320 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
8321 type of EPS parameter from integer to real.
8322
6dba0113
SH
83232015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
8324
8325 * team.c (get_last_team): New.
8326 (gomp_new_team): Recycle last non-nested team if possible.
8327 (gomp_team_end): Move team work share list free lock destruction
8328 to ...
8329 (free_team): ... here.
8330
4c1cb4da
MB
83312015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
8332
8333 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
8334 and ref from int to double. Replaced their comparison with
8335 an inequality of their difference and EPS.
8336 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
8337 comparison of pri and a reference number with an inequality of their
8338 difference and EPS.
8339 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
8340 the comparison of sum and sum_ref with an inequality of their
8341 difference and EPS.
8342 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
8343 the comparison of pri and a reference number with an inequality of
8344 their difference and EPS.
8345
343587dc
MB
83462015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
8347
8348 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
8349 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
8350 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
8351 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
8352 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
8353 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
8354 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
8355 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
8356 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
8357 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
8358 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
8359 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
8360 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
8361 variables.
8362 (vec_mult): Likewise. Add #pragma omp taskwait.
8363 (main): Adjust caller.
8364 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
8365 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
8366 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
8367 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
8368 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
8369 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
8370 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
8371 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
8372 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
8373 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
8374 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
8375 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
8376 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
8377 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
8378 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
8379 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
8380 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
8381 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
8382 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
8383 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
8384 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
8385 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
8386 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
8387 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
8388 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
8389 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
8390 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
8391 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
8392 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
8393 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
8394 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
8395 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
8396 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
8397 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
8398 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
8399 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
8400 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
8401 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
8402 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
8403 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
8404 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
8405 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
8406 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
8407 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
8408 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
8409 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
8410 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
8411 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
8412 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
8413 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
8414 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
8415 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
8416 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
8417 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
8418 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
8419 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
8420 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
8421 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
8422 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
8423 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
8424 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
8425 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
8426 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
8427 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
8428 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
8429 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
8430 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
8431 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
8432 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
8433 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
8434 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
8435 (vec_mult): Add !$omp taskwait.
8436 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
8437 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
8438 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
8439 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
8440 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
8441 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
8442 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
8443 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
8444 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
8445 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
8446 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
8447 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
8448 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
8449 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
8450 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
8451 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
8452 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
8453 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
8454 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
8455 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
8456 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
8457 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
8458 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
8459 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
8460 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
8461 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
8462 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
8463 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
8464 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
8465 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
8466 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
8467 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
8468 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
8469 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
8470 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
8471 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
8472 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
8473 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
8474 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
8475 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
8476 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
8477 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
8478 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
8479 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
8480 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
8481 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
8482 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
8483 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
8484 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
8485 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
8486 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
8487 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
8488 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
8489 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
8490 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
8491 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
8492 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
8493 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
8494 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
8495 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
8496 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
8497 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
8498 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
8499 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
8500 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
8501 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
8502 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
8503
9f620bf1
TV
85042015-07-10 Tom de Vries <tom@codesourcery.com>
8505
8506 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
8507 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
8508
a92defda
TS
85092015-07-08 Thomas Schwinge <thomas@codesourcery.com>
8510
8511 PR libgomp/65099
8512 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
8513 in a 64-bit configuration.
8514 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
8515 offloading testing if no such device is available.
8516 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8517 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8518
cadb53a5
TV
85192015-07-08 Tom de Vries <tom@codesourcery.com>
8520
8521 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
8522 second call to f.
8523 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
8524
712cb0bb
TV
85252015-07-07 Tom de Vries <tom@codesourcery.com>
8526
8527 PR tree-optimization/66642
8528 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
8529 iteration count case.
8530 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
8531 function, factor out of ...
8532 (main): ... here. Test low iteration count case.
8533
e5210c77
SH
85342015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
8535
8536 * libgomp.h (gomp_thread_pool): Comment last_team field.
8537
f70360e7
UB
85382015-07-02 Uros Bizjak <ubizjak@gmail.com>
8539
8540 * testsuite/libgomp.c++/pr66702-1.C: Require
8541 vect_simd_clones effective target.
8542 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
8543
b451c271
TV
85442015-06-30 Tom de Vries <tom@codesourcery.com>
8545
8546 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
8547 already set. Use DEFAULT_CFLAGS in dg-runtest.
8548 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
8549 "-O2".
8550
f8e89d9f
TV
85512015-06-30 Tom de Vries <tom@codesourcery.com>
8552
8553 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
8554 already set. Use DEFAULT_CFLAGS in dg-runtest.
8555 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
8556 * testsuite/libgomp.c++/pr64824.C: Same.
8557 * testsuite/libgomp.c++/pr64868.C: Same.
8558 * testsuite/libgomp.c++/pr66199-1.C: Same.
8559 * testsuite/libgomp.c++/pr66199-2.C: Same.
8560 * testsuite/libgomp.c++/target-2.C: Same.
8561 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
8562 -std=<standard> option.
8563 * testsuite/libgomp.c++/udr-11.C: Same.
8564 * testsuite/libgomp.c++/udr-12.C: Same.
8565 * testsuite/libgomp.c++/udr-13.C: Same.
8566 * testsuite/libgomp.c++/udr-14.C: Same.
8567 * testsuite/libgomp.c++/udr-15.C: Same.
8568 * testsuite/libgomp.c++/udr-16.C: Same.
8569 * testsuite/libgomp.c++/udr-17.C: Same.
8570 * testsuite/libgomp.c++/udr-18.C: Same.
8571 * testsuite/libgomp.c++/udr-19.C: Same.
8572 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
8573 * testsuite/libgomp.c++/simd-1.C: Same.
8574 * testsuite/libgomp.c++/simd-2.C: Same.
8575 * testsuite/libgomp.c++/simd-3.C: Same.
8576 * testsuite/libgomp.c++/simd-4.C: Same.
8577 * testsuite/libgomp.c++/simd-5.C: Same.
8578 * testsuite/libgomp.c++/simd-6.C: Same.
8579 * testsuite/libgomp.c++/simd-7.C: Same.
8580 * testsuite/libgomp.c++/simd-8.C: Same.
8581 * testsuite/libgomp.c++/simd-9.C: Same.
8582 * testsuite/libgomp.c++/simd10.C: Same.
8583 * testsuite/libgomp.c++/simd11.C: Same.
8584 * testsuite/libgomp.c++/simd12.C: Same.
8585 * testsuite/libgomp.c++/simd13.C: Same.
8586
3446fe48
JJ
85872015-06-30 Jakub Jelinek <jakub@redhat.com>
8588
8589 PR middle-end/66702
8590 * testsuite/libgomp.c++/pr66702-1.C: New test.
8591 * testsuite/libgomp.c++/pr66702-2.C: New test.
8592
8a36714a
TV
85932015-06-30 Tom de Vries <tom@codesourcery.com>
8594
8595 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
8596 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
8597 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
8598 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
8599
4f75d608
TV
86002015-06-30 Tom de Vries <tom@codesourcery.com>
8601
8602 PR tree-optimization/66652
8603 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
8604 using restrict pointers.
8605 (main): Add arguments to calls to f.
8606 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
8607
6d9d1eeb
AT
86082015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
8609
8610 * configure.ac: Fix check for header <sys/sysctl.h>.
8611 * configure: Regenerate.
8612 * config.h.in: Likewise.
8613
1222f22b
TV
86142015-06-23 Tom de Vries <tom@codesourcery.com>
8615
8616 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
8617 abort.
8618 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
8619
d7efbbf6
TS
86202015-06-19 Thomas Schwinge <thomas@codesourcery.com>
8621
bfcd036f
TS
8622 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
8623 acc_device_nvidia.
8624
d7efbbf6
TS
8625 PR libgomp/66518
8626 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
8627 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8628
d7bfc710
TV
86292015-06-15 Tom de Vries <tom@codesourcery.com>
8630
8631 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
8632 dg-additional-options for any remaining options.
8633 * testsuite/libgomp.c/atomic-2.c: Same.
8634 * testsuite/libgomp.c/atomic-4.c: Same.
8635 * testsuite/libgomp.c/atomic-5.c: Same.
8636 * testsuite/libgomp.c/atomic-6.c: Same.
8637 * testsuite/libgomp.c/autopar-1.c: Same.
8638 * testsuite/libgomp.c/copyin-1.c: Same.
8639 * testsuite/libgomp.c/copyin-2.c: Same.
8640 * testsuite/libgomp.c/copyin-3.c: Same.
8641 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
8642 * testsuite/libgomp.c/nestedfn-5.c: Same.
8643 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
8644 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
8645 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
8646 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
8647 * testsuite/libgomp.c/pr32362-1.c: Same.
8648 * testsuite/libgomp.c/pr32362-2.c: Same.
8649 * testsuite/libgomp.c/pr32362-3.c: Same.
8650 * testsuite/libgomp.c/pr39591-1.c: Same.
8651 * testsuite/libgomp.c/pr39591-2.c: Same.
8652 * testsuite/libgomp.c/pr39591-3.c: Same.
8653 * testsuite/libgomp.c/pr58392.c: Same.
8654 * testsuite/libgomp.c/pr58756.c: Same.
8655 * testsuite/libgomp.c/simd-1.c: Same.
8656 * testsuite/libgomp.c/simd-10.c: Same.
8657 * testsuite/libgomp.c/simd-11.c: Same.
8658 * testsuite/libgomp.c/simd-12.c: Same.
8659 * testsuite/libgomp.c/simd-13.c: Same.
8660 * testsuite/libgomp.c/simd-14.c: Same.
8661 * testsuite/libgomp.c/simd-15.c: Same.
8662 * testsuite/libgomp.c/simd-2.c: Same.
8663 * testsuite/libgomp.c/simd-3.c: Same.
8664 * testsuite/libgomp.c/simd-4.c: Same.
8665 * testsuite/libgomp.c/simd-5.c: Same.
8666 * testsuite/libgomp.c/simd-6.c: Same.
8667 * testsuite/libgomp.c/simd-7.c: Same.
8668 * testsuite/libgomp.c/simd-8.c: Same.
8669 * testsuite/libgomp.c/simd-9.c: Same.
8670
fb5b5352
TV
86712015-06-15 Tom de Vries <tom@codesourcery.com>
8672
8673 * testsuite/libgomp.c/pr35625.c: Fix typo.
8674
ca431bef
TV
86752015-06-15 Tom de Vries <tom@codesourcery.com>
8676
8677 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
8678 in dg-options.
8679 * testsuite/libgomp.c/atomic-3.c: Same.
8680 * testsuite/libgomp.c/debug-1.c: Same.
8681 * testsuite/libgomp.c/nqueens-1.c: Same.
8682 * testsuite/libgomp.c/pr26171.c: Same.
8683 * testsuite/libgomp.c/pr48591.c: Same.
8684 * testsuite/libgomp.c/pr64824.c: Same.
8685 * testsuite/libgomp.c/pr64868.c: Same.
8686 * testsuite/libgomp.c/pr66133.c: Same.
8687 * testsuite/libgomp.c/pr66199-1.c: Same.
8688 * testsuite/libgomp.c/pr66199-2.c: Same.
8689 * testsuite/libgomp.c/target-8.c: Same.
8690
0d8a9e20
TV
86912015-06-15 Tom de Vries <tom@codesourcery.com>
8692
8693 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
8694 -std={gnu99,c99}.
8695 * testsuite/libgomp.c/for-1.c: Same.
8696 * testsuite/libgomp.c/for-2.c: Same.
8697 * testsuite/libgomp.c/for-3.c: Same.
8698 * testsuite/libgomp.c/pr35625.c: Same.
8699 * testsuite/libgomp.c/pr39154.c: Same.
8700 * testsuite/libgomp.c/simd-16.c: Same.
8701 * testsuite/libgomp.c/simd-17.c: Same.
8702
a6860be9
TV
87032015-06-13 Tom de Vries <tom@codesourcery.com>
8704
8705 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
8706
ab3306d2
TV
87072015-06-13 Tom de Vries <tom@codesourcery.com>
8708
8709 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
8710 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
8711 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
8712 (N): Define.
8713 (main): Use N instead of hardcoded constants.
8714
7c82d827
TV
87152015-06-05 Tom de Vries <tom@codesourcery.com>
8716
8717 merge from gomp4 branch:
8718 2015-05-28 Tom de Vries <tom@codesourcery.com>
8719
8720 PR tree-optimization/65443
8721 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
8722 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
8723 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
8724
c469078d
BRF
87252015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8726
8727 * testsuite/libgomp.graphite/bounds.c: Adjust for
8728 cleanup-tree-dump removal.
8729 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
8730 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
8731 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
8732 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
8733 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
8734 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
8735 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
8736 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
8737 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
8738 * testsuite/libgomp.graphite/pr41118.c: Likewise.
8739
bb3caa35
UB
87402015-05-28 Uros Bizjak <ubizjak@gmail.com>
8741
8742 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
8743 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
8744 (futex_wake) [!__x86_64__]: Ditto.
8745
9fb5fd44
JB
87462015-05-28 Julian Brown <julian@codesourcery.com>
8747
8748 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
8749 function comment. Only call gomp_fatal if new argument is true.
8750 (acc_dev_num_out_of_range): New function.
8751 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
8752 acc_dev_num_out_of_range as appropriate.
8753 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
bb3caa35
UB
8754 (acc_get_device_num, acc_set_device_num): Update calls to
8755 resolve_device.
9fb5fd44
JB
8756 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
8757 output.
8758
32eaed93
JB
87592015-05-28 Julian Brown <julian@codesourcery.com>
8760
8761 PR libgomp/65742
32eaed93
JB
8762 * oacc-init.c (plugin/plugin-host.h): Include.
8763 (acc_on_device): Check whether we're in an offloaded region for
8764 host_nonshm
8765 plugin. Don't use __builtin_acc_on_device.
8766 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
8767 nonshm_exec flag in thread-local data.
8768 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
8769 data for host_nonshm plugin.
8770 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
8771 for host_nonshm plugin.
8772 * plugin/plugin-host.h: New.
8773
ea023bcf
UB
87742015-05-27 Uros Bizjak <ubizjak@gmail.com>
8775
8ed501f1
UB
8776 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
8777
87782015-05-27 Uros Bizjak <ubizjak@gmail.com>
8779
8780 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
8781 Declare as int.
8782 (FUTEX_PRIVATE_FLAG): Remove L suffix.
8783 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
8784 Declare as int.
8785
87862015-05-27 Uros Bizjak <ubizjak@gmail.com>
8787
bb3caa35 8788 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
ea023bcf 8789
1716efeb
CLT
87902015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
8791
8792 * target.c (gomp_map_pointer): New function abstracting out
8793 GOMP_MAP_POINTER handling.
8794 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
8795 gomp_map_pointer().
8796
41b37d5e
JJ
87972015-05-19 Jakub Jelinek <jakub@redhat.com>
8798
8799 PR middle-end/66199
8800 * testsuite/libgomp.c/pr66199-1.c: New test.
8801 * testsuite/libgomp.c/pr66199-2.c: New test.
8802 * testsuite/libgomp.c++/pr66199-1.C: New test.
8803 * testsuite/libgomp.c++/pr66199-2.C: New test.
8804 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
8805 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
8806
c8319826
JB
88072015-05-19 Julian Brown <julian@codesourcery.com>
8808
8809 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
8810 on cuInit failure.
8811
b37dddbc
JJ
88122015-05-13 Jakub Jelinek <jakub@redhat.com>
8813
8814 PR middle-end/66133
8815 * testsuite/libgomp.c/pr66133.c: New test.
8816
55fba601
MH
88172015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
8818
8819 * Makefile.in: Regenerated with automake-1.11.6.
8820 * aclocal.m4: Likewise.
8821 * config.h.in: Likewise.
8822 * configure: Likewise.
8823 * testsuite/Makefile.in: Likewise.
8824
1be0899d
JM
88252015-05-08 Jason Merrill <jason@redhat.com>
8826
8827 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
8828 _Complex.
8829
8830 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
8831
d2463960
JB
88322015-05-06 Julian Brown <julian@codesourcery.com>
8833
8834 * oacc-init.c (acc_device_lock): Add explanatory comment.
8835 (resolve_device): Add comment about locking requirement.
8836 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
8837 gomp_init_device and gomp_fini_device calls.
8838 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
8839 (acc_get_device_num, acc_set_device_num): Add locking around
8840 resolve_device and gomp_init_device calls.
8841
e38fdba4
JB
88422015-05-06 Julian Brown <julian@codesourcery.com>
8843
8844 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
8845 goacc_thread_lock on error paths.
8846 * oacc-mem.c (lookup_host): Remove locking from function. Note
8847 locking requirement for caller in function comment.
8848 (lookup_dev): Likewise.
8849 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
8850 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
8851 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
8852 Add locking.
8853
ae8ffbbb
TS
88542015-05-05 Thomas Schwinge <thomas@codesourcery.com>
8855
8856 PR testsuite/65205
8857 PR libgomp/65993
8858 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
8859 don't expect "0x" prefix for "%p" format specifier, don't expect
8860 "(nil)" for NULL pointer.
8861 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8862 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8863 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8864 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8865 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8866 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8867 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8868 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8869 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8870 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8871 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8872 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8873 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8874 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8875 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8876 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8877 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8878 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8879 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8880 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8881 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8882 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8883 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8884 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8885 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8886 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8887 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8888 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8889 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
8890 accurately specify what we're looking for.
8891 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8892 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8893 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8894 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8895 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8896
1309f1d2
JN
88972015-04-30 James Norris <jnorris@codesourcery.com>
8898
8899 PR testsuite/65205
8900 * testsuite/lib/libgomp.exp
8901 (check_effective_target_openacc_host_selected)
8902 (check_effective_target_openacc_host_nonshm_selected): New
8903 procedures.
8904 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
8905 dg-shouldfail.
8906 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
8907 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
8908 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8909 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8910 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8911 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
8912 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8913 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8914 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8915 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8916 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8917 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8918 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8919 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8920 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8921 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
8922 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8923 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8924 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8925 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8926 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8927 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
8928 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8929 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8930 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8931 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8932 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8933 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8934 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8935 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8936 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8937 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8938 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8939 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
8940 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
8941 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
8942 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
8943 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
8944 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
8945 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8946 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8947 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8948 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8949
d93bdab5
JB
89502015-04-08 Julian Brown <julian@codesourcery.com>
8951
8952 * libgomp.h (target_mem_desc: Remove mem_map field.
8953 (acc_dispatch_t): Remove open_device_func, close_device_func,
8954 get_device_num_func, set_device_num_func, target_data members.
8955 Change create_thread_data_func argument to device number instead of
8956 generic pointer.
8957 * oacc-async.c (assert.h): Include.
8958 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
8959 (acc_wait_all, acc_wait_all_async): Use current host thread's
8960 active device, not base_dev.
8961 * oacc-cuda.c (acc_get_current_cuda_device)
8962 (acc_get_current_cuda_context, acc_get_cuda_stream)
8963 (acc_set_cuda_stream): Likewise.
8964 * oacc-host.c (host_dispatch): Don't set open_device_func,
8965 close_device_func, get_device_num_func or set_device_num_func.
8966 * oacc-init.c (base_dev, init_key): Remove.
8967 (cached_base_dev): New.
8968 (name_of_acc_device_t): New.
8969 (acc_init_1): Initialise default-numbered device, not zeroth.
8970 (acc_shutdown_1): Close all devices of a given type.
8971 (goacc_destroy_thread): Don't use base_dev.
8972 (lazy_open, lazy_init, lazy_init_and_open): Remove.
8973 (goacc_attach_host_thread_to_device): New.
8974 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
8975 (acc_get_num_devices): Don't use base_dev.
8976 (acc_set_device_type): Reimplement.
8977 (acc_get_device_type): Don't use base_dev.
8978 (acc_get_device_num): Tweak logic.
8979 (acc_set_device_num): Likewise.
8980 (acc_on_device): Use acc_get_device_type.
8981 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
8982 (goacc_lazy_initialize): Reimplement with acc_init and
8983 goacc_attach_host_thread_to_device.
8984 * oacc-int.h (goacc_thread): Add base_dev field.
8985 (base_dev): Remove extern declaration.
8986 (goacc_attach_host_thread_to_device): Add prototype.
8987 * oacc-mem.c (acc_malloc): Use current thread's device instead of
8988 base_dev.
8989 (acc_free): Likewise.
8990 (acc_memcpy_to_device): Likewise.
8991 (acc_memcpy_from_device): Likewise.
8992 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
8993 goacc_lazy_initialize (throughout).
8994 (GOACC_parallel): Use tgt_offset to locate target functions.
8995 * target.c (gomp_map_vars): Don't set tgt->mem_map.
8996 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
8997 (gomp_load_plugin_for_device): Remove open_device, close_device,
8998 get_device_num, set_device_num openacc hook initialisation. Don't set
8999 openacc.target_data.
9000 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
9001 (GOMP_OFFLOAD_openacc_close_device)
9002 (GOMP_OFFLOAD_openacc_get_device_num)
9003 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
9004 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
9005 to int.
9006 * plugin/plugin-nvptx.c (ptx_inited): Remove.
9007 (instantiated_devices, ptx_dev_lock): New.
9008 (struct ptx_image_data): New.
9009 (ptx_devices, ptx_images, ptx_image_lock): New.
9010 (fini_streams_for_device): Reorder cuStreamDestroy call.
9011 (nvptx_get_num_devices): Remove forward declaration.
9012 (nvptx_init): Change return type to bool.
9013 (nvptx_fini): Remove.
9014 (nvptx_attach_host_thread_to_device): New.
9015 (nvptx_open_device): Return struct ptx_device* instead of void*.
9016 (nvptx_close_device): Change argument type to struct ptx_device*,
9017 return type to void.
9018 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
9019 (kernel_target_data, kernel_host_table): Remove static globals.
9020 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
9021 (GOMP_OFFLOAD_init_device): Reimplement.
9022 (GOMP_OFFLOAD_fini_device): Likewise.
9023 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
9024 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
9025 (GOMP_OFFLOAD_host2dev): Use ORD argument.
9026 (GOMP_OFFLOAD_openacc_open_device)
9027 (GOMP_OFFLOAD_openacc_close_device)
9028 (GOMP_OFFLOAD_openacc_set_device_num)
9029 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
9030 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
9031 (device number).
9032
9033 testsuite/
9034 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
9035
a51df54e
IV
90362015-04-06 Ilya Verbin <ilya.verbin@intel.com>
9037
9038 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
9039 * libgomp.h (struct gomp_memory_mapping): Remove.
9040 (struct target_mem_desc): Change type of mem_map from
9041 gomp_memory_mapping * to splay_tree_s *.
9042 (struct gomp_device_descr): Remove register_image_func, get_table_func.
9043 Add load_image_func, unload_image_func.
9044 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
9045 Remove offload_regions_registered.
9046 (gomp_init_tables): Remove.
9047 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
9048 to splay_tree_s *.
9049 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
9050 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
9051 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
9052 offload_regions_registered.
9053 Initialize load_image_func, unload_image_func, mem_map.root.
9054 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
9055 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
9056 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
9057 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
9058 gomp_memory_mapping *. Use dev's lock and splay_tree.
9059 (lookup_dev): Use dev's lock.
9060 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
9061 (acc_is_present): Likewise.
9062 (acc_map_data): Likewise.
9063 (acc_unmap_data): Likewise. Use dev's lock.
9064 (present_create_copy): Likewise.
9065 (delete_copyout): Pass dev to lookup_host instead of mem_map.
9066 (update_dev_host): Likewise.
9067 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
9068 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
9069 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
9070 (GOMP_OFFLOAD_get_table): Remove
9071 (GOMP_OFFLOAD_load_image): New function.
9072 (GOMP_OFFLOAD_unload_image): New function.
9073 * target.c (register_lock): New mutex for offload image registration.
9074 (num_devices): Do not guard with PLUGIN_SUPPORT.
9075 (gomp_realloc_unlock): New static function.
9076 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
9077 before gomp_fatal.
9078 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
9079 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
9080 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
9081 mem_map's.
9082 (gomp_unmap_vars): Likewise.
9083 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
9084 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
9085 (gomp_offload_image_to_device): New static function.
9086 (GOMP_offload_register): Add mutex lock.
9087 Call gomp_offload_image_to_device for all initialized devices.
9088 Replace gomp_realloc with gomp_realloc_unlock.
9089 (GOMP_offload_unregister): New function.
9090 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
9091 get_table_func from the plugin with calls to init_device_func and
9092 gomp_offload_image_to_device.
9093 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
9094 to splay_tree_s *.
9095 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
9096 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
9097 (GOMP_target_data): Do not call gomp_init_tables.
9098 (GOMP_target_update): Likewise. Remove argument from gomp_update.
9099 (gomp_load_plugin_for_device): Replace register_image and get_table
9100 with load_image and unload_image in DLSYM ().
9101 (gomp_register_images_for_device): Remove function.
9102 (gomp_target_init): Do not initialize current_device.mem_map.*,
9103 current_device.offload_regions_registered.
9104 Remove call to gomp_register_images_for_device.
9105 Do not free offload_images and num_offload_images.
9106
6c384511
JJ
91072015-03-30 Jakub Jelinek <jakub@redhat.com>
9108
9109 PR fortran/65597
9110 * testsuite/libgomp.fortran/pr65597.f90: New test.
9111
3e8165a5
TV
91122015-03-27 Tom de Vries <tom@codesourcery.com>
9113
9114 PR testsuite/65594
9115 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
9116 (init, check): New function.
9117 (foo): Change return type to void.
9118 (main): Call init and check.
9119
4d688c9a
TV
91202015-03-27 Tom de Vries <tom@codesourcery.com>
9121
9122 PR testsuite/65594
9123 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
9124 (foo): Use M for non-inner loops to scale down test-case.
9125
01c0b3b0
KT
91262015-03-25 Kai Tietz <ktietz@redhat.com>
9127
9128 PR libgomp/64972
9129 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
9130 (GOACC_data_start): Likewise.
9131 * target.c (gomp_map_vars): Likewise.
9132
844d9a76
JDA
91332015-03-21 John David Anglin <danglin@gcc.gnu.org>
9134
9135 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
9136 hppa*-*-hpux*.
9137
9b65e171
JJ
91382015-03-19 Jakub Jelinek <jakub@redhat.com>
9139
9140 * testsuite/libgomp.c/target-10.c: New test.
9141 * testsuite/libgomp.c++/target-4.C: New test.
9142
db397e2e
IV
91432015-03-13 Ilya Verbin <ilya.verbin@intel.com>
9144
9145 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
9146 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
9147
cd93945d
SH
91482015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
9149
9150 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
9151 * configure.ac (*-*-rtems*): Assume Pthread is supported.
9152 (pthread.h): Check for this header file.
9153 * configure: Regenerate.
9154
05deba9f
TV
91552015-02-25 Tom de Vries <tom@codesourcery.com>
9156
9157 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
9158 (check_reduction_op, check_reduction_macro, max, min):
9159 Declare.
9160 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
9161 function.
9162 (main): Use new functions.
9163
196904d8
IT
91642015-02-18 Ilya Tocar <ilya.tocar@intel.com>
9165
9166 * target.c (gomp_load_plugin_for_device): Use const char * instead of
9167 char * for variables holding dlerror return values.
9168 (DLSYM_OPT): Ditto.
9169
a2818955
TS
91702015-02-17 Thomas Schwinge <thomas@codesourcery.com>
9171
9172 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
9173
26f93312
TS
91742015-02-17 Thomas Schwinge <thomas@codesourcery.com>
9175 Cesar Philippidis <cesar@codesourcery.com>
9176
9177 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
9178 GOACC_ctaid, and GOACC_nctaid routines.
9179
fa01ffcc
JJ
91802015-02-11 Jakub Jelinek <jakub@redhat.com>
9181
9182 PR c/64824
9183 * testsuite/libgomp.c/atomic-18.c: New test.
9184 * testsuite/libgomp.c++/atomic-16.C: New test.
9185
4886ec8e
JJ
91862015-02-04 Jakub Jelinek <jakub@redhat.com>
9187
9188 PR c/64824
9189 PR c/64868
9190 * testsuite/libgomp.c/pr64824.c: New test.
9191 * testsuite/libgomp.c/pr64868.c: New test.
9192 * testsuite/libgomp.c++/pr64824.C: New test.
9193 * testsuite/libgomp.c++/pr64868.C: New test.
9194
02d3e45e
DE
91952015-02-01 David Edelsohn <dje.gcc@gmail.com>
9196
9197 PR libgomp/64635
9198 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
9199 Link with -lpthread.
9200 * config/aix/plugin-suffix.h: Delete.
9201
b5f7a6ca
JH
92022015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
9203
9204 PR libgomp/64635
9205 * configure.tgt (*-*-aix*): Use config_path "aix posix".
9206 (*-*-darwin*): Use config_path "bsd darwin posix".
9207 (*-*-hpux*): Use config_path "hpux posix".
9208 * target.c: Add include of plugin-suffix.h and use
9209 SONAME_SUFFIX macro.
9210 * config/aix/plugin-suffix.h: New file.
9211 * config/darwin/plugin-suffix.h: New file.
9212 * config/hpux/plugin-suffix.h: New file.
9213 * config/posix/plugin-suffix.h: New file.
9214
b8910447
JJ
92152015-01-23 Jakub Jelinek <jakub@redhat.com>
9216
9217 PR middle-end/64734
9218 * libgomp.c/pr64734.c: New test.
9219
a0c88d06
TV
92202015-01-23 Tom de Vries <tom@codesourcery.com>
9221
9222 PR libgomp/64672
9223 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
9224
1506ae0e
TV
92252015-01-23 Tom de Vries <tom@codesourcery.com>
9226
9227 PR libgomp/64707
9228 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
9229 dg-options.
9230
128b26dc
TS
92312015-01-19 Thomas Schwinge <thomas@codesourcery.com>
9232
bed62c21 9233 PR libgomp/64625
128b26dc
TS
9234 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
9235 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
9236 formal parameter. Update all users.
9237 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
9238 Document unused formal parameter.
9239
6e36114c
TS
92402015-01-16 Thomas Schwinge <thomas@codesourcery.com>
9241
9242 * oacc-parallel.c: Don't include <alloca.h>.
9243 (GOACC_parallel): Use gomp_alloca instead of alloca.
9244
973e9808
GP
92452015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
9246
9247 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
9248
41dbbb37
TS
92492015-01-15 Thomas Schwinge <thomas@codesourcery.com>
9250 James Norris <jnorris@codesourcery.com>
9251 Tom de Vries <tom@codesourcery.com>
9252 Julian Brown <julian@codesourcery.com>
9253 Cesar Philippidis <cesar@codesourcery.com>
9254 Nathan Sidwell <nathan@codesourcery.com>
9255 Tobias Burnus <burnus@net-b.de>
9256
9257 * Makefile.am (search_path): Add $(top_srcdir)/../include.
9258 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
9259 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
9260 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
9261 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
9262 Include $(top_srcdir)/plugin/Makefrag.am.
9263 (nodist_libsubinclude_HEADERS): Add openacc.h.
9264 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
9265 openacc.f90, openacc.mod, openacc_kinds.mod.
9266 (omp_lib.mod): Generalize into...
9267 (%.mod): ... this new rule.
9268 (openacc_kinds.mod, openacc.mod): New rules.
9269 * plugin/configfrag.ac: New file.
9270 * configure.ac: Move plugin/offloading support into it. Include
9271 it. Instantiate testsuite/libgomp-test-support.pt.exp.
9272 * plugin/Makefrag.am: New file.
9273 * testsuite/Makefile.am (OFFLOAD_TARGETS)
9274 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
9275 export.
9276 (libgomp-test-support.exp): New rule.
9277 (all-local): Depend on it.
9278 * Makefile.in: Regenerate.
9279 * testsuite/Makefile.in: Regenerate.
9280 * config.h.in: Likewise.
9281 * configure: Likewise.
9282 * configure.tgt: Harden shell syntax.
9283 * env.c: Include "oacc-int.h".
9284 (parse_acc_device_type): New function.
9285 (gomp_debug_var, goacc_device_type, goacc_device_num): New
9286 variables.
9287 (initialize_env): Initialize those. Call
9288 goacc_runtime_initialize.
9289 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
9290 (gomp_fatal): Call gomp_vfatal.
9291 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
9292 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
9293 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
9294 (splay_tree_node, splay_tree, splay_tree_key)
9295 (struct target_mem_desc, struct splay_tree_key_s)
9296 (struct gomp_memory_mapping, struct acc_dispatch_t)
9297 (struct gomp_device_descr, gomp_acc_insert_pointer)
9298 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
9299 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
9300 (gomp_free_memmap, gomp_fini_device): New declarations.
9301 (gomp_vdebug, gomp_debug): New macros.
9302 Include "splay-tree.h".
9303 * libgomp.map (OACC_2.0): New symbol version. Use for
9304 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
9305 acc_set_device_type_h_, acc_get_device_type,
9306 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
9307 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
9308 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
9309 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
9310 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
9311 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
9312 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
9313 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
9314 acc_copyin_array_h_, acc_present_or_copyin,
9315 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
9316 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
9317 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
9318 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
9319 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
9320 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
9321 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
9322 acc_update_device, acc_update_device_32_h_,
9323 acc_update_device_64_h_, acc_update_device_array_h_,
9324 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
9325 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
9326 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
9327 acc_is_present_64_h_, acc_is_present_array_h_,
9328 acc_memcpy_to_device, acc_memcpy_from_device,
9329 acc_get_current_cuda_device, acc_get_current_cuda_context,
9330 acc_get_cuda_stream, acc_set_cuda_stream.
9331 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
9332 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
9333 GOACC_update, GOACC_wait, GOACC_get_thread_num,
9334 GOACC_get_num_threads.
9335 (GOMP_PLUGIN_1.0): New symbol version. Use for
9336 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
9337 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
9338 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
9339 GOMP_PLUGIN_acc_thread.
9340 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
9341 environment variable.
9342 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
9343 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
9344 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
9345 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
9346 (splay_tree_remove): New declarations.
9347 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
9348 (splay_tree_remove, splay_tree_lookup): Move into...
9349 * splay-tree.c: ... this new file.
9350 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
9351 (splay_tree_node, splay_tree, splay_tree_key)
9352 (struct target_mem_desc, struct splay_tree_key_s)
9353 (struct gomp_device_descr): Don't declare.
9354 (num_devices_openmp): New variable.
9355 (gomp_get_num_devices ): Use it.
9356 (gomp_init_targets_once): New function.
9357 (gomp_get_num_devices ): Use it.
9358 (get_kind, gomp_copy_from_async, gomp_free_memmap)
9359 (gomp_fini_device, gomp_register_image_for_device): New functions.
9360 (gomp_map_vars): Add devaddrs parameter.
9361 (gomp_update): Add mm parameter.
9362 (gomp_init_device): Move most of it into...
9363 (gomp_init_tables): ... this new function.
9364 (gomp_register_images_for_device): Remove function.
9365 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
9366 Make them hidden instead of static.
9367 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
9368 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
9369 (GOMP_target_end_data, GOMP_target_update)
9370 (gomp_load_plugin_for_device, gomp_target_init): Update for
9371 OpenACC changes.
9372 * oacc-async.c: New file.
9373 * oacc-cuda.c: Likewise.
9374 * oacc-host.c: Likewise.
9375 * oacc-init.c: Likewise.
9376 * oacc-int.h: Likewise.
9377 * oacc-mem.c: Likewise.
9378 * oacc-parallel.c: Likewise.
9379 * oacc-plugin.c: Likewise.
9380 * oacc-plugin.h: Likewise.
9381 * oacc-ptx.h: Likewise.
9382 * openacc.f90: Likewise.
9383 * openacc.h: Likewise.
9384 * openacc_lib.h: Likewise.
9385 * plugin/plugin-host.c: Likewise.
9386 * plugin/plugin-nvptx.c: Likewise.
9387 * libgomp-plugin.c: Likewise.
9388 * libgomp-plugin.h: Likewise.
9389 * libgomp_target.h: Remove file after merging content into the
9390 former file. Update all users.
9391 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
9392 (offload_targets_s, offload_targets_s_openacc): New variables.
9393 (check_effective_target_openacc_nvidia_accel_present)
9394 (check_effective_target_openacc_nvidia_accel_selected): New
9395 procedures.
9396 (libgomp_init): Update for OpenACC changes.
9397 * testsuite/libgomp-test-support.exp.in: New file.
9398 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
9399 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9400 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9401 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
9402 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
9403 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
9404 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
9405 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
9406 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
9407 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
9408 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
9409 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
9410 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
9411 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
9412 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
9413 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
9414 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
9415 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
9416 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
9417 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
9418 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
9419 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9420 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
9421 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
9422 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
9423 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
9424 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
9425 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
9426 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
9427 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
9428 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
9429 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
9430 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
9431 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
9432 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
9433 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
9434 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
9435 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
9436 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
9437 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
9438 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
9439 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
9440 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
9441 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
9442 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
9443 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
9444 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
9445 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
9446 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
9447 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
9448 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
9449 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
9450 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
9451 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
9452 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
9453 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
9454 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
9455 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
9456 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
9457 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
9458 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
9459 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
9460 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
9461 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
9462 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
9463 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
9464 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
9465 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
9466 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
9467 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
9468 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
9469 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
9470 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
9471 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
9472 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
9473 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
9474 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
9475 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
9476 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
9477 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
9478 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
9479 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
9480 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
9481 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
9482 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
9483 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
9484 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
9485 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
9486 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
9487 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
9488 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
9489 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
9490 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
9491 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
9492 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
9493 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
9494 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
9495 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
9496 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
9497 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
9498 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
9499 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
9500 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
9501 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
9502 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
9503 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
9504 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
9505 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
9506 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
9507 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
9508 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
9509 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
9510 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
9511 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
9512 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
9513 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
9514 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
9515 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
9516 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
9517 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
9518 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
9519 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
9520 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
9521 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
9522 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
9523 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
9524 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
9525 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
9526 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
9527 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
9528 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
9529 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
9530 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
9531 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
9532 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
9533 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
9534 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
9535 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
9536 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
9537 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
9538 Likewise.
9539 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
9540 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
9541 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
9542 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
9543 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
9544 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
9545 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
9546 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
9547 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
9548 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
9549 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
9550 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
9551 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
9552 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
9553 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
9554 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
9555 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
9556 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
9557 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
9558 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
9559 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
9560 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
9561 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
9562 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
9563 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
9564 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
9565 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
9566 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
9567 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
9568 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
9569 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
9570 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
9571 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
9572 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
9573 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
9574 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
9575 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
9576 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
9577 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
9578 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
9579 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
9580 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
9581 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
9582 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
9583 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
9584 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
9585 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
9586 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
9587 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
9588 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
9589 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
9590 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
9591 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
9592 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
9593 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
9594 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
9595 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
9596 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
9597 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
9598 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
9599
f1f3453e
TS
96002015-01-10 Thomas Schwinge <thomas@codesourcery.com>
9601 Julian Brown <julian@codesourcery.com>
9602 David Malcolm <dmalcolm@redhat.com>
9603
9604 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
9605 to "GNU Offloading and Multi Processing Runtime Library". Change
9606 all users.
9607 * configure: Regenerate.
9608 * libgomp.texi: Update.
9609
f9a0eca4
TS
96102015-01-08 Thomas Schwinge <thomas@codesourcery.com>
9611
b335ef4e
TS
9612 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
9613 "$tgt_dir/lib32".
9614 * configure: Regenerate.
9615
f9a0eca4
TS
9616 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
9617 "intelmic" in $offload_targets.
9618
b67cd4e3
JJ
96192015-01-05 Jakub Jelinek <jakub@redhat.com>
9620
5624e564
JJ
9621 Update copyright years.
9622
b67cd4e3
JJ
9623 * libgomp.texi: Bump @copying's copyright year.
9624
3b41b583
KT
96252014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9626
9627 * testsuite/lib/libgomp.exp: Load target-utils.exp.
93d90219 9628 Move load of target-supports.exp earlier.
3b41b583 9629
2354caec
IV
96302014-12-10 Ilya Verbin <ilya.verbin@intel.com>
9631
9632 * testsuite/libgomp.c/target-9.c: New test.
9633
f50eecba
VR
96342014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
9635
9636 * config.h.in: Regenerate.
9637 * configure: Regenerate.
9638 * configure.ac: Add GCC_CHECK_EMUTLS.
9639 * libgomp.h: Add check for USE_EMUTLS: this case
9640 is equal to HAVE_TLS.
9641 * team.c: Likewise.
9642
68bc9270
UB
96432014-12-03 Uros Bizjak <ubizjak@gmail.com>
9644
9645 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
9646
476ff787
AT
96472014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
9648 Ilya Verbin <ilya.verbin@intel.com>
9649
9650 * testsuite/libgomp.c/target-critical-1.c: New test.
9651
31a30e62
JJ
96522014-11-26 Jakub Jelinek <jakub@redhat.com>
9653
9654 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
68bc9270 9655 to dg-options unless expensive testing is on.
31a30e62
JJ
9656 (TESTITERS): Define to N if not defined.
9657 (main): Use TESTITERS instead of N.
9658 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
9659 dg-additional-options depending on whether expensive testing is on.
9660 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
9661 Decrease N to 100000 and CHUNKSZ to 10000.
9662
3f9e8f13
JJ
96632014-11-24 Jakub Jelinek <jakub@redhat.com>
9664
9665 PR fortran/63938
31a30e62
JJ
9666 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
9667 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
3f9e8f13 9668
c8451a46
SE
96692014-11-21 Steve Ellcey <sellcey@imgtec.com>
9670
9671 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
9672
a699d672
L
96732014-11-21 H.J. Lu <hongjiu.lu@intel.com>
9674
9675 PR bootstrap/63784
9676 * configure: Regenerated.
9677
4a19f719
UB
96782014-11-19 Uros Bizjak <ubizjak@gmail.com>
9679
9680 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
9681 vect_simd_clones effective target.
9682 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
9683
b1bf6c52
JJ
96842014-11-14 Jakub Jelinek <jakub@redhat.com>
9685
9686 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
9687 of 32 as block_size.
9688 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
9689 instead of 32 as block_size.
9690
d64ae614
AT
96912014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
9692 Ilya Verbin <ilya.verbin@intel.com>
9693
9694 * Makefile.in: Regenerate.
9695 * configure: Regenerate.
9696 * configure.ac: Set up offload_additional_options,
9697 offload_additional_lib_paths and offload_targets.
9698 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
9699 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
9700 * testsuite/Makefile.in: Regenerate.
9701 * testsuite/lib/libgomp.exp (libgomp_init): Append
9702 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
9703 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
9704 build directory to LD_LIBRARY_PATH for intelmic offload targets.
9705
122d7303
AT
97062014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
9707 Ilya Verbin <ilya.verbin@intel.com>
9708 Kirill Yukhin <kirill.yukhin@intel.com>
9709 Ilya Tocar <ilya.tocar@intel.com>
9710
9711 * testsuite/lib/libgomp.exp
9712 (check_effective_target_offload_device): New.
9713 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
9714 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
9715 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
9716 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
9717 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
9718 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
9719 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
9720 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
9721 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
9722 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
9723 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
9724 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
9725 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
9726 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
9727 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
9728 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
9729 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
9730 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
9731 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
9732 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
9733 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
9734 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
9735 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
9736 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
9737 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
9738 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
9739 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
9740 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
9741 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
9742 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
9743 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
9744 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
9745 * testsuite/libgomp.c/target-7.c: Fix test.
9746 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
9747 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
9748 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
9749 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
9750 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
9751 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
9752 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
9753 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
9754 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
9755 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
9756 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
9757 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
9758 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
9759 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
9760 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
9761 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
9762 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
9763 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
9764 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
9765 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
9766 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
9767 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
9768 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
9769 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
9770 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
9771 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
9772 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
9773 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
9774 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
9775 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
9776 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
9777
1df3f842
JJ
97782014-11-13 Jakub Jelinek <jakub@redhat.com>
9779 Ilya Verbin <ilya.verbin@intel.com>
9780 Thomas Schwinge <thomas@codesourcery.com>
9781 Andrey Turetskiy <andrey.turetskiy@intel.com>
9782
9783 * libgomp.map (GOMP_4.0.1): New symbol version.
9784 Add GOMP_offload_register.
9785 * libgomp_target.h: New file.
9786 * splay-tree.h: New file.
9787 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
9788 (gomp_target_init): New forward declaration.
9789 (gomp_is_initialized): New static variable.
9790 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
9791 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
9792 New structures.
9793 (offload_images, num_offload_images, devices, num_devices): New static
9794 variables.
9795 (splay_compare): New static function.
9796 (struct gomp_device_descr): New structure.
9797 (gomp_get_num_devices): Call gomp_target_init.
9798 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
9799 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
9800 (GOMP_offload_register): New function.
9801 (GOMP_target): Arrange for host callback to be performed in a separate
9802 initial thread and contention group, inheriting ICVs from
9803 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
9804 Add device initialization and lookup for target function in splay tree.
9805 (GOMP_target_data): Add device initialization and call gomp_map_vars.
9806 (GOMP_target_end_data): Call gomp_unmap_vars.
9807 (GOMP_target_update): Add device initialization and call gomp_update.
9808 (gomp_load_plugin_for_device, gomp_register_images_for_device)
9809 (gomp_target_init): New static functions.
9810
85c64bbe
BS
98112014-11-13 Bernd Schmidt <bernds@codesourcery.com>
9812 Thomas Schwinge <thomas@codesourcery.com>
9813 Ilya Verbin <ilya.verbin@intel.com>
9814 Andrey Turetskiy <andrey.turetskiy@intel.com>
9815
9816 * config.h.in: Regenerate.
9817 * configure: Regenerate.
9818 * configure.ac: Check for libdl, required for plugin support.
9819 (PLUGIN_SUPPORT): Define if plugins are supported.
9820 (enable_offload_targets): Support Intel MIC targets.
9821 (OFFLOAD_TARGETS): List of target names suitable for offloading.
9822
ebf6d33b
FXC
98232014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9824
9825 PR target/63610
9826 * configure: Regenerate.
9827
8c768629
RO
98282014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9829
9830 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
9831
c1d62412
MP
98322014-10-06 Marek Polacek <polacek@redhat.com>
9833
9834 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
9835 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
9836 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
9837 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
9838
44a0c6cb
MP
98392014-10-06 Marek Polacek <polacek@redhat.com>
9840
9841 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
9842 * testsuite/libgomp.c/nqueens-1.c: Likewise.
9843 * testsuite/libgomp.c/pr26943-3.c: Likewise.
9844 * testsuite/libgomp.c/pr26943-4.c: Likewise.
9845 * testsuite/libgomp.c/pr36802-2.c: Likewise.
9846 * testsuite/libgomp.c/pr36802-3.c: Likewise.
9847 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
9848 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
9849 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
9850 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
9851 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
9852 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
9853 * testsuite/libgomp.c/omp-single-1.c: Likewise.
9854 * testsuite/libgomp.c/omp-single-2.c: Likewise.
9855 * testsuite/libgomp.c/omp_matvec.c: Likewise.
9856 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
9857 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
9858 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
9859 declarations.
9860
5771c391
JJ
98612014-10-03 Jakub Jelinek <jakub@redhat.com>
9862
9863 PR libgomp/61200
9864 * testsuite/libgomp.c/pr61200.c: New test.
9865
bce16b88
JJ
98662014-09-18 Jakub Jelinek <jakub@redhat.com>
9867
9868 PR c++/63248
9869 * testsuite/libgomp.c++/pr63248.C: New test.
9870
3696163c
JJ
98712014-08-04 Jakub Jelinek <jakub@redhat.com>
9872
9873 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
9874 is not zero, but taskgroup->children is NULL and there are
9875 any task->children, schedule those instead of waiting.
9876 * testsuite/libgomp.c/depend-6.c: New test.
9877 * testsuite/libgomp.c/depend-7.c: New test.
9878 * testsuite/libgomp.c/depend-8.c: New test.
9879 * testsuite/libgomp.c/depend-9.c: New test.
9880 * testsuite/libgomp.c/depend-10.c: New test.
9881
0494285a
JJ
98822014-08-01 Jakub Jelinek <jakub@redhat.com>
9883
9884 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
9885 (struct gomp_taskwait): New type.
9886 (struct gomp_task): Add taskwait and parent_depends_on, remove
9887 in_taskwait and taskwait_sem fields.
9888 (gomp_finish_task): Don't destroy taskwait_sem.
9889 * task.c (gomp_init_task): Don't init in_taskwait, instead init
9890 taskwait and parent_depends_on.
9891 (GOMP_task): For if (0) tasks with depend clause that depend on
9892 earlier tasks don't defer them, instead call
9893 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
9894 Initialize redundant_out field, for redundant out entries just
9895 move them at the end of linked list instead of removing them
9896 completely, and set redundant_out flag instead of redundant.
9897 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
9898 that task.
9899 (gomp_task_run_post_handle_dependers): If parent is in
9900 gomp_task_maybe_wait_for_dependencies and newly runnable task
9901 is not parent_depends_on, queue it in parent->children linked
9902 list after all runnable tasks with parent_depends_on set.
9903 Adjust for addition of taskwait indirection.
9904 (gomp_task_run_post_remove_parent): If parent is in
9905 gomp_task_maybe_wait_for_dependencies and task to be removed
9906 is parent_depends_on, decrement n_depend and if needed awake
9907 parent. Adjust for addition of taskwait indirection.
9908 (GOMP_taskwait): Adjust for addition of taskwait indirection.
9909 (gomp_task_maybe_wait_for_dependencies): New function.
9910 * testsuite/libgomp.c/depend-5.c: New test.
9911
60ab4b44
TB
99122014-07-13 Tobias Burnus <burnus@net-b.de>
9913
9914 * testsuite/libgomp.fortran/pr34020.f90: Make compile
0494285a 9915 with TS 18508/Fortran 2015.
60ab4b44 9916
773ec47f
MP
99172014-07-06 Marek Polacek <polacek@redhat.com>
9918
9919 PR c/6940
9920 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
9921
f707da16
JJ
99222014-07-03 Jakub Jelinek <jakub@redhat.com>
9923
9924 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
9925 matches regex $lang_source_re, add $lang_include_flags to options.
9926 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
9927 * testsuite/libgomp.c++/c++.exp: Likewise.
9928 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
9929 and lang_include_flags instead of adding -fintrinsic-modules-path= to
9930 ALWAYS_CFLAGS.
9931 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
9932
07b6c044
TS
99332014-07-03 Thomas Schwinge <thomas@codesourcery.com>
9934
9935 * testsuite/libgomp.fortran/fortran.exp: Explain
9936 gfortran-dg-runtest usage.
9937
da6f124d
JJ
99382014-06-25 Jakub Jelinek <jakub@redhat.com>
9939
9940 * testsuite/libgomp.fortran/simd5.f90: New test.
9941 * testsuite/libgomp.fortran/simd6.f90: New test.
9942 * testsuite/libgomp.fortran/simd7.f90: New test.
9943
b46ebd6c
JJ
99442014-06-24 Jakub Jelinek <jakub@redhat.com>
9945
56ad0e38
JJ
9946 * testsuite/libgomp.c/for-2.c: Define SC to static for
9947 #pragma omp for simd testing.
9948 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
9949 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
9950 SC macro.
9951 * testsuite/libgomp.c/simd-14.c: New test.
9952 * testsuite/libgomp.c/simd-15.c: New test.
9953 * testsuite/libgomp.c/simd-16.c: New test.
9954 * testsuite/libgomp.c/simd-17.c: New test.
9955 * testsuite/libgomp.c++/for-10.C: Define SC to static for
9956 #pragma omp for simd testing.
9957 * testsuite/libgomp.c++/simd10.C: New test.
9958 * testsuite/libgomp.c++/simd11.C: New test.
9959 * testsuite/libgomp.c++/simd12.C: New test.
9960 * testsuite/libgomp.c++/simd13.C: New test.
9961
b46ebd6c
JJ
9962 * testsuite/libgomp.fortran/aligned1.f03: New test.
9963 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
9964 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
9965 tasks with !$omp parallel !$omp single.
9966 * testsuite/libgomp.fortran/target8.f90: New test.
9967 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
9968 not to use trim in the combiner, instead call elemental function.
9969 (fn): New elemental function.
9970 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
9971 Make elemental.
9972 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
9973 omp_in): Likewise.
9974 * testsuite/libgomp.fortran/udr12.f90: New test.
9975 * testsuite/libgomp.fortran/udr13.f90: New test.
9976 * testsuite/libgomp.fortran/udr14.f90: New test.
9977 * testsuite/libgomp.fortran/udr15.f90: New test.
9978
f014c653
JJ
99792014-06-18 Jakub Jelinek <jakub@redhat.com>
9980
9981 * omp_lib.f90.in (openmp_version): Set to 201307.
9982 * omp_lib.h.in (openmp_version): Likewise.
9983 * testsuite/libgomp.c/target-8.c: New test.
9984 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
9985 and inbranch clauses.
9986 * testsuite/libgomp.fortran/depend-3.f90: New test.
9987 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
9988 openmp_version.
9989 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9990 * testsuite/libgomp.fortran/target1.f90: New test.
9991 * testsuite/libgomp.fortran/target2.f90: New test.
9992 * testsuite/libgomp.fortran/target3.f90: New test.
9993 * testsuite/libgomp.fortran/target4.f90: New test.
9994 * testsuite/libgomp.fortran/target5.f90: New test.
9995 * testsuite/libgomp.fortran/target6.f90: New test.
9996 * testsuite/libgomp.fortran/target7.f90: New test.
9997
92d28cbb
JJ
99982014-06-10 Jakub Jelinek <jakub@redhat.com>
9999
10000 PR fortran/60928
10001 * testsuite/libgomp.fortran/allocatable9.f90: New test.
10002 * testsuite/libgomp.fortran/allocatable10.f90: New test.
10003 * testsuite/libgomp.fortran/allocatable11.f90: New test.
10004 * testsuite/libgomp.fortran/allocatable12.f90: New test.
10005 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
10006 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
10007 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
10008 * testsuite/libgomp.fortran/associate1.f90: New test.
10009 * testsuite/libgomp.fortran/associate2.f90: New test.
10010 * testsuite/libgomp.fortran/procptr1.f90: New test.
10011
5f23671d
JJ
100122014-06-06 Jakub Jelinek <jakub@redhat.com>
10013
10014 * testsuite/libgomp.fortran/simd1.f90: New test.
10015 * testsuite/libgomp.fortran/udr1.f90: New test.
10016 * testsuite/libgomp.fortran/udr2.f90: New test.
10017 * testsuite/libgomp.fortran/udr3.f90: New test.
10018 * testsuite/libgomp.fortran/udr4.f90: New test.
10019 * testsuite/libgomp.fortran/udr5.f90: New test.
10020 * testsuite/libgomp.fortran/udr6.f90: New test.
10021 * testsuite/libgomp.fortran/udr7.f90: New test.
10022 * testsuite/libgomp.fortran/udr8.f90: New test.
10023 * testsuite/libgomp.fortran/udr9.f90: New test.
10024 * testsuite/libgomp.fortran/udr10.f90: New test.
10025 * testsuite/libgomp.fortran/udr11.f90: New test.
10026
0389fbb5
UB
100272014-05-27 Uros Bizjak <ubizjak@gmail.com>
10028
10029 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
10030 vect_simd_clones effective target.
10031 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
10032
decaaec8
JJ
100332014-05-21 Jakub Jelinek <jakub@redhat.com>
10034
10035 PR middle-end/61252
10036 * testsuite/libgomp.c++/simd-9.C: New test.
10037
72832460
UB
100382014-05-18 Uros Bizjak <ubizjak@gmail.com>
10039
10040 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
10041 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
10042 texts according to their @menu entry positions.
10043
dd2fc525
JJ
100442014-05-11 Jakub Jelinek <jakub@redhat.com>
10045
10046 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
10047 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
10048 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
10049 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
10050 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
10051 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
10052 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
10053 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
10054 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
10055 * testsuite/libgomp.fortran/depend-1.f90: New test.
10056 * testsuite/libgomp.fortran/depend-2.f90: New test.
10057 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
10058 * testsuite/libgomp.fortran/simd1.f90: New test.
10059 * testsuite/libgomp.fortran/simd2.f90: New test.
10060 * testsuite/libgomp.fortran/simd3.f90: New test.
10061 * testsuite/libgomp.fortran/simd4.f90: New test.
10062 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
10063
95782571
JJ
100642014-05-02 Jakub Jelinek <jakub@redhat.com>
10065
10066 * testsuite/libgomp.c/simd-10.c: New test.
10067 * testsuite/libgomp.c/simd-11.c: New test.
10068 * testsuite/libgomp.c/simd-12.c: New test.
10069 * testsuite/libgomp.c/simd-13.c: New test.
10070
f7468577
JJ
100712014-04-24 Jakub Jelinek <jakub@redhat.com>
10072
42056eac
JJ
10073 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
10074 atomic type clauses in any order and optional comma in between.
10075 * testsuite/libgomp.c++/atomic-15.C: Likewise.
10076 * testsuite/libgomp.c/atomic-17.c: Likewise.
10077
f7468577
JJ
10078 * testsuite/libgomp.c/simd-7.c: New test.
10079 * testsuite/libgomp.c/simd-8.c: New test.
10080 * testsuite/libgomp.c/simd-9.c: New test.
10081 * testsuite/libgomp.c/loop-16.c: New test.
10082
ab18f2f5
RH
100832014-04-02 Richard Henderson <rth@redhat.com>
10084
10085 * config/linux/futex.h (futex_wait): Get error value from errno.
10086 (futex_wake): Likewise.
10087
8bcc90b0
JJ
100882014-03-25 Jakub Jelinek <jakub@redhat.com>
10089
10090 PR c++/60331
10091 * testsuite/libgomp.c++/udr-11.C: New test.
10092 * testsuite/libgomp.c++/udr-12.C: New test.
10093 * testsuite/libgomp.c++/udr-13.C: New test.
10094 * testsuite/libgomp.c++/udr-14.C: New test.
10095 * testsuite/libgomp.c++/udr-15.C: New test.
10096 * testsuite/libgomp.c++/udr-16.C: New test.
10097 * testsuite/libgomp.c++/udr-17.C: New test.
10098 * testsuite/libgomp.c++/udr-18.C: New test.
10099 * testsuite/libgomp.c++/udr-19.C: New test.
10100
18d73c7f
RS
101012014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
10102
10103 Update copyright years
10104
f9030485
RS
101052014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
10106
10107 * hashtab.h: Use the standard form for the copyright notice.
10108
98db73df
TB
101092014-01-02 Tobias Burnus <burnus@net-b.de>
10110
10111 * libgomp.texi: Bump @copying's copyright year.
10112
ae246f7f
AT
101132013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
10114
93d90219 10115 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
ae246f7f
AT
10116 alloca () with __builtin_alloca ().
10117 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
10118 * testsuite/libgomp.c/lock-3.c: Likewise.
10119 * testsuite/libgomp.c/pr48591.c: Likewise.
10120
fa00a5fe
JJ
101212013-12-17 Jakub Jelinek <jakub@redhat.com>
10122
10123 PR testsuite/59534
10124 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
10125 comparisons.
10126
e9792e1d
JJ
101272013-12-16 Jakub Jelinek <jakub@redhat.com>
10128
10129 PR libgomp/58756
10130 * testsuite/libgomp.c/pr58756.c: New test.
10131
cab37c89
JJ
101322013-12-12 Jakub Jelinek <jakub@redhat.com>
10133
10134 PR libgomp/59467
10135 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
10136 !$omp parallel.
10137
de14871c
TS
101382013-11-07 Thomas Schwinge <thomas@codesourcery.com>
10139
1707a5de
TS
10140 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
10141 ALWAYS_CFLAGS.
10142 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
10143 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
10144 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
10145 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
10146 Likewise.
10147
70f05c43
TS
10148 * libgomp_g.h: Include <stddef.h> for size_t.
10149
de14871c
TS
10150 * libgomp.spec.in: Update comment about libgomp's dependencies.
10151 * configure.ac: Likewise.
10152 * configure: Regenerate.
10153
83fd6c5b
TB
101542013-10-16 Tobias Burnus <burnus@net-b.de>
10155
10156 * libgomp.texi: (Runtime Library Routines): Update references for
10157 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
10158 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
10159 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
10160 (Environment Variables): Update references for OpenMP 4.0. Add
10161 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
10162 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
10163 order.
10164
c8673881
JJ
101652013-10-14 Jakub Jelinek <jakub@redhat.com>
10166
10167 * env.c (parse_bind_var): Initialize value to avoid
10168 (false positive) warning.
10169
f89163fd
JJ
101702013-10-12 Jakub Jelinek <jakub@redhat.com>
10171
10172 PR libgomp/58691
10173 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
10174 to check variable.
10175 (gomp_init_num_threads): Move i variable declaration into
10176 #ifdef CPU_ALLOC_SIZE block.
10177 * config/linux/affinity.c (gomp_affinity_init_level): Test
10178 gomp_places_list_len == 0 rather than gomp_places_list == 0
10179 when checking for topology reading error.
10180 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
10181 * env.c (parse_affinity): Add ignore argument, if true, don't populate
10182 gomp_places_list, only parse env var and always return false.
10183 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
10184 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
10185 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
10186 and either of these variables were parsed correctly into a places
10187 list.
10188
1d340638
TS
101892013-10-11 Thomas Schwinge <thomas@codesourcery.com>
10190 Jakub Jelinek <jakub@redhat.com>
10191
10192 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
10193 of 5 loopfn matches.
10194 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
10195 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
10196 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
10197 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
10198 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
10199 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
10200 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
10201 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
10202
71a81c21
TS
102032013-10-11 Thomas Schwinge <thomas@codesourcery.com>
10204
bd87f731
TS
10205 * Makefile.am (omp_lib.mod): Streamline rule.
10206 * Makefile.in: Regenerate.
10207
f5745bed
TS
10208 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
10209 exceptions.
10210
b5512c66
TS
10211 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
10212 * testsuite/libgomp.fortran/lib1.f90: Likewise.
10213 * testsuite/libgomp.fortran/lib2.f: Likewise.
10214 * testsuite/libgomp.fortran/lib3.f: Likewise.
10215
451c19c4
TS
10216 * configure.ac: Typo fix.
10217 * configure: Regenerate.
10218
86a6016d
TS
10219 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
10220 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
10221
71a81c21
TS
10222 * omp.h.in: Don't touch the user's namespace.
10223
acf0174b
JJ
102242013-10-11 Jakub Jelinek <jakub@redhat.com>
10225 Tobias Burnus <burnus@net-b.de>
10226 Richard Henderson <rth@redhat.com>
10227
10228 * target.c: New file.
10229 * Makefile.am (libgomp_la_SOURCES): Add target.c.
10230 * Makefile.in: Regenerated.
10231 * libgomp_g.h (GOMP_task): Add depend argument.
10232 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
10233 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
10234 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
10235 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
10236 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
10237 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
10238 GOMP_taskgroup_start, GOMP_taskgroup_end,
10239 GOMP_parallel_sections): New prototypes.
10240 * fortran.c (omp_is_initial_device): Add ialias_redirect.
10241 (omp_is_initial_device_): New function.
10242 (ULP, STR1, STR2, ialias_redirect): Removed.
10243 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
10244 omp_set_default_device_8_, omp_get_default_device_,
10245 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
10246 functions.
10247 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
10248 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
10249 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
10250 @@GOMP_4.0.
10251 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
10252 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
10253 omp_set_default_device, omp_set_default_device_,
10254 omp_set_default_device_8_, omp_get_default_device,
10255 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
10256 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
10257 omp_get_team_num_): Export @@OMP_4.0.
10258 * team.c (struct gomp_thread_start_data): Add place field.
10259 (gomp_thread_start): Clear thr->thread_pool and
10260 thr->task before returning. Use gomp_team_barrier_wait_final
10261 instead of gomp_team_barrier_wait. Initialize thr->place.
10262 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
10263 team_cancelled and task_queued_count fields.
10264 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
10265 before calling pthread_exit.
10266 (gomp_free_thread): No longer static. Use
10267 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
10268 (gomp_team_start): Add flags argument. Set
10269 thr->thread_pool->threads_busy to nthreads immediately after creating
10270 new pool. Use gomp_managed_threads_lock instead of
10271 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
10272 (gomp_team_end): Use gomp_managed_threads_lock instead of
10273 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
10274 of gomp_team_barrier_wait. If team->team_cancelled, call
93d90219 10275 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
acf0174b
JJ
10276 rather than thr->ts.work_share.
10277 (initialize_team): Don't call gomp_sem_init here.
10278 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
10279 caller.
10280 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
10281 * env.c (gomp_global_icv): Add default_device_var, target_data and
10282 bind_var initializers.
10283 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
10284 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
10285 gomp_places_list_len): New variables.
10286 (parse_bind_var, parse_one_place, parse_places_var): New functions.
10287 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
10288 sized places.
10289 (gomp_cancel_var): New global variable.
10290 (parse_int): New function.
10291 (handle_omp_display_env): New function.
10292 (initialize_env): Use it. Initialize default_device_var.
10293 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
10294 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
10295 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
10296 been successfully parsed (and call gomp_init_affinity in that case).
10297 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
10298 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
10299 omp_get_team_num, omp_is_initial_device): New functions.
10300 * libgomp.h: Include stdlib.h.
10301 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
10302 Define.
10303 (struct target_mem_desc): Forward declare.
10304 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
10305 and thread_limit_var fields.
10306 (gomp_get_num_devices): New prototype.
10307 (gomp_cancel_var): New extern decl.
10308 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
10309 team_cancelled and task_queued_count fields. Add comments about
10310 task_{,queued_,running_}count.
10311 (gomp_cancel_kind): New enum.
10312 (gomp_work_share_end_cancel): New prototype.
10313 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
10314 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
10315 and depend fields.
10316 (struct gomp_taskgroup): New type.
10317 (struct gomp_task_depend_entry,
10318 struct gomp_dependers_vec): New types.
10319 (gomp_finish_task): Free depend_hash if non-NULL.
10320 (struct gomp_team_state): Add place_partition_off
10321 and place_partition_len fields.
10322 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
10323 gomp_places_list_len): New extern decls.
10324 (struct gomp_thread): Add place field.
10325 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
10326 (gomp_init_thread_affinity): Add place argument.
10327 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
10328 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
10329 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
10330 gomp_affinity_init_level, gomp_affinity_print_place): New
10331 prototypes.
10332 (gomp_team_start): Add flags argument.
10333 (gomp_thread_limit_var, gomp_remaining_threads_count,
10334 gomp_remaining_threads_lock): Remove.
10335 (gomp_managed_threads_lock): New variable.
10336 (struct gomp_thread_pool): Add threads_busy field.
10337 (gomp_free_thread): New prototype.
10338 * task.c: Include hashtab.h.
10339 (hash_entry_type): New typedef.
10340 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
10341 (gomp_init_task): Clear dependers, depend_hash, depend_count,
10342 copy_ctors_done and taskgroup fields.
10343 (GOMP_task): Add depend argument, handle depend clauses. If
10344 gomp_team_barrier_cancelled or if it's taskgroup has been
10345 cancelled, don't queue or start new tasks. Set copy_ctors_done
10346 field if needed. Initialize taskgroup field. If copy_ctors_done
10347 and already cancelled, don't discard the task. If taskgroup is
10348 non-NULL, enqueue the task into taskgroup queue. Increment
10349 num_children field in taskgroup. Increment task_queued_count.
10350 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
10351 gomp_task_run_post_remove_taskgroup): New inline functions.
10352 (gomp_task_run_post_handle_depend_hash,
10353 gomp_task_run_post_handle_dependers,
10354 gomp_task_run_post_handle_depend): New functions.
10355 (GOMP_taskwait): Use them. If more than one new tasks
10356 have been queued, wake other threads if needed.
10357 (gomp_barrier_handle_tasks): Likewise. If
10358 gomp_team_barrier_cancelled, don't start any new tasks, just free
10359 all tasks.
10360 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
10361 * omp_lib.f90.in
10362 (omp_proc_bind_kind, omp_proc_bind_false,
10363 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
10364 omp_proc_bind_spread): New params.
10365 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
10366 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
10367 omp_get_team_num, omp_is_initial_device): New interfaces.
10368 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
10369 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
10370 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
10371 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
10372 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
10373 useless use omp_lib_kinds.
10374 * omp.h.in (omp_proc_bind_t): New typedef.
10375 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
10376 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
10377 omp_get_team_num, omp_is_initial_device): New prototypes.
10378 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
10379 through to gomp_team_start.
10380 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
10381 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
10382 Adjust gomp_parallel_loop_start callers.
10383 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
10384 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
10385 GOMP_loop_end_cancel): New functions.
10386 (GOMP_parallel_end): Add ialias_redirect.
10387 * hashtab.h: New file.
10388 * libgomp.texi (Environment Variables): Minor cleanup,
10389 update section refs to OpenMP 4.0rc2.
10390 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
10391 environment variables.
10392 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
10393 team->work_shares_to_free to thr->ts.work_share before calling
10394 free_work_share.
10395 (gomp_work_share_end_cancel): New function.
10396 * config/linux/proc.c: Include errno.h.
10397 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
10398 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
10399 sizeof (cpu_set_t) to determine number of iterations. Fix up check
10400 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
10401 gomp_cpuset_size is sizeof (cpu_set_t).
10402 (gomp_init_num_threads): Initialize gomp_cpuset_size,
10403 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
10404 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
10405 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
10406 contain any logical CPUs.
10407 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
10408 is NULL. Use gomp_cpusetp instead of &cpuset and pass
10409 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
10410 pthread_getaffinity_np. Check gomp_places_list instead of
10411 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
10412 * config/linux/bar.c (gomp_barrier_wait_end,
10413 gomp_barrier_wait_last): Use BAR_* defines.
10414 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
10415 from state where needed. Set work_share_cancelled to 0 on last
10416 thread.
10417 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
10418 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
10419 functions.
10420 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
10421 Add cpusetsize argument.
10422 (gomp_cpuset_size, gomp_cpusetp): Declare.
10423 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
10424 (affinity_counter): Remove.
10425 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
10426 if CPU_ALLOC_SIZE isn't defined.
10427 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
10428 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
10429 bind current thread to the first place.
10430 (gomp_init_thread_affinity): Rewritten. Add place argument, just
10431 pthread_setaffinity_np to gomp_places_list[place].
10432 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
10433 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
10434 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
10435 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
10436 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
10437 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
10438 (gomp_barrier_t): Add awaited_final field.
10439 (gomp_barrier_init): Initialize awaited_final field.
10440 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
10441 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
10442 prototypes.
10443 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
10444 defines.
10445 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
10446 gomp_team_barrier_cancelled): New inline functions.
10447 (gomp_barrier_last_thread,
10448 gomp_team_barrier_set_task_pending,
10449 gomp_team_barrier_clear_task_pending,
10450 gomp_team_barrier_set_waiting_for_tasks,
10451 gomp_team_barrier_waiting_for_tasks,
10452 gomp_team_barrier_done): Use BAR_* defines.
10453 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
10454 (gomp_barrier_wait_end): Use BAR_* defines.
10455 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
10456 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
10457 Use BAR_* defines.
10458 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
10459 gomp_team_barrier_cancel): New functions.
10460 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
10461 argument.
10462 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
10463 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
10464 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
10465 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
10466 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
10467 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
10468 (gomp_barrier_t): Add cancellable field.
10469 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
10470 gomp_team_barrier_cancel): New prototypes.
10471 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
10472 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
10473 gomp_team_barrier_cancelled): New inline functions.
10474 (gomp_barrier_wait_start, gomp_barrier_last_thread,
10475 gomp_team_barrier_set_task_pending,
10476 gomp_team_barrier_clear_task_pending,
10477 gomp_team_barrier_set_waiting_for_tasks,
10478 gomp_team_barrier_waiting_for_tasks,
10479 gomp_team_barrier_done): Use BAR_* defines.
10480 * barrier.c (GOMP_barrier_cancel): New function.
10481 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
10482 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
10483 omp_proc_bind_spread): New params.
10484 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
10485 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
10486 omp_get_team_num, omp_is_initial_device): New externals.
10487 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
10488 New functions.
10489 (gomp_resolve_num_threads): Adjust for thread_limit now being in
10490 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
10491 infinity. If not nested, just return minimum of max_num_threads
10492 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
10493 to the returned value. Otherwise, don't update atomically
10494 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
10495 (GOMP_parallel_end): Adjust for thread_limit now being in
10496 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
10497 infinity. Adjust threads_busy in the pool rather than
10498 gomp_remaining_threads_count. Remember team->nthreads and call
10499 gomp_team_end before adjusting threads_busy, if not nested
10500 afterwards, just set it to 1 non-atomically. Add ialias.
10501 (GOMP_parallel_start): Adjust gomp_team_start caller.
10502 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
10503 * testsuite/libgomp.c/affinity-1.c: New test.
10504 * testsuite/libgomp.c/atomic-15.c: New test.
10505 * testsuite/libgomp.c/atomic-16.c: New test.
10506 * testsuite/libgomp.c/atomic-17.c: New test.
10507 * testsuite/libgomp.c/cancel-for-1.c: New test.
10508 * testsuite/libgomp.c/cancel-for-2.c: New test.
10509 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
10510 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
10511 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
10512 * testsuite/libgomp.c/cancel-sections-1.c: New test.
10513 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
10514 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
10515 * testsuite/libgomp.c/depend-1.c: New test.
10516 * testsuite/libgomp.c/depend-2.c: New test.
10517 * testsuite/libgomp.c/depend-3.c: New test.
10518 * testsuite/libgomp.c/depend-4.c: New test.
10519 * testsuite/libgomp.c/for-1.c: New test.
10520 * testsuite/libgomp.c/for-1.h: New file.
10521 * testsuite/libgomp.c/for-2.c: New test.
10522 * testsuite/libgomp.c/for-2.h: New file.
10523 * testsuite/libgomp.c/for-3.c: New test.
10524 * testsuite/libgomp.c/pr58392.c: New test.
10525 * testsuite/libgomp.c/simd-1.c: New test.
10526 * testsuite/libgomp.c/simd-2.c: New test.
10527 * testsuite/libgomp.c/simd-3.c: New test.
10528 * testsuite/libgomp.c/simd-4.c: New test.
10529 * testsuite/libgomp.c/simd-5.c: New test.
10530 * testsuite/libgomp.c/simd-6.c: New test.
10531 * testsuite/libgomp.c/target-1.c: New test.
10532 * testsuite/libgomp.c/target-2.c: New test.
10533 * testsuite/libgomp.c/target-3.c: New test.
10534 * testsuite/libgomp.c/target-4.c: New test.
10535 * testsuite/libgomp.c/target-5.c: New test.
10536 * testsuite/libgomp.c/target-6.c: New test.
10537 * testsuite/libgomp.c/target-7.c: New test.
10538 * testsuite/libgomp.c/taskgroup-1.c: New test.
10539 * testsuite/libgomp.c/thread-limit-1.c: New test.
10540 * testsuite/libgomp.c/thread-limit-2.c: New test.
10541 * testsuite/libgomp.c/thread-limit-3.c: New test.
10542 * testsuite/libgomp.c/udr-1.c: New test.
10543 * testsuite/libgomp.c/udr-2.c: New test.
10544 * testsuite/libgomp.c/udr-3.c: New test.
10545 * testsuite/libgomp.c++/affinity-1.C: New test.
10546 * testsuite/libgomp.c++/atomic-10.C: New test.
10547 * testsuite/libgomp.c++/atomic-11.C: New test.
10548 * testsuite/libgomp.c++/atomic-12.C: New test.
10549 * testsuite/libgomp.c++/atomic-13.C: New test.
10550 * testsuite/libgomp.c++/atomic-14.C: New test.
10551 * testsuite/libgomp.c++/atomic-15.C: New test.
10552 * testsuite/libgomp.c++/cancel-for-1.C: New test.
10553 * testsuite/libgomp.c++/cancel-for-2.C: New test.
10554 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
10555 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
10556 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
10557 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
10558 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
10559 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
10560 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
10561 * testsuite/libgomp.c++/cancel-test.h: New file.
10562 * testsuite/libgomp.c++/for-9.C: New test.
10563 * testsuite/libgomp.c++/for-10.C: New test.
10564 * testsuite/libgomp.c++/for-11.C: New test.
10565 * testsuite/libgomp.c++/simd-1.C: New test.
10566 * testsuite/libgomp.c++/simd-2.C: New test.
10567 * testsuite/libgomp.c++/simd-3.C: New test.
10568 * testsuite/libgomp.c++/simd-4.C: New test.
10569 * testsuite/libgomp.c++/simd-5.C: New test.
10570 * testsuite/libgomp.c++/simd-6.C: New test.
10571 * testsuite/libgomp.c++/simd-7.C: New test.
10572 * testsuite/libgomp.c++/simd-8.C: New test.
10573 * testsuite/libgomp.c++/target-1.C: New test.
10574 * testsuite/libgomp.c++/target-2.C: New test.
10575 * testsuite/libgomp.c++/target-2-aux.cc: New file.
10576 * testsuite/libgomp.c++/target-3.C: New test.
10577 * testsuite/libgomp.c++/taskgroup-1.C: New test.
10578 * testsuite/libgomp.c++/udr-1.C: New test.
10579 * testsuite/libgomp.c++/udr-2.C: New test.
10580 * testsuite/libgomp.c++/udr-3.C: New test.
10581 * testsuite/libgomp.c++/udr-4.C: New test.
10582 * testsuite/libgomp.c++/udr-5.C: New test.
10583 * testsuite/libgomp.c++/udr-6.C: New test.
10584 * testsuite/libgomp.c++/udr-7.C: New test.
10585 * testsuite/libgomp.c++/udr-8.C: New test.
10586 * testsuite/libgomp.c++/udr-9.C: New test.
10587
bd599dea
JJ
105882013-09-20 Jakub Jelinek <jakub@redhat.com>
10589
10590 PR testsuite/57605
10591 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
10592 ALWAYS_CFLAGS.
10593
3cbe17f7
AM
105942013-09-20 Alan Modra <amodra@gmail.com>
10595
10596 * configure: Regenerate.
10597
4befd127
JJ
105982013-09-19 Jakub Jelinek <jakub@redhat.com>
10599
10600 * testsuite/libgomp.c/sections-2.c: New test.
10601
946c8f7b
MS
106022013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
10603
10604 * testsuite/libgomp.fortran/strassen.f90:
10605 Add dg-skip-if aarch64_tiny.
10606
1ef3b58e
IS
106072013-06-20 Iain Sandoe <iain@codesourcery.com>
10608 Cesar Philippidis <cesar@codesourcery.com>
10609
10610 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
10611 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
10612 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
10613 * testsuite/libgomp.fortran/fortran.exp: Likewise.
10614 * testsuite/libgomp.graphite/graphite.exp: Likewise.
10615 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
10616 Use dg-runtest rather than gfortran-dg-runtest.
10617
9275f73a
TS
106182013-06-10 Thomas Schwinge <thomas@codesourcery.com>
10619
10620 * testsuite/libgomp.c/icv-2.c: Extend current handling of
10621 Linux-based x86 systems to cover all GNU systems.
10622 * testsuite/libgomp.c/lock-3.c: Likewise.
10623 * testsuite/libgomp.c/pr48591.c: Likewise.
10624
492992e2
TS
106252013-06-06 Thomas Schwinge <thomas@codesourcery.com>
10626
48df3acb
TS
10627 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
10628 GNU/Hurd, as done for Linux-based systems.
10629
492992e2
TS
10630 * config/posix/ptrlock.h: Fix comment.
10631
4fed6b25
TB
106322013-05-27 Tobias Burnus <burnus@net-b.de>
10633
10634 PR fortran/57423
10635 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
10636 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
10637 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
10638 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
10639 omp_destroy_nest_lock): Correct arguments to match the one in
10640 the OpenMP spec.
10641 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
10642 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
10643 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
10644 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
10645
5a0f4dd3
JJ
106462013-05-16 Jakub Jelinek <jakub@redhat.com>
10647
10648 * testsuite/libgomp.c/loop-13.c: New test.
10649 * testsuite/libgomp.c/loop-14.c: New test.
10650 * testsuite/libgomp.c/loop-15.c: New test.
10651 * testsuite/libgomp.c++/loop-13.C: New test.
10652 * testsuite/libgomp.c++/loop-14.C: New test.
10653 * testsuite/libgomp.c++/loop-15.C: New test.
10654
6d840d99
JJ
106552013-02-06 Jakub Jelinek <jakub@redhat.com>
10656
10657 PR middle-end/56217
10658 * testsuite/libgomp.c++/pr56217.C: New test.
10659
bed8d8a6
AM
106602013-02-01 Alan Modra <amodra@gmail.com>
10661
10662 * task.c (GOMP_task, GOMP_taskwait): Comment.
10663
3b35cd04
DV
106642013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
10665 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
10666
10667 PR libgomp/55561
10668 * config/linux/wait.h (do_spin): Use atomic load for addr.
10669 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
10670 for intptr and ptrlock.
10671 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
10672 for ptrlock.
10673
9a647288
AM
106742013-01-22 Alan Modra <amodra@gmail.com>
10675
10676 PR libgomp/51376
10677 PR libgomp/56073
10678 * task.c (GOMP_task): Revert 2011-12-09 change.
10679 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
10680 barrier to read task->children..
10681 (gomp_barrier_handle_tasks): ..and matching atomic store with
10682 release barrier here when setting parent->children to NULL.
10683
f34dea03
JJ
106842013-01-16 Jakub Jelinek <jakub@redhat.com>
10685 Tobias Burnus <burnus@net-b.de>
10686
10687 PR driver/55884
10688 * testsuite/libgomp.fortran/fortran.exp: Use
10689 -fintrinsic-modules-path= instead of
10690 -fintrinsic-modules-path.
10691
8129609c
RS
106922013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
10693
10694 Update copyright years.
10695
aa86bf1e
TB
106962012-12-19 Tobias Burnus <burnus@net-b.de>
10697
10698 * testsuite/libgomp.fortran/fortran.exp: Set
10699 -fintrinsic-modules-path.
10700
2865ea66
TB
107012012-12-19 Tobias Burnus <burnus@net-b.de>
10702
10703 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
10704 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
10705
4c5ba8d0
JJ
107062012-11-21 Jakub Jelinek <jakub@redhat.com>
10707
10708 PR libgomp/55411
10709 * team.c (gomp_free_thread): Decrease gomp_managed_threads
10710 if pool had any threads_used.
10711
e9f958c2
JH
107122012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
10713
10714 * testsuite/libgomp.c++/pr24455.C: Use
10715 -Wl,-undefined,dynamic_lookup on darwin.
10716
a57d75dc
DE
107172012-11-07 David Edelsohn <dje.gcc@gmail.com>
10718
10719 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
10720
c6c08485
DH
107212012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
10722
10723 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
10724
c1f37c00
IB
107252012-10-23 Ian Bolton <ian.bolton@arm.com>
10726 Jim MacArthur <jim.macarthur@arm.com>
10727 Marcus Shawcroft <marcus.shawcroft@arm.com>
10728 Nigel Stephens <nigel.stephens@arm.com>
10729 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10730 Richard Earnshaw <rearnsha@arm.com>
10731 Sofiane Naci <sofiane.naci@arm.com>
10732 Stephen Thomas <stephen.thomas@arm.com>
10733 Tejas Belagod <tejas.belagod@arm.com>
10734 Yufeng Zhang <yufeng.zhang@arm.com>
10735
10736 * configure.tgt: Add AArch64.
10737
7c424acd
JM
107382012-10-04 Jason Merrill <jason@redhat.com>
10739
10740 * testsuite/libgomp.c++/tls-init1.C: New.
10741
6608378b
DE
107422012-09-14 David Edelsohn <dje.gcc@gmail.com>
10743
10744 * configure: Regenerated.
10745
c24dbebb
CLT
107462012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
10747
10748 * config/linux/mips/futex.h (sys_futex0): Change to static
10749 function with noinline, nomips16 attributes under MIPS16. Adjust
10750 asm statement to place 'li v0,SYS_futex' immediately before
10751 syscall insn.
10752
3d3949df
SL
107532012-07-04 Sandra Loosemore <sandra@codesourcery.com>
10754
10755 * libgomp.texi (Library Index): Renamed from "Index" to prevent
10756 conflict with index.html on case-insensitive file systems.
10757
68a12ef3
UB
107582012-07-03 Uros Bizjak <ubizjak@gmail.com>
10759
10760 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
10761 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
10762
33ad93b9 107632012-07-02 Richard Guenther <rguenther@suse.de>
68a12ef3
UB
10764 Michael Matz <matz@suse.de>
10765 Tobias Grosser <tobias@grosser.es>
10766 Sebastian Pop <sebpop@gmail.com>
33ad93b9
RG
10767
10768 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
10769 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
10770 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
10771 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
10772
e6fdc918
AS
107732012-06-28 Andreas Schwab <schwab@linux-m68k.org>
10774
10775 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
10776
62e0a1ed
RG
107772012-06-22 Richard Guenther <rguenther@suse.de>
10778
10779 Merge from graphite branch
10780 2012-01-13 Tobias Grosser <tobias@grosser.es>
10781
10782 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10783 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
10784
26127932
JJ
107852012-06-07 Jakub Jelinek <jakub@redhat.com>
10786
10787 PR middle-end/53580
10788 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
10789 use GOMP_barrier () call instead.
10790 * testsuite/libgomp.c/pr26943-3.c: Likewise.
10791 * testsuite/libgomp.c/pr26943-4.c: Likewise.
10792 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
10793 call GOMP_barrier instead.
10794 * testsuite/libgomp.fortran/vla5.f90: Likewise.
10795
43fa5db5
JJ
107962012-06-06 Jakub Jelinek <jakub@redhat.com>
10797
10798 PR libgomp/52993
10799 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
10800 argument to memset call.
10801
e6d5f8c9
L
108022012-05-16 H.J. Lu <hongjiu.lu@intel.com>
10803
10804 * configure: Regenerated.
10805
559d990c
MLI
108062012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
10807
10808 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
10809
b9c23a61
L
108102012-03-31 H.J. Lu <hongjiu.lu@intel.com>
10811
10812 PR bootstrap/52812
10813 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
10814
c140ddf3
JJ
108152012-03-22 Jakub Jelinek <jakub@redhat.com>
10816
10817 PR middle-end/52547
10818 * testsuite/libgomp.c/pr52547.c: New test.
10819
6a26a74d
BRF
108202012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
10821
10822 * testsuite/lib/libgomp.exp: load fortran-modules.exp
10823
b24513a1
RO
108242012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10825
10826 * configure.tgt (mips-sgi-irix6*): Remove.
10827
5c30094f
RO
108282012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10829
10830 * configure.tgt (alpha*-dec-osf*): Remove.
10831
10832 * config/osf/sem.h: Remove.
10833 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
10834
a339c9d6
EB
108352012-02-29 Eric Botcazou <ebotcazou@adacore.com>
10836
10837 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
10838
cc2de92d
RO
108392012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10840
10841 PR libstdc++/52188
10842 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
10843 Remove ENABLE_SYMVERS_SOL2.
10844 * configure: Regenerate.
10845 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
10846 (PREPROCESS): New variable.
10847 (libgomp.ver): New target.
10848 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
10849 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
10850 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
10851 Use libgomp.ver.
10852 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
10853 * Makefile.in: Regenerate.
10854
dd552284
WL
108552012-02-14 Walter Lee <walt@tilera.com>
10856
10857 * configure.tgt: Handle tilegx and tilepro.
10858 * config/linux/tile/futex.h: New file.
10859
31432e21
RG
108602012-02-08 Richard Guenther <rguenther@suse.de>
10861
10862 PR tree-optimization/46886
10863 * testsuite/libgomp.c/pr46886.c: New testcase.
10864
b9264b5f
MK
108652012-01-25 Matthias Klose <doko@ubuntu.com>
10866
10867 * config/linux/arm: Remove empty directory.
10868 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
10869
fbf7be80
AM
108702011-12-09 Alan Modra <amodra@gmail.com>
10871
10872 PR libgomp/51376
10873 * task.c (GOMP_taskwait): Don't access task->children outside of
10874 task_lock mutex region.
10875 (GOMP_task): Likewise.
10876
5de62d00
JJ
108772011-12-06 Jakub Jelinek <jakub@redhat.com>
10878
10879 PR libgomp/51132
10880 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
10881 to file scope.
10882 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
10883 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
10884 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
10885 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
10886 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
10887
45608a43
AM
108882011-12-02 Alan Modra <amodra@gmail.com>
10889
10890 * config/linux/affinity.c: Use atomic rather than sync builtin.
10891 * config/linux/lock.c: Likewise.
10892 * config/linux/ptrlock.h: Likewise.
10893 * config/linux/ptrlock.c: Likewise.
10894 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
10895 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
10896 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
10897 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
10898 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
10899 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
10900 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
10901 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
10902 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
10903 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
10904
ab6dd406
AM
109052011-11-30 Alan Modra <amodra@gmail.com>
10906
10907 PR libgomp/51298
10908 * config/linux/bar.h: Use atomic rather than sync builtins.
10909 * config/linux/bar.c: Likewise. Add missing acquire
10910 synchronisation on generation field.
10911 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
10912 double unlock.
10913
b40c885f
AM
109142011-11-30 Alan Modra <amodra@gmail.com>
10915
10916 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
10917 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
10918 * config/linux/mutex.h: Use atomic rather than sync builtins.
10919 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
10920 * config/linux/omp-lock.h: Comment fix.
10921 * config/linux/arm/mutex.h: Delete.
10922 * config/linux/powerpc/mutex.h: Delete.
10923 * config/linux/ia64/mutex.h: Delete.
10924 * config/linux/mips/mutex.h: Delete.
10925
3e348fcc
AM
109262011-11-30 Alan Modra <amodra@gmail.com>
10927
10928 PR libgomp/51249
10929 * config/linux/sem.h: Rewrite.
10930 * config/linux/sem.c: Rewrite.
10931
cef86eb2
RH
109322011-11-28 Richard Henderson <rth@redhat.com>
10933
10934 * libgomp.h (enum memmodel): New.
10935
c6084f68
AT
109362011-11-21 Andreas Tobler <andreast@fgznet.ch>
10937
10938 * configure: Regenerate.
10939
06fe026c
MK
109402011-10-10 Matthias Klose <doko@ubuntu.com>
10941
10942 * config/posix95: Remove empty directory.
10943
a6c975bd
JJ
109442011-08-26 Jakub Jelinek <jakub@redhat.com>
10945
10946 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
10947
c26dffff
JJ
109482011-08-19 Jakub Jelinek <jakub@redhat.com>
10949
10950 PR fortran/49792
10951 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
10952 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
10953
ddaad3c8
RO
109542011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10955
10956 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
10957
98d03683
RO
109582011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10959
10960 PR libgomp/49965
10961 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
10962
e0b23d9f
UB
109632011-08-03 Uros Bizjak <ubizjak@gmail.com>
10964
10965 * config/linux/proc.h: New.
10966 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
10967 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
10968 (gomp_init_num_threads): Update call to cpuset_popcount.
10969 (get_num_procs): Ditto.
10970 * config/linux/affinity.c (gomp_init_affinity): Call
10971 gomp_cpuset_popcount.
10972
20906c66
JJ
109732011-08-02 Jakub Jelinek <jakub@redhat.com>
10974
10975 PR fortran/42041
10976 PR fortran/46752
10977 * omp.h.in (omp_in_final): New prototype.
10978 * omp_lib.f90.in (omp_in_final): New interface.
10979 (omp_integer_kind, omp_logical_kind): Remove
10980 and replace all its uses in the module with 4.
10981 (openmp_version): Change to 201107.
10982 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
10983 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
10984 kind for the parameters.
10985 (omp_in_final): New external.
10986 (openmp_version): Change to 201107.
10987 * task.c (omp_in_final): New function.
10988 (gomp_init_task): Initialize final_task.
10989 (GOMP_task): Remove unused attribute from flags. Handle final
10990 tasks.
10991 (GOMP_taskyield): New function.
10992 (omp_in_final): Return true if if (false) or final (true) task
10993 or descendant of final (true).
10994 * fortran.c (omp_in_final_): New function.
10995 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
10996 (GOMP_3.0): Export GOMP_taskyield.
10997 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
10998 variables.
10999 (parse_unsigned_long_list): New function.
11000 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
11001 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
11002 even if parse_affinity returned false.
11003 * config/linux/affinity.c (gomp_init_affinity): Handle
11004 gomp_cpu_affinity_len == 0.
11005 * libgomp_g.h (GOMP_taskyield): New prototype.
11006 * libgomp.h (struct gomp_task): Add final_task field.
11007 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
11008 * team.c (gomp_team_start): Override new task's nthreads_var icv
11009 if list form OMP_NUM_THREADS has been used and it has value for
11010 the new nesting level.
11011
11012 * testsuite/libgomp.c/atomic-11.c: New test.
11013 * testsuite/libgomp.c/atomic-12.c: New test.
11014 * testsuite/libgomp.c/atomic-13.c: New test.
11015 * testsuite/libgomp.c/atomic-14.c: New test.
11016 * testsuite/libgomp.c/reduction-6.c: New test.
11017 * testsuite/libgomp.c/task-5.c: New test.
11018 * testsuite/libgomp.c++/atomic-2.C: New test.
11019 * testsuite/libgomp.c++/atomic-3.C: New test.
11020 * testsuite/libgomp.c++/atomic-4.C: New test.
11021 * testsuite/libgomp.c++/atomic-5.C: New test.
11022 * testsuite/libgomp.c++/atomic-6.C: New test.
11023 * testsuite/libgomp.c++/atomic-7.C: New test.
11024 * testsuite/libgomp.c++/atomic-8.C: New test.
11025 * testsuite/libgomp.c++/atomic-9.C: New test.
11026 * testsuite/libgomp.c++/task-8.C: New test.
11027 * testsuite/libgomp.c++/reduction-4.C: New test.
11028 * testsuite/libgomp.fortran/allocatable7.f90: New test.
11029 * testsuite/libgomp.fortran/allocatable8.f90: New test.
11030 * testsuite/libgomp.fortran/crayptr3.f90: New test.
11031 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
11032 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
11033 * testsuite/libgomp.fortran/pointer1.f90: New test.
11034 * testsuite/libgomp.fortran/pointer2.f90: New test.
11035 * testsuite/libgomp.fortran/task4.f90: New test.
11036
110372011-08-02 Tobias Burnus <burnus@net-b.de>
11038
11039 * libgomp.texi: Update OpenMP spec references to 3.1.
11040 (omp_in_final,OMP_PROC_BIND): New sections.
11041 (OMP_NUM_THREADS): Document that the value can be now a list.
11042 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
11043
c01ecafc
L
110442011-08-02 H.J. Lu <hongjiu.lu@intel.com>
11045
11046 * config/linux/x86/futex.h: Check __x86_64__ instead of
11047 __LP64__.
11048
25142650
JJ
110492011-07-29 Jakub Jelinek <jakub@redhat.com>
11050
11051 PR middle-end/49897
11052 PR middle-end/49898
11053 * testsuite/libgomp.c/pr49897-1.c: New test.
11054 * testsuite/libgomp.c/pr49897-2.c: New test.
11055 * testsuite/libgomp.c/pr49898-1.c: New test.
11056 * testsuite/libgomp.c/pr49898-2.c: New test.
11057
f53d712f
L
110582011-07-28 H.J. Lu <hongjiu.lu@intel.com>
11059
11060 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
11061 for ia32 instead of ilp32.
11062
11063 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
11064 * testsuite/libgomp.c/atomic-6.c: Likewise.
11065
3689198d
SP
110662011-07-23 Sebastian Pop <sebastian.pop@amd.com>
11067
11068 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
11069 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
11070
1a79cb73
RO
110712011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11072
11073 PR libgomp/45351
11074 * config/osf/sem.h: New file.
11075 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
11076
c1f51484
RO
110772011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11078
11079 PR target/49541
11080 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
11081 ldflags.
11082
bfee0724
JJ
110832011-07-15 Jakub Jelinek <jakub@redhat.com>
11084
11085 * config/linux/wait.h (do_spin): New inline, largely copied
11086 from do_wait, just don't do futex_wait here, instead return true if
11087 it should be done.
11088 (do_wait): Implement using do_spin.
11089 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
11090 to prototype.
11091 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
11092 __sync_bool_compare_and_swap, pass the oldval to
11093 gomp_mutex_lock_slow.
11094 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
11095 If all mutex contenders are just spinning and not sleeping, don't
11096 change state to 2 unnecessarily. Optimize the loop when state has
11097 already become 2 to use just one atomic operation per loop instead
11098 of two.
11099 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
11100 to prototype.
11101 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
11102 __sync_bool_compare_and_swap, pass the oldval to
11103 gomp_mutex_lock_slow.
11104
fb79f500
JJ
111052011-06-22 Jakub Jelinek <jakub@redhat.com>
11106
11107 PR libgomp/49490
11108 * iter.c (gomp_iter_static_next): For chunk size 0
11109 only use n ceil/ nthreads size for the first
11110 n % nthreads threads in the team instead of
11111 all threads except for the last few ones which
11112 get less work or none at all.
11113 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
11114 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
11115 chunk argument, set run_sched_modifier to 0 for static
11116 resp. 1 for other kinds. If chunk argument is 0
11117 and not static, set value to 1.
11118
4577f730
JJ
111192011-05-19 Jakub Jelinek <jakub@redhat.com>
11120
ea93a47b
JJ
11121 PR c++/49043
11122 * testsuite/libgomp.c++/pr49043.C: New test.
11123
4577f730
JJ
11124 PR c++/48869
11125 * testsuite/libgomp.c++/pr48869.C: New test.
11126
e7385332
JJ
111272011-05-06 Jakub Jelinek <jakub@redhat.com>
11128
11129 PR fortran/48894
11130 * fortran.c: Include limits.h.
11131 (TO_INT): Define.
11132 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
11133 *set.
11134 (omp_set_num_threads_8_, omp_set_schedule_8_,
11135 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
11136 omp_get_team_size_8_): Use TO_INT macro.
11137 * testsuite/libgomp.fortran/pr48894.f90: New test.
11138
20790697
JJ
111392011-04-13 Jakub Jelinek <jakub@redhat.com>
11140
11141 PR middle-end/48591
11142 * testsuite/libgomp.c/pr48591.c: New test.
11143
bf382f5f
RO
111442011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11145
11146 PR bootstrap/48135
11147 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
11148 * configure: Regenerate.
11149
113a53c1
JJ
111502011-02-27 Jakub Jelinek <jakub@redhat.com>
11151
11152 PR fortran/47886
11153 * testsuite/libgomp.fortran/task3.f90: New test.
11154
0024f1af
TB
111552011-02-24 Tobias Burnus <burnus@net-b.de>
11156
11157 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
11158
21e1e594
JJ
111592011-02-23 Jakub Jelinek <jakub@redhat.com>
11160
11161 PR libgomp/47854
11162 * libgomp.texi (omp_get_wtime): Don't say time in the past
11163 must be Unix Epoch.
11164
67962076
JJ
111652011-02-18 Jakub Jelinek <jakub@redhat.com>
11166
11167 PR libgomp/47804
11168 * testsuite/libgomp.fortran/fortran.exp: Check for both
11169 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
11170 but $blddir != "", still append ${blddir}/${lang_library_path}
11171 to ld_library_path.
11172
3808007c
TB
111732011-02-16 Tobias Burnus <burnus@net-b.de>
11174
11175 PR libgomp/47758
11176 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
11177 of libquadmath.a before adding its libpath to ldflags.
11178
53b4d41d
JJ
111792011-02-14 Jakub Jelinek <jakub@redhat.com>
11180
11181 PR libgomp/47731
11182 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
11183 to FUTEX_WAIT futex syscall.
11184 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
11185
029c8f3e
RW
111862011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11187
11188 * configure: Regenerate.
11189
bddd6626
BK
111902011-01-20 Benjamin Kosnik <bkoz@redhat.com>
11191
11192 PR libstdc++/36104
11193 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
11194
f1d4ab26
GP
111952011-01-16 Gerald Pfeifer
11196
11197 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
11198
2b503136
JJ
111992010-12-14 Jakub Jelinek <jakub@redhat.com>
11200
11201 PR fortran/46874
11202 * libgomp.fortran/allocatable6.f90: New test.
11203
c0f9d583
RO
112042010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11205
11206 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
11207 * configure: Regenerate.
11208
7de6ba7a
DK
112092010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
11210
11211 PR target/40125
11212 PR lto/46695
11213 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
11214 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
11215 * aclocal.m4: Regenerate.
11216 * configure: Regenerate.
11217 * Makefile.in: Regenerate.
11218 * testsuite/Makefile.in: Regenerate.
11219
b7516041
JJ
112202010-12-02 Jakub Jelinek <jakub@redhat.com>
11221
edaadf74
JJ
11222 PR fortran/46753
11223 * libgomp.fortran/pr46753.f90: New test.
11224
4c698cf8
JJ
11225 PR libgomp/43706
11226 * env.c (initialize_env): Default to spin count 300000
11227 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
11228 is specified.
11229
b7516041
JJ
11230 PR libgomp/45240
11231 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
11232 at the end if sync builtins aren't supported.
11233
6b43a34c
RO
112342010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11235
11236 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
11237
950691fa
RO
112382010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11239
11240 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
11241
fb9041ea
IS
112422010-11-24 Iain Sandoe <iains@gcc.gnu.org>
11243
11244 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
11245
1ec601bf
FXC
112462010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11247 Tobias Burnus <burnus@net-b.de>
11248
11249 PR fortran/32049
3e348fcc 11250 * configure.ac:
1ec601bf
FXC
11251 * configure: Regenerate.
11252
d213e92e
MS
112532010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
11254
11255 * config/linux/futex.h: New.
11256 * config/linux/arm/mutex.h: New.
11257 * configure.tgt (arm*-*-linux*): Add config path.
11258
89d5c66f
SP
112592010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11260
11261 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
11262
87350d4a
TB
112632010-09-23 Tobias Burnus <burnus@net-b.de>
11264
11265 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
11266 Change Fortran datatype to LOGICAL.
11267 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
11268 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
11269
75bc9e5e
RW
112702010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11271
11272 * configure: Regenerate.
11273
acb5c916
JJ
112742010-07-26 Jakub Jelinek <jakub@redhat.com>
11275
11276 * libgomp.texi: Add function keyword to a couple of Fortran
11277 interfaces, use integer instead of int for Fortran.
11278
6a2ba183
AH
112792010-07-26 Aldy Hernandez <aldyh@redhat.com>
11280
11281 * libgomp.texi: Fix spelling and pasto problems throughout.
11282 Adjust prototypes to match code.
11283
df161b69
TB
112842010-07-24 Tobias Burnus <burnus@net-b.de>
11285
11286 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
11287 silence -fwhole-file warning.
11288
16c9d3b1
RO
112892010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11290
11291 * configure.tgt (*-*-solaris2.[56]*): Removed.
11292
6d28b933
RO
112932010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11294
11295 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
11296 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
11297 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
11298 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
11299 targetting solaris2*.
11300 * configure: Regenerate.
11301 * config.h.in: Regenerate.
11302
11303 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
11304 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
11305 Add libgomp_version_dep.
11306 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
11307 versioning.
11308 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
11309 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
11310 * Makefile.in: Regenerate.
11311
11312 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
11313 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
11314 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
11315 to common block, protected by
11316 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
11317
07a67d6a
GP
113182010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
11319
11320 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
11321
dbd34b89
IS
113222010-06-09 Iain Sandoe <iains@gcc.gnu.org>
11323
11324 PR bootstrap/43170
11325 * configure: Regenerate.
11326
13917ae3
RW
113272010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11328
11329 PR other/43620
11330 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
11331 * configure: Regenerate.
11332 * Makefile.in: Regenerate.
11333 * testsuite/Makefile.in: Regenerate.
11334
b83a701b
JJ
113352010-04-26 Jakub Jelinek <jakub@redhat.com>
11336
11337 PR c/43893
11338 * testsuite/libgomp.c/pr43893.c: New test.
11339 * testsuite/libgomp.c++/pr43893.C: New test.
11340
78db7d92
JJ
113412010-04-21 Jakub Jelinek <jakub@redhat.com>
11342
11343 PR middle-end/43570
11344 * testsuite/libgomp.fortran/vla8.f90: New test.
11345
5221d7a9
JJ
113462010-04-20 Jakub Jelinek <jakub@redhat.com>
11347
e4ba7a60
JJ
11348 PR libgomp/43706
11349 * config/linux/affinity.c (gomp_init_affinity): Decrease
11350 gomp_available_cpus if affinity mask confines the process to fewer
11351 CPUs.
11352 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
11353 non-NULL, just return gomp_available_cpus.
11354
5221d7a9
JJ
11355 PR libgomp/43569
11356 * sections.c (gomp_sections_init): Initialize ws->mode.
11357
289a9f86
UB
113582010-04-14 Uros Bizjak <ubizjak@gmail.com>
11359
11360 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
11361 not unused bar variable.
11362 * configure: Regenerate.
11363
4d9e8446
RW
113642010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11365
11366 * Makefile.in: Regenerate.
11367 * aclocal.m4: Regenerate.
11368 * testsuite/Makefile.in: Regenerate.
11369
80f046cc
JJ
113702010-03-22 Jakub Jelinek <jakub@redhat.com>
11371
11372 PR libgomp/42942
11373 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
11374 (initialize_env): Adjust callers.
11375 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
11376 when the argument is 0.
11377
11378 * testsuite/libgomp.c/pr42942.c: New test.
11379
b58543c3
SP
113802010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
11381
11382 PR middle-end/42644
11383 PR middle-end/42130
11384 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
11385 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
11386
41d1138f
RO
113872010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11388
11389 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
11390 * testsuite/libgomp.c++/task-6.C: Likewise.
11391
6684eb28
SE
113922010-01-28 Steve Ellcey <sje@cup.hp.com>
11393
11394 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
11395
2122aa97
PB
113962010-01-26 Paolo Bonzini <bonzini@gnu.org>
11397
11398 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
11399 * configure: Regenerate.
11400
057dd91d
JJ
114012010-01-26 Jakub Jelinek <jakub@redhat.com>
11402
11403 PR fortran/42866
11404 * testsuite/libgomp.fortran/allocatable5.f90: New test.
11405
d0709b6a
PB
114062010-01-20 Paolo Bonzini <bonzini@gnu.org>
11407
11408 * configure.ac: Test for executability of GFORTRAN.
11409 * configure: Regenerate.
11410
b9497ab5
RO
114112010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11412
11413 * configure: Regenerate.
11414
45de5648
L
114152010-01-04 H.J. Lu <hongjiu.lu@intel.com>
11416
11417 PR libgomp/42602
11418 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
11419
e74003a1
RG
114202010-01-03 Richard Guenther <rguenther@suse.de>
11421
11422 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
11423
1b3abda8
SP
114242009-12-23 Sebastian Pop <sebpop@gmail.com>
11425
11426 * testsuite/libgomp.graphite/pr4118.c: New.
11427
e19977d3
IS
114282009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
11429
11430 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
11431 for darwin, protect the test with require-effective-target tls_runtime.
11432 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
11433
1d32a772
IS
114342009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
11435
11436 PR target/41605
11437 * testsuite/lib/libgomp.exp: Provide -B options to allow for
11438 link spec %s substitutions for static libraries.
11439
deb109b2
JH
114402009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
11441
11442 PR testsuite/42135
11443 * libgomp.graphite/force-parallel-2.c: Reduce array size.
11444
43e02a8a
RW
114452009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11446
11447 * Makefile.in: Regenerate.
11448 * configure: Regenerate.
11449 * testsuite/Makefile.in: Regenerate.
11450
17f35e23
DK
114512009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
11452
11453 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
11454 settings for LC_ALL and LANG.
11455
281e33e1
JJ
114562009-11-25 Jakub Jelinek <jakub@redhat.com>
11457
11458 PR fortran/42162
11459 * testsuite/libgomp.fortran/pr42162.f90: New test.
11460
2b32c27d
JJ
114612009-11-13 Jakub Jelinek <jakub@redhat.com>
11462
11463 PR middle-end/42029
281e33e1 11464 * testsuite/libgomp.c/pr42029.c: New test.
2b32c27d 11465
89c74f4a
JJ
114662009-10-26 Jakub Jelinek <jakub@redhat.com>
11467
11468 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
11469 *s. Accept ld version without text in ()s.
11470 * configure: Regenerated.
11471
7e06c3d6
EB
114722009-10-22 Razya Ladelsky <razya@il.ibm.com>
11473
11474 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
11475
0046b1a7
RW
114762009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11477
11478 PR libgomp/41418
11479 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
11480 or a hyphen (happens with fortran language disabled).
11481 * configure: Regenerate.
11482
c82852f7
RW
114832009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11484
11485 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
11486 use sed script portable to Solaris /bin/sed for extracting ld
11487 version.
11488 * configure: Regenerate.
11489
98f3eb1f
AM
114902009-09-17 Alexander Monakov <amonakov@ispras.ru>
11491
11492 * testsuite/libgomp.graphite/bounds.c: New test.
11493
878f62e5
RW
114942009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11495
11496 * Makefile.am (libgomp_la_LINK): New.
11497 * Makefile.in: Regenerate.
11498
df58e648
RW
114992009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11500
11501 * configure.ac (AC_PREREQ): Bump to 2.64.
11502
5213506e
RW
115032009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11504
70fa0efa
RW
11505 * Makefile.am (install-html, install-pdf): Remove.
11506 * Makefile.in: Regenerate.
11507
5213506e
RW
11508 * Makefile.in: Regenerate.
11509 * aclocal.m4: Regenerate.
11510 * config.h.in: Regenerate.
11511 * configure: Regenerate.
11512 * testsuite/Makefile.in: Regenerate.
11513
84fec8a5
RW
115142009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11515
11516 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
11517 * Makefile.in: Regenerate.
11518
197c68cc
DK
115192009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
11520
11521 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
11522 * Makefile.in: Regenerate.
11523
693d54f2
TB
115242009-08-19 Tobias Burnus <burnus@net-b.de>
11525
11526 PR fortran/41102
11527 omp_lib.h.in: Fix -std=f95 errors.
11528
8cac884c
DE
115292009-08-14 David Edelsohn <edelsohn@gnu.org>
11530
11531 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
11532 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
11533 * testsuite/libgomp.graphite/graphite.exp: New.
11534
78729ee2
AT
115352009-08-05 Andreas Tobler <a.tobler@schweiz.org>
11536
11537 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
11538 only build.
11539
b13b7f39
DD
115402009-08-04 David Daney <ddaney@caviumnetworks.com>
11541
11542 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
11543 needed memory barrier semantics.
11544 * config/linux/mips/mutex.h: New file.
11545
1b3b24c2
RW
115462009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11547
11548 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
11549
396b7fa4
JM
115502009-07-16 Joseph Myers <joseph@codesourcery.com>
11551
11552 * configure: Regenerate.
11553
33cde516
RS
115542009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
11555
11556 PR testsuite/40699
11557 PR testsuite/40707
11558 PR testsuite/40709
11559 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
11560 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
11561 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
11562
bc21bfa5
RS
115632009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
11564
11565 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
11566 options when choosing a multilib.
11567
b30bfd40
RS
115682009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
11569
11570 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
11571 ld_library_path. Use add_path. Add just find_libgcc_s to
11572 ld_library_path, not every libgcc multilib directory.
11573 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
11574 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
11575 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
11576 Use add_path.
11577 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
11578
479c15c2
NF
115792009-06-09 Nathan Froyd <froydnj@codesourcery.com>
11580
11581 * Makefile.am (LTLDFLAGS): Define.
11582 (LINK): Define.
11583 * Makefile.in: Regenerate.
11584
667e6f89
JB
115852009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
11586
11587 PR fortran/39718
11588 * testsuite/libgomp.fortran/fortran.exp: Don't link with
11589 libgfortranbegin, check existence of libgfortran.a instead of
11590 libgfortranbegin.a.
11591
6dea8e99
JJ
115922009-05-20 Jakub Jelinek <jakub@redhat.com>
11593
11594 PR libgomp/40174
11595 * team.c (gomp_thread_start): Destroy thr->release semaphore.
11596 (gomp_free_pool_helper): Likewise.
11597
34d01e1d
VL
115982009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
11599 Jakub Jelinek <jakub@redhat.com>
11600
11601 PR fortran/35423
11602 * testsuite/libgomp.fortran/workshare2.f90: New test.
11603
748086b7
JJ
116042009-04-09 Nick Clifton <nickc@redhat.com>
11605
11606 * iter.c: Change copyright header to refer to version 3 of the
11607 GNU General Public License with version 3.1 of the GCC Runtime
11608 Library Exception and to point readers at the COPYING3 and
11609 COPYING3.RUNTIME files and the FSF's license web page.
11610 * alloc.c: Likewise.
11611 * barrier.c: Likewise.
11612 * config/bsd/proc.c: Likewise.
11613 * config/linux/affinity.c: Likewise.
11614 * config/linux/alpha/futex.h: Likewise.
11615 * config/linux/bar.c: Likewise.
11616 * config/linux/bar.h: Likewise.
11617 * config/linux/ia64/futex.h: Likewise.
11618 * config/linux/ia64/mutex.h: Likewise.
11619 * config/linux/lock.c: Likewise.
11620 * config/linux/mips/futex.h: Likewise.
11621 * config/linux/mutex.c: Likewise.
11622 * config/linux/mutex.h: Likewise.
11623 * config/linux/powerpc/futex.h: Likewise.
11624 * config/linux/proc.c: Likewise.
11625 * config/linux/ptrlock.c: Likewise.
11626 * config/linux/ptrlock.h: Likewise.
11627 * config/linux/s390/futex.h: Likewise.
11628 * config/linux/sem.c: Likewise.
11629 * config/linux/sem.h: Likewise.
11630 * config/linux/sparc/futex.h: Likewise.
11631 * config/linux/wait.h: Likewise.
11632 * config/linux/x86/futex.h: Likewise.
11633 * config/mingw32/proc.c: Likewise.
11634 * config/mingw32/time.c: Likewise.
11635 * config/posix/affinity.c: Likewise.
11636 * config/posix/bar.c: Likewise.
11637 * config/posix/bar.h: Likewise.
11638 * config/posix/lock.c: Likewise.
11639 * config/posix/mutex.h: Likewise.
11640 * config/posix/proc.c: Likewise.
11641 * config/posix/ptrlock.h: Likewise.
11642 * config/posix/sem.c: Likewise.
11643 * config/posix/sem.h: Likewise.
11644 * config/posix/time.c: Likewise.
11645 * config/posix95/lock.c: Likewise.
11646 * critical.c: Likewise.
11647 * env.c: Likewise.
11648 * error.c: Likewise.
11649 * fortran.c: Likewise.
11650 * iter_ull.c: Likewise.
11651 * libgomp.h: Likewise.
11652 * libgomp_f.h.in: Likewise.
11653 * libgomp_g.h: Likewise.
11654 * loop.c: Likewise.
11655 * loop_ull.c: Likewise.
11656 * omp.h.in: Likewise.
11657 * omp_lib.f90.in: Likewise.
11658 * omp_lib.h.in: Likewise.
11659 * ordered.c: Likewise.
11660 * parallel.c: Likewise.
11661 * sections.c: Likewise.
11662 * single.c: Likewise.
11663 * task.c: Likewise.
11664 * team.c: Likewise.
11665 * work.c: Likewise.
11666
116672009-04-09 Jakub Jelinek <jakub@redhat.com>
11668
11669 * testsuite/config/default.exp: Change copyright header to refer to
11670 version 3 of the GNU General Public License and to point readers
11671 at the COPYING3 file and the FSF's license web page.
11672
4f0ae266
JJ
116732009-04-08 Jakub Jelinek <jakub@redhat.com>
11674
11675 PR middle-end/39573
11676 * libgomp.c++/pr39573.C: New test.
11677
03742a9b
JJ
116782009-04-01 Jakub Jelinek <jakub@redhat.com>
11679
11680 PR other/39591
11681 * testsuite/libgomp.c/pr39591-1.c: New test.
11682 * testsuite/libgomp.c/pr39591-2.c: New test.
11683 * testsuite/libgomp.c/pr39591-3.c: New test.
11684
e50ea10b
UB
116852009-03-25 Uros Bizjak <ubizjak@gmail.com>
11686
11687 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
11688 * testsuite/libgomp.c/atomic-6.c: Ditto.
11689
c5cdb03f
JJ
116902009-03-23 Jakub Jelinek <jakub@redhat.com>
11691
11692 PR c/39495
11693 * testsuite/libgomp.c/loop-12.c: New test.
11694 * testsuite/libgomp.c/loop-11.c: New test.
11695 * testsuite/libgomp.c++/loop-11.C: New test.
11696 * testsuite/libgomp.c++/loop-12.C: New test.
11697 * testsuite/libgomp.c++/for-8.C: New test.
11698
7a9d3fe8
RW
116992009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11700
11701 * configure: Regenerate.
11702
3ad6b266
JJ
117032009-02-11 Jakub Jelinek <jakub@redhat.com>
11704
11705 PR middle-end/39154
11706 * testsuite/libgomp.c/pr39154.c: New test.
11707
b39dea08
ILT
117082009-01-30 Ian Lance Taylor <iant@google.com>
11709
11710 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
11711 libgomp_ld_is_gold. Get gold version number.
11712 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
11713 * configure: Rebuild.
11714
72c66596
IS
117152009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
11716
e50ea10b 11717 * testsuite/lib/libgomp.exp: Add -B option for targets that
72c66596
IS
11718 use libgfortran.a%s in their specs.
11719
876080ff
JJ
117202009-01-07 Jakub Jelinek <jakub@redhat.com>
11721
11722 PR libgomp/38086
11723 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
11724 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
11725 HAVE_AS_SYMVER_DIRECTIVE is not defined.
11726 * configure: Regenerated.
11727 * config.h.in: Likewise.
11728
e4ebaef3
JJ
117292008-12-28 Jakub Jelinek <jakub@redhat.com>
11730
11731 PR c++/38650
11732 * testsuite/libgomp.c/pr38650.c: New test.
11733 * testsuite/libgomp.c++/pr38650.C: New test.
11734
382017a6
JJ
117352008-12-27 Jakub Jelinek <jakub@redhat.com>
11736
11737 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
11738
79644b27
UB
117392008-12-26 Uros Bizjak <ubizjak@gmail.com>
11740
11741 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
11742
baafc534
RW
117432008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11744
11745 * configure: Regenerate.
11746
d9c194cb
JJ
117472008-12-08 Jakub Jelinek <jakub@redhat.com>
11748
11749 PR middle-end/36802
11750 * testsuite/libgomp.c/pr36802-1.c: New test.
11751 * testsuite/libgomp.c/pr36802-2.c: New test.
11752 * testsuite/libgomp.c/pr36802-3.c: New test.
11753
86a182bf
JJ
117542008-12-01 Janis Johnson <janis187@us.ibm.com>
11755
11756 PR libgomp/38270
11757 * config/linux/powerpc/mutex.h: New.
11758
956adfaf
JJ
117592008-12-01 Jakub Jelinek <jakub@redhat.com>
11760
a2d4cdc9
JJ
11761 PR c++/38257
11762 * testsuite/libgomp.c++/for-7.C: New test.
11763
956adfaf
JJ
11764 PR c++/38348
11765 * testsuite/libgomp.c++/for-6.C: New test.
11766
d4038ca2
JJ
117672008-11-26 Janis Johnson <janis187@us.ibm.com>
11768
11769 PR testsuite/28870
11770 * testsuite/lib/libgomp.exp: Include new timeout library files.
11771 (libgomp_target_compile): Set timeout value from new proc.
11772
8b159eea
SE
117732008-11-13 Steve Ellcey <sje@cup.hp.com>
11774
11775 PR libgomp/37938
11776 * config/linux/ia64/mutex.h: New.
11777
5c6ed53a
TB
117782008-11-04 Tobias Burnus <burnus@net-b.de>
11779
11780 PR libgomp/37935
11781 * libgomp.texi (Runtime library routines, environment variables):
11782 Update for OpenMP version 3.0.
11783
6b4a97ed
PG
117842008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
11785 Steve Ellcey <sje@cup.hp.com>
11786
11787 * configure: Regenerate for new libtool.
11788 * Makefile.in: Ditto.
11789 * testsuite/Makefile.in: Ditto.
11790
e2b34106
JJ
117912008-09-19 Jakub Jelinek <jakub@redhat.com>
11792 Andreas Tobler <a.tobler@schweiz.org>
11793
11794 * config/bsd/proc.c: New file.
8c3b3600 11795 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
e2b34106
JJ
11796 * configure.ac: Check for header <sys/sysctl.h>
11797 * configure: Regenerate.
11798 * config.h.in: Likewise.
11799
3606b8bf
JJ
118002008-09-05 Janis Johnson <janis187@us.ibm.com>
11801
11802 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
11803
6528b88d
AL
118042008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
11805
11806 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
11807 * Makefile.in: Regenerated.
11808 * testsuite/Makefile.in: Regenerated.
11809
d9b14b12 118102008-08-21 Nathan Froyd <froydnj@codesourcery.com>
8c9570df 11811
a16b68bb 11812 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
8c9570df
NF
11813 depend on blddir if blddir exists.
11814 (libgomp_target_compile): Likewise.
11815 * testsuite/libgomp.c++/c++.exp: Likewise.
11816 * testsuite/libgomp.fortran/fortran.exp: Likewise.
11817
70b1e376
RW
118182008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11819
11820 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
11821 Do not list GPL as Invariant Section.
11822
318e8c3f
IG
118232008-07-28 Ilie Garbacea <ilie@mips.com>
11824 Chao-ying Fu <fu@mips.com>
11825
11826 * configure.tgt: Enable futex for MIPS.
11827 * config/linux/mips/futex.h: New file.
11828
4db72361
JJ
118292008-07-16 Jakub Jelinek <jakub@redhat.com>
11830
11831 * team.c (gomp_team_end): Free team immediately if it has
11832 just one thread.
11833
87bd23b8
DE
118342008-07-08 David Edelsohn <edelsohn@gnu.org>
11835
11836 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
11837 * testsuite/libgomp.fortran/fortran.exp: Same.
11838 * testsuite/libgomp.c/c.exp: Same.
11839 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
11840 directory to library path first.
11841
323ff903
KW
118422008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
11843
11844 * env.c (parse_stacksize): Add cast to avoid warning.
11845 (parse_spincount): Likewise.
11846
b357f682
JJ
118472008-06-27 Jakub Jelinek <jakub@redhat.com>
11848
ca2b1311
JJ
11849 * testsuite/libgomp.c/loop-10.c: New test.
11850 * libgomp.c/loop-3.c (main): Add lastprivate clause.
11851 * libgomp.c++/loop-6.C (main): Likewise.
11852
b357f682
JJ
11853 PR debug/36617
11854 * testsuite/libgomp.c/debug-1.c: New test.
11855
09a46078
JJ
118562008-06-19 Jakub Jelinek <jakub@redhat.com>
11857
11858 * testsuite/libgomp.c/nqueens-1.c: New test.
11859
2368a460
JJ
11860 PR c++/36523
11861 * testsuite/libgomp.c++/task-7.C: New function.
11862
18c04407
RW
118632008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11864
11865 * configure: Regenerate.
11866
9c4e59e0
JDA
118672008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11868
11869 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
11870 mutex when HAVE_SYNC_BUILTINS isn't defined.
11871
6ccde948
RW
118722008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11873
11874 * libgomp.texi (omp_test_lock): Fix typo.
11875
b896f9fd
TB
118762008-06-12 Tobias Burnus <burnus@net-b.de>
11877
11878 * omp_lib.f90.in: Add "implicit none".
11879
c34938a8
JJ
118802008-06-12 Jakub Jelinek <jakub@redhat.com>
11881
11882 PR middle-end/36506
11883 * testsuite/libgomp.c/reduction-5.c: New test.
11884
976e44e3
JJ
118852008-06-11 Jakub Jelinek <jakub@redhat.com>
11886
5f836cbb
JJ
11887 * libgomp.h (struct gomp_task): Add in_tied_task field.
11888 * task.c (gomp_init_task): Initialize it.
11889 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
11890 unconditionally. Don't call gomp_team_barrier_wake if
11891 current task is implicit or if(0) from implicit and number of
11892 running tasks is equal to nthreads - 1.
11893
01501fc8
JJ
11894 PR libgomp/36471
11895 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
11896 omp_get_team_size_8): Fix pastos.
11897
976e44e3
JJ
11898 PR libgomp/36469
11899 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
11900 * configure: Regenerated.
11901 * config.h.in: Regenerated.
11902 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
11903 defined.
11904
e919209b
AT
119052008-06-06 Andreas Tobler <a.tobler@schweiz.org>
11906
11907 PR bootstrap/36452
11908 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
11909 (GOMP_loop_ull_dynamic_start): Likewise.
11910 (GOMP_loop_ull_guided_start): Likewise.
11911 (GOMP_loop_ull_ordered_static_start): Likewise.
11912 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
11913 (GOMP_loop_ull_ordered_guided_start): Likewise.
11914
a68ab351
JJ
119152008-06-06 Jakub Jelinek <jakub@redhat.com>
11916 Richard Henderson <rth@redhat.com>
11917 Ulrich Drepper <drepper@redhat.com>
11918 Jakob Blomer <jakob.blomer@ira.uka.de>
11919
11920 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
11921 Substitute also OMP_*LOCK_25*.
11922 * configure: Regenerated.
11923 * config.h.in: Regenerated.
11924 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
11925 ptrlock.c and task.c.
11926 * Makefile.in: Regenerated.
11927 * testsuite/Makefile.in: Regenerated.
11928 * task.c: New file.
11929 * loop_ull.c: New file.
11930 * iter_ull.c: New file.
11931 * libgomp.h: Include ptrlock.h.
11932 (enum gomp_task_kind): New type.
11933 (struct gomp_team): Add task_lock, task_queue, task_count,
11934 task_running_count, single_count fields. Add
11935 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
11936 Remove work_share_lock, generation_mask,
11937 oldest_live_gen, num_live_gen and init_work_shares fields, add
11938 work work_share_list_alloc, work_share_list_free and work_share_chunk
11939 fields. Change work_shares from pointer to pointers into an array.
11940 Change ordered_release field into gomp_sem_t ** from flexible array
11941 member. Add implicit_task and initial_work_shares fields.
11942 Move close to the end of the struct.
11943 (struct gomp_team_state): Add single_count, last_work_share,
11944 active_level and level fields, remove work_share_generation.
11945 (gomp_barrier_handle_tasks): New prototype.
11946 (gomp_finish_task): New inline function.
11947 (struct gomp_work_share): Move chunk_size, end, incr into
11948 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
11949 next_ll fields. Reshuffle fields. Add next_alloc,
11950 next_ws, next_free and inline_ordered_team_ids fields, change
11951 ordered_team_ids into pointer from flexible array member.
11952 Add mode field. Put lock and next into a different cache line
11953 from most of the write-once fields.
11954 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
11955 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
11956 gomp_iter_ull_guided_next): New prototypes.
11957 (gomp_new_icv): New prototype.
11958 (struct gomp_thread): Add thread_pool and task fields.
11959 (struct gomp_thread_pool): New type.
11960 (gomp_new_team): New prototype.
11961 (gomp_team_start): Change type of last argument.
11962 (gomp_new_work_share): Removed.
11963 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
11964 (gomp_work_share_init_done): New static inline.
11965 (gomp_throttled_spin_count_var, gomp_available_cpus,
11966 gomp_managed_threads): New extern decls.
11967 (gomp_init_task): New prototype.
11968 (gomp_spin_count_var): New extern var decl.
11969 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
11970 or no alias support, or if not PIC.
11971 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
11972 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
11973 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
11974 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
11975 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
11976 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
11977 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
11978 gomp_test_nest_lock_25): New prototypes.
11979 (omp_lock_symver, strong_alias): Define.
11980 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
11981 decls.
11982 (gomp_end_task): New.
11983 (struct gomp_task_icv, gomp_global_icv): New.
11984 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
11985 (struct gomp_task): New.
11986 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
11987 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
11988 (gomp_icv): New.
11989 (gomp_schedule_type): Reorder enum to match
11990 omp_sched_t.
11991 * team.c (struct gomp_thread_start_data): Add thread_pool and task
11992 fields.
11993 (gomp_thread_start): Add gomp_team_barrier_wait call.
11994 For non-nested case remove clearing of docked thread thr fields.
11995 Use pool fields instead of global gomp_* variables. Use
11996 gomp_barrier_wait_last when needed. Initialize ts.active_level.
11997 Create tasks for each member thread.
11998 (free_team): Only destroy team barrier, task_lock here and free it.
11999 (gomp_free_thread): Free last_team if non-NULL.
12000 (gomp_team_end): Call gomp_team_barrier_wait instead of
12001 gomp_barrier_wait. For nested case call one extra
12002 gomp_barrier_wait. Move here some destruction from free_team.
12003 Call free_team on pool->last_team if any, rather than freeing
12004 current team. Destroy work_share_list_free_lock ifndef
12005 HAVE_SYNC_BUILTINS.
12006 (gomp_new_icv): New function.
12007 (gomp_threads, gomp_threads_size, gomp_threads_used,
12008 gomp_threads_dock): Removed.
12009 (gomp_thread_destructor): New variable.
12010 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
12011 functions.
12012 (gomp_team_start): Create new pool if current thread doesn't have
3e348fcc 12013 one. Use pool fields instead of global gomp_* variables.
a68ab351
JJ
12014 Initialize thread_pool field for new threads. Clear single_count.
12015 Change last argument from ws to team, don't create
12016 new team, set ts.work_share to &team->work_shares[0] and clear
12017 ts.last_work_share. Don't clear ts.work_share_generation.
12018 If number of threads changed, adjust atomically gomp_managed_threads.
12019 Use gomp_init_task instead of gomp_new_task,
12020 set thr->task to the corresponding implicit_task array entry.
12021 Create tasks for each member thread. Initialize ts.level.
12022 (initialize_team): Call pthread_key_create on
12023 gomp_thread_destructor.
12024 (team_destructor): New function.
12025 (new_team): Removed.
12026 (gomp_new_team): New function.
12027 (free_team): Free gomp_work_share blocks chained through next_alloc,
12028 instead of freeing work_shares and destroying work_share_lock.
12029 (gomp_team_end): Call gomp_fini_work_share. If number of threads
12030 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
12031 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
12032 of gomp_barrier_wait.
12033 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
12034 instead of gomp_barrier_wait. Call gomp_work_share_init_done
12035 if gomp_work_share_start returned true. Don't unlock ws->lock.
12036 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
12037 of gomp_barrier_wait.
12038 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
12039 gomp_work_share_init_done if gomp_work_share_start returned true.
12040 Don't unlock ws->lock.
12041 * work.c: Include stddef.h.
12042 (free_work_share): Use work_share_list_free_lock instead
12043 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
12044 Call gomp_fini_work_share and then either free ws if orphaned, or
12045 put it into work_share_list_free list of the current team.
12046 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
12047 functions.
12048 (gomp_work_share_start, gomp_work_share_end,
12049 gomp_work_share_end_nowait): Rewritten.
12050 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
12051 (openmp_version): Set to 200805.
12052 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
12053 omp_sched_guided, omp_sched_auto): New parameters.
12054 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
12055 omp_set_max_active_levels, omp_get_max_active_levels,
12056 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
12057 omp_get_active_level): New interfaces.
12058 * omp_lib.h.in (openmp_version): Set to 200805.
12059 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
12060 omp_sched_guided, omp_sched_auto): New parameters.
12061 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
12062 omp_set_max_active_levels, omp_get_max_active_levels,
12063 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
12064 omp_get_active_level): New externals.
12065 * loop.c: Include limits.h.
12066 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
12067 GFS_AUTO.
12068 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
12069 Likewise. Use gomp_icv.
12070 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
12071 ts.static_trip here.
12072 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
12073 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
12074 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
12075 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
12076 don't unlock ws->lock, otherwise lock it.
12077 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
12078 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
12079 (gomp_parallel_loop_start): Call gomp_new_team instead of
12080 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
12081 Adjust gomp_team_start caller. Pass 0 as second argument to
12082 gomp_resolve_num_threads.
12083 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
12084 If adding ws->chunk_size nthreads + 1 times after end won't
12085 overflow, set ws->mode to 1.
12086 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
12087 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
12088 GOMP_loop_ull_ordered_static_start,
12089 GOMP_loop_ull_ordered_dynamic_start,
12090 GOMP_loop_ull_ordered_guided_start,
12091 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
12092 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
12093 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
12094 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
12095 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
12096 prototypes.
12097 * libgomp.map: Export lock routines also @@OMP_2.0.
12098 (GOMP_loop_ordered_dynamic_first,
12099 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
12100 GOMP_loop_ordered_static_first): Remove.
12101 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
12102 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
12103 GOMP_loop_ull_ordered_dynamic_next,
12104 GOMP_loop_ull_ordered_dynamic_start,
12105 GOMP_loop_ull_ordered_guided_next,
12106 GOMP_loop_ull_ordered_guided_start,
12107 GOMP_loop_ull_ordered_runtime_next,
12108 GOMP_loop_ull_ordered_runtime_start,
12109 GOMP_loop_ull_ordered_static_next,
12110 GOMP_loop_ull_ordered_static_start,
12111 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
12112 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
12113 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
12114 (omp_set_schedule, omp_get_schedule,
12115 omp_get_thread_limit, omp_set_max_active_levels,
12116 omp_get_max_active_levels, omp_get_level,
12117 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
12118 omp_set_schedule_, omp_set_schedule_8_,
12119 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
12120 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
12121 omp_get_max_active_levels_, omp_get_level_,
12122 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
12123 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
12124 New exports @@OMP_3.0.
12125 * omp.h.in (omp_sched_t): New type.
12126 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
12127 omp_set_max_active_levels, omp_get_max_active_levels,
12128 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
12129 omp_get_active_level): New prototypes.
12130 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
12131 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
12132 gomp_thread_limit_var, gomp_remaining_threads_count,
12133 gomp_remaining_threads_lock): New variables.
12134 (parse_spincount): New function.
12135 (initialize_env): Call gomp_init_num_threads unconditionally.
12136 Initialize gomp_available_cpus. Call parse_spincount,
12137 initialize gomp_{,throttled_}spin_count_var
12138 depending on presence and value of OMP_WAIT_POLICY and
12139 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
12140 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
12141 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
12142 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
12143 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
12144 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
12145 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
12146 (gomp_global_icv): New.
12147 (parse_schedule): Use it. Parse "auto".
12148 (omp_set_num_threads): Use gomp_icv.
12149 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
12150 Likewise.
12151 (omp_get_max_threads): Move from parallel.c.
12152 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
12153 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
12154 add ialias.
12155 (parse_stacksize, parse_wait_policy): New functions.
12156 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
12157 both wrappers for compatibility and new locks.
12158 (omp_set_schedule, omp_get_schedule,
12159 omp_get_thread_limit, omp_set_max_active_levels,
12160 omp_get_max_active_levels, omp_get_level,
12161 omp_get_ancestor_thread_num, omp_get_team_size,
12162 omp_get_active_level): New ialias_redirect.
12163 (omp_set_schedule_, omp_set_schedule_8_,
12164 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
12165 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
12166 omp_get_max_active_levels_, omp_get_level_,
12167 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
12168 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
12169 New functions.
12170 * parallel.c: Include limits.h.
12171 (gomp_resolve_num_threads): Add count argument. Rewritten.
12172 (GOMP_parallel_start): Call gomp_new_team and pass that as last
12173 argument to gomp_team_start. Pass 0 as second argument to
12174 gomp_resolve_num_threads.
12175 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
12176 if gomp_thread_limit_var != ULONG_MAX.
12177 (omp_in_parallel): Implement using ts.active_level.
12178 (omp_get_max_threads): Move to env.c.
12179 (omp_get_level, omp_get_ancestor_thread_num,
12180 omp_get_team_size, omp_get_active_level): New functions,
12181 add ialias.
12182 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
12183 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
12184 gomp_iter_dynamic_next instead of the _locked variant and don't take
12185 lock around it, otherwise acquire it before calling
12186 gomp_iter_dynamic_next_locked.
12187 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
12188 gomp_iter_dynamic_next instead of the _locked variant and don't take
12189 lock around it.
12190 (GOMP_parallel_sections_start): Call gomp_new_team instead of
12191 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
12192 Adjust gomp_team_start caller. Pass count as second argument to
12193 gomp_resolve_num_threads, don't adjust num_threads after the call.
12194 Use gomp_icv.
12195 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
12196 ws->chunk_size by incr.
12197 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
12198 code.
12199 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
12200 types.
12201 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
12202 (omp_check_defines): Check even the compat defines.
12203 * config/linux/ptrlock.c: New file.
12204 * config/linux/ptrlock.h: New file.
12205 * config/linux/wait.h: New file.
12206 * config/posix/ptrlock.c: New file.
12207 * config/posix/ptrlock.h: New file.
12208 * config/linux/bar.h (gomp_team_barrier_wait,
12209 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
12210 (gomp_team_barrier_set_task_pending,
12211 gomp_team_barrier_clear_task_pending,
12212 gomp_team_barrier_set_waiting_for_tasks,
12213 gomp_team_barrier_waiting_for_tasks,
12214 gomp_team_barrier_done): New inlines.
12215 (gomp_barrier_t): Rewritten.
12216 (gomp_barrier_state_t): New typedef.
12217 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
12218 gomp_barrier_wait_start): Rewritten.
12219 (gomp_barrier_wait_end): Change second argument to
12220 gomp_barrier_state_t.
12221 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
12222 inlines.
12223 * config/linux/bar.c: Include wait.h instead of libgomp.h and
12224 futex.h.
12225 (gomp_barrier_wait_end): Rewritten.
12226 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
12227 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
12228 * config/posix/bar.h (gomp_barrier_t): Add generation field.
12229 (gomp_barrier_state_t): New typedef.
12230 (gomp_team_barrier_wait,
12231 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
12232 (gomp_barrier_wait_start): Or all but low 2 bits from generation
12233 into the return value. Return gomp_barrier_state_t.
12234 (gomp_team_barrier_set_task_pending,
12235 gomp_team_barrier_clear_task_pending,
12236 gomp_team_barrier_set_waiting_for_tasks,
12237 gomp_team_barrier_waiting_for_tasks,
12238 gomp_team_barrier_done): New inlines.
12239 (gomp_barrier_wait_end): Change second argument to
12240 gomp_barrier_state_t.
12241 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
12242 inlines.
12243 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
12244 (gomp_barrier_wait_end): Change second argument to
3e348fcc 12245 gomp_barrier_state_t.
a68ab351
JJ
12246 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
12247 gomp_team_barrier_wake): New functions.
12248 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
12249 futex.h.
12250 (gomp_futex_wake, gomp_futex_wait): New variables.
12251 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
12252 * config/linux/lock.c: Rewrite to make locks task owned,
12253 for backwards compatibility provide the old entrypoints
12254 if symbol versioning. Include wait.h instead of libgomp.h and
12255 futex.h.
12256 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
12257 * config/posix95/lock.c: Rewrite to make locks task owned,
12258 for backwards compatibility provide the old entrypoints
12259 if symbol versioning.
12260 * config/posix/lock.c: Rewrite to make locks task owned,
12261 for backwards compatibility provide the old entrypoints
12262 if symbol versioning.
12263 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
12264 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
12265 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
12266 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
12267 (sys_futex0): Return error code.
12268 (futex_wake, futex_wait): If ENOSYS was returned, clear
12269 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
12270 (cpu_relax, atomic_write_barrier): New static inlines.
12271 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
12272 (futex_wake, futex_wait): If ENOSYS was returned, clear
12273 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
12274 (cpu_relax, atomic_write_barrier): New static inlines.
12275 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
12276 (sys_futex0): Return error code.
12277 (futex_wake, futex_wait): If ENOSYS was returned, clear
12278 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
12279 (cpu_relax, atomic_write_barrier): New static inlines.
12280 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
12281 (sys_futex0): Return error code.
12282 (futex_wake, futex_wait): If ENOSYS was returned, clear
12283 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
12284 (cpu_relax, atomic_write_barrier): New static inlines.
12285 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
12286 (sys_futex0): Return error code.
12287 (futex_wake, futex_wait): If ENOSYS was returned, clear
12288 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
12289 (cpu_relax, atomic_write_barrier): New static inlines.
12290 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
12291 (sys_futex0): Return error code.
12292 (futex_wake, futex_wait): If ENOSYS was returned, clear
12293 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
12294 (cpu_relax, atomic_write_barrier): New static inlines.
12295 * config/linux/sem.c: Include wait.h instead of libgomp.h and
12296 futex.h.
12297 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
12298 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
12299 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
12300 types.
12301 (omp_nest_lock_t): Change owner into void *, add lock field.
12302 * config/posix95/omp-lock.h: Include semaphore.h.
12303 (omp_lock_25_t, omp_nest_lock_25_t): New types.
12304 (omp_lock_t): Use sem_t instead of mutex if semaphores
12305 aren't broken.
12306 (omp_nest_lock_t): Likewise. Change owner to void *.
12307 * config/posix/omp-lock.h: Include semaphore.h.
12308 (omp_lock_25_t, omp_nest_lock_25_t): New types.
12309 (omp_lock_t): Use sem_t instead of mutex if semaphores
12310 aren't broken.
12311 (omp_nest_lock_t): Likewise. Add owner field.
12312
123132008-06-06 Jakub Jelinek <jakub@redhat.com>
12314
12315 * testsuite/libgomp.c/collapse-1.c: New test.
12316 * testsuite/libgomp.c/collapse-2.c: New test.
12317 * testsuite/libgomp.c/collapse-3.c: New test.
12318 * testsuite/libgomp.c/icv-1.c: New test.
12319 * testsuite/libgomp.c/icv-2.c: New test.
12320 * testsuite/libgomp.c/lib-2.c: New test.
12321 * testsuite/libgomp.c/lock-1.c: New test.
12322 * testsuite/libgomp.c/lock-2.c: New test.
12323 * testsuite/libgomp.c/lock-3.c: New test.
12324 * testsuite/libgomp.c/loop-4.c: New test.
12325 * testsuite/libgomp.c/loop-5.c: New test.
12326 * testsuite/libgomp.c/loop-6.c: New test.
12327 * testsuite/libgomp.c/loop-7.c: New test.
12328 * testsuite/libgomp.c/loop-8.c: New test.
12329 * testsuite/libgomp.c/loop-9.c: New test.
12330 * testsuite/libgomp.c/nested-3.c: New test.
12331 * testsuite/libgomp.c/nestedfn-6.c: New test.
12332 * testsuite/libgomp.c/sort-1.c: New test.
12333 * testsuite/libgomp.c/task-1.c: New test.
12334 * testsuite/libgomp.c/task-2.c: New test.
12335 * testsuite/libgomp.c/task-3.c: New test.
12336 * testsuite/libgomp.c/task-4.c: New test.
12337 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
12338 to C++ testsuite default compiler options.
12339 * testsuite/libgomp.c++/collapse-1.C: New test.
12340 * testsuite/libgomp.c++/collapse-2.C: New test.
12341 * testsuite/libgomp.c++/ctor-10.C: New test.
12342 * testsuite/libgomp.c++/for-1.C: New test.
12343 * testsuite/libgomp.c++/for-2.C: New test.
12344 * testsuite/libgomp.c++/for-3.C: New test.
12345 * testsuite/libgomp.c++/for-4.C: New test.
12346 * testsuite/libgomp.c++/for-5.C: New test.
12347 * testsuite/libgomp.c++/loop-8.C: New test.
12348 * testsuite/libgomp.c++/loop-9.C: New test.
12349 * testsuite/libgomp.c++/loop-10.C: New test.
12350 * testsuite/libgomp.c++/task-1.C: New test.
12351 * testsuite/libgomp.c++/task-2.C: New test.
12352 * testsuite/libgomp.c++/task-3.C: New test.
12353 * testsuite/libgomp.c++/task-4.C: New test.
12354 * testsuite/libgomp.c++/task-5.C: New test.
12355 * testsuite/libgomp.c++/task-6.C: New test.
12356 * testsuite/libgomp.fortran/allocatable1.f90: New test.
12357 * testsuite/libgomp.fortran/allocatable2.f90: New test.
12358 * testsuite/libgomp.fortran/allocatable3.f90: New test.
12359 * testsuite/libgomp.fortran/allocatable4.f90: New test.
12360 * testsuite/libgomp.fortran/collapse1.f90: New test.
12361 * testsuite/libgomp.fortran/collapse2.f90: New test.
12362 * testsuite/libgomp.fortran/collapse3.f90: New test.
12363 * testsuite/libgomp.fortran/collapse4.f90: New test.
12364 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
12365 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
12366 * testsuite/libgomp.fortran/lib4.f90: New test.
12367 * testsuite/libgomp.fortran/lock-1.f90: New test.
12368 * testsuite/libgomp.fortran/lock-2.f90: New test.
12369 * testsuite/libgomp.fortran/nested1.f90: New test.
12370 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
12371 * testsuite/libgomp.fortran/strassen.f90: New test.
12372 * testsuite/libgomp.fortran/tabs1.f90: New test.
12373 * testsuite/libgomp.fortran/tabs2.f: New test.
12374 * testsuite/libgomp.fortran/task1.f90: New test.
12375 * testsuite/libgomp.fortran/task2.f90: New test.
12376 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
12377 * testsuite/libgomp.fortran/vla5.f90: Likewise.
12378 * testsuite/libgomp.c/pr26943-2.c: Likewise.
12379 * testsuite/libgomp.c/pr26943-3.c: Likewise.
12380 * testsuite/libgomp.c/pr26943-4.c: Likewise.
12381
7a0112e7
JJ
123822008-05-23 Jakub Jelinek <jakub@redhat.com>
12383
12384 PR c++/36308
12385 * testsuite/libgomp.c++/ctor-11.C: New test.
12386 * testsuite/libgomp.c++/ctor-12.C: New test.
12387
91a5b394
JJ
123882008-05-15 Janis Johnson <janis187@us.ibm.com>
12389
12390 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
12391
c18c98c0
JJ
123922008-05-07 Jakub Jelinek <jakub@redhat.com>
12393
12394 PR middle-end/36106
12395 * testsuite/libgomp.c/atomic-5.c: New test.
12396 * testsuite/libgomp.c/atomic-6.c: New test.
12397 * testsuite/libgomp.c/autopar-1.c: New test.
12398
6d26724a
RW
123992008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12400
12401 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
12402 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
12403 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
12404 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
12405 * configure: Regenerate.
12406 * Makefile.in, testsuite/Makefile.in: Likewise.
12407
deb984e6
PB
124082008-04-18 Paolo Bonzini <bonzini@gnu.org>
12409
12410 PR bootstrap/35457
12411 * aclocal.m4: Regenerate.
12412 * configure: Regenerate.
12413
9e775963
JJ
124142008-03-18 Jakub Jelinek <jakub@redhat.com>
12415
8119fc93
JJ
12416 PR middle-end/35611
12417 * testsuite/libgomp.c/atomic-4.c: New test.
12418
9e775963
JJ
12419 PR libgomp/35625
12420 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
12421 (gomp_iter_guided_next): Likewise.
12422 * testsuite/libgomp.c/pr35625.c: New test.
12423
38d24731
RW
124242008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12425
12426 * aclocal.m4: Regenerate.
12427 * configure: Likewise.
12428 * Makefile.in: Likewise.
12429 * testsuite/Makefile.in: Likewise.
12430
d0fb20be
JJ
124312008-03-13 Jakub Jelinek <jakub@redhat.com>
12432
12433 PR middle-end/35185
12434 * testsuite/libgomp.c++/pr35185.C: New test.
12435
7c8f7639
JJ
124362008-03-12 Jakub Jelinek <jakub@redhat.com>
12437
12438 PR middle-end/35549
12439 * testsuite/libgomp.c/pr35549.c: New test.
12440
251923f5
JJ
124412008-03-06 Jakub Jelinek <jakub@redhat.com>
12442
12443 * testsuite/libgomp.c/atomic-3.c: New test.
12444
f489fba1
FXC
124452008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12446
12447 PR fortran/33197
251923f5 12448 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
f489fba1
FXC
12449 .F08 file suffixes.
12450
a1b25e49
PG
124512008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
12452
12453 PR libgomp/33131
12454 * configure.ac: Add ACX_HEADER_STRING.
12455 * env.c: Include strings.h.
12456 * aclocal.m4: Regenerate.
12457 * config.h.in: Regenerate.
12458 * configure: Regenerate.
12459 * Makefile.in: Regenerate.
12460 * testsuite/Makefile.in: Regenerate.
12461
6837b3b8
JJ
124622008-02-15 Jakub Jelinek <jakub@redhat.com>
12463
ac84c062
JJ
12464 PR middle-end/35196
12465 * testsuite/libgomp.c/pr35196.c: New test.
12466
6837b3b8
JJ
12467 PR middle-end/35130
12468 * testsuite/libgomp.fortran/pr35130.f90: New test.
12469 * testsuite/libgomp.c/pr35130.c: New test.
12470
c256730c
JJ
124712008-01-25 Jakub Jelinek <jakub@redhat.com>
12472
12473 PR middle-end/33880
12474 * testsuite/libgomp.c/pr33880.c: New test.
12475 * testsuite/libgomp.fortran/pr33880.f90: New test.
12476
c8e95542 124772008-01-24 David Edelsohn <edelsohn@gnu.org>
d653fdfb
DE
12478
12479 * configure: Regenerate.
12480
0f3e711e
JJ
124812008-01-08 Jakub Jelinek <jakub@redhat.com>
12482
12483 * configure.ac: Move futex checking into ../config/futex.m4.
12484 * configure: Rebuilt.
12485 * aclocal.m4: Rebuilt.
12486 * Makefile.in: Rebuilt.
12487
12488 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
12489 2007-10-15 ../config/tls.m4 change.
12490
5259c813
JJ
124912007-12-19 Jakub Jelinek <jakub@redhat.com>
12492
12493 PR c++/34513
12494 * testsuite/libgomp.c/pr34513.c: New test.
12495 * testsuite/libgomp.c++/pr34513.C: New test.
12496
ae8d8879
JH
124972007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
12498
12499 PR target/32765
12500 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
12501
2b4cf991
JJ
125022007-12-04 Jakub Jelinek <jakub@redhat.com>
12503
12504 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
12505
d2dda7fe
JJ
125062007-12-03 Jakub Jelinek <jakub@redhat.com>
12507
12508 * testsuite/libgomp.c/private-1.c: New test.
12509
d683ec81
PB
125102007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
12511 Paolo Bonzini <bonzini@gnu.org>
12512
12513 * Makefile.am: Use space as vpath separator. Use 'vpath %'
12514 instead of 'VPATH ='.
12515 * Makefile.in: Regenerate.
12516
a7415017
MK
125172007-11-23 Matthias Klose <doko@ubuntu.com>
12518
12519 * configure.ac: Adjust makeinfo version check.
12520 * configure: Regenerate.
12521
78e47463
JJ
125222007-11-10 Jakub Jelinek <jakub@redhat.com>
12523
12524 PR fortran/34020
12525 * testsuite/libgomp.fortran/pr34020.f90: New test.
12526
239371f9
JJ
125272007-11-06 Jakub Jelinek <jakub@redhat.com>
12528
12529 PR c++/33894
12530 * testsuite/libgomp.c++/atomic-1.C: New test.
12531
98a5fa94
JJ
125322007-10-25 Jakub Jelinek <jakub@redhat.com>
12533
12534 PR libgomp/33275
12535 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
12536 Make x and y integers rather than (implicit) reals. Add private (j)
12537 clause to the last omp parallel.
12538
3afcaaf4
MR
125392007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
12540
12541 * configure: Regenerate following changes to ../config/tls.m4.
12542
bd69daef
JJ
125432007-09-28 Jakub Jelinek <jakub@redhat.com>
12544
12545 * testsuite/libgomp.fortran/stack.f90: New test.
12546
1d0bd356
DS
125472007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
12548
12549 * config/mingw32/proc.c: New file.
12550
b3172cab
UB
125512007-09-05 Uros Bizjak <ubizjak@gmail.com>
12552
12553 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
12554 (main): Use __get_cpuid to get i386 target fetaures.
12555 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
12556 (main): Use __get_cpuid to get x86_64 target fetaures.
12557
6da17392
JH
125582007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
12559
12560 PR target/32765
12561 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
12562 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
12563
e1c82219
JJ
125642007-07-12 Jakub Jelinek <jakub@redhat.com>
12565
12566 PR fortran/32550
12567 * testsuite/libgomp.fortran/pr32550.f90: New test.
12568 * testsuite/libgomp.fortran/crayptr2.f90: New test.
12569
12a27363
L
125702007-07-05 H.J. Lu <hongjiu.lu@intel.com>
12571
12572 * aclocal.m4: Regenerated.
12573
5349080d
TB
125742007-07-05 Tobias Burnus <burnus@net-b.de>
12575
12576 PR fortran/32359
12577 * testsuite/libgomp.fortran/pr32359.f90: New.
12578
4f9c450c
JJ
125792007-07-02 Jakub Jelinek <jakub@redhat.com>
12580
12581 PR libgomp/32468
12582 * sections.c (GOMP_parallel_sections_start): Only decrease
12583 number of threads to COUNT if dyn_var is true.
12584 * testsuite/libgomp.c/pr32468.c: New test.
12585
28c67ed7
RO
125862007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12587
12588 PR libgomp/26308
12589 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
12590
64964499
JJ
125912007-06-21 Jakub Jelinek <jakub@redhat.com>
12592
12593 PR middle-end/32362
12594 * testsuite/libgomp.c/pr32362-1.c: New test.
12595 * testsuite/libgomp.c/pr32362-2.c: New test.
12596 * testsuite/libgomp.c/pr32362-3.c: New test.
12597
46d8fbd1
JJ
125982007-06-07 Jakub Jelinek <jakub@redhat.com>
12599
12600 * team.c (gomp_team_start): Fix setting up thread_attr
12601 stack size.
12602
82a6cadf
PB
126032007-06-02 Paolo Bonzini <bonzini@gnu.org>
12604
12605 * configure: Regenerate.
12606
1cf3d07d
SE
126072007-05-23 Steve Ellcey <sje@cup.hp.com>
12608
12609 * Makefile.in: Regenerate.
12610 * configure: Regenerate.
12611 * aclocal.m4: Regenerate.
12612 * testsuite/Makefile.in: Regenerate.
12613
12aac30b
JJ
126142007-05-04 Jakub Jelinek <jakub@redhat.com>
12615
12616 * config/linux/proc.c: New file.
12617
f1028b02
JJ
12618 PR libgomp/28482
12619 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
12620
06785a48
DF
126212007-04-19 Daniel Franke <franke.daniel@gmail.com>
12622
12623 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
12624
b3b08ba0
MK
126252007-04-16 Matthias Klose <doko@debian.org>
12626
12627 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
12628 flags if not building with -m64.
12629 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
12630 flag for i?86-*-* targets, if current target matches -m64.
12631
6b2c5ce0
SE
126322007-04-14 Steve Ellcey <sje@cup.hp.com>
12633
12634 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
12635 * Makefile.in: Regenerate.
12636
dd56fe7c
JDA
126372007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12638
12639 PR testsuite/31369
12640 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
12641 ld_library_path.
12642 * testsuite/libgomp.fortran/fortran.exp: Likewise.
12643
a0884cf0
JJ
126442007-04-04 Jakub Jelinek <jakub@redhat.com>
12645
12646 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
12647 decls.
12648 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
12649 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
12650 (parse_affinity): New function.
12651 (initialize_env): Call it and gomp_init_affinity.
12652 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
12653 create new pthread_attr_t and call gomp_init_thread_affinity
12654 on it for each thread before passing the attribute to pthread_create.
12655 * config/linux/affinity.c: New file.
12656 * config/posix/affinity.c: New file.
12657 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
12658 * configure: Rebuilt.
12659 * config.h.in: Rebuilt.
12660 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
12661 * Makefile.in: Rebuilt.
12662
1850744b
AT
126632007-03-23 Andreas Tobler <a.tobler@schweiz.org>
12664
12665 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
12666 *-*-darwin*.
12667 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
12668 and use it if found.
12669
516f1ed8
UB
126702007-03-18 Uros Bizjak <ubizjak@gmail.com>
12671
12672 * testsuite/config/default.exp: New file.
12673 * testsuite/lib/libgomp.exp: New file.
12674 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
12675 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
12676 load_lib *, load_gcc_lib *): Move to libgomp.exp.
12677 (libgomp_load): Remove.
12678 * testsuite/lib/libgomp.exp (libgomp_init): Compute
12679 always_ld_library_path, not ld_library_path. Set additional_flags
12680 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
12681 (target_compile): Do not call libgomp_init. Append lang_library_path
12682 and lang_link_flags to options.
12683 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
12684 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
12685 here.
12686 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
12687 always_ld_library_path. Set LD_LIBRARY_PATH here.
12688 * testsuite/libgomp.fortran/fortran.exp: Ditto.
12689 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
12690 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
12691 CX8 flag.
12692 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
12693 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
12694 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
12695 * testsuite/libgomp.c/pr29947-1.c: Ditto.
12696 * testsuite/libgomp.c/atomic-10.c: Ditto.
12697
2ada56f5
JJ
126982007-03-21 Jakub Jelinek <jakub@redhat.com>
12699
12700 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
12701 dg-final cleanup-modules line.
12702 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
12703 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
12704 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
12705 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
12706 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
12707 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
12708 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
12709
f210f1cd
AS
127102007-03-18 Andreas Schwab <schwab@suse.de>
12711
12712 * acinclude.m4: Adjust regular expression for ld version
12713 extraction.
12714 * configure: Regenerate.
12715
c4dc950d
BM
127162007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
12717
12718 * Makefile.am: Add install-pdf target as copied from
12719 automake v1.10 rules.
12720 * Makefile.in: Regenerate
12721
e02a048f
JJ
127222007-02-07 Jakub Jelinek <jakub@redhat.com>
12723
78e075d4
JJ
12724 PR libgomp/28486
12725 * configure: Regenerate.
12726
e02a048f
JJ
12727 PR c++/30703
12728 * testsuite/libgomp.c++/pr30703.C: New test.
12729
60def7ed
JJ
127302007-02-02 Jakub Jelinek <jakub@redhat.com>
12731
12732 Revert:
12733 2006-07-05 Eric Christopher <echristo@apple.com>
12734 * configure.ac: Depend addition of -pthread on host OS.
12735 * configure: Regenerate.
12736
f1b0882e
RW
127372007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12738
12739 * libgomp.texi: Fix spacing after abbreviations.
12740
748b9d7c
DF
127412007-01-31 Daniel Franke <franke.daniel@gmail.com>
12742
12743 PR libgomp/30546
12744 * configure.ac: Add check for makeinfo
12745 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
a0221aee 12746 if an appropriate version of makeinfo is found.
748b9d7c
DF
12747 * aclocal.m4: Regenerated.
12748 * configure: Regenerated.
12749 * Makefile.in: Regenerated.
12750 * testsuite/Makefile.in: Regenerated.
12751
14734fc7
DF
127522007-01-29 Daniel Franke <franke.daniel@gmail.com>
12753
12754 PR libgomp/30540
12755 * libgomp.texi: More about implementation-dependent settings.
12756
7befd5d2
TB
127572007-01-26 Tobias Burnus <burnus@net-b.de>
12758
12759 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
12760
4288fea2
JJ
127612007-01-24 Jakub Jelinek <jakub@redhat.com>
12762
12763 PR middle-end/30494
12764 * testsuite/libgomp.c/pr30494.c: New test.
12765
627ab4b8
TT
127662007-01-15 Tom Tromey <tromey@redhat.com>
12767
12768 * configure: Rebuilt.
12769 * configure.ac: Fixed comment.
12770
7c2b7f45
DF
127712007-01-14 Daniel Franke <franke.daniel@gmail.com>
12772
12773 * libgomp.texi: Document implementation specific default values of
12774 environment variables.
12775
3721b9e1
DF
127762006-12-21 Daniel Franke <franke.daniel@gmail.com>
12777
12778 PR libgomp/28209
12779 * libgomp.texi: New file.
12780 * configure.ac: Add --enable-generated-files-in-srcdir option.
12781 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
12782 files to srcdir.
12783 * Makefile.in: Regenerated.
12784 * config.h.in: Regenerated.
12785 * testsuite/Makefile.in: Regenerated.
12786 * NOTES: Removed.
12787
62bd6216
DF
127882006-12-04 Daniel Franke <franke.daniel@gmail.com>
12789
12790 PR libgomp/29949
12791 * env.c (omp_set_num_threads): Set illegal thread count to 1.
12792
aad741f4
EB
127932006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
12794
12795 * configure: Regenerate.
12796
22568cc6
JJ
127972006-12-04 Jakub Jelinek <jakub@redhat.com>
12798
12799 PR libgomp/29947
12800 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
12801 start if there shouldn't be any loop iterations.
12802 (gomp_loop_ordered_static_start): Remove start == end test.
12803 * testsuite/libgomp.c/pr29947-1.c: New test.
12804 * testsuite/libgomp.c/pr29947-2.c: New test.
12805
a9690009
EB
128062006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
12807
12808 * configure.tgt: Force initial-exec TLS model on Linux only.
12809
597c25e6
DJ
128102006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
12811
12812 * configure: Regenerated.
12813
6acf0b38
UB
128142006-11-09 Uros Bizjak <ubizjak@gmail.com>
12815
12816 * env.c (parse_schedule): Reject out of range values.
12817 (parse_unsigned_long): Reject out of range, negative or zero values.
12818
a7a53ca5
JJ
128192006-10-29 Jakub Jelinek <jakub@redhat.com>
12820
12821 PR fortran/29629
12822 * testsuite/libgomp.fortran/pr29629.f90: New test.
12823
6d4d216a
EB
128242006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
12825
12826 PR libgomp/29494
12827 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
12828 * config/posix95: New directory.
12829 * config/posix95/omp-lock.h: New file.
12830 * config/posix95/lock.c: Likewise.
12831
5b043f08
GK
128322006-10-14 Geoffrey Keating <geoffk@apple.com>
12833
12834 * aclocal.m4: Regenerate.
12835 * configure: Regenerate.
12836
b50019f0
DS
128372006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
12838
12839 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
12840 '<' to '<='.
12841
8887708e
DS
128422006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
12843
12844 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
12845 test.
12846 * configure: Regenerate.
12847 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
12848
9b9e4cd6
JJ
128492006-09-26 Jakub Jelinek <jakub@redhat.com>
12850
a70ad3bb
JJ
12851 PR middle-end/25261
12852 PR middle-end/28790
12853 * testsuite/libgomp.c/nestedfn-4.c: New test.
12854 * testsuite/libgomp.c/nestedfn-5.c: New test.
12855 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
12856
9b9e4cd6
JJ
12857 PR fortran/29097
12858 * testsuite/libgomp.fortran/condinc1.f: New test.
12859 * testsuite/libgomp.fortran/condinc2.f: New test.
12860 * testsuite/libgomp.fortran/condinc3.f90: New test.
12861 * testsuite/libgomp.fortran/condinc4.f90: New test.
12862 * testsuite/libgomp.fortran/condinc1.inc: New file.
12863
2fb31455
TT
128642006-09-18 Tom Tromey <tromey@redhat.com>
12865
12866 * configure: Rebuilt.
12867
c663e301
JM
128682006-09-13 Joseph S. Myers <joseph@codesourcery.com>
12869
12870 PR c/28768
12871 PR preprocessor/14634
12872 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
12873 to AC_DEFINE.
12874 * configure: Regenerate.
12875
38371be9
SK
128762006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
12877
12878 * testsuite/libgomp.fortran/reduction3.f90: Change
12879 -2147483648 to -huge(i)-1 to avoid overflow.
12880 * testsuite/libgomp.fortran/reduction4.f90: Change
12881 Z'ffffffff' to not(0) to avoid overflow.
12882
571d5ac5
JM
128832006-08-26 Joseph S. Myers <joseph@codesourcery.com>
12884
12885 PR libgomp/25938
12886 * Makefile.am (libsubincludedir): New.
12887 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
12888 * Makefile.in: Regenerate.
12889
89b3e3cd
JJ
128902006-08-17 Jakub Jelinek <jakub@redhat.com>
12891
12892 PR libgomp/28725
12893 * env.c: Include ctype.h.
12894 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
12895 leading and/or trailing whitespace and compare strings case
12896 insensitively.
12897
742fae05
JJ
128982006-07-16 Jakub Jelinek <jakub@redhat.com>
12899
12900 PR fortran/28390
12901 * testsuite/libgomp.fortran/pr28390.f: New test.
12902
a1daed2d
EC
129032006-07-05 Eric Christopher <echristo@apple.com>
12904
12905 * configure.ac: Depend addition of -pthread on host OS.
12906 * configure: Regenerate.
12907
5d7b5199
JJ
129082006-06-21 Jakub Jelinek <jakub@redhat.com>
12909
12910 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
12911 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
12912 defined.
12913
fe5568e9
JJ
129142006-06-20 Jakub Jelinek <jakub@redhat.com>
12915
12916 PR libgomp/26175
12917 PR libgomp/26477
12918 * configure.ac: If neither --enable-linux-futex nor
12919 --disable-linux-futex is passed, determine the default by checking
12920 for compiling and/or running against NPTL. With --enable-linux-futex,
12921 check if SYS_gettid and SYS_futex are defined.
12922 * configure: Rebuilt.
12923
c3b11a40
RH
129242006-06-14 Richard Henderson <rth@redhat.com>
12925
12926 PR libgomp/28008
12927 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
12928 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
12929
d0d1b24d
RH
129302006-06-09 Richard Henderson <rth@redhat.com>
12931
12932 * env.c (gomp_nthreads_var): Change to unsigned long.
12933 (gomp_run_sched_chunk): Likewise.
12934 (parse_unsigned_long): Rename from parse_num_threads and generalize.
12935 (initialize_env): Initialize gomp_thread_attr.
12936 * libgomp.h (gomp_nthreads_var): Update decl.
12937 (gomp_run_sched_chunk): Likewise.
12938 (gomp_thread_attr): Declare.
12939 * team.c (gomp_thread_attr): Export.
12940 (initialize_team): Don't initialize it.
12941
cd75853e
JJ
129422006-06-09 Jakub Jelinek <jakub@redhat.com>
12943
12944 PR fortran/27916
12945 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
12946 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
12947
33815e0c
FXC
129482006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
12949
12950 * config/mingw32/time.c: New file.
12951 * configure.tgt: Use it.
12952
6667de0d
CD
129532006-05-23 Carlos O'Donell <carlos@codesourcery.com>
12954
12955 * Makefile.am: Add install-html target. Add install-html to .PHONY
12956 * Makefile.in: Regenerate.
12957
e962c46b
JDA
129582006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12959
12960 PR libgomp/27612
12961 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
12962 * testsuite/libgomp.c/critical-1.c: Likewise.
12963 * testsuite/libgomp.c/loop-1.c: Likewise.
12964 * testsuite/libgomp.c/loop-2.c: Likewise.
12965 * testsuite/libgomp.c/single-1.c: Likewise.
12966 * testsuite/libgomp.c/ordered-1.c: Likewise.
12967 * testsuite/libgomp.c/ordered-2.c: Likewise.
12968
eeb1d9e0
JJ
129692006-05-15 Jakub Jelinek <jakub@redhat.com>
12970
12971 PR middle-end/27416
12972 * libgomp.fortran/pr27416-1.f90: New test.
12973
693d710f
JJ
129742006-05-03 Jakub Jelinek <jakub@redhat.com>
12975
12976 PR fortran/27395
12977 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
12978 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
12979
8ca5b2a2
JJ
129802006-05-02 Jakub Jelinek <jakub@redhat.com>
12981
12982 PR c++/26943
12983 * testsuite/libgomp.c/pr26943-1.c: New test.
12984 * testsuite/libgomp.c/pr26943-2.c: New test.
12985 * testsuite/libgomp.c/pr26943-3.c: New test.
12986 * testsuite/libgomp.c/pr26943-4.c: New test.
12987 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
12988 * testsuite/libgomp.c++/pr26943.C: New test.
12989
077b0dfb
JJ
129902006-05-02 Jakub Jelinek <jakub@redhat.com>
12991
12992 PR middle-end/27337
12993 * testsuite/libgomp.c++/pr27337.C: New test.
12994
91b6c26d
JJ
129952006-04-26 Jakub Jelinek <jakub@redhat.com>
12996
12997 PR c/26171
12998 * testsuite/libgomp.c/pr26171.c: New test.
12999
60e1758f
RH
130002006-04-25 Richard Henderson <rth@redhat.com>
13001
13002 PR libgomp/25865
13003 * configure.ac: Use GCC_CHECK_TLS.
13004 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
13005 * Makefile.in, aclocal.m4, configure: Regenerate.
13006
615baed7
MK
130072006-04-10 Matthias Klose <doko@debian.org>
13008
13009 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
13010 directory names containing underscores.
13011
fae2b46b
JJ
130122006-03-21 Jakub Jelinek <jakub@redhat.com>
13013
13014 PR c++/26691
13015 * testsuite/libgomp.c++/pr26691.C: New test.
13016
11a5f608
JJ
130172006-03-13 Jakub Jelinek <jakub@redhat.com>
13018
13019 * testsuite/libgomp.fortran/retval2.f90: New test.
13020
1799e5d5
RH
130212006-03-09 Diego Novillo <dnovillo@redhat.com>
13022
13023 * testsuite/libgomp.c++: New directory.
13024
d349482e
AT
130252006-02-25 Shantonu Sen <ssen@opendarwin.org>
13026
13027 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
13028 * config/posix/sem.c: Implement the above.
13029
130302006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
13031
13032 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
13033 define HAVE_BROKEN_POSIX_SEMAPHORES.
13034 * configure: Rebuilt.
13035 * config.h.in: Rebuilt.
13036
124452c9
FXC
130372006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
13038
13039 PR bootstrap/26161
13040 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
13041 for the other pthread check.
13042 * configure: Regenerate.
13043 * config.h.in: Regenerate.
13044
dd8d6dfe
JJ
130452006-02-15 Jakub Jelinek <jakub@redhat.com>
13046
13047 PR libgomp/25938
13048 PR libgomp/25984
13049 * Makefile.am (fincludedir): New variable.
13050 (nodist_include_HEADERS): Remove Fortran files.
13051 (nodist_finclude_HEADERS): New variable.
13052 * Makefile.in: Regenerated.
13053
6c7a4dfd
JJ
130542006-02-13 Jakub Jelinek <jakub@redhat.com>
13055
13056 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
13057 Remove tests for returning assumed character length arrays.
13058
5142e08b
RS
130592006-02-12 Roger Sayle <roger@eyesopen.com>
13060 John David Anglin <dave@hiauly1.hia.nrc.ca>
13061
13062 PR libgomp/25936
13063 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
a1daed2d 13064
5821fba8
UW
130652006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
13066
13067 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
13068
cb2bbc67
EB
130692006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
13070
13071 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
13072 part of LD_LIBRARY_PATH manually.
13073
f05ee80c
L
130742006-02-03 H.J. Lu <hongjiu.lu@intel.com>
13075
13076 PR libgomp/25852
13077 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
13078 libgomp_init.
13079
03b8fe49
PB
130802005-01-25 Paolo Bonzini <bonzini@gnu.org>
13081
13082 PR libgomp/25884
f05ee80c
L
13083 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
13084 * configure.ac (PERL): Don't set.
13085 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
13086 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
13087 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
13088 * omp.h.in: Wrap the new configure substitutions with @ characters.
13089 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
13090 * aclocal.m4, configure, Makefile.in: Regenerate.
13091 * mkomp_h.pl: Delete.
03b8fe49 13092
18cbfd85
PB
130932005-01-24 Paolo Bonzini <bonzini@gnu.org>
13094
13095 PR libgomp/25259
13096 * configure.ac: Use GCC_HEADER_STDINT.
13097 * libgomp.h: Include gstdint.h.
13098 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
13099 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
13100
c41303c6
RH
131012006-01-24 Richard Henderson <rth@redhat.com>
13102
13103 PR libgomp/25942
13104 * configure.ac: Add AM_MAINTAINER_MODE.
13105 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
13106
149b9553
DN
131072006-01-24 Diego Novillo <dnovillo@redhat.com>
13108
13109 * Makefile.in: Regenerate.
13110 * testsuite/Makefile.in: Regenerate.
13111 * aclocal.m4: Regenerate.
13112
192a50ad
AT
131132006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
13114
13115 * config/posix/proc.c: Conditional include of sys/loadavg.h for
13116 Solaris.
13117 * configure.ac: Add check for loadavg.h.
13118 (link_gomp): Adjust comment.
13119 * configure: Regenerate.
13120 * config.h.in: Regenerate.
13121
a55b8e18
SE
131222006-01-21 Steve Ellcey <sje@cup.hp.com>
13123
13124 PR libgomp/25877
13125 * configure.ac: Remove check for alloca.h.
13126 * configure: Regenerate.
13127 * config.h.in: Regenerate.
13128 * libgomp.h: define gomp_alloca to be __builtin_alloca.
13129 * team.c: Remove use of alloca.h.
13130 Call gomp_alloca instead of alloca.
13131
692eeb34
SE
131322006-01-20 Steve Ellcey <sje@cup.hp.com>
13133
13134 PR libgomp/25877
13135 * team.c: Add include of alloca.h.
13136 * configure.ac: Add check for alloca.h.
13137 * configure: Regenerate.
13138 * config.h.in: Regenerate.
13139
953ff289
DN
131402006-01-17 Jakub Jelinek <jakub@redhat.com>
13141
13142 PR fortran/25219
13143 * testsuite/libgomp.fortran/pr25219.f90: New test.
13144
131452005-12-05 Uros Bizjak <uros@kss-loka.si>
13146
13147 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
13148 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
13149 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
13150 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
13151 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
13152 testsuite/libgomp.fortran/threadprivate1.f90,
13153 testsuite/libgomp.fortran/threadprivate2.f90,
13154 testsuite/libgomp.fortran/threadprivate3.f90,
13155 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
13156 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
13157 testsuite/libgomp.fortran/omp_parse3.f90: Change required
13158 effective-target to TLS runtime.
13159
13160 * testsuite/libgomp.fortran/pr25162.f: Require
13161 effective-target TLS runtime.
13162
131632005-12-01 Jakub Jelinek <jakub@redhat.com>
13164
13165 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
13166 * testsuite/libgomp.c/nestedfn-3.c: New test.
13167
131682005-11-30 Jakub Jelinek <jakub@redhat.com>
13169
13170 PR fortran/25162
13171 * testsuite/libgomp.fortran/pr25162.f: New test.
13172
131732005-11-28 Jakub Jelinek <jakub@redhat.com>
13174
13175 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
13176 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
13177
131782005-11-25 Jakub Jelinek <jakub@redhat.com>
13179
13180 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
13181 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
13182 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
13183 single.c, team.c, work.c, config/linux/alpha/futex.h,
13184 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
13185 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
13186 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
13187 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
13188 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
13189 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
13190 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
13191 FSF address.
13192
131932005-11-18 Jakub Jelinek <jakub@redhat.com>
13194
13195 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
13196 to nodist_noinst_HEADERS.
13197 * Makefile.in: Rebuilt.
13198
13199 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
13200 add integer count field.
13201 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
13202 omp_nest_lock_t type change.
13203 (omp_init_nest_lock): Likewise. Initialize count to 0.
13204 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
13205 Increment count.
13206 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
13207 Decrement count.
13208 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
13209 Increment count if successful and return the new nesting level.
13210 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
13211 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
13212 * testsuite/libgomp.c/lib-1.c: New test.
13213 * testsuite/libgomp.fortran/lib1.f90: New test.
13214 * testsuite/libgomp.fortran/lib2.f: New test.
13215 * testsuite/libgomp.fortran/lib3.f: New test.
13216
132172005-11-17 Richard Henderson <rth@redhat.com>
13218
13219 PR 24845
13220 * Makefile.am (nodist_toolexeclib_HEADERS): New.
13221 * configure.ac (link_gomp): New. Substitute it.
13222 (AC_CONFIG_FILES): Add libgomp.spec.
13223 * libgomp.spec.in: New file.
13224 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
13225 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
13226
132272005-11-18 Jakub Jelinek <jakub@redhat.com>
13228
13229 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
13230 reduction(-:var) behaving the same as reduction(+:var).
13231 * testsuite/libgomp.c/reduction-4.c: New test.
13232
132332005-11-15 Uros Bizjak <uros@kss-loka.si>
13234
13235 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
13236 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
13237 testsuite/libgomp.c/copyin-3.c,
13238 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
13239 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
13240 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
13241 testsuite/libgomp.c++/pr24455.C,
13242 testsuite/libgomp.fortran/threadprivate1.f90,
13243 testsuite/libgomp.fortran/threadprivate2.f90,
13244 testsuite/libgomp.fortran/threadprivate3.f90,
13245 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
13246 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
13247 testsuite/libgomp.fortran/omp_parse3.f90: Require
13248 effective-target TLS.
13249
132502005-11-14 Diego Novillo <dnovillo@redhat.com>
13251
13252 * HEADER: Remove.
13253
132542005-11-13 Jakub Jelinek <jakub@redhat.com>
13255
13256 PR libgomp/24797
13257 * team.c (initialize_team): Pass NULL rather than free as
13258 pthread_key_create destructor. Initialize thread specific data
13259 pointer in initial thread to a static local variable rather than
13260 malloced memory.
13261
132622005-11-11 Uros Bizjak <uros@kss-loka.si>
13263
13264 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
13265 its location to ld_library_path.
13266
132672005-11-10 Diego Novillo <dnovillo@redhat.com>
13268
13269 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
13270
132712005-11-10 Diego Novillo <dnovillo@redhat.com>
13272
13273 * testsuite/libgomp.c: Rename from libgomp.dg.
13274
132752005-11-09 Diego Novillo <dnovillo@redhat.com>
13276
13277 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
13278 threadprivate variable 'i'.
13279
132802005-11-09 Jakub Jelinek <jakub@redhat.com>
13281
13282 * config/linux/s390/futex.h: New file.
13283 * configure.tgt: Use it.
13284
13285 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
13286 before the parallel.
13287
132882005-11-08 Jakub Jelinek <jakub@redhat.com>
13289
13290 PR c++/24734
13291 * testsuite/libgomp.c++/master-1.C: New test.
13292
132932005-11-07 Jakub Jelinek <jakub@redhat.com>
13294
13295 * testsuite/libgomp.dg/copyin-3.c: New test.
13296
132972005-11-07 Jakub Jelinek <jakub@redhat.com>
13298
13299 * testsuite/libgomp.fortran/retval1.f90: New test.
13300 * testsuite/libgomp.fortran/vla7.f90: New test.
13301
133022005-11-06 Jakub Jelinek <jakub@redhat.com>
13303
13304 * testsuite/libgomp.fortran/vla2.f90: New test.
13305 * testsuite/libgomp.fortran/vla3.f90: New test.
13306 * testsuite/libgomp.fortran/vla4.f90: New test.
13307 * testsuite/libgomp.fortran/vla5.f90: New test.
13308 * testsuite/libgomp.fortran/vla6.f90: New test.
13309
133102005-11-01 Jakub Jelinek <jakub@redhat.com>
13311
13312 * config/linux/sparc/futex.h: New file.
13313 * configure.tgt: Use it.
13314 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
13315
13316 * critical.c: Include stdlib.h.
13317 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
13318 ignoring return value.
13319 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
13320 LIBGOMP_CHECK_SYNC_BUILTINS check.
13321 * configure: Rebuilt.
13322
133232005-10-31 Jakub Jelinek <jakub@redhat.com>
13324
13325 * testsuite/libgomp.fortran/vla1.f90: New test.
13326
133272005-10-31 Richard Henderson <rth@redhat.com>
13328
13329 * testsuite/libgomp.fortran/character2.f90: Fix race condition
13330 setting 's' in different threads.
13331
133322005-10-31 Jakub Jelinek <jakub@redhat.com>
13333
13334 * libgomp.h (attribute_hidden, ialias): Define.
13335 * config/posix/proc.c (omp_get_num_procs): Add ialias.
13336 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
13337 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
13338 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
13339 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
13340 omp_test_lock, omp_test_nest_lock): Likewise.
13341 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
13342 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
13343 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
13344 omp_test_lock, omp_test_nest_lock): Likewise.
13345 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
13346 omp_get_dynamic, omp_get_nested): Likewise.
13347 * parallel.c (omp_get_num_threads, omp_get_max_threads,
13348 omp_get_thread_num, omp_in_parallel): Likewise.
13349 * fortran.c (ialias_redirect): Define.
13350 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
13351 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
13352 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
13353 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
13354 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
13355 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
13356 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
13357 omp_get_wtime): Add ialias_redirect.
13358
133592005-10-30 Jakub Jelinek <jakub@redhat.com>
13360
13361 * fortran.c: Include stdlib.h.
13362
133632005-10-29 Jakub Jelinek <jakub@redhat.com>
13364
13365 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
13366 * Makefile.in: Regenerated.
13367
133682005-10-28 Jakub Jelinek <jakub@redhat.com>
13369
13370 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
13371 * libgomp_f.h.in (omp_check_defines): New function.
13372 * env.c: Include libgomp_f.h.
13373 (initialize_env): Call omp_check_defines.
13374
13375 * testsuite/libgomp.dg/copyin-2.c: New test.
13376 * testsuite/libgomp.c++/copyin-2.C: New test.
13377 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
13378
13379 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
13380 * testsuite/libgomp.fortran/sharing2.f90: New test.
13381
13382 * testsuite/libgomp.dg/copyin-1.c: New test.
13383 * testsuite/libgomp.c++/copyin-1.C: New test.
13384
133852005-10-26 Jakub Jelinek <jakub@redhat.com>
13386
13387 * testsuite/libgomp.fortran/crayptr1.f90: New test.
13388
13389 * testsuite/libgomp.fortran/workshare1.f90: New test.
13390
13391 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
13392 only test.
13393 * libgomp.fortran/sharing1.f90: New test.
13394
133952005-10-24 Jakub Jelinek <jakub@redhat.com>
13396
13397 PR c++/24502
13398 * testsuite/libgomp.c++/loop-7.C: New test.
13399
13400 * testsuite/libgomp.dg/nestedfn-2.c: New test.
13401
13402 * testsuite/libgomp.dg/nestedfn-1.c: New test.
13403 * testsuite/libgomp.fortran/reduction6.f90: New test.
13404 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
13405
134062005-10-23 Richard Henderson <rth@redhat.com>
13407
13408 * testsuite/libgomp.c++/ctor-1.C: New.
13409 * testsuite/libgomp.c++/ctor-2.C: New.
13410 * testsuite/libgomp.c++/ctor-3.C: New.
13411 * testsuite/libgomp.c++/ctor-4.C: New.
13412 * testsuite/libgomp.c++/ctor-5.C: New.
13413 * testsuite/libgomp.c++/ctor-6.C: New.
13414 * testsuite/libgomp.c++/ctor-7.C: New.
13415 * testsuite/libgomp.c++/ctor-8.C: New.
13416 * testsuite/libgomp.c++/ctor-9.C: New.
13417
134182005-10-21 Diego Novillo <dnovillo@redhat.com>
13419
13420 PR 24455
13421 * testsuite/libgomp.c++/pr24455-1.C: New test.
13422 * testsuite/libgomp.c++/pr24455.C: New test.
13423 * testsuite/libgomp.dg/pr24455-1.c: New test.
13424 * testsuite/libgomp.dg/pr24455.c: New test.
13425
134262005-10-20 Richard Henderson <rth@redhat.com>
13427
13428 * testsuite/libgomp.c++/loop-6.C: New.
13429 * testsuite/libgomp.dg/loop-3.c: New.
13430
134312005-10-20 Jakub Jelinek <jakub@redhat.com>
13432
13433 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
13434 explicitly private.
13435 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
13436 explicitly shared.
13437
134382005-10-19 Diego Novillo <dnovillo@redhat.com>
13439
13440 * testsuite/libgomp.fortran/jacobi.f: New test.
13441
134422005-10-19 Richard Henderson <rth@redhat.com>
13443
13444 * configure.tgt (i?86-linux): Default to with_arch instead of
13445 CFLAGS. Add -mtune to match target_cpu.
13446 (x86_64-linux): Tune to i686.
13447
13448 * fortran.c (omp_test_nest_lock_): Fix typo.
13449
134502005-10-19 Jakub Jelinek <jakub@redhat.com>
13451
13452 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
13453 gomp_ordered_sync): Do nothing if team->nthreads == 1.
13454 * testsuite/libgomp.dg/ordered-3.c: New test.
13455
13456 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
13457 Remove volatile keyword.
13458
13459 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
13460 in COMMON block to avoid warnings on 64-bit targets.
13461
134622005-10-18 Diego Novillo <dnovillo@redhat.com>
13463
13464 * testsuite/libgomp.dg/shared-3.c: New test.
13465
134662005-10-18 Jakub Jelinek <jakub@redhat.com>
13467
13468 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
13469 * testsuite/libgomp.fortran/reduction5.f90: New test.
13470
134712005-10-18 Jakub Jelinek <jakub@redhat.com>
13472
13473 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
13474 dg-options.
13475 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
13476 flush loop now that __sync_synchronize has proper memory barrier.
13477 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
13478 Add -ffixed-form to dg-options.
13479
134802005-10-17 Diego Novillo <dnovillo@redhat.com>
13481
13482 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
13483 from subdirectories.
13484 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
13485 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
13486 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
13487 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
13488 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
13489 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
13490 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
13491 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
13492 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
13493 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
13494 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
13495 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
13496 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
13497 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
13498 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
13499 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
13500 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
13501 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
13502 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
13503 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
13504 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
13505 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
13506 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
13507 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
13508 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
13509
135102005-10-17 Jakub Jelinek <jakub@redhat.com>
13511
13512 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
13513 lang_library_path exists. Use find instead of glob to gather tests.
13514 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
13515
135162005-10-17 Diego Novillo <dnovillo@redhat.com>
13517
13518 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
13519 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
13520 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
13521 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
13522 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
13523 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
13524 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
13525 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
13526 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
13527 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
13528 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
13529 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
13530 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
13531
135322005-10-15 Jakub Jelinek <jakub@redhat.com>
13533
13534 * testsuite/libgomp.dg/vla-1.c: New test.
13535
13536 * testsuite/libgomp.fortran/reference2.f90: New test.
13537
13538 * testsuite/libgomp.fortran/character2.f90: Remove explicit
13539 declaration of omp_get_thread_num.
13540 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
13541 use omp_lib.
13542
13543 * testsuite/libgomp.fortran/reduction1.f90: New test.
13544 * testsuite/libgomp.fortran/reduction2.f90: New test.
13545 * testsuite/libgomp.fortran/reduction3.f90: New test.
13546 * testsuite/libgomp.fortran/reduction4.f90: New test.
13547
135482005-10-13 Richard Henderson <rth@redhat.com>
13549
13550 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
13551 * Makefile.in: Regenerate.
13552 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
13553 * libgomp.h: Include bar.h.
13554 (struct gomp_barrier): Remove.
13555 (struct gomp_team): Add barrier. Replace master_barrier with
13556 master_release. Replace threads with ordered_release.
13557 (struct gomp_thread): Replace barrier with release.
13558 * ordered.c (gomp_ordered_first): Update for ordered_release change.
13559 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
13560 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
13561 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
13562 (GOMP_single_copy_end): Likewise.
13563 * team.c (gomp_threads_dock): New.
13564 (gomp_barrier_init, gomp_barrier_destroy): Remove.
13565 (gomp_thread_start): Use gomp_barrier_wait.
13566 (new_team, free_team): Update for gomp_team changes.
13567 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
13568 (gomp_team_end): Use gomp_barrier_wait.
13569 (initialize_team): Update for gomp_thread changes.
13570 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
13571 (gomp_work_share_end_nowait): Use atomic ops when available.
13572 * config/linux/bar.c, config/linux/bar.h: New files.
13573 * config/posix/bar.c, config/posix/bar.h: New files.
13574
135752005-10-13 Jakub Jelinek <jakub@redhat.com>
13576
13577 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
13578 * testsuite/libgomp.dg/single-2.c: New test.
13579
13580 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
13581 lang_link_flags): Unset, so that they aren't inherited from previously
13582 sourced *.exp.
13583
13584 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
13585
135862005-10-12 Richard Henderson <rth@redhat.com>
13587
13588 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
13589 (libgomp_init): Use lang_test_file, lang_library_path, and
13590 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
13591
13592 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
13593 (lang_test_file, lang_link_flags): New.
13594 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
13595
13596 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
13597 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
13598 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
13599 testsuite/libgomp.c++/parallel-1.C,
13600 testsuite/libgomp.c++/reduction-1.C,
13601 testsuite/libgomp.c++/reduction-2.C,
13602 testsuite/libgomp.c++/reduction-3.C,
13603 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
13604 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
13605 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
13606 New files, largely cribbed from the C testsuite.
13607
136082005-10-12 Jakub Jelinek <jakub@redhat.com>
13609
13610 * testsuite/libgomp.fortran/character1.f90: New test.
13611 * testsuite/libgomp.fortran/character2.f90: New test.
13612
13613 * testsuite/libgomp.dg/nested-1.c: New test.
13614 * testsuite/libgomp.dg/nested-2.c: New test.
13615 * testsuite/libgomp.fortran/do1.f90: New test.
13616 * testsuite/libgomp.fortran/do2.f90: New test.
13617
13618 * testsuite/libgomp.fortran/reference1.f90: New test.
13619
136202005-10-11 Jakub Jelinek <jakub@redhat.com>
13621
13622 * testsuite/libgomp.dg/reduction-1.c: New test.
13623 * testsuite/libgomp.dg/reduction-2.c: New test.
13624 * testsuite/libgomp.dg/reduction-3.c: New test.
13625
136262005-10-10 Jakub Jelinek <jakub@redhat.com>
13627
13628 * testsuite/libgomp.dg/atomic-1.c: New test.
13629 * testsuite/libgomp.dg/atomic-2.c: New test.
13630
136312005-10-09 Richard Henderson <rth@redhat.com>
13632
13633 * critical.c (atomic_lock): New.
13634 (initialize_critical): Initialize it.
13635 (GOMP_atomic_start, GOMP_atomic_end): New.
13636 * libgomp.map: Export them.
13637 * libgomp_g.h: Declare them.
13638
13639 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
13640
136412005-10-02 Richard Henderson <rth@redhat.com>
13642
13643 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
13644 to XCFLAGS instead of CFLAGS.
13645
136462005-09-30 Richard Henderson <rth@redhat.com>
13647
13648 * configure.ac: Determine whether -pthread or -lpthread is needed.
13649 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
93d90219 13650 * Makefile.in, configure: Rebuild.
953ff289
DN
13651
136522005-09-28 Richard Henderson <rth@redhat.com>
13653
13654 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
13655 * testsuite/libgomp.dg/omp-single-3.c: New test.
13656
136572005-09-28 Diego Novillo <dnovillo@redhat.com>
13658
13659 * testsuite/libgomp.dg/omp-single-2.c: New test.
13660 * testsuite/libgomp.dg/shared-2.c: Fix return code.
13661
136622005-09-27 Richard Henderson <rth@redhat.com>
13663
13664 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
13665 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
13666
136672005-09-27 Jakub Jelinek <jakub@redhat.com>
13668
13669 * testsuite/libgomp.dg/omp-loop03.c: New test.
13670
136712005-09-27 Diego Novillo <dnovillo@redhat.com>
13672
13673 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
13674
136752005-09-27 Diego Novillo <dnovillo@redhat.com>
13676
13677 * testsuite/libgomp.dg/omp-single-1.c: New test.
13678 * testsuite/libgomp.dg/shared-1.c: Return 0.
13679 Add prototype for abort.
13680 * testsuite/libgomp.dg/shared-2.c: Likewise.
13681
136822005-09-26 Jakub Jelinek <jakub@redhat.com>
13683
13684 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
13685 constructs.
13686
136872005-09-26 Diego Novillo <dnovillo@redhat.com>
13688
13689 * testsuite/libgomp.dg/shared-1.c: New test.
13690 * testsuite/libgomp.dg/shared-2.c: New test.
13691
136922005-09-24 Richard Henderson <rth@redhat.com>
13693
13694 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
13695
136962005-09-24 Richard Henderson <rth@redhat.com>
13697
13698 * iter.c (gomp_iter_static_next): Round up when computing number
13699 of iterations. Don't bother distributing a remainder equally.
13700
13701 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
13702 Don't call srand. Zero b before testing.
13703 (main): New.
13704
137052005-09-24 Jakub Jelinek <jakub@redhat.com>
13706
13707 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
13708 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
13709
137102005-09-23 Jakub Jelinek <jakub@redhat.com>
13711
13712 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
13713 without !$omp end do, followed immediately by subroutine end.
13714
137152005-09-23 Diego Novillo <dnovillo@redhat.com>
13716
13717 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
13718
137192005-09-22 Richard Henderson <rth@redhat.com>
13720
13721 * critical.c (GOMP_critical_name_start): Change argument to void**.
13722 Reuse the pointer space if the mutex fits.
13723 (GOMP_critical_name_end): Likewise.
13724 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
13725 * libgomp_g.h (GOMP_critical_name_start): Update decl.
13726 (GOMP_critical_name_end): Likewise.
13727 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
13728 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
13729
137302005-09-20 Richard Henderson <rth@redhat.com>
13731
13732 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
13733 (create_lock_lock): New.
13734 (initialize_critical): Initialize it.
13735 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
13736 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
13737
137382005-09-20 Diego Novillo <dnovillo@redhat.com>
13739
13740 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
13741
137422005-09-20 Diego Novillo <dnovillo@redhat.com>
13743
13744 * testsuite/libgomp.dg/omp-loop01.c: New test.
13745 * testsuite/libgomp.dg/omp-loop02.c: New test.
13746
137472005-09-20 Jakub Jelinek <jakub@redhat.com>
13748
13749 * configure.ac (AC_PROG_FC): Add.
13750 (USE_FORTRAN): New automake conditional.
13751 * configure: Rebuilt.
13752 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
13753 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
13754 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
13755 Add rules to build them.
13756 * Makefile.in: Rebuilt.
13757 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
13758 OMP_NEST_LOCK_KIND.
13759 * libgomp.map: Add Fortran wrappers.
13760 * libgomp_f.h.in: New file.
13761 * omp_lib.h.in: New file.
13762 * omp_lib.f90.in: New file.
13763 * fortran.c: New file.
13764 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
13765 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
13766 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
13767 libgfortran has been built.
13768 * testsuite/libgomp.fortran/fortran.exp: New file.
13769 * testsuite/libgomp.fortran/omp_cond1.f: New test.
13770 * testsuite/libgomp.fortran/omp_cond2.f: New test.
13771 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
13772 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
13773 * testsuite/libgomp.fortran/omp_hello.f: New test.
13774 * testsuite/libgomp.fortran/omp_orphan.f: New test.
13775 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
13776 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
13777 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
13778 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
13779 * testsuite/libgomp.fortran/omp_reduction.f: New test.
13780 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
13781 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
13782
137832005-08-30 Richard Henderson <rth@redhat.com>
13784
13785 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
13786 function for when aliases are not usable.
13787 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
13788 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
13789 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
13790 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
13791 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
13792 GOMP_loop_ordered_guided_next): Likewise.
13793 * ordered.c (GOMP_ordered_start): Likewise.
13794
137952005-08-01 Diego Novillo <dnovillo@redhat.com>
13796
13797 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
13798 * testsuite/libgomp.dg/omp_hello.c: Fix return code
13799 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
13800 * testsuite/libgomp.dg/omp_orphan.c: Likewise
13801 * testsuite/libgomp.dg/omp_reduction.c: Likewise
13802 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
13803 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
13804 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
13805 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
13806
138072005-07-07 Eric Christopher <echristo@redhat.com>
13808 Diego Novillo <dnovillo@redhat.com>
13809
13810 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
13811 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
13812 up code.
13813 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
13814 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
13815 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
13816 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
13817 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
13818 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
13819 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
13820
138212005-06-13 Diego Novillo <dnovillo@redhat.com>
13822
13823 * TOPLEVEL.patch: Remove.
13824
138252005-05-16 Richard Henderson <rth@redhat.com>
13826
13827 * configure.ac: Test for clock_gettime.
13828 * config.h.in, configure: Rebuild.
13829 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
13830 (omp_get_wtime): Use clock_gettime if available.
13831 (omp_get_wtick): Use clock_getres if available.
13832
138332005-05-11 Richard Henderson <rth@redhat.com>
13834
13835 * config/linux/ia64/futex.h: New file.
13836 * configure.tgt: Use it.
13837
13838 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
13839
138402005-05-07 Richard Henderson <rth@redhat.com>
13841
13842 * config/linux/powerpc/futex.h: New file.
13843 * configure.tgt: Use it.
13844
13845 * config/linux/i486/futex.h: Merge ...
13846 * config/linux/x86_64/futex.h: ... into ...
13847 * config/linux/x86/futex.h: ... here.
13848 * configure.tgt: Update to match.
13849
138502005-05-06 Richard Henderson <rth@redhat.com>
13851
13852 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
13853 * config/linux/i486/futex.h: Likewise.
13854 * config/linux/x86_64/futex.h: Likewise.
13855
13856 * config/linux/lock.c: New file.
13857 * config/linux/omp-lock.h: New file.
13858
13859 * critical.c, env.h: Don't include omp.h
13860 * config/posix/lock.c: Include libgomp.h instead of omp.h.
13861 * config/posix/time.c: Likewise.
13862 * config/posix/omp-lock.h: New file.
13863 * libgomp.h: Include omp-lock.h and omp.h.
13864 * Makefile.am (nodist_include_HEADERS): New.
13865 (omp.h): New rule.
13866 * configure.ac (PERL): New.
13867 * mkomp_h.pl: New file.
13868 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
13869 with templates.
13870 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
13871
13872 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
13873 build directory. Re-add -march=i486 hack.
13874
13875 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
13876 (libgomp_link_flags): Remove.
13877 (libgomp_initialized): Remove.
13878 (libgomp_init): Don't protect from reinitialization. Copy code
13879 from libstdc++ for getting the multilib set correctly.
13880
138812005-05-05 Richard Henderson <rth@redhat.com>
13882
13883 * config/linux/alpha/futex.h: New file.
13884 * configure.tgt (alpha*-*-linux*): Use it.
13885
13886 * config/posix/mutex.c: New file.
13887 * config/posix/sem.c: Use libgomp.h.
13888
13889 * configure.tgt (x86_64-linux): Also test CC for -m32.
13890 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
13891
a1daed2d 13892 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
953ff289
DN
13893 after $gccpath.
13894
13895 * Makefile.am (SUBDIRS): New.
13896 (libgomp_la_LDFLAGS): Add -lpthread.
13897 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
13898 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
13899
13900 * libgomp_g.h: New file.
13901 * libgomp.h: Split out all public declarations to libgomp_g.h.
13902 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
13903 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
13904 * config/linux/sem.h: Likewise.
13905 * config/posix/sem.h: Likewise.
13906
13907 * Makefile.am (AM_LDFLAGS): New.
13908 (libgomp_version_script): Split out from ...
13909 (libgomp_la_LDFLAGS): ... here.
13910 (libgomp_version_info): New.
13911 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
13912 (LIBGOMP_ENABLE): New.
13913 (LIBGOMP_CHECK_LINKER_FEATURES): New.
13914 (LIBGOMP_ENABLE_SYMVERS): New.
13915 * configure.ac (AC_INIT): Version 1.0.
13916 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
13917 (enable-linux-futex): Likewise. Rename from enable-futex.
13918 (libtool_VERSION): New.
13919 (LIBGOMP_ENABLE_SYMVERS): Use it.
13920 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
13921 * Makefile.in, aclocal.m4, configure: Rebuild.
13922
13923 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
13924 (gomp_mutex_unlock_slow): Fix typo.
13925 * config/linux/sem.c: Similarly.
13926 (gomp_sem_post_slow): Fix typo.
13927 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
13928 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
13929 [__PIC__] (sys_futex0): Don't use tmp output in asm.
13930
13931 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
13932 (libgomp_la_LDFLAGS): Add top_srcdir to path.
13933 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
13934 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
13935 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
13936 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
13937 LDFLAGS. Pull enable_futex check to top-level.
13938 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
13939 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
13940
13941 First attempt at real configury.
13942 * Makefile, config.h: Remove file.
13943 * Makefile.am, Makefile.in: New file.
13944 * acinclude.m4 aclocal.m4: New file.
13945 * configure.ac, configure.tgt, configure: New file.
13946
13947 * config/posix/lock.c: Rename from sys-lock.c.
13948 * config/posix/mutex.h: Rename from sys-mutex.h.
13949 * config/posix/sem.c: Rename from sys-sem.c.
13950 * config/posix/sem.h: Rename from sys-sem.h.
13951 * config/posix/proc.c: Rename from sys-proc.c.
13952 * config/posix/time.c: Rename from sys-proc.c.
13953
13954 * config/linux/mutex.c: New file.
13955 * config/linux/mutex.h: New file.
13956 * config/linux/sem.c: New file.
13957 * config/linux/sem.h: New file.
13958 * config/linux/i486/futex.h: New file.
13959 * config/linux/x86_64/futex.h: New file.
13960
139612005-05-04 Richard Henderson <rth@redhat.com>
13962
13963 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
13964 * libgomp.h: Declare them.
13965 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
13966 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
13967
139682005-05-04 Richard Henderson <rth@redhat.com>
13969
13970 * libgomp-1 code drop
13971
139722005-05-04 Richard Henderson <rth@redhat.com>
13973
13974 * iter.c (gomp_iter_static_next): Return tri-state on 0.
13975 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
13976 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
13977 (gomp_iter_static_next): Update.
13978 (gomp_ordered_static_next): Update.
13979 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
13980 (gomp_loop_ordered_static_start): Likewise. Exit early for a
13981 totally empty range.
13982 (gomp_loop_ordered_static_next): Refine test for calling
13983 gomp_ordered_static_next.
13984 * testsuite/ordered-1.c: Add case for more threads than iterations.
13985
13986 * iter.c (gomp_iter_runtime_next_locked): Remove.
13987 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
a1daed2d 13988 gomp_loop_guided_start, gomp_loop_ordered_static_start,
953ff289
DN
13989 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
13990 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
13991 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
13992 gomp_loop_ordered_guided_next): Downcase name, make static, add
13993 an external alias with the old name.
13994 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
13995 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
13996 switch and call one of the above static functions.
13997 * libgomp.h: Update.
13998
13999 * work.c (gomp_work_share_start): Lock the mutex for !first too.
14000 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
14001 GOMP_loop_guided_start, GOMP_loop_runtime_start,
14002 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
14003 GOMP_loop_ordered_guided_start): Update to match.
14004 * sections.c (GOMP_sections_start): Likewise.
14005 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
14006
14007 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
14008 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
14009 Use bounds check instead of modulus.
14010 (gomp_ordered_sync): Split out of GOMP_ordered_start.
14011 (gomp_ordered_last): Don't sync with ordered_owner here.
14012 (gomp_ordered_next): Likewise.
14013 (gomp_ordered_static_loop_next): Likewise.
14014 * loop.c, libgomp.h: Update to match.
14015
14016 * libgomp.h (GOMP_barrier): Declare.
14017
14018 * testsuite/barrier-1.c: New file.
14019 * testsuite/critical-1.c: New file.
14020 * testsuite/ordered-2.c: New file.
14021 * testsuite/ordered-1.c: New file.
14022 * testsuite/sections-1.c: New file.
14023 * testsuite/single-1.c: New file.
14024 * testsuite/Makefile (TESTS): Add them.
14025
140262005-05-04 Richard Henderson <rth@redhat.com>
14027
14028 * libgomp.h (struct gomp_work_share): Add ordered_owner.
14029 * loop.c (GOMP_loop_static_start): If not the startup thread,
14030 acquire the mutex to wait for initialization complete.
14031 (GOMP_loop_ordered_static_start): Likewise.
14032 (GOMP_loop_ordered_runtime_start): Likewise.
14033 (GOMP_loop_ordered_static_first): Remove.
14034 (GOMP_loop_ordered_dynamic_first): Remove.
14035 (GOMP_loop_ordered_guided_first): Remove.
14036 (GOMP_loop_ordered_runtime_first): Remove.
14037 * ordered.c (gomp_ordered_loop_first): Post to own release when
14038 we're the first thread.
14039 (gomp_ordered_loop_last): Wait on release if not owner.
14040 (gomp_ordered_loop_next): Likewise.
14041 (gomp_ordered_static_loop_init): New.
14042 (gomp_ordered_static_loop_next): Use ordered_owner.
14043 (GOMP_ordered_start): Likewise.
14044 * work.c (gomp_new_work_share): Initialize ordered_owner.
14045
140462005-05-03 Richard Henderson <rth@redhat.com>
14047
14048 * Makefile (OPT): New.
14049 (CFLAGS): Use it.
14050
14051 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
14052 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
14053 * libgomp.h, libgomp.map, NOTES: Update to match.
14054
14055 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
14056 Add initialized and thr members.
14057 (gomp_thread_start): Pause when initially spawned to wait for
14058 the whole team to be created.
14059 (gomp_team_start): Release team members at the end.
14060
14061 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
14062 (f_foo_1): Use GOMP_loop_end.
14063 (f_foo_2): Use GOMP_loop_end_nowait.
14064
14065 * testsuite/loop-2.c: New file.
14066 * testsuite/Makefile (TESTS): Add it.
14067
140682005-05-03 Richard Henderson <rth@redhat.com>
14069
14070 * iter.c (gomp_iter_static_next): Fix overflow check typo.
14071 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
14072 * team.c (new_team): Initialize oldest_live_gen to 1 if no
14073 initial work_share.
14074
14075 * testsuite/Makefile: New file.
14076 * testsuite/loop-1.c: New file.
14077
140782005-05-03 Richard Henderson <rth@redhat.com>
14079
14080 Initial implementation and checkin.
21fa2a29 14081\f
8d9254fc 14082Copyright (C) 2005-2020 Free Software Foundation, Inc.
21fa2a29
JJ
14083
14084Copying and distribution of this file, with or without modification,
14085are permitted in any medium without royalty provided the copyright
14086notice and this notice are preserved.