1 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
3 * target.c (resolve_device): Align a
4 'OMP_TARGET_OFFLOAD=mandatory' diagnostic with others.
5 * testsuite/libgomp.c/target-51.c: Adjust.
7 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
9 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Don't
11 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags):
13 * testsuite/libgomp.c/simd-math-1.c: Remove
14 '-foffload-options=-lm'.
15 * testsuite/libgomp.fortran/fortran-torture_execute_math.f90:
17 * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
20 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
22 * testsuite/libgomp.fortran/fortran-torture_execute_math.f90: New.
23 * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
26 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
28 * testsuite/libgomp.c/target-51.c: Fix typo.
30 2023-06-14 Tobias Burnus <tobias@codesourcery.com>
32 * env.c (gomp_default_icv_values): Init default_device_var to
33 an nonconforming value - INT_MIN.
34 (initialize_env): After env-var parsing, set default_device_var to
35 device 0 unless OMP_TARGET_OFFLOAD=mandatory.
36 (omp_display_env): If default_device_var is INT_MIN, call
37 gomp_init_targets_once.
38 * icv-device.c (omp_get_default_device): Likewise.
39 * libgomp.texi (OMP_DEFAULT_DEVICE): Update init description.
40 (OpenMP 5.2 Impl. Status): Mark OMP_TARGET_OFFLOAD=mandatory as 'Y'.
41 * target.c (resolve_device): Improve error message device-num < 0
42 with 'mandatory' and no no-host devices available.
43 (gomp_target_init): Set default-device-var if INT_MIN.
44 * testsuite/libgomp.c/target-48.c: New test.
45 * testsuite/libgomp.c/target-49.c: New test.
46 * testsuite/libgomp.c/target-50.c: New test.
47 * testsuite/libgomp.c/target-50a.c: New test.
48 * testsuite/libgomp.c/target-51.c: New test.
49 * testsuite/libgomp.c/target-52.c: New test.
50 * testsuite/libgomp.c/target-53.c: New test.
51 * testsuite/libgomp.c/target-54.c: New test.
53 2023-06-13 Tobias Burnus <tobias@codesourcery.com>
56 * testsuite/libgomp.c-c++-common/requires-unified-addr-1.c: New test.
57 * testsuite/libgomp.fortran/requires-unified-addr-1.f90: New test.
59 2023-06-12 Tobias Burnus <tobias@codesourcery.com>
61 * target.c (gomp_to_device_kind_p, gomp_map_vars_internal): Replace
62 GOMP_MAP_PRESENT_{FROM,TO,TOFROM,ACLLOC} by GOMP_MAP_FORCE_PRESENT.
63 (gomp_map_vars_internal, gomp_update): Likewise; unify and improve
65 * testsuite/libgomp.c-c++-common/target-present-2.c: Update for
66 changed error message.
67 * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
68 * testsuite/libgomp.fortran/target-present-2.f90: Likewise.
69 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
70 * testsuite/libgomp.c-c++-common/target-present-1.c: Likewise and
71 extend testcase to check that data is copied when needed.
72 * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
73 * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
75 2023-06-07 Thomas Schwinge <thomas@codesourcery.com>
76 Tobias Burnus <tobias@codesourcery.com>
78 * testsuite/libgomp.c-c++-common/target-present-1.c: Run code
79 also for non-offload_device targets; check that it runs
80 successfully for those and for all until a checkpoint for all
81 * testsuite/libgomp.c-c++-common/target-present-2.c: Likewise.
82 * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
83 * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
84 * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
85 * testsuite/libgomp.fortran/target-present-2.f90: Likewise;
86 add missing vars to map clause.
88 2023-06-06 Tobias Burnus <tobias@codesourcery.com>
90 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Regard
91 unified_address requirement as supported.
92 * libgomp.texi (OpenMP 5.0, AMD Radeon, nvptx): Remove
93 'unified_address' from the not-supported requirements.
95 2023-06-06 Kwok Cheung Yeung <kcy@codesourcery.com>
96 Tobias Burnus <tobias@codesourcery.com>
98 * libgomp.texi (OpenMP 5.1 Impl. status): Set 'present' support for
99 defaultmap to 'Y', add 'Y' entry for 'present' on to/from/map clauses.
100 * target.c (gomp_to_device_kind_p): Add map kinds with 'present'
102 (gomp_map_vars_existing): Use new GOMP_MAP_FORCE_P macro.
103 (gomp_map_vars_internal, gomp_update, gomp_target_rev):
104 Emit runtime error if memory region not present.
105 * testsuite/libgomp.c-c++-common/target-present-1.c: New test.
106 * testsuite/libgomp.c-c++-common/target-present-2.c: New test.
107 * testsuite/libgomp.c-c++-common/target-present-3.c: New test.
108 * testsuite/libgomp.fortran/target-present-1.f90: New test.
109 * testsuite/libgomp.fortran/target-present-2.f90: New test.
110 * testsuite/libgomp.fortran/target-present-3.f90: New test.
112 2023-06-02 Thomas Schwinge <thomas@codesourcery.com>
115 * testsuite/lib/libgomp.exp: 'flock' through stdout.
116 * testsuite/flock: New.
117 * configure.ac (FLOCK): Point to that if no 'flock' available, but
119 * configure: Regenerate.
121 2023-06-02 Thomas Schwinge <thomas@codesourcery.com>
123 * configure.ac (PERL): Remove.
124 * configure: Regenerate.
125 * Makefile.in: Likewise.
126 * testsuite/Makefile.in: Likewise.
128 2023-06-01 Tobias Burnus <tobias@codesourcery.com>
130 * libgomp.texi (OpenMP 5.2): Mark pure-directive handling as 'Y'.
132 2023-05-26 Tobias Burnus <tobias@codesourcery.com>
134 * testsuite/libgomp.fortran/allocate-4.f90: Update dg-error.
136 2023-05-21 Tobias Burnus <tobias@codesourcery.com>
139 * config/gcn/target.c (GOMP_teams4): Honor nteams-var ICV.
140 * config/nvptx/target.c (GOMP_teams4): Likewise.
141 * testsuite/libgomp.c-c++-common/teams-nteams-icv-1.c: New test.
142 * testsuite/libgomp.c-c++-common/teams-nteams-icv-2.c: New test.
143 * testsuite/libgomp.c-c++-common/teams-nteams-icv-3.c: New test.
144 * testsuite/libgomp.c-c++-common/teams-nteams-icv-4.c: New test.
146 2023-05-19 Jakub Jelinek <jakub@redhat.com>
149 * configure.ac (link_gomp): Include also $DL_LIBS.
150 * configure: Regenerated.
152 2023-05-17 Tobias Burnus <tobias@codesourcery.com>
154 * testsuite/libgomp.fortran/target-enter-data-3.f90: Uncomment
156 * testsuite/libgomp.fortran/target-enter-data-4.f90: New test.
157 * testsuite/libgomp.fortran/target-enter-data-5.f90: New test.
158 * testsuite/libgomp.fortran/target-enter-data-6.f90: New test.
159 * testsuite/libgomp.fortran/target-enter-data-7.f90: New test.
161 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
164 * configure.ac: Look for 'flock'.
165 * testsuite/Makefile.am (gcc_test_parallel_slots): Enable parallel testing.
166 * testsuite/config/default.exp: Don't 'load_lib "standard.exp"' here...
167 * testsuite/lib/libgomp.exp: ... but here, instead.
168 (libgomp_load): Override for parallel testing.
169 * testsuite/libgomp-site-extra.exp.in (FLOCK): Set.
170 * configure: Regenerate.
171 * Makefile.in: Regenerate.
172 * testsuite/Makefile.in: Regenerate.
174 2023-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
175 Thomas Schwinge <thomas@codesourcery.com>
178 * testsuite/Makefile.am (PWD_COMMAND): New variable.
179 (%/site.exp): New target.
180 (check_p_numbers0, check_p_numbers1, check_p_numbers2)
181 (check_p_numbers3, check_p_numbers4, check_p_numbers5)
182 (check_p_numbers6, check_p_numbers, gcc_test_parallel_slots)
184 (check_DEJAGNU_libgomp_targets): New variables.
185 ($(check_DEJAGNU_libgomp_targets)): New target.
186 ($(check_DEJAGNU_libgomp_targets)): New dependency.
187 (check-DEJAGNU $(check_DEJAGNU_libgomp_targets)): New targets.
188 * testsuite/Makefile.in: Regenerate.
189 * testsuite/lib/libgomp.exp: For parallel testing,
190 'load_file ../libgomp-test-support.exp'.
192 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
195 * configure.ac: 'AC_SUBST(CXX)'.
196 * configure: Regenerate.
197 * Makefile.in: Likewise.
198 * testsuite/Makefile.in: Likewise.
199 * testsuite/libgomp-site-extra.exp.in (GXX_UNDER_TEST)
200 (GFORTRAN_UNDER_TEST): Set.
201 * testsuite/lib/libgomp.exp (libgomp_init): Adjust.
202 * testsuite/libgomp.c++/c++.exp: Use 'GXX_UNDER_TEST'.
203 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
204 * testsuite/libgomp.fortran/fortran.exp: Use
205 'GFORTRAN_UNDER_TEST'.
206 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
208 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
211 * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't
213 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Specify compiler.
214 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
215 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
216 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
218 * testsuite/libgomp.oacc-c++/c++.exp (ALWAYS_CFLAGS): Likewise.
219 * testsuite/libgomp.oacc-c/c.exp (ALWAYS_CFLAGS): Likewise.
220 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS):
223 2023-05-12 Tobias Burnus <tobias@codesourcery.com>
226 * testsuite/libgomp.c++/target-map-class-1.C: New test.
227 * testsuite/libgomp.c++/target-map-class-2.C: New test.
229 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
231 * testsuite/lib/libgomp.exp (libgomp_target_compile): Generalize
232 'lang_library_path' into a list of 'lang_library_paths'.
233 * testsuite/libgomp.c++/c++.exp: Adjust.
234 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
235 * testsuite/libgomp.fortran/fortran.exp: Adjust. Use that for
237 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
239 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
241 * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't look
242 at 'lang_test_file_found'.
243 * testsuite/libgomp.c++/c++.exp: Don't set and use it, and instead
244 'return' early if not able to test. Simplify 'ld_library_path' setup.
245 * testsuite/libgomp.fortran/fortran.exp: Likewise.
246 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
247 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
249 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
251 * testsuite/libgomp.c++/c++.exp: Resolve 'lang_test_file_found'
253 * testsuite/libgomp.fortran/fortran.exp: Likewise.
254 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
255 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
257 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
259 * testsuite/libgomp.c++/c++.exp: Localize 'lang_[...]' etc.
260 * testsuite/libgomp.c/c.exp: Likewise.
261 * testsuite/libgomp.fortran/fortran.exp: Likewise.
262 * testsuite/libgomp.graphite/graphite.exp: Likewise.
263 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
264 * testsuite/libgomp.oacc-c/c.exp: Likewise.
265 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
267 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
269 * testsuite/libgomp.c++/c++.exp: Don't set 'lang_test_file'.
270 * testsuite/libgomp.fortran/fortran.exp: Likewise.
271 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
272 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
273 * testsuite/libgomp.c/c.exp: Unset 'lang_test_file_found' instead of
275 * testsuite/libgomp.oacc-c/c.exp: Likewise.
276 * testsuite/libgomp.graphite/graphite.exp: Likewise.
277 * testsuite/lib/libgomp.exp (libgomp_target_compile): Look for
278 'lang_test_file_found' instead of 'lang_test_file'.
280 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
282 * testsuite/lib/libgomp.exp (libgomp_init): Only use 'blddir' if
284 * testsuite/libgomp.c++/c++.exp: Likewise.
285 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
287 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
289 * testsuite/libgomp.c++/c++.exp (blddir): Don't set.
290 * testsuite/libgomp.oacc-c++/c++.exp (blddir): Likewise.
292 2023-05-08 Thomas Schwinge <thomas@codesourcery.com>
294 * testsuite/libgomp.c++/c++.exp: Use 'lang_include_flags' instead
295 of 'libstdcxx_includes'.
296 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
298 2023-05-08 Thomas Schwinge <thomas@codesourcery.com>
300 * target.c (gomp_target_rev): Instead of 'dev_to_host_cpy',
301 'host_to_dev_cpy', 'token', take a single 'goacc_asyncqueue'.
302 * libgomp.h (gomp_target_rev): Adjust.
303 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): Adjust.
304 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): Adjust.
305 * plugin/plugin-gcn.c (process_reverse_offload): Adjust.
306 * plugin/plugin-nvptx.c (rev_off_dev_to_host_cpy)
307 (rev_off_host_to_dev_cpy): Remove.
308 (GOMP_OFFLOAD_run): Adjust.
310 2023-05-04 Julian Brown <julian@codesourcery.com>
313 * testsuite/libgomp.fortran/pr109622.f90: Move test...
314 * testsuite/libgomp.oacc-fortran/pr109622.f90: ...to here. Ignore
315 vector length warning.
316 * testsuite/libgomp.fortran/pr109622-2.f90: Move test...
317 * testsuite/libgomp.oacc-fortran/pr109622-2.f90: ...to here. Add
318 missing copyin/copyout variable. Ignore vector length warnings.
319 * testsuite/libgomp.fortran/pr109622-3.f90: Move test...
320 * testsuite/libgomp.oacc-fortran/pr109622-3.f90: ...to here. Ignore
321 vector length warnings.
322 * testsuite/libgomp.oacc-fortran/pr109622-4.f90: New test.
324 2023-04-28 Julian Brown <julian@codesourcery.com>
327 * testsuite/libgomp.fortran/pr109622.f90: New test.
328 * testsuite/libgomp.fortran/pr109622-2.f90: New test.
329 * testsuite/libgomp.fortran/pr109622-3.f90: New test.
331 2023-04-25 Tobias Burnus <tobias@codesourcery.com>
333 * testsuite/libgomp.c-c++-common/scan-1.c: New test.
334 * testsuite/libgomp.c/scan-23.c: New test.
335 * testsuite/libgomp.fortran/scan-2.f90: New test.
337 2023-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
339 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Add
340 weak_undefined options.
342 2023-03-24 Tobias Burnus <tobias@codesourcery.com>
344 * libgomp.texi (Offload-Target Specifics): Grammar fix.
346 2023-03-24 Thomas Schwinge <thomas@codesourcery.com>
349 * target.c (gomp_map_vars_internal) <GOMP_MAP_FIRSTPRIVATE>: Add
352 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
355 * target.c (gomp_map_vars_internal): Allow for
356 'param_kind == GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_TARGET'.
357 * oacc-parallel.c (GOACC_parallel_keyed): Pass
358 'GOMP_MAP_VARS_TARGET' to 'goacc_map_vars'.
359 * plugin/plugin-gcn.c (alloc_by_agent, gcn_exec)
360 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
362 (gomp_offload_free): Remove.
363 * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
364 (GOMP_OFFLOAD_openacc_async_exec): Adjust, simplify.
365 (cuda_free_argmem): Remove.
366 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
369 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
371 * target.c (gomp_copy_host2dev, gomp_map_vars_internal): Allow
372 libgomp 'cbuf' buffering with OpenACC 'async' for 'ephemeral'
375 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
377 * target.c (gomp_map_vars_internal): Use 'OFFSET_INLINED' for
378 'GOMP_MAP_IF_PRESENT'.
379 * plugin/plugin-gcn.c (gcn_exec, GOMP_OFFLOAD_openacc_exec)
380 (GOMP_OFFLOAD_openacc_async_exec): Adjust.
381 * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
382 (GOMP_OFFLOAD_openacc_async_exec): Likewise.
383 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: Add 'async'
385 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: Likewise.
387 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
389 * oacc-async.c (goacc_wait): Remove 'acc_async_test' -> skip
392 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
394 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Document/verify
395 another aspect of OpenACC 'async' semantics.
397 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
399 * plugin/plugin-gcn.c (gcn_exec): Fix 'acc_ev_enqueue_launch_end'
401 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
402 Verify 'acc_ev_alloc', 'acc_ev_free'.
404 2023-03-09 Hongyu Wang <hongyu.wang@intel.com>
407 * env.c (wait_policy): Initialize to -1.
408 (initialize_icvs): Initialize icvs->wait_policy to -1.
409 * testsuite/libgomp.c-c++-common/pr109062.c: New test.
411 2023-03-08 Tobias Burnus <tobias@codesourcery.com>
413 * libgomp.texi (Offload-Target Specifics): Mention GCN_STACK_SIZE.
415 2023-03-02 Kwok Cheung Yeung <kcy@codesourcery.com>
416 Paul-Antoine Arras <pa@codesourcery.com>
418 * testsuite/libgomp.c/simd-math-1.c: New testcase.
420 2023-03-01 Tobias Burnus <tobias@codesourcery.com>
423 * testsuite/libgomp.fortran/is_device_ptr-3.f90: New test.
424 * testsuite/libgomp.fortran/use_device_ptr-optional-4.f90: New test.
426 2023-02-22 Thomas Schwinge <thomas@codesourcery.com>
428 * testsuite/libgomp.fortran/alloc-10.f90: Use
429 '-Wno-complain-wrong-lang'.
430 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
431 * testsuite/libgomp.fortran/alloc-7.f90: Likewise.
432 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
433 * testsuite/libgomp.fortran/allocate-1.f90: Likewise.
434 * testsuite/libgomp.fortran/depend-4.f90: Likewise.
435 * testsuite/libgomp.fortran/depend-5.f90: Likewise.
436 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
437 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
438 * testsuite/libgomp.fortran/depend-inoutset-1.f90: Likewise.
439 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90:
441 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90:
443 * testsuite/libgomp.fortran/order-reproducible-1.f90: Likewise.
444 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
445 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
446 * testsuite/libgomp.fortran/task-detach-6.f90: Remove left-over
449 2023-02-16 Jakub Jelinek <jakub@redhat.com>
451 * libgomp.texi: Fix typos - theads -> threads.
453 2023-02-16 Jakub Jelinek <jakub@redhat.com>
455 * testsuite/libgomp.fortran/target-nowait-array-section.f90: Fix
456 comment typo and improve its wording.
458 2023-02-15 Tobias Burnus <tobias@codesourcery.com>
460 * target.c (gomp_target_rev): Dereference ptr
461 to get device address.
462 * testsuite/libgomp.fortran/reverse-offload-5.f90: Add test
463 for unallocated allocatable.
465 2023-02-15 Tobias Burnus <tobias@codesourcery.com>
467 * target.c (gomp_map_vars_internal): Add 'i > 0' before doing a
469 (GOMP_target_enter_exit_data): If the next map item is
470 GOMP_MAP_ALWAYS_POINTER map it together with the current item.
471 * testsuite/libgomp.fortran/target-enter-data-3.f90: New test.
473 2023-02-09 Tobias Burnus <tobias@codesourcery.com>
476 * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: New test.
477 * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: New test.
478 * testsuite/libgomp.fortran/non-rectangular-loop-2.f90: New test.
479 * testsuite/libgomp.fortran/non-rectangular-loop-3.f90: New test.
480 * testsuite/libgomp.fortran/non-rectangular-loop-4.f90: New test.
481 * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: New test.
483 2023-02-07 Thomas Schwinge <thomas@codesourcery.com>
485 * testsuite/libgomp.fortran/reverse-offload-6.f90: Fix nvptx
486 offloading compilation.
488 2023-02-03 Tobias Burnus <tobias@codesourcery.com>
490 * target.c (gomp_target_rev): Handle mapnum == 0 and avoid
491 freeing not allocated memory.
492 * testsuite/libgomp.fortran/reverse-offload-6.f90: New test.
494 2023-02-03 Tobias Burnus <tobias@codesourcery.com>
496 * libgomp.texi (5.0 Impl. Status, gcn specifics): Update for
498 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Accept
499 reverse-offload requirement.
501 2023-02-02 Andrew Stubbs <ams@codesourcery.com>
503 * config/gcn/libgomp-gcn.h (DEFAULT_GCN_STACK_SIZE): New define.
504 (DEFAULT_TEAM_ARENA_SIZE): New define.
505 (struct heap): Move to this file.
506 (struct kernargs_abi): Likewise.
507 * config/gcn/team.c (gomp_gcn_enter_kernel): Use team arena size from
509 * libgomp.h: Include libgomp-gcn.h.
510 (TEAM_ARENA_SIZE): Remove.
511 (team_malloc): Update the error message.
512 * plugin/plugin-gcn.c (struct kernargs): Move common content to
514 (struct agent_info): Rename team arenas to ephemeral memories.
515 (struct team_arena_list): Rename ....
516 (struct ephemeral_memories_list): to this.
517 (struct heap): Delete.
518 (team_arena_size): New variable.
519 (stack_size): New variable.
520 (print_kernel_dispatch): Update debug messages.
521 (init_environment_variables): Read GCN_TEAM_ARENA_SIZE.
523 (get_team_arena): Rename ...
524 (configure_ephemeral_memories): ... to this, and set up stacks.
525 (release_team_arena): Rename ...
526 (release_ephemeral_memories): ... to this.
527 (destroy_team_arenas): Rename ...
528 (destroy_ephemeral_memories): ... to this.
529 (create_kernel_dispatch): Add num_threads parameter.
530 Adjust for kernargs_abi refactor and ephemeral memories.
531 (release_kernel_dispatch): Adjust for ephemeral memories.
532 (run_kernel): Pass thread-count to create_kernel_dispatch.
533 (GOMP_OFFLOAD_init_device): Adjust for ephemeral memories.
534 (GOMP_OFFLOAD_fini_device): Adjust for ephemeral memories.
536 2023-02-02 Tobias Burnus <tobias@codesourcery.com>
538 * libgomp.texi (OpenMP TR11): Fix item for 'strict' modifier.
540 2023-02-01 Tobias Burnus <tobias@codesourcery.com>
542 * testsuite/libgomp.fortran/allocate-3.f90: Fix ALIGN
543 usage, remove unused -fdump-tree-original.
544 * testsuite/libgomp.fortran/allocate-4.f90: New.
546 2023-02-01 Tobias Burnus <tobias@codesourcery.com>
548 * libgomp.texi (5.0 Impl. Status): Update 'requires' and 'ancestor'.
549 (GCN): Add item about 'omp requires'.
550 (nvptx): Likewise; add item about reverse offload.
552 2023-01-27 Tobias Burnus <tobias@codesourcery.com>
555 * testsuite/libgomp.fortran/has_device_addr.f90: New test.
557 2023-01-23 Tobias Burnus <tobias@codesourcery.com>
559 * libgomp.texi (OpenMP 5.0): Set non-rectangular
560 loop nest back to 'P' as Fortran support is incomplete.
562 2023-01-19 Jakub Jelinek <jakub@redhat.com>
565 * testsuite/libgomp.c/pr108459.c: New test.
567 2023-01-17 Martin Liska <mliska@suse.cz>
569 * Makefile.in: Regenerate.
570 * configure: Regenerate.
572 2023-01-07 LIU Hao <lh_mouse@126.com>
575 * config/mingw32/proc.c: Define `WIN32_LEAN_AND_MEAN` before
578 2023-01-05 Jakub Jelinek <jakub@redhat.com>
581 * testsuite/libgomp.c++/pr108286.C: New test.
583 2023-01-02 Jakub Jelinek <jakub@redhat.com>
585 * libgomp.texi: Bump @copying's copyright year.
587 2022-12-21 Chung-Lin Tang <cltang@codesourcery.com>
590 * config/nvptx/bar.c (generation_to_barrier): Remove.
591 (futex_wait,futex_wake,do_spin,do_wait): Remove.
592 (GOMP_WAIT_H): Remove.
593 (#include "../linux/bar.c"): Remove.
594 (gomp_barrier_wait_end): New function.
595 (gomp_barrier_wait): Likewise.
596 (gomp_barrier_wait_last): Likewise.
597 (gomp_team_barrier_wait_end): Likewise.
598 (gomp_team_barrier_wait): Likewise.
599 (gomp_team_barrier_wait_final): Likewise.
600 (gomp_team_barrier_wait_cancel_end): Likewise.
601 (gomp_team_barrier_wait_cancel): Likewise.
602 (gomp_team_barrier_cancel): Likewise.
603 * config/nvptx/bar.h (gomp_barrier_t): Remove waiters, lock fields.
604 (gomp_barrier_init): Remove init of waiters, lock fields.
605 (gomp_team_barrier_wake): Remove prototype, add new static inline
608 2022-12-21 Jakub Jelinek <jakub@redhat.com>
611 * testsuite/libgomp.c++/pr108180.C: New test.
613 2022-12-16 Tobias Burnus <tobias@codesourcery.com>
616 * testsuite/libgomp.fortran/allocate-4.f90: Remove
617 accidentally added file.
619 2022-12-15 Tobias Burnus <tobias@codesourcery.com>
622 * testsuite/libgomp.fortran/allocate-4.f90: New file.
624 2022-12-14 Julian Brown <julian@codesourcery.com>
626 * testsuite/libgomp.fortran/combined-directive-splitting-1.f90: New
629 2022-12-10 Tobias Burnus <tobias@codesourcery.com>
631 * libgomp.h (struct target_mem_desc): Predeclare; move
632 below after 'reverse_splay_tree_node' and add rev_array
634 (struct reverse_splay_tree_key_s, reverse_splay_compare): New.
635 (reverse_splay_tree_node, reverse_splay_tree,
636 reverse_splay_tree_key): New typedef.
637 (struct gomp_device_descr): Add mem_map_rev member.
638 * oacc-host.c (host_dispatch): NULL init .mem_map_rev.
639 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Claim
640 support for GOMP_REQUIRES_REVERSE_OFFLOAD.
641 * splay-tree.h (splay_tree_callback_stop): New typedef; like
642 splay_tree_callback but returning int not void.
643 (splay_tree_foreach_lazy): Define; like splay_tree_foreach but
644 taking splay_tree_callback_stop as argument.
645 * splay-tree.c (splay_tree_foreach_internal_lazy,
646 splay_tree_foreach_lazy): New; but early exit if callback returns
648 * target.c: Instatiate splay_tree_c with splay_tree_prefix 'reverse'.
649 (gomp_map_lookup_rev): New.
650 (gomp_load_image_to_device): Handle reverse-offload function
652 (gomp_unload_image_from_device): Free devicep->mem_map_rev.
653 (struct gomp_splay_tree_rev_lookup_data, gomp_splay_tree_rev_lookup,
654 gomp_map_rev_lookup, struct cpy_data, gomp_map_cdata_lookup_int,
655 gomp_map_cdata_lookup): New auxiliary structs and functions for
657 (gomp_target_rev): Implement reverse offloading and its mapping.
658 (gomp_target_init): Init current_device.mem_map_rev.root.
659 * testsuite/libgomp.fortran/reverse-offload-2.f90: New test.
660 * testsuite/libgomp.fortran/reverse-offload-3.f90: New test.
661 * testsuite/libgomp.fortran/reverse-offload-4.f90: New test.
662 * testsuite/libgomp.fortran/reverse-offload-5.f90: New test.
663 * testsuite/libgomp.fortran/reverse-offload-5a.f90: New test without
664 mapping of on-device allocated variables.
666 2022-12-09 Tobias Burnus <tobias@codesourcery.com>
668 * libgomp.texi (5.1 Impl. Status): Split allocate clause/directive
669 item about 'align'; mark clause as 'Y' and directive as 'N'.
670 * testsuite/libgomp.fortran/allocate-2.f90: New test.
671 * testsuite/libgomp.fortran/allocate-3.f90: New test.
673 2022-12-06 Marcel Vollweiler <marcel@codesourcery.com>
675 * config/gcn/icv-device.c (omp_get_teams_thread_limit): Added to
676 allow processing of device-specific values.
677 (omp_set_teams_thread_limit): Likewise.
679 * config/nvptx/icv-device.c (omp_get_teams_thread_limit): Likewise.
680 (omp_set_teams_thread_limit): Likewise.
682 * icv-device.c (omp_get_teams_thread_limit): Likewise.
684 (omp_set_teams_thread_limit): Likewise.
685 * icv.c (omp_set_teams_thread_limit): Removed.
686 (omp_get_teams_thread_limit): Likewise.
688 * libgomp.texi: Updated documentation for nvptx and gcn corresponding
689 to the limitation of the number of teams.
690 * plugin/plugin-gcn.c (limit_teams): New helper function that limits
691 the number of teams by twice the number of compute units.
692 (parse_target_attributes): Limit the number of teams on gcn offload
694 * target.c (get_gomp_offload_icvs): Added teams_thread_limit_var
696 (gomp_load_image_to_device): Added a size check for the ICVs struct
698 (gomp_copy_back_icvs): New function that is used in GOMP_target_ext to
699 copy back the ICV values from device to host.
700 (GOMP_target_ext): Update the number of teams and threads in the kernel
701 args also considering device-specific values.
702 * testsuite/libgomp.c-c++-common/icv-4.c: Fixed an error in the reading
703 of OMP_TEAMS_THREAD_LIMIT from the environment.
704 * testsuite/libgomp.c-c++-common/icv-5.c: Extended.
705 * testsuite/libgomp.c-c++-common/icv-6.c: Extended.
706 * testsuite/libgomp.c-c++-common/icv-7.c: Extended.
707 * testsuite/libgomp.c-c++-common/icv-9.c: New test.
708 * testsuite/libgomp.fortran/icv-5.f90: New test.
709 * testsuite/libgomp.fortran/icv-6.f90: New test.
711 2022-12-06 Tobias Burnus <tobias@codesourcery.com>
713 * libgomp.texi (OpenMP 5.2): Add missing 'the'.
714 (TR11): Add missing '@tab N @tab'.
716 2022-11-30 Tobias Burnus <tobias@codesourcery.com>
718 * libgomp.texi (OpenMP Context Selectors): Add 'gfx803' to gcn's isa.
720 2022-11-30 Paul-Antoine Arras <pa@codesourcery.com>
722 * testsuite/libgomp.c/declare-variant-4-fiji.c: New test.
723 * testsuite/libgomp.c/declare-variant-4-gfx803.c: New test.
724 * testsuite/libgomp.c/declare-variant-4-gfx900.c: New test.
725 * testsuite/libgomp.c/declare-variant-4-gfx906.c: New test.
726 * testsuite/libgomp.c/declare-variant-4-gfx908.c: New test.
727 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: New test.
728 * testsuite/libgomp.c/declare-variant-4.h: New header file.
730 2022-11-28 Tobias Burnus <tobias@codesourcery.com>
732 * libgomp.texi (OpenMP 5.2): Mark end-directive as Y.
734 2022-11-25 Sandra Loosemore <sandra@codesourcery.com>
736 * testsuite/lib/libgomp.exp: Load scanoffloadipa.exp library.
737 * testsuite/libgomp.c/target-simd-clone-1.c: New.
738 * testsuite/libgomp.c/target-simd-clone-2.c: New.
739 * testsuite/libgomp.c/target-simd-clone-3.c: New.
741 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
743 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Use unsigned int
744 for 'i' to match 'fn_entries'; regard absent GOMP_REV_OFFLOAD_VAR
745 as valid and the code having no reverse-offload code.
746 * testsuite/libgomp.c-c++-common/reverse-offload-2.c: New test.
748 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
750 * libgomp.texi (OpenMP Implementation Status): Add three 5.1 items
751 and status for Technical Report (TR) 11.
753 2022-11-21 Tobias Burnus <tobias@codesourcery.com>
755 * config/gcn/libgomp-gcn.h (struct output):
756 Remove 'msg_u64' from the union, change
757 value_u64[2] to value_u64[6].
758 * config/gcn/target.c (GOMP_target_ext): Update accordingly.
759 * plugin/plugin-gcn.c (process_reverse_offload, console_output):
762 2022-11-19 Tobias Burnus <tobias@codesourcery.com>
764 * config/gcn/libgomp-gcn.h: New file; contains
765 struct output, declared previously in plugin-gcn.c.
766 * config/gcn/target.c: Include it.
767 (GOMP_ADDITIONAL_ICVS): Declare as extern var.
768 (GOMP_target_ext): Handle reverse offload.
769 * plugin/plugin-gcn.c: Include libgomp-gcn.h.
770 (struct kernargs): Replace struct def by the one
771 from libgomp-gcn.h for output_data.
772 (process_reverse_offload): New.
773 (console_output): Call it.
775 2022-11-16 Tobias Burnus <tobias@codesourcery.com>
776 Andrew Stubbs <ams@codesourcery.com>
778 * config/gcn/team.c (gomp_gcn_enter_kernel): Use
779 __builtin_gcn_kernarg_ptr instead of asm ("s8").
781 2022-11-14 Martin Liska <mliska@suse.cz>
784 2022-11-14 Martin Liska <mliska@suse.cz>
786 * doc/amd-radeon-gcn.rst: New file.
787 * doc/conf.py: New file.
788 * doc/copyright.rst: New file.
789 * doc/cuda-streams-usage.rst: New file.
790 * doc/enabling-openacc.rst: New file.
791 * doc/enabling-openmp.rst: New file.
792 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
793 * doc/first-invocation-openacc-library-api.rst: New file.
794 * doc/funding.rst: New file.
795 * doc/general-public-license-3.rst: New file.
796 * doc/gnu-free-documentation-license.rst: New file.
797 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
798 * doc/index.rst: New file.
799 * doc/indices-and-tables.rst: New file.
800 * doc/introduction.rst: New file.
801 * doc/memory-allocation-with-libmemkind.rst: New file.
802 * doc/nvptx.rst: New file.
803 * doc/offload-target-specifics.rst: New file.
804 * doc/openacc-environment-variables.rst: New file.
805 * doc/openacc-environment-variables/accdevicenum.rst: New file.
806 * doc/openacc-environment-variables/accdevicetype.rst: New file.
807 * doc/openacc-environment-variables/accproflib.rst: New file.
808 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
809 * doc/openacc-introduction.rst: New file.
810 * doc/openacc-library-and-environment-variables.rst: New file.
811 * doc/openacc-library-interoperability.rst: New file.
812 * doc/openacc-profiling-interface.rst: New file.
813 * doc/openacc-runtime-library-routines.rst: New file.
814 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
815 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
816 * doc/openacc-runtime-library-routines/accattach.rst: New file.
817 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
818 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
819 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
820 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
821 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
822 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
823 * doc/openacc-runtime-library-routines/accfree.rst: New file.
824 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
825 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
826 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
827 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
828 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
829 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
830 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
831 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
832 * doc/openacc-runtime-library-routines/accinit.rst: New file.
833 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
834 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
835 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
836 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
837 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
838 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
839 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
840 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
841 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
842 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
843 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
844 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
845 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
846 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
847 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
848 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
849 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
850 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
851 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
852 * doc/openacc-runtime-library-routines/accwait.rst: New file.
853 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
854 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
855 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
856 * doc/openmp-context-selectors.rst: New file.
857 * doc/openmp-environment-variables.rst: New file.
858 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
859 * doc/openmp-environment-variables/gompdebug.rst: New file.
860 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
861 * doc/openmp-environment-variables/gompspincount.rst: New file.
862 * doc/openmp-environment-variables/gompstacksize.rst: New file.
863 * doc/openmp-environment-variables/ompcancellation.rst: New file.
864 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
865 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
866 * doc/openmp-environment-variables/ompdynamic.rst: New file.
867 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
868 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
869 * doc/openmp-environment-variables/ompnested.rst: New file.
870 * doc/openmp-environment-variables/ompnumteams.rst: New file.
871 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
872 * doc/openmp-environment-variables/ompplaces.rst: New file.
873 * doc/openmp-environment-variables/ompprocbind.rst: New file.
874 * doc/openmp-environment-variables/ompschedule.rst: New file.
875 * doc/openmp-environment-variables/ompstacksize.rst: New file.
876 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
877 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
878 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
879 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
880 * doc/openmp-implementation-specifics.rst: New file.
881 * doc/openmp-implementation-status.rst: New file.
882 * doc/openmp-implementation-status/openmp-45.rst: New file.
883 * doc/openmp-implementation-status/openmp-50.rst: New file.
884 * doc/openmp-implementation-status/openmp-51.rst: New file.
885 * doc/openmp-implementation-status/openmp-52.rst: New file.
886 * doc/openmp-runtime-library-routines.rst: New file.
887 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
888 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
889 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
890 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
891 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
892 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
893 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
894 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
895 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
896 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
897 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
898 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
899 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
900 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
901 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
902 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
903 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
904 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
905 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
906 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
907 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
908 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
909 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
910 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
911 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
912 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
913 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
914 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
915 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
916 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
917 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
918 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
919 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
920 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
921 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
922 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
923 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
924 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
925 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
926 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
927 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
928 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
929 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
930 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
931 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
932 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
933 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
934 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
935 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
936 * doc/reporting-bugs.rst: New file.
937 * doc/the-libgomp-abi.rst: New file.
938 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
939 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
940 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
941 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
943 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
944 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
945 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
946 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
947 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
948 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
949 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
950 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
951 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
952 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
953 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
955 2022-11-14 Martin Liska <mliska@suse.cz>
958 2022-11-14 Martin Liska <mliska@suse.cz>
960 * Makefile.in: Support Sphinx based documentation.
962 2022-11-14 Martin Liska <mliska@suse.cz>
965 2022-11-14 Martin Liska <mliska@suse.cz>
967 * libgomp.texi: Removed.
969 2022-11-14 Martin Liska <mliska@suse.cz>
972 2022-11-14 Martin Liska <mliska@suse.cz>
974 * Makefile.in: Support --with-sphinx-build.
975 * configure.ac: Likewise..
976 * configure: Regenerate.
978 2022-11-14 Martin Liska <mliska@suse.cz>
981 2022-11-09 Martin Liska <mliska@suse.cz>
983 * Makefile.in: Build info pages conditionally.
985 2022-11-14 Martin Liska <mliska@suse.cz>
988 2022-11-14 Martin Liska <mliska@suse.cz>
990 * doc/amd-radeon-gcn.rst:
991 Add trailing newline.
993 Add trailing newline.
994 * doc/cuda-streams-usage.rst:
995 Add trailing newline.
996 * doc/enabling-openacc.rst:
997 Add trailing newline.
998 * doc/enabling-openmp.rst:
999 Add trailing newline.
1000 * doc/first-invocation-nvidia-cublas-library-api.rst:
1001 Add trailing newline.
1002 * doc/first-invocation-openacc-library-api.rst:
1003 Add trailing newline.
1005 Add trailing newline.
1006 * doc/general-public-license-3.rst:
1007 Add trailing newline.
1008 * doc/gnu-free-documentation-license.rst:
1009 Add trailing newline.
1010 * doc/implementation-status-and-implementation-defined-behavior.rst:
1011 Add trailing newline.
1013 Add trailing newline.
1014 * doc/indices-and-tables.rst:
1015 Add trailing newline.
1016 * doc/introduction.rst:
1017 Add trailing newline.
1018 * doc/memory-allocation-with-libmemkind.rst:
1019 Add trailing newline.
1021 Add trailing newline.
1022 * doc/offload-target-specifics.rst:
1023 Add trailing newline.
1024 * doc/openacc-environment-variables.rst:
1025 Add trailing newline.
1026 * doc/openacc-environment-variables/accdevicenum.rst:
1027 Add trailing newline.
1028 * doc/openacc-environment-variables/accdevicetype.rst:
1029 Add trailing newline.
1030 * doc/openacc-environment-variables/accproflib.rst:
1031 Add trailing newline.
1032 * doc/openacc-environment-variables/gccaccnotify.rst:
1033 Add trailing newline.
1034 * doc/openacc-introduction.rst:
1035 Add trailing newline.
1036 * doc/openacc-library-and-environment-variables.rst:
1037 Add trailing newline.
1038 * doc/openacc-library-interoperability.rst:
1039 Add trailing newline.
1040 * doc/openacc-profiling-interface.rst:
1041 Add trailing newline.
1042 * doc/openacc-runtime-library-routines.rst:
1043 Add trailing newline.
1044 * doc/openacc-runtime-library-routines/accasynctest.rst:
1045 Add trailing newline.
1046 * doc/openacc-runtime-library-routines/accasynctestall.rst:
1047 Add trailing newline.
1048 * doc/openacc-runtime-library-routines/accattach.rst:
1049 Add trailing newline.
1050 * doc/openacc-runtime-library-routines/acccopyin.rst:
1051 Add trailing newline.
1052 * doc/openacc-runtime-library-routines/acccopyout.rst:
1053 Add trailing newline.
1054 * doc/openacc-runtime-library-routines/acccreate.rst:
1055 Add trailing newline.
1056 * doc/openacc-runtime-library-routines/accdelete.rst:
1057 Add trailing newline.
1058 * doc/openacc-runtime-library-routines/accdetach.rst:
1059 Add trailing newline.
1060 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
1061 Add trailing newline.
1062 * doc/openacc-runtime-library-routines/accfree.rst:
1063 Add trailing newline.
1064 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
1065 Add trailing newline.
1066 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
1067 Add trailing newline.
1068 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
1069 Add trailing newline.
1070 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
1071 Add trailing newline.
1072 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
1073 Add trailing newline.
1074 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
1075 Add trailing newline.
1076 * doc/openacc-runtime-library-routines/accgetproperty.rst:
1077 Add trailing newline.
1078 * doc/openacc-runtime-library-routines/acchostptr.rst:
1079 Add trailing newline.
1080 * doc/openacc-runtime-library-routines/accinit.rst:
1081 Add trailing newline.
1082 * doc/openacc-runtime-library-routines/accispresent.rst:
1083 Add trailing newline.
1084 * doc/openacc-runtime-library-routines/accmalloc.rst:
1085 Add trailing newline.
1086 * doc/openacc-runtime-library-routines/accmapdata.rst:
1087 Add trailing newline.
1088 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
1089 Add trailing newline.
1090 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
1091 Add trailing newline.
1092 * doc/openacc-runtime-library-routines/accondevice.rst:
1093 Add trailing newline.
1094 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
1095 Add trailing newline.
1096 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
1097 Add trailing newline.
1098 * doc/openacc-runtime-library-routines/accproflookup.rst:
1099 Add trailing newline.
1100 * doc/openacc-runtime-library-routines/accprofregister.rst:
1101 Add trailing newline.
1102 * doc/openacc-runtime-library-routines/accprofunregister.rst:
1103 Add trailing newline.
1104 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
1105 Add trailing newline.
1106 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
1107 Add trailing newline.
1108 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
1109 Add trailing newline.
1110 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
1111 Add trailing newline.
1112 * doc/openacc-runtime-library-routines/accshutdown.rst:
1113 Add trailing newline.
1114 * doc/openacc-runtime-library-routines/accunmapdata.rst:
1115 Add trailing newline.
1116 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
1117 Add trailing newline.
1118 * doc/openacc-runtime-library-routines/accupdateself.rst:
1119 Add trailing newline.
1120 * doc/openacc-runtime-library-routines/accwait.rst:
1121 Add trailing newline.
1122 * doc/openacc-runtime-library-routines/accwaitall.rst:
1123 Add trailing newline.
1124 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
1125 Add trailing newline.
1126 * doc/openacc-runtime-library-routines/accwaitasync.rst:
1127 Add trailing newline.
1128 * doc/openmp-context-selectors.rst:
1129 Add trailing newline.
1130 * doc/openmp-environment-variables.rst:
1131 Add trailing newline.
1132 * doc/openmp-environment-variables/gompcpuaffinity.rst:
1133 Add trailing newline.
1134 * doc/openmp-environment-variables/gompdebug.rst:
1135 Add trailing newline.
1136 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
1137 Add trailing newline.
1138 * doc/openmp-environment-variables/gompspincount.rst:
1139 Add trailing newline.
1140 * doc/openmp-environment-variables/gompstacksize.rst:
1141 Add trailing newline.
1142 * doc/openmp-environment-variables/ompcancellation.rst:
1143 Add trailing newline.
1144 * doc/openmp-environment-variables/ompdefaultdevice.rst:
1145 Add trailing newline.
1146 * doc/openmp-environment-variables/ompdisplayenv.rst:
1147 Add trailing newline.
1148 * doc/openmp-environment-variables/ompdynamic.rst:
1149 Add trailing newline.
1150 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
1151 Add trailing newline.
1152 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
1153 Add trailing newline.
1154 * doc/openmp-environment-variables/ompnested.rst:
1155 Add trailing newline.
1156 * doc/openmp-environment-variables/ompnumteams.rst:
1157 Add trailing newline.
1158 * doc/openmp-environment-variables/ompnumthreads.rst:
1159 Add trailing newline.
1160 * doc/openmp-environment-variables/ompplaces.rst:
1161 Add trailing newline.
1162 * doc/openmp-environment-variables/ompprocbind.rst:
1163 Add trailing newline.
1164 * doc/openmp-environment-variables/ompschedule.rst:
1165 Add trailing newline.
1166 * doc/openmp-environment-variables/ompstacksize.rst:
1167 Add trailing newline.
1168 * doc/openmp-environment-variables/omptargetoffload.rst:
1169 Add trailing newline.
1170 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
1171 Add trailing newline.
1172 * doc/openmp-environment-variables/ompthreadlimit.rst:
1173 Add trailing newline.
1174 * doc/openmp-environment-variables/ompwaitpolicy.rst:
1175 Add trailing newline.
1176 * doc/openmp-implementation-specifics.rst:
1177 Add trailing newline.
1178 * doc/openmp-implementation-status.rst:
1179 Add trailing newline.
1180 * doc/openmp-implementation-status/openmp-45.rst:
1181 Add trailing newline.
1182 * doc/openmp-implementation-status/openmp-50.rst:
1183 Add trailing newline.
1184 * doc/openmp-implementation-status/openmp-51.rst:
1185 Add trailing newline.
1186 * doc/openmp-implementation-status/openmp-52.rst:
1187 Add trailing newline.
1188 * doc/openmp-runtime-library-routines.rst:
1189 Add trailing newline.
1190 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
1191 Add trailing newline.
1192 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
1193 Add trailing newline.
1194 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
1195 Add trailing newline.
1196 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
1197 Add trailing newline.
1198 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
1199 Add trailing newline.
1200 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
1201 Add trailing newline.
1202 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
1203 Add trailing newline.
1204 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
1205 Add trailing newline.
1206 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
1207 Add trailing newline.
1208 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
1209 Add trailing newline.
1210 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
1211 Add trailing newline.
1212 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
1213 Add trailing newline.
1214 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
1215 Add trailing newline.
1216 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
1217 Add trailing newline.
1218 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
1219 Add trailing newline.
1220 * doc/openmp-runtime-library-routines/ompgetnested.rst:
1221 Add trailing newline.
1222 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
1223 Add trailing newline.
1224 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
1225 Add trailing newline.
1226 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
1227 Add trailing newline.
1228 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
1229 Add trailing newline.
1230 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
1231 Add trailing newline.
1232 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
1233 Add trailing newline.
1234 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
1235 Add trailing newline.
1236 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
1237 Add trailing newline.
1238 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
1239 Add trailing newline.
1240 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
1241 Add trailing newline.
1242 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
1243 Add trailing newline.
1244 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
1245 Add trailing newline.
1246 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
1247 Add trailing newline.
1248 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
1249 Add trailing newline.
1250 * doc/openmp-runtime-library-routines/ompinfinal.rst:
1251 Add trailing newline.
1252 * doc/openmp-runtime-library-routines/ompinitlock.rst:
1253 Add trailing newline.
1254 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
1255 Add trailing newline.
1256 * doc/openmp-runtime-library-routines/ompinparallel.rst:
1257 Add trailing newline.
1258 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
1259 Add trailing newline.
1260 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
1261 Add trailing newline.
1262 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
1263 Add trailing newline.
1264 * doc/openmp-runtime-library-routines/ompsetlock.rst:
1265 Add trailing newline.
1266 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
1267 Add trailing newline.
1268 * doc/openmp-runtime-library-routines/ompsetnested.rst:
1269 Add trailing newline.
1270 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
1271 Add trailing newline.
1272 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
1273 Add trailing newline.
1274 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
1275 Add trailing newline.
1276 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
1277 Add trailing newline.
1278 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
1279 Add trailing newline.
1280 * doc/openmp-runtime-library-routines/omptestlock.rst:
1281 Add trailing newline.
1282 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
1283 Add trailing newline.
1284 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
1285 Add trailing newline.
1286 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
1287 Add trailing newline.
1288 * doc/reporting-bugs.rst:
1289 Add trailing newline.
1290 * doc/the-libgomp-abi.rst:
1291 Add trailing newline.
1292 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
1293 Add trailing newline.
1294 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
1295 Add trailing newline.
1296 * doc/the-libgomp-abi/implementing-critical-construct.rst:
1297 Add trailing newline.
1298 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1299 Add trailing newline.
1300 * doc/the-libgomp-abi/implementing-flush-construct.rst:
1301 Add trailing newline.
1302 * doc/the-libgomp-abi/implementing-for-construct.rst:
1303 Add trailing newline.
1304 * doc/the-libgomp-abi/implementing-master-construct.rst:
1305 Add trailing newline.
1306 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
1307 Add trailing newline.
1308 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
1309 Add trailing newline.
1310 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
1311 Add trailing newline.
1312 * doc/the-libgomp-abi/implementing-private-clause.rst:
1313 Add trailing newline.
1314 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
1315 Add trailing newline.
1316 * doc/the-libgomp-abi/implementing-sections-construct.rst:
1317 Add trailing newline.
1318 * doc/the-libgomp-abi/implementing-single-construct.rst:
1319 Add trailing newline.
1320 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
1321 Add trailing newline.
1323 2022-11-14 Martin Liska <mliska@suse.cz>
1326 2022-11-09 Martin Liska <mliska@suse.cz>
1328 * Makefile.in: Add missing HAS_SPHINX_BUILD.
1330 2022-11-14 Martin Liska <mliska@suse.cz>
1333 2022-11-14 Martin Liska <mliska@suse.cz>
1335 * doc/conf.py: Add newline at last line.
1337 2022-11-14 Martin Liska <mliska@suse.cz>
1340 2022-11-14 Martin Liska <mliska@suse.cz>
1343 * configure: Regenerate.
1344 * configure.ac: Always set sphinx-build.
1346 2022-11-13 Martin Liska <mliska@suse.cz>
1349 * configure: Regenerate.
1350 * configure.ac: Always set sphinx-build.
1352 2022-11-12 Jakub Jelinek <jakub@redhat.com>
1355 * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
1356 unsigned long. Change type of upper from unsigned to unsigned long.
1358 2022-11-10 Martin Liska <mliska@suse.cz>
1360 * doc/conf.py: Add newline at last line.
1362 2022-11-09 Martin Liska <mliska@suse.cz>
1364 * Makefile.in: Add missing HAS_SPHINX_BUILD.
1366 2022-11-09 Martin Liska <mliska@suse.cz>
1368 * doc/amd-radeon-gcn.rst:
1369 Add trailing newline.
1370 * doc/copyright.rst:
1371 Add trailing newline.
1372 * doc/cuda-streams-usage.rst:
1373 Add trailing newline.
1374 * doc/enabling-openacc.rst:
1375 Add trailing newline.
1376 * doc/enabling-openmp.rst:
1377 Add trailing newline.
1378 * doc/first-invocation-nvidia-cublas-library-api.rst:
1379 Add trailing newline.
1380 * doc/first-invocation-openacc-library-api.rst:
1381 Add trailing newline.
1383 Add trailing newline.
1384 * doc/general-public-license-3.rst:
1385 Add trailing newline.
1386 * doc/gnu-free-documentation-license.rst:
1387 Add trailing newline.
1388 * doc/implementation-status-and-implementation-defined-behavior.rst:
1389 Add trailing newline.
1391 Add trailing newline.
1392 * doc/indices-and-tables.rst:
1393 Add trailing newline.
1394 * doc/introduction.rst:
1395 Add trailing newline.
1396 * doc/memory-allocation-with-libmemkind.rst:
1397 Add trailing newline.
1399 Add trailing newline.
1400 * doc/offload-target-specifics.rst:
1401 Add trailing newline.
1402 * doc/openacc-environment-variables.rst:
1403 Add trailing newline.
1404 * doc/openacc-environment-variables/accdevicenum.rst:
1405 Add trailing newline.
1406 * doc/openacc-environment-variables/accdevicetype.rst:
1407 Add trailing newline.
1408 * doc/openacc-environment-variables/accproflib.rst:
1409 Add trailing newline.
1410 * doc/openacc-environment-variables/gccaccnotify.rst:
1411 Add trailing newline.
1412 * doc/openacc-introduction.rst:
1413 Add trailing newline.
1414 * doc/openacc-library-and-environment-variables.rst:
1415 Add trailing newline.
1416 * doc/openacc-library-interoperability.rst:
1417 Add trailing newline.
1418 * doc/openacc-profiling-interface.rst:
1419 Add trailing newline.
1420 * doc/openacc-runtime-library-routines.rst:
1421 Add trailing newline.
1422 * doc/openacc-runtime-library-routines/accasynctest.rst:
1423 Add trailing newline.
1424 * doc/openacc-runtime-library-routines/accasynctestall.rst:
1425 Add trailing newline.
1426 * doc/openacc-runtime-library-routines/accattach.rst:
1427 Add trailing newline.
1428 * doc/openacc-runtime-library-routines/acccopyin.rst:
1429 Add trailing newline.
1430 * doc/openacc-runtime-library-routines/acccopyout.rst:
1431 Add trailing newline.
1432 * doc/openacc-runtime-library-routines/acccreate.rst:
1433 Add trailing newline.
1434 * doc/openacc-runtime-library-routines/accdelete.rst:
1435 Add trailing newline.
1436 * doc/openacc-runtime-library-routines/accdetach.rst:
1437 Add trailing newline.
1438 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
1439 Add trailing newline.
1440 * doc/openacc-runtime-library-routines/accfree.rst:
1441 Add trailing newline.
1442 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
1443 Add trailing newline.
1444 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
1445 Add trailing newline.
1446 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
1447 Add trailing newline.
1448 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
1449 Add trailing newline.
1450 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
1451 Add trailing newline.
1452 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
1453 Add trailing newline.
1454 * doc/openacc-runtime-library-routines/accgetproperty.rst:
1455 Add trailing newline.
1456 * doc/openacc-runtime-library-routines/acchostptr.rst:
1457 Add trailing newline.
1458 * doc/openacc-runtime-library-routines/accinit.rst:
1459 Add trailing newline.
1460 * doc/openacc-runtime-library-routines/accispresent.rst:
1461 Add trailing newline.
1462 * doc/openacc-runtime-library-routines/accmalloc.rst:
1463 Add trailing newline.
1464 * doc/openacc-runtime-library-routines/accmapdata.rst:
1465 Add trailing newline.
1466 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
1467 Add trailing newline.
1468 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
1469 Add trailing newline.
1470 * doc/openacc-runtime-library-routines/accondevice.rst:
1471 Add trailing newline.
1472 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
1473 Add trailing newline.
1474 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
1475 Add trailing newline.
1476 * doc/openacc-runtime-library-routines/accproflookup.rst:
1477 Add trailing newline.
1478 * doc/openacc-runtime-library-routines/accprofregister.rst:
1479 Add trailing newline.
1480 * doc/openacc-runtime-library-routines/accprofunregister.rst:
1481 Add trailing newline.
1482 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
1483 Add trailing newline.
1484 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
1485 Add trailing newline.
1486 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
1487 Add trailing newline.
1488 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
1489 Add trailing newline.
1490 * doc/openacc-runtime-library-routines/accshutdown.rst:
1491 Add trailing newline.
1492 * doc/openacc-runtime-library-routines/accunmapdata.rst:
1493 Add trailing newline.
1494 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
1495 Add trailing newline.
1496 * doc/openacc-runtime-library-routines/accupdateself.rst:
1497 Add trailing newline.
1498 * doc/openacc-runtime-library-routines/accwait.rst:
1499 Add trailing newline.
1500 * doc/openacc-runtime-library-routines/accwaitall.rst:
1501 Add trailing newline.
1502 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
1503 Add trailing newline.
1504 * doc/openacc-runtime-library-routines/accwaitasync.rst:
1505 Add trailing newline.
1506 * doc/openmp-context-selectors.rst:
1507 Add trailing newline.
1508 * doc/openmp-environment-variables.rst:
1509 Add trailing newline.
1510 * doc/openmp-environment-variables/gompcpuaffinity.rst:
1511 Add trailing newline.
1512 * doc/openmp-environment-variables/gompdebug.rst:
1513 Add trailing newline.
1514 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
1515 Add trailing newline.
1516 * doc/openmp-environment-variables/gompspincount.rst:
1517 Add trailing newline.
1518 * doc/openmp-environment-variables/gompstacksize.rst:
1519 Add trailing newline.
1520 * doc/openmp-environment-variables/ompcancellation.rst:
1521 Add trailing newline.
1522 * doc/openmp-environment-variables/ompdefaultdevice.rst:
1523 Add trailing newline.
1524 * doc/openmp-environment-variables/ompdisplayenv.rst:
1525 Add trailing newline.
1526 * doc/openmp-environment-variables/ompdynamic.rst:
1527 Add trailing newline.
1528 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
1529 Add trailing newline.
1530 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
1531 Add trailing newline.
1532 * doc/openmp-environment-variables/ompnested.rst:
1533 Add trailing newline.
1534 * doc/openmp-environment-variables/ompnumteams.rst:
1535 Add trailing newline.
1536 * doc/openmp-environment-variables/ompnumthreads.rst:
1537 Add trailing newline.
1538 * doc/openmp-environment-variables/ompplaces.rst:
1539 Add trailing newline.
1540 * doc/openmp-environment-variables/ompprocbind.rst:
1541 Add trailing newline.
1542 * doc/openmp-environment-variables/ompschedule.rst:
1543 Add trailing newline.
1544 * doc/openmp-environment-variables/ompstacksize.rst:
1545 Add trailing newline.
1546 * doc/openmp-environment-variables/omptargetoffload.rst:
1547 Add trailing newline.
1548 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
1549 Add trailing newline.
1550 * doc/openmp-environment-variables/ompthreadlimit.rst:
1551 Add trailing newline.
1552 * doc/openmp-environment-variables/ompwaitpolicy.rst:
1553 Add trailing newline.
1554 * doc/openmp-implementation-specifics.rst:
1555 Add trailing newline.
1556 * doc/openmp-implementation-status.rst:
1557 Add trailing newline.
1558 * doc/openmp-implementation-status/openmp-45.rst:
1559 Add trailing newline.
1560 * doc/openmp-implementation-status/openmp-50.rst:
1561 Add trailing newline.
1562 * doc/openmp-implementation-status/openmp-51.rst:
1563 Add trailing newline.
1564 * doc/openmp-implementation-status/openmp-52.rst:
1565 Add trailing newline.
1566 * doc/openmp-runtime-library-routines.rst:
1567 Add trailing newline.
1568 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
1569 Add trailing newline.
1570 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
1571 Add trailing newline.
1572 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
1573 Add trailing newline.
1574 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
1575 Add trailing newline.
1576 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
1577 Add trailing newline.
1578 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
1579 Add trailing newline.
1580 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
1581 Add trailing newline.
1582 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
1583 Add trailing newline.
1584 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
1585 Add trailing newline.
1586 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
1587 Add trailing newline.
1588 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
1589 Add trailing newline.
1590 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
1591 Add trailing newline.
1592 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
1593 Add trailing newline.
1594 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
1595 Add trailing newline.
1596 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
1597 Add trailing newline.
1598 * doc/openmp-runtime-library-routines/ompgetnested.rst:
1599 Add trailing newline.
1600 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
1601 Add trailing newline.
1602 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
1603 Add trailing newline.
1604 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
1605 Add trailing newline.
1606 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
1607 Add trailing newline.
1608 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
1609 Add trailing newline.
1610 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
1611 Add trailing newline.
1612 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
1613 Add trailing newline.
1614 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
1615 Add trailing newline.
1616 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
1617 Add trailing newline.
1618 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
1619 Add trailing newline.
1620 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
1621 Add trailing newline.
1622 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
1623 Add trailing newline.
1624 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
1625 Add trailing newline.
1626 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
1627 Add trailing newline.
1628 * doc/openmp-runtime-library-routines/ompinfinal.rst:
1629 Add trailing newline.
1630 * doc/openmp-runtime-library-routines/ompinitlock.rst:
1631 Add trailing newline.
1632 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
1633 Add trailing newline.
1634 * doc/openmp-runtime-library-routines/ompinparallel.rst:
1635 Add trailing newline.
1636 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
1637 Add trailing newline.
1638 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
1639 Add trailing newline.
1640 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
1641 Add trailing newline.
1642 * doc/openmp-runtime-library-routines/ompsetlock.rst:
1643 Add trailing newline.
1644 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
1645 Add trailing newline.
1646 * doc/openmp-runtime-library-routines/ompsetnested.rst:
1647 Add trailing newline.
1648 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
1649 Add trailing newline.
1650 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
1651 Add trailing newline.
1652 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
1653 Add trailing newline.
1654 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
1655 Add trailing newline.
1656 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
1657 Add trailing newline.
1658 * doc/openmp-runtime-library-routines/omptestlock.rst:
1659 Add trailing newline.
1660 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
1661 Add trailing newline.
1662 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
1663 Add trailing newline.
1664 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
1665 Add trailing newline.
1666 * doc/reporting-bugs.rst:
1667 Add trailing newline.
1668 * doc/the-libgomp-abi.rst:
1669 Add trailing newline.
1670 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
1671 Add trailing newline.
1672 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
1673 Add trailing newline.
1674 * doc/the-libgomp-abi/implementing-critical-construct.rst:
1675 Add trailing newline.
1676 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1677 Add trailing newline.
1678 * doc/the-libgomp-abi/implementing-flush-construct.rst:
1679 Add trailing newline.
1680 * doc/the-libgomp-abi/implementing-for-construct.rst:
1681 Add trailing newline.
1682 * doc/the-libgomp-abi/implementing-master-construct.rst:
1683 Add trailing newline.
1684 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
1685 Add trailing newline.
1686 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
1687 Add trailing newline.
1688 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
1689 Add trailing newline.
1690 * doc/the-libgomp-abi/implementing-private-clause.rst:
1691 Add trailing newline.
1692 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
1693 Add trailing newline.
1694 * doc/the-libgomp-abi/implementing-sections-construct.rst:
1695 Add trailing newline.
1696 * doc/the-libgomp-abi/implementing-single-construct.rst:
1697 Add trailing newline.
1698 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
1699 Add trailing newline.
1701 2022-11-09 Martin Liska <mliska@suse.cz>
1703 * Makefile.in: Build info pages conditionally.
1705 2022-11-09 Martin Liska <mliska@suse.cz>
1707 * Makefile.in: Support --with-sphinx-build.
1708 * configure.ac: Likewise..
1709 * configure: Regenerate.
1711 2022-11-09 Martin Liska <mliska@suse.cz>
1713 * libgomp.texi: Removed.
1715 2022-11-09 Martin Liska <mliska@suse.cz>
1717 * Makefile.in: Support Sphinx based documentation.
1719 2022-11-09 Martin Liska <mliska@suse.cz>
1721 * doc/amd-radeon-gcn.rst: New file.
1722 * doc/conf.py: New file.
1723 * doc/copyright.rst: New file.
1724 * doc/cuda-streams-usage.rst: New file.
1725 * doc/enabling-openacc.rst: New file.
1726 * doc/enabling-openmp.rst: New file.
1727 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
1728 * doc/first-invocation-openacc-library-api.rst: New file.
1729 * doc/funding.rst: New file.
1730 * doc/general-public-license-3.rst: New file.
1731 * doc/gnu-free-documentation-license.rst: New file.
1732 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
1733 * doc/index.rst: New file.
1734 * doc/indices-and-tables.rst: New file.
1735 * doc/introduction.rst: New file.
1736 * doc/memory-allocation-with-libmemkind.rst: New file.
1737 * doc/nvptx.rst: New file.
1738 * doc/offload-target-specifics.rst: New file.
1739 * doc/openacc-environment-variables.rst: New file.
1740 * doc/openacc-environment-variables/accdevicenum.rst: New file.
1741 * doc/openacc-environment-variables/accdevicetype.rst: New file.
1742 * doc/openacc-environment-variables/accproflib.rst: New file.
1743 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
1744 * doc/openacc-introduction.rst: New file.
1745 * doc/openacc-library-and-environment-variables.rst: New file.
1746 * doc/openacc-library-interoperability.rst: New file.
1747 * doc/openacc-profiling-interface.rst: New file.
1748 * doc/openacc-runtime-library-routines.rst: New file.
1749 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
1750 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
1751 * doc/openacc-runtime-library-routines/accattach.rst: New file.
1752 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
1753 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
1754 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
1755 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
1756 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
1757 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
1758 * doc/openacc-runtime-library-routines/accfree.rst: New file.
1759 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
1760 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
1761 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
1762 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
1763 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
1764 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
1765 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
1766 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
1767 * doc/openacc-runtime-library-routines/accinit.rst: New file.
1768 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
1769 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
1770 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
1771 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
1772 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
1773 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
1774 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
1775 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
1776 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
1777 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
1778 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
1779 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1780 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
1781 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
1782 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
1783 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
1784 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
1785 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
1786 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
1787 * doc/openacc-runtime-library-routines/accwait.rst: New file.
1788 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
1789 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
1790 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
1791 * doc/openmp-context-selectors.rst: New file.
1792 * doc/openmp-environment-variables.rst: New file.
1793 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
1794 * doc/openmp-environment-variables/gompdebug.rst: New file.
1795 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
1796 * doc/openmp-environment-variables/gompspincount.rst: New file.
1797 * doc/openmp-environment-variables/gompstacksize.rst: New file.
1798 * doc/openmp-environment-variables/ompcancellation.rst: New file.
1799 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
1800 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
1801 * doc/openmp-environment-variables/ompdynamic.rst: New file.
1802 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
1803 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
1804 * doc/openmp-environment-variables/ompnested.rst: New file.
1805 * doc/openmp-environment-variables/ompnumteams.rst: New file.
1806 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
1807 * doc/openmp-environment-variables/ompplaces.rst: New file.
1808 * doc/openmp-environment-variables/ompprocbind.rst: New file.
1809 * doc/openmp-environment-variables/ompschedule.rst: New file.
1810 * doc/openmp-environment-variables/ompstacksize.rst: New file.
1811 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
1812 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
1813 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
1814 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
1815 * doc/openmp-implementation-specifics.rst: New file.
1816 * doc/openmp-implementation-status.rst: New file.
1817 * doc/openmp-implementation-status/openmp-45.rst: New file.
1818 * doc/openmp-implementation-status/openmp-50.rst: New file.
1819 * doc/openmp-implementation-status/openmp-51.rst: New file.
1820 * doc/openmp-implementation-status/openmp-52.rst: New file.
1821 * doc/openmp-runtime-library-routines.rst: New file.
1822 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
1823 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
1824 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
1825 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
1826 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
1827 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
1828 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
1829 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
1830 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
1831 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
1832 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
1833 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
1834 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
1835 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
1836 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
1837 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
1838 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
1839 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
1840 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
1841 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
1842 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
1843 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
1844 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
1845 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
1846 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
1847 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
1848 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
1849 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
1850 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
1851 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
1852 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
1853 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
1854 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
1855 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
1856 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
1857 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
1858 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
1859 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
1860 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
1861 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
1862 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
1863 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
1864 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
1865 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
1866 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
1867 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
1868 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
1869 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
1870 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
1871 * doc/reporting-bugs.rst: New file.
1872 * doc/the-libgomp-abi.rst: New file.
1873 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
1874 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
1875 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
1876 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1878 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
1879 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
1880 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
1881 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
1882 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
1883 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
1884 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
1885 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
1886 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
1887 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
1888 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
1890 2022-11-04 Thomas Schwinge <thomas@codesourcery.com>
1892 * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
1893 * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
1895 * plugin/configfrag.ac <enable_offload_targets>
1896 [*-intelmic-* | *-intelmicemul-*]: Remove.
1897 * configure: Regenerate.
1898 * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
1900 (offload_target_to_openacc_device_type)
1901 [$offload_target = *-intelmic*]: Remove.
1902 (check_effective_target_offload_device_intel_mic)
1903 (check_effective_target_offload_device_any_intel_mic): Remove.
1904 * testsuite/libgomp.c-c++-common/on_device_arch.h
1905 (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
1906 (any_device_arch_intel_mic): Remove.
1907 * testsuite/libgomp.c-c++-common/target-45.c: Remove
1908 'offload_device_any_intel_mic' XFAIL.
1909 * testsuite/libgomp.fortran/target10.f90: Likewise.
1911 2022-11-03 Tobias Burnus <tobias@codesourcery.com>
1913 * testsuite/libgomp.fortran/target-11.f90: New test.
1914 * testsuite/libgomp.fortran/target-13.f90: New test.
1916 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
1920 * oacc-mem.c (goacc_enter_data_internal): Support
1921 OpenACC 'declare create' with Fortran allocatable arrays, part II.
1922 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
1924 * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
1926 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
1929 * oacc-mem.c (goacc_enter_data_internal): Support
1930 OpenACC 'declare create' with Fortran allocatable arrays, part I.
1931 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
1933 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
1936 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
1938 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
1941 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
1943 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
1946 2022-11-02 Cesar Philippidis <cesar@codesourcery.com>
1947 Thomas Schwinge <thomas@codesourcery.com>
1949 * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
1951 2022-10-28 Julian Brown <julian@codesourcery.com>
1952 Thomas Schwinge <thomas@codesourcery.com>
1955 * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
1956 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
1957 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
1958 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
1959 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1961 2022-10-24 Thomas Schwinge <thomas@codesourcery.com>
1963 * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
1964 'ptx_dev->rev_data'.
1966 2022-10-24 Tobias Burnus <tobias@codesourcery.com>
1968 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
1969 'static' for this variable.
1970 * config/nvptx/libgomp-nvptx.h: New file.
1971 * config/nvptx/target.c: Include it.
1972 (GOMP_ADDITIONAL_ICVS): Declare extern var.
1973 (GOMP_REV_OFFLOAD_VAR): Declare var.
1974 (GOMP_target_ext): Handle reverse offload.
1975 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
1976 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
1977 * target.c (gomp_target_rev): ... this new stub function.
1978 * libgomp.h (gomp_target_rev): Declare.
1979 * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
1980 * plugin/cuda-lib.def (cuMemHostAlloc): Add.
1981 * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
1982 (struct ptx_device): Add rev_data member.
1983 (nvptx_open_device): Remove async_engines query, last used in
1984 r10-304-g1f4c5b9b; add unified-address assert check.
1985 (GOMP_OFFLOAD_get_num_devices): Claim unified address
1987 (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
1988 offload functions exist. Make offload var available
1990 (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
1991 (GOMP_OFFLOAD_run): Handle reverse offload.
1993 2022-10-21 Thomas Schwinge <thomas@codesourcery.com>
1995 PR tree-optimization/107195
1997 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
2000 2022-10-20 Tobias Burnus <tobias@codesourcery.com>
2002 * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
2004 * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
2005 on_device_arch_gcn): New.
2006 * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
2007 requires-4.c but using heap-allocated memory.
2009 2022-10-20 Thomas Schwinge <thomas@codesourcery.com>
2012 * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
2014 2022-10-17 Thomas Schwinge <thomas@codesourcery.com>
2016 * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
2017 '-foffload-options' syntax.
2019 2022-10-13 Tobias Burnus <tobias@codesourcery.com>
2021 * testsuite/libgomp.fortran/task-7.f90: New test.
2022 * testsuite/libgomp.fortran/task-8.f90: New test.
2023 * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
2024 * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
2025 * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
2026 * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
2027 * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
2029 2022-10-12 Jakub Jelinek <jakub@redhat.com>
2031 * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
2032 in deprecation bullet.
2034 2022-10-12 Jakub Jelinek <jakub@redhat.com>
2036 * omp.h.in (omp_in_explicit_task): Declare.
2037 * omp_lib.h.in (omp_in_explicit_task): Likewise.
2038 * omp_lib.f90.in (omp_in_explicit_task): New interface.
2039 * libgomp.map (OMP_5.2): New symbol version, export
2040 omp_in_explicit_task and omp_in_explicit_task_.
2041 * task.c (omp_in_explicit_task): New function.
2042 * fortran.c (omp_in_explicit_task): Add ialias_redirect.
2043 (omp_in_explicit_task_): New function.
2044 * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
2045 * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
2046 * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
2047 * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
2049 2022-10-12 Jakub Jelinek <jakub@redhat.com>
2051 * task.c (gomp_create_artificial_team): Fix up handling of invocations
2052 from within explicit task.
2053 * target.c (GOMP_target_ext): Likewise.
2054 * testsuite/libgomp.c/task-7.c: New test.
2055 * testsuite/libgomp.c/task-8.c: New test.
2056 * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
2057 * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
2059 2022-10-12 Martin Liska <mliska@suse.cz>
2061 * configure: Regenerate.
2063 2022-10-11 Olivier Hainque <hainque@adacore.com>
2064 Olivier Hainque <hainque@adacore.com>
2066 * configure: Regenerate.
2068 2022-10-05 Tobias Burnus <tobias@codesourcery.com>
2070 * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
2072 2022-10-04 Jakub Jelinek <jakub@redhat.com>
2074 * libgomp.texi (Support begin/end declare target syntax in C/C++):
2075 Mark as implemented.
2077 2022-09-30 Tobias Burnus <tobias@codesourcery.com>
2080 * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
2082 2022-09-28 Tobias Burnus <tobias@codesourcery.com>
2084 * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
2085 for C/C++. Remove duplicated 'begin declare target' entry.
2087 2022-09-24 Jakub Jelinek <jakub@redhat.com>
2090 * testsuite/libgomp.c-c++-common/pr106981.c: New test.
2092 2022-09-14 Julian Brown <julian@codesourcery.com>
2094 * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
2095 * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
2096 * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
2097 * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
2098 test to here, make "run" test.
2100 2022-09-13 Jakub Jelinek <jakub@redhat.com>
2103 * env.c (get_icv_member_addr): Cast false to void * before assigning
2104 it to icv_addr[1], and comment the whole assignment out.
2106 2022-09-13 Tobias Burnus <tobias@codesourcery.com>
2108 * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
2111 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
2113 * libgomp.texi (Offload-Target Specifics: nvptx): Document
2114 that reverse offload requires >= -march=sm_35.
2115 * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
2117 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
2118 * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
2119 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
2120 * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
2121 * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
2123 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
2125 * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
2126 (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
2128 2022-09-12 Jakub Jelinek <jakub@redhat.com>
2131 * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
2132 (main): Avoid tests for which corresponding non-_ALL suffixed variable
2133 is in the environment, or for OMP_NUM_TEAMS on the device
2134 OMP_NUM_TEAMS_DEV_?.
2136 2022-09-10 Iain Sandoe <iain@sandoe.co.uk>
2138 * env.c (initialize_env): Include libiberty environ.h.
2140 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
2142 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
2143 function address table '$offload_func_table' if rev_fn_table
2146 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
2148 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
2149 .offload_func_table to populate rev_fn_table when requested.
2151 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
2153 * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
2154 'uint64_t **rev_fn_table' argument.
2155 * oacc-host.c (host_load_image): Likewise.
2156 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
2158 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2159 * target.c (gomp_load_image_to_device): Update call but pass
2162 2022-09-09 Jakub Jelinek <jakub@redhat.com>
2165 * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
2166 char * for dest[1] initialization from params[1]. Formatting fixes.
2168 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
2171 * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
2173 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
2175 * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
2176 section; move OpenMP Context Selectors from ...
2177 (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
2180 2022-09-08 Marcel Vollweiler <marcel@codesourcery.com>
2182 * config/gcn/icv-device.c (omp_get_default_device): Return device-
2184 (omp_get_max_teams): Added for GCN devices.
2185 (omp_set_num_teams): Likewise.
2187 * config/nvptx/icv-device.c (omp_get_default_device): Return device-
2189 (omp_get_max_teams): Added for NVPTX devices.
2190 (omp_set_num_teams): Likewise.
2192 * env.c (struct gomp_icv_list): New struct to store entries of initial
2194 (struct gomp_offload_icv_list): New struct to store entries of device-
2195 specific ICV values that are copied to the device and back.
2196 (struct gomp_default_icv_values): New struct to store default values of
2197 ICVs according to the OpenMP standard.
2198 (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
2199 (print_env_var_error): Function that prints an error for invalid values
2201 (parse_unsigned_long_1): Removed getenv. Generalized.
2202 (parse_unsigned_long): Likewise.
2203 (parse_int_1): Likewise.
2204 (parse_int): Likewise.
2205 (parse_int_secure): Likewise.
2206 (parse_unsigned_long_list): Likewise.
2207 (parse_target_offload): Likewise.
2208 (parse_bind_var): Likewise.
2209 (parse_stacksize): Likewise.
2210 (parse_boolean): Likewise.
2211 (parse_wait_policy): Likewise.
2212 (parse_allocator): Likewise.
2213 (omp_display_env): Extended to output different variants of environment
2215 (print_schedule): New helper function for omp_display_env which prints
2216 the values of run_sched_var.
2217 (print_proc_bind): New helper function for omp_display_env which prints
2218 the values of proc_bind_var.
2219 (enum gomp_parse_type): Collection of types used for parsing environment
2221 (ENTRY): Preprocess string lengths of environment variables.
2222 (OMP_VAR_CNT): Preprocess table size.
2223 (OMP_HOST_VAR_CNT): Likewise.
2224 (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
2226 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
2227 (gomp_set_icv_flag): Sets a flag for a particular ICV.
2228 (print_device_specific_icvs): New helper function for omp_display_env to
2229 print device specific ICV values.
2230 (get_device_num): New helper function for parse_device_specific.
2231 Extracts the device number from an environment variable name.
2232 (get_icv_member_addr): Gets the memory address for a particular member
2234 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
2235 (initialize_icvs): New function to initialize a gomp_initial_icvs
2237 (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
2238 (startswith): Checks if a string starts with a given prefix.
2239 (initialize_env): Extended to parse the new syntax of environment
2241 * icv-device.c (omp_get_max_teams): Added.
2243 (omp_set_num_teams): Likewise.
2244 * icv.c (omp_set_num_teams): Moved to icv-device.c.
2245 (omp_get_max_teams): Likewise.
2247 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
2248 (GOMP_ADDITIONAL_ICVS): New target-side struct that
2249 holds the designated ICVs of the target device.
2250 * libgomp.h (enum gomp_icvs): Collection of ICVs.
2251 (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
2253 (enum gomp_env_suffix): Collection of possible suffixes of environment
2255 (struct gomp_initial_icvs): Contains all ICVs for which we need to store
2257 (struct gomp_default_icv):New struct to hold ICVs for which we need
2258 to store initial values.
2259 (struct gomp_icv_list): Definition of a linked list that is used for
2260 storing ICVs for the devices and also for _DEV, _ALL, and without
2262 (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
2264 (struct gomp_offload_icv_list): Definition of a linked list that holds
2265 device-specific ICVs that are copied to devices.
2266 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
2267 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
2268 * libgomp.texi: Updated.
2269 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
2270 further ICVs from the offload image.
2271 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2272 * target.c (gomp_get_offload_icv_item): Get a list item of
2273 gomp_offload_icv_list.
2274 (get_gomp_offload_icvs): New. Returns the ICV values
2275 depending on the device num and the variable hierarchy.
2276 (gomp_load_image_to_device): Extended to copy further ICVs to a device.
2277 * testsuite/libgomp.c-c++-common/icv-5.c: New test.
2278 * testsuite/libgomp.c-c++-common/icv-6.c: New test.
2279 * testsuite/libgomp.c-c++-common/icv-7.c: New test.
2280 * testsuite/libgomp.c-c++-common/icv-8.c: New test.
2281 * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
2282 * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
2284 2022-09-08 Jakub Jelinek <jakub@redhat.com>
2286 * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
2288 * testsuite/libgomp.c/doacross-4.c: New test.
2289 * testsuite/libgomp.c/doacross-5.c: New test.
2290 * testsuite/libgomp.c/doacross-6.c: New test.
2291 * testsuite/libgomp.c/doacross-7.c: New test.
2293 2022-09-05 Tobias Burnus <tobias@codesourcery.com>
2295 * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
2297 2022-08-26 Tobias Burnus <tobias@codesourcery.com>
2299 * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
2300 refer to 'requires'.
2301 * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
2302 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
2303 * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
2304 * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
2306 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
2308 PR middle-end/106548
2309 * testsuite/libgomp.c/linear-2.c: New test.
2311 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
2313 * splay-tree.h: Fix splay_* macro unsetting if
2314 splay_tree_prefix is defined.
2316 2022-07-29 Tobias Burnus <tobias@codesourcery.com>
2318 * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
2320 2022-07-29 Jakub Jelinek <jakub@redhat.com>
2322 PR middle-end/106449
2323 * testsuite/libgomp.c-c++-common/pr106449.c: New test.
2325 2022-07-12 Tobias Burnus <tobias@codesourcery.com>
2327 * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
2329 2022-07-12 Thomas Schwinge <thomas@codesourcery.com>
2331 PR middle-end/101551
2332 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
2333 'offloading_enabled' diagnostics issue.
2335 2022-07-11 Thomas Schwinge <thomas@codesourcery.com>
2337 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
2338 '_Pragma' diagnostics verification.
2340 2022-07-10 Lewis Hyatt <lhyatt@gmail.com>
2342 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
2343 improved warning locations.
2344 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
2346 2022-07-08 Thomas Schwinge <thomas@codesourcery.com>
2348 * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
2349 * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
2350 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
2351 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
2352 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
2354 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
2356 * target.c (GOMP_offload_register, GOMP_offload_unregister):
2357 Denote as legacy entry points.
2358 * testsuite/lib/libgomp.exp
2359 (check_effective_target_offload_target_any): New proc.
2360 * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
2361 'offload_target_any'.
2362 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
2363 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
2364 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
2366 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
2368 * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
2369 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
2371 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
2373 * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
2375 2022-07-06 Thomas Schwinge <thomas@codesourcery.com>
2377 * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
2379 (GOMP_offload_unregister_ver): Likewise. Fix up 'target_data'.
2381 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
2382 Jakub Jelinek <jakub@redhat.com>
2384 * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
2386 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
2387 Chung-Lin Tang <cltang@codesourcery.com>
2388 Thomas Schwinge <thomas@codesourcery.com>
2390 * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
2391 omp_requires_mask arg.
2392 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
2393 return -1 when device available but omp_requires_mask != 0.
2394 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
2395 * oacc-host.c (host_get_num_devices, host_openacc_get_property):
2397 * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
2398 goacc_attach_host_thread_to_device, acc_get_num_devices,
2399 acc_set_device_num, get_property_any): Likewise.
2400 * target.c (omp_requires_mask): New global var.
2401 (gomp_requires_to_name): New.
2402 (GOMP_offload_register_ver): Handle passed omp_requires_mask.
2403 (gomp_target_init): Handle omp_requires_mask.
2404 * libgomp.texi (OpenMP 5.0): Update requires impl. status.
2405 (OpenMP 5.1): Add a missed item.
2406 (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
2407 * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
2408 * testsuite/libgomp.c-c++-common/requires-1.c: New test.
2409 * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
2410 * testsuite/libgomp.c-c++-common/requires-2.c: New test.
2411 * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
2412 * testsuite/libgomp.c-c++-common/requires-3.c: New test.
2413 * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
2414 * testsuite/libgomp.c-c++-common/requires-4.c: New test.
2415 * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
2416 * testsuite/libgomp.c-c++-common/requires-5.c: New test.
2417 * testsuite/libgomp.c-c++-common/requires-6.c: New test.
2418 * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
2419 * testsuite/libgomp.c-c++-common/requires-7.c: New test.
2420 * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
2421 * testsuite/libgomp.fortran/requires-1.f90: New test.
2423 2022-07-01 Tobias Burnus <tobias@codesourcery.com>
2425 * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
2426 with fromto as implemented.
2428 2022-06-28 Martin Liska <mliska@suse.cz>
2430 * acinclude.m4: Fix typo in mold linker detection.
2431 * Makefile.in: Regenerate.
2432 * configure: Regenerate.
2434 2022-06-21 Jakub Jelinek <jakub@redhat.com>
2435 Paul Iannetta <piannetta@kalrayinc.com>
2438 * testsuite/libgomp.c/target-31.c: Add private (i) clause.
2440 2022-06-17 Martin Liska <mliska@suse.cz>
2442 * libgomp.texi: Add table header for new features of
2445 2022-06-15 Jakub Jelinek <jakub@redhat.com>
2447 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
2448 q to ddress of an automatic variable. Use -5 instead of -1 in
2449 omp_get_mapped_ptr call. Add test with omp_initial_device.
2450 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
2451 of -1 in omp_get_mapped_ptr call. Add test with omp_initial_device.
2452 Renumber stop arguments afterwards.
2454 2022-06-13 Jakub Jelinek <jakub@redhat.com>
2456 * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
2457 * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
2459 * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
2460 * target.c (resolve_device): Add remapped argument, handle
2461 GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
2462 for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
2463 if remapped, otherwise treat omp_initial_device that way. For
2464 omp_invalid_device, always emit gomp_fatal, even when
2465 OMP_TARGET_OFFLOAD isn't mandatory.
2466 (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
2467 GOMP_target_update, GOMP_target_update_ext,
2468 GOMP_target_enter_exit_data): Pass true as remapped argument to
2470 (omp_target_alloc, omp_target_free, omp_target_is_present,
2471 omp_target_memcpy_check, omp_target_associate_ptr,
2472 omp_target_disassociate_ptr, omp_get_mapped_ptr,
2473 omp_target_is_accessible): Pass false as remapped argument to
2474 resolve_device. Treat omp_initial_device the same as
2475 gomp_get_num_devices (). Don't bypass resolve_device calls if
2476 device_num is negative.
2477 (omp_pause_resource): Treat omp_initial_device the same as
2478 gomp_get_num_devices (). Call resolve_device.
2479 * icv-device.c (omp_set_default_device): Always set to device_num
2480 even when it is negative.
2481 * libgomp.texi: Document that Conforming device numbers,
2482 omp_initial_device and omp_invalid_device is implemented.
2483 * testsuite/libgomp.c/target-41.c (main): Add test with
2485 * testsuite/libgomp.c/target-45.c: New test.
2486 * testsuite/libgomp.c/target-46.c: New test.
2487 * testsuite/libgomp.c/target-47.c: New test.
2488 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
2489 test with omp_initial_device. Use -5 instead of -1 for negative value
2491 * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
2492 Likewise. Reorder stop numbers.
2494 2022-06-10 Jakub Jelinek <jakub@redhat.com>
2496 * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
2497 rather than "libmemkind.so".
2499 2022-06-10 Thomas Schwinge <thomas@codesourcery.com>
2501 * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
2502 * plugin/configfrag.ac (--with-cuda-driver)
2503 (--with-cuda-driver-include, --with-cuda-driver-lib)
2504 (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
2505 (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
2507 * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
2508 (cuda_driver_lib): Remove.
2509 * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
2510 * Makefile.in: Regenerate.
2511 * configure: Likewise.
2512 * testsuite/Makefile.in: Likewise.
2514 2022-06-09 Jakub Jelinek <jakub@redhat.com>
2516 * config/linux/allocator.c: Fix up #include directive.
2518 2022-06-09 Jakub Jelinek <jakub@redhat.com>
2520 * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
2521 (enum gomp_memkind_kind): New type.
2522 (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
2524 (struct gomp_memkind_data): New type.
2525 (memkind_data, memkind_data_once): New variables.
2526 (gomp_init_memkind, gomp_get_memkind): New functions.
2527 (omp_init_allocator): Initialize data.memkind, don't fail for
2528 omp_high_bw_mem_space if libmemkind supports it.
2529 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
2530 memkind support of LIBGOMP_USE_MEMKIND is defined.
2531 * config/linux/allocator.c: New file.
2533 2022-06-03 Tobias Burnus <tobias@codesourcery.com>
2535 * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
2536 * testsuite/libgomp.fortran/scope-2.f90: New test.
2538 2022-06-02 David Malcolm <dmalcolm@redhat.com>
2540 * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
2542 2022-05-31 Jakub Jelinek <jakub@redhat.com>
2544 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
2545 scope construct with allocate clause.
2546 * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
2547 * testsuite/libgomp.c-c++-common/scope-2.c: New test.
2549 2022-05-28 Tobias Burnus <tobias@codesourcery.com>
2551 * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
2552 * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
2553 explicit 'to' and 'enter' clause.
2554 * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
2556 2022-05-28 Jakub Jelinek <jakub@redhat.com>
2559 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
2560 defined(HAVE__ALIGNED_MALLOC) case.
2561 * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
2562 handling as last option before fallback instead of first.
2563 (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
2566 2022-05-27 Jakub Jelinek <jakub@redhat.com>
2568 * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
2570 * testsuite/libgomp.c/target-41.c: Likewise.
2572 2022-05-27 Tobias Burnus <tobias@codesourcery.com>
2574 * libgomp.texi (Other new OpenMP 5.1 features): Add
2575 'begin declare target'.
2576 (Other new OpenMP 5.2 features): New.
2578 2022-05-25 Jakub Jelinek <jakub@redhat.com>
2580 * task.c (gomp_task_run_post_handle_dependers): If empty_task
2581 is the last task taskwait depend depends on, wake it up.
2582 Similarly if it is the last child of a taskgroup, use atomic
2583 store instead of decrement and awak taskgroup wait if any.
2584 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
2586 2022-05-24 Andrew Stubbs <ams@codesourcery.com>
2588 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
2589 EF_AMDGPU_MACH_AMDGCN_GFX90a.
2590 (gcn_gfx90a_s): New.
2591 (isa_hsa_name): Support gfx90a.
2592 (isa_code): Likewise.
2594 2022-05-24 Tobias Burnus <tobias@codesourcery.com>
2597 * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
2598 * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
2600 2022-05-24 Jakub Jelinek <jakub@redhat.com>
2603 * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
2604 * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
2605 * task.c (empty_task): New function.
2606 (gomp_task_run_post_handle_depend_hash): Declare earlier.
2607 (gomp_task_run_post_handle_depend): Declare.
2608 (GOMP_task): Optimize fn == empty_task if there is nothing to wait
2610 (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
2611 (GOMP_taskwait_depend_nowait): New function.
2612 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
2614 2022-05-23 Tobias Burnus <tobias@codesourcery.com>
2617 * target.c (gomp_map_vars_internal, copy_firstprivate_data):
2618 Support attach for GOMP_MAP_FIRSTPRIVATE.
2619 * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
2620 * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
2621 * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
2623 2022-05-20 Marcel Vollweiler <marcel@codesourcery.com>
2625 * libgomp.map: Added omp_target_memcpy_async and
2626 omp_target_memcpy_rect_async.
2627 * libgomp.texi: Both functions are now supported.
2628 * omp.h.in: Added omp_target_memcpy_async and
2629 omp_target_memcpy_rect_async.
2630 * omp_lib.f90.in: Added interfaces for both new functions.
2631 * omp_lib.h.in: Likewise.
2632 * target.c (ialias_redirect): Added for GOMP_task.
2633 (omp_target_memcpy): Restructured into check and copy part.
2634 (omp_target_memcpy_check): New helper function for omp_target_memcpy and
2635 omp_target_memcpy_async that checks requirements.
2636 (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
2637 omp_target_memcpy_async that performs the memcpy.
2638 (omp_target_memcpy_async_helper): New helper function that is used in
2639 omp_target_memcpy_async for the asynchronous task.
2640 (omp_target_memcpy_async): Added.
2641 (omp_target_memcpy_rect): Restructured into check and copy part.
2642 (omp_target_memcpy_rect_check): New helper function for
2643 omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
2645 (omp_target_memcpy_rect_copy): New helper function for
2646 omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
2648 (omp_target_memcpy_rect_async_helper): New helper function that is used
2649 in omp_target_memcpy_rect_async for the asynchronous task.
2650 (omp_target_memcpy_rect_async): Added.
2651 * task.c (ialias): Added for GOMP_task.
2652 * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
2653 * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
2654 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
2655 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
2656 * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
2657 * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
2658 * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
2659 * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
2661 2022-05-18 Tobias Burnus <tobias@codesourcery.com>
2663 * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
2664 (OpenMP Context Selectors): Add missing comma.
2665 * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
2666 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
2667 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
2668 * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
2670 2022-05-17 Jakub Jelinek <jakub@redhat.com>
2672 * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
2673 comment for omp_display_env feature.
2675 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
2677 * libgomp.texi (Offload-Target Specifics): New chapter; add section
2678 to document OpenMP context selectors.
2680 2022-05-17 Jakub Jelinek <jakub@redhat.com>
2682 * libgomp.h (struct gomp_task_depend_entry): Change is_in type
2683 from bool to unsigned char.
2684 * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
2685 Ignore dependencies where
2686 task->depend[i].is_in && task->depend[i].is_in == ent->is_in
2687 rather than just task->depend[i].is_in && ent->is_in. Remember
2688 whether GOMP_DEPEND_IN loop is needed and guard the loop with that
2690 (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
2691 Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
2692 rather than just elem.is_in && ent->is_in.
2693 * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
2694 inoutset depend-kind.
2695 * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
2696 * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
2697 * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
2699 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
2701 * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
2703 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
2705 * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
2706 * testsuite/libgomp.fortran/depend-5.f90: New test.
2707 * testsuite/libgomp.fortran/depend-6.f90: New test.
2708 * testsuite/libgomp.fortran/depend-7.f90: New test.
2710 2022-05-16 Marcel Vollweiler <marcel@codesourcery.com>
2712 * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
2713 * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
2714 * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
2716 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
2718 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
2720 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
2722 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
2724 2022-05-13 Thomas Schwinge <thomas@codesourcery.com>
2726 * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
2727 [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
2728 (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
2729 append '$(PLUGIN_NVPTX_LDFLAGS)'.
2730 * Makefile.in: Regenerate.
2732 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
2734 * Makefile.am (libgomp_la_LIBADD): Initialize.
2735 * plugin/configfrag.ac (DL_LIBS): New.
2736 (PLUGIN_GCN_LIBS): Remove.
2737 (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
2738 * plugin/Makefrag.am (libgomp_la_LIBADD)
2739 (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
2740 (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
2741 * Makefile.in: Regenerate.
2742 * config.h.in: Likewise.
2743 * configure: Likewise.
2744 * testsuite/Makefile.in: Likewise.
2746 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
2748 * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
2749 * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
2750 'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
2751 * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
2752 'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
2753 'PLUGIN_NVPTX_LINK_LIBCUDA'.
2754 * Makefile.in: Regenerate.
2755 * config.h.in: Likewise.
2756 * configure: Likewise.
2758 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
2760 * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
2761 for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
2762 * Makefile.in: Regenerate.
2763 * config.h.in: Likewise.
2764 * configure: Likewise.
2765 * testsuite/Makefile.in: Likewise.
2767 2022-05-12 Jakub Jelinek <jakub@redhat.com>
2769 * libgomp.h (struct gomp_task): Add depend_all_memory member.
2770 * task.c (gomp_init_task): Initialize depend_all_memory.
2771 (gomp_task_handle_depend): Handle omp_all_memory.
2772 (gomp_task_run_post_handle_depend_hash): Clear
2773 parent->depend_all_memory if equal to current task.
2774 (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
2775 * testsuite/libgomp.c-c++-common/depend-1.c: New test.
2776 * testsuite/libgomp.c-c++-common/depend-2.c: New test.
2777 * testsuite/libgomp.c-c++-common/depend-3.c: New test.
2779 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
2781 * plugin/configfrag.ac: Remove '--with-hsa-runtime',
2782 '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
2783 * Makefile.in: Regenerate.
2784 * configure: Likewise.
2785 * testsuite/Makefile.in: Likewise.
2787 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
2789 * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
2790 consider 'PLUGIN_GCN_CPPFLAGS'.
2791 (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
2792 'PLUGIN_GCN_LDFLAGS'.
2793 * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
2795 * Makefile.in: Regenerate.
2796 * configure: Likewise.
2797 * testsuite/Makefile.in: Likewise.
2799 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
2801 * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
2802 (HSA_RUNTIME_LDFLAGS): Remove.
2803 * configure: Regenerate.
2805 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
2807 * testsuite/lib/libgomp.exp (libgomp_init): Don't
2808 'append always_ld_library_path ":$hsa_runtime_lib"'.
2809 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
2811 2022-05-10 Thomas Schwinge <thomas@codesourcery.com>
2813 * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
2814 multi-device testing.
2816 2022-05-06 Marcel Vollweiler <marcel@codesourcery.com>
2818 * libgomp.map: Added omp_target_is_accessible.
2819 * libgomp.texi: Tagged omp_target_is_accessible as supported.
2820 * omp.h.in: Added omp_target_is_accessible.
2821 * omp_lib.f90.in: Added interface for omp_target_is_accessible.
2822 * omp_lib.h.in: Likewise.
2823 * target.c (omp_target_is_accessible): Added implementation of
2824 omp_target_is_accessible.
2825 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
2826 * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
2828 2022-05-05 Sandra Loosemore <sandra@codesourcery.com>
2830 * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
2832 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
2834 * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
2836 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
2838 * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
2840 2022-05-03 Marcel Vollweiler <marcel@codesourcery.com>
2842 * libgomp.map: Added omp_get_mapped_ptr.
2843 * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
2844 * omp.h.in: Added omp_get_mapped_ptr.
2845 * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
2846 * omp_lib.h.in: Likewise.
2847 * target.c (omp_get_mapped_ptr): Added implementation of
2849 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
2850 * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
2851 * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
2852 * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
2853 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
2854 * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
2855 * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
2856 * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
2858 2022-04-28 Thomas Schwinge <thomas@codesourcery.com>
2861 * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
2862 privatization scanning. For GCN offloading compilation, raise
2863 '-mgang-private-size'.
2865 2022-04-26 Jakub Jelinek <jakub@redhat.com>
2868 * work.c (gomp_init_work_share): Don't mask of adjustment for
2869 dynamic long long realignment if struct gomp_work_share has smaller
2870 alignof than long long.
2871 * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
2872 struct gomp_work_share has smaller alignof than long long or if
2873 sizeof (struct gomp_work_share) is smaller than
2874 INLINE_ORDERED_TEAM_IDS_OFF.
2875 * loop_ull.c (GOMP_loop_ull_start): Likewise.
2876 * sections.c (GOMP_sections2_start): Likewise.
2878 2022-04-25 Jakub Jelinek <jakub@redhat.com>
2879 Thomas Schwinge <thomas@codesourcery.com>
2882 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
2884 2022-04-13 Jakub Jelinek <jakub@redhat.com>
2886 * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
2888 2022-04-06 Thomas Schwinge <thomas@codesourcery.com>
2890 * plugin/cuda/cuda.h: Remove file.
2891 * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
2892 "cuda/cuda.h" instead of <cuda.h>.
2893 * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
2894 'PLUGIN_NVPTX_CPPFLAGS'.
2895 * configure: Regenerate.
2897 2022-04-05 Chung-Lin Tang <cltang@codesourcery.com>
2899 * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
2901 2022-04-04 Tom de Vries <tdevries@suse.de>
2903 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
2904 on_device_arch_nvptx instead of offload_target_nvptx.
2905 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2907 2022-04-01 Tom de Vries <tdevries@suse.de>
2909 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
2911 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2913 2022-04-01 Tom de Vries <tdevries@suse.de>
2915 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
2918 2022-03-29 Chenghua Xu <xuchenghua@loongson.cn>
2919 Lulu Cheng <chenglulu@loongson.cn>
2921 * configure.tgt: Add LoongArch triplet.
2923 2022-03-28 Tom de Vries <tdevries@suse.de>
2925 * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
2926 instead of /libexec/.
2927 * configure: Regenerate.
2929 2022-03-25 Tom de Vries <tdevries@suse.de>
2932 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
2934 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
2935 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
2937 2022-03-23 Tobias Burnus <tobias@codesourcery.com>
2939 PR middle-end/104285
2940 * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
2941 * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
2942 * testsuite/libgomp.c++/target-same-name-2.C: New test.
2943 * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
2944 * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
2945 * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
2947 2022-03-22 Tom de Vries <tdevries@suse.de>
2951 * testsuite/libgomp.c/pr104783-2.c: New test.
2953 2022-03-18 Tobias Burnus <tobias@codesourcery.com>
2956 * testsuite/libgomp.fortran/associate4.f90: New test.
2958 2022-03-18 Tom de Vries <tdevries@suse.de>
2961 * testsuite/libgomp.c/pr104952-1.c: New test.
2962 * testsuite/libgomp.c/pr104952-2.c: New test.
2964 2022-03-18 Jakub Jelinek <jakub@redhat.com>
2966 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
2967 variable next to pl variable.
2969 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
2971 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
2973 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
2974 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2976 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
2979 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
2980 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2982 2022-03-16 Marcel Vollweiler <marcel@codesourcery.com>
2984 * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
2985 omp_set_max_active_levels.
2986 * testsuite/libgomp.fortran/icv-8.f90: New test.
2988 2022-03-16 Thomas Schwinge <thomas@codesourcery.com>
2991 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
2993 2022-03-13 Tobias Burnus <tobias@codesourcery.com>
2995 * libgomp.texi: Fix typo.
2997 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
2999 PR middle-end/100280
3000 PR middle-end/104892
3001 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
3002 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
3003 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3005 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3007 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3008 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3009 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3012 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3014 PR middle-end/104892
3015 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
3017 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
3018 enable '--param=openacc-kernels=decompose' and adjust.
3019 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3021 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3022 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3025 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3028 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
3029 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
3030 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3031 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
3033 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3035 PR middle-end/100280
3036 PR middle-end/104086
3037 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3039 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3041 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
3043 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3046 2022-03-10 Hafiz Abid Qadeer <abidh@codesourcery.com>
3048 * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
3049 trait. Test last index in w and v array. Remove redundant
3050 assignment to V(1). Move alignment checks at the end of
3053 2022-03-10 Tom de Vries <tdevries@suse.de>
3055 * testsuite/libgomp.c/pr104783.c: New test.
3057 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
3060 PR middle-end/102330
3061 PR middle-end/104774
3062 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3064 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3066 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3068 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3070 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3072 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3074 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3076 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3078 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3080 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3082 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3084 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3086 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3088 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3090 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
3091 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3092 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3094 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
3097 * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
3098 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
3099 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
3100 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
3102 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3105 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
3106 expected diagnostics.
3108 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3110 PR middle-end/104784
3111 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3112 Test with '--param=openacc-kernels=decompose'.
3113 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3115 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3117 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3119 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3121 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3123 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3125 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3127 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3129 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3131 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3133 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3135 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3137 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3139 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3141 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3143 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3145 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3147 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3149 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3151 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3153 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3155 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3157 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3159 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3161 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3163 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3165 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3167 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3169 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3171 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3173 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3175 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3178 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3180 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3181 Test '-fopt-info-omp-all'.
3182 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3184 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3186 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3188 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3190 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3192 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3194 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3196 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3198 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3200 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3202 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3204 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3206 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3208 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3210 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3212 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3214 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3216 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3218 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3220 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3222 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3224 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3226 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3228 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3230 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3232 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3234 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3236 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3238 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3240 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3242 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3244 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3247 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3249 PR middle-end/100280
3250 PR middle-end/104132
3251 PR middle-end/104133
3252 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3255 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3257 PR middle-end/100280
3258 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
3259 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3262 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3264 PR middle-end/100280
3265 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
3266 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3269 2022-02-28 Tom de Vries <tdevries@suse.de>
3271 * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
3272 * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
3273 * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
3274 * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
3275 * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
3276 * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
3278 2022-02-24 Tom de Vries <tdevries@suse.de>
3280 * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
3281 * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
3282 * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
3283 * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
3284 * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
3285 * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
3286 * testsuite/libgomp.c/declare-variant-3.h: New header file.
3288 2022-02-22 Thomas Schwinge <thomas@codesourcery.com>
3290 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
3291 gang-redundant execution.
3293 2022-02-22 Tom de Vries <tdevries@suse.de>
3296 * config/nvptx/bar.c (generation_to_barrier): New function, copied
3297 from config/rtems/bar.c.
3298 (futex_wait, futex_wake): New function.
3299 (do_spin, do_wait): New function, copied from config/linux/wait.h.
3300 (gomp_barrier_wait_end, gomp_barrier_wait_last)
3301 (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
3302 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
3303 and replace with include of config/linux/bar.c.
3304 * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
3305 (gomp_barrier_init): Init new fields.
3306 * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
3308 * testsuite/libgomp.c/pr99555-1.c: Same.
3309 * testsuite/libgomp.fortran/task-detach-6.f90: Same.
3311 2022-02-22 Tom de Vries <tdevries@suse.de>
3314 * testsuite/libgomp.c++/pr96390.C: Add additional-option
3315 -foffload=-Wa,--verify for nvptx.
3316 * testsuite/libgomp.c-c++-common/pr96390.c: Same.
3318 2022-02-15 Tobias Burnus <tobias@codesourcery.com>
3320 * testsuite/libgomp.fortran/depend-4.f90: New test.
3322 2022-02-10 Tobias Burnus <tobias@codesourcery.com>
3325 * testsuite/libgomp.c++/target-virtual-1.C: New test.
3327 2022-02-10 Marcel Vollweiler <marcel@codesourcery.com>
3329 * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
3330 * target.c (copy_firstprivate_data): Copy only if host address is not
3332 * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
3333 * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
3334 * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
3335 * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
3336 * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
3337 * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
3338 * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
3339 * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
3340 * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
3341 * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
3343 2022-02-08 Jakub Jelinek <jakub@redhat.com>
3346 * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
3348 * testsuite/libgomp.c/pr104385.c: New test.
3350 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
3352 * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
3353 STOP of previous commit.
3355 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
3357 * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
3358 from is_64bit_aligned_.
3359 * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
3360 and use it, more implicit none, remove unused argument.
3362 2022-02-03 David Seifert <soap@gentoo.org>
3363 Jakub Jelinek <jakub@redhat.com>
3365 * configure.ac: Support --disable-werror.
3366 * configure: Regenerate.
3368 2022-02-01 Tom de Vries <tdevries@suse.de>
3370 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
3372 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
3373 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
3375 2022-02-01 Tom de Vries <tdevries@suse.de>
3377 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
3378 num_workers for nvidia accelerator to fix libgomp error 'insufficient
3380 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
3382 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
3384 2022-02-01 Tom de Vries <tdevries@suse.de>
3386 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
3388 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3390 2022-01-31 Martin Liska <mliska@suse.cz>
3392 * acinclude.m4: Detect *_ld_is_mold and use it.
3393 * configure: Regenerate.
3395 2022-01-27 Tobias Burnus <tobias@codesourcery.com>
3397 * libgomp.texi (OpenMP 5.0): Update implementation status.
3399 2022-01-21 Thomas Schwinge <thomas@codesourcery.com>
3401 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
3402 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
3403 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3404 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3405 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
3406 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3407 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3408 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
3409 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
3410 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3411 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
3412 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
3413 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
3414 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
3415 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
3417 2022-01-19 Marcel Vollweiler <marcel@codesourcery.com>
3419 * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
3420 "static") to make the device num available in the offload image.
3422 2022-01-19 Martin Liska <mliska@suse.cz>
3423 Thomas Schwinge <thomas@codesourcery.com>
3425 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
3427 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3428 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3430 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
3431 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3432 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3433 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
3434 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
3436 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
3438 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
3440 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
3442 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
3444 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
3446 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3447 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3448 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3450 2022-01-18 Martin Liska <mliska@suse.cz>
3452 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
3454 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3455 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
3456 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
3457 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3458 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3459 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
3460 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
3461 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
3462 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
3463 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
3464 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
3465 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
3466 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3467 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3468 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3470 2022-01-17 Thomas Schwinge <thomas@codesourcery.com>
3472 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
3473 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3474 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3476 2022-01-17 Julian Brown <julian@codesourcery.com>
3477 Thomas Schwinge <thomas@codesourcery.com>
3479 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
3480 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
3481 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
3483 2022-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
3484 Andrew Stubbs <ams@codesourcery.com>
3486 * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
3487 the number of teams and threads if necessary.
3488 (gcn_exec): Automatically set the number of gangs and workers if
3491 2022-01-13 Hafiz Abid Qadeer <abidh@codesourcery.com>
3493 * testsuite/libgomp.fortran/allocate-1.c: New test.
3494 * testsuite/libgomp.fortran/allocate-1.f90: New test.
3495 * libgomp.texi: Remove string that says that allocate clause
3496 support is for C/C++ only.
3498 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3500 * testsuite/libgomp.c-c++-common/on_device_arch.h
3501 (any_device_arch, any_device_arch_intel_mic): New.
3502 * testsuite/lib/libgomp.exp
3503 (check_effective_target_offload_device_any_intel_mic): New.
3504 * testsuite/libgomp.c-c++-common/target-45.c: Use it.
3505 * testsuite/libgomp.fortran/target10.f90: Likewise.
3507 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3509 PR tree-optimization/102192
3510 * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
3511 '-Wuninitialized' diagnostics.
3513 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3515 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
3516 current '-Wuninitialized' diagnostics.
3517 * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
3518 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
3519 * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
3520 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
3521 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3522 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
3523 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
3524 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3525 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3526 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3527 * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
3530 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3532 * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
3533 for 'offload_device_intel_mic'.
3535 2022-01-13 Julian Brown <julian@codesourcery.com>
3536 Thomas Schwinge <thomas@codesourcery.com>
3538 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
3539 offloading execution XFAIL.
3541 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3543 PR middle-end/100280
3544 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3546 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
3547 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3550 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3552 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3554 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3556 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
3557 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
3558 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
3559 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
3560 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3562 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3563 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3564 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3565 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
3567 2022-01-04 Tobias Burnus <tobias@codesourcery.com>
3569 * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
3570 * testsuite/libgomp.fortran/target10.f90: Likewise.
3572 2022-01-04 Chung-Lin Tang <cltang@codesourcery.com>
3574 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
3575 into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
3576 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3578 2022-01-03 Jakub Jelinek <jakub@redhat.com>
3580 * libgomp.texi: Bump @copying's copyright year.
3582 2021-12-13 Tobias Burnus <tobias@codesourcery.com>
3584 * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
3585 * testsuite/libgomp.fortran/atomic-19.f90: New test.
3587 2021-12-10 Andrew Stubbs <ams@codesourcery.com>
3589 * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
3590 (GOMP_OFFLOAD_load_image): Locate the offload variables via the
3591 table, not individual symbols.
3593 2021-12-09 Chung-Lin Tang <cltang@codesourcery.com>
3595 * testsuite/libgomp.c++/target-lambda-1.C: Only run under
3596 "target offload_device_nonshared_as"
3597 * testsuite/libgomp.c++/target-this-3.C: Likewise.
3598 * testsuite/libgomp.c++/target-this-4.C: Likewise.
3600 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
3602 * target.c (gomp_map_vars_existing): Make sure attached pointer is
3603 not overwritten during cross-host/device copying.
3604 (gomp_update): Likewise.
3605 (gomp_exit_data): Likewise.
3606 * testsuite/libgomp.c++/target-11.C: Adjust testcase.
3607 * testsuite/libgomp.c++/target-12.C: Likewise.
3608 * testsuite/libgomp.c++/target-15.C: Likewise.
3609 * testsuite/libgomp.c++/target-16.C: Likewise.
3610 * testsuite/libgomp.c++/target-17.C: Likewise.
3611 * testsuite/libgomp.c++/target-21.C: Likewise.
3612 * testsuite/libgomp.c++/target-23.C: Likewise.
3613 * testsuite/libgomp.c/target-23.c: Likewise.
3614 * testsuite/libgomp.c/target-29.c: Likewise.
3615 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
3617 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
3620 * libgomp.h (gomp_attach_pointer): Add bool parameter.
3621 * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
3622 (goacc_enter_data_internal): Likewise.
3623 * target.c (gomp_map_vars_existing): Update assert condition to
3624 include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
3625 (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
3626 parameter, add support for mapping a pointer with NULL target.
3627 (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
3628 parameter, add support for attaching a pointer with NULL target.
3629 (gomp_map_vars_internal): Update calls to gomp_map_pointer and
3630 gomp_attach_pointer, add handling for
3631 GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
3632 GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
3633 * testsuite/libgomp.c++/target-23.C: New testcase.
3634 * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
3635 * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
3636 * testsuite/libgomp.c++/target-this-1.C: New testcase.
3637 * testsuite/libgomp.c++/target-this-2.C: New testcase.
3638 * testsuite/libgomp.c++/target-this-3.C: New testcase.
3639 * testsuite/libgomp.c++/target-this-4.C: New testcase.
3640 * testsuite/libgomp.c++/target-this-5.C: New testcase.
3642 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
3644 * libgomp.texi (OpenMP 5.1): Update status.
3646 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
3648 * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
3650 2021-12-02 Chung-Lin Tang <cltang@codesourcery.com>
3653 * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
3654 * testsuite/libgomp.fortran/pr90030.f90: New test.
3656 2021-11-30 Kwok Cheung Yeung <kcy@codesourcery.com>
3657 Thomas Schwinge <thomas@codesourcery.com>
3659 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
3662 2021-11-30 Cesar Philippidis <cesar@codesourcery.com>
3663 Thomas Schwinge <thomas@codesourcery.com>
3665 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
3668 2021-11-29 Richard Biener <rguenther@suse.de>
3670 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
3673 2021-11-24 Jakub Jelinek <jakub@redhat.com>
3675 PR middle-end/103384
3676 * testsuite/libgomp.c/declare-variant-2.c: New test.
3678 2021-11-18 David Edelsohn <dje.gcc@gmail.com>
3680 * alloc.c (gomp_aligned_alloc): Fix typo.
3682 2021-11-18 Jakub Jelinek <jakub@redhat.com>
3685 * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
3686 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
3687 (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
3688 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
3689 * work.c (alloc_work_share, gomp_work_share_start): Likewise.
3690 * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
3691 gomp_aligned_alloc instead of team_malloc.
3693 2021-11-18 Jakub Jelinek <jakub@redhat.com>
3696 * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
3697 memalign over posix_memalign over aligned_alloc over fallback
3698 with malloc instead of aligned_alloc over _aligned_alloc over
3699 posix_memalign over memalign over fallback with malloc. For
3700 aligned_alloc, round up size up to multiple of al.
3702 2021-11-16 Jakub Jelinek <jakub@redhat.com>
3704 * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
3705 construct as implemented.
3707 2021-11-15 Tobias Burnus <tobias@codesourcery.com>
3709 * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
3711 2021-11-15 Jakub Jelinek <jakub@redhat.com>
3713 * task.c (gomp_create_target_task): Copy args array as well.
3714 * target.c (gomp_target_fallback): Add args argument.
3715 Set gomp_icv (true)->thread_limit_var if thread_limit is present.
3716 (GOMP_target): Adjust gomp_target_fallback caller.
3717 (GOMP_target_ext): Likewise.
3718 (gomp_target_task_fn): Likewise.
3719 * config/nvptx/team.c (gomp_nvptx_main): Set
3720 gomp_global_icv.thread_limit_var.
3721 * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
3723 2021-11-15 Jakub Jelinek <jakub@redhat.com>
3725 * config/nvptx/team.c (__gomp_team_num): Define as
3726 __attribute__((shared)) var.
3727 (gomp_nvptx_main): Initialize __gomp_team_num to 0.
3728 * config/nvptx/target.c (__gomp_team_num): Declare as
3729 extern __attribute__((shared)) var.
3730 (GOMP_teams4): Use __gomp_team_num as the team number instead of
3731 %ctaid.x. If first, initialize it to %ctaid.x. If num_teams_lower
3732 is bigger than num_blocks, use num_teams_lower teams and arrange for
3733 bumping of __gomp_team_num if !first and returning false once we run
3735 * config/nvptx/teams.c (__gomp_team_num): Declare as
3736 extern __attribute__((shared)) var.
3737 (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
3739 2021-11-15 Jakub Jelinek <jakub@redhat.com>
3741 * testsuite/libgomp.c/teams-5.c: New test.
3743 2021-11-12 Jakub Jelinek <jakub@redhat.com>
3746 * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
3748 * config/gcn/teams.c: ... here. New file.
3750 2021-11-12 Chung-Lin Tang <cltang@codesourcery.com>
3752 * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
3753 implicit map handling to allow a "superset" existing map as valid case.
3754 (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
3755 (get_implicit): New function to extract implicit status.
3756 (gomp_map_fields_existing): Adjust arguments in calls to
3757 gomp_map_vars_existing, and add uses of get_implicit.
3758 (gomp_map_vars_internal): Likewise.
3759 * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
3761 2021-11-12 Jakub Jelinek <jakub@redhat.com>
3763 * libgomp_g.h (GOMP_teams4): Declare.
3764 * libgomp.map (GOMP_5.1): Export GOMP_teams4.
3765 * target.c (GOMP_teams4): New function.
3766 * config/nvptx/target.c (GOMP_teams): Remove.
3767 (GOMP_teams4): New function.
3768 * config/gcn/target.c (GOMP_teams): Remove.
3769 (GOMP_teams4): New function.
3770 * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
3771 teams instead of <= 2.
3772 * testsuite/libgomp.c-c++-common/teams-2.c: New test.
3774 2021-11-11 Tobias Burnus <tobias@codesourcery.com>
3776 * testsuite/libgomp.fortran/teams-1.f90: New test.
3778 2021-11-11 Jakub Jelinek <jakub@redhat.com>
3780 * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
3781 * team.c (struct gomp_thread_start_data): Likewise.
3782 (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
3783 (gomp_team_start): Initialize start_data->num_teams and
3784 start_data->team_num. Update nthr->num_teams and nthr->team_num.
3785 * teams.c (gomp_num_teams, gomp_team_num): Remove.
3786 (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
3787 instead of gomp_num_teams and gomp_team_num.
3788 (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
3789 (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
3790 * testsuite/libgomp.c/teams-4.c: New test.
3792 2021-11-11 Jakub Jelinek <jakub@redhat.com>
3794 * testsuite/libgomp.c-c++-common/teams-1.c: New test.
3796 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
3798 * env.c (parse_gomp_openacc_dim): Restore parsing.
3800 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
3802 PR middle-end/102972
3803 * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
3805 * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
3806 * testsuite/libgomp.c/target-3.c: Likewise.
3807 * testsuite/libgomp.c/target-5.c: Likewise.
3808 * testsuite/libgomp.c/target-6.c: Likewise.
3809 * testsuite/libgomp.c/target-teams-1.c: Likewise.
3810 * testsuite/libgomp.c/teams-1.c: Likewise.
3811 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
3812 * testsuite/libgomp.c/thread-limit-3.c: Likewise.
3813 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
3814 * testsuite/libgomp.c/thread-limit-5.c: Likewise.
3815 * testsuite/libgomp.fortran/icv-3.f90: Likewise.
3816 * testsuite/libgomp.fortran/icv-4.f90: Likewise.
3817 * testsuite/libgomp.fortran/teams1.f90: Likewise.
3819 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
3821 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
3822 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
3824 2021-10-27 Jakub Jelinek <jakub@redhat.com>
3826 * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
3827 aren't implemented for Fortran yet.
3829 2021-10-27 Jakub Jelinek <jakub@redhat.com>
3831 * testsuite/libgomp.c/loop-26.c: New test.
3832 * testsuite/libgomp.c/loop-27.c: New test.
3834 2021-10-25 Tobias Burnus <tobias@codesourcery.com>
3837 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
3838 instead of #include <alloca.h> + alloca.
3840 2021-10-21 Chung-Lin Tang <cltang@codesourcery.com>
3842 * libgomp.texi (Support of strictly structured blocks in Fortran):
3844 * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
3846 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
3848 * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
3849 * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
3851 2021-10-20 Jakub Jelinek <jakub@redhat.com>
3854 * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
3855 (struct gomp_work_share): Only use aligned(64) attribute if
3856 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
3857 add padding before lock to ensure lock is at offset 64 bytes
3859 (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
3860 New poor man's static assertions.
3861 * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
3862 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
3864 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
3865 Richard Biener <rguenther@suse.de>
3867 * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
3869 2021-10-18 Jakub Jelinek <jakub@redhat.com>
3871 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
3872 && gomp_places_list_len < count after nfirst <= nlast loop condition.
3874 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
3883 * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
3885 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3887 * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
3888 type from char [50] to const char *.
3889 (places_array): Add a testcase for simplified syntax place followed
3890 by length or length and stride.
3892 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3894 * env.c (parse_one_place): Handle non-negative-number the same
3895 as { non-negative-number }. Reject even !number:1 and
3896 !number:1:stride or !place:1 or !place:1:stride instead of just
3897 length other than 1.
3898 * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
3899 and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
3900 omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
3902 * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
3905 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3907 * env.c (parse_schedule): For strtoul or strtoull calls which don't
3908 clearly reject return value 0 as invalid handle the case where end
3909 pointer is the same as first argument as invalid.
3910 (parse_unsigned_long_1): Likewise.
3911 (parse_one_place): Likewise.
3912 (parse_places_var): Likewise.
3913 (parse_stacksize): Likewise.
3914 (parse_spincount): Likewise.
3915 (parse_affinity): Likewise.
3916 (parse_gomp_openacc_dim): Likewise. Avoid strict aliasing violation.
3917 Make code valid C89.
3918 * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
3919 For strtoul calls which don't clearly reject return value 0 as
3920 invalid handle the case where end pointer is the same as first
3921 argument as invalid.
3922 (gomp_affinity_init_level_1): Likewise.
3923 (gomp_affinity_init_numa_domains): Likewise.
3924 * config/rtems/proc.c (parse_thread_pools): Likewise.
3926 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3928 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
3929 after creating count places clean up and return immediately.
3930 * testsuite/libgomp.c/places-6.c: New test.
3931 * testsuite/libgomp.c/places-7.c: New test.
3932 * testsuite/libgomp.c/places-8.c: New test.
3933 * testsuite/libgomp.c/places-9.c: New test.
3934 * testsuite/libgomp.c/places-10.c: New test.
3936 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3938 * env.c (parse_places_var): Handle numa_domains as level 5.
3939 * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
3941 (gomp_affinity_init_level): Use it instead of
3942 gomp_affinity_init_level_1 for level == 5.
3943 * testsuite/libgomp.c/places-5.c: New test.
3945 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3947 * env.c (parse_places_var): Handle ll_caches as level 4.
3948 * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
3950 (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
3952 (gomp_affinity_init_level): Likewise.
3953 * testsuite/libgomp.c/places-1.c: New test.
3954 * testsuite/libgomp.c/places-2.c: New test.
3955 * testsuite/libgomp.c/places-3.c: New test.
3956 * testsuite/libgomp.c/places-4.c: New test.
3958 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
3960 * libgomp.texi (OpenMP 5.0): Update entry for declare variant
3963 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
3965 * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
3967 2021-10-12 Julian Brown <julian@codesourcery.com>
3969 * target.c (gomp_copy_host2dev): Release device lock on cbuf
3972 2021-10-12 Tobias Burnus <tobias@codesourcery.com>
3974 * testsuite/libgomp.fortran/icv-3.f90: New.
3975 * testsuite/libgomp.fortran/icv-4.f90: New.
3977 2021-10-12 Jakub Jelinek <jakub@redhat.com>
3979 * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
3980 omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
3981 OMP_TEAMS_THREAD_LIMIT): Document.
3983 2021-10-12 Jakub Jelinek <jakub@redhat.com>
3985 * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
3986 to avoid makeinfo warnings.
3988 2021-10-12 Jakub Jelinek <jakub@redhat.com>
3990 * testsuite/libgomp.c-c++-common/icv-3.c: New test.
3991 * testsuite/libgomp.c-c++-common/icv-4.c: New test.
3993 2021-10-12 Jakub Jelinek <jakub@redhat.com>
3997 * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
3998 allocation sizes from 420 to 320 and from 768 to 568.
3999 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
4000 * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
4001 for cr from 16 to 4.
4003 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4005 * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
4006 * testsuite/libgomp.c/scan-12.c: Likewise.
4007 * testsuite/libgomp.c/scan-13.c: Likewise.
4008 * testsuite/libgomp.c/scan-14.c: Likewise.
4009 * testsuite/libgomp.c/scan-15.c: Likewise.
4010 * testsuite/libgomp.c/scan-16.c: Likewise.
4011 * testsuite/libgomp.c/scan-17.c: Likewise.
4012 * testsuite/libgomp.c/scan-18.c: Likewise.
4013 * testsuite/libgomp.c/scan-19.c: Likewise.
4014 * testsuite/libgomp.c/scan-20.c: Likewise.
4015 * testsuite/libgomp.c/scan-21.c: Likewise.
4016 * testsuite/libgomp.c/scan-22.c: Likewise.
4017 * testsuite/libgomp.c++/scan-9.C: Likewise.
4018 * testsuite/libgomp.c++/scan-10.C: Likewise.
4019 * testsuite/libgomp.c++/scan-11.C: Likewise.
4020 * testsuite/libgomp.c++/scan-12.C: Likewise.
4021 * testsuite/libgomp.c++/scan-13.C: Likewise.
4022 * testsuite/libgomp.c++/scan-14.C: Likewise.
4023 * testsuite/libgomp.c++/scan-15.C: Likewise.
4024 * testsuite/libgomp.c++/scan-16.C: Likewise.
4026 2021-10-12 Kewen Lin <linkw@linux.ibm.com>
4028 * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
4030 2021-10-11 Marcel Vollweiler <marcel@codesourcery.com>
4032 * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
4034 * omp.h.in: Add deprecated flag for omp_atv_sequential.
4035 * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
4036 * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
4037 * testsuite/libgomp.fortran/alloc-12.f90: New test.
4039 2021-10-11 Jakub Jelinek <jakub@redhat.com>
4041 * omp.h.in (omp_set_num_teams, omp_get_max_teams,
4042 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4043 * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
4044 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4045 * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
4046 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4047 * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
4048 * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
4049 omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
4050 omp_set_teams_thread_limit{,_,_8_}.
4051 * icv.c (omp_set_num_teams, omp_get_max_teams,
4052 omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
4054 * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
4055 (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
4056 (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
4058 * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
4059 gomp_teams_thread_limit_var as fallback if not zero. If num_teams
4060 is not specified, use gomp_nteams_var.
4061 * fortran.c (omp_set_num_teams, omp_get_max_teams,
4062 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
4064 (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
4065 omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
4066 omp_get_teams_thread_limit_): New functions.
4068 2021-10-09 liuhongt <hongtao.liu@intel.com>
4070 * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
4071 * testsuite/libgomp.c++/scan-11.C: Ditto.
4072 * testsuite/libgomp.c++/scan-12.C: Ditto.
4073 * testsuite/libgomp.c++/scan-13.C: Ditto.
4074 * testsuite/libgomp.c++/scan-14.C: Ditto.
4075 * testsuite/libgomp.c++/scan-15.C: Ditto.
4076 * testsuite/libgomp.c++/scan-16.C: Ditto.
4077 * testsuite/libgomp.c++/scan-9.C: Ditto.
4078 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
4079 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
4080 * testsuite/libgomp.c/scan-11.c: Ditto.
4081 * testsuite/libgomp.c/scan-12.c: Ditto.
4082 * testsuite/libgomp.c/scan-13.c: Ditto.
4083 * testsuite/libgomp.c/scan-14.c: Ditto.
4084 * testsuite/libgomp.c/scan-15.c: Ditto.
4085 * testsuite/libgomp.c/scan-16.c: Ditto.
4086 * testsuite/libgomp.c/scan-17.c: Ditto.
4087 * testsuite/libgomp.c/scan-18.c: Ditto.
4088 * testsuite/libgomp.c/scan-19.c: Ditto.
4089 * testsuite/libgomp.c/scan-20.c: Ditto.
4090 * testsuite/libgomp.c/scan-21.c: Ditto.
4091 * testsuite/libgomp.c/scan-22.c: Ditto.
4093 2021-10-09 Jakub Jelinek <jakub@redhat.com>
4095 * libgomp.texi (OpenMP 5.1): Mention implemented support for
4096 structured block sequences in C/C++. Mention support for
4097 unconstrained/reproducible modifiers on order clause.
4098 Mention partial (C/C++ only) support of extentensions to atomics
4099 construct. Mention partial (C/C++ on clause only) support of
4100 align/allocator modifiers on allocate clause.
4102 2021-10-02 Tobias Burnus <tobias@codesourcery.com>
4104 * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
4105 based on libgomp.c-c++-common/order-reproducible-1.c.
4106 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
4107 * testsuite/libgomp.fortran/my-usleep.c: New test.
4109 2021-10-01 Tobias Burnus <tobias@codesourcery.com>
4111 * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
4112 * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
4113 * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
4114 * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
4115 based on libgomp.c-c++-common/alloc-9.c.
4117 2021-10-01 Jakub Jelinek <jakub@redhat.com>
4119 * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
4120 * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
4122 2021-10-01 Jakub Jelinek <jakub@redhat.com>
4124 * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
4126 * env.c (handle_omp_display_env): Use ialias_call.
4127 * icv-device.c: Move ialias right below each function.
4128 (omp_get_device_num): Use ialias_call.
4129 * fortran.c (omp_fulfill_event): Add ialias_redirect.
4130 * icv.c (omp_get_active_level): Add ialias_redirect.
4132 2021-10-01 Jakub Jelinek <jakub@redhat.com>
4134 * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
4135 __alloc_align__ (1) attribute.
4136 * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
4138 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
4140 * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
4141 for -fintrinsic-modules-path= warning of the C compiler.
4142 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
4143 * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
4145 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
4147 * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
4148 omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
4149 * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
4151 * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
4153 * testsuite/libgomp.fortran/alloc-10.f90: New test.
4154 * testsuite/libgomp.fortran/alloc-6.f90: New test.
4155 * testsuite/libgomp.fortran/alloc-7.c: New test.
4156 * testsuite/libgomp.fortran/alloc-7.f90: New test.
4157 * testsuite/libgomp.fortran/alloc-8.f90: New test.
4158 * testsuite/libgomp.fortran/alloc-9.f90: New test.
4160 2021-09-30 Jakub Jelinek <jakub@redhat.com>
4162 * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
4163 omp_realloc): New prototypes.
4164 (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
4166 * allocator.c: Include string.h.
4167 (omp_aligned_alloc): No longer static, add ialias. Add new_alignment
4168 variable and use it instead of alignment so that when retrying the old
4169 alignment is used again. Don't retry if new alignment is the same
4170 as old alignment, unless allocator had pool size.
4171 (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
4172 (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
4173 * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
4174 omp_aligned_calloc and omp_realloc.
4175 * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
4176 omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
4177 * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
4178 * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
4179 * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
4180 * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
4182 2021-09-28 Tobias Burnus <tobias@codesourcery.com>
4185 * configure.ac: Only check for int-type = 2*size_t support when
4186 building with Fortran support.
4187 * configure: Regenerate.
4189 2021-09-28 Thomas Schwinge <thomas@codesourcery.com>
4191 * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
4192 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4194 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
4196 * team.c: Initialize start_data.
4197 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
4198 * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
4200 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
4202 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
4203 dg-message back to dg-note.
4205 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
4208 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
4209 expected dg-note output.
4211 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
4214 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
4215 r12-3722 by removing -Wno-missing-include-dirs.
4216 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
4218 2021-09-22 Jakub Jelinek <jakub@redhat.com>
4220 * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
4221 * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
4223 2021-09-21 Tobias Burnus <tobias@codesourcery.com>
4226 * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
4228 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4230 2021-09-18 Jakub Jelinek <jakub@redhat.com>
4232 * testsuite/libgomp.c++/default-1.C: New test.
4233 * testsuite/libgomp.c-c++-common/default-1.c: New test.
4234 * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
4235 to default clause in C and C++" as implemented.
4237 2021-09-17 Julian Brown <julian@codesourcery.com>
4239 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
4241 2021-09-17 Julian Brown <julian@codesourcery.com>
4243 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
4245 2021-09-17 Jakub Jelinek <jakub@redhat.com>
4247 * libgomp.texi (OpenMP 5.1): Spelling fix,
4248 declare variante -> declare variant.
4250 2021-09-17 Jakub Jelinek <jakub@redhat.com>
4252 * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
4253 Use /* */ comments instead of //.
4254 * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
4255 * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
4256 * testsuite/libgomp.c++/atomic-16.C: New test.
4257 * testsuite/libgomp.c++/atomic-17.C: New test.
4259 2021-09-10 Jakub Jelinek <jakub@redhat.com>
4261 * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
4262 * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
4263 * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
4265 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
4267 * libgomp.texi (OpenMP Implementation Status): Extend
4269 (OpenACC Profiling Interface): Fix typo.
4271 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
4273 * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
4274 not to 4.5; link to new section.
4275 (OpenMP Implementation Status): New.
4277 2021-09-06 Thomas Schwinge <thomas@codesourcery.com>
4279 * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
4281 2021-09-03 Tobias Burnus <tobias@codesourcery.com>
4283 * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
4285 * testsuite/libgomp.fortran/error-1.f90: Likewise.
4287 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
4288 Jakub Jelinek <jakub@redhat.com>
4290 * testsuite/libgomp.c/address-space-1.c: New file.
4292 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
4294 * testsuite/lib/libgomp.exp
4295 (check_effective_target_offload_target_intelmic): Remove 'proc'.
4296 (check_effective_target_offload_device_intel_mic): New 'proc'.
4297 * testsuite/libgomp.c-c++-common/on_device_arch.h
4298 (device_arch_intel_mic, on_device_arch_intel_mic): New.
4299 * testsuite/libgomp.c-c++-common/target-45.c: Use that for
4301 * testsuite/libgomp.fortran/target10.f90: Likewise.
4303 2021-08-23 Tobias Burnus <tobias@codesourcery.com>
4305 * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
4306 * testsuite/libgomp.fortran/taskloop-4.f90: New test.
4307 * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
4308 * testsuite/libgomp.fortran/taskloop-5.f90: New test.
4310 2021-08-23 Jakub Jelinek <jakub@redhat.com>
4312 * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
4313 * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
4314 * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
4316 2021-08-22 Thomas Schwinge <thomas@codesourcery.com>
4318 * config/nvptx/error.c (fwrite, exit): Override, too.
4319 * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
4320 of offloading testing.
4321 * testsuite/libgomp.fortran/error-1.f90: Likewise.
4323 2021-08-20 Tobias Burnus <tobias@codesourcery.com>
4325 * testsuite/libgomp.fortran/error-1.f90: New test.
4327 2021-08-20 Jakub Jelinek <jakub@redhat.com>
4329 * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
4330 * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
4331 * error.c (GOMP_warning, GOMP_error): New functions.
4332 * testsuite/libgomp.c-c++-common/error-1.c: New test.
4334 2021-08-18 Tobias Burnus <tobias@codesourcery.com>
4336 * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
4337 omp_target_free. omp_target_is_present, omp_target_memcpy,
4338 omp_target_memcpy_rect, omp_target_associate_ptr,
4339 omp_target_disassociate_ptr): Add interface.
4340 * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
4341 omp_target_free. omp_target_is_present, omp_target_memcpy,
4342 omp_target_memcpy_rect, omp_target_associate_ptr,
4343 omp_target_disassociate_ptr): Add interface.
4344 * testsuite/libgomp.fortran/alloc-1.F90: Remove local
4345 interface block for omp_alloc + omp_free.
4346 * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
4347 * testsuite/libgomp.fortran/refcount-1.f90: New test.
4348 * testsuite/libgomp.fortran/target-12.f90: New test.
4350 2021-08-18 Jakub Jelinek <jakub@redhat.com>
4352 * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
4354 2021-08-17 Tobias Burnus <tobias@codesourcery.com>
4356 * testsuite/libgomp.fortran/scope-1.f90: New test.
4357 * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
4359 2021-08-17 Jakub Jelinek <jakub@redhat.com>
4361 * Makefile.am (libgomp_la_SOURCES): Add scope.c
4362 * Makefile.in: Regenerated.
4363 * libgomp_g.h (GOMP_scope_start): Declare.
4364 * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
4365 * scope.c: New file.
4366 * testsuite/libgomp.c-c++-common/scope-1.c: New test.
4367 * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
4369 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
4371 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
4374 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
4376 * testsuite/libgomp.fortran/masked-1.f90: New test.
4378 2021-08-13 Thomas Schwinge <thomas@codesourcery.com>
4380 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
4382 2021-08-12 Jakub Jelinek <jakub@redhat.com>
4384 * testsuite/libgomp.c-c++-common/masked-1.c: New test.
4386 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
4388 * env.c (parse_bind_var): Accept 'primary' as alias for
4390 (omp_display_env): Add TODO comment to
4391 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
4392 * libgomp.texi: Change 'master thread' to 'primary thread'
4393 in line with OpenMP 5.1.
4394 (omp_get_proc_bind): Add omp_proc_bind_primary and note that
4395 omp_proc_bind_master is an alias of it.
4396 (OMP_PROC_BIND): Mention 'PRIMARY'.
4397 * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
4398 (omp_proc_bind_primary): Add.
4399 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
4400 * omp_lib.f90.in (omp_proc_bind_primary): Add.
4401 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
4402 * omp_lib.h.in (omp_proc_bind_primary): Add.
4403 * testsuite/libgomp.c/affinity-1.c: Check that
4404 'primary' works and is identical to 'master'.
4406 2021-08-09 Julian Brown <julian@codesourcery.com>
4407 Kwok Cheung Yeung <kcy@codesourcery.com>
4408 Thomas Schwinge <thomas@codesourcery.com>
4410 * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
4412 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
4413 [acc_device_radeon]: Update.
4414 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
4415 [ACC_DEVICE_TYPE_radeon]: Likewise.
4416 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
4417 [acc_device_radeon]: Likewise.
4418 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
4419 [ACC_DEVICE_TYPE_radeon]: Likewise.
4420 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
4421 'openacc_radeon_accel_selected' and '-O0'.
4422 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4424 2021-08-05 Chung-Lin Tang <cltang@codesourcery.com>
4426 * icv-device.c (omp_get_device_num): New API function, host side.
4427 * fortran.c (omp_get_device_num_): New interface function.
4428 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
4429 * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
4430 omp_get_device_num_.
4431 * libgomp.texi (omp_get_device_num): Add documentation for new API
4433 * omp.h.in (omp_get_device_num): Add declaration.
4434 * omp_lib.f90.in (omp_get_device_num): Likewise.
4435 * omp_lib.h.in (omp_get_device_num): Likewise.
4436 * target.c (gomp_load_image_to_device): If additional entry for device
4437 number exists at end of returned entries from 'load_image_func' hook,
4438 copy the assigned device number over to the device variable.
4439 * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
4440 (omp_get_device_num): New API function, device side.
4441 * plugin/plugin-gcn.c ("symcat.h"): Add include.
4442 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
4443 at end of returned 'target_table' entries.
4444 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
4445 (omp_get_device_num): New API function, device side.
4446 * plugin/plugin-nvptx.c ("symcat.h"): Add include.
4447 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
4448 at end of returned 'target_table' entries.
4449 * testsuite/lib/libgomp.exp
4450 (check_effective_target_offload_target_intelmic): New function for
4451 testing for intelmic offloading.
4452 * testsuite/libgomp.c-c++-common/target-45.c: New test.
4453 * testsuite/libgomp.fortran/target10.f90: New test.
4455 2021-07-30 Thomas Schwinge <thomas@codesourcery.com>
4456 Ulrich Drepper <drepper@redhat.com>
4458 * fortran.c (omp_display_env_, omp_display_env_8_): Only
4459 '#ifndef LIBGOMP_OFFLOADED_ONLY'.
4461 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
4462 Julian Brown <julian@codesourcery.com>
4463 Kwok Cheung Yeung <kcy@codesourcery.com>
4465 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
4466 's%oaccdevlow%oaccloops%g'.
4467 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
4468 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4469 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
4471 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
4473 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
4475 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
4477 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
4479 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
4481 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
4483 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
4485 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
4487 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
4489 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
4491 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4493 2021-07-27 Ulrich Drepper <drepper@gmail.com>
4495 * env.c (wait_policy, stacksize): New static variables,
4496 move out of handle_omp_display_env.
4497 (omp_display_env): New function. The meat of the old
4498 handle_omp_display_env function.
4499 (handle_omp_display_env): Change to not take parameters
4500 and instead use the global variables. Only perform
4501 parsing, defer to omp_display_env for the implementation.
4502 (initialize_env): Remove local variables wait_policy and
4503 stacksize. Don't pass parameters to handle_omp_display_env.
4504 * fortran.c: Add ialias_redirect for omp_display_env.
4505 (omp_display_env_, omp_display_env_8_): New functions.
4506 * libgomp.map (OMP_5.1): New version. Add omp_display_env,
4507 omp_display_env_, and omp_display_env_8_.
4508 * omp.h.in: Declare omp_display_env.
4509 * omp_lib.f90.in: Likewise.
4510 * omp_lib.h.in: Likewise.
4512 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
4513 Julian Brown <julian@codesourcery.com>
4515 * target.c (gomp_coalesce_buf_add): Update comment.
4516 (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
4518 (gomp_map_vars_internal): Only 'if (!aq)', do
4519 'gomp_coalesce_buf_add'.
4520 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
4523 2021-07-27 Julian Brown <julian@codesourcery.com>
4524 Thomas Schwinge <thomas@codesourcery.com>
4526 * libgomp.h (gomp_copy_host2dev): Update prototype.
4527 * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
4528 argument to gomp_copy_host2dev (false).
4529 * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
4530 (copy_data): Don't free src.
4531 (queue_push_copy): Remove free_src handling.
4532 (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
4533 (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
4535 (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
4537 * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
4538 (gomp_copy_host2dev): Add EPHEMERAL parameter. Snapshot source
4539 data when true, and set up deferred freeing of temporary buffer.
4540 (gomp_copy_dev2host): Update call to goacc_device_copy_async.
4541 (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
4542 (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
4543 calls to gomp_copy_host2dev with appropriate ephemeral argument.
4544 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
4547 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
4548 Tom de Vries <tom@codesourcery.com>
4550 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
4551 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
4553 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
4555 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
4556 sequencing of 'async' data copying vs. profiling events.
4557 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
4560 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
4561 Julian Brown <julian@codesourcery.com>
4563 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
4564 'async'/'wait' issue.
4565 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
4566 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
4567 * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
4569 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
4570 Joseph Myers <joseph@codesourcery.com>
4571 Cesar Philippidis <cesar@codesourcery.com>
4573 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
4575 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
4577 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
4579 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
4581 2021-07-20 Thomas Schwinge <thomas@codesourcery.com>
4584 * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
4585 '-Wno-error=array-bounds'.
4586 * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
4587 * libgomp.h [__AMDGCN__]: Likewise.
4589 2021-07-19 Thomas Schwinge <thomas@codesourcery.com>
4592 * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
4593 * libgomp.h [__AMDGCN__]: Likewise.
4595 2021-07-13 Jakub Jelinek <jakub@redhat.com>
4596 Florian Weimer <fweimer@redhat.com>
4598 * config/linux/sem.h: Don't include limits.h.
4599 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
4600 * config/linux/affinity.c: Include limits.h.
4602 2021-07-01 Jakub Jelinek <jakub@redhat.com>
4605 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
4607 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
4610 * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
4611 -foffload=nvptx-none= by -foffload-options=nvptx-none= to
4612 avoid disabling other offload targets.
4613 * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
4614 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
4615 * testsuite/libgomp.c/target-44.c: Likewise.
4617 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
4619 * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
4620 target has shared memory and disable some scalar pointer/allocatable
4621 checks if not as firstprivate does not work.
4623 2021-06-25 Chung-Lin Tang <cltang@codesourcery.com>
4626 * testsuite/libgomp.c-c++-common/struct-elem-5.c:
4627 Add "target offload_device_nonshared_as" condition for enabling test.
4629 2021-06-24 Jakub Jelinek <jakub@redhat.com>
4631 * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
4632 * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
4633 * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
4634 * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
4636 2021-06-23 Jakub Jelinek <jakub@redhat.com>
4638 PR middle-end/101167
4639 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
4641 2021-06-17 Chung-Lin Tang <cltang@codesourcery.com>
4643 * hashtab.h (htab_clear): New function with initialization code
4644 factored out from...
4645 (htab_create): ...here, adjust to use htab_clear function.
4646 * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
4647 special refcount values, add comments.
4648 (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
4649 (REFCOUNT_LINK): Likewise.
4650 (REFCOUNT_STRUCTELEM): New special refcount range for structure
4652 (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
4654 (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
4655 (REFCOUNT_STRUCTELEM_FLAG_LAST): Flag to indicate last sibling.
4656 (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
4657 (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
4658 (struct splay_tree_key_s): Add structelem_refcount and
4659 structelem_refcount_ptr fields into a union with dynamic_refcount.
4661 (gomp_map_vars): Delete declaration.
4662 (gomp_map_vars_async): Likewise.
4663 (gomp_unmap_vars): Likewise.
4664 (gomp_unmap_vars_async): Likewise.
4665 (goacc_map_vars): New declaration.
4666 (goacc_unmap_vars): Likewise.
4667 * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
4668 (goacc_enter_datum): Likewise.
4669 (goacc_enter_data_internal): Likewise.
4670 * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
4671 and goacc_unmap_vars.
4672 (GOACC_data_start): Adjust to use goacc_map_vars.
4673 (GOACC_data_end): Adjust to use goacc_unmap_vars.
4674 * target.c (hash_entry_type): New typedef.
4675 (htab_alloc): New function hook for hashtab.h.
4676 (htab_free): Likewise.
4677 (htab_hash): Likewise.
4678 (htab_eq): Likewise.
4679 (hashtab.h): Add file include.
4680 (gomp_increment_refcount): New function.
4681 (gomp_decrement_refcount): Likewise.
4682 (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
4683 gomp_increment_refcount.
4684 (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
4685 to gomp_map_vars_existing.
4686 (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
4687 variable to guard OpenMP specific paths, adjust calls to
4688 gomp_map_vars_existing, add structure element sibling splay_tree_key
4689 sequence creation code, adjust Fortran map case to avoid increment
4691 (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
4692 local refcount_set if caller passed in NULL, adjust call to
4693 gomp_map_vars_internal.
4694 (gomp_map_vars_async): Adjust and rename into...
4695 (goacc_map_vars): ...this new function, adjust call to
4696 gomp_map_vars_internal.
4697 (gomp_remove_splay_tree_key): New function with code factored out from
4698 gomp_remove_var_internal.
4699 (gomp_remove_var_internal): Add code to handle removing multiple
4700 splay_tree_key sequence for structure elements, adjust code to use
4701 gomp_remove_splay_tree_key for splay-tree key removal.
4702 (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
4703 gomp_decrement_refcount.
4704 (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
4705 local refcount_set if caller passed in NULL, adjust call to
4706 gomp_unmap_vars_internal.
4707 (gomp_unmap_vars_async): Adjust and rename into...
4708 (goacc_unmap_vars): ...this new function, adjust call to
4709 gomp_unmap_vars_internal.
4710 (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
4712 (GOMP_target_ext): Likewise.
4713 (gomp_target_data_fallback): Adjust call to gomp_map_vars.
4714 (GOMP_target_data): Likewise.
4715 (GOMP_target_data_ext): Likewise.
4716 (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
4717 (gomp_exit_data): Add refcount_set parameter, adjust to use
4718 gomp_decrement_refcount, adjust to queue splay-tree keys for removal
4720 (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
4721 gomp_map_vars and gomp_exit_data.
4722 (gomp_target_task_fn): Likewise.
4723 * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
4724 * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
4725 * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
4726 * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
4727 * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
4728 * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
4730 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
4733 * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
4735 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
4736 Thomas Schwinge <thomas@codesourcery.com>
4738 * libgomp.map (GOACC_2.0.2): New symbol version.
4739 * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
4740 * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
4742 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
4743 Andrew Stubbs <ams@codesourcery.com>
4745 * oacc-mem.c (goacc_enter_exit_data_internal): New function,
4747 (GOACC_enter_exit_data): ... here.
4748 (GOACC_declare): Use it.
4750 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
4752 * oacc-parallel.c (GOACC_declare): Move...
4753 * oacc-mem.c: ... here.
4754 * libgomp_g.h: Adjust.
4756 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
4757 Thomas Schwinge <thomas@codesourcery.com>
4759 * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
4762 2021-06-10 Jakub Jelinek <jakub@redhat.com>
4764 PR tree-optimization/100981
4765 * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
4766 dsdotr and dsdoti to 0.
4768 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
4770 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
4771 if atomic compare-and-swap is supported on 'int'.
4773 2021-06-09 Richard Biener <rguenther@suse.de>
4775 PR tree-optimization/100981
4776 * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
4778 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4780 * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
4782 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4784 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4785 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
4787 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4789 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
4790 '-DACC_MEM_SHARED=0'.
4791 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
4792 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
4793 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
4794 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
4795 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
4796 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
4797 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
4798 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
4799 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
4800 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
4801 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
4802 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
4803 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
4804 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
4805 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
4806 'acc_device_radeon' testing.
4807 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
4808 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
4809 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
4810 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
4811 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
4812 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
4813 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
4814 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
4815 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
4816 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
4817 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
4818 for non-'openacc_nvidia_accel_selected'.
4819 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
4820 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
4821 all implement this checking".
4822 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
4823 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
4824 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
4825 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
4826 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
4828 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4830 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
4831 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
4833 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4835 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
4836 for 'acc_device_radeon'.
4838 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4840 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
4841 for non-'acc_device_nvidia'.
4843 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4845 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
4846 'acc_device_radeon' testing.
4847 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4848 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4849 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4851 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4853 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
4854 require 'openacc_nvidia_accel_selected'. Fix up for
4855 'ACC_DEVICE_TYPE_radeon'.
4857 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4859 * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
4860 'openacc_nvidia_accel_selected'.
4861 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
4863 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4865 * testsuite/lib/libgomp.exp
4866 (check_effective_target_openacc_radeon_accel_selected):
4869 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4871 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
4874 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4876 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
4877 <acc_device_nvidia>: Update comment.
4879 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
4881 * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
4883 2021-05-27 Jakub Jelinek <jakub@redhat.com>
4885 * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
4886 check_effective_target_openacc_cublas,
4887 check_effective_target_openacc_cudart): New.
4888 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
4889 target openacc_cublas.
4890 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
4891 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
4892 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
4893 target openacc_cuda.
4894 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
4895 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
4896 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
4897 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
4898 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
4899 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
4900 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
4901 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
4902 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
4903 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
4904 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
4905 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
4906 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
4907 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
4908 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
4909 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
4910 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
4911 targets openacc_cublas and openacc_cudart.
4912 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
4913 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
4914 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
4915 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
4916 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
4917 Require effective target openacc_cudart.
4918 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
4919 for effective target openacc_cuda and add && defined USE_CUDA_H to
4920 preprocessor conditionals. Guard -lcuda also on openacc_cuda
4923 2021-05-26 Jakub Jelinek <jakub@redhat.com>
4926 * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
4927 GOMP_target_end_data, GOMP_target_update_ext,
4928 GOMP_target_enter_exit_data): New dummy entrypoints.
4929 * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
4930 GOMP_target_end_data, GOMP_target_update_ext,
4931 GOMP_target_enter_exit_data): Likewise.
4932 * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
4933 OMPFROM, OMPTO): Define.
4934 (main): Remove #pragma omp target teams around all the tests.
4935 * testsuite/libgomp.c-c++-common/target-41.c: New test.
4936 * testsuite/libgomp.c-c++-common/target-42.c: New test.
4938 2021-05-25 Jakub Jelinek <jakub@redhat.com>
4941 * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
4943 2021-05-24 Tobias Burnus <tobias@codesourcery.com>
4946 * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
4947 * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
4948 * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
4950 2021-05-22 Thomas Schwinge <thomas@codesourcery.com>
4953 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
4954 uninteresting/varying diagnostics.
4956 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
4959 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
4960 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4962 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
4965 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
4967 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
4968 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
4969 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4971 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4973 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4975 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4977 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4979 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4981 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
4983 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
4985 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
4987 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
4989 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4991 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4993 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4995 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4997 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4999 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
5001 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
5003 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
5005 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
5007 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
5009 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
5011 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5012 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5013 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5014 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
5015 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5016 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5017 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5018 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5019 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5020 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5021 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5022 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5023 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5024 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5025 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5027 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
5029 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
5031 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5033 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5034 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5036 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5037 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5038 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5039 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5040 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
5041 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5042 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
5044 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
5046 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
5048 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
5050 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
5052 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
5054 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
5056 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
5058 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
5060 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
5062 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
5064 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
5066 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
5068 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5069 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5070 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5072 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5074 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5075 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5076 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5078 2021-05-21 Julian Brown <julian@codesourcery.com>
5079 Chung-Lin Tang <cltang@codesourcery.com>
5080 Thomas Schwinge <thomas@codesourcery.com>
5083 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
5085 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5087 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5090 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5092 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
5093 for nvptx offloading.
5095 2021-05-21 Tobias Burnus <tobias@codesourcery.com>
5097 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
5099 2021-05-19 Thomas Schwinge <thomas@codesourcery.com>
5102 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
5104 2021-05-19 Julian Brown <julian@codesourcery.com>
5106 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
5108 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
5110 * testsuite/lib/libgomp.exp
5111 (check_effective_target_offload_target_nvptx): Don't shadow global
5112 'offload_targets' variable.
5114 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
5116 * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
5117 '-latomic' to nvptx offloading compilation.
5118 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5120 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
5122 * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
5123 offloading compilation.
5125 2021-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
5127 * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
5128 if new tasks generated.
5129 * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
5131 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
5133 * testsuite/libgomp.fortran/parallel-master.f90: New test.
5135 2021-05-13 Martin Liska <mliska@suse.cz>
5138 * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
5139 * testsuite/libgomp.c/pr46032-2.c: Likewise.
5140 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
5141 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
5143 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
5145 * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
5146 * testsuite/libgomp.fortran/task-detach-12.f90: New test.
5148 2021-05-11 Jakub Jelinek <jakub@redhat.com>
5150 PR middle-end/100471
5151 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
5152 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
5154 * testsuite/libgomp.c/task-reduction-4.c: New test.
5156 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
5157 Tom de Vries <tdevries@suse.de>
5159 * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
5160 complex/floating-point || + && reduction with 'omp target'.
5161 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5163 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
5165 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
5166 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
5167 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
5168 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
5170 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
5173 * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
5174 declaration to scope of non-'depend'-guarded assignment to avoid races.
5176 2021-05-03 Tom de Vries <tdevries@suse.de>
5179 * testsuite/libgomp.c/target-44.c: New test.
5181 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
5183 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
5185 2021-04-29 Tom de Vries <tdevries@suse.de>
5187 * testsuite/libgomp.c/pr81778.c: New test.
5189 2021-04-29 Tom de Vries <tdevries@suse.de>
5192 * testsuite/libgomp.c/target-43.c: New file.
5194 2021-04-28 Jakub Jelinek <jakub@redhat.com>
5195 Tobias Burnus <tobias@codesourcery.com>
5197 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
5198 * target.c (gomp_load_plugin_for_device): If set and if a plugin
5199 can't be dlopened, silently assume it has no devices.
5200 * Makefile.in: Regenerate.
5201 * config.h.in: Regenerate.
5202 * configure: Regenerate.
5204 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
5206 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
5207 Use [Ww]arning in dg-bogus as FE diagnostic and default
5208 diagnostic differ and the result depends on ENABLE_OFFLOAD.
5209 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5210 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5211 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5213 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
5215 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
5216 Correct spelling in dg-bogus to match -Wopenacc-parallelism.
5217 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5218 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5219 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5221 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
5222 Nathan Sidwell <nathan@codesourcery.com>
5223 Tom de Vries <vries@codesourcery.com>
5224 Julian Brown <julian@codesourcery.com>
5225 Kwok Cheung Yeung <kcy@codesourcery.com>
5227 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
5228 '-Wopenacc-parallelism', and match diagnostics, as appropriate.
5229 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5230 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5231 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5232 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5233 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
5235 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
5236 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5237 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5238 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5240 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
5241 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5243 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5244 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5245 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5246 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5247 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5248 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5250 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5251 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
5252 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5253 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5254 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5255 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
5256 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5257 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5258 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5259 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5260 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5262 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
5264 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
5266 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5267 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5269 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5270 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
5271 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5272 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5273 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5274 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5275 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
5277 2021-04-22 Richard Biener <rguenther@suse.de>
5279 * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
5282 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
5284 * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
5285 omp_depend_kind instead of defining it as 16.
5287 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
5289 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
5290 New, based on check_effective_target_offload_target_nvptx.
5291 (check_effective_target_offload_target_nvptx): Call it.
5292 (check_effective_target_offload_target_amdgcn): New.
5293 * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
5294 Require target offload_target_nvptx || offload_target_amdgcn.
5295 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
5296 * testsuite/libgomp.c/pr86416-1.c: Likewise.
5297 * testsuite/libgomp.c/pr86416-2.c: Likewise.
5299 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
5301 * testsuite/libgomp.fortran/depobj-1.f90: New test.
5303 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
5305 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
5306 '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
5307 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
5309 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5311 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5313 2021-04-15 Thomas Schwinge <thomas@codesourcery.com>
5316 * testsuite/lib/libgomp.exp
5317 (check_effective_target_offload_device_nvptx): New.
5318 * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
5319 resolved, make sure that we exit quickly, with error status,
5321 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
5322 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
5324 2021-04-14 Jakub Jelinek <jakub@redhat.com>
5327 * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
5328 cp = omp_alloc with cp, p arguments instead of cq, q and call
5329 c_f_pointer after last cq = omp_alloc with cq, q.
5331 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
5334 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
5335 for loop with GT/GE condition.
5336 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
5338 2021-04-09 Thomas Schwinge <thomas@codesourcery.com>
5343 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
5345 2021-04-09 Jakub Jelinek <jakub@redhat.com>
5348 * team.c (gomp_thread_start): Call pthread_setspecific for
5349 !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
5350 has been initialized to avoid false positive warning.
5352 2021-03-29 Tobias Burnus <tobias@codesourcery.com>
5355 * testsuite/lib/on_device_arch.c: Move to ...
5356 * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
5357 * testsuite/libgomp.fortran/on_device_arch.c: New file;
5358 #include on_device_arch.h.
5359 * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
5360 on_device_arch.h instead of using dg-additional-source.
5361 * testsuite/libgomp.c/pr99555-1.c: Likewise.
5362 * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
5363 on_device_arch.c without relative paths.
5365 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
5367 * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
5368 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
5369 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
5370 * config.h.in: Regenerate.
5371 * configure: Likewise.
5373 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
5376 * testsuite/lib/on_device_arch.c: New file.
5377 * testsuite/libgomp.c/pr99555-1.c: Likewise.
5378 * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
5379 skip for nvptx offloading, with error status.
5380 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
5382 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
5384 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
5385 OpenACC 'serial' construct diagnostic for nvptx offloading.
5387 2021-03-15 Tobias Burnus <tobias@codesourcery.com>
5390 * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
5392 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
5395 * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
5397 2021-03-04 Jakub Jelinek <jakub@redhat.com>
5399 * configure.ac: Add AC_CHECK_SIZEOF([void *]).
5400 * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
5401 checking of -m32 or -mx32 options on the command line.
5402 * config.h.in: Regenerated.
5403 * configure: Regenerated.
5405 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
5407 * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
5408 support from the target.
5410 2021-02-25 Kwok Cheung Yeung <kcy@codesourcery.com>
5411 Jakub Jelinek <jakub@redhat.com>
5414 * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
5415 (struct gomp_task): Replace detach and completion_sem fields with
5416 union containing completion_sem and detach_team. Add deferred_p
5418 (struct gomp_team): Remove task_detach_queue.
5419 * task.c: Include assert.h.
5420 (gomp_init_task): Initialize deferred_p and completion_sem fields.
5421 Rearrange initialization order of fields.
5422 (task_fulfilled_p): Delete.
5423 (GOMP_task): Use address of task as the event handle. Remove
5424 initialization of detach field. Initialize deferred_p field.
5425 Use automatic local for completion_sem. Initialize detach_team field
5427 (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
5428 Set kind of suspended detach task to GOMP_TASK_DETACHED and
5429 decrement task_running_count. Move finish_cancelled block out of
5430 else branch. Relocate call to gomp_team_barrier_done.
5431 (GOMP_taskwait): Handle tasks with completion events that have not
5433 (GOMP_taskgroup_end): Likewise.
5434 (omp_fulfill_event): Use address of task as event handle. Post to
5435 completion_sem for undeferred tasks. Clear detach_team if task
5436 has not finished. For finished tasks, handle post-execution tasks,
5437 call gomp_team_barrier_wake if necessary, and free task.
5438 * team.c (gomp_new_team): Remove initialization of task_detach_queue.
5439 (free_team): Remove free of task_detach_queue.
5440 * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
5441 * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
5442 * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
5443 * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
5444 * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
5445 Change data-sharing of detach events on enclosing parallel to private.
5446 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. Remove
5448 * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
5449 * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
5450 * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
5451 * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
5452 * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
5453 * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
5454 * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
5455 * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
5456 * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
5457 * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
5458 Change data-sharing of detach events on enclosing parallel to private.
5459 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise. Remove
5461 * testsuite/libgomp.fortran/task-detach-7.f90: New.
5462 * testsuite/libgomp.fortran/task-detach-8.f90: New.
5463 * testsuite/libgomp.fortran/task-detach-9.f90: New.
5464 * testsuite/libgomp.fortran/task-detach-10.f90: New.
5465 * testsuite/libgomp.fortran/task-detach-11.f90: New.
5467 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
5470 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
5472 2021-02-17 Julian Brown <julian@codesourcery.com>
5474 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
5477 2021-02-17 Julian Brown <julian@codesourcery.com>
5479 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
5480 * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
5482 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
5484 * config/linux/x86/futex.h (__futex_wait):
5485 Revert output type back to long.
5486 (__futex_wake): Ditto.
5487 (futex_wait): Update for revert.
5488 (futex_wake): Ditto.
5490 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
5492 * config/linux/x86/futex.h (__futex_wait): New static inline
5493 wrapper function. Correct output type to int and
5494 timeout type to void *.
5495 (__futex_wake): New static inline wrapper function.
5496 Correct output type to int.
5497 (futex_wait): Use __futex_wait.
5498 (futex_wake): Use __futex_wake.
5500 2021-02-10 Julian Brown <julian@codesourcery.com>
5503 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
5506 2021-02-04 Julian Brown <julian@codesourcery.com>
5508 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
5510 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
5512 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
5513 EF_AMDGPU_MACH_AMDGCN_GFX908.
5514 (gcn_gfx908_s): New constant string.
5515 (isa_hsa_name): Add gfx908.
5516 (isa_code): Add gfx908.
5518 2021-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
5520 * libgomp.texi (omp_fulfill_event): New entry.
5522 2021-01-20 Jakub Jelinek <jakub@redhat.com>
5524 * task.c (GOMP_task): Rename priority argument to priority_arg,
5525 add priority automatic variable and modify that variable. Instead of
5526 clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
5527 check flags for that bit.
5529 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
5532 * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
5534 2021-01-18 Andreas Schwab <schwab@suse.de>
5536 * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
5538 2021-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
5540 * config/rtems/sem.h (gomp_sem_getcount): New function.
5542 2021-01-18 Jakub Jelinek <jakub@redhat.com>
5544 * config/linux/sem.h (gomp_sem_getcount): New function.
5545 * config/posix/sem.h (gomp_sem_getcount): New function.
5546 * config/posix/sem.c (gomp_sem_getcount): New function.
5547 * config/accel/sem.h (gomp_sem_getcount): New function.
5548 * task.c (task_fulfilled_p): Use gomp_sem_getcount.
5549 (omp_fulfill_event): Likewise.
5551 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
5553 * fortran.c (omp_fulfill_event_): New.
5554 * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
5555 (struct gomp_team): Add task_detach_queue and task_detach_count
5557 * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
5558 * libgomp_g.h (GOMP_task): Add extra argument.
5559 * omp.h.in (enum omp_event_handle_t): New.
5560 (omp_fulfill_event): New.
5561 * omp_lib.f90.in (omp_event_handle_kind): New.
5562 (omp_fulfill_event): New.
5563 * omp_lib.h.in (omp_event_handle_kind): New.
5564 (omp_fulfill_event): Declare.
5565 * priority_queue.c (priority_tree_find): New.
5566 (priority_list_find): New.
5567 (priority_queue_find): New.
5568 * priority_queue.h (priority_queue_predicate): New.
5569 (priority_queue_find): New.
5570 * task.c (gomp_init_task): Initialize detach field.
5571 (task_fulfilled_p): New.
5572 (GOMP_task): Add detach argument. Ignore detach argument if
5573 GOMP_TASK_FLAG_DETACH not set in flags. Initialize completion_sem
5574 field. Copy address of completion_sem into detach argument and
5575 into the start of the data record. Wait for detach event if task
5577 (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
5578 Remove completed tasks and requeue dependent tasks.
5579 (omp_fulfill_event): New.
5580 * team.c (gomp_new_team): Initialize task_detach_queue and
5581 task_detach_count fields.
5582 (free_team): Free task_detach_queue field.
5583 * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
5584 * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
5585 * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
5586 * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
5587 * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
5588 * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
5589 * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
5590 * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
5591 * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
5592 * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
5593 * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
5594 * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
5596 2021-01-15 Jakub Jelinek <jakub@redhat.com>
5599 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
5600 be added through preprocessor check on
5601 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
5603 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
5606 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
5608 * configure: Regenerate.
5609 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
5612 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
5614 * configure: Re-generate.
5616 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
5618 * configure: Re-generate.
5620 2021-01-05 Julian Brown <julian@codesourcery.com>
5622 * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
5623 (struct ptx_device): Add omp_stacks struct.
5624 (nvptx_open_device): Initialise cached-stacks housekeeping info.
5625 (nvptx_close_device): Free cached stacks block and mutex.
5626 (nvptx_stacks_free): New function.
5627 (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
5628 (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
5629 (nvptx_stacks_alloc): Rename to...
5630 (nvptx_stacks_acquire): This. Cache stacks block between runs if same
5631 size or smaller is required.
5632 (nvptx_stacks_free): Remove.
5633 (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
5634 during kernel execution.
5636 2021-01-01 Jakub Jelinek <jakub@redhat.com>
5638 * libgomp.texi: Bump @copying's copyright year.
5640 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
5642 * libgomp.texi (Top): Avoid bad "up" link.
5644 2020-12-18 Jakub Jelinek <jakub@redhat.com>
5646 * testsuite/libgomp.c/task-6.c: New test.
5648 2020-12-09 Andrew Stubbs <ams@codesourcery.com>
5650 * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
5651 (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
5653 2020-12-08 Tobias Burnus <tobias@codesourcery.com>
5655 * testsuite/libgomp.fortran/scan-1.f90: New test.
5657 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
5660 * configure: Regenerate.
5662 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
5664 * configure: Regenerate.
5666 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
5668 * testsuite/libgomp.oacc-c++/cache-1.C: New.
5669 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
5671 2020-11-25 Andrew Stubbs <ams@codesourcery.com>
5673 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
5676 2020-11-24 Andrew Stubbs <ams@codesourcery.com>
5678 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
5679 (reserved): Delete unused define.
5681 2020-11-24 Thomas Schwinge <thomas@codesourcery.com>
5683 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
5684 Tcl 8.5-specific behavior.
5685 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5687 2020-11-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5689 * env.c (gomp_global_icv): Remove nest_var field. Add
5690 max_active_levels_var field.
5691 (gomp_max_active_levels_var): Remove.
5692 (parse_boolean): Return true on success.
5693 (handle_omp_display_env): Express OMP_NESTED in terms of
5694 max_active_levels_var. Change format specifier for
5695 max_active_levels_var.
5696 (initialize_env): Set max_active_levels_var from
5697 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
5699 * icv.c (omp_set_nested): Express in terms of
5700 max_active_levels_var.
5701 (omp_get_nested): Likewise.
5702 (omp_set_max_active_levels): Use max_active_levels_var field instead
5703 of gomp_max_active_levels_var.
5704 (omp_get_max_active_levels): Likewise.
5705 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
5706 max_active_levels_var field.
5707 (gomp_supported_active_levels): Set to UCHAR_MAX.
5708 (gomp_max_active_levels_var): Delete.
5709 * libgomp.texi (omp_get_nested): Update documentation.
5710 (omp_set_nested): Likewise.
5711 (OMP_MAX_ACTIVE_LEVELS): Likewise.
5712 (OMP_NESTED): Likewise.
5713 (OMP_NUM_THREADS): Likewise.
5714 (OMP_PROC_BIND): Likewise.
5715 * parallel.c (gomp_resolve_num_threads): Replace reference
5716 to nest_var with max_active_levels_var. Use max_active_levels_var
5717 field instead of gomp_max_active_levels_var.
5719 2020-11-18 Tobias Burnus <tobias@codesourcery.com>
5721 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
5722 nvptx_usleep; use also for device={arch(gcn)}.
5724 2020-11-14 Jakub Jelinek <jakub@redhat.com>
5726 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
5727 (foo): Add tests for non-VLA private and firstprivate clauses on
5729 (bar): Likewise. Remove taking of address from private/firstprivate
5731 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
5732 (foo): Add p, q, px and s arguments. Add tests for array reductions
5733 and for non-VLA private and firstprivate clauses on omp task.
5735 (main): Adjust foo caller. Don't call bar.
5737 2020-11-13 Gergö Barany <gergo@codesourcery.com>
5738 Thomas Schwinge <thomas@codesourcery.com>
5740 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
5742 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
5744 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5746 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
5747 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5749 2020-11-13 Gergö Barany <gergo@codesourcery.com>
5750 Thomas Schwinge <thomas@codesourcery.com>
5753 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
5755 2020-11-13 Jakub Jelinek <jakub@redhat.com>
5757 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
5758 for array reductions.
5759 (main): Adjust foo callers.
5761 2020-11-12 Jakub Jelinek <jakub@redhat.com>
5763 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
5764 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
5765 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
5766 * allocator.c (omp_aligned_alloc): New for now static function,
5767 add alignment argument and handle it.
5768 (omp_alloc): Reimplement using omp_aligned_alloc.
5769 (GOMP_alloc, GOMP_free): New functions.
5770 (omp_free): Add ialias.
5771 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
5772 * testsuite/libgomp.c++/allocate-1.C: New test.
5774 2020-11-12 Thomas Schwinge <thomas@codesourcery.com>
5777 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
5779 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
5781 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
5783 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
5784 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
5785 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
5786 (goacc_enter_data_internal): Likewise.
5787 * target.c (gomp_map_vars_internal):
5788 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
5789 of gomp_attach_pointer for OpenMP cases.
5790 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
5791 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
5792 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
5794 2020-11-05 Ulrich Drepper <drepper@redhat.com>
5795 Kwok Cheung Yeung <kcy@codesourcery.com>
5797 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
5798 * Makefile.in: Regenerate.
5799 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
5800 pragmas to ignore -Wdeprecated-declarations warnings.
5802 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
5803 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
5804 and omp_get_nested with __GOMP_DEPRECATED_5_0.
5805 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
5807 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
5809 * testsuite/libgomp.c/affinity-1.c: Likewise.
5810 * testsuite/libgomp.c/affinity-2.c: Likewise.
5811 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
5812 * testsuite/libgomp.c/lib-1.c: Likewise.
5813 * testsuite/libgomp.c/nested-1.c: Likewise.
5814 * testsuite/libgomp.c/nested-2.c: Likewise.
5815 * testsuite/libgomp.c/nested-3.c: Likewise.
5816 * testsuite/libgomp.c/pr32362-1.c: Likewise.
5817 * testsuite/libgomp.c/pr32362-2.c: Likewise.
5818 * testsuite/libgomp.c/pr32362-3.c: Likewise.
5819 * testsuite/libgomp.c/pr35549.c: Likewise.
5820 * testsuite/libgomp.c/pr42942.c: Likewise.
5821 * testsuite/libgomp.c/pr61200.c: Likewise.
5822 * testsuite/libgomp.c/sort-1.c: Likewise.
5823 * testsuite/libgomp.c/target-5.c: Likewise.
5824 * testsuite/libgomp.c/target-6.c: Likewise.
5825 * testsuite/libgomp.c/teams-1.c: Likewise.
5826 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
5827 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
5828 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
5829 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
5830 * testsuite/libgomp.fortran/lib1.f90: Likewise.
5831 * testsuite/libgomp.fortran/lib2.f: Likewise.
5832 * testsuite/libgomp.fortran/nested1.f90: Likewise.
5833 * testsuite/libgomp.fortran/teams1.f90: Likewise.
5835 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
5838 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
5839 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
5840 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
5842 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
5846 * testsuite/lib/libgomp.exp (libgomp_init): Set
5847 'gcc_warning_prefix', 'gcc_error_prefix'.
5849 2020-10-30 Jakub Jelinek <jakub@redhat.com>
5851 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
5852 even in field_tgt_clear initializer.
5854 2020-10-28 Jakub Jelinek <jakub@redhat.com>
5856 * testsuite/libgomp.c/target-42.c: New test.
5858 2020-10-28 Jakub Jelinek <jakub@redhat.com>
5859 Tom de Vries <tdevries@suse.de>
5862 * testsuite/libgomp.c/usleep.h: New file.
5863 * testsuite/libgomp.c/target-32.c: Include usleep.h.
5864 (main): Use tgt_usleep instead of usleep.
5865 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
5866 (main): Use tgt_usleep instead of usleep.
5868 2020-10-28 Jakub Jelinek <jakub@redhat.com>
5871 * testsuite/libgomp.c/declare-variant-1.c: New test.
5873 2020-10-22 Jakub Jelinek <jakub@redhat.com>
5875 * testsuite/libgomp.c/target-41.c: New test.
5877 2020-10-22 Jakub Jelinek <jakub@redhat.com>
5879 * icv.c (omp_get_initial_device): Remove including corresponding
5881 * icv-device.c (omp_get_initial_device): New function. Return
5882 gomp_get_num_devices (). Add ialias.
5883 * target.c (resolve_device): Don't fail with
5884 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
5885 gomp_get_num_devices ().
5886 (omp_target_alloc, omp_target_free, omp_target_is_present,
5887 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
5888 omp_target_disassociate_ptr, omp_pause_resource): Use
5889 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
5890 first use in the functions, in uses dominated by the
5891 gomp_get_num_devices call use num_devices_openmp instead.
5892 * libgomp.texi (omp_get_initial_device): Document.
5893 * config/gcn/icv-device.c (omp_get_initial_device): New function.
5895 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
5896 * testsuite/libgomp.c/target-40.c: New test.
5898 2020-10-21 Jakub Jelinek <jakub@redhat.com>
5900 * env.c (parse_target_offload): Change new_offload var type to int,
5901 preinitialize to -1, remove found var and test new_offload != -1
5904 2020-10-20 Jakub Jelinek <jakub@redhat.com>
5906 * target.c (gomp_target_init): Inside of the function, use automatic
5907 variables corresponding to num_devices, num_devices_openmp and devices
5908 global variables and update the globals only at the end of the
5911 2020-10-20 Kwok Cheung Yeung <kcy@codesourcery.com>
5913 * env.c (gomp_target_offload_var): New.
5914 (parse_target_offload): New.
5915 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
5916 (initialize_env): Parse OMP_TARGET_OFFLOAD.
5917 * libgomp.h (gomp_target_offload_t): New.
5918 (gomp_target_offload_var): New.
5919 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
5920 * target.c (resolve_device): Generate error if device not found and
5921 offloading is mandatory.
5922 (gomp_target_fallback): Generate error if offloading is mandatory.
5923 (GOMP_target): Add argument in call to gomp_target_fallback.
5924 (GOMP_target_ext): Likewise.
5925 (gomp_target_data_fallback): Generate error if offloading is mandatory.
5926 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
5927 (GOMP_target_data_ext): Likewise.
5928 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
5929 (gomp_target_init): Return early if offloading is disabled.
5931 2020-10-15 Kwok Cheung Yeung <kcy@codesourcery.com>
5933 * libgomp.texi (omp_get_max_active_levels): Modify description.
5934 (omp_get_supported_active_levels): Make descriptions consistent.
5936 2020-10-14 Jakub Jelinek <jakub@redhat.com>
5938 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
5940 2020-10-13 Kwok Cheung Yeung <kcy@codesourcery.com>
5942 * env.c (gomp_max_active_levels_var): Initialize to
5943 gomp_supported_active_levels.
5944 (initialize_env): Limit gomp_max_active_levels_var to be at most
5945 equal to gomp_supported_active_levels.
5946 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
5947 (omp_get_supported_active_levels_): New.
5948 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
5949 to at most equal to gomp_supported_active_levels.
5950 (omp_get_supported_active_levels): New.
5951 * libgomp.h (gomp_supported_active_levels): New.
5952 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
5953 omp_get_supported_active_levels_.
5954 * libgomp.texi (omp_get_supported_active_levels): New.
5955 (omp_set_max_active_levels): Update. Add reference to
5956 omp_get_supported_active_levels.
5957 * omp.h.in (omp_get_supported_active_levels): New.
5958 * omp_lib.f90.in (omp_get_supported_active_levels): New.
5959 * omp_lib.h.in (omp_get_supported_active_levels): New.
5960 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
5961 against omp_get_supported_active_levels.
5962 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
5964 2020-10-11 Clement Chigot <clement.chigot@atos.net>
5966 * config/t-aix: Delete and recreate libgomp before creating
5969 2020-10-08 Tom de Vries <tdevries@suse.de>
5972 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
5975 2020-10-06 Tom de Vries <tdevries@suse.de>
5977 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
5979 2020-10-06 Tom de Vries <tdevries@suse.de>
5982 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
5984 2020-10-05 Tom de Vries <tdevries@suse.de>
5987 * testsuite/libgomp.fortran/pr95654.f90: New test.
5989 2020-10-02 Tobias Burnus <tobias@codesourcery.com>
5991 * Makefile.in: Regenerate with automake 1.15.1.
5992 * aclocal.m4: Likewise.
5993 * configure: Likewise.
5994 * testsuite/Makefile.in: Likewise.
5996 2020-09-30 Andrew Stubbs <ams@codesourcery.com>
5998 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
6001 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
6003 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
6005 2020-09-29 Andrew Stubbs <ams@codesourcery.com>
6007 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
6008 total number of threads is one.
6009 (gomp_team_barrier_wake): Likewise.
6010 (gomp_team_barrier_wait_end): Likewise.
6011 (gomp_team_barrier_wait_cancel_end): Likewise.
6012 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
6013 (gomp_team_barrier_wake): Likewise.
6014 (gomp_team_barrier_wait_end): Likewise.
6015 (gomp_team_barrier_wait_cancel_end): Likewise.
6016 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
6018 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
6021 * testsuite/libgomp.c++/pr96390.C: New test.
6022 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
6024 2020-09-27 Clement Chigot <clement.chigot@atos.net>
6026 * config/t-aix: Use $(AR) without -X32_64.
6028 2020-09-25 Jakub Jelinek <jakub@redhat.com>
6030 * testsuite/libgomp.c/loop-25.c: New test.
6032 2020-09-22 Tobias Burnus <tobias@codesourcery.com>
6035 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
6037 2020-09-22 Tom de Vries <tdevries@suse.de>
6039 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
6042 2020-09-16 Nathan Sidwell <nathan@acm.org>
6044 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
6046 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
6049 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
6051 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
6054 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
6055 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
6056 (gomp_map_vars_existing): Update call to it.
6057 (gomp_map_fields_existing): Likewise
6058 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
6059 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
6061 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
6063 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
6064 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
6066 2020-09-14 Tom de Vries <tdevries@suse.de>
6068 * config/nvptx/atomic.c: New file. Add
6069 __sync_val_compare_and_swap_16.
6070 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
6071 target offload_target_nvptx.
6073 2020-09-08 Julian Brown <julian@codesourcery.com>
6075 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
6076 iteration-ordering assumptions.
6078 2020-09-08 Julian Brown <julian@codesourcery.com>
6080 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
6081 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
6083 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
6085 * plugin/plugin-nvptx.c (nvptx_free):
6086 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
6087 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
6090 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
6092 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
6094 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
6096 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
6098 2020-08-13 Jakub Jelinek <jakub@redhat.com>
6100 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
6101 * testsuite/libgomp.c/loop-23.c (main): Likewise.
6102 * testsuite/libgomp.c/loop-24.c: New test.
6104 2020-08-08 Jakub Jelinek <jakub@redhat.com>
6105 Tobias Burnus <tobias@codesourcery.com>
6108 * testsuite/libgomp.fortran/pr93553.f90: New test.
6110 2020-08-05 Jakub Jelinek <jakub@redhat.com>
6112 * testsuite/libgomp.c/loop-22.c: New test.
6113 * testsuite/libgomp.c/loop-23.c: New test.
6115 2020-08-05 Jakub Jelinek <jakub@redhat.com>
6118 * testsuite/libgomp.c/teams-3.c: New test.
6119 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
6121 (N(test)): Use it before all N(f*) calls.
6122 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
6123 (main): Don't call all test_* functions from within
6124 #pragma omp teams reduction(|:err), call them directly.
6126 2020-08-04 Tom de Vries <tdevries@suse.de>
6129 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
6130 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
6132 2020-08-03 Julian Brown <julian@codesourcery.com>
6133 Thomas Schwinge <thomas@codesourcery.com>
6135 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
6136 shared-memory devices. Extend with further checking.
6138 2020-08-03 Martin Jambor <mjambor@suse.cz>
6140 * plugin/Makefrag.am: Remove configuration of HSA plugin.
6141 * aclocal.m4: Regenerated.
6142 * Makefile.in: Regenerated.
6143 * config.h.in: Regenerated.
6144 * configure: Regenerated.
6145 * plugin/configfrag.ac: Likewise.
6146 * plugin/hsa_ext_finalize.h: Removed.
6147 * plugin/plugin-hsa.c: Likewise.
6148 * testsuite/Makefile.in: Regenerated.
6149 * testsuite/lib/libgomp.exp
6150 (offload_target_to_openacc_device_type): Remove hsa case.
6151 (check_effective_target_hsa_offloading_selected_nocache): Removed
6152 (check_effective_target_hsa_offloading_selected): Likewise.
6153 (libgomp_init): Do not add -Wno-hsa to additional_flags.
6154 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
6155 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
6156 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
6157 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
6158 * testsuite/libgomp.hsa.c/c.exp: Likewise.
6159 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
6160 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
6161 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
6162 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
6163 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
6164 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
6165 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
6166 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
6167 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
6168 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
6169 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
6170 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
6171 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
6172 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
6173 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
6174 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
6175 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
6176 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
6177 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
6179 2020-07-27 Julian Brown <julian@codesourcery.com>
6180 Thomas Schwinge <thomas@codesourcery.com>
6182 * libgomp.h (struct target_var_desc): Rename do_detach field to
6184 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
6185 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
6186 (goacc_enter_data_internal): Don't affect reference counts
6187 for attach mappings.
6188 (goacc_exit_data_internal): Don't affect reference counts for detach
6190 * target.c (gomp_map_vars_existing): Don't affect reference counts for
6192 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
6193 mark attach mappings.
6194 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
6195 reference count for attach mappings.
6196 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
6197 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
6198 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
6199 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
6201 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
6202 gracefully in no-finalize mode.
6203 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
6205 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
6207 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
6209 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6210 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6212 2020-07-23 Julian Brown <julian@codesourcery.com>
6213 Thomas Schwinge <thomas@codesourcery.com>
6215 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
6216 finalization for detach operation.
6217 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
6220 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
6222 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
6223 * libgomp_f.h.in (omp_check_defines): Check whether
6224 sizeof of determined Fortran kind and C typedef match.
6225 * omp_lib.f90.in: Add omp_depened_kind.
6226 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
6227 * configure: Regenerate.
6228 * Makefile.in: Regenerate.
6229 * testsuite/Makefile.in: Regenerate.
6231 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
6233 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
6234 gcc/testsuite/c-c++-common/gomp/.
6235 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
6236 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
6237 from gcc/testsuite/gfortran.dg/gomp/.
6238 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
6240 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
6242 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
6243 * omp_lib.h.in: Likewise.
6245 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
6248 * testsuite/libgomp.c/pr95620.c: New test.
6250 2020-07-16 Julian Brown <julian@codesourcery.com>
6251 Thomas Schwinge <thomas@codesourcery.com>
6253 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
6254 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
6256 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
6258 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
6259 avoid conversion on 32bit systems from 32bit to 64bit due
6260 to -fdefault-integer-8.
6262 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
6264 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
6265 variables; add character(kind=4) tests; update TODO comment.
6267 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
6269 * allocator.c: Add ialias for omp_init_allocator and
6270 omp_destroy_allocator.
6271 * configure.ac: Set INTPTR_T_KIND.
6272 * configure: Regenerate.
6273 * Makefile.in: Regenerate.
6274 * testsuite/Makefile.in: Regenerate.
6275 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
6276 omp_set_default_allocator_, omp_get_default_allocator_): New
6277 functions and ialias_redirect.
6278 * icv.c: Add ialias for omp_set_default_allocator and
6279 omp_get_default_allocator.
6280 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
6281 omp_destroy_allocator_, omp_set_default_allocator_ and
6282 omp_get_default_allocator_.
6283 * omp_lib.f90.in: Add allocator traits parameters, declare
6284 allocator routines and add related kind parameters.
6285 * omp_lib.h.in: Likewise.
6286 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
6287 * testsuite/libgomp.fortran/alloc-1.F90: New test.
6288 * testsuite/libgomp.fortran/alloc-2.F90: New test.
6289 * testsuite/libgomp.fortran/alloc-3.F: New test.
6290 * testsuite/libgomp.fortran/alloc-4.f90: New test.
6291 * testsuite/libgomp.fortran/alloc-5.f90: New test.
6293 2020-07-14 Tom de Vries <tom@codesourcery.com>
6294 Cesar Philippidis <cesar@codesourcery.com>
6295 Thomas Schwinge <thomas@codesourcery.com>
6296 Kwok Cheung Yeung <kcy@codesourcery.com>
6298 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
6300 (acc_init_1): Set acc_init_thread to pthread_self (). Set
6301 acc_init_state to initializing at the start, and to initialized at the
6303 (self_initializing_p): New function.
6304 (acc_get_device_type): Return acc_device_none if called by thread that
6305 is currently executing acc_init_1.
6306 * libgomp.texi (acc_get_device_type): Update documentation.
6307 (Implementation Status and Implementation-Defined Behavior): Likewise.
6308 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
6310 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
6312 * config/t-aix: Set BITS from compiler cpp macro.
6314 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
6316 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
6318 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
6321 * testsuite/libgomp.fortran/target-map-1.f90: New test.
6323 2020-07-14 Jakub Jelinek <jakub@redhat.com>
6325 * testsuite/libgomp.c/loop-21.c: New test.
6327 2020-07-13 Julian Brown <julian@codesourcery.com>
6328 Thomas Schwinge <thomas@codesourcery.com>
6330 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
6332 2020-07-10 Julian Brown <julian@codesourcery.com>
6333 Thomas Schwinge <thomas@codesourcery.com>
6335 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
6337 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
6338 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
6340 (acc_unmap_data): Update comment.
6341 (goacc_map_var_existing, goacc_enter_datum): Adjust for
6342 dynamic_refcount semantics.
6343 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
6344 Adjust for dynamic_refcount semantics.
6345 (goacc_enter_data_internal): Implement "present" case of dynamic
6346 memory-map handling here. Update "non-present" case for
6347 dynamic_refcount semantics.
6348 (goacc_exit_data_internal): Use goacc_exit_datum_1.
6349 * target.c (gomp_map_vars_internal): Remove
6350 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
6352 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
6353 (gomp_load_image_to_device): Substitute dynamic_refcount for
6355 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
6356 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
6357 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
6358 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
6359 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
6361 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
6363 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
6365 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
6366 Remove stale comment.
6367 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
6368 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
6369 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6370 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6371 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6372 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
6374 2020-07-10 Julian Brown <julian@codesourcery.com>
6375 Thomas Schwinge <thomas@codesourcery.com>
6377 * oacc-mem.c (goacc_map_var_existing): New function.
6378 (goacc_enter_datum): Use above function.
6379 (goacc_exit_datum_1): New function.
6380 (goacc_exit_datum): Use above function.
6382 2020-07-09 Julian Brown <julian@codesourcery.com>
6383 Thomas Schwinge <thomas@codesourcery.com>
6386 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
6387 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
6389 2020-07-09 Julian Brown <julian@codesourcery.com>
6391 * oacc-mem.c (find_group_last): Group data-movement clauses
6392 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
6393 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
6395 2020-07-09 Jakub Jelinek <jakub@redhat.com>
6397 * testsuite/libgomp.c/loop-19.c: New test.
6398 * testsuite/libgomp.c/loop-20.c: New test.
6400 2020-07-09 Jakub Jelinek <jakub@redhat.com>
6402 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
6403 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
6404 it. Remove __omp_alloctrait_value_max__.
6405 * allocator.c (omp_init_allocator): Handle omp_atv_default for
6406 omp_atk_alignment and omp_atk_pool_size.
6408 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
6410 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
6411 behavior for 'GOMP_MAP_FORCE_FROM'.
6412 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
6414 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
6416 * oacc-mem.c (goacc_exit_data_internal): Remove
6417 'GOMP_MAP_ALWAYS_FROM' handling.
6419 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
6421 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
6422 'scan-assembler' with 'scan-offload-rtl'.
6423 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
6424 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
6425 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
6426 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
6428 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
6430 * target.c (gomp_map_vars_existing): Assert 'kind !=
6432 (gomp_map_vars_internal): Clean up.
6434 2020-06-27 Jakub Jelinek <jakub@redhat.com>
6436 * testsuite/libgomp.c/loop-17.c: New test.
6437 * testsuite/libgomp.c/loop-18.c: New test.
6439 2020-06-26 Marek Polacek <polacek@redhat.com>
6441 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
6443 2020-06-23 Alexandre Oliva <oliva@adacore.com>
6445 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
6446 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
6448 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
6450 * Makefile.am: Use -include.
6451 * Makefile.in: Regenerate.
6453 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
6455 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
6456 * Makefile.in: Regenerate
6457 * configure.ac (tmake_file): Substitute.
6458 * configure: Regenerate.
6459 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
6460 * config/t-aix: New file.
6462 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
6465 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
6468 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
6470 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
6471 variant for HSA_RUNTIME_LIB name.
6472 (find_executable_symbol_1): Delete.
6473 (find_executable_symbol): Delete.
6474 (init_kernel_properties): Add ".kd" suffix to symbol names.
6475 (find_load_offset): Delete.
6476 (create_and_finalize_hsa_program): Remove relocation handling.
6478 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
6480 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
6482 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
6486 * testsuite/libgomp.fortran/target-var.f90: New test.
6488 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
6489 Julian Brown <julian@codesourcery.com>
6491 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
6494 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
6495 Julian Brown <julian@codesourcery.com>
6497 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6500 2020-06-05 Julian Brown <julian@codesourcery.com>
6502 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
6503 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
6505 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6507 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6508 Evaluate 'copyfrom' individually for each entry.
6509 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
6511 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6513 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6514 Evaluate 'finalize' individually for each entry.
6515 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
6516 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
6519 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6521 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
6523 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
6525 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6526 Julian Brown <julian@codesourcery.com>
6528 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
6530 (acc_unmap_data, goacc_exit_data_internal): Restore
6531 'is_tgt_unmapped' checking.
6532 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
6534 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
6535 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
6536 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6537 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6538 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6539 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
6541 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6542 Julian Brown <julian@codesourcery.com>
6544 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
6546 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6549 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
6551 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6554 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
6557 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6558 Julian Brown <julian@codesourcery.com>
6560 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
6562 (acc_map_data): Clean up accordingly.
6564 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6566 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
6567 of over-eager 'finalize' clause.
6568 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
6570 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
6571 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
6572 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6573 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6574 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6575 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
6576 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
6577 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
6579 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6581 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
6583 2020-06-04 Julian Brown <julian@codesourcery.com>
6585 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
6587 (goacc_detach_internal): Likewise.
6589 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6591 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
6593 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
6594 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
6595 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
6596 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
6597 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
6599 2020-06-02 Jakub Jelinek <jakub@redhat.com>
6601 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
6604 2020-05-30 Jakub Jelinek <jakub@redhat.com>
6606 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
6608 2020-05-30 Jakub Jelinek <jakub@redhat.com>
6610 * allocator.c (omp_alloc): For size == 0, return NULL early.
6612 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
6615 * configure: Regenerated.
6617 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
6620 * testsuite/libgomp.fortran/async_io_9.f90: New test.
6622 2020-05-19 Jakub Jelinek <jakub@redhat.com>
6624 * omp.h.in (omp_uintptr_t): New typedef.
6625 (__GOMP_UINTPTR_T_ENUM): Define.
6626 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
6627 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
6628 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
6629 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
6630 omp_get_default_allocator, omp_alloc, omp_free): Declare.
6631 * libgomp.h (struct gomp_team_state): Add def_allocator field.
6632 (gomp_def_allocator): Declare.
6633 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
6634 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
6635 omp_alloc and omp_free.
6636 * team.c (gomp_team_start): Copy over ts.def_allocator.
6637 * env.c (gomp_def_allocator): New variable.
6638 (parse_wait_policy): Adjust function comment.
6639 (parse_allocator): New function.
6640 (handle_omp_display_env): Print OMP_ALLOCATOR.
6641 (initialize_env): Call parse_allocator.
6642 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
6643 * allocator.c: New file.
6644 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
6646 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
6647 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
6648 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
6649 * Makefile.in: Regenerated.
6651 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
6654 * configure: Regenerated.
6656 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
6659 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
6661 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
6663 * configure: Regenerated.
6665 2020-05-14 Jakub Jelinek <jakub@redhat.com>
6667 * testsuite/libgomp.c-c++-common/target-40.c: New test.
6669 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
6672 * testsuite/libgomp.fortran/pr66199-3.f90: New.
6673 * testsuite/libgomp.fortran/pr66199-4.f90: New.
6674 * testsuite/libgomp.fortran/pr66199-5.f90: New.
6675 * testsuite/libgomp.fortran/pr66199-6.f90: New.
6676 * testsuite/libgomp.fortran/pr66199-7.f90: New.
6677 * testsuite/libgomp.fortran/pr66199-8.f90: New.
6678 * testsuite/libgomp.fortran/pr66199-9.f90: New.
6680 2020-05-12 Jakub Jelinek <jakub@redhat.com>
6682 * testsuite/libgomp.c/target-39.c: New test.
6684 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
6686 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
6687 * openacc.f90 (acc_device_current): Likewise.
6688 * openacc.h (acc_device_current): Likewise.
6689 * openacc_lib.h (acc_device_current): Likewise.
6692 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
6693 'dg-allow-blank-lines-in-output'.
6695 * oacc-init.c (get_openacc_name): Handle 'gcn'.
6696 * testsuite/lib/libgomp.exp
6697 (offload_target_to_openacc_device_type) [amdgcn*]: Return
6698 'radeon'. Adjust all users.
6699 (check_effective_target_openacc_amdgcn_accel_present): Rename
6701 (check_effective_target_openacc_radeon_accel_present): ... this.
6703 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
6704 (check_effective_target_openacc_radeon_accel_selected): ... this.
6707 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
6710 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
6714 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
6716 (GOMP_OFFLOAD_init_device): Check return values from both calls to
6717 hsa_agent_iterate_regions.
6719 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
6722 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
6725 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
6728 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
6731 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
6734 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
6736 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
6739 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
6741 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
6743 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
6745 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
6747 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
6749 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
6751 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
6753 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
6755 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
6757 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
6759 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
6761 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
6763 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
6765 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
6767 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
6769 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
6771 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
6773 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
6775 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
6777 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
6779 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
6781 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
6783 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
6785 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
6787 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
6789 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
6791 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
6793 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
6795 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
6797 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
6799 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
6801 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
6804 2020-04-10 Julian Brown <julian@codesourcery.com>
6805 Thomas Schwinge <thomas@codesourcery.com>
6808 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
6810 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
6812 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
6814 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
6816 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
6818 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
6820 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
6822 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
6824 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
6826 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
6828 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
6830 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
6832 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
6834 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
6836 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
6838 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
6841 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
6843 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
6846 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
6849 * libgomp.oacc-c++/declare-pr94120.C: New.
6851 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
6853 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
6855 * configure: Regenerate.
6856 * testsuite/libgomp-site-extra.exp.in: New file.
6857 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
6859 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
6861 * testsuite/Makefile.in: Regenerate.
6863 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
6865 PR tree-optimization/89713
6867 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
6869 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
6871 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
6873 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
6874 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
6876 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
6879 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
6881 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
6884 * target.c (gomp_load_image_to_device): Fix link
6887 2020-03-19 Jakub Jelinek <jakub@redhat.com>
6890 * testsuite/libgomp.c++/pr93931.C: New test.
6892 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
6894 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
6895 dg-allow-blank-lines-in-output.
6897 2020-03-18 Julian Brown <julian@codesourcery.com>
6898 Tobias Burnus <tobias@codesourcery.com>
6900 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
6901 it work concurrently.
6903 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
6905 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
6906 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
6907 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
6909 2020-03-14 Jakub Jelinek <jakub@redhat.com>
6912 * testsuite/libgomp.c/pr93566.c: New test.
6914 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
6916 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
6917 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
6918 integer(acc_device_property) for the type of the return value of
6921 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
6923 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
6924 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
6925 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
6926 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
6927 (acc_set_device_num): Fix Fortran argument name, use same name for C.
6928 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
6929 corrections; add note about the previous interface and named constant.
6930 (OpenACC library and environment variables): Fix two typos.
6931 * openacc.f90: Use for all procedures the argument names from the spec
6932 as for …_h they are user visible.
6933 (openacc_kinds): Rename acc_device_property to
6934 acc_device_property_kinds and change value to int32 ; and update users.
6935 Re-add acc_device_property for for backward compatibility.
6936 (acc_get_property_string_h): Clean up as acc_device_property_kind
6938 (acc_get_property_h): Likewise and return c_size_t instead of
6939 acc_device_property.
6940 (openacc): Also export acc_device_property_kinds.
6941 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
6942 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
6943 handling; check against /= 0 instead of == 1 to match C.
6944 * openacc_lib.h: Use for all procedures the argument names from the spec
6945 as for …_h they are user visible. Place !GCC$ into the first column to
6946 be active also for fixed-form souce form.
6947 (acc_device_current, acc_device_property_kind, acc_device_property,
6948 acc_property_memory, acc_property_free_memory, acc_property_name,
6949 acc_property_vendor, acc_property_driver): New named constants.
6950 (acc_get_property, acc_get_property_string): New generic interface.
6952 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
6955 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
6956 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
6958 (gomp_target_task_fn): Assert "devicep->async_run_func".
6959 (clear_unsupported_flags): New function to remove unsupported flags
6960 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
6961 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
6962 * testsuite/libgomp.c/target-33.c:
6963 Remove xfail for offload_target_nvptx.
6964 * testsuite/libgomp.c/target-34.c: Likewise.
6966 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
6968 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
6969 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
6970 * testsuite/libgomp.c/target-34.c: Likewise.
6971 * testsuite/libgomp.c/target-link-1.c: Add xfail for
6972 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
6974 2020-02-09 Jakub Jelinek <jakub@redhat.com>
6976 * testsuite/libgomp.c/target-38.c: New test.
6978 2020-02-06 Jakub Jelinek <jakub@redhat.com>
6981 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
6983 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
6985 * testsuite/lib/libgomp.exp
6986 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
6987 and not as 'source' argument to libgomp_target_compile.
6989 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
6991 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
6992 (gcn_gfx801_s): Remove.
6993 (isa_hsa_name): Remove gfx801.
6994 (isa_gcc_name): Remove gfx801/carizzo.
6995 (isa_code): Remove gfx801.
6997 2020-02-03 Julian Brown <julian@codesourcery.com>
6998 Tobias Burnus <tobias@codesourcery.com>
7000 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
7001 and *_finalize variants; document acc_attach and acc_detach; update
7002 references from OpenACC 2.0 to 2.6.
7003 * openacc.f90 (openacc_version): Update to 201711.
7004 * openacc_lib.h (openacc_version): Update to 201711.
7005 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
7006 openacc_version to 201711.
7007 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7009 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
7011 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
7012 and vgpr_count fields.
7013 (struct kernel_info): Add a field for a hsa_kernel_description.
7014 (run_kernel): Reduce the number of threads/workers if the requested
7015 number would require too many VGPRs.
7016 (init_basic_kernel_info): Initialize description field with
7017 the hsa_kernel_description entry for the kernel.
7019 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
7022 * plugin/configfrag.ac (enable_offload_targets): Skip
7023 HSA and GCN plugin besides -m32 also for -mx32.
7024 * configure: Regenerate.
7026 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
7028 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
7030 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
7032 * plugin-gcn.c (struct agent_info): Add fields "name" and
7034 (GOMP_OFFLOAD_init_device): ... and init from here.
7035 (struct hsa_context_info): Add field "driver_version_s" ...
7036 (init_hsa_contest): ... and init from here.
7037 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
7039 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7040 Enable test execution for amdgcn and host offloading targets.
7041 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
7042 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7043 (expect_device_properties): Split function into ...
7044 (expect_device_string_properties): ... this new function ...
7045 (expect_device_memory): ... and this new function.
7046 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
7049 2020-01-28 Julian Brown <julian@codesourcery.com>
7051 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
7052 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
7053 component/non-component variable refs in a single directive.
7054 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
7056 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
7058 * configure.ac: Handle `--with-toolexeclibdir='.
7059 * Makefile.in: Regenerate.
7060 * aclocal.m4: Regenerate.
7061 * configure: Regenerate.
7062 * testsuite/Makefile.in: Regenerate.
7064 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
7066 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7067 (expect_device_properties): Remove "expected_free_mem" argument,
7068 change "expected_total_mem" argument type to size_t;
7069 change types of acc_get_property results to size_t,
7070 adapt format strings.
7071 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7072 Use %zu instead of %zd to print size_t values.
7073 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
7075 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
7076 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
7078 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
7080 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
7082 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
7085 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
7087 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
7088 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
7089 Adjust test dimensions for amdgcn.
7090 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
7091 gang/worker/vector expectations dynamically.
7092 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
7094 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
7095 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
7096 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
7097 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
7098 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
7099 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
7100 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
7101 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
7102 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
7103 (acc_gang): Recognise acc_device_radeon.
7104 (acc_worker): Likewise.
7105 (acc_vector): Likewise.
7106 (main): Set expectations for amdgcn.
7107 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
7108 (main): Adjust gang/worker/vector expectations dynamically.
7109 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
7110 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
7111 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
7112 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
7115 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
7117 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
7119 (openacc): Likewise.
7120 * openacc.f90 (openacc_kinds): Likewise.
7121 (openacc): Likewise.
7122 * openacc.h (acc_device_t): Likewise.
7123 * openacc_lib.h: Likewise.
7124 * testsuite/lib/libgomp.exp
7125 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
7126 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
7127 (cb_compute_construct_end): Likewise.
7128 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
7129 (cb_enqueue_launch_start): Likewise.
7130 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
7131 (cb_enter_data_end): Likewise.
7132 (cb_exit_data_start): Likewise.
7133 (cb_exit_data_end): Likewise.
7134 (cb_compute_construct_end): Likewise.
7135 (cb_enqueue_launch_start): Likewise.
7136 (cb_enqueue_launch_end): Likewise.
7137 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
7140 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
7142 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
7143 to use this instead of 'enum gomp_device_property'.
7144 (GOMP_OFFLOAD_get_property): Rename to...
7145 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
7146 * libgomp.h (struct gomp_device_descr): Move
7147 'GOMP_OFFLOAD_openacc_get_property'...
7148 (struct acc_dispatch_t): ... here. Adjust all users.
7149 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
7151 * target.c (gomp_map_vars_internal)
7152 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
7155 2020-01-10 Jakub Jelinek <jakub@redhat.com>
7158 * libgomp.h (gomp_print_string): Change return type from void to int.
7159 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
7160 not all characters have been written.
7162 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
7164 * libgomp.texi: Fix typos, use https.
7166 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
7168 * testsuite/libgomp.fortran/optional-map.f90: Add test for
7169 unallocated/disassociated actual arguments to nonallocatable/nonpointer
7170 dummy arguments; those are/shall be regarded as absent arguments.
7171 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
7172 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
7174 2020-01-01 Jakub Jelinek <jakub@redhat.com>
7176 Update copyright years.
7178 * libgomp.texi: Bump @copying's copyright year.
7180 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
7183 * oacc-init.c (goacc_runtime_deinitialize): New function.
7185 2019-12-28 Jakub Jelinek <jakub@redhat.com>
7188 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
7189 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
7191 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
7192 Frederik Harwath <frederik@codesourcery.com>
7193 Thomas Schwinge <tschwinge@codesourcery.com>
7195 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
7196 * libgomp-plugin.h (gomp_device_property_value): New union.
7197 (gomp_device_property_value): New prototype.
7198 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
7200 (acc_device_property_t): New enum.
7201 (acc_get_property, acc_get_property_string): New prototypes.
7202 * oacc-init.c (acc_get_device_type): Also assert that result
7203 is not `acc_device_current'.
7204 (get_property_any, acc_get_property, acc_get_property_string):
7206 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
7207 `acc_property_memory', `acc_property_free_memory',
7208 `acc_property_name', `acc_property_vendor' and
7209 `acc_property_driver' constants. Add `acc_device_property' data
7211 (openacc_internal): Add `acc_get_property' and
7212 `acc_get_property_string' interfaces. Add `acc_get_property_h',
7213 `acc_get_property_string_h', `acc_get_property_l' and
7214 `acc_get_property_string_l'.
7215 * oacc-host.c (host_get_property): New function.
7216 (host_dispatch): Wire it.
7217 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
7218 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
7219 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
7220 * libgomp.texi (OpenACC Runtime Library Routines): Add
7222 (acc_get_property): New node.
7223 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
7225 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
7226 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
7227 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
7229 (GOMP_OFFLOAD_get_property): New function.
7230 (struct ptx_device): Add new field "name".
7231 (cuda_driver_version_s): Add new static variable ...
7232 (nvptx_init): ... and init from here.
7234 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
7235 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
7236 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
7237 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
7238 with test helper functions.
7240 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
7242 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
7244 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
7247 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
7249 * target.c (gomp_map_vars_internal): Restore 'omp declare target
7252 2019-12-19 Julian Brown <julian@codesourcery.com>
7254 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
7255 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
7256 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
7258 2019-12-19 Julian Brown <julian@codesourcery.com>
7259 Cesar Philippidis <cesar@codesourcery.com>
7261 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
7262 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
7263 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
7264 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
7265 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
7266 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
7267 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
7268 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
7269 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
7270 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
7271 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
7272 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
7273 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
7275 2019-12-19 Julian Brown <julian@codesourcery.com>
7277 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
7278 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
7279 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
7280 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
7281 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
7282 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
7283 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
7284 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
7285 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
7286 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
7287 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
7288 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
7290 2019-12-19 Julian Brown <julian@codesourcery.com>
7292 * libgomp.h (struct target_var_desc): Add do_detach flag.
7293 * oacc-init.c (acc_shutdown_1): Free aux block if present.
7294 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
7295 struct components. Tidy up and add some new checks.
7296 (goacc_enter_data_internal): Update call to find_group_last.
7297 (goacc_exit_data_internal): Support detach operations and
7299 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
7300 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
7301 attach/detach in enter/exit data detection code.
7302 * target.c (gomp_map_vars_existing): Initialise do_detach field of
7304 (gomp_map_vars_internal): Support attach.
7305 (gomp_unmap_vars_internal): Support detach.
7307 2019-12-19 Julian Brown <julian@codesourcery.com>
7308 Thomas Schwinge <thomas@codesourcery.com>
7310 * libgomp.h (struct splay_tree_aux): Add attach_count field.
7311 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
7312 * libgomp.map (OACC_2.6): New section. Add acc_attach,
7313 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
7314 acc_detach_finalize_async.
7315 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
7316 acc_detach, acc_detach_async, acc_detach_finalize,
7317 acc_detach_finalize_async): New functions.
7318 * openacc.h (acc_attach, acc_attach_async, acc_detach,
7319 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
7321 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
7322 (gomp_remove_var_internal): Free attachment counts if present.
7323 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
7324 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
7326 2019-12-19 Julian Brown <julian@codesourcery.com>
7327 Cesar Philippidis <cesar@codesourcery.com>
7329 * libgomp.h (gomp_map_val): Add prototype.
7330 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
7331 open-coding device-address calculation.
7332 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
7335 2019-12-19 Julian Brown <julian@codesourcery.com>
7337 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
7338 field for virtual_refcount.
7339 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
7340 (gomp_free_memmap): Remove prototype.
7341 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
7342 instead of calling gomp_free_memmap.
7343 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
7345 (acc_unmap_data): Open code instead of forcing target_mem_desc's
7346 to_free field to NULL then calling gomp_unmap_vars. Handle
7347 REFCOUNT_INFINITY on target blocks.
7348 (goacc_enter_data): Rename to...
7349 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
7350 handling for mapping groups. Use virtual_refcount instead of
7351 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
7352 map_map_vars_async call. Re-do lookup for target pointer return value.
7353 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
7354 renamed goacc_enter_datum function.
7355 (goacc_exit_data): Rename to...
7356 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
7357 (acc_delete, acc_delete_async, acc_delete_finalize,
7358 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
7359 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
7360 goacc_exit_datum function.
7361 (gomp_acc_remove_pointer, find_pointer): Remove functions.
7362 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
7364 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
7365 goacc_exit_data_internal helper functions.
7366 * target.c (gomp_map_vars_internal): Handle
7367 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
7369 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
7370 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
7371 virtual_refcount field instead of dynamic_refcount.
7372 (gomp_free_memmap): Remove function.
7373 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
7374 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
7375 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
7377 2019-12-19 Julian Brown <julian@codesourcery.com>
7378 Thomas Schwinge <thomas@codesourcery.com>
7380 * libgomp.h (struct splay_tree_aux): New.
7381 (struct splay_tree_key_s): Replace link_key field with aux pointer.
7382 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
7384 (gomp_remove_var_internal): Free aux block if present.
7385 (gomp_load_image_to_device): Zero-initialise aux field instead of
7387 (omp_target_associate_pointer): Zero-initialise aux field.
7389 2019-12-18 Jakub Jelinek <jakub@redhat.com>
7392 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
7394 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
7397 2019-12-19 Julian Brown <julian@codesourcery.com>
7398 Maciej W. Rozycki <macro@codesourcery.com>
7399 Tobias Burnus <tobias@codesourcery.com>
7400 Thomas Schwinge <thomas@codesourcery.com>
7402 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
7403 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
7404 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
7405 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
7406 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
7407 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
7408 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
7409 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
7410 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
7412 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
7414 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
7416 (goacc_insert_pointer): ... from here, "present" case.
7417 (goacc_insert_pointer): Inline function into...
7418 (GOACC_enter_exit_data): ... here, and simplify.
7420 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
7422 (goacc_insert_pointer): ... from here, "not present" case.
7424 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
7427 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
7428 'goacc_enter_data', 'goacc_exit_data'.
7430 * oacc-mem.c (delete_copyout): Refactor into...
7431 (goacc_exit_data): ... this. Adjust all users.
7433 * oacc-mem.c (present_create_copy): Refactor into...
7434 (goacc_enter_data): ... this. Adjust all users.
7436 * target.c (gomp_unmap_vars_internal): Add a safeguard to
7439 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
7440 like 'GOMP_MAP_FROM'.
7445 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
7447 (GOACC_enter_exit_data): Simplify accordingly.
7448 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
7450 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
7451 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
7453 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
7455 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
7456 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
7458 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
7460 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
7462 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
7463 'finalize' handling.
7466 * oacc-mem.c (acc_map_data, present_create_copy)
7467 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
7468 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
7469 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
7470 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
7471 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
7472 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
7473 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
7474 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
7477 * target.c (gomp_unmap_tgt): Make it 'static'.
7478 * libgomp.h (gomp_unmap_tgt): Remove.
7480 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
7483 * testsuite/libgomp.c/pr86416-1.c: New.
7484 * testsuite/libgomp.c/pr86416-2.c: New.
7486 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
7488 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
7489 all symbols as public except for the 'use …, only' imported symbol,
7491 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
7492 all symbols from module openacc_kinds as PUBLIC
7493 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
7495 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
7497 2019-12-13 Julian Brown <julian@codesourcery.com>
7501 * libgomp.h (gomp_remove_var_async): Add prototype.
7502 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
7504 * target.c (gomp_unref_tgt): Change return type to bool, indicating
7505 whether target_mem_desc was unmapped.
7506 (gomp_unref_tgt_void): New.
7507 (gomp_remove_var): Reimplement in terms of...
7508 (gomp_remove_var_internal): ...this new helper function.
7509 (gomp_remove_var_async): New, implemented using above helper function.
7510 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
7513 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
7515 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
7516 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
7517 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
7518 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
7519 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
7521 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
7522 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
7524 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
7526 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
7527 as public except for the 'use …, only' imported symbol, which is
7529 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
7530 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
7531 attributes for acc_copyout_finalize and acc_delete_finalize.
7533 2019-12-11 Jakub Jelinek <jakub@redhat.com>
7536 * testsuite/libgomp.fortran/atomic1.f90: New test.
7538 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
7541 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
7542 reference counting for structured 'REFCOUNT_INFINITY'. Add some
7544 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
7545 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
7546 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
7547 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
7548 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
7550 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
7551 * oacc-mem.c: ... here.
7552 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
7553 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
7554 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
7556 * libgomp_g.h: Update.
7558 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
7559 * oacc-async.c: ... here.
7560 * oacc-int.h (goacc_wait): Declare.
7561 * libgomp_g.h: Update
7564 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
7566 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
7568 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
7570 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
7572 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
7574 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
7577 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
7578 Julian Brown <julian@codesourcery.com>
7580 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
7581 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
7583 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
7585 * omp_lib.h.in: Fix spelling of function declaration
7586 omp_get_cancell(l)ation.
7587 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
7589 * env.c: Fix comment typos.
7590 * oacc-host.c: Likewise.
7591 * ordered.c: Likewise.
7594 * config/gcn/task.c: Likewise.
7595 * config/gcn/team.c: Likewise.
7596 * config/nvptx/task.c: Likewise.
7597 * config/nvptx/team.c: Likewise.
7598 * plugin/plugin-gcn.c: Likewise.
7599 * testsuite/libgomp.fortran/jacobi.f: Likewise.
7600 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
7601 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
7603 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
7605 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
7606 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
7607 unnecessary 'dg-additional-options "-w"'.
7609 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
7610 Julian Brown <julian@codesourcery.com>
7615 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
7616 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
7618 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
7620 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
7622 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
7624 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
7627 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
7628 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
7630 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
7632 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
7634 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
7636 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
7638 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
7640 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
7641 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
7642 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
7643 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
7644 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
7645 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
7646 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
7647 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7648 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
7649 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
7652 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
7653 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
7654 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
7656 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
7658 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
7660 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
7661 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
7664 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
7666 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
7668 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
7670 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
7672 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
7673 ... with their content moved into, and extended in this new file.
7674 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
7676 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
7678 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
7680 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
7683 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
7686 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
7688 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
7690 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
7692 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
7694 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
7696 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
7697 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
7698 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
7699 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
7701 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
7702 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
7704 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
7706 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
7708 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
7709 Kwok Cheung Yeung <kcy@codesourcery.com>
7711 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
7712 if input it a NULL pointer.
7713 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
7714 diagnostic of NULL pointer.
7715 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
7716 * testsuite/libgomp.fortran/optional-map.f90: New.
7717 * testsuite/libgomp.fortran/use_device_addr-1.f90
7718 (test_dummy_opt_callee_1_absent): New.
7719 (test_dummy_opt_call_1): Call it.
7720 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
7721 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
7722 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
7723 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
7724 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
7725 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
7726 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
7727 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
7728 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
7729 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
7730 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
7731 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
7732 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
7733 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
7734 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
7735 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
7737 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
7739 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
7740 expect dg-output of 'Error termination.' for GCN.
7741 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
7742 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
7744 2019-12-04 Jakub Jelinek <jakub@redhat.com>
7747 * testsuite/libgomp.fortran/teams1.f90: New test.
7748 * testsuite/libgomp.fortran/teams2.f90: New test.
7750 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
7752 * oacc-init.c (acc_known_device_type): Add function.
7753 (unknown_device_type_error): Add function.
7754 (name_of_acc_device_t): Change to call unknown_device_type_error
7756 (resolve_device): Use acc_known_device_type.
7757 (acc_init): Fail if acc_device_t argument is not valid.
7758 (acc_shutdown): Likewise.
7759 (acc_get_num_devices): Likewise.
7760 (acc_set_device_type): Likewise.
7761 (acc_get_device_num): Likewise.
7762 (acc_set_device_num): Likewise.
7763 (acc_on_device): Add comment that argument validity is not checked.
7765 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
7767 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
7769 (check_effective_target_openacc_amdgcn_accel_present): New proc.
7770 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
7771 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
7772 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7773 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7775 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
7778 * configure.tgt: Avoid IE tls on *-*-musl*.
7780 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
7782 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
7783 adding a common-block test case.
7785 2019-11-29 Jakub Jelinek <jakub@redhat.com>
7788 * testsuite/libgomp.c++/udr-20.C: New test.
7789 * testsuite/libgomp.c++/udr-21.C: New test.
7791 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
7793 * testsuite/lib/libgomp.exp
7794 (check_effective_target_offload_target_nvptx): New proc.
7795 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
7797 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
7798 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
7799 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
7801 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7803 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
7804 * testsuite/libgomp.c/pr39591-2.c: Likewise.
7805 * testsuite/libgomp.c/pr39591-3.c: Likewise.
7806 * testsuite/libgomp.c/private-1.c: Likewise.
7807 * testsuite/libgomp.c/task-1.c: Likewise.
7808 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
7810 2019-11-20 Julian Brown <julian@codesourcery.com>
7812 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
7814 (queue_push_launch): Lock aq->mutex before calling
7815 wait_for_queue_nonfull.
7816 (queue_push_callback): Likewise.
7817 (queue_push_asyncwait): Likewise.
7818 (queue_push_placeholder): Likewise.
7820 2019-11-20 Julian Brown <julian@codesourcery.com>
7822 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
7823 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
7824 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
7827 2019-11-20 Julian Brown <julian@codesourcery.com>
7831 * oacc-mem.c (present_create_copy): Fix device pointer return value in
7832 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
7833 in non-present/create case.
7834 (delete_copyout): Change error condition to fail only on copies outside
7835 of mapped block. Adjust error message accordingly.
7836 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
7837 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
7838 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
7840 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7841 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
7842 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7844 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
7846 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
7847 libatomic in build-tree testing.
7849 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
7851 * testsuite/Makefile.in: Regenerate.
7853 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
7855 * testsuite/libgomp.c/target-print-1.c: New file.
7856 * testsuite/libgomp.fortran/target-print-1.f90: New file.
7857 * testsuite/libgomp.oacc-c/print-1.c: New file.
7858 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
7860 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
7861 Kwok Cheung Yeung <kcy@codesourcery.com>
7862 Julian Brown <julian@codesourcery.com>
7863 Tom de Vries <tom@codesourcery.com>
7865 * plugin/Makefrag.am: Add amdgcn plugin support.
7866 * plugin/configfrag.ac: Likewise.
7867 * plugin/plugin-gcn.c: New file.
7868 * configure: Regenerate.
7869 * Makefile.in: Regenerate.
7870 * testsuite/Makefile.in: Regenerate.
7872 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
7874 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
7875 and use team_malloc variants.
7876 (gomp_gcn_exit_kernel): Use team_free.
7877 * libgomp.h (TEAM_ARENA_SIZE): Define.
7878 (TEAM_ARENA_START): Define.
7879 (TEAM_ARENA_FREE): Define.
7880 (TEAM_ARENA_END): Define.
7881 (team_malloc): New function.
7882 (team_malloc_cleared): New function.
7883 (team_free): New function.
7884 * team.c (gomp_new_team): Initialize and use team_malloc.
7885 (free_team): Use team_free.
7886 (gomp_free_thread): Use team_free.
7887 (gomp_pause_host): Use team_free.
7888 * work.c (gomp_init_work_share): Use team_malloc.
7889 (gomp_fini_work_share): Use team_free.
7891 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
7892 Kwok Cheung Yeung <kcy@codesourcery.com>
7893 Julian Brown <julian@codesourcery.com>
7894 Tom de Vries <tom@codesourcery.com>
7896 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
7897 * Makefile.in: Regenerate.
7898 * config.h.in (PLUGIN_GCN): Add new undef.
7899 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
7900 * config/gcn/affinity-fmt.c: New file.
7901 * config/gcn/bar.c: New file.
7902 * config/gcn/bar.h: New file.
7903 * config/gcn/doacross.h: New file.
7904 * config/gcn/icv-device.c: New file.
7905 * config/gcn/oacc-target.c: New file.
7906 * config/gcn/simple-bar.h: New file.
7907 * config/gcn/target.c: New file.
7908 * config/gcn/task.c: New file.
7909 * config/gcn/team.c: New file.
7910 * config/gcn/time.c: New file.
7911 * configure.ac: Add amdgcn*-*-*.
7912 * configure: Regenerate.
7913 * configure.tgt: Add amdgcn*-*-*.
7914 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
7915 * libgomp.h (gcn_thrs): Add amdgcn variant.
7916 (set_gcn_thrs): Likewise.
7917 (gomp_thread): Likewise.
7918 * oacc-int.h (goacc_thread): Likewise.
7919 * oacc-target.c: New file.
7920 * openacc.f90 (acc_device_gcn): New parameter.
7921 * openacc.h (acc_device_t): Add acc_device_gcn.
7922 * team.c (gomp_free_pool_helper): Add amdgcn support.
7924 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
7925 Julian Brown <julian@codesourcery.com>
7927 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
7929 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
7931 * oacc-host.c (host_openacc_async_construct): Add device parameter.
7932 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
7935 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
7937 * configure.tgt (nvptx*-*-*): Add "accel" directory.
7938 * config/nvptx/libgomp-plugin.c: Move ...
7939 * config/accel/libgomp-plugin.c: ... to here.
7940 * config/nvptx/lock.c: Move ...
7941 * config/accel/lock.c: ... to here.
7942 * config/nvptx/mutex.c: Move ...
7943 * config/accel/mutex.c: ... to here.
7944 * config/nvptx/mutex.h: Move ...
7945 * config/accel/mutex.h: ... to here.
7946 * config/nvptx/oacc-async.c: Move ...
7947 * config/accel/oacc-async.c: ... to here.
7948 * config/nvptx/oacc-cuda.c: Move ...
7949 * config/accel/oacc-cuda.c: ... to here.
7950 * config/nvptx/oacc-host.c: Move ...
7951 * config/accel/oacc-host.c: ... to here.
7952 * config/nvptx/oacc-init.c: Move ...
7953 * config/accel/oacc-init.c: ... to here.
7954 * config/nvptx/oacc-mem.c: Move ...
7955 * config/accel/oacc-mem.c: ... to here.
7956 * config/nvptx/oacc-plugin.c: Move ...
7957 * config/accel/oacc-plugin.c: ... to here.
7958 * config/nvptx/omp-lock.h: Move ...
7959 * config/accel/omp-lock.h: ... to here.
7960 * config/nvptx/openacc.f90: Move ...
7961 * config/accel/openacc.f90: ... to here.
7962 * config/nvptx/pool.h: Move ...
7963 * config/accel/pool.h: ... to here.
7964 * config/nvptx/proc.c: Move ...
7965 * config/accel/proc.c: ... to here.
7966 * config/nvptx/ptrlock.c: Move ...
7967 * config/accel/ptrlock.c: ... to here.
7968 * config/nvptx/ptrlock.h: Move ...
7969 * config/accel/ptrlock.h: ... to here.
7970 * config/nvptx/sem.c: Move ...
7971 * config/accel/sem.c: ... to here.
7972 * config/nvptx/sem.h: Move ...
7973 * config/accel/sem.h: ... to here.
7974 * config/nvptx/thread-stacksize.h: Move ...
7975 * config/accel/thread-stacksize.h: ... to here.
7977 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
7978 Tobias Burnus <tobias@codesourcery.com>
7979 Frederik Harwath <frederik@codesourcery.com>
7980 Thomas Schwinge <thomas@codesourcery.com>
7983 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
7984 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
7985 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
7987 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
7988 Kwok Cheung Yeung <kcy@codesourcery.com>
7990 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
7991 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
7993 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
7995 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
7997 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
7999 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8000 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
8002 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
8004 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
8005 Add expected warnings about missing reduction clauses.
8006 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
8008 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
8010 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
8013 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
8015 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
8016 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
8017 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
8018 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8019 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8020 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8022 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
8025 * testsuite/libgomp.fortran/allocatable2.f90: Use
8026 unique numbers with 'stop'.
8027 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8028 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8029 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
8030 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
8031 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
8033 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
8035 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
8036 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
8037 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8038 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
8039 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
8040 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
8042 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
8044 * testsuite/libgomp.fortran/target9.f90: New.
8046 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
8048 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
8049 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
8050 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
8051 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
8052 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
8053 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
8054 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
8055 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
8056 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
8057 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
8058 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
8059 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
8060 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
8061 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
8062 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
8063 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
8064 * testsuite/libgomp.fortran/associate1.f90: Ditto.
8065 * testsuite/libgomp.fortran/associate2.f90: Ditto.
8066 * testsuite/libgomp.fortran/associate3.f90: Ditto.
8067 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
8068 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
8069 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
8070 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
8071 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
8072 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
8073 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
8074 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
8075 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
8076 * testsuite/libgomp.fortran/character1.f90: Ditto.
8077 * testsuite/libgomp.fortran/character2.f90: Ditto.
8078 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
8079 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
8080 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
8081 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
8082 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
8083 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
8084 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
8085 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
8086 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
8087 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
8088 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
8089 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
8090 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
8091 * testsuite/libgomp.fortran/do1.f90: Ditto.
8092 * testsuite/libgomp.fortran/do2.f90: Ditto.
8093 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
8094 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
8095 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
8096 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
8097 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
8098 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
8099 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
8100 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
8101 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
8102 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
8103 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
8104 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
8105 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
8106 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
8107 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
8108 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
8109 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
8110 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
8111 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
8112 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
8113 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
8114 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
8115 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
8116 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
8117 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
8118 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
8119 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
8120 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
8121 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
8122 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
8123 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
8124 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
8125 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
8126 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
8127 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
8128 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
8129 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
8130 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
8131 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
8132 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
8133 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
8134 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
8135 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
8136 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
8137 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
8138 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
8139 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
8140 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
8141 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
8142 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
8143 * testsuite/libgomp.fortran/lib1.f90: Ditto.
8144 * testsuite/libgomp.fortran/lib4.f90: Ditto.
8145 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
8146 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
8147 * testsuite/libgomp.fortran/nested1.f90: Ditto.
8148 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
8149 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
8150 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
8151 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
8152 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
8153 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
8154 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
8155 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
8156 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
8157 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
8158 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
8159 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
8160 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
8161 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
8162 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
8163 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
8164 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
8165 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
8166 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
8167 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
8168 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
8169 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
8170 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
8171 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
8172 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
8173 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
8174 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
8175 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
8176 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
8177 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
8178 * testsuite/libgomp.fortran/pr28390.f: Ditto.
8179 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
8180 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
8181 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
8182 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
8183 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
8184 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
8185 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
8186 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
8187 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
8188 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
8189 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
8190 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
8191 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
8192 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
8193 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
8194 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
8195 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
8196 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
8197 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
8198 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
8199 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
8200 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
8201 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
8202 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
8203 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
8204 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
8205 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
8206 * testsuite/libgomp.fortran/reference1.f90: Ditto.
8207 * testsuite/libgomp.fortran/reference2.f90: Ditto.
8208 * testsuite/libgomp.fortran/retval1.f90: Ditto.
8209 * testsuite/libgomp.fortran/retval2.f90: Ditto.
8210 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
8211 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
8212 * testsuite/libgomp.fortran/simd1.f90: Ditto.
8213 * testsuite/libgomp.fortran/simd2.f90: Ditto.
8214 * testsuite/libgomp.fortran/simd3.f90: Ditto.
8215 * testsuite/libgomp.fortran/simd4.f90: Ditto.
8216 * testsuite/libgomp.fortran/simd5.f90: Ditto.
8217 * testsuite/libgomp.fortran/simd6.f90: Ditto.
8218 * testsuite/libgomp.fortran/simd7.f90: Ditto.
8219 * testsuite/libgomp.fortran/stack.f90: Ditto.
8220 * testsuite/libgomp.fortran/strassen.f90: Ditto.
8221 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
8222 * testsuite/libgomp.fortran/tabs2.f: Ditto.
8223 * testsuite/libgomp.fortran/target1.f90: Ditto.
8224 * testsuite/libgomp.fortran/target2.f90: Ditto.
8225 * testsuite/libgomp.fortran/target3.f90: Ditto.
8226 * testsuite/libgomp.fortran/target4.f90: Ditto.
8227 * testsuite/libgomp.fortran/target5.f90: Ditto.
8228 * testsuite/libgomp.fortran/target6.f90: Ditto.
8229 * testsuite/libgomp.fortran/target7.f90: Ditto.
8230 * testsuite/libgomp.fortran/target8.f90: Ditto.
8231 * testsuite/libgomp.fortran/task1.f90: Ditto.
8232 * testsuite/libgomp.fortran/task2.f90: Ditto.
8233 * testsuite/libgomp.fortran/task3.f90: Ditto.
8234 * testsuite/libgomp.fortran/task4.f90: Ditto.
8235 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
8236 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
8237 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8238 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8239 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8240 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
8241 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
8242 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
8243 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
8244 * testsuite/libgomp.fortran/udr1.f90: Ditto.
8245 * testsuite/libgomp.fortran/udr10.f90: Ditto.
8246 * testsuite/libgomp.fortran/udr11.f90: Ditto.
8247 * testsuite/libgomp.fortran/udr12.f90: Ditto.
8248 * testsuite/libgomp.fortran/udr13.f90: Ditto.
8249 * testsuite/libgomp.fortran/udr14.f90: Ditto.
8250 * testsuite/libgomp.fortran/udr15.f90: Ditto.
8251 * testsuite/libgomp.fortran/udr2.f90: Ditto.
8252 * testsuite/libgomp.fortran/udr3.f90: Ditto.
8253 * testsuite/libgomp.fortran/udr4.f90: Ditto.
8254 * testsuite/libgomp.fortran/udr5.f90: Ditto.
8255 * testsuite/libgomp.fortran/udr6.f90: Ditto.
8256 * testsuite/libgomp.fortran/udr7.f90: Ditto.
8257 * testsuite/libgomp.fortran/udr8.f90: Ditto.
8258 * testsuite/libgomp.fortran/udr9.f90: Ditto.
8259 * testsuite/libgomp.fortran/vla1.f90: Ditto.
8260 * testsuite/libgomp.fortran/vla2.f90: Ditto.
8261 * testsuite/libgomp.fortran/vla3.f90: Ditto.
8262 * testsuite/libgomp.fortran/vla4.f90: Ditto.
8263 * testsuite/libgomp.fortran/vla5.f90: Ditto.
8264 * testsuite/libgomp.fortran/vla6.f90: Ditto.
8265 * testsuite/libgomp.fortran/vla7.f90: Ditto.
8266 * testsuite/libgomp.fortran/vla8.f90: Ditto.
8267 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
8268 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
8270 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
8272 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
8273 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
8274 Ditto; add 'dg-do run' for torture testing.
8275 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
8276 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
8277 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
8278 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
8279 * testsuite/libgomp.fortran/pr28390.f: Ditto.
8280 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
8281 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
8282 * testsuite/libgomp.fortran/task2.f90: Ditto.
8283 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
8284 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
8285 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8286 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8287 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
8288 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
8290 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
8292 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
8293 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
8294 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
8295 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
8296 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
8297 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
8298 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
8299 Use 'stop' not abort().
8300 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
8301 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
8302 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
8303 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
8304 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
8305 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
8306 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
8307 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
8308 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
8309 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
8310 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
8311 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
8312 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
8313 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
8314 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
8315 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
8316 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
8318 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
8320 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
8322 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
8324 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
8326 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
8328 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
8330 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
8332 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
8334 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
8336 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
8338 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
8340 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
8342 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
8344 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
8345 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
8346 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
8347 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
8348 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
8349 Likewise and also add 'dg-do run'.
8350 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
8353 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
8354 Tobias Burnus <tobias@codesourcery.com>
8356 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
8357 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
8358 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
8360 2019-10-14 Jakub Jelinek <jakub@redhat.com>
8363 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
8366 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
8368 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
8369 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
8371 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
8374 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
8377 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
8380 * testsuite/libgomp.fortran/fortran.exp: Conditionally
8382 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
8384 2019-10-09 Jakub Jelinek <jakub@redhat.com>
8387 * target.c (gomp_map_vars_internal): Readd the previous
8388 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
8389 though do that just in the !not_found_cnt case.
8391 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
8393 * gfortran.dg/gomp/target-simd.f90: New.
8395 2019-10-02 Julian Brown <julian@codesourcery.com>
8396 Cesar Philippidis <cesar@codesourcery.com>
8398 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
8399 * target.c (FIELD_TGT_EMPTY): Define.
8400 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
8401 as switch instead of list of ifs.
8402 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
8404 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
8406 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
8407 include. Replace alloca () with __builtin_alloca ().
8408 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
8410 2019-10-01 Jakub Jelinek <jakub@redhat.com>
8412 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
8413 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
8414 * oacc-parallel.c: Don't include "libgomp_g.h".
8415 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
8416 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
8417 * aclocal.m4: Regenerated.
8418 * config.h.in: Regenerated.
8419 * configure: Regenerated.
8420 * Makefile.in: Regenerated.
8422 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
8424 * libgomp_g.h: Include stdint.h instead of gstdint.h.
8426 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
8428 * configure: Regenerate.
8430 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
8432 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
8433 string is initialized.
8435 2019-09-06 Florian Weimer <fweimer@redhat.com>
8437 * configure: Regenerate.
8439 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
8442 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
8443 scanning to conform to the GNU Coding Standards.
8444 * configure: Regenerate.
8446 2019-08-28 Jakub Jelinek <jakub@redhat.com>
8449 * testsuite/libgomp.c/scan-21.c: New test.
8450 * testsuite/libgomp.c/scan-22.c: New test.
8452 2019-08-27 Jakub Jelinek <jakub@redhat.com>
8455 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
8457 * testsuite/libgomp.c/scan-12.c: Likewise.
8458 * testsuite/libgomp.c/scan-13.c: Likewise.
8459 * testsuite/libgomp.c/scan-14.c: Likewise.
8460 * testsuite/libgomp.c/scan-15.c: Likewise.
8461 * testsuite/libgomp.c/scan-16.c: Likewise.
8462 * testsuite/libgomp.c/scan-17.c: Likewise.
8463 * testsuite/libgomp.c/scan-18.c: Likewise.
8464 * testsuite/libgomp.c/scan-19.c: Likewise.
8465 * testsuite/libgomp.c/scan-20.c: Likewise.
8466 * testsuite/libgomp.c++/scan-9.C: Likewise.
8467 * testsuite/libgomp.c++/scan-10.C: Likewise.
8468 * testsuite/libgomp.c++/scan-11.C: Likewise.
8469 * testsuite/libgomp.c++/scan-12.C: Likewise.
8470 * testsuite/libgomp.c++/scan-14.C: Likewise.
8471 * testsuite/libgomp.c++/scan-15.C: Likewise.
8472 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
8473 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
8474 * testsuite/libgomp.c++/scan-16.C: Likewise.
8476 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
8479 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
8480 -std=legacy so invalid code in the test case is accepted.
8482 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
8485 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
8488 2019-08-08 Jakub Jelinek <jakub@redhat.com>
8490 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
8491 perform the lookup in the first loop only if !not_found_cnt, otherwise
8492 perform lookups for it in the second loop guarded with
8493 if (not_found_cnt || has_firstprivate).
8494 * testsuite/libgomp.c/target-37.c: New test.
8495 * testsuite/libgomp.c++/target-22.C: New test.
8497 2019-08-07 Jakub Jelinek <jakub@redhat.com>
8499 * testsuite/libgomp.c/target-18.c (struct S): New type.
8500 (foo): Use use_device_addr clause instead of use_device_ptr clause
8501 where required by OpenMP 5.0, add further tests for both use_device_ptr
8502 and use_device_addr clauses.
8503 * testsuite/libgomp.c++/target-9.C (struct S): New type.
8504 (foo): Use use_device_addr clause instead of use_device_ptr clause
8505 where required by OpenMP 5.0, add further tests for both use_device_ptr
8506 and use_device_addr clauses. Add t and u arguments.
8507 (main): Adjust caller.
8509 2019-08-06 Jakub Jelinek <jakub@redhat.com>
8511 * testsuite/libgomp.c++/loop-13.C: New test.
8512 * testsuite/libgomp.c++/loop-14.C: New test.
8513 * testsuite/libgomp.c++/loop-15.C: New test.
8515 2019-07-31 Jakub Jelinek <jakub@redhat.com>
8518 * testsuite/libgomp.c++/for-27.C: New test.
8520 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
8522 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
8523 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
8525 2019-07-20 Jakub Jelinek <jakub@redhat.com>
8527 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
8529 2019-07-08 Jakub Jelinek <jakub@redhat.com>
8531 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
8532 * testsuite/libgomp.c++/scan-16.C: Likewise.
8534 2019-07-06 Jakub Jelinek <jakub@redhat.com>
8536 * testsuite/libgomp.c/scan-19.c: New test.
8537 * testsuite/libgomp.c/scan-20.c: New test.
8539 * testsuite/libgomp.c/scan-11.c: New test.
8540 * testsuite/libgomp.c/scan-12.c: New test.
8541 * testsuite/libgomp.c/scan-13.c: New test.
8542 * testsuite/libgomp.c/scan-14.c: New test.
8543 * testsuite/libgomp.c/scan-15.c: New test.
8544 * testsuite/libgomp.c/scan-16.c: New test.
8545 * testsuite/libgomp.c/scan-17.c: New test.
8546 * testsuite/libgomp.c/scan-18.c: New test.
8547 * testsuite/libgomp.c++/scan-9.C: New test.
8548 * testsuite/libgomp.c++/scan-10.C: New test.
8549 * testsuite/libgomp.c++/scan-11.C: New test.
8550 * testsuite/libgomp.c++/scan-12.C: New test.
8551 * testsuite/libgomp.c++/scan-13.C: New test.
8552 * testsuite/libgomp.c++/scan-14.C: New test.
8553 * testsuite/libgomp.c++/scan-15.C: New test.
8554 * testsuite/libgomp.c++/scan-16.C: New test.
8556 2019-07-04 Jakub Jelinek <jakub@redhat.com>
8558 * testsuite/libgomp.c/scan-9.c: New test.
8559 * testsuite/libgomp.c/scan-10.c: New test.
8561 2019-07-03 Jakub Jelinek <jakub@redhat.com>
8563 * testsuite/libgomp.c++/scan-1.C: New test.
8564 * testsuite/libgomp.c++/scan-2.C: New test.
8565 * testsuite/libgomp.c++/scan-3.C: New test.
8566 * testsuite/libgomp.c++/scan-4.C: New test.
8567 * testsuite/libgomp.c++/scan-5.C: New test.
8568 * testsuite/libgomp.c++/scan-6.C: New test.
8569 * testsuite/libgomp.c++/scan-7.C: New test.
8570 * testsuite/libgomp.c++/scan-8.C: New test.
8571 * testsuite/libgomp.c/scan-1.c: New test.
8572 * testsuite/libgomp.c/scan-2.c: New test.
8573 * testsuite/libgomp.c/scan-3.c: New test.
8574 * testsuite/libgomp.c/scan-4.c: New test.
8575 * testsuite/libgomp.c/scan-5.c: New test.
8576 * testsuite/libgomp.c/scan-6.c: New test.
8577 * testsuite/libgomp.c/scan-7.c: New test.
8578 * testsuite/libgomp.c/scan-8.c: New test.
8580 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
8582 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
8583 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
8586 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
8589 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
8591 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
8594 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
8597 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
8599 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
8600 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
8601 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
8602 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
8605 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
8608 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
8610 2019-06-16 Tom de Vries <tdevries@suse.de>
8612 PR tree-optimization/89376
8613 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
8615 2019-06-15 Tom de Vries <tdevries@suse.de>
8617 PR tree-optimization/89713
8618 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
8619 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
8621 2019-06-15 Jakub Jelinek <jakub@redhat.com>
8624 * testsuite/libgomp.c/pr90779.c: New test.
8625 * testsuite/libgomp.fortran/pr90779.f90: New test.
8627 2019-06-15 Tom de Vries <tdevries@suse.de>
8629 PR tree-optimization/90009
8630 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
8632 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
8634 PR tree-optimization/89713
8635 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
8637 2019-06-11 Jakub Jelinek <jakub@redhat.com>
8640 * testsuite/libgomp.c/pr90811.c: New test.
8642 2019-06-05 Jakub Jelinek <jakub@redhat.com>
8644 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
8645 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
8647 2019-06-04 Jakub Jelinek <jakub@redhat.com>
8649 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
8650 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
8651 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
8652 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
8654 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8656 * configure.ac: Call AX_COUNT_CPUS.
8657 Substitute CPU_COUNT.
8658 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
8660 * aclocal.m4: Regenerate.
8661 * configure: Regenerate.
8662 * Makefile.in, testsuite/Makefile.in: Regenerate.
8664 2019-05-29 Jakub Jelinek <jakub@redhat.com>
8666 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
8668 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
8669 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
8670 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
8672 2019-05-27 Jakub Jelinek <jakub@redhat.com>
8674 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
8676 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
8679 * work.c (gomp_init_work_share): Instead of aligning final ordered
8680 value to multiples of long long alignment, align to that the
8681 first part (ordered team ids) and if inline_ordered_team_ids
8682 is not on a long long alignment boundary within the structure,
8683 use __alignof__ (long long) - 1 pad size always.
8684 * loop.c (GOMP_loop_start): Fix *mem computation if
8685 inline_ordered_team_ids is not aligned on long long alignment boundary
8686 within the structure.
8687 * loop-ull.c (GOMP_loop_ull_start): Likewise.
8688 * sections.c (GOMP_sections2_start): Likewise.
8690 2019-05-24 Jakub Jelinek <jakub@redhat.com>
8692 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
8693 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
8696 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
8697 HAVE_INTTYPES_H is defined.
8698 (print_uint64_t): New typedef.
8699 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
8700 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
8701 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
8702 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
8703 before casting to void *.
8704 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
8705 * oacc-mem.c: Don't include config.h nor stdint.h.
8706 * target.c: Don't include config.h.
8707 * oacc-cuda.c: Likewise.
8708 * oacc-host.c: Don't include stdint.h.
8710 2019-05-20 Jakub Jelinek <jakub@redhat.com>
8713 * alloc.c (_GNU_SOURCE): Define.
8715 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
8717 * acc_prof.h: New file.
8718 * oacc-profiling.c: Likewise.
8719 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
8720 Add these, respectively.
8721 * Makefile.in: Regenerate.
8722 * env.c (initialize_env): Call goacc_profiling_initialize.
8723 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
8724 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
8725 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
8726 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
8727 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
8728 acc_prof_register, acc_prof_unregister, and acc_register_library.
8729 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
8730 GOMP_PLUGIN_goacc_thread.
8731 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
8732 prof_callbacks_enabled members.
8733 (goacc_prof_enabled, goacc_profiling_initialize)
8734 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
8735 (goacc_profiling_dispatch): Declare.
8736 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
8737 (GOACC_PROFILING_SETUP_P): Define.
8738 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
8739 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
8740 OpenACC Profiling Interface.
8741 * oacc-cuda.c (acc_get_current_cuda_device)
8742 (acc_get_current_cuda_context, acc_get_cuda_stream)
8743 (acc_set_cuda_stream): Likewise.
8744 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
8745 (acc_init, acc_set_device_type, acc_get_device_type)
8746 (acc_get_device_num, goacc_lazy_initialize): Likewise.
8747 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
8748 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
8749 (acc_unmap_data, present_create_copy, delete_copyout)
8750 (update_dev_host): Likewise.
8751 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
8752 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
8754 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
8755 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
8757 * libgomp.texi: Update.
8758 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
8760 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
8761 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
8763 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
8765 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
8767 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
8770 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
8772 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
8773 (struct goacc_asyncqueue_list): Likewise.
8774 (goacc_aq): Likewise.
8775 (goacc_aq_list): Likewise.
8776 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
8777 (GOMP_OFFLOAD_openacc_async_test): Remove.
8778 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
8779 (GOMP_OFFLOAD_openacc_async_wait): Remove.
8780 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
8781 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
8782 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
8783 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
8784 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
8785 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
8786 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
8787 (GOMP_OFFLOAD_openacc_async_exec): Declare.
8788 (GOMP_OFFLOAD_openacc_async_construct): Declare.
8789 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
8790 (GOMP_OFFLOAD_openacc_async_test): Declare.
8791 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
8792 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
8793 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
8794 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
8795 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
8797 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
8798 (gomp_acc_insert_pointer): Adjust declaration.
8799 (gomp_copy_host2dev): New declaration.
8800 (gomp_copy_dev2host): Likewise.
8801 (gomp_map_vars_async): Likewise.
8802 (gomp_unmap_tgt): Likewise.
8803 (gomp_unmap_vars_async): Likewise.
8804 (gomp_fini_device): Likewise.
8806 * oacc-async.c (get_goacc_thread): New function.
8807 (get_goacc_thread_device): New function.
8808 (lookup_goacc_asyncqueue): New function.
8809 (get_goacc_asyncqueue): New function.
8810 (acc_async_test): Adjust code to use new async design.
8811 (acc_async_test_all): Likewise.
8812 (acc_wait): Likewise.
8813 (acc_wait_async): Likewise.
8814 (acc_wait_all): Likewise.
8815 (acc_wait_all_async): Likewise.
8816 (goacc_async_free): New function.
8817 (goacc_init_asyncqueues): Likewise.
8818 (goacc_fini_asyncqueues): Likewise.
8819 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
8821 (acc_set_cuda_stream): Likewise.
8822 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
8823 (host_openacc_register_async_cleanup): Remove.
8824 (host_openacc_async_exec): New function.
8825 (host_openacc_async_test): Adjust parameters.
8826 (host_openacc_async_test_all): Remove.
8827 (host_openacc_async_wait): Remove.
8828 (host_openacc_async_wait_async): Remove.
8829 (host_openacc_async_wait_all): Remove.
8830 (host_openacc_async_wait_all_async): Remove.
8831 (host_openacc_async_set_async): Remove.
8832 (host_openacc_async_synchronize): New function.
8833 (host_openacc_async_serialize): New function.
8834 (host_openacc_async_host2dev): New function.
8835 (host_openacc_async_dev2host): New function.
8836 (host_openacc_async_queue_callback): New function.
8837 (host_openacc_async_construct): New function.
8838 (host_openacc_async_destruct): New function.
8839 (struct gomp_device_descr host_dispatch): Remove initialization of old
8840 interface, add initialization of new async sub-struct.
8841 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
8842 (goacc_attach_host_thread_to_device): Remove old async code usage.
8843 * oacc-int.h (goacc_init_asyncqueues): New declaration.
8844 (goacc_fini_asyncqueues): Likewise.
8845 (goacc_async_copyout_unmap_vars): Likewise.
8846 (goacc_async_free): Likewise.
8847 (get_goacc_asyncqueue): Likewise.
8848 (lookup_goacc_asyncqueue): Likewise.
8849 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
8851 (present_create_copy): Adjust code to use new async design.
8852 (delete_copyout): Likewise.
8853 (update_dev_host): Likewise.
8854 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
8856 (gomp_acc_remove_pointer): Adjust code to use new async design.
8857 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
8859 (GOACC_enter_exit_data): Likewise.
8860 (goacc_wait): Likewise.
8861 (GOACC_update): Likewise.
8862 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
8863 when called, warn as obsolete in comment.
8864 * target.c (goacc_device_copy_async): New function.
8865 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
8866 add goacc_device_copy_async case.
8867 (gomp_copy_dev2host): Likewise.
8868 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
8869 (gomp_map_pointer): Likewise.
8870 (gomp_map_fields_existing): Likewise.
8871 (gomp_map_vars_internal): New always_inline function, renamed from
8873 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
8874 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
8875 passing goacc_asyncqueue argument.
8876 (gomp_unmap_tgt): Remove static, add attribute_hidden.
8877 (gomp_unref_tgt): New function.
8878 (gomp_unmap_vars_internal): New always_inline function, renamed from
8880 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
8881 (gomp_unmap_vars_async): Implement by calling
8882 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
8883 (gomp_fini_device): New function.
8884 (gomp_exit_data): Adjust gomp_copy_dev2host call.
8885 (gomp_load_plugin_for_device): Remove old interface, adjust to load
8886 new async interface.
8887 (gomp_target_fini): Adjust code to call gomp_fini_device.
8889 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
8890 (struct ptx_stream): Remove.
8891 (struct nvptx_thread): Remove current_stream field.
8892 (cuda_map_create): Remove.
8893 (cuda_map_destroy): Remove.
8898 (struct goacc_asyncqueue): Define.
8899 (struct nvptx_callback): Define.
8900 (struct ptx_free_block): Define.
8901 (struct ptx_device): Remove null_stream, active_streams, async_streams,
8902 stream_lock, and next fields.
8903 (enum ptx_event_type): Remove.
8904 (struct ptx_event): Remove.
8905 (ptx_event_lock): Remove.
8906 (ptx_events): Remove.
8907 (init_streams_for_device): Remove.
8908 (fini_streams_for_device): Remove.
8909 (select_stream_for_async): Remove.
8910 (nvptx_init): Remove ptx_events and ptx_event_lock references.
8911 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
8913 (nvptx_open_device): Add free_blocks initialization, remove
8914 init_streams_for_device call.
8915 (nvptx_close_device): Remove fini_streams_for_device call, add
8916 free_blocks destruct code.
8918 (event_add): Remove.
8919 (nvptx_exec): Adjust parameters and code.
8920 (nvptx_free): Likewise.
8921 (nvptx_host2dev): Remove.
8922 (nvptx_dev2host): Remove.
8923 (nvptx_set_async): Remove.
8924 (nvptx_async_test): Remove.
8925 (nvptx_async_test_all): Remove.
8926 (nvptx_wait): Remove.
8927 (nvptx_wait_async): Remove.
8928 (nvptx_wait_all): Remove.
8929 (nvptx_wait_all_async): Remove.
8930 (nvptx_get_cuda_stream): Remove.
8931 (nvptx_set_cuda_stream): Remove.
8932 (GOMP_OFFLOAD_alloc): Adjust code.
8933 (GOMP_OFFLOAD_free): Likewise.
8934 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
8935 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
8936 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
8937 (GOMP_OFFLOAD_openacc_async_wait): Remove.
8938 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
8939 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
8940 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
8941 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
8942 (cuda_free_argmem): New function.
8943 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
8944 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
8945 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
8946 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
8947 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
8948 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
8949 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
8950 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
8951 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
8952 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
8953 (cuda_callback_wrapper): New function.
8954 (cuda_memcpy_sanity_check): New function.
8955 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
8956 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
8957 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
8958 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
8960 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
8963 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
8965 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
8967 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
8969 2019-03-27 Kevin Buettner <kevinb@redhat.com>
8971 * team.c (gomp_team_start): Initialize pool->threads[0].
8973 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
8975 * testsuite/libgomp.oacc-c++/c++.exp: Specify
8976 "-foffload=$offload_target".
8977 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8978 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8979 * testsuite/lib/libgomp.exp
8980 (check_effective_target_openacc_nvidia_accel_configured): Remove,
8981 as (conceptually) merged into
8982 check_effective_target_openacc_nvidia_accel_selected. Adjust all
8985 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
8986 * testsuite/libgomp-test-support.exp.in: Adjust.
8987 * testsuite/lib/libgomp.exp: Likewise. Don't populate
8988 openacc_device_types_s.
8989 (offload_target_to_openacc_device_type): New proc.
8990 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
8991 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8992 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8993 * Makefile.in: Regenerate.
8994 * configure: Likewise.
8995 * testsuite/Makefile.in: Likewise.
8997 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
8998 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
8999 instead of OFFLOAD_TARGETS.
9000 * target.c (gomp_target_init): Adjust.
9001 * testsuite/libgomp-test-support.exp.in: Likewise.
9002 * testsuite/lib/libgomp.exp: Likewise. Populate
9003 openacc_device_types_s instead of offload_targets_s_openacc.
9004 (check_effective_target_openacc_nvidia_accel_selected)
9005 (check_effective_target_openacc_host_selected): Adjust.
9006 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
9007 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9008 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9009 * Makefile.in: Regenerate.
9010 * config.h.in: Likewise.
9011 * configure: Likewise.
9012 * testsuite/Makefile.in: Likewise.
9014 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
9015 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
9016 "offloading: supported, but hardware not accessible".
9017 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9018 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9020 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
9023 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
9025 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
9026 and related adjustment.
9028 2019-01-30 Jakub Jelinek <jakub@redhat.com>
9031 * testsuite/libgomp.c++/pr88988.C: New test.
9033 2019-01-28 Jakub Jelinek <jakub@redhat.com>
9036 * testsuite/libgomp.c/pr89002.c: New test.
9038 2019-01-28 Richard Biener <rguenther@suse.de>
9041 PR tree-optimization/86865
9042 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
9044 2019-01-24 Tom de Vries <tdevries@suse.de>
9046 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
9047 once instantiated_devices drops to 0.
9049 2019-01-23 Tom de Vries <tdevries@suse.de>
9052 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
9054 (nvptx_exec): Don't call map_push if mapnum == 0.
9055 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
9057 2019-01-23 Tom de Vries <tdevries@suse.de>
9061 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
9062 (map_fini): Remove "assert (!s->map->active)".
9063 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
9065 2019-01-23 Tom de Vries <tdevries@suse.de>
9068 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
9069 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
9071 2019-01-15 Tom de Vries <tdevries@suse.de>
9074 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
9077 2019-01-12 Tom de Vries <tdevries@suse.de>
9079 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
9080 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
9081 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
9082 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
9084 2019-01-12 Tom de Vries <tdevries@suse.de>
9086 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
9088 2019-01-12 Tom de Vries <tdevries@suse.de>
9090 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
9091 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
9092 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
9094 2019-01-12 Tom de Vries <tdevries@suse.de>
9097 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
9098 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
9100 2019-01-12 Tom de Vries <tdevries@suse.de>
9103 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
9104 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
9106 2019-01-12 Tom de Vries <tdevries@suse.de>
9108 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
9109 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
9110 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
9112 2019-01-12 Tom de Vries <tdevries@suse.de>
9114 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
9115 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
9116 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
9118 2019-01-12 Tom de Vries <tdevries@suse.de>
9120 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
9121 resources diagnostic.
9123 2019-01-12 Tom de Vries <tdevries@suse.de>
9125 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
9126 vector length to be 128.
9127 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
9128 length 2097152 to be reduced to 1024 instead of 32.
9130 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
9131 James Norris <jnorris@codesourcery.com>
9133 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
9134 Library Routines", and "Environment Variables".
9136 2019-01-11 Tom de Vries <tdevries@suse.de>
9138 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
9141 2019-01-11 Tom de Vries <tdevries@suse.de>
9143 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
9145 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
9146 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
9147 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
9148 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
9150 2019-01-11 Tom de Vries <tdevries@suse.de>
9152 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
9155 2019-01-10 Nathan Sidwell <nathan@acm.org>
9156 Julian Brown <julian@codesourcery.com>
9159 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
9160 * testsuite/libgomp.oacc-c++/pr71959.C: New.
9162 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
9164 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
9167 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
9169 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
9170 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
9173 2019-01-09 Tom de Vries <tdevries@suse.de>
9176 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
9177 #define instead of "const int".
9178 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
9179 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
9180 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
9181 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
9183 2019-01-09 Tom de Vries <tdevries@suse.de>
9185 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
9188 2019-01-07 Tom de Vries <tdevries@suse.de>
9190 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
9191 GOMP_OPENACC_DIM argument.
9193 2019-01-03 Tom de Vries <tdevries@suse.de>
9195 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
9196 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
9198 2019-01-01 Jakub Jelinek <jakub@redhat.com>
9200 Update copyright years.
9202 2019-01-01 Jakub Jelinek <jakub@redhat.com>
9204 * libgomp.texi: Bump @copying's copyright year.
9206 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
9208 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
9209 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
9210 (GOACC_declare): Redefine the "device" argument to "flags".
9212 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
9213 Cesar Philippidis <cesar@codesourcery.com>
9215 * target.c (struct gomp_coalesce_chunk): New structure.
9216 (struct gomp_coalesce_buf): Update the chunks member to use that
9217 type. Adjust all users.
9219 2018-12-19 Tom de Vries <tdevries@suse.de>
9221 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
9222 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
9223 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
9225 2018-12-19 Tom de Vries <tdevries@suse.de>
9227 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
9228 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
9229 gcc/testsuite/gcc.dg/goacc.
9230 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
9232 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
9233 Chung-Lin Tang <cltang@codesourcery.com>
9235 * oacc-mem.c (acc_present_or_create): Remove definition and change
9236 to alias of acc_create.
9237 (acc_present_or_copyin): Remove definition and change to alias of
9239 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
9240 of acc_present_or_create.
9241 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
9242 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
9243 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
9244 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
9245 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
9246 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
9247 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
9248 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
9249 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
9250 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
9251 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
9252 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
9253 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
9254 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
9255 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
9256 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
9258 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
9261 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
9262 "identical parameters".
9263 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
9264 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
9267 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
9268 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
9271 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
9272 (nvptx_wait_async): Unseen async-argument is a no-op.
9273 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
9274 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
9275 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9276 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
9277 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
9278 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
9279 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
9280 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
9281 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
9283 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
9284 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9286 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
9288 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
9289 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9290 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
9292 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
9295 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
9296 (acc_set_cuda_stream): Clarify.
9297 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
9299 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
9301 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
9302 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
9303 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
9304 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
9306 2018-12-14 Tom de Vries <tdevries@suse.de>
9308 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
9309 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
9310 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
9311 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
9312 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
9314 2018-12-13 Tom de Vries <tdevries@suse.de>
9316 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
9317 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
9318 * fortran.c (omp_display_affinity_): ... here.
9319 * libgomp.h (gomp_print_string): Declare.
9320 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
9321 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
9324 2018-12-13 Jakub Jelinek <jakub@redhat.com>
9327 * testsuite/libgomp.c++/for-24.C (results): Include it in
9328 omp declare target region.
9329 (main): Use map (always, tofrom: results) instead of
9330 map (tofrom: results).
9332 2018-12-12 Jakub Jelinek <jakub@redhat.com>
9335 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
9336 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
9338 * testsuite/libgomp.c-c++-common/for-16.c: New test.
9340 2018-12-12 Andreas Schwab <schwab@suse.de>
9342 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
9345 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
9348 * testsuite/libgomp.fortran/async_io_8.f90: New test.
9350 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
9351 Jakub Jelinek <jakub@redhat.com>
9353 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
9354 devicep->host2dev_func.
9356 2018-12-08 Jakub Jelinek <jakub@redhat.com>
9359 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
9360 tls_runtime effective target.
9361 (t): New threadprivate variable.
9362 (main): Set t in threads which execute iterations of the worksharing
9363 loop. Propagate that to the task after the loop and don't abort
9364 if the current taskgroup hasn't been cancelled.
9366 2018-12-02 Jakub Jelinek <jakub@redhat.com>
9368 * testsuite/libgomp.c/task-reduction-3.c: New test.
9370 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
9372 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
9375 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
9376 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
9378 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
9380 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
9382 2018-10-19 Richard Biener <rguenther@suse.de>
9384 PR tree-optimization/88182
9385 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
9387 2018-11-26 Jakub Jelinek <jakub@redhat.com>
9389 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
9390 (RUNTEST): Don't define.
9391 (RUNTESTDEFAULTFLAGS): Add.
9392 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
9393 (distclean-am): Depend on distclean-DEJAGNU.
9394 (check-am): If -j% option is present in MFLAGS and if
9395 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
9396 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
9397 * testsuite/Makefile.in: Regenerated.
9399 2018-11-26 Richard Biener <rguenther@suse.de>
9401 PR tree-optimization/88182
9402 * testsuite/libgomp.c++/pr88182.C: New testcase.
9404 2018-11-20 Jakub Jelinek <jakub@redhat.com>
9407 * config/mingw32/affinity-fmt.c: New file.
9409 2018-11-09 Jakub Jelinek <jakub@redhat.com>
9411 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
9412 (gomp_display_affinity): Use __builtin_choose_expr to handle
9413 properly handle argument having integral, or pointer or some other
9414 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
9415 with uint64_t type instead of %llx and unsigned long long.
9417 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
9418 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
9420 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9422 * affinity.c: Include <string.h>, <stdio.h>.
9423 (gomp_display_affinity_place): Remove cpusetp.
9424 * teams.c: Include <limits.h>.
9426 2018-11-08 Jakub Jelinek <jakub@redhat.com>
9428 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
9429 in_reduction clause for s[0].
9431 * affinity.c (gomp_display_affinity_place): New function.
9432 * affinity-fmt.c: New file.
9433 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
9434 * config/linux/affinity.c (gomp_display_affinity_place): New function.
9435 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
9436 Move these functions to ...
9437 * config/nvptx/teams.c: ... here. New file.
9438 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
9440 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
9442 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
9443 and _aligned_malloc.
9444 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
9445 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
9446 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
9447 gomp_affinity_format_len): New variables.
9448 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
9449 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
9450 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
9451 modifiers. Display (non-default) chunk sizes. Print
9452 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
9453 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
9454 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
9455 * fortran.c: Include stdio.h and string.h.
9456 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
9457 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
9458 (omp_set_affinity_format_, omp_get_affinity_format_,
9459 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
9460 omp_pause_resource_all_): New functions.
9461 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
9463 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
9465 * teams.c: ... here. New file.
9466 * libgomp_g.h: Include gstdint.h.
9467 (GOMP_loop_nonmonotonic_runtime_start,
9468 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
9469 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
9470 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
9471 GOMP_parallel_loop_nonmonotonic_runtime,
9472 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9473 GOMP_loop_ull_nonmonotonic_runtime_start,
9474 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
9475 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
9476 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9477 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
9478 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
9479 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9480 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
9481 GOMP_teams_reg): Declare.
9482 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
9483 gomp_aligned_alloc uses fallback implementation.
9484 (gomp_aligned_alloc, gomp_aligned_free): Declare.
9485 (enum gomp_schedule_type): Add GFS_MONOTONIC.
9486 (struct gomp_doacross_work_share): Add extra field.
9487 (struct gomp_work_share): Add task_reductions field.
9488 (struct gomp_taskgroup): Add workshare and reductions fields.
9489 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
9490 (gomp_thread_handle): New typedef.
9491 (gomp_display_affinity_place, gomp_set_affinity_format,
9492 gomp_display_string, gomp_display_affinity,
9493 gomp_display_affinity_thread): Declare.
9494 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
9495 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
9496 gomp_workshare_task_reduction_register): Declare.
9497 (gomp_team_start): Add taskgroup argument.
9498 (gomp_pause_host): Declare.
9499 (gomp_init_work_share, gomp_work_share_start): Change bool argument
9501 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
9502 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
9503 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
9504 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
9505 GOMP_loop_ull_doacross_start,
9506 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
9507 GOMP_loop_maybe_nonmonotonic_runtime_next,
9508 GOMP_loop_maybe_nonmonotonic_runtime_start,
9509 GOMP_loop_nonmonotonic_runtime_next,
9510 GOMP_loop_nonmonotonic_runtime_start,
9511 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9512 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
9513 GOMP_loop_ull_nonmonotonic_runtime_next,
9514 GOMP_loop_ull_nonmonotonic_runtime_start,
9515 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9516 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
9517 GOMP_taskgroup_reduction_register,
9518 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9519 GOMP_teams_reg and GOMP_taskwait_depend.
9520 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
9521 omp_{capture,display}_affinity{,_}, and
9522 omp_[gs]et_affinity_format{,_}.
9523 * loop.c: Include string.h.
9524 (GOMP_loop_runtime_next): Add ialias.
9525 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9526 (gomp_loop_static_start, gomp_loop_dynamic_start,
9527 gomp_loop_guided_start, gomp_loop_ordered_static_start,
9528 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
9529 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
9530 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
9531 or gomp_doacross_init callers.
9532 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
9533 GOMP_loop_doacross_start): New functions.
9534 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
9535 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
9536 Mask off GFS_MONOTONIC bit.
9537 (GOMP_loop_maybe_nonmonotonic_runtime_next,
9538 GOMP_loop_maybe_nonmonotonic_runtime_start,
9539 GOMP_loop_nonmonotonic_runtime_next,
9540 GOMP_loop_nonmonotonic_runtime_start,
9541 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9542 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
9544 (gomp_parallel_loop_start): Pass NULL as taskgroup to
9546 * loop_ull.c: Include string.h.
9547 (GOMP_loop_ull_runtime_next): Add ialias.
9548 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9549 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
9550 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
9551 gomp_loop_ull_ordered_dynamic_start,
9552 gomp_loop_ull_ordered_guided_start,
9553 gomp_loop_ull_doacross_static_start,
9554 gomp_loop_ull_doacross_dynamic_start,
9555 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
9556 and gomp_doacross_ull_init callers.
9557 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
9558 GOMP_loop_ull_doacross_start): New functions.
9559 (GOMP_loop_ull_runtime_start,
9560 GOMP_loop_ull_ordered_runtime_start,
9561 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
9562 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9563 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
9564 GOMP_loop_ull_nonmonotonic_runtime_next,
9565 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
9566 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
9567 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
9568 (omp_pause_resource_t, omp_depend_t): New typedefs.
9569 (enum omp_lock_hint_t): Renamed to ...
9570 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
9571 enumerators using numbers and omp_lock_hint_* as their aliases.
9572 (omp_lock_hint_t): New typedef. Rename to ...
9573 (omp_sync_hint_t): ... this.
9574 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
9575 omp_sync_hint_t instead of omp_lock_hint_t.
9576 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9577 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9579 (omp_target_is_present, omp_target_disassociate_ptr):
9580 Change first argument from void * to const void *.
9581 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
9582 from void * to const void *.
9583 (omp_target_associate_ptr): Change first and second arguments from
9584 void * to const void *.
9585 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
9586 omp_pause_hard): New parameters.
9587 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9588 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9590 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
9591 omp_pause_hard): New parameters.
9592 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9593 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9595 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
9596 EXTRA argument. If not needed to prepare array, if extra is 0,
9597 clear ws->doacross, otherwise allocate just doacross structure and
9598 extra payload. If array is needed, allocate also extra payload.
9599 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
9600 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
9602 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
9604 (GOMP_parallel): Likewise. Formatting fix.
9605 (GOMP_parallel_reductions): New function.
9606 (GOMP_cancellation_point): If taskgroup has workshare
9607 flag set, check cancelled of prev taskgroup if any.
9608 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
9609 on prev taskgroup if any.
9610 * sections.c: Include string.h.
9611 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9612 (GOMP_sections_start): Adjust gomp_work_share_start caller.
9613 (GOMP_sections2_start): New function.
9614 (GOMP_parallel_sections_start, GOMP_parallel_sections):
9615 Pass NULL as taskgroup to gomp_team_start.
9616 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
9617 gomp_work_share_start callers.
9618 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
9619 If taskgroup has workshare flag set, check cancelled on prev
9620 taskgroup if any. Guard all cancellation tests with
9621 gomp_cancel_var test.
9622 (omp_target_is_present, omp_target_disassociate_ptr):
9623 Change ptr argument from void * to const void *.
9624 (omp_target_memcpy): Change src argument from void * to const void *.
9625 (omp_target_memcpy_rect): Likewise.
9626 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
9627 instead of char * where needed.
9628 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
9629 from void * to const void *.
9630 (omp_pause_resource, omp_pause_resource_all): New functions.
9631 * task.c (gomp_task_handle_depend): Handle new depend array format
9632 in addition to the old. Handle mutexinoutset kinds the same as
9633 inout for now, handle unspecified kinds.
9634 (gomp_create_target_task): If taskgroup has workshare flag set, check
9635 cancelled on prev taskgroup if any. Guard all cancellation tests with
9636 gomp_cancel_var test. Handle new depend array format count in
9637 addition to the old.
9638 (GOMP_task): Likewise. Adjust function comment.
9639 (gomp_task_run_pre): If taskgroup has workshare flag set, check
9640 cancelled on prev taskgroup if any. Guard all cancellation tests with
9641 gomp_cancel_var test.
9642 (GOMP_taskwait_depend): New function.
9643 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
9644 format in addition to the old. Handle mutexinoutset kinds the same as
9645 inout for now, handle unspecified kinds. Fix a function comment typo.
9646 (gomp_taskgroup_init): New function.
9647 (GOMP_taskgroup_start): Use it.
9648 (gomp_reduction_register, gomp_create_artificial_team,
9649 GOMP_taskgroup_reduction_register,
9650 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9651 gomp_parallel_reduction_register,
9652 gomp_workshare_task_reduction_register,
9653 gomp_workshare_taskgroup_start,
9654 GOMP_workshare_task_reduction_unregister): New functions.
9655 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
9656 check cancelled on prev taskgroup if any. Guard all cancellation
9657 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
9658 by calling GOMP_taskgroup_reduction_register.
9659 * team.c (gomp_thread_attr): Remove comment.
9660 (struct gomp_thread_start_data): Add handle field.
9661 (gomp_thread_start): Call pthread_detach.
9662 (gomp_new_team): Adjust gomp_init_work_share caller.
9663 (gomp_free_pool_helper): Call pthread_detach.
9664 (gomp_team_start): Add taskgroup argument, initialize implicit
9665 tasks' taskgroup field to that. Don't call
9666 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
9667 (gomp_team_end): Determine nesting by thr->ts.level != 0
9668 rather than thr->ts.team != NULL.
9669 (gomp_pause_pool_helper, gomp_pause_host): New functions.
9670 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
9671 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
9672 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
9673 if more than 1 allocate also extra payload at the end of array. Never
9674 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
9675 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
9676 return true instead of ws.
9677 * Makefile.in: Regenerated.
9678 * configure: Regenerated.
9679 * config.h.in: Regenerated.
9680 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
9682 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
9683 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
9684 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
9685 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
9686 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
9687 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
9688 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
9689 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
9690 * testsuite/libgomp.c-c++-common/for-10.c: New test.
9691 * testsuite/libgomp.c-c++-common/for-11.c: New test.
9692 * testsuite/libgomp.c-c++-common/for-12.c: New test.
9693 * testsuite/libgomp.c-c++-common/for-13.c: New test.
9694 * testsuite/libgomp.c-c++-common/for-14.c: New test.
9695 * testsuite/libgomp.c-c++-common/for-15.c: New test.
9696 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
9697 define a different N(test), don't define N(f0) to N(f14), but instead
9698 define N(f20) to N(f34) using != comparisons.
9699 * testsuite/libgomp.c-c++-common/for-7.c: New test.
9700 * testsuite/libgomp.c-c++-common/for-8.c: New test.
9701 * testsuite/libgomp.c-c++-common/for-9.c: New test.
9702 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
9703 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
9704 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
9705 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
9706 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
9707 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
9708 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
9709 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
9710 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
9711 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
9712 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
9713 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
9714 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
9715 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
9716 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
9717 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
9718 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
9719 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
9720 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
9721 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
9722 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
9723 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
9724 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
9725 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
9726 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
9727 * testsuite/libgomp.c++/depend-1.C: New test.
9728 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
9729 * testsuite/libgomp.c++/depobj-1.C: New test.
9730 * testsuite/libgomp.c++/for-16.C: New test.
9731 * testsuite/libgomp.c++/for-21.C: New test.
9732 * testsuite/libgomp.c++/for-22.C: New test.
9733 * testsuite/libgomp.c++/for-23.C: New test.
9734 * testsuite/libgomp.c++/for-24.C: New test.
9735 * testsuite/libgomp.c++/for-25.C: New test.
9736 * testsuite/libgomp.c++/for-26.C: New test.
9737 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
9738 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
9739 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
9740 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
9741 * testsuite/libgomp.c++/task-reduction-10.C: New test.
9742 * testsuite/libgomp.c++/task-reduction-11.C: New test.
9743 * testsuite/libgomp.c++/task-reduction-12.C: New test.
9744 * testsuite/libgomp.c++/task-reduction-13.C: New test.
9745 * testsuite/libgomp.c++/task-reduction-14.C: New test.
9746 * testsuite/libgomp.c++/task-reduction-15.C: New test.
9747 * testsuite/libgomp.c++/task-reduction-16.C: New test.
9748 * testsuite/libgomp.c++/task-reduction-17.C: New test.
9749 * testsuite/libgomp.c++/task-reduction-18.C: New test.
9750 * testsuite/libgomp.c++/task-reduction-19.C: New test.
9751 * testsuite/libgomp.c/task-reduction-1.c: New test.
9752 * testsuite/libgomp.c++/task-reduction-1.C: New test.
9753 * testsuite/libgomp.c/task-reduction-2.c: New test.
9754 * testsuite/libgomp.c++/task-reduction-2.C: New test.
9755 * testsuite/libgomp.c++/task-reduction-3.C: New test.
9756 * testsuite/libgomp.c++/task-reduction-4.C: New test.
9757 * testsuite/libgomp.c++/task-reduction-5.C: New test.
9758 * testsuite/libgomp.c++/task-reduction-6.C: New test.
9759 * testsuite/libgomp.c++/task-reduction-7.C: New test.
9760 * testsuite/libgomp.c++/task-reduction-8.C: New test.
9761 * testsuite/libgomp.c++/task-reduction-9.C: New test.
9762 * testsuite/libgomp.c/teams-1.c: New test.
9763 * testsuite/libgomp.c/teams-2.c: New test.
9764 * testsuite/libgomp.c/thread-limit-4.c: New test.
9765 * testsuite/libgomp.c/thread-limit-5.c: New test.
9766 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
9768 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
9770 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
9771 acc_memcpy_to/from_device functions, now with async parameter.
9772 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
9773 (acc_memcpy_from_device): Likewise.
9774 (acc_memcpy_to_device_async): New API function.
9775 (acc_memcpy_from_device_async): Likewise.
9776 (present_create_copy): Add async parameter and async setting/unsetting.
9777 (acc_create): Adjust present_create_copy call.
9778 (acc_copyin): Likewise.
9779 (acc_present_or_create): Likewise.
9780 (acc_present_or_copyin): Likewise.
9781 (acc_create_async): New API function.
9782 (acc_copyin_async): New API function.
9783 (delete_copyout): Add async parameter and async setting/unsetting.
9784 (acc_delete): Adjust delete_copyout call.
9785 (acc_copyout): Likewise.
9786 (acc_delete_async): New API function.
9787 (acc_copyout_async): Likewise.
9788 (update_dev_host): Add async parameter and async setting/unsetting.
9789 (acc_update_device): Adjust update_dev_host call.
9790 (acc_update_self): Likewise.
9791 (acc_update_device_async): New API function.
9792 (acc_update_self_async): Likewise.
9793 * openacc.h (acc_copyin_async): Declare new API function.
9794 (acc_create_async): Likewise.
9795 (acc_copyout_async): Likewise.
9796 (acc_delete_async): Likewise.
9797 (acc_update_device_async): Likewise.
9798 (acc_update_self_async): Likewise.
9799 (acc_memcpy_to_device_async): Likewise.
9800 (acc_memcpy_from_device_async): Likewise.
9801 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
9802 (acc_copyin_async_64_h): New subroutine.
9803 (acc_copyin_async_array_h): New subroutine.
9804 (acc_create_async_32_h): New subroutine.
9805 (acc_create_async_64_h): New subroutine.
9806 (acc_create_async_array_h): New subroutine.
9807 (acc_copyout_async_32_h): New subroutine.
9808 (acc_copyout_async_64_h): New subroutine.
9809 (acc_copyout_async_array_h): New subroutine.
9810 (acc_delete_async_32_h): New subroutine.
9811 (acc_delete_async_64_h): New subroutine.
9812 (acc_delete_async_array_h): New subroutine.
9813 (acc_update_device_async_32_h): New subroutine.
9814 (acc_update_device_async_64_h): New subroutine.
9815 (acc_update_device_async_array_h): New subroutine.
9816 (acc_update_self_async_32_h): New subroutine.
9817 (acc_update_self_async_64_h): New subroutine.
9818 (acc_update_self_async_array_h): New subroutine.
9819 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
9820 (acc_copyin_async_64_h): New subroutine.
9821 (acc_copyin_async_array_h): New subroutine.
9822 (acc_create_async_32_h): New subroutine.
9823 (acc_create_async_64_h): New subroutine.
9824 (acc_create_async_array_h): New subroutine.
9825 (acc_copyout_async_32_h): New subroutine.
9826 (acc_copyout_async_64_h): New subroutine.
9827 (acc_copyout_async_array_h): New subroutine.
9828 (acc_delete_async_32_h): New subroutine.
9829 (acc_delete_async_64_h): New subroutine.
9830 (acc_delete_async_array_h): New subroutine.
9831 (acc_update_device_async_32_h): New subroutine.
9832 (acc_update_device_async_64_h): New subroutine.
9833 (acc_update_device_async_array_h): New subroutine.
9834 (acc_update_self_async_32_h): New subroutine.
9835 (acc_update_self_async_64_h): New subroutine.
9836 (acc_update_self_async_array_h): New subroutine.
9837 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
9838 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
9839 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
9840 acc_memcpy_to_device_async*, acc_update_device_async*, and
9841 acc_update_self_async* entries.
9842 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
9843 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
9844 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
9846 2018-10-31 Joseph Myers <joseph@codesourcery.com>
9849 * Makefile.am: Include multilib.am
9850 (AUTOMAKE_OPTIONS): Add info-in-builddir.
9851 (CLEANFILES): Remove libgomp.info.
9852 * configure.ac: Remove AC_PREREQ.
9853 * testsuite/Makefile.am (RUNTEST): Remove quotes.
9854 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
9857 2018-10-29 Joseph Myers <joseph@codesourcery.com>
9858 Julian Brown <julian@codesourcery.com>
9860 * testsuite/libgomp.oacc-c++/this.C: New.
9862 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
9864 * plugin/plugin-nvptx.c (struct cuda_map): New.
9865 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
9866 h_tail with (cuda_map *) map.
9867 (cuda_map_create): New function.
9868 (cuda_map_destroy): New function.
9869 (map_init): Update to use a linked list of cuda_map objects.
9870 (map_fini): Likewise.
9871 (map_pop): Likewise.
9872 (map_push): Likewise. Return CUdeviceptr instead of void.
9873 (init_streams_for_device): Remove stales references to ptx_stream
9875 (select_stream_for_async): Likewise.
9876 (nvptx_exec): Update call to map_init.
9878 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
9879 Julian Brown <julian@codesourcery.com>
9882 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
9884 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
9885 Thomas Koenig <tkoenig@gcc.gnu.org>
9888 * testsuite/libgomp.fortran/async_io_1.f90: New test.
9889 * testsuite/libgomp.fortran/async_io_2.f90: New test.
9890 * testsuite/libgomp.fortran/async_io_3.f90: New test.
9891 * testsuite/libgomp.fortran/async_io_4.f90: New test.
9892 * testsuite/libgomp.fortran/async_io_5.f90: New test.
9893 * testsuite/libgomp.fortran/async_io_6.f90: New test.
9894 * testsuite/libgomp.fortran/async_io_7.f90: New test.
9896 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
9897 Tom de Vries <tdevries@suse.de>
9900 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
9901 (cuOccupancyMaxPotentialBlockSize): Declare.
9902 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
9903 CUDA_ONE_CALL_MAYBE_NULL.
9904 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
9905 CUoccupancyB2DSize and declare
9906 cuOccupancyMaxPotentialBlockSize.
9907 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
9908 default num_gangs and num_workers when the driver supports it.
9910 2018-08-08 Tom de Vries <tdevries@suse.de>
9912 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
9913 CUDA_ONE_CALL_MAYBE_NULL.
9914 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
9915 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
9916 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
9919 2018-08-08 Tom de Vries <tdevries@suse.de>
9921 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
9922 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
9925 2018-08-08 Tom de Vries <tdevries@suse.de>
9927 * plugin/plugin-nvptx.c
9928 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
9929 (nvptx_open_device): Use
9930 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
9932 2018-08-08 Tom de Vries <tdevries@suse.de>
9934 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
9935 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
9937 2018-08-07 Tom de Vries <tdevries@suse.de>
9939 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
9940 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
9941 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
9942 corresponding call in CUDA_ONE_CALL. Add def/undef of
9943 CUDA_ONE_CALL_MAYBE_NULL.
9944 (CUDA_CALL_EXISTS): Define.
9946 2018-08-07 Tom de Vries <tdevries@suse.de>
9948 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
9949 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
9950 corresponding undefs right after.
9952 2018-08-04 Tom de Vries <tdevries@suse.de>
9954 * plugin/configfrag.ac: For --without-cuda-driver, set
9955 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
9956 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
9957 * configure: Regenerate.
9959 2018-08-02 Tom de Vries <tdevries@suse.de>
9962 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
9963 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
9964 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
9966 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
9967 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
9968 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
9970 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
9971 Thomas Schwinge <thomas@codesourcery.com>
9973 * config/nvptx/oacc-parallel.c: Truncate.
9975 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
9976 James Norris <jnorris@codesourcery.com>
9978 * plugin/plugin-nvptx.c (struct map): Removed.
9979 (map_init, map_pop): Remove use of struct map.
9980 (map_push): Likewise and change argument list.
9981 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
9983 2018-08-01 Tom de Vries <tdevries@suse.de>
9985 * plugin/cuda-lib.def: New file. Factor out of ...
9986 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
9987 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
9990 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
9992 Revert 'AsyncI/O patch committed'.
9993 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
9994 Thomas Koenig <tkoenig@gcc.gnu.org>
9997 * testsuite/libgomp.fortran/async_io_1.f90: New test.
9998 * testsuite/libgomp.fortran/async_io_2.f90: New test.
9999 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10000 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10001 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10002 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10003 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10005 2018-07-30 Tom de Vries <tdevries@suse.de>
10007 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
10008 (nvptx_exec): Ensure worker and vector default dims don't exceed
10009 targ_fn->max_threads_per_block.
10011 2018-07-30 Tom de Vries <tdevries@suse.de>
10013 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
10014 (nvptx_open_device): Init default_dims for device.
10015 (nvptx_exec): Use default_dims from device.
10017 2018-07-26 Jakub Jelinek <jakub@redhat.com>
10020 * testsuite/libgomp.c++/for-15.C (results): Include it in
10021 omp declare target region.
10022 (main): Use map (always, tofrom: results) instead of
10023 map (tofrom: results).
10025 PR middle-end/86660
10026 * testsuite/libgomp.c/pr86660.c: New test.
10028 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
10029 Tom de Vries <tdevries@suse.de>
10031 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
10032 sufficient resources to launch a kernel, and give a hint on how to fix
10035 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
10036 Tom de Vries <tdevries@suse.de>
10038 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
10039 max_threads_per_block and max_threads_per_multiprocessor fields.
10040 (nvptx_open_device): Initialize new fields.
10041 (nvptx_exec): Use num_sms, and new fields.
10043 2018-07-26 Tom de Vries <tdevries@suse.de>
10045 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
10046 to correct locations. Remove xfail.
10048 2018-07-26 Tom de Vries <tdevries@suse.de>
10050 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
10051 acc_wait. Move acc_async_test calls to correct locations. Remove
10054 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
10055 Thomas Koenig <tkoenig@gcc.gnu.org>
10058 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10059 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10060 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10061 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10062 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10063 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10064 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10066 2018-07-17 Jakub Jelinek <jakub@redhat.com>
10068 PR middle-end/86542
10069 * testsuite/libgomp.c++/pr86542.C: New test.
10071 PR middle-end/86539
10072 * testsuite/libgomp.c++/pr86539.C: New test.
10074 2018-07-11 Jakub Jelinek <jakub@redhat.com>
10077 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
10078 (results): Make sure the variable is not inside declare target region.
10079 (qux): Remove unused function.
10081 2018-07-10 Jakub Jelinek <jakub@redhat.com>
10084 * testsuite/libgomp.c++/for-15.C: New test.
10086 2018-06-26 Jakub Jelinek <jakub@redhat.com>
10089 * testsuite/libgomp.c++/pr86291.C: New test.
10091 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
10093 * libgomp.texi (Top): Move www.openmp.org to https.
10094 (Enabling OpenMP): Ditto.
10095 (omp_get_active_level): Ditto.
10096 (omp_get_ancestor_thread_num): Ditto.
10097 (omp_get_cancellation): Ditto.
10098 (omp_get_default_device): Ditto.
10099 (omp_get_dynamic): Ditto.
10100 (omp_get_level): Ditto.
10101 (omp_get_max_active_levels): Ditto.
10102 (omp_get_max_task_priority): Ditto.
10103 (omp_get_max_threads): Ditto.
10104 (omp_get_nested): Ditto.
10105 (omp_get_num_devices): Ditto.
10106 (omp_get_num_procs): Ditto.
10107 (omp_get_num_teams): Ditto.
10108 (omp_get_num_threads): Ditto.
10109 (omp_get_proc_bind): Ditto.
10110 (omp_get_schedule): Ditto.
10111 (omp_get_team_num): Ditto.
10112 (omp_get_team_size): Ditto.
10113 (omp_get_thread_limit): Ditto.
10114 (omp_get_thread_num): Ditto.
10115 (omp_in_parallel): Ditto.
10116 (omp_in_final): Ditto.
10117 (omp_is_initial_device): Ditto.
10118 (omp_set_default_device): Ditto.
10119 (omp_set_dynamic): Ditto.
10120 (omp_set_max_active_levels): Ditto.
10121 (omp_set_nested): Ditto.
10122 (omp_set_num_threads): Ditto.
10123 (omp_set_schedule): Ditto.
10124 (omp_init_lock): Ditto.
10125 (omp_set_lock): Ditto.
10126 (omp_test_lock): Ditto.
10127 (omp_unset_lock): Ditto.
10128 (omp_destroy_lock): Ditto.
10129 (omp_init_nest_lock): Ditto.
10130 (omp_set_nest_lock): Ditto.
10131 (omp_test_nest_lock): Ditto.
10132 (omp_unset_nest_lock): Ditto.
10133 (omp_destroy_nest_lock): Ditto.
10134 (omp_get_wtick): Ditto.
10135 (omp_get_wtime): Ditto.
10136 (OMP_CANCELLATION): Ditto.
10137 (OMP_DISPLAY_ENV): Ditto.
10138 (OMP_DEFAULT_DEVICE): Ditto.
10139 (OMP_DYNAMIC): Ditto.
10140 (OMP_MAX_ACTIVE_LEVELS): Ditto.
10141 (OMP_MAX_TASK_PRIORITY): Ditto.
10142 (OMP_NESTED): Ditto.
10143 (OMP_NUM_THREADS): Ditto.
10144 (OMP_PROC_BIND): Ditto.
10145 (OMP_PLACES): Ditto.
10146 (OMP_STACKSIZE): Ditto.
10147 (OMP_SCHEDULE): Ditto.
10148 (OMP_THREAD_LIMIT): Ditto.
10149 (OMP_WAIT_POLICY): Ditto.
10151 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
10152 James Norris <jnorris@codesourcery.com>
10153 Julian Brown <julian@codesourcery.com>
10154 Thomas Schwinge <thomas@codesourcery.com>
10155 Tom de Vries <tom@codesourcery.com>
10157 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
10158 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
10159 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
10160 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
10161 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
10162 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
10163 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
10164 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
10165 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
10166 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
10168 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
10170 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
10172 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
10174 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
10176 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
10178 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
10180 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
10182 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
10184 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
10186 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
10188 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
10190 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
10192 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
10194 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
10196 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
10198 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
10200 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
10202 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
10204 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
10206 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
10208 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
10210 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
10212 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
10214 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
10216 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
10218 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
10220 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
10221 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
10222 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
10223 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
10224 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
10225 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
10226 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
10227 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
10228 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
10230 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
10232 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
10233 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
10234 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
10236 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
10237 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
10238 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
10240 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
10242 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
10244 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
10246 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
10248 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
10250 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
10252 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
10254 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
10256 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
10258 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
10260 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
10262 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
10264 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
10266 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
10268 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
10269 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
10270 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
10271 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
10272 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
10273 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
10274 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
10276 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
10277 Thomas Schwinge <thomas@codesourcery.com>
10278 Cesar Philippidis <cesar@codesourcery.com>
10280 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
10281 (gomp_acc_remove_pointer): Update declaration.
10282 (gomp_acc_declare_allocate): Declare.
10283 (gomp_remove_var): Declare.
10284 * libgomp.map (OACC_2.5): Define.
10285 * oacc-mem.c (acc_map_data): Update refcount.
10286 (acc_unmap_data): Likewise.
10287 (present_create_copy): Likewise.
10288 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
10289 (acc_copyin): Likewise.
10290 (FLAG_FINALIZE): Define.
10291 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
10292 (acc_delete_finalize): New function.
10293 (acc_delete_finalize_async): New function.
10294 (acc_copyout_finalize): New function.
10295 (acc_copyout_finalize_async): New function.
10296 (gomp_acc_insert_pointer): Update refcounts.
10297 (gomp_acc_remove_pointer): Return if data is not present on the
10299 * oacc-parallel.c (find_pset): Rename to find_pointer.
10300 (find_pointer): Add support for GOMP_MAP_POINTER.
10301 (handle_ftn_pointers): New function.
10302 (GOACC_parallel_keyed): Update refcounts of variables.
10303 (GOACC_enter_exit_data): Add support for finalized data mappings.
10304 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
10306 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
10307 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
10308 for GOMP_MAP_FORCE_FROM.
10309 * openacc.f90 (module openacc_internal): Add
10310 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
10311 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
10312 acc_copyout_finalize and acc_delete_finalize.
10313 (acc_copyout_finalize_32_h): New subroutine.
10314 (acc_copyout_finalize_64_h): New subroutine.
10315 (acc_copyout_finalize_array_h): New subroutine.
10316 (acc_delete_finalize_32_h): New subroutine.
10317 (acc_delete_finalize_64_h): New subroutine.
10318 (acc_delete_finalize_array_h): New subroutine.
10319 * openacc.h (acc_copyout_finalize): Declare.
10320 (acc_copyout_finalize_async): Declare.
10321 (acc_delete_finalize): Declare.
10322 (acc_delete_finalize_async): Declare.
10323 * openacc_lib.h (acc_copyout_finalize): New interface.
10324 (acc_delete_finalize): New interface.
10325 * target.c (gomp_map_vars): Update dynamic_refcount.
10326 (gomp_remove_var): New function.
10327 (gomp_unmap_vars): Use it.
10328 (gomp_unload_image_from_device): Likewise.
10329 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
10330 case to utilize OpenACC 2.5 data clause semantics.
10331 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10332 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10333 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10334 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10335 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10336 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10337 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10338 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10339 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10340 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
10341 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
10342 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
10343 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
10344 utilize OpenACC 2.5 data clause semantics.
10345 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10346 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10347 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10348 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10349 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10350 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10351 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10352 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
10353 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10355 2018-05-21 Janus Weil <janus@gcc.gnu.org>
10359 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
10360 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
10361 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
10362 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
10363 * testsuite/libgomp.fortran/task2.f90: Ditto.
10364 * testsuite/libgomp.fortran/vla1.f90: Ditto.
10365 * testsuite/libgomp.fortran/vla2.f90: Ditto.
10366 * testsuite/libgomp.fortran/vla3.f90: Ditto.
10367 * testsuite/libgomp.fortran/vla4.f90: Ditto.
10368 * testsuite/libgomp.fortran/vla5.f90: Ditto.
10369 * testsuite/libgomp.fortran/vla6.f90: Ditto.
10370 * testsuite/libgomp.fortran/vla8.f90: Ditto.
10371 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
10372 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
10374 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
10377 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
10379 2018-05-09 Tom de Vries <tom@codesourcery.com>
10382 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
10383 to GOACC_enter_exit_data.
10385 2018-05-09 Tom de Vries <tom@codesourcery.com>
10388 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
10389 (async_synchronous_p): New function.
10390 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
10392 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
10393 async_valid_stream_id_p.
10394 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
10395 * oacc-parallel.c (GOACC_parallel_keyed): Same.
10397 2018-05-07 Tom de Vries <tom@codesourcery.com>
10400 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
10401 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
10403 2018-05-03 Tom de Vries <tom@codesourcery.com>
10406 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
10407 extra_tool_flags if it contains an -foffload=-fdump-* flag.
10408 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
10409 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
10411 2018-05-02 Tom de Vries <tom@codesourcery.com>
10414 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
10415 GOMP_OPENACC_DIM ...
10416 * env.c (parse_gomp_openacc_dim): ... here. New function.
10417 (initialize_env): Call parse_gomp_openacc_dim.
10418 (goacc_default_dims): Define.
10419 * libgomp.h (goacc_default_dims): Declare.
10420 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
10421 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
10422 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
10423 GOMP_PLUGIN_acc_default_dim.
10424 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
10425 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
10427 2018-05-02 Tom de Vries <tom@codesourcery.com>
10430 * testsuite/libgomp.c++/udr-9.C: Update.
10431 * testsuite/libgomp.c++/atomic-16.C: Remove.
10432 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
10433 * testsuite/libgomp.c++/loop-13.C: Remove.
10434 * testsuite/libgomp.c++/loop-14.C: Remove.
10435 * testsuite/libgomp.c++/loop-15.C: Remove.
10436 * testsuite/libgomp.c++/monotonic-1.C: Remove.
10437 * testsuite/libgomp.c++/monotonic-2.C: Remove.
10438 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
10439 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
10440 * testsuite/libgomp.c++/ordered-1.C: Remove.
10441 * testsuite/libgomp.c++/pr45784.C: Remove.
10442 * testsuite/libgomp.c++/pr64824.C: Remove.
10443 * testsuite/libgomp.c++/pr64868.C: Remove.
10444 * testsuite/libgomp.c++/pr66199-1.C: Remove.
10445 * testsuite/libgomp.c++/pr66199-2.C: Remove.
10446 * testsuite/libgomp.c++/pr66199-3.C: Remove.
10447 * testsuite/libgomp.c++/pr66199-4.C: Remove.
10448 * testsuite/libgomp.c++/pr66199-5.C: Remove.
10449 * testsuite/libgomp.c++/pr66199-6.C: Remove.
10450 * testsuite/libgomp.c++/pr66199-7.C: Remove.
10451 * testsuite/libgomp.c++/pr66199-8.C: Remove.
10452 * testsuite/libgomp.c++/pr66199-9.C: Remove.
10453 * testsuite/libgomp.c++/pr69389.C: Remove.
10454 * testsuite/libgomp.c++/simd10.C: Remove.
10455 * testsuite/libgomp.c++/simd11.C: Remove.
10456 * testsuite/libgomp.c++/simd12.C: Remove.
10457 * testsuite/libgomp.c++/simd13.C: Remove.
10458 * testsuite/libgomp.c++/target-1.C: Remove.
10459 * testsuite/libgomp.c++/target-3.C: Remove.
10460 * testsuite/libgomp.c++/target-4.C: Remove.
10461 * testsuite/libgomp.c++/target-5.C: Remove.
10462 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
10463 * testsuite/libgomp.c++/taskloop-1.C: Remove.
10464 * testsuite/libgomp.c++/taskloop-2.C: Remove.
10465 * testsuite/libgomp.c++/taskloop-3.C: Remove.
10466 * testsuite/libgomp.c++/taskloop-4.C: Remove.
10467 * testsuite/libgomp.c++/udr-9.C: Remove.
10468 * testsuite/libgomp.c++/for-10.C: Remove.
10469 * testsuite/libgomp.c++/for-11.C: Remove.
10470 * testsuite/libgomp.c++/for-12.C: Remove.
10471 * testsuite/libgomp.c++/for-13.C: Remove.
10472 * testsuite/libgomp.c++/for-14.C: Remove.
10473 * testsuite/libgomp.c++/for-9.C: Remove.
10474 * testsuite/libgomp.c/atomic-18.c: Move ...
10475 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
10476 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
10477 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
10478 * testsuite/libgomp.c/loop-13.c: Move ...
10479 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
10480 * testsuite/libgomp.c/loop-14.c: Move ...
10481 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
10482 * testsuite/libgomp.c/loop-15.c: Remove.
10483 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
10484 * testsuite/libgomp.c/monotonic-1.c: Move ...
10485 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
10486 * testsuite/libgomp.c/monotonic-2.c: Move ...
10487 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
10488 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
10489 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
10490 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
10491 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
10492 * testsuite/libgomp.c/ordered-4.c: Move ...
10493 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
10494 * testsuite/libgomp.c/pr45784.c: Move ...
10495 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
10496 * testsuite/libgomp.c/pr64824.c: Move ...
10497 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
10498 * testsuite/libgomp.c/pr64868.c: Move ...
10499 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
10500 * testsuite/libgomp.c/pr66199-1.c: Move ...
10501 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
10502 * testsuite/libgomp.c/pr66199-2.c: Move ...
10503 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
10504 * testsuite/libgomp.c/pr66199-3.c: Move ...
10505 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
10506 * testsuite/libgomp.c/pr66199-4.c: Move ...
10507 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
10508 * testsuite/libgomp.c/pr66199-5.c: Move ...
10509 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
10510 * testsuite/libgomp.c/pr66199-6.c: Move ...
10511 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
10512 * testsuite/libgomp.c/pr66199-7.c: Move ...
10513 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
10514 * testsuite/libgomp.c/pr66199-8.c: Move ...
10515 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
10516 * testsuite/libgomp.c/pr66199-9.c: Move ...
10517 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
10518 * testsuite/libgomp.c/pr69389.c: Move ...
10519 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
10520 * testsuite/libgomp.c/simd-14.c: Move ...
10521 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
10522 * testsuite/libgomp.c/simd-15.c: Move ...
10523 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
10524 * testsuite/libgomp.c/simd-16.c: Move ...
10525 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
10526 * testsuite/libgomp.c/simd-17.c: Move ...
10527 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
10528 * testsuite/libgomp.c/target-1.c: Move ...
10529 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
10530 * testsuite/libgomp.c/target-10.c: Move ...
10531 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
10532 * testsuite/libgomp.c/target-13.c: Move ...
10533 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
10534 * testsuite/libgomp.c/target-2.c: Move ...
10535 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
10536 * testsuite/libgomp.c/taskgroup-1.c: Move ...
10537 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
10538 * testsuite/libgomp.c/taskloop-1.c: Move ...
10539 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
10540 * testsuite/libgomp.c/taskloop-2.c: Move ...
10541 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
10542 * testsuite/libgomp.c/taskloop-3.c: Move ...
10543 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
10544 * testsuite/libgomp.c/taskloop-4.c: Move ...
10545 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
10546 * testsuite/libgomp.c/udr-1.c: Move ...
10547 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
10548 * testsuite/libgomp.c/for-1.c: Move ...
10549 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
10550 * testsuite/libgomp.c/for-1.h: Move ...
10551 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
10552 * testsuite/libgomp.c/for-2.c: Move ...
10553 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
10554 * testsuite/libgomp.c/for-2.h: Move ...
10555 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
10556 * testsuite/libgomp.c/for-3.c: Move ...
10557 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
10558 * testsuite/libgomp.c/for-4.c: Move ...
10559 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
10560 * testsuite/libgomp.c/for-5.c: Move ...
10561 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
10562 * testsuite/libgomp.c/for-6.c: Move ...
10563 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
10565 2018-05-02 Tom de Vries <tom@codesourcery.com>
10568 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
10569 __builtin_goacc_parlevel_{id,size}.
10570 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
10571 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
10572 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
10573 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
10574 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
10575 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
10576 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
10577 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
10578 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
10579 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
10580 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
10581 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
10582 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
10583 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
10584 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
10585 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
10586 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
10587 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
10588 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
10589 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
10590 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
10591 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
10592 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
10594 2018-05-02 Tom de Vries <tom@codesourcery.com>
10597 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
10599 2018-05-02 Tom de Vries <tom@codesourcery.com>
10602 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
10604 2018-04-29 Julian Brown <julian@codesourcery.com>
10605 Tom de Vries <tom@codesourcery.com>
10608 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
10609 arbitrary order for iterations of atomic subtract check.
10611 2018-04-28 Tom de Vries <tom@codesourcery.com>
10614 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
10615 atomic capture results obtained in parallel loop to an array, instead of
10618 2018-04-26 Tom de Vries <tom@codesourcery.com>
10621 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
10622 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
10623 (process_GOMP_NVPTX_JIT): New function.
10624 (link_ptx): Use process_GOMP_NVPTX_JIT.
10626 2018-04-26 Richard Biener <rguenther@suse.de>
10627 Tom de Vries <tom@codesourcery.com>
10630 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
10632 2018-04-26 Tom de Vries <tom@codesourcery.com>
10635 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
10636 recursion depth from 25 to 23.
10637 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
10639 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
10641 * configure: Regenerated.
10643 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
10644 Tom de Vries <tom@codesourcery.com>
10647 * testsuite/libgomp.oacc-c++/ref-1.C: New.
10649 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
10652 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
10653 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
10654 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
10655 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
10656 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
10657 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
10659 PR libfortran/85166
10660 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
10662 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
10664 2018-04-19 Jakub Jelinek <jakub@redhat.com>
10666 * configure: Regenerated.
10668 2018-04-18 David Malcolm <dmalcolm@redhat.com>
10671 * configure: Regenerate.
10673 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
10674 Tom de Vries <tom@codesourcery.com>
10676 PR middle-end/84955
10677 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
10678 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
10680 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
10684 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
10685 test from gfortran.dg to here.
10687 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
10689 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
10690 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
10692 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
10694 PR middle-end/84955
10695 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
10696 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
10698 2018-04-05 Tom de Vries <tom@codesourcery.com>
10701 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
10703 2018-03-26 Tom de Vries <tom@codesourcery.com>
10705 PR tree-optimization/85063
10706 * testsuite/libgomp.c/switch-conversion-2.c: New test.
10707 * testsuite/libgomp.c/switch-conversion.c: New test.
10708 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
10709 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
10711 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
10714 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
10715 call abort by STOP n.
10716 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
10717 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
10718 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
10719 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
10720 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
10721 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
10722 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
10723 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
10724 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
10725 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
10726 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
10727 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
10728 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
10729 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
10730 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
10731 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
10732 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
10733 * testsuite/libgomp.fortran/associate1.f90: Likewise.
10734 * testsuite/libgomp.fortran/associate2.f90: Likewise.
10735 * testsuite/libgomp.fortran/associate3.f90: Likewise.
10736 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
10737 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
10738 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
10739 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
10740 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
10741 * testsuite/libgomp.fortran/character1.f90: Likewise.
10742 * testsuite/libgomp.fortran/character2.f90: Likewise.
10743 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
10744 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
10745 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
10746 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
10747 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
10748 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
10749 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
10750 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
10751 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
10752 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
10753 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
10754 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
10755 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
10756 * testsuite/libgomp.fortran/do1.f90: Likewise.
10757 * testsuite/libgomp.fortran/do2.f90: Likewise.
10758 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
10759 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
10760 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
10761 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
10762 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
10763 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
10764 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
10765 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
10766 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
10767 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
10768 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
10769 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
10770 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
10771 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
10772 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
10773 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
10774 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
10775 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
10776 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
10777 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
10778 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
10779 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
10780 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
10781 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
10782 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
10783 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
10784 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
10785 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
10786 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
10787 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
10788 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
10789 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
10790 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
10791 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
10792 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
10793 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
10794 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
10795 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
10796 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
10797 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
10798 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
10799 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
10800 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
10801 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
10802 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
10803 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
10804 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
10805 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
10806 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
10807 * testsuite/libgomp.fortran/lib1.f90: Likewise.
10808 * testsuite/libgomp.fortran/lib2.f: Likewise.
10809 * testsuite/libgomp.fortran/lib3.f: Likewise.
10810 * testsuite/libgomp.fortran/lib4.f90: Likewise.
10811 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
10812 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
10813 * testsuite/libgomp.fortran/nested1.f90: Likewise.
10814 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
10815 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
10816 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
10817 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
10818 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
10819 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
10820 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
10821 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
10822 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
10823 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
10824 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
10825 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
10826 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
10827 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
10828 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
10829 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
10830 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
10831 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
10832 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
10833 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
10834 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
10835 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
10836 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
10837 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
10838 * testsuite/libgomp.fortran/pr25162.f: Likewise.
10839 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
10840 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
10841 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
10842 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
10843 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
10844 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
10845 * testsuite/libgomp.fortran/pr28390.f: Likewise.
10846 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
10847 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
10848 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
10849 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
10850 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
10851 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
10852 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
10853 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
10854 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
10855 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
10856 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
10857 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
10858 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
10859 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
10860 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
10861 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
10862 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
10863 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
10864 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
10865 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
10866 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
10867 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
10868 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
10869 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
10870 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
10871 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
10872 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
10873 * testsuite/libgomp.fortran/reference1.f90: Likewise.
10874 * testsuite/libgomp.fortran/reference2.f90: Likewise.
10875 * testsuite/libgomp.fortran/retval1.f90: Likewise.
10876 * testsuite/libgomp.fortran/retval2.f90: Likewise.
10877 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
10878 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
10879 * testsuite/libgomp.fortran/simd1.f90: Likewise.
10880 * testsuite/libgomp.fortran/simd2.f90: Likewise.
10881 * testsuite/libgomp.fortran/simd3.f90: Likewise.
10882 * testsuite/libgomp.fortran/simd4.f90: Likewise.
10883 * testsuite/libgomp.fortran/simd5.f90: Likewise.
10884 * testsuite/libgomp.fortran/simd6.f90: Likewise.
10885 * testsuite/libgomp.fortran/simd7.f90: Likewise.
10886 * testsuite/libgomp.fortran/stack.f90: Likewise.
10887 * testsuite/libgomp.fortran/strassen.f90: Likewise.
10888 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
10889 * testsuite/libgomp.fortran/tabs2.f: Likewise.
10890 * testsuite/libgomp.fortran/target1.f90: Likewise.
10891 * testsuite/libgomp.fortran/target2.f90: Likewise.
10892 * testsuite/libgomp.fortran/target3.f90: Likewise.
10893 * testsuite/libgomp.fortran/target4.f90: Likewise.
10894 * testsuite/libgomp.fortran/target5.f90: Likewise.
10895 * testsuite/libgomp.fortran/target6.f90: Likewise.
10896 * testsuite/libgomp.fortran/target7.f90: Likewise.
10897 * testsuite/libgomp.fortran/target8.f90: Likewise.
10898 * testsuite/libgomp.fortran/task1.f90: Likewise.
10899 * testsuite/libgomp.fortran/task2.f90: Likewise.
10900 * testsuite/libgomp.fortran/task3.f90: Likewise.
10901 * testsuite/libgomp.fortran/task4.f90: Likewise.
10902 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
10903 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
10904 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
10905 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
10906 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
10907 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
10908 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
10909 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
10910 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
10911 * testsuite/libgomp.fortran/udr1.f90: Likewise.
10912 * testsuite/libgomp.fortran/udr10.f90: Likewise.
10913 * testsuite/libgomp.fortran/udr11.f90: Likewise.
10914 * testsuite/libgomp.fortran/udr12.f90: Likewise.
10915 * testsuite/libgomp.fortran/udr13.f90: Likewise.
10916 * testsuite/libgomp.fortran/udr14.f90: Likewise.
10917 * testsuite/libgomp.fortran/udr15.f90: Likewise.
10918 * testsuite/libgomp.fortran/udr2.f90: Likewise.
10919 * testsuite/libgomp.fortran/udr3.f90: Likewise.
10920 * testsuite/libgomp.fortran/udr4.f90: Likewise.
10921 * testsuite/libgomp.fortran/udr5.f90: Likewise.
10922 * testsuite/libgomp.fortran/udr6.f90: Likewise.
10923 * testsuite/libgomp.fortran/udr7.f90: Likewise.
10924 * testsuite/libgomp.fortran/udr8.f90: Likewise.
10925 * testsuite/libgomp.fortran/udr9.f90: Likewise.
10926 * testsuite/libgomp.fortran/vla1.f90: Likewise.
10927 * testsuite/libgomp.fortran/vla2.f90: Likewise.
10928 * testsuite/libgomp.fortran/vla3.f90: Likewise.
10929 * testsuite/libgomp.fortran/vla4.f90: Likewise.
10930 * testsuite/libgomp.fortran/vla5.f90: Likewise.
10931 * testsuite/libgomp.fortran/vla6.f90: Likewise.
10932 * testsuite/libgomp.fortran/vla7.f90: Likewise.
10933 * testsuite/libgomp.fortran/vla8.f90: Likewise.
10934 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
10935 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
10936 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
10937 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
10938 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
10939 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
10940 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
10941 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
10942 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
10943 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
10944 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
10945 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
10946 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
10947 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
10948 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
10949 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
10950 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
10951 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
10952 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
10953 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
10954 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
10955 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
10956 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
10957 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
10958 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
10959 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
10960 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
10961 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
10962 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
10963 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
10964 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
10965 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
10966 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
10967 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
10968 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
10969 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
10970 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
10971 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
10972 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
10973 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
10974 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
10975 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
10976 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
10977 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
10978 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
10979 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
10980 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
10981 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
10982 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
10983 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
10984 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
10985 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
10986 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
10987 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10988 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
10989 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
10990 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
10991 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
10992 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
10993 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
10994 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
10995 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
10996 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
10997 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
10998 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
10999 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
11000 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
11001 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
11002 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
11003 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
11004 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
11005 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
11006 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
11007 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
11008 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
11009 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
11010 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
11011 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11012 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11013 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11014 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11015 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11016 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
11017 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
11018 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
11019 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
11020 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
11021 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
11022 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
11023 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
11024 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
11025 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
11026 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
11027 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
11029 2018-03-20 Richard Biener <rguenther@suse.de>
11031 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
11032 parallelizable loop.
11034 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11037 * configure: Regenerate.
11039 2018-02-16 Jakub Jelinek <jakub@redhat.com>
11042 * libgomp.fortran/pr84418-1.f90: New test.
11043 * libgomp.fortran/pr84418-2.f90: New test.
11045 2018-02-14 Jakub Jelinek <jakub@redhat.com>
11048 * testsuite/libgomp.fortran/threadprivate4.f90: Add
11049 -std=f2003 -fall-intrinsics into dg-additional-options.
11051 2018-02-08 Martin Jambor <mjambor@suse.cz>
11053 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
11056 2018-02-08 Martin Jambor <mjambor@suse.cz>
11058 * testsuite/libgomp.hsa.c/staticvar.c: New test.
11060 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11062 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
11063 [__cplusplus]: Declare extern "C".
11065 2018-02-07 Tom de Vries <tom@codesourcery.com>
11068 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
11070 2018-01-29 Christoph Spiel <cspiel@freenet.de>
11071 Jakub Jelinek <jakub@redhat.com>
11074 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
11075 instead of omp_lock_t.
11077 2018-01-25 Tom de Vries <tom@codesourcery.com>
11080 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
11082 2018-01-24 Tom de Vries <tom@codesourcery.com>
11085 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
11087 2018-01-24 Tom de Vries <tom@codesourcery.com>
11090 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
11092 2018-01-19 Tom de Vries <tom@codesourcery.com>
11093 Cesar Philippidis <cesar@codesourcery.com>
11096 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
11097 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
11099 2018-01-03 Jakub Jelinek <jakub@redhat.com>
11101 Update copyright years.
11103 * libgomp.texi: Bump @copying's copyright year.
11105 2017-12-30 Tom de Vries <tom@codesourcery.com>
11108 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
11109 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
11111 2017-12-27 Tom de Vries <tom@codesourcery.com>
11114 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
11115 (test_nonstatic): Fix return type to workaround PR83046.
11117 2017-12-05 Jakub Jelinek <jakub@redhat.com>
11120 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
11121 j suffix instead of i.
11122 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
11125 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
11127 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
11128 call to acc_wait (1).
11130 2017-11-24 Jakub Jelinek <jakub@redhat.com>
11133 * testsuite/libgomp.fortran/pr81304.f90: New test.
11135 2017-11-23 Jakub Jelinek <jakub@redhat.com>
11138 * libgomp.fortran/pr81841.f90: New test.
11140 2017-11-22 Jakub Jelinek <jakub@redhat.com>
11143 * target.c (gomp_target_init): Compute lengths just once and
11144 use them in both malloc size and subsequent copying.
11146 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11148 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
11149 * acinclude.m4: Add cet.m4.
11150 * configure: Regenerate.
11151 * Makefile.in: Likewise.
11152 * testsuite/Makefile.in: Likewise.
11154 2017-11-15 Tom de Vries <tom@codesourcery.com>
11156 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
11157 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
11158 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
11159 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
11160 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
11161 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
11163 2017-11-14 Tom de Vries <tom@codesourcery.com>
11165 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
11166 non-nvidia devices.
11168 2017-11-07 Jakub Jelinek <jakub@redhat.com>
11171 * testsuite/libgomp.c++/pr82835.C: New test.
11173 2017-11-06 Martin Liska <mliska@suse.cz>
11175 * testsuite/libgomp.c++/loop-2.C: Return a value
11176 for functions with non-void return type, or change type to void,
11177 or add -Wno-return-type for test.
11178 * testsuite/libgomp.c++/loop-4.C: Likewise.
11179 * testsuite/libgomp.c++/parallel-1.C: Likewise.
11180 * testsuite/libgomp.c++/shared-1.C: Likewise.
11181 * testsuite/libgomp.c++/single-1.C: Likewise.
11182 * testsuite/libgomp.c++/single-2.C: Likewise.
11184 2017-10-31 Tom de Vries <tom@codesourcery.com>
11186 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
11187 "do {} while (false)".
11188 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
11189 after HSA_DEBUG call.
11191 2017-10-28 Jakub Jelinek <jakub@redhat.com>
11193 * target.c (struct gomp_coalesce_buf): New type.
11194 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
11195 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
11196 (gomp_copy_host2dev): Add CBUF argument, if copying into
11197 the cached ranges, memcpy into buffer instead of copying
11199 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
11200 Add CBUF argument, pass it through to other calls.
11201 (gomp_map_vars): Aggregate copies from host to device if small enough
11202 and with small enough gaps in between into memcpy into a buffer and
11203 fewer host to device copies from the buffer.
11204 (gomp_update): Adjust gomp_copy_host2dev caller.
11206 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
11208 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
11210 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11211 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11212 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11213 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11215 2017-10-16 Tom de Vries <tom@codesourcery.com>
11217 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
11218 openacc_nvidia_accel_selected.
11219 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
11220 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
11221 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
11222 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
11223 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
11224 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
11225 openacc_nvidia_accel_selected. Skip for shared memory device.
11226 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
11227 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
11229 2017-10-09 Martin Jambor <mjambor@suse.cz>
11232 * testsuite/libgomp.hsa.c/pr82416.c: New test.
11234 2017-10-07 Tom de Vries <tom@codesourcery.com>
11236 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
11237 Remove acc_device_nvidia references.
11238 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
11241 2017-10-05 Tom de Vries <tom@codesourcery.com>
11243 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
11244 vector_length(32) clause from acc parallel directive.
11245 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
11247 2017-10-04 Tom de Vries <tom@codesourcery.com>
11249 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
11250 (main): Reduce sum of arr elements. Assert that hres is exactly
11251 representable in 32-bit floating point.
11252 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
11253 (main): Reduce sum of arr elements. Assert that hres and hmres are
11254 exactly representable in 32-bit floating point.
11255 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
11257 2017-09-28 Tom de Vries <tom@codesourcery.com>
11259 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
11261 * testsuite/libgomp.c++/pr69393.C: Same.
11262 * testsuite/libgomp.c++/taskloop-1.C: Same.
11263 * testsuite/libgomp.c++/taskloop-3.C: Same.
11264 * testsuite/libgomp.c++/taskloop-4.C: Same.
11265 * testsuite/libgomp.c/for-4.c: Same.
11266 * testsuite/libgomp.c/pr66199-3.c: Same.
11267 * testsuite/libgomp.c/pr66199-4.c: Same.
11268 * testsuite/libgomp.c/pr66199-6.c: Same.
11269 * testsuite/libgomp.c/taskloop-1.c: Same.
11270 * testsuite/libgomp.c/taskloop-3.c: Same.
11271 * testsuite/libgomp.c/taskloop-4.c: Same.
11272 * testsuite/libgomp.fortran/aligned1.f03: Same.
11273 * testsuite/libgomp.fortran/condinc1.f: Same.
11274 * testsuite/libgomp.fortran/condinc3.f90: Same.
11275 * testsuite/libgomp.fortran/crayptr1.f90: Same.
11276 * testsuite/libgomp.fortran/crayptr2.f90: Same.
11277 * testsuite/libgomp.fortran/crayptr3.f90: Same.
11278 * testsuite/libgomp.fortran/omp_cond1.f: Same.
11279 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
11280 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
11281 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
11282 * testsuite/libgomp.fortran/recursion1.f90: Same.
11283 * testsuite/libgomp.fortran/target2.f90: Same.
11284 * testsuite/libgomp.fortran/target5.f90: Same.
11285 * testsuite/libgomp.fortran/task3.f90: Same.
11287 2017-09-28 Tom de Vries <tom@codesourcery.com>
11289 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
11290 vector_length(32) clause from acc parallel directive.
11291 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
11293 2017-09-27 Tom de Vries <tom@codesourcery.com>
11295 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
11296 Remove acc_device_nvidia references.
11298 2017-09-16 Tom de Vries <tom@codesourcery.com>
11301 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
11303 2017-09-14 Tom de Vries <tom@codesourcery.com>
11305 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
11306 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
11307 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
11308 * testsuite/libgomp.c/c.exp: Include test-cases from
11309 libgomp.c-c++-common.
11310 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
11313 2017-09-14 Jakub Jelinek <jakub@redhat.com>
11316 * testsuite/libgomp.c++/pr81314.C: New test.
11318 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
11320 * libgomp.texi (Top): www.openacc.org now uses https.
11321 (Enabling OpenACC): Ditto.
11322 (acc_get_num_devices): Ditto.
11323 (acc_set_device_type): Ditto.
11324 (acc_get_device_type): Ditto.
11325 (acc_set_device_num): Ditto.
11326 (acc_get_device_num): Ditto.
11327 (acc_async_test): Ditto.
11328 (acc_async_test_all): Ditto.
11330 (acc_wait_all): Ditto.
11331 (acc_wait_all_async): Ditto.
11332 (acc_wait_async): Ditto.
11334 (acc_shutdown): Ditto.
11335 (acc_on_device): Ditto.
11336 (acc_malloc): Ditto.
11338 (acc_copyin): Ditto.
11339 (acc_present_or_copyin): Ditto.
11340 (acc_create): Ditto.
11341 (acc_present_or_create): Ditto.
11342 (acc_copyout): Ditto.
11343 (acc_delete): Ditto.
11344 (acc_update_device): Ditto.
11345 (acc_update_self): Ditto.
11346 (acc_map_data): Ditto.
11347 (acc_unmap_data): Ditto.
11348 (acc_deviceptr): Ditto.
11349 (acc_hostptr): Ditto.
11350 (acc_is_present): Ditto.
11351 (acc_memcpy_to_device): Ditto.
11352 (acc_memcpy_from_device): Ditto.
11353 (acc_get_current_cuda_device): Ditto.
11354 (acc_get_current_cuda_context): Ditto.
11355 (acc_get_cuda_stream): Ditto.
11356 (acc_set_cuda_stream): Ditto.
11357 (ACC_DEVICE_TYPE): Ditto.
11358 (ACC_DEVICE_NUM): Ditto.
11359 (OpenACC Library Interoperability): Ditto.
11361 2017-08-09 Jakub Jelinek <jakub@redhat.com>
11364 * testsuite/libgomp.c/pr81687-1.c: New test.
11365 * testsuite/libgomp.c/pr81687-2.c: New test.
11367 2017-08-07 Jakub Jelinek <jakub@redhat.com>
11370 * testsuite/libgomp.c/pr69389.c: New test.
11371 * testsuite/libgomp.c++/pr69389.C: New test.
11373 2017-08-07 Tom de Vries <tom@codesourcery.com>
11375 PR middle-end/78266
11376 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
11377 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
11379 2017-07-27 Jakub Jelinek <jakub@redhat.com>
11382 * testsuite/libgomp.c/pr45784.c: New test.
11383 * testsuite/libgomp.c++/pr45784.C: New test.
11385 2017-07-19 Tom de Vries <tom@codesourcery.com>
11387 * testsuite/libgomp.oacc-c/vec.c: New test.
11389 2017-07-03 Tom de Vries <tom@codesourcery.com>
11391 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
11393 2017-06-27 Tom de Vries <tom@codesourcery.com>
11395 * plugin/plugin-nvptx.c (notify_var): New function.
11396 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
11398 2017-06-27 Tom de Vries <tom@codesourcery.com>
11400 * env.c (parse_unsigned_long_1): Factor out of ...
11401 (parse_unsigned_long): ... here.
11402 (parse_int_1): Factor out of ...
11403 (parse_int): ... here.
11404 (parse_int_secure): New function.
11405 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
11406 * secure_getenv.h: Factor out of ...
11407 * plugin/plugin-hsa.c: ... here.
11408 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
11410 2017-06-21 Jakub Jelinek <jakub@redhat.com>
11413 * testsuite/libgomp.c++/pr81130.C: New test.
11415 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11417 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
11419 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
11420 dg-xfail-run-if default args.
11422 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
11424 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
11425 * testsuite/libgomp.c/pr39591-3.c: Likewise.
11427 2017-05-30 Jakub Jelinek <jakub@redhat.com>
11430 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
11431 (gomp_affinity_init_level): Use it. Always analyze the core and thread
11432 sibling lists, depending on level just pick up what CPUs to put
11433 together into a place vs. whether add multiple ordered places.
11435 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
11437 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
11438 * libgomp.map (OACC_2.0.1): Add these.
11439 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
11440 for "acc_wait", and "acc_wait_all", respectively.
11441 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
11442 for "acc_wait", and "acc_wait_all", respectively.
11443 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
11444 * libgomp.texi (acc_wait, acc_wait_all): Update.
11445 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
11446 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
11447 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
11449 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
11450 acc_present_or_copyin and acc_present_or_create procedures,
11452 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
11453 generally different variants of OpenACC Runtime Library functions.
11454 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11456 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
11457 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11459 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
11460 of preprocessor definitions.
11461 * libgomp.h (strong_alias): Guard by "#ifdef
11462 HAVE_ATTRIBUTE_ALIAS".
11463 * oacc-mem.c: Provide "acc_pcreate" as alias for
11464 "acc_present_or_create", and "acc_pcopyin" as alias for
11465 "acc_present_or_copyin".
11466 * libgomp.map: New version "OACC_2.0.1".
11467 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
11468 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
11469 its content into...
11470 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
11473 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
11474 when disabling nvptx offloading.
11476 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
11478 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
11479 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
11480 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
11482 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
11483 * testsuite/lib/libgomp.exp
11484 (check_effective_target_openacc_nvidia_accel_configured): New
11486 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
11487 (check_effective_target_c++): New procs.
11488 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
11489 (check_effective_target_c++): Likewise.
11491 2017-05-22 Jakub Jelinek <jakub@redhat.com>
11493 PR middle-end/80809
11494 * testsuite/libgomp.c/pr80809-2.c: New test.
11495 * testsuite/libgomp.c/pr80809-3.c: New test.
11497 PR middle-end/80809
11498 * testsuite/libgomp.c/pr80809-1.c: New test.
11500 PR middle-end/80853
11501 * testsuite/libgomp.c/pr80853.c: New test.
11503 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
11505 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
11506 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
11507 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11508 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11509 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
11511 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
11512 Debug output for failure.
11514 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11516 * testsuite/lib/libgomp.exp: Load scanlang.exp.
11518 2017-04-27 Jakub Jelinek <jakub@redhat.com>
11521 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
11522 bootstrap compare failures.
11524 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
11526 * testsuite/libgomp.c/target-36.c: New testcase.
11528 2017-04-13 Jakub Jelinek <jakub@redhat.com>
11530 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
11533 2017-04-11 Jakub Jelinek <jakub@redhat.com>
11536 * testsuite/libgomp.c/pr80394.c: New test.
11538 2017-04-04 Jakub Jelinek <jakub@redhat.com>
11541 * config/posix/thread-stacksize.h: New file.
11542 * config/darwin/thread-stacksize.h: New file.
11543 * config/nvptx/thread-stacksize.h: New file.
11544 * env.c: Include thread-stacksize.h.
11545 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
11546 instead of 0. Call pthread_attr_setstacksize even if
11547 GOMP_DEFAULT_STACKSIZE is non-zero.
11549 2017-03-30 Jakub Jelinek <jakub@redhat.com>
11551 * env.c (initialize_env): Initialize stacksize to 0.
11553 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
11556 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
11558 2017-03-08 Jakub Jelinek <jakub@redhat.com>
11561 * testsuite/libgomp.c/pr79940.c: New test.
11563 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11565 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
11567 Add __float128 options.
11569 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
11571 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
11572 hppa*-*-* dg-skip-if directive.
11574 2017-02-09 Jakub Jelinek <jakub@redhat.com>
11576 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
11577 dg-skip-if directive into a comment.
11579 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
11580 Chung-Lin Tang <cltang@codesourcery.com>
11582 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
11583 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
11584 add additional case.
11585 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
11586 "openacc_nvidia_accel_selected".
11587 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
11588 Add num_workers(8) clause.
11590 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
11592 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
11594 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
11595 include complex.h on hppa*-*-hpux*.
11596 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
11598 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
11600 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
11602 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
11603 GOMP_OFFLOAD_openacc_exec. Adjust all users.
11604 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
11605 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
11606 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
11607 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
11608 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
11609 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
11610 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
11611 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
11613 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
11615 * libgomp-plugin.h: #include <stdbool.h>.
11616 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
11617 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
11618 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
11619 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
11620 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
11621 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
11622 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
11623 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
11624 (GOMP_OFFLOAD_openacc_register_async_cleanup)
11625 (GOMP_OFFLOAD_openacc_async_test)
11626 (GOMP_OFFLOAD_openacc_async_test_all)
11627 (GOMP_OFFLOAD_openacc_async_wait)
11628 (GOMP_OFFLOAD_openacc_async_wait_async)
11629 (GOMP_OFFLOAD_openacc_async_wait_all)
11630 (GOMP_OFFLOAD_openacc_async_wait_all_async)
11631 (GOMP_OFFLOAD_openacc_async_set_async)
11632 (GOMP_OFFLOAD_openacc_create_thread_data)
11633 (GOMP_OFFLOAD_openacc_destroy_thread_data)
11634 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
11635 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
11636 (GOMP_OFFLOAD_openacc_get_cuda_stream)
11637 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
11638 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
11640 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
11641 (GOMP_OFFLOAD_unload_image): Fix argument types.
11643 2017-01-26 Jakub Jelinek <jakub@redhat.com>
11645 * testsuite/lib/libgomp.exp
11646 (check_effective_target_hsa_offloading_selected_nocache): Fix up
11647 check_compile invocation. Fix up removal of executable. Drop
11648 bogus "2>&1" argument.
11650 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
11653 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
11654 Martin Jambor <mjambor@suse.cz>
11656 * plugin/hsa.h: Moved to top level include.
11657 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
11659 2017-01-21 Jakub Jelinek <jakub@redhat.com>
11662 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
11663 of cat to get version from BASE-VER file.
11664 * testsuite/Makefile.in: Regenerated.
11666 2017-01-19 Jakub Jelinek <jakub@redhat.com>
11668 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
11671 2017-01-17 Jakub Jelinek <jakub@redhat.com>
11673 * plugin/hsa.h: Add GCC runtime library exception.
11674 * plugin/hsa_ext_finalize.h: Likewise.
11676 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
11677 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
11678 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
11679 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
11680 plugin/include/cuda as include dir and -ldl instead of -lcuda as
11681 library to link ptx plugin against.
11682 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
11683 (CUDA_CALLS): Define.
11684 (cuda_lib, cuda_lib_inited): New variables.
11685 (init_cuda_lib): New function.
11686 (CUDA_CALL_PREFIX): Define.
11687 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
11688 (CUDA_CALL): Use FN instead of (FN).
11689 (CUDA_CALL_NOCHECK): Define.
11690 (cuda_error, fini_streams_for_device, select_stream_for_async,
11691 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
11692 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
11693 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
11694 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
11696 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
11698 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
11699 Use CUDA_CALL_NOCHECK.
11700 * plugin/cuda/cuda.h: New file.
11701 * config.h.in: Regenerated.
11702 * configure: Regenerated.
11705 * configure.ac: Add GCC_BASE_VER.
11706 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
11707 get version from BASE-VER file.
11708 * testsuite/Makefile.in: Regenerated.
11709 * configure: Regenerated.
11710 * Makefile.in: Regenerated.
11712 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11715 * Makefile.am: Make fincludedir multilib-aware.
11716 * Makefile.in: Regenerate.
11718 2017-01-01 Jakub Jelinek <jakub@redhat.com>
11720 Update copyright years.
11722 * libgomp.texi: Bump @copying's copyright year.
11724 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
11726 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
11727 pthread_spinlock_t instead of gomp_mutex_t lock.
11728 (gomp_get_thread_pool): Likewise.
11729 (gomp_release_thread_pool): Likewise.
11730 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
11733 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
11735 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
11736 thread pool in case nthreads == 1.
11738 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
11740 * config/nvptx/env.c: Delete.
11741 * icv.c: Move definitions of ICV variables back ...
11742 * env.c: ...here. Do not compile environment-related functionality if
11743 LIBGOMP_OFFLOADED_ONLY is set.
11745 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
11747 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
11748 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
11749 * configure: Regenerate.
11750 * config.h.in: Likewise.
11752 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
11754 * Makefile.in: Regenerate with automake-1.11.6.
11755 * aclocal.m4: Likewise.
11756 * configure: Likewise.
11757 * testsuite/Makefile.in: Likewise.
11759 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
11761 * config/nvptx/critical.c: Delete to use generic implementation.
11763 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
11765 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
11766 ../../affinity.c as fallback.
11767 * config/nvptx/affinity.c: Delete to use fallback implementation.
11769 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
11770 Jakub Jelinek <jakub@redhat.com>
11771 Dmitry Melnik <dm@ispras.ru>
11773 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
11774 * Makefile.in. Regenerate.
11775 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
11776 (LIBGOMP_USE_PTHREADS): ...here; new define.
11777 * configure: Regenerate.
11778 * config.h.in: Likewise.
11779 * config/posix/affinity.c: Move to...
11780 * affinity.c: ...here (new file). Guard use of Pthreads-specific
11781 interface by LIBGOMP_USE_PTHREADS.
11782 * critical.c: Split out GOMP_atomic_{start,end} into...
11783 * atomic.c: ...here (new file).
11784 * env.c: Split out ICV definitions into...
11785 * icv.c: ...here (new file) and...
11786 * icv-device.c: ...here. New file.
11787 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
11788 (gomp_destroy_lock_30): Ditto.
11789 (gomp_set_lock_30): Ditto.
11790 (gomp_unset_lock_30): Ditto.
11791 (gomp_test_lock_30): Ditto.
11792 (gomp_init_nest_lock_30): Ditto.
11793 (gomp_destroy_nest_lock_30): Ditto.
11794 (gomp_set_nest_lock_30): Ditto.
11795 (gomp_unset_nest_lock_30): Ditto.
11796 (gomp_test_nest_lock_30): Ditto.
11798 * config/nvptx/lock.c: New.
11799 * config/nvptx/bar.c: New.
11800 * config/nvptx/bar.h: New.
11801 * config/nvptx/doacross.h: New.
11802 * config/nvptx/error.c: New.
11803 * config/nvptx/icv-device.c: New.
11804 * config/nvptx/mutex.h: New.
11805 * config/nvptx/pool.h: New.
11806 * config/nvptx/proc.c: New.
11807 * config/nvptx/ptrlock.h: New.
11808 * config/nvptx/sem.h: New.
11809 * config/nvptx/simple-bar.h: New.
11810 * config/nvptx/target.c: New.
11811 * config/nvptx/task.c: New.
11812 * config/nvptx/team.c: New.
11813 * config/nvptx/time.c: New.
11814 * config/posix/simple-bar.h: New.
11815 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
11816 (gomp_num_teams_var): Declare.
11817 (struct gomp_thread_pool): Change threads_dock member to
11818 gomp_simple_barrier_t.
11819 [__nvptx__] (gomp_thread): New implementation.
11820 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
11821 (gomp_thread_destructor): Ditto.
11822 (gomp_init_thread_affinity): Ditto.
11823 * team.c: Guard uses of Pthreads-specific interfaces by
11824 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
11825 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
11826 * config/nvptx/alloc.c: Delete.
11827 * config/nvptx/barrier.c: Ditto.
11828 * config/nvptx/fortran.c: Ditto.
11829 * config/nvptx/iter.c: Ditto.
11830 * config/nvptx/iter_ull.c: Ditto.
11831 * config/nvptx/loop.c: Ditto.
11832 * config/nvptx/loop_ull.c: Ditto.
11833 * config/nvptx/ordered.c: Ditto.
11834 * config/nvptx/parallel.c: Ditto.
11835 * config/nvptx/priority_queue.c: Ditto.
11836 * config/nvptx/sections.c: Ditto.
11837 * config/nvptx/single.c: Ditto.
11838 * config/nvptx/splay-tree.c: Ditto.
11839 * config/nvptx/work.c: Ditto.
11840 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
11841 -foffload=-lgfortran in addition to -lgfortran.
11842 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
11843 * plugin/plugin-nvptx.c: Include <limits.h>.
11844 (struct targ_fn_descriptor): Add new fields.
11845 (struct ptx_device): Ditto. Set them...
11846 (nvptx_open_device): ...here.
11847 (nvptx_adjust_launch_bounds): New.
11848 (nvptx_host2dev): Allow NULL 'nvthd'.
11849 (nvptx_dev2host): Ditto.
11850 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
11851 (link_ptx): Adjust log sizes.
11852 (nvptx_host2dev): Allow NULL 'nvthd'.
11853 (nvptx_dev2host): Ditto.
11854 (nvptx_set_clocktick): New. Use it...
11855 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
11857 (GOMP_OFFLOAD_dev2dev): New.
11858 (nvptx_adjust_launch_bounds): New.
11859 (nvptx_stacks_size): New.
11860 (nvptx_stacks_alloc): New.
11861 (nvptx_stacks_free): New.
11862 (GOMP_OFFLOAD_run): New.
11863 (GOMP_OFFLOAD_async_run): New (stub).
11865 2016-11-23 Martin Jambor <mjambor@suse.cz>
11867 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
11868 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
11869 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
11871 2016-11-23 Martin Liska <mliska@suse.cz>
11872 Martin Jambor <mjambor@suse.cz>
11874 * plugin/hsa.h: New file.
11875 * plugin/hsa_ext_finalize.h: New file.
11876 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
11877 header file unistd.h, and functions secure_getenv, __secure_getenv,
11878 getuid, geteuid, getgid and getegid.
11879 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
11881 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
11882 Handle various cases of secure_getenv presence, add an implementation
11883 when we can test effective UID and GID.
11884 (struct hsa_runtime_fn_info): New structure.
11885 (hsa_runtime_fn_info hsa_fns): New variable.
11886 (hsa_runtime_lib): Likewise.
11887 (support_cpu_devices): Likewise.
11888 (init_enviroment_variables): Load newly introduced ENV
11890 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
11891 (hsa_fatal): Likewise.
11892 (DLSYM_FN): New macro.
11893 (init_hsa_runtime_functions): New function.
11894 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
11895 structure. Depending on environment, also allow CPU devices.
11896 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
11897 (get_kernarg_memory_region): Likewise.
11898 (GOMP_OFFLOAD_init_device): Likewise.
11899 (destroy_hsa_program): Likewise.
11900 (init_basic_kernel_info): New function.
11901 (GOMP_OFFLOAD_load_image): Use it.
11902 (create_and_finalize_hsa_program): Call hsa run-time functions via
11904 (create_single_kernel_dispatch): Likewise.
11905 (release_kernel_dispatch): Likewise.
11906 (init_single_kernel): Likewise.
11907 (parse_target_attributes): Allow up multiple HSA grid dimensions.
11908 (get_group_size): New function.
11909 (run_kernel): Likewise.
11910 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
11911 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
11913 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
11914 * testsuite/libgomp-test-support.exp.in: Likewise.
11915 * Makefile.in: Regenerated.
11916 * aclocal.m4: Likewise.
11917 * config.h.in: Likewise.
11918 * configure: Likewise.
11919 * testsuite/Makefile.in: Likewise.
11921 2016-11-15 Martin Jambor <mjambor@suse.cz>
11922 Alexander Monakov <amonakov@ispras.ru>
11924 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
11925 mapping clauses to target constructs.
11926 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
11928 2016-11-15 Matthias Klose <doko@ubuntu.com>
11930 * configure: Regenerate.
11932 2016-11-10 Jakub Jelinek <jakub@redhat.com>
11934 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
11935 * omp_lib.h.in (openmp_version): Likewise.
11936 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
11938 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
11940 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
11941 (fib_wrapper): Add map(from: x) clause.
11942 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
11943 (e_53_2): Likewise.
11944 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
11945 (accum): Add map(tmp) clause.
11946 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
11947 (accum): Add map(tofrom: tmp) clause.
11948 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
11949 (gramSchmidt): Likewise.
11950 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
11951 map(tofrom: sum) clause.
11952 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
11953 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
11954 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
11955 only allowed on the loop iterator.
11956 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
11957 * testsuite/libgomp.fortran/taskloop2.f90: New test.
11958 * testsuite/libgomp.fortran/taskloop4.f90: New test.
11959 * testsuite/libgomp.fortran/doacross1.f90: New test.
11960 * testsuite/libgomp.fortran/doacross3.f90: New test.
11961 * testsuite/libgomp.fortran/taskloop1.f90: New test.
11962 * testsuite/libgomp.fortran/taskloop3.f90: New test.
11963 * testsuite/libgomp.fortran/doacross2.f90: New test.
11964 * testsuite/libgomp.c/doacross-1.c (main): Add missing
11965 #pragma omp atomic read.
11966 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
11967 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
11969 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
11970 Nathan Sidwell <nathan@acm.org>
11972 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
11973 to determine default geometry.
11974 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
11977 2016-11-01 Jakub Jelinek <jakub@redhat.com>
11979 * hashtab.h: Use standard GPLv3 with runtime exception
11982 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
11984 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
11985 size when allocating new thread.
11987 2016-09-14 Marek Polacek <polacek@redhat.com>
11989 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
11991 2016-08-19 Jakub Jelinek <jakub@redhat.com>
11994 * testsuite/libgomp.fortran/pr71014.f90: New test.
11996 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
11998 PR middle-end/70895
11999 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
12000 firstprivate clauses.
12001 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
12003 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
12004 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12005 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
12006 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
12007 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
12008 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
12009 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12010 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
12011 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12012 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12013 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12014 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
12016 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
12019 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
12021 2016-08-08 Jakub Jelinek <jakub@redhat.com>
12024 * testsuite/libgomp.c++/pr58706.C: New test.
12026 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
12028 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
12029 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
12030 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
12032 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
12033 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
12035 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
12037 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
12038 test, and don't hardcode -O0.
12040 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
12042 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
12044 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
12046 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
12049 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
12051 PR middle-end/71734
12052 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
12053 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
12055 2016-07-01 Jakub Jelinek <jakub@redhat.com>
12058 * testsuite/libgomp.fortran/associate3.f90: New test.
12060 2016-06-17 Jakub Jelinek <jakub@redhat.com>
12062 * testsuite/libgomp.c++/target-21.C: New test.
12064 2016-06-16 Jakub Jelinek <jakub@redhat.com>
12066 * testsuite/libgomp.c++/target-20.C: New test.
12068 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
12069 Cesar Philippidis <cesar@codesourcery.com>
12071 PR middle-end/71373
12072 * libgomp.oacc-c/nested-function-1.c: New file.
12073 * libgomp.oacc-c/nested-function-2.c: Likewise.
12074 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
12075 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
12076 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
12078 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
12081 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
12082 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
12083 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
12085 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
12087 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
12088 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
12090 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
12093 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
12095 2016-05-26 Jakub Jelinek <jakub@redhat.com>
12097 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
12098 instead of invalid schedule(static, 0).
12099 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12101 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
12103 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
12104 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
12105 parameter, use to set async stream around call to gomp_unmap_vars,
12106 call gomp_unmap_vars() with 'do_copyfrom' set to true.
12107 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
12108 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
12109 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
12110 (event_add): Add int parameter, initialize 'val' field when
12111 adding new ptx_event struct.
12112 (nvptx_evec): Adjust event_add() call arguments.
12113 (nvptx_host2dev): Likewise.
12114 (nvptx_dev2host): Likewise.
12115 (nvptx_wait_async): Likewise.
12116 (nvptx_wait_all_async): Likewise.
12117 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
12118 pass to event_add() call.
12119 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
12121 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
12122 call openacc.register_async_cleanup_func() hook.
12123 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
12124 * target.c (gomp_copy_from_async): Delete function.
12125 (gomp_map_vars): Remove async_refcount.
12126 (gomp_unmap_vars): Likewise.
12127 (gomp_load_image_to_device): Likewise.
12128 (omp_target_associate_ptr): Likewise.
12129 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
12130 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
12131 (gomp_copy_from_async): Remove.
12133 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
12135 * target.c (gomp_device_copy): New function.
12136 (gomp_copy_host2dev): Likewise.
12137 (gomp_copy_dev2host): Likewise.
12138 (gomp_free_device_memory): Likewise.
12139 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
12140 (gomp_map_pointer): Likewise.
12141 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
12142 NULL value from alloc_func plugin hook.
12143 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
12144 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
12145 (gomp_unmap_vars): Likewise.
12146 (gomp_update): Adjust to call gomp_copy_dev2host and
12147 gomp_copy_host2dev functions.
12148 (gomp_unload_image_from_device): Handle false value from
12149 unload_image_func plugin hook.
12150 (gomp_init_device): Handle false value from init_device_func
12152 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
12153 (omp_target_free): Adjust to call gomp_free_device_memory.
12154 (omp_target_memcpy): Handle return values from host2dev_func,
12155 dev2host_func, and dev2dev_func plugin hooks.
12156 (omp_target_memcpy_rect_worker): Likewise.
12157 (gomp_target_fini): Handle false value from fini_device_func
12159 * libgomp.h (struct gomp_device_descr): Adjust return type of
12160 init_device_func, fini_device_func, unload_image_func, free_func,
12161 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
12162 * oacc-init.c (acc_shutdown_1): Handle false value from
12163 fini_device_func plugin hook.
12164 * oacc-host.c (host_init_device): Change return type to bool.
12165 (host_fini_device): Likewise.
12166 (host_unload_image): Likewise.
12167 (host_free): Likewise.
12168 (host_dev2host): Likewise.
12169 (host_host2dev): Likewise.
12170 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
12171 (acc_memcpy_to_device): Likewise.
12172 (acc_memcpy_from_device): Likewise.
12173 (delete_copyout): Add libfnname parameter, handle free_func
12174 hook fatal error case.
12175 (acc_delete): Adjust delete_copyout call.
12176 (acc_copyout): Likewise.
12177 (update_dev_host): Move gomp_mutex_unlock to after
12178 host2dev/dev2host hook calls.
12180 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
12181 to 'hsa_error_msg', for clarity.
12182 (hsa_fatal): Likewise.
12183 (hsa_error): New function.
12184 (init_hsa_context): Change return type to bool, adjust to return
12186 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
12188 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
12189 return false on error.
12190 (get_agent_info): Adjust to return NULL on error.
12191 (destroy_hsa_program): Change return type to bool, adjust to
12192 return false on error.
12193 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
12194 (destroy_module): Change return type to bool, adjust to
12195 return false on error.
12196 (GOMP_OFFLOAD_unload_image): Likewise.
12197 (GOMP_OFFLOAD_fini_device): Likewise.
12198 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
12199 (GOMP_OFFLOAD_free): Change to return false when called.
12200 (GOMP_OFFLOAD_dev2host): Likewise.
12201 (GOMP_OFFLOAD_host2dev): Likewise.
12202 (GOMP_OFFLOAD_dev2dev): Likewise.
12204 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
12205 (CUDA_CALL): Likewise.
12206 (CUDA_CALL_ASSERT): Likewise.
12207 (map_init): Change return type to bool, use CUDA_CALL* macros.
12208 (map_fini): Likewise.
12209 (init_streams_for_device): Change return type to bool, adjust
12211 (fini_streams_for_device): Change return type to bool, adjust
12213 (select_stream_for_async): Release stream_lock before calls to
12214 GOMP_PLUGIN_fatal, adjust call to map_init.
12215 (nvptx_init): Use CUDA_CALL* macros.
12216 (nvptx_attach_host_thread_to_device): Change return type to bool,
12217 use CUDA_CALL* macros.
12218 (nvptx_open_device): Use CUDA_CALL* macros.
12219 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
12221 (nvptx_get_num_devices): Use CUDA_CALL* macros.
12222 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
12223 (nvptx_exec): Use CUDA_CALL* macros.
12224 (nvptx_alloc): Use CUDA_CALL* macros.
12225 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
12226 (nvptx_host2dev): Likewise.
12227 (nvptx_dev2host): Likewise.
12228 (nvptx_wait): Use CUDA_CALL* macros.
12229 (nvptx_wait_async): Likewise.
12230 (nvptx_wait_all): Likewise.
12231 (nvptx_wait_all_async): Likewise.
12232 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
12233 use CUDA_CALL* macros, adjust call to map_fini.
12234 (GOMP_OFFLOAD_init_device): Change return type to bool,
12235 adjust code accordingly.
12236 (GOMP_OFFLOAD_fini_device): Likewise.
12237 (GOMP_OFFLOAD_load_image): Adjust calls to
12238 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
12239 use CUDA_CALL* macros.
12240 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
12242 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
12243 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
12244 handle error return.
12245 (GOMP_OFFLOAD_dev2host): Likewise.
12246 (GOMP_OFFLOAD_host2dev): Likewise.
12247 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
12248 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
12250 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
12252 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
12253 (acc_free): Likewise.
12254 (acc_memcpy_to_device): Likewise.
12255 (acc_memcpy_from_device): Likewise.
12256 (acc_deviceptr): Likewise.
12257 (acc_hostptr): Likewise.
12258 (acc_is_present): Likewise.
12259 (acc_map_data): Likewise.
12260 (acc_unmap_data): Likewise.
12261 (present_create_copy): Likewise.
12262 (delete_copyout): Likewise.
12263 (update_dev_host): Likewise.
12264 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
12265 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
12266 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
12267 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
12268 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
12269 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
12270 it only runs on nvptx targets.
12271 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
12272 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
12273 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
12274 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
12275 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
12276 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
12277 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
12278 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
12279 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
12280 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
12281 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
12282 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
12283 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
12284 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
12285 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
12286 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12287 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
12288 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
12289 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
12290 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
12291 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
12292 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
12293 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
12295 2016-05-23 Martin Jambor <mjambor@suse.cz>
12297 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
12299 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
12301 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
12302 to gomp_init_targets_once.
12303 (acc_set_device_type): Remove !cached_base_dev condition on call to
12304 gomp_init_targets_once, move call to before acc_device_lock acquire,
12306 (acc_get_device_num): Remove !cached_base_dev condition on call to
12307 gomp_init_targets_once.
12308 (acc_set_device_num): Likewise.
12310 2016-05-16 Martin Jambor <mjambor@suse.cz>
12312 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
12314 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
12316 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
12317 expected partitioning.
12319 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
12321 PR middle-end/70626
12322 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
12323 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
12324 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
12326 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
12328 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
12331 2016-04-19 Jakub Jelinek <jakub@redhat.com>
12333 PR middle-end/70680
12334 * testsuite/libgomp.c/pr70680-1.c: New test.
12335 * testsuite/libgomp.c/pr70680-2.c: New test.
12337 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
12339 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
12340 pass parameter variables to subroutines.
12342 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
12344 PR middle-end/70643
12345 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
12347 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
12350 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
12351 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12353 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
12355 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
12356 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
12357 GOACC_declare prototype.
12359 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
12360 Merge this file, and...
12361 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
12362 ... this file, and...
12363 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
12364 ... this file, and...
12365 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
12366 ... this file, and...
12367 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
12368 ... this file, and...
12369 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
12370 ... this file, and...
12371 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
12372 ... this file, and...
12373 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
12374 ... this file, and...
12375 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
12376 ... this file, and...
12377 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
12378 ... this file, and...
12379 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
12380 ... this file, and...
12381 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
12382 ... this file, and...
12383 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
12384 ... this file into...
12385 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
12388 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
12389 Make failure observable.
12391 2016-04-12 Jakub Jelinek <jakub@redhat.com>
12393 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
12395 * target.c (gomp_target_fallback_firstprivate,
12396 gomp_target_unshare_firstprivate): Removed.
12397 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
12398 before waiting for dependencies.
12399 (gomp_target_task_fn): Don't copy firstprivate vars here.
12400 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
12401 firstprivate_copies here.
12402 (gomp_create_target_task): Don't initialize firstprivate_copies field.
12403 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
12404 explicit/implicit firstprivate.
12406 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
12410 PR tree-optimization/70373
12411 PR middle-end/70533
12412 PR middle-end/70534
12413 PR middle-end/70535
12414 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
12416 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
12418 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
12420 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
12422 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
12424 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
12426 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
12428 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
12430 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
12432 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
12433 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
12434 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
12435 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
12437 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
12439 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
12441 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
12443 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
12445 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
12446 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
12447 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
12448 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
12449 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
12450 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
12452 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12453 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
12454 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
12455 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
12456 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
12457 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
12458 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
12459 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
12460 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
12461 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
12462 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
12463 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
12464 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
12465 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12466 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
12468 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
12469 James Norris <jnorris@codesourcery.com>
12470 Nathan Sidwell <nathan@codesourcery.com>
12471 Julian Brown <julian@codesourcery.com>
12472 Cesar Philippidis <cesar@codesourcery.com>
12473 Chung-Lin Tang <cltang@codesourcery.com>
12474 Tom de Vries <tom@codesourcery.com>
12476 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
12477 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
12478 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
12479 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
12480 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
12481 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
12482 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
12483 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
12484 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
12486 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
12488 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
12490 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
12491 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
12492 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
12493 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
12495 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
12497 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
12498 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
12499 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
12500 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
12501 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
12502 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12503 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
12504 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
12505 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
12506 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
12508 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
12509 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
12510 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
12512 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
12514 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
12516 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
12518 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
12520 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
12521 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
12522 ... this new file. Update.
12523 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
12524 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
12525 ... this new file. Update.
12526 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
12527 file. Incorporate...
12528 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
12530 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
12532 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
12534 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
12536 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
12538 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
12539 set-torture-options.
12541 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
12543 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
12545 * testsuite/libgomp.oacc-c/c.exp: Likewise.
12546 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
12547 -fno-builtin-acc_on_device instead of -O0.
12548 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
12550 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
12551 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
12553 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
12554 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
12555 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
12556 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12557 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12558 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12559 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
12560 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12561 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
12562 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
12563 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
12564 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
12565 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
12566 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
12567 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
12568 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
12569 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
12570 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
12572 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
12574 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
12577 2016-03-24 Martin Liska <mliska@suse.cz>
12579 * plugin/plugin-hsa.c (packet_store_release): New function
12580 that is taken from the HSA runtime manual.
12581 (GOMP_OFFLOAD_run): Use the function.
12583 2016-03-23 Jakub Jelinek <jakub@redhat.com>
12586 * testsuite/libgomp.c++/pr70376.C: New test.
12588 2016-03-23 Tom de Vries <tom@codesourcery.com>
12590 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
12591 initialization of lresult and lvresult.
12592 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
12594 2016-03-23 James Norris <jnorris@codesourcery.com>
12595 Daichi Fukuoka <dc-fukuoka@sgi.com>
12598 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
12599 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
12600 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
12601 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
12603 2016-03-23 Martin Liska <mliska@suse.cz>
12606 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
12607 argument just in case a dispatched kernel uses that argument.
12609 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
12611 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
12612 -ftree-parallelize-loops/-fopenacc changes.
12613 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
12615 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
12617 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
12619 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
12621 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
12622 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
12624 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
12626 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
12627 always_ld_library_path the path to libgcc_s.
12629 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
12632 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
12634 2016-03-09 Tom de Vries <tom@codesourcery.com>
12636 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
12637 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
12638 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
12640 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
12641 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
12642 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
12643 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
12645 2016-03-07 Martin Jambor <mjambor@suse.cz>
12647 * testsuite/lib/libgomp.exp
12648 (check_effective_target_hsa_offloading_selected_nocache): New.
12649 (check_effective_target_hsa_offloading_selected): Likewise.
12650 * testsuite/libgomp.hsa.c/c.exp: Likewise.
12651 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
12652 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
12653 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
12654 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
12655 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
12656 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
12657 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
12658 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
12659 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
12660 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
12661 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
12662 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
12663 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
12664 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
12665 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
12666 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
12668 2016-03-07 Martin Jambor <mjambor@suse.cz>
12670 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
12671 non-shared memory accelerators.
12672 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
12673 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
12674 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
12675 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
12676 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
12677 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
12678 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
12679 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
12680 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
12682 2016-03-07 Martin Jambor <mjambor@suse.cz>
12684 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
12687 2016-03-02 Jakub Jelinek <jakub@redhat.com>
12690 * testsuite/libgomp.c++/pr69555-1.C: New test.
12691 * testsuite/libgomp.c++/pr69555-2.C: New test.
12693 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
12694 Martin Jambor <mjambor@suse.cz>
12696 * testsuite/lib/libgomp.exp
12697 (check_effective_target_offload_device_shared_as): New proc.
12698 * testsuite/libgomp.c++/declare_target-1.C: New test.
12700 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
12703 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
12705 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
12707 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
12708 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
12710 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
12711 -ftree-parallelize-loops/-fopenacc changes.
12712 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
12713 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
12715 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
12717 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
12719 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
12721 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
12723 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
12725 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
12727 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
12728 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
12730 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
12731 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
12733 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
12734 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
12737 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
12739 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
12741 2016-02-19 Jakub Jelinek <jakub@redhat.com>
12744 * testsuite/libgomp.c/pr69805.c: New test.
12746 2016-02-16 Tom de Vries <tom@codesourcery.com>
12749 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
12751 2016-02-09 Tom de Vries <tom@codesourcery.com>
12753 PR tree-optimization/69599
12754 * testsuite/libgomp.c/omp-nested-3.c: New test.
12755 * testsuite/libgomp.c/pr46032-2.c: New test.
12756 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
12757 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
12759 2016-02-09 Tom de Vries <tom@codesourcery.com>
12762 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
12764 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
12766 * testsuite/libgomp.c/target-31.c: Fix testcase.
12768 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
12770 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
12772 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
12773 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
12774 reduction and map clauses.
12775 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
12777 2016-02-02 James Norris <jnorris@codesourcery.com>
12779 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
12781 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
12783 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
12784 * oacc-parallel.c (GOACC_host_data): Remove function definition.
12786 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
12789 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
12791 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
12792 (hsa_kmt_lib): Set variables.
12793 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
12794 always_ld_library_path.
12795 * Makefile.in: Regenerate.
12796 * configure: Likewise.
12797 * testsuite/Makefile.in: Likewise.
12799 * plugin/configfrag.ac (offload_additional_options)
12800 (offload_additional_lib_paths): Don't amend for hsa offloading.
12801 * configure: Regenerate.
12803 * plugin/configfrag.ac: Don't configure for offloading target if
12804 we don't build the corresponding plugin.
12805 * configure: Regenerate.
12807 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
12809 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
12810 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
12812 2016-01-26 Tom de Vries <tom@codesourcery.com>
12814 PR tree-optimization/69110
12815 * testsuite/libgomp.c/pr69110.c: New test.
12817 2016-01-25 Richard Biener <rguenther@suse.de>
12820 * testsuite/libgomp.c++/pr69393.C: New testcase.
12822 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
12824 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
12825 function wasn't mapped to the device with non-shared memory.
12827 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
12829 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
12831 2016-01-19 Martin Jambor <mjambor@suse.cz>
12832 Martin Liska <mliska@suse.cz>
12834 * plugin/Makefrag.am: Add HSA plugin requirements.
12835 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
12836 (HSA_RUNTIME_LIB): Likewise.
12837 (HSA_RUNTIME_CPPFLAGS): Likewise.
12838 (HSA_RUNTIME_INCLUDE): New substitution.
12839 (HSA_RUNTIME_LIB): Likewise.
12840 (HSA_RUNTIME_LDFLAGS): Likewise.
12841 (hsa-runtime): New configure option.
12842 (hsa-runtime-include): Likewise.
12843 (hsa-runtime-lib): Likewise.
12844 (PLUGIN_HSA): New substitution variable.
12845 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
12847 (PLUGIN_HSA_CPPFLAGS): Likewise.
12848 (PLUGIN_HSA_LDFLAGS): Likewise.
12849 (PLUGIN_HSA_LIBS): Likewise.
12850 Check that we have access to HSA run-time.
12851 * libgomp-plugin.h (offload_target_type): New element
12852 OFFLOAD_TARGET_TYPE_HSA.
12853 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
12855 (bool gomp_create_target_task): Updated.
12856 (gomp_device_descr): Extra parameter of run_func and async_run_func,
12857 new field can_run_func.
12858 * libgomp_g.h (GOMP_target_ext): Update prototype.
12859 * oacc-host.c (host_run): Added a new parameter args.
12860 * target.c (calculate_firstprivate_requirements): New function.
12861 (copy_firstprivate_data): Likewise.
12862 (gomp_target_fallback_firstprivate): Use them.
12863 (gomp_target_unshare_firstprivate): New function.
12864 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
12866 (GOMP_target): Do host fallback for all shared memory devices. Do not
12867 pass any args to plugins.
12868 (GOMP_target_ext): Introduce device-specific argument parameter args.
12869 Allow host fallback if device shares memory. Do not remap data if
12870 device has shared memory.
12871 (gomp_target_task_fn): Likewise. Also treat shared memory devices
12872 like host fallback for mappings.
12873 (GOMP_target_data): Treat shared memory devices like host fallback.
12874 (GOMP_target_data_ext): Likewise.
12875 (GOMP_target_update): Likewise.
12876 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
12877 gomp_create_target_task.
12878 (GOMP_target_enter_exit_data): Likewise.
12879 (omp_target_alloc): Treat shared memory devices like host fallback.
12880 (omp_target_free): Likewise.
12881 (omp_target_is_present): Likewise.
12882 (omp_target_memcpy): Likewise.
12883 (omp_target_memcpy_rect): Likewise.
12884 (omp_target_associate_ptr): Likewise.
12885 (gomp_load_plugin_for_device): Also load can_run.
12886 * task.c (GOMP_PLUGIN_target_task_completion): Free
12887 firstprivate_copies.
12888 (gomp_create_target_task): Accept new argument args and store it to
12890 * plugin/plugin-hsa.c: New file.
12892 2016-01-18 Tom de Vries <tom@codesourcery.com>
12894 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
12895 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
12896 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
12897 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
12898 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
12899 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
12900 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
12901 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
12902 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
12903 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
12904 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
12906 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
12908 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
12909 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
12910 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
12911 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
12912 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
12913 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
12914 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
12915 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
12917 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
12919 2016-01-15 Jakub Jelinek <jakub@redhat.com>
12921 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
12923 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
12925 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
12927 2016-01-12 James Norris <jnorris@codesourcery.com>
12929 * libgomp.texi: Updates for OpenACC.
12931 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
12933 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
12935 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
12938 * testsuite/libgomp.fortran/pr66680.f90: New test.
12940 2016-01-07 Jakub Jelinek <jakub@redhat.com>
12942 PR middle-end/68960
12943 * testsuite/libgomp.c/pr68960.c: New test.
12945 2016-01-06 Nathan Sidwell <nathan@acm.org>
12947 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
12948 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
12950 2016-01-04 Jakub Jelinek <jakub@redhat.com>
12952 Update copyright years.
12954 * libgomp.texi: Bump @copying's copyright year.
12956 2015-12-31 Nathan Sidwell <nathan@acm.org>
12958 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
12959 dg-additional-options syntax.
12960 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
12961 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
12962 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
12963 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12964 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
12965 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
12966 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
12967 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
12968 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
12969 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
12970 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12971 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
12972 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
12973 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
12974 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
12975 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
12976 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12977 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12979 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
12981 * libgomp.h (REFCOUNT_LINK): Define.
12982 (struct splay_tree_key_s): Add link_key.
12983 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
12984 Replace target address of the pointer with target address of newly
12985 mapped object in the splay tree. Set link pointer on target to the
12986 device address of the mapped object.
12987 (gomp_unmap_vars): Restore target address of the pointer in the splay
12988 tree for REFCOUNT_LINK objects after unmapping.
12989 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
12990 declare target link" objects.
12991 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
12992 "omp declare target link" objects, which were mapped for the image.
12993 (gomp_exit_data): Restore target address of the pointer in the splay
12994 tree for REFCOUNT_LINK objects after unmapping.
12995 * testsuite/libgomp.c/target-link-1.c: New file.
12997 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
12999 * libgomp.h (gomp_device_state): New enum.
13000 (struct gomp_device_descr): Replace is_initialized with state.
13001 (gomp_fini_device): Remove declaration.
13002 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
13003 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
13004 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
13005 (acc_set_device_type): Use state instead of is_initialized.
13006 (acc_set_device_num): Likewise.
13007 * target.c (resolve_device): Use state instead of is_initialized.
13008 Do not initialize finalized device.
13009 (gomp_map_vars): Do nothing if device is finalized.
13010 (gomp_unmap_vars): Likewise.
13011 (gomp_update): Likewise.
13012 (GOMP_offload_register_ver): Use state instead of is_initialized.
13013 (GOMP_offload_unregister_ver): Likewise.
13014 (gomp_init_device): Likewise.
13015 (gomp_unload_device): Likewise.
13016 (gomp_fini_device): Remove.
13017 (gomp_get_target_fn_addr): Do nothing if device is finalized.
13018 (GOMP_target): Go to host fallback if device is finalized.
13019 (GOMP_target_ext): Likewise.
13020 (gomp_exit_data): Do nothing if device is finalized.
13021 (gomp_target_task_fn): Go to host fallback if device is finalized.
13022 (gomp_target_fini): New static function.
13023 (gomp_target_init): Use state instead of is_initialized.
13024 Call gomp_target_fini at exit.
13026 2015-12-09 Tom de Vries <tom@codesourcery.com>
13028 PR tree-optimization/68716
13029 * testsuite/libgomp.c/omp-nested-2.c: New test.
13031 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
13033 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
13034 target openacc_nvidia_accel_selected.
13035 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
13036 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
13037 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
13038 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
13040 2015-12-01 Julian Brown <julian@codesourcery.com>
13041 James Norris <James_Norris@mentor.com>
13043 * oacc-parallel.c (GOACC_host_data): New function.
13044 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
13045 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
13046 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
13047 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
13048 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
13049 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
13050 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
13052 2015-11-30 James Norris <jnorris@codesourcery.com>
13053 Cesar Philippidis <cesar@codesourcery.com>
13056 * libgomp.oacc-fortran/routine-5.f90: New test.
13057 * libgomp.oacc-fortran/routine-7.f90: New test.
13058 * libgomp.oacc-fortran/routine-9.f90: New test.
13060 2015-11-30 Tom de Vries <tom@codesourcery.com>
13062 PR tree-optimization/46032
13063 * testsuite/libgomp.c/pr46032.c: New test.
13065 2015-11-27 Jakub Jelinek <jakub@redhat.com>
13068 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
13069 (gomp_create_target_task): Call it before freeing
13070 GOMP_TARGET_TASK_DATA tasks.
13073 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
13074 in between case label and OpenMP standalone directives.
13075 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
13077 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
13079 * configure: Regenerate.
13081 2015-11-26 Jakub Jelinek <jakub@redhat.com>
13083 * testsuite/libgomp.c/target-35.c: New test.
13085 2015-11-22 James Norris <jnorris@codesourcery.com>
13086 Cesar Philippidis <cesar@codesourcery.com>
13088 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
13089 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
13090 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
13091 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
13092 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
13094 2015-11-20 Jakub Jelinek <jakub@redhat.com>
13096 PR middle-end/68221
13097 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
13098 * testsuite/libgomp.c/reduction-12.c: Likewise.
13099 * testsuite/libgomp.c++/reduction-11.C: Likewise.
13100 * testsuite/libgomp.c++/reduction-12.C: Likewise.
13102 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
13104 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
13105 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
13106 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
13107 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
13108 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
13110 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13111 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13113 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
13115 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
13116 worker & gang cases.
13117 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
13119 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
13121 * config/nvptx/priority_queue.c: New file.
13123 2015-11-14 Jakub Jelinek <jakub@redhat.com>
13125 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
13128 2015-11-14 Jakub Jelinek <jakub@redhat.com>
13129 Aldy Hernandez <aldyh@redhat.com>
13130 Ilya Verbin <ilya.verbin@intel.com>
13132 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
13133 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
13134 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
13135 iterators or IV by chunk size.
13136 * parallel.c (gomp_resolve_num_threads): Don't assume that
13137 if thr->ts.team is non-NULL, then pool must be non-NULL.
13138 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
13139 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
13140 GOMP_PLUGIN_target_task_completion.
13141 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
13142 * Makefile.in: Regenerate.
13143 * libgomp.h: Shuffle prototypes and forward definitions around so
13144 priority queues can be defined.
13145 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
13146 (enum gomp_target_task_state): New enum.
13147 (struct gomp_target_task): Add state, tgt, task and team fields.
13148 (gomp_create_target_task): Change return type to bool, add
13150 (gomp_target_task_fn): Change return type to bool.
13151 (struct gomp_device_descr): Add async_run_func.
13152 (struct gomp_task): Remove children, next_child, prev_child,
13153 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
13155 (struct gomp_taskgroup): Remove children.
13156 Add taskgroup_queue.
13157 (struct gomp_team): Change task_queue type to a priority queue.
13158 (splay_compare): Define inline.
13159 (priority_queue_offset): New.
13160 (priority_node_to_task): New.
13161 (task_to_priority_node): New.
13162 * oacc-mem.c: Do not include splay-tree.h.
13163 * priority_queue.c: New file.
13164 * priority_queue.h: New file.
13165 * splay-tree.c: Do not include splay-tree.h.
13166 (splay_tree_foreach_internal): New.
13167 (splay_tree_foreach): New.
13168 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
13169 (splay_tree_callback): Define typedef.
13170 * target.c (splay_compare): Move to libgomp.h.
13171 (GOMP_target): Don't adjust *thr in any way around running offloaded
13173 (GOMP_target_ext): Likewise. Handle target nowait.
13174 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
13175 return value from gomp_create_target_task, if false, fallthrough
13176 as if no dependencies exist.
13177 (gomp_target_task_fn): Change return type to bool, return true
13178 if the task should have another part scheduled later. Handle
13180 (gomp_load_plugin_for_device): Initialize async_run.
13181 * task.c (gomp_init_task): Initialize children_queue.
13182 (gomp_clear_parent_in_list): New.
13183 (gomp_clear_parent_in_tree): New.
13184 (gomp_clear_parent): Handle priorities.
13185 (GOMP_task): Likewise.
13186 (priority_queue_move_task_first,
13187 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
13189 (gomp_create_target_task): Use priority queues. Change return type
13190 to bool, add state argument, return false if for async
13191 {{enter,exit} data,update} constructs no dependencies need to be
13192 waited for, handle target nowait. Set task->fn to NULL instead of
13193 gomp_target_task_fn.
13194 (verify_children_queue): Remove.
13195 (priority_list_upgrade_task): New.
13196 (priority_queue_upgrade_task): New.
13197 (verify_task_queue): Remove.
13198 (priority_list_downgrade_task): New.
13199 (priority_queue_downgrade_task): New.
13200 (gomp_task_run_pre): Use priority queues.
13201 Abstract code out to priority_queue_downgrade_task.
13202 (gomp_task_run_post_handle_dependers): Use priority queues.
13203 (gomp_task_run_post_remove_parent): Likewise.
13204 (gomp_task_run_post_remove_taskgroup): Likewise.
13205 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
13207 (GOMP_taskwait): Likewise.
13208 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
13209 priority-queue_upgrade_task.
13210 (GOMP_taskgroup_start): Use priority queues.
13211 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
13212 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
13214 * taskloop.c (GOMP_taskloop): Handle priorities.
13215 * team.c (gomp_new_team): Call priority_queue_init.
13216 (free_team): Call priority_queue_free.
13217 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
13218 team created for target nowait in implicit parallel region.
13219 (gomp_team_start): For nested check, test thr->ts.level instead of
13220 thr->ts.team != NULL.
13221 * testsuite/libgomp.c/doacross-3.c: New test.
13222 * testsuite/libgomp.c/ordered-5.c: New test.
13223 * testsuite/libgomp.c/priority.c: New test.
13224 * testsuite/libgomp.c/target-31.c: New test.
13225 * testsuite/libgomp.c/target-32.c: New test.
13226 * testsuite/libgomp.c/target-33.c: New test.
13227 * testsuite/libgomp.c/target-34.c: New test.
13229 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
13231 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
13233 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
13234 loop is sequential.
13236 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
13238 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
13239 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
13241 2015-11-12 James Norris <jnorris@codesourcery.com>
13242 Joseph Myers <joseph@codesourcery.com>
13244 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
13245 * oacc-parallel.c (GOACC_declare): New function.
13246 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
13247 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
13248 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
13249 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
13250 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
13252 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
13254 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
13256 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
13258 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
13259 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
13261 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
13263 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
13264 inadvertent commit.
13266 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
13268 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
13269 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
13270 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
13271 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
13272 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
13274 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
13276 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
13277 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
13279 2015-11-05 Jakub Jelinek <jakub@redhat.com>
13280 Ilya Verbin <ilya.verbin@intel.com>
13282 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
13283 GOMP_loop_nonmonotonic_dynamic_start,
13284 GOMP_loop_nonmonotonic_guided_next,
13285 GOMP_loop_nonmonotonic_guided_start,
13286 GOMP_loop_ull_nonmonotonic_dynamic_next,
13287 GOMP_loop_ull_nonmonotonic_dynamic_start,
13288 GOMP_loop_ull_nonmonotonic_guided_next,
13289 GOMP_loop_ull_nonmonotonic_guided_start,
13290 GOMP_parallel_loop_nonmonotonic_dynamic,
13291 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
13292 (GOMP_target_41): Renamed to ...
13293 (GOMP_target_ext): ... this. Add num_teams and thread_limit
13295 (GOMP_target_data_41): Renamed to ...
13296 (GOMP_target_data_ext): ... this.
13297 (GOMP_target_update_41): Renamed to ...
13298 (GOMP_target_update_ext): ... this.
13299 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
13300 GOMP_target_data_ext and GOMP_target_update_ext instead of
13301 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
13302 Export GOMP_loop_nonmonotonic_dynamic_next,
13303 GOMP_loop_nonmonotonic_dynamic_start,
13304 GOMP_loop_nonmonotonic_guided_next,
13305 GOMP_loop_nonmonotonic_guided_start,
13306 GOMP_loop_ull_nonmonotonic_dynamic_next,
13307 GOMP_loop_ull_nonmonotonic_dynamic_start,
13308 GOMP_loop_ull_nonmonotonic_guided_next,
13309 GOMP_loop_ull_nonmonotonic_guided_start,
13310 GOMP_parallel_loop_nonmonotonic_dynamic and
13311 GOMP_parallel_loop_nonmonotonic_guided.
13312 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
13313 GOMP_parallel_loop_nonmonotonic_guided,
13314 GOMP_loop_nonmonotonic_dynamic_start,
13315 GOMP_loop_nonmonotonic_guided_start,
13316 GOMP_loop_nonmonotonic_dynamic_next,
13317 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
13318 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
13319 GOMP_loop_ull_nonmonotonic_guided_start,
13320 GOMP_loop_ull_nonmonotonic_dynamic_next,
13321 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
13322 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
13324 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
13325 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
13326 Use gomp_map_val function.
13327 (gomp_target_fallback_firstprivate): New static function.
13328 (GOMP_target_41): Renamed to ...
13329 (GOMP_target_ext): ... this. Add num_teams and thread_limit
13330 arguments. Move firstprivate fallback handling into a new
13332 (GOMP_target_data_41): Renamed to ...
13333 (GOMP_target_data_ext): ... this.
13334 (GOMP_target_update_41): Renamed to ...
13335 (GOMP_target_update_ext): ... this.
13336 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
13337 gomp_map_0len_lookup instead of gomp_map_lookup.
13338 (omp_target_is_present): Use gomp_map_0len_lookup instead of
13340 * testsuite/libgomp.c/target-28.c: Likewise.
13341 * testsuite/libgomp.c/monotonic-1.c: New test.
13342 * testsuite/libgomp.c/monotonic-2.c: New test.
13343 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
13344 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
13345 * testsuite/libgomp.c/pr66199-5.c: New test.
13346 * testsuite/libgomp.c/pr66199-6.c: New test.
13347 * testsuite/libgomp.c/pr66199-7.c: New test.
13348 * testsuite/libgomp.c/pr66199-8.c: New test.
13349 * testsuite/libgomp.c/pr66199-9.c: New test.
13350 * testsuite/libgomp.c/reduction-11.c: New test.
13351 * testsuite/libgomp.c/reduction-12.c: New test.
13352 * testsuite/libgomp.c/reduction-13.c: New test.
13353 * testsuite/libgomp.c/reduction-14.c: New test.
13354 * testsuite/libgomp.c/reduction-15.c: New test.
13355 * testsuite/libgomp.c/target-12.c (main): Adjust for
13356 omp_target_is_present change for one-past-last element.
13357 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
13358 the same var is both mapped and privatized.
13359 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
13360 handling of zero-length array sections.
13361 * testsuite/libgomp.c/target-28.c: New test.
13362 * testsuite/libgomp.c/target-29.c: New test.
13363 * testsuite/libgomp.c/target-30.c: New test.
13364 * testsuite/libgomp.c/target-teams-1.c: New test.
13365 * testsuite/libgomp.c++/member-6.C: New test.
13366 * testsuite/libgomp.c++/member-7.C: New test.
13367 * testsuite/libgomp.c++/monotonic-1.C: New test.
13368 * testsuite/libgomp.c++/monotonic-2.C: New test.
13369 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
13370 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
13371 * testsuite/libgomp.c++/pr66199-3.C: New test.
13372 * testsuite/libgomp.c++/pr66199-4.C: New test.
13373 * testsuite/libgomp.c++/pr66199-5.C: New test.
13374 * testsuite/libgomp.c++/pr66199-6.C: New test.
13375 * testsuite/libgomp.c++/pr66199-7.C: New test.
13376 * testsuite/libgomp.c++/pr66199-8.C: New test.
13377 * testsuite/libgomp.c++/pr66199-9.C: New test.
13378 * testsuite/libgomp.c++/reduction-11.C: New test.
13379 * testsuite/libgomp.c++/reduction-12.C: New test.
13380 * testsuite/libgomp.c++/target-13.C: New test.
13381 * testsuite/libgomp.c++/target-14.C: New test.
13382 * testsuite/libgomp.c++/target-15.C: New test.
13383 * testsuite/libgomp.c++/target-16.C: New test.
13384 * testsuite/libgomp.c++/target-17.C: New test.
13385 * testsuite/libgomp.c++/target-18.C: New test.
13386 * testsuite/libgomp.c++/target-19.C: New test.
13388 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
13390 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
13391 and reduction copy.
13392 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
13393 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
13394 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
13395 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13396 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
13397 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13398 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
13399 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13400 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13401 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
13402 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
13403 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
13404 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13405 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
13407 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
13409 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
13410 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
13411 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
13412 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
13413 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
13414 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
13415 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
13416 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
13418 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
13420 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
13421 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
13422 (GOMP_OFFLOAD_openacc_parallel): Likewise.
13423 * oacc-host.c (host_openacc_exec): Likewise.
13424 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
13426 2015-11-03 Julian Brown <julian@codesourcery.com>
13427 Thomas Schwinge <thomas@codesourcery.com>
13429 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
13430 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13431 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
13433 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
13434 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
13436 2015-11-03 James Norris <jnorris@codesourcery.com>
13438 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
13440 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
13442 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
13443 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
13444 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
13445 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
13446 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
13448 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
13450 * openacc.h (enum acc_device_t): Reformat. Ensure layout
13452 (enum acc_async_t): Reformat.
13453 (acc_on_device): Declare compatible with builtin and provide C++
13455 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
13457 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
13458 Cesar Philippidis <cesar@codesourcery.com>
13460 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
13461 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
13462 ... this. Add a description of the test at the top of the file.
13463 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
13464 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
13465 ... this. Add a description of the test at the top of the file.
13467 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
13469 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
13470 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
13471 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
13472 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
13473 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
13474 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
13476 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
13478 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
13481 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
13484 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
13486 2015-10-27 James Norris <jnorris@codesourcery.com>
13488 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
13489 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
13491 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
13493 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
13494 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
13496 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
13497 acc_device_nvidia usage.
13498 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
13499 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
13500 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
13502 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
13503 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
13506 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
13510 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
13511 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
13513 2015-10-23 Tom de Vries <tom@codesourcery.com>
13516 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
13518 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
13520 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
13522 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13524 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
13525 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
13527 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
13528 to 0 when mapnum is 0.
13530 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
13532 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
13533 Cast to int from int32_t.
13535 2015-10-13 Jakub Jelinek <jakub@redhat.com>
13536 Aldy Hernandez <aldyh@redhat.com>
13537 Ilya Verbin <ilya.verbin@intel.com>
13539 * config/linux/affinity.c (omp_get_place_num_procs,
13540 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
13541 * config/linux/doacross.h: New file.
13542 * config/posix/affinity.c (omp_get_place_num_procs,
13543 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
13544 * config/posix/doacross.h: New file.
13545 * env.c: Include gomp-constants.h.
13546 (struct gomp_task_icv): Rename run_sched_modifier to
13547 run_sched_chunk_size.
13548 (gomp_max_task_priority_var): New variable.
13549 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
13550 (handle_omp_display_env): Change _OPENMP value from 201307 to
13551 201511. Print OMP_MAX_TASK_PRIORITY.
13552 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
13553 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
13554 chunk_size and run_sched_modifier to run_sched_chunk_size.
13555 (omp_get_max_task_priority, omp_get_initial_device,
13556 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
13557 omp_get_partition_place_nums): New functions.
13558 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
13559 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
13561 (omp_get_num_places_, omp_get_place_num_procs_,
13562 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
13563 omp_get_place_proc_ids_8_, omp_get_place_num_,
13564 omp_get_partition_num_places_, omp_get_partition_place_nums_,
13565 omp_get_partition_place_nums_8_, omp_get_initial_device_,
13566 omp_get_max_task_priority_): New functions.
13567 * libgomp_g.h (GOMP_loop_doacross_static_start,
13568 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
13569 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
13570 GOMP_loop_ull_doacross_dynamic_start,
13571 GOMP_loop_ull_doacross_guided_start,
13572 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
13573 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
13574 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
13575 GOMP_target_data_41, GOMP_target_update_41,
13576 GOMP_target_enter_exit_data): New prototypes.
13577 (GOMP_task): Add prototype argument.
13578 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
13579 (struct gomp_doacross_work_share): New type.
13580 (struct gomp_work_share): Add doacross field.
13581 (struct gomp_task_icv): Rename run_sched_modifier to
13582 run_sched_chunk_size.
13583 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
13584 GOMP_TASK_UNDEFERRED. Add comments.
13585 (struct gomp_task_depend_entry): Add comments.
13586 (struct gomp_task): Likewise.
13587 (struct gomp_taskgroup): Likewise.
13588 (struct gomp_target_task): New type.
13589 (struct gomp_team): Add comment.
13590 (gomp_get_place_proc_ids_8, gomp_doacross_init,
13591 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
13592 gomp_create_target_task, gomp_target_task_fn): New prototypes.
13593 (struct target_var_desc): New type.
13594 (struct target_mem_desc): Adjust comment. Use struct
13595 target_var_desc instead of splay_tree_key for list.
13596 (REFCOUNT_INFINITY): Define.
13597 (struct splay_tree_key_s): Remove copy_from field.
13598 (struct gomp_device_descr): Add dev2dev_func field.
13599 (enum gomp_map_vars_kind): New enum.
13600 (gomp_map_vars): Add one argument.
13601 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
13602 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
13603 omp_get_place_num_procs, omp_get_place_num_procs_,
13604 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
13605 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
13606 omp_get_place_num_, omp_get_partition_num_places,
13607 omp_get_partition_num_places_, omp_get_partition_place_nums,
13608 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
13609 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
13610 omp_target_free, omp_target_is_present, omp_target_memcpy,
13611 omp_target_memcpy_rect, omp_target_associate_ptr and
13612 omp_target_disassociate_ptr.
13613 (GOMP_4.0.2): Renamed to ...
13614 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
13615 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
13616 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
13617 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
13618 GOMP_loop_doacross_static_start, GOMP_doacross_post,
13619 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
13620 GOMP_loop_ull_doacross_guided_start,
13621 GOMP_loop_ull_doacross_runtime_start,
13622 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
13623 GOMP_doacross_ull_wait.
13624 * libgomp.texi: Document omp_get_max_task_priority.
13625 Rename modifier argument to chunk_size for omp_set_schedule and
13626 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
13627 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
13628 to run_sched_chunk_size renaming.
13629 (GOMP_loop_ordered_runtime_start): Likewise.
13630 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
13631 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
13632 GOMP_parallel_loop_runtime_start): New functions.
13633 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
13634 to run_sched_chunk_size renaming.
13635 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
13636 GOMP_loop_doacross_guided_start): New functions or aliases.
13637 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
13638 run_sched_modifier to run_sched_chunk_size renaming.
13639 (GOMP_loop_ull_ordered_runtime_start): Likewise.
13640 (gomp_loop_ull_doacross_static_start,
13641 gomp_loop_ull_doacross_dynamic_start,
13642 gomp_loop_ull_doacross_guided_start,
13643 GOMP_loop_ull_doacross_runtime_start): New functions.
13644 (GOMP_loop_ull_doacross_static_start,
13645 GOMP_loop_ull_doacross_dynamic_start,
13646 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
13647 * oacc-mem.c (acc_map_data, present_create_copy,
13648 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
13650 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
13651 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
13652 instead of false to gomp_map_vars.
13653 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
13654 * omp.h.in (omp_lock_hint_t): New type.
13655 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
13656 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
13657 omp_get_place_num, omp_get_partition_num_places,
13658 omp_get_partition_place_nums, omp_get_initial_device,
13659 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
13660 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
13661 omp_target_associate_ptr, omp_target_disassociate_ptr): New
13663 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
13664 (omp_lock_hint_none, omp_lock_hint_uncontended,
13665 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
13666 omp_lock_hint_speculative): New parameters.
13667 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
13668 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
13669 omp_get_place_num, omp_get_partition_num_places,
13670 omp_get_partition_place_nums, omp_get_initial_device,
13671 omp_get_max_task_priority): New interfaces.
13672 (omp_set_schedule, omp_get_schedule): Rename modifier argument
13674 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
13675 (omp_lock_hint_none, omp_lock_hint_uncontended,
13676 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
13677 omp_lock_hint_speculative): New parameters.
13678 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
13679 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
13680 omp_get_place_num, omp_get_partition_num_places,
13681 omp_get_partition_place_nums, omp_get_initial_device,
13682 omp_get_max_task_priority): New functions and subroutines.
13683 * ordered.c: Include stdarg.h and string.h.
13684 (MAX_COLLAPSED_BITS): Define.
13685 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
13686 gomp_doacross_ull_init, GOMP_doacross_ull_post,
13687 GOMP_doacross_ull_wait): New functions.
13688 * target.c: Include errno.h.
13689 (resolve_device): If device is not initialized, call
13690 gomp_init_device on it.
13691 (gomp_map_lookup): New function.
13692 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
13693 Don't bump refcount if REFCOUNT_INFINITY. Handle
13694 GOMP_MAP_ALWAYS_TO_P.
13695 (get_kind): Rename is_openacc argument to short_mapkind.
13696 (gomp_map_pointer): Use gomp_map_lookup.
13697 (gomp_map_fields_existing): New function.
13698 (gomp_map_vars): Rename is_openacc argument to short_mapkind
13699 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
13700 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
13701 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
13702 Adjust for tgt->list changed type and copy_from living in there.
13703 (gomp_copy_from_async): Adjust for tgt->list changed type and
13704 copy_from living in there.
13705 (gomp_unmap_vars): Likewise.
13706 (gomp_update): Likewise. Rename is_openacc argument to
13707 short_mapkind. Don't fail if object is not mapped.
13708 (gomp_load_image_to_device): Initialize refcount to
13710 (gomp_target_fallback): New function.
13711 (gomp_get_target_fn_addr): Likewise.
13712 (GOMP_target): Adjust gomp_map_vars caller, use
13713 gomp_get_target_fn_addr and gomp_target_fallback.
13714 (GOMP_target_41): New function.
13715 (gomp_target_data_fallback): New function.
13716 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
13717 (GOMP_target_data_41): New function.
13718 (GOMP_target_update): Adjust gomp_update caller.
13719 (GOMP_target_update_41): New function.
13720 (gomp_exit_data, GOMP_target_enter_exit_data,
13721 gomp_target_task_fn, omp_target_alloc, omp_target_free,
13722 omp_target_is_present, omp_target_memcpy,
13723 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
13724 omp_target_associate_ptr, omp_target_disassociate_ptr,
13725 gomp_load_plugin_for_device): New functions.
13726 * task.c: Include gomp-constants.h. Include taskloop.c
13727 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
13728 (gomp_task_handle_depend): New function.
13729 (GOMP_task): Use it. Add priority argument. Use
13730 gomp-constant.h constants instead of hardcoded numbers.
13731 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
13732 (gomp_create_target_task): New function.
13733 (verify_children_queue, verify_taskgroup_queue,
13734 verify_task_queue): New functions.
13735 (gomp_task_run_pre): Call verify_*_queue functions.
13736 If an upcoming tied task is about to leave the sibling or
13737 taskgroup queues in an invalid state, adjust appropriately.
13738 Remove taskgroup argument. Add comments.
13739 (gomp_task_run_post_handle_dependers): Add comments.
13740 (gomp_task_run_post_remove_parent): Likewise.
13741 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
13742 (GOMP_taskwait): Likewise. Add comments.
13743 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
13744 problem such that the first non parent_depends_on task does not
13745 end up at the end of the children queue.
13746 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
13747 GOMP_TASK_UNDEFERRED.
13748 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
13749 * taskloop.c: New file.
13750 * testsuite/lib/libgomp.exp
13751 (check_effective_target_offload_device_nonshared_as): New proc.
13752 * testsuite/libgomp.c/affinity-2.c: New test.
13753 * testsuite/libgomp.c/doacross-1.c: New test.
13754 * testsuite/libgomp.c/doacross-2.c: New test.
13755 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
13756 Add map clause to target.
13757 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
13758 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
13759 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
13760 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
13761 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
13763 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
13764 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
13765 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
13766 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
13767 not defined. Use those where needed.
13768 * testsuite/libgomp.c/for-4.c: New test.
13769 * testsuite/libgomp.c/for-5.c: New test.
13770 * testsuite/libgomp.c/for-6.c: New test.
13771 * testsuite/libgomp.c/linear-1.c: New test.
13772 * testsuite/libgomp.c/ordered-4.c: New test.
13773 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
13774 only allowed on the loop iterator.
13775 * testsuite/libgomp.c/pr66199-3.c: New test.
13776 * testsuite/libgomp.c/pr66199-4.c: New test.
13777 * testsuite/libgomp.c/reduction-7.c: New test.
13778 * testsuite/libgomp.c/reduction-8.c: New test.
13779 * testsuite/libgomp.c/reduction-9.c: New test.
13780 * testsuite/libgomp.c/reduction-10.c: New test.
13781 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
13783 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
13784 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
13785 * testsuite/libgomp.c/target-11.c: New test.
13786 * testsuite/libgomp.c/target-12.c: New test.
13787 * testsuite/libgomp.c/target-13.c: New test.
13788 * testsuite/libgomp.c/target-14.c: New test.
13789 * testsuite/libgomp.c/target-15.c: New test.
13790 * testsuite/libgomp.c/target-16.c: New test.
13791 * testsuite/libgomp.c/target-17.c: New test.
13792 * testsuite/libgomp.c/target-18.c: New test.
13793 * testsuite/libgomp.c/target-19.c: New test.
13794 * testsuite/libgomp.c/target-20.c: New test.
13795 * testsuite/libgomp.c/target-21.c: New test.
13796 * testsuite/libgomp.c/target-22.c: New test.
13797 * testsuite/libgomp.c/target-23.c: New test.
13798 * testsuite/libgomp.c/target-24.c: New test.
13799 * testsuite/libgomp.c/target-25.c: New test.
13800 * testsuite/libgomp.c/target-26.c: New test.
13801 * testsuite/libgomp.c/target-27.c: New test.
13802 * testsuite/libgomp.c/taskloop-1.c: New test.
13803 * testsuite/libgomp.c/taskloop-2.c: New test.
13804 * testsuite/libgomp.c/taskloop-3.c: New test.
13805 * testsuite/libgomp.c/taskloop-4.c: New test.
13806 * testsuite/libgomp.c++/ctor-13.C: New test.
13807 * testsuite/libgomp.c++/doacross-1.C: New test.
13808 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
13809 Replace offload_device with offload_device_nonshared_as.
13810 * testsuite/libgomp.c++/for-12.C: New test.
13811 * testsuite/libgomp.c++/for-13.C: New test.
13812 * testsuite/libgomp.c++/for-14.C: New test.
13813 * testsuite/libgomp.c++/linear-1.C: New test.
13814 * testsuite/libgomp.c++/member-1.C: New test.
13815 * testsuite/libgomp.c++/member-2.C: New test.
13816 * testsuite/libgomp.c++/member-3.C: New test.
13817 * testsuite/libgomp.c++/member-4.C: New test.
13818 * testsuite/libgomp.c++/member-5.C: New test.
13819 * testsuite/libgomp.c++/ordered-1.C: New test.
13820 * testsuite/libgomp.c++/reduction-5.C: New test.
13821 * testsuite/libgomp.c++/reduction-6.C: New test.
13822 * testsuite/libgomp.c++/reduction-7.C: New test.
13823 * testsuite/libgomp.c++/reduction-8.C: New test.
13824 * testsuite/libgomp.c++/reduction-9.C: New test.
13825 * testsuite/libgomp.c++/reduction-10.C: New test.
13826 * testsuite/libgomp.c++/reference-1.C: New test.
13827 * testsuite/libgomp.c++/simd14.C: New test.
13828 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
13829 * testsuite/libgomp.c++/target-5.C: New test.
13830 * testsuite/libgomp.c++/target-6.C: New test.
13831 * testsuite/libgomp.c++/target-7.C: New test.
13832 * testsuite/libgomp.c++/target-8.C: New test.
13833 * testsuite/libgomp.c++/target-9.C: New test.
13834 * testsuite/libgomp.c++/target-10.C: New test.
13835 * testsuite/libgomp.c++/target-11.C: New test.
13836 * testsuite/libgomp.c++/target-12.C: New test.
13837 * testsuite/libgomp.c++/taskloop-1.C: New test.
13838 * testsuite/libgomp.c++/taskloop-2.C: New test.
13839 * testsuite/libgomp.c++/taskloop-3.C: New test.
13840 * testsuite/libgomp.c++/taskloop-4.C: New test.
13841 * testsuite/libgomp.c++/taskloop-5.C: New test.
13842 * testsuite/libgomp.c++/taskloop-6.C: New test.
13843 * testsuite/libgomp.c++/taskloop-7.C: New test.
13844 * testsuite/libgomp.c++/taskloop-8.C: New test.
13845 * testsuite/libgomp.c++/taskloop-9.C: New test.
13846 * testsuite/libgomp.fortran/affinity1.f90: New test.
13847 * testsuite/libgomp.fortran/affinity2.f90: New test.
13849 2015-10-13 Tom de Vries <tom@codesourcery.com>
13851 PR tree-optimization/67476
13852 * testsuite/libgomp.c/autopar-3.c: New test.
13853 * testsuite/libgomp.c/autopar-4.c: New test.
13854 * testsuite/libgomp.c/autopar-5.c: New test.
13855 * testsuite/libgomp.c/autopar-6.c: New test.
13856 * testsuite/libgomp.c/autopar-7.c: New test.
13857 * testsuite/libgomp.c/autopar-8.c: New test.
13859 2015-10-12 James Norris <jnorris@codesourcery.com>
13861 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
13864 2015-10-09 David Malcolm <dmalcolm@redhat.com>
13866 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
13867 using load_gcc_lib.
13869 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
13871 * oacc-ptx.h: Remove file, moving its content into...
13872 * config/nvptx/fortran.c: ... here...
13873 * config/nvptx/oacc-init.c: ..., here...
13874 * config/nvptx/oacc-parallel.c: ..., and here.
13875 * config/nvptx/openacc.f90: New file.
13876 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
13877 (link_ptx): Don't link in predefined bits of PTX code.
13879 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
13880 Bernd Schmidt <bernds@codesourcery.com>
13882 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
13883 (struct targ_ptx_obj): New.
13884 (nvptx_tdata): Move earlier, change data format.
13885 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
13887 (GOMP_OFFLOAD_load_image): Adjust.
13889 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
13891 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
13892 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
13893 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
13894 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
13895 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
13896 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
13897 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
13898 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
13899 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
13900 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
13901 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
13902 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
13903 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
13904 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
13905 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
13906 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
13907 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
13908 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
13909 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
13910 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
13911 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
13912 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
13913 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
13914 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
13915 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
13916 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
13917 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
13918 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
13919 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
13920 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
13921 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
13922 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
13923 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
13924 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
13925 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13926 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
13927 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
13928 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
13929 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
13930 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
13931 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
13932 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
13933 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
13934 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
13935 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
13936 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
13937 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
13938 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
13939 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
13940 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
13941 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
13942 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
13943 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
13944 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
13945 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
13946 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
13947 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
13948 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
13949 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
13950 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
13951 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
13952 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
13953 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
13955 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
13957 * oacc-init.c (acc_on_device): Force optimization level.
13959 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
13961 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
13962 (cuda_errlist): Delete.
13963 (cuda_error): Reimplement.
13965 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
13967 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
13969 * libgomp.map (GOACC_parallel_keyed): New.
13970 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
13972 (GOACC_parallel_keyed): New interface. Lose geometry arguments
13973 and take keyed varargs list. Adjust call to exec_func.
13974 (GOACC_parallel): Force host fallback.
13975 * libgomp_g.h (GOACC_parallel): Remove.
13976 (GOACC_parallel_keyed): Declare.
13977 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
13978 (struct targ_gn_descriptor): Replace name field with launch field.
13979 (nvptx_exec): Lose separate geometry args, take array. Process
13980 dynamic dimensions and adjust.
13981 (struct nvptx_tdata): Replace fn_names field with fn_descs.
13982 (GOMP_OFFLOAD_load_image): Adjust for change in function table
13984 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
13986 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
13989 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
13992 * oacc-int.h (goacc_host_init): Add declaration.
13993 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
13994 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
13996 2015-09-08 Aditya Kumar <hiraditya@msn.com>
13997 Sebastian Pop <s.pop@samsung.com>
13999 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
14001 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
14002 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
14003 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
14004 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
14005 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
14007 2015-09-03 Jakub Jelinek <jakub@redhat.com>
14009 * configure.tgt: Add missing ;; in between nvptx and rtems
14012 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14014 * config/posix/pool.h (gomp_adjust_thread_attr): New.
14015 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
14016 (gomp_thread_pool_reservoir): Add priority member.
14017 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
14019 (parse_thread_pools): Likewise.
14020 * team.c (gomp_team_start): Call configuration provided
14021 gomp_adjust_thread_attr(). Destroy thread attributes if
14023 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
14025 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14027 * config/posix/pool.h: New.
14028 * config/rtems/pool.h: Likewise.
14029 * config/rtems/proc.c: Likewise.
14030 * libgomp.h (gomp_thread_destructor): Declare.
14031 * team.c: Include configuration provided "pool.h".
14032 (gomp_get_thread_pool): Define in configuration.
14033 (gomp_team_end): Call configuration defined
14034 gomp_release_thread_pool().
14036 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14038 * config/rtems/bar.c: New.
14039 * config/rtems/bar.h: Likewise.
14040 * config/rtems/mutex.c: Likewise.
14041 * config/rtems/mutex.h: Likewise.
14042 * config/rtems/sem.c: Likewise.
14043 * config/rtems/sem.h: Likewise.
14044 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
14045 <sys/lock.h> header file.
14046 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
14047 supported by Newlib.
14048 * configure: Regenerate.
14050 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14052 * team.c (gomp_new_thread_pool): Delete and move content to ...
14053 (gomp_get_thread_pool): ... new function. Allocate and
14054 initialize thread pool on demand.
14055 (get_last_team): Use gomp_get_thread_pool().
14056 (gomp_team_start): Delete thread pool initialization.
14058 2015-09-03 Tom de Vries <tom@codesourcery.com>
14060 PR tree-optimization/65637
14061 * testsuite/libgomp.c/autopar-2.c: New test.
14063 2015-08-29 Tom de Vries <tom@codesourcery.com>
14065 PR tree-optimization/46193
14066 * testsuite/libgomp.c/pr46193.c: New test.
14068 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
14071 * libgomp.map: Add 4.0.2 version.
14072 * target.c (offload_image_descr): Add version field.
14073 (gomp_load_image_to_device): Add version argument. Adjust plugin
14074 call. Improve load mismatch diagnostic.
14075 (gomp_unload_image_from_device): Add version argument. Adjust plugin
14077 (GOMP_offload_regster): Make stub function, move bulk to ...
14078 (GOMP_offload_register_ver): ... here. Process version argument.
14079 (GOMP_offload_unregister): Make stub function, move bulk to ...
14080 (GOMP_offload_unregister_ver): ... here. Process version argument.
14081 (gomp_init_device): Process version field.
14082 (gomp_unload_device): Process version field.
14083 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
14084 macros. Check plugin version.
14085 * libgomp.h (gomp_device_descr): Add version function field. Adjust
14086 loader and unloader types.
14087 * oacc-host.c: Include gomp-constants.h.
14088 (host_version): New.
14089 (host_load_image, host_unload_image): Adjust.
14090 (host_dispatch): Add host_version.
14091 * plugin/plugin-nvptx.c: Include gomp-constants.h.
14092 (GOMP_OFFLOAD_version): New.
14093 (GOMP_OFFLOAD_load_image): Add version arg and check it.
14094 (GOMP_OFFLOAD_unload_image): Likewise.
14095 * plugin/plugin-host.c: Include gomp-constants.h.
14096 (GOMP_OFFLOAD_version): New.
14097 (GOMP_OFFLOAD_load_image): Add version arg.
14098 (GOMP_OFFLOAD_unload_image): Likewise.
14100 2015-08-24 Tom de Vries <tom@codesourcery.com>
14102 PR tree-optimization/65468
14103 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
14105 2015-08-24 Tom de Vries <tom@codesourcery.com>
14107 PR tree-optimization/65468
14108 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
14110 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
14114 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
14115 (gomp_iter_guided_next): Idem.
14116 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
14117 (gomp_iter_ull_guided_next): Idem.
14118 * config/linux/wait.h (do_spin): Idem.
14120 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14122 * libgomp-plugin.h (enum offload_target_type): Remove
14123 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
14124 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
14125 * openacc.h (enum acc_device_t): Likewise.
14126 * openacc_lib.h: Likewise.
14127 * oacc-init.c (name_of_acc_device_t): Don't handle it.
14128 (acc_on_device): Just use __builtin_acc_on_device.
14129 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
14130 of acc_on_device builtin.
14131 * plugin/plugin-host.h: Remove file.
14132 * plugin/plugin-host.c: Likewise, but salvage some content into...
14133 * oacc-host.c: ... this file.
14134 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
14135 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
14136 * Makefile.in: Regenerate.
14137 * configure: Likewise.
14138 * testsuite/lib/libgomp.exp
14139 (check_effective_target_openacc_host_nonshm_selected): Remove.
14140 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
14141 ACC_DEVICE_TYPE=host_nonshm.
14142 * testsuite/libgomp.oacc-c/c.exp: Likewise.
14143 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14144 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
14145 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
14146 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
14147 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
14149 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14150 Jakub Jelinek <jakub@redhat.com>
14152 * config/nvptx/affinity.c: New file.
14153 * config/nvptx/alloc.c: Likewise.
14154 * config/nvptx/bar.c: Likewise.
14155 * config/nvptx/barrier.c: Likewise.
14156 * config/nvptx/critical.c: Likewise.
14157 * config/nvptx/env.c: Likewise.
14158 * config/nvptx/error.c: Likewise.
14159 * config/nvptx/fortran.c: Likewise.
14160 * config/nvptx/iter.c: Likewise.
14161 * config/nvptx/iter_ull.c: Likewise.
14162 * config/nvptx/libgomp-plugin.c: Likewise.
14163 * config/nvptx/lock.c: Likewise.
14164 * config/nvptx/loop.c: Likewise.
14165 * config/nvptx/loop_ull.c: Likewise.
14166 * config/nvptx/mutex.c: Likewise.
14167 * config/nvptx/oacc-async.c: Likewise.
14168 * config/nvptx/oacc-cuda.c: Likewise.
14169 * config/nvptx/oacc-host.c: Likewise.
14170 * config/nvptx/oacc-init.c: Likewise.
14171 * config/nvptx/oacc-mem.c: Likewise.
14172 * config/nvptx/oacc-parallel.c: Likewise.
14173 * config/nvptx/oacc-plugin.c: Likewise.
14174 * config/nvptx/omp-lock.h: Likewise.
14175 * config/nvptx/ordered.c: Likewise.
14176 * config/nvptx/parallel.c: Likewise.
14177 * config/nvptx/proc.c: Likewise.
14178 * config/nvptx/ptrlock.c: Likewise.
14179 * config/nvptx/sections.c: Likewise.
14180 * config/nvptx/sem.c: Likewise.
14181 * config/nvptx/single.c: Likewise.
14182 * config/nvptx/splay-tree.c: Likewise.
14183 * config/nvptx/target.c: Likewise.
14184 * config/nvptx/task.c: Likewise.
14185 * config/nvptx/team.c: Likewise.
14186 * config/nvptx/time.c: Likewise.
14187 * config/nvptx/work.c: Likewise.
14188 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
14189 * configure: Regenerate.
14190 * configure.tgt (config_path): Set to "nvptx" for target
14193 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14195 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
14197 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
14199 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
14200 (cuda_errlist): Constify.
14201 (errmsg): Move into ...
14202 (cuda_error): ... here. Make smaller.
14203 (_XSTR, _STR): Delete.
14204 (cuda_synames): Delete.
14205 (verify_device_library): Delete.
14206 (nvptx_init): Don't call it.
14208 2015-07-28 Tom de Vries <tom@codesourcery.com>
14210 * testsuite/libgomp.c/uns-outer-4.c: New test.
14212 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
14214 * testsuite/libgomp.c/pr66714.c: New test.
14216 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
14219 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
14220 (fib_ref): New function.
14221 (fib): Correct corner cases in the recursion.
14222 (main): Replace the non-simd loop with fib_ref call.
14223 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
14225 (fibonacci): Lower the parameter N to 30. Correct accordingly check
14226 for the last array element value. Replace the non-simd loop with
14227 fib_ref call. Remove redundant b_ref array. Remove the comparison
14228 of the last array element with according Fibonacci sequence element.
14229 (fib): Correct corner cases in the recursion.
14231 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
14233 * target.c (gomp_offload_image_to_device): Rename to ...
14234 (gomp_load_image_to_device): ... here.
14235 (GOMP_offload_register): Adjust call.
14236 (gomp_init_device): Likewise.
14237 (gomp_unload_image_from_device): New. Broken out of ...
14238 (GOMP_offload_unregister): ... here. Call it.
14239 (gomp_unload_device): New.
14240 * libgomp.h (gomp_unload_device): Declare.
14241 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
14244 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
14246 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
14248 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
14250 (goacc_waits): Move !num_waits handling to ...
14251 (GOACC_wait): ... here, the only caller that might have zero waits.
14253 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
14254 (struct ptx_image_data): Move earlier, add fns field.
14255 (struct ptx_device): Add images and image_lock fields.
14256 (ptx_images, ptx_image_lock): Delete.
14257 (nvptx_open_device): Initialize images and image_lock fields.
14258 (nvptx_close_device): Destroy image_lock.
14259 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
14260 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
14263 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
14265 * target.c (GOMP_offload_register): Use int for device type arg.
14266 (GOMP_offload_unregister): Likewise.
14268 * target.c (struct_offload_image_descr): Constify host_table.
14269 (gomp_offload_image_to_device): Likewise.
14270 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
14272 * libgomp.h (gomp_device_descr): Constify target data arguments.
14273 * target.c (struct offload_image_descr): Constify target_data.
14274 (gomp_offload_image_to_device): Likewise.
14275 (GOMP_offload_register): Likewise.
14276 (GOMP_offload_unregister): Likewise.
14277 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
14278 GOMP_OFFLOAD_unload_image): Constify target data.
14279 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
14280 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
14282 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
14284 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
14285 Workaround driver library const error.
14286 (struct nvptx_tdata, nvptx_tdata_t): New.
14287 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
14290 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
14292 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
14293 of EPS parameter from integer to real.
14294 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
14295 type of EPS parameter from integer to real.
14297 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
14299 * team.c (get_last_team): New.
14300 (gomp_new_team): Recycle last non-nested team if possible.
14301 (gomp_team_end): Move team work share list free lock destruction
14303 (free_team): ... here.
14305 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
14307 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
14308 and ref from int to double. Replaced their comparison with
14309 an inequality of their difference and EPS.
14310 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
14311 comparison of pri and a reference number with an inequality of their
14312 difference and EPS.
14313 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
14314 the comparison of sum and sum_ref with an inequality of their
14315 difference and EPS.
14316 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
14317 the comparison of pri and a reference number with an inequality of
14318 their difference and EPS.
14320 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
14322 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
14323 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
14324 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
14325 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
14326 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
14327 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
14328 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
14329 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
14330 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
14331 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
14332 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
14333 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
14334 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
14336 (vec_mult): Likewise. Add #pragma omp taskwait.
14337 (main): Adjust caller.
14338 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
14339 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
14340 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
14341 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
14342 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
14343 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
14344 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
14345 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
14346 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
14347 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
14348 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
14349 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
14350 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
14351 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
14352 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
14353 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
14354 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
14355 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
14356 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
14357 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
14358 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
14359 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
14360 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
14361 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
14362 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
14363 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
14364 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
14365 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
14366 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
14367 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
14368 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
14369 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
14370 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
14371 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
14372 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
14373 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
14374 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
14375 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
14376 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
14377 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
14378 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
14379 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
14380 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
14381 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
14382 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
14383 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
14384 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
14385 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
14386 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
14387 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
14388 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
14389 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
14390 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
14391 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
14392 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
14393 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
14394 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
14395 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
14396 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
14397 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
14398 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
14399 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
14400 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
14401 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
14402 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
14403 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
14404 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
14405 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
14406 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
14407 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
14408 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
14409 (vec_mult): Add !$omp taskwait.
14410 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
14411 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
14412 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
14413 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
14414 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
14415 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
14416 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
14417 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
14418 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
14419 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
14420 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
14421 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
14422 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
14423 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
14424 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
14425 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
14426 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
14427 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
14428 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
14429 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
14430 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
14431 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
14432 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
14433 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
14434 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
14435 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
14436 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
14437 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
14438 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
14439 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
14440 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
14441 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
14442 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
14443 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
14444 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
14445 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
14446 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
14447 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
14448 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
14449 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
14450 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
14451 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
14452 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
14453 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
14454 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
14455 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
14456 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
14457 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
14458 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
14459 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
14460 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
14461 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
14462 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
14463 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
14464 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
14465 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
14466 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
14467 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
14468 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
14469 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
14470 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
14471 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
14472 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
14473 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
14474 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
14475 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
14476 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
14478 2015-07-10 Tom de Vries <tom@codesourcery.com>
14480 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
14481 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
14483 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
14486 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
14487 in a 64-bit configuration.
14488 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
14489 offloading testing if no such device is available.
14490 * testsuite/libgomp.oacc-c/c.exp: Likewise.
14491 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14493 2015-07-08 Tom de Vries <tom@codesourcery.com>
14495 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
14497 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14499 2015-07-07 Tom de Vries <tom@codesourcery.com>
14501 PR tree-optimization/66642
14502 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
14503 iteration count case.
14504 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
14505 function, factor out of ...
14506 (main): ... here. Test low iteration count case.
14508 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
14510 * libgomp.h (gomp_thread_pool): Comment last_team field.
14512 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
14514 * testsuite/libgomp.c++/pr66702-1.C: Require
14515 vect_simd_clones effective target.
14516 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
14518 2015-06-30 Tom de Vries <tom@codesourcery.com>
14520 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
14521 already set. Use DEFAULT_CFLAGS in dg-runtest.
14522 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
14525 2015-06-30 Tom de Vries <tom@codesourcery.com>
14527 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
14528 already set. Use DEFAULT_CFLAGS in dg-runtest.
14529 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
14530 * testsuite/libgomp.c++/pr64824.C: Same.
14531 * testsuite/libgomp.c++/pr64868.C: Same.
14532 * testsuite/libgomp.c++/pr66199-1.C: Same.
14533 * testsuite/libgomp.c++/pr66199-2.C: Same.
14534 * testsuite/libgomp.c++/target-2.C: Same.
14535 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
14536 -std=<standard> option.
14537 * testsuite/libgomp.c++/udr-11.C: Same.
14538 * testsuite/libgomp.c++/udr-12.C: Same.
14539 * testsuite/libgomp.c++/udr-13.C: Same.
14540 * testsuite/libgomp.c++/udr-14.C: Same.
14541 * testsuite/libgomp.c++/udr-15.C: Same.
14542 * testsuite/libgomp.c++/udr-16.C: Same.
14543 * testsuite/libgomp.c++/udr-17.C: Same.
14544 * testsuite/libgomp.c++/udr-18.C: Same.
14545 * testsuite/libgomp.c++/udr-19.C: Same.
14546 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
14547 * testsuite/libgomp.c++/simd-1.C: Same.
14548 * testsuite/libgomp.c++/simd-2.C: Same.
14549 * testsuite/libgomp.c++/simd-3.C: Same.
14550 * testsuite/libgomp.c++/simd-4.C: Same.
14551 * testsuite/libgomp.c++/simd-5.C: Same.
14552 * testsuite/libgomp.c++/simd-6.C: Same.
14553 * testsuite/libgomp.c++/simd-7.C: Same.
14554 * testsuite/libgomp.c++/simd-8.C: Same.
14555 * testsuite/libgomp.c++/simd-9.C: Same.
14556 * testsuite/libgomp.c++/simd10.C: Same.
14557 * testsuite/libgomp.c++/simd11.C: Same.
14558 * testsuite/libgomp.c++/simd12.C: Same.
14559 * testsuite/libgomp.c++/simd13.C: Same.
14561 2015-06-30 Jakub Jelinek <jakub@redhat.com>
14563 PR middle-end/66702
14564 * testsuite/libgomp.c++/pr66702-1.C: New test.
14565 * testsuite/libgomp.c++/pr66702-2.C: New test.
14567 2015-06-30 Tom de Vries <tom@codesourcery.com>
14569 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
14570 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
14571 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
14572 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
14574 2015-06-30 Tom de Vries <tom@codesourcery.com>
14576 PR tree-optimization/66652
14577 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
14578 using restrict pointers.
14579 (main): Add arguments to calls to f.
14580 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14582 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
14584 * configure.ac: Fix check for header <sys/sysctl.h>.
14585 * configure: Regenerate.
14586 * config.h.in: Likewise.
14588 2015-06-23 Tom de Vries <tom@codesourcery.com>
14590 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
14592 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
14594 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
14596 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
14600 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
14601 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14603 2015-06-15 Tom de Vries <tom@codesourcery.com>
14605 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
14606 dg-additional-options for any remaining options.
14607 * testsuite/libgomp.c/atomic-2.c: Same.
14608 * testsuite/libgomp.c/atomic-4.c: Same.
14609 * testsuite/libgomp.c/atomic-5.c: Same.
14610 * testsuite/libgomp.c/atomic-6.c: Same.
14611 * testsuite/libgomp.c/autopar-1.c: Same.
14612 * testsuite/libgomp.c/copyin-1.c: Same.
14613 * testsuite/libgomp.c/copyin-2.c: Same.
14614 * testsuite/libgomp.c/copyin-3.c: Same.
14615 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
14616 * testsuite/libgomp.c/nestedfn-5.c: Same.
14617 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
14618 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
14619 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
14620 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14621 * testsuite/libgomp.c/pr32362-1.c: Same.
14622 * testsuite/libgomp.c/pr32362-2.c: Same.
14623 * testsuite/libgomp.c/pr32362-3.c: Same.
14624 * testsuite/libgomp.c/pr39591-1.c: Same.
14625 * testsuite/libgomp.c/pr39591-2.c: Same.
14626 * testsuite/libgomp.c/pr39591-3.c: Same.
14627 * testsuite/libgomp.c/pr58392.c: Same.
14628 * testsuite/libgomp.c/pr58756.c: Same.
14629 * testsuite/libgomp.c/simd-1.c: Same.
14630 * testsuite/libgomp.c/simd-10.c: Same.
14631 * testsuite/libgomp.c/simd-11.c: Same.
14632 * testsuite/libgomp.c/simd-12.c: Same.
14633 * testsuite/libgomp.c/simd-13.c: Same.
14634 * testsuite/libgomp.c/simd-14.c: Same.
14635 * testsuite/libgomp.c/simd-15.c: Same.
14636 * testsuite/libgomp.c/simd-2.c: Same.
14637 * testsuite/libgomp.c/simd-3.c: Same.
14638 * testsuite/libgomp.c/simd-4.c: Same.
14639 * testsuite/libgomp.c/simd-5.c: Same.
14640 * testsuite/libgomp.c/simd-6.c: Same.
14641 * testsuite/libgomp.c/simd-7.c: Same.
14642 * testsuite/libgomp.c/simd-8.c: Same.
14643 * testsuite/libgomp.c/simd-9.c: Same.
14645 2015-06-15 Tom de Vries <tom@codesourcery.com>
14647 * testsuite/libgomp.c/pr35625.c: Fix typo.
14649 2015-06-15 Tom de Vries <tom@codesourcery.com>
14651 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
14653 * testsuite/libgomp.c/atomic-3.c: Same.
14654 * testsuite/libgomp.c/debug-1.c: Same.
14655 * testsuite/libgomp.c/nqueens-1.c: Same.
14656 * testsuite/libgomp.c/pr26171.c: Same.
14657 * testsuite/libgomp.c/pr48591.c: Same.
14658 * testsuite/libgomp.c/pr64824.c: Same.
14659 * testsuite/libgomp.c/pr64868.c: Same.
14660 * testsuite/libgomp.c/pr66133.c: Same.
14661 * testsuite/libgomp.c/pr66199-1.c: Same.
14662 * testsuite/libgomp.c/pr66199-2.c: Same.
14663 * testsuite/libgomp.c/target-8.c: Same.
14665 2015-06-15 Tom de Vries <tom@codesourcery.com>
14667 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
14669 * testsuite/libgomp.c/for-1.c: Same.
14670 * testsuite/libgomp.c/for-2.c: Same.
14671 * testsuite/libgomp.c/for-3.c: Same.
14672 * testsuite/libgomp.c/pr35625.c: Same.
14673 * testsuite/libgomp.c/pr39154.c: Same.
14674 * testsuite/libgomp.c/simd-16.c: Same.
14675 * testsuite/libgomp.c/simd-17.c: Same.
14677 2015-06-13 Tom de Vries <tom@codesourcery.com>
14679 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
14681 2015-06-13 Tom de Vries <tom@codesourcery.com>
14683 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
14684 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14685 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
14687 (main): Use N instead of hardcoded constants.
14689 2015-06-05 Tom de Vries <tom@codesourcery.com>
14691 merge from gomp4 branch:
14692 2015-05-28 Tom de Vries <tom@codesourcery.com>
14694 PR tree-optimization/65443
14695 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
14696 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
14697 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
14699 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14701 * testsuite/libgomp.graphite/bounds.c: Adjust for
14702 cleanup-tree-dump removal.
14703 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
14704 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
14705 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
14706 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
14707 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
14708 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
14709 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
14710 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
14711 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
14712 * testsuite/libgomp.graphite/pr41118.c: Likewise.
14714 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
14716 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
14717 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
14718 (futex_wake) [!__x86_64__]: Ditto.
14720 2015-05-28 Julian Brown <julian@codesourcery.com>
14722 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
14723 function comment. Only call gomp_fatal if new argument is true.
14724 (acc_dev_num_out_of_range): New function.
14725 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
14726 acc_dev_num_out_of_range as appropriate.
14727 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
14728 (acc_get_device_num, acc_set_device_num): Update calls to
14730 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
14733 2015-05-28 Julian Brown <julian@codesourcery.com>
14736 * oacc-init.c (plugin/plugin-host.h): Include.
14737 (acc_on_device): Check whether we're in an offloaded region for
14739 plugin. Don't use __builtin_acc_on_device.
14740 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
14741 nonshm_exec flag in thread-local data.
14742 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
14743 data for host_nonshm plugin.
14744 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
14745 for host_nonshm plugin.
14746 * plugin/plugin-host.h: New.
14748 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
14750 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
14752 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
14754 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
14756 (FUTEX_PRIVATE_FLAG): Remove L suffix.
14757 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
14760 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
14762 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
14764 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
14766 * target.c (gomp_map_pointer): New function abstracting out
14767 GOMP_MAP_POINTER handling.
14768 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
14769 gomp_map_pointer().
14771 2015-05-19 Jakub Jelinek <jakub@redhat.com>
14773 PR middle-end/66199
14774 * testsuite/libgomp.c/pr66199-1.c: New test.
14775 * testsuite/libgomp.c/pr66199-2.c: New test.
14776 * testsuite/libgomp.c++/pr66199-1.C: New test.
14777 * testsuite/libgomp.c++/pr66199-2.C: New test.
14778 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
14779 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
14781 2015-05-19 Julian Brown <julian@codesourcery.com>
14783 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
14786 2015-05-13 Jakub Jelinek <jakub@redhat.com>
14788 PR middle-end/66133
14789 * testsuite/libgomp.c/pr66133.c: New test.
14791 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
14793 * Makefile.in: Regenerated with automake-1.11.6.
14794 * aclocal.m4: Likewise.
14795 * config.h.in: Likewise.
14796 * configure: Likewise.
14797 * testsuite/Makefile.in: Likewise.
14799 2015-05-08 Jason Merrill <jason@redhat.com>
14801 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
14804 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
14806 2015-05-06 Julian Brown <julian@codesourcery.com>
14808 * oacc-init.c (acc_device_lock): Add explanatory comment.
14809 (resolve_device): Add comment about locking requirement.
14810 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
14811 gomp_init_device and gomp_fini_device calls.
14812 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
14813 (acc_get_device_num, acc_set_device_num): Add locking around
14814 resolve_device and gomp_init_device calls.
14816 2015-05-06 Julian Brown <julian@codesourcery.com>
14818 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
14819 goacc_thread_lock on error paths.
14820 * oacc-mem.c (lookup_host): Remove locking from function. Note
14821 locking requirement for caller in function comment.
14822 (lookup_dev): Likewise.
14823 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
14824 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
14825 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
14828 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
14832 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
14833 don't expect "0x" prefix for "%p" format specifier, don't expect
14834 "(nil)" for NULL pointer.
14835 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14836 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14837 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14838 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14839 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14840 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14841 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14842 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14843 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14844 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14845 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14846 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14847 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14848 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14849 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14850 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14851 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14852 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14853 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14854 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14855 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14856 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14857 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14858 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14859 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14860 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14861 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14862 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14863 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
14864 accurately specify what we're looking for.
14865 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14866 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14867 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14868 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14869 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14871 2015-04-30 James Norris <jnorris@codesourcery.com>
14874 * testsuite/lib/libgomp.exp
14875 (check_effective_target_openacc_host_selected)
14876 (check_effective_target_openacc_host_nonshm_selected): New
14878 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
14880 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14881 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14882 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14883 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14884 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14885 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14886 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14887 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14888 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14889 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14890 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14891 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14892 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14893 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14894 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14895 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14896 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14897 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14898 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14899 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14900 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14901 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14902 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14903 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14904 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14905 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14906 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14907 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14908 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14909 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14910 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14911 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14912 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14913 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14914 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14915 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14916 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14917 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14918 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14919 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14920 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14921 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14922 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14924 2015-04-08 Julian Brown <julian@codesourcery.com>
14926 * libgomp.h (target_mem_desc: Remove mem_map field.
14927 (acc_dispatch_t): Remove open_device_func, close_device_func,
14928 get_device_num_func, set_device_num_func, target_data members.
14929 Change create_thread_data_func argument to device number instead of
14931 * oacc-async.c (assert.h): Include.
14932 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
14933 (acc_wait_all, acc_wait_all_async): Use current host thread's
14934 active device, not base_dev.
14935 * oacc-cuda.c (acc_get_current_cuda_device)
14936 (acc_get_current_cuda_context, acc_get_cuda_stream)
14937 (acc_set_cuda_stream): Likewise.
14938 * oacc-host.c (host_dispatch): Don't set open_device_func,
14939 close_device_func, get_device_num_func or set_device_num_func.
14940 * oacc-init.c (base_dev, init_key): Remove.
14941 (cached_base_dev): New.
14942 (name_of_acc_device_t): New.
14943 (acc_init_1): Initialise default-numbered device, not zeroth.
14944 (acc_shutdown_1): Close all devices of a given type.
14945 (goacc_destroy_thread): Don't use base_dev.
14946 (lazy_open, lazy_init, lazy_init_and_open): Remove.
14947 (goacc_attach_host_thread_to_device): New.
14948 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
14949 (acc_get_num_devices): Don't use base_dev.
14950 (acc_set_device_type): Reimplement.
14951 (acc_get_device_type): Don't use base_dev.
14952 (acc_get_device_num): Tweak logic.
14953 (acc_set_device_num): Likewise.
14954 (acc_on_device): Use acc_get_device_type.
14955 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
14956 (goacc_lazy_initialize): Reimplement with acc_init and
14957 goacc_attach_host_thread_to_device.
14958 * oacc-int.h (goacc_thread): Add base_dev field.
14959 (base_dev): Remove extern declaration.
14960 (goacc_attach_host_thread_to_device): Add prototype.
14961 * oacc-mem.c (acc_malloc): Use current thread's device instead of
14963 (acc_free): Likewise.
14964 (acc_memcpy_to_device): Likewise.
14965 (acc_memcpy_from_device): Likewise.
14966 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
14967 goacc_lazy_initialize (throughout).
14968 (GOACC_parallel): Use tgt_offset to locate target functions.
14969 * target.c (gomp_map_vars): Don't set tgt->mem_map.
14970 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
14971 (gomp_load_plugin_for_device): Remove open_device, close_device,
14972 get_device_num, set_device_num openacc hook initialisation. Don't set
14973 openacc.target_data.
14974 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
14975 (GOMP_OFFLOAD_openacc_close_device)
14976 (GOMP_OFFLOAD_openacc_get_device_num)
14977 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
14978 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
14980 * plugin/plugin-nvptx.c (ptx_inited): Remove.
14981 (instantiated_devices, ptx_dev_lock): New.
14982 (struct ptx_image_data): New.
14983 (ptx_devices, ptx_images, ptx_image_lock): New.
14984 (fini_streams_for_device): Reorder cuStreamDestroy call.
14985 (nvptx_get_num_devices): Remove forward declaration.
14986 (nvptx_init): Change return type to bool.
14987 (nvptx_fini): Remove.
14988 (nvptx_attach_host_thread_to_device): New.
14989 (nvptx_open_device): Return struct ptx_device* instead of void*.
14990 (nvptx_close_device): Change argument type to struct ptx_device*,
14991 return type to void.
14992 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
14993 (kernel_target_data, kernel_host_table): Remove static globals.
14994 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
14995 (GOMP_OFFLOAD_init_device): Reimplement.
14996 (GOMP_OFFLOAD_fini_device): Likewise.
14997 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
14998 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
14999 (GOMP_OFFLOAD_host2dev): Use ORD argument.
15000 (GOMP_OFFLOAD_openacc_open_device)
15001 (GOMP_OFFLOAD_openacc_close_device)
15002 (GOMP_OFFLOAD_openacc_set_device_num)
15003 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
15004 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
15008 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
15010 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
15012 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
15013 * libgomp.h (struct gomp_memory_mapping): Remove.
15014 (struct target_mem_desc): Change type of mem_map from
15015 gomp_memory_mapping * to splay_tree_s *.
15016 (struct gomp_device_descr): Remove register_image_func, get_table_func.
15017 Add load_image_func, unload_image_func.
15018 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
15019 Remove offload_regions_registered.
15020 (gomp_init_tables): Remove.
15021 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15023 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
15024 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
15025 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
15026 offload_regions_registered.
15027 Initialize load_image_func, unload_image_func, mem_map.root.
15028 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
15029 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
15030 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
15031 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
15032 gomp_memory_mapping *. Use dev's lock and splay_tree.
15033 (lookup_dev): Use dev's lock.
15034 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
15035 (acc_is_present): Likewise.
15036 (acc_map_data): Likewise.
15037 (acc_unmap_data): Likewise. Use dev's lock.
15038 (present_create_copy): Likewise.
15039 (delete_copyout): Pass dev to lookup_host instead of mem_map.
15040 (update_dev_host): Likewise.
15041 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
15042 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
15043 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
15044 (GOMP_OFFLOAD_get_table): Remove
15045 (GOMP_OFFLOAD_load_image): New function.
15046 (GOMP_OFFLOAD_unload_image): New function.
15047 * target.c (register_lock): New mutex for offload image registration.
15048 (num_devices): Do not guard with PLUGIN_SUPPORT.
15049 (gomp_realloc_unlock): New static function.
15050 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
15052 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
15053 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
15054 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
15056 (gomp_unmap_vars): Likewise.
15057 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
15058 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
15059 (gomp_offload_image_to_device): New static function.
15060 (GOMP_offload_register): Add mutex lock.
15061 Call gomp_offload_image_to_device for all initialized devices.
15062 Replace gomp_realloc with gomp_realloc_unlock.
15063 (GOMP_offload_unregister): New function.
15064 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
15065 get_table_func from the plugin with calls to init_device_func and
15066 gomp_offload_image_to_device.
15067 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15069 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
15070 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
15071 (GOMP_target_data): Do not call gomp_init_tables.
15072 (GOMP_target_update): Likewise. Remove argument from gomp_update.
15073 (gomp_load_plugin_for_device): Replace register_image and get_table
15074 with load_image and unload_image in DLSYM ().
15075 (gomp_register_images_for_device): Remove function.
15076 (gomp_target_init): Do not initialize current_device.mem_map.*,
15077 current_device.offload_regions_registered.
15078 Remove call to gomp_register_images_for_device.
15079 Do not free offload_images and num_offload_images.
15081 2015-03-30 Jakub Jelinek <jakub@redhat.com>
15084 * testsuite/libgomp.fortran/pr65597.f90: New test.
15086 2015-03-27 Tom de Vries <tom@codesourcery.com>
15089 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
15090 (init, check): New function.
15091 (foo): Change return type to void.
15092 (main): Call init and check.
15094 2015-03-27 Tom de Vries <tom@codesourcery.com>
15097 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
15098 (foo): Use M for non-inner loops to scale down test-case.
15100 2015-03-25 Kai Tietz <ktietz@redhat.com>
15103 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
15104 (GOACC_data_start): Likewise.
15105 * target.c (gomp_map_vars): Likewise.
15107 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
15109 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
15112 2015-03-19 Jakub Jelinek <jakub@redhat.com>
15114 * testsuite/libgomp.c/target-10.c: New test.
15115 * testsuite/libgomp.c++/target-4.C: New test.
15117 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
15119 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
15120 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
15122 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
15124 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
15125 * configure.ac (*-*-rtems*): Assume Pthread is supported.
15126 (pthread.h): Check for this header file.
15127 * configure: Regenerate.
15129 2015-02-25 Tom de Vries <tom@codesourcery.com>
15131 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
15132 (check_reduction_op, check_reduction_macro, max, min):
15134 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
15136 (main): Use new functions.
15138 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
15140 * target.c (gomp_load_plugin_for_device): Use const char * instead of
15141 char * for variables holding dlerror return values.
15142 (DLSYM_OPT): Ditto.
15144 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
15146 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
15148 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
15149 Cesar Philippidis <cesar@codesourcery.com>
15151 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
15152 GOACC_ctaid, and GOACC_nctaid routines.
15154 2015-02-11 Jakub Jelinek <jakub@redhat.com>
15157 * testsuite/libgomp.c/atomic-18.c: New test.
15158 * testsuite/libgomp.c++/atomic-16.C: New test.
15160 2015-02-04 Jakub Jelinek <jakub@redhat.com>
15164 * testsuite/libgomp.c/pr64824.c: New test.
15165 * testsuite/libgomp.c/pr64868.c: New test.
15166 * testsuite/libgomp.c++/pr64824.C: New test.
15167 * testsuite/libgomp.c++/pr64868.C: New test.
15169 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
15172 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
15173 Link with -lpthread.
15174 * config/aix/plugin-suffix.h: Delete.
15176 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
15179 * configure.tgt (*-*-aix*): Use config_path "aix posix".
15180 (*-*-darwin*): Use config_path "bsd darwin posix".
15181 (*-*-hpux*): Use config_path "hpux posix".
15182 * target.c: Add include of plugin-suffix.h and use
15183 SONAME_SUFFIX macro.
15184 * config/aix/plugin-suffix.h: New file.
15185 * config/darwin/plugin-suffix.h: New file.
15186 * config/hpux/plugin-suffix.h: New file.
15187 * config/posix/plugin-suffix.h: New file.
15189 2015-01-23 Jakub Jelinek <jakub@redhat.com>
15191 PR middle-end/64734
15192 * libgomp.c/pr64734.c: New test.
15194 2015-01-23 Tom de Vries <tom@codesourcery.com>
15197 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
15199 2015-01-23 Tom de Vries <tom@codesourcery.com>
15202 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
15205 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
15208 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
15209 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
15210 formal parameter. Update all users.
15211 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
15212 Document unused formal parameter.
15214 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
15216 * oacc-parallel.c: Don't include <alloca.h>.
15217 (GOACC_parallel): Use gomp_alloca instead of alloca.
15219 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
15221 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
15223 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
15224 James Norris <jnorris@codesourcery.com>
15225 Tom de Vries <tom@codesourcery.com>
15226 Julian Brown <julian@codesourcery.com>
15227 Cesar Philippidis <cesar@codesourcery.com>
15228 Nathan Sidwell <nathan@codesourcery.com>
15229 Tobias Burnus <burnus@net-b.de>
15231 * Makefile.am (search_path): Add $(top_srcdir)/../include.
15232 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
15233 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
15234 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
15235 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
15236 Include $(top_srcdir)/plugin/Makefrag.am.
15237 (nodist_libsubinclude_HEADERS): Add openacc.h.
15238 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
15239 openacc.f90, openacc.mod, openacc_kinds.mod.
15240 (omp_lib.mod): Generalize into...
15241 (%.mod): ... this new rule.
15242 (openacc_kinds.mod, openacc.mod): New rules.
15243 * plugin/configfrag.ac: New file.
15244 * configure.ac: Move plugin/offloading support into it. Include
15245 it. Instantiate testsuite/libgomp-test-support.pt.exp.
15246 * plugin/Makefrag.am: New file.
15247 * testsuite/Makefile.am (OFFLOAD_TARGETS)
15248 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
15250 (libgomp-test-support.exp): New rule.
15251 (all-local): Depend on it.
15252 * Makefile.in: Regenerate.
15253 * testsuite/Makefile.in: Regenerate.
15254 * config.h.in: Likewise.
15255 * configure: Likewise.
15256 * configure.tgt: Harden shell syntax.
15257 * env.c: Include "oacc-int.h".
15258 (parse_acc_device_type): New function.
15259 (gomp_debug_var, goacc_device_type, goacc_device_num): New
15261 (initialize_env): Initialize those. Call
15262 goacc_runtime_initialize.
15263 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
15264 (gomp_fatal): Call gomp_vfatal.
15265 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
15266 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
15267 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
15268 (splay_tree_node, splay_tree, splay_tree_key)
15269 (struct target_mem_desc, struct splay_tree_key_s)
15270 (struct gomp_memory_mapping, struct acc_dispatch_t)
15271 (struct gomp_device_descr, gomp_acc_insert_pointer)
15272 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
15273 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
15274 (gomp_free_memmap, gomp_fini_device): New declarations.
15275 (gomp_vdebug, gomp_debug): New macros.
15276 Include "splay-tree.h".
15277 * libgomp.map (OACC_2.0): New symbol version. Use for
15278 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
15279 acc_set_device_type_h_, acc_get_device_type,
15280 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
15281 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
15282 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
15283 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
15284 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
15285 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
15286 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
15287 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
15288 acc_copyin_array_h_, acc_present_or_copyin,
15289 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
15290 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
15291 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
15292 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
15293 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
15294 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
15295 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
15296 acc_update_device, acc_update_device_32_h_,
15297 acc_update_device_64_h_, acc_update_device_array_h_,
15298 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
15299 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
15300 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
15301 acc_is_present_64_h_, acc_is_present_array_h_,
15302 acc_memcpy_to_device, acc_memcpy_from_device,
15303 acc_get_current_cuda_device, acc_get_current_cuda_context,
15304 acc_get_cuda_stream, acc_set_cuda_stream.
15305 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
15306 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
15307 GOACC_update, GOACC_wait, GOACC_get_thread_num,
15308 GOACC_get_num_threads.
15309 (GOMP_PLUGIN_1.0): New symbol version. Use for
15310 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
15311 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
15312 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
15313 GOMP_PLUGIN_acc_thread.
15314 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
15315 environment variable.
15316 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
15317 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
15318 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
15319 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
15320 (splay_tree_remove): New declarations.
15321 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
15322 (splay_tree_remove, splay_tree_lookup): Move into...
15323 * splay-tree.c: ... this new file.
15324 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
15325 (splay_tree_node, splay_tree, splay_tree_key)
15326 (struct target_mem_desc, struct splay_tree_key_s)
15327 (struct gomp_device_descr): Don't declare.
15328 (num_devices_openmp): New variable.
15329 (gomp_get_num_devices ): Use it.
15330 (gomp_init_targets_once): New function.
15331 (gomp_get_num_devices ): Use it.
15332 (get_kind, gomp_copy_from_async, gomp_free_memmap)
15333 (gomp_fini_device, gomp_register_image_for_device): New functions.
15334 (gomp_map_vars): Add devaddrs parameter.
15335 (gomp_update): Add mm parameter.
15336 (gomp_init_device): Move most of it into...
15337 (gomp_init_tables): ... this new function.
15338 (gomp_register_images_for_device): Remove function.
15339 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
15340 Make them hidden instead of static.
15341 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
15342 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
15343 (GOMP_target_end_data, GOMP_target_update)
15344 (gomp_load_plugin_for_device, gomp_target_init): Update for
15346 * oacc-async.c: New file.
15347 * oacc-cuda.c: Likewise.
15348 * oacc-host.c: Likewise.
15349 * oacc-init.c: Likewise.
15350 * oacc-int.h: Likewise.
15351 * oacc-mem.c: Likewise.
15352 * oacc-parallel.c: Likewise.
15353 * oacc-plugin.c: Likewise.
15354 * oacc-plugin.h: Likewise.
15355 * oacc-ptx.h: Likewise.
15356 * openacc.f90: Likewise.
15357 * openacc.h: Likewise.
15358 * openacc_lib.h: Likewise.
15359 * plugin/plugin-host.c: Likewise.
15360 * plugin/plugin-nvptx.c: Likewise.
15361 * libgomp-plugin.c: Likewise.
15362 * libgomp-plugin.h: Likewise.
15363 * libgomp_target.h: Remove file after merging content into the
15364 former file. Update all users.
15365 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
15366 (offload_targets_s, offload_targets_s_openacc): New variables.
15367 (check_effective_target_openacc_nvidia_accel_present)
15368 (check_effective_target_openacc_nvidia_accel_selected): New
15370 (libgomp_init): Update for OpenACC changes.
15371 * testsuite/libgomp-test-support.exp.in: New file.
15372 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
15373 * testsuite/libgomp.oacc-c/c.exp: Likewise.
15374 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15375 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
15376 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
15377 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
15378 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
15379 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
15380 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
15381 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
15382 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
15383 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
15384 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
15385 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
15386 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
15387 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
15388 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
15389 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
15390 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
15391 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
15392 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
15393 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
15394 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
15395 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
15396 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15397 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
15398 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
15399 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
15400 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
15401 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
15402 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15403 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
15404 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
15405 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
15406 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
15407 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15408 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
15409 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15410 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
15411 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
15412 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
15413 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
15414 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15415 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15416 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15417 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
15418 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15419 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15420 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15421 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15422 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15423 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
15424 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15425 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15426 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15427 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15428 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15429 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15430 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15431 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
15432 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
15433 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
15434 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15435 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15436 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15437 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
15438 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
15439 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15440 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15441 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15442 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
15443 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15444 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15445 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15446 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
15447 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
15448 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15449 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15450 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
15451 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
15452 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
15453 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
15454 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15455 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15456 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15457 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
15458 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
15459 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15460 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15461 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
15462 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
15463 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
15464 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
15465 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15466 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15467 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15468 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15469 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
15470 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15471 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15472 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
15473 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
15474 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
15475 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15476 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
15477 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
15478 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
15479 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
15480 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
15481 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15482 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
15483 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
15484 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15485 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
15486 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
15487 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
15488 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
15489 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
15490 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
15491 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
15492 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
15493 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
15494 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
15495 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
15496 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
15497 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
15498 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
15499 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
15500 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
15501 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
15502 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
15503 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
15504 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15505 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
15506 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
15507 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
15508 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
15509 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
15510 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
15511 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
15513 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
15514 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
15515 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
15516 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
15517 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
15518 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
15519 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
15520 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
15521 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
15522 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
15523 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
15524 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
15525 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
15526 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
15527 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
15528 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
15529 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
15530 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
15531 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
15532 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
15533 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
15534 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
15535 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
15536 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
15537 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
15538 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
15539 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15540 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15541 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
15542 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
15543 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
15544 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
15545 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
15546 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15547 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
15548 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
15549 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
15550 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
15551 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
15552 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
15553 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
15554 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
15555 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
15556 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
15557 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
15558 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
15559 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
15560 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
15561 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
15562 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
15563 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
15564 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
15565 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
15566 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
15567 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
15568 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
15569 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
15570 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
15571 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
15572 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
15574 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
15575 Julian Brown <julian@codesourcery.com>
15576 David Malcolm <dmalcolm@redhat.com>
15578 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
15579 to "GNU Offloading and Multi Processing Runtime Library". Change
15581 * configure: Regenerate.
15582 * libgomp.texi: Update.
15584 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
15586 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
15588 * configure: Regenerate.
15590 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
15591 "intelmic" in $offload_targets.
15593 2015-01-05 Jakub Jelinek <jakub@redhat.com>
15595 Update copyright years.
15597 * libgomp.texi: Bump @copying's copyright year.
15599 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15601 * testsuite/lib/libgomp.exp: Load target-utils.exp.
15602 Move load of target-supports.exp earlier.
15604 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
15606 * testsuite/libgomp.c/target-9.c: New test.
15608 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
15610 * config.h.in: Regenerate.
15611 * configure: Regenerate.
15612 * configure.ac: Add GCC_CHECK_EMUTLS.
15613 * libgomp.h: Add check for USE_EMUTLS: this case
15614 is equal to HAVE_TLS.
15615 * team.c: Likewise.
15617 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
15619 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
15621 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
15622 Ilya Verbin <ilya.verbin@intel.com>
15624 * testsuite/libgomp.c/target-critical-1.c: New test.
15626 2014-11-26 Jakub Jelinek <jakub@redhat.com>
15628 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
15629 to dg-options unless expensive testing is on.
15630 (TESTITERS): Define to N if not defined.
15631 (main): Use TESTITERS instead of N.
15632 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
15633 dg-additional-options depending on whether expensive testing is on.
15634 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
15635 Decrease N to 100000 and CHUNKSZ to 10000.
15637 2014-11-24 Jakub Jelinek <jakub@redhat.com>
15640 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
15641 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
15643 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
15645 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
15647 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
15650 * configure: Regenerated.
15652 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
15654 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
15655 vect_simd_clones effective target.
15656 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
15658 2014-11-14 Jakub Jelinek <jakub@redhat.com>
15660 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
15661 of 32 as block_size.
15662 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
15663 instead of 32 as block_size.
15665 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
15666 Ilya Verbin <ilya.verbin@intel.com>
15668 * Makefile.in: Regenerate.
15669 * configure: Regenerate.
15670 * configure.ac: Set up offload_additional_options,
15671 offload_additional_lib_paths and offload_targets.
15672 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
15673 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
15674 * testsuite/Makefile.in: Regenerate.
15675 * testsuite/lib/libgomp.exp (libgomp_init): Append
15676 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
15677 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
15678 build directory to LD_LIBRARY_PATH for intelmic offload targets.
15680 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
15681 Ilya Verbin <ilya.verbin@intel.com>
15682 Kirill Yukhin <kirill.yukhin@intel.com>
15683 Ilya Tocar <ilya.tocar@intel.com>
15685 * testsuite/lib/libgomp.exp
15686 (check_effective_target_offload_device): New.
15687 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
15688 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
15689 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
15690 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
15691 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
15692 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
15693 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
15694 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
15695 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
15696 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
15697 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
15698 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
15699 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
15700 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
15701 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
15702 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
15703 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
15704 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
15705 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
15706 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
15707 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
15708 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
15709 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
15710 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
15711 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
15712 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
15713 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
15714 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
15715 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
15716 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
15717 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
15718 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
15719 * testsuite/libgomp.c/target-7.c: Fix test.
15720 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
15721 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
15722 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
15723 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
15724 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
15725 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
15726 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
15727 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
15728 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
15729 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
15730 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
15731 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
15732 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
15733 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
15734 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
15735 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
15736 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
15737 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
15738 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
15739 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
15740 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
15741 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
15742 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
15743 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
15744 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
15745 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
15746 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
15747 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
15748 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
15749 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
15750 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
15752 2014-11-13 Jakub Jelinek <jakub@redhat.com>
15753 Ilya Verbin <ilya.verbin@intel.com>
15754 Thomas Schwinge <thomas@codesourcery.com>
15755 Andrey Turetskiy <andrey.turetskiy@intel.com>
15757 * libgomp.map (GOMP_4.0.1): New symbol version.
15758 Add GOMP_offload_register.
15759 * libgomp_target.h: New file.
15760 * splay-tree.h: New file.
15761 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
15762 (gomp_target_init): New forward declaration.
15763 (gomp_is_initialized): New static variable.
15764 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
15765 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
15767 (offload_images, num_offload_images, devices, num_devices): New static
15769 (splay_compare): New static function.
15770 (struct gomp_device_descr): New structure.
15771 (gomp_get_num_devices): Call gomp_target_init.
15772 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
15773 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
15774 (GOMP_offload_register): New function.
15775 (GOMP_target): Arrange for host callback to be performed in a separate
15776 initial thread and contention group, inheriting ICVs from
15777 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
15778 Add device initialization and lookup for target function in splay tree.
15779 (GOMP_target_data): Add device initialization and call gomp_map_vars.
15780 (GOMP_target_end_data): Call gomp_unmap_vars.
15781 (GOMP_target_update): Add device initialization and call gomp_update.
15782 (gomp_load_plugin_for_device, gomp_register_images_for_device)
15783 (gomp_target_init): New static functions.
15785 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
15786 Thomas Schwinge <thomas@codesourcery.com>
15787 Ilya Verbin <ilya.verbin@intel.com>
15788 Andrey Turetskiy <andrey.turetskiy@intel.com>
15790 * config.h.in: Regenerate.
15791 * configure: Regenerate.
15792 * configure.ac: Check for libdl, required for plugin support.
15793 (PLUGIN_SUPPORT): Define if plugins are supported.
15794 (enable_offload_targets): Support Intel MIC targets.
15795 (OFFLOAD_TARGETS): List of target names suitable for offloading.
15797 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15800 * configure: Regenerate.
15802 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15804 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
15806 2014-10-06 Marek Polacek <polacek@redhat.com>
15808 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
15809 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
15810 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
15811 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
15813 2014-10-06 Marek Polacek <polacek@redhat.com>
15815 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
15816 * testsuite/libgomp.c/nqueens-1.c: Likewise.
15817 * testsuite/libgomp.c/pr26943-3.c: Likewise.
15818 * testsuite/libgomp.c/pr26943-4.c: Likewise.
15819 * testsuite/libgomp.c/pr36802-2.c: Likewise.
15820 * testsuite/libgomp.c/pr36802-3.c: Likewise.
15821 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
15822 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
15823 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
15824 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
15825 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
15826 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
15827 * testsuite/libgomp.c/omp-single-1.c: Likewise.
15828 * testsuite/libgomp.c/omp-single-2.c: Likewise.
15829 * testsuite/libgomp.c/omp_matvec.c: Likewise.
15830 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
15831 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
15832 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
15835 2014-10-03 Jakub Jelinek <jakub@redhat.com>
15838 * testsuite/libgomp.c/pr61200.c: New test.
15840 2014-09-18 Jakub Jelinek <jakub@redhat.com>
15843 * testsuite/libgomp.c++/pr63248.C: New test.
15845 2014-08-04 Jakub Jelinek <jakub@redhat.com>
15847 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
15848 is not zero, but taskgroup->children is NULL and there are
15849 any task->children, schedule those instead of waiting.
15850 * testsuite/libgomp.c/depend-6.c: New test.
15851 * testsuite/libgomp.c/depend-7.c: New test.
15852 * testsuite/libgomp.c/depend-8.c: New test.
15853 * testsuite/libgomp.c/depend-9.c: New test.
15854 * testsuite/libgomp.c/depend-10.c: New test.
15856 2014-08-01 Jakub Jelinek <jakub@redhat.com>
15858 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
15859 (struct gomp_taskwait): New type.
15860 (struct gomp_task): Add taskwait and parent_depends_on, remove
15861 in_taskwait and taskwait_sem fields.
15862 (gomp_finish_task): Don't destroy taskwait_sem.
15863 * task.c (gomp_init_task): Don't init in_taskwait, instead init
15864 taskwait and parent_depends_on.
15865 (GOMP_task): For if (0) tasks with depend clause that depend on
15866 earlier tasks don't defer them, instead call
15867 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
15868 Initialize redundant_out field, for redundant out entries just
15869 move them at the end of linked list instead of removing them
15870 completely, and set redundant_out flag instead of redundant.
15871 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
15873 (gomp_task_run_post_handle_dependers): If parent is in
15874 gomp_task_maybe_wait_for_dependencies and newly runnable task
15875 is not parent_depends_on, queue it in parent->children linked
15876 list after all runnable tasks with parent_depends_on set.
15877 Adjust for addition of taskwait indirection.
15878 (gomp_task_run_post_remove_parent): If parent is in
15879 gomp_task_maybe_wait_for_dependencies and task to be removed
15880 is parent_depends_on, decrement n_depend and if needed awake
15881 parent. Adjust for addition of taskwait indirection.
15882 (GOMP_taskwait): Adjust for addition of taskwait indirection.
15883 (gomp_task_maybe_wait_for_dependencies): New function.
15884 * testsuite/libgomp.c/depend-5.c: New test.
15886 2014-07-13 Tobias Burnus <burnus@net-b.de>
15888 * testsuite/libgomp.fortran/pr34020.f90: Make compile
15889 with TS 18508/Fortran 2015.
15891 2014-07-06 Marek Polacek <polacek@redhat.com>
15894 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
15896 2014-07-03 Jakub Jelinek <jakub@redhat.com>
15898 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
15899 matches regex $lang_source_re, add $lang_include_flags to options.
15900 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
15901 * testsuite/libgomp.c++/c++.exp: Likewise.
15902 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
15903 and lang_include_flags instead of adding -fintrinsic-modules-path= to
15905 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
15907 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
15909 * testsuite/libgomp.fortran/fortran.exp: Explain
15910 gfortran-dg-runtest usage.
15912 2014-06-25 Jakub Jelinek <jakub@redhat.com>
15914 * testsuite/libgomp.fortran/simd5.f90: New test.
15915 * testsuite/libgomp.fortran/simd6.f90: New test.
15916 * testsuite/libgomp.fortran/simd7.f90: New test.
15918 2014-06-24 Jakub Jelinek <jakub@redhat.com>
15920 * testsuite/libgomp.c/for-2.c: Define SC to static for
15921 #pragma omp for simd testing.
15922 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
15923 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
15925 * testsuite/libgomp.c/simd-14.c: New test.
15926 * testsuite/libgomp.c/simd-15.c: New test.
15927 * testsuite/libgomp.c/simd-16.c: New test.
15928 * testsuite/libgomp.c/simd-17.c: New test.
15929 * testsuite/libgomp.c++/for-10.C: Define SC to static for
15930 #pragma omp for simd testing.
15931 * testsuite/libgomp.c++/simd10.C: New test.
15932 * testsuite/libgomp.c++/simd11.C: New test.
15933 * testsuite/libgomp.c++/simd12.C: New test.
15934 * testsuite/libgomp.c++/simd13.C: New test.
15936 * testsuite/libgomp.fortran/aligned1.f03: New test.
15937 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
15938 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
15939 tasks with !$omp parallel !$omp single.
15940 * testsuite/libgomp.fortran/target8.f90: New test.
15941 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
15942 not to use trim in the combiner, instead call elemental function.
15943 (fn): New elemental function.
15944 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
15946 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
15948 * testsuite/libgomp.fortran/udr12.f90: New test.
15949 * testsuite/libgomp.fortran/udr13.f90: New test.
15950 * testsuite/libgomp.fortran/udr14.f90: New test.
15951 * testsuite/libgomp.fortran/udr15.f90: New test.
15953 2014-06-18 Jakub Jelinek <jakub@redhat.com>
15955 * omp_lib.f90.in (openmp_version): Set to 201307.
15956 * omp_lib.h.in (openmp_version): Likewise.
15957 * testsuite/libgomp.c/target-8.c: New test.
15958 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
15959 and inbranch clauses.
15960 * testsuite/libgomp.fortran/depend-3.f90: New test.
15961 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
15963 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
15964 * testsuite/libgomp.fortran/target1.f90: New test.
15965 * testsuite/libgomp.fortran/target2.f90: New test.
15966 * testsuite/libgomp.fortran/target3.f90: New test.
15967 * testsuite/libgomp.fortran/target4.f90: New test.
15968 * testsuite/libgomp.fortran/target5.f90: New test.
15969 * testsuite/libgomp.fortran/target6.f90: New test.
15970 * testsuite/libgomp.fortran/target7.f90: New test.
15972 2014-06-10 Jakub Jelinek <jakub@redhat.com>
15975 * testsuite/libgomp.fortran/allocatable9.f90: New test.
15976 * testsuite/libgomp.fortran/allocatable10.f90: New test.
15977 * testsuite/libgomp.fortran/allocatable11.f90: New test.
15978 * testsuite/libgomp.fortran/allocatable12.f90: New test.
15979 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
15980 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
15981 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
15982 * testsuite/libgomp.fortran/associate1.f90: New test.
15983 * testsuite/libgomp.fortran/associate2.f90: New test.
15984 * testsuite/libgomp.fortran/procptr1.f90: New test.
15986 2014-06-06 Jakub Jelinek <jakub@redhat.com>
15988 * testsuite/libgomp.fortran/simd1.f90: New test.
15989 * testsuite/libgomp.fortran/udr1.f90: New test.
15990 * testsuite/libgomp.fortran/udr2.f90: New test.
15991 * testsuite/libgomp.fortran/udr3.f90: New test.
15992 * testsuite/libgomp.fortran/udr4.f90: New test.
15993 * testsuite/libgomp.fortran/udr5.f90: New test.
15994 * testsuite/libgomp.fortran/udr6.f90: New test.
15995 * testsuite/libgomp.fortran/udr7.f90: New test.
15996 * testsuite/libgomp.fortran/udr8.f90: New test.
15997 * testsuite/libgomp.fortran/udr9.f90: New test.
15998 * testsuite/libgomp.fortran/udr10.f90: New test.
15999 * testsuite/libgomp.fortran/udr11.f90: New test.
16001 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
16003 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
16004 vect_simd_clones effective target.
16005 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
16007 2014-05-21 Jakub Jelinek <jakub@redhat.com>
16009 PR middle-end/61252
16010 * testsuite/libgomp.c++/simd-9.C: New test.
16012 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
16014 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
16015 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
16016 texts according to their @menu entry positions.
16018 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16020 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
16021 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
16022 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
16023 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
16024 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
16025 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
16026 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
16027 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
16028 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
16029 * testsuite/libgomp.fortran/depend-1.f90: New test.
16030 * testsuite/libgomp.fortran/depend-2.f90: New test.
16031 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
16032 * testsuite/libgomp.fortran/simd1.f90: New test.
16033 * testsuite/libgomp.fortran/simd2.f90: New test.
16034 * testsuite/libgomp.fortran/simd3.f90: New test.
16035 * testsuite/libgomp.fortran/simd4.f90: New test.
16036 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
16038 2014-05-02 Jakub Jelinek <jakub@redhat.com>
16040 * testsuite/libgomp.c/simd-10.c: New test.
16041 * testsuite/libgomp.c/simd-11.c: New test.
16042 * testsuite/libgomp.c/simd-12.c: New test.
16043 * testsuite/libgomp.c/simd-13.c: New test.
16045 2014-04-24 Jakub Jelinek <jakub@redhat.com>
16047 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
16048 atomic type clauses in any order and optional comma in between.
16049 * testsuite/libgomp.c++/atomic-15.C: Likewise.
16050 * testsuite/libgomp.c/atomic-17.c: Likewise.
16052 * testsuite/libgomp.c/simd-7.c: New test.
16053 * testsuite/libgomp.c/simd-8.c: New test.
16054 * testsuite/libgomp.c/simd-9.c: New test.
16055 * testsuite/libgomp.c/loop-16.c: New test.
16057 2014-04-02 Richard Henderson <rth@redhat.com>
16059 * config/linux/futex.h (futex_wait): Get error value from errno.
16060 (futex_wake): Likewise.
16062 2014-03-25 Jakub Jelinek <jakub@redhat.com>
16065 * testsuite/libgomp.c++/udr-11.C: New test.
16066 * testsuite/libgomp.c++/udr-12.C: New test.
16067 * testsuite/libgomp.c++/udr-13.C: New test.
16068 * testsuite/libgomp.c++/udr-14.C: New test.
16069 * testsuite/libgomp.c++/udr-15.C: New test.
16070 * testsuite/libgomp.c++/udr-16.C: New test.
16071 * testsuite/libgomp.c++/udr-17.C: New test.
16072 * testsuite/libgomp.c++/udr-18.C: New test.
16073 * testsuite/libgomp.c++/udr-19.C: New test.
16075 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
16077 Update copyright years
16079 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
16081 * hashtab.h: Use the standard form for the copyright notice.
16083 2014-01-02 Tobias Burnus <burnus@net-b.de>
16085 * libgomp.texi: Bump @copying's copyright year.
16087 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
16089 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
16090 alloca () with __builtin_alloca ().
16091 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
16092 * testsuite/libgomp.c/lock-3.c: Likewise.
16093 * testsuite/libgomp.c/pr48591.c: Likewise.
16095 2013-12-17 Jakub Jelinek <jakub@redhat.com>
16098 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
16101 2013-12-16 Jakub Jelinek <jakub@redhat.com>
16104 * testsuite/libgomp.c/pr58756.c: New test.
16106 2013-12-12 Jakub Jelinek <jakub@redhat.com>
16109 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
16112 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
16114 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
16116 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
16117 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
16118 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
16119 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
16122 * libgomp_g.h: Include <stddef.h> for size_t.
16124 * libgomp.spec.in: Update comment about libgomp's dependencies.
16125 * configure.ac: Likewise.
16126 * configure: Regenerate.
16128 2013-10-16 Tobias Burnus <burnus@net-b.de>
16130 * libgomp.texi: (Runtime Library Routines): Update references for
16131 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
16132 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
16133 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
16134 (Environment Variables): Update references for OpenMP 4.0. Add
16135 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
16136 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
16139 2013-10-14 Jakub Jelinek <jakub@redhat.com>
16141 * env.c (parse_bind_var): Initialize value to avoid
16142 (false positive) warning.
16144 2013-10-12 Jakub Jelinek <jakub@redhat.com>
16147 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
16149 (gomp_init_num_threads): Move i variable declaration into
16150 #ifdef CPU_ALLOC_SIZE block.
16151 * config/linux/affinity.c (gomp_affinity_init_level): Test
16152 gomp_places_list_len == 0 rather than gomp_places_list == 0
16153 when checking for topology reading error.
16154 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
16155 * env.c (parse_affinity): Add ignore argument, if true, don't populate
16156 gomp_places_list, only parse env var and always return false.
16157 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
16158 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
16159 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
16160 and either of these variables were parsed correctly into a places
16163 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
16164 Jakub Jelinek <jakub@redhat.com>
16166 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
16167 of 5 loopfn matches.
16168 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
16169 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
16170 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
16171 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
16172 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
16173 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16174 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16175 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
16177 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
16179 * Makefile.am (omp_lib.mod): Streamline rule.
16180 * Makefile.in: Regenerate.
16182 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
16185 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
16186 * testsuite/libgomp.fortran/lib1.f90: Likewise.
16187 * testsuite/libgomp.fortran/lib2.f: Likewise.
16188 * testsuite/libgomp.fortran/lib3.f: Likewise.
16190 * configure.ac: Typo fix.
16191 * configure: Regenerate.
16193 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
16194 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16196 * omp.h.in: Don't touch the user's namespace.
16198 2013-10-11 Jakub Jelinek <jakub@redhat.com>
16199 Tobias Burnus <burnus@net-b.de>
16200 Richard Henderson <rth@redhat.com>
16202 * target.c: New file.
16203 * Makefile.am (libgomp_la_SOURCES): Add target.c.
16204 * Makefile.in: Regenerated.
16205 * libgomp_g.h (GOMP_task): Add depend argument.
16206 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
16207 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
16208 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
16209 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
16210 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
16211 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
16212 GOMP_taskgroup_start, GOMP_taskgroup_end,
16213 GOMP_parallel_sections): New prototypes.
16214 * fortran.c (omp_is_initial_device): Add ialias_redirect.
16215 (omp_is_initial_device_): New function.
16216 (ULP, STR1, STR2, ialias_redirect): Removed.
16217 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
16218 omp_set_default_device_8_, omp_get_default_device_,
16219 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
16221 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
16222 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
16223 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
16225 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
16226 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
16227 omp_set_default_device, omp_set_default_device_,
16228 omp_set_default_device_8_, omp_get_default_device,
16229 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
16230 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
16231 omp_get_team_num_): Export @@OMP_4.0.
16232 * team.c (struct gomp_thread_start_data): Add place field.
16233 (gomp_thread_start): Clear thr->thread_pool and
16234 thr->task before returning. Use gomp_team_barrier_wait_final
16235 instead of gomp_team_barrier_wait. Initialize thr->place.
16236 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
16237 team_cancelled and task_queued_count fields.
16238 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
16239 before calling pthread_exit.
16240 (gomp_free_thread): No longer static. Use
16241 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
16242 (gomp_team_start): Add flags argument. Set
16243 thr->thread_pool->threads_busy to nthreads immediately after creating
16244 new pool. Use gomp_managed_threads_lock instead of
16245 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
16246 (gomp_team_end): Use gomp_managed_threads_lock instead of
16247 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
16248 of gomp_team_barrier_wait. If team->team_cancelled, call
16249 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
16250 rather than thr->ts.work_share.
16251 (initialize_team): Don't call gomp_sem_init here.
16252 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
16254 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
16255 * env.c (gomp_global_icv): Add default_device_var, target_data and
16256 bind_var initializers.
16257 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
16258 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
16259 gomp_places_list_len): New variables.
16260 (parse_bind_var, parse_one_place, parse_places_var): New functions.
16261 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
16263 (gomp_cancel_var): New global variable.
16264 (parse_int): New function.
16265 (handle_omp_display_env): New function.
16266 (initialize_env): Use it. Initialize default_device_var.
16267 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
16268 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
16269 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
16270 been successfully parsed (and call gomp_init_affinity in that case).
16271 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16272 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16273 omp_get_team_num, omp_is_initial_device): New functions.
16274 * libgomp.h: Include stdlib.h.
16275 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
16277 (struct target_mem_desc): Forward declare.
16278 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
16279 and thread_limit_var fields.
16280 (gomp_get_num_devices): New prototype.
16281 (gomp_cancel_var): New extern decl.
16282 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
16283 team_cancelled and task_queued_count fields. Add comments about
16284 task_{,queued_,running_}count.
16285 (gomp_cancel_kind): New enum.
16286 (gomp_work_share_end_cancel): New prototype.
16287 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
16288 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
16290 (struct gomp_taskgroup): New type.
16291 (struct gomp_task_depend_entry,
16292 struct gomp_dependers_vec): New types.
16293 (gomp_finish_task): Free depend_hash if non-NULL.
16294 (struct gomp_team_state): Add place_partition_off
16295 and place_partition_len fields.
16296 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
16297 gomp_places_list_len): New extern decls.
16298 (struct gomp_thread): Add place field.
16299 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
16300 (gomp_init_thread_affinity): Add place argument.
16301 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16302 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16303 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16304 gomp_affinity_init_level, gomp_affinity_print_place): New
16306 (gomp_team_start): Add flags argument.
16307 (gomp_thread_limit_var, gomp_remaining_threads_count,
16308 gomp_remaining_threads_lock): Remove.
16309 (gomp_managed_threads_lock): New variable.
16310 (struct gomp_thread_pool): Add threads_busy field.
16311 (gomp_free_thread): New prototype.
16312 * task.c: Include hashtab.h.
16313 (hash_entry_type): New typedef.
16314 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
16315 (gomp_init_task): Clear dependers, depend_hash, depend_count,
16316 copy_ctors_done and taskgroup fields.
16317 (GOMP_task): Add depend argument, handle depend clauses. If
16318 gomp_team_barrier_cancelled or if it's taskgroup has been
16319 cancelled, don't queue or start new tasks. Set copy_ctors_done
16320 field if needed. Initialize taskgroup field. If copy_ctors_done
16321 and already cancelled, don't discard the task. If taskgroup is
16322 non-NULL, enqueue the task into taskgroup queue. Increment
16323 num_children field in taskgroup. Increment task_queued_count.
16324 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
16325 gomp_task_run_post_remove_taskgroup): New inline functions.
16326 (gomp_task_run_post_handle_depend_hash,
16327 gomp_task_run_post_handle_dependers,
16328 gomp_task_run_post_handle_depend): New functions.
16329 (GOMP_taskwait): Use them. If more than one new tasks
16330 have been queued, wake other threads if needed.
16331 (gomp_barrier_handle_tasks): Likewise. If
16332 gomp_team_barrier_cancelled, don't start any new tasks, just free
16334 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
16336 (omp_proc_bind_kind, omp_proc_bind_false,
16337 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
16338 omp_proc_bind_spread): New params.
16339 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16340 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16341 omp_get_team_num, omp_is_initial_device): New interfaces.
16342 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
16343 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
16344 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
16345 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
16346 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
16347 useless use omp_lib_kinds.
16348 * omp.h.in (omp_proc_bind_t): New typedef.
16349 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16350 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16351 omp_get_team_num, omp_is_initial_device): New prototypes.
16352 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
16353 through to gomp_team_start.
16354 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
16355 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
16356 Adjust gomp_parallel_loop_start callers.
16357 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
16358 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
16359 GOMP_loop_end_cancel): New functions.
16360 (GOMP_parallel_end): Add ialias_redirect.
16361 * hashtab.h: New file.
16362 * libgomp.texi (Environment Variables): Minor cleanup,
16363 update section refs to OpenMP 4.0rc2.
16364 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
16365 environment variables.
16366 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
16367 team->work_shares_to_free to thr->ts.work_share before calling
16369 (gomp_work_share_end_cancel): New function.
16370 * config/linux/proc.c: Include errno.h.
16371 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
16372 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
16373 sizeof (cpu_set_t) to determine number of iterations. Fix up check
16374 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
16375 gomp_cpuset_size is sizeof (cpu_set_t).
16376 (gomp_init_num_threads): Initialize gomp_cpuset_size,
16377 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
16378 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
16379 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
16380 contain any logical CPUs.
16381 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
16382 is NULL. Use gomp_cpusetp instead of &cpuset and pass
16383 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
16384 pthread_getaffinity_np. Check gomp_places_list instead of
16385 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
16386 * config/linux/bar.c (gomp_barrier_wait_end,
16387 gomp_barrier_wait_last): Use BAR_* defines.
16388 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
16389 from state where needed. Set work_share_cancelled to 0 on last
16391 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
16392 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
16394 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
16395 Add cpusetsize argument.
16396 (gomp_cpuset_size, gomp_cpusetp): Declare.
16397 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
16398 (affinity_counter): Remove.
16399 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
16400 if CPU_ALLOC_SIZE isn't defined.
16401 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
16402 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
16403 bind current thread to the first place.
16404 (gomp_init_thread_affinity): Rewritten. Add place argument, just
16405 pthread_setaffinity_np to gomp_places_list[place].
16406 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16407 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16408 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16409 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
16410 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
16411 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
16412 (gomp_barrier_t): Add awaited_final field.
16413 (gomp_barrier_init): Initialize awaited_final field.
16414 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
16415 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
16417 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
16419 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
16420 gomp_team_barrier_cancelled): New inline functions.
16421 (gomp_barrier_last_thread,
16422 gomp_team_barrier_set_task_pending,
16423 gomp_team_barrier_clear_task_pending,
16424 gomp_team_barrier_set_waiting_for_tasks,
16425 gomp_team_barrier_waiting_for_tasks,
16426 gomp_team_barrier_done): Use BAR_* defines.
16427 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
16428 (gomp_barrier_wait_end): Use BAR_* defines.
16429 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
16430 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
16432 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
16433 gomp_team_barrier_cancel): New functions.
16434 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
16436 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16437 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16438 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16439 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
16440 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
16441 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
16442 (gomp_barrier_t): Add cancellable field.
16443 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
16444 gomp_team_barrier_cancel): New prototypes.
16445 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
16446 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
16447 gomp_team_barrier_cancelled): New inline functions.
16448 (gomp_barrier_wait_start, gomp_barrier_last_thread,
16449 gomp_team_barrier_set_task_pending,
16450 gomp_team_barrier_clear_task_pending,
16451 gomp_team_barrier_set_waiting_for_tasks,
16452 gomp_team_barrier_waiting_for_tasks,
16453 gomp_team_barrier_done): Use BAR_* defines.
16454 * barrier.c (GOMP_barrier_cancel): New function.
16455 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
16456 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
16457 omp_proc_bind_spread): New params.
16458 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16459 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16460 omp_get_team_num, omp_is_initial_device): New externals.
16461 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
16463 (gomp_resolve_num_threads): Adjust for thread_limit now being in
16464 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
16465 infinity. If not nested, just return minimum of max_num_threads
16466 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
16467 to the returned value. Otherwise, don't update atomically
16468 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
16469 (GOMP_parallel_end): Adjust for thread_limit now being in
16470 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
16471 infinity. Adjust threads_busy in the pool rather than
16472 gomp_remaining_threads_count. Remember team->nthreads and call
16473 gomp_team_end before adjusting threads_busy, if not nested
16474 afterwards, just set it to 1 non-atomically. Add ialias.
16475 (GOMP_parallel_start): Adjust gomp_team_start caller.
16476 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
16477 * testsuite/libgomp.c/affinity-1.c: New test.
16478 * testsuite/libgomp.c/atomic-15.c: New test.
16479 * testsuite/libgomp.c/atomic-16.c: New test.
16480 * testsuite/libgomp.c/atomic-17.c: New test.
16481 * testsuite/libgomp.c/cancel-for-1.c: New test.
16482 * testsuite/libgomp.c/cancel-for-2.c: New test.
16483 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
16484 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
16485 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
16486 * testsuite/libgomp.c/cancel-sections-1.c: New test.
16487 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
16488 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
16489 * testsuite/libgomp.c/depend-1.c: New test.
16490 * testsuite/libgomp.c/depend-2.c: New test.
16491 * testsuite/libgomp.c/depend-3.c: New test.
16492 * testsuite/libgomp.c/depend-4.c: New test.
16493 * testsuite/libgomp.c/for-1.c: New test.
16494 * testsuite/libgomp.c/for-1.h: New file.
16495 * testsuite/libgomp.c/for-2.c: New test.
16496 * testsuite/libgomp.c/for-2.h: New file.
16497 * testsuite/libgomp.c/for-3.c: New test.
16498 * testsuite/libgomp.c/pr58392.c: New test.
16499 * testsuite/libgomp.c/simd-1.c: New test.
16500 * testsuite/libgomp.c/simd-2.c: New test.
16501 * testsuite/libgomp.c/simd-3.c: New test.
16502 * testsuite/libgomp.c/simd-4.c: New test.
16503 * testsuite/libgomp.c/simd-5.c: New test.
16504 * testsuite/libgomp.c/simd-6.c: New test.
16505 * testsuite/libgomp.c/target-1.c: New test.
16506 * testsuite/libgomp.c/target-2.c: New test.
16507 * testsuite/libgomp.c/target-3.c: New test.
16508 * testsuite/libgomp.c/target-4.c: New test.
16509 * testsuite/libgomp.c/target-5.c: New test.
16510 * testsuite/libgomp.c/target-6.c: New test.
16511 * testsuite/libgomp.c/target-7.c: New test.
16512 * testsuite/libgomp.c/taskgroup-1.c: New test.
16513 * testsuite/libgomp.c/thread-limit-1.c: New test.
16514 * testsuite/libgomp.c/thread-limit-2.c: New test.
16515 * testsuite/libgomp.c/thread-limit-3.c: New test.
16516 * testsuite/libgomp.c/udr-1.c: New test.
16517 * testsuite/libgomp.c/udr-2.c: New test.
16518 * testsuite/libgomp.c/udr-3.c: New test.
16519 * testsuite/libgomp.c++/affinity-1.C: New test.
16520 * testsuite/libgomp.c++/atomic-10.C: New test.
16521 * testsuite/libgomp.c++/atomic-11.C: New test.
16522 * testsuite/libgomp.c++/atomic-12.C: New test.
16523 * testsuite/libgomp.c++/atomic-13.C: New test.
16524 * testsuite/libgomp.c++/atomic-14.C: New test.
16525 * testsuite/libgomp.c++/atomic-15.C: New test.
16526 * testsuite/libgomp.c++/cancel-for-1.C: New test.
16527 * testsuite/libgomp.c++/cancel-for-2.C: New test.
16528 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
16529 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
16530 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
16531 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
16532 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
16533 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
16534 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
16535 * testsuite/libgomp.c++/cancel-test.h: New file.
16536 * testsuite/libgomp.c++/for-9.C: New test.
16537 * testsuite/libgomp.c++/for-10.C: New test.
16538 * testsuite/libgomp.c++/for-11.C: New test.
16539 * testsuite/libgomp.c++/simd-1.C: New test.
16540 * testsuite/libgomp.c++/simd-2.C: New test.
16541 * testsuite/libgomp.c++/simd-3.C: New test.
16542 * testsuite/libgomp.c++/simd-4.C: New test.
16543 * testsuite/libgomp.c++/simd-5.C: New test.
16544 * testsuite/libgomp.c++/simd-6.C: New test.
16545 * testsuite/libgomp.c++/simd-7.C: New test.
16546 * testsuite/libgomp.c++/simd-8.C: New test.
16547 * testsuite/libgomp.c++/target-1.C: New test.
16548 * testsuite/libgomp.c++/target-2.C: New test.
16549 * testsuite/libgomp.c++/target-2-aux.cc: New file.
16550 * testsuite/libgomp.c++/target-3.C: New test.
16551 * testsuite/libgomp.c++/taskgroup-1.C: New test.
16552 * testsuite/libgomp.c++/udr-1.C: New test.
16553 * testsuite/libgomp.c++/udr-2.C: New test.
16554 * testsuite/libgomp.c++/udr-3.C: New test.
16555 * testsuite/libgomp.c++/udr-4.C: New test.
16556 * testsuite/libgomp.c++/udr-5.C: New test.
16557 * testsuite/libgomp.c++/udr-6.C: New test.
16558 * testsuite/libgomp.c++/udr-7.C: New test.
16559 * testsuite/libgomp.c++/udr-8.C: New test.
16560 * testsuite/libgomp.c++/udr-9.C: New test.
16562 2013-09-20 Jakub Jelinek <jakub@redhat.com>
16565 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
16568 2013-09-20 Alan Modra <amodra@gmail.com>
16570 * configure: Regenerate.
16572 2013-09-19 Jakub Jelinek <jakub@redhat.com>
16574 * testsuite/libgomp.c/sections-2.c: New test.
16576 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
16578 * testsuite/libgomp.fortran/strassen.f90:
16579 Add dg-skip-if aarch64_tiny.
16581 2013-06-20 Iain Sandoe <iain@codesourcery.com>
16582 Cesar Philippidis <cesar@codesourcery.com>
16584 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
16585 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
16586 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
16587 * testsuite/libgomp.fortran/fortran.exp: Likewise.
16588 * testsuite/libgomp.graphite/graphite.exp: Likewise.
16589 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
16590 Use dg-runtest rather than gfortran-dg-runtest.
16592 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
16594 * testsuite/libgomp.c/icv-2.c: Extend current handling of
16595 Linux-based x86 systems to cover all GNU systems.
16596 * testsuite/libgomp.c/lock-3.c: Likewise.
16597 * testsuite/libgomp.c/pr48591.c: Likewise.
16599 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
16601 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
16602 GNU/Hurd, as done for Linux-based systems.
16604 * config/posix/ptrlock.h: Fix comment.
16606 2013-05-27 Tobias Burnus <burnus@net-b.de>
16609 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
16610 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
16611 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
16612 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
16613 omp_destroy_nest_lock): Correct arguments to match the one in
16615 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
16616 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
16617 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
16618 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
16620 2013-05-16 Jakub Jelinek <jakub@redhat.com>
16622 * testsuite/libgomp.c/loop-13.c: New test.
16623 * testsuite/libgomp.c/loop-14.c: New test.
16624 * testsuite/libgomp.c/loop-15.c: New test.
16625 * testsuite/libgomp.c++/loop-13.C: New test.
16626 * testsuite/libgomp.c++/loop-14.C: New test.
16627 * testsuite/libgomp.c++/loop-15.C: New test.
16629 2013-02-06 Jakub Jelinek <jakub@redhat.com>
16631 PR middle-end/56217
16632 * testsuite/libgomp.c++/pr56217.C: New test.
16634 2013-02-01 Alan Modra <amodra@gmail.com>
16636 * task.c (GOMP_task, GOMP_taskwait): Comment.
16638 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
16639 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
16642 * config/linux/wait.h (do_spin): Use atomic load for addr.
16643 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
16644 for intptr and ptrlock.
16645 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
16648 2013-01-22 Alan Modra <amodra@gmail.com>
16652 * task.c (GOMP_task): Revert 2011-12-09 change.
16653 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
16654 barrier to read task->children..
16655 (gomp_barrier_handle_tasks): ..and matching atomic store with
16656 release barrier here when setting parent->children to NULL.
16658 2013-01-16 Jakub Jelinek <jakub@redhat.com>
16659 Tobias Burnus <burnus@net-b.de>
16662 * testsuite/libgomp.fortran/fortran.exp: Use
16663 -fintrinsic-modules-path= instead of
16664 -fintrinsic-modules-path.
16666 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
16668 Update copyright years.
16670 2012-12-19 Tobias Burnus <burnus@net-b.de>
16672 * testsuite/libgomp.fortran/fortran.exp: Set
16673 -fintrinsic-modules-path.
16675 2012-12-19 Tobias Burnus <burnus@net-b.de>
16677 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
16678 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
16680 2012-11-21 Jakub Jelinek <jakub@redhat.com>
16683 * team.c (gomp_free_thread): Decrease gomp_managed_threads
16684 if pool had any threads_used.
16686 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
16688 * testsuite/libgomp.c++/pr24455.C: Use
16689 -Wl,-undefined,dynamic_lookup on darwin.
16691 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
16693 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
16695 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
16697 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
16699 2012-10-23 Ian Bolton <ian.bolton@arm.com>
16700 Jim MacArthur <jim.macarthur@arm.com>
16701 Marcus Shawcroft <marcus.shawcroft@arm.com>
16702 Nigel Stephens <nigel.stephens@arm.com>
16703 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16704 Richard Earnshaw <rearnsha@arm.com>
16705 Sofiane Naci <sofiane.naci@arm.com>
16706 Stephen Thomas <stephen.thomas@arm.com>
16707 Tejas Belagod <tejas.belagod@arm.com>
16708 Yufeng Zhang <yufeng.zhang@arm.com>
16710 * configure.tgt: Add AArch64.
16712 2012-10-04 Jason Merrill <jason@redhat.com>
16714 * testsuite/libgomp.c++/tls-init1.C: New.
16716 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
16718 * configure: Regenerated.
16720 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
16722 * config/linux/mips/futex.h (sys_futex0): Change to static
16723 function with noinline, nomips16 attributes under MIPS16. Adjust
16724 asm statement to place 'li v0,SYS_futex' immediately before
16727 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
16729 * libgomp.texi (Library Index): Renamed from "Index" to prevent
16730 conflict with index.html on case-insensitive file systems.
16732 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
16734 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
16735 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
16737 2012-07-02 Richard Guenther <rguenther@suse.de>
16738 Michael Matz <matz@suse.de>
16739 Tobias Grosser <tobias@grosser.es>
16740 Sebastian Pop <sebpop@gmail.com>
16742 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
16743 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
16744 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16745 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16747 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
16749 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
16751 2012-06-22 Richard Guenther <rguenther@suse.de>
16753 Merge from graphite branch
16754 2012-01-13 Tobias Grosser <tobias@grosser.es>
16756 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
16757 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
16759 2012-06-07 Jakub Jelinek <jakub@redhat.com>
16761 PR middle-end/53580
16762 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
16763 use GOMP_barrier () call instead.
16764 * testsuite/libgomp.c/pr26943-3.c: Likewise.
16765 * testsuite/libgomp.c/pr26943-4.c: Likewise.
16766 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
16767 call GOMP_barrier instead.
16768 * testsuite/libgomp.fortran/vla5.f90: Likewise.
16770 2012-06-06 Jakub Jelinek <jakub@redhat.com>
16773 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
16774 argument to memset call.
16776 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
16778 * configure: Regenerated.
16780 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
16782 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
16784 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
16787 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
16789 2012-03-22 Jakub Jelinek <jakub@redhat.com>
16791 PR middle-end/52547
16792 * testsuite/libgomp.c/pr52547.c: New test.
16794 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16796 * testsuite/lib/libgomp.exp: load fortran-modules.exp
16798 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16800 * configure.tgt (mips-sgi-irix6*): Remove.
16802 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16804 * configure.tgt (alpha*-dec-osf*): Remove.
16806 * config/osf/sem.h: Remove.
16807 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
16809 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
16811 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
16813 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16816 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
16817 Remove ENABLE_SYMVERS_SOL2.
16818 * configure: Regenerate.
16819 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
16820 (PREPROCESS): New variable.
16821 (libgomp.ver): New target.
16822 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
16823 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
16824 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
16826 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
16827 * Makefile.in: Regenerate.
16829 2012-02-14 Walter Lee <walt@tilera.com>
16831 * configure.tgt: Handle tilegx and tilepro.
16832 * config/linux/tile/futex.h: New file.
16834 2012-02-08 Richard Guenther <rguenther@suse.de>
16836 PR tree-optimization/46886
16837 * testsuite/libgomp.c/pr46886.c: New testcase.
16839 2012-01-25 Matthias Klose <doko@ubuntu.com>
16841 * config/linux/arm: Remove empty directory.
16842 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
16844 2011-12-09 Alan Modra <amodra@gmail.com>
16847 * task.c (GOMP_taskwait): Don't access task->children outside of
16848 task_lock mutex region.
16849 (GOMP_task): Likewise.
16851 2011-12-06 Jakub Jelinek <jakub@redhat.com>
16854 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
16856 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
16857 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
16858 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16859 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16860 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
16862 2011-12-02 Alan Modra <amodra@gmail.com>
16864 * config/linux/affinity.c: Use atomic rather than sync builtin.
16865 * config/linux/lock.c: Likewise.
16866 * config/linux/ptrlock.h: Likewise.
16867 * config/linux/ptrlock.c: Likewise.
16868 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
16869 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
16870 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
16871 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
16872 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
16873 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
16874 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
16875 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
16876 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
16877 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
16879 2011-11-30 Alan Modra <amodra@gmail.com>
16882 * config/linux/bar.h: Use atomic rather than sync builtins.
16883 * config/linux/bar.c: Likewise. Add missing acquire
16884 synchronisation on generation field.
16885 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
16888 2011-11-30 Alan Modra <amodra@gmail.com>
16890 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
16891 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
16892 * config/linux/mutex.h: Use atomic rather than sync builtins.
16893 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
16894 * config/linux/omp-lock.h: Comment fix.
16895 * config/linux/arm/mutex.h: Delete.
16896 * config/linux/powerpc/mutex.h: Delete.
16897 * config/linux/ia64/mutex.h: Delete.
16898 * config/linux/mips/mutex.h: Delete.
16900 2011-11-30 Alan Modra <amodra@gmail.com>
16903 * config/linux/sem.h: Rewrite.
16904 * config/linux/sem.c: Rewrite.
16906 2011-11-28 Richard Henderson <rth@redhat.com>
16908 * libgomp.h (enum memmodel): New.
16910 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
16912 * configure: Regenerate.
16914 2011-10-10 Matthias Klose <doko@ubuntu.com>
16916 * config/posix95: Remove empty directory.
16918 2011-08-26 Jakub Jelinek <jakub@redhat.com>
16920 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
16922 2011-08-19 Jakub Jelinek <jakub@redhat.com>
16925 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
16926 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
16928 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16930 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
16932 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16935 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
16937 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
16939 * config/linux/proc.h: New.
16940 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
16941 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
16942 (gomp_init_num_threads): Update call to cpuset_popcount.
16943 (get_num_procs): Ditto.
16944 * config/linux/affinity.c (gomp_init_affinity): Call
16945 gomp_cpuset_popcount.
16947 2011-08-02 Jakub Jelinek <jakub@redhat.com>
16951 * omp.h.in (omp_in_final): New prototype.
16952 * omp_lib.f90.in (omp_in_final): New interface.
16953 (omp_integer_kind, omp_logical_kind): Remove
16954 and replace all its uses in the module with 4.
16955 (openmp_version): Change to 201107.
16956 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
16957 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
16958 kind for the parameters.
16959 (omp_in_final): New external.
16960 (openmp_version): Change to 201107.
16961 * task.c (omp_in_final): New function.
16962 (gomp_init_task): Initialize final_task.
16963 (GOMP_task): Remove unused attribute from flags. Handle final
16965 (GOMP_taskyield): New function.
16966 (omp_in_final): Return true if if (false) or final (true) task
16967 or descendant of final (true).
16968 * fortran.c (omp_in_final_): New function.
16969 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
16970 (GOMP_3.0): Export GOMP_taskyield.
16971 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
16973 (parse_unsigned_long_list): New function.
16974 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
16975 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
16976 even if parse_affinity returned false.
16977 * config/linux/affinity.c (gomp_init_affinity): Handle
16978 gomp_cpu_affinity_len == 0.
16979 * libgomp_g.h (GOMP_taskyield): New prototype.
16980 * libgomp.h (struct gomp_task): Add final_task field.
16981 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
16982 * team.c (gomp_team_start): Override new task's nthreads_var icv
16983 if list form OMP_NUM_THREADS has been used and it has value for
16984 the new nesting level.
16986 * testsuite/libgomp.c/atomic-11.c: New test.
16987 * testsuite/libgomp.c/atomic-12.c: New test.
16988 * testsuite/libgomp.c/atomic-13.c: New test.
16989 * testsuite/libgomp.c/atomic-14.c: New test.
16990 * testsuite/libgomp.c/reduction-6.c: New test.
16991 * testsuite/libgomp.c/task-5.c: New test.
16992 * testsuite/libgomp.c++/atomic-2.C: New test.
16993 * testsuite/libgomp.c++/atomic-3.C: New test.
16994 * testsuite/libgomp.c++/atomic-4.C: New test.
16995 * testsuite/libgomp.c++/atomic-5.C: New test.
16996 * testsuite/libgomp.c++/atomic-6.C: New test.
16997 * testsuite/libgomp.c++/atomic-7.C: New test.
16998 * testsuite/libgomp.c++/atomic-8.C: New test.
16999 * testsuite/libgomp.c++/atomic-9.C: New test.
17000 * testsuite/libgomp.c++/task-8.C: New test.
17001 * testsuite/libgomp.c++/reduction-4.C: New test.
17002 * testsuite/libgomp.fortran/allocatable7.f90: New test.
17003 * testsuite/libgomp.fortran/allocatable8.f90: New test.
17004 * testsuite/libgomp.fortran/crayptr3.f90: New test.
17005 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
17006 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
17007 * testsuite/libgomp.fortran/pointer1.f90: New test.
17008 * testsuite/libgomp.fortran/pointer2.f90: New test.
17009 * testsuite/libgomp.fortran/task4.f90: New test.
17011 2011-08-02 Tobias Burnus <burnus@net-b.de>
17013 * libgomp.texi: Update OpenMP spec references to 3.1.
17014 (omp_in_final,OMP_PROC_BIND): New sections.
17015 (OMP_NUM_THREADS): Document that the value can be now a list.
17016 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
17018 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
17020 * config/linux/x86/futex.h: Check __x86_64__ instead of
17023 2011-07-29 Jakub Jelinek <jakub@redhat.com>
17025 PR middle-end/49897
17026 PR middle-end/49898
17027 * testsuite/libgomp.c/pr49897-1.c: New test.
17028 * testsuite/libgomp.c/pr49897-2.c: New test.
17029 * testsuite/libgomp.c/pr49898-1.c: New test.
17030 * testsuite/libgomp.c/pr49898-2.c: New test.
17032 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
17034 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
17035 for ia32 instead of ilp32.
17037 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
17038 * testsuite/libgomp.c/atomic-6.c: Likewise.
17040 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
17042 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
17043 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
17045 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17048 * config/osf/sem.h: New file.
17049 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
17051 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17054 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
17057 2011-07-15 Jakub Jelinek <jakub@redhat.com>
17059 * config/linux/wait.h (do_spin): New inline, largely copied
17060 from do_wait, just don't do futex_wait here, instead return true if
17062 (do_wait): Implement using do_spin.
17063 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
17065 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17066 __sync_bool_compare_and_swap, pass the oldval to
17067 gomp_mutex_lock_slow.
17068 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
17069 If all mutex contenders are just spinning and not sleeping, don't
17070 change state to 2 unnecessarily. Optimize the loop when state has
17071 already become 2 to use just one atomic operation per loop instead
17073 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
17075 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17076 __sync_bool_compare_and_swap, pass the oldval to
17077 gomp_mutex_lock_slow.
17079 2011-06-22 Jakub Jelinek <jakub@redhat.com>
17082 * iter.c (gomp_iter_static_next): For chunk size 0
17083 only use n ceil/ nthreads size for the first
17084 n % nthreads threads in the team instead of
17085 all threads except for the last few ones which
17086 get less work or none at all.
17087 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
17088 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
17089 chunk argument, set run_sched_modifier to 0 for static
17090 resp. 1 for other kinds. If chunk argument is 0
17091 and not static, set value to 1.
17093 2011-05-19 Jakub Jelinek <jakub@redhat.com>
17096 * testsuite/libgomp.c++/pr49043.C: New test.
17099 * testsuite/libgomp.c++/pr48869.C: New test.
17101 2011-05-06 Jakub Jelinek <jakub@redhat.com>
17104 * fortran.c: Include limits.h.
17106 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
17108 (omp_set_num_threads_8_, omp_set_schedule_8_,
17109 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
17110 omp_get_team_size_8_): Use TO_INT macro.
17111 * testsuite/libgomp.fortran/pr48894.f90: New test.
17113 2011-04-13 Jakub Jelinek <jakub@redhat.com>
17115 PR middle-end/48591
17116 * testsuite/libgomp.c/pr48591.c: New test.
17118 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17121 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
17122 * configure: Regenerate.
17124 2011-02-27 Jakub Jelinek <jakub@redhat.com>
17127 * testsuite/libgomp.fortran/task3.f90: New test.
17129 2011-02-24 Tobias Burnus <burnus@net-b.de>
17131 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
17133 2011-02-23 Jakub Jelinek <jakub@redhat.com>
17136 * libgomp.texi (omp_get_wtime): Don't say time in the past
17137 must be Unix Epoch.
17139 2011-02-18 Jakub Jelinek <jakub@redhat.com>
17142 * testsuite/libgomp.fortran/fortran.exp: Check for both
17143 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
17144 but $blddir != "", still append ${blddir}/${lang_library_path}
17145 to ld_library_path.
17147 2011-02-16 Tobias Burnus <burnus@net-b.de>
17150 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
17151 of libquadmath.a before adding its libpath to ldflags.
17153 2011-02-14 Jakub Jelinek <jakub@redhat.com>
17156 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
17157 to FUTEX_WAIT futex syscall.
17158 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
17160 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17162 * configure: Regenerate.
17164 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
17167 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
17169 2011-01-16 Gerald Pfeifer
17171 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
17173 2010-12-14 Jakub Jelinek <jakub@redhat.com>
17176 * libgomp.fortran/allocatable6.f90: New test.
17178 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17180 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
17181 * configure: Regenerate.
17183 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
17187 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
17188 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
17189 * aclocal.m4: Regenerate.
17190 * configure: Regenerate.
17191 * Makefile.in: Regenerate.
17192 * testsuite/Makefile.in: Regenerate.
17194 2010-12-02 Jakub Jelinek <jakub@redhat.com>
17197 * libgomp.fortran/pr46753.f90: New test.
17200 * env.c (initialize_env): Default to spin count 300000
17201 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
17205 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
17206 at the end if sync builtins aren't supported.
17208 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17210 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
17212 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17214 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
17216 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
17218 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
17220 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17221 Tobias Burnus <burnus@net-b.de>
17225 * configure: Regenerate.
17227 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
17229 * config/linux/futex.h: New.
17230 * config/linux/arm/mutex.h: New.
17231 * configure.tgt (arm*-*-linux*): Add config path.
17233 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
17235 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17237 2010-09-23 Tobias Burnus <burnus@net-b.de>
17239 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
17240 Change Fortran datatype to LOGICAL.
17241 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
17242 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
17244 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17246 * configure: Regenerate.
17248 2010-07-26 Jakub Jelinek <jakub@redhat.com>
17250 * libgomp.texi: Add function keyword to a couple of Fortran
17251 interfaces, use integer instead of int for Fortran.
17253 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
17255 * libgomp.texi: Fix spelling and pasto problems throughout.
17256 Adjust prototypes to match code.
17258 2010-07-24 Tobias Burnus <burnus@net-b.de>
17260 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
17261 silence -fwhole-file warning.
17263 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17265 * configure.tgt (*-*-solaris2.[56]*): Removed.
17267 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17269 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
17270 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
17271 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
17272 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
17273 targetting solaris2*.
17274 * configure: Regenerate.
17275 * config.h.in: Regenerate.
17277 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
17278 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
17279 Add libgomp_version_dep.
17280 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
17282 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
17283 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
17284 * Makefile.in: Regenerate.
17286 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
17287 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
17288 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
17289 to common block, protected by
17290 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
17292 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
17294 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
17296 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
17299 * configure: Regenerate.
17301 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17304 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
17305 * configure: Regenerate.
17306 * Makefile.in: Regenerate.
17307 * testsuite/Makefile.in: Regenerate.
17309 2010-04-26 Jakub Jelinek <jakub@redhat.com>
17312 * testsuite/libgomp.c/pr43893.c: New test.
17313 * testsuite/libgomp.c++/pr43893.C: New test.
17315 2010-04-21 Jakub Jelinek <jakub@redhat.com>
17317 PR middle-end/43570
17318 * testsuite/libgomp.fortran/vla8.f90: New test.
17320 2010-04-20 Jakub Jelinek <jakub@redhat.com>
17323 * config/linux/affinity.c (gomp_init_affinity): Decrease
17324 gomp_available_cpus if affinity mask confines the process to fewer
17326 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
17327 non-NULL, just return gomp_available_cpus.
17330 * sections.c (gomp_sections_init): Initialize ws->mode.
17332 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
17334 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
17335 not unused bar variable.
17336 * configure: Regenerate.
17338 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17340 * Makefile.in: Regenerate.
17341 * aclocal.m4: Regenerate.
17342 * testsuite/Makefile.in: Regenerate.
17344 2010-03-22 Jakub Jelinek <jakub@redhat.com>
17347 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
17348 (initialize_env): Adjust callers.
17349 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
17350 when the argument is 0.
17352 * testsuite/libgomp.c/pr42942.c: New test.
17354 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
17356 PR middle-end/42644
17357 PR middle-end/42130
17358 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17359 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
17361 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17363 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
17364 * testsuite/libgomp.c++/task-6.C: Likewise.
17366 2010-01-28 Steve Ellcey <sje@cup.hp.com>
17368 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
17370 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
17372 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
17373 * configure: Regenerate.
17375 2010-01-26 Jakub Jelinek <jakub@redhat.com>
17378 * testsuite/libgomp.fortran/allocatable5.f90: New test.
17380 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
17382 * configure.ac: Test for executability of GFORTRAN.
17383 * configure: Regenerate.
17385 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17387 * configure: Regenerate.
17389 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
17392 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
17394 2010-01-03 Richard Guenther <rguenther@suse.de>
17396 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
17398 2009-12-23 Sebastian Pop <sebpop@gmail.com>
17400 * testsuite/libgomp.graphite/pr4118.c: New.
17402 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
17404 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
17405 for darwin, protect the test with require-effective-target tls_runtime.
17406 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
17408 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
17411 * testsuite/lib/libgomp.exp: Provide -B options to allow for
17412 link spec %s substitutions for static libraries.
17414 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
17417 * libgomp.graphite/force-parallel-2.c: Reduce array size.
17419 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17421 * Makefile.in: Regenerate.
17422 * configure: Regenerate.
17423 * testsuite/Makefile.in: Regenerate.
17425 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
17427 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
17428 settings for LC_ALL and LANG.
17430 2009-11-25 Jakub Jelinek <jakub@redhat.com>
17433 * testsuite/libgomp.fortran/pr42162.f90: New test.
17435 2009-11-13 Jakub Jelinek <jakub@redhat.com>
17437 PR middle-end/42029
17438 * testsuite/libgomp.c/pr42029.c: New test.
17440 2009-10-26 Jakub Jelinek <jakub@redhat.com>
17442 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
17443 *s. Accept ld version without text in ()s.
17444 * configure: Regenerated.
17446 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
17448 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
17450 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17453 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
17454 or a hyphen (happens with fortran language disabled).
17455 * configure: Regenerate.
17457 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17459 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
17460 use sed script portable to Solaris /bin/sed for extracting ld
17462 * configure: Regenerate.
17464 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
17466 * testsuite/libgomp.graphite/bounds.c: New test.
17468 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17470 * Makefile.am (libgomp_la_LINK): New.
17471 * Makefile.in: Regenerate.
17473 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17475 * configure.ac (AC_PREREQ): Bump to 2.64.
17477 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17479 * Makefile.am (install-html, install-pdf): Remove.
17480 * Makefile.in: Regenerate.
17482 * Makefile.in: Regenerate.
17483 * aclocal.m4: Regenerate.
17484 * config.h.in: Regenerate.
17485 * configure: Regenerate.
17486 * testsuite/Makefile.in: Regenerate.
17488 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17490 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
17491 * Makefile.in: Regenerate.
17493 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
17495 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
17496 * Makefile.in: Regenerate.
17498 2009-08-19 Tobias Burnus <burnus@net-b.de>
17501 omp_lib.h.in: Fix -std=f95 errors.
17503 2009-08-14 David Edelsohn <edelsohn@gnu.org>
17505 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
17506 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
17507 * testsuite/libgomp.graphite/graphite.exp: New.
17509 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
17511 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
17514 2009-08-04 David Daney <ddaney@caviumnetworks.com>
17516 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
17517 needed memory barrier semantics.
17518 * config/linux/mips/mutex.h: New file.
17520 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17522 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
17524 2009-07-16 Joseph Myers <joseph@codesourcery.com>
17526 * configure: Regenerate.
17528 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
17533 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
17534 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
17535 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
17537 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
17539 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
17540 options when choosing a multilib.
17542 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
17544 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
17545 ld_library_path. Use add_path. Add just find_libgcc_s to
17546 ld_library_path, not every libgcc multilib directory.
17547 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
17548 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
17549 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
17551 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
17553 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
17555 * Makefile.am (LTLDFLAGS): Define.
17557 * Makefile.in: Regenerate.
17559 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
17562 * testsuite/libgomp.fortran/fortran.exp: Don't link with
17563 libgfortranbegin, check existence of libgfortran.a instead of
17564 libgfortranbegin.a.
17566 2009-05-20 Jakub Jelinek <jakub@redhat.com>
17569 * team.c (gomp_thread_start): Destroy thr->release semaphore.
17570 (gomp_free_pool_helper): Likewise.
17572 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
17573 Jakub Jelinek <jakub@redhat.com>
17576 * testsuite/libgomp.fortran/workshare2.f90: New test.
17578 2009-04-09 Nick Clifton <nickc@redhat.com>
17580 * iter.c: Change copyright header to refer to version 3 of the
17581 GNU General Public License with version 3.1 of the GCC Runtime
17582 Library Exception and to point readers at the COPYING3 and
17583 COPYING3.RUNTIME files and the FSF's license web page.
17584 * alloc.c: Likewise.
17585 * barrier.c: Likewise.
17586 * config/bsd/proc.c: Likewise.
17587 * config/linux/affinity.c: Likewise.
17588 * config/linux/alpha/futex.h: Likewise.
17589 * config/linux/bar.c: Likewise.
17590 * config/linux/bar.h: Likewise.
17591 * config/linux/ia64/futex.h: Likewise.
17592 * config/linux/ia64/mutex.h: Likewise.
17593 * config/linux/lock.c: Likewise.
17594 * config/linux/mips/futex.h: Likewise.
17595 * config/linux/mutex.c: Likewise.
17596 * config/linux/mutex.h: Likewise.
17597 * config/linux/powerpc/futex.h: Likewise.
17598 * config/linux/proc.c: Likewise.
17599 * config/linux/ptrlock.c: Likewise.
17600 * config/linux/ptrlock.h: Likewise.
17601 * config/linux/s390/futex.h: Likewise.
17602 * config/linux/sem.c: Likewise.
17603 * config/linux/sem.h: Likewise.
17604 * config/linux/sparc/futex.h: Likewise.
17605 * config/linux/wait.h: Likewise.
17606 * config/linux/x86/futex.h: Likewise.
17607 * config/mingw32/proc.c: Likewise.
17608 * config/mingw32/time.c: Likewise.
17609 * config/posix/affinity.c: Likewise.
17610 * config/posix/bar.c: Likewise.
17611 * config/posix/bar.h: Likewise.
17612 * config/posix/lock.c: Likewise.
17613 * config/posix/mutex.h: Likewise.
17614 * config/posix/proc.c: Likewise.
17615 * config/posix/ptrlock.h: Likewise.
17616 * config/posix/sem.c: Likewise.
17617 * config/posix/sem.h: Likewise.
17618 * config/posix/time.c: Likewise.
17619 * config/posix95/lock.c: Likewise.
17620 * critical.c: Likewise.
17622 * error.c: Likewise.
17623 * fortran.c: Likewise.
17624 * iter_ull.c: Likewise.
17625 * libgomp.h: Likewise.
17626 * libgomp_f.h.in: Likewise.
17627 * libgomp_g.h: Likewise.
17628 * loop.c: Likewise.
17629 * loop_ull.c: Likewise.
17630 * omp.h.in: Likewise.
17631 * omp_lib.f90.in: Likewise.
17632 * omp_lib.h.in: Likewise.
17633 * ordered.c: Likewise.
17634 * parallel.c: Likewise.
17635 * sections.c: Likewise.
17636 * single.c: Likewise.
17637 * task.c: Likewise.
17638 * team.c: Likewise.
17639 * work.c: Likewise.
17641 2009-04-09 Jakub Jelinek <jakub@redhat.com>
17643 * testsuite/config/default.exp: Change copyright header to refer to
17644 version 3 of the GNU General Public License and to point readers
17645 at the COPYING3 file and the FSF's license web page.
17647 2009-04-08 Jakub Jelinek <jakub@redhat.com>
17649 PR middle-end/39573
17650 * libgomp.c++/pr39573.C: New test.
17652 2009-04-01 Jakub Jelinek <jakub@redhat.com>
17655 * testsuite/libgomp.c/pr39591-1.c: New test.
17656 * testsuite/libgomp.c/pr39591-2.c: New test.
17657 * testsuite/libgomp.c/pr39591-3.c: New test.
17659 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
17661 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
17662 * testsuite/libgomp.c/atomic-6.c: Ditto.
17664 2009-03-23 Jakub Jelinek <jakub@redhat.com>
17667 * testsuite/libgomp.c/loop-12.c: New test.
17668 * testsuite/libgomp.c/loop-11.c: New test.
17669 * testsuite/libgomp.c++/loop-11.C: New test.
17670 * testsuite/libgomp.c++/loop-12.C: New test.
17671 * testsuite/libgomp.c++/for-8.C: New test.
17673 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17675 * configure: Regenerate.
17677 2009-02-11 Jakub Jelinek <jakub@redhat.com>
17679 PR middle-end/39154
17680 * testsuite/libgomp.c/pr39154.c: New test.
17682 2009-01-30 Ian Lance Taylor <iant@google.com>
17684 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
17685 libgomp_ld_is_gold. Get gold version number.
17686 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
17687 * configure: Rebuild.
17689 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
17691 * testsuite/lib/libgomp.exp: Add -B option for targets that
17692 use libgfortran.a%s in their specs.
17694 2009-01-07 Jakub Jelinek <jakub@redhat.com>
17697 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
17698 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
17699 HAVE_AS_SYMVER_DIRECTIVE is not defined.
17700 * configure: Regenerated.
17701 * config.h.in: Likewise.
17703 2008-12-28 Jakub Jelinek <jakub@redhat.com>
17706 * testsuite/libgomp.c/pr38650.c: New test.
17707 * testsuite/libgomp.c++/pr38650.C: New test.
17709 2008-12-27 Jakub Jelinek <jakub@redhat.com>
17711 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
17713 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
17715 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
17717 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17719 * configure: Regenerate.
17721 2008-12-08 Jakub Jelinek <jakub@redhat.com>
17723 PR middle-end/36802
17724 * testsuite/libgomp.c/pr36802-1.c: New test.
17725 * testsuite/libgomp.c/pr36802-2.c: New test.
17726 * testsuite/libgomp.c/pr36802-3.c: New test.
17728 2008-12-01 Janis Johnson <janis187@us.ibm.com>
17731 * config/linux/powerpc/mutex.h: New.
17733 2008-12-01 Jakub Jelinek <jakub@redhat.com>
17736 * testsuite/libgomp.c++/for-7.C: New test.
17739 * testsuite/libgomp.c++/for-6.C: New test.
17741 2008-11-26 Janis Johnson <janis187@us.ibm.com>
17744 * testsuite/lib/libgomp.exp: Include new timeout library files.
17745 (libgomp_target_compile): Set timeout value from new proc.
17747 2008-11-13 Steve Ellcey <sje@cup.hp.com>
17750 * config/linux/ia64/mutex.h: New.
17752 2008-11-04 Tobias Burnus <burnus@net-b.de>
17755 * libgomp.texi (Runtime library routines, environment variables):
17756 Update for OpenMP version 3.0.
17758 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
17759 Steve Ellcey <sje@cup.hp.com>
17761 * configure: Regenerate for new libtool.
17762 * Makefile.in: Ditto.
17763 * testsuite/Makefile.in: Ditto.
17765 2008-09-19 Jakub Jelinek <jakub@redhat.com>
17766 Andreas Tobler <a.tobler@schweiz.org>
17768 * config/bsd/proc.c: New file.
17769 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
17770 * configure.ac: Check for header <sys/sysctl.h>
17771 * configure: Regenerate.
17772 * config.h.in: Likewise.
17774 2008-09-05 Janis Johnson <janis187@us.ibm.com>
17776 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
17778 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
17780 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
17781 * Makefile.in: Regenerated.
17782 * testsuite/Makefile.in: Regenerated.
17784 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
17786 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
17787 depend on blddir if blddir exists.
17788 (libgomp_target_compile): Likewise.
17789 * testsuite/libgomp.c++/c++.exp: Likewise.
17790 * testsuite/libgomp.fortran/fortran.exp: Likewise.
17792 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17794 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
17795 Do not list GPL as Invariant Section.
17797 2008-07-28 Ilie Garbacea <ilie@mips.com>
17798 Chao-ying Fu <fu@mips.com>
17800 * configure.tgt: Enable futex for MIPS.
17801 * config/linux/mips/futex.h: New file.
17803 2008-07-16 Jakub Jelinek <jakub@redhat.com>
17805 * team.c (gomp_team_end): Free team immediately if it has
17808 2008-07-08 David Edelsohn <edelsohn@gnu.org>
17810 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
17811 * testsuite/libgomp.fortran/fortran.exp: Same.
17812 * testsuite/libgomp.c/c.exp: Same.
17813 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
17814 directory to library path first.
17816 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
17818 * env.c (parse_stacksize): Add cast to avoid warning.
17819 (parse_spincount): Likewise.
17821 2008-06-27 Jakub Jelinek <jakub@redhat.com>
17823 * testsuite/libgomp.c/loop-10.c: New test.
17824 * libgomp.c/loop-3.c (main): Add lastprivate clause.
17825 * libgomp.c++/loop-6.C (main): Likewise.
17828 * testsuite/libgomp.c/debug-1.c: New test.
17830 2008-06-19 Jakub Jelinek <jakub@redhat.com>
17832 * testsuite/libgomp.c/nqueens-1.c: New test.
17835 * testsuite/libgomp.c++/task-7.C: New function.
17837 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17839 * configure: Regenerate.
17841 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17843 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
17844 mutex when HAVE_SYNC_BUILTINS isn't defined.
17846 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17848 * libgomp.texi (omp_test_lock): Fix typo.
17850 2008-06-12 Tobias Burnus <burnus@net-b.de>
17852 * omp_lib.f90.in: Add "implicit none".
17854 2008-06-12 Jakub Jelinek <jakub@redhat.com>
17856 PR middle-end/36506
17857 * testsuite/libgomp.c/reduction-5.c: New test.
17859 2008-06-11 Jakub Jelinek <jakub@redhat.com>
17861 * libgomp.h (struct gomp_task): Add in_tied_task field.
17862 * task.c (gomp_init_task): Initialize it.
17863 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
17864 unconditionally. Don't call gomp_team_barrier_wake if
17865 current task is implicit or if(0) from implicit and number of
17866 running tasks is equal to nthreads - 1.
17869 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
17870 omp_get_team_size_8): Fix pastos.
17873 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
17874 * configure: Regenerated.
17875 * config.h.in: Regenerated.
17876 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
17879 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
17882 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
17883 (GOMP_loop_ull_dynamic_start): Likewise.
17884 (GOMP_loop_ull_guided_start): Likewise.
17885 (GOMP_loop_ull_ordered_static_start): Likewise.
17886 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
17887 (GOMP_loop_ull_ordered_guided_start): Likewise.
17889 2008-06-06 Jakub Jelinek <jakub@redhat.com>
17890 Richard Henderson <rth@redhat.com>
17891 Ulrich Drepper <drepper@redhat.com>
17892 Jakob Blomer <jakob.blomer@ira.uka.de>
17894 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
17895 Substitute also OMP_*LOCK_25*.
17896 * configure: Regenerated.
17897 * config.h.in: Regenerated.
17898 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
17899 ptrlock.c and task.c.
17900 * Makefile.in: Regenerated.
17901 * testsuite/Makefile.in: Regenerated.
17902 * task.c: New file.
17903 * loop_ull.c: New file.
17904 * iter_ull.c: New file.
17905 * libgomp.h: Include ptrlock.h.
17906 (enum gomp_task_kind): New type.
17907 (struct gomp_team): Add task_lock, task_queue, task_count,
17908 task_running_count, single_count fields. Add
17909 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
17910 Remove work_share_lock, generation_mask,
17911 oldest_live_gen, num_live_gen and init_work_shares fields, add
17912 work work_share_list_alloc, work_share_list_free and work_share_chunk
17913 fields. Change work_shares from pointer to pointers into an array.
17914 Change ordered_release field into gomp_sem_t ** from flexible array
17915 member. Add implicit_task and initial_work_shares fields.
17916 Move close to the end of the struct.
17917 (struct gomp_team_state): Add single_count, last_work_share,
17918 active_level and level fields, remove work_share_generation.
17919 (gomp_barrier_handle_tasks): New prototype.
17920 (gomp_finish_task): New inline function.
17921 (struct gomp_work_share): Move chunk_size, end, incr into
17922 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
17923 next_ll fields. Reshuffle fields. Add next_alloc,
17924 next_ws, next_free and inline_ordered_team_ids fields, change
17925 ordered_team_ids into pointer from flexible array member.
17926 Add mode field. Put lock and next into a different cache line
17927 from most of the write-once fields.
17928 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
17929 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
17930 gomp_iter_ull_guided_next): New prototypes.
17931 (gomp_new_icv): New prototype.
17932 (struct gomp_thread): Add thread_pool and task fields.
17933 (struct gomp_thread_pool): New type.
17934 (gomp_new_team): New prototype.
17935 (gomp_team_start): Change type of last argument.
17936 (gomp_new_work_share): Removed.
17937 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
17938 (gomp_work_share_init_done): New static inline.
17939 (gomp_throttled_spin_count_var, gomp_available_cpus,
17940 gomp_managed_threads): New extern decls.
17941 (gomp_init_task): New prototype.
17942 (gomp_spin_count_var): New extern var decl.
17943 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
17944 or no alias support, or if not PIC.
17945 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
17946 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
17947 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
17948 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
17949 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
17950 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
17951 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
17952 gomp_test_nest_lock_25): New prototypes.
17953 (omp_lock_symver, strong_alias): Define.
17954 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
17956 (gomp_end_task): New.
17957 (struct gomp_task_icv, gomp_global_icv): New.
17958 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
17959 (struct gomp_task): New.
17960 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
17961 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
17963 (gomp_schedule_type): Reorder enum to match
17965 * team.c (struct gomp_thread_start_data): Add thread_pool and task
17967 (gomp_thread_start): Add gomp_team_barrier_wait call.
17968 For non-nested case remove clearing of docked thread thr fields.
17969 Use pool fields instead of global gomp_* variables. Use
17970 gomp_barrier_wait_last when needed. Initialize ts.active_level.
17971 Create tasks for each member thread.
17972 (free_team): Only destroy team barrier, task_lock here and free it.
17973 (gomp_free_thread): Free last_team if non-NULL.
17974 (gomp_team_end): Call gomp_team_barrier_wait instead of
17975 gomp_barrier_wait. For nested case call one extra
17976 gomp_barrier_wait. Move here some destruction from free_team.
17977 Call free_team on pool->last_team if any, rather than freeing
17978 current team. Destroy work_share_list_free_lock ifndef
17979 HAVE_SYNC_BUILTINS.
17980 (gomp_new_icv): New function.
17981 (gomp_threads, gomp_threads_size, gomp_threads_used,
17982 gomp_threads_dock): Removed.
17983 (gomp_thread_destructor): New variable.
17984 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
17986 (gomp_team_start): Create new pool if current thread doesn't have
17987 one. Use pool fields instead of global gomp_* variables.
17988 Initialize thread_pool field for new threads. Clear single_count.
17989 Change last argument from ws to team, don't create
17990 new team, set ts.work_share to &team->work_shares[0] and clear
17991 ts.last_work_share. Don't clear ts.work_share_generation.
17992 If number of threads changed, adjust atomically gomp_managed_threads.
17993 Use gomp_init_task instead of gomp_new_task,
17994 set thr->task to the corresponding implicit_task array entry.
17995 Create tasks for each member thread. Initialize ts.level.
17996 (initialize_team): Call pthread_key_create on
17997 gomp_thread_destructor.
17998 (team_destructor): New function.
17999 (new_team): Removed.
18000 (gomp_new_team): New function.
18001 (free_team): Free gomp_work_share blocks chained through next_alloc,
18002 instead of freeing work_shares and destroying work_share_lock.
18003 (gomp_team_end): Call gomp_fini_work_share. If number of threads
18004 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
18005 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
18006 of gomp_barrier_wait.
18007 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
18008 instead of gomp_barrier_wait. Call gomp_work_share_init_done
18009 if gomp_work_share_start returned true. Don't unlock ws->lock.
18010 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
18011 of gomp_barrier_wait.
18012 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
18013 gomp_work_share_init_done if gomp_work_share_start returned true.
18014 Don't unlock ws->lock.
18015 * work.c: Include stddef.h.
18016 (free_work_share): Use work_share_list_free_lock instead
18017 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
18018 Call gomp_fini_work_share and then either free ws if orphaned, or
18019 put it into work_share_list_free list of the current team.
18020 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
18022 (gomp_work_share_start, gomp_work_share_end,
18023 gomp_work_share_end_nowait): Rewritten.
18024 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
18025 (openmp_version): Set to 200805.
18026 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18027 omp_sched_guided, omp_sched_auto): New parameters.
18028 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18029 omp_set_max_active_levels, omp_get_max_active_levels,
18030 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18031 omp_get_active_level): New interfaces.
18032 * omp_lib.h.in (openmp_version): Set to 200805.
18033 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18034 omp_sched_guided, omp_sched_auto): New parameters.
18035 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18036 omp_set_max_active_levels, omp_get_max_active_levels,
18037 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18038 omp_get_active_level): New externals.
18039 * loop.c: Include limits.h.
18040 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
18042 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
18043 Likewise. Use gomp_icv.
18044 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
18045 ts.static_trip here.
18046 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
18047 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
18048 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
18049 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
18050 don't unlock ws->lock, otherwise lock it.
18051 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
18052 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
18053 (gomp_parallel_loop_start): Call gomp_new_team instead of
18054 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
18055 Adjust gomp_team_start caller. Pass 0 as second argument to
18056 gomp_resolve_num_threads.
18057 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
18058 If adding ws->chunk_size nthreads + 1 times after end won't
18059 overflow, set ws->mode to 1.
18060 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
18061 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
18062 GOMP_loop_ull_ordered_static_start,
18063 GOMP_loop_ull_ordered_dynamic_start,
18064 GOMP_loop_ull_ordered_guided_start,
18065 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
18066 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
18067 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
18068 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
18069 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
18071 * libgomp.map: Export lock routines also @@OMP_2.0.
18072 (GOMP_loop_ordered_dynamic_first,
18073 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
18074 GOMP_loop_ordered_static_first): Remove.
18075 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
18076 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
18077 GOMP_loop_ull_ordered_dynamic_next,
18078 GOMP_loop_ull_ordered_dynamic_start,
18079 GOMP_loop_ull_ordered_guided_next,
18080 GOMP_loop_ull_ordered_guided_start,
18081 GOMP_loop_ull_ordered_runtime_next,
18082 GOMP_loop_ull_ordered_runtime_start,
18083 GOMP_loop_ull_ordered_static_next,
18084 GOMP_loop_ull_ordered_static_start,
18085 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
18086 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
18087 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
18088 (omp_set_schedule, omp_get_schedule,
18089 omp_get_thread_limit, omp_set_max_active_levels,
18090 omp_get_max_active_levels, omp_get_level,
18091 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
18092 omp_set_schedule_, omp_set_schedule_8_,
18093 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
18094 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
18095 omp_get_max_active_levels_, omp_get_level_,
18096 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
18097 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
18098 New exports @@OMP_3.0.
18099 * omp.h.in (omp_sched_t): New type.
18100 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18101 omp_set_max_active_levels, omp_get_max_active_levels,
18102 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18103 omp_get_active_level): New prototypes.
18104 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
18105 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
18106 gomp_thread_limit_var, gomp_remaining_threads_count,
18107 gomp_remaining_threads_lock): New variables.
18108 (parse_spincount): New function.
18109 (initialize_env): Call gomp_init_num_threads unconditionally.
18110 Initialize gomp_available_cpus. Call parse_spincount,
18111 initialize gomp_{,throttled_}spin_count_var
18112 depending on presence and value of OMP_WAIT_POLICY and
18113 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
18114 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
18115 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
18116 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
18117 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
18118 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18119 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18120 (gomp_global_icv): New.
18121 (parse_schedule): Use it. Parse "auto".
18122 (omp_set_num_threads): Use gomp_icv.
18123 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
18125 (omp_get_max_threads): Move from parallel.c.
18126 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18127 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
18129 (parse_stacksize, parse_wait_policy): New functions.
18130 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
18131 both wrappers for compatibility and new locks.
18132 (omp_set_schedule, omp_get_schedule,
18133 omp_get_thread_limit, omp_set_max_active_levels,
18134 omp_get_max_active_levels, omp_get_level,
18135 omp_get_ancestor_thread_num, omp_get_team_size,
18136 omp_get_active_level): New ialias_redirect.
18137 (omp_set_schedule_, omp_set_schedule_8_,
18138 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
18139 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
18140 omp_get_max_active_levels_, omp_get_level_,
18141 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
18142 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
18144 * parallel.c: Include limits.h.
18145 (gomp_resolve_num_threads): Add count argument. Rewritten.
18146 (GOMP_parallel_start): Call gomp_new_team and pass that as last
18147 argument to gomp_team_start. Pass 0 as second argument to
18148 gomp_resolve_num_threads.
18149 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
18150 if gomp_thread_limit_var != ULONG_MAX.
18151 (omp_in_parallel): Implement using ts.active_level.
18152 (omp_get_max_threads): Move to env.c.
18153 (omp_get_level, omp_get_ancestor_thread_num,
18154 omp_get_team_size, omp_get_active_level): New functions,
18156 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
18157 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
18158 gomp_iter_dynamic_next instead of the _locked variant and don't take
18159 lock around it, otherwise acquire it before calling
18160 gomp_iter_dynamic_next_locked.
18161 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
18162 gomp_iter_dynamic_next instead of the _locked variant and don't take
18164 (GOMP_parallel_sections_start): Call gomp_new_team instead of
18165 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
18166 Adjust gomp_team_start caller. Pass count as second argument to
18167 gomp_resolve_num_threads, don't adjust num_threads after the call.
18169 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
18170 ws->chunk_size by incr.
18171 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
18173 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
18175 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
18176 (omp_check_defines): Check even the compat defines.
18177 * config/linux/ptrlock.c: New file.
18178 * config/linux/ptrlock.h: New file.
18179 * config/linux/wait.h: New file.
18180 * config/posix/ptrlock.c: New file.
18181 * config/posix/ptrlock.h: New file.
18182 * config/linux/bar.h (gomp_team_barrier_wait,
18183 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
18184 (gomp_team_barrier_set_task_pending,
18185 gomp_team_barrier_clear_task_pending,
18186 gomp_team_barrier_set_waiting_for_tasks,
18187 gomp_team_barrier_waiting_for_tasks,
18188 gomp_team_barrier_done): New inlines.
18189 (gomp_barrier_t): Rewritten.
18190 (gomp_barrier_state_t): New typedef.
18191 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
18192 gomp_barrier_wait_start): Rewritten.
18193 (gomp_barrier_wait_end): Change second argument to
18194 gomp_barrier_state_t.
18195 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
18197 * config/linux/bar.c: Include wait.h instead of libgomp.h and
18199 (gomp_barrier_wait_end): Rewritten.
18200 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
18201 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
18202 * config/posix/bar.h (gomp_barrier_t): Add generation field.
18203 (gomp_barrier_state_t): New typedef.
18204 (gomp_team_barrier_wait,
18205 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
18206 (gomp_barrier_wait_start): Or all but low 2 bits from generation
18207 into the return value. Return gomp_barrier_state_t.
18208 (gomp_team_barrier_set_task_pending,
18209 gomp_team_barrier_clear_task_pending,
18210 gomp_team_barrier_set_waiting_for_tasks,
18211 gomp_team_barrier_waiting_for_tasks,
18212 gomp_team_barrier_done): New inlines.
18213 (gomp_barrier_wait_end): Change second argument to
18214 gomp_barrier_state_t.
18215 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
18217 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
18218 (gomp_barrier_wait_end): Change second argument to
18219 gomp_barrier_state_t.
18220 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
18221 gomp_team_barrier_wake): New functions.
18222 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
18224 (gomp_futex_wake, gomp_futex_wait): New variables.
18225 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
18226 * config/linux/lock.c: Rewrite to make locks task owned,
18227 for backwards compatibility provide the old entrypoints
18228 if symbol versioning. Include wait.h instead of libgomp.h and
18230 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
18231 * config/posix95/lock.c: Rewrite to make locks task owned,
18232 for backwards compatibility provide the old entrypoints
18233 if symbol versioning.
18234 * config/posix/lock.c: Rewrite to make locks task owned,
18235 for backwards compatibility provide the old entrypoints
18236 if symbol versioning.
18237 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
18238 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
18239 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
18240 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18241 (sys_futex0): Return error code.
18242 (futex_wake, futex_wait): If ENOSYS was returned, clear
18243 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18244 (cpu_relax, atomic_write_barrier): New static inlines.
18245 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18246 (futex_wake, futex_wait): If ENOSYS was returned, clear
18247 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18248 (cpu_relax, atomic_write_barrier): New static inlines.
18249 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18250 (sys_futex0): Return error code.
18251 (futex_wake, futex_wait): If ENOSYS was returned, clear
18252 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18253 (cpu_relax, atomic_write_barrier): New static inlines.
18254 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18255 (sys_futex0): Return error code.
18256 (futex_wake, futex_wait): If ENOSYS was returned, clear
18257 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18258 (cpu_relax, atomic_write_barrier): New static inlines.
18259 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18260 (sys_futex0): Return error code.
18261 (futex_wake, futex_wait): If ENOSYS was returned, clear
18262 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18263 (cpu_relax, atomic_write_barrier): New static inlines.
18264 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18265 (sys_futex0): Return error code.
18266 (futex_wake, futex_wait): If ENOSYS was returned, clear
18267 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18268 (cpu_relax, atomic_write_barrier): New static inlines.
18269 * config/linux/sem.c: Include wait.h instead of libgomp.h and
18271 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
18272 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
18273 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
18275 (omp_nest_lock_t): Change owner into void *, add lock field.
18276 * config/posix95/omp-lock.h: Include semaphore.h.
18277 (omp_lock_25_t, omp_nest_lock_25_t): New types.
18278 (omp_lock_t): Use sem_t instead of mutex if semaphores
18280 (omp_nest_lock_t): Likewise. Change owner to void *.
18281 * config/posix/omp-lock.h: Include semaphore.h.
18282 (omp_lock_25_t, omp_nest_lock_25_t): New types.
18283 (omp_lock_t): Use sem_t instead of mutex if semaphores
18285 (omp_nest_lock_t): Likewise. Add owner field.
18287 2008-06-06 Jakub Jelinek <jakub@redhat.com>
18289 * testsuite/libgomp.c/collapse-1.c: New test.
18290 * testsuite/libgomp.c/collapse-2.c: New test.
18291 * testsuite/libgomp.c/collapse-3.c: New test.
18292 * testsuite/libgomp.c/icv-1.c: New test.
18293 * testsuite/libgomp.c/icv-2.c: New test.
18294 * testsuite/libgomp.c/lib-2.c: New test.
18295 * testsuite/libgomp.c/lock-1.c: New test.
18296 * testsuite/libgomp.c/lock-2.c: New test.
18297 * testsuite/libgomp.c/lock-3.c: New test.
18298 * testsuite/libgomp.c/loop-4.c: New test.
18299 * testsuite/libgomp.c/loop-5.c: New test.
18300 * testsuite/libgomp.c/loop-6.c: New test.
18301 * testsuite/libgomp.c/loop-7.c: New test.
18302 * testsuite/libgomp.c/loop-8.c: New test.
18303 * testsuite/libgomp.c/loop-9.c: New test.
18304 * testsuite/libgomp.c/nested-3.c: New test.
18305 * testsuite/libgomp.c/nestedfn-6.c: New test.
18306 * testsuite/libgomp.c/sort-1.c: New test.
18307 * testsuite/libgomp.c/task-1.c: New test.
18308 * testsuite/libgomp.c/task-2.c: New test.
18309 * testsuite/libgomp.c/task-3.c: New test.
18310 * testsuite/libgomp.c/task-4.c: New test.
18311 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
18312 to C++ testsuite default compiler options.
18313 * testsuite/libgomp.c++/collapse-1.C: New test.
18314 * testsuite/libgomp.c++/collapse-2.C: New test.
18315 * testsuite/libgomp.c++/ctor-10.C: New test.
18316 * testsuite/libgomp.c++/for-1.C: New test.
18317 * testsuite/libgomp.c++/for-2.C: New test.
18318 * testsuite/libgomp.c++/for-3.C: New test.
18319 * testsuite/libgomp.c++/for-4.C: New test.
18320 * testsuite/libgomp.c++/for-5.C: New test.
18321 * testsuite/libgomp.c++/loop-8.C: New test.
18322 * testsuite/libgomp.c++/loop-9.C: New test.
18323 * testsuite/libgomp.c++/loop-10.C: New test.
18324 * testsuite/libgomp.c++/task-1.C: New test.
18325 * testsuite/libgomp.c++/task-2.C: New test.
18326 * testsuite/libgomp.c++/task-3.C: New test.
18327 * testsuite/libgomp.c++/task-4.C: New test.
18328 * testsuite/libgomp.c++/task-5.C: New test.
18329 * testsuite/libgomp.c++/task-6.C: New test.
18330 * testsuite/libgomp.fortran/allocatable1.f90: New test.
18331 * testsuite/libgomp.fortran/allocatable2.f90: New test.
18332 * testsuite/libgomp.fortran/allocatable3.f90: New test.
18333 * testsuite/libgomp.fortran/allocatable4.f90: New test.
18334 * testsuite/libgomp.fortran/collapse1.f90: New test.
18335 * testsuite/libgomp.fortran/collapse2.f90: New test.
18336 * testsuite/libgomp.fortran/collapse3.f90: New test.
18337 * testsuite/libgomp.fortran/collapse4.f90: New test.
18338 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
18339 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
18340 * testsuite/libgomp.fortran/lib4.f90: New test.
18341 * testsuite/libgomp.fortran/lock-1.f90: New test.
18342 * testsuite/libgomp.fortran/lock-2.f90: New test.
18343 * testsuite/libgomp.fortran/nested1.f90: New test.
18344 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
18345 * testsuite/libgomp.fortran/strassen.f90: New test.
18346 * testsuite/libgomp.fortran/tabs1.f90: New test.
18347 * testsuite/libgomp.fortran/tabs2.f: New test.
18348 * testsuite/libgomp.fortran/task1.f90: New test.
18349 * testsuite/libgomp.fortran/task2.f90: New test.
18350 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
18351 * testsuite/libgomp.fortran/vla5.f90: Likewise.
18352 * testsuite/libgomp.c/pr26943-2.c: Likewise.
18353 * testsuite/libgomp.c/pr26943-3.c: Likewise.
18354 * testsuite/libgomp.c/pr26943-4.c: Likewise.
18356 2008-05-23 Jakub Jelinek <jakub@redhat.com>
18359 * testsuite/libgomp.c++/ctor-11.C: New test.
18360 * testsuite/libgomp.c++/ctor-12.C: New test.
18362 2008-05-15 Janis Johnson <janis187@us.ibm.com>
18364 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
18366 2008-05-07 Jakub Jelinek <jakub@redhat.com>
18368 PR middle-end/36106
18369 * testsuite/libgomp.c/atomic-5.c: New test.
18370 * testsuite/libgomp.c/atomic-6.c: New test.
18371 * testsuite/libgomp.c/autopar-1.c: New test.
18373 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18375 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
18376 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
18377 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
18378 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
18379 * configure: Regenerate.
18380 * Makefile.in, testsuite/Makefile.in: Likewise.
18382 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
18385 * aclocal.m4: Regenerate.
18386 * configure: Regenerate.
18388 2008-03-18 Jakub Jelinek <jakub@redhat.com>
18390 PR middle-end/35611
18391 * testsuite/libgomp.c/atomic-4.c: New test.
18394 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
18395 (gomp_iter_guided_next): Likewise.
18396 * testsuite/libgomp.c/pr35625.c: New test.
18398 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18400 * aclocal.m4: Regenerate.
18401 * configure: Likewise.
18402 * Makefile.in: Likewise.
18403 * testsuite/Makefile.in: Likewise.
18405 2008-03-13 Jakub Jelinek <jakub@redhat.com>
18407 PR middle-end/35185
18408 * testsuite/libgomp.c++/pr35185.C: New test.
18410 2008-03-12 Jakub Jelinek <jakub@redhat.com>
18412 PR middle-end/35549
18413 * testsuite/libgomp.c/pr35549.c: New test.
18415 2008-03-06 Jakub Jelinek <jakub@redhat.com>
18417 * testsuite/libgomp.c/atomic-3.c: New test.
18419 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18422 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
18423 .F08 file suffixes.
18425 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
18428 * configure.ac: Add ACX_HEADER_STRING.
18429 * env.c: Include strings.h.
18430 * aclocal.m4: Regenerate.
18431 * config.h.in: Regenerate.
18432 * configure: Regenerate.
18433 * Makefile.in: Regenerate.
18434 * testsuite/Makefile.in: Regenerate.
18436 2008-02-15 Jakub Jelinek <jakub@redhat.com>
18438 PR middle-end/35196
18439 * testsuite/libgomp.c/pr35196.c: New test.
18441 PR middle-end/35130
18442 * testsuite/libgomp.fortran/pr35130.f90: New test.
18443 * testsuite/libgomp.c/pr35130.c: New test.
18445 2008-01-25 Jakub Jelinek <jakub@redhat.com>
18447 PR middle-end/33880
18448 * testsuite/libgomp.c/pr33880.c: New test.
18449 * testsuite/libgomp.fortran/pr33880.f90: New test.
18451 2008-01-24 David Edelsohn <edelsohn@gnu.org>
18453 * configure: Regenerate.
18455 2008-01-08 Jakub Jelinek <jakub@redhat.com>
18457 * configure.ac: Move futex checking into ../config/futex.m4.
18458 * configure: Rebuilt.
18459 * aclocal.m4: Rebuilt.
18460 * Makefile.in: Rebuilt.
18462 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
18463 2007-10-15 ../config/tls.m4 change.
18465 2007-12-19 Jakub Jelinek <jakub@redhat.com>
18468 * testsuite/libgomp.c/pr34513.c: New test.
18469 * testsuite/libgomp.c++/pr34513.C: New test.
18471 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
18474 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
18476 2007-12-04 Jakub Jelinek <jakub@redhat.com>
18478 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
18480 2007-12-03 Jakub Jelinek <jakub@redhat.com>
18482 * testsuite/libgomp.c/private-1.c: New test.
18484 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
18485 Paolo Bonzini <bonzini@gnu.org>
18487 * Makefile.am: Use space as vpath separator. Use 'vpath %'
18488 instead of 'VPATH ='.
18489 * Makefile.in: Regenerate.
18491 2007-11-23 Matthias Klose <doko@ubuntu.com>
18493 * configure.ac: Adjust makeinfo version check.
18494 * configure: Regenerate.
18496 2007-11-10 Jakub Jelinek <jakub@redhat.com>
18499 * testsuite/libgomp.fortran/pr34020.f90: New test.
18501 2007-11-06 Jakub Jelinek <jakub@redhat.com>
18504 * testsuite/libgomp.c++/atomic-1.C: New test.
18506 2007-10-25 Jakub Jelinek <jakub@redhat.com>
18509 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
18510 Make x and y integers rather than (implicit) reals. Add private (j)
18511 clause to the last omp parallel.
18513 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
18515 * configure: Regenerate following changes to ../config/tls.m4.
18517 2007-09-28 Jakub Jelinek <jakub@redhat.com>
18519 * testsuite/libgomp.fortran/stack.f90: New test.
18521 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
18523 * config/mingw32/proc.c: New file.
18525 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
18527 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
18528 (main): Use __get_cpuid to get i386 target fetaures.
18529 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
18530 (main): Use __get_cpuid to get x86_64 target fetaures.
18532 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
18535 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
18536 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
18538 2007-07-12 Jakub Jelinek <jakub@redhat.com>
18541 * testsuite/libgomp.fortran/pr32550.f90: New test.
18542 * testsuite/libgomp.fortran/crayptr2.f90: New test.
18544 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
18546 * aclocal.m4: Regenerated.
18548 2007-07-05 Tobias Burnus <burnus@net-b.de>
18551 * testsuite/libgomp.fortran/pr32359.f90: New.
18553 2007-07-02 Jakub Jelinek <jakub@redhat.com>
18556 * sections.c (GOMP_parallel_sections_start): Only decrease
18557 number of threads to COUNT if dyn_var is true.
18558 * testsuite/libgomp.c/pr32468.c: New test.
18560 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18563 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
18565 2007-06-21 Jakub Jelinek <jakub@redhat.com>
18567 PR middle-end/32362
18568 * testsuite/libgomp.c/pr32362-1.c: New test.
18569 * testsuite/libgomp.c/pr32362-2.c: New test.
18570 * testsuite/libgomp.c/pr32362-3.c: New test.
18572 2007-06-07 Jakub Jelinek <jakub@redhat.com>
18574 * team.c (gomp_team_start): Fix setting up thread_attr
18577 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
18579 * configure: Regenerate.
18581 2007-05-23 Steve Ellcey <sje@cup.hp.com>
18583 * Makefile.in: Regenerate.
18584 * configure: Regenerate.
18585 * aclocal.m4: Regenerate.
18586 * testsuite/Makefile.in: Regenerate.
18588 2007-05-04 Jakub Jelinek <jakub@redhat.com>
18590 * config/linux/proc.c: New file.
18593 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
18595 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
18597 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
18599 2007-04-16 Matthias Klose <doko@debian.org>
18601 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
18602 flags if not building with -m64.
18603 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
18604 flag for i?86-*-* targets, if current target matches -m64.
18606 2007-04-14 Steve Ellcey <sje@cup.hp.com>
18608 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
18609 * Makefile.in: Regenerate.
18611 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18614 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
18616 * testsuite/libgomp.fortran/fortran.exp: Likewise.
18618 2007-04-04 Jakub Jelinek <jakub@redhat.com>
18620 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
18622 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
18623 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
18624 (parse_affinity): New function.
18625 (initialize_env): Call it and gomp_init_affinity.
18626 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
18627 create new pthread_attr_t and call gomp_init_thread_affinity
18628 on it for each thread before passing the attribute to pthread_create.
18629 * config/linux/affinity.c: New file.
18630 * config/posix/affinity.c: New file.
18631 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
18632 * configure: Rebuilt.
18633 * config.h.in: Rebuilt.
18634 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
18635 * Makefile.in: Rebuilt.
18637 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
18639 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
18641 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
18642 and use it if found.
18644 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
18646 * testsuite/config/default.exp: New file.
18647 * testsuite/lib/libgomp.exp: New file.
18648 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
18649 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
18650 load_lib *, load_gcc_lib *): Move to libgomp.exp.
18651 (libgomp_load): Remove.
18652 * testsuite/lib/libgomp.exp (libgomp_init): Compute
18653 always_ld_library_path, not ld_library_path. Set additional_flags
18654 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
18655 (target_compile): Do not call libgomp_init. Append lang_library_path
18656 and lang_link_flags to options.
18657 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
18658 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
18660 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
18661 always_ld_library_path. Set LD_LIBRARY_PATH here.
18662 * testsuite/libgomp.fortran/fortran.exp: Ditto.
18663 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
18664 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
18666 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
18667 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
18668 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
18669 * testsuite/libgomp.c/pr29947-1.c: Ditto.
18670 * testsuite/libgomp.c/atomic-10.c: Ditto.
18672 2007-03-21 Jakub Jelinek <jakub@redhat.com>
18674 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
18675 dg-final cleanup-modules line.
18676 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
18677 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
18678 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
18679 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
18680 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
18681 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
18682 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
18684 2007-03-18 Andreas Schwab <schwab@suse.de>
18686 * acinclude.m4: Adjust regular expression for ld version
18688 * configure: Regenerate.
18690 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
18692 * Makefile.am: Add install-pdf target as copied from
18693 automake v1.10 rules.
18694 * Makefile.in: Regenerate
18696 2007-02-07 Jakub Jelinek <jakub@redhat.com>
18699 * configure: Regenerate.
18702 * testsuite/libgomp.c++/pr30703.C: New test.
18704 2007-02-02 Jakub Jelinek <jakub@redhat.com>
18707 2006-07-05 Eric Christopher <echristo@apple.com>
18708 * configure.ac: Depend addition of -pthread on host OS.
18709 * configure: Regenerate.
18711 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18713 * libgomp.texi: Fix spacing after abbreviations.
18715 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
18718 * configure.ac: Add check for makeinfo
18719 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
18720 if an appropriate version of makeinfo is found.
18721 * aclocal.m4: Regenerated.
18722 * configure: Regenerated.
18723 * Makefile.in: Regenerated.
18724 * testsuite/Makefile.in: Regenerated.
18726 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
18729 * libgomp.texi: More about implementation-dependent settings.
18731 2007-01-26 Tobias Burnus <burnus@net-b.de>
18733 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
18735 2007-01-24 Jakub Jelinek <jakub@redhat.com>
18737 PR middle-end/30494
18738 * testsuite/libgomp.c/pr30494.c: New test.
18740 2007-01-15 Tom Tromey <tromey@redhat.com>
18742 * configure: Rebuilt.
18743 * configure.ac: Fixed comment.
18745 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
18747 * libgomp.texi: Document implementation specific default values of
18748 environment variables.
18750 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
18753 * libgomp.texi: New file.
18754 * configure.ac: Add --enable-generated-files-in-srcdir option.
18755 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
18757 * Makefile.in: Regenerated.
18758 * config.h.in: Regenerated.
18759 * testsuite/Makefile.in: Regenerated.
18762 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
18765 * env.c (omp_set_num_threads): Set illegal thread count to 1.
18767 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
18769 * configure: Regenerate.
18771 2006-12-04 Jakub Jelinek <jakub@redhat.com>
18774 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
18775 start if there shouldn't be any loop iterations.
18776 (gomp_loop_ordered_static_start): Remove start == end test.
18777 * testsuite/libgomp.c/pr29947-1.c: New test.
18778 * testsuite/libgomp.c/pr29947-2.c: New test.
18780 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
18782 * configure.tgt: Force initial-exec TLS model on Linux only.
18784 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
18786 * configure: Regenerated.
18788 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
18790 * env.c (parse_schedule): Reject out of range values.
18791 (parse_unsigned_long): Reject out of range, negative or zero values.
18793 2006-10-29 Jakub Jelinek <jakub@redhat.com>
18796 * testsuite/libgomp.fortran/pr29629.f90: New test.
18798 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
18801 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
18802 * config/posix95: New directory.
18803 * config/posix95/omp-lock.h: New file.
18804 * config/posix95/lock.c: Likewise.
18806 2006-10-14 Geoffrey Keating <geoffk@apple.com>
18808 * aclocal.m4: Regenerate.
18809 * configure: Regenerate.
18811 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
18813 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
18816 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
18818 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
18820 * configure: Regenerate.
18821 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
18823 2006-09-26 Jakub Jelinek <jakub@redhat.com>
18825 PR middle-end/25261
18826 PR middle-end/28790
18827 * testsuite/libgomp.c/nestedfn-4.c: New test.
18828 * testsuite/libgomp.c/nestedfn-5.c: New test.
18829 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
18832 * testsuite/libgomp.fortran/condinc1.f: New test.
18833 * testsuite/libgomp.fortran/condinc2.f: New test.
18834 * testsuite/libgomp.fortran/condinc3.f90: New test.
18835 * testsuite/libgomp.fortran/condinc4.f90: New test.
18836 * testsuite/libgomp.fortran/condinc1.inc: New file.
18838 2006-09-18 Tom Tromey <tromey@redhat.com>
18840 * configure: Rebuilt.
18842 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
18845 PR preprocessor/14634
18846 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
18848 * configure: Regenerate.
18850 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
18852 * testsuite/libgomp.fortran/reduction3.f90: Change
18853 -2147483648 to -huge(i)-1 to avoid overflow.
18854 * testsuite/libgomp.fortran/reduction4.f90: Change
18855 Z'ffffffff' to not(0) to avoid overflow.
18857 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
18860 * Makefile.am (libsubincludedir): New.
18861 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
18862 * Makefile.in: Regenerate.
18864 2006-08-17 Jakub Jelinek <jakub@redhat.com>
18867 * env.c: Include ctype.h.
18868 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
18869 leading and/or trailing whitespace and compare strings case
18872 2006-07-16 Jakub Jelinek <jakub@redhat.com>
18875 * testsuite/libgomp.fortran/pr28390.f: New test.
18877 2006-07-05 Eric Christopher <echristo@apple.com>
18879 * configure.ac: Depend addition of -pthread on host OS.
18880 * configure: Regenerate.
18882 2006-06-21 Jakub Jelinek <jakub@redhat.com>
18884 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
18885 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
18888 2006-06-20 Jakub Jelinek <jakub@redhat.com>
18892 * configure.ac: If neither --enable-linux-futex nor
18893 --disable-linux-futex is passed, determine the default by checking
18894 for compiling and/or running against NPTL. With --enable-linux-futex,
18895 check if SYS_gettid and SYS_futex are defined.
18896 * configure: Rebuilt.
18898 2006-06-14 Richard Henderson <rth@redhat.com>
18901 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
18902 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
18904 2006-06-09 Richard Henderson <rth@redhat.com>
18906 * env.c (gomp_nthreads_var): Change to unsigned long.
18907 (gomp_run_sched_chunk): Likewise.
18908 (parse_unsigned_long): Rename from parse_num_threads and generalize.
18909 (initialize_env): Initialize gomp_thread_attr.
18910 * libgomp.h (gomp_nthreads_var): Update decl.
18911 (gomp_run_sched_chunk): Likewise.
18912 (gomp_thread_attr): Declare.
18913 * team.c (gomp_thread_attr): Export.
18914 (initialize_team): Don't initialize it.
18916 2006-06-09 Jakub Jelinek <jakub@redhat.com>
18919 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
18920 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
18922 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
18924 * config/mingw32/time.c: New file.
18925 * configure.tgt: Use it.
18927 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
18929 * Makefile.am: Add install-html target. Add install-html to .PHONY
18930 * Makefile.in: Regenerate.
18932 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18935 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
18936 * testsuite/libgomp.c/critical-1.c: Likewise.
18937 * testsuite/libgomp.c/loop-1.c: Likewise.
18938 * testsuite/libgomp.c/loop-2.c: Likewise.
18939 * testsuite/libgomp.c/single-1.c: Likewise.
18940 * testsuite/libgomp.c/ordered-1.c: Likewise.
18941 * testsuite/libgomp.c/ordered-2.c: Likewise.
18943 2006-05-15 Jakub Jelinek <jakub@redhat.com>
18945 PR middle-end/27416
18946 * libgomp.fortran/pr27416-1.f90: New test.
18948 2006-05-03 Jakub Jelinek <jakub@redhat.com>
18951 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
18952 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
18954 2006-05-02 Jakub Jelinek <jakub@redhat.com>
18957 * testsuite/libgomp.c/pr26943-1.c: New test.
18958 * testsuite/libgomp.c/pr26943-2.c: New test.
18959 * testsuite/libgomp.c/pr26943-3.c: New test.
18960 * testsuite/libgomp.c/pr26943-4.c: New test.
18961 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
18962 * testsuite/libgomp.c++/pr26943.C: New test.
18964 2006-05-02 Jakub Jelinek <jakub@redhat.com>
18966 PR middle-end/27337
18967 * testsuite/libgomp.c++/pr27337.C: New test.
18969 2006-04-26 Jakub Jelinek <jakub@redhat.com>
18972 * testsuite/libgomp.c/pr26171.c: New test.
18974 2006-04-25 Richard Henderson <rth@redhat.com>
18977 * configure.ac: Use GCC_CHECK_TLS.
18978 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
18979 * Makefile.in, aclocal.m4, configure: Regenerate.
18981 2006-04-10 Matthias Klose <doko@debian.org>
18983 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
18984 directory names containing underscores.
18986 2006-03-21 Jakub Jelinek <jakub@redhat.com>
18989 * testsuite/libgomp.c++/pr26691.C: New test.
18991 2006-03-13 Jakub Jelinek <jakub@redhat.com>
18993 * testsuite/libgomp.fortran/retval2.f90: New test.
18995 2006-03-09 Diego Novillo <dnovillo@redhat.com>
18997 * testsuite/libgomp.c++: New directory.
18999 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
19001 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
19002 * config/posix/sem.c: Implement the above.
19004 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
19006 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
19007 define HAVE_BROKEN_POSIX_SEMAPHORES.
19008 * configure: Rebuilt.
19009 * config.h.in: Rebuilt.
19011 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
19014 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
19015 for the other pthread check.
19016 * configure: Regenerate.
19017 * config.h.in: Regenerate.
19019 2006-02-15 Jakub Jelinek <jakub@redhat.com>
19023 * Makefile.am (fincludedir): New variable.
19024 (nodist_include_HEADERS): Remove Fortran files.
19025 (nodist_finclude_HEADERS): New variable.
19026 * Makefile.in: Regenerated.
19028 2006-02-13 Jakub Jelinek <jakub@redhat.com>
19030 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
19031 Remove tests for returning assumed character length arrays.
19033 2006-02-12 Roger Sayle <roger@eyesopen.com>
19034 John David Anglin <dave@hiauly1.hia.nrc.ca>
19037 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
19039 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
19041 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
19043 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
19045 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
19046 part of LD_LIBRARY_PATH manually.
19048 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
19051 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
19054 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
19057 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
19058 * configure.ac (PERL): Don't set.
19059 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
19060 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
19061 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
19062 * omp.h.in: Wrap the new configure substitutions with @ characters.
19063 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
19064 * aclocal.m4, configure, Makefile.in: Regenerate.
19065 * mkomp_h.pl: Delete.
19067 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
19070 * configure.ac: Use GCC_HEADER_STDINT.
19071 * libgomp.h: Include gstdint.h.
19072 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
19073 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
19075 2006-01-24 Richard Henderson <rth@redhat.com>
19078 * configure.ac: Add AM_MAINTAINER_MODE.
19079 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
19081 2006-01-24 Diego Novillo <dnovillo@redhat.com>
19083 * Makefile.in: Regenerate.
19084 * testsuite/Makefile.in: Regenerate.
19085 * aclocal.m4: Regenerate.
19087 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
19089 * config/posix/proc.c: Conditional include of sys/loadavg.h for
19091 * configure.ac: Add check for loadavg.h.
19092 (link_gomp): Adjust comment.
19093 * configure: Regenerate.
19094 * config.h.in: Regenerate.
19096 2006-01-21 Steve Ellcey <sje@cup.hp.com>
19099 * configure.ac: Remove check for alloca.h.
19100 * configure: Regenerate.
19101 * config.h.in: Regenerate.
19102 * libgomp.h: define gomp_alloca to be __builtin_alloca.
19103 * team.c: Remove use of alloca.h.
19104 Call gomp_alloca instead of alloca.
19106 2006-01-20 Steve Ellcey <sje@cup.hp.com>
19109 * team.c: Add include of alloca.h.
19110 * configure.ac: Add check for alloca.h.
19111 * configure: Regenerate.
19112 * config.h.in: Regenerate.
19114 2006-01-17 Jakub Jelinek <jakub@redhat.com>
19117 * testsuite/libgomp.fortran/pr25219.f90: New test.
19119 2005-12-05 Uros Bizjak <uros@kss-loka.si>
19121 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
19122 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
19123 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
19124 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
19125 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
19126 testsuite/libgomp.fortran/threadprivate1.f90,
19127 testsuite/libgomp.fortran/threadprivate2.f90,
19128 testsuite/libgomp.fortran/threadprivate3.f90,
19129 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
19130 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
19131 testsuite/libgomp.fortran/omp_parse3.f90: Change required
19132 effective-target to TLS runtime.
19134 * testsuite/libgomp.fortran/pr25162.f: Require
19135 effective-target TLS runtime.
19137 2005-12-01 Jakub Jelinek <jakub@redhat.com>
19139 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
19140 * testsuite/libgomp.c/nestedfn-3.c: New test.
19142 2005-11-30 Jakub Jelinek <jakub@redhat.com>
19145 * testsuite/libgomp.fortran/pr25162.f: New test.
19147 2005-11-28 Jakub Jelinek <jakub@redhat.com>
19149 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
19150 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
19152 2005-11-25 Jakub Jelinek <jakub@redhat.com>
19154 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
19155 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
19156 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
19157 single.c, team.c, work.c, config/linux/alpha/futex.h,
19158 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
19159 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
19160 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
19161 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
19162 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
19163 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
19164 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
19167 2005-11-18 Jakub Jelinek <jakub@redhat.com>
19169 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
19170 to nodist_noinst_HEADERS.
19171 * Makefile.in: Rebuilt.
19173 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
19174 add integer count field.
19175 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
19176 omp_nest_lock_t type change.
19177 (omp_init_nest_lock): Likewise. Initialize count to 0.
19178 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
19180 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
19182 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
19183 Increment count if successful and return the new nesting level.
19184 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
19185 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
19186 * testsuite/libgomp.c/lib-1.c: New test.
19187 * testsuite/libgomp.fortran/lib1.f90: New test.
19188 * testsuite/libgomp.fortran/lib2.f: New test.
19189 * testsuite/libgomp.fortran/lib3.f: New test.
19191 2005-11-17 Richard Henderson <rth@redhat.com>
19194 * Makefile.am (nodist_toolexeclib_HEADERS): New.
19195 * configure.ac (link_gomp): New. Substitute it.
19196 (AC_CONFIG_FILES): Add libgomp.spec.
19197 * libgomp.spec.in: New file.
19198 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
19199 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
19201 2005-11-18 Jakub Jelinek <jakub@redhat.com>
19203 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
19204 reduction(-:var) behaving the same as reduction(+:var).
19205 * testsuite/libgomp.c/reduction-4.c: New test.
19207 2005-11-15 Uros Bizjak <uros@kss-loka.si>
19209 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
19210 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
19211 testsuite/libgomp.c/copyin-3.c,
19212 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
19213 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
19214 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
19215 testsuite/libgomp.c++/pr24455.C,
19216 testsuite/libgomp.fortran/threadprivate1.f90,
19217 testsuite/libgomp.fortran/threadprivate2.f90,
19218 testsuite/libgomp.fortran/threadprivate3.f90,
19219 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
19220 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
19221 testsuite/libgomp.fortran/omp_parse3.f90: Require
19222 effective-target TLS.
19224 2005-11-14 Diego Novillo <dnovillo@redhat.com>
19228 2005-11-13 Jakub Jelinek <jakub@redhat.com>
19231 * team.c (initialize_team): Pass NULL rather than free as
19232 pthread_key_create destructor. Initialize thread specific data
19233 pointer in initial thread to a static local variable rather than
19236 2005-11-11 Uros Bizjak <uros@kss-loka.si>
19238 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
19239 its location to ld_library_path.
19241 2005-11-10 Diego Novillo <dnovillo@redhat.com>
19243 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
19245 2005-11-10 Diego Novillo <dnovillo@redhat.com>
19247 * testsuite/libgomp.c: Rename from libgomp.dg.
19249 2005-11-09 Diego Novillo <dnovillo@redhat.com>
19251 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
19252 threadprivate variable 'i'.
19254 2005-11-09 Jakub Jelinek <jakub@redhat.com>
19256 * config/linux/s390/futex.h: New file.
19257 * configure.tgt: Use it.
19259 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
19260 before the parallel.
19262 2005-11-08 Jakub Jelinek <jakub@redhat.com>
19265 * testsuite/libgomp.c++/master-1.C: New test.
19267 2005-11-07 Jakub Jelinek <jakub@redhat.com>
19269 * testsuite/libgomp.dg/copyin-3.c: New test.
19271 2005-11-07 Jakub Jelinek <jakub@redhat.com>
19273 * testsuite/libgomp.fortran/retval1.f90: New test.
19274 * testsuite/libgomp.fortran/vla7.f90: New test.
19276 2005-11-06 Jakub Jelinek <jakub@redhat.com>
19278 * testsuite/libgomp.fortran/vla2.f90: New test.
19279 * testsuite/libgomp.fortran/vla3.f90: New test.
19280 * testsuite/libgomp.fortran/vla4.f90: New test.
19281 * testsuite/libgomp.fortran/vla5.f90: New test.
19282 * testsuite/libgomp.fortran/vla6.f90: New test.
19284 2005-11-01 Jakub Jelinek <jakub@redhat.com>
19286 * config/linux/sparc/futex.h: New file.
19287 * configure.tgt: Use it.
19288 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
19290 * critical.c: Include stdlib.h.
19291 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
19292 ignoring return value.
19293 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
19294 LIBGOMP_CHECK_SYNC_BUILTINS check.
19295 * configure: Rebuilt.
19297 2005-10-31 Jakub Jelinek <jakub@redhat.com>
19299 * testsuite/libgomp.fortran/vla1.f90: New test.
19301 2005-10-31 Richard Henderson <rth@redhat.com>
19303 * testsuite/libgomp.fortran/character2.f90: Fix race condition
19304 setting 's' in different threads.
19306 2005-10-31 Jakub Jelinek <jakub@redhat.com>
19308 * libgomp.h (attribute_hidden, ialias): Define.
19309 * config/posix/proc.c (omp_get_num_procs): Add ialias.
19310 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
19311 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
19312 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
19313 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
19314 omp_test_lock, omp_test_nest_lock): Likewise.
19315 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
19316 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
19317 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
19318 omp_test_lock, omp_test_nest_lock): Likewise.
19319 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
19320 omp_get_dynamic, omp_get_nested): Likewise.
19321 * parallel.c (omp_get_num_threads, omp_get_max_threads,
19322 omp_get_thread_num, omp_in_parallel): Likewise.
19323 * fortran.c (ialias_redirect): Define.
19324 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
19325 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
19326 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
19327 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
19328 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
19329 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
19330 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
19331 omp_get_wtime): Add ialias_redirect.
19333 2005-10-30 Jakub Jelinek <jakub@redhat.com>
19335 * fortran.c: Include stdlib.h.
19337 2005-10-29 Jakub Jelinek <jakub@redhat.com>
19339 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
19340 * Makefile.in: Regenerated.
19342 2005-10-28 Jakub Jelinek <jakub@redhat.com>
19344 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
19345 * libgomp_f.h.in (omp_check_defines): New function.
19346 * env.c: Include libgomp_f.h.
19347 (initialize_env): Call omp_check_defines.
19349 * testsuite/libgomp.dg/copyin-2.c: New test.
19350 * testsuite/libgomp.c++/copyin-2.C: New test.
19351 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
19353 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
19354 * testsuite/libgomp.fortran/sharing2.f90: New test.
19356 * testsuite/libgomp.dg/copyin-1.c: New test.
19357 * testsuite/libgomp.c++/copyin-1.C: New test.
19359 2005-10-26 Jakub Jelinek <jakub@redhat.com>
19361 * testsuite/libgomp.fortran/crayptr1.f90: New test.
19363 * testsuite/libgomp.fortran/workshare1.f90: New test.
19365 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
19367 * libgomp.fortran/sharing1.f90: New test.
19369 2005-10-24 Jakub Jelinek <jakub@redhat.com>
19372 * testsuite/libgomp.c++/loop-7.C: New test.
19374 * testsuite/libgomp.dg/nestedfn-2.c: New test.
19376 * testsuite/libgomp.dg/nestedfn-1.c: New test.
19377 * testsuite/libgomp.fortran/reduction6.f90: New test.
19378 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
19380 2005-10-23 Richard Henderson <rth@redhat.com>
19382 * testsuite/libgomp.c++/ctor-1.C: New.
19383 * testsuite/libgomp.c++/ctor-2.C: New.
19384 * testsuite/libgomp.c++/ctor-3.C: New.
19385 * testsuite/libgomp.c++/ctor-4.C: New.
19386 * testsuite/libgomp.c++/ctor-5.C: New.
19387 * testsuite/libgomp.c++/ctor-6.C: New.
19388 * testsuite/libgomp.c++/ctor-7.C: New.
19389 * testsuite/libgomp.c++/ctor-8.C: New.
19390 * testsuite/libgomp.c++/ctor-9.C: New.
19392 2005-10-21 Diego Novillo <dnovillo@redhat.com>
19395 * testsuite/libgomp.c++/pr24455-1.C: New test.
19396 * testsuite/libgomp.c++/pr24455.C: New test.
19397 * testsuite/libgomp.dg/pr24455-1.c: New test.
19398 * testsuite/libgomp.dg/pr24455.c: New test.
19400 2005-10-20 Richard Henderson <rth@redhat.com>
19402 * testsuite/libgomp.c++/loop-6.C: New.
19403 * testsuite/libgomp.dg/loop-3.c: New.
19405 2005-10-20 Jakub Jelinek <jakub@redhat.com>
19407 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
19408 explicitly private.
19409 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
19412 2005-10-19 Diego Novillo <dnovillo@redhat.com>
19414 * testsuite/libgomp.fortran/jacobi.f: New test.
19416 2005-10-19 Richard Henderson <rth@redhat.com>
19418 * configure.tgt (i?86-linux): Default to with_arch instead of
19419 CFLAGS. Add -mtune to match target_cpu.
19420 (x86_64-linux): Tune to i686.
19422 * fortran.c (omp_test_nest_lock_): Fix typo.
19424 2005-10-19 Jakub Jelinek <jakub@redhat.com>
19426 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
19427 gomp_ordered_sync): Do nothing if team->nthreads == 1.
19428 * testsuite/libgomp.dg/ordered-3.c: New test.
19430 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
19431 Remove volatile keyword.
19433 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
19434 in COMMON block to avoid warnings on 64-bit targets.
19436 2005-10-18 Diego Novillo <dnovillo@redhat.com>
19438 * testsuite/libgomp.dg/shared-3.c: New test.
19440 2005-10-18 Jakub Jelinek <jakub@redhat.com>
19442 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
19443 * testsuite/libgomp.fortran/reduction5.f90: New test.
19445 2005-10-18 Jakub Jelinek <jakub@redhat.com>
19447 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
19449 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
19450 flush loop now that __sync_synchronize has proper memory barrier.
19451 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
19452 Add -ffixed-form to dg-options.
19454 2005-10-17 Diego Novillo <dnovillo@redhat.com>
19456 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
19457 from subdirectories.
19458 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
19459 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
19460 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
19461 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
19462 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
19463 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
19464 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
19465 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
19466 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
19467 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
19468 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
19469 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
19470 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
19471 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
19472 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
19473 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
19474 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
19475 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
19476 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
19477 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
19478 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
19479 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
19480 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
19481 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
19482 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
19484 2005-10-17 Jakub Jelinek <jakub@redhat.com>
19486 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
19487 lang_library_path exists. Use find instead of glob to gather tests.
19488 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
19490 2005-10-17 Diego Novillo <dnovillo@redhat.com>
19492 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
19493 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
19494 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
19495 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
19496 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
19497 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
19498 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
19499 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
19500 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
19501 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
19502 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
19503 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
19504 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
19506 2005-10-15 Jakub Jelinek <jakub@redhat.com>
19508 * testsuite/libgomp.dg/vla-1.c: New test.
19510 * testsuite/libgomp.fortran/reference2.f90: New test.
19512 * testsuite/libgomp.fortran/character2.f90: Remove explicit
19513 declaration of omp_get_thread_num.
19514 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
19517 * testsuite/libgomp.fortran/reduction1.f90: New test.
19518 * testsuite/libgomp.fortran/reduction2.f90: New test.
19519 * testsuite/libgomp.fortran/reduction3.f90: New test.
19520 * testsuite/libgomp.fortran/reduction4.f90: New test.
19522 2005-10-13 Richard Henderson <rth@redhat.com>
19524 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
19525 * Makefile.in: Regenerate.
19526 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
19527 * libgomp.h: Include bar.h.
19528 (struct gomp_barrier): Remove.
19529 (struct gomp_team): Add barrier. Replace master_barrier with
19530 master_release. Replace threads with ordered_release.
19531 (struct gomp_thread): Replace barrier with release.
19532 * ordered.c (gomp_ordered_first): Update for ordered_release change.
19533 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
19534 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
19535 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
19536 (GOMP_single_copy_end): Likewise.
19537 * team.c (gomp_threads_dock): New.
19538 (gomp_barrier_init, gomp_barrier_destroy): Remove.
19539 (gomp_thread_start): Use gomp_barrier_wait.
19540 (new_team, free_team): Update for gomp_team changes.
19541 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
19542 (gomp_team_end): Use gomp_barrier_wait.
19543 (initialize_team): Update for gomp_thread changes.
19544 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
19545 (gomp_work_share_end_nowait): Use atomic ops when available.
19546 * config/linux/bar.c, config/linux/bar.h: New files.
19547 * config/posix/bar.c, config/posix/bar.h: New files.
19549 2005-10-13 Jakub Jelinek <jakub@redhat.com>
19551 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
19552 * testsuite/libgomp.dg/single-2.c: New test.
19554 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
19555 lang_link_flags): Unset, so that they aren't inherited from previously
19558 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
19560 2005-10-12 Richard Henderson <rth@redhat.com>
19562 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
19563 (libgomp_init): Use lang_test_file, lang_library_path, and
19564 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
19566 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
19567 (lang_test_file, lang_link_flags): New.
19568 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
19570 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
19571 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
19572 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
19573 testsuite/libgomp.c++/parallel-1.C,
19574 testsuite/libgomp.c++/reduction-1.C,
19575 testsuite/libgomp.c++/reduction-2.C,
19576 testsuite/libgomp.c++/reduction-3.C,
19577 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
19578 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
19579 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
19580 New files, largely cribbed from the C testsuite.
19582 2005-10-12 Jakub Jelinek <jakub@redhat.com>
19584 * testsuite/libgomp.fortran/character1.f90: New test.
19585 * testsuite/libgomp.fortran/character2.f90: New test.
19587 * testsuite/libgomp.dg/nested-1.c: New test.
19588 * testsuite/libgomp.dg/nested-2.c: New test.
19589 * testsuite/libgomp.fortran/do1.f90: New test.
19590 * testsuite/libgomp.fortran/do2.f90: New test.
19592 * testsuite/libgomp.fortran/reference1.f90: New test.
19594 2005-10-11 Jakub Jelinek <jakub@redhat.com>
19596 * testsuite/libgomp.dg/reduction-1.c: New test.
19597 * testsuite/libgomp.dg/reduction-2.c: New test.
19598 * testsuite/libgomp.dg/reduction-3.c: New test.
19600 2005-10-10 Jakub Jelinek <jakub@redhat.com>
19602 * testsuite/libgomp.dg/atomic-1.c: New test.
19603 * testsuite/libgomp.dg/atomic-2.c: New test.
19605 2005-10-09 Richard Henderson <rth@redhat.com>
19607 * critical.c (atomic_lock): New.
19608 (initialize_critical): Initialize it.
19609 (GOMP_atomic_start, GOMP_atomic_end): New.
19610 * libgomp.map: Export them.
19611 * libgomp_g.h: Declare them.
19613 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
19615 2005-10-02 Richard Henderson <rth@redhat.com>
19617 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
19618 to XCFLAGS instead of CFLAGS.
19620 2005-09-30 Richard Henderson <rth@redhat.com>
19622 * configure.ac: Determine whether -pthread or -lpthread is needed.
19623 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
19624 * Makefile.in, configure: Rebuild.
19626 2005-09-28 Richard Henderson <rth@redhat.com>
19628 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
19629 * testsuite/libgomp.dg/omp-single-3.c: New test.
19631 2005-09-28 Diego Novillo <dnovillo@redhat.com>
19633 * testsuite/libgomp.dg/omp-single-2.c: New test.
19634 * testsuite/libgomp.dg/shared-2.c: Fix return code.
19636 2005-09-27 Richard Henderson <rth@redhat.com>
19638 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
19639 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
19641 2005-09-27 Jakub Jelinek <jakub@redhat.com>
19643 * testsuite/libgomp.dg/omp-loop03.c: New test.
19645 2005-09-27 Diego Novillo <dnovillo@redhat.com>
19647 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
19649 2005-09-27 Diego Novillo <dnovillo@redhat.com>
19651 * testsuite/libgomp.dg/omp-single-1.c: New test.
19652 * testsuite/libgomp.dg/shared-1.c: Return 0.
19653 Add prototype for abort.
19654 * testsuite/libgomp.dg/shared-2.c: Likewise.
19656 2005-09-26 Jakub Jelinek <jakub@redhat.com>
19658 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
19661 2005-09-26 Diego Novillo <dnovillo@redhat.com>
19663 * testsuite/libgomp.dg/shared-1.c: New test.
19664 * testsuite/libgomp.dg/shared-2.c: New test.
19666 2005-09-24 Richard Henderson <rth@redhat.com>
19668 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
19670 2005-09-24 Richard Henderson <rth@redhat.com>
19672 * iter.c (gomp_iter_static_next): Round up when computing number
19673 of iterations. Don't bother distributing a remainder equally.
19675 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
19676 Don't call srand. Zero b before testing.
19679 2005-09-24 Jakub Jelinek <jakub@redhat.com>
19681 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
19682 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
19684 2005-09-23 Jakub Jelinek <jakub@redhat.com>
19686 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
19687 without !$omp end do, followed immediately by subroutine end.
19689 2005-09-23 Diego Novillo <dnovillo@redhat.com>
19691 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
19693 2005-09-22 Richard Henderson <rth@redhat.com>
19695 * critical.c (GOMP_critical_name_start): Change argument to void**.
19696 Reuse the pointer space if the mutex fits.
19697 (GOMP_critical_name_end): Likewise.
19698 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
19699 * libgomp_g.h (GOMP_critical_name_start): Update decl.
19700 (GOMP_critical_name_end): Likewise.
19701 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
19702 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
19704 2005-09-20 Richard Henderson <rth@redhat.com>
19706 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
19707 (create_lock_lock): New.
19708 (initialize_critical): Initialize it.
19709 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
19710 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
19712 2005-09-20 Diego Novillo <dnovillo@redhat.com>
19714 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
19716 2005-09-20 Diego Novillo <dnovillo@redhat.com>
19718 * testsuite/libgomp.dg/omp-loop01.c: New test.
19719 * testsuite/libgomp.dg/omp-loop02.c: New test.
19721 2005-09-20 Jakub Jelinek <jakub@redhat.com>
19723 * configure.ac (AC_PROG_FC): Add.
19724 (USE_FORTRAN): New automake conditional.
19725 * configure: Rebuilt.
19726 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
19727 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
19728 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
19729 Add rules to build them.
19730 * Makefile.in: Rebuilt.
19731 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
19732 OMP_NEST_LOCK_KIND.
19733 * libgomp.map: Add Fortran wrappers.
19734 * libgomp_f.h.in: New file.
19735 * omp_lib.h.in: New file.
19736 * omp_lib.f90.in: New file.
19737 * fortran.c: New file.
19738 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
19739 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
19740 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
19741 libgfortran has been built.
19742 * testsuite/libgomp.fortran/fortran.exp: New file.
19743 * testsuite/libgomp.fortran/omp_cond1.f: New test.
19744 * testsuite/libgomp.fortran/omp_cond2.f: New test.
19745 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
19746 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
19747 * testsuite/libgomp.fortran/omp_hello.f: New test.
19748 * testsuite/libgomp.fortran/omp_orphan.f: New test.
19749 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
19750 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
19751 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
19752 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
19753 * testsuite/libgomp.fortran/omp_reduction.f: New test.
19754 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
19755 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
19757 2005-08-30 Richard Henderson <rth@redhat.com>
19759 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
19760 function for when aliases are not usable.
19761 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
19762 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
19763 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
19764 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
19765 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
19766 GOMP_loop_ordered_guided_next): Likewise.
19767 * ordered.c (GOMP_ordered_start): Likewise.
19769 2005-08-01 Diego Novillo <dnovillo@redhat.com>
19771 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
19772 * testsuite/libgomp.dg/omp_hello.c: Fix return code
19773 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
19774 * testsuite/libgomp.dg/omp_orphan.c: Likewise
19775 * testsuite/libgomp.dg/omp_reduction.c: Likewise
19776 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
19777 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
19778 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
19779 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
19781 2005-07-07 Eric Christopher <echristo@redhat.com>
19782 Diego Novillo <dnovillo@redhat.com>
19784 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
19785 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
19787 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
19788 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
19789 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
19790 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
19791 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
19792 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
19793 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
19795 2005-06-13 Diego Novillo <dnovillo@redhat.com>
19797 * TOPLEVEL.patch: Remove.
19799 2005-05-16 Richard Henderson <rth@redhat.com>
19801 * configure.ac: Test for clock_gettime.
19802 * config.h.in, configure: Rebuild.
19803 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
19804 (omp_get_wtime): Use clock_gettime if available.
19805 (omp_get_wtick): Use clock_getres if available.
19807 2005-05-11 Richard Henderson <rth@redhat.com>
19809 * config/linux/ia64/futex.h: New file.
19810 * configure.tgt: Use it.
19812 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
19814 2005-05-07 Richard Henderson <rth@redhat.com>
19816 * config/linux/powerpc/futex.h: New file.
19817 * configure.tgt: Use it.
19819 * config/linux/i486/futex.h: Merge ...
19820 * config/linux/x86_64/futex.h: ... into ...
19821 * config/linux/x86/futex.h: ... here.
19822 * configure.tgt: Update to match.
19824 2005-05-06 Richard Henderson <rth@redhat.com>
19826 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
19827 * config/linux/i486/futex.h: Likewise.
19828 * config/linux/x86_64/futex.h: Likewise.
19830 * config/linux/lock.c: New file.
19831 * config/linux/omp-lock.h: New file.
19833 * critical.c, env.h: Don't include omp.h
19834 * config/posix/lock.c: Include libgomp.h instead of omp.h.
19835 * config/posix/time.c: Likewise.
19836 * config/posix/omp-lock.h: New file.
19837 * libgomp.h: Include omp-lock.h and omp.h.
19838 * Makefile.am (nodist_include_HEADERS): New.
19840 * configure.ac (PERL): New.
19841 * mkomp_h.pl: New file.
19842 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
19844 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
19846 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
19847 build directory. Re-add -march=i486 hack.
19849 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
19850 (libgomp_link_flags): Remove.
19851 (libgomp_initialized): Remove.
19852 (libgomp_init): Don't protect from reinitialization. Copy code
19853 from libstdc++ for getting the multilib set correctly.
19855 2005-05-05 Richard Henderson <rth@redhat.com>
19857 * config/linux/alpha/futex.h: New file.
19858 * configure.tgt (alpha*-*-linux*): Use it.
19860 * config/posix/mutex.c: New file.
19861 * config/posix/sem.c: Use libgomp.h.
19863 * configure.tgt (x86_64-linux): Also test CC for -m32.
19864 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
19866 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
19869 * Makefile.am (SUBDIRS): New.
19870 (libgomp_la_LDFLAGS): Add -lpthread.
19871 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
19872 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
19874 * libgomp_g.h: New file.
19875 * libgomp.h: Split out all public declarations to libgomp_g.h.
19876 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
19877 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
19878 * config/linux/sem.h: Likewise.
19879 * config/posix/sem.h: Likewise.
19881 * Makefile.am (AM_LDFLAGS): New.
19882 (libgomp_version_script): Split out from ...
19883 (libgomp_la_LDFLAGS): ... here.
19884 (libgomp_version_info): New.
19885 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
19886 (LIBGOMP_ENABLE): New.
19887 (LIBGOMP_CHECK_LINKER_FEATURES): New.
19888 (LIBGOMP_ENABLE_SYMVERS): New.
19889 * configure.ac (AC_INIT): Version 1.0.
19890 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
19891 (enable-linux-futex): Likewise. Rename from enable-futex.
19892 (libtool_VERSION): New.
19893 (LIBGOMP_ENABLE_SYMVERS): Use it.
19894 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
19895 * Makefile.in, aclocal.m4, configure: Rebuild.
19897 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
19898 (gomp_mutex_unlock_slow): Fix typo.
19899 * config/linux/sem.c: Similarly.
19900 (gomp_sem_post_slow): Fix typo.
19901 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
19902 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
19903 [__PIC__] (sys_futex0): Don't use tmp output in asm.
19905 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
19906 (libgomp_la_LDFLAGS): Add top_srcdir to path.
19907 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
19908 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
19909 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
19910 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
19911 LDFLAGS. Pull enable_futex check to top-level.
19912 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
19913 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
19915 First attempt at real configury.
19916 * Makefile, config.h: Remove file.
19917 * Makefile.am, Makefile.in: New file.
19918 * acinclude.m4 aclocal.m4: New file.
19919 * configure.ac, configure.tgt, configure: New file.
19921 * config/posix/lock.c: Rename from sys-lock.c.
19922 * config/posix/mutex.h: Rename from sys-mutex.h.
19923 * config/posix/sem.c: Rename from sys-sem.c.
19924 * config/posix/sem.h: Rename from sys-sem.h.
19925 * config/posix/proc.c: Rename from sys-proc.c.
19926 * config/posix/time.c: Rename from sys-proc.c.
19928 * config/linux/mutex.c: New file.
19929 * config/linux/mutex.h: New file.
19930 * config/linux/sem.c: New file.
19931 * config/linux/sem.h: New file.
19932 * config/linux/i486/futex.h: New file.
19933 * config/linux/x86_64/futex.h: New file.
19935 2005-05-04 Richard Henderson <rth@redhat.com>
19937 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
19938 * libgomp.h: Declare them.
19939 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
19940 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
19942 2005-05-04 Richard Henderson <rth@redhat.com>
19944 * libgomp-1 code drop
19946 2005-05-04 Richard Henderson <rth@redhat.com>
19948 * iter.c (gomp_iter_static_next): Return tri-state on 0.
19949 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
19950 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
19951 (gomp_iter_static_next): Update.
19952 (gomp_ordered_static_next): Update.
19953 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
19954 (gomp_loop_ordered_static_start): Likewise. Exit early for a
19955 totally empty range.
19956 (gomp_loop_ordered_static_next): Refine test for calling
19957 gomp_ordered_static_next.
19958 * testsuite/ordered-1.c: Add case for more threads than iterations.
19960 * iter.c (gomp_iter_runtime_next_locked): Remove.
19961 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
19962 gomp_loop_guided_start, gomp_loop_ordered_static_start,
19963 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
19964 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
19965 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
19966 gomp_loop_ordered_guided_next): Downcase name, make static, add
19967 an external alias with the old name.
19968 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
19969 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
19970 switch and call one of the above static functions.
19971 * libgomp.h: Update.
19973 * work.c (gomp_work_share_start): Lock the mutex for !first too.
19974 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
19975 GOMP_loop_guided_start, GOMP_loop_runtime_start,
19976 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
19977 GOMP_loop_ordered_guided_start): Update to match.
19978 * sections.c (GOMP_sections_start): Likewise.
19979 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
19981 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
19982 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
19983 Use bounds check instead of modulus.
19984 (gomp_ordered_sync): Split out of GOMP_ordered_start.
19985 (gomp_ordered_last): Don't sync with ordered_owner here.
19986 (gomp_ordered_next): Likewise.
19987 (gomp_ordered_static_loop_next): Likewise.
19988 * loop.c, libgomp.h: Update to match.
19990 * libgomp.h (GOMP_barrier): Declare.
19992 * testsuite/barrier-1.c: New file.
19993 * testsuite/critical-1.c: New file.
19994 * testsuite/ordered-2.c: New file.
19995 * testsuite/ordered-1.c: New file.
19996 * testsuite/sections-1.c: New file.
19997 * testsuite/single-1.c: New file.
19998 * testsuite/Makefile (TESTS): Add them.
20000 2005-05-04 Richard Henderson <rth@redhat.com>
20002 * libgomp.h (struct gomp_work_share): Add ordered_owner.
20003 * loop.c (GOMP_loop_static_start): If not the startup thread,
20004 acquire the mutex to wait for initialization complete.
20005 (GOMP_loop_ordered_static_start): Likewise.
20006 (GOMP_loop_ordered_runtime_start): Likewise.
20007 (GOMP_loop_ordered_static_first): Remove.
20008 (GOMP_loop_ordered_dynamic_first): Remove.
20009 (GOMP_loop_ordered_guided_first): Remove.
20010 (GOMP_loop_ordered_runtime_first): Remove.
20011 * ordered.c (gomp_ordered_loop_first): Post to own release when
20012 we're the first thread.
20013 (gomp_ordered_loop_last): Wait on release if not owner.
20014 (gomp_ordered_loop_next): Likewise.
20015 (gomp_ordered_static_loop_init): New.
20016 (gomp_ordered_static_loop_next): Use ordered_owner.
20017 (GOMP_ordered_start): Likewise.
20018 * work.c (gomp_new_work_share): Initialize ordered_owner.
20020 2005-05-03 Richard Henderson <rth@redhat.com>
20022 * Makefile (OPT): New.
20025 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
20026 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
20027 * libgomp.h, libgomp.map, NOTES: Update to match.
20029 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
20030 Add initialized and thr members.
20031 (gomp_thread_start): Pause when initially spawned to wait for
20032 the whole team to be created.
20033 (gomp_team_start): Release team members at the end.
20035 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
20036 (f_foo_1): Use GOMP_loop_end.
20037 (f_foo_2): Use GOMP_loop_end_nowait.
20039 * testsuite/loop-2.c: New file.
20040 * testsuite/Makefile (TESTS): Add it.
20042 2005-05-03 Richard Henderson <rth@redhat.com>
20044 * iter.c (gomp_iter_static_next): Fix overflow check typo.
20045 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
20046 * team.c (new_team): Initialize oldest_live_gen to 1 if no
20047 initial work_share.
20049 * testsuite/Makefile: New file.
20050 * testsuite/loop-1.c: New file.
20052 2005-05-03 Richard Henderson <rth@redhat.com>
20054 Initial implementation and checkin.
20056 Copyright (C) 2005-2023 Free Software Foundation, Inc.
20058 Copying and distribution of this file, with or without modification,
20059 are permitted in any medium without royalty provided the copyright
20060 notice and this notice are preserved.