1 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
3 * plugin/plugin-nvptx.c (nvptx_free):
4 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
5 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
8 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
10 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
12 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
14 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
16 2020-08-13 Jakub Jelinek <jakub@redhat.com>
18 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
19 * testsuite/libgomp.c/loop-23.c (main): Likewise.
20 * testsuite/libgomp.c/loop-24.c: New test.
22 2020-08-08 Jakub Jelinek <jakub@redhat.com>
23 Tobias Burnus <tobias@codesourcery.com>
26 * testsuite/libgomp.fortran/pr93553.f90: New test.
28 2020-08-05 Jakub Jelinek <jakub@redhat.com>
30 * testsuite/libgomp.c/loop-22.c: New test.
31 * testsuite/libgomp.c/loop-23.c: New test.
33 2020-08-05 Jakub Jelinek <jakub@redhat.com>
36 * testsuite/libgomp.c/teams-3.c: New test.
37 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
39 (N(test)): Use it before all N(f*) calls.
40 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
41 (main): Don't call all test_* functions from within
42 #pragma omp teams reduction(|:err), call them directly.
44 2020-08-04 Tom de Vries <tdevries@suse.de>
47 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
48 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
50 2020-08-03 Julian Brown <julian@codesourcery.com>
51 Thomas Schwinge <thomas@codesourcery.com>
53 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
54 shared-memory devices. Extend with further checking.
56 2020-08-03 Martin Jambor <mjambor@suse.cz>
58 * plugin/Makefrag.am: Remove configuration of HSA plugin.
59 * aclocal.m4: Regenerated.
60 * Makefile.in: Regenerated.
61 * config.h.in: Regenerated.
62 * configure: Regenerated.
63 * plugin/configfrag.ac: Likewise.
64 * plugin/hsa_ext_finalize.h: Removed.
65 * plugin/plugin-hsa.c: Likewise.
66 * testsuite/Makefile.in: Regenerated.
67 * testsuite/lib/libgomp.exp
68 (offload_target_to_openacc_device_type): Remove hsa case.
69 (check_effective_target_hsa_offloading_selected_nocache): Removed
70 (check_effective_target_hsa_offloading_selected): Likewise.
71 (libgomp_init): Do not add -Wno-hsa to additional_flags.
72 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
73 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
74 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
75 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
76 * testsuite/libgomp.hsa.c/c.exp: Likewise.
77 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
78 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
79 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
80 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
81 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
82 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
83 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
84 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
85 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
86 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
87 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
88 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
89 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
90 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
91 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
92 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
93 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
94 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
95 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
97 2020-07-27 Julian Brown <julian@codesourcery.com>
98 Thomas Schwinge <thomas@codesourcery.com>
100 * libgomp.h (struct target_var_desc): Rename do_detach field to
102 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
103 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
104 (goacc_enter_data_internal): Don't affect reference counts
106 (goacc_exit_data_internal): Don't affect reference counts for detach
108 * target.c (gomp_map_vars_existing): Don't affect reference counts for
110 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
111 mark attach mappings.
112 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
113 reference count for attach mappings.
114 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
115 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
116 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
117 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
119 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
120 gracefully in no-finalize mode.
121 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
123 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
125 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
127 * testsuite/libgomp.oacc-c/c.exp: Likewise.
128 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
130 2020-07-23 Julian Brown <julian@codesourcery.com>
131 Thomas Schwinge <thomas@codesourcery.com>
133 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
134 finalization for detach operation.
135 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
138 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
140 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
141 * libgomp_f.h.in (omp_check_defines): Check whether
142 sizeof of determined Fortran kind and C typedef match.
143 * omp_lib.f90.in: Add omp_depened_kind.
144 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
145 * configure: Regenerate.
146 * Makefile.in: Regenerate.
147 * testsuite/Makefile.in: Regenerate.
149 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
151 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
152 gcc/testsuite/c-c++-common/gomp/.
153 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
154 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
155 from gcc/testsuite/gfortran.dg/gomp/.
156 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
158 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
160 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
161 * omp_lib.h.in: Likewise.
163 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
166 * testsuite/libgomp.c/pr95620.c: New test.
168 2020-07-16 Julian Brown <julian@codesourcery.com>
169 Thomas Schwinge <thomas@codesourcery.com>
171 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
172 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
174 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
176 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
177 avoid conversion on 32bit systems from 32bit to 64bit due
178 to -fdefault-integer-8.
180 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
182 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
183 variables; add character(kind=4) tests; update TODO comment.
185 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
187 * allocator.c: Add ialias for omp_init_allocator and
188 omp_destroy_allocator.
189 * configure.ac: Set INTPTR_T_KIND.
190 * configure: Regenerate.
191 * Makefile.in: Regenerate.
192 * testsuite/Makefile.in: Regenerate.
193 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
194 omp_set_default_allocator_, omp_get_default_allocator_): New
195 functions and ialias_redirect.
196 * icv.c: Add ialias for omp_set_default_allocator and
197 omp_get_default_allocator.
198 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
199 omp_destroy_allocator_, omp_set_default_allocator_ and
200 omp_get_default_allocator_.
201 * omp_lib.f90.in: Add allocator traits parameters, declare
202 allocator routines and add related kind parameters.
203 * omp_lib.h.in: Likewise.
204 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
205 * testsuite/libgomp.fortran/alloc-1.F90: New test.
206 * testsuite/libgomp.fortran/alloc-2.F90: New test.
207 * testsuite/libgomp.fortran/alloc-3.F: New test.
208 * testsuite/libgomp.fortran/alloc-4.f90: New test.
209 * testsuite/libgomp.fortran/alloc-5.f90: New test.
211 2020-07-14 Tom de Vries <tom@codesourcery.com>
212 Cesar Philippidis <cesar@codesourcery.com>
213 Thomas Schwinge <thomas@codesourcery.com>
214 Kwok Cheung Yeung <kcy@codesourcery.com>
216 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
218 (acc_init_1): Set acc_init_thread to pthread_self (). Set
219 acc_init_state to initializing at the start, and to initialized at the
221 (self_initializing_p): New function.
222 (acc_get_device_type): Return acc_device_none if called by thread that
223 is currently executing acc_init_1.
224 * libgomp.texi (acc_get_device_type): Update documentation.
225 (Implementation Status and Implementation-Defined Behavior): Likewise.
226 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
228 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
230 * config/t-aix: Set BITS from compiler cpp macro.
232 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
234 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
236 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
239 * testsuite/libgomp.fortran/target-map-1.f90: New test.
241 2020-07-14 Jakub Jelinek <jakub@redhat.com>
243 * testsuite/libgomp.c/loop-21.c: New test.
245 2020-07-13 Julian Brown <julian@codesourcery.com>
246 Thomas Schwinge <thomas@codesourcery.com>
248 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
250 2020-07-10 Julian Brown <julian@codesourcery.com>
251 Thomas Schwinge <thomas@codesourcery.com>
253 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
255 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
256 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
258 (acc_unmap_data): Update comment.
259 (goacc_map_var_existing, goacc_enter_datum): Adjust for
260 dynamic_refcount semantics.
261 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
262 Adjust for dynamic_refcount semantics.
263 (goacc_enter_data_internal): Implement "present" case of dynamic
264 memory-map handling here. Update "non-present" case for
265 dynamic_refcount semantics.
266 (goacc_exit_data_internal): Use goacc_exit_datum_1.
267 * target.c (gomp_map_vars_internal): Remove
268 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
270 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
271 (gomp_load_image_to_device): Substitute dynamic_refcount for
273 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
274 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
275 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
276 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
277 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
279 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
281 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
283 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
284 Remove stale comment.
285 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
286 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
287 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
288 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
289 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
290 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
292 2020-07-10 Julian Brown <julian@codesourcery.com>
293 Thomas Schwinge <thomas@codesourcery.com>
295 * oacc-mem.c (goacc_map_var_existing): New function.
296 (goacc_enter_datum): Use above function.
297 (goacc_exit_datum_1): New function.
298 (goacc_exit_datum): Use above function.
300 2020-07-09 Julian Brown <julian@codesourcery.com>
301 Thomas Schwinge <thomas@codesourcery.com>
304 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
305 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
307 2020-07-09 Julian Brown <julian@codesourcery.com>
309 * oacc-mem.c (find_group_last): Group data-movement clauses
310 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
311 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
313 2020-07-09 Jakub Jelinek <jakub@redhat.com>
315 * testsuite/libgomp.c/loop-19.c: New test.
316 * testsuite/libgomp.c/loop-20.c: New test.
318 2020-07-09 Jakub Jelinek <jakub@redhat.com>
320 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
321 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
322 it. Remove __omp_alloctrait_value_max__.
323 * allocator.c (omp_init_allocator): Handle omp_atv_default for
324 omp_atk_alignment and omp_atk_pool_size.
326 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
328 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
329 behavior for 'GOMP_MAP_FORCE_FROM'.
330 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
332 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
334 * oacc-mem.c (goacc_exit_data_internal): Remove
335 'GOMP_MAP_ALWAYS_FROM' handling.
337 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
339 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
340 'scan-assembler' with 'scan-offload-rtl'.
341 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
342 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
343 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
344 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
346 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
348 * target.c (gomp_map_vars_existing): Assert 'kind !=
350 (gomp_map_vars_internal): Clean up.
352 2020-06-27 Jakub Jelinek <jakub@redhat.com>
354 * testsuite/libgomp.c/loop-17.c: New test.
355 * testsuite/libgomp.c/loop-18.c: New test.
357 2020-06-26 Marek Polacek <polacek@redhat.com>
359 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
361 2020-06-23 Alexandre Oliva <oliva@adacore.com>
363 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
364 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
366 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
368 * Makefile.am: Use -include.
369 * Makefile.in: Regenerate.
371 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
373 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
374 * Makefile.in: Regenerate
375 * configure.ac (tmake_file): Substitute.
376 * configure: Regenerate.
377 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
378 * config/t-aix: New file.
380 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
383 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
386 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
388 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
389 variant for HSA_RUNTIME_LIB name.
390 (find_executable_symbol_1): Delete.
391 (find_executable_symbol): Delete.
392 (init_kernel_properties): Add ".kd" suffix to symbol names.
393 (find_load_offset): Delete.
394 (create_and_finalize_hsa_program): Remove relocation handling.
396 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
398 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
400 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
404 * testsuite/libgomp.fortran/target-var.f90: New test.
406 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
407 Julian Brown <julian@codesourcery.com>
409 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
412 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
413 Julian Brown <julian@codesourcery.com>
415 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
418 2020-06-05 Julian Brown <julian@codesourcery.com>
420 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
421 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
423 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
425 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
426 Evaluate 'copyfrom' individually for each entry.
427 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
429 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
431 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
432 Evaluate 'finalize' individually for each entry.
433 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
434 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
437 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
439 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
441 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
443 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
444 Julian Brown <julian@codesourcery.com>
446 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
448 (acc_unmap_data, goacc_exit_data_internal): Restore
449 'is_tgt_unmapped' checking.
450 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
452 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
453 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
454 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
455 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
456 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
457 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
459 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
460 Julian Brown <julian@codesourcery.com>
462 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
464 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
467 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
469 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
472 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
475 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
476 Julian Brown <julian@codesourcery.com>
478 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
480 (acc_map_data): Clean up accordingly.
482 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
484 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
485 of over-eager 'finalize' clause.
486 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
488 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
489 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
490 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
491 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
492 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
493 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
494 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
495 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
497 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
499 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
501 2020-06-04 Julian Brown <julian@codesourcery.com>
503 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
505 (goacc_detach_internal): Likewise.
507 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
509 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
511 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
512 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
513 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
514 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
515 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
517 2020-06-02 Jakub Jelinek <jakub@redhat.com>
519 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
522 2020-05-30 Jakub Jelinek <jakub@redhat.com>
524 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
526 2020-05-30 Jakub Jelinek <jakub@redhat.com>
528 * allocator.c (omp_alloc): For size == 0, return NULL early.
530 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
533 * configure: Regenerated.
535 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
538 * testsuite/libgomp.fortran/async_io_9.f90: New test.
540 2020-05-19 Jakub Jelinek <jakub@redhat.com>
542 * omp.h.in (omp_uintptr_t): New typedef.
543 (__GOMP_UINTPTR_T_ENUM): Define.
544 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
545 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
546 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
547 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
548 omp_get_default_allocator, omp_alloc, omp_free): Declare.
549 * libgomp.h (struct gomp_team_state): Add def_allocator field.
550 (gomp_def_allocator): Declare.
551 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
552 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
553 omp_alloc and omp_free.
554 * team.c (gomp_team_start): Copy over ts.def_allocator.
555 * env.c (gomp_def_allocator): New variable.
556 (parse_wait_policy): Adjust function comment.
557 (parse_allocator): New function.
558 (handle_omp_display_env): Print OMP_ALLOCATOR.
559 (initialize_env): Call parse_allocator.
560 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
561 * allocator.c: New file.
562 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
564 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
565 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
566 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
567 * Makefile.in: Regenerated.
569 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
572 * configure: Regenerated.
574 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
577 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
579 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
581 * configure: Regenerated.
583 2020-05-14 Jakub Jelinek <jakub@redhat.com>
585 * testsuite/libgomp.c-c++-common/target-40.c: New test.
587 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
590 * testsuite/libgomp.fortran/pr66199-3.f90: New.
591 * testsuite/libgomp.fortran/pr66199-4.f90: New.
592 * testsuite/libgomp.fortran/pr66199-5.f90: New.
593 * testsuite/libgomp.fortran/pr66199-6.f90: New.
594 * testsuite/libgomp.fortran/pr66199-7.f90: New.
595 * testsuite/libgomp.fortran/pr66199-8.f90: New.
596 * testsuite/libgomp.fortran/pr66199-9.f90: New.
598 2020-05-12 Jakub Jelinek <jakub@redhat.com>
600 * testsuite/libgomp.c/target-39.c: New test.
602 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
604 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
605 * openacc.f90 (acc_device_current): Likewise.
606 * openacc.h (acc_device_current): Likewise.
607 * openacc_lib.h (acc_device_current): Likewise.
610 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
611 'dg-allow-blank-lines-in-output'.
613 * oacc-init.c (get_openacc_name): Handle 'gcn'.
614 * testsuite/lib/libgomp.exp
615 (offload_target_to_openacc_device_type) [amdgcn*]: Return
616 'radeon'. Adjust all users.
617 (check_effective_target_openacc_amdgcn_accel_present): Rename
619 (check_effective_target_openacc_radeon_accel_present): ... this.
621 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
622 (check_effective_target_openacc_radeon_accel_selected): ... this.
625 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
628 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
632 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
634 (GOMP_OFFLOAD_init_device): Check return values from both calls to
635 hsa_agent_iterate_regions.
637 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
640 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
643 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
646 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
649 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
652 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
654 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
657 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
659 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
661 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
663 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
665 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
667 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
669 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
671 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
673 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
675 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
677 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
679 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
681 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
683 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
685 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
687 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
689 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
691 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
693 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
695 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
697 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
699 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
701 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
703 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
705 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
707 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
709 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
711 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
713 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
715 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
717 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
719 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
722 2020-04-10 Julian Brown <julian@codesourcery.com>
723 Thomas Schwinge <thomas@codesourcery.com>
726 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
728 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
730 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
732 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
734 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
736 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
738 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
740 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
742 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
744 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
746 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
748 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
750 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
752 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
754 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
756 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
759 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
761 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
764 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
767 * libgomp.oacc-c++/declare-pr94120.C: New.
769 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
771 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
773 * configure: Regenerate.
774 * testsuite/libgomp-site-extra.exp.in: New file.
775 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
777 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
779 * testsuite/Makefile.in: Regenerate.
781 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
783 PR tree-optimization/89713
785 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
787 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
789 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
791 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
792 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
794 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
797 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
799 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
802 * target.c (gomp_load_image_to_device): Fix link
805 2020-03-19 Jakub Jelinek <jakub@redhat.com>
808 * testsuite/libgomp.c++/pr93931.C: New test.
810 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
812 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
813 dg-allow-blank-lines-in-output.
815 2020-03-18 Julian Brown <julian@codesourcery.com>
816 Tobias Burnus <tobias@codesourcery.com>
818 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
819 it work concurrently.
821 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
823 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
824 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
825 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
827 2020-03-14 Jakub Jelinek <jakub@redhat.com>
830 * testsuite/libgomp.c/pr93566.c: New test.
832 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
834 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
835 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
836 integer(acc_device_property) for the type of the return value of
839 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
841 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
842 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
843 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
844 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
845 (acc_set_device_num): Fix Fortran argument name, use same name for C.
846 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
847 corrections; add note about the previous interface and named constant.
848 (OpenACC library and environment variables): Fix two typos.
849 * openacc.f90: Use for all procedures the argument names from the spec
850 as for …_h they are user visible.
851 (openacc_kinds): Rename acc_device_property to
852 acc_device_property_kinds and change value to int32 ; and update users.
853 Re-add acc_device_property for for backward compatibility.
854 (acc_get_property_string_h): Clean up as acc_device_property_kind
856 (acc_get_property_h): Likewise and return c_size_t instead of
858 (openacc): Also export acc_device_property_kinds.
859 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
860 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
861 handling; check against /= 0 instead of == 1 to match C.
862 * openacc_lib.h: Use for all procedures the argument names from the spec
863 as for …_h they are user visible. Place !GCC$ into the first column to
864 be active also for fixed-form souce form.
865 (acc_device_current, acc_device_property_kind, acc_device_property,
866 acc_property_memory, acc_property_free_memory, acc_property_name,
867 acc_property_vendor, acc_property_driver): New named constants.
868 (acc_get_property, acc_get_property_string): New generic interface.
870 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
873 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
874 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
876 (gomp_target_task_fn): Assert "devicep->async_run_func".
877 (clear_unsupported_flags): New function to remove unsupported flags
878 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
879 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
880 * testsuite/libgomp.c/target-33.c:
881 Remove xfail for offload_target_nvptx.
882 * testsuite/libgomp.c/target-34.c: Likewise.
884 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
886 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
887 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
888 * testsuite/libgomp.c/target-34.c: Likewise.
889 * testsuite/libgomp.c/target-link-1.c: Add xfail for
890 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
892 2020-02-09 Jakub Jelinek <jakub@redhat.com>
894 * testsuite/libgomp.c/target-38.c: New test.
896 2020-02-06 Jakub Jelinek <jakub@redhat.com>
899 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
901 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
903 * testsuite/lib/libgomp.exp
904 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
905 and not as 'source' argument to libgomp_target_compile.
907 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
909 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
910 (gcn_gfx801_s): Remove.
911 (isa_hsa_name): Remove gfx801.
912 (isa_gcc_name): Remove gfx801/carizzo.
913 (isa_code): Remove gfx801.
915 2020-02-03 Julian Brown <julian@codesourcery.com>
916 Tobias Burnus <tobias@codesourcery.com>
918 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
919 and *_finalize variants; document acc_attach and acc_detach; update
920 references from OpenACC 2.0 to 2.6.
921 * openacc.f90 (openacc_version): Update to 201711.
922 * openacc_lib.h (openacc_version): Update to 201711.
923 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
924 openacc_version to 201711.
925 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
927 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
929 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
930 and vgpr_count fields.
931 (struct kernel_info): Add a field for a hsa_kernel_description.
932 (run_kernel): Reduce the number of threads/workers if the requested
933 number would require too many VGPRs.
934 (init_basic_kernel_info): Initialize description field with
935 the hsa_kernel_description entry for the kernel.
937 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
940 * plugin/configfrag.ac (enable_offload_targets): Skip
941 HSA and GCN plugin besides -m32 also for -mx32.
942 * configure: Regenerate.
944 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
946 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
948 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
950 * plugin-gcn.c (struct agent_info): Add fields "name" and
952 (GOMP_OFFLOAD_init_device): ... and init from here.
953 (struct hsa_context_info): Add field "driver_version_s" ...
954 (init_hsa_contest): ... and init from here.
955 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
957 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
958 Enable test execution for amdgcn and host offloading targets.
959 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
960 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
961 (expect_device_properties): Split function into ...
962 (expect_device_string_properties): ... this new function ...
963 (expect_device_memory): ... and this new function.
964 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
967 2020-01-28 Julian Brown <julian@codesourcery.com>
969 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
970 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
971 component/non-component variable refs in a single directive.
972 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
974 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
976 * configure.ac: Handle `--with-toolexeclibdir='.
977 * Makefile.in: Regenerate.
978 * aclocal.m4: Regenerate.
979 * configure: Regenerate.
980 * testsuite/Makefile.in: Regenerate.
982 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
984 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
985 (expect_device_properties): Remove "expected_free_mem" argument,
986 change "expected_total_mem" argument type to size_t;
987 change types of acc_get_property results to size_t,
988 adapt format strings.
989 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
990 Use %zu instead of %zd to print size_t values.
991 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
993 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
994 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
996 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
998 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
1000 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
1003 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
1005 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
1006 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
1007 Adjust test dimensions for amdgcn.
1008 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
1009 gang/worker/vector expectations dynamically.
1010 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
1012 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
1013 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
1014 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
1015 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
1016 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
1017 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
1018 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
1019 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
1020 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
1021 (acc_gang): Recognise acc_device_radeon.
1022 (acc_worker): Likewise.
1023 (acc_vector): Likewise.
1024 (main): Set expectations for amdgcn.
1025 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
1026 (main): Adjust gang/worker/vector expectations dynamically.
1027 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
1028 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
1029 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
1030 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
1033 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
1035 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
1037 (openacc): Likewise.
1038 * openacc.f90 (openacc_kinds): Likewise.
1039 (openacc): Likewise.
1040 * openacc.h (acc_device_t): Likewise.
1041 * openacc_lib.h: Likewise.
1042 * testsuite/lib/libgomp.exp
1043 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
1044 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
1045 (cb_compute_construct_end): Likewise.
1046 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
1047 (cb_enqueue_launch_start): Likewise.
1048 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
1049 (cb_enter_data_end): Likewise.
1050 (cb_exit_data_start): Likewise.
1051 (cb_exit_data_end): Likewise.
1052 (cb_compute_construct_end): Likewise.
1053 (cb_enqueue_launch_start): Likewise.
1054 (cb_enqueue_launch_end): Likewise.
1055 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
1058 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
1060 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
1061 to use this instead of 'enum gomp_device_property'.
1062 (GOMP_OFFLOAD_get_property): Rename to...
1063 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
1064 * libgomp.h (struct gomp_device_descr): Move
1065 'GOMP_OFFLOAD_openacc_get_property'...
1066 (struct acc_dispatch_t): ... here. Adjust all users.
1067 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
1069 * target.c (gomp_map_vars_internal)
1070 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
1073 2020-01-10 Jakub Jelinek <jakub@redhat.com>
1076 * libgomp.h (gomp_print_string): Change return type from void to int.
1077 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
1078 not all characters have been written.
1080 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
1082 * libgomp.texi: Fix typos, use https.
1084 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
1086 * testsuite/libgomp.fortran/optional-map.f90: Add test for
1087 unallocated/disassociated actual arguments to nonallocatable/nonpointer
1088 dummy arguments; those are/shall be regarded as absent arguments.
1089 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
1090 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
1092 2020-01-01 Jakub Jelinek <jakub@redhat.com>
1094 Update copyright years.
1096 * libgomp.texi: Bump @copying's copyright year.
1098 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
1101 * oacc-init.c (goacc_runtime_deinitialize): New function.
1103 2019-12-28 Jakub Jelinek <jakub@redhat.com>
1106 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
1107 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
1109 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
1110 Frederik Harwath <frederik@codesourcery.com>
1111 Thomas Schwinge <tschwinge@codesourcery.com>
1113 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
1114 * libgomp-plugin.h (gomp_device_property_value): New union.
1115 (gomp_device_property_value): New prototype.
1116 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
1118 (acc_device_property_t): New enum.
1119 (acc_get_property, acc_get_property_string): New prototypes.
1120 * oacc-init.c (acc_get_device_type): Also assert that result
1121 is not `acc_device_current'.
1122 (get_property_any, acc_get_property, acc_get_property_string):
1124 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
1125 `acc_property_memory', `acc_property_free_memory',
1126 `acc_property_name', `acc_property_vendor' and
1127 `acc_property_driver' constants. Add `acc_device_property' data
1129 (openacc_internal): Add `acc_get_property' and
1130 `acc_get_property_string' interfaces. Add `acc_get_property_h',
1131 `acc_get_property_string_h', `acc_get_property_l' and
1132 `acc_get_property_string_l'.
1133 * oacc-host.c (host_get_property): New function.
1134 (host_dispatch): Wire it.
1135 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
1136 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
1137 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
1138 * libgomp.texi (OpenACC Runtime Library Routines): Add
1140 (acc_get_property): New node.
1141 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
1143 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
1144 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
1145 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
1147 (GOMP_OFFLOAD_get_property): New function.
1148 (struct ptx_device): Add new field "name".
1149 (cuda_driver_version_s): Add new static variable ...
1150 (nvptx_init): ... and init from here.
1152 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
1153 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
1154 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
1155 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
1156 with test helper functions.
1158 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
1160 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
1162 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
1165 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
1167 * target.c (gomp_map_vars_internal): Restore 'omp declare target
1170 2019-12-19 Julian Brown <julian@codesourcery.com>
1172 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
1173 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
1174 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
1176 2019-12-19 Julian Brown <julian@codesourcery.com>
1177 Cesar Philippidis <cesar@codesourcery.com>
1179 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
1180 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
1181 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
1182 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
1183 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
1184 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
1185 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
1186 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
1187 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
1188 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
1189 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
1190 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
1191 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
1193 2019-12-19 Julian Brown <julian@codesourcery.com>
1195 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
1196 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
1197 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
1198 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
1199 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
1200 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
1201 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
1202 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
1203 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
1204 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
1205 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
1206 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
1208 2019-12-19 Julian Brown <julian@codesourcery.com>
1210 * libgomp.h (struct target_var_desc): Add do_detach flag.
1211 * oacc-init.c (acc_shutdown_1): Free aux block if present.
1212 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
1213 struct components. Tidy up and add some new checks.
1214 (goacc_enter_data_internal): Update call to find_group_last.
1215 (goacc_exit_data_internal): Support detach operations and
1217 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
1218 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
1219 attach/detach in enter/exit data detection code.
1220 * target.c (gomp_map_vars_existing): Initialise do_detach field of
1222 (gomp_map_vars_internal): Support attach.
1223 (gomp_unmap_vars_internal): Support detach.
1225 2019-12-19 Julian Brown <julian@codesourcery.com>
1226 Thomas Schwinge <thomas@codesourcery.com>
1228 * libgomp.h (struct splay_tree_aux): Add attach_count field.
1229 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
1230 * libgomp.map (OACC_2.6): New section. Add acc_attach,
1231 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
1232 acc_detach_finalize_async.
1233 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
1234 acc_detach, acc_detach_async, acc_detach_finalize,
1235 acc_detach_finalize_async): New functions.
1236 * openacc.h (acc_attach, acc_attach_async, acc_detach,
1237 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
1239 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
1240 (gomp_remove_var_internal): Free attachment counts if present.
1241 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
1242 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
1244 2019-12-19 Julian Brown <julian@codesourcery.com>
1245 Cesar Philippidis <cesar@codesourcery.com>
1247 * libgomp.h (gomp_map_val): Add prototype.
1248 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
1249 open-coding device-address calculation.
1250 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
1253 2019-12-19 Julian Brown <julian@codesourcery.com>
1255 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
1256 field for virtual_refcount.
1257 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
1258 (gomp_free_memmap): Remove prototype.
1259 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
1260 instead of calling gomp_free_memmap.
1261 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
1263 (acc_unmap_data): Open code instead of forcing target_mem_desc's
1264 to_free field to NULL then calling gomp_unmap_vars. Handle
1265 REFCOUNT_INFINITY on target blocks.
1266 (goacc_enter_data): Rename to...
1267 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
1268 handling for mapping groups. Use virtual_refcount instead of
1269 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
1270 map_map_vars_async call. Re-do lookup for target pointer return value.
1271 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
1272 renamed goacc_enter_datum function.
1273 (goacc_exit_data): Rename to...
1274 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
1275 (acc_delete, acc_delete_async, acc_delete_finalize,
1276 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
1277 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
1278 goacc_exit_datum function.
1279 (gomp_acc_remove_pointer, find_pointer): Remove functions.
1280 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
1282 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
1283 goacc_exit_data_internal helper functions.
1284 * target.c (gomp_map_vars_internal): Handle
1285 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
1287 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
1288 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
1289 virtual_refcount field instead of dynamic_refcount.
1290 (gomp_free_memmap): Remove function.
1291 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
1292 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
1293 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
1295 2019-12-19 Julian Brown <julian@codesourcery.com>
1296 Thomas Schwinge <thomas@codesourcery.com>
1298 * libgomp.h (struct splay_tree_aux): New.
1299 (struct splay_tree_key_s): Replace link_key field with aux pointer.
1300 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
1302 (gomp_remove_var_internal): Free aux block if present.
1303 (gomp_load_image_to_device): Zero-initialise aux field instead of
1305 (omp_target_associate_pointer): Zero-initialise aux field.
1307 2019-12-18 Jakub Jelinek <jakub@redhat.com>
1310 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
1312 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
1315 2019-12-19 Julian Brown <julian@codesourcery.com>
1316 Maciej W. Rozycki <macro@codesourcery.com>
1317 Tobias Burnus <tobias@codesourcery.com>
1318 Thomas Schwinge <thomas@codesourcery.com>
1320 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
1321 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
1322 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
1323 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
1324 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
1325 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
1326 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
1327 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
1328 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
1330 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
1332 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
1334 (goacc_insert_pointer): ... from here, "present" case.
1335 (goacc_insert_pointer): Inline function into...
1336 (GOACC_enter_exit_data): ... here, and simplify.
1338 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
1340 (goacc_insert_pointer): ... from here, "not present" case.
1342 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
1345 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
1346 'goacc_enter_data', 'goacc_exit_data'.
1348 * oacc-mem.c (delete_copyout): Refactor into...
1349 (goacc_exit_data): ... this. Adjust all users.
1351 * oacc-mem.c (present_create_copy): Refactor into...
1352 (goacc_enter_data): ... this. Adjust all users.
1354 * target.c (gomp_unmap_vars_internal): Add a safeguard to
1357 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
1358 like 'GOMP_MAP_FROM'.
1363 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
1365 (GOACC_enter_exit_data): Simplify accordingly.
1366 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
1368 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
1369 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
1371 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
1373 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
1374 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
1376 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
1378 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
1380 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
1381 'finalize' handling.
1384 * oacc-mem.c (acc_map_data, present_create_copy)
1385 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
1386 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
1387 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
1388 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
1389 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
1390 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
1391 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
1392 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
1395 * target.c (gomp_unmap_tgt): Make it 'static'.
1396 * libgomp.h (gomp_unmap_tgt): Remove.
1398 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
1401 * testsuite/libgomp.c/pr86416-1.c: New.
1402 * testsuite/libgomp.c/pr86416-2.c: New.
1404 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
1406 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
1407 all symbols as public except for the 'use …, only' imported symbol,
1409 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
1410 all symbols from module openacc_kinds as PUBLIC
1411 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
1413 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
1415 2019-12-13 Julian Brown <julian@codesourcery.com>
1419 * libgomp.h (gomp_remove_var_async): Add prototype.
1420 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
1422 * target.c (gomp_unref_tgt): Change return type to bool, indicating
1423 whether target_mem_desc was unmapped.
1424 (gomp_unref_tgt_void): New.
1425 (gomp_remove_var): Reimplement in terms of...
1426 (gomp_remove_var_internal): ...this new helper function.
1427 (gomp_remove_var_async): New, implemented using above helper function.
1428 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
1431 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
1433 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
1434 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
1435 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
1436 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
1437 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
1439 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
1440 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
1442 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
1444 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
1445 as public except for the 'use …, only' imported symbol, which is
1447 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
1448 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
1449 attributes for acc_copyout_finalize and acc_delete_finalize.
1451 2019-12-11 Jakub Jelinek <jakub@redhat.com>
1454 * testsuite/libgomp.fortran/atomic1.f90: New test.
1456 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
1459 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
1460 reference counting for structured 'REFCOUNT_INFINITY'. Add some
1462 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
1463 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
1464 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
1465 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
1466 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
1468 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
1469 * oacc-mem.c: ... here.
1470 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
1471 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
1472 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
1474 * libgomp_g.h: Update.
1476 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
1477 * oacc-async.c: ... here.
1478 * oacc-int.h (goacc_wait): Declare.
1479 * libgomp_g.h: Update
1482 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
1484 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
1486 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
1488 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
1490 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
1492 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
1495 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
1496 Julian Brown <julian@codesourcery.com>
1498 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
1499 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
1501 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
1503 * omp_lib.h.in: Fix spelling of function declaration
1504 omp_get_cancell(l)ation.
1505 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
1507 * env.c: Fix comment typos.
1508 * oacc-host.c: Likewise.
1509 * ordered.c: Likewise.
1512 * config/gcn/task.c: Likewise.
1513 * config/gcn/team.c: Likewise.
1514 * config/nvptx/task.c: Likewise.
1515 * config/nvptx/team.c: Likewise.
1516 * plugin/plugin-gcn.c: Likewise.
1517 * testsuite/libgomp.fortran/jacobi.f: Likewise.
1518 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
1519 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
1521 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
1523 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
1524 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
1525 unnecessary 'dg-additional-options "-w"'.
1527 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
1528 Julian Brown <julian@codesourcery.com>
1533 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
1534 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
1536 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
1538 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
1540 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
1542 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
1545 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
1546 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
1548 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
1550 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
1552 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
1554 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
1556 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
1558 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
1559 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
1560 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
1561 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
1562 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
1563 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
1564 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
1565 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
1566 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
1567 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
1570 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
1571 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
1572 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
1574 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
1576 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
1578 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
1579 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
1582 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
1584 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
1586 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
1588 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
1590 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
1591 ... with their content moved into, and extended in this new file.
1592 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
1594 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
1596 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
1598 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
1601 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
1604 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
1606 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
1608 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
1610 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
1612 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
1614 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
1615 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
1616 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
1617 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
1619 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
1620 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
1622 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
1624 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
1626 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
1627 Kwok Cheung Yeung <kcy@codesourcery.com>
1629 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
1630 if input it a NULL pointer.
1631 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
1632 diagnostic of NULL pointer.
1633 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
1634 * testsuite/libgomp.fortran/optional-map.f90: New.
1635 * testsuite/libgomp.fortran/use_device_addr-1.f90
1636 (test_dummy_opt_callee_1_absent): New.
1637 (test_dummy_opt_call_1): Call it.
1638 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
1639 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
1640 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
1641 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
1642 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
1643 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
1644 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
1645 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
1646 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
1647 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
1648 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
1649 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
1650 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
1651 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
1652 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
1653 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
1655 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
1657 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
1658 expect dg-output of 'Error termination.' for GCN.
1659 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
1660 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
1662 2019-12-04 Jakub Jelinek <jakub@redhat.com>
1665 * testsuite/libgomp.fortran/teams1.f90: New test.
1666 * testsuite/libgomp.fortran/teams2.f90: New test.
1668 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
1670 * oacc-init.c (acc_known_device_type): Add function.
1671 (unknown_device_type_error): Add function.
1672 (name_of_acc_device_t): Change to call unknown_device_type_error
1674 (resolve_device): Use acc_known_device_type.
1675 (acc_init): Fail if acc_device_t argument is not valid.
1676 (acc_shutdown): Likewise.
1677 (acc_get_num_devices): Likewise.
1678 (acc_set_device_type): Likewise.
1679 (acc_get_device_num): Likewise.
1680 (acc_set_device_num): Likewise.
1681 (acc_on_device): Add comment that argument validity is not checked.
1683 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
1685 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
1687 (check_effective_target_openacc_amdgcn_accel_present): New proc.
1688 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
1689 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
1690 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1691 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1693 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1696 * configure.tgt: Avoid IE tls on *-*-musl*.
1698 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
1700 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
1701 adding a common-block test case.
1703 2019-11-29 Jakub Jelinek <jakub@redhat.com>
1706 * testsuite/libgomp.c++/udr-20.C: New test.
1707 * testsuite/libgomp.c++/udr-21.C: New test.
1709 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
1711 * testsuite/lib/libgomp.exp
1712 (check_effective_target_offload_target_nvptx): New proc.
1713 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
1715 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
1716 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
1717 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
1719 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1721 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
1722 * testsuite/libgomp.c/pr39591-2.c: Likewise.
1723 * testsuite/libgomp.c/pr39591-3.c: Likewise.
1724 * testsuite/libgomp.c/private-1.c: Likewise.
1725 * testsuite/libgomp.c/task-1.c: Likewise.
1726 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
1728 2019-11-20 Julian Brown <julian@codesourcery.com>
1730 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
1732 (queue_push_launch): Lock aq->mutex before calling
1733 wait_for_queue_nonfull.
1734 (queue_push_callback): Likewise.
1735 (queue_push_asyncwait): Likewise.
1736 (queue_push_placeholder): Likewise.
1738 2019-11-20 Julian Brown <julian@codesourcery.com>
1740 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
1741 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
1742 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
1745 2019-11-20 Julian Brown <julian@codesourcery.com>
1749 * oacc-mem.c (present_create_copy): Fix device pointer return value in
1750 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
1751 in non-present/create case.
1752 (delete_copyout): Change error condition to fail only on copies outside
1753 of mapped block. Adjust error message accordingly.
1754 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
1755 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
1756 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
1758 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
1759 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
1760 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
1762 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
1764 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
1765 libatomic in build-tree testing.
1767 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
1769 * testsuite/Makefile.in: Regenerate.
1771 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
1773 * testsuite/libgomp.c/target-print-1.c: New file.
1774 * testsuite/libgomp.fortran/target-print-1.f90: New file.
1775 * testsuite/libgomp.oacc-c/print-1.c: New file.
1776 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
1778 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1779 Kwok Cheung Yeung <kcy@codesourcery.com>
1780 Julian Brown <julian@codesourcery.com>
1781 Tom de Vries <tom@codesourcery.com>
1783 * plugin/Makefrag.am: Add amdgcn plugin support.
1784 * plugin/configfrag.ac: Likewise.
1785 * plugin/plugin-gcn.c: New file.
1786 * configure: Regenerate.
1787 * Makefile.in: Regenerate.
1788 * testsuite/Makefile.in: Regenerate.
1790 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1792 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
1793 and use team_malloc variants.
1794 (gomp_gcn_exit_kernel): Use team_free.
1795 * libgomp.h (TEAM_ARENA_SIZE): Define.
1796 (TEAM_ARENA_START): Define.
1797 (TEAM_ARENA_FREE): Define.
1798 (TEAM_ARENA_END): Define.
1799 (team_malloc): New function.
1800 (team_malloc_cleared): New function.
1801 (team_free): New function.
1802 * team.c (gomp_new_team): Initialize and use team_malloc.
1803 (free_team): Use team_free.
1804 (gomp_free_thread): Use team_free.
1805 (gomp_pause_host): Use team_free.
1806 * work.c (gomp_init_work_share): Use team_malloc.
1807 (gomp_fini_work_share): Use team_free.
1809 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1810 Kwok Cheung Yeung <kcy@codesourcery.com>
1811 Julian Brown <julian@codesourcery.com>
1812 Tom de Vries <tom@codesourcery.com>
1814 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
1815 * Makefile.in: Regenerate.
1816 * config.h.in (PLUGIN_GCN): Add new undef.
1817 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
1818 * config/gcn/affinity-fmt.c: New file.
1819 * config/gcn/bar.c: New file.
1820 * config/gcn/bar.h: New file.
1821 * config/gcn/doacross.h: New file.
1822 * config/gcn/icv-device.c: New file.
1823 * config/gcn/oacc-target.c: New file.
1824 * config/gcn/simple-bar.h: New file.
1825 * config/gcn/target.c: New file.
1826 * config/gcn/task.c: New file.
1827 * config/gcn/team.c: New file.
1828 * config/gcn/time.c: New file.
1829 * configure.ac: Add amdgcn*-*-*.
1830 * configure: Regenerate.
1831 * configure.tgt: Add amdgcn*-*-*.
1832 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
1833 * libgomp.h (gcn_thrs): Add amdgcn variant.
1834 (set_gcn_thrs): Likewise.
1835 (gomp_thread): Likewise.
1836 * oacc-int.h (goacc_thread): Likewise.
1837 * oacc-target.c: New file.
1838 * openacc.f90 (acc_device_gcn): New parameter.
1839 * openacc.h (acc_device_t): Add acc_device_gcn.
1840 * team.c (gomp_free_pool_helper): Add amdgcn support.
1842 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1843 Julian Brown <julian@codesourcery.com>
1845 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
1847 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
1849 * oacc-host.c (host_openacc_async_construct): Add device parameter.
1850 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
1853 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1855 * configure.tgt (nvptx*-*-*): Add "accel" directory.
1856 * config/nvptx/libgomp-plugin.c: Move ...
1857 * config/accel/libgomp-plugin.c: ... to here.
1858 * config/nvptx/lock.c: Move ...
1859 * config/accel/lock.c: ... to here.
1860 * config/nvptx/mutex.c: Move ...
1861 * config/accel/mutex.c: ... to here.
1862 * config/nvptx/mutex.h: Move ...
1863 * config/accel/mutex.h: ... to here.
1864 * config/nvptx/oacc-async.c: Move ...
1865 * config/accel/oacc-async.c: ... to here.
1866 * config/nvptx/oacc-cuda.c: Move ...
1867 * config/accel/oacc-cuda.c: ... to here.
1868 * config/nvptx/oacc-host.c: Move ...
1869 * config/accel/oacc-host.c: ... to here.
1870 * config/nvptx/oacc-init.c: Move ...
1871 * config/accel/oacc-init.c: ... to here.
1872 * config/nvptx/oacc-mem.c: Move ...
1873 * config/accel/oacc-mem.c: ... to here.
1874 * config/nvptx/oacc-plugin.c: Move ...
1875 * config/accel/oacc-plugin.c: ... to here.
1876 * config/nvptx/omp-lock.h: Move ...
1877 * config/accel/omp-lock.h: ... to here.
1878 * config/nvptx/openacc.f90: Move ...
1879 * config/accel/openacc.f90: ... to here.
1880 * config/nvptx/pool.h: Move ...
1881 * config/accel/pool.h: ... to here.
1882 * config/nvptx/proc.c: Move ...
1883 * config/accel/proc.c: ... to here.
1884 * config/nvptx/ptrlock.c: Move ...
1885 * config/accel/ptrlock.c: ... to here.
1886 * config/nvptx/ptrlock.h: Move ...
1887 * config/accel/ptrlock.h: ... to here.
1888 * config/nvptx/sem.c: Move ...
1889 * config/accel/sem.c: ... to here.
1890 * config/nvptx/sem.h: Move ...
1891 * config/accel/sem.h: ... to here.
1892 * config/nvptx/thread-stacksize.h: Move ...
1893 * config/accel/thread-stacksize.h: ... to here.
1895 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
1896 Tobias Burnus <tobias@codesourcery.com>
1897 Frederik Harwath <frederik@codesourcery.com>
1898 Thomas Schwinge <thomas@codesourcery.com>
1901 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
1902 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
1903 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
1905 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
1906 Kwok Cheung Yeung <kcy@codesourcery.com>
1908 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
1909 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
1911 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
1913 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
1915 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
1917 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
1918 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
1920 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
1922 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
1923 Add expected warnings about missing reduction clauses.
1924 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
1926 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
1928 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
1931 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
1933 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
1934 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
1935 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
1936 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
1937 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
1938 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
1940 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
1943 * testsuite/libgomp.fortran/allocatable2.f90: Use
1944 unique numbers with 'stop'.
1945 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
1946 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
1947 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
1948 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
1949 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
1951 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
1953 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
1954 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
1955 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
1956 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
1957 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
1958 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
1960 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
1962 * testsuite/libgomp.fortran/target9.f90: New.
1964 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
1966 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
1967 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
1968 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
1969 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
1970 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
1971 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
1972 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
1973 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
1974 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
1975 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
1976 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
1977 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
1978 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
1979 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
1980 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
1981 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
1982 * testsuite/libgomp.fortran/associate1.f90: Ditto.
1983 * testsuite/libgomp.fortran/associate2.f90: Ditto.
1984 * testsuite/libgomp.fortran/associate3.f90: Ditto.
1985 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
1986 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
1987 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
1988 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
1989 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
1990 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
1991 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
1992 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
1993 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
1994 * testsuite/libgomp.fortran/character1.f90: Ditto.
1995 * testsuite/libgomp.fortran/character2.f90: Ditto.
1996 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
1997 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
1998 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
1999 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
2000 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
2001 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
2002 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
2003 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
2004 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
2005 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
2006 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
2007 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
2008 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
2009 * testsuite/libgomp.fortran/do1.f90: Ditto.
2010 * testsuite/libgomp.fortran/do2.f90: Ditto.
2011 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
2012 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
2013 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
2014 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
2015 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
2016 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
2017 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
2018 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
2019 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
2020 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
2021 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
2022 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
2023 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
2024 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
2025 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
2026 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
2027 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
2028 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
2029 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
2030 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
2031 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
2032 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
2033 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
2034 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
2035 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
2036 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
2037 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
2038 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
2039 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
2040 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
2041 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
2042 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
2043 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
2044 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
2045 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
2046 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
2047 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
2048 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
2049 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
2050 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
2051 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
2052 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
2053 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
2054 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
2055 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
2056 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
2057 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
2058 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
2059 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
2060 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
2061 * testsuite/libgomp.fortran/lib1.f90: Ditto.
2062 * testsuite/libgomp.fortran/lib4.f90: Ditto.
2063 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
2064 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
2065 * testsuite/libgomp.fortran/nested1.f90: Ditto.
2066 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
2067 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
2068 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
2069 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
2070 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
2071 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
2072 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
2073 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
2074 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
2075 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
2076 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
2077 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
2078 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
2079 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
2080 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
2081 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
2082 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
2083 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
2084 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
2085 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
2086 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
2087 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
2088 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
2089 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
2090 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
2091 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
2092 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
2093 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
2094 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
2095 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
2096 * testsuite/libgomp.fortran/pr28390.f: Ditto.
2097 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
2098 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
2099 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
2100 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
2101 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
2102 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
2103 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
2104 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
2105 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
2106 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
2107 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
2108 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
2109 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
2110 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
2111 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
2112 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
2113 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
2114 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
2115 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
2116 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
2117 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
2118 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
2119 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
2120 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
2121 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
2122 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
2123 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
2124 * testsuite/libgomp.fortran/reference1.f90: Ditto.
2125 * testsuite/libgomp.fortran/reference2.f90: Ditto.
2126 * testsuite/libgomp.fortran/retval1.f90: Ditto.
2127 * testsuite/libgomp.fortran/retval2.f90: Ditto.
2128 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
2129 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
2130 * testsuite/libgomp.fortran/simd1.f90: Ditto.
2131 * testsuite/libgomp.fortran/simd2.f90: Ditto.
2132 * testsuite/libgomp.fortran/simd3.f90: Ditto.
2133 * testsuite/libgomp.fortran/simd4.f90: Ditto.
2134 * testsuite/libgomp.fortran/simd5.f90: Ditto.
2135 * testsuite/libgomp.fortran/simd6.f90: Ditto.
2136 * testsuite/libgomp.fortran/simd7.f90: Ditto.
2137 * testsuite/libgomp.fortran/stack.f90: Ditto.
2138 * testsuite/libgomp.fortran/strassen.f90: Ditto.
2139 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
2140 * testsuite/libgomp.fortran/tabs2.f: Ditto.
2141 * testsuite/libgomp.fortran/target1.f90: Ditto.
2142 * testsuite/libgomp.fortran/target2.f90: Ditto.
2143 * testsuite/libgomp.fortran/target3.f90: Ditto.
2144 * testsuite/libgomp.fortran/target4.f90: Ditto.
2145 * testsuite/libgomp.fortran/target5.f90: Ditto.
2146 * testsuite/libgomp.fortran/target6.f90: Ditto.
2147 * testsuite/libgomp.fortran/target7.f90: Ditto.
2148 * testsuite/libgomp.fortran/target8.f90: Ditto.
2149 * testsuite/libgomp.fortran/task1.f90: Ditto.
2150 * testsuite/libgomp.fortran/task2.f90: Ditto.
2151 * testsuite/libgomp.fortran/task3.f90: Ditto.
2152 * testsuite/libgomp.fortran/task4.f90: Ditto.
2153 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
2154 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
2155 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
2156 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
2157 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
2158 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
2159 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
2160 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
2161 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
2162 * testsuite/libgomp.fortran/udr1.f90: Ditto.
2163 * testsuite/libgomp.fortran/udr10.f90: Ditto.
2164 * testsuite/libgomp.fortran/udr11.f90: Ditto.
2165 * testsuite/libgomp.fortran/udr12.f90: Ditto.
2166 * testsuite/libgomp.fortran/udr13.f90: Ditto.
2167 * testsuite/libgomp.fortran/udr14.f90: Ditto.
2168 * testsuite/libgomp.fortran/udr15.f90: Ditto.
2169 * testsuite/libgomp.fortran/udr2.f90: Ditto.
2170 * testsuite/libgomp.fortran/udr3.f90: Ditto.
2171 * testsuite/libgomp.fortran/udr4.f90: Ditto.
2172 * testsuite/libgomp.fortran/udr5.f90: Ditto.
2173 * testsuite/libgomp.fortran/udr6.f90: Ditto.
2174 * testsuite/libgomp.fortran/udr7.f90: Ditto.
2175 * testsuite/libgomp.fortran/udr8.f90: Ditto.
2176 * testsuite/libgomp.fortran/udr9.f90: Ditto.
2177 * testsuite/libgomp.fortran/vla1.f90: Ditto.
2178 * testsuite/libgomp.fortran/vla2.f90: Ditto.
2179 * testsuite/libgomp.fortran/vla3.f90: Ditto.
2180 * testsuite/libgomp.fortran/vla4.f90: Ditto.
2181 * testsuite/libgomp.fortran/vla5.f90: Ditto.
2182 * testsuite/libgomp.fortran/vla6.f90: Ditto.
2183 * testsuite/libgomp.fortran/vla7.f90: Ditto.
2184 * testsuite/libgomp.fortran/vla8.f90: Ditto.
2185 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
2186 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
2188 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
2190 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
2191 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
2192 Ditto; add 'dg-do run' for torture testing.
2193 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
2194 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
2195 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
2196 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
2197 * testsuite/libgomp.fortran/pr28390.f: Ditto.
2198 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
2199 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
2200 * testsuite/libgomp.fortran/task2.f90: Ditto.
2201 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
2202 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
2203 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
2204 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
2205 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
2206 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
2208 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
2210 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
2211 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
2212 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
2213 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
2214 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
2215 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
2216 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
2217 Use 'stop' not abort().
2218 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
2219 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
2220 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
2221 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
2222 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
2223 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
2224 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
2225 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
2226 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
2227 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
2228 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
2229 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
2230 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
2231 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
2232 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
2233 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
2234 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
2236 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
2238 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
2240 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
2242 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
2244 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
2246 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
2248 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
2250 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
2252 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
2254 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
2256 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
2258 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
2260 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
2262 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
2263 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
2264 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
2265 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
2266 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
2267 Likewise and also add 'dg-do run'.
2268 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
2271 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
2272 Tobias Burnus <tobias@codesourcery.com>
2274 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
2275 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
2276 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
2278 2019-10-14 Jakub Jelinek <jakub@redhat.com>
2281 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
2284 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
2286 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
2287 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
2289 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
2292 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
2295 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
2298 * testsuite/libgomp.fortran/fortran.exp: Conditionally
2300 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
2302 2019-10-09 Jakub Jelinek <jakub@redhat.com>
2305 * target.c (gomp_map_vars_internal): Readd the previous
2306 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
2307 though do that just in the !not_found_cnt case.
2309 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
2311 * gfortran.dg/gomp/target-simd.f90: New.
2313 2019-10-02 Julian Brown <julian@codesourcery.com>
2314 Cesar Philippidis <cesar@codesourcery.com>
2316 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
2317 * target.c (FIELD_TGT_EMPTY): Define.
2318 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
2319 as switch instead of list of ifs.
2320 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
2322 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
2324 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
2325 include. Replace alloca () with __builtin_alloca ().
2326 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
2328 2019-10-01 Jakub Jelinek <jakub@redhat.com>
2330 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
2331 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
2332 * oacc-parallel.c: Don't include "libgomp_g.h".
2333 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
2334 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
2335 * aclocal.m4: Regenerated.
2336 * config.h.in: Regenerated.
2337 * configure: Regenerated.
2338 * Makefile.in: Regenerated.
2340 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
2342 * libgomp_g.h: Include stdint.h instead of gstdint.h.
2344 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
2346 * configure: Regenerate.
2348 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
2350 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
2351 string is initialized.
2353 2019-09-06 Florian Weimer <fweimer@redhat.com>
2355 * configure: Regenerate.
2357 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
2360 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
2361 scanning to conform to the GNU Coding Standards.
2362 * configure: Regenerate.
2364 2019-08-28 Jakub Jelinek <jakub@redhat.com>
2367 * testsuite/libgomp.c/scan-21.c: New test.
2368 * testsuite/libgomp.c/scan-22.c: New test.
2370 2019-08-27 Jakub Jelinek <jakub@redhat.com>
2373 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
2375 * testsuite/libgomp.c/scan-12.c: Likewise.
2376 * testsuite/libgomp.c/scan-13.c: Likewise.
2377 * testsuite/libgomp.c/scan-14.c: Likewise.
2378 * testsuite/libgomp.c/scan-15.c: Likewise.
2379 * testsuite/libgomp.c/scan-16.c: Likewise.
2380 * testsuite/libgomp.c/scan-17.c: Likewise.
2381 * testsuite/libgomp.c/scan-18.c: Likewise.
2382 * testsuite/libgomp.c/scan-19.c: Likewise.
2383 * testsuite/libgomp.c/scan-20.c: Likewise.
2384 * testsuite/libgomp.c++/scan-9.C: Likewise.
2385 * testsuite/libgomp.c++/scan-10.C: Likewise.
2386 * testsuite/libgomp.c++/scan-11.C: Likewise.
2387 * testsuite/libgomp.c++/scan-12.C: Likewise.
2388 * testsuite/libgomp.c++/scan-14.C: Likewise.
2389 * testsuite/libgomp.c++/scan-15.C: Likewise.
2390 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
2391 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
2392 * testsuite/libgomp.c++/scan-16.C: Likewise.
2394 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
2397 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
2398 -std=legacy so invalid code in the test case is accepted.
2400 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
2403 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
2406 2019-08-08 Jakub Jelinek <jakub@redhat.com>
2408 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
2409 perform the lookup in the first loop only if !not_found_cnt, otherwise
2410 perform lookups for it in the second loop guarded with
2411 if (not_found_cnt || has_firstprivate).
2412 * testsuite/libgomp.c/target-37.c: New test.
2413 * testsuite/libgomp.c++/target-22.C: New test.
2415 2019-08-07 Jakub Jelinek <jakub@redhat.com>
2417 * testsuite/libgomp.c/target-18.c (struct S): New type.
2418 (foo): Use use_device_addr clause instead of use_device_ptr clause
2419 where required by OpenMP 5.0, add further tests for both use_device_ptr
2420 and use_device_addr clauses.
2421 * testsuite/libgomp.c++/target-9.C (struct S): New type.
2422 (foo): Use use_device_addr clause instead of use_device_ptr clause
2423 where required by OpenMP 5.0, add further tests for both use_device_ptr
2424 and use_device_addr clauses. Add t and u arguments.
2425 (main): Adjust caller.
2427 2019-08-06 Jakub Jelinek <jakub@redhat.com>
2429 * testsuite/libgomp.c++/loop-13.C: New test.
2430 * testsuite/libgomp.c++/loop-14.C: New test.
2431 * testsuite/libgomp.c++/loop-15.C: New test.
2433 2019-07-31 Jakub Jelinek <jakub@redhat.com>
2436 * testsuite/libgomp.c++/for-27.C: New test.
2438 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
2440 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
2441 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
2443 2019-07-20 Jakub Jelinek <jakub@redhat.com>
2445 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
2447 2019-07-08 Jakub Jelinek <jakub@redhat.com>
2449 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
2450 * testsuite/libgomp.c++/scan-16.C: Likewise.
2452 2019-07-06 Jakub Jelinek <jakub@redhat.com>
2454 * testsuite/libgomp.c/scan-19.c: New test.
2455 * testsuite/libgomp.c/scan-20.c: New test.
2457 * testsuite/libgomp.c/scan-11.c: New test.
2458 * testsuite/libgomp.c/scan-12.c: New test.
2459 * testsuite/libgomp.c/scan-13.c: New test.
2460 * testsuite/libgomp.c/scan-14.c: New test.
2461 * testsuite/libgomp.c/scan-15.c: New test.
2462 * testsuite/libgomp.c/scan-16.c: New test.
2463 * testsuite/libgomp.c/scan-17.c: New test.
2464 * testsuite/libgomp.c/scan-18.c: New test.
2465 * testsuite/libgomp.c++/scan-9.C: New test.
2466 * testsuite/libgomp.c++/scan-10.C: New test.
2467 * testsuite/libgomp.c++/scan-11.C: New test.
2468 * testsuite/libgomp.c++/scan-12.C: New test.
2469 * testsuite/libgomp.c++/scan-13.C: New test.
2470 * testsuite/libgomp.c++/scan-14.C: New test.
2471 * testsuite/libgomp.c++/scan-15.C: New test.
2472 * testsuite/libgomp.c++/scan-16.C: New test.
2474 2019-07-04 Jakub Jelinek <jakub@redhat.com>
2476 * testsuite/libgomp.c/scan-9.c: New test.
2477 * testsuite/libgomp.c/scan-10.c: New test.
2479 2019-07-03 Jakub Jelinek <jakub@redhat.com>
2481 * testsuite/libgomp.c++/scan-1.C: New test.
2482 * testsuite/libgomp.c++/scan-2.C: New test.
2483 * testsuite/libgomp.c++/scan-3.C: New test.
2484 * testsuite/libgomp.c++/scan-4.C: New test.
2485 * testsuite/libgomp.c++/scan-5.C: New test.
2486 * testsuite/libgomp.c++/scan-6.C: New test.
2487 * testsuite/libgomp.c++/scan-7.C: New test.
2488 * testsuite/libgomp.c++/scan-8.C: New test.
2489 * testsuite/libgomp.c/scan-1.c: New test.
2490 * testsuite/libgomp.c/scan-2.c: New test.
2491 * testsuite/libgomp.c/scan-3.c: New test.
2492 * testsuite/libgomp.c/scan-4.c: New test.
2493 * testsuite/libgomp.c/scan-5.c: New test.
2494 * testsuite/libgomp.c/scan-6.c: New test.
2495 * testsuite/libgomp.c/scan-7.c: New test.
2496 * testsuite/libgomp.c/scan-8.c: New test.
2498 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
2500 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
2501 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
2504 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
2507 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
2509 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
2512 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
2515 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
2517 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
2518 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
2519 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
2520 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
2523 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
2526 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
2528 2019-06-16 Tom de Vries <tdevries@suse.de>
2530 PR tree-optimization/89376
2531 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
2533 2019-06-15 Tom de Vries <tdevries@suse.de>
2535 PR tree-optimization/89713
2536 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
2537 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
2539 2019-06-15 Jakub Jelinek <jakub@redhat.com>
2542 * testsuite/libgomp.c/pr90779.c: New test.
2543 * testsuite/libgomp.fortran/pr90779.f90: New test.
2545 2019-06-15 Tom de Vries <tdevries@suse.de>
2547 PR tree-optimization/90009
2548 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
2550 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
2552 PR tree-optimization/89713
2553 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
2555 2019-06-11 Jakub Jelinek <jakub@redhat.com>
2558 * testsuite/libgomp.c/pr90811.c: New test.
2560 2019-06-05 Jakub Jelinek <jakub@redhat.com>
2562 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
2563 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
2565 2019-06-04 Jakub Jelinek <jakub@redhat.com>
2567 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
2568 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
2569 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
2570 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
2572 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2574 * configure.ac: Call AX_COUNT_CPUS.
2575 Substitute CPU_COUNT.
2576 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
2578 * aclocal.m4: Regenerate.
2579 * configure: Regenerate.
2580 * Makefile.in, testsuite/Makefile.in: Regenerate.
2582 2019-05-29 Jakub Jelinek <jakub@redhat.com>
2584 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
2586 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
2587 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
2588 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
2590 2019-05-27 Jakub Jelinek <jakub@redhat.com>
2592 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
2594 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
2597 * work.c (gomp_init_work_share): Instead of aligning final ordered
2598 value to multiples of long long alignment, align to that the
2599 first part (ordered team ids) and if inline_ordered_team_ids
2600 is not on a long long alignment boundary within the structure,
2601 use __alignof__ (long long) - 1 pad size always.
2602 * loop.c (GOMP_loop_start): Fix *mem computation if
2603 inline_ordered_team_ids is not aligned on long long alignment boundary
2604 within the structure.
2605 * loop-ull.c (GOMP_loop_ull_start): Likewise.
2606 * sections.c (GOMP_sections2_start): Likewise.
2608 2019-05-24 Jakub Jelinek <jakub@redhat.com>
2610 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
2611 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
2614 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
2615 HAVE_INTTYPES_H is defined.
2616 (print_uint64_t): New typedef.
2617 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
2618 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
2619 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
2620 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
2621 before casting to void *.
2622 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
2623 * oacc-mem.c: Don't include config.h nor stdint.h.
2624 * target.c: Don't include config.h.
2625 * oacc-cuda.c: Likewise.
2626 * oacc-host.c: Don't include stdint.h.
2628 2019-05-20 Jakub Jelinek <jakub@redhat.com>
2631 * alloc.c (_GNU_SOURCE): Define.
2633 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
2635 * acc_prof.h: New file.
2636 * oacc-profiling.c: Likewise.
2637 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
2638 Add these, respectively.
2639 * Makefile.in: Regenerate.
2640 * env.c (initialize_env): Call goacc_profiling_initialize.
2641 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
2642 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
2643 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
2644 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
2645 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
2646 acc_prof_register, acc_prof_unregister, and acc_register_library.
2647 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
2648 GOMP_PLUGIN_goacc_thread.
2649 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
2650 prof_callbacks_enabled members.
2651 (goacc_prof_enabled, goacc_profiling_initialize)
2652 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
2653 (goacc_profiling_dispatch): Declare.
2654 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
2655 (GOACC_PROFILING_SETUP_P): Define.
2656 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
2657 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
2658 OpenACC Profiling Interface.
2659 * oacc-cuda.c (acc_get_current_cuda_device)
2660 (acc_get_current_cuda_context, acc_get_cuda_stream)
2661 (acc_set_cuda_stream): Likewise.
2662 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
2663 (acc_init, acc_set_device_type, acc_get_device_type)
2664 (acc_get_device_num, goacc_lazy_initialize): Likewise.
2665 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
2666 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
2667 (acc_unmap_data, present_create_copy, delete_copyout)
2668 (update_dev_host): Likewise.
2669 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
2670 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
2672 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
2673 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
2675 * libgomp.texi: Update.
2676 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
2678 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
2679 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
2681 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
2683 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
2685 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
2688 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
2690 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
2691 (struct goacc_asyncqueue_list): Likewise.
2692 (goacc_aq): Likewise.
2693 (goacc_aq_list): Likewise.
2694 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
2695 (GOMP_OFFLOAD_openacc_async_test): Remove.
2696 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
2697 (GOMP_OFFLOAD_openacc_async_wait): Remove.
2698 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
2699 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
2700 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
2701 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
2702 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
2703 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
2704 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
2705 (GOMP_OFFLOAD_openacc_async_exec): Declare.
2706 (GOMP_OFFLOAD_openacc_async_construct): Declare.
2707 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
2708 (GOMP_OFFLOAD_openacc_async_test): Declare.
2709 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
2710 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
2711 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
2712 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
2713 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
2715 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
2716 (gomp_acc_insert_pointer): Adjust declaration.
2717 (gomp_copy_host2dev): New declaration.
2718 (gomp_copy_dev2host): Likewise.
2719 (gomp_map_vars_async): Likewise.
2720 (gomp_unmap_tgt): Likewise.
2721 (gomp_unmap_vars_async): Likewise.
2722 (gomp_fini_device): Likewise.
2724 * oacc-async.c (get_goacc_thread): New function.
2725 (get_goacc_thread_device): New function.
2726 (lookup_goacc_asyncqueue): New function.
2727 (get_goacc_asyncqueue): New function.
2728 (acc_async_test): Adjust code to use new async design.
2729 (acc_async_test_all): Likewise.
2730 (acc_wait): Likewise.
2731 (acc_wait_async): Likewise.
2732 (acc_wait_all): Likewise.
2733 (acc_wait_all_async): Likewise.
2734 (goacc_async_free): New function.
2735 (goacc_init_asyncqueues): Likewise.
2736 (goacc_fini_asyncqueues): Likewise.
2737 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
2739 (acc_set_cuda_stream): Likewise.
2740 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
2741 (host_openacc_register_async_cleanup): Remove.
2742 (host_openacc_async_exec): New function.
2743 (host_openacc_async_test): Adjust parameters.
2744 (host_openacc_async_test_all): Remove.
2745 (host_openacc_async_wait): Remove.
2746 (host_openacc_async_wait_async): Remove.
2747 (host_openacc_async_wait_all): Remove.
2748 (host_openacc_async_wait_all_async): Remove.
2749 (host_openacc_async_set_async): Remove.
2750 (host_openacc_async_synchronize): New function.
2751 (host_openacc_async_serialize): New function.
2752 (host_openacc_async_host2dev): New function.
2753 (host_openacc_async_dev2host): New function.
2754 (host_openacc_async_queue_callback): New function.
2755 (host_openacc_async_construct): New function.
2756 (host_openacc_async_destruct): New function.
2757 (struct gomp_device_descr host_dispatch): Remove initialization of old
2758 interface, add initialization of new async sub-struct.
2759 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
2760 (goacc_attach_host_thread_to_device): Remove old async code usage.
2761 * oacc-int.h (goacc_init_asyncqueues): New declaration.
2762 (goacc_fini_asyncqueues): Likewise.
2763 (goacc_async_copyout_unmap_vars): Likewise.
2764 (goacc_async_free): Likewise.
2765 (get_goacc_asyncqueue): Likewise.
2766 (lookup_goacc_asyncqueue): Likewise.
2767 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
2769 (present_create_copy): Adjust code to use new async design.
2770 (delete_copyout): Likewise.
2771 (update_dev_host): Likewise.
2772 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
2774 (gomp_acc_remove_pointer): Adjust code to use new async design.
2775 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
2777 (GOACC_enter_exit_data): Likewise.
2778 (goacc_wait): Likewise.
2779 (GOACC_update): Likewise.
2780 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
2781 when called, warn as obsolete in comment.
2782 * target.c (goacc_device_copy_async): New function.
2783 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
2784 add goacc_device_copy_async case.
2785 (gomp_copy_dev2host): Likewise.
2786 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
2787 (gomp_map_pointer): Likewise.
2788 (gomp_map_fields_existing): Likewise.
2789 (gomp_map_vars_internal): New always_inline function, renamed from
2791 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
2792 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
2793 passing goacc_asyncqueue argument.
2794 (gomp_unmap_tgt): Remove static, add attribute_hidden.
2795 (gomp_unref_tgt): New function.
2796 (gomp_unmap_vars_internal): New always_inline function, renamed from
2798 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
2799 (gomp_unmap_vars_async): Implement by calling
2800 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
2801 (gomp_fini_device): New function.
2802 (gomp_exit_data): Adjust gomp_copy_dev2host call.
2803 (gomp_load_plugin_for_device): Remove old interface, adjust to load
2804 new async interface.
2805 (gomp_target_fini): Adjust code to call gomp_fini_device.
2807 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
2808 (struct ptx_stream): Remove.
2809 (struct nvptx_thread): Remove current_stream field.
2810 (cuda_map_create): Remove.
2811 (cuda_map_destroy): Remove.
2816 (struct goacc_asyncqueue): Define.
2817 (struct nvptx_callback): Define.
2818 (struct ptx_free_block): Define.
2819 (struct ptx_device): Remove null_stream, active_streams, async_streams,
2820 stream_lock, and next fields.
2821 (enum ptx_event_type): Remove.
2822 (struct ptx_event): Remove.
2823 (ptx_event_lock): Remove.
2824 (ptx_events): Remove.
2825 (init_streams_for_device): Remove.
2826 (fini_streams_for_device): Remove.
2827 (select_stream_for_async): Remove.
2828 (nvptx_init): Remove ptx_events and ptx_event_lock references.
2829 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
2831 (nvptx_open_device): Add free_blocks initialization, remove
2832 init_streams_for_device call.
2833 (nvptx_close_device): Remove fini_streams_for_device call, add
2834 free_blocks destruct code.
2836 (event_add): Remove.
2837 (nvptx_exec): Adjust parameters and code.
2838 (nvptx_free): Likewise.
2839 (nvptx_host2dev): Remove.
2840 (nvptx_dev2host): Remove.
2841 (nvptx_set_async): Remove.
2842 (nvptx_async_test): Remove.
2843 (nvptx_async_test_all): Remove.
2844 (nvptx_wait): Remove.
2845 (nvptx_wait_async): Remove.
2846 (nvptx_wait_all): Remove.
2847 (nvptx_wait_all_async): Remove.
2848 (nvptx_get_cuda_stream): Remove.
2849 (nvptx_set_cuda_stream): Remove.
2850 (GOMP_OFFLOAD_alloc): Adjust code.
2851 (GOMP_OFFLOAD_free): Likewise.
2852 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
2853 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
2854 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
2855 (GOMP_OFFLOAD_openacc_async_wait): Remove.
2856 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
2857 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
2858 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
2859 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
2860 (cuda_free_argmem): New function.
2861 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
2862 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
2863 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
2864 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
2865 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
2866 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
2867 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
2868 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
2869 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
2870 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
2871 (cuda_callback_wrapper): New function.
2872 (cuda_memcpy_sanity_check): New function.
2873 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
2874 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
2875 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
2876 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
2878 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
2881 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
2883 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
2885 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
2887 2019-03-27 Kevin Buettner <kevinb@redhat.com>
2889 * team.c (gomp_team_start): Initialize pool->threads[0].
2891 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
2893 * testsuite/libgomp.oacc-c++/c++.exp: Specify
2894 "-foffload=$offload_target".
2895 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2896 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2897 * testsuite/lib/libgomp.exp
2898 (check_effective_target_openacc_nvidia_accel_configured): Remove,
2899 as (conceptually) merged into
2900 check_effective_target_openacc_nvidia_accel_selected. Adjust all
2903 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
2904 * testsuite/libgomp-test-support.exp.in: Adjust.
2905 * testsuite/lib/libgomp.exp: Likewise. Don't populate
2906 openacc_device_types_s.
2907 (offload_target_to_openacc_device_type): New proc.
2908 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
2909 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2910 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2911 * Makefile.in: Regenerate.
2912 * configure: Likewise.
2913 * testsuite/Makefile.in: Likewise.
2915 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
2916 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
2917 instead of OFFLOAD_TARGETS.
2918 * target.c (gomp_target_init): Adjust.
2919 * testsuite/libgomp-test-support.exp.in: Likewise.
2920 * testsuite/lib/libgomp.exp: Likewise. Populate
2921 openacc_device_types_s instead of offload_targets_s_openacc.
2922 (check_effective_target_openacc_nvidia_accel_selected)
2923 (check_effective_target_openacc_host_selected): Adjust.
2924 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
2925 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2926 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2927 * Makefile.in: Regenerate.
2928 * config.h.in: Likewise.
2929 * configure: Likewise.
2930 * testsuite/Makefile.in: Likewise.
2932 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
2933 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
2934 "offloading: supported, but hardware not accessible".
2935 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2936 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2938 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
2941 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
2943 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
2944 and related adjustment.
2946 2019-01-30 Jakub Jelinek <jakub@redhat.com>
2949 * testsuite/libgomp.c++/pr88988.C: New test.
2951 2019-01-28 Jakub Jelinek <jakub@redhat.com>
2954 * testsuite/libgomp.c/pr89002.c: New test.
2956 2019-01-28 Richard Biener <rguenther@suse.de>
2959 PR tree-optimization/86865
2960 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
2962 2019-01-24 Tom de Vries <tdevries@suse.de>
2964 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
2965 once instantiated_devices drops to 0.
2967 2019-01-23 Tom de Vries <tdevries@suse.de>
2970 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
2972 (nvptx_exec): Don't call map_push if mapnum == 0.
2973 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
2975 2019-01-23 Tom de Vries <tdevries@suse.de>
2979 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
2980 (map_fini): Remove "assert (!s->map->active)".
2981 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
2983 2019-01-23 Tom de Vries <tdevries@suse.de>
2986 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
2987 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
2989 2019-01-15 Tom de Vries <tdevries@suse.de>
2992 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
2995 2019-01-12 Tom de Vries <tdevries@suse.de>
2997 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
2998 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
2999 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
3000 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
3002 2019-01-12 Tom de Vries <tdevries@suse.de>
3004 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
3006 2019-01-12 Tom de Vries <tdevries@suse.de>
3008 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
3009 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
3010 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
3012 2019-01-12 Tom de Vries <tdevries@suse.de>
3015 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
3016 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
3018 2019-01-12 Tom de Vries <tdevries@suse.de>
3021 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
3022 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
3024 2019-01-12 Tom de Vries <tdevries@suse.de>
3026 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
3027 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
3028 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
3030 2019-01-12 Tom de Vries <tdevries@suse.de>
3032 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
3033 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
3034 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
3036 2019-01-12 Tom de Vries <tdevries@suse.de>
3038 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
3039 resources diagnostic.
3041 2019-01-12 Tom de Vries <tdevries@suse.de>
3043 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
3044 vector length to be 128.
3045 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
3046 length 2097152 to be reduced to 1024 instead of 32.
3048 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
3049 James Norris <jnorris@codesourcery.com>
3051 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
3052 Library Routines", and "Environment Variables".
3054 2019-01-11 Tom de Vries <tdevries@suse.de>
3056 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
3059 2019-01-11 Tom de Vries <tdevries@suse.de>
3061 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
3063 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
3064 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
3065 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
3066 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
3068 2019-01-11 Tom de Vries <tdevries@suse.de>
3070 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
3073 2019-01-10 Nathan Sidwell <nathan@acm.org>
3074 Julian Brown <julian@codesourcery.com>
3077 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
3078 * testsuite/libgomp.oacc-c++/pr71959.C: New.
3080 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3082 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
3085 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3087 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
3088 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
3091 2019-01-09 Tom de Vries <tdevries@suse.de>
3094 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
3095 #define instead of "const int".
3096 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
3097 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
3098 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
3099 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
3101 2019-01-09 Tom de Vries <tdevries@suse.de>
3103 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
3106 2019-01-07 Tom de Vries <tdevries@suse.de>
3108 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
3109 GOMP_OPENACC_DIM argument.
3111 2019-01-03 Tom de Vries <tdevries@suse.de>
3113 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
3114 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
3116 2019-01-01 Jakub Jelinek <jakub@redhat.com>
3118 Update copyright years.
3120 2019-01-01 Jakub Jelinek <jakub@redhat.com>
3122 * libgomp.texi: Bump @copying's copyright year.
3124 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
3126 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
3127 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
3128 (GOACC_declare): Redefine the "device" argument to "flags".
3130 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
3131 Cesar Philippidis <cesar@codesourcery.com>
3133 * target.c (struct gomp_coalesce_chunk): New structure.
3134 (struct gomp_coalesce_buf): Update the chunks member to use that
3135 type. Adjust all users.
3137 2018-12-19 Tom de Vries <tdevries@suse.de>
3139 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
3140 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
3141 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
3143 2018-12-19 Tom de Vries <tdevries@suse.de>
3145 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
3146 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
3147 gcc/testsuite/gcc.dg/goacc.
3148 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
3150 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
3151 Chung-Lin Tang <cltang@codesourcery.com>
3153 * oacc-mem.c (acc_present_or_create): Remove definition and change
3154 to alias of acc_create.
3155 (acc_present_or_copyin): Remove definition and change to alias of
3157 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
3158 of acc_present_or_create.
3159 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
3160 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
3161 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
3162 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
3163 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
3164 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
3165 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
3166 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
3167 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
3168 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
3169 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
3170 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
3171 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
3172 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
3173 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
3174 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
3176 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
3179 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
3180 "identical parameters".
3181 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
3182 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
3185 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
3186 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
3189 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
3190 (nvptx_wait_async): Unseen async-argument is a no-op.
3191 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
3192 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
3193 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
3194 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
3195 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
3196 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
3197 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
3198 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
3199 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
3201 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
3202 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
3204 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
3206 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
3207 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
3208 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
3210 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
3213 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
3214 (acc_set_cuda_stream): Clarify.
3215 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
3217 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
3219 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
3220 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
3221 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
3222 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
3224 2018-12-14 Tom de Vries <tdevries@suse.de>
3226 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
3227 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
3228 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
3229 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
3230 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
3232 2018-12-13 Tom de Vries <tdevries@suse.de>
3234 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
3235 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
3236 * fortran.c (omp_display_affinity_): ... here.
3237 * libgomp.h (gomp_print_string): Declare.
3238 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
3239 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
3242 2018-12-13 Jakub Jelinek <jakub@redhat.com>
3245 * testsuite/libgomp.c++/for-24.C (results): Include it in
3246 omp declare target region.
3247 (main): Use map (always, tofrom: results) instead of
3248 map (tofrom: results).
3250 2018-12-12 Jakub Jelinek <jakub@redhat.com>
3253 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
3254 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
3256 * testsuite/libgomp.c-c++-common/for-16.c: New test.
3258 2018-12-12 Andreas Schwab <schwab@suse.de>
3260 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
3263 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
3266 * testsuite/libgomp.fortran/async_io_8.f90: New test.
3268 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
3269 Jakub Jelinek <jakub@redhat.com>
3271 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
3272 devicep->host2dev_func.
3274 2018-12-08 Jakub Jelinek <jakub@redhat.com>
3277 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
3278 tls_runtime effective target.
3279 (t): New threadprivate variable.
3280 (main): Set t in threads which execute iterations of the worksharing
3281 loop. Propagate that to the task after the loop and don't abort
3282 if the current taskgroup hasn't been cancelled.
3284 2018-12-02 Jakub Jelinek <jakub@redhat.com>
3286 * testsuite/libgomp.c/task-reduction-3.c: New test.
3288 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
3290 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
3293 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
3294 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
3296 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
3298 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
3300 2018-10-19 Richard Biener <rguenther@suse.de>
3302 PR tree-optimization/88182
3303 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
3305 2018-11-26 Jakub Jelinek <jakub@redhat.com>
3307 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
3308 (RUNTEST): Don't define.
3309 (RUNTESTDEFAULTFLAGS): Add.
3310 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
3311 (distclean-am): Depend on distclean-DEJAGNU.
3312 (check-am): If -j% option is present in MFLAGS and if
3313 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
3314 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
3315 * testsuite/Makefile.in: Regenerated.
3317 2018-11-26 Richard Biener <rguenther@suse.de>
3319 PR tree-optimization/88182
3320 * testsuite/libgomp.c++/pr88182.C: New testcase.
3322 2018-11-20 Jakub Jelinek <jakub@redhat.com>
3325 * config/mingw32/affinity-fmt.c: New file.
3327 2018-11-09 Jakub Jelinek <jakub@redhat.com>
3329 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
3330 (gomp_display_affinity): Use __builtin_choose_expr to handle
3331 properly handle argument having integral, or pointer or some other
3332 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
3333 with uint64_t type instead of %llx and unsigned long long.
3335 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
3336 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
3338 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3340 * affinity.c: Include <string.h>, <stdio.h>.
3341 (gomp_display_affinity_place): Remove cpusetp.
3342 * teams.c: Include <limits.h>.
3344 2018-11-08 Jakub Jelinek <jakub@redhat.com>
3346 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
3347 in_reduction clause for s[0].
3349 * affinity.c (gomp_display_affinity_place): New function.
3350 * affinity-fmt.c: New file.
3351 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
3352 * config/linux/affinity.c (gomp_display_affinity_place): New function.
3353 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
3354 Move these functions to ...
3355 * config/nvptx/teams.c: ... here. New file.
3356 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
3358 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
3360 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
3361 and _aligned_malloc.
3362 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
3363 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
3364 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
3365 gomp_affinity_format_len): New variables.
3366 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
3367 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
3368 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
3369 modifiers. Display (non-default) chunk sizes. Print
3370 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
3371 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
3372 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
3373 * fortran.c: Include stdio.h and string.h.
3374 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
3375 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
3376 (omp_set_affinity_format_, omp_get_affinity_format_,
3377 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
3378 omp_pause_resource_all_): New functions.
3379 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
3381 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
3383 * teams.c: ... here. New file.
3384 * libgomp_g.h: Include gstdint.h.
3385 (GOMP_loop_nonmonotonic_runtime_start,
3386 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
3387 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
3388 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
3389 GOMP_parallel_loop_nonmonotonic_runtime,
3390 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
3391 GOMP_loop_ull_nonmonotonic_runtime_start,
3392 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
3393 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
3394 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
3395 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
3396 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
3397 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
3398 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
3399 GOMP_teams_reg): Declare.
3400 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
3401 gomp_aligned_alloc uses fallback implementation.
3402 (gomp_aligned_alloc, gomp_aligned_free): Declare.
3403 (enum gomp_schedule_type): Add GFS_MONOTONIC.
3404 (struct gomp_doacross_work_share): Add extra field.
3405 (struct gomp_work_share): Add task_reductions field.
3406 (struct gomp_taskgroup): Add workshare and reductions fields.
3407 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
3408 (gomp_thread_handle): New typedef.
3409 (gomp_display_affinity_place, gomp_set_affinity_format,
3410 gomp_display_string, gomp_display_affinity,
3411 gomp_display_affinity_thread): Declare.
3412 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
3413 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
3414 gomp_workshare_task_reduction_register): Declare.
3415 (gomp_team_start): Add taskgroup argument.
3416 (gomp_pause_host): Declare.
3417 (gomp_init_work_share, gomp_work_share_start): Change bool argument
3419 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
3420 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
3421 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
3422 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
3423 GOMP_loop_ull_doacross_start,
3424 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
3425 GOMP_loop_maybe_nonmonotonic_runtime_next,
3426 GOMP_loop_maybe_nonmonotonic_runtime_start,
3427 GOMP_loop_nonmonotonic_runtime_next,
3428 GOMP_loop_nonmonotonic_runtime_start,
3429 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
3430 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
3431 GOMP_loop_ull_nonmonotonic_runtime_next,
3432 GOMP_loop_ull_nonmonotonic_runtime_start,
3433 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
3434 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
3435 GOMP_taskgroup_reduction_register,
3436 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
3437 GOMP_teams_reg and GOMP_taskwait_depend.
3438 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
3439 omp_{capture,display}_affinity{,_}, and
3440 omp_[gs]et_affinity_format{,_}.
3441 * loop.c: Include string.h.
3442 (GOMP_loop_runtime_next): Add ialias.
3443 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
3444 (gomp_loop_static_start, gomp_loop_dynamic_start,
3445 gomp_loop_guided_start, gomp_loop_ordered_static_start,
3446 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3447 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
3448 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
3449 or gomp_doacross_init callers.
3450 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
3451 GOMP_loop_doacross_start): New functions.
3452 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3453 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
3454 Mask off GFS_MONOTONIC bit.
3455 (GOMP_loop_maybe_nonmonotonic_runtime_next,
3456 GOMP_loop_maybe_nonmonotonic_runtime_start,
3457 GOMP_loop_nonmonotonic_runtime_next,
3458 GOMP_loop_nonmonotonic_runtime_start,
3459 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
3460 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
3462 (gomp_parallel_loop_start): Pass NULL as taskgroup to
3464 * loop_ull.c: Include string.h.
3465 (GOMP_loop_ull_runtime_next): Add ialias.
3466 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
3467 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
3468 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
3469 gomp_loop_ull_ordered_dynamic_start,
3470 gomp_loop_ull_ordered_guided_start,
3471 gomp_loop_ull_doacross_static_start,
3472 gomp_loop_ull_doacross_dynamic_start,
3473 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
3474 and gomp_doacross_ull_init callers.
3475 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
3476 GOMP_loop_ull_doacross_start): New functions.
3477 (GOMP_loop_ull_runtime_start,
3478 GOMP_loop_ull_ordered_runtime_start,
3479 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
3480 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
3481 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
3482 GOMP_loop_ull_nonmonotonic_runtime_next,
3483 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
3484 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
3485 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
3486 (omp_pause_resource_t, omp_depend_t): New typedefs.
3487 (enum omp_lock_hint_t): Renamed to ...
3488 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
3489 enumerators using numbers and omp_lock_hint_* as their aliases.
3490 (omp_lock_hint_t): New typedef. Rename to ...
3491 (omp_sync_hint_t): ... this.
3492 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
3493 omp_sync_hint_t instead of omp_lock_hint_t.
3494 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
3495 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
3497 (omp_target_is_present, omp_target_disassociate_ptr):
3498 Change first argument from void * to const void *.
3499 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
3500 from void * to const void *.
3501 (omp_target_associate_ptr): Change first and second arguments from
3502 void * to const void *.
3503 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
3504 omp_pause_hard): New parameters.
3505 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
3506 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
3508 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
3509 omp_pause_hard): New parameters.
3510 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
3511 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
3513 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
3514 EXTRA argument. If not needed to prepare array, if extra is 0,
3515 clear ws->doacross, otherwise allocate just doacross structure and
3516 extra payload. If array is needed, allocate also extra payload.
3517 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
3518 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
3520 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
3522 (GOMP_parallel): Likewise. Formatting fix.
3523 (GOMP_parallel_reductions): New function.
3524 (GOMP_cancellation_point): If taskgroup has workshare
3525 flag set, check cancelled of prev taskgroup if any.
3526 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
3527 on prev taskgroup if any.
3528 * sections.c: Include string.h.
3529 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
3530 (GOMP_sections_start): Adjust gomp_work_share_start caller.
3531 (GOMP_sections2_start): New function.
3532 (GOMP_parallel_sections_start, GOMP_parallel_sections):
3533 Pass NULL as taskgroup to gomp_team_start.
3534 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
3535 gomp_work_share_start callers.
3536 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
3537 If taskgroup has workshare flag set, check cancelled on prev
3538 taskgroup if any. Guard all cancellation tests with
3539 gomp_cancel_var test.
3540 (omp_target_is_present, omp_target_disassociate_ptr):
3541 Change ptr argument from void * to const void *.
3542 (omp_target_memcpy): Change src argument from void * to const void *.
3543 (omp_target_memcpy_rect): Likewise.
3544 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
3545 instead of char * where needed.
3546 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
3547 from void * to const void *.
3548 (omp_pause_resource, omp_pause_resource_all): New functions.
3549 * task.c (gomp_task_handle_depend): Handle new depend array format
3550 in addition to the old. Handle mutexinoutset kinds the same as
3551 inout for now, handle unspecified kinds.
3552 (gomp_create_target_task): If taskgroup has workshare flag set, check
3553 cancelled on prev taskgroup if any. Guard all cancellation tests with
3554 gomp_cancel_var test. Handle new depend array format count in
3555 addition to the old.
3556 (GOMP_task): Likewise. Adjust function comment.
3557 (gomp_task_run_pre): If taskgroup has workshare flag set, check
3558 cancelled on prev taskgroup if any. Guard all cancellation tests with
3559 gomp_cancel_var test.
3560 (GOMP_taskwait_depend): New function.
3561 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
3562 format in addition to the old. Handle mutexinoutset kinds the same as
3563 inout for now, handle unspecified kinds. Fix a function comment typo.
3564 (gomp_taskgroup_init): New function.
3565 (GOMP_taskgroup_start): Use it.
3566 (gomp_reduction_register, gomp_create_artificial_team,
3567 GOMP_taskgroup_reduction_register,
3568 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
3569 gomp_parallel_reduction_register,
3570 gomp_workshare_task_reduction_register,
3571 gomp_workshare_taskgroup_start,
3572 GOMP_workshare_task_reduction_unregister): New functions.
3573 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
3574 check cancelled on prev taskgroup if any. Guard all cancellation
3575 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
3576 by calling GOMP_taskgroup_reduction_register.
3577 * team.c (gomp_thread_attr): Remove comment.
3578 (struct gomp_thread_start_data): Add handle field.
3579 (gomp_thread_start): Call pthread_detach.
3580 (gomp_new_team): Adjust gomp_init_work_share caller.
3581 (gomp_free_pool_helper): Call pthread_detach.
3582 (gomp_team_start): Add taskgroup argument, initialize implicit
3583 tasks' taskgroup field to that. Don't call
3584 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
3585 (gomp_team_end): Determine nesting by thr->ts.level != 0
3586 rather than thr->ts.team != NULL.
3587 (gomp_pause_pool_helper, gomp_pause_host): New functions.
3588 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
3589 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
3590 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
3591 if more than 1 allocate also extra payload at the end of array. Never
3592 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
3593 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
3594 return true instead of ws.
3595 * Makefile.in: Regenerated.
3596 * configure: Regenerated.
3597 * config.h.in: Regenerated.
3598 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
3600 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
3601 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
3602 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
3603 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
3604 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
3605 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
3606 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
3607 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
3608 * testsuite/libgomp.c-c++-common/for-10.c: New test.
3609 * testsuite/libgomp.c-c++-common/for-11.c: New test.
3610 * testsuite/libgomp.c-c++-common/for-12.c: New test.
3611 * testsuite/libgomp.c-c++-common/for-13.c: New test.
3612 * testsuite/libgomp.c-c++-common/for-14.c: New test.
3613 * testsuite/libgomp.c-c++-common/for-15.c: New test.
3614 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
3615 define a different N(test), don't define N(f0) to N(f14), but instead
3616 define N(f20) to N(f34) using != comparisons.
3617 * testsuite/libgomp.c-c++-common/for-7.c: New test.
3618 * testsuite/libgomp.c-c++-common/for-8.c: New test.
3619 * testsuite/libgomp.c-c++-common/for-9.c: New test.
3620 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
3621 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
3622 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
3623 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
3624 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
3625 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
3626 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
3627 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
3628 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
3629 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
3630 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
3631 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
3632 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
3633 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
3634 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
3635 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
3636 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
3637 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
3638 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
3639 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
3640 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
3641 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
3642 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
3643 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
3644 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
3645 * testsuite/libgomp.c++/depend-1.C: New test.
3646 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
3647 * testsuite/libgomp.c++/depobj-1.C: New test.
3648 * testsuite/libgomp.c++/for-16.C: New test.
3649 * testsuite/libgomp.c++/for-21.C: New test.
3650 * testsuite/libgomp.c++/for-22.C: New test.
3651 * testsuite/libgomp.c++/for-23.C: New test.
3652 * testsuite/libgomp.c++/for-24.C: New test.
3653 * testsuite/libgomp.c++/for-25.C: New test.
3654 * testsuite/libgomp.c++/for-26.C: New test.
3655 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
3656 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
3657 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
3658 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
3659 * testsuite/libgomp.c++/task-reduction-10.C: New test.
3660 * testsuite/libgomp.c++/task-reduction-11.C: New test.
3661 * testsuite/libgomp.c++/task-reduction-12.C: New test.
3662 * testsuite/libgomp.c++/task-reduction-13.C: New test.
3663 * testsuite/libgomp.c++/task-reduction-14.C: New test.
3664 * testsuite/libgomp.c++/task-reduction-15.C: New test.
3665 * testsuite/libgomp.c++/task-reduction-16.C: New test.
3666 * testsuite/libgomp.c++/task-reduction-17.C: New test.
3667 * testsuite/libgomp.c++/task-reduction-18.C: New test.
3668 * testsuite/libgomp.c++/task-reduction-19.C: New test.
3669 * testsuite/libgomp.c/task-reduction-1.c: New test.
3670 * testsuite/libgomp.c++/task-reduction-1.C: New test.
3671 * testsuite/libgomp.c/task-reduction-2.c: New test.
3672 * testsuite/libgomp.c++/task-reduction-2.C: New test.
3673 * testsuite/libgomp.c++/task-reduction-3.C: New test.
3674 * testsuite/libgomp.c++/task-reduction-4.C: New test.
3675 * testsuite/libgomp.c++/task-reduction-5.C: New test.
3676 * testsuite/libgomp.c++/task-reduction-6.C: New test.
3677 * testsuite/libgomp.c++/task-reduction-7.C: New test.
3678 * testsuite/libgomp.c++/task-reduction-8.C: New test.
3679 * testsuite/libgomp.c++/task-reduction-9.C: New test.
3680 * testsuite/libgomp.c/teams-1.c: New test.
3681 * testsuite/libgomp.c/teams-2.c: New test.
3682 * testsuite/libgomp.c/thread-limit-4.c: New test.
3683 * testsuite/libgomp.c/thread-limit-5.c: New test.
3684 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
3686 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
3688 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
3689 acc_memcpy_to/from_device functions, now with async parameter.
3690 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
3691 (acc_memcpy_from_device): Likewise.
3692 (acc_memcpy_to_device_async): New API function.
3693 (acc_memcpy_from_device_async): Likewise.
3694 (present_create_copy): Add async parameter and async setting/unsetting.
3695 (acc_create): Adjust present_create_copy call.
3696 (acc_copyin): Likewise.
3697 (acc_present_or_create): Likewise.
3698 (acc_present_or_copyin): Likewise.
3699 (acc_create_async): New API function.
3700 (acc_copyin_async): New API function.
3701 (delete_copyout): Add async parameter and async setting/unsetting.
3702 (acc_delete): Adjust delete_copyout call.
3703 (acc_copyout): Likewise.
3704 (acc_delete_async): New API function.
3705 (acc_copyout_async): Likewise.
3706 (update_dev_host): Add async parameter and async setting/unsetting.
3707 (acc_update_device): Adjust update_dev_host call.
3708 (acc_update_self): Likewise.
3709 (acc_update_device_async): New API function.
3710 (acc_update_self_async): Likewise.
3711 * openacc.h (acc_copyin_async): Declare new API function.
3712 (acc_create_async): Likewise.
3713 (acc_copyout_async): Likewise.
3714 (acc_delete_async): Likewise.
3715 (acc_update_device_async): Likewise.
3716 (acc_update_self_async): Likewise.
3717 (acc_memcpy_to_device_async): Likewise.
3718 (acc_memcpy_from_device_async): Likewise.
3719 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
3720 (acc_copyin_async_64_h): New subroutine.
3721 (acc_copyin_async_array_h): New subroutine.
3722 (acc_create_async_32_h): New subroutine.
3723 (acc_create_async_64_h): New subroutine.
3724 (acc_create_async_array_h): New subroutine.
3725 (acc_copyout_async_32_h): New subroutine.
3726 (acc_copyout_async_64_h): New subroutine.
3727 (acc_copyout_async_array_h): New subroutine.
3728 (acc_delete_async_32_h): New subroutine.
3729 (acc_delete_async_64_h): New subroutine.
3730 (acc_delete_async_array_h): New subroutine.
3731 (acc_update_device_async_32_h): New subroutine.
3732 (acc_update_device_async_64_h): New subroutine.
3733 (acc_update_device_async_array_h): New subroutine.
3734 (acc_update_self_async_32_h): New subroutine.
3735 (acc_update_self_async_64_h): New subroutine.
3736 (acc_update_self_async_array_h): New subroutine.
3737 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
3738 (acc_copyin_async_64_h): New subroutine.
3739 (acc_copyin_async_array_h): New subroutine.
3740 (acc_create_async_32_h): New subroutine.
3741 (acc_create_async_64_h): New subroutine.
3742 (acc_create_async_array_h): New subroutine.
3743 (acc_copyout_async_32_h): New subroutine.
3744 (acc_copyout_async_64_h): New subroutine.
3745 (acc_copyout_async_array_h): New subroutine.
3746 (acc_delete_async_32_h): New subroutine.
3747 (acc_delete_async_64_h): New subroutine.
3748 (acc_delete_async_array_h): New subroutine.
3749 (acc_update_device_async_32_h): New subroutine.
3750 (acc_update_device_async_64_h): New subroutine.
3751 (acc_update_device_async_array_h): New subroutine.
3752 (acc_update_self_async_32_h): New subroutine.
3753 (acc_update_self_async_64_h): New subroutine.
3754 (acc_update_self_async_array_h): New subroutine.
3755 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
3756 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
3757 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
3758 acc_memcpy_to_device_async*, acc_update_device_async*, and
3759 acc_update_self_async* entries.
3760 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
3761 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
3762 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
3764 2018-10-31 Joseph Myers <joseph@codesourcery.com>
3767 * Makefile.am: Include multilib.am
3768 (AUTOMAKE_OPTIONS): Add info-in-builddir.
3769 (CLEANFILES): Remove libgomp.info.
3770 * configure.ac: Remove AC_PREREQ.
3771 * testsuite/Makefile.am (RUNTEST): Remove quotes.
3772 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
3775 2018-10-29 Joseph Myers <joseph@codesourcery.com>
3776 Julian Brown <julian@codesourcery.com>
3778 * testsuite/libgomp.oacc-c++/this.C: New.
3780 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
3782 * plugin/plugin-nvptx.c (struct cuda_map): New.
3783 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
3784 h_tail with (cuda_map *) map.
3785 (cuda_map_create): New function.
3786 (cuda_map_destroy): New function.
3787 (map_init): Update to use a linked list of cuda_map objects.
3788 (map_fini): Likewise.
3789 (map_pop): Likewise.
3790 (map_push): Likewise. Return CUdeviceptr instead of void.
3791 (init_streams_for_device): Remove stales references to ptx_stream
3793 (select_stream_for_async): Likewise.
3794 (nvptx_exec): Update call to map_init.
3796 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
3797 Julian Brown <julian@codesourcery.com>
3800 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
3802 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
3803 Thomas Koenig <tkoenig@gcc.gnu.org>
3806 * testsuite/libgomp.fortran/async_io_1.f90: New test.
3807 * testsuite/libgomp.fortran/async_io_2.f90: New test.
3808 * testsuite/libgomp.fortran/async_io_3.f90: New test.
3809 * testsuite/libgomp.fortran/async_io_4.f90: New test.
3810 * testsuite/libgomp.fortran/async_io_5.f90: New test.
3811 * testsuite/libgomp.fortran/async_io_6.f90: New test.
3812 * testsuite/libgomp.fortran/async_io_7.f90: New test.
3814 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
3815 Tom de Vries <tdevries@suse.de>
3818 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
3819 (cuOccupancyMaxPotentialBlockSize): Declare.
3820 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
3821 CUDA_ONE_CALL_MAYBE_NULL.
3822 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
3823 CUoccupancyB2DSize and declare
3824 cuOccupancyMaxPotentialBlockSize.
3825 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
3826 default num_gangs and num_workers when the driver supports it.
3828 2018-08-08 Tom de Vries <tdevries@suse.de>
3830 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
3831 CUDA_ONE_CALL_MAYBE_NULL.
3832 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
3833 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
3834 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
3837 2018-08-08 Tom de Vries <tdevries@suse.de>
3839 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
3840 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
3843 2018-08-08 Tom de Vries <tdevries@suse.de>
3845 * plugin/plugin-nvptx.c
3846 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
3847 (nvptx_open_device): Use
3848 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
3850 2018-08-08 Tom de Vries <tdevries@suse.de>
3852 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
3853 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
3855 2018-08-07 Tom de Vries <tdevries@suse.de>
3857 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
3858 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
3859 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
3860 corresponding call in CUDA_ONE_CALL. Add def/undef of
3861 CUDA_ONE_CALL_MAYBE_NULL.
3862 (CUDA_CALL_EXISTS): Define.
3864 2018-08-07 Tom de Vries <tdevries@suse.de>
3866 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
3867 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
3868 corresponding undefs right after.
3870 2018-08-04 Tom de Vries <tdevries@suse.de>
3872 * plugin/configfrag.ac: For --without-cuda-driver, set
3873 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
3874 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
3875 * configure: Regenerate.
3877 2018-08-02 Tom de Vries <tdevries@suse.de>
3880 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
3881 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
3882 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
3884 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
3885 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
3886 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
3888 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
3889 Thomas Schwinge <thomas@codesourcery.com>
3891 * config/nvptx/oacc-parallel.c: Truncate.
3893 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
3894 James Norris <jnorris@codesourcery.com>
3896 * plugin/plugin-nvptx.c (struct map): Removed.
3897 (map_init, map_pop): Remove use of struct map.
3898 (map_push): Likewise and change argument list.
3899 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
3901 2018-08-01 Tom de Vries <tdevries@suse.de>
3903 * plugin/cuda-lib.def: New file. Factor out of ...
3904 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
3905 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
3908 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
3910 Revert 'AsyncI/O patch committed'.
3911 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
3912 Thomas Koenig <tkoenig@gcc.gnu.org>
3915 * testsuite/libgomp.fortran/async_io_1.f90: New test.
3916 * testsuite/libgomp.fortran/async_io_2.f90: New test.
3917 * testsuite/libgomp.fortran/async_io_3.f90: New test.
3918 * testsuite/libgomp.fortran/async_io_4.f90: New test.
3919 * testsuite/libgomp.fortran/async_io_5.f90: New test.
3920 * testsuite/libgomp.fortran/async_io_6.f90: New test.
3921 * testsuite/libgomp.fortran/async_io_7.f90: New test.
3923 2018-07-30 Tom de Vries <tdevries@suse.de>
3925 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
3926 (nvptx_exec): Ensure worker and vector default dims don't exceed
3927 targ_fn->max_threads_per_block.
3929 2018-07-30 Tom de Vries <tdevries@suse.de>
3931 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
3932 (nvptx_open_device): Init default_dims for device.
3933 (nvptx_exec): Use default_dims from device.
3935 2018-07-26 Jakub Jelinek <jakub@redhat.com>
3938 * testsuite/libgomp.c++/for-15.C (results): Include it in
3939 omp declare target region.
3940 (main): Use map (always, tofrom: results) instead of
3941 map (tofrom: results).
3944 * testsuite/libgomp.c/pr86660.c: New test.
3946 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
3947 Tom de Vries <tdevries@suse.de>
3949 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
3950 sufficient resources to launch a kernel, and give a hint on how to fix
3953 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
3954 Tom de Vries <tdevries@suse.de>
3956 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
3957 max_threads_per_block and max_threads_per_multiprocessor fields.
3958 (nvptx_open_device): Initialize new fields.
3959 (nvptx_exec): Use num_sms, and new fields.
3961 2018-07-26 Tom de Vries <tdevries@suse.de>
3963 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
3964 to correct locations. Remove xfail.
3966 2018-07-26 Tom de Vries <tdevries@suse.de>
3968 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
3969 acc_wait. Move acc_async_test calls to correct locations. Remove
3972 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
3973 Thomas Koenig <tkoenig@gcc.gnu.org>
3976 * testsuite/libgomp.fortran/async_io_1.f90: New test.
3977 * testsuite/libgomp.fortran/async_io_2.f90: New test.
3978 * testsuite/libgomp.fortran/async_io_3.f90: New test.
3979 * testsuite/libgomp.fortran/async_io_4.f90: New test.
3980 * testsuite/libgomp.fortran/async_io_5.f90: New test.
3981 * testsuite/libgomp.fortran/async_io_6.f90: New test.
3982 * testsuite/libgomp.fortran/async_io_7.f90: New test.
3984 2018-07-17 Jakub Jelinek <jakub@redhat.com>
3987 * testsuite/libgomp.c++/pr86542.C: New test.
3990 * testsuite/libgomp.c++/pr86539.C: New test.
3992 2018-07-11 Jakub Jelinek <jakub@redhat.com>
3995 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
3996 (results): Make sure the variable is not inside declare target region.
3997 (qux): Remove unused function.
3999 2018-07-10 Jakub Jelinek <jakub@redhat.com>
4002 * testsuite/libgomp.c++/for-15.C: New test.
4004 2018-06-26 Jakub Jelinek <jakub@redhat.com>
4007 * testsuite/libgomp.c++/pr86291.C: New test.
4009 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
4011 * libgomp.texi (Top): Move www.openmp.org to https.
4012 (Enabling OpenMP): Ditto.
4013 (omp_get_active_level): Ditto.
4014 (omp_get_ancestor_thread_num): Ditto.
4015 (omp_get_cancellation): Ditto.
4016 (omp_get_default_device): Ditto.
4017 (omp_get_dynamic): Ditto.
4018 (omp_get_level): Ditto.
4019 (omp_get_max_active_levels): Ditto.
4020 (omp_get_max_task_priority): Ditto.
4021 (omp_get_max_threads): Ditto.
4022 (omp_get_nested): Ditto.
4023 (omp_get_num_devices): Ditto.
4024 (omp_get_num_procs): Ditto.
4025 (omp_get_num_teams): Ditto.
4026 (omp_get_num_threads): Ditto.
4027 (omp_get_proc_bind): Ditto.
4028 (omp_get_schedule): Ditto.
4029 (omp_get_team_num): Ditto.
4030 (omp_get_team_size): Ditto.
4031 (omp_get_thread_limit): Ditto.
4032 (omp_get_thread_num): Ditto.
4033 (omp_in_parallel): Ditto.
4034 (omp_in_final): Ditto.
4035 (omp_is_initial_device): Ditto.
4036 (omp_set_default_device): Ditto.
4037 (omp_set_dynamic): Ditto.
4038 (omp_set_max_active_levels): Ditto.
4039 (omp_set_nested): Ditto.
4040 (omp_set_num_threads): Ditto.
4041 (omp_set_schedule): Ditto.
4042 (omp_init_lock): Ditto.
4043 (omp_set_lock): Ditto.
4044 (omp_test_lock): Ditto.
4045 (omp_unset_lock): Ditto.
4046 (omp_destroy_lock): Ditto.
4047 (omp_init_nest_lock): Ditto.
4048 (omp_set_nest_lock): Ditto.
4049 (omp_test_nest_lock): Ditto.
4050 (omp_unset_nest_lock): Ditto.
4051 (omp_destroy_nest_lock): Ditto.
4052 (omp_get_wtick): Ditto.
4053 (omp_get_wtime): Ditto.
4054 (OMP_CANCELLATION): Ditto.
4055 (OMP_DISPLAY_ENV): Ditto.
4056 (OMP_DEFAULT_DEVICE): Ditto.
4057 (OMP_DYNAMIC): Ditto.
4058 (OMP_MAX_ACTIVE_LEVELS): Ditto.
4059 (OMP_MAX_TASK_PRIORITY): Ditto.
4060 (OMP_NESTED): Ditto.
4061 (OMP_NUM_THREADS): Ditto.
4062 (OMP_PROC_BIND): Ditto.
4063 (OMP_PLACES): Ditto.
4064 (OMP_STACKSIZE): Ditto.
4065 (OMP_SCHEDULE): Ditto.
4066 (OMP_THREAD_LIMIT): Ditto.
4067 (OMP_WAIT_POLICY): Ditto.
4069 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
4070 James Norris <jnorris@codesourcery.com>
4071 Julian Brown <julian@codesourcery.com>
4072 Thomas Schwinge <thomas@codesourcery.com>
4073 Tom de Vries <tom@codesourcery.com>
4075 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
4076 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
4077 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
4078 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
4079 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
4080 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
4081 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
4082 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
4083 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
4084 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
4086 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
4088 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
4090 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
4092 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
4094 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
4096 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4098 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4100 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4102 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4104 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4106 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
4108 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
4110 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
4112 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
4114 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4116 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4118 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4120 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4122 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4124 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4126 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4128 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4130 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4132 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4134 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4136 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
4138 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
4139 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
4140 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
4141 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
4142 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
4143 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
4144 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
4145 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
4146 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
4148 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
4150 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
4151 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
4152 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
4154 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
4155 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
4156 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
4158 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4160 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4162 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4164 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4166 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
4168 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
4170 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
4172 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
4174 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
4176 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
4178 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
4180 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
4182 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
4184 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
4186 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
4187 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
4188 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
4189 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
4190 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
4191 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
4192 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
4194 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
4195 Thomas Schwinge <thomas@codesourcery.com>
4196 Cesar Philippidis <cesar@codesourcery.com>
4198 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
4199 (gomp_acc_remove_pointer): Update declaration.
4200 (gomp_acc_declare_allocate): Declare.
4201 (gomp_remove_var): Declare.
4202 * libgomp.map (OACC_2.5): Define.
4203 * oacc-mem.c (acc_map_data): Update refcount.
4204 (acc_unmap_data): Likewise.
4205 (present_create_copy): Likewise.
4206 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
4207 (acc_copyin): Likewise.
4208 (FLAG_FINALIZE): Define.
4209 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
4210 (acc_delete_finalize): New function.
4211 (acc_delete_finalize_async): New function.
4212 (acc_copyout_finalize): New function.
4213 (acc_copyout_finalize_async): New function.
4214 (gomp_acc_insert_pointer): Update refcounts.
4215 (gomp_acc_remove_pointer): Return if data is not present on the
4217 * oacc-parallel.c (find_pset): Rename to find_pointer.
4218 (find_pointer): Add support for GOMP_MAP_POINTER.
4219 (handle_ftn_pointers): New function.
4220 (GOACC_parallel_keyed): Update refcounts of variables.
4221 (GOACC_enter_exit_data): Add support for finalized data mappings.
4222 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
4224 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
4225 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
4226 for GOMP_MAP_FORCE_FROM.
4227 * openacc.f90 (module openacc_internal): Add
4228 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
4229 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
4230 acc_copyout_finalize and acc_delete_finalize.
4231 (acc_copyout_finalize_32_h): New subroutine.
4232 (acc_copyout_finalize_64_h): New subroutine.
4233 (acc_copyout_finalize_array_h): New subroutine.
4234 (acc_delete_finalize_32_h): New subroutine.
4235 (acc_delete_finalize_64_h): New subroutine.
4236 (acc_delete_finalize_array_h): New subroutine.
4237 * openacc.h (acc_copyout_finalize): Declare.
4238 (acc_copyout_finalize_async): Declare.
4239 (acc_delete_finalize): Declare.
4240 (acc_delete_finalize_async): Declare.
4241 * openacc_lib.h (acc_copyout_finalize): New interface.
4242 (acc_delete_finalize): New interface.
4243 * target.c (gomp_map_vars): Update dynamic_refcount.
4244 (gomp_remove_var): New function.
4245 (gomp_unmap_vars): Use it.
4246 (gomp_unload_image_from_device): Likewise.
4247 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
4248 case to utilize OpenACC 2.5 data clause semantics.
4249 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
4250 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
4251 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
4252 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
4253 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
4254 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
4255 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
4256 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
4257 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
4258 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
4259 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
4260 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
4261 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
4262 utilize OpenACC 2.5 data clause semantics.
4263 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
4264 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
4265 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
4266 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
4267 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
4268 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
4269 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
4270 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
4271 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4273 2018-05-21 Janus Weil <janus@gcc.gnu.org>
4277 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
4278 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
4279 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
4280 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
4281 * testsuite/libgomp.fortran/task2.f90: Ditto.
4282 * testsuite/libgomp.fortran/vla1.f90: Ditto.
4283 * testsuite/libgomp.fortran/vla2.f90: Ditto.
4284 * testsuite/libgomp.fortran/vla3.f90: Ditto.
4285 * testsuite/libgomp.fortran/vla4.f90: Ditto.
4286 * testsuite/libgomp.fortran/vla5.f90: Ditto.
4287 * testsuite/libgomp.fortran/vla6.f90: Ditto.
4288 * testsuite/libgomp.fortran/vla8.f90: Ditto.
4289 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
4290 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
4292 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
4295 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
4297 2018-05-09 Tom de Vries <tom@codesourcery.com>
4300 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
4301 to GOACC_enter_exit_data.
4303 2018-05-09 Tom de Vries <tom@codesourcery.com>
4306 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
4307 (async_synchronous_p): New function.
4308 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
4310 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
4311 async_valid_stream_id_p.
4312 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
4313 * oacc-parallel.c (GOACC_parallel_keyed): Same.
4315 2018-05-07 Tom de Vries <tom@codesourcery.com>
4318 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
4319 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
4321 2018-05-03 Tom de Vries <tom@codesourcery.com>
4324 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
4325 extra_tool_flags if it contains an -foffload=-fdump-* flag.
4326 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
4327 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
4329 2018-05-02 Tom de Vries <tom@codesourcery.com>
4332 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
4333 GOMP_OPENACC_DIM ...
4334 * env.c (parse_gomp_openacc_dim): ... here. New function.
4335 (initialize_env): Call parse_gomp_openacc_dim.
4336 (goacc_default_dims): Define.
4337 * libgomp.h (goacc_default_dims): Declare.
4338 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
4339 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
4340 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
4341 GOMP_PLUGIN_acc_default_dim.
4342 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
4343 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
4345 2018-05-02 Tom de Vries <tom@codesourcery.com>
4348 * testsuite/libgomp.c++/udr-9.C: Update.
4349 * testsuite/libgomp.c++/atomic-16.C: Remove.
4350 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
4351 * testsuite/libgomp.c++/loop-13.C: Remove.
4352 * testsuite/libgomp.c++/loop-14.C: Remove.
4353 * testsuite/libgomp.c++/loop-15.C: Remove.
4354 * testsuite/libgomp.c++/monotonic-1.C: Remove.
4355 * testsuite/libgomp.c++/monotonic-2.C: Remove.
4356 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
4357 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
4358 * testsuite/libgomp.c++/ordered-1.C: Remove.
4359 * testsuite/libgomp.c++/pr45784.C: Remove.
4360 * testsuite/libgomp.c++/pr64824.C: Remove.
4361 * testsuite/libgomp.c++/pr64868.C: Remove.
4362 * testsuite/libgomp.c++/pr66199-1.C: Remove.
4363 * testsuite/libgomp.c++/pr66199-2.C: Remove.
4364 * testsuite/libgomp.c++/pr66199-3.C: Remove.
4365 * testsuite/libgomp.c++/pr66199-4.C: Remove.
4366 * testsuite/libgomp.c++/pr66199-5.C: Remove.
4367 * testsuite/libgomp.c++/pr66199-6.C: Remove.
4368 * testsuite/libgomp.c++/pr66199-7.C: Remove.
4369 * testsuite/libgomp.c++/pr66199-8.C: Remove.
4370 * testsuite/libgomp.c++/pr66199-9.C: Remove.
4371 * testsuite/libgomp.c++/pr69389.C: Remove.
4372 * testsuite/libgomp.c++/simd10.C: Remove.
4373 * testsuite/libgomp.c++/simd11.C: Remove.
4374 * testsuite/libgomp.c++/simd12.C: Remove.
4375 * testsuite/libgomp.c++/simd13.C: Remove.
4376 * testsuite/libgomp.c++/target-1.C: Remove.
4377 * testsuite/libgomp.c++/target-3.C: Remove.
4378 * testsuite/libgomp.c++/target-4.C: Remove.
4379 * testsuite/libgomp.c++/target-5.C: Remove.
4380 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
4381 * testsuite/libgomp.c++/taskloop-1.C: Remove.
4382 * testsuite/libgomp.c++/taskloop-2.C: Remove.
4383 * testsuite/libgomp.c++/taskloop-3.C: Remove.
4384 * testsuite/libgomp.c++/taskloop-4.C: Remove.
4385 * testsuite/libgomp.c++/udr-9.C: Remove.
4386 * testsuite/libgomp.c++/for-10.C: Remove.
4387 * testsuite/libgomp.c++/for-11.C: Remove.
4388 * testsuite/libgomp.c++/for-12.C: Remove.
4389 * testsuite/libgomp.c++/for-13.C: Remove.
4390 * testsuite/libgomp.c++/for-14.C: Remove.
4391 * testsuite/libgomp.c++/for-9.C: Remove.
4392 * testsuite/libgomp.c/atomic-18.c: Move ...
4393 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
4394 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
4395 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
4396 * testsuite/libgomp.c/loop-13.c: Move ...
4397 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
4398 * testsuite/libgomp.c/loop-14.c: Move ...
4399 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
4400 * testsuite/libgomp.c/loop-15.c: Remove.
4401 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
4402 * testsuite/libgomp.c/monotonic-1.c: Move ...
4403 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
4404 * testsuite/libgomp.c/monotonic-2.c: Move ...
4405 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
4406 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
4407 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
4408 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
4409 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
4410 * testsuite/libgomp.c/ordered-4.c: Move ...
4411 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
4412 * testsuite/libgomp.c/pr45784.c: Move ...
4413 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
4414 * testsuite/libgomp.c/pr64824.c: Move ...
4415 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
4416 * testsuite/libgomp.c/pr64868.c: Move ...
4417 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
4418 * testsuite/libgomp.c/pr66199-1.c: Move ...
4419 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
4420 * testsuite/libgomp.c/pr66199-2.c: Move ...
4421 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
4422 * testsuite/libgomp.c/pr66199-3.c: Move ...
4423 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
4424 * testsuite/libgomp.c/pr66199-4.c: Move ...
4425 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
4426 * testsuite/libgomp.c/pr66199-5.c: Move ...
4427 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
4428 * testsuite/libgomp.c/pr66199-6.c: Move ...
4429 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
4430 * testsuite/libgomp.c/pr66199-7.c: Move ...
4431 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
4432 * testsuite/libgomp.c/pr66199-8.c: Move ...
4433 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
4434 * testsuite/libgomp.c/pr66199-9.c: Move ...
4435 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
4436 * testsuite/libgomp.c/pr69389.c: Move ...
4437 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
4438 * testsuite/libgomp.c/simd-14.c: Move ...
4439 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
4440 * testsuite/libgomp.c/simd-15.c: Move ...
4441 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
4442 * testsuite/libgomp.c/simd-16.c: Move ...
4443 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
4444 * testsuite/libgomp.c/simd-17.c: Move ...
4445 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
4446 * testsuite/libgomp.c/target-1.c: Move ...
4447 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
4448 * testsuite/libgomp.c/target-10.c: Move ...
4449 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
4450 * testsuite/libgomp.c/target-13.c: Move ...
4451 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
4452 * testsuite/libgomp.c/target-2.c: Move ...
4453 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
4454 * testsuite/libgomp.c/taskgroup-1.c: Move ...
4455 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
4456 * testsuite/libgomp.c/taskloop-1.c: Move ...
4457 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
4458 * testsuite/libgomp.c/taskloop-2.c: Move ...
4459 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
4460 * testsuite/libgomp.c/taskloop-3.c: Move ...
4461 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
4462 * testsuite/libgomp.c/taskloop-4.c: Move ...
4463 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
4464 * testsuite/libgomp.c/udr-1.c: Move ...
4465 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
4466 * testsuite/libgomp.c/for-1.c: Move ...
4467 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
4468 * testsuite/libgomp.c/for-1.h: Move ...
4469 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
4470 * testsuite/libgomp.c/for-2.c: Move ...
4471 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
4472 * testsuite/libgomp.c/for-2.h: Move ...
4473 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
4474 * testsuite/libgomp.c/for-3.c: Move ...
4475 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
4476 * testsuite/libgomp.c/for-4.c: Move ...
4477 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
4478 * testsuite/libgomp.c/for-5.c: Move ...
4479 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
4480 * testsuite/libgomp.c/for-6.c: Move ...
4481 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
4483 2018-05-02 Tom de Vries <tom@codesourcery.com>
4486 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
4487 __builtin_goacc_parlevel_{id,size}.
4488 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
4489 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
4490 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
4491 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
4492 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
4493 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
4494 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
4495 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
4496 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
4497 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
4498 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
4499 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
4500 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
4501 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
4502 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
4503 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
4504 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
4505 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
4506 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
4507 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
4508 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
4509 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
4510 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
4512 2018-05-02 Tom de Vries <tom@codesourcery.com>
4515 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
4517 2018-05-02 Tom de Vries <tom@codesourcery.com>
4520 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
4522 2018-04-29 Julian Brown <julian@codesourcery.com>
4523 Tom de Vries <tom@codesourcery.com>
4526 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
4527 arbitrary order for iterations of atomic subtract check.
4529 2018-04-28 Tom de Vries <tom@codesourcery.com>
4532 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
4533 atomic capture results obtained in parallel loop to an array, instead of
4536 2018-04-26 Tom de Vries <tom@codesourcery.com>
4539 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
4540 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
4541 (process_GOMP_NVPTX_JIT): New function.
4542 (link_ptx): Use process_GOMP_NVPTX_JIT.
4544 2018-04-26 Richard Biener <rguenther@suse.de>
4545 Tom de Vries <tom@codesourcery.com>
4548 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
4550 2018-04-26 Tom de Vries <tom@codesourcery.com>
4553 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
4554 recursion depth from 25 to 23.
4555 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
4557 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
4559 * configure: Regenerated.
4561 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
4562 Tom de Vries <tom@codesourcery.com>
4565 * testsuite/libgomp.oacc-c++/ref-1.C: New.
4567 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
4570 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
4571 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
4572 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
4573 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
4574 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
4575 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
4578 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
4580 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
4582 2018-04-19 Jakub Jelinek <jakub@redhat.com>
4584 * configure: Regenerated.
4586 2018-04-18 David Malcolm <dmalcolm@redhat.com>
4589 * configure: Regenerate.
4591 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
4592 Tom de Vries <tom@codesourcery.com>
4595 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
4596 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
4598 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
4602 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
4603 test from gfortran.dg to here.
4605 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
4607 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
4608 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
4610 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
4613 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
4614 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
4616 2018-04-05 Tom de Vries <tom@codesourcery.com>
4619 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
4621 2018-03-26 Tom de Vries <tom@codesourcery.com>
4623 PR tree-optimization/85063
4624 * testsuite/libgomp.c/switch-conversion-2.c: New test.
4625 * testsuite/libgomp.c/switch-conversion.c: New test.
4626 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
4627 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
4629 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
4632 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
4633 call abort by STOP n.
4634 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
4635 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
4636 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
4637 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
4638 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
4639 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
4640 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
4641 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
4642 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
4643 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
4644 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
4645 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
4646 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
4647 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
4648 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
4649 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
4650 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
4651 * testsuite/libgomp.fortran/associate1.f90: Likewise.
4652 * testsuite/libgomp.fortran/associate2.f90: Likewise.
4653 * testsuite/libgomp.fortran/associate3.f90: Likewise.
4654 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
4655 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
4656 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
4657 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
4658 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
4659 * testsuite/libgomp.fortran/character1.f90: Likewise.
4660 * testsuite/libgomp.fortran/character2.f90: Likewise.
4661 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
4662 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
4663 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
4664 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
4665 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
4666 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
4667 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
4668 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
4669 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
4670 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
4671 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
4672 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
4673 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
4674 * testsuite/libgomp.fortran/do1.f90: Likewise.
4675 * testsuite/libgomp.fortran/do2.f90: Likewise.
4676 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
4677 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
4678 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
4679 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
4680 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
4681 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
4682 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
4683 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
4684 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
4685 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
4686 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
4687 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
4688 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
4689 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
4690 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
4691 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
4692 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
4693 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
4694 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
4695 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
4696 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
4697 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
4698 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
4699 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
4700 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
4701 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
4702 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
4703 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
4704 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
4705 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
4706 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
4707 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
4708 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
4709 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
4710 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
4711 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
4712 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
4713 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
4714 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
4715 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
4716 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
4717 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
4718 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
4719 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
4720 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
4721 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
4722 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
4723 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
4724 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
4725 * testsuite/libgomp.fortran/lib1.f90: Likewise.
4726 * testsuite/libgomp.fortran/lib2.f: Likewise.
4727 * testsuite/libgomp.fortran/lib3.f: Likewise.
4728 * testsuite/libgomp.fortran/lib4.f90: Likewise.
4729 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
4730 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
4731 * testsuite/libgomp.fortran/nested1.f90: Likewise.
4732 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
4733 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
4734 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
4735 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
4736 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
4737 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
4738 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
4739 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
4740 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
4741 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
4742 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
4743 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
4744 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
4745 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
4746 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
4747 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
4748 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
4749 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
4750 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
4751 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
4752 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
4753 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
4754 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
4755 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
4756 * testsuite/libgomp.fortran/pr25162.f: Likewise.
4757 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
4758 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
4759 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
4760 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
4761 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
4762 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
4763 * testsuite/libgomp.fortran/pr28390.f: Likewise.
4764 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
4765 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
4766 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
4767 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
4768 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
4769 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
4770 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
4771 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
4772 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
4773 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
4774 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
4775 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
4776 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
4777 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
4778 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
4779 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
4780 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
4781 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
4782 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
4783 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
4784 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
4785 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
4786 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
4787 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
4788 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
4789 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
4790 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
4791 * testsuite/libgomp.fortran/reference1.f90: Likewise.
4792 * testsuite/libgomp.fortran/reference2.f90: Likewise.
4793 * testsuite/libgomp.fortran/retval1.f90: Likewise.
4794 * testsuite/libgomp.fortran/retval2.f90: Likewise.
4795 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
4796 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
4797 * testsuite/libgomp.fortran/simd1.f90: Likewise.
4798 * testsuite/libgomp.fortran/simd2.f90: Likewise.
4799 * testsuite/libgomp.fortran/simd3.f90: Likewise.
4800 * testsuite/libgomp.fortran/simd4.f90: Likewise.
4801 * testsuite/libgomp.fortran/simd5.f90: Likewise.
4802 * testsuite/libgomp.fortran/simd6.f90: Likewise.
4803 * testsuite/libgomp.fortran/simd7.f90: Likewise.
4804 * testsuite/libgomp.fortran/stack.f90: Likewise.
4805 * testsuite/libgomp.fortran/strassen.f90: Likewise.
4806 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
4807 * testsuite/libgomp.fortran/tabs2.f: Likewise.
4808 * testsuite/libgomp.fortran/target1.f90: Likewise.
4809 * testsuite/libgomp.fortran/target2.f90: Likewise.
4810 * testsuite/libgomp.fortran/target3.f90: Likewise.
4811 * testsuite/libgomp.fortran/target4.f90: Likewise.
4812 * testsuite/libgomp.fortran/target5.f90: Likewise.
4813 * testsuite/libgomp.fortran/target6.f90: Likewise.
4814 * testsuite/libgomp.fortran/target7.f90: Likewise.
4815 * testsuite/libgomp.fortran/target8.f90: Likewise.
4816 * testsuite/libgomp.fortran/task1.f90: Likewise.
4817 * testsuite/libgomp.fortran/task2.f90: Likewise.
4818 * testsuite/libgomp.fortran/task3.f90: Likewise.
4819 * testsuite/libgomp.fortran/task4.f90: Likewise.
4820 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
4821 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
4822 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
4823 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
4824 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
4825 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
4826 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
4827 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
4828 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
4829 * testsuite/libgomp.fortran/udr1.f90: Likewise.
4830 * testsuite/libgomp.fortran/udr10.f90: Likewise.
4831 * testsuite/libgomp.fortran/udr11.f90: Likewise.
4832 * testsuite/libgomp.fortran/udr12.f90: Likewise.
4833 * testsuite/libgomp.fortran/udr13.f90: Likewise.
4834 * testsuite/libgomp.fortran/udr14.f90: Likewise.
4835 * testsuite/libgomp.fortran/udr15.f90: Likewise.
4836 * testsuite/libgomp.fortran/udr2.f90: Likewise.
4837 * testsuite/libgomp.fortran/udr3.f90: Likewise.
4838 * testsuite/libgomp.fortran/udr4.f90: Likewise.
4839 * testsuite/libgomp.fortran/udr5.f90: Likewise.
4840 * testsuite/libgomp.fortran/udr6.f90: Likewise.
4841 * testsuite/libgomp.fortran/udr7.f90: Likewise.
4842 * testsuite/libgomp.fortran/udr8.f90: Likewise.
4843 * testsuite/libgomp.fortran/udr9.f90: Likewise.
4844 * testsuite/libgomp.fortran/vla1.f90: Likewise.
4845 * testsuite/libgomp.fortran/vla2.f90: Likewise.
4846 * testsuite/libgomp.fortran/vla3.f90: Likewise.
4847 * testsuite/libgomp.fortran/vla4.f90: Likewise.
4848 * testsuite/libgomp.fortran/vla5.f90: Likewise.
4849 * testsuite/libgomp.fortran/vla6.f90: Likewise.
4850 * testsuite/libgomp.fortran/vla7.f90: Likewise.
4851 * testsuite/libgomp.fortran/vla8.f90: Likewise.
4852 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
4853 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
4854 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
4855 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
4856 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4857 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4858 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4859 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4860 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4861 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4862 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
4863 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
4864 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
4865 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
4866 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
4867 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
4868 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
4869 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
4870 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
4871 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
4872 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
4873 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
4874 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
4875 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
4876 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
4877 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
4878 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
4879 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
4880 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
4881 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
4882 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
4883 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4884 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4885 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4886 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4887 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4888 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
4889 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
4890 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
4891 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4892 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
4893 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4894 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
4895 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
4896 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
4897 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
4898 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
4899 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
4900 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
4901 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
4902 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
4903 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
4904 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
4905 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4906 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
4907 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
4908 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
4909 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
4910 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
4911 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
4912 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
4913 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
4914 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
4915 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
4916 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
4917 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
4918 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
4919 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4920 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4921 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
4922 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
4923 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
4924 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
4925 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
4926 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
4927 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
4928 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
4929 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
4930 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
4931 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
4932 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4933 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4934 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4935 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
4936 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
4937 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
4938 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
4939 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
4940 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
4941 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
4942 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
4943 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
4944 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
4945 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
4947 2018-03-20 Richard Biener <rguenther@suse.de>
4949 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
4950 parallelizable loop.
4952 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
4955 * configure: Regenerate.
4957 2018-02-16 Jakub Jelinek <jakub@redhat.com>
4960 * libgomp.fortran/pr84418-1.f90: New test.
4961 * libgomp.fortran/pr84418-2.f90: New test.
4963 2018-02-14 Jakub Jelinek <jakub@redhat.com>
4966 * testsuite/libgomp.fortran/threadprivate4.f90: Add
4967 -std=f2003 -fall-intrinsics into dg-additional-options.
4969 2018-02-08 Martin Jambor <mjambor@suse.cz>
4971 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
4974 2018-02-08 Martin Jambor <mjambor@suse.cz>
4976 * testsuite/libgomp.hsa.c/staticvar.c: New test.
4978 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4980 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
4981 [__cplusplus]: Declare extern "C".
4983 2018-02-07 Tom de Vries <tom@codesourcery.com>
4986 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
4988 2018-01-29 Christoph Spiel <cspiel@freenet.de>
4989 Jakub Jelinek <jakub@redhat.com>
4992 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
4993 instead of omp_lock_t.
4995 2018-01-25 Tom de Vries <tom@codesourcery.com>
4998 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
5000 2018-01-24 Tom de Vries <tom@codesourcery.com>
5003 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
5005 2018-01-24 Tom de Vries <tom@codesourcery.com>
5008 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
5010 2018-01-19 Tom de Vries <tom@codesourcery.com>
5011 Cesar Philippidis <cesar@codesourcery.com>
5014 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
5015 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
5017 2018-01-03 Jakub Jelinek <jakub@redhat.com>
5019 Update copyright years.
5021 * libgomp.texi: Bump @copying's copyright year.
5023 2017-12-30 Tom de Vries <tom@codesourcery.com>
5026 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
5027 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
5029 2017-12-27 Tom de Vries <tom@codesourcery.com>
5032 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
5033 (test_nonstatic): Fix return type to workaround PR83046.
5035 2017-12-05 Jakub Jelinek <jakub@redhat.com>
5038 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
5039 j suffix instead of i.
5040 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
5043 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
5045 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
5046 call to acc_wait (1).
5048 2017-11-24 Jakub Jelinek <jakub@redhat.com>
5051 * testsuite/libgomp.fortran/pr81304.f90: New test.
5053 2017-11-23 Jakub Jelinek <jakub@redhat.com>
5056 * libgomp.fortran/pr81841.f90: New test.
5058 2017-11-22 Jakub Jelinek <jakub@redhat.com>
5061 * target.c (gomp_target_init): Compute lengths just once and
5062 use them in both malloc size and subsequent copying.
5064 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
5066 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
5067 * acinclude.m4: Add cet.m4.
5068 * configure: Regenerate.
5069 * Makefile.in: Likewise.
5070 * testsuite/Makefile.in: Likewise.
5072 2017-11-15 Tom de Vries <tom@codesourcery.com>
5074 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
5075 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
5076 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
5077 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
5078 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
5079 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
5081 2017-11-14 Tom de Vries <tom@codesourcery.com>
5083 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
5086 2017-11-07 Jakub Jelinek <jakub@redhat.com>
5089 * testsuite/libgomp.c++/pr82835.C: New test.
5091 2017-11-06 Martin Liska <mliska@suse.cz>
5093 * testsuite/libgomp.c++/loop-2.C: Return a value
5094 for functions with non-void return type, or change type to void,
5095 or add -Wno-return-type for test.
5096 * testsuite/libgomp.c++/loop-4.C: Likewise.
5097 * testsuite/libgomp.c++/parallel-1.C: Likewise.
5098 * testsuite/libgomp.c++/shared-1.C: Likewise.
5099 * testsuite/libgomp.c++/single-1.C: Likewise.
5100 * testsuite/libgomp.c++/single-2.C: Likewise.
5102 2017-10-31 Tom de Vries <tom@codesourcery.com>
5104 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
5105 "do {} while (false)".
5106 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
5107 after HSA_DEBUG call.
5109 2017-10-28 Jakub Jelinek <jakub@redhat.com>
5111 * target.c (struct gomp_coalesce_buf): New type.
5112 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
5113 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
5114 (gomp_copy_host2dev): Add CBUF argument, if copying into
5115 the cached ranges, memcpy into buffer instead of copying
5117 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
5118 Add CBUF argument, pass it through to other calls.
5119 (gomp_map_vars): Aggregate copies from host to device if small enough
5120 and with small enough gaps in between into memcpy into a buffer and
5121 fewer host to device copies from the buffer.
5122 (gomp_update): Adjust gomp_copy_host2dev caller.
5124 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
5126 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
5128 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
5129 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
5130 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
5131 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
5133 2017-10-16 Tom de Vries <tom@codesourcery.com>
5135 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
5136 openacc_nvidia_accel_selected.
5137 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
5138 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
5139 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
5140 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
5141 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
5142 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
5143 openacc_nvidia_accel_selected. Skip for shared memory device.
5144 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
5145 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
5147 2017-10-09 Martin Jambor <mjambor@suse.cz>
5150 * testsuite/libgomp.hsa.c/pr82416.c: New test.
5152 2017-10-07 Tom de Vries <tom@codesourcery.com>
5154 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
5155 Remove acc_device_nvidia references.
5156 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
5159 2017-10-05 Tom de Vries <tom@codesourcery.com>
5161 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
5162 vector_length(32) clause from acc parallel directive.
5163 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
5165 2017-10-04 Tom de Vries <tom@codesourcery.com>
5167 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
5168 (main): Reduce sum of arr elements. Assert that hres is exactly
5169 representable in 32-bit floating point.
5170 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
5171 (main): Reduce sum of arr elements. Assert that hres and hmres are
5172 exactly representable in 32-bit floating point.
5173 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
5175 2017-09-28 Tom de Vries <tom@codesourcery.com>
5177 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
5179 * testsuite/libgomp.c++/pr69393.C: Same.
5180 * testsuite/libgomp.c++/taskloop-1.C: Same.
5181 * testsuite/libgomp.c++/taskloop-3.C: Same.
5182 * testsuite/libgomp.c++/taskloop-4.C: Same.
5183 * testsuite/libgomp.c/for-4.c: Same.
5184 * testsuite/libgomp.c/pr66199-3.c: Same.
5185 * testsuite/libgomp.c/pr66199-4.c: Same.
5186 * testsuite/libgomp.c/pr66199-6.c: Same.
5187 * testsuite/libgomp.c/taskloop-1.c: Same.
5188 * testsuite/libgomp.c/taskloop-3.c: Same.
5189 * testsuite/libgomp.c/taskloop-4.c: Same.
5190 * testsuite/libgomp.fortran/aligned1.f03: Same.
5191 * testsuite/libgomp.fortran/condinc1.f: Same.
5192 * testsuite/libgomp.fortran/condinc3.f90: Same.
5193 * testsuite/libgomp.fortran/crayptr1.f90: Same.
5194 * testsuite/libgomp.fortran/crayptr2.f90: Same.
5195 * testsuite/libgomp.fortran/crayptr3.f90: Same.
5196 * testsuite/libgomp.fortran/omp_cond1.f: Same.
5197 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
5198 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
5199 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
5200 * testsuite/libgomp.fortran/recursion1.f90: Same.
5201 * testsuite/libgomp.fortran/target2.f90: Same.
5202 * testsuite/libgomp.fortran/target5.f90: Same.
5203 * testsuite/libgomp.fortran/task3.f90: Same.
5205 2017-09-28 Tom de Vries <tom@codesourcery.com>
5207 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
5208 vector_length(32) clause from acc parallel directive.
5209 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
5211 2017-09-27 Tom de Vries <tom@codesourcery.com>
5213 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
5214 Remove acc_device_nvidia references.
5216 2017-09-16 Tom de Vries <tom@codesourcery.com>
5219 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
5221 2017-09-14 Tom de Vries <tom@codesourcery.com>
5223 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
5224 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
5225 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
5226 * testsuite/libgomp.c/c.exp: Include test-cases from
5227 libgomp.c-c++-common.
5228 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
5231 2017-09-14 Jakub Jelinek <jakub@redhat.com>
5234 * testsuite/libgomp.c++/pr81314.C: New test.
5236 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
5238 * libgomp.texi (Top): www.openacc.org now uses https.
5239 (Enabling OpenACC): Ditto.
5240 (acc_get_num_devices): Ditto.
5241 (acc_set_device_type): Ditto.
5242 (acc_get_device_type): Ditto.
5243 (acc_set_device_num): Ditto.
5244 (acc_get_device_num): Ditto.
5245 (acc_async_test): Ditto.
5246 (acc_async_test_all): Ditto.
5248 (acc_wait_all): Ditto.
5249 (acc_wait_all_async): Ditto.
5250 (acc_wait_async): Ditto.
5252 (acc_shutdown): Ditto.
5253 (acc_on_device): Ditto.
5254 (acc_malloc): Ditto.
5256 (acc_copyin): Ditto.
5257 (acc_present_or_copyin): Ditto.
5258 (acc_create): Ditto.
5259 (acc_present_or_create): Ditto.
5260 (acc_copyout): Ditto.
5261 (acc_delete): Ditto.
5262 (acc_update_device): Ditto.
5263 (acc_update_self): Ditto.
5264 (acc_map_data): Ditto.
5265 (acc_unmap_data): Ditto.
5266 (acc_deviceptr): Ditto.
5267 (acc_hostptr): Ditto.
5268 (acc_is_present): Ditto.
5269 (acc_memcpy_to_device): Ditto.
5270 (acc_memcpy_from_device): Ditto.
5271 (acc_get_current_cuda_device): Ditto.
5272 (acc_get_current_cuda_context): Ditto.
5273 (acc_get_cuda_stream): Ditto.
5274 (acc_set_cuda_stream): Ditto.
5275 (ACC_DEVICE_TYPE): Ditto.
5276 (ACC_DEVICE_NUM): Ditto.
5277 (OpenACC Library Interoperability): Ditto.
5279 2017-08-09 Jakub Jelinek <jakub@redhat.com>
5282 * testsuite/libgomp.c/pr81687-1.c: New test.
5283 * testsuite/libgomp.c/pr81687-2.c: New test.
5285 2017-08-07 Jakub Jelinek <jakub@redhat.com>
5288 * testsuite/libgomp.c/pr69389.c: New test.
5289 * testsuite/libgomp.c++/pr69389.C: New test.
5291 2017-08-07 Tom de Vries <tom@codesourcery.com>
5294 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
5295 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
5297 2017-07-27 Jakub Jelinek <jakub@redhat.com>
5300 * testsuite/libgomp.c/pr45784.c: New test.
5301 * testsuite/libgomp.c++/pr45784.C: New test.
5303 2017-07-19 Tom de Vries <tom@codesourcery.com>
5305 * testsuite/libgomp.oacc-c/vec.c: New test.
5307 2017-07-03 Tom de Vries <tom@codesourcery.com>
5309 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
5311 2017-06-27 Tom de Vries <tom@codesourcery.com>
5313 * plugin/plugin-nvptx.c (notify_var): New function.
5314 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
5316 2017-06-27 Tom de Vries <tom@codesourcery.com>
5318 * env.c (parse_unsigned_long_1): Factor out of ...
5319 (parse_unsigned_long): ... here.
5320 (parse_int_1): Factor out of ...
5321 (parse_int): ... here.
5322 (parse_int_secure): New function.
5323 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
5324 * secure_getenv.h: Factor out of ...
5325 * plugin/plugin-hsa.c: ... here.
5326 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
5328 2017-06-21 Jakub Jelinek <jakub@redhat.com>
5331 * testsuite/libgomp.c++/pr81130.C: New test.
5333 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5335 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
5337 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
5338 dg-xfail-run-if default args.
5340 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5342 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
5343 * testsuite/libgomp.c/pr39591-3.c: Likewise.
5345 2017-05-30 Jakub Jelinek <jakub@redhat.com>
5348 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
5349 (gomp_affinity_init_level): Use it. Always analyze the core and thread
5350 sibling lists, depending on level just pick up what CPUs to put
5351 together into a place vs. whether add multiple ordered places.
5353 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
5355 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
5356 * libgomp.map (OACC_2.0.1): Add these.
5357 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
5358 for "acc_wait", and "acc_wait_all", respectively.
5359 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
5360 for "acc_wait", and "acc_wait_all", respectively.
5361 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
5362 * libgomp.texi (acc_wait, acc_wait_all): Update.
5363 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
5364 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
5365 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5367 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
5368 acc_present_or_copyin and acc_present_or_create procedures,
5370 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
5371 generally different variants of OpenACC Runtime Library functions.
5372 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
5374 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
5375 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
5377 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
5378 of preprocessor definitions.
5379 * libgomp.h (strong_alias): Guard by "#ifdef
5380 HAVE_ATTRIBUTE_ALIAS".
5381 * oacc-mem.c: Provide "acc_pcreate" as alias for
5382 "acc_present_or_create", and "acc_pcopyin" as alias for
5383 "acc_present_or_copyin".
5384 * libgomp.map: New version "OACC_2.0.1".
5385 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
5386 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
5388 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
5391 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
5392 when disabling nvptx offloading.
5394 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
5396 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
5397 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5398 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
5400 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
5401 * testsuite/lib/libgomp.exp
5402 (check_effective_target_openacc_nvidia_accel_configured): New
5404 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
5405 (check_effective_target_c++): New procs.
5406 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
5407 (check_effective_target_c++): Likewise.
5409 2017-05-22 Jakub Jelinek <jakub@redhat.com>
5412 * testsuite/libgomp.c/pr80809-2.c: New test.
5413 * testsuite/libgomp.c/pr80809-3.c: New test.
5416 * testsuite/libgomp.c/pr80809-1.c: New test.
5419 * testsuite/libgomp.c/pr80853.c: New test.
5421 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
5423 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
5424 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
5425 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
5426 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
5427 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
5429 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
5430 Debug output for failure.
5432 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5434 * testsuite/lib/libgomp.exp: Load scanlang.exp.
5436 2017-04-27 Jakub Jelinek <jakub@redhat.com>
5439 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
5440 bootstrap compare failures.
5442 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
5444 * testsuite/libgomp.c/target-36.c: New testcase.
5446 2017-04-13 Jakub Jelinek <jakub@redhat.com>
5448 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
5451 2017-04-11 Jakub Jelinek <jakub@redhat.com>
5454 * testsuite/libgomp.c/pr80394.c: New test.
5456 2017-04-04 Jakub Jelinek <jakub@redhat.com>
5459 * config/posix/thread-stacksize.h: New file.
5460 * config/darwin/thread-stacksize.h: New file.
5461 * config/nvptx/thread-stacksize.h: New file.
5462 * env.c: Include thread-stacksize.h.
5463 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
5464 instead of 0. Call pthread_attr_setstacksize even if
5465 GOMP_DEFAULT_STACKSIZE is non-zero.
5467 2017-03-30 Jakub Jelinek <jakub@redhat.com>
5469 * env.c (initialize_env): Initialize stacksize to 0.
5471 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
5474 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
5476 2017-03-08 Jakub Jelinek <jakub@redhat.com>
5479 * testsuite/libgomp.c/pr79940.c: New test.
5481 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5483 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
5485 Add __float128 options.
5487 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
5489 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
5490 hppa*-*-* dg-skip-if directive.
5492 2017-02-09 Jakub Jelinek <jakub@redhat.com>
5494 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
5495 dg-skip-if directive into a comment.
5497 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
5498 Chung-Lin Tang <cltang@codesourcery.com>
5500 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
5501 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
5502 add additional case.
5503 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
5504 "openacc_nvidia_accel_selected".
5505 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
5506 Add num_workers(8) clause.
5508 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
5510 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
5512 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
5513 include complex.h on hppa*-*-hpux*.
5514 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
5516 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
5518 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
5520 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
5521 GOMP_OFFLOAD_openacc_exec. Adjust all users.
5522 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
5523 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
5524 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
5525 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
5526 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
5527 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
5528 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
5529 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
5531 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
5533 * libgomp-plugin.h: #include <stdbool.h>.
5534 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
5535 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
5536 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
5537 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
5538 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
5539 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
5540 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
5541 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
5542 (GOMP_OFFLOAD_openacc_register_async_cleanup)
5543 (GOMP_OFFLOAD_openacc_async_test)
5544 (GOMP_OFFLOAD_openacc_async_test_all)
5545 (GOMP_OFFLOAD_openacc_async_wait)
5546 (GOMP_OFFLOAD_openacc_async_wait_async)
5547 (GOMP_OFFLOAD_openacc_async_wait_all)
5548 (GOMP_OFFLOAD_openacc_async_wait_all_async)
5549 (GOMP_OFFLOAD_openacc_async_set_async)
5550 (GOMP_OFFLOAD_openacc_create_thread_data)
5551 (GOMP_OFFLOAD_openacc_destroy_thread_data)
5552 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
5553 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
5554 (GOMP_OFFLOAD_openacc_get_cuda_stream)
5555 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
5556 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
5558 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
5559 (GOMP_OFFLOAD_unload_image): Fix argument types.
5561 2017-01-26 Jakub Jelinek <jakub@redhat.com>
5563 * testsuite/lib/libgomp.exp
5564 (check_effective_target_hsa_offloading_selected_nocache): Fix up
5565 check_compile invocation. Fix up removal of executable. Drop
5566 bogus "2>&1" argument.
5568 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
5571 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
5572 Martin Jambor <mjambor@suse.cz>
5574 * plugin/hsa.h: Moved to top level include.
5575 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
5577 2017-01-21 Jakub Jelinek <jakub@redhat.com>
5580 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
5581 of cat to get version from BASE-VER file.
5582 * testsuite/Makefile.in: Regenerated.
5584 2017-01-19 Jakub Jelinek <jakub@redhat.com>
5586 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
5589 2017-01-17 Jakub Jelinek <jakub@redhat.com>
5591 * plugin/hsa.h: Add GCC runtime library exception.
5592 * plugin/hsa_ext_finalize.h: Likewise.
5594 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
5595 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
5596 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
5597 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
5598 plugin/include/cuda as include dir and -ldl instead of -lcuda as
5599 library to link ptx plugin against.
5600 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
5601 (CUDA_CALLS): Define.
5602 (cuda_lib, cuda_lib_inited): New variables.
5603 (init_cuda_lib): New function.
5604 (CUDA_CALL_PREFIX): Define.
5605 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
5606 (CUDA_CALL): Use FN instead of (FN).
5607 (CUDA_CALL_NOCHECK): Define.
5608 (cuda_error, fini_streams_for_device, select_stream_for_async,
5609 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
5610 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
5611 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
5612 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
5614 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
5616 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
5617 Use CUDA_CALL_NOCHECK.
5618 * plugin/cuda/cuda.h: New file.
5619 * config.h.in: Regenerated.
5620 * configure: Regenerated.
5623 * configure.ac: Add GCC_BASE_VER.
5624 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
5625 get version from BASE-VER file.
5626 * testsuite/Makefile.in: Regenerated.
5627 * configure: Regenerated.
5628 * Makefile.in: Regenerated.
5630 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5633 * Makefile.am: Make fincludedir multilib-aware.
5634 * Makefile.in: Regenerate.
5636 2017-01-01 Jakub Jelinek <jakub@redhat.com>
5638 Update copyright years.
5640 * libgomp.texi: Bump @copying's copyright year.
5642 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
5644 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
5645 pthread_spinlock_t instead of gomp_mutex_t lock.
5646 (gomp_get_thread_pool): Likewise.
5647 (gomp_release_thread_pool): Likewise.
5648 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
5651 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
5653 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
5654 thread pool in case nthreads == 1.
5656 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
5658 * config/nvptx/env.c: Delete.
5659 * icv.c: Move definitions of ICV variables back ...
5660 * env.c: ...here. Do not compile environment-related functionality if
5661 LIBGOMP_OFFLOADED_ONLY is set.
5663 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
5665 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
5666 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
5667 * configure: Regenerate.
5668 * config.h.in: Likewise.
5670 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
5672 * Makefile.in: Regenerate with automake-1.11.6.
5673 * aclocal.m4: Likewise.
5674 * configure: Likewise.
5675 * testsuite/Makefile.in: Likewise.
5677 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
5679 * config/nvptx/critical.c: Delete to use generic implementation.
5681 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
5683 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
5684 ../../affinity.c as fallback.
5685 * config/nvptx/affinity.c: Delete to use fallback implementation.
5687 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
5688 Jakub Jelinek <jakub@redhat.com>
5689 Dmitry Melnik <dm@ispras.ru>
5691 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
5692 * Makefile.in. Regenerate.
5693 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
5694 (LIBGOMP_USE_PTHREADS): ...here; new define.
5695 * configure: Regenerate.
5696 * config.h.in: Likewise.
5697 * config/posix/affinity.c: Move to...
5698 * affinity.c: ...here (new file). Guard use of Pthreads-specific
5699 interface by LIBGOMP_USE_PTHREADS.
5700 * critical.c: Split out GOMP_atomic_{start,end} into...
5701 * atomic.c: ...here (new file).
5702 * env.c: Split out ICV definitions into...
5703 * icv.c: ...here (new file) and...
5704 * icv-device.c: ...here. New file.
5705 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
5706 (gomp_destroy_lock_30): Ditto.
5707 (gomp_set_lock_30): Ditto.
5708 (gomp_unset_lock_30): Ditto.
5709 (gomp_test_lock_30): Ditto.
5710 (gomp_init_nest_lock_30): Ditto.
5711 (gomp_destroy_nest_lock_30): Ditto.
5712 (gomp_set_nest_lock_30): Ditto.
5713 (gomp_unset_nest_lock_30): Ditto.
5714 (gomp_test_nest_lock_30): Ditto.
5716 * config/nvptx/lock.c: New.
5717 * config/nvptx/bar.c: New.
5718 * config/nvptx/bar.h: New.
5719 * config/nvptx/doacross.h: New.
5720 * config/nvptx/error.c: New.
5721 * config/nvptx/icv-device.c: New.
5722 * config/nvptx/mutex.h: New.
5723 * config/nvptx/pool.h: New.
5724 * config/nvptx/proc.c: New.
5725 * config/nvptx/ptrlock.h: New.
5726 * config/nvptx/sem.h: New.
5727 * config/nvptx/simple-bar.h: New.
5728 * config/nvptx/target.c: New.
5729 * config/nvptx/task.c: New.
5730 * config/nvptx/team.c: New.
5731 * config/nvptx/time.c: New.
5732 * config/posix/simple-bar.h: New.
5733 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
5734 (gomp_num_teams_var): Declare.
5735 (struct gomp_thread_pool): Change threads_dock member to
5736 gomp_simple_barrier_t.
5737 [__nvptx__] (gomp_thread): New implementation.
5738 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
5739 (gomp_thread_destructor): Ditto.
5740 (gomp_init_thread_affinity): Ditto.
5741 * team.c: Guard uses of Pthreads-specific interfaces by
5742 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
5743 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
5744 * config/nvptx/alloc.c: Delete.
5745 * config/nvptx/barrier.c: Ditto.
5746 * config/nvptx/fortran.c: Ditto.
5747 * config/nvptx/iter.c: Ditto.
5748 * config/nvptx/iter_ull.c: Ditto.
5749 * config/nvptx/loop.c: Ditto.
5750 * config/nvptx/loop_ull.c: Ditto.
5751 * config/nvptx/ordered.c: Ditto.
5752 * config/nvptx/parallel.c: Ditto.
5753 * config/nvptx/priority_queue.c: Ditto.
5754 * config/nvptx/sections.c: Ditto.
5755 * config/nvptx/single.c: Ditto.
5756 * config/nvptx/splay-tree.c: Ditto.
5757 * config/nvptx/work.c: Ditto.
5758 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
5759 -foffload=-lgfortran in addition to -lgfortran.
5760 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
5761 * plugin/plugin-nvptx.c: Include <limits.h>.
5762 (struct targ_fn_descriptor): Add new fields.
5763 (struct ptx_device): Ditto. Set them...
5764 (nvptx_open_device): ...here.
5765 (nvptx_adjust_launch_bounds): New.
5766 (nvptx_host2dev): Allow NULL 'nvthd'.
5767 (nvptx_dev2host): Ditto.
5768 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
5769 (link_ptx): Adjust log sizes.
5770 (nvptx_host2dev): Allow NULL 'nvthd'.
5771 (nvptx_dev2host): Ditto.
5772 (nvptx_set_clocktick): New. Use it...
5773 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
5775 (GOMP_OFFLOAD_dev2dev): New.
5776 (nvptx_adjust_launch_bounds): New.
5777 (nvptx_stacks_size): New.
5778 (nvptx_stacks_alloc): New.
5779 (nvptx_stacks_free): New.
5780 (GOMP_OFFLOAD_run): New.
5781 (GOMP_OFFLOAD_async_run): New (stub).
5783 2016-11-23 Martin Jambor <mjambor@suse.cz>
5785 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
5786 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
5787 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
5789 2016-11-23 Martin Liska <mliska@suse.cz>
5790 Martin Jambor <mjambor@suse.cz>
5792 * plugin/hsa.h: New file.
5793 * plugin/hsa_ext_finalize.h: New file.
5794 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
5795 header file unistd.h, and functions secure_getenv, __secure_getenv,
5796 getuid, geteuid, getgid and getegid.
5797 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
5799 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
5800 Handle various cases of secure_getenv presence, add an implementation
5801 when we can test effective UID and GID.
5802 (struct hsa_runtime_fn_info): New structure.
5803 (hsa_runtime_fn_info hsa_fns): New variable.
5804 (hsa_runtime_lib): Likewise.
5805 (support_cpu_devices): Likewise.
5806 (init_enviroment_variables): Load newly introduced ENV
5808 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
5809 (hsa_fatal): Likewise.
5810 (DLSYM_FN): New macro.
5811 (init_hsa_runtime_functions): New function.
5812 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
5813 structure. Depending on environment, also allow CPU devices.
5814 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
5815 (get_kernarg_memory_region): Likewise.
5816 (GOMP_OFFLOAD_init_device): Likewise.
5817 (destroy_hsa_program): Likewise.
5818 (init_basic_kernel_info): New function.
5819 (GOMP_OFFLOAD_load_image): Use it.
5820 (create_and_finalize_hsa_program): Call hsa run-time functions via
5822 (create_single_kernel_dispatch): Likewise.
5823 (release_kernel_dispatch): Likewise.
5824 (init_single_kernel): Likewise.
5825 (parse_target_attributes): Allow up multiple HSA grid dimensions.
5826 (get_group_size): New function.
5827 (run_kernel): Likewise.
5828 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
5829 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
5831 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
5832 * testsuite/libgomp-test-support.exp.in: Likewise.
5833 * Makefile.in: Regenerated.
5834 * aclocal.m4: Likewise.
5835 * config.h.in: Likewise.
5836 * configure: Likewise.
5837 * testsuite/Makefile.in: Likewise.
5839 2016-11-15 Martin Jambor <mjambor@suse.cz>
5840 Alexander Monakov <amonakov@ispras.ru>
5842 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
5843 mapping clauses to target constructs.
5844 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
5846 2016-11-15 Matthias Klose <doko@ubuntu.com>
5848 * configure: Regenerate.
5850 2016-11-10 Jakub Jelinek <jakub@redhat.com>
5852 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
5853 * omp_lib.h.in (openmp_version): Likewise.
5854 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
5856 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
5858 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
5859 (fib_wrapper): Add map(from: x) clause.
5860 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
5862 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
5863 (accum): Add map(tmp) clause.
5864 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
5865 (accum): Add map(tofrom: tmp) clause.
5866 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
5867 (gramSchmidt): Likewise.
5868 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
5869 map(tofrom: sum) clause.
5870 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
5871 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
5872 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
5873 only allowed on the loop iterator.
5874 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
5875 * testsuite/libgomp.fortran/taskloop2.f90: New test.
5876 * testsuite/libgomp.fortran/taskloop4.f90: New test.
5877 * testsuite/libgomp.fortran/doacross1.f90: New test.
5878 * testsuite/libgomp.fortran/doacross3.f90: New test.
5879 * testsuite/libgomp.fortran/taskloop1.f90: New test.
5880 * testsuite/libgomp.fortran/taskloop3.f90: New test.
5881 * testsuite/libgomp.fortran/doacross2.f90: New test.
5882 * testsuite/libgomp.c/doacross-1.c (main): Add missing
5883 #pragma omp atomic read.
5884 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
5885 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
5887 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
5888 Nathan Sidwell <nathan@acm.org>
5890 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
5891 to determine default geometry.
5892 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
5895 2016-11-01 Jakub Jelinek <jakub@redhat.com>
5897 * hashtab.h: Use standard GPLv3 with runtime exception
5900 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
5902 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
5903 size when allocating new thread.
5905 2016-09-14 Marek Polacek <polacek@redhat.com>
5907 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
5909 2016-08-19 Jakub Jelinek <jakub@redhat.com>
5912 * testsuite/libgomp.fortran/pr71014.f90: New test.
5914 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
5917 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
5918 firstprivate clauses.
5919 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
5921 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5922 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
5923 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
5924 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
5925 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5926 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
5927 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5928 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
5929 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5930 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5931 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5932 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
5934 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
5937 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
5939 2016-08-08 Jakub Jelinek <jakub@redhat.com>
5942 * testsuite/libgomp.c++/pr58706.C: New test.
5944 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
5946 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
5947 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
5948 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
5950 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
5951 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
5953 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
5955 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
5956 test, and don't hardcode -O0.
5958 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
5960 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
5962 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
5964 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
5967 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
5970 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
5971 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
5973 2016-07-01 Jakub Jelinek <jakub@redhat.com>
5976 * testsuite/libgomp.fortran/associate3.f90: New test.
5978 2016-06-17 Jakub Jelinek <jakub@redhat.com>
5980 * testsuite/libgomp.c++/target-21.C: New test.
5982 2016-06-16 Jakub Jelinek <jakub@redhat.com>
5984 * testsuite/libgomp.c++/target-20.C: New test.
5986 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
5987 Cesar Philippidis <cesar@codesourcery.com>
5990 * libgomp.oacc-c/nested-function-1.c: New file.
5991 * libgomp.oacc-c/nested-function-2.c: Likewise.
5992 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
5993 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
5994 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
5996 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
5999 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
6000 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
6001 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
6003 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
6005 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
6006 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
6008 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
6011 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
6013 2016-05-26 Jakub Jelinek <jakub@redhat.com>
6015 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
6016 instead of invalid schedule(static, 0).
6017 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
6019 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
6021 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
6022 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
6023 parameter, use to set async stream around call to gomp_unmap_vars,
6024 call gomp_unmap_vars() with 'do_copyfrom' set to true.
6025 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
6026 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
6027 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
6028 (event_add): Add int parameter, initialize 'val' field when
6029 adding new ptx_event struct.
6030 (nvptx_evec): Adjust event_add() call arguments.
6031 (nvptx_host2dev): Likewise.
6032 (nvptx_dev2host): Likewise.
6033 (nvptx_wait_async): Likewise.
6034 (nvptx_wait_all_async): Likewise.
6035 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
6036 pass to event_add() call.
6037 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
6039 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
6040 call openacc.register_async_cleanup_func() hook.
6041 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
6042 * target.c (gomp_copy_from_async): Delete function.
6043 (gomp_map_vars): Remove async_refcount.
6044 (gomp_unmap_vars): Likewise.
6045 (gomp_load_image_to_device): Likewise.
6046 (omp_target_associate_ptr): Likewise.
6047 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
6048 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
6049 (gomp_copy_from_async): Remove.
6051 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
6053 * target.c (gomp_device_copy): New function.
6054 (gomp_copy_host2dev): Likewise.
6055 (gomp_copy_dev2host): Likewise.
6056 (gomp_free_device_memory): Likewise.
6057 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
6058 (gomp_map_pointer): Likewise.
6059 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
6060 NULL value from alloc_func plugin hook.
6061 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
6062 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
6063 (gomp_unmap_vars): Likewise.
6064 (gomp_update): Adjust to call gomp_copy_dev2host and
6065 gomp_copy_host2dev functions.
6066 (gomp_unload_image_from_device): Handle false value from
6067 unload_image_func plugin hook.
6068 (gomp_init_device): Handle false value from init_device_func
6070 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
6071 (omp_target_free): Adjust to call gomp_free_device_memory.
6072 (omp_target_memcpy): Handle return values from host2dev_func,
6073 dev2host_func, and dev2dev_func plugin hooks.
6074 (omp_target_memcpy_rect_worker): Likewise.
6075 (gomp_target_fini): Handle false value from fini_device_func
6077 * libgomp.h (struct gomp_device_descr): Adjust return type of
6078 init_device_func, fini_device_func, unload_image_func, free_func,
6079 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
6080 * oacc-init.c (acc_shutdown_1): Handle false value from
6081 fini_device_func plugin hook.
6082 * oacc-host.c (host_init_device): Change return type to bool.
6083 (host_fini_device): Likewise.
6084 (host_unload_image): Likewise.
6085 (host_free): Likewise.
6086 (host_dev2host): Likewise.
6087 (host_host2dev): Likewise.
6088 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
6089 (acc_memcpy_to_device): Likewise.
6090 (acc_memcpy_from_device): Likewise.
6091 (delete_copyout): Add libfnname parameter, handle free_func
6092 hook fatal error case.
6093 (acc_delete): Adjust delete_copyout call.
6094 (acc_copyout): Likewise.
6095 (update_dev_host): Move gomp_mutex_unlock to after
6096 host2dev/dev2host hook calls.
6098 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
6099 to 'hsa_error_msg', for clarity.
6100 (hsa_fatal): Likewise.
6101 (hsa_error): New function.
6102 (init_hsa_context): Change return type to bool, adjust to return
6104 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
6106 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
6107 return false on error.
6108 (get_agent_info): Adjust to return NULL on error.
6109 (destroy_hsa_program): Change return type to bool, adjust to
6110 return false on error.
6111 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
6112 (destroy_module): Change return type to bool, adjust to
6113 return false on error.
6114 (GOMP_OFFLOAD_unload_image): Likewise.
6115 (GOMP_OFFLOAD_fini_device): Likewise.
6116 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
6117 (GOMP_OFFLOAD_free): Change to return false when called.
6118 (GOMP_OFFLOAD_dev2host): Likewise.
6119 (GOMP_OFFLOAD_host2dev): Likewise.
6120 (GOMP_OFFLOAD_dev2dev): Likewise.
6122 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
6123 (CUDA_CALL): Likewise.
6124 (CUDA_CALL_ASSERT): Likewise.
6125 (map_init): Change return type to bool, use CUDA_CALL* macros.
6126 (map_fini): Likewise.
6127 (init_streams_for_device): Change return type to bool, adjust
6129 (fini_streams_for_device): Change return type to bool, adjust
6131 (select_stream_for_async): Release stream_lock before calls to
6132 GOMP_PLUGIN_fatal, adjust call to map_init.
6133 (nvptx_init): Use CUDA_CALL* macros.
6134 (nvptx_attach_host_thread_to_device): Change return type to bool,
6135 use CUDA_CALL* macros.
6136 (nvptx_open_device): Use CUDA_CALL* macros.
6137 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
6139 (nvptx_get_num_devices): Use CUDA_CALL* macros.
6140 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
6141 (nvptx_exec): Use CUDA_CALL* macros.
6142 (nvptx_alloc): Use CUDA_CALL* macros.
6143 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
6144 (nvptx_host2dev): Likewise.
6145 (nvptx_dev2host): Likewise.
6146 (nvptx_wait): Use CUDA_CALL* macros.
6147 (nvptx_wait_async): Likewise.
6148 (nvptx_wait_all): Likewise.
6149 (nvptx_wait_all_async): Likewise.
6150 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
6151 use CUDA_CALL* macros, adjust call to map_fini.
6152 (GOMP_OFFLOAD_init_device): Change return type to bool,
6153 adjust code accordingly.
6154 (GOMP_OFFLOAD_fini_device): Likewise.
6155 (GOMP_OFFLOAD_load_image): Adjust calls to
6156 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
6157 use CUDA_CALL* macros.
6158 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
6160 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
6161 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
6162 handle error return.
6163 (GOMP_OFFLOAD_dev2host): Likewise.
6164 (GOMP_OFFLOAD_host2dev): Likewise.
6165 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
6166 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
6168 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
6170 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
6171 (acc_free): Likewise.
6172 (acc_memcpy_to_device): Likewise.
6173 (acc_memcpy_from_device): Likewise.
6174 (acc_deviceptr): Likewise.
6175 (acc_hostptr): Likewise.
6176 (acc_is_present): Likewise.
6177 (acc_map_data): Likewise.
6178 (acc_unmap_data): Likewise.
6179 (present_create_copy): Likewise.
6180 (delete_copyout): Likewise.
6181 (update_dev_host): Likewise.
6182 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
6183 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
6184 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
6185 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
6186 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
6187 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
6188 it only runs on nvptx targets.
6189 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
6190 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
6191 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6192 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6193 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6194 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6195 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6196 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6197 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6198 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
6199 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6200 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6201 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6202 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6203 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6204 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6205 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6206 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6207 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6208 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6209 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6210 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6211 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6213 2016-05-23 Martin Jambor <mjambor@suse.cz>
6215 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
6217 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
6219 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
6220 to gomp_init_targets_once.
6221 (acc_set_device_type): Remove !cached_base_dev condition on call to
6222 gomp_init_targets_once, move call to before acc_device_lock acquire,
6224 (acc_get_device_num): Remove !cached_base_dev condition on call to
6225 gomp_init_targets_once.
6226 (acc_set_device_num): Likewise.
6228 2016-05-16 Martin Jambor <mjambor@suse.cz>
6230 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
6232 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
6234 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
6235 expected partitioning.
6237 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
6240 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
6241 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
6242 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
6244 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
6246 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
6249 2016-04-19 Jakub Jelinek <jakub@redhat.com>
6252 * testsuite/libgomp.c/pr70680-1.c: New test.
6253 * testsuite/libgomp.c/pr70680-2.c: New test.
6255 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
6257 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
6258 pass parameter variables to subroutines.
6260 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
6263 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
6265 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
6268 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
6269 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6271 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
6273 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
6274 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
6275 GOACC_declare prototype.
6277 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
6278 Merge this file, and...
6279 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
6280 ... this file, and...
6281 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
6282 ... this file, and...
6283 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
6284 ... this file, and...
6285 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
6286 ... this file, and...
6287 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
6288 ... this file, and...
6289 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
6290 ... this file, and...
6291 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
6292 ... this file, and...
6293 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
6294 ... this file, and...
6295 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
6296 ... this file, and...
6297 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
6298 ... this file, and...
6299 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
6300 ... this file, and...
6301 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
6302 ... this file into...
6303 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
6306 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
6307 Make failure observable.
6309 2016-04-12 Jakub Jelinek <jakub@redhat.com>
6311 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
6313 * target.c (gomp_target_fallback_firstprivate,
6314 gomp_target_unshare_firstprivate): Removed.
6315 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
6316 before waiting for dependencies.
6317 (gomp_target_task_fn): Don't copy firstprivate vars here.
6318 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
6319 firstprivate_copies here.
6320 (gomp_create_target_task): Don't initialize firstprivate_copies field.
6321 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
6322 explicit/implicit firstprivate.
6324 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
6328 PR tree-optimization/70373
6332 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
6334 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
6336 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
6338 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
6340 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
6342 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
6344 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
6346 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
6348 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
6350 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
6351 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
6352 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
6353 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
6355 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
6357 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
6359 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
6361 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
6363 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6364 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
6365 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
6366 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
6367 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
6368 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
6370 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6371 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6372 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6373 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6374 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
6375 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
6376 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
6377 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
6378 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
6379 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
6380 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
6381 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
6382 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6383 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6384 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
6386 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
6387 James Norris <jnorris@codesourcery.com>
6388 Nathan Sidwell <nathan@codesourcery.com>
6389 Julian Brown <julian@codesourcery.com>
6390 Cesar Philippidis <cesar@codesourcery.com>
6391 Chung-Lin Tang <cltang@codesourcery.com>
6392 Tom de Vries <tom@codesourcery.com>
6394 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
6395 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
6396 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
6397 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
6398 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
6399 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
6400 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
6401 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
6402 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
6404 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
6406 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
6408 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
6409 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
6410 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
6411 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
6413 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
6415 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
6416 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
6417 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
6418 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
6419 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
6420 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
6421 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
6422 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
6423 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
6424 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
6426 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
6427 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
6428 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
6430 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
6432 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
6434 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
6436 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
6438 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
6439 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
6440 ... this new file. Update.
6441 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
6442 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
6443 ... this new file. Update.
6444 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
6445 file. Incorporate...
6446 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
6448 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
6450 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
6452 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
6454 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
6456 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
6457 set-torture-options.
6459 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
6461 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
6463 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6464 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
6465 -fno-builtin-acc_on_device instead of -O0.
6466 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
6468 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
6469 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
6471 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
6472 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
6473 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
6474 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
6475 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
6476 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
6477 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
6478 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6479 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6480 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
6481 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6482 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
6483 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
6484 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
6485 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
6486 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
6487 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
6488 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
6490 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
6492 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
6495 2016-03-24 Martin Liska <mliska@suse.cz>
6497 * plugin/plugin-hsa.c (packet_store_release): New function
6498 that is taken from the HSA runtime manual.
6499 (GOMP_OFFLOAD_run): Use the function.
6501 2016-03-23 Jakub Jelinek <jakub@redhat.com>
6504 * testsuite/libgomp.c++/pr70376.C: New test.
6506 2016-03-23 Tom de Vries <tom@codesourcery.com>
6508 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
6509 initialization of lresult and lvresult.
6510 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
6512 2016-03-23 James Norris <jnorris@codesourcery.com>
6513 Daichi Fukuoka <dc-fukuoka@sgi.com>
6516 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
6517 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
6518 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
6519 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
6521 2016-03-23 Martin Liska <mliska@suse.cz>
6524 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
6525 argument just in case a dispatched kernel uses that argument.
6527 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
6529 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
6530 -ftree-parallelize-loops/-fopenacc changes.
6531 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
6533 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
6535 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
6537 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
6539 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
6540 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
6542 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
6544 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
6545 always_ld_library_path the path to libgcc_s.
6547 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
6550 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
6552 2016-03-09 Tom de Vries <tom@codesourcery.com>
6554 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
6555 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
6556 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
6558 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
6559 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
6560 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
6561 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
6563 2016-03-07 Martin Jambor <mjambor@suse.cz>
6565 * testsuite/lib/libgomp.exp
6566 (check_effective_target_hsa_offloading_selected_nocache): New.
6567 (check_effective_target_hsa_offloading_selected): Likewise.
6568 * testsuite/libgomp.hsa.c/c.exp: Likewise.
6569 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
6570 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
6571 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
6572 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
6573 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
6574 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
6575 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
6576 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
6577 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
6578 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
6579 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
6580 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
6581 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
6582 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
6583 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
6584 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
6586 2016-03-07 Martin Jambor <mjambor@suse.cz>
6588 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
6589 non-shared memory accelerators.
6590 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
6591 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
6592 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
6593 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
6594 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
6595 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
6596 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
6597 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
6598 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
6600 2016-03-07 Martin Jambor <mjambor@suse.cz>
6602 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
6605 2016-03-02 Jakub Jelinek <jakub@redhat.com>
6608 * testsuite/libgomp.c++/pr69555-1.C: New test.
6609 * testsuite/libgomp.c++/pr69555-2.C: New test.
6611 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
6612 Martin Jambor <mjambor@suse.cz>
6614 * testsuite/lib/libgomp.exp
6615 (check_effective_target_offload_device_shared_as): New proc.
6616 * testsuite/libgomp.c++/declare_target-1.C: New test.
6618 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
6621 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
6623 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
6625 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
6626 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
6628 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
6629 -ftree-parallelize-loops/-fopenacc changes.
6630 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
6631 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
6633 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
6635 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
6637 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
6639 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
6641 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
6643 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
6645 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
6646 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
6648 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
6649 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
6651 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
6652 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
6655 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
6657 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
6659 2016-02-19 Jakub Jelinek <jakub@redhat.com>
6662 * testsuite/libgomp.c/pr69805.c: New test.
6664 2016-02-16 Tom de Vries <tom@codesourcery.com>
6667 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
6669 2016-02-09 Tom de Vries <tom@codesourcery.com>
6671 PR tree-optimization/69599
6672 * testsuite/libgomp.c/omp-nested-3.c: New test.
6673 * testsuite/libgomp.c/pr46032-2.c: New test.
6674 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
6675 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
6677 2016-02-09 Tom de Vries <tom@codesourcery.com>
6680 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
6682 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
6684 * testsuite/libgomp.c/target-31.c: Fix testcase.
6686 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
6688 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
6690 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
6691 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
6692 reduction and map clauses.
6693 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
6695 2016-02-02 James Norris <jnorris@codesourcery.com>
6697 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
6699 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
6701 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
6702 * oacc-parallel.c (GOACC_host_data): Remove function definition.
6704 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
6707 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
6709 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
6710 (hsa_kmt_lib): Set variables.
6711 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
6712 always_ld_library_path.
6713 * Makefile.in: Regenerate.
6714 * configure: Likewise.
6715 * testsuite/Makefile.in: Likewise.
6717 * plugin/configfrag.ac (offload_additional_options)
6718 (offload_additional_lib_paths): Don't amend for hsa offloading.
6719 * configure: Regenerate.
6721 * plugin/configfrag.ac: Don't configure for offloading target if
6722 we don't build the corresponding plugin.
6723 * configure: Regenerate.
6725 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
6727 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
6728 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
6730 2016-01-26 Tom de Vries <tom@codesourcery.com>
6732 PR tree-optimization/69110
6733 * testsuite/libgomp.c/pr69110.c: New test.
6735 2016-01-25 Richard Biener <rguenther@suse.de>
6738 * testsuite/libgomp.c++/pr69393.C: New testcase.
6740 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
6742 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
6743 function wasn't mapped to the device with non-shared memory.
6745 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
6747 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
6749 2016-01-19 Martin Jambor <mjambor@suse.cz>
6750 Martin Liska <mliska@suse.cz>
6752 * plugin/Makefrag.am: Add HSA plugin requirements.
6753 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
6754 (HSA_RUNTIME_LIB): Likewise.
6755 (HSA_RUNTIME_CPPFLAGS): Likewise.
6756 (HSA_RUNTIME_INCLUDE): New substitution.
6757 (HSA_RUNTIME_LIB): Likewise.
6758 (HSA_RUNTIME_LDFLAGS): Likewise.
6759 (hsa-runtime): New configure option.
6760 (hsa-runtime-include): Likewise.
6761 (hsa-runtime-lib): Likewise.
6762 (PLUGIN_HSA): New substitution variable.
6763 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
6765 (PLUGIN_HSA_CPPFLAGS): Likewise.
6766 (PLUGIN_HSA_LDFLAGS): Likewise.
6767 (PLUGIN_HSA_LIBS): Likewise.
6768 Check that we have access to HSA run-time.
6769 * libgomp-plugin.h (offload_target_type): New element
6770 OFFLOAD_TARGET_TYPE_HSA.
6771 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
6773 (bool gomp_create_target_task): Updated.
6774 (gomp_device_descr): Extra parameter of run_func and async_run_func,
6775 new field can_run_func.
6776 * libgomp_g.h (GOMP_target_ext): Update prototype.
6777 * oacc-host.c (host_run): Added a new parameter args.
6778 * target.c (calculate_firstprivate_requirements): New function.
6779 (copy_firstprivate_data): Likewise.
6780 (gomp_target_fallback_firstprivate): Use them.
6781 (gomp_target_unshare_firstprivate): New function.
6782 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
6784 (GOMP_target): Do host fallback for all shared memory devices. Do not
6785 pass any args to plugins.
6786 (GOMP_target_ext): Introduce device-specific argument parameter args.
6787 Allow host fallback if device shares memory. Do not remap data if
6788 device has shared memory.
6789 (gomp_target_task_fn): Likewise. Also treat shared memory devices
6790 like host fallback for mappings.
6791 (GOMP_target_data): Treat shared memory devices like host fallback.
6792 (GOMP_target_data_ext): Likewise.
6793 (GOMP_target_update): Likewise.
6794 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
6795 gomp_create_target_task.
6796 (GOMP_target_enter_exit_data): Likewise.
6797 (omp_target_alloc): Treat shared memory devices like host fallback.
6798 (omp_target_free): Likewise.
6799 (omp_target_is_present): Likewise.
6800 (omp_target_memcpy): Likewise.
6801 (omp_target_memcpy_rect): Likewise.
6802 (omp_target_associate_ptr): Likewise.
6803 (gomp_load_plugin_for_device): Also load can_run.
6804 * task.c (GOMP_PLUGIN_target_task_completion): Free
6805 firstprivate_copies.
6806 (gomp_create_target_task): Accept new argument args and store it to
6808 * plugin/plugin-hsa.c: New file.
6810 2016-01-18 Tom de Vries <tom@codesourcery.com>
6812 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
6813 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
6814 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
6815 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
6816 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
6817 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
6818 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
6819 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
6820 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
6821 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
6822 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
6824 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
6826 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
6827 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
6828 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
6829 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
6830 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
6831 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
6832 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
6833 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
6835 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
6837 2016-01-15 Jakub Jelinek <jakub@redhat.com>
6839 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
6841 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
6843 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
6845 2016-01-12 James Norris <jnorris@codesourcery.com>
6847 * libgomp.texi: Updates for OpenACC.
6849 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
6851 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
6853 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
6856 * testsuite/libgomp.fortran/pr66680.f90: New test.
6858 2016-01-07 Jakub Jelinek <jakub@redhat.com>
6861 * testsuite/libgomp.c/pr68960.c: New test.
6863 2016-01-06 Nathan Sidwell <nathan@acm.org>
6865 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
6866 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
6868 2016-01-04 Jakub Jelinek <jakub@redhat.com>
6870 Update copyright years.
6872 * libgomp.texi: Bump @copying's copyright year.
6874 2015-12-31 Nathan Sidwell <nathan@acm.org>
6876 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
6877 dg-additional-options syntax.
6878 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
6879 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
6880 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
6881 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
6882 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
6883 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
6884 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
6885 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
6886 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
6887 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
6888 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
6889 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
6890 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6891 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
6892 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
6893 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
6894 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
6895 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6897 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
6899 * libgomp.h (REFCOUNT_LINK): Define.
6900 (struct splay_tree_key_s): Add link_key.
6901 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
6902 Replace target address of the pointer with target address of newly
6903 mapped object in the splay tree. Set link pointer on target to the
6904 device address of the mapped object.
6905 (gomp_unmap_vars): Restore target address of the pointer in the splay
6906 tree for REFCOUNT_LINK objects after unmapping.
6907 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
6908 declare target link" objects.
6909 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
6910 "omp declare target link" objects, which were mapped for the image.
6911 (gomp_exit_data): Restore target address of the pointer in the splay
6912 tree for REFCOUNT_LINK objects after unmapping.
6913 * testsuite/libgomp.c/target-link-1.c: New file.
6915 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
6917 * libgomp.h (gomp_device_state): New enum.
6918 (struct gomp_device_descr): Replace is_initialized with state.
6919 (gomp_fini_device): Remove declaration.
6920 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
6921 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
6922 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
6923 (acc_set_device_type): Use state instead of is_initialized.
6924 (acc_set_device_num): Likewise.
6925 * target.c (resolve_device): Use state instead of is_initialized.
6926 Do not initialize finalized device.
6927 (gomp_map_vars): Do nothing if device is finalized.
6928 (gomp_unmap_vars): Likewise.
6929 (gomp_update): Likewise.
6930 (GOMP_offload_register_ver): Use state instead of is_initialized.
6931 (GOMP_offload_unregister_ver): Likewise.
6932 (gomp_init_device): Likewise.
6933 (gomp_unload_device): Likewise.
6934 (gomp_fini_device): Remove.
6935 (gomp_get_target_fn_addr): Do nothing if device is finalized.
6936 (GOMP_target): Go to host fallback if device is finalized.
6937 (GOMP_target_ext): Likewise.
6938 (gomp_exit_data): Do nothing if device is finalized.
6939 (gomp_target_task_fn): Go to host fallback if device is finalized.
6940 (gomp_target_fini): New static function.
6941 (gomp_target_init): Use state instead of is_initialized.
6942 Call gomp_target_fini at exit.
6944 2015-12-09 Tom de Vries <tom@codesourcery.com>
6946 PR tree-optimization/68716
6947 * testsuite/libgomp.c/omp-nested-2.c: New test.
6949 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
6951 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
6952 target openacc_nvidia_accel_selected.
6953 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
6954 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
6955 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
6956 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
6958 2015-12-01 Julian Brown <julian@codesourcery.com>
6959 James Norris <James_Norris@mentor.com>
6961 * oacc-parallel.c (GOACC_host_data): New function.
6962 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
6963 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
6964 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
6965 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
6966 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
6967 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
6968 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
6970 2015-11-30 James Norris <jnorris@codesourcery.com>
6971 Cesar Philippidis <cesar@codesourcery.com>
6974 * libgomp.oacc-fortran/routine-5.f90: New test.
6975 * libgomp.oacc-fortran/routine-7.f90: New test.
6976 * libgomp.oacc-fortran/routine-9.f90: New test.
6978 2015-11-30 Tom de Vries <tom@codesourcery.com>
6980 PR tree-optimization/46032
6981 * testsuite/libgomp.c/pr46032.c: New test.
6983 2015-11-27 Jakub Jelinek <jakub@redhat.com>
6986 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
6987 (gomp_create_target_task): Call it before freeing
6988 GOMP_TARGET_TASK_DATA tasks.
6991 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
6992 in between case label and OpenMP standalone directives.
6993 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
6995 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
6997 * configure: Regenerate.
6999 2015-11-26 Jakub Jelinek <jakub@redhat.com>
7001 * testsuite/libgomp.c/target-35.c: New test.
7003 2015-11-22 James Norris <jnorris@codesourcery.com>
7004 Cesar Philippidis <cesar@codesourcery.com>
7006 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
7007 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
7008 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
7009 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
7010 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
7012 2015-11-20 Jakub Jelinek <jakub@redhat.com>
7015 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
7016 * testsuite/libgomp.c/reduction-12.c: Likewise.
7017 * testsuite/libgomp.c++/reduction-11.C: Likewise.
7018 * testsuite/libgomp.c++/reduction-12.C: Likewise.
7020 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
7022 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
7023 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
7024 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
7025 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
7026 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
7028 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
7029 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
7031 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
7033 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
7034 worker & gang cases.
7035 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
7037 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
7039 * config/nvptx/priority_queue.c: New file.
7041 2015-11-14 Jakub Jelinek <jakub@redhat.com>
7043 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
7046 2015-11-14 Jakub Jelinek <jakub@redhat.com>
7047 Aldy Hernandez <aldyh@redhat.com>
7048 Ilya Verbin <ilya.verbin@intel.com>
7050 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
7051 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
7052 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
7053 iterators or IV by chunk size.
7054 * parallel.c (gomp_resolve_num_threads): Don't assume that
7055 if thr->ts.team is non-NULL, then pool must be non-NULL.
7056 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
7057 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
7058 GOMP_PLUGIN_target_task_completion.
7059 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
7060 * Makefile.in: Regenerate.
7061 * libgomp.h: Shuffle prototypes and forward definitions around so
7062 priority queues can be defined.
7063 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
7064 (enum gomp_target_task_state): New enum.
7065 (struct gomp_target_task): Add state, tgt, task and team fields.
7066 (gomp_create_target_task): Change return type to bool, add
7068 (gomp_target_task_fn): Change return type to bool.
7069 (struct gomp_device_descr): Add async_run_func.
7070 (struct gomp_task): Remove children, next_child, prev_child,
7071 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
7073 (struct gomp_taskgroup): Remove children.
7074 Add taskgroup_queue.
7075 (struct gomp_team): Change task_queue type to a priority queue.
7076 (splay_compare): Define inline.
7077 (priority_queue_offset): New.
7078 (priority_node_to_task): New.
7079 (task_to_priority_node): New.
7080 * oacc-mem.c: Do not include splay-tree.h.
7081 * priority_queue.c: New file.
7082 * priority_queue.h: New file.
7083 * splay-tree.c: Do not include splay-tree.h.
7084 (splay_tree_foreach_internal): New.
7085 (splay_tree_foreach): New.
7086 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
7087 (splay_tree_callback): Define typedef.
7088 * target.c (splay_compare): Move to libgomp.h.
7089 (GOMP_target): Don't adjust *thr in any way around running offloaded
7091 (GOMP_target_ext): Likewise. Handle target nowait.
7092 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
7093 return value from gomp_create_target_task, if false, fallthrough
7094 as if no dependencies exist.
7095 (gomp_target_task_fn): Change return type to bool, return true
7096 if the task should have another part scheduled later. Handle
7098 (gomp_load_plugin_for_device): Initialize async_run.
7099 * task.c (gomp_init_task): Initialize children_queue.
7100 (gomp_clear_parent_in_list): New.
7101 (gomp_clear_parent_in_tree): New.
7102 (gomp_clear_parent): Handle priorities.
7103 (GOMP_task): Likewise.
7104 (priority_queue_move_task_first,
7105 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
7107 (gomp_create_target_task): Use priority queues. Change return type
7108 to bool, add state argument, return false if for async
7109 {{enter,exit} data,update} constructs no dependencies need to be
7110 waited for, handle target nowait. Set task->fn to NULL instead of
7111 gomp_target_task_fn.
7112 (verify_children_queue): Remove.
7113 (priority_list_upgrade_task): New.
7114 (priority_queue_upgrade_task): New.
7115 (verify_task_queue): Remove.
7116 (priority_list_downgrade_task): New.
7117 (priority_queue_downgrade_task): New.
7118 (gomp_task_run_pre): Use priority queues.
7119 Abstract code out to priority_queue_downgrade_task.
7120 (gomp_task_run_post_handle_dependers): Use priority queues.
7121 (gomp_task_run_post_remove_parent): Likewise.
7122 (gomp_task_run_post_remove_taskgroup): Likewise.
7123 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
7125 (GOMP_taskwait): Likewise.
7126 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
7127 priority-queue_upgrade_task.
7128 (GOMP_taskgroup_start): Use priority queues.
7129 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
7130 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
7132 * taskloop.c (GOMP_taskloop): Handle priorities.
7133 * team.c (gomp_new_team): Call priority_queue_init.
7134 (free_team): Call priority_queue_free.
7135 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
7136 team created for target nowait in implicit parallel region.
7137 (gomp_team_start): For nested check, test thr->ts.level instead of
7138 thr->ts.team != NULL.
7139 * testsuite/libgomp.c/doacross-3.c: New test.
7140 * testsuite/libgomp.c/ordered-5.c: New test.
7141 * testsuite/libgomp.c/priority.c: New test.
7142 * testsuite/libgomp.c/target-31.c: New test.
7143 * testsuite/libgomp.c/target-32.c: New test.
7144 * testsuite/libgomp.c/target-33.c: New test.
7145 * testsuite/libgomp.c/target-34.c: New test.
7147 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
7149 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
7151 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
7154 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
7156 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
7157 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
7159 2015-11-12 James Norris <jnorris@codesourcery.com>
7160 Joseph Myers <joseph@codesourcery.com>
7162 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
7163 * oacc-parallel.c (GOACC_declare): New function.
7164 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
7165 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
7166 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
7167 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
7168 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
7170 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
7172 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
7174 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
7176 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
7177 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
7179 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
7181 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
7184 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
7186 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
7187 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
7188 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
7189 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
7190 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
7192 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
7194 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
7195 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
7197 2015-11-05 Jakub Jelinek <jakub@redhat.com>
7198 Ilya Verbin <ilya.verbin@intel.com>
7200 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
7201 GOMP_loop_nonmonotonic_dynamic_start,
7202 GOMP_loop_nonmonotonic_guided_next,
7203 GOMP_loop_nonmonotonic_guided_start,
7204 GOMP_loop_ull_nonmonotonic_dynamic_next,
7205 GOMP_loop_ull_nonmonotonic_dynamic_start,
7206 GOMP_loop_ull_nonmonotonic_guided_next,
7207 GOMP_loop_ull_nonmonotonic_guided_start,
7208 GOMP_parallel_loop_nonmonotonic_dynamic,
7209 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
7210 (GOMP_target_41): Renamed to ...
7211 (GOMP_target_ext): ... this. Add num_teams and thread_limit
7213 (GOMP_target_data_41): Renamed to ...
7214 (GOMP_target_data_ext): ... this.
7215 (GOMP_target_update_41): Renamed to ...
7216 (GOMP_target_update_ext): ... this.
7217 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
7218 GOMP_target_data_ext and GOMP_target_update_ext instead of
7219 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
7220 Export GOMP_loop_nonmonotonic_dynamic_next,
7221 GOMP_loop_nonmonotonic_dynamic_start,
7222 GOMP_loop_nonmonotonic_guided_next,
7223 GOMP_loop_nonmonotonic_guided_start,
7224 GOMP_loop_ull_nonmonotonic_dynamic_next,
7225 GOMP_loop_ull_nonmonotonic_dynamic_start,
7226 GOMP_loop_ull_nonmonotonic_guided_next,
7227 GOMP_loop_ull_nonmonotonic_guided_start,
7228 GOMP_parallel_loop_nonmonotonic_dynamic and
7229 GOMP_parallel_loop_nonmonotonic_guided.
7230 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
7231 GOMP_parallel_loop_nonmonotonic_guided,
7232 GOMP_loop_nonmonotonic_dynamic_start,
7233 GOMP_loop_nonmonotonic_guided_start,
7234 GOMP_loop_nonmonotonic_dynamic_next,
7235 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
7236 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
7237 GOMP_loop_ull_nonmonotonic_guided_start,
7238 GOMP_loop_ull_nonmonotonic_dynamic_next,
7239 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
7240 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
7242 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
7243 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
7244 Use gomp_map_val function.
7245 (gomp_target_fallback_firstprivate): New static function.
7246 (GOMP_target_41): Renamed to ...
7247 (GOMP_target_ext): ... this. Add num_teams and thread_limit
7248 arguments. Move firstprivate fallback handling into a new
7250 (GOMP_target_data_41): Renamed to ...
7251 (GOMP_target_data_ext): ... this.
7252 (GOMP_target_update_41): Renamed to ...
7253 (GOMP_target_update_ext): ... this.
7254 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
7255 gomp_map_0len_lookup instead of gomp_map_lookup.
7256 (omp_target_is_present): Use gomp_map_0len_lookup instead of
7258 * testsuite/libgomp.c/target-28.c: Likewise.
7259 * testsuite/libgomp.c/monotonic-1.c: New test.
7260 * testsuite/libgomp.c/monotonic-2.c: New test.
7261 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
7262 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
7263 * testsuite/libgomp.c/pr66199-5.c: New test.
7264 * testsuite/libgomp.c/pr66199-6.c: New test.
7265 * testsuite/libgomp.c/pr66199-7.c: New test.
7266 * testsuite/libgomp.c/pr66199-8.c: New test.
7267 * testsuite/libgomp.c/pr66199-9.c: New test.
7268 * testsuite/libgomp.c/reduction-11.c: New test.
7269 * testsuite/libgomp.c/reduction-12.c: New test.
7270 * testsuite/libgomp.c/reduction-13.c: New test.
7271 * testsuite/libgomp.c/reduction-14.c: New test.
7272 * testsuite/libgomp.c/reduction-15.c: New test.
7273 * testsuite/libgomp.c/target-12.c (main): Adjust for
7274 omp_target_is_present change for one-past-last element.
7275 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
7276 the same var is both mapped and privatized.
7277 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
7278 handling of zero-length array sections.
7279 * testsuite/libgomp.c/target-28.c: New test.
7280 * testsuite/libgomp.c/target-29.c: New test.
7281 * testsuite/libgomp.c/target-30.c: New test.
7282 * testsuite/libgomp.c/target-teams-1.c: New test.
7283 * testsuite/libgomp.c++/member-6.C: New test.
7284 * testsuite/libgomp.c++/member-7.C: New test.
7285 * testsuite/libgomp.c++/monotonic-1.C: New test.
7286 * testsuite/libgomp.c++/monotonic-2.C: New test.
7287 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
7288 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
7289 * testsuite/libgomp.c++/pr66199-3.C: New test.
7290 * testsuite/libgomp.c++/pr66199-4.C: New test.
7291 * testsuite/libgomp.c++/pr66199-5.C: New test.
7292 * testsuite/libgomp.c++/pr66199-6.C: New test.
7293 * testsuite/libgomp.c++/pr66199-7.C: New test.
7294 * testsuite/libgomp.c++/pr66199-8.C: New test.
7295 * testsuite/libgomp.c++/pr66199-9.C: New test.
7296 * testsuite/libgomp.c++/reduction-11.C: New test.
7297 * testsuite/libgomp.c++/reduction-12.C: New test.
7298 * testsuite/libgomp.c++/target-13.C: New test.
7299 * testsuite/libgomp.c++/target-14.C: New test.
7300 * testsuite/libgomp.c++/target-15.C: New test.
7301 * testsuite/libgomp.c++/target-16.C: New test.
7302 * testsuite/libgomp.c++/target-17.C: New test.
7303 * testsuite/libgomp.c++/target-18.C: New test.
7304 * testsuite/libgomp.c++/target-19.C: New test.
7306 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
7308 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
7310 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
7311 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
7312 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
7313 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
7314 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
7315 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
7316 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
7317 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
7318 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
7319 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
7320 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
7321 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
7322 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
7323 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
7325 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
7327 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
7328 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
7329 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
7330 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
7331 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
7332 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
7333 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
7334 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
7336 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
7338 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
7339 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
7340 (GOMP_OFFLOAD_openacc_parallel): Likewise.
7341 * oacc-host.c (host_openacc_exec): Likewise.
7342 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
7344 2015-11-03 Julian Brown <julian@codesourcery.com>
7345 Thomas Schwinge <thomas@codesourcery.com>
7347 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
7348 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
7349 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
7351 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
7352 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
7354 2015-11-03 James Norris <jnorris@codesourcery.com>
7356 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
7358 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
7360 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
7361 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
7362 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
7363 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
7364 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
7366 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
7368 * openacc.h (enum acc_device_t): Reformat. Ensure layout
7370 (enum acc_async_t): Reformat.
7371 (acc_on_device): Declare compatible with builtin and provide C++
7373 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
7375 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
7376 Cesar Philippidis <cesar@codesourcery.com>
7378 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
7379 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
7380 ... this. Add a description of the test at the top of the file.
7381 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
7382 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
7383 ... this. Add a description of the test at the top of the file.
7385 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
7387 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
7388 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
7389 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
7390 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
7391 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
7392 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
7394 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7396 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
7399 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
7402 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
7404 2015-10-27 James Norris <jnorris@codesourcery.com>
7406 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
7407 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
7409 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
7411 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
7412 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
7414 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
7415 acc_device_nvidia usage.
7416 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
7417 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7418 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
7420 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
7421 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
7424 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
7428 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
7429 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
7431 2015-10-23 Tom de Vries <tom@codesourcery.com>
7434 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
7436 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
7438 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
7440 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
7442 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
7443 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
7445 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
7446 to 0 when mapnum is 0.
7448 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
7450 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
7451 Cast to int from int32_t.
7453 2015-10-13 Jakub Jelinek <jakub@redhat.com>
7454 Aldy Hernandez <aldyh@redhat.com>
7455 Ilya Verbin <ilya.verbin@intel.com>
7457 * config/linux/affinity.c (omp_get_place_num_procs,
7458 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
7459 * config/linux/doacross.h: New file.
7460 * config/posix/affinity.c (omp_get_place_num_procs,
7461 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
7462 * config/posix/doacross.h: New file.
7463 * env.c: Include gomp-constants.h.
7464 (struct gomp_task_icv): Rename run_sched_modifier to
7465 run_sched_chunk_size.
7466 (gomp_max_task_priority_var): New variable.
7467 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
7468 (handle_omp_display_env): Change _OPENMP value from 201307 to
7469 201511. Print OMP_MAX_TASK_PRIORITY.
7470 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
7471 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
7472 chunk_size and run_sched_modifier to run_sched_chunk_size.
7473 (omp_get_max_task_priority, omp_get_initial_device,
7474 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
7475 omp_get_partition_place_nums): New functions.
7476 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
7477 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
7479 (omp_get_num_places_, omp_get_place_num_procs_,
7480 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
7481 omp_get_place_proc_ids_8_, omp_get_place_num_,
7482 omp_get_partition_num_places_, omp_get_partition_place_nums_,
7483 omp_get_partition_place_nums_8_, omp_get_initial_device_,
7484 omp_get_max_task_priority_): New functions.
7485 * libgomp_g.h (GOMP_loop_doacross_static_start,
7486 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
7487 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
7488 GOMP_loop_ull_doacross_dynamic_start,
7489 GOMP_loop_ull_doacross_guided_start,
7490 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
7491 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
7492 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
7493 GOMP_target_data_41, GOMP_target_update_41,
7494 GOMP_target_enter_exit_data): New prototypes.
7495 (GOMP_task): Add prototype argument.
7496 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
7497 (struct gomp_doacross_work_share): New type.
7498 (struct gomp_work_share): Add doacross field.
7499 (struct gomp_task_icv): Rename run_sched_modifier to
7500 run_sched_chunk_size.
7501 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
7502 GOMP_TASK_UNDEFERRED. Add comments.
7503 (struct gomp_task_depend_entry): Add comments.
7504 (struct gomp_task): Likewise.
7505 (struct gomp_taskgroup): Likewise.
7506 (struct gomp_target_task): New type.
7507 (struct gomp_team): Add comment.
7508 (gomp_get_place_proc_ids_8, gomp_doacross_init,
7509 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
7510 gomp_create_target_task, gomp_target_task_fn): New prototypes.
7511 (struct target_var_desc): New type.
7512 (struct target_mem_desc): Adjust comment. Use struct
7513 target_var_desc instead of splay_tree_key for list.
7514 (REFCOUNT_INFINITY): Define.
7515 (struct splay_tree_key_s): Remove copy_from field.
7516 (struct gomp_device_descr): Add dev2dev_func field.
7517 (enum gomp_map_vars_kind): New enum.
7518 (gomp_map_vars): Add one argument.
7519 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
7520 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
7521 omp_get_place_num_procs, omp_get_place_num_procs_,
7522 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
7523 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
7524 omp_get_place_num_, omp_get_partition_num_places,
7525 omp_get_partition_num_places_, omp_get_partition_place_nums,
7526 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
7527 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
7528 omp_target_free, omp_target_is_present, omp_target_memcpy,
7529 omp_target_memcpy_rect, omp_target_associate_ptr and
7530 omp_target_disassociate_ptr.
7531 (GOMP_4.0.2): Renamed to ...
7532 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
7533 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
7534 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
7535 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
7536 GOMP_loop_doacross_static_start, GOMP_doacross_post,
7537 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
7538 GOMP_loop_ull_doacross_guided_start,
7539 GOMP_loop_ull_doacross_runtime_start,
7540 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
7541 GOMP_doacross_ull_wait.
7542 * libgomp.texi: Document omp_get_max_task_priority.
7543 Rename modifier argument to chunk_size for omp_set_schedule and
7544 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
7545 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
7546 to run_sched_chunk_size renaming.
7547 (GOMP_loop_ordered_runtime_start): Likewise.
7548 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
7549 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
7550 GOMP_parallel_loop_runtime_start): New functions.
7551 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
7552 to run_sched_chunk_size renaming.
7553 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
7554 GOMP_loop_doacross_guided_start): New functions or aliases.
7555 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
7556 run_sched_modifier to run_sched_chunk_size renaming.
7557 (GOMP_loop_ull_ordered_runtime_start): Likewise.
7558 (gomp_loop_ull_doacross_static_start,
7559 gomp_loop_ull_doacross_dynamic_start,
7560 gomp_loop_ull_doacross_guided_start,
7561 GOMP_loop_ull_doacross_runtime_start): New functions.
7562 (GOMP_loop_ull_doacross_static_start,
7563 GOMP_loop_ull_doacross_dynamic_start,
7564 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
7565 * oacc-mem.c (acc_map_data, present_create_copy,
7566 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
7568 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
7569 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
7570 instead of false to gomp_map_vars.
7571 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
7572 * omp.h.in (omp_lock_hint_t): New type.
7573 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
7574 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
7575 omp_get_place_num, omp_get_partition_num_places,
7576 omp_get_partition_place_nums, omp_get_initial_device,
7577 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
7578 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
7579 omp_target_associate_ptr, omp_target_disassociate_ptr): New
7581 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
7582 (omp_lock_hint_none, omp_lock_hint_uncontended,
7583 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
7584 omp_lock_hint_speculative): New parameters.
7585 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
7586 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
7587 omp_get_place_num, omp_get_partition_num_places,
7588 omp_get_partition_place_nums, omp_get_initial_device,
7589 omp_get_max_task_priority): New interfaces.
7590 (omp_set_schedule, omp_get_schedule): Rename modifier argument
7592 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
7593 (omp_lock_hint_none, omp_lock_hint_uncontended,
7594 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
7595 omp_lock_hint_speculative): New parameters.
7596 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
7597 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
7598 omp_get_place_num, omp_get_partition_num_places,
7599 omp_get_partition_place_nums, omp_get_initial_device,
7600 omp_get_max_task_priority): New functions and subroutines.
7601 * ordered.c: Include stdarg.h and string.h.
7602 (MAX_COLLAPSED_BITS): Define.
7603 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
7604 gomp_doacross_ull_init, GOMP_doacross_ull_post,
7605 GOMP_doacross_ull_wait): New functions.
7606 * target.c: Include errno.h.
7607 (resolve_device): If device is not initialized, call
7608 gomp_init_device on it.
7609 (gomp_map_lookup): New function.
7610 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
7611 Don't bump refcount if REFCOUNT_INFINITY. Handle
7612 GOMP_MAP_ALWAYS_TO_P.
7613 (get_kind): Rename is_openacc argument to short_mapkind.
7614 (gomp_map_pointer): Use gomp_map_lookup.
7615 (gomp_map_fields_existing): New function.
7616 (gomp_map_vars): Rename is_openacc argument to short_mapkind
7617 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
7618 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
7619 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
7620 Adjust for tgt->list changed type and copy_from living in there.
7621 (gomp_copy_from_async): Adjust for tgt->list changed type and
7622 copy_from living in there.
7623 (gomp_unmap_vars): Likewise.
7624 (gomp_update): Likewise. Rename is_openacc argument to
7625 short_mapkind. Don't fail if object is not mapped.
7626 (gomp_load_image_to_device): Initialize refcount to
7628 (gomp_target_fallback): New function.
7629 (gomp_get_target_fn_addr): Likewise.
7630 (GOMP_target): Adjust gomp_map_vars caller, use
7631 gomp_get_target_fn_addr and gomp_target_fallback.
7632 (GOMP_target_41): New function.
7633 (gomp_target_data_fallback): New function.
7634 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
7635 (GOMP_target_data_41): New function.
7636 (GOMP_target_update): Adjust gomp_update caller.
7637 (GOMP_target_update_41): New function.
7638 (gomp_exit_data, GOMP_target_enter_exit_data,
7639 gomp_target_task_fn, omp_target_alloc, omp_target_free,
7640 omp_target_is_present, omp_target_memcpy,
7641 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
7642 omp_target_associate_ptr, omp_target_disassociate_ptr,
7643 gomp_load_plugin_for_device): New functions.
7644 * task.c: Include gomp-constants.h. Include taskloop.c
7645 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
7646 (gomp_task_handle_depend): New function.
7647 (GOMP_task): Use it. Add priority argument. Use
7648 gomp-constant.h constants instead of hardcoded numbers.
7649 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
7650 (gomp_create_target_task): New function.
7651 (verify_children_queue, verify_taskgroup_queue,
7652 verify_task_queue): New functions.
7653 (gomp_task_run_pre): Call verify_*_queue functions.
7654 If an upcoming tied task is about to leave the sibling or
7655 taskgroup queues in an invalid state, adjust appropriately.
7656 Remove taskgroup argument. Add comments.
7657 (gomp_task_run_post_handle_dependers): Add comments.
7658 (gomp_task_run_post_remove_parent): Likewise.
7659 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
7660 (GOMP_taskwait): Likewise. Add comments.
7661 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
7662 problem such that the first non parent_depends_on task does not
7663 end up at the end of the children queue.
7664 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
7665 GOMP_TASK_UNDEFERRED.
7666 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
7667 * taskloop.c: New file.
7668 * testsuite/lib/libgomp.exp
7669 (check_effective_target_offload_device_nonshared_as): New proc.
7670 * testsuite/libgomp.c/affinity-2.c: New test.
7671 * testsuite/libgomp.c/doacross-1.c: New test.
7672 * testsuite/libgomp.c/doacross-2.c: New test.
7673 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
7674 Add map clause to target.
7675 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
7676 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
7677 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
7678 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
7679 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
7681 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
7682 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
7683 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
7684 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
7685 not defined. Use those where needed.
7686 * testsuite/libgomp.c/for-4.c: New test.
7687 * testsuite/libgomp.c/for-5.c: New test.
7688 * testsuite/libgomp.c/for-6.c: New test.
7689 * testsuite/libgomp.c/linear-1.c: New test.
7690 * testsuite/libgomp.c/ordered-4.c: New test.
7691 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
7692 only allowed on the loop iterator.
7693 * testsuite/libgomp.c/pr66199-3.c: New test.
7694 * testsuite/libgomp.c/pr66199-4.c: New test.
7695 * testsuite/libgomp.c/reduction-7.c: New test.
7696 * testsuite/libgomp.c/reduction-8.c: New test.
7697 * testsuite/libgomp.c/reduction-9.c: New test.
7698 * testsuite/libgomp.c/reduction-10.c: New test.
7699 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
7701 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
7702 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
7703 * testsuite/libgomp.c/target-11.c: New test.
7704 * testsuite/libgomp.c/target-12.c: New test.
7705 * testsuite/libgomp.c/target-13.c: New test.
7706 * testsuite/libgomp.c/target-14.c: New test.
7707 * testsuite/libgomp.c/target-15.c: New test.
7708 * testsuite/libgomp.c/target-16.c: New test.
7709 * testsuite/libgomp.c/target-17.c: New test.
7710 * testsuite/libgomp.c/target-18.c: New test.
7711 * testsuite/libgomp.c/target-19.c: New test.
7712 * testsuite/libgomp.c/target-20.c: New test.
7713 * testsuite/libgomp.c/target-21.c: New test.
7714 * testsuite/libgomp.c/target-22.c: New test.
7715 * testsuite/libgomp.c/target-23.c: New test.
7716 * testsuite/libgomp.c/target-24.c: New test.
7717 * testsuite/libgomp.c/target-25.c: New test.
7718 * testsuite/libgomp.c/target-26.c: New test.
7719 * testsuite/libgomp.c/target-27.c: New test.
7720 * testsuite/libgomp.c/taskloop-1.c: New test.
7721 * testsuite/libgomp.c/taskloop-2.c: New test.
7722 * testsuite/libgomp.c/taskloop-3.c: New test.
7723 * testsuite/libgomp.c/taskloop-4.c: New test.
7724 * testsuite/libgomp.c++/ctor-13.C: New test.
7725 * testsuite/libgomp.c++/doacross-1.C: New test.
7726 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
7727 Replace offload_device with offload_device_nonshared_as.
7728 * testsuite/libgomp.c++/for-12.C: New test.
7729 * testsuite/libgomp.c++/for-13.C: New test.
7730 * testsuite/libgomp.c++/for-14.C: New test.
7731 * testsuite/libgomp.c++/linear-1.C: New test.
7732 * testsuite/libgomp.c++/member-1.C: New test.
7733 * testsuite/libgomp.c++/member-2.C: New test.
7734 * testsuite/libgomp.c++/member-3.C: New test.
7735 * testsuite/libgomp.c++/member-4.C: New test.
7736 * testsuite/libgomp.c++/member-5.C: New test.
7737 * testsuite/libgomp.c++/ordered-1.C: New test.
7738 * testsuite/libgomp.c++/reduction-5.C: New test.
7739 * testsuite/libgomp.c++/reduction-6.C: New test.
7740 * testsuite/libgomp.c++/reduction-7.C: New test.
7741 * testsuite/libgomp.c++/reduction-8.C: New test.
7742 * testsuite/libgomp.c++/reduction-9.C: New test.
7743 * testsuite/libgomp.c++/reduction-10.C: New test.
7744 * testsuite/libgomp.c++/reference-1.C: New test.
7745 * testsuite/libgomp.c++/simd14.C: New test.
7746 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
7747 * testsuite/libgomp.c++/target-5.C: New test.
7748 * testsuite/libgomp.c++/target-6.C: New test.
7749 * testsuite/libgomp.c++/target-7.C: New test.
7750 * testsuite/libgomp.c++/target-8.C: New test.
7751 * testsuite/libgomp.c++/target-9.C: New test.
7752 * testsuite/libgomp.c++/target-10.C: New test.
7753 * testsuite/libgomp.c++/target-11.C: New test.
7754 * testsuite/libgomp.c++/target-12.C: New test.
7755 * testsuite/libgomp.c++/taskloop-1.C: New test.
7756 * testsuite/libgomp.c++/taskloop-2.C: New test.
7757 * testsuite/libgomp.c++/taskloop-3.C: New test.
7758 * testsuite/libgomp.c++/taskloop-4.C: New test.
7759 * testsuite/libgomp.c++/taskloop-5.C: New test.
7760 * testsuite/libgomp.c++/taskloop-6.C: New test.
7761 * testsuite/libgomp.c++/taskloop-7.C: New test.
7762 * testsuite/libgomp.c++/taskloop-8.C: New test.
7763 * testsuite/libgomp.c++/taskloop-9.C: New test.
7764 * testsuite/libgomp.fortran/affinity1.f90: New test.
7765 * testsuite/libgomp.fortran/affinity2.f90: New test.
7767 2015-10-13 Tom de Vries <tom@codesourcery.com>
7769 PR tree-optimization/67476
7770 * testsuite/libgomp.c/autopar-3.c: New test.
7771 * testsuite/libgomp.c/autopar-4.c: New test.
7772 * testsuite/libgomp.c/autopar-5.c: New test.
7773 * testsuite/libgomp.c/autopar-6.c: New test.
7774 * testsuite/libgomp.c/autopar-7.c: New test.
7775 * testsuite/libgomp.c/autopar-8.c: New test.
7777 2015-10-12 James Norris <jnorris@codesourcery.com>
7779 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
7782 2015-10-09 David Malcolm <dmalcolm@redhat.com>
7784 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
7787 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
7789 * oacc-ptx.h: Remove file, moving its content into...
7790 * config/nvptx/fortran.c: ... here...
7791 * config/nvptx/oacc-init.c: ..., here...
7792 * config/nvptx/oacc-parallel.c: ..., and here.
7793 * config/nvptx/openacc.f90: New file.
7794 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
7795 (link_ptx): Don't link in predefined bits of PTX code.
7797 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
7798 Bernd Schmidt <bernds@codesourcery.com>
7800 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
7801 (struct targ_ptx_obj): New.
7802 (nvptx_tdata): Move earlier, change data format.
7803 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
7805 (GOMP_OFFLOAD_load_image): Adjust.
7807 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
7809 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
7810 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
7811 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
7812 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
7813 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7814 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
7815 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
7816 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
7817 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
7818 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
7819 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7820 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
7821 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
7822 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7823 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7824 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7825 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7826 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7827 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7828 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7829 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7830 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7831 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7832 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7833 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7834 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7835 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
7836 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7837 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7838 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7839 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7840 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7841 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
7842 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7843 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7844 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7845 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7846 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7847 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7848 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7849 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7850 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7851 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7852 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7853 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
7854 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
7855 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
7856 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
7857 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
7858 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
7859 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
7860 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
7861 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
7862 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
7863 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
7864 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7865 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7866 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
7867 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
7868 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
7869 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
7870 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
7871 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7873 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
7875 * oacc-init.c (acc_on_device): Force optimization level.
7877 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
7879 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
7880 (cuda_errlist): Delete.
7881 (cuda_error): Reimplement.
7883 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
7885 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
7887 * libgomp.map (GOACC_parallel_keyed): New.
7888 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
7890 (GOACC_parallel_keyed): New interface. Lose geometry arguments
7891 and take keyed varargs list. Adjust call to exec_func.
7892 (GOACC_parallel): Force host fallback.
7893 * libgomp_g.h (GOACC_parallel): Remove.
7894 (GOACC_parallel_keyed): Declare.
7895 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
7896 (struct targ_gn_descriptor): Replace name field with launch field.
7897 (nvptx_exec): Lose separate geometry args, take array. Process
7898 dynamic dimensions and adjust.
7899 (struct nvptx_tdata): Replace fn_names field with fn_descs.
7900 (GOMP_OFFLOAD_load_image): Adjust for change in function table
7902 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
7904 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
7907 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
7910 * oacc-int.h (goacc_host_init): Add declaration.
7911 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
7912 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
7914 2015-09-08 Aditya Kumar <hiraditya@msn.com>
7915 Sebastian Pop <s.pop@samsung.com>
7917 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
7919 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
7920 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
7921 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
7922 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
7923 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
7925 2015-09-03 Jakub Jelinek <jakub@redhat.com>
7927 * configure.tgt: Add missing ;; in between nvptx and rtems
7930 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7932 * config/posix/pool.h (gomp_adjust_thread_attr): New.
7933 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
7934 (gomp_thread_pool_reservoir): Add priority member.
7935 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
7937 (parse_thread_pools): Likewise.
7938 * team.c (gomp_team_start): Call configuration provided
7939 gomp_adjust_thread_attr(). Destroy thread attributes if
7941 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
7943 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7945 * config/posix/pool.h: New.
7946 * config/rtems/pool.h: Likewise.
7947 * config/rtems/proc.c: Likewise.
7948 * libgomp.h (gomp_thread_destructor): Declare.
7949 * team.c: Include configuration provided "pool.h".
7950 (gomp_get_thread_pool): Define in configuration.
7951 (gomp_team_end): Call configuration defined
7952 gomp_release_thread_pool().
7954 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7956 * config/rtems/bar.c: New.
7957 * config/rtems/bar.h: Likewise.
7958 * config/rtems/mutex.c: Likewise.
7959 * config/rtems/mutex.h: Likewise.
7960 * config/rtems/sem.c: Likewise.
7961 * config/rtems/sem.h: Likewise.
7962 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
7963 <sys/lock.h> header file.
7964 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
7965 supported by Newlib.
7966 * configure: Regenerate.
7968 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7970 * team.c (gomp_new_thread_pool): Delete and move content to ...
7971 (gomp_get_thread_pool): ... new function. Allocate and
7972 initialize thread pool on demand.
7973 (get_last_team): Use gomp_get_thread_pool().
7974 (gomp_team_start): Delete thread pool initialization.
7976 2015-09-03 Tom de Vries <tom@codesourcery.com>
7978 PR tree-optimization/65637
7979 * testsuite/libgomp.c/autopar-2.c: New test.
7981 2015-08-29 Tom de Vries <tom@codesourcery.com>
7983 PR tree-optimization/46193
7984 * testsuite/libgomp.c/pr46193.c: New test.
7986 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
7989 * libgomp.map: Add 4.0.2 version.
7990 * target.c (offload_image_descr): Add version field.
7991 (gomp_load_image_to_device): Add version argument. Adjust plugin
7992 call. Improve load mismatch diagnostic.
7993 (gomp_unload_image_from_device): Add version argument. Adjust plugin
7995 (GOMP_offload_regster): Make stub function, move bulk to ...
7996 (GOMP_offload_register_ver): ... here. Process version argument.
7997 (GOMP_offload_unregister): Make stub function, move bulk to ...
7998 (GOMP_offload_unregister_ver): ... here. Process version argument.
7999 (gomp_init_device): Process version field.
8000 (gomp_unload_device): Process version field.
8001 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
8002 macros. Check plugin version.
8003 * libgomp.h (gomp_device_descr): Add version function field. Adjust
8004 loader and unloader types.
8005 * oacc-host.c: Include gomp-constants.h.
8006 (host_version): New.
8007 (host_load_image, host_unload_image): Adjust.
8008 (host_dispatch): Add host_version.
8009 * plugin/plugin-nvptx.c: Include gomp-constants.h.
8010 (GOMP_OFFLOAD_version): New.
8011 (GOMP_OFFLOAD_load_image): Add version arg and check it.
8012 (GOMP_OFFLOAD_unload_image): Likewise.
8013 * plugin/plugin-host.c: Include gomp-constants.h.
8014 (GOMP_OFFLOAD_version): New.
8015 (GOMP_OFFLOAD_load_image): Add version arg.
8016 (GOMP_OFFLOAD_unload_image): Likewise.
8018 2015-08-24 Tom de Vries <tom@codesourcery.com>
8020 PR tree-optimization/65468
8021 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
8023 2015-08-24 Tom de Vries <tom@codesourcery.com>
8025 PR tree-optimization/65468
8026 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
8028 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
8032 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
8033 (gomp_iter_guided_next): Idem.
8034 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
8035 (gomp_iter_ull_guided_next): Idem.
8036 * config/linux/wait.h (do_spin): Idem.
8038 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
8040 * libgomp-plugin.h (enum offload_target_type): Remove
8041 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
8042 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
8043 * openacc.h (enum acc_device_t): Likewise.
8044 * openacc_lib.h: Likewise.
8045 * oacc-init.c (name_of_acc_device_t): Don't handle it.
8046 (acc_on_device): Just use __builtin_acc_on_device.
8047 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
8048 of acc_on_device builtin.
8049 * plugin/plugin-host.h: Remove file.
8050 * plugin/plugin-host.c: Likewise, but salvage some content into...
8051 * oacc-host.c: ... this file.
8052 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
8053 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
8054 * Makefile.in: Regenerate.
8055 * configure: Likewise.
8056 * testsuite/lib/libgomp.exp
8057 (check_effective_target_openacc_host_nonshm_selected): Remove.
8058 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
8059 ACC_DEVICE_TYPE=host_nonshm.
8060 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8061 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8062 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
8063 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
8064 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
8065 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
8067 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
8068 Jakub Jelinek <jakub@redhat.com>
8070 * config/nvptx/affinity.c: New file.
8071 * config/nvptx/alloc.c: Likewise.
8072 * config/nvptx/bar.c: Likewise.
8073 * config/nvptx/barrier.c: Likewise.
8074 * config/nvptx/critical.c: Likewise.
8075 * config/nvptx/env.c: Likewise.
8076 * config/nvptx/error.c: Likewise.
8077 * config/nvptx/fortran.c: Likewise.
8078 * config/nvptx/iter.c: Likewise.
8079 * config/nvptx/iter_ull.c: Likewise.
8080 * config/nvptx/libgomp-plugin.c: Likewise.
8081 * config/nvptx/lock.c: Likewise.
8082 * config/nvptx/loop.c: Likewise.
8083 * config/nvptx/loop_ull.c: Likewise.
8084 * config/nvptx/mutex.c: Likewise.
8085 * config/nvptx/oacc-async.c: Likewise.
8086 * config/nvptx/oacc-cuda.c: Likewise.
8087 * config/nvptx/oacc-host.c: Likewise.
8088 * config/nvptx/oacc-init.c: Likewise.
8089 * config/nvptx/oacc-mem.c: Likewise.
8090 * config/nvptx/oacc-parallel.c: Likewise.
8091 * config/nvptx/oacc-plugin.c: Likewise.
8092 * config/nvptx/omp-lock.h: Likewise.
8093 * config/nvptx/ordered.c: Likewise.
8094 * config/nvptx/parallel.c: Likewise.
8095 * config/nvptx/proc.c: Likewise.
8096 * config/nvptx/ptrlock.c: Likewise.
8097 * config/nvptx/sections.c: Likewise.
8098 * config/nvptx/sem.c: Likewise.
8099 * config/nvptx/single.c: Likewise.
8100 * config/nvptx/splay-tree.c: Likewise.
8101 * config/nvptx/target.c: Likewise.
8102 * config/nvptx/task.c: Likewise.
8103 * config/nvptx/team.c: Likewise.
8104 * config/nvptx/time.c: Likewise.
8105 * config/nvptx/work.c: Likewise.
8106 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
8107 * configure: Regenerate.
8108 * configure.tgt (config_path): Set to "nvptx" for target
8111 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
8113 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
8115 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
8117 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
8118 (cuda_errlist): Constify.
8119 (errmsg): Move into ...
8120 (cuda_error): ... here. Make smaller.
8121 (_XSTR, _STR): Delete.
8122 (cuda_synames): Delete.
8123 (verify_device_library): Delete.
8124 (nvptx_init): Don't call it.
8126 2015-07-28 Tom de Vries <tom@codesourcery.com>
8128 * testsuite/libgomp.c/uns-outer-4.c: New test.
8130 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
8132 * testsuite/libgomp.c/pr66714.c: New test.
8134 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
8137 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
8138 (fib_ref): New function.
8139 (fib): Correct corner cases in the recursion.
8140 (main): Replace the non-simd loop with fib_ref call.
8141 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
8143 (fibonacci): Lower the parameter N to 30. Correct accordingly check
8144 for the last array element value. Replace the non-simd loop with
8145 fib_ref call. Remove redundant b_ref array. Remove the comparison
8146 of the last array element with according Fibonacci sequence element.
8147 (fib): Correct corner cases in the recursion.
8149 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
8151 * target.c (gomp_offload_image_to_device): Rename to ...
8152 (gomp_load_image_to_device): ... here.
8153 (GOMP_offload_register): Adjust call.
8154 (gomp_init_device): Likewise.
8155 (gomp_unload_image_from_device): New. Broken out of ...
8156 (GOMP_offload_unregister): ... here. Call it.
8157 (gomp_unload_device): New.
8158 * libgomp.h (gomp_unload_device): Declare.
8159 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
8162 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
8164 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
8166 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
8168 (goacc_waits): Move !num_waits handling to ...
8169 (GOACC_wait): ... here, the only caller that might have zero waits.
8171 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
8172 (struct ptx_image_data): Move earlier, add fns field.
8173 (struct ptx_device): Add images and image_lock fields.
8174 (ptx_images, ptx_image_lock): Delete.
8175 (nvptx_open_device): Initialize images and image_lock fields.
8176 (nvptx_close_device): Destroy image_lock.
8177 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
8178 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
8181 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
8183 * target.c (GOMP_offload_register): Use int for device type arg.
8184 (GOMP_offload_unregister): Likewise.
8186 * target.c (struct_offload_image_descr): Constify host_table.
8187 (gomp_offload_image_to_device): Likewise.
8188 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
8190 * libgomp.h (gomp_device_descr): Constify target data arguments.
8191 * target.c (struct offload_image_descr): Constify target_data.
8192 (gomp_offload_image_to_device): Likewise.
8193 (GOMP_offload_register): Likewise.
8194 (GOMP_offload_unregister): Likewise.
8195 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
8196 GOMP_OFFLOAD_unload_image): Constify target data.
8197 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
8198 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
8200 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
8202 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
8203 Workaround driver library const error.
8204 (struct nvptx_tdata, nvptx_tdata_t): New.
8205 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
8208 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
8210 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
8211 of EPS parameter from integer to real.
8212 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
8213 type of EPS parameter from integer to real.
8215 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
8217 * team.c (get_last_team): New.
8218 (gomp_new_team): Recycle last non-nested team if possible.
8219 (gomp_team_end): Move team work share list free lock destruction
8221 (free_team): ... here.
8223 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
8225 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
8226 and ref from int to double. Replaced their comparison with
8227 an inequality of their difference and EPS.
8228 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
8229 comparison of pri and a reference number with an inequality of their
8231 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
8232 the comparison of sum and sum_ref with an inequality of their
8234 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
8235 the comparison of pri and a reference number with an inequality of
8236 their difference and EPS.
8238 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
8240 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
8241 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
8242 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
8243 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
8244 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
8245 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
8246 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
8247 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
8248 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
8249 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
8250 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
8251 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
8252 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
8254 (vec_mult): Likewise. Add #pragma omp taskwait.
8255 (main): Adjust caller.
8256 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
8257 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
8258 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
8259 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
8260 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
8261 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
8262 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
8263 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
8264 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
8265 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
8266 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
8267 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
8268 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
8269 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
8270 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
8271 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
8272 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
8273 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
8274 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
8275 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
8276 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
8277 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
8278 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
8279 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
8280 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
8281 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
8282 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
8283 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
8284 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
8285 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
8286 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
8287 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
8288 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
8289 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
8290 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
8291 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
8292 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
8293 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
8294 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
8295 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
8296 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
8297 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
8298 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
8299 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
8300 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
8301 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
8302 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
8303 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
8304 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
8305 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
8306 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
8307 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
8308 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
8309 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
8310 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
8311 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
8312 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
8313 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
8314 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
8315 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
8316 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
8317 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
8318 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
8319 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
8320 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
8321 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
8322 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
8323 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
8324 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
8325 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
8326 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
8327 (vec_mult): Add !$omp taskwait.
8328 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
8329 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
8330 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
8331 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
8332 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
8333 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
8334 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
8335 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
8336 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
8337 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
8338 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
8339 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
8340 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
8341 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
8342 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
8343 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
8344 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
8345 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
8346 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
8347 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
8348 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
8349 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
8350 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
8351 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
8352 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
8353 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
8354 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
8355 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
8356 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
8357 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
8358 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
8359 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
8360 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
8361 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
8362 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
8363 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
8364 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
8365 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
8366 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
8367 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
8368 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
8369 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
8370 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
8371 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
8372 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
8373 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
8374 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
8375 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
8376 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
8377 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
8378 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
8379 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
8380 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
8381 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
8382 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
8383 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
8384 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
8385 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
8386 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
8387 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
8388 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
8389 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
8390 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
8391 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
8392 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
8393 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
8394 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
8396 2015-07-10 Tom de Vries <tom@codesourcery.com>
8398 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
8399 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
8401 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
8404 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
8405 in a 64-bit configuration.
8406 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
8407 offloading testing if no such device is available.
8408 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8409 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8411 2015-07-08 Tom de Vries <tom@codesourcery.com>
8413 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
8415 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
8417 2015-07-07 Tom de Vries <tom@codesourcery.com>
8419 PR tree-optimization/66642
8420 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
8421 iteration count case.
8422 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
8423 function, factor out of ...
8424 (main): ... here. Test low iteration count case.
8426 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
8428 * libgomp.h (gomp_thread_pool): Comment last_team field.
8430 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
8432 * testsuite/libgomp.c++/pr66702-1.C: Require
8433 vect_simd_clones effective target.
8434 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
8436 2015-06-30 Tom de Vries <tom@codesourcery.com>
8438 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
8439 already set. Use DEFAULT_CFLAGS in dg-runtest.
8440 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
8443 2015-06-30 Tom de Vries <tom@codesourcery.com>
8445 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
8446 already set. Use DEFAULT_CFLAGS in dg-runtest.
8447 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
8448 * testsuite/libgomp.c++/pr64824.C: Same.
8449 * testsuite/libgomp.c++/pr64868.C: Same.
8450 * testsuite/libgomp.c++/pr66199-1.C: Same.
8451 * testsuite/libgomp.c++/pr66199-2.C: Same.
8452 * testsuite/libgomp.c++/target-2.C: Same.
8453 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
8454 -std=<standard> option.
8455 * testsuite/libgomp.c++/udr-11.C: Same.
8456 * testsuite/libgomp.c++/udr-12.C: Same.
8457 * testsuite/libgomp.c++/udr-13.C: Same.
8458 * testsuite/libgomp.c++/udr-14.C: Same.
8459 * testsuite/libgomp.c++/udr-15.C: Same.
8460 * testsuite/libgomp.c++/udr-16.C: Same.
8461 * testsuite/libgomp.c++/udr-17.C: Same.
8462 * testsuite/libgomp.c++/udr-18.C: Same.
8463 * testsuite/libgomp.c++/udr-19.C: Same.
8464 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
8465 * testsuite/libgomp.c++/simd-1.C: Same.
8466 * testsuite/libgomp.c++/simd-2.C: Same.
8467 * testsuite/libgomp.c++/simd-3.C: Same.
8468 * testsuite/libgomp.c++/simd-4.C: Same.
8469 * testsuite/libgomp.c++/simd-5.C: Same.
8470 * testsuite/libgomp.c++/simd-6.C: Same.
8471 * testsuite/libgomp.c++/simd-7.C: Same.
8472 * testsuite/libgomp.c++/simd-8.C: Same.
8473 * testsuite/libgomp.c++/simd-9.C: Same.
8474 * testsuite/libgomp.c++/simd10.C: Same.
8475 * testsuite/libgomp.c++/simd11.C: Same.
8476 * testsuite/libgomp.c++/simd12.C: Same.
8477 * testsuite/libgomp.c++/simd13.C: Same.
8479 2015-06-30 Jakub Jelinek <jakub@redhat.com>
8482 * testsuite/libgomp.c++/pr66702-1.C: New test.
8483 * testsuite/libgomp.c++/pr66702-2.C: New test.
8485 2015-06-30 Tom de Vries <tom@codesourcery.com>
8487 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
8488 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
8489 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
8490 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
8492 2015-06-30 Tom de Vries <tom@codesourcery.com>
8494 PR tree-optimization/66652
8495 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
8496 using restrict pointers.
8497 (main): Add arguments to calls to f.
8498 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
8500 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
8502 * configure.ac: Fix check for header <sys/sysctl.h>.
8503 * configure: Regenerate.
8504 * config.h.in: Likewise.
8506 2015-06-23 Tom de Vries <tom@codesourcery.com>
8508 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
8510 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
8512 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
8514 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
8518 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
8519 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8521 2015-06-15 Tom de Vries <tom@codesourcery.com>
8523 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
8524 dg-additional-options for any remaining options.
8525 * testsuite/libgomp.c/atomic-2.c: Same.
8526 * testsuite/libgomp.c/atomic-4.c: Same.
8527 * testsuite/libgomp.c/atomic-5.c: Same.
8528 * testsuite/libgomp.c/atomic-6.c: Same.
8529 * testsuite/libgomp.c/autopar-1.c: Same.
8530 * testsuite/libgomp.c/copyin-1.c: Same.
8531 * testsuite/libgomp.c/copyin-2.c: Same.
8532 * testsuite/libgomp.c/copyin-3.c: Same.
8533 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
8534 * testsuite/libgomp.c/nestedfn-5.c: Same.
8535 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
8536 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
8537 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
8538 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
8539 * testsuite/libgomp.c/pr32362-1.c: Same.
8540 * testsuite/libgomp.c/pr32362-2.c: Same.
8541 * testsuite/libgomp.c/pr32362-3.c: Same.
8542 * testsuite/libgomp.c/pr39591-1.c: Same.
8543 * testsuite/libgomp.c/pr39591-2.c: Same.
8544 * testsuite/libgomp.c/pr39591-3.c: Same.
8545 * testsuite/libgomp.c/pr58392.c: Same.
8546 * testsuite/libgomp.c/pr58756.c: Same.
8547 * testsuite/libgomp.c/simd-1.c: Same.
8548 * testsuite/libgomp.c/simd-10.c: Same.
8549 * testsuite/libgomp.c/simd-11.c: Same.
8550 * testsuite/libgomp.c/simd-12.c: Same.
8551 * testsuite/libgomp.c/simd-13.c: Same.
8552 * testsuite/libgomp.c/simd-14.c: Same.
8553 * testsuite/libgomp.c/simd-15.c: Same.
8554 * testsuite/libgomp.c/simd-2.c: Same.
8555 * testsuite/libgomp.c/simd-3.c: Same.
8556 * testsuite/libgomp.c/simd-4.c: Same.
8557 * testsuite/libgomp.c/simd-5.c: Same.
8558 * testsuite/libgomp.c/simd-6.c: Same.
8559 * testsuite/libgomp.c/simd-7.c: Same.
8560 * testsuite/libgomp.c/simd-8.c: Same.
8561 * testsuite/libgomp.c/simd-9.c: Same.
8563 2015-06-15 Tom de Vries <tom@codesourcery.com>
8565 * testsuite/libgomp.c/pr35625.c: Fix typo.
8567 2015-06-15 Tom de Vries <tom@codesourcery.com>
8569 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
8571 * testsuite/libgomp.c/atomic-3.c: Same.
8572 * testsuite/libgomp.c/debug-1.c: Same.
8573 * testsuite/libgomp.c/nqueens-1.c: Same.
8574 * testsuite/libgomp.c/pr26171.c: Same.
8575 * testsuite/libgomp.c/pr48591.c: Same.
8576 * testsuite/libgomp.c/pr64824.c: Same.
8577 * testsuite/libgomp.c/pr64868.c: Same.
8578 * testsuite/libgomp.c/pr66133.c: Same.
8579 * testsuite/libgomp.c/pr66199-1.c: Same.
8580 * testsuite/libgomp.c/pr66199-2.c: Same.
8581 * testsuite/libgomp.c/target-8.c: Same.
8583 2015-06-15 Tom de Vries <tom@codesourcery.com>
8585 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
8587 * testsuite/libgomp.c/for-1.c: Same.
8588 * testsuite/libgomp.c/for-2.c: Same.
8589 * testsuite/libgomp.c/for-3.c: Same.
8590 * testsuite/libgomp.c/pr35625.c: Same.
8591 * testsuite/libgomp.c/pr39154.c: Same.
8592 * testsuite/libgomp.c/simd-16.c: Same.
8593 * testsuite/libgomp.c/simd-17.c: Same.
8595 2015-06-13 Tom de Vries <tom@codesourcery.com>
8597 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
8599 2015-06-13 Tom de Vries <tom@codesourcery.com>
8601 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
8602 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
8603 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
8605 (main): Use N instead of hardcoded constants.
8607 2015-06-05 Tom de Vries <tom@codesourcery.com>
8609 merge from gomp4 branch:
8610 2015-05-28 Tom de Vries <tom@codesourcery.com>
8612 PR tree-optimization/65443
8613 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
8614 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
8615 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
8617 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8619 * testsuite/libgomp.graphite/bounds.c: Adjust for
8620 cleanup-tree-dump removal.
8621 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
8622 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
8623 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
8624 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
8625 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
8626 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
8627 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
8628 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
8629 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
8630 * testsuite/libgomp.graphite/pr41118.c: Likewise.
8632 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
8634 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
8635 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
8636 (futex_wake) [!__x86_64__]: Ditto.
8638 2015-05-28 Julian Brown <julian@codesourcery.com>
8640 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
8641 function comment. Only call gomp_fatal if new argument is true.
8642 (acc_dev_num_out_of_range): New function.
8643 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
8644 acc_dev_num_out_of_range as appropriate.
8645 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
8646 (acc_get_device_num, acc_set_device_num): Update calls to
8648 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
8651 2015-05-28 Julian Brown <julian@codesourcery.com>
8654 * oacc-init.c (plugin/plugin-host.h): Include.
8655 (acc_on_device): Check whether we're in an offloaded region for
8657 plugin. Don't use __builtin_acc_on_device.
8658 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
8659 nonshm_exec flag in thread-local data.
8660 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
8661 data for host_nonshm plugin.
8662 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
8663 for host_nonshm plugin.
8664 * plugin/plugin-host.h: New.
8666 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
8668 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
8670 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
8672 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
8674 (FUTEX_PRIVATE_FLAG): Remove L suffix.
8675 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
8678 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
8680 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
8682 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
8684 * target.c (gomp_map_pointer): New function abstracting out
8685 GOMP_MAP_POINTER handling.
8686 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
8689 2015-05-19 Jakub Jelinek <jakub@redhat.com>
8692 * testsuite/libgomp.c/pr66199-1.c: New test.
8693 * testsuite/libgomp.c/pr66199-2.c: New test.
8694 * testsuite/libgomp.c++/pr66199-1.C: New test.
8695 * testsuite/libgomp.c++/pr66199-2.C: New test.
8696 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
8697 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
8699 2015-05-19 Julian Brown <julian@codesourcery.com>
8701 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
8704 2015-05-13 Jakub Jelinek <jakub@redhat.com>
8707 * testsuite/libgomp.c/pr66133.c: New test.
8709 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
8711 * Makefile.in: Regenerated with automake-1.11.6.
8712 * aclocal.m4: Likewise.
8713 * config.h.in: Likewise.
8714 * configure: Likewise.
8715 * testsuite/Makefile.in: Likewise.
8717 2015-05-08 Jason Merrill <jason@redhat.com>
8719 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
8722 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
8724 2015-05-06 Julian Brown <julian@codesourcery.com>
8726 * oacc-init.c (acc_device_lock): Add explanatory comment.
8727 (resolve_device): Add comment about locking requirement.
8728 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
8729 gomp_init_device and gomp_fini_device calls.
8730 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
8731 (acc_get_device_num, acc_set_device_num): Add locking around
8732 resolve_device and gomp_init_device calls.
8734 2015-05-06 Julian Brown <julian@codesourcery.com>
8736 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
8737 goacc_thread_lock on error paths.
8738 * oacc-mem.c (lookup_host): Remove locking from function. Note
8739 locking requirement for caller in function comment.
8740 (lookup_dev): Likewise.
8741 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
8742 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
8743 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
8746 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
8750 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
8751 don't expect "0x" prefix for "%p" format specifier, don't expect
8752 "(nil)" for NULL pointer.
8753 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8754 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8755 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8756 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8757 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8758 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8759 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8760 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8761 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8762 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8763 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8764 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8765 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8766 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8767 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8768 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8769 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8770 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8771 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8772 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8773 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8774 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8775 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8776 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8777 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8778 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8779 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8780 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8781 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
8782 accurately specify what we're looking for.
8783 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8784 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8785 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8786 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8787 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8789 2015-04-30 James Norris <jnorris@codesourcery.com>
8792 * testsuite/lib/libgomp.exp
8793 (check_effective_target_openacc_host_selected)
8794 (check_effective_target_openacc_host_nonshm_selected): New
8796 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
8798 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
8799 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
8800 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8801 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8802 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8803 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
8804 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8805 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8806 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8807 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8808 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8809 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8810 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8811 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8812 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8813 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
8814 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8815 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8816 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8817 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8818 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8819 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
8820 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8821 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8822 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8823 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8824 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8825 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8826 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8827 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8828 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8829 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8830 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8831 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
8832 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
8833 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
8834 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
8835 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
8836 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
8837 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8838 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8839 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8840 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8842 2015-04-08 Julian Brown <julian@codesourcery.com>
8844 * libgomp.h (target_mem_desc: Remove mem_map field.
8845 (acc_dispatch_t): Remove open_device_func, close_device_func,
8846 get_device_num_func, set_device_num_func, target_data members.
8847 Change create_thread_data_func argument to device number instead of
8849 * oacc-async.c (assert.h): Include.
8850 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
8851 (acc_wait_all, acc_wait_all_async): Use current host thread's
8852 active device, not base_dev.
8853 * oacc-cuda.c (acc_get_current_cuda_device)
8854 (acc_get_current_cuda_context, acc_get_cuda_stream)
8855 (acc_set_cuda_stream): Likewise.
8856 * oacc-host.c (host_dispatch): Don't set open_device_func,
8857 close_device_func, get_device_num_func or set_device_num_func.
8858 * oacc-init.c (base_dev, init_key): Remove.
8859 (cached_base_dev): New.
8860 (name_of_acc_device_t): New.
8861 (acc_init_1): Initialise default-numbered device, not zeroth.
8862 (acc_shutdown_1): Close all devices of a given type.
8863 (goacc_destroy_thread): Don't use base_dev.
8864 (lazy_open, lazy_init, lazy_init_and_open): Remove.
8865 (goacc_attach_host_thread_to_device): New.
8866 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
8867 (acc_get_num_devices): Don't use base_dev.
8868 (acc_set_device_type): Reimplement.
8869 (acc_get_device_type): Don't use base_dev.
8870 (acc_get_device_num): Tweak logic.
8871 (acc_set_device_num): Likewise.
8872 (acc_on_device): Use acc_get_device_type.
8873 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
8874 (goacc_lazy_initialize): Reimplement with acc_init and
8875 goacc_attach_host_thread_to_device.
8876 * oacc-int.h (goacc_thread): Add base_dev field.
8877 (base_dev): Remove extern declaration.
8878 (goacc_attach_host_thread_to_device): Add prototype.
8879 * oacc-mem.c (acc_malloc): Use current thread's device instead of
8881 (acc_free): Likewise.
8882 (acc_memcpy_to_device): Likewise.
8883 (acc_memcpy_from_device): Likewise.
8884 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
8885 goacc_lazy_initialize (throughout).
8886 (GOACC_parallel): Use tgt_offset to locate target functions.
8887 * target.c (gomp_map_vars): Don't set tgt->mem_map.
8888 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
8889 (gomp_load_plugin_for_device): Remove open_device, close_device,
8890 get_device_num, set_device_num openacc hook initialisation. Don't set
8891 openacc.target_data.
8892 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
8893 (GOMP_OFFLOAD_openacc_close_device)
8894 (GOMP_OFFLOAD_openacc_get_device_num)
8895 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
8896 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
8898 * plugin/plugin-nvptx.c (ptx_inited): Remove.
8899 (instantiated_devices, ptx_dev_lock): New.
8900 (struct ptx_image_data): New.
8901 (ptx_devices, ptx_images, ptx_image_lock): New.
8902 (fini_streams_for_device): Reorder cuStreamDestroy call.
8903 (nvptx_get_num_devices): Remove forward declaration.
8904 (nvptx_init): Change return type to bool.
8905 (nvptx_fini): Remove.
8906 (nvptx_attach_host_thread_to_device): New.
8907 (nvptx_open_device): Return struct ptx_device* instead of void*.
8908 (nvptx_close_device): Change argument type to struct ptx_device*,
8909 return type to void.
8910 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
8911 (kernel_target_data, kernel_host_table): Remove static globals.
8912 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
8913 (GOMP_OFFLOAD_init_device): Reimplement.
8914 (GOMP_OFFLOAD_fini_device): Likewise.
8915 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
8916 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
8917 (GOMP_OFFLOAD_host2dev): Use ORD argument.
8918 (GOMP_OFFLOAD_openacc_open_device)
8919 (GOMP_OFFLOAD_openacc_close_device)
8920 (GOMP_OFFLOAD_openacc_set_device_num)
8921 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
8922 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
8926 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
8928 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
8930 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
8931 * libgomp.h (struct gomp_memory_mapping): Remove.
8932 (struct target_mem_desc): Change type of mem_map from
8933 gomp_memory_mapping * to splay_tree_s *.
8934 (struct gomp_device_descr): Remove register_image_func, get_table_func.
8935 Add load_image_func, unload_image_func.
8936 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
8937 Remove offload_regions_registered.
8938 (gomp_init_tables): Remove.
8939 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
8941 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
8942 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
8943 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
8944 offload_regions_registered.
8945 Initialize load_image_func, unload_image_func, mem_map.root.
8946 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
8947 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
8948 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
8949 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
8950 gomp_memory_mapping *. Use dev's lock and splay_tree.
8951 (lookup_dev): Use dev's lock.
8952 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
8953 (acc_is_present): Likewise.
8954 (acc_map_data): Likewise.
8955 (acc_unmap_data): Likewise. Use dev's lock.
8956 (present_create_copy): Likewise.
8957 (delete_copyout): Pass dev to lookup_host instead of mem_map.
8958 (update_dev_host): Likewise.
8959 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
8960 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
8961 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
8962 (GOMP_OFFLOAD_get_table): Remove
8963 (GOMP_OFFLOAD_load_image): New function.
8964 (GOMP_OFFLOAD_unload_image): New function.
8965 * target.c (register_lock): New mutex for offload image registration.
8966 (num_devices): Do not guard with PLUGIN_SUPPORT.
8967 (gomp_realloc_unlock): New static function.
8968 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
8970 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
8971 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
8972 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
8974 (gomp_unmap_vars): Likewise.
8975 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
8976 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
8977 (gomp_offload_image_to_device): New static function.
8978 (GOMP_offload_register): Add mutex lock.
8979 Call gomp_offload_image_to_device for all initialized devices.
8980 Replace gomp_realloc with gomp_realloc_unlock.
8981 (GOMP_offload_unregister): New function.
8982 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
8983 get_table_func from the plugin with calls to init_device_func and
8984 gomp_offload_image_to_device.
8985 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
8987 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
8988 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
8989 (GOMP_target_data): Do not call gomp_init_tables.
8990 (GOMP_target_update): Likewise. Remove argument from gomp_update.
8991 (gomp_load_plugin_for_device): Replace register_image and get_table
8992 with load_image and unload_image in DLSYM ().
8993 (gomp_register_images_for_device): Remove function.
8994 (gomp_target_init): Do not initialize current_device.mem_map.*,
8995 current_device.offload_regions_registered.
8996 Remove call to gomp_register_images_for_device.
8997 Do not free offload_images and num_offload_images.
8999 2015-03-30 Jakub Jelinek <jakub@redhat.com>
9002 * testsuite/libgomp.fortran/pr65597.f90: New test.
9004 2015-03-27 Tom de Vries <tom@codesourcery.com>
9007 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
9008 (init, check): New function.
9009 (foo): Change return type to void.
9010 (main): Call init and check.
9012 2015-03-27 Tom de Vries <tom@codesourcery.com>
9015 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
9016 (foo): Use M for non-inner loops to scale down test-case.
9018 2015-03-25 Kai Tietz <ktietz@redhat.com>
9021 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
9022 (GOACC_data_start): Likewise.
9023 * target.c (gomp_map_vars): Likewise.
9025 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
9027 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
9030 2015-03-19 Jakub Jelinek <jakub@redhat.com>
9032 * testsuite/libgomp.c/target-10.c: New test.
9033 * testsuite/libgomp.c++/target-4.C: New test.
9035 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
9037 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
9038 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
9040 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
9042 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
9043 * configure.ac (*-*-rtems*): Assume Pthread is supported.
9044 (pthread.h): Check for this header file.
9045 * configure: Regenerate.
9047 2015-02-25 Tom de Vries <tom@codesourcery.com>
9049 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
9050 (check_reduction_op, check_reduction_macro, max, min):
9052 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
9054 (main): Use new functions.
9056 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
9058 * target.c (gomp_load_plugin_for_device): Use const char * instead of
9059 char * for variables holding dlerror return values.
9062 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
9064 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
9066 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
9067 Cesar Philippidis <cesar@codesourcery.com>
9069 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
9070 GOACC_ctaid, and GOACC_nctaid routines.
9072 2015-02-11 Jakub Jelinek <jakub@redhat.com>
9075 * testsuite/libgomp.c/atomic-18.c: New test.
9076 * testsuite/libgomp.c++/atomic-16.C: New test.
9078 2015-02-04 Jakub Jelinek <jakub@redhat.com>
9082 * testsuite/libgomp.c/pr64824.c: New test.
9083 * testsuite/libgomp.c/pr64868.c: New test.
9084 * testsuite/libgomp.c++/pr64824.C: New test.
9085 * testsuite/libgomp.c++/pr64868.C: New test.
9087 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
9090 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
9091 Link with -lpthread.
9092 * config/aix/plugin-suffix.h: Delete.
9094 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
9097 * configure.tgt (*-*-aix*): Use config_path "aix posix".
9098 (*-*-darwin*): Use config_path "bsd darwin posix".
9099 (*-*-hpux*): Use config_path "hpux posix".
9100 * target.c: Add include of plugin-suffix.h and use
9101 SONAME_SUFFIX macro.
9102 * config/aix/plugin-suffix.h: New file.
9103 * config/darwin/plugin-suffix.h: New file.
9104 * config/hpux/plugin-suffix.h: New file.
9105 * config/posix/plugin-suffix.h: New file.
9107 2015-01-23 Jakub Jelinek <jakub@redhat.com>
9110 * libgomp.c/pr64734.c: New test.
9112 2015-01-23 Tom de Vries <tom@codesourcery.com>
9115 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
9117 2015-01-23 Tom de Vries <tom@codesourcery.com>
9120 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
9123 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
9126 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
9127 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
9128 formal parameter. Update all users.
9129 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
9130 Document unused formal parameter.
9132 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
9134 * oacc-parallel.c: Don't include <alloca.h>.
9135 (GOACC_parallel): Use gomp_alloca instead of alloca.
9137 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
9139 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
9141 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
9142 James Norris <jnorris@codesourcery.com>
9143 Tom de Vries <tom@codesourcery.com>
9144 Julian Brown <julian@codesourcery.com>
9145 Cesar Philippidis <cesar@codesourcery.com>
9146 Nathan Sidwell <nathan@codesourcery.com>
9147 Tobias Burnus <burnus@net-b.de>
9149 * Makefile.am (search_path): Add $(top_srcdir)/../include.
9150 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
9151 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
9152 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
9153 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
9154 Include $(top_srcdir)/plugin/Makefrag.am.
9155 (nodist_libsubinclude_HEADERS): Add openacc.h.
9156 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
9157 openacc.f90, openacc.mod, openacc_kinds.mod.
9158 (omp_lib.mod): Generalize into...
9159 (%.mod): ... this new rule.
9160 (openacc_kinds.mod, openacc.mod): New rules.
9161 * plugin/configfrag.ac: New file.
9162 * configure.ac: Move plugin/offloading support into it. Include
9163 it. Instantiate testsuite/libgomp-test-support.pt.exp.
9164 * plugin/Makefrag.am: New file.
9165 * testsuite/Makefile.am (OFFLOAD_TARGETS)
9166 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
9168 (libgomp-test-support.exp): New rule.
9169 (all-local): Depend on it.
9170 * Makefile.in: Regenerate.
9171 * testsuite/Makefile.in: Regenerate.
9172 * config.h.in: Likewise.
9173 * configure: Likewise.
9174 * configure.tgt: Harden shell syntax.
9175 * env.c: Include "oacc-int.h".
9176 (parse_acc_device_type): New function.
9177 (gomp_debug_var, goacc_device_type, goacc_device_num): New
9179 (initialize_env): Initialize those. Call
9180 goacc_runtime_initialize.
9181 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
9182 (gomp_fatal): Call gomp_vfatal.
9183 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
9184 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
9185 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
9186 (splay_tree_node, splay_tree, splay_tree_key)
9187 (struct target_mem_desc, struct splay_tree_key_s)
9188 (struct gomp_memory_mapping, struct acc_dispatch_t)
9189 (struct gomp_device_descr, gomp_acc_insert_pointer)
9190 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
9191 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
9192 (gomp_free_memmap, gomp_fini_device): New declarations.
9193 (gomp_vdebug, gomp_debug): New macros.
9194 Include "splay-tree.h".
9195 * libgomp.map (OACC_2.0): New symbol version. Use for
9196 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
9197 acc_set_device_type_h_, acc_get_device_type,
9198 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
9199 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
9200 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
9201 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
9202 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
9203 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
9204 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
9205 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
9206 acc_copyin_array_h_, acc_present_or_copyin,
9207 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
9208 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
9209 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
9210 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
9211 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
9212 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
9213 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
9214 acc_update_device, acc_update_device_32_h_,
9215 acc_update_device_64_h_, acc_update_device_array_h_,
9216 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
9217 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
9218 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
9219 acc_is_present_64_h_, acc_is_present_array_h_,
9220 acc_memcpy_to_device, acc_memcpy_from_device,
9221 acc_get_current_cuda_device, acc_get_current_cuda_context,
9222 acc_get_cuda_stream, acc_set_cuda_stream.
9223 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
9224 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
9225 GOACC_update, GOACC_wait, GOACC_get_thread_num,
9226 GOACC_get_num_threads.
9227 (GOMP_PLUGIN_1.0): New symbol version. Use for
9228 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
9229 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
9230 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
9231 GOMP_PLUGIN_acc_thread.
9232 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
9233 environment variable.
9234 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
9235 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
9236 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
9237 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
9238 (splay_tree_remove): New declarations.
9239 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
9240 (splay_tree_remove, splay_tree_lookup): Move into...
9241 * splay-tree.c: ... this new file.
9242 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
9243 (splay_tree_node, splay_tree, splay_tree_key)
9244 (struct target_mem_desc, struct splay_tree_key_s)
9245 (struct gomp_device_descr): Don't declare.
9246 (num_devices_openmp): New variable.
9247 (gomp_get_num_devices ): Use it.
9248 (gomp_init_targets_once): New function.
9249 (gomp_get_num_devices ): Use it.
9250 (get_kind, gomp_copy_from_async, gomp_free_memmap)
9251 (gomp_fini_device, gomp_register_image_for_device): New functions.
9252 (gomp_map_vars): Add devaddrs parameter.
9253 (gomp_update): Add mm parameter.
9254 (gomp_init_device): Move most of it into...
9255 (gomp_init_tables): ... this new function.
9256 (gomp_register_images_for_device): Remove function.
9257 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
9258 Make them hidden instead of static.
9259 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
9260 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
9261 (GOMP_target_end_data, GOMP_target_update)
9262 (gomp_load_plugin_for_device, gomp_target_init): Update for
9264 * oacc-async.c: New file.
9265 * oacc-cuda.c: Likewise.
9266 * oacc-host.c: Likewise.
9267 * oacc-init.c: Likewise.
9268 * oacc-int.h: Likewise.
9269 * oacc-mem.c: Likewise.
9270 * oacc-parallel.c: Likewise.
9271 * oacc-plugin.c: Likewise.
9272 * oacc-plugin.h: Likewise.
9273 * oacc-ptx.h: Likewise.
9274 * openacc.f90: Likewise.
9275 * openacc.h: Likewise.
9276 * openacc_lib.h: Likewise.
9277 * plugin/plugin-host.c: Likewise.
9278 * plugin/plugin-nvptx.c: Likewise.
9279 * libgomp-plugin.c: Likewise.
9280 * libgomp-plugin.h: Likewise.
9281 * libgomp_target.h: Remove file after merging content into the
9282 former file. Update all users.
9283 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
9284 (offload_targets_s, offload_targets_s_openacc): New variables.
9285 (check_effective_target_openacc_nvidia_accel_present)
9286 (check_effective_target_openacc_nvidia_accel_selected): New
9288 (libgomp_init): Update for OpenACC changes.
9289 * testsuite/libgomp-test-support.exp.in: New file.
9290 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
9291 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9292 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9293 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
9294 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
9295 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
9296 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
9297 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
9298 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
9299 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
9300 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
9301 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
9302 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
9303 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
9304 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
9305 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
9306 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
9307 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
9308 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
9309 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
9310 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
9311 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9312 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
9313 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
9314 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
9315 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
9316 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
9317 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
9318 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
9319 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
9320 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
9321 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
9322 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
9323 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
9324 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
9325 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
9326 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
9327 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
9328 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
9329 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
9330 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
9331 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
9332 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
9333 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
9334 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
9335 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
9336 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
9337 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
9338 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
9339 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
9340 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
9341 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
9342 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
9343 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
9344 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
9345 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
9346 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
9347 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
9348 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
9349 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
9350 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
9351 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
9352 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
9353 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
9354 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
9355 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
9356 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
9357 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
9358 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
9359 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
9360 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
9361 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
9362 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
9363 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
9364 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
9365 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
9366 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
9367 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
9368 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
9369 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
9370 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
9371 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
9372 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
9373 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
9374 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
9375 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
9376 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
9377 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
9378 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
9379 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
9380 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
9381 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
9382 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
9383 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
9384 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
9385 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
9386 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
9387 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
9388 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
9389 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
9390 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
9391 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
9392 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
9393 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
9394 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
9395 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
9396 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
9397 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
9398 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
9399 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
9400 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
9401 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
9402 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
9403 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
9404 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
9405 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
9406 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
9407 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
9408 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
9409 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
9410 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
9411 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
9412 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
9413 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
9414 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
9415 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
9416 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
9417 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
9418 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
9419 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
9420 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
9421 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
9422 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
9423 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
9424 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
9425 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
9426 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
9427 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
9428 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
9429 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
9431 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
9432 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
9433 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
9434 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
9435 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
9436 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
9437 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
9438 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
9439 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
9440 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
9441 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
9442 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
9443 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
9444 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
9445 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
9446 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
9447 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
9448 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
9449 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
9450 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
9451 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
9452 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
9453 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
9454 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
9455 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
9456 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
9457 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
9458 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
9459 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
9460 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
9461 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
9462 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
9463 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
9464 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
9465 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
9466 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
9467 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
9468 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
9469 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
9470 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
9471 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
9472 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
9473 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
9474 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
9475 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
9476 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
9477 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
9478 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
9479 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
9480 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
9481 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
9482 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
9483 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
9484 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
9485 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
9486 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
9487 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
9488 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
9489 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
9490 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
9492 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
9493 Julian Brown <julian@codesourcery.com>
9494 David Malcolm <dmalcolm@redhat.com>
9496 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
9497 to "GNU Offloading and Multi Processing Runtime Library". Change
9499 * configure: Regenerate.
9500 * libgomp.texi: Update.
9502 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
9504 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
9506 * configure: Regenerate.
9508 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
9509 "intelmic" in $offload_targets.
9511 2015-01-05 Jakub Jelinek <jakub@redhat.com>
9513 Update copyright years.
9515 * libgomp.texi: Bump @copying's copyright year.
9517 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9519 * testsuite/lib/libgomp.exp: Load target-utils.exp.
9520 Move load of target-supports.exp earlier.
9522 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
9524 * testsuite/libgomp.c/target-9.c: New test.
9526 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
9528 * config.h.in: Regenerate.
9529 * configure: Regenerate.
9530 * configure.ac: Add GCC_CHECK_EMUTLS.
9531 * libgomp.h: Add check for USE_EMUTLS: this case
9532 is equal to HAVE_TLS.
9535 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
9537 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
9539 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
9540 Ilya Verbin <ilya.verbin@intel.com>
9542 * testsuite/libgomp.c/target-critical-1.c: New test.
9544 2014-11-26 Jakub Jelinek <jakub@redhat.com>
9546 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
9547 to dg-options unless expensive testing is on.
9548 (TESTITERS): Define to N if not defined.
9549 (main): Use TESTITERS instead of N.
9550 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
9551 dg-additional-options depending on whether expensive testing is on.
9552 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
9553 Decrease N to 100000 and CHUNKSZ to 10000.
9555 2014-11-24 Jakub Jelinek <jakub@redhat.com>
9558 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
9559 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
9561 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
9563 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
9565 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
9568 * configure: Regenerated.
9570 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
9572 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
9573 vect_simd_clones effective target.
9574 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
9576 2014-11-14 Jakub Jelinek <jakub@redhat.com>
9578 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
9579 of 32 as block_size.
9580 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
9581 instead of 32 as block_size.
9583 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
9584 Ilya Verbin <ilya.verbin@intel.com>
9586 * Makefile.in: Regenerate.
9587 * configure: Regenerate.
9588 * configure.ac: Set up offload_additional_options,
9589 offload_additional_lib_paths and offload_targets.
9590 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
9591 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
9592 * testsuite/Makefile.in: Regenerate.
9593 * testsuite/lib/libgomp.exp (libgomp_init): Append
9594 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
9595 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
9596 build directory to LD_LIBRARY_PATH for intelmic offload targets.
9598 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
9599 Ilya Verbin <ilya.verbin@intel.com>
9600 Kirill Yukhin <kirill.yukhin@intel.com>
9601 Ilya Tocar <ilya.tocar@intel.com>
9603 * testsuite/lib/libgomp.exp
9604 (check_effective_target_offload_device): New.
9605 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
9606 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
9607 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
9608 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
9609 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
9610 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
9611 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
9612 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
9613 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
9614 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
9615 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
9616 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
9617 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
9618 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
9619 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
9620 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
9621 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
9622 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
9623 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
9624 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
9625 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
9626 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
9627 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
9628 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
9629 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
9630 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
9631 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
9632 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
9633 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
9634 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
9635 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
9636 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
9637 * testsuite/libgomp.c/target-7.c: Fix test.
9638 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
9639 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
9640 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
9641 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
9642 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
9643 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
9644 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
9645 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
9646 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
9647 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
9648 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
9649 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
9650 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
9651 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
9652 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
9653 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
9654 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
9655 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
9656 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
9657 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
9658 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
9659 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
9660 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
9661 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
9662 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
9663 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
9664 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
9665 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
9666 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
9667 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
9668 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
9670 2014-11-13 Jakub Jelinek <jakub@redhat.com>
9671 Ilya Verbin <ilya.verbin@intel.com>
9672 Thomas Schwinge <thomas@codesourcery.com>
9673 Andrey Turetskiy <andrey.turetskiy@intel.com>
9675 * libgomp.map (GOMP_4.0.1): New symbol version.
9676 Add GOMP_offload_register.
9677 * libgomp_target.h: New file.
9678 * splay-tree.h: New file.
9679 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
9680 (gomp_target_init): New forward declaration.
9681 (gomp_is_initialized): New static variable.
9682 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
9683 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
9685 (offload_images, num_offload_images, devices, num_devices): New static
9687 (splay_compare): New static function.
9688 (struct gomp_device_descr): New structure.
9689 (gomp_get_num_devices): Call gomp_target_init.
9690 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
9691 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
9692 (GOMP_offload_register): New function.
9693 (GOMP_target): Arrange for host callback to be performed in a separate
9694 initial thread and contention group, inheriting ICVs from
9695 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
9696 Add device initialization and lookup for target function in splay tree.
9697 (GOMP_target_data): Add device initialization and call gomp_map_vars.
9698 (GOMP_target_end_data): Call gomp_unmap_vars.
9699 (GOMP_target_update): Add device initialization and call gomp_update.
9700 (gomp_load_plugin_for_device, gomp_register_images_for_device)
9701 (gomp_target_init): New static functions.
9703 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
9704 Thomas Schwinge <thomas@codesourcery.com>
9705 Ilya Verbin <ilya.verbin@intel.com>
9706 Andrey Turetskiy <andrey.turetskiy@intel.com>
9708 * config.h.in: Regenerate.
9709 * configure: Regenerate.
9710 * configure.ac: Check for libdl, required for plugin support.
9711 (PLUGIN_SUPPORT): Define if plugins are supported.
9712 (enable_offload_targets): Support Intel MIC targets.
9713 (OFFLOAD_TARGETS): List of target names suitable for offloading.
9715 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9718 * configure: Regenerate.
9720 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9722 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
9724 2014-10-06 Marek Polacek <polacek@redhat.com>
9726 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
9727 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
9728 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
9729 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
9731 2014-10-06 Marek Polacek <polacek@redhat.com>
9733 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
9734 * testsuite/libgomp.c/nqueens-1.c: Likewise.
9735 * testsuite/libgomp.c/pr26943-3.c: Likewise.
9736 * testsuite/libgomp.c/pr26943-4.c: Likewise.
9737 * testsuite/libgomp.c/pr36802-2.c: Likewise.
9738 * testsuite/libgomp.c/pr36802-3.c: Likewise.
9739 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
9740 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
9741 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
9742 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
9743 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
9744 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
9745 * testsuite/libgomp.c/omp-single-1.c: Likewise.
9746 * testsuite/libgomp.c/omp-single-2.c: Likewise.
9747 * testsuite/libgomp.c/omp_matvec.c: Likewise.
9748 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
9749 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
9750 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
9753 2014-10-03 Jakub Jelinek <jakub@redhat.com>
9756 * testsuite/libgomp.c/pr61200.c: New test.
9758 2014-09-18 Jakub Jelinek <jakub@redhat.com>
9761 * testsuite/libgomp.c++/pr63248.C: New test.
9763 2014-08-04 Jakub Jelinek <jakub@redhat.com>
9765 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
9766 is not zero, but taskgroup->children is NULL and there are
9767 any task->children, schedule those instead of waiting.
9768 * testsuite/libgomp.c/depend-6.c: New test.
9769 * testsuite/libgomp.c/depend-7.c: New test.
9770 * testsuite/libgomp.c/depend-8.c: New test.
9771 * testsuite/libgomp.c/depend-9.c: New test.
9772 * testsuite/libgomp.c/depend-10.c: New test.
9774 2014-08-01 Jakub Jelinek <jakub@redhat.com>
9776 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
9777 (struct gomp_taskwait): New type.
9778 (struct gomp_task): Add taskwait and parent_depends_on, remove
9779 in_taskwait and taskwait_sem fields.
9780 (gomp_finish_task): Don't destroy taskwait_sem.
9781 * task.c (gomp_init_task): Don't init in_taskwait, instead init
9782 taskwait and parent_depends_on.
9783 (GOMP_task): For if (0) tasks with depend clause that depend on
9784 earlier tasks don't defer them, instead call
9785 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
9786 Initialize redundant_out field, for redundant out entries just
9787 move them at the end of linked list instead of removing them
9788 completely, and set redundant_out flag instead of redundant.
9789 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
9791 (gomp_task_run_post_handle_dependers): If parent is in
9792 gomp_task_maybe_wait_for_dependencies and newly runnable task
9793 is not parent_depends_on, queue it in parent->children linked
9794 list after all runnable tasks with parent_depends_on set.
9795 Adjust for addition of taskwait indirection.
9796 (gomp_task_run_post_remove_parent): If parent is in
9797 gomp_task_maybe_wait_for_dependencies and task to be removed
9798 is parent_depends_on, decrement n_depend and if needed awake
9799 parent. Adjust for addition of taskwait indirection.
9800 (GOMP_taskwait): Adjust for addition of taskwait indirection.
9801 (gomp_task_maybe_wait_for_dependencies): New function.
9802 * testsuite/libgomp.c/depend-5.c: New test.
9804 2014-07-13 Tobias Burnus <burnus@net-b.de>
9806 * testsuite/libgomp.fortran/pr34020.f90: Make compile
9807 with TS 18508/Fortran 2015.
9809 2014-07-06 Marek Polacek <polacek@redhat.com>
9812 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
9814 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9816 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
9817 matches regex $lang_source_re, add $lang_include_flags to options.
9818 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
9819 * testsuite/libgomp.c++/c++.exp: Likewise.
9820 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
9821 and lang_include_flags instead of adding -fintrinsic-modules-path= to
9823 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
9825 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
9827 * testsuite/libgomp.fortran/fortran.exp: Explain
9828 gfortran-dg-runtest usage.
9830 2014-06-25 Jakub Jelinek <jakub@redhat.com>
9832 * testsuite/libgomp.fortran/simd5.f90: New test.
9833 * testsuite/libgomp.fortran/simd6.f90: New test.
9834 * testsuite/libgomp.fortran/simd7.f90: New test.
9836 2014-06-24 Jakub Jelinek <jakub@redhat.com>
9838 * testsuite/libgomp.c/for-2.c: Define SC to static for
9839 #pragma omp for simd testing.
9840 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
9841 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
9843 * testsuite/libgomp.c/simd-14.c: New test.
9844 * testsuite/libgomp.c/simd-15.c: New test.
9845 * testsuite/libgomp.c/simd-16.c: New test.
9846 * testsuite/libgomp.c/simd-17.c: New test.
9847 * testsuite/libgomp.c++/for-10.C: Define SC to static for
9848 #pragma omp for simd testing.
9849 * testsuite/libgomp.c++/simd10.C: New test.
9850 * testsuite/libgomp.c++/simd11.C: New test.
9851 * testsuite/libgomp.c++/simd12.C: New test.
9852 * testsuite/libgomp.c++/simd13.C: New test.
9854 * testsuite/libgomp.fortran/aligned1.f03: New test.
9855 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
9856 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
9857 tasks with !$omp parallel !$omp single.
9858 * testsuite/libgomp.fortran/target8.f90: New test.
9859 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
9860 not to use trim in the combiner, instead call elemental function.
9861 (fn): New elemental function.
9862 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
9864 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
9866 * testsuite/libgomp.fortran/udr12.f90: New test.
9867 * testsuite/libgomp.fortran/udr13.f90: New test.
9868 * testsuite/libgomp.fortran/udr14.f90: New test.
9869 * testsuite/libgomp.fortran/udr15.f90: New test.
9871 2014-06-18 Jakub Jelinek <jakub@redhat.com>
9873 * omp_lib.f90.in (openmp_version): Set to 201307.
9874 * omp_lib.h.in (openmp_version): Likewise.
9875 * testsuite/libgomp.c/target-8.c: New test.
9876 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
9877 and inbranch clauses.
9878 * testsuite/libgomp.fortran/depend-3.f90: New test.
9879 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
9881 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9882 * testsuite/libgomp.fortran/target1.f90: New test.
9883 * testsuite/libgomp.fortran/target2.f90: New test.
9884 * testsuite/libgomp.fortran/target3.f90: New test.
9885 * testsuite/libgomp.fortran/target4.f90: New test.
9886 * testsuite/libgomp.fortran/target5.f90: New test.
9887 * testsuite/libgomp.fortran/target6.f90: New test.
9888 * testsuite/libgomp.fortran/target7.f90: New test.
9890 2014-06-10 Jakub Jelinek <jakub@redhat.com>
9893 * testsuite/libgomp.fortran/allocatable9.f90: New test.
9894 * testsuite/libgomp.fortran/allocatable10.f90: New test.
9895 * testsuite/libgomp.fortran/allocatable11.f90: New test.
9896 * testsuite/libgomp.fortran/allocatable12.f90: New test.
9897 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
9898 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
9899 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
9900 * testsuite/libgomp.fortran/associate1.f90: New test.
9901 * testsuite/libgomp.fortran/associate2.f90: New test.
9902 * testsuite/libgomp.fortran/procptr1.f90: New test.
9904 2014-06-06 Jakub Jelinek <jakub@redhat.com>
9906 * testsuite/libgomp.fortran/simd1.f90: New test.
9907 * testsuite/libgomp.fortran/udr1.f90: New test.
9908 * testsuite/libgomp.fortran/udr2.f90: New test.
9909 * testsuite/libgomp.fortran/udr3.f90: New test.
9910 * testsuite/libgomp.fortran/udr4.f90: New test.
9911 * testsuite/libgomp.fortran/udr5.f90: New test.
9912 * testsuite/libgomp.fortran/udr6.f90: New test.
9913 * testsuite/libgomp.fortran/udr7.f90: New test.
9914 * testsuite/libgomp.fortran/udr8.f90: New test.
9915 * testsuite/libgomp.fortran/udr9.f90: New test.
9916 * testsuite/libgomp.fortran/udr10.f90: New test.
9917 * testsuite/libgomp.fortran/udr11.f90: New test.
9919 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
9921 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
9922 vect_simd_clones effective target.
9923 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
9925 2014-05-21 Jakub Jelinek <jakub@redhat.com>
9928 * testsuite/libgomp.c++/simd-9.C: New test.
9930 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
9932 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
9933 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
9934 texts according to their @menu entry positions.
9936 2014-05-11 Jakub Jelinek <jakub@redhat.com>
9938 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
9939 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
9940 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
9941 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
9942 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
9943 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
9944 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
9945 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
9946 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
9947 * testsuite/libgomp.fortran/depend-1.f90: New test.
9948 * testsuite/libgomp.fortran/depend-2.f90: New test.
9949 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
9950 * testsuite/libgomp.fortran/simd1.f90: New test.
9951 * testsuite/libgomp.fortran/simd2.f90: New test.
9952 * testsuite/libgomp.fortran/simd3.f90: New test.
9953 * testsuite/libgomp.fortran/simd4.f90: New test.
9954 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
9956 2014-05-02 Jakub Jelinek <jakub@redhat.com>
9958 * testsuite/libgomp.c/simd-10.c: New test.
9959 * testsuite/libgomp.c/simd-11.c: New test.
9960 * testsuite/libgomp.c/simd-12.c: New test.
9961 * testsuite/libgomp.c/simd-13.c: New test.
9963 2014-04-24 Jakub Jelinek <jakub@redhat.com>
9965 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
9966 atomic type clauses in any order and optional comma in between.
9967 * testsuite/libgomp.c++/atomic-15.C: Likewise.
9968 * testsuite/libgomp.c/atomic-17.c: Likewise.
9970 * testsuite/libgomp.c/simd-7.c: New test.
9971 * testsuite/libgomp.c/simd-8.c: New test.
9972 * testsuite/libgomp.c/simd-9.c: New test.
9973 * testsuite/libgomp.c/loop-16.c: New test.
9975 2014-04-02 Richard Henderson <rth@redhat.com>
9977 * config/linux/futex.h (futex_wait): Get error value from errno.
9978 (futex_wake): Likewise.
9980 2014-03-25 Jakub Jelinek <jakub@redhat.com>
9983 * testsuite/libgomp.c++/udr-11.C: New test.
9984 * testsuite/libgomp.c++/udr-12.C: New test.
9985 * testsuite/libgomp.c++/udr-13.C: New test.
9986 * testsuite/libgomp.c++/udr-14.C: New test.
9987 * testsuite/libgomp.c++/udr-15.C: New test.
9988 * testsuite/libgomp.c++/udr-16.C: New test.
9989 * testsuite/libgomp.c++/udr-17.C: New test.
9990 * testsuite/libgomp.c++/udr-18.C: New test.
9991 * testsuite/libgomp.c++/udr-19.C: New test.
9993 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9995 Update copyright years
9997 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9999 * hashtab.h: Use the standard form for the copyright notice.
10001 2014-01-02 Tobias Burnus <burnus@net-b.de>
10003 * libgomp.texi: Bump @copying's copyright year.
10005 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
10007 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
10008 alloca () with __builtin_alloca ().
10009 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
10010 * testsuite/libgomp.c/lock-3.c: Likewise.
10011 * testsuite/libgomp.c/pr48591.c: Likewise.
10013 2013-12-17 Jakub Jelinek <jakub@redhat.com>
10016 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
10019 2013-12-16 Jakub Jelinek <jakub@redhat.com>
10022 * testsuite/libgomp.c/pr58756.c: New test.
10024 2013-12-12 Jakub Jelinek <jakub@redhat.com>
10027 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
10030 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
10032 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
10034 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
10035 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
10036 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
10037 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
10040 * libgomp_g.h: Include <stddef.h> for size_t.
10042 * libgomp.spec.in: Update comment about libgomp's dependencies.
10043 * configure.ac: Likewise.
10044 * configure: Regenerate.
10046 2013-10-16 Tobias Burnus <burnus@net-b.de>
10048 * libgomp.texi: (Runtime Library Routines): Update references for
10049 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
10050 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
10051 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
10052 (Environment Variables): Update references for OpenMP 4.0. Add
10053 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
10054 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
10057 2013-10-14 Jakub Jelinek <jakub@redhat.com>
10059 * env.c (parse_bind_var): Initialize value to avoid
10060 (false positive) warning.
10062 2013-10-12 Jakub Jelinek <jakub@redhat.com>
10065 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
10067 (gomp_init_num_threads): Move i variable declaration into
10068 #ifdef CPU_ALLOC_SIZE block.
10069 * config/linux/affinity.c (gomp_affinity_init_level): Test
10070 gomp_places_list_len == 0 rather than gomp_places_list == 0
10071 when checking for topology reading error.
10072 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
10073 * env.c (parse_affinity): Add ignore argument, if true, don't populate
10074 gomp_places_list, only parse env var and always return false.
10075 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
10076 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
10077 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
10078 and either of these variables were parsed correctly into a places
10081 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
10082 Jakub Jelinek <jakub@redhat.com>
10084 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
10085 of 5 loopfn matches.
10086 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
10087 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
10088 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
10089 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
10090 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
10091 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
10092 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
10093 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
10095 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
10097 * Makefile.am (omp_lib.mod): Streamline rule.
10098 * Makefile.in: Regenerate.
10100 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
10103 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
10104 * testsuite/libgomp.fortran/lib1.f90: Likewise.
10105 * testsuite/libgomp.fortran/lib2.f: Likewise.
10106 * testsuite/libgomp.fortran/lib3.f: Likewise.
10108 * configure.ac: Typo fix.
10109 * configure: Regenerate.
10111 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
10112 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
10114 * omp.h.in: Don't touch the user's namespace.
10116 2013-10-11 Jakub Jelinek <jakub@redhat.com>
10117 Tobias Burnus <burnus@net-b.de>
10118 Richard Henderson <rth@redhat.com>
10120 * target.c: New file.
10121 * Makefile.am (libgomp_la_SOURCES): Add target.c.
10122 * Makefile.in: Regenerated.
10123 * libgomp_g.h (GOMP_task): Add depend argument.
10124 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
10125 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
10126 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
10127 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
10128 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
10129 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
10130 GOMP_taskgroup_start, GOMP_taskgroup_end,
10131 GOMP_parallel_sections): New prototypes.
10132 * fortran.c (omp_is_initial_device): Add ialias_redirect.
10133 (omp_is_initial_device_): New function.
10134 (ULP, STR1, STR2, ialias_redirect): Removed.
10135 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
10136 omp_set_default_device_8_, omp_get_default_device_,
10137 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
10139 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
10140 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
10141 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
10143 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
10144 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
10145 omp_set_default_device, omp_set_default_device_,
10146 omp_set_default_device_8_, omp_get_default_device,
10147 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
10148 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
10149 omp_get_team_num_): Export @@OMP_4.0.
10150 * team.c (struct gomp_thread_start_data): Add place field.
10151 (gomp_thread_start): Clear thr->thread_pool and
10152 thr->task before returning. Use gomp_team_barrier_wait_final
10153 instead of gomp_team_barrier_wait. Initialize thr->place.
10154 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
10155 team_cancelled and task_queued_count fields.
10156 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
10157 before calling pthread_exit.
10158 (gomp_free_thread): No longer static. Use
10159 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
10160 (gomp_team_start): Add flags argument. Set
10161 thr->thread_pool->threads_busy to nthreads immediately after creating
10162 new pool. Use gomp_managed_threads_lock instead of
10163 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
10164 (gomp_team_end): Use gomp_managed_threads_lock instead of
10165 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
10166 of gomp_team_barrier_wait. If team->team_cancelled, call
10167 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
10168 rather than thr->ts.work_share.
10169 (initialize_team): Don't call gomp_sem_init here.
10170 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
10172 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
10173 * env.c (gomp_global_icv): Add default_device_var, target_data and
10174 bind_var initializers.
10175 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
10176 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
10177 gomp_places_list_len): New variables.
10178 (parse_bind_var, parse_one_place, parse_places_var): New functions.
10179 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
10181 (gomp_cancel_var): New global variable.
10182 (parse_int): New function.
10183 (handle_omp_display_env): New function.
10184 (initialize_env): Use it. Initialize default_device_var.
10185 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
10186 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
10187 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
10188 been successfully parsed (and call gomp_init_affinity in that case).
10189 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
10190 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
10191 omp_get_team_num, omp_is_initial_device): New functions.
10192 * libgomp.h: Include stdlib.h.
10193 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
10195 (struct target_mem_desc): Forward declare.
10196 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
10197 and thread_limit_var fields.
10198 (gomp_get_num_devices): New prototype.
10199 (gomp_cancel_var): New extern decl.
10200 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
10201 team_cancelled and task_queued_count fields. Add comments about
10202 task_{,queued_,running_}count.
10203 (gomp_cancel_kind): New enum.
10204 (gomp_work_share_end_cancel): New prototype.
10205 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
10206 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
10208 (struct gomp_taskgroup): New type.
10209 (struct gomp_task_depend_entry,
10210 struct gomp_dependers_vec): New types.
10211 (gomp_finish_task): Free depend_hash if non-NULL.
10212 (struct gomp_team_state): Add place_partition_off
10213 and place_partition_len fields.
10214 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
10215 gomp_places_list_len): New extern decls.
10216 (struct gomp_thread): Add place field.
10217 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
10218 (gomp_init_thread_affinity): Add place argument.
10219 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
10220 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
10221 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
10222 gomp_affinity_init_level, gomp_affinity_print_place): New
10224 (gomp_team_start): Add flags argument.
10225 (gomp_thread_limit_var, gomp_remaining_threads_count,
10226 gomp_remaining_threads_lock): Remove.
10227 (gomp_managed_threads_lock): New variable.
10228 (struct gomp_thread_pool): Add threads_busy field.
10229 (gomp_free_thread): New prototype.
10230 * task.c: Include hashtab.h.
10231 (hash_entry_type): New typedef.
10232 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
10233 (gomp_init_task): Clear dependers, depend_hash, depend_count,
10234 copy_ctors_done and taskgroup fields.
10235 (GOMP_task): Add depend argument, handle depend clauses. If
10236 gomp_team_barrier_cancelled or if it's taskgroup has been
10237 cancelled, don't queue or start new tasks. Set copy_ctors_done
10238 field if needed. Initialize taskgroup field. If copy_ctors_done
10239 and already cancelled, don't discard the task. If taskgroup is
10240 non-NULL, enqueue the task into taskgroup queue. Increment
10241 num_children field in taskgroup. Increment task_queued_count.
10242 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
10243 gomp_task_run_post_remove_taskgroup): New inline functions.
10244 (gomp_task_run_post_handle_depend_hash,
10245 gomp_task_run_post_handle_dependers,
10246 gomp_task_run_post_handle_depend): New functions.
10247 (GOMP_taskwait): Use them. If more than one new tasks
10248 have been queued, wake other threads if needed.
10249 (gomp_barrier_handle_tasks): Likewise. If
10250 gomp_team_barrier_cancelled, don't start any new tasks, just free
10252 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
10254 (omp_proc_bind_kind, omp_proc_bind_false,
10255 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
10256 omp_proc_bind_spread): New params.
10257 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
10258 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
10259 omp_get_team_num, omp_is_initial_device): New interfaces.
10260 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
10261 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
10262 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
10263 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
10264 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
10265 useless use omp_lib_kinds.
10266 * omp.h.in (omp_proc_bind_t): New typedef.
10267 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
10268 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
10269 omp_get_team_num, omp_is_initial_device): New prototypes.
10270 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
10271 through to gomp_team_start.
10272 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
10273 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
10274 Adjust gomp_parallel_loop_start callers.
10275 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
10276 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
10277 GOMP_loop_end_cancel): New functions.
10278 (GOMP_parallel_end): Add ialias_redirect.
10279 * hashtab.h: New file.
10280 * libgomp.texi (Environment Variables): Minor cleanup,
10281 update section refs to OpenMP 4.0rc2.
10282 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
10283 environment variables.
10284 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
10285 team->work_shares_to_free to thr->ts.work_share before calling
10287 (gomp_work_share_end_cancel): New function.
10288 * config/linux/proc.c: Include errno.h.
10289 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
10290 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
10291 sizeof (cpu_set_t) to determine number of iterations. Fix up check
10292 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
10293 gomp_cpuset_size is sizeof (cpu_set_t).
10294 (gomp_init_num_threads): Initialize gomp_cpuset_size,
10295 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
10296 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
10297 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
10298 contain any logical CPUs.
10299 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
10300 is NULL. Use gomp_cpusetp instead of &cpuset and pass
10301 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
10302 pthread_getaffinity_np. Check gomp_places_list instead of
10303 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
10304 * config/linux/bar.c (gomp_barrier_wait_end,
10305 gomp_barrier_wait_last): Use BAR_* defines.
10306 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
10307 from state where needed. Set work_share_cancelled to 0 on last
10309 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
10310 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
10312 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
10313 Add cpusetsize argument.
10314 (gomp_cpuset_size, gomp_cpusetp): Declare.
10315 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
10316 (affinity_counter): Remove.
10317 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
10318 if CPU_ALLOC_SIZE isn't defined.
10319 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
10320 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
10321 bind current thread to the first place.
10322 (gomp_init_thread_affinity): Rewritten. Add place argument, just
10323 pthread_setaffinity_np to gomp_places_list[place].
10324 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
10325 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
10326 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
10327 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
10328 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
10329 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
10330 (gomp_barrier_t): Add awaited_final field.
10331 (gomp_barrier_init): Initialize awaited_final field.
10332 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
10333 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
10335 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
10337 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
10338 gomp_team_barrier_cancelled): New inline functions.
10339 (gomp_barrier_last_thread,
10340 gomp_team_barrier_set_task_pending,
10341 gomp_team_barrier_clear_task_pending,
10342 gomp_team_barrier_set_waiting_for_tasks,
10343 gomp_team_barrier_waiting_for_tasks,
10344 gomp_team_barrier_done): Use BAR_* defines.
10345 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
10346 (gomp_barrier_wait_end): Use BAR_* defines.
10347 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
10348 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
10350 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
10351 gomp_team_barrier_cancel): New functions.
10352 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
10354 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
10355 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
10356 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
10357 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
10358 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
10359 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
10360 (gomp_barrier_t): Add cancellable field.
10361 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
10362 gomp_team_barrier_cancel): New prototypes.
10363 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
10364 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
10365 gomp_team_barrier_cancelled): New inline functions.
10366 (gomp_barrier_wait_start, gomp_barrier_last_thread,
10367 gomp_team_barrier_set_task_pending,
10368 gomp_team_barrier_clear_task_pending,
10369 gomp_team_barrier_set_waiting_for_tasks,
10370 gomp_team_barrier_waiting_for_tasks,
10371 gomp_team_barrier_done): Use BAR_* defines.
10372 * barrier.c (GOMP_barrier_cancel): New function.
10373 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
10374 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
10375 omp_proc_bind_spread): New params.
10376 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
10377 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
10378 omp_get_team_num, omp_is_initial_device): New externals.
10379 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
10381 (gomp_resolve_num_threads): Adjust for thread_limit now being in
10382 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
10383 infinity. If not nested, just return minimum of max_num_threads
10384 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
10385 to the returned value. Otherwise, don't update atomically
10386 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
10387 (GOMP_parallel_end): Adjust for thread_limit now being in
10388 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
10389 infinity. Adjust threads_busy in the pool rather than
10390 gomp_remaining_threads_count. Remember team->nthreads and call
10391 gomp_team_end before adjusting threads_busy, if not nested
10392 afterwards, just set it to 1 non-atomically. Add ialias.
10393 (GOMP_parallel_start): Adjust gomp_team_start caller.
10394 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
10395 * testsuite/libgomp.c/affinity-1.c: New test.
10396 * testsuite/libgomp.c/atomic-15.c: New test.
10397 * testsuite/libgomp.c/atomic-16.c: New test.
10398 * testsuite/libgomp.c/atomic-17.c: New test.
10399 * testsuite/libgomp.c/cancel-for-1.c: New test.
10400 * testsuite/libgomp.c/cancel-for-2.c: New test.
10401 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
10402 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
10403 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
10404 * testsuite/libgomp.c/cancel-sections-1.c: New test.
10405 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
10406 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
10407 * testsuite/libgomp.c/depend-1.c: New test.
10408 * testsuite/libgomp.c/depend-2.c: New test.
10409 * testsuite/libgomp.c/depend-3.c: New test.
10410 * testsuite/libgomp.c/depend-4.c: New test.
10411 * testsuite/libgomp.c/for-1.c: New test.
10412 * testsuite/libgomp.c/for-1.h: New file.
10413 * testsuite/libgomp.c/for-2.c: New test.
10414 * testsuite/libgomp.c/for-2.h: New file.
10415 * testsuite/libgomp.c/for-3.c: New test.
10416 * testsuite/libgomp.c/pr58392.c: New test.
10417 * testsuite/libgomp.c/simd-1.c: New test.
10418 * testsuite/libgomp.c/simd-2.c: New test.
10419 * testsuite/libgomp.c/simd-3.c: New test.
10420 * testsuite/libgomp.c/simd-4.c: New test.
10421 * testsuite/libgomp.c/simd-5.c: New test.
10422 * testsuite/libgomp.c/simd-6.c: New test.
10423 * testsuite/libgomp.c/target-1.c: New test.
10424 * testsuite/libgomp.c/target-2.c: New test.
10425 * testsuite/libgomp.c/target-3.c: New test.
10426 * testsuite/libgomp.c/target-4.c: New test.
10427 * testsuite/libgomp.c/target-5.c: New test.
10428 * testsuite/libgomp.c/target-6.c: New test.
10429 * testsuite/libgomp.c/target-7.c: New test.
10430 * testsuite/libgomp.c/taskgroup-1.c: New test.
10431 * testsuite/libgomp.c/thread-limit-1.c: New test.
10432 * testsuite/libgomp.c/thread-limit-2.c: New test.
10433 * testsuite/libgomp.c/thread-limit-3.c: New test.
10434 * testsuite/libgomp.c/udr-1.c: New test.
10435 * testsuite/libgomp.c/udr-2.c: New test.
10436 * testsuite/libgomp.c/udr-3.c: New test.
10437 * testsuite/libgomp.c++/affinity-1.C: New test.
10438 * testsuite/libgomp.c++/atomic-10.C: New test.
10439 * testsuite/libgomp.c++/atomic-11.C: New test.
10440 * testsuite/libgomp.c++/atomic-12.C: New test.
10441 * testsuite/libgomp.c++/atomic-13.C: New test.
10442 * testsuite/libgomp.c++/atomic-14.C: New test.
10443 * testsuite/libgomp.c++/atomic-15.C: New test.
10444 * testsuite/libgomp.c++/cancel-for-1.C: New test.
10445 * testsuite/libgomp.c++/cancel-for-2.C: New test.
10446 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
10447 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
10448 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
10449 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
10450 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
10451 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
10452 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
10453 * testsuite/libgomp.c++/cancel-test.h: New file.
10454 * testsuite/libgomp.c++/for-9.C: New test.
10455 * testsuite/libgomp.c++/for-10.C: New test.
10456 * testsuite/libgomp.c++/for-11.C: New test.
10457 * testsuite/libgomp.c++/simd-1.C: New test.
10458 * testsuite/libgomp.c++/simd-2.C: New test.
10459 * testsuite/libgomp.c++/simd-3.C: New test.
10460 * testsuite/libgomp.c++/simd-4.C: New test.
10461 * testsuite/libgomp.c++/simd-5.C: New test.
10462 * testsuite/libgomp.c++/simd-6.C: New test.
10463 * testsuite/libgomp.c++/simd-7.C: New test.
10464 * testsuite/libgomp.c++/simd-8.C: New test.
10465 * testsuite/libgomp.c++/target-1.C: New test.
10466 * testsuite/libgomp.c++/target-2.C: New test.
10467 * testsuite/libgomp.c++/target-2-aux.cc: New file.
10468 * testsuite/libgomp.c++/target-3.C: New test.
10469 * testsuite/libgomp.c++/taskgroup-1.C: New test.
10470 * testsuite/libgomp.c++/udr-1.C: New test.
10471 * testsuite/libgomp.c++/udr-2.C: New test.
10472 * testsuite/libgomp.c++/udr-3.C: New test.
10473 * testsuite/libgomp.c++/udr-4.C: New test.
10474 * testsuite/libgomp.c++/udr-5.C: New test.
10475 * testsuite/libgomp.c++/udr-6.C: New test.
10476 * testsuite/libgomp.c++/udr-7.C: New test.
10477 * testsuite/libgomp.c++/udr-8.C: New test.
10478 * testsuite/libgomp.c++/udr-9.C: New test.
10480 2013-09-20 Jakub Jelinek <jakub@redhat.com>
10483 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
10486 2013-09-20 Alan Modra <amodra@gmail.com>
10488 * configure: Regenerate.
10490 2013-09-19 Jakub Jelinek <jakub@redhat.com>
10492 * testsuite/libgomp.c/sections-2.c: New test.
10494 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
10496 * testsuite/libgomp.fortran/strassen.f90:
10497 Add dg-skip-if aarch64_tiny.
10499 2013-06-20 Iain Sandoe <iain@codesourcery.com>
10500 Cesar Philippidis <cesar@codesourcery.com>
10502 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
10503 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
10504 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
10505 * testsuite/libgomp.fortran/fortran.exp: Likewise.
10506 * testsuite/libgomp.graphite/graphite.exp: Likewise.
10507 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
10508 Use dg-runtest rather than gfortran-dg-runtest.
10510 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
10512 * testsuite/libgomp.c/icv-2.c: Extend current handling of
10513 Linux-based x86 systems to cover all GNU systems.
10514 * testsuite/libgomp.c/lock-3.c: Likewise.
10515 * testsuite/libgomp.c/pr48591.c: Likewise.
10517 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
10519 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
10520 GNU/Hurd, as done for Linux-based systems.
10522 * config/posix/ptrlock.h: Fix comment.
10524 2013-05-27 Tobias Burnus <burnus@net-b.de>
10527 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
10528 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
10529 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
10530 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
10531 omp_destroy_nest_lock): Correct arguments to match the one in
10533 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
10534 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
10535 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
10536 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
10538 2013-05-16 Jakub Jelinek <jakub@redhat.com>
10540 * testsuite/libgomp.c/loop-13.c: New test.
10541 * testsuite/libgomp.c/loop-14.c: New test.
10542 * testsuite/libgomp.c/loop-15.c: New test.
10543 * testsuite/libgomp.c++/loop-13.C: New test.
10544 * testsuite/libgomp.c++/loop-14.C: New test.
10545 * testsuite/libgomp.c++/loop-15.C: New test.
10547 2013-02-06 Jakub Jelinek <jakub@redhat.com>
10549 PR middle-end/56217
10550 * testsuite/libgomp.c++/pr56217.C: New test.
10552 2013-02-01 Alan Modra <amodra@gmail.com>
10554 * task.c (GOMP_task, GOMP_taskwait): Comment.
10556 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
10557 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
10560 * config/linux/wait.h (do_spin): Use atomic load for addr.
10561 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
10562 for intptr and ptrlock.
10563 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
10566 2013-01-22 Alan Modra <amodra@gmail.com>
10570 * task.c (GOMP_task): Revert 2011-12-09 change.
10571 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
10572 barrier to read task->children..
10573 (gomp_barrier_handle_tasks): ..and matching atomic store with
10574 release barrier here when setting parent->children to NULL.
10576 2013-01-16 Jakub Jelinek <jakub@redhat.com>
10577 Tobias Burnus <burnus@net-b.de>
10580 * testsuite/libgomp.fortran/fortran.exp: Use
10581 -fintrinsic-modules-path= instead of
10582 -fintrinsic-modules-path.
10584 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
10586 Update copyright years.
10588 2012-12-19 Tobias Burnus <burnus@net-b.de>
10590 * testsuite/libgomp.fortran/fortran.exp: Set
10591 -fintrinsic-modules-path.
10593 2012-12-19 Tobias Burnus <burnus@net-b.de>
10595 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
10596 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
10598 2012-11-21 Jakub Jelinek <jakub@redhat.com>
10601 * team.c (gomp_free_thread): Decrease gomp_managed_threads
10602 if pool had any threads_used.
10604 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
10606 * testsuite/libgomp.c++/pr24455.C: Use
10607 -Wl,-undefined,dynamic_lookup on darwin.
10609 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
10611 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
10613 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
10615 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
10617 2012-10-23 Ian Bolton <ian.bolton@arm.com>
10618 Jim MacArthur <jim.macarthur@arm.com>
10619 Marcus Shawcroft <marcus.shawcroft@arm.com>
10620 Nigel Stephens <nigel.stephens@arm.com>
10621 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10622 Richard Earnshaw <rearnsha@arm.com>
10623 Sofiane Naci <sofiane.naci@arm.com>
10624 Stephen Thomas <stephen.thomas@arm.com>
10625 Tejas Belagod <tejas.belagod@arm.com>
10626 Yufeng Zhang <yufeng.zhang@arm.com>
10628 * configure.tgt: Add AArch64.
10630 2012-10-04 Jason Merrill <jason@redhat.com>
10632 * testsuite/libgomp.c++/tls-init1.C: New.
10634 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
10636 * configure: Regenerated.
10638 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
10640 * config/linux/mips/futex.h (sys_futex0): Change to static
10641 function with noinline, nomips16 attributes under MIPS16. Adjust
10642 asm statement to place 'li v0,SYS_futex' immediately before
10645 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
10647 * libgomp.texi (Library Index): Renamed from "Index" to prevent
10648 conflict with index.html on case-insensitive file systems.
10650 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
10652 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
10653 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
10655 2012-07-02 Richard Guenther <rguenther@suse.de>
10656 Michael Matz <matz@suse.de>
10657 Tobias Grosser <tobias@grosser.es>
10658 Sebastian Pop <sebpop@gmail.com>
10660 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
10661 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
10662 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
10663 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
10665 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
10667 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
10669 2012-06-22 Richard Guenther <rguenther@suse.de>
10671 Merge from graphite branch
10672 2012-01-13 Tobias Grosser <tobias@grosser.es>
10674 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10675 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
10677 2012-06-07 Jakub Jelinek <jakub@redhat.com>
10679 PR middle-end/53580
10680 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
10681 use GOMP_barrier () call instead.
10682 * testsuite/libgomp.c/pr26943-3.c: Likewise.
10683 * testsuite/libgomp.c/pr26943-4.c: Likewise.
10684 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
10685 call GOMP_barrier instead.
10686 * testsuite/libgomp.fortran/vla5.f90: Likewise.
10688 2012-06-06 Jakub Jelinek <jakub@redhat.com>
10691 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
10692 argument to memset call.
10694 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
10696 * configure: Regenerated.
10698 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
10700 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
10702 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
10705 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
10707 2012-03-22 Jakub Jelinek <jakub@redhat.com>
10709 PR middle-end/52547
10710 * testsuite/libgomp.c/pr52547.c: New test.
10712 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
10714 * testsuite/lib/libgomp.exp: load fortran-modules.exp
10716 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10718 * configure.tgt (mips-sgi-irix6*): Remove.
10720 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10722 * configure.tgt (alpha*-dec-osf*): Remove.
10724 * config/osf/sem.h: Remove.
10725 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
10727 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
10729 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
10731 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10734 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
10735 Remove ENABLE_SYMVERS_SOL2.
10736 * configure: Regenerate.
10737 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
10738 (PREPROCESS): New variable.
10739 (libgomp.ver): New target.
10740 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
10741 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
10742 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
10744 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
10745 * Makefile.in: Regenerate.
10747 2012-02-14 Walter Lee <walt@tilera.com>
10749 * configure.tgt: Handle tilegx and tilepro.
10750 * config/linux/tile/futex.h: New file.
10752 2012-02-08 Richard Guenther <rguenther@suse.de>
10754 PR tree-optimization/46886
10755 * testsuite/libgomp.c/pr46886.c: New testcase.
10757 2012-01-25 Matthias Klose <doko@ubuntu.com>
10759 * config/linux/arm: Remove empty directory.
10760 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
10762 2011-12-09 Alan Modra <amodra@gmail.com>
10765 * task.c (GOMP_taskwait): Don't access task->children outside of
10766 task_lock mutex region.
10767 (GOMP_task): Likewise.
10769 2011-12-06 Jakub Jelinek <jakub@redhat.com>
10772 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
10774 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
10775 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
10776 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
10777 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
10778 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
10780 2011-12-02 Alan Modra <amodra@gmail.com>
10782 * config/linux/affinity.c: Use atomic rather than sync builtin.
10783 * config/linux/lock.c: Likewise.
10784 * config/linux/ptrlock.h: Likewise.
10785 * config/linux/ptrlock.c: Likewise.
10786 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
10787 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
10788 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
10789 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
10790 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
10791 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
10792 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
10793 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
10794 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
10795 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
10797 2011-11-30 Alan Modra <amodra@gmail.com>
10800 * config/linux/bar.h: Use atomic rather than sync builtins.
10801 * config/linux/bar.c: Likewise. Add missing acquire
10802 synchronisation on generation field.
10803 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
10806 2011-11-30 Alan Modra <amodra@gmail.com>
10808 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
10809 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
10810 * config/linux/mutex.h: Use atomic rather than sync builtins.
10811 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
10812 * config/linux/omp-lock.h: Comment fix.
10813 * config/linux/arm/mutex.h: Delete.
10814 * config/linux/powerpc/mutex.h: Delete.
10815 * config/linux/ia64/mutex.h: Delete.
10816 * config/linux/mips/mutex.h: Delete.
10818 2011-11-30 Alan Modra <amodra@gmail.com>
10821 * config/linux/sem.h: Rewrite.
10822 * config/linux/sem.c: Rewrite.
10824 2011-11-28 Richard Henderson <rth@redhat.com>
10826 * libgomp.h (enum memmodel): New.
10828 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
10830 * configure: Regenerate.
10832 2011-10-10 Matthias Klose <doko@ubuntu.com>
10834 * config/posix95: Remove empty directory.
10836 2011-08-26 Jakub Jelinek <jakub@redhat.com>
10838 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
10840 2011-08-19 Jakub Jelinek <jakub@redhat.com>
10843 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
10844 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
10846 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10848 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
10850 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10853 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
10855 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
10857 * config/linux/proc.h: New.
10858 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
10859 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
10860 (gomp_init_num_threads): Update call to cpuset_popcount.
10861 (get_num_procs): Ditto.
10862 * config/linux/affinity.c (gomp_init_affinity): Call
10863 gomp_cpuset_popcount.
10865 2011-08-02 Jakub Jelinek <jakub@redhat.com>
10869 * omp.h.in (omp_in_final): New prototype.
10870 * omp_lib.f90.in (omp_in_final): New interface.
10871 (omp_integer_kind, omp_logical_kind): Remove
10872 and replace all its uses in the module with 4.
10873 (openmp_version): Change to 201107.
10874 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
10875 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
10876 kind for the parameters.
10877 (omp_in_final): New external.
10878 (openmp_version): Change to 201107.
10879 * task.c (omp_in_final): New function.
10880 (gomp_init_task): Initialize final_task.
10881 (GOMP_task): Remove unused attribute from flags. Handle final
10883 (GOMP_taskyield): New function.
10884 (omp_in_final): Return true if if (false) or final (true) task
10885 or descendant of final (true).
10886 * fortran.c (omp_in_final_): New function.
10887 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
10888 (GOMP_3.0): Export GOMP_taskyield.
10889 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
10891 (parse_unsigned_long_list): New function.
10892 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
10893 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
10894 even if parse_affinity returned false.
10895 * config/linux/affinity.c (gomp_init_affinity): Handle
10896 gomp_cpu_affinity_len == 0.
10897 * libgomp_g.h (GOMP_taskyield): New prototype.
10898 * libgomp.h (struct gomp_task): Add final_task field.
10899 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
10900 * team.c (gomp_team_start): Override new task's nthreads_var icv
10901 if list form OMP_NUM_THREADS has been used and it has value for
10902 the new nesting level.
10904 * testsuite/libgomp.c/atomic-11.c: New test.
10905 * testsuite/libgomp.c/atomic-12.c: New test.
10906 * testsuite/libgomp.c/atomic-13.c: New test.
10907 * testsuite/libgomp.c/atomic-14.c: New test.
10908 * testsuite/libgomp.c/reduction-6.c: New test.
10909 * testsuite/libgomp.c/task-5.c: New test.
10910 * testsuite/libgomp.c++/atomic-2.C: New test.
10911 * testsuite/libgomp.c++/atomic-3.C: New test.
10912 * testsuite/libgomp.c++/atomic-4.C: New test.
10913 * testsuite/libgomp.c++/atomic-5.C: New test.
10914 * testsuite/libgomp.c++/atomic-6.C: New test.
10915 * testsuite/libgomp.c++/atomic-7.C: New test.
10916 * testsuite/libgomp.c++/atomic-8.C: New test.
10917 * testsuite/libgomp.c++/atomic-9.C: New test.
10918 * testsuite/libgomp.c++/task-8.C: New test.
10919 * testsuite/libgomp.c++/reduction-4.C: New test.
10920 * testsuite/libgomp.fortran/allocatable7.f90: New test.
10921 * testsuite/libgomp.fortran/allocatable8.f90: New test.
10922 * testsuite/libgomp.fortran/crayptr3.f90: New test.
10923 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
10924 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
10925 * testsuite/libgomp.fortran/pointer1.f90: New test.
10926 * testsuite/libgomp.fortran/pointer2.f90: New test.
10927 * testsuite/libgomp.fortran/task4.f90: New test.
10929 2011-08-02 Tobias Burnus <burnus@net-b.de>
10931 * libgomp.texi: Update OpenMP spec references to 3.1.
10932 (omp_in_final,OMP_PROC_BIND): New sections.
10933 (OMP_NUM_THREADS): Document that the value can be now a list.
10934 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
10936 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
10938 * config/linux/x86/futex.h: Check __x86_64__ instead of
10941 2011-07-29 Jakub Jelinek <jakub@redhat.com>
10943 PR middle-end/49897
10944 PR middle-end/49898
10945 * testsuite/libgomp.c/pr49897-1.c: New test.
10946 * testsuite/libgomp.c/pr49897-2.c: New test.
10947 * testsuite/libgomp.c/pr49898-1.c: New test.
10948 * testsuite/libgomp.c/pr49898-2.c: New test.
10950 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
10952 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
10953 for ia32 instead of ilp32.
10955 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
10956 * testsuite/libgomp.c/atomic-6.c: Likewise.
10958 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
10960 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
10961 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
10963 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10966 * config/osf/sem.h: New file.
10967 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
10969 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10972 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
10975 2011-07-15 Jakub Jelinek <jakub@redhat.com>
10977 * config/linux/wait.h (do_spin): New inline, largely copied
10978 from do_wait, just don't do futex_wait here, instead return true if
10980 (do_wait): Implement using do_spin.
10981 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
10983 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
10984 __sync_bool_compare_and_swap, pass the oldval to
10985 gomp_mutex_lock_slow.
10986 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
10987 If all mutex contenders are just spinning and not sleeping, don't
10988 change state to 2 unnecessarily. Optimize the loop when state has
10989 already become 2 to use just one atomic operation per loop instead
10991 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
10993 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
10994 __sync_bool_compare_and_swap, pass the oldval to
10995 gomp_mutex_lock_slow.
10997 2011-06-22 Jakub Jelinek <jakub@redhat.com>
11000 * iter.c (gomp_iter_static_next): For chunk size 0
11001 only use n ceil/ nthreads size for the first
11002 n % nthreads threads in the team instead of
11003 all threads except for the last few ones which
11004 get less work or none at all.
11005 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
11006 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
11007 chunk argument, set run_sched_modifier to 0 for static
11008 resp. 1 for other kinds. If chunk argument is 0
11009 and not static, set value to 1.
11011 2011-05-19 Jakub Jelinek <jakub@redhat.com>
11014 * testsuite/libgomp.c++/pr49043.C: New test.
11017 * testsuite/libgomp.c++/pr48869.C: New test.
11019 2011-05-06 Jakub Jelinek <jakub@redhat.com>
11022 * fortran.c: Include limits.h.
11024 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
11026 (omp_set_num_threads_8_, omp_set_schedule_8_,
11027 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
11028 omp_get_team_size_8_): Use TO_INT macro.
11029 * testsuite/libgomp.fortran/pr48894.f90: New test.
11031 2011-04-13 Jakub Jelinek <jakub@redhat.com>
11033 PR middle-end/48591
11034 * testsuite/libgomp.c/pr48591.c: New test.
11036 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11039 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
11040 * configure: Regenerate.
11042 2011-02-27 Jakub Jelinek <jakub@redhat.com>
11045 * testsuite/libgomp.fortran/task3.f90: New test.
11047 2011-02-24 Tobias Burnus <burnus@net-b.de>
11049 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
11051 2011-02-23 Jakub Jelinek <jakub@redhat.com>
11054 * libgomp.texi (omp_get_wtime): Don't say time in the past
11055 must be Unix Epoch.
11057 2011-02-18 Jakub Jelinek <jakub@redhat.com>
11060 * testsuite/libgomp.fortran/fortran.exp: Check for both
11061 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
11062 but $blddir != "", still append ${blddir}/${lang_library_path}
11063 to ld_library_path.
11065 2011-02-16 Tobias Burnus <burnus@net-b.de>
11068 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
11069 of libquadmath.a before adding its libpath to ldflags.
11071 2011-02-14 Jakub Jelinek <jakub@redhat.com>
11074 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
11075 to FUTEX_WAIT futex syscall.
11076 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
11078 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11080 * configure: Regenerate.
11082 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
11085 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
11087 2011-01-16 Gerald Pfeifer
11089 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
11091 2010-12-14 Jakub Jelinek <jakub@redhat.com>
11094 * libgomp.fortran/allocatable6.f90: New test.
11096 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11098 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
11099 * configure: Regenerate.
11101 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
11105 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
11106 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
11107 * aclocal.m4: Regenerate.
11108 * configure: Regenerate.
11109 * Makefile.in: Regenerate.
11110 * testsuite/Makefile.in: Regenerate.
11112 2010-12-02 Jakub Jelinek <jakub@redhat.com>
11115 * libgomp.fortran/pr46753.f90: New test.
11118 * env.c (initialize_env): Default to spin count 300000
11119 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
11123 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
11124 at the end if sync builtins aren't supported.
11126 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11128 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
11130 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11132 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
11134 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
11136 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
11138 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11139 Tobias Burnus <burnus@net-b.de>
11143 * configure: Regenerate.
11145 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
11147 * config/linux/futex.h: New.
11148 * config/linux/arm/mutex.h: New.
11149 * configure.tgt (arm*-*-linux*): Add config path.
11151 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11153 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
11155 2010-09-23 Tobias Burnus <burnus@net-b.de>
11157 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
11158 Change Fortran datatype to LOGICAL.
11159 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
11160 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
11162 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11164 * configure: Regenerate.
11166 2010-07-26 Jakub Jelinek <jakub@redhat.com>
11168 * libgomp.texi: Add function keyword to a couple of Fortran
11169 interfaces, use integer instead of int for Fortran.
11171 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
11173 * libgomp.texi: Fix spelling and pasto problems throughout.
11174 Adjust prototypes to match code.
11176 2010-07-24 Tobias Burnus <burnus@net-b.de>
11178 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
11179 silence -fwhole-file warning.
11181 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11183 * configure.tgt (*-*-solaris2.[56]*): Removed.
11185 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11187 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
11188 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
11189 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
11190 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
11191 targetting solaris2*.
11192 * configure: Regenerate.
11193 * config.h.in: Regenerate.
11195 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
11196 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
11197 Add libgomp_version_dep.
11198 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
11200 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
11201 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
11202 * Makefile.in: Regenerate.
11204 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
11205 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
11206 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
11207 to common block, protected by
11208 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
11210 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
11212 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
11214 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
11217 * configure: Regenerate.
11219 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11222 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
11223 * configure: Regenerate.
11224 * Makefile.in: Regenerate.
11225 * testsuite/Makefile.in: Regenerate.
11227 2010-04-26 Jakub Jelinek <jakub@redhat.com>
11230 * testsuite/libgomp.c/pr43893.c: New test.
11231 * testsuite/libgomp.c++/pr43893.C: New test.
11233 2010-04-21 Jakub Jelinek <jakub@redhat.com>
11235 PR middle-end/43570
11236 * testsuite/libgomp.fortran/vla8.f90: New test.
11238 2010-04-20 Jakub Jelinek <jakub@redhat.com>
11241 * config/linux/affinity.c (gomp_init_affinity): Decrease
11242 gomp_available_cpus if affinity mask confines the process to fewer
11244 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
11245 non-NULL, just return gomp_available_cpus.
11248 * sections.c (gomp_sections_init): Initialize ws->mode.
11250 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
11252 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
11253 not unused bar variable.
11254 * configure: Regenerate.
11256 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11258 * Makefile.in: Regenerate.
11259 * aclocal.m4: Regenerate.
11260 * testsuite/Makefile.in: Regenerate.
11262 2010-03-22 Jakub Jelinek <jakub@redhat.com>
11265 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
11266 (initialize_env): Adjust callers.
11267 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
11268 when the argument is 0.
11270 * testsuite/libgomp.c/pr42942.c: New test.
11272 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
11274 PR middle-end/42644
11275 PR middle-end/42130
11276 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
11277 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
11279 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11281 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
11282 * testsuite/libgomp.c++/task-6.C: Likewise.
11284 2010-01-28 Steve Ellcey <sje@cup.hp.com>
11286 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
11288 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
11290 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
11291 * configure: Regenerate.
11293 2010-01-26 Jakub Jelinek <jakub@redhat.com>
11296 * testsuite/libgomp.fortran/allocatable5.f90: New test.
11298 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
11300 * configure.ac: Test for executability of GFORTRAN.
11301 * configure: Regenerate.
11303 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11305 * configure: Regenerate.
11307 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
11310 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
11312 2010-01-03 Richard Guenther <rguenther@suse.de>
11314 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
11316 2009-12-23 Sebastian Pop <sebpop@gmail.com>
11318 * testsuite/libgomp.graphite/pr4118.c: New.
11320 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
11322 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
11323 for darwin, protect the test with require-effective-target tls_runtime.
11324 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
11326 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
11329 * testsuite/lib/libgomp.exp: Provide -B options to allow for
11330 link spec %s substitutions for static libraries.
11332 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
11335 * libgomp.graphite/force-parallel-2.c: Reduce array size.
11337 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11339 * Makefile.in: Regenerate.
11340 * configure: Regenerate.
11341 * testsuite/Makefile.in: Regenerate.
11343 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
11345 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
11346 settings for LC_ALL and LANG.
11348 2009-11-25 Jakub Jelinek <jakub@redhat.com>
11351 * testsuite/libgomp.fortran/pr42162.f90: New test.
11353 2009-11-13 Jakub Jelinek <jakub@redhat.com>
11355 PR middle-end/42029
11356 * testsuite/libgomp.c/pr42029.c: New test.
11358 2009-10-26 Jakub Jelinek <jakub@redhat.com>
11360 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
11361 *s. Accept ld version without text in ()s.
11362 * configure: Regenerated.
11364 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
11366 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
11368 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11371 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
11372 or a hyphen (happens with fortran language disabled).
11373 * configure: Regenerate.
11375 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11377 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
11378 use sed script portable to Solaris /bin/sed for extracting ld
11380 * configure: Regenerate.
11382 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
11384 * testsuite/libgomp.graphite/bounds.c: New test.
11386 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11388 * Makefile.am (libgomp_la_LINK): New.
11389 * Makefile.in: Regenerate.
11391 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11393 * configure.ac (AC_PREREQ): Bump to 2.64.
11395 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11397 * Makefile.am (install-html, install-pdf): Remove.
11398 * Makefile.in: Regenerate.
11400 * Makefile.in: Regenerate.
11401 * aclocal.m4: Regenerate.
11402 * config.h.in: Regenerate.
11403 * configure: Regenerate.
11404 * testsuite/Makefile.in: Regenerate.
11406 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11408 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
11409 * Makefile.in: Regenerate.
11411 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
11413 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
11414 * Makefile.in: Regenerate.
11416 2009-08-19 Tobias Burnus <burnus@net-b.de>
11419 omp_lib.h.in: Fix -std=f95 errors.
11421 2009-08-14 David Edelsohn <edelsohn@gnu.org>
11423 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
11424 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
11425 * testsuite/libgomp.graphite/graphite.exp: New.
11427 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
11429 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
11432 2009-08-04 David Daney <ddaney@caviumnetworks.com>
11434 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
11435 needed memory barrier semantics.
11436 * config/linux/mips/mutex.h: New file.
11438 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11440 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
11442 2009-07-16 Joseph Myers <joseph@codesourcery.com>
11444 * configure: Regenerate.
11446 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
11451 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
11452 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
11453 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
11455 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
11457 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
11458 options when choosing a multilib.
11460 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
11462 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
11463 ld_library_path. Use add_path. Add just find_libgcc_s to
11464 ld_library_path, not every libgcc multilib directory.
11465 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
11466 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
11467 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
11469 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
11471 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
11473 * Makefile.am (LTLDFLAGS): Define.
11475 * Makefile.in: Regenerate.
11477 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
11480 * testsuite/libgomp.fortran/fortran.exp: Don't link with
11481 libgfortranbegin, check existence of libgfortran.a instead of
11482 libgfortranbegin.a.
11484 2009-05-20 Jakub Jelinek <jakub@redhat.com>
11487 * team.c (gomp_thread_start): Destroy thr->release semaphore.
11488 (gomp_free_pool_helper): Likewise.
11490 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
11491 Jakub Jelinek <jakub@redhat.com>
11494 * testsuite/libgomp.fortran/workshare2.f90: New test.
11496 2009-04-09 Nick Clifton <nickc@redhat.com>
11498 * iter.c: Change copyright header to refer to version 3 of the
11499 GNU General Public License with version 3.1 of the GCC Runtime
11500 Library Exception and to point readers at the COPYING3 and
11501 COPYING3.RUNTIME files and the FSF's license web page.
11502 * alloc.c: Likewise.
11503 * barrier.c: Likewise.
11504 * config/bsd/proc.c: Likewise.
11505 * config/linux/affinity.c: Likewise.
11506 * config/linux/alpha/futex.h: Likewise.
11507 * config/linux/bar.c: Likewise.
11508 * config/linux/bar.h: Likewise.
11509 * config/linux/ia64/futex.h: Likewise.
11510 * config/linux/ia64/mutex.h: Likewise.
11511 * config/linux/lock.c: Likewise.
11512 * config/linux/mips/futex.h: Likewise.
11513 * config/linux/mutex.c: Likewise.
11514 * config/linux/mutex.h: Likewise.
11515 * config/linux/powerpc/futex.h: Likewise.
11516 * config/linux/proc.c: Likewise.
11517 * config/linux/ptrlock.c: Likewise.
11518 * config/linux/ptrlock.h: Likewise.
11519 * config/linux/s390/futex.h: Likewise.
11520 * config/linux/sem.c: Likewise.
11521 * config/linux/sem.h: Likewise.
11522 * config/linux/sparc/futex.h: Likewise.
11523 * config/linux/wait.h: Likewise.
11524 * config/linux/x86/futex.h: Likewise.
11525 * config/mingw32/proc.c: Likewise.
11526 * config/mingw32/time.c: Likewise.
11527 * config/posix/affinity.c: Likewise.
11528 * config/posix/bar.c: Likewise.
11529 * config/posix/bar.h: Likewise.
11530 * config/posix/lock.c: Likewise.
11531 * config/posix/mutex.h: Likewise.
11532 * config/posix/proc.c: Likewise.
11533 * config/posix/ptrlock.h: Likewise.
11534 * config/posix/sem.c: Likewise.
11535 * config/posix/sem.h: Likewise.
11536 * config/posix/time.c: Likewise.
11537 * config/posix95/lock.c: Likewise.
11538 * critical.c: Likewise.
11540 * error.c: Likewise.
11541 * fortran.c: Likewise.
11542 * iter_ull.c: Likewise.
11543 * libgomp.h: Likewise.
11544 * libgomp_f.h.in: Likewise.
11545 * libgomp_g.h: Likewise.
11546 * loop.c: Likewise.
11547 * loop_ull.c: Likewise.
11548 * omp.h.in: Likewise.
11549 * omp_lib.f90.in: Likewise.
11550 * omp_lib.h.in: Likewise.
11551 * ordered.c: Likewise.
11552 * parallel.c: Likewise.
11553 * sections.c: Likewise.
11554 * single.c: Likewise.
11555 * task.c: Likewise.
11556 * team.c: Likewise.
11557 * work.c: Likewise.
11559 2009-04-09 Jakub Jelinek <jakub@redhat.com>
11561 * testsuite/config/default.exp: Change copyright header to refer to
11562 version 3 of the GNU General Public License and to point readers
11563 at the COPYING3 file and the FSF's license web page.
11565 2009-04-08 Jakub Jelinek <jakub@redhat.com>
11567 PR middle-end/39573
11568 * libgomp.c++/pr39573.C: New test.
11570 2009-04-01 Jakub Jelinek <jakub@redhat.com>
11573 * testsuite/libgomp.c/pr39591-1.c: New test.
11574 * testsuite/libgomp.c/pr39591-2.c: New test.
11575 * testsuite/libgomp.c/pr39591-3.c: New test.
11577 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
11579 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
11580 * testsuite/libgomp.c/atomic-6.c: Ditto.
11582 2009-03-23 Jakub Jelinek <jakub@redhat.com>
11585 * testsuite/libgomp.c/loop-12.c: New test.
11586 * testsuite/libgomp.c/loop-11.c: New test.
11587 * testsuite/libgomp.c++/loop-11.C: New test.
11588 * testsuite/libgomp.c++/loop-12.C: New test.
11589 * testsuite/libgomp.c++/for-8.C: New test.
11591 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11593 * configure: Regenerate.
11595 2009-02-11 Jakub Jelinek <jakub@redhat.com>
11597 PR middle-end/39154
11598 * testsuite/libgomp.c/pr39154.c: New test.
11600 2009-01-30 Ian Lance Taylor <iant@google.com>
11602 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
11603 libgomp_ld_is_gold. Get gold version number.
11604 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
11605 * configure: Rebuild.
11607 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
11609 * testsuite/lib/libgomp.exp: Add -B option for targets that
11610 use libgfortran.a%s in their specs.
11612 2009-01-07 Jakub Jelinek <jakub@redhat.com>
11615 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
11616 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
11617 HAVE_AS_SYMVER_DIRECTIVE is not defined.
11618 * configure: Regenerated.
11619 * config.h.in: Likewise.
11621 2008-12-28 Jakub Jelinek <jakub@redhat.com>
11624 * testsuite/libgomp.c/pr38650.c: New test.
11625 * testsuite/libgomp.c++/pr38650.C: New test.
11627 2008-12-27 Jakub Jelinek <jakub@redhat.com>
11629 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
11631 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
11633 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
11635 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11637 * configure: Regenerate.
11639 2008-12-08 Jakub Jelinek <jakub@redhat.com>
11641 PR middle-end/36802
11642 * testsuite/libgomp.c/pr36802-1.c: New test.
11643 * testsuite/libgomp.c/pr36802-2.c: New test.
11644 * testsuite/libgomp.c/pr36802-3.c: New test.
11646 2008-12-01 Janis Johnson <janis187@us.ibm.com>
11649 * config/linux/powerpc/mutex.h: New.
11651 2008-12-01 Jakub Jelinek <jakub@redhat.com>
11654 * testsuite/libgomp.c++/for-7.C: New test.
11657 * testsuite/libgomp.c++/for-6.C: New test.
11659 2008-11-26 Janis Johnson <janis187@us.ibm.com>
11662 * testsuite/lib/libgomp.exp: Include new timeout library files.
11663 (libgomp_target_compile): Set timeout value from new proc.
11665 2008-11-13 Steve Ellcey <sje@cup.hp.com>
11668 * config/linux/ia64/mutex.h: New.
11670 2008-11-04 Tobias Burnus <burnus@net-b.de>
11673 * libgomp.texi (Runtime library routines, environment variables):
11674 Update for OpenMP version 3.0.
11676 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
11677 Steve Ellcey <sje@cup.hp.com>
11679 * configure: Regenerate for new libtool.
11680 * Makefile.in: Ditto.
11681 * testsuite/Makefile.in: Ditto.
11683 2008-09-19 Jakub Jelinek <jakub@redhat.com>
11684 Andreas Tobler <a.tobler@schweiz.org>
11686 * config/bsd/proc.c: New file.
11687 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
11688 * configure.ac: Check for header <sys/sysctl.h>
11689 * configure: Regenerate.
11690 * config.h.in: Likewise.
11692 2008-09-05 Janis Johnson <janis187@us.ibm.com>
11694 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
11696 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
11698 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
11699 * Makefile.in: Regenerated.
11700 * testsuite/Makefile.in: Regenerated.
11702 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
11704 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
11705 depend on blddir if blddir exists.
11706 (libgomp_target_compile): Likewise.
11707 * testsuite/libgomp.c++/c++.exp: Likewise.
11708 * testsuite/libgomp.fortran/fortran.exp: Likewise.
11710 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11712 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
11713 Do not list GPL as Invariant Section.
11715 2008-07-28 Ilie Garbacea <ilie@mips.com>
11716 Chao-ying Fu <fu@mips.com>
11718 * configure.tgt: Enable futex for MIPS.
11719 * config/linux/mips/futex.h: New file.
11721 2008-07-16 Jakub Jelinek <jakub@redhat.com>
11723 * team.c (gomp_team_end): Free team immediately if it has
11726 2008-07-08 David Edelsohn <edelsohn@gnu.org>
11728 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
11729 * testsuite/libgomp.fortran/fortran.exp: Same.
11730 * testsuite/libgomp.c/c.exp: Same.
11731 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
11732 directory to library path first.
11734 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
11736 * env.c (parse_stacksize): Add cast to avoid warning.
11737 (parse_spincount): Likewise.
11739 2008-06-27 Jakub Jelinek <jakub@redhat.com>
11741 * testsuite/libgomp.c/loop-10.c: New test.
11742 * libgomp.c/loop-3.c (main): Add lastprivate clause.
11743 * libgomp.c++/loop-6.C (main): Likewise.
11746 * testsuite/libgomp.c/debug-1.c: New test.
11748 2008-06-19 Jakub Jelinek <jakub@redhat.com>
11750 * testsuite/libgomp.c/nqueens-1.c: New test.
11753 * testsuite/libgomp.c++/task-7.C: New function.
11755 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11757 * configure: Regenerate.
11759 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11761 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
11762 mutex when HAVE_SYNC_BUILTINS isn't defined.
11764 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11766 * libgomp.texi (omp_test_lock): Fix typo.
11768 2008-06-12 Tobias Burnus <burnus@net-b.de>
11770 * omp_lib.f90.in: Add "implicit none".
11772 2008-06-12 Jakub Jelinek <jakub@redhat.com>
11774 PR middle-end/36506
11775 * testsuite/libgomp.c/reduction-5.c: New test.
11777 2008-06-11 Jakub Jelinek <jakub@redhat.com>
11779 * libgomp.h (struct gomp_task): Add in_tied_task field.
11780 * task.c (gomp_init_task): Initialize it.
11781 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
11782 unconditionally. Don't call gomp_team_barrier_wake if
11783 current task is implicit or if(0) from implicit and number of
11784 running tasks is equal to nthreads - 1.
11787 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
11788 omp_get_team_size_8): Fix pastos.
11791 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
11792 * configure: Regenerated.
11793 * config.h.in: Regenerated.
11794 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
11797 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
11800 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
11801 (GOMP_loop_ull_dynamic_start): Likewise.
11802 (GOMP_loop_ull_guided_start): Likewise.
11803 (GOMP_loop_ull_ordered_static_start): Likewise.
11804 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
11805 (GOMP_loop_ull_ordered_guided_start): Likewise.
11807 2008-06-06 Jakub Jelinek <jakub@redhat.com>
11808 Richard Henderson <rth@redhat.com>
11809 Ulrich Drepper <drepper@redhat.com>
11810 Jakob Blomer <jakob.blomer@ira.uka.de>
11812 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
11813 Substitute also OMP_*LOCK_25*.
11814 * configure: Regenerated.
11815 * config.h.in: Regenerated.
11816 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
11817 ptrlock.c and task.c.
11818 * Makefile.in: Regenerated.
11819 * testsuite/Makefile.in: Regenerated.
11820 * task.c: New file.
11821 * loop_ull.c: New file.
11822 * iter_ull.c: New file.
11823 * libgomp.h: Include ptrlock.h.
11824 (enum gomp_task_kind): New type.
11825 (struct gomp_team): Add task_lock, task_queue, task_count,
11826 task_running_count, single_count fields. Add
11827 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
11828 Remove work_share_lock, generation_mask,
11829 oldest_live_gen, num_live_gen and init_work_shares fields, add
11830 work work_share_list_alloc, work_share_list_free and work_share_chunk
11831 fields. Change work_shares from pointer to pointers into an array.
11832 Change ordered_release field into gomp_sem_t ** from flexible array
11833 member. Add implicit_task and initial_work_shares fields.
11834 Move close to the end of the struct.
11835 (struct gomp_team_state): Add single_count, last_work_share,
11836 active_level and level fields, remove work_share_generation.
11837 (gomp_barrier_handle_tasks): New prototype.
11838 (gomp_finish_task): New inline function.
11839 (struct gomp_work_share): Move chunk_size, end, incr into
11840 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
11841 next_ll fields. Reshuffle fields. Add next_alloc,
11842 next_ws, next_free and inline_ordered_team_ids fields, change
11843 ordered_team_ids into pointer from flexible array member.
11844 Add mode field. Put lock and next into a different cache line
11845 from most of the write-once fields.
11846 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
11847 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
11848 gomp_iter_ull_guided_next): New prototypes.
11849 (gomp_new_icv): New prototype.
11850 (struct gomp_thread): Add thread_pool and task fields.
11851 (struct gomp_thread_pool): New type.
11852 (gomp_new_team): New prototype.
11853 (gomp_team_start): Change type of last argument.
11854 (gomp_new_work_share): Removed.
11855 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
11856 (gomp_work_share_init_done): New static inline.
11857 (gomp_throttled_spin_count_var, gomp_available_cpus,
11858 gomp_managed_threads): New extern decls.
11859 (gomp_init_task): New prototype.
11860 (gomp_spin_count_var): New extern var decl.
11861 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
11862 or no alias support, or if not PIC.
11863 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
11864 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
11865 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
11866 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
11867 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
11868 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
11869 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
11870 gomp_test_nest_lock_25): New prototypes.
11871 (omp_lock_symver, strong_alias): Define.
11872 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
11874 (gomp_end_task): New.
11875 (struct gomp_task_icv, gomp_global_icv): New.
11876 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
11877 (struct gomp_task): New.
11878 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
11879 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
11881 (gomp_schedule_type): Reorder enum to match
11883 * team.c (struct gomp_thread_start_data): Add thread_pool and task
11885 (gomp_thread_start): Add gomp_team_barrier_wait call.
11886 For non-nested case remove clearing of docked thread thr fields.
11887 Use pool fields instead of global gomp_* variables. Use
11888 gomp_barrier_wait_last when needed. Initialize ts.active_level.
11889 Create tasks for each member thread.
11890 (free_team): Only destroy team barrier, task_lock here and free it.
11891 (gomp_free_thread): Free last_team if non-NULL.
11892 (gomp_team_end): Call gomp_team_barrier_wait instead of
11893 gomp_barrier_wait. For nested case call one extra
11894 gomp_barrier_wait. Move here some destruction from free_team.
11895 Call free_team on pool->last_team if any, rather than freeing
11896 current team. Destroy work_share_list_free_lock ifndef
11897 HAVE_SYNC_BUILTINS.
11898 (gomp_new_icv): New function.
11899 (gomp_threads, gomp_threads_size, gomp_threads_used,
11900 gomp_threads_dock): Removed.
11901 (gomp_thread_destructor): New variable.
11902 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
11904 (gomp_team_start): Create new pool if current thread doesn't have
11905 one. Use pool fields instead of global gomp_* variables.
11906 Initialize thread_pool field for new threads. Clear single_count.
11907 Change last argument from ws to team, don't create
11908 new team, set ts.work_share to &team->work_shares[0] and clear
11909 ts.last_work_share. Don't clear ts.work_share_generation.
11910 If number of threads changed, adjust atomically gomp_managed_threads.
11911 Use gomp_init_task instead of gomp_new_task,
11912 set thr->task to the corresponding implicit_task array entry.
11913 Create tasks for each member thread. Initialize ts.level.
11914 (initialize_team): Call pthread_key_create on
11915 gomp_thread_destructor.
11916 (team_destructor): New function.
11917 (new_team): Removed.
11918 (gomp_new_team): New function.
11919 (free_team): Free gomp_work_share blocks chained through next_alloc,
11920 instead of freeing work_shares and destroying work_share_lock.
11921 (gomp_team_end): Call gomp_fini_work_share. If number of threads
11922 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
11923 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
11924 of gomp_barrier_wait.
11925 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
11926 instead of gomp_barrier_wait. Call gomp_work_share_init_done
11927 if gomp_work_share_start returned true. Don't unlock ws->lock.
11928 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
11929 of gomp_barrier_wait.
11930 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
11931 gomp_work_share_init_done if gomp_work_share_start returned true.
11932 Don't unlock ws->lock.
11933 * work.c: Include stddef.h.
11934 (free_work_share): Use work_share_list_free_lock instead
11935 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
11936 Call gomp_fini_work_share and then either free ws if orphaned, or
11937 put it into work_share_list_free list of the current team.
11938 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
11940 (gomp_work_share_start, gomp_work_share_end,
11941 gomp_work_share_end_nowait): Rewritten.
11942 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
11943 (openmp_version): Set to 200805.
11944 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
11945 omp_sched_guided, omp_sched_auto): New parameters.
11946 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11947 omp_set_max_active_levels, omp_get_max_active_levels,
11948 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11949 omp_get_active_level): New interfaces.
11950 * omp_lib.h.in (openmp_version): Set to 200805.
11951 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
11952 omp_sched_guided, omp_sched_auto): New parameters.
11953 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11954 omp_set_max_active_levels, omp_get_max_active_levels,
11955 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11956 omp_get_active_level): New externals.
11957 * loop.c: Include limits.h.
11958 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
11960 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
11961 Likewise. Use gomp_icv.
11962 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
11963 ts.static_trip here.
11964 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
11965 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
11966 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
11967 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
11968 don't unlock ws->lock, otherwise lock it.
11969 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
11970 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
11971 (gomp_parallel_loop_start): Call gomp_new_team instead of
11972 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
11973 Adjust gomp_team_start caller. Pass 0 as second argument to
11974 gomp_resolve_num_threads.
11975 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
11976 If adding ws->chunk_size nthreads + 1 times after end won't
11977 overflow, set ws->mode to 1.
11978 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
11979 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
11980 GOMP_loop_ull_ordered_static_start,
11981 GOMP_loop_ull_ordered_dynamic_start,
11982 GOMP_loop_ull_ordered_guided_start,
11983 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
11984 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
11985 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
11986 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
11987 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
11989 * libgomp.map: Export lock routines also @@OMP_2.0.
11990 (GOMP_loop_ordered_dynamic_first,
11991 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
11992 GOMP_loop_ordered_static_first): Remove.
11993 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
11994 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
11995 GOMP_loop_ull_ordered_dynamic_next,
11996 GOMP_loop_ull_ordered_dynamic_start,
11997 GOMP_loop_ull_ordered_guided_next,
11998 GOMP_loop_ull_ordered_guided_start,
11999 GOMP_loop_ull_ordered_runtime_next,
12000 GOMP_loop_ull_ordered_runtime_start,
12001 GOMP_loop_ull_ordered_static_next,
12002 GOMP_loop_ull_ordered_static_start,
12003 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
12004 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
12005 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
12006 (omp_set_schedule, omp_get_schedule,
12007 omp_get_thread_limit, omp_set_max_active_levels,
12008 omp_get_max_active_levels, omp_get_level,
12009 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
12010 omp_set_schedule_, omp_set_schedule_8_,
12011 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
12012 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
12013 omp_get_max_active_levels_, omp_get_level_,
12014 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
12015 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
12016 New exports @@OMP_3.0.
12017 * omp.h.in (omp_sched_t): New type.
12018 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
12019 omp_set_max_active_levels, omp_get_max_active_levels,
12020 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
12021 omp_get_active_level): New prototypes.
12022 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
12023 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
12024 gomp_thread_limit_var, gomp_remaining_threads_count,
12025 gomp_remaining_threads_lock): New variables.
12026 (parse_spincount): New function.
12027 (initialize_env): Call gomp_init_num_threads unconditionally.
12028 Initialize gomp_available_cpus. Call parse_spincount,
12029 initialize gomp_{,throttled_}spin_count_var
12030 depending on presence and value of OMP_WAIT_POLICY and
12031 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
12032 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
12033 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
12034 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
12035 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
12036 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
12037 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
12038 (gomp_global_icv): New.
12039 (parse_schedule): Use it. Parse "auto".
12040 (omp_set_num_threads): Use gomp_icv.
12041 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
12043 (omp_get_max_threads): Move from parallel.c.
12044 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
12045 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
12047 (parse_stacksize, parse_wait_policy): New functions.
12048 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
12049 both wrappers for compatibility and new locks.
12050 (omp_set_schedule, omp_get_schedule,
12051 omp_get_thread_limit, omp_set_max_active_levels,
12052 omp_get_max_active_levels, omp_get_level,
12053 omp_get_ancestor_thread_num, omp_get_team_size,
12054 omp_get_active_level): New ialias_redirect.
12055 (omp_set_schedule_, omp_set_schedule_8_,
12056 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
12057 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
12058 omp_get_max_active_levels_, omp_get_level_,
12059 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
12060 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
12062 * parallel.c: Include limits.h.
12063 (gomp_resolve_num_threads): Add count argument. Rewritten.
12064 (GOMP_parallel_start): Call gomp_new_team and pass that as last
12065 argument to gomp_team_start. Pass 0 as second argument to
12066 gomp_resolve_num_threads.
12067 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
12068 if gomp_thread_limit_var != ULONG_MAX.
12069 (omp_in_parallel): Implement using ts.active_level.
12070 (omp_get_max_threads): Move to env.c.
12071 (omp_get_level, omp_get_ancestor_thread_num,
12072 omp_get_team_size, omp_get_active_level): New functions,
12074 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
12075 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
12076 gomp_iter_dynamic_next instead of the _locked variant and don't take
12077 lock around it, otherwise acquire it before calling
12078 gomp_iter_dynamic_next_locked.
12079 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
12080 gomp_iter_dynamic_next instead of the _locked variant and don't take
12082 (GOMP_parallel_sections_start): Call gomp_new_team instead of
12083 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
12084 Adjust gomp_team_start caller. Pass count as second argument to
12085 gomp_resolve_num_threads, don't adjust num_threads after the call.
12087 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
12088 ws->chunk_size by incr.
12089 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
12091 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
12093 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
12094 (omp_check_defines): Check even the compat defines.
12095 * config/linux/ptrlock.c: New file.
12096 * config/linux/ptrlock.h: New file.
12097 * config/linux/wait.h: New file.
12098 * config/posix/ptrlock.c: New file.
12099 * config/posix/ptrlock.h: New file.
12100 * config/linux/bar.h (gomp_team_barrier_wait,
12101 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
12102 (gomp_team_barrier_set_task_pending,
12103 gomp_team_barrier_clear_task_pending,
12104 gomp_team_barrier_set_waiting_for_tasks,
12105 gomp_team_barrier_waiting_for_tasks,
12106 gomp_team_barrier_done): New inlines.
12107 (gomp_barrier_t): Rewritten.
12108 (gomp_barrier_state_t): New typedef.
12109 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
12110 gomp_barrier_wait_start): Rewritten.
12111 (gomp_barrier_wait_end): Change second argument to
12112 gomp_barrier_state_t.
12113 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
12115 * config/linux/bar.c: Include wait.h instead of libgomp.h and
12117 (gomp_barrier_wait_end): Rewritten.
12118 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
12119 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
12120 * config/posix/bar.h (gomp_barrier_t): Add generation field.
12121 (gomp_barrier_state_t): New typedef.
12122 (gomp_team_barrier_wait,
12123 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
12124 (gomp_barrier_wait_start): Or all but low 2 bits from generation
12125 into the return value. Return gomp_barrier_state_t.
12126 (gomp_team_barrier_set_task_pending,
12127 gomp_team_barrier_clear_task_pending,
12128 gomp_team_barrier_set_waiting_for_tasks,
12129 gomp_team_barrier_waiting_for_tasks,
12130 gomp_team_barrier_done): New inlines.
12131 (gomp_barrier_wait_end): Change second argument to
12132 gomp_barrier_state_t.
12133 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
12135 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
12136 (gomp_barrier_wait_end): Change second argument to
12137 gomp_barrier_state_t.
12138 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
12139 gomp_team_barrier_wake): New functions.
12140 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
12142 (gomp_futex_wake, gomp_futex_wait): New variables.
12143 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
12144 * config/linux/lock.c: Rewrite to make locks task owned,
12145 for backwards compatibility provide the old entrypoints
12146 if symbol versioning. Include wait.h instead of libgomp.h and
12148 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
12149 * config/posix95/lock.c: Rewrite to make locks task owned,
12150 for backwards compatibility provide the old entrypoints
12151 if symbol versioning.
12152 * config/posix/lock.c: Rewrite to make locks task owned,
12153 for backwards compatibility provide the old entrypoints
12154 if symbol versioning.
12155 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
12156 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
12157 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
12158 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
12159 (sys_futex0): Return error code.
12160 (futex_wake, futex_wait): If ENOSYS was returned, clear
12161 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
12162 (cpu_relax, atomic_write_barrier): New static inlines.
12163 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
12164 (futex_wake, futex_wait): If ENOSYS was returned, clear
12165 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
12166 (cpu_relax, atomic_write_barrier): New static inlines.
12167 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
12168 (sys_futex0): Return error code.
12169 (futex_wake, futex_wait): If ENOSYS was returned, clear
12170 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
12171 (cpu_relax, atomic_write_barrier): New static inlines.
12172 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
12173 (sys_futex0): Return error code.
12174 (futex_wake, futex_wait): If ENOSYS was returned, clear
12175 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
12176 (cpu_relax, atomic_write_barrier): New static inlines.
12177 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
12178 (sys_futex0): Return error code.
12179 (futex_wake, futex_wait): If ENOSYS was returned, clear
12180 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
12181 (cpu_relax, atomic_write_barrier): New static inlines.
12182 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
12183 (sys_futex0): Return error code.
12184 (futex_wake, futex_wait): If ENOSYS was returned, clear
12185 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
12186 (cpu_relax, atomic_write_barrier): New static inlines.
12187 * config/linux/sem.c: Include wait.h instead of libgomp.h and
12189 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
12190 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
12191 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
12193 (omp_nest_lock_t): Change owner into void *, add lock field.
12194 * config/posix95/omp-lock.h: Include semaphore.h.
12195 (omp_lock_25_t, omp_nest_lock_25_t): New types.
12196 (omp_lock_t): Use sem_t instead of mutex if semaphores
12198 (omp_nest_lock_t): Likewise. Change owner to void *.
12199 * config/posix/omp-lock.h: Include semaphore.h.
12200 (omp_lock_25_t, omp_nest_lock_25_t): New types.
12201 (omp_lock_t): Use sem_t instead of mutex if semaphores
12203 (omp_nest_lock_t): Likewise. Add owner field.
12205 2008-06-06 Jakub Jelinek <jakub@redhat.com>
12207 * testsuite/libgomp.c/collapse-1.c: New test.
12208 * testsuite/libgomp.c/collapse-2.c: New test.
12209 * testsuite/libgomp.c/collapse-3.c: New test.
12210 * testsuite/libgomp.c/icv-1.c: New test.
12211 * testsuite/libgomp.c/icv-2.c: New test.
12212 * testsuite/libgomp.c/lib-2.c: New test.
12213 * testsuite/libgomp.c/lock-1.c: New test.
12214 * testsuite/libgomp.c/lock-2.c: New test.
12215 * testsuite/libgomp.c/lock-3.c: New test.
12216 * testsuite/libgomp.c/loop-4.c: New test.
12217 * testsuite/libgomp.c/loop-5.c: New test.
12218 * testsuite/libgomp.c/loop-6.c: New test.
12219 * testsuite/libgomp.c/loop-7.c: New test.
12220 * testsuite/libgomp.c/loop-8.c: New test.
12221 * testsuite/libgomp.c/loop-9.c: New test.
12222 * testsuite/libgomp.c/nested-3.c: New test.
12223 * testsuite/libgomp.c/nestedfn-6.c: New test.
12224 * testsuite/libgomp.c/sort-1.c: New test.
12225 * testsuite/libgomp.c/task-1.c: New test.
12226 * testsuite/libgomp.c/task-2.c: New test.
12227 * testsuite/libgomp.c/task-3.c: New test.
12228 * testsuite/libgomp.c/task-4.c: New test.
12229 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
12230 to C++ testsuite default compiler options.
12231 * testsuite/libgomp.c++/collapse-1.C: New test.
12232 * testsuite/libgomp.c++/collapse-2.C: New test.
12233 * testsuite/libgomp.c++/ctor-10.C: New test.
12234 * testsuite/libgomp.c++/for-1.C: New test.
12235 * testsuite/libgomp.c++/for-2.C: New test.
12236 * testsuite/libgomp.c++/for-3.C: New test.
12237 * testsuite/libgomp.c++/for-4.C: New test.
12238 * testsuite/libgomp.c++/for-5.C: New test.
12239 * testsuite/libgomp.c++/loop-8.C: New test.
12240 * testsuite/libgomp.c++/loop-9.C: New test.
12241 * testsuite/libgomp.c++/loop-10.C: New test.
12242 * testsuite/libgomp.c++/task-1.C: New test.
12243 * testsuite/libgomp.c++/task-2.C: New test.
12244 * testsuite/libgomp.c++/task-3.C: New test.
12245 * testsuite/libgomp.c++/task-4.C: New test.
12246 * testsuite/libgomp.c++/task-5.C: New test.
12247 * testsuite/libgomp.c++/task-6.C: New test.
12248 * testsuite/libgomp.fortran/allocatable1.f90: New test.
12249 * testsuite/libgomp.fortran/allocatable2.f90: New test.
12250 * testsuite/libgomp.fortran/allocatable3.f90: New test.
12251 * testsuite/libgomp.fortran/allocatable4.f90: New test.
12252 * testsuite/libgomp.fortran/collapse1.f90: New test.
12253 * testsuite/libgomp.fortran/collapse2.f90: New test.
12254 * testsuite/libgomp.fortran/collapse3.f90: New test.
12255 * testsuite/libgomp.fortran/collapse4.f90: New test.
12256 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
12257 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
12258 * testsuite/libgomp.fortran/lib4.f90: New test.
12259 * testsuite/libgomp.fortran/lock-1.f90: New test.
12260 * testsuite/libgomp.fortran/lock-2.f90: New test.
12261 * testsuite/libgomp.fortran/nested1.f90: New test.
12262 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
12263 * testsuite/libgomp.fortran/strassen.f90: New test.
12264 * testsuite/libgomp.fortran/tabs1.f90: New test.
12265 * testsuite/libgomp.fortran/tabs2.f: New test.
12266 * testsuite/libgomp.fortran/task1.f90: New test.
12267 * testsuite/libgomp.fortran/task2.f90: New test.
12268 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
12269 * testsuite/libgomp.fortran/vla5.f90: Likewise.
12270 * testsuite/libgomp.c/pr26943-2.c: Likewise.
12271 * testsuite/libgomp.c/pr26943-3.c: Likewise.
12272 * testsuite/libgomp.c/pr26943-4.c: Likewise.
12274 2008-05-23 Jakub Jelinek <jakub@redhat.com>
12277 * testsuite/libgomp.c++/ctor-11.C: New test.
12278 * testsuite/libgomp.c++/ctor-12.C: New test.
12280 2008-05-15 Janis Johnson <janis187@us.ibm.com>
12282 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
12284 2008-05-07 Jakub Jelinek <jakub@redhat.com>
12286 PR middle-end/36106
12287 * testsuite/libgomp.c/atomic-5.c: New test.
12288 * testsuite/libgomp.c/atomic-6.c: New test.
12289 * testsuite/libgomp.c/autopar-1.c: New test.
12291 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12293 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
12294 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
12295 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
12296 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
12297 * configure: Regenerate.
12298 * Makefile.in, testsuite/Makefile.in: Likewise.
12300 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
12303 * aclocal.m4: Regenerate.
12304 * configure: Regenerate.
12306 2008-03-18 Jakub Jelinek <jakub@redhat.com>
12308 PR middle-end/35611
12309 * testsuite/libgomp.c/atomic-4.c: New test.
12312 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
12313 (gomp_iter_guided_next): Likewise.
12314 * testsuite/libgomp.c/pr35625.c: New test.
12316 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12318 * aclocal.m4: Regenerate.
12319 * configure: Likewise.
12320 * Makefile.in: Likewise.
12321 * testsuite/Makefile.in: Likewise.
12323 2008-03-13 Jakub Jelinek <jakub@redhat.com>
12325 PR middle-end/35185
12326 * testsuite/libgomp.c++/pr35185.C: New test.
12328 2008-03-12 Jakub Jelinek <jakub@redhat.com>
12330 PR middle-end/35549
12331 * testsuite/libgomp.c/pr35549.c: New test.
12333 2008-03-06 Jakub Jelinek <jakub@redhat.com>
12335 * testsuite/libgomp.c/atomic-3.c: New test.
12337 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12340 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
12341 .F08 file suffixes.
12343 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
12346 * configure.ac: Add ACX_HEADER_STRING.
12347 * env.c: Include strings.h.
12348 * aclocal.m4: Regenerate.
12349 * config.h.in: Regenerate.
12350 * configure: Regenerate.
12351 * Makefile.in: Regenerate.
12352 * testsuite/Makefile.in: Regenerate.
12354 2008-02-15 Jakub Jelinek <jakub@redhat.com>
12356 PR middle-end/35196
12357 * testsuite/libgomp.c/pr35196.c: New test.
12359 PR middle-end/35130
12360 * testsuite/libgomp.fortran/pr35130.f90: New test.
12361 * testsuite/libgomp.c/pr35130.c: New test.
12363 2008-01-25 Jakub Jelinek <jakub@redhat.com>
12365 PR middle-end/33880
12366 * testsuite/libgomp.c/pr33880.c: New test.
12367 * testsuite/libgomp.fortran/pr33880.f90: New test.
12369 2008-01-24 David Edelsohn <edelsohn@gnu.org>
12371 * configure: Regenerate.
12373 2008-01-08 Jakub Jelinek <jakub@redhat.com>
12375 * configure.ac: Move futex checking into ../config/futex.m4.
12376 * configure: Rebuilt.
12377 * aclocal.m4: Rebuilt.
12378 * Makefile.in: Rebuilt.
12380 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
12381 2007-10-15 ../config/tls.m4 change.
12383 2007-12-19 Jakub Jelinek <jakub@redhat.com>
12386 * testsuite/libgomp.c/pr34513.c: New test.
12387 * testsuite/libgomp.c++/pr34513.C: New test.
12389 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
12392 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
12394 2007-12-04 Jakub Jelinek <jakub@redhat.com>
12396 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
12398 2007-12-03 Jakub Jelinek <jakub@redhat.com>
12400 * testsuite/libgomp.c/private-1.c: New test.
12402 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
12403 Paolo Bonzini <bonzini@gnu.org>
12405 * Makefile.am: Use space as vpath separator. Use 'vpath %'
12406 instead of 'VPATH ='.
12407 * Makefile.in: Regenerate.
12409 2007-11-23 Matthias Klose <doko@ubuntu.com>
12411 * configure.ac: Adjust makeinfo version check.
12412 * configure: Regenerate.
12414 2007-11-10 Jakub Jelinek <jakub@redhat.com>
12417 * testsuite/libgomp.fortran/pr34020.f90: New test.
12419 2007-11-06 Jakub Jelinek <jakub@redhat.com>
12422 * testsuite/libgomp.c++/atomic-1.C: New test.
12424 2007-10-25 Jakub Jelinek <jakub@redhat.com>
12427 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
12428 Make x and y integers rather than (implicit) reals. Add private (j)
12429 clause to the last omp parallel.
12431 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
12433 * configure: Regenerate following changes to ../config/tls.m4.
12435 2007-09-28 Jakub Jelinek <jakub@redhat.com>
12437 * testsuite/libgomp.fortran/stack.f90: New test.
12439 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
12441 * config/mingw32/proc.c: New file.
12443 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
12445 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
12446 (main): Use __get_cpuid to get i386 target fetaures.
12447 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
12448 (main): Use __get_cpuid to get x86_64 target fetaures.
12450 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
12453 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
12454 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
12456 2007-07-12 Jakub Jelinek <jakub@redhat.com>
12459 * testsuite/libgomp.fortran/pr32550.f90: New test.
12460 * testsuite/libgomp.fortran/crayptr2.f90: New test.
12462 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
12464 * aclocal.m4: Regenerated.
12466 2007-07-05 Tobias Burnus <burnus@net-b.de>
12469 * testsuite/libgomp.fortran/pr32359.f90: New.
12471 2007-07-02 Jakub Jelinek <jakub@redhat.com>
12474 * sections.c (GOMP_parallel_sections_start): Only decrease
12475 number of threads to COUNT if dyn_var is true.
12476 * testsuite/libgomp.c/pr32468.c: New test.
12478 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12481 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
12483 2007-06-21 Jakub Jelinek <jakub@redhat.com>
12485 PR middle-end/32362
12486 * testsuite/libgomp.c/pr32362-1.c: New test.
12487 * testsuite/libgomp.c/pr32362-2.c: New test.
12488 * testsuite/libgomp.c/pr32362-3.c: New test.
12490 2007-06-07 Jakub Jelinek <jakub@redhat.com>
12492 * team.c (gomp_team_start): Fix setting up thread_attr
12495 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
12497 * configure: Regenerate.
12499 2007-05-23 Steve Ellcey <sje@cup.hp.com>
12501 * Makefile.in: Regenerate.
12502 * configure: Regenerate.
12503 * aclocal.m4: Regenerate.
12504 * testsuite/Makefile.in: Regenerate.
12506 2007-05-04 Jakub Jelinek <jakub@redhat.com>
12508 * config/linux/proc.c: New file.
12511 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
12513 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
12515 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
12517 2007-04-16 Matthias Klose <doko@debian.org>
12519 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
12520 flags if not building with -m64.
12521 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
12522 flag for i?86-*-* targets, if current target matches -m64.
12524 2007-04-14 Steve Ellcey <sje@cup.hp.com>
12526 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
12527 * Makefile.in: Regenerate.
12529 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12532 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
12534 * testsuite/libgomp.fortran/fortran.exp: Likewise.
12536 2007-04-04 Jakub Jelinek <jakub@redhat.com>
12538 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
12540 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
12541 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
12542 (parse_affinity): New function.
12543 (initialize_env): Call it and gomp_init_affinity.
12544 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
12545 create new pthread_attr_t and call gomp_init_thread_affinity
12546 on it for each thread before passing the attribute to pthread_create.
12547 * config/linux/affinity.c: New file.
12548 * config/posix/affinity.c: New file.
12549 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
12550 * configure: Rebuilt.
12551 * config.h.in: Rebuilt.
12552 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
12553 * Makefile.in: Rebuilt.
12555 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
12557 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
12559 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
12560 and use it if found.
12562 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
12564 * testsuite/config/default.exp: New file.
12565 * testsuite/lib/libgomp.exp: New file.
12566 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
12567 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
12568 load_lib *, load_gcc_lib *): Move to libgomp.exp.
12569 (libgomp_load): Remove.
12570 * testsuite/lib/libgomp.exp (libgomp_init): Compute
12571 always_ld_library_path, not ld_library_path. Set additional_flags
12572 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
12573 (target_compile): Do not call libgomp_init. Append lang_library_path
12574 and lang_link_flags to options.
12575 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
12576 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
12578 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
12579 always_ld_library_path. Set LD_LIBRARY_PATH here.
12580 * testsuite/libgomp.fortran/fortran.exp: Ditto.
12581 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
12582 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
12584 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
12585 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
12586 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
12587 * testsuite/libgomp.c/pr29947-1.c: Ditto.
12588 * testsuite/libgomp.c/atomic-10.c: Ditto.
12590 2007-03-21 Jakub Jelinek <jakub@redhat.com>
12592 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
12593 dg-final cleanup-modules line.
12594 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
12595 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
12596 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
12597 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
12598 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
12599 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
12600 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
12602 2007-03-18 Andreas Schwab <schwab@suse.de>
12604 * acinclude.m4: Adjust regular expression for ld version
12606 * configure: Regenerate.
12608 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
12610 * Makefile.am: Add install-pdf target as copied from
12611 automake v1.10 rules.
12612 * Makefile.in: Regenerate
12614 2007-02-07 Jakub Jelinek <jakub@redhat.com>
12617 * configure: Regenerate.
12620 * testsuite/libgomp.c++/pr30703.C: New test.
12622 2007-02-02 Jakub Jelinek <jakub@redhat.com>
12625 2006-07-05 Eric Christopher <echristo@apple.com>
12626 * configure.ac: Depend addition of -pthread on host OS.
12627 * configure: Regenerate.
12629 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12631 * libgomp.texi: Fix spacing after abbreviations.
12633 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
12636 * configure.ac: Add check for makeinfo
12637 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
12638 if an appropriate version of makeinfo is found.
12639 * aclocal.m4: Regenerated.
12640 * configure: Regenerated.
12641 * Makefile.in: Regenerated.
12642 * testsuite/Makefile.in: Regenerated.
12644 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
12647 * libgomp.texi: More about implementation-dependent settings.
12649 2007-01-26 Tobias Burnus <burnus@net-b.de>
12651 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
12653 2007-01-24 Jakub Jelinek <jakub@redhat.com>
12655 PR middle-end/30494
12656 * testsuite/libgomp.c/pr30494.c: New test.
12658 2007-01-15 Tom Tromey <tromey@redhat.com>
12660 * configure: Rebuilt.
12661 * configure.ac: Fixed comment.
12663 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
12665 * libgomp.texi: Document implementation specific default values of
12666 environment variables.
12668 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
12671 * libgomp.texi: New file.
12672 * configure.ac: Add --enable-generated-files-in-srcdir option.
12673 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
12675 * Makefile.in: Regenerated.
12676 * config.h.in: Regenerated.
12677 * testsuite/Makefile.in: Regenerated.
12680 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
12683 * env.c (omp_set_num_threads): Set illegal thread count to 1.
12685 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
12687 * configure: Regenerate.
12689 2006-12-04 Jakub Jelinek <jakub@redhat.com>
12692 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
12693 start if there shouldn't be any loop iterations.
12694 (gomp_loop_ordered_static_start): Remove start == end test.
12695 * testsuite/libgomp.c/pr29947-1.c: New test.
12696 * testsuite/libgomp.c/pr29947-2.c: New test.
12698 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
12700 * configure.tgt: Force initial-exec TLS model on Linux only.
12702 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
12704 * configure: Regenerated.
12706 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
12708 * env.c (parse_schedule): Reject out of range values.
12709 (parse_unsigned_long): Reject out of range, negative or zero values.
12711 2006-10-29 Jakub Jelinek <jakub@redhat.com>
12714 * testsuite/libgomp.fortran/pr29629.f90: New test.
12716 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
12719 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
12720 * config/posix95: New directory.
12721 * config/posix95/omp-lock.h: New file.
12722 * config/posix95/lock.c: Likewise.
12724 2006-10-14 Geoffrey Keating <geoffk@apple.com>
12726 * aclocal.m4: Regenerate.
12727 * configure: Regenerate.
12729 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
12731 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
12734 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
12736 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
12738 * configure: Regenerate.
12739 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
12741 2006-09-26 Jakub Jelinek <jakub@redhat.com>
12743 PR middle-end/25261
12744 PR middle-end/28790
12745 * testsuite/libgomp.c/nestedfn-4.c: New test.
12746 * testsuite/libgomp.c/nestedfn-5.c: New test.
12747 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
12750 * testsuite/libgomp.fortran/condinc1.f: New test.
12751 * testsuite/libgomp.fortran/condinc2.f: New test.
12752 * testsuite/libgomp.fortran/condinc3.f90: New test.
12753 * testsuite/libgomp.fortran/condinc4.f90: New test.
12754 * testsuite/libgomp.fortran/condinc1.inc: New file.
12756 2006-09-18 Tom Tromey <tromey@redhat.com>
12758 * configure: Rebuilt.
12760 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
12763 PR preprocessor/14634
12764 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
12766 * configure: Regenerate.
12768 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
12770 * testsuite/libgomp.fortran/reduction3.f90: Change
12771 -2147483648 to -huge(i)-1 to avoid overflow.
12772 * testsuite/libgomp.fortran/reduction4.f90: Change
12773 Z'ffffffff' to not(0) to avoid overflow.
12775 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
12778 * Makefile.am (libsubincludedir): New.
12779 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
12780 * Makefile.in: Regenerate.
12782 2006-08-17 Jakub Jelinek <jakub@redhat.com>
12785 * env.c: Include ctype.h.
12786 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
12787 leading and/or trailing whitespace and compare strings case
12790 2006-07-16 Jakub Jelinek <jakub@redhat.com>
12793 * testsuite/libgomp.fortran/pr28390.f: New test.
12795 2006-07-05 Eric Christopher <echristo@apple.com>
12797 * configure.ac: Depend addition of -pthread on host OS.
12798 * configure: Regenerate.
12800 2006-06-21 Jakub Jelinek <jakub@redhat.com>
12802 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
12803 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
12806 2006-06-20 Jakub Jelinek <jakub@redhat.com>
12810 * configure.ac: If neither --enable-linux-futex nor
12811 --disable-linux-futex is passed, determine the default by checking
12812 for compiling and/or running against NPTL. With --enable-linux-futex,
12813 check if SYS_gettid and SYS_futex are defined.
12814 * configure: Rebuilt.
12816 2006-06-14 Richard Henderson <rth@redhat.com>
12819 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
12820 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
12822 2006-06-09 Richard Henderson <rth@redhat.com>
12824 * env.c (gomp_nthreads_var): Change to unsigned long.
12825 (gomp_run_sched_chunk): Likewise.
12826 (parse_unsigned_long): Rename from parse_num_threads and generalize.
12827 (initialize_env): Initialize gomp_thread_attr.
12828 * libgomp.h (gomp_nthreads_var): Update decl.
12829 (gomp_run_sched_chunk): Likewise.
12830 (gomp_thread_attr): Declare.
12831 * team.c (gomp_thread_attr): Export.
12832 (initialize_team): Don't initialize it.
12834 2006-06-09 Jakub Jelinek <jakub@redhat.com>
12837 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
12838 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
12840 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
12842 * config/mingw32/time.c: New file.
12843 * configure.tgt: Use it.
12845 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
12847 * Makefile.am: Add install-html target. Add install-html to .PHONY
12848 * Makefile.in: Regenerate.
12850 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12853 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
12854 * testsuite/libgomp.c/critical-1.c: Likewise.
12855 * testsuite/libgomp.c/loop-1.c: Likewise.
12856 * testsuite/libgomp.c/loop-2.c: Likewise.
12857 * testsuite/libgomp.c/single-1.c: Likewise.
12858 * testsuite/libgomp.c/ordered-1.c: Likewise.
12859 * testsuite/libgomp.c/ordered-2.c: Likewise.
12861 2006-05-15 Jakub Jelinek <jakub@redhat.com>
12863 PR middle-end/27416
12864 * libgomp.fortran/pr27416-1.f90: New test.
12866 2006-05-03 Jakub Jelinek <jakub@redhat.com>
12869 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
12870 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
12872 2006-05-02 Jakub Jelinek <jakub@redhat.com>
12875 * testsuite/libgomp.c/pr26943-1.c: New test.
12876 * testsuite/libgomp.c/pr26943-2.c: New test.
12877 * testsuite/libgomp.c/pr26943-3.c: New test.
12878 * testsuite/libgomp.c/pr26943-4.c: New test.
12879 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
12880 * testsuite/libgomp.c++/pr26943.C: New test.
12882 2006-05-02 Jakub Jelinek <jakub@redhat.com>
12884 PR middle-end/27337
12885 * testsuite/libgomp.c++/pr27337.C: New test.
12887 2006-04-26 Jakub Jelinek <jakub@redhat.com>
12890 * testsuite/libgomp.c/pr26171.c: New test.
12892 2006-04-25 Richard Henderson <rth@redhat.com>
12895 * configure.ac: Use GCC_CHECK_TLS.
12896 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
12897 * Makefile.in, aclocal.m4, configure: Regenerate.
12899 2006-04-10 Matthias Klose <doko@debian.org>
12901 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
12902 directory names containing underscores.
12904 2006-03-21 Jakub Jelinek <jakub@redhat.com>
12907 * testsuite/libgomp.c++/pr26691.C: New test.
12909 2006-03-13 Jakub Jelinek <jakub@redhat.com>
12911 * testsuite/libgomp.fortran/retval2.f90: New test.
12913 2006-03-09 Diego Novillo <dnovillo@redhat.com>
12915 * testsuite/libgomp.c++: New directory.
12917 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
12919 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
12920 * config/posix/sem.c: Implement the above.
12922 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
12924 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
12925 define HAVE_BROKEN_POSIX_SEMAPHORES.
12926 * configure: Rebuilt.
12927 * config.h.in: Rebuilt.
12929 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
12932 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
12933 for the other pthread check.
12934 * configure: Regenerate.
12935 * config.h.in: Regenerate.
12937 2006-02-15 Jakub Jelinek <jakub@redhat.com>
12941 * Makefile.am (fincludedir): New variable.
12942 (nodist_include_HEADERS): Remove Fortran files.
12943 (nodist_finclude_HEADERS): New variable.
12944 * Makefile.in: Regenerated.
12946 2006-02-13 Jakub Jelinek <jakub@redhat.com>
12948 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
12949 Remove tests for returning assumed character length arrays.
12951 2006-02-12 Roger Sayle <roger@eyesopen.com>
12952 John David Anglin <dave@hiauly1.hia.nrc.ca>
12955 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
12957 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
12959 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
12961 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
12963 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
12964 part of LD_LIBRARY_PATH manually.
12966 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
12969 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
12972 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
12975 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
12976 * configure.ac (PERL): Don't set.
12977 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
12978 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
12979 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
12980 * omp.h.in: Wrap the new configure substitutions with @ characters.
12981 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
12982 * aclocal.m4, configure, Makefile.in: Regenerate.
12983 * mkomp_h.pl: Delete.
12985 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
12988 * configure.ac: Use GCC_HEADER_STDINT.
12989 * libgomp.h: Include gstdint.h.
12990 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
12991 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
12993 2006-01-24 Richard Henderson <rth@redhat.com>
12996 * configure.ac: Add AM_MAINTAINER_MODE.
12997 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
12999 2006-01-24 Diego Novillo <dnovillo@redhat.com>
13001 * Makefile.in: Regenerate.
13002 * testsuite/Makefile.in: Regenerate.
13003 * aclocal.m4: Regenerate.
13005 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
13007 * config/posix/proc.c: Conditional include of sys/loadavg.h for
13009 * configure.ac: Add check for loadavg.h.
13010 (link_gomp): Adjust comment.
13011 * configure: Regenerate.
13012 * config.h.in: Regenerate.
13014 2006-01-21 Steve Ellcey <sje@cup.hp.com>
13017 * configure.ac: Remove check for alloca.h.
13018 * configure: Regenerate.
13019 * config.h.in: Regenerate.
13020 * libgomp.h: define gomp_alloca to be __builtin_alloca.
13021 * team.c: Remove use of alloca.h.
13022 Call gomp_alloca instead of alloca.
13024 2006-01-20 Steve Ellcey <sje@cup.hp.com>
13027 * team.c: Add include of alloca.h.
13028 * configure.ac: Add check for alloca.h.
13029 * configure: Regenerate.
13030 * config.h.in: Regenerate.
13032 2006-01-17 Jakub Jelinek <jakub@redhat.com>
13035 * testsuite/libgomp.fortran/pr25219.f90: New test.
13037 2005-12-05 Uros Bizjak <uros@kss-loka.si>
13039 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
13040 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
13041 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
13042 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
13043 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
13044 testsuite/libgomp.fortran/threadprivate1.f90,
13045 testsuite/libgomp.fortran/threadprivate2.f90,
13046 testsuite/libgomp.fortran/threadprivate3.f90,
13047 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
13048 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
13049 testsuite/libgomp.fortran/omp_parse3.f90: Change required
13050 effective-target to TLS runtime.
13052 * testsuite/libgomp.fortran/pr25162.f: Require
13053 effective-target TLS runtime.
13055 2005-12-01 Jakub Jelinek <jakub@redhat.com>
13057 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
13058 * testsuite/libgomp.c/nestedfn-3.c: New test.
13060 2005-11-30 Jakub Jelinek <jakub@redhat.com>
13063 * testsuite/libgomp.fortran/pr25162.f: New test.
13065 2005-11-28 Jakub Jelinek <jakub@redhat.com>
13067 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
13068 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
13070 2005-11-25 Jakub Jelinek <jakub@redhat.com>
13072 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
13073 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
13074 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
13075 single.c, team.c, work.c, config/linux/alpha/futex.h,
13076 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
13077 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
13078 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
13079 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
13080 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
13081 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
13082 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
13085 2005-11-18 Jakub Jelinek <jakub@redhat.com>
13087 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
13088 to nodist_noinst_HEADERS.
13089 * Makefile.in: Rebuilt.
13091 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
13092 add integer count field.
13093 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
13094 omp_nest_lock_t type change.
13095 (omp_init_nest_lock): Likewise. Initialize count to 0.
13096 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
13098 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
13100 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
13101 Increment count if successful and return the new nesting level.
13102 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
13103 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
13104 * testsuite/libgomp.c/lib-1.c: New test.
13105 * testsuite/libgomp.fortran/lib1.f90: New test.
13106 * testsuite/libgomp.fortran/lib2.f: New test.
13107 * testsuite/libgomp.fortran/lib3.f: New test.
13109 2005-11-17 Richard Henderson <rth@redhat.com>
13112 * Makefile.am (nodist_toolexeclib_HEADERS): New.
13113 * configure.ac (link_gomp): New. Substitute it.
13114 (AC_CONFIG_FILES): Add libgomp.spec.
13115 * libgomp.spec.in: New file.
13116 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
13117 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
13119 2005-11-18 Jakub Jelinek <jakub@redhat.com>
13121 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
13122 reduction(-:var) behaving the same as reduction(+:var).
13123 * testsuite/libgomp.c/reduction-4.c: New test.
13125 2005-11-15 Uros Bizjak <uros@kss-loka.si>
13127 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
13128 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
13129 testsuite/libgomp.c/copyin-3.c,
13130 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
13131 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
13132 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
13133 testsuite/libgomp.c++/pr24455.C,
13134 testsuite/libgomp.fortran/threadprivate1.f90,
13135 testsuite/libgomp.fortran/threadprivate2.f90,
13136 testsuite/libgomp.fortran/threadprivate3.f90,
13137 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
13138 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
13139 testsuite/libgomp.fortran/omp_parse3.f90: Require
13140 effective-target TLS.
13142 2005-11-14 Diego Novillo <dnovillo@redhat.com>
13146 2005-11-13 Jakub Jelinek <jakub@redhat.com>
13149 * team.c (initialize_team): Pass NULL rather than free as
13150 pthread_key_create destructor. Initialize thread specific data
13151 pointer in initial thread to a static local variable rather than
13154 2005-11-11 Uros Bizjak <uros@kss-loka.si>
13156 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
13157 its location to ld_library_path.
13159 2005-11-10 Diego Novillo <dnovillo@redhat.com>
13161 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
13163 2005-11-10 Diego Novillo <dnovillo@redhat.com>
13165 * testsuite/libgomp.c: Rename from libgomp.dg.
13167 2005-11-09 Diego Novillo <dnovillo@redhat.com>
13169 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
13170 threadprivate variable 'i'.
13172 2005-11-09 Jakub Jelinek <jakub@redhat.com>
13174 * config/linux/s390/futex.h: New file.
13175 * configure.tgt: Use it.
13177 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
13178 before the parallel.
13180 2005-11-08 Jakub Jelinek <jakub@redhat.com>
13183 * testsuite/libgomp.c++/master-1.C: New test.
13185 2005-11-07 Jakub Jelinek <jakub@redhat.com>
13187 * testsuite/libgomp.dg/copyin-3.c: New test.
13189 2005-11-07 Jakub Jelinek <jakub@redhat.com>
13191 * testsuite/libgomp.fortran/retval1.f90: New test.
13192 * testsuite/libgomp.fortran/vla7.f90: New test.
13194 2005-11-06 Jakub Jelinek <jakub@redhat.com>
13196 * testsuite/libgomp.fortran/vla2.f90: New test.
13197 * testsuite/libgomp.fortran/vla3.f90: New test.
13198 * testsuite/libgomp.fortran/vla4.f90: New test.
13199 * testsuite/libgomp.fortran/vla5.f90: New test.
13200 * testsuite/libgomp.fortran/vla6.f90: New test.
13202 2005-11-01 Jakub Jelinek <jakub@redhat.com>
13204 * config/linux/sparc/futex.h: New file.
13205 * configure.tgt: Use it.
13206 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
13208 * critical.c: Include stdlib.h.
13209 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
13210 ignoring return value.
13211 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
13212 LIBGOMP_CHECK_SYNC_BUILTINS check.
13213 * configure: Rebuilt.
13215 2005-10-31 Jakub Jelinek <jakub@redhat.com>
13217 * testsuite/libgomp.fortran/vla1.f90: New test.
13219 2005-10-31 Richard Henderson <rth@redhat.com>
13221 * testsuite/libgomp.fortran/character2.f90: Fix race condition
13222 setting 's' in different threads.
13224 2005-10-31 Jakub Jelinek <jakub@redhat.com>
13226 * libgomp.h (attribute_hidden, ialias): Define.
13227 * config/posix/proc.c (omp_get_num_procs): Add ialias.
13228 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
13229 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
13230 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
13231 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
13232 omp_test_lock, omp_test_nest_lock): Likewise.
13233 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
13234 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
13235 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
13236 omp_test_lock, omp_test_nest_lock): Likewise.
13237 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
13238 omp_get_dynamic, omp_get_nested): Likewise.
13239 * parallel.c (omp_get_num_threads, omp_get_max_threads,
13240 omp_get_thread_num, omp_in_parallel): Likewise.
13241 * fortran.c (ialias_redirect): Define.
13242 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
13243 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
13244 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
13245 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
13246 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
13247 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
13248 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
13249 omp_get_wtime): Add ialias_redirect.
13251 2005-10-30 Jakub Jelinek <jakub@redhat.com>
13253 * fortran.c: Include stdlib.h.
13255 2005-10-29 Jakub Jelinek <jakub@redhat.com>
13257 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
13258 * Makefile.in: Regenerated.
13260 2005-10-28 Jakub Jelinek <jakub@redhat.com>
13262 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
13263 * libgomp_f.h.in (omp_check_defines): New function.
13264 * env.c: Include libgomp_f.h.
13265 (initialize_env): Call omp_check_defines.
13267 * testsuite/libgomp.dg/copyin-2.c: New test.
13268 * testsuite/libgomp.c++/copyin-2.C: New test.
13269 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
13271 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
13272 * testsuite/libgomp.fortran/sharing2.f90: New test.
13274 * testsuite/libgomp.dg/copyin-1.c: New test.
13275 * testsuite/libgomp.c++/copyin-1.C: New test.
13277 2005-10-26 Jakub Jelinek <jakub@redhat.com>
13279 * testsuite/libgomp.fortran/crayptr1.f90: New test.
13281 * testsuite/libgomp.fortran/workshare1.f90: New test.
13283 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
13285 * libgomp.fortran/sharing1.f90: New test.
13287 2005-10-24 Jakub Jelinek <jakub@redhat.com>
13290 * testsuite/libgomp.c++/loop-7.C: New test.
13292 * testsuite/libgomp.dg/nestedfn-2.c: New test.
13294 * testsuite/libgomp.dg/nestedfn-1.c: New test.
13295 * testsuite/libgomp.fortran/reduction6.f90: New test.
13296 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
13298 2005-10-23 Richard Henderson <rth@redhat.com>
13300 * testsuite/libgomp.c++/ctor-1.C: New.
13301 * testsuite/libgomp.c++/ctor-2.C: New.
13302 * testsuite/libgomp.c++/ctor-3.C: New.
13303 * testsuite/libgomp.c++/ctor-4.C: New.
13304 * testsuite/libgomp.c++/ctor-5.C: New.
13305 * testsuite/libgomp.c++/ctor-6.C: New.
13306 * testsuite/libgomp.c++/ctor-7.C: New.
13307 * testsuite/libgomp.c++/ctor-8.C: New.
13308 * testsuite/libgomp.c++/ctor-9.C: New.
13310 2005-10-21 Diego Novillo <dnovillo@redhat.com>
13313 * testsuite/libgomp.c++/pr24455-1.C: New test.
13314 * testsuite/libgomp.c++/pr24455.C: New test.
13315 * testsuite/libgomp.dg/pr24455-1.c: New test.
13316 * testsuite/libgomp.dg/pr24455.c: New test.
13318 2005-10-20 Richard Henderson <rth@redhat.com>
13320 * testsuite/libgomp.c++/loop-6.C: New.
13321 * testsuite/libgomp.dg/loop-3.c: New.
13323 2005-10-20 Jakub Jelinek <jakub@redhat.com>
13325 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
13326 explicitly private.
13327 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
13330 2005-10-19 Diego Novillo <dnovillo@redhat.com>
13332 * testsuite/libgomp.fortran/jacobi.f: New test.
13334 2005-10-19 Richard Henderson <rth@redhat.com>
13336 * configure.tgt (i?86-linux): Default to with_arch instead of
13337 CFLAGS. Add -mtune to match target_cpu.
13338 (x86_64-linux): Tune to i686.
13340 * fortran.c (omp_test_nest_lock_): Fix typo.
13342 2005-10-19 Jakub Jelinek <jakub@redhat.com>
13344 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
13345 gomp_ordered_sync): Do nothing if team->nthreads == 1.
13346 * testsuite/libgomp.dg/ordered-3.c: New test.
13348 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
13349 Remove volatile keyword.
13351 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
13352 in COMMON block to avoid warnings on 64-bit targets.
13354 2005-10-18 Diego Novillo <dnovillo@redhat.com>
13356 * testsuite/libgomp.dg/shared-3.c: New test.
13358 2005-10-18 Jakub Jelinek <jakub@redhat.com>
13360 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
13361 * testsuite/libgomp.fortran/reduction5.f90: New test.
13363 2005-10-18 Jakub Jelinek <jakub@redhat.com>
13365 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
13367 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
13368 flush loop now that __sync_synchronize has proper memory barrier.
13369 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
13370 Add -ffixed-form to dg-options.
13372 2005-10-17 Diego Novillo <dnovillo@redhat.com>
13374 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
13375 from subdirectories.
13376 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
13377 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
13378 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
13379 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
13380 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
13381 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
13382 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
13383 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
13384 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
13385 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
13386 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
13387 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
13388 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
13389 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
13390 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
13391 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
13392 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
13393 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
13394 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
13395 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
13396 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
13397 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
13398 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
13399 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
13400 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
13402 2005-10-17 Jakub Jelinek <jakub@redhat.com>
13404 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
13405 lang_library_path exists. Use find instead of glob to gather tests.
13406 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
13408 2005-10-17 Diego Novillo <dnovillo@redhat.com>
13410 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
13411 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
13412 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
13413 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
13414 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
13415 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
13416 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
13417 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
13418 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
13419 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
13420 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
13421 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
13422 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
13424 2005-10-15 Jakub Jelinek <jakub@redhat.com>
13426 * testsuite/libgomp.dg/vla-1.c: New test.
13428 * testsuite/libgomp.fortran/reference2.f90: New test.
13430 * testsuite/libgomp.fortran/character2.f90: Remove explicit
13431 declaration of omp_get_thread_num.
13432 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
13435 * testsuite/libgomp.fortran/reduction1.f90: New test.
13436 * testsuite/libgomp.fortran/reduction2.f90: New test.
13437 * testsuite/libgomp.fortran/reduction3.f90: New test.
13438 * testsuite/libgomp.fortran/reduction4.f90: New test.
13440 2005-10-13 Richard Henderson <rth@redhat.com>
13442 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
13443 * Makefile.in: Regenerate.
13444 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
13445 * libgomp.h: Include bar.h.
13446 (struct gomp_barrier): Remove.
13447 (struct gomp_team): Add barrier. Replace master_barrier with
13448 master_release. Replace threads with ordered_release.
13449 (struct gomp_thread): Replace barrier with release.
13450 * ordered.c (gomp_ordered_first): Update for ordered_release change.
13451 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
13452 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
13453 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
13454 (GOMP_single_copy_end): Likewise.
13455 * team.c (gomp_threads_dock): New.
13456 (gomp_barrier_init, gomp_barrier_destroy): Remove.
13457 (gomp_thread_start): Use gomp_barrier_wait.
13458 (new_team, free_team): Update for gomp_team changes.
13459 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
13460 (gomp_team_end): Use gomp_barrier_wait.
13461 (initialize_team): Update for gomp_thread changes.
13462 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
13463 (gomp_work_share_end_nowait): Use atomic ops when available.
13464 * config/linux/bar.c, config/linux/bar.h: New files.
13465 * config/posix/bar.c, config/posix/bar.h: New files.
13467 2005-10-13 Jakub Jelinek <jakub@redhat.com>
13469 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
13470 * testsuite/libgomp.dg/single-2.c: New test.
13472 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
13473 lang_link_flags): Unset, so that they aren't inherited from previously
13476 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
13478 2005-10-12 Richard Henderson <rth@redhat.com>
13480 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
13481 (libgomp_init): Use lang_test_file, lang_library_path, and
13482 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
13484 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
13485 (lang_test_file, lang_link_flags): New.
13486 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
13488 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
13489 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
13490 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
13491 testsuite/libgomp.c++/parallel-1.C,
13492 testsuite/libgomp.c++/reduction-1.C,
13493 testsuite/libgomp.c++/reduction-2.C,
13494 testsuite/libgomp.c++/reduction-3.C,
13495 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
13496 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
13497 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
13498 New files, largely cribbed from the C testsuite.
13500 2005-10-12 Jakub Jelinek <jakub@redhat.com>
13502 * testsuite/libgomp.fortran/character1.f90: New test.
13503 * testsuite/libgomp.fortran/character2.f90: New test.
13505 * testsuite/libgomp.dg/nested-1.c: New test.
13506 * testsuite/libgomp.dg/nested-2.c: New test.
13507 * testsuite/libgomp.fortran/do1.f90: New test.
13508 * testsuite/libgomp.fortran/do2.f90: New test.
13510 * testsuite/libgomp.fortran/reference1.f90: New test.
13512 2005-10-11 Jakub Jelinek <jakub@redhat.com>
13514 * testsuite/libgomp.dg/reduction-1.c: New test.
13515 * testsuite/libgomp.dg/reduction-2.c: New test.
13516 * testsuite/libgomp.dg/reduction-3.c: New test.
13518 2005-10-10 Jakub Jelinek <jakub@redhat.com>
13520 * testsuite/libgomp.dg/atomic-1.c: New test.
13521 * testsuite/libgomp.dg/atomic-2.c: New test.
13523 2005-10-09 Richard Henderson <rth@redhat.com>
13525 * critical.c (atomic_lock): New.
13526 (initialize_critical): Initialize it.
13527 (GOMP_atomic_start, GOMP_atomic_end): New.
13528 * libgomp.map: Export them.
13529 * libgomp_g.h: Declare them.
13531 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
13533 2005-10-02 Richard Henderson <rth@redhat.com>
13535 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
13536 to XCFLAGS instead of CFLAGS.
13538 2005-09-30 Richard Henderson <rth@redhat.com>
13540 * configure.ac: Determine whether -pthread or -lpthread is needed.
13541 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
13542 * Makefile.in, configure: Rebuild.
13544 2005-09-28 Richard Henderson <rth@redhat.com>
13546 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
13547 * testsuite/libgomp.dg/omp-single-3.c: New test.
13549 2005-09-28 Diego Novillo <dnovillo@redhat.com>
13551 * testsuite/libgomp.dg/omp-single-2.c: New test.
13552 * testsuite/libgomp.dg/shared-2.c: Fix return code.
13554 2005-09-27 Richard Henderson <rth@redhat.com>
13556 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
13557 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
13559 2005-09-27 Jakub Jelinek <jakub@redhat.com>
13561 * testsuite/libgomp.dg/omp-loop03.c: New test.
13563 2005-09-27 Diego Novillo <dnovillo@redhat.com>
13565 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
13567 2005-09-27 Diego Novillo <dnovillo@redhat.com>
13569 * testsuite/libgomp.dg/omp-single-1.c: New test.
13570 * testsuite/libgomp.dg/shared-1.c: Return 0.
13571 Add prototype for abort.
13572 * testsuite/libgomp.dg/shared-2.c: Likewise.
13574 2005-09-26 Jakub Jelinek <jakub@redhat.com>
13576 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
13579 2005-09-26 Diego Novillo <dnovillo@redhat.com>
13581 * testsuite/libgomp.dg/shared-1.c: New test.
13582 * testsuite/libgomp.dg/shared-2.c: New test.
13584 2005-09-24 Richard Henderson <rth@redhat.com>
13586 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
13588 2005-09-24 Richard Henderson <rth@redhat.com>
13590 * iter.c (gomp_iter_static_next): Round up when computing number
13591 of iterations. Don't bother distributing a remainder equally.
13593 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
13594 Don't call srand. Zero b before testing.
13597 2005-09-24 Jakub Jelinek <jakub@redhat.com>
13599 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
13600 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
13602 2005-09-23 Jakub Jelinek <jakub@redhat.com>
13604 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
13605 without !$omp end do, followed immediately by subroutine end.
13607 2005-09-23 Diego Novillo <dnovillo@redhat.com>
13609 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
13611 2005-09-22 Richard Henderson <rth@redhat.com>
13613 * critical.c (GOMP_critical_name_start): Change argument to void**.
13614 Reuse the pointer space if the mutex fits.
13615 (GOMP_critical_name_end): Likewise.
13616 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
13617 * libgomp_g.h (GOMP_critical_name_start): Update decl.
13618 (GOMP_critical_name_end): Likewise.
13619 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
13620 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
13622 2005-09-20 Richard Henderson <rth@redhat.com>
13624 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
13625 (create_lock_lock): New.
13626 (initialize_critical): Initialize it.
13627 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
13628 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
13630 2005-09-20 Diego Novillo <dnovillo@redhat.com>
13632 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
13634 2005-09-20 Diego Novillo <dnovillo@redhat.com>
13636 * testsuite/libgomp.dg/omp-loop01.c: New test.
13637 * testsuite/libgomp.dg/omp-loop02.c: New test.
13639 2005-09-20 Jakub Jelinek <jakub@redhat.com>
13641 * configure.ac (AC_PROG_FC): Add.
13642 (USE_FORTRAN): New automake conditional.
13643 * configure: Rebuilt.
13644 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
13645 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
13646 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
13647 Add rules to build them.
13648 * Makefile.in: Rebuilt.
13649 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
13650 OMP_NEST_LOCK_KIND.
13651 * libgomp.map: Add Fortran wrappers.
13652 * libgomp_f.h.in: New file.
13653 * omp_lib.h.in: New file.
13654 * omp_lib.f90.in: New file.
13655 * fortran.c: New file.
13656 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
13657 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
13658 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
13659 libgfortran has been built.
13660 * testsuite/libgomp.fortran/fortran.exp: New file.
13661 * testsuite/libgomp.fortran/omp_cond1.f: New test.
13662 * testsuite/libgomp.fortran/omp_cond2.f: New test.
13663 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
13664 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
13665 * testsuite/libgomp.fortran/omp_hello.f: New test.
13666 * testsuite/libgomp.fortran/omp_orphan.f: New test.
13667 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
13668 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
13669 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
13670 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
13671 * testsuite/libgomp.fortran/omp_reduction.f: New test.
13672 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
13673 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
13675 2005-08-30 Richard Henderson <rth@redhat.com>
13677 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
13678 function for when aliases are not usable.
13679 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
13680 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
13681 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
13682 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
13683 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
13684 GOMP_loop_ordered_guided_next): Likewise.
13685 * ordered.c (GOMP_ordered_start): Likewise.
13687 2005-08-01 Diego Novillo <dnovillo@redhat.com>
13689 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
13690 * testsuite/libgomp.dg/omp_hello.c: Fix return code
13691 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
13692 * testsuite/libgomp.dg/omp_orphan.c: Likewise
13693 * testsuite/libgomp.dg/omp_reduction.c: Likewise
13694 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
13695 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
13696 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
13697 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
13699 2005-07-07 Eric Christopher <echristo@redhat.com>
13700 Diego Novillo <dnovillo@redhat.com>
13702 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
13703 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
13705 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
13706 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
13707 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
13708 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
13709 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
13710 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
13711 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
13713 2005-06-13 Diego Novillo <dnovillo@redhat.com>
13715 * TOPLEVEL.patch: Remove.
13717 2005-05-16 Richard Henderson <rth@redhat.com>
13719 * configure.ac: Test for clock_gettime.
13720 * config.h.in, configure: Rebuild.
13721 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
13722 (omp_get_wtime): Use clock_gettime if available.
13723 (omp_get_wtick): Use clock_getres if available.
13725 2005-05-11 Richard Henderson <rth@redhat.com>
13727 * config/linux/ia64/futex.h: New file.
13728 * configure.tgt: Use it.
13730 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
13732 2005-05-07 Richard Henderson <rth@redhat.com>
13734 * config/linux/powerpc/futex.h: New file.
13735 * configure.tgt: Use it.
13737 * config/linux/i486/futex.h: Merge ...
13738 * config/linux/x86_64/futex.h: ... into ...
13739 * config/linux/x86/futex.h: ... here.
13740 * configure.tgt: Update to match.
13742 2005-05-06 Richard Henderson <rth@redhat.com>
13744 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
13745 * config/linux/i486/futex.h: Likewise.
13746 * config/linux/x86_64/futex.h: Likewise.
13748 * config/linux/lock.c: New file.
13749 * config/linux/omp-lock.h: New file.
13751 * critical.c, env.h: Don't include omp.h
13752 * config/posix/lock.c: Include libgomp.h instead of omp.h.
13753 * config/posix/time.c: Likewise.
13754 * config/posix/omp-lock.h: New file.
13755 * libgomp.h: Include omp-lock.h and omp.h.
13756 * Makefile.am (nodist_include_HEADERS): New.
13758 * configure.ac (PERL): New.
13759 * mkomp_h.pl: New file.
13760 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
13762 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
13764 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
13765 build directory. Re-add -march=i486 hack.
13767 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
13768 (libgomp_link_flags): Remove.
13769 (libgomp_initialized): Remove.
13770 (libgomp_init): Don't protect from reinitialization. Copy code
13771 from libstdc++ for getting the multilib set correctly.
13773 2005-05-05 Richard Henderson <rth@redhat.com>
13775 * config/linux/alpha/futex.h: New file.
13776 * configure.tgt (alpha*-*-linux*): Use it.
13778 * config/posix/mutex.c: New file.
13779 * config/posix/sem.c: Use libgomp.h.
13781 * configure.tgt (x86_64-linux): Also test CC for -m32.
13782 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
13784 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
13787 * Makefile.am (SUBDIRS): New.
13788 (libgomp_la_LDFLAGS): Add -lpthread.
13789 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
13790 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
13792 * libgomp_g.h: New file.
13793 * libgomp.h: Split out all public declarations to libgomp_g.h.
13794 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
13795 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
13796 * config/linux/sem.h: Likewise.
13797 * config/posix/sem.h: Likewise.
13799 * Makefile.am (AM_LDFLAGS): New.
13800 (libgomp_version_script): Split out from ...
13801 (libgomp_la_LDFLAGS): ... here.
13802 (libgomp_version_info): New.
13803 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
13804 (LIBGOMP_ENABLE): New.
13805 (LIBGOMP_CHECK_LINKER_FEATURES): New.
13806 (LIBGOMP_ENABLE_SYMVERS): New.
13807 * configure.ac (AC_INIT): Version 1.0.
13808 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
13809 (enable-linux-futex): Likewise. Rename from enable-futex.
13810 (libtool_VERSION): New.
13811 (LIBGOMP_ENABLE_SYMVERS): Use it.
13812 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
13813 * Makefile.in, aclocal.m4, configure: Rebuild.
13815 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
13816 (gomp_mutex_unlock_slow): Fix typo.
13817 * config/linux/sem.c: Similarly.
13818 (gomp_sem_post_slow): Fix typo.
13819 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
13820 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
13821 [__PIC__] (sys_futex0): Don't use tmp output in asm.
13823 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
13824 (libgomp_la_LDFLAGS): Add top_srcdir to path.
13825 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
13826 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
13827 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
13828 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
13829 LDFLAGS. Pull enable_futex check to top-level.
13830 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
13831 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
13833 First attempt at real configury.
13834 * Makefile, config.h: Remove file.
13835 * Makefile.am, Makefile.in: New file.
13836 * acinclude.m4 aclocal.m4: New file.
13837 * configure.ac, configure.tgt, configure: New file.
13839 * config/posix/lock.c: Rename from sys-lock.c.
13840 * config/posix/mutex.h: Rename from sys-mutex.h.
13841 * config/posix/sem.c: Rename from sys-sem.c.
13842 * config/posix/sem.h: Rename from sys-sem.h.
13843 * config/posix/proc.c: Rename from sys-proc.c.
13844 * config/posix/time.c: Rename from sys-proc.c.
13846 * config/linux/mutex.c: New file.
13847 * config/linux/mutex.h: New file.
13848 * config/linux/sem.c: New file.
13849 * config/linux/sem.h: New file.
13850 * config/linux/i486/futex.h: New file.
13851 * config/linux/x86_64/futex.h: New file.
13853 2005-05-04 Richard Henderson <rth@redhat.com>
13855 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
13856 * libgomp.h: Declare them.
13857 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
13858 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
13860 2005-05-04 Richard Henderson <rth@redhat.com>
13862 * libgomp-1 code drop
13864 2005-05-04 Richard Henderson <rth@redhat.com>
13866 * iter.c (gomp_iter_static_next): Return tri-state on 0.
13867 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
13868 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
13869 (gomp_iter_static_next): Update.
13870 (gomp_ordered_static_next): Update.
13871 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
13872 (gomp_loop_ordered_static_start): Likewise. Exit early for a
13873 totally empty range.
13874 (gomp_loop_ordered_static_next): Refine test for calling
13875 gomp_ordered_static_next.
13876 * testsuite/ordered-1.c: Add case for more threads than iterations.
13878 * iter.c (gomp_iter_runtime_next_locked): Remove.
13879 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
13880 gomp_loop_guided_start, gomp_loop_ordered_static_start,
13881 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
13882 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
13883 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
13884 gomp_loop_ordered_guided_next): Downcase name, make static, add
13885 an external alias with the old name.
13886 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
13887 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
13888 switch and call one of the above static functions.
13889 * libgomp.h: Update.
13891 * work.c (gomp_work_share_start): Lock the mutex for !first too.
13892 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
13893 GOMP_loop_guided_start, GOMP_loop_runtime_start,
13894 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
13895 GOMP_loop_ordered_guided_start): Update to match.
13896 * sections.c (GOMP_sections_start): Likewise.
13897 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
13899 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
13900 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
13901 Use bounds check instead of modulus.
13902 (gomp_ordered_sync): Split out of GOMP_ordered_start.
13903 (gomp_ordered_last): Don't sync with ordered_owner here.
13904 (gomp_ordered_next): Likewise.
13905 (gomp_ordered_static_loop_next): Likewise.
13906 * loop.c, libgomp.h: Update to match.
13908 * libgomp.h (GOMP_barrier): Declare.
13910 * testsuite/barrier-1.c: New file.
13911 * testsuite/critical-1.c: New file.
13912 * testsuite/ordered-2.c: New file.
13913 * testsuite/ordered-1.c: New file.
13914 * testsuite/sections-1.c: New file.
13915 * testsuite/single-1.c: New file.
13916 * testsuite/Makefile (TESTS): Add them.
13918 2005-05-04 Richard Henderson <rth@redhat.com>
13920 * libgomp.h (struct gomp_work_share): Add ordered_owner.
13921 * loop.c (GOMP_loop_static_start): If not the startup thread,
13922 acquire the mutex to wait for initialization complete.
13923 (GOMP_loop_ordered_static_start): Likewise.
13924 (GOMP_loop_ordered_runtime_start): Likewise.
13925 (GOMP_loop_ordered_static_first): Remove.
13926 (GOMP_loop_ordered_dynamic_first): Remove.
13927 (GOMP_loop_ordered_guided_first): Remove.
13928 (GOMP_loop_ordered_runtime_first): Remove.
13929 * ordered.c (gomp_ordered_loop_first): Post to own release when
13930 we're the first thread.
13931 (gomp_ordered_loop_last): Wait on release if not owner.
13932 (gomp_ordered_loop_next): Likewise.
13933 (gomp_ordered_static_loop_init): New.
13934 (gomp_ordered_static_loop_next): Use ordered_owner.
13935 (GOMP_ordered_start): Likewise.
13936 * work.c (gomp_new_work_share): Initialize ordered_owner.
13938 2005-05-03 Richard Henderson <rth@redhat.com>
13940 * Makefile (OPT): New.
13943 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
13944 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
13945 * libgomp.h, libgomp.map, NOTES: Update to match.
13947 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
13948 Add initialized and thr members.
13949 (gomp_thread_start): Pause when initially spawned to wait for
13950 the whole team to be created.
13951 (gomp_team_start): Release team members at the end.
13953 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
13954 (f_foo_1): Use GOMP_loop_end.
13955 (f_foo_2): Use GOMP_loop_end_nowait.
13957 * testsuite/loop-2.c: New file.
13958 * testsuite/Makefile (TESTS): Add it.
13960 2005-05-03 Richard Henderson <rth@redhat.com>
13962 * iter.c (gomp_iter_static_next): Fix overflow check typo.
13963 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
13964 * team.c (new_team): Initialize oldest_live_gen to 1 if no
13965 initial work_share.
13967 * testsuite/Makefile: New file.
13968 * testsuite/loop-1.c: New file.
13970 2005-05-03 Richard Henderson <rth@redhat.com>
13972 Initial implementation and checkin.
13974 Copyright (C) 2005-2020 Free Software Foundation, Inc.
13976 Copying and distribution of this file, with or without modification,
13977 are permitted in any medium without royalty provided the copyright
13978 notice and this notice are preserved.