1 2023-07-29 Tobias Burnus <tobias@codesourcery.com>
3 * target.c (omp_target_memcpy_rect_worker): Undo dim=1 change for
4 GOMP_OFFLOAD_CAP_SHARED_MEM.
5 (omp_target_memcpy_rect_copy): Likewise for lock condition.
6 (gomp_load_plugin_for_device): Use DLSYM_OPT not DLSYM for
8 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
9 GOMP_OFFLOAD_memcpy3d): Use memset 0 to nullify reserved and
10 unused src/dst fields for that mem type; remove '{src,dst}LOD = 0'.
12 2023-07-26 Tobias Burnus <tobias@codesourcery.com>
14 * libgomp-plugin.h (GOMP_OFFLOAD_memcpy2d,
15 GOMP_OFFLOAD_memcpy3d): New prototypes.
16 * libgomp.h (struct gomp_device_descr): Add memcpy2d_func
18 * libgomp.texi (nvtpx): Document when cuMemcpy2D/cuMemcpy3D is used.
19 * oacc-host.c (memcpy2d_func, .memcpy3d_func): Init with NULL.
20 * plugin/cuda-lib.def (cuMemcpy2D, cuMemcpy2DUnaligned,
21 cuMemcpy3D): Invoke via CUDA_ONE_CALL.
22 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
23 GOMP_OFFLOAD_memcpy3d): New.
24 * target.c (omp_target_memcpy_rect_worker):
25 (omp_target_memcpy_rect_check, omp_target_memcpy_rect_copy):
26 Permit all device-to-device copyies; invoke new plugins for
27 2D and 3D copying when available.
28 (gomp_load_plugin_for_device): DLSYM the new plugin functions.
29 * testsuite/libgomp.c/target-12.c: Fix dimension bug.
30 * testsuite/libgomp.fortran/target-12.f90: Likewise.
31 * testsuite/libgomp.fortran/target-memcpy-rect-1.f90: New test.
33 2023-07-26 Tobias Burnus <tobias@codesourcery.com>
35 * libgomp.texi (OpenMP 5.2 features): Add 'all' for 'defaultmap' as 'N'.
36 (Tasking Routines): Document omp_in_explicit_task.
37 (Implementation-defined ICV Initialization): Use @ref not @code.
39 2023-07-20 Tobias Burnus <tobias@codesourcery.com>
41 * libgomp.texi (OpenMP Runtime Library Routines):
42 Split long list by adding sections and moving routines there.
43 (OMP_ALLOCATORS): Fix typo.
45 2023-07-19 Tobias Burnus <tobias@codesourcery.com>
48 * libgomp.texi (Impl. Status 5.0): Add link to new PR110735.
49 * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: Enable
51 * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: Remove
52 test file; tests are in non-rectangular-loop-1.f90.
53 * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: Change
54 testcase to use a non-constant step to retain the 'sorry' test.
55 * testsuite/libgomp.fortran/non-rectangular-loop-6.f90: New test.
57 2023-07-17 Tobias Burnus <tobias@codesoucery.com>
58 Chung-Lin Tang <cltang@codesourcery.com>
60 * testsuite/libgomp.fortran/uses_allocators_1.f90: New test.
61 * testsuite/libgomp.fortran/uses_allocators_2.f90: New test.
63 2023-07-14 Tobias Burnus <tobias@codesourcery.com>
65 * libgomp.texi (OMP_ALLOCATOR): Document the default values for
66 the traits. Add crossref to 'Memory allocation'.
67 (Memory allocation): Refer to OMP_ALLOCATOR for the available
68 traits and allocators/mem spaces; document the default value
69 for the pool_size trait.
71 2023-07-14 Tobias Burnus <tobias@codesourcery.com>
73 * allocator.c (omp_init_allocator): Check whether symbol from
74 dlopened libnuma is available before using libnuma for
77 2023-07-13 David Edelsohn <dje.gcc@gmail.com>
79 * testsuite/libgomp.c++/target-map-class-2.C: Require LTO.
80 * testsuite/libgomp.c-c++-common/requires-4.c: Require LTO.
81 * testsuite/libgomp.c-c++-common/requires-4a.c: Require LTO.
83 2023-07-12 Tobias Burnus <tobias@codesourcery.com>
85 * libgomp.texi (OpenMP 5.0): Replace '... stub' by @ref to
86 'Memory allocation' section which contains the full status.
87 (TR11): Remove differently worded duplicated entry.
89 2023-07-12 Tobias Burnus <tobias@codesourcery.com>
91 * allocator.c: Add ifdef for LIBGOMP_USE_LIBNUMA.
92 (enum gomp_numa_memkind_kind): Renamed from gomp_memkind_kind;
93 add GOMP_MEMKIND_LIBNUMA.
94 (struct gomp_libnuma_data, gomp_init_libnuma, gomp_get_libnuma): New.
95 (omp_init_allocator): Handle partition=nearest with libnuma if avail.
96 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
97 numa_alloc_local (+ memset), numa_free, and numa_realloc calls as
99 * config/linux/allocator.c (LIBGOMP_USE_LIBNUMA): Define
100 * libgomp.texi: Fix a typo; use 'fi' instead of its ligature char.
101 (Memory allocation): Renamed from 'Memory allocation with libmemkind';
102 updated for libnuma usage.
103 * testsuite/libgomp.c-c++-common/alloc-11.c: New test.
104 * testsuite/libgomp.c-c++-common/alloc-12.c: New test.
106 2023-07-11 Tobias Burnus <tobias@codesourcery.com>
108 * allocator.c (omp_init_allocator): Use malloc for
109 omp_high_bw_mem_space when the memkind lib is unavailable
110 instead of returning omp_null_allocator.
111 * libgomp.texi (OpenMP 5.0): Fix typo.
112 (Memory allocation with libmemkind): Document implementation
115 2023-06-22 Tobias Burnus <tobias@codesourcery.com>
117 * libgomp.texi: Use @var for ICV vars.
118 (OpenMP Environment Variables): Mention _ALL/_DEV/_DEV_<no> variants,
119 document which ICV is set and which scope the ICV has; extend/cleanup
121 (Implementation-defined ICV Initialization): New.
122 (nvptx): Document the implementation-defined used per-warp stack size.
124 2023-06-19 Thomas Schwinge <thomas@codesourcery.com>
126 * testsuite/libgomp.c/target-51.c: Fix DejaGnu directive syntax
129 2023-06-19 Tobias Burnus <tobias@codesourcery.com>
131 * testsuite/libgomp.c/target-51.c: Accept more error msg variants
132 as expected dg-output.
134 2023-06-19 Tobias Burnus <tobias@codesourcery.com>
137 * target.c (gomp_map_vars_internal): Copy host value instead of NULL
138 for GOMP_MAP_ZERO_LEN_ARRAY_SECTION if not mapped.
139 * libgomp.texi (OpenMP 5.2 Impl.): Mark as 'Y'.
140 * testsuite/libgomp.c/target-19.c: Update expected value.
141 * testsuite/libgomp.c++/target-18.C: Likewise.
142 * testsuite/libgomp.c++/target-19.C: Likewise.
143 * testsuite/libgomp.c-c++-common/requires-unified-addr-2.c: New test.
144 * testsuite/libgomp.c-c++-common/target-implicit-map-3.c: New test.
145 * testsuite/libgomp.c-c++-common/target-implicit-map-4.c: New test.
147 2023-06-16 Tobias Burnus <tobias@codesourcery.com>
149 * target.c (resolve_device): Call gomp_get_num_devices early to ensure
150 gomp_init_targets_once was called before using default-device-var.
151 * testsuite/libgomp.c/target-55.c: New test.
152 * testsuite/libgomp.c/target-55a.c: New test.
154 2023-06-15 Tobias Burnus <tobias@codesourcery.com>
156 * env.c (gomp_def_allocator_envvar): New var.
157 (parse_allocator): Handle OpenMP 5.1 syntax.
159 (omp_display_env): Output gomp_def_allocator_envvar
160 for an allocator with traits.
161 * libgomp.texi (OMP_ALLOCATOR, OMP_AFFINITY_FORMAT,
162 OMP_DISPLAY_AFFINITY): New.
163 * testsuite/libgomp.c/allocator-1.c: New test.
164 * testsuite/libgomp.c/allocator-2.c: New test.
165 * testsuite/libgomp.c/allocator-3.c: New test.
166 * testsuite/libgomp.c/allocator-4.c: New test.
167 * testsuite/libgomp.c/allocator-5.c: New test.
168 * testsuite/libgomp.c/allocator-6.c: New test.
170 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
172 * target.c (resolve_device): Align a
173 'OMP_TARGET_OFFLOAD=mandatory' diagnostic with others.
174 * testsuite/libgomp.c/target-51.c: Adjust.
176 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
178 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Don't
180 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags):
182 * testsuite/libgomp.c/simd-math-1.c: Remove
183 '-foffload-options=-lm'.
184 * testsuite/libgomp.fortran/fortran-torture_execute_math.f90:
186 * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
189 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
191 * testsuite/libgomp.fortran/fortran-torture_execute_math.f90: New.
192 * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
195 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
197 * testsuite/libgomp.c/target-51.c: Fix typo.
199 2023-06-14 Tobias Burnus <tobias@codesourcery.com>
201 * env.c (gomp_default_icv_values): Init default_device_var to
202 an nonconforming value - INT_MIN.
203 (initialize_env): After env-var parsing, set default_device_var to
204 device 0 unless OMP_TARGET_OFFLOAD=mandatory.
205 (omp_display_env): If default_device_var is INT_MIN, call
206 gomp_init_targets_once.
207 * icv-device.c (omp_get_default_device): Likewise.
208 * libgomp.texi (OMP_DEFAULT_DEVICE): Update init description.
209 (OpenMP 5.2 Impl. Status): Mark OMP_TARGET_OFFLOAD=mandatory as 'Y'.
210 * target.c (resolve_device): Improve error message device-num < 0
211 with 'mandatory' and no no-host devices available.
212 (gomp_target_init): Set default-device-var if INT_MIN.
213 * testsuite/libgomp.c/target-48.c: New test.
214 * testsuite/libgomp.c/target-49.c: New test.
215 * testsuite/libgomp.c/target-50.c: New test.
216 * testsuite/libgomp.c/target-50a.c: New test.
217 * testsuite/libgomp.c/target-51.c: New test.
218 * testsuite/libgomp.c/target-52.c: New test.
219 * testsuite/libgomp.c/target-53.c: New test.
220 * testsuite/libgomp.c/target-54.c: New test.
222 2023-06-13 Tobias Burnus <tobias@codesourcery.com>
225 * testsuite/libgomp.c-c++-common/requires-unified-addr-1.c: New test.
226 * testsuite/libgomp.fortran/requires-unified-addr-1.f90: New test.
228 2023-06-12 Tobias Burnus <tobias@codesourcery.com>
230 * target.c (gomp_to_device_kind_p, gomp_map_vars_internal): Replace
231 GOMP_MAP_PRESENT_{FROM,TO,TOFROM,ACLLOC} by GOMP_MAP_FORCE_PRESENT.
232 (gomp_map_vars_internal, gomp_update): Likewise; unify and improve
234 * testsuite/libgomp.c-c++-common/target-present-2.c: Update for
235 changed error message.
236 * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
237 * testsuite/libgomp.fortran/target-present-2.f90: Likewise.
238 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
239 * testsuite/libgomp.c-c++-common/target-present-1.c: Likewise and
240 extend testcase to check that data is copied when needed.
241 * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
242 * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
244 2023-06-07 Thomas Schwinge <thomas@codesourcery.com>
245 Tobias Burnus <tobias@codesourcery.com>
247 * testsuite/libgomp.c-c++-common/target-present-1.c: Run code
248 also for non-offload_device targets; check that it runs
249 successfully for those and for all until a checkpoint for all
250 * testsuite/libgomp.c-c++-common/target-present-2.c: Likewise.
251 * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
252 * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
253 * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
254 * testsuite/libgomp.fortran/target-present-2.f90: Likewise;
255 add missing vars to map clause.
257 2023-06-06 Tobias Burnus <tobias@codesourcery.com>
259 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Regard
260 unified_address requirement as supported.
261 * libgomp.texi (OpenMP 5.0, AMD Radeon, nvptx): Remove
262 'unified_address' from the not-supported requirements.
264 2023-06-06 Kwok Cheung Yeung <kcy@codesourcery.com>
265 Tobias Burnus <tobias@codesourcery.com>
267 * libgomp.texi (OpenMP 5.1 Impl. status): Set 'present' support for
268 defaultmap to 'Y', add 'Y' entry for 'present' on to/from/map clauses.
269 * target.c (gomp_to_device_kind_p): Add map kinds with 'present'
271 (gomp_map_vars_existing): Use new GOMP_MAP_FORCE_P macro.
272 (gomp_map_vars_internal, gomp_update, gomp_target_rev):
273 Emit runtime error if memory region not present.
274 * testsuite/libgomp.c-c++-common/target-present-1.c: New test.
275 * testsuite/libgomp.c-c++-common/target-present-2.c: New test.
276 * testsuite/libgomp.c-c++-common/target-present-3.c: New test.
277 * testsuite/libgomp.fortran/target-present-1.f90: New test.
278 * testsuite/libgomp.fortran/target-present-2.f90: New test.
279 * testsuite/libgomp.fortran/target-present-3.f90: New test.
281 2023-06-02 Thomas Schwinge <thomas@codesourcery.com>
284 * testsuite/lib/libgomp.exp: 'flock' through stdout.
285 * testsuite/flock: New.
286 * configure.ac (FLOCK): Point to that if no 'flock' available, but
288 * configure: Regenerate.
290 2023-06-02 Thomas Schwinge <thomas@codesourcery.com>
292 * configure.ac (PERL): Remove.
293 * configure: Regenerate.
294 * Makefile.in: Likewise.
295 * testsuite/Makefile.in: Likewise.
297 2023-06-01 Tobias Burnus <tobias@codesourcery.com>
299 * libgomp.texi (OpenMP 5.2): Mark pure-directive handling as 'Y'.
301 2023-05-26 Tobias Burnus <tobias@codesourcery.com>
303 * testsuite/libgomp.fortran/allocate-4.f90: Update dg-error.
305 2023-05-21 Tobias Burnus <tobias@codesourcery.com>
308 * config/gcn/target.c (GOMP_teams4): Honor nteams-var ICV.
309 * config/nvptx/target.c (GOMP_teams4): Likewise.
310 * testsuite/libgomp.c-c++-common/teams-nteams-icv-1.c: New test.
311 * testsuite/libgomp.c-c++-common/teams-nteams-icv-2.c: New test.
312 * testsuite/libgomp.c-c++-common/teams-nteams-icv-3.c: New test.
313 * testsuite/libgomp.c-c++-common/teams-nteams-icv-4.c: New test.
315 2023-05-19 Jakub Jelinek <jakub@redhat.com>
318 * configure.ac (link_gomp): Include also $DL_LIBS.
319 * configure: Regenerated.
321 2023-05-17 Tobias Burnus <tobias@codesourcery.com>
323 * testsuite/libgomp.fortran/target-enter-data-3.f90: Uncomment
325 * testsuite/libgomp.fortran/target-enter-data-4.f90: New test.
326 * testsuite/libgomp.fortran/target-enter-data-5.f90: New test.
327 * testsuite/libgomp.fortran/target-enter-data-6.f90: New test.
328 * testsuite/libgomp.fortran/target-enter-data-7.f90: New test.
330 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
333 * configure.ac: Look for 'flock'.
334 * testsuite/Makefile.am (gcc_test_parallel_slots): Enable parallel testing.
335 * testsuite/config/default.exp: Don't 'load_lib "standard.exp"' here...
336 * testsuite/lib/libgomp.exp: ... but here, instead.
337 (libgomp_load): Override for parallel testing.
338 * testsuite/libgomp-site-extra.exp.in (FLOCK): Set.
339 * configure: Regenerate.
340 * Makefile.in: Regenerate.
341 * testsuite/Makefile.in: Regenerate.
343 2023-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
344 Thomas Schwinge <thomas@codesourcery.com>
347 * testsuite/Makefile.am (PWD_COMMAND): New variable.
348 (%/site.exp): New target.
349 (check_p_numbers0, check_p_numbers1, check_p_numbers2)
350 (check_p_numbers3, check_p_numbers4, check_p_numbers5)
351 (check_p_numbers6, check_p_numbers, gcc_test_parallel_slots)
353 (check_DEJAGNU_libgomp_targets): New variables.
354 ($(check_DEJAGNU_libgomp_targets)): New target.
355 ($(check_DEJAGNU_libgomp_targets)): New dependency.
356 (check-DEJAGNU $(check_DEJAGNU_libgomp_targets)): New targets.
357 * testsuite/Makefile.in: Regenerate.
358 * testsuite/lib/libgomp.exp: For parallel testing,
359 'load_file ../libgomp-test-support.exp'.
361 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
364 * configure.ac: 'AC_SUBST(CXX)'.
365 * configure: Regenerate.
366 * Makefile.in: Likewise.
367 * testsuite/Makefile.in: Likewise.
368 * testsuite/libgomp-site-extra.exp.in (GXX_UNDER_TEST)
369 (GFORTRAN_UNDER_TEST): Set.
370 * testsuite/lib/libgomp.exp (libgomp_init): Adjust.
371 * testsuite/libgomp.c++/c++.exp: Use 'GXX_UNDER_TEST'.
372 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
373 * testsuite/libgomp.fortran/fortran.exp: Use
374 'GFORTRAN_UNDER_TEST'.
375 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
377 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
380 * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't
382 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Specify compiler.
383 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
384 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
385 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
387 * testsuite/libgomp.oacc-c++/c++.exp (ALWAYS_CFLAGS): Likewise.
388 * testsuite/libgomp.oacc-c/c.exp (ALWAYS_CFLAGS): Likewise.
389 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS):
392 2023-05-12 Tobias Burnus <tobias@codesourcery.com>
395 * testsuite/libgomp.c++/target-map-class-1.C: New test.
396 * testsuite/libgomp.c++/target-map-class-2.C: New test.
398 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
400 * testsuite/lib/libgomp.exp (libgomp_target_compile): Generalize
401 'lang_library_path' into a list of 'lang_library_paths'.
402 * testsuite/libgomp.c++/c++.exp: Adjust.
403 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
404 * testsuite/libgomp.fortran/fortran.exp: Adjust. Use that for
406 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
408 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
410 * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't look
411 at 'lang_test_file_found'.
412 * testsuite/libgomp.c++/c++.exp: Don't set and use it, and instead
413 'return' early if not able to test. Simplify 'ld_library_path' setup.
414 * testsuite/libgomp.fortran/fortran.exp: Likewise.
415 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
416 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
418 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
420 * testsuite/libgomp.c++/c++.exp: Resolve 'lang_test_file_found'
422 * testsuite/libgomp.fortran/fortran.exp: Likewise.
423 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
424 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
426 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
428 * testsuite/libgomp.c++/c++.exp: Localize 'lang_[...]' etc.
429 * testsuite/libgomp.c/c.exp: Likewise.
430 * testsuite/libgomp.fortran/fortran.exp: Likewise.
431 * testsuite/libgomp.graphite/graphite.exp: Likewise.
432 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
433 * testsuite/libgomp.oacc-c/c.exp: Likewise.
434 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
436 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
438 * testsuite/libgomp.c++/c++.exp: Don't set 'lang_test_file'.
439 * testsuite/libgomp.fortran/fortran.exp: Likewise.
440 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
441 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
442 * testsuite/libgomp.c/c.exp: Unset 'lang_test_file_found' instead of
444 * testsuite/libgomp.oacc-c/c.exp: Likewise.
445 * testsuite/libgomp.graphite/graphite.exp: Likewise.
446 * testsuite/lib/libgomp.exp (libgomp_target_compile): Look for
447 'lang_test_file_found' instead of 'lang_test_file'.
449 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
451 * testsuite/lib/libgomp.exp (libgomp_init): Only use 'blddir' if
453 * testsuite/libgomp.c++/c++.exp: Likewise.
454 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
456 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
458 * testsuite/libgomp.c++/c++.exp (blddir): Don't set.
459 * testsuite/libgomp.oacc-c++/c++.exp (blddir): Likewise.
461 2023-05-08 Thomas Schwinge <thomas@codesourcery.com>
463 * testsuite/libgomp.c++/c++.exp: Use 'lang_include_flags' instead
464 of 'libstdcxx_includes'.
465 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
467 2023-05-08 Thomas Schwinge <thomas@codesourcery.com>
469 * target.c (gomp_target_rev): Instead of 'dev_to_host_cpy',
470 'host_to_dev_cpy', 'token', take a single 'goacc_asyncqueue'.
471 * libgomp.h (gomp_target_rev): Adjust.
472 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): Adjust.
473 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): Adjust.
474 * plugin/plugin-gcn.c (process_reverse_offload): Adjust.
475 * plugin/plugin-nvptx.c (rev_off_dev_to_host_cpy)
476 (rev_off_host_to_dev_cpy): Remove.
477 (GOMP_OFFLOAD_run): Adjust.
479 2023-05-04 Julian Brown <julian@codesourcery.com>
482 * testsuite/libgomp.fortran/pr109622.f90: Move test...
483 * testsuite/libgomp.oacc-fortran/pr109622.f90: ...to here. Ignore
484 vector length warning.
485 * testsuite/libgomp.fortran/pr109622-2.f90: Move test...
486 * testsuite/libgomp.oacc-fortran/pr109622-2.f90: ...to here. Add
487 missing copyin/copyout variable. Ignore vector length warnings.
488 * testsuite/libgomp.fortran/pr109622-3.f90: Move test...
489 * testsuite/libgomp.oacc-fortran/pr109622-3.f90: ...to here. Ignore
490 vector length warnings.
491 * testsuite/libgomp.oacc-fortran/pr109622-4.f90: New test.
493 2023-04-28 Julian Brown <julian@codesourcery.com>
496 * testsuite/libgomp.fortran/pr109622.f90: New test.
497 * testsuite/libgomp.fortran/pr109622-2.f90: New test.
498 * testsuite/libgomp.fortran/pr109622-3.f90: New test.
500 2023-04-25 Tobias Burnus <tobias@codesourcery.com>
502 * testsuite/libgomp.c-c++-common/scan-1.c: New test.
503 * testsuite/libgomp.c/scan-23.c: New test.
504 * testsuite/libgomp.fortran/scan-2.f90: New test.
506 2023-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
508 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Add
509 weak_undefined options.
511 2023-03-24 Tobias Burnus <tobias@codesourcery.com>
513 * libgomp.texi (Offload-Target Specifics): Grammar fix.
515 2023-03-24 Thomas Schwinge <thomas@codesourcery.com>
518 * target.c (gomp_map_vars_internal) <GOMP_MAP_FIRSTPRIVATE>: Add
521 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
524 * target.c (gomp_map_vars_internal): Allow for
525 'param_kind == GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_TARGET'.
526 * oacc-parallel.c (GOACC_parallel_keyed): Pass
527 'GOMP_MAP_VARS_TARGET' to 'goacc_map_vars'.
528 * plugin/plugin-gcn.c (alloc_by_agent, gcn_exec)
529 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
531 (gomp_offload_free): Remove.
532 * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
533 (GOMP_OFFLOAD_openacc_async_exec): Adjust, simplify.
534 (cuda_free_argmem): Remove.
535 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
538 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
540 * target.c (gomp_copy_host2dev, gomp_map_vars_internal): Allow
541 libgomp 'cbuf' buffering with OpenACC 'async' for 'ephemeral'
544 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
546 * target.c (gomp_map_vars_internal): Use 'OFFSET_INLINED' for
547 'GOMP_MAP_IF_PRESENT'.
548 * plugin/plugin-gcn.c (gcn_exec, GOMP_OFFLOAD_openacc_exec)
549 (GOMP_OFFLOAD_openacc_async_exec): Adjust.
550 * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
551 (GOMP_OFFLOAD_openacc_async_exec): Likewise.
552 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: Add 'async'
554 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: Likewise.
556 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
558 * oacc-async.c (goacc_wait): Remove 'acc_async_test' -> skip
561 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
563 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Document/verify
564 another aspect of OpenACC 'async' semantics.
566 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
568 * plugin/plugin-gcn.c (gcn_exec): Fix 'acc_ev_enqueue_launch_end'
570 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
571 Verify 'acc_ev_alloc', 'acc_ev_free'.
573 2023-03-09 Hongyu Wang <hongyu.wang@intel.com>
576 * env.c (wait_policy): Initialize to -1.
577 (initialize_icvs): Initialize icvs->wait_policy to -1.
578 * testsuite/libgomp.c-c++-common/pr109062.c: New test.
580 2023-03-08 Tobias Burnus <tobias@codesourcery.com>
582 * libgomp.texi (Offload-Target Specifics): Mention GCN_STACK_SIZE.
584 2023-03-02 Kwok Cheung Yeung <kcy@codesourcery.com>
585 Paul-Antoine Arras <pa@codesourcery.com>
587 * testsuite/libgomp.c/simd-math-1.c: New testcase.
589 2023-03-01 Tobias Burnus <tobias@codesourcery.com>
592 * testsuite/libgomp.fortran/is_device_ptr-3.f90: New test.
593 * testsuite/libgomp.fortran/use_device_ptr-optional-4.f90: New test.
595 2023-02-22 Thomas Schwinge <thomas@codesourcery.com>
597 * testsuite/libgomp.fortran/alloc-10.f90: Use
598 '-Wno-complain-wrong-lang'.
599 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
600 * testsuite/libgomp.fortran/alloc-7.f90: Likewise.
601 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
602 * testsuite/libgomp.fortran/allocate-1.f90: Likewise.
603 * testsuite/libgomp.fortran/depend-4.f90: Likewise.
604 * testsuite/libgomp.fortran/depend-5.f90: Likewise.
605 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
606 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
607 * testsuite/libgomp.fortran/depend-inoutset-1.f90: Likewise.
608 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90:
610 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90:
612 * testsuite/libgomp.fortran/order-reproducible-1.f90: Likewise.
613 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
614 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
615 * testsuite/libgomp.fortran/task-detach-6.f90: Remove left-over
618 2023-02-16 Jakub Jelinek <jakub@redhat.com>
620 * libgomp.texi: Fix typos - theads -> threads.
622 2023-02-16 Jakub Jelinek <jakub@redhat.com>
624 * testsuite/libgomp.fortran/target-nowait-array-section.f90: Fix
625 comment typo and improve its wording.
627 2023-02-15 Tobias Burnus <tobias@codesourcery.com>
629 * target.c (gomp_target_rev): Dereference ptr
630 to get device address.
631 * testsuite/libgomp.fortran/reverse-offload-5.f90: Add test
632 for unallocated allocatable.
634 2023-02-15 Tobias Burnus <tobias@codesourcery.com>
636 * target.c (gomp_map_vars_internal): Add 'i > 0' before doing a
638 (GOMP_target_enter_exit_data): If the next map item is
639 GOMP_MAP_ALWAYS_POINTER map it together with the current item.
640 * testsuite/libgomp.fortran/target-enter-data-3.f90: New test.
642 2023-02-09 Tobias Burnus <tobias@codesourcery.com>
645 * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: New test.
646 * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: New test.
647 * testsuite/libgomp.fortran/non-rectangular-loop-2.f90: New test.
648 * testsuite/libgomp.fortran/non-rectangular-loop-3.f90: New test.
649 * testsuite/libgomp.fortran/non-rectangular-loop-4.f90: New test.
650 * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: New test.
652 2023-02-07 Thomas Schwinge <thomas@codesourcery.com>
654 * testsuite/libgomp.fortran/reverse-offload-6.f90: Fix nvptx
655 offloading compilation.
657 2023-02-03 Tobias Burnus <tobias@codesourcery.com>
659 * target.c (gomp_target_rev): Handle mapnum == 0 and avoid
660 freeing not allocated memory.
661 * testsuite/libgomp.fortran/reverse-offload-6.f90: New test.
663 2023-02-03 Tobias Burnus <tobias@codesourcery.com>
665 * libgomp.texi (5.0 Impl. Status, gcn specifics): Update for
667 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Accept
668 reverse-offload requirement.
670 2023-02-02 Andrew Stubbs <ams@codesourcery.com>
672 * config/gcn/libgomp-gcn.h (DEFAULT_GCN_STACK_SIZE): New define.
673 (DEFAULT_TEAM_ARENA_SIZE): New define.
674 (struct heap): Move to this file.
675 (struct kernargs_abi): Likewise.
676 * config/gcn/team.c (gomp_gcn_enter_kernel): Use team arena size from
678 * libgomp.h: Include libgomp-gcn.h.
679 (TEAM_ARENA_SIZE): Remove.
680 (team_malloc): Update the error message.
681 * plugin/plugin-gcn.c (struct kernargs): Move common content to
683 (struct agent_info): Rename team arenas to ephemeral memories.
684 (struct team_arena_list): Rename ....
685 (struct ephemeral_memories_list): to this.
686 (struct heap): Delete.
687 (team_arena_size): New variable.
688 (stack_size): New variable.
689 (print_kernel_dispatch): Update debug messages.
690 (init_environment_variables): Read GCN_TEAM_ARENA_SIZE.
692 (get_team_arena): Rename ...
693 (configure_ephemeral_memories): ... to this, and set up stacks.
694 (release_team_arena): Rename ...
695 (release_ephemeral_memories): ... to this.
696 (destroy_team_arenas): Rename ...
697 (destroy_ephemeral_memories): ... to this.
698 (create_kernel_dispatch): Add num_threads parameter.
699 Adjust for kernargs_abi refactor and ephemeral memories.
700 (release_kernel_dispatch): Adjust for ephemeral memories.
701 (run_kernel): Pass thread-count to create_kernel_dispatch.
702 (GOMP_OFFLOAD_init_device): Adjust for ephemeral memories.
703 (GOMP_OFFLOAD_fini_device): Adjust for ephemeral memories.
705 2023-02-02 Tobias Burnus <tobias@codesourcery.com>
707 * libgomp.texi (OpenMP TR11): Fix item for 'strict' modifier.
709 2023-02-01 Tobias Burnus <tobias@codesourcery.com>
711 * testsuite/libgomp.fortran/allocate-3.f90: Fix ALIGN
712 usage, remove unused -fdump-tree-original.
713 * testsuite/libgomp.fortran/allocate-4.f90: New.
715 2023-02-01 Tobias Burnus <tobias@codesourcery.com>
717 * libgomp.texi (5.0 Impl. Status): Update 'requires' and 'ancestor'.
718 (GCN): Add item about 'omp requires'.
719 (nvptx): Likewise; add item about reverse offload.
721 2023-01-27 Tobias Burnus <tobias@codesourcery.com>
724 * testsuite/libgomp.fortran/has_device_addr.f90: New test.
726 2023-01-23 Tobias Burnus <tobias@codesourcery.com>
728 * libgomp.texi (OpenMP 5.0): Set non-rectangular
729 loop nest back to 'P' as Fortran support is incomplete.
731 2023-01-19 Jakub Jelinek <jakub@redhat.com>
734 * testsuite/libgomp.c/pr108459.c: New test.
736 2023-01-17 Martin Liska <mliska@suse.cz>
738 * Makefile.in: Regenerate.
739 * configure: Regenerate.
741 2023-01-07 LIU Hao <lh_mouse@126.com>
744 * config/mingw32/proc.c: Define `WIN32_LEAN_AND_MEAN` before
747 2023-01-05 Jakub Jelinek <jakub@redhat.com>
750 * testsuite/libgomp.c++/pr108286.C: New test.
752 2023-01-02 Jakub Jelinek <jakub@redhat.com>
754 * libgomp.texi: Bump @copying's copyright year.
756 2022-12-21 Chung-Lin Tang <cltang@codesourcery.com>
759 * config/nvptx/bar.c (generation_to_barrier): Remove.
760 (futex_wait,futex_wake,do_spin,do_wait): Remove.
761 (GOMP_WAIT_H): Remove.
762 (#include "../linux/bar.c"): Remove.
763 (gomp_barrier_wait_end): New function.
764 (gomp_barrier_wait): Likewise.
765 (gomp_barrier_wait_last): Likewise.
766 (gomp_team_barrier_wait_end): Likewise.
767 (gomp_team_barrier_wait): Likewise.
768 (gomp_team_barrier_wait_final): Likewise.
769 (gomp_team_barrier_wait_cancel_end): Likewise.
770 (gomp_team_barrier_wait_cancel): Likewise.
771 (gomp_team_barrier_cancel): Likewise.
772 * config/nvptx/bar.h (gomp_barrier_t): Remove waiters, lock fields.
773 (gomp_barrier_init): Remove init of waiters, lock fields.
774 (gomp_team_barrier_wake): Remove prototype, add new static inline
777 2022-12-21 Jakub Jelinek <jakub@redhat.com>
780 * testsuite/libgomp.c++/pr108180.C: New test.
782 2022-12-16 Tobias Burnus <tobias@codesourcery.com>
785 * testsuite/libgomp.fortran/allocate-4.f90: Remove
786 accidentally added file.
788 2022-12-15 Tobias Burnus <tobias@codesourcery.com>
791 * testsuite/libgomp.fortran/allocate-4.f90: New file.
793 2022-12-14 Julian Brown <julian@codesourcery.com>
795 * testsuite/libgomp.fortran/combined-directive-splitting-1.f90: New
798 2022-12-10 Tobias Burnus <tobias@codesourcery.com>
800 * libgomp.h (struct target_mem_desc): Predeclare; move
801 below after 'reverse_splay_tree_node' and add rev_array
803 (struct reverse_splay_tree_key_s, reverse_splay_compare): New.
804 (reverse_splay_tree_node, reverse_splay_tree,
805 reverse_splay_tree_key): New typedef.
806 (struct gomp_device_descr): Add mem_map_rev member.
807 * oacc-host.c (host_dispatch): NULL init .mem_map_rev.
808 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Claim
809 support for GOMP_REQUIRES_REVERSE_OFFLOAD.
810 * splay-tree.h (splay_tree_callback_stop): New typedef; like
811 splay_tree_callback but returning int not void.
812 (splay_tree_foreach_lazy): Define; like splay_tree_foreach but
813 taking splay_tree_callback_stop as argument.
814 * splay-tree.c (splay_tree_foreach_internal_lazy,
815 splay_tree_foreach_lazy): New; but early exit if callback returns
817 * target.c: Instatiate splay_tree_c with splay_tree_prefix 'reverse'.
818 (gomp_map_lookup_rev): New.
819 (gomp_load_image_to_device): Handle reverse-offload function
821 (gomp_unload_image_from_device): Free devicep->mem_map_rev.
822 (struct gomp_splay_tree_rev_lookup_data, gomp_splay_tree_rev_lookup,
823 gomp_map_rev_lookup, struct cpy_data, gomp_map_cdata_lookup_int,
824 gomp_map_cdata_lookup): New auxiliary structs and functions for
826 (gomp_target_rev): Implement reverse offloading and its mapping.
827 (gomp_target_init): Init current_device.mem_map_rev.root.
828 * testsuite/libgomp.fortran/reverse-offload-2.f90: New test.
829 * testsuite/libgomp.fortran/reverse-offload-3.f90: New test.
830 * testsuite/libgomp.fortran/reverse-offload-4.f90: New test.
831 * testsuite/libgomp.fortran/reverse-offload-5.f90: New test.
832 * testsuite/libgomp.fortran/reverse-offload-5a.f90: New test without
833 mapping of on-device allocated variables.
835 2022-12-09 Tobias Burnus <tobias@codesourcery.com>
837 * libgomp.texi (5.1 Impl. Status): Split allocate clause/directive
838 item about 'align'; mark clause as 'Y' and directive as 'N'.
839 * testsuite/libgomp.fortran/allocate-2.f90: New test.
840 * testsuite/libgomp.fortran/allocate-3.f90: New test.
842 2022-12-06 Marcel Vollweiler <marcel@codesourcery.com>
844 * config/gcn/icv-device.c (omp_get_teams_thread_limit): Added to
845 allow processing of device-specific values.
846 (omp_set_teams_thread_limit): Likewise.
848 * config/nvptx/icv-device.c (omp_get_teams_thread_limit): Likewise.
849 (omp_set_teams_thread_limit): Likewise.
851 * icv-device.c (omp_get_teams_thread_limit): Likewise.
853 (omp_set_teams_thread_limit): Likewise.
854 * icv.c (omp_set_teams_thread_limit): Removed.
855 (omp_get_teams_thread_limit): Likewise.
857 * libgomp.texi: Updated documentation for nvptx and gcn corresponding
858 to the limitation of the number of teams.
859 * plugin/plugin-gcn.c (limit_teams): New helper function that limits
860 the number of teams by twice the number of compute units.
861 (parse_target_attributes): Limit the number of teams on gcn offload
863 * target.c (get_gomp_offload_icvs): Added teams_thread_limit_var
865 (gomp_load_image_to_device): Added a size check for the ICVs struct
867 (gomp_copy_back_icvs): New function that is used in GOMP_target_ext to
868 copy back the ICV values from device to host.
869 (GOMP_target_ext): Update the number of teams and threads in the kernel
870 args also considering device-specific values.
871 * testsuite/libgomp.c-c++-common/icv-4.c: Fixed an error in the reading
872 of OMP_TEAMS_THREAD_LIMIT from the environment.
873 * testsuite/libgomp.c-c++-common/icv-5.c: Extended.
874 * testsuite/libgomp.c-c++-common/icv-6.c: Extended.
875 * testsuite/libgomp.c-c++-common/icv-7.c: Extended.
876 * testsuite/libgomp.c-c++-common/icv-9.c: New test.
877 * testsuite/libgomp.fortran/icv-5.f90: New test.
878 * testsuite/libgomp.fortran/icv-6.f90: New test.
880 2022-12-06 Tobias Burnus <tobias@codesourcery.com>
882 * libgomp.texi (OpenMP 5.2): Add missing 'the'.
883 (TR11): Add missing '@tab N @tab'.
885 2022-11-30 Tobias Burnus <tobias@codesourcery.com>
887 * libgomp.texi (OpenMP Context Selectors): Add 'gfx803' to gcn's isa.
889 2022-11-30 Paul-Antoine Arras <pa@codesourcery.com>
891 * testsuite/libgomp.c/declare-variant-4-fiji.c: New test.
892 * testsuite/libgomp.c/declare-variant-4-gfx803.c: New test.
893 * testsuite/libgomp.c/declare-variant-4-gfx900.c: New test.
894 * testsuite/libgomp.c/declare-variant-4-gfx906.c: New test.
895 * testsuite/libgomp.c/declare-variant-4-gfx908.c: New test.
896 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: New test.
897 * testsuite/libgomp.c/declare-variant-4.h: New header file.
899 2022-11-28 Tobias Burnus <tobias@codesourcery.com>
901 * libgomp.texi (OpenMP 5.2): Mark end-directive as Y.
903 2022-11-25 Sandra Loosemore <sandra@codesourcery.com>
905 * testsuite/lib/libgomp.exp: Load scanoffloadipa.exp library.
906 * testsuite/libgomp.c/target-simd-clone-1.c: New.
907 * testsuite/libgomp.c/target-simd-clone-2.c: New.
908 * testsuite/libgomp.c/target-simd-clone-3.c: New.
910 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
912 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Use unsigned int
913 for 'i' to match 'fn_entries'; regard absent GOMP_REV_OFFLOAD_VAR
914 as valid and the code having no reverse-offload code.
915 * testsuite/libgomp.c-c++-common/reverse-offload-2.c: New test.
917 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
919 * libgomp.texi (OpenMP Implementation Status): Add three 5.1 items
920 and status for Technical Report (TR) 11.
922 2022-11-21 Tobias Burnus <tobias@codesourcery.com>
924 * config/gcn/libgomp-gcn.h (struct output):
925 Remove 'msg_u64' from the union, change
926 value_u64[2] to value_u64[6].
927 * config/gcn/target.c (GOMP_target_ext): Update accordingly.
928 * plugin/plugin-gcn.c (process_reverse_offload, console_output):
931 2022-11-19 Tobias Burnus <tobias@codesourcery.com>
933 * config/gcn/libgomp-gcn.h: New file; contains
934 struct output, declared previously in plugin-gcn.c.
935 * config/gcn/target.c: Include it.
936 (GOMP_ADDITIONAL_ICVS): Declare as extern var.
937 (GOMP_target_ext): Handle reverse offload.
938 * plugin/plugin-gcn.c: Include libgomp-gcn.h.
939 (struct kernargs): Replace struct def by the one
940 from libgomp-gcn.h for output_data.
941 (process_reverse_offload): New.
942 (console_output): Call it.
944 2022-11-16 Tobias Burnus <tobias@codesourcery.com>
945 Andrew Stubbs <ams@codesourcery.com>
947 * config/gcn/team.c (gomp_gcn_enter_kernel): Use
948 __builtin_gcn_kernarg_ptr instead of asm ("s8").
950 2022-11-14 Martin Liska <mliska@suse.cz>
953 2022-11-14 Martin Liska <mliska@suse.cz>
955 * doc/amd-radeon-gcn.rst: New file.
956 * doc/conf.py: New file.
957 * doc/copyright.rst: New file.
958 * doc/cuda-streams-usage.rst: New file.
959 * doc/enabling-openacc.rst: New file.
960 * doc/enabling-openmp.rst: New file.
961 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
962 * doc/first-invocation-openacc-library-api.rst: New file.
963 * doc/funding.rst: New file.
964 * doc/general-public-license-3.rst: New file.
965 * doc/gnu-free-documentation-license.rst: New file.
966 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
967 * doc/index.rst: New file.
968 * doc/indices-and-tables.rst: New file.
969 * doc/introduction.rst: New file.
970 * doc/memory-allocation-with-libmemkind.rst: New file.
971 * doc/nvptx.rst: New file.
972 * doc/offload-target-specifics.rst: New file.
973 * doc/openacc-environment-variables.rst: New file.
974 * doc/openacc-environment-variables/accdevicenum.rst: New file.
975 * doc/openacc-environment-variables/accdevicetype.rst: New file.
976 * doc/openacc-environment-variables/accproflib.rst: New file.
977 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
978 * doc/openacc-introduction.rst: New file.
979 * doc/openacc-library-and-environment-variables.rst: New file.
980 * doc/openacc-library-interoperability.rst: New file.
981 * doc/openacc-profiling-interface.rst: New file.
982 * doc/openacc-runtime-library-routines.rst: New file.
983 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
984 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
985 * doc/openacc-runtime-library-routines/accattach.rst: New file.
986 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
987 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
988 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
989 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
990 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
991 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
992 * doc/openacc-runtime-library-routines/accfree.rst: New file.
993 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
994 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
995 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
996 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
997 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
998 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
999 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
1000 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
1001 * doc/openacc-runtime-library-routines/accinit.rst: New file.
1002 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
1003 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
1004 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
1005 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
1006 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
1007 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
1008 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
1009 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
1010 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
1011 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
1012 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
1013 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1014 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
1015 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
1016 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
1017 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
1018 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
1019 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
1020 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
1021 * doc/openacc-runtime-library-routines/accwait.rst: New file.
1022 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
1023 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
1024 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
1025 * doc/openmp-context-selectors.rst: New file.
1026 * doc/openmp-environment-variables.rst: New file.
1027 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
1028 * doc/openmp-environment-variables/gompdebug.rst: New file.
1029 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
1030 * doc/openmp-environment-variables/gompspincount.rst: New file.
1031 * doc/openmp-environment-variables/gompstacksize.rst: New file.
1032 * doc/openmp-environment-variables/ompcancellation.rst: New file.
1033 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
1034 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
1035 * doc/openmp-environment-variables/ompdynamic.rst: New file.
1036 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
1037 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
1038 * doc/openmp-environment-variables/ompnested.rst: New file.
1039 * doc/openmp-environment-variables/ompnumteams.rst: New file.
1040 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
1041 * doc/openmp-environment-variables/ompplaces.rst: New file.
1042 * doc/openmp-environment-variables/ompprocbind.rst: New file.
1043 * doc/openmp-environment-variables/ompschedule.rst: New file.
1044 * doc/openmp-environment-variables/ompstacksize.rst: New file.
1045 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
1046 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
1047 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
1048 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
1049 * doc/openmp-implementation-specifics.rst: New file.
1050 * doc/openmp-implementation-status.rst: New file.
1051 * doc/openmp-implementation-status/openmp-45.rst: New file.
1052 * doc/openmp-implementation-status/openmp-50.rst: New file.
1053 * doc/openmp-implementation-status/openmp-51.rst: New file.
1054 * doc/openmp-implementation-status/openmp-52.rst: New file.
1055 * doc/openmp-runtime-library-routines.rst: New file.
1056 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
1057 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
1058 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
1059 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
1060 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
1061 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
1062 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
1063 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
1064 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
1065 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
1066 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
1067 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
1068 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
1069 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
1070 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
1071 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
1072 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
1073 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
1074 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
1075 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
1076 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
1077 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
1078 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
1079 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
1080 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
1081 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
1082 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
1083 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
1084 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
1085 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
1086 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
1087 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
1088 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
1089 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
1090 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
1091 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
1092 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
1093 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
1094 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
1095 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
1096 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
1097 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
1098 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
1099 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
1100 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
1101 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
1102 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
1103 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
1104 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
1105 * doc/reporting-bugs.rst: New file.
1106 * doc/the-libgomp-abi.rst: New file.
1107 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
1108 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
1109 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
1110 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1112 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
1113 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
1114 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
1115 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
1116 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
1117 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
1118 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
1119 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
1120 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
1121 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
1122 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
1124 2022-11-14 Martin Liska <mliska@suse.cz>
1127 2022-11-14 Martin Liska <mliska@suse.cz>
1129 * Makefile.in: Support Sphinx based documentation.
1131 2022-11-14 Martin Liska <mliska@suse.cz>
1134 2022-11-14 Martin Liska <mliska@suse.cz>
1136 * libgomp.texi: Removed.
1138 2022-11-14 Martin Liska <mliska@suse.cz>
1141 2022-11-14 Martin Liska <mliska@suse.cz>
1143 * Makefile.in: Support --with-sphinx-build.
1144 * configure.ac: Likewise..
1145 * configure: Regenerate.
1147 2022-11-14 Martin Liska <mliska@suse.cz>
1150 2022-11-09 Martin Liska <mliska@suse.cz>
1152 * Makefile.in: Build info pages conditionally.
1154 2022-11-14 Martin Liska <mliska@suse.cz>
1157 2022-11-14 Martin Liska <mliska@suse.cz>
1159 * doc/amd-radeon-gcn.rst:
1160 Add trailing newline.
1161 * doc/copyright.rst:
1162 Add trailing newline.
1163 * doc/cuda-streams-usage.rst:
1164 Add trailing newline.
1165 * doc/enabling-openacc.rst:
1166 Add trailing newline.
1167 * doc/enabling-openmp.rst:
1168 Add trailing newline.
1169 * doc/first-invocation-nvidia-cublas-library-api.rst:
1170 Add trailing newline.
1171 * doc/first-invocation-openacc-library-api.rst:
1172 Add trailing newline.
1174 Add trailing newline.
1175 * doc/general-public-license-3.rst:
1176 Add trailing newline.
1177 * doc/gnu-free-documentation-license.rst:
1178 Add trailing newline.
1179 * doc/implementation-status-and-implementation-defined-behavior.rst:
1180 Add trailing newline.
1182 Add trailing newline.
1183 * doc/indices-and-tables.rst:
1184 Add trailing newline.
1185 * doc/introduction.rst:
1186 Add trailing newline.
1187 * doc/memory-allocation-with-libmemkind.rst:
1188 Add trailing newline.
1190 Add trailing newline.
1191 * doc/offload-target-specifics.rst:
1192 Add trailing newline.
1193 * doc/openacc-environment-variables.rst:
1194 Add trailing newline.
1195 * doc/openacc-environment-variables/accdevicenum.rst:
1196 Add trailing newline.
1197 * doc/openacc-environment-variables/accdevicetype.rst:
1198 Add trailing newline.
1199 * doc/openacc-environment-variables/accproflib.rst:
1200 Add trailing newline.
1201 * doc/openacc-environment-variables/gccaccnotify.rst:
1202 Add trailing newline.
1203 * doc/openacc-introduction.rst:
1204 Add trailing newline.
1205 * doc/openacc-library-and-environment-variables.rst:
1206 Add trailing newline.
1207 * doc/openacc-library-interoperability.rst:
1208 Add trailing newline.
1209 * doc/openacc-profiling-interface.rst:
1210 Add trailing newline.
1211 * doc/openacc-runtime-library-routines.rst:
1212 Add trailing newline.
1213 * doc/openacc-runtime-library-routines/accasynctest.rst:
1214 Add trailing newline.
1215 * doc/openacc-runtime-library-routines/accasynctestall.rst:
1216 Add trailing newline.
1217 * doc/openacc-runtime-library-routines/accattach.rst:
1218 Add trailing newline.
1219 * doc/openacc-runtime-library-routines/acccopyin.rst:
1220 Add trailing newline.
1221 * doc/openacc-runtime-library-routines/acccopyout.rst:
1222 Add trailing newline.
1223 * doc/openacc-runtime-library-routines/acccreate.rst:
1224 Add trailing newline.
1225 * doc/openacc-runtime-library-routines/accdelete.rst:
1226 Add trailing newline.
1227 * doc/openacc-runtime-library-routines/accdetach.rst:
1228 Add trailing newline.
1229 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
1230 Add trailing newline.
1231 * doc/openacc-runtime-library-routines/accfree.rst:
1232 Add trailing newline.
1233 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
1234 Add trailing newline.
1235 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
1236 Add trailing newline.
1237 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
1238 Add trailing newline.
1239 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
1240 Add trailing newline.
1241 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
1242 Add trailing newline.
1243 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
1244 Add trailing newline.
1245 * doc/openacc-runtime-library-routines/accgetproperty.rst:
1246 Add trailing newline.
1247 * doc/openacc-runtime-library-routines/acchostptr.rst:
1248 Add trailing newline.
1249 * doc/openacc-runtime-library-routines/accinit.rst:
1250 Add trailing newline.
1251 * doc/openacc-runtime-library-routines/accispresent.rst:
1252 Add trailing newline.
1253 * doc/openacc-runtime-library-routines/accmalloc.rst:
1254 Add trailing newline.
1255 * doc/openacc-runtime-library-routines/accmapdata.rst:
1256 Add trailing newline.
1257 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
1258 Add trailing newline.
1259 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
1260 Add trailing newline.
1261 * doc/openacc-runtime-library-routines/accondevice.rst:
1262 Add trailing newline.
1263 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
1264 Add trailing newline.
1265 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
1266 Add trailing newline.
1267 * doc/openacc-runtime-library-routines/accproflookup.rst:
1268 Add trailing newline.
1269 * doc/openacc-runtime-library-routines/accprofregister.rst:
1270 Add trailing newline.
1271 * doc/openacc-runtime-library-routines/accprofunregister.rst:
1272 Add trailing newline.
1273 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
1274 Add trailing newline.
1275 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
1276 Add trailing newline.
1277 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
1278 Add trailing newline.
1279 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
1280 Add trailing newline.
1281 * doc/openacc-runtime-library-routines/accshutdown.rst:
1282 Add trailing newline.
1283 * doc/openacc-runtime-library-routines/accunmapdata.rst:
1284 Add trailing newline.
1285 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
1286 Add trailing newline.
1287 * doc/openacc-runtime-library-routines/accupdateself.rst:
1288 Add trailing newline.
1289 * doc/openacc-runtime-library-routines/accwait.rst:
1290 Add trailing newline.
1291 * doc/openacc-runtime-library-routines/accwaitall.rst:
1292 Add trailing newline.
1293 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
1294 Add trailing newline.
1295 * doc/openacc-runtime-library-routines/accwaitasync.rst:
1296 Add trailing newline.
1297 * doc/openmp-context-selectors.rst:
1298 Add trailing newline.
1299 * doc/openmp-environment-variables.rst:
1300 Add trailing newline.
1301 * doc/openmp-environment-variables/gompcpuaffinity.rst:
1302 Add trailing newline.
1303 * doc/openmp-environment-variables/gompdebug.rst:
1304 Add trailing newline.
1305 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
1306 Add trailing newline.
1307 * doc/openmp-environment-variables/gompspincount.rst:
1308 Add trailing newline.
1309 * doc/openmp-environment-variables/gompstacksize.rst:
1310 Add trailing newline.
1311 * doc/openmp-environment-variables/ompcancellation.rst:
1312 Add trailing newline.
1313 * doc/openmp-environment-variables/ompdefaultdevice.rst:
1314 Add trailing newline.
1315 * doc/openmp-environment-variables/ompdisplayenv.rst:
1316 Add trailing newline.
1317 * doc/openmp-environment-variables/ompdynamic.rst:
1318 Add trailing newline.
1319 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
1320 Add trailing newline.
1321 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
1322 Add trailing newline.
1323 * doc/openmp-environment-variables/ompnested.rst:
1324 Add trailing newline.
1325 * doc/openmp-environment-variables/ompnumteams.rst:
1326 Add trailing newline.
1327 * doc/openmp-environment-variables/ompnumthreads.rst:
1328 Add trailing newline.
1329 * doc/openmp-environment-variables/ompplaces.rst:
1330 Add trailing newline.
1331 * doc/openmp-environment-variables/ompprocbind.rst:
1332 Add trailing newline.
1333 * doc/openmp-environment-variables/ompschedule.rst:
1334 Add trailing newline.
1335 * doc/openmp-environment-variables/ompstacksize.rst:
1336 Add trailing newline.
1337 * doc/openmp-environment-variables/omptargetoffload.rst:
1338 Add trailing newline.
1339 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
1340 Add trailing newline.
1341 * doc/openmp-environment-variables/ompthreadlimit.rst:
1342 Add trailing newline.
1343 * doc/openmp-environment-variables/ompwaitpolicy.rst:
1344 Add trailing newline.
1345 * doc/openmp-implementation-specifics.rst:
1346 Add trailing newline.
1347 * doc/openmp-implementation-status.rst:
1348 Add trailing newline.
1349 * doc/openmp-implementation-status/openmp-45.rst:
1350 Add trailing newline.
1351 * doc/openmp-implementation-status/openmp-50.rst:
1352 Add trailing newline.
1353 * doc/openmp-implementation-status/openmp-51.rst:
1354 Add trailing newline.
1355 * doc/openmp-implementation-status/openmp-52.rst:
1356 Add trailing newline.
1357 * doc/openmp-runtime-library-routines.rst:
1358 Add trailing newline.
1359 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
1360 Add trailing newline.
1361 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
1362 Add trailing newline.
1363 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
1364 Add trailing newline.
1365 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
1366 Add trailing newline.
1367 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
1368 Add trailing newline.
1369 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
1370 Add trailing newline.
1371 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
1372 Add trailing newline.
1373 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
1374 Add trailing newline.
1375 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
1376 Add trailing newline.
1377 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
1378 Add trailing newline.
1379 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
1380 Add trailing newline.
1381 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
1382 Add trailing newline.
1383 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
1384 Add trailing newline.
1385 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
1386 Add trailing newline.
1387 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
1388 Add trailing newline.
1389 * doc/openmp-runtime-library-routines/ompgetnested.rst:
1390 Add trailing newline.
1391 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
1392 Add trailing newline.
1393 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
1394 Add trailing newline.
1395 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
1396 Add trailing newline.
1397 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
1398 Add trailing newline.
1399 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
1400 Add trailing newline.
1401 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
1402 Add trailing newline.
1403 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
1404 Add trailing newline.
1405 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
1406 Add trailing newline.
1407 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
1408 Add trailing newline.
1409 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
1410 Add trailing newline.
1411 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
1412 Add trailing newline.
1413 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
1414 Add trailing newline.
1415 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
1416 Add trailing newline.
1417 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
1418 Add trailing newline.
1419 * doc/openmp-runtime-library-routines/ompinfinal.rst:
1420 Add trailing newline.
1421 * doc/openmp-runtime-library-routines/ompinitlock.rst:
1422 Add trailing newline.
1423 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
1424 Add trailing newline.
1425 * doc/openmp-runtime-library-routines/ompinparallel.rst:
1426 Add trailing newline.
1427 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
1428 Add trailing newline.
1429 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
1430 Add trailing newline.
1431 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
1432 Add trailing newline.
1433 * doc/openmp-runtime-library-routines/ompsetlock.rst:
1434 Add trailing newline.
1435 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
1436 Add trailing newline.
1437 * doc/openmp-runtime-library-routines/ompsetnested.rst:
1438 Add trailing newline.
1439 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
1440 Add trailing newline.
1441 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
1442 Add trailing newline.
1443 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
1444 Add trailing newline.
1445 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
1446 Add trailing newline.
1447 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
1448 Add trailing newline.
1449 * doc/openmp-runtime-library-routines/omptestlock.rst:
1450 Add trailing newline.
1451 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
1452 Add trailing newline.
1453 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
1454 Add trailing newline.
1455 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
1456 Add trailing newline.
1457 * doc/reporting-bugs.rst:
1458 Add trailing newline.
1459 * doc/the-libgomp-abi.rst:
1460 Add trailing newline.
1461 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
1462 Add trailing newline.
1463 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
1464 Add trailing newline.
1465 * doc/the-libgomp-abi/implementing-critical-construct.rst:
1466 Add trailing newline.
1467 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1468 Add trailing newline.
1469 * doc/the-libgomp-abi/implementing-flush-construct.rst:
1470 Add trailing newline.
1471 * doc/the-libgomp-abi/implementing-for-construct.rst:
1472 Add trailing newline.
1473 * doc/the-libgomp-abi/implementing-master-construct.rst:
1474 Add trailing newline.
1475 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
1476 Add trailing newline.
1477 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
1478 Add trailing newline.
1479 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
1480 Add trailing newline.
1481 * doc/the-libgomp-abi/implementing-private-clause.rst:
1482 Add trailing newline.
1483 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
1484 Add trailing newline.
1485 * doc/the-libgomp-abi/implementing-sections-construct.rst:
1486 Add trailing newline.
1487 * doc/the-libgomp-abi/implementing-single-construct.rst:
1488 Add trailing newline.
1489 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
1490 Add trailing newline.
1492 2022-11-14 Martin Liska <mliska@suse.cz>
1495 2022-11-09 Martin Liska <mliska@suse.cz>
1497 * Makefile.in: Add missing HAS_SPHINX_BUILD.
1499 2022-11-14 Martin Liska <mliska@suse.cz>
1502 2022-11-14 Martin Liska <mliska@suse.cz>
1504 * doc/conf.py: Add newline at last line.
1506 2022-11-14 Martin Liska <mliska@suse.cz>
1509 2022-11-14 Martin Liska <mliska@suse.cz>
1512 * configure: Regenerate.
1513 * configure.ac: Always set sphinx-build.
1515 2022-11-13 Martin Liska <mliska@suse.cz>
1518 * configure: Regenerate.
1519 * configure.ac: Always set sphinx-build.
1521 2022-11-12 Jakub Jelinek <jakub@redhat.com>
1524 * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
1525 unsigned long. Change type of upper from unsigned to unsigned long.
1527 2022-11-10 Martin Liska <mliska@suse.cz>
1529 * doc/conf.py: Add newline at last line.
1531 2022-11-09 Martin Liska <mliska@suse.cz>
1533 * Makefile.in: Add missing HAS_SPHINX_BUILD.
1535 2022-11-09 Martin Liska <mliska@suse.cz>
1537 * doc/amd-radeon-gcn.rst:
1538 Add trailing newline.
1539 * doc/copyright.rst:
1540 Add trailing newline.
1541 * doc/cuda-streams-usage.rst:
1542 Add trailing newline.
1543 * doc/enabling-openacc.rst:
1544 Add trailing newline.
1545 * doc/enabling-openmp.rst:
1546 Add trailing newline.
1547 * doc/first-invocation-nvidia-cublas-library-api.rst:
1548 Add trailing newline.
1549 * doc/first-invocation-openacc-library-api.rst:
1550 Add trailing newline.
1552 Add trailing newline.
1553 * doc/general-public-license-3.rst:
1554 Add trailing newline.
1555 * doc/gnu-free-documentation-license.rst:
1556 Add trailing newline.
1557 * doc/implementation-status-and-implementation-defined-behavior.rst:
1558 Add trailing newline.
1560 Add trailing newline.
1561 * doc/indices-and-tables.rst:
1562 Add trailing newline.
1563 * doc/introduction.rst:
1564 Add trailing newline.
1565 * doc/memory-allocation-with-libmemkind.rst:
1566 Add trailing newline.
1568 Add trailing newline.
1569 * doc/offload-target-specifics.rst:
1570 Add trailing newline.
1571 * doc/openacc-environment-variables.rst:
1572 Add trailing newline.
1573 * doc/openacc-environment-variables/accdevicenum.rst:
1574 Add trailing newline.
1575 * doc/openacc-environment-variables/accdevicetype.rst:
1576 Add trailing newline.
1577 * doc/openacc-environment-variables/accproflib.rst:
1578 Add trailing newline.
1579 * doc/openacc-environment-variables/gccaccnotify.rst:
1580 Add trailing newline.
1581 * doc/openacc-introduction.rst:
1582 Add trailing newline.
1583 * doc/openacc-library-and-environment-variables.rst:
1584 Add trailing newline.
1585 * doc/openacc-library-interoperability.rst:
1586 Add trailing newline.
1587 * doc/openacc-profiling-interface.rst:
1588 Add trailing newline.
1589 * doc/openacc-runtime-library-routines.rst:
1590 Add trailing newline.
1591 * doc/openacc-runtime-library-routines/accasynctest.rst:
1592 Add trailing newline.
1593 * doc/openacc-runtime-library-routines/accasynctestall.rst:
1594 Add trailing newline.
1595 * doc/openacc-runtime-library-routines/accattach.rst:
1596 Add trailing newline.
1597 * doc/openacc-runtime-library-routines/acccopyin.rst:
1598 Add trailing newline.
1599 * doc/openacc-runtime-library-routines/acccopyout.rst:
1600 Add trailing newline.
1601 * doc/openacc-runtime-library-routines/acccreate.rst:
1602 Add trailing newline.
1603 * doc/openacc-runtime-library-routines/accdelete.rst:
1604 Add trailing newline.
1605 * doc/openacc-runtime-library-routines/accdetach.rst:
1606 Add trailing newline.
1607 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
1608 Add trailing newline.
1609 * doc/openacc-runtime-library-routines/accfree.rst:
1610 Add trailing newline.
1611 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
1612 Add trailing newline.
1613 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
1614 Add trailing newline.
1615 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
1616 Add trailing newline.
1617 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
1618 Add trailing newline.
1619 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
1620 Add trailing newline.
1621 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
1622 Add trailing newline.
1623 * doc/openacc-runtime-library-routines/accgetproperty.rst:
1624 Add trailing newline.
1625 * doc/openacc-runtime-library-routines/acchostptr.rst:
1626 Add trailing newline.
1627 * doc/openacc-runtime-library-routines/accinit.rst:
1628 Add trailing newline.
1629 * doc/openacc-runtime-library-routines/accispresent.rst:
1630 Add trailing newline.
1631 * doc/openacc-runtime-library-routines/accmalloc.rst:
1632 Add trailing newline.
1633 * doc/openacc-runtime-library-routines/accmapdata.rst:
1634 Add trailing newline.
1635 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
1636 Add trailing newline.
1637 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
1638 Add trailing newline.
1639 * doc/openacc-runtime-library-routines/accondevice.rst:
1640 Add trailing newline.
1641 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
1642 Add trailing newline.
1643 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
1644 Add trailing newline.
1645 * doc/openacc-runtime-library-routines/accproflookup.rst:
1646 Add trailing newline.
1647 * doc/openacc-runtime-library-routines/accprofregister.rst:
1648 Add trailing newline.
1649 * doc/openacc-runtime-library-routines/accprofunregister.rst:
1650 Add trailing newline.
1651 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
1652 Add trailing newline.
1653 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
1654 Add trailing newline.
1655 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
1656 Add trailing newline.
1657 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
1658 Add trailing newline.
1659 * doc/openacc-runtime-library-routines/accshutdown.rst:
1660 Add trailing newline.
1661 * doc/openacc-runtime-library-routines/accunmapdata.rst:
1662 Add trailing newline.
1663 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
1664 Add trailing newline.
1665 * doc/openacc-runtime-library-routines/accupdateself.rst:
1666 Add trailing newline.
1667 * doc/openacc-runtime-library-routines/accwait.rst:
1668 Add trailing newline.
1669 * doc/openacc-runtime-library-routines/accwaitall.rst:
1670 Add trailing newline.
1671 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
1672 Add trailing newline.
1673 * doc/openacc-runtime-library-routines/accwaitasync.rst:
1674 Add trailing newline.
1675 * doc/openmp-context-selectors.rst:
1676 Add trailing newline.
1677 * doc/openmp-environment-variables.rst:
1678 Add trailing newline.
1679 * doc/openmp-environment-variables/gompcpuaffinity.rst:
1680 Add trailing newline.
1681 * doc/openmp-environment-variables/gompdebug.rst:
1682 Add trailing newline.
1683 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
1684 Add trailing newline.
1685 * doc/openmp-environment-variables/gompspincount.rst:
1686 Add trailing newline.
1687 * doc/openmp-environment-variables/gompstacksize.rst:
1688 Add trailing newline.
1689 * doc/openmp-environment-variables/ompcancellation.rst:
1690 Add trailing newline.
1691 * doc/openmp-environment-variables/ompdefaultdevice.rst:
1692 Add trailing newline.
1693 * doc/openmp-environment-variables/ompdisplayenv.rst:
1694 Add trailing newline.
1695 * doc/openmp-environment-variables/ompdynamic.rst:
1696 Add trailing newline.
1697 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
1698 Add trailing newline.
1699 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
1700 Add trailing newline.
1701 * doc/openmp-environment-variables/ompnested.rst:
1702 Add trailing newline.
1703 * doc/openmp-environment-variables/ompnumteams.rst:
1704 Add trailing newline.
1705 * doc/openmp-environment-variables/ompnumthreads.rst:
1706 Add trailing newline.
1707 * doc/openmp-environment-variables/ompplaces.rst:
1708 Add trailing newline.
1709 * doc/openmp-environment-variables/ompprocbind.rst:
1710 Add trailing newline.
1711 * doc/openmp-environment-variables/ompschedule.rst:
1712 Add trailing newline.
1713 * doc/openmp-environment-variables/ompstacksize.rst:
1714 Add trailing newline.
1715 * doc/openmp-environment-variables/omptargetoffload.rst:
1716 Add trailing newline.
1717 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
1718 Add trailing newline.
1719 * doc/openmp-environment-variables/ompthreadlimit.rst:
1720 Add trailing newline.
1721 * doc/openmp-environment-variables/ompwaitpolicy.rst:
1722 Add trailing newline.
1723 * doc/openmp-implementation-specifics.rst:
1724 Add trailing newline.
1725 * doc/openmp-implementation-status.rst:
1726 Add trailing newline.
1727 * doc/openmp-implementation-status/openmp-45.rst:
1728 Add trailing newline.
1729 * doc/openmp-implementation-status/openmp-50.rst:
1730 Add trailing newline.
1731 * doc/openmp-implementation-status/openmp-51.rst:
1732 Add trailing newline.
1733 * doc/openmp-implementation-status/openmp-52.rst:
1734 Add trailing newline.
1735 * doc/openmp-runtime-library-routines.rst:
1736 Add trailing newline.
1737 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
1738 Add trailing newline.
1739 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
1740 Add trailing newline.
1741 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
1742 Add trailing newline.
1743 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
1744 Add trailing newline.
1745 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
1746 Add trailing newline.
1747 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
1748 Add trailing newline.
1749 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
1750 Add trailing newline.
1751 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
1752 Add trailing newline.
1753 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
1754 Add trailing newline.
1755 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
1756 Add trailing newline.
1757 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
1758 Add trailing newline.
1759 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
1760 Add trailing newline.
1761 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
1762 Add trailing newline.
1763 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
1764 Add trailing newline.
1765 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
1766 Add trailing newline.
1767 * doc/openmp-runtime-library-routines/ompgetnested.rst:
1768 Add trailing newline.
1769 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
1770 Add trailing newline.
1771 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
1772 Add trailing newline.
1773 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
1774 Add trailing newline.
1775 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
1776 Add trailing newline.
1777 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
1778 Add trailing newline.
1779 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
1780 Add trailing newline.
1781 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
1782 Add trailing newline.
1783 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
1784 Add trailing newline.
1785 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
1786 Add trailing newline.
1787 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
1788 Add trailing newline.
1789 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
1790 Add trailing newline.
1791 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
1792 Add trailing newline.
1793 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
1794 Add trailing newline.
1795 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
1796 Add trailing newline.
1797 * doc/openmp-runtime-library-routines/ompinfinal.rst:
1798 Add trailing newline.
1799 * doc/openmp-runtime-library-routines/ompinitlock.rst:
1800 Add trailing newline.
1801 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
1802 Add trailing newline.
1803 * doc/openmp-runtime-library-routines/ompinparallel.rst:
1804 Add trailing newline.
1805 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
1806 Add trailing newline.
1807 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
1808 Add trailing newline.
1809 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
1810 Add trailing newline.
1811 * doc/openmp-runtime-library-routines/ompsetlock.rst:
1812 Add trailing newline.
1813 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
1814 Add trailing newline.
1815 * doc/openmp-runtime-library-routines/ompsetnested.rst:
1816 Add trailing newline.
1817 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
1818 Add trailing newline.
1819 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
1820 Add trailing newline.
1821 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
1822 Add trailing newline.
1823 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
1824 Add trailing newline.
1825 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
1826 Add trailing newline.
1827 * doc/openmp-runtime-library-routines/omptestlock.rst:
1828 Add trailing newline.
1829 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
1830 Add trailing newline.
1831 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
1832 Add trailing newline.
1833 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
1834 Add trailing newline.
1835 * doc/reporting-bugs.rst:
1836 Add trailing newline.
1837 * doc/the-libgomp-abi.rst:
1838 Add trailing newline.
1839 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
1840 Add trailing newline.
1841 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
1842 Add trailing newline.
1843 * doc/the-libgomp-abi/implementing-critical-construct.rst:
1844 Add trailing newline.
1845 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1846 Add trailing newline.
1847 * doc/the-libgomp-abi/implementing-flush-construct.rst:
1848 Add trailing newline.
1849 * doc/the-libgomp-abi/implementing-for-construct.rst:
1850 Add trailing newline.
1851 * doc/the-libgomp-abi/implementing-master-construct.rst:
1852 Add trailing newline.
1853 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
1854 Add trailing newline.
1855 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
1856 Add trailing newline.
1857 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
1858 Add trailing newline.
1859 * doc/the-libgomp-abi/implementing-private-clause.rst:
1860 Add trailing newline.
1861 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
1862 Add trailing newline.
1863 * doc/the-libgomp-abi/implementing-sections-construct.rst:
1864 Add trailing newline.
1865 * doc/the-libgomp-abi/implementing-single-construct.rst:
1866 Add trailing newline.
1867 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
1868 Add trailing newline.
1870 2022-11-09 Martin Liska <mliska@suse.cz>
1872 * Makefile.in: Build info pages conditionally.
1874 2022-11-09 Martin Liska <mliska@suse.cz>
1876 * Makefile.in: Support --with-sphinx-build.
1877 * configure.ac: Likewise..
1878 * configure: Regenerate.
1880 2022-11-09 Martin Liska <mliska@suse.cz>
1882 * libgomp.texi: Removed.
1884 2022-11-09 Martin Liska <mliska@suse.cz>
1886 * Makefile.in: Support Sphinx based documentation.
1888 2022-11-09 Martin Liska <mliska@suse.cz>
1890 * doc/amd-radeon-gcn.rst: New file.
1891 * doc/conf.py: New file.
1892 * doc/copyright.rst: New file.
1893 * doc/cuda-streams-usage.rst: New file.
1894 * doc/enabling-openacc.rst: New file.
1895 * doc/enabling-openmp.rst: New file.
1896 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
1897 * doc/first-invocation-openacc-library-api.rst: New file.
1898 * doc/funding.rst: New file.
1899 * doc/general-public-license-3.rst: New file.
1900 * doc/gnu-free-documentation-license.rst: New file.
1901 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
1902 * doc/index.rst: New file.
1903 * doc/indices-and-tables.rst: New file.
1904 * doc/introduction.rst: New file.
1905 * doc/memory-allocation-with-libmemkind.rst: New file.
1906 * doc/nvptx.rst: New file.
1907 * doc/offload-target-specifics.rst: New file.
1908 * doc/openacc-environment-variables.rst: New file.
1909 * doc/openacc-environment-variables/accdevicenum.rst: New file.
1910 * doc/openacc-environment-variables/accdevicetype.rst: New file.
1911 * doc/openacc-environment-variables/accproflib.rst: New file.
1912 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
1913 * doc/openacc-introduction.rst: New file.
1914 * doc/openacc-library-and-environment-variables.rst: New file.
1915 * doc/openacc-library-interoperability.rst: New file.
1916 * doc/openacc-profiling-interface.rst: New file.
1917 * doc/openacc-runtime-library-routines.rst: New file.
1918 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
1919 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
1920 * doc/openacc-runtime-library-routines/accattach.rst: New file.
1921 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
1922 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
1923 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
1924 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
1925 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
1926 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
1927 * doc/openacc-runtime-library-routines/accfree.rst: New file.
1928 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
1929 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
1930 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
1931 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
1932 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
1933 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
1934 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
1935 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
1936 * doc/openacc-runtime-library-routines/accinit.rst: New file.
1937 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
1938 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
1939 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
1940 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
1941 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
1942 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
1943 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
1944 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
1945 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
1946 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
1947 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
1948 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1949 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
1950 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
1951 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
1952 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
1953 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
1954 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
1955 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
1956 * doc/openacc-runtime-library-routines/accwait.rst: New file.
1957 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
1958 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
1959 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
1960 * doc/openmp-context-selectors.rst: New file.
1961 * doc/openmp-environment-variables.rst: New file.
1962 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
1963 * doc/openmp-environment-variables/gompdebug.rst: New file.
1964 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
1965 * doc/openmp-environment-variables/gompspincount.rst: New file.
1966 * doc/openmp-environment-variables/gompstacksize.rst: New file.
1967 * doc/openmp-environment-variables/ompcancellation.rst: New file.
1968 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
1969 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
1970 * doc/openmp-environment-variables/ompdynamic.rst: New file.
1971 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
1972 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
1973 * doc/openmp-environment-variables/ompnested.rst: New file.
1974 * doc/openmp-environment-variables/ompnumteams.rst: New file.
1975 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
1976 * doc/openmp-environment-variables/ompplaces.rst: New file.
1977 * doc/openmp-environment-variables/ompprocbind.rst: New file.
1978 * doc/openmp-environment-variables/ompschedule.rst: New file.
1979 * doc/openmp-environment-variables/ompstacksize.rst: New file.
1980 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
1981 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
1982 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
1983 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
1984 * doc/openmp-implementation-specifics.rst: New file.
1985 * doc/openmp-implementation-status.rst: New file.
1986 * doc/openmp-implementation-status/openmp-45.rst: New file.
1987 * doc/openmp-implementation-status/openmp-50.rst: New file.
1988 * doc/openmp-implementation-status/openmp-51.rst: New file.
1989 * doc/openmp-implementation-status/openmp-52.rst: New file.
1990 * doc/openmp-runtime-library-routines.rst: New file.
1991 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
1992 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
1993 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
1994 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
1995 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
1996 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
1997 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
1998 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
1999 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
2000 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
2001 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
2002 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
2003 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
2004 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
2005 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
2006 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
2007 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
2008 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
2009 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
2010 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
2011 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
2012 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
2013 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
2014 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
2015 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
2016 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
2017 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
2018 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
2019 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
2020 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
2021 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
2022 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
2023 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
2024 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
2025 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
2026 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
2027 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
2028 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
2029 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
2030 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
2031 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
2032 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
2033 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
2034 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
2035 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
2036 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
2037 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
2038 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
2039 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
2040 * doc/reporting-bugs.rst: New file.
2041 * doc/the-libgomp-abi.rst: New file.
2042 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
2043 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
2044 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
2045 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2047 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
2048 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
2049 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
2050 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
2051 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
2052 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
2053 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
2054 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
2055 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
2056 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
2057 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
2059 2022-11-04 Thomas Schwinge <thomas@codesourcery.com>
2061 * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
2062 * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
2064 * plugin/configfrag.ac <enable_offload_targets>
2065 [*-intelmic-* | *-intelmicemul-*]: Remove.
2066 * configure: Regenerate.
2067 * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
2069 (offload_target_to_openacc_device_type)
2070 [$offload_target = *-intelmic*]: Remove.
2071 (check_effective_target_offload_device_intel_mic)
2072 (check_effective_target_offload_device_any_intel_mic): Remove.
2073 * testsuite/libgomp.c-c++-common/on_device_arch.h
2074 (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
2075 (any_device_arch_intel_mic): Remove.
2076 * testsuite/libgomp.c-c++-common/target-45.c: Remove
2077 'offload_device_any_intel_mic' XFAIL.
2078 * testsuite/libgomp.fortran/target10.f90: Likewise.
2080 2022-11-03 Tobias Burnus <tobias@codesourcery.com>
2082 * testsuite/libgomp.fortran/target-11.f90: New test.
2083 * testsuite/libgomp.fortran/target-13.f90: New test.
2085 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2089 * oacc-mem.c (goacc_enter_data_internal): Support
2090 OpenACC 'declare create' with Fortran allocatable arrays, part II.
2091 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2093 * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
2095 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2098 * oacc-mem.c (goacc_enter_data_internal): Support
2099 OpenACC 'declare create' with Fortran allocatable arrays, part I.
2100 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
2102 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2105 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2107 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
2110 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2112 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
2115 2022-11-02 Cesar Philippidis <cesar@codesourcery.com>
2116 Thomas Schwinge <thomas@codesourcery.com>
2118 * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
2120 2022-10-28 Julian Brown <julian@codesourcery.com>
2121 Thomas Schwinge <thomas@codesourcery.com>
2124 * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
2125 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
2126 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2127 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
2128 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2130 2022-10-24 Thomas Schwinge <thomas@codesourcery.com>
2132 * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
2133 'ptx_dev->rev_data'.
2135 2022-10-24 Tobias Burnus <tobias@codesourcery.com>
2137 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
2138 'static' for this variable.
2139 * config/nvptx/libgomp-nvptx.h: New file.
2140 * config/nvptx/target.c: Include it.
2141 (GOMP_ADDITIONAL_ICVS): Declare extern var.
2142 (GOMP_REV_OFFLOAD_VAR): Declare var.
2143 (GOMP_target_ext): Handle reverse offload.
2144 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
2145 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
2146 * target.c (gomp_target_rev): ... this new stub function.
2147 * libgomp.h (gomp_target_rev): Declare.
2148 * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
2149 * plugin/cuda-lib.def (cuMemHostAlloc): Add.
2150 * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
2151 (struct ptx_device): Add rev_data member.
2152 (nvptx_open_device): Remove async_engines query, last used in
2153 r10-304-g1f4c5b9b; add unified-address assert check.
2154 (GOMP_OFFLOAD_get_num_devices): Claim unified address
2156 (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
2157 offload functions exist. Make offload var available
2159 (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
2160 (GOMP_OFFLOAD_run): Handle reverse offload.
2162 2022-10-21 Thomas Schwinge <thomas@codesourcery.com>
2164 PR tree-optimization/107195
2166 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
2169 2022-10-20 Tobias Burnus <tobias@codesourcery.com>
2171 * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
2173 * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
2174 on_device_arch_gcn): New.
2175 * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
2176 requires-4.c but using heap-allocated memory.
2178 2022-10-20 Thomas Schwinge <thomas@codesourcery.com>
2181 * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
2183 2022-10-17 Thomas Schwinge <thomas@codesourcery.com>
2185 * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
2186 '-foffload-options' syntax.
2188 2022-10-13 Tobias Burnus <tobias@codesourcery.com>
2190 * testsuite/libgomp.fortran/task-7.f90: New test.
2191 * testsuite/libgomp.fortran/task-8.f90: New test.
2192 * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
2193 * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
2194 * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
2195 * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
2196 * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
2198 2022-10-12 Jakub Jelinek <jakub@redhat.com>
2200 * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
2201 in deprecation bullet.
2203 2022-10-12 Jakub Jelinek <jakub@redhat.com>
2205 * omp.h.in (omp_in_explicit_task): Declare.
2206 * omp_lib.h.in (omp_in_explicit_task): Likewise.
2207 * omp_lib.f90.in (omp_in_explicit_task): New interface.
2208 * libgomp.map (OMP_5.2): New symbol version, export
2209 omp_in_explicit_task and omp_in_explicit_task_.
2210 * task.c (omp_in_explicit_task): New function.
2211 * fortran.c (omp_in_explicit_task): Add ialias_redirect.
2212 (omp_in_explicit_task_): New function.
2213 * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
2214 * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
2215 * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
2216 * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
2218 2022-10-12 Jakub Jelinek <jakub@redhat.com>
2220 * task.c (gomp_create_artificial_team): Fix up handling of invocations
2221 from within explicit task.
2222 * target.c (GOMP_target_ext): Likewise.
2223 * testsuite/libgomp.c/task-7.c: New test.
2224 * testsuite/libgomp.c/task-8.c: New test.
2225 * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
2226 * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
2228 2022-10-12 Martin Liska <mliska@suse.cz>
2230 * configure: Regenerate.
2232 2022-10-11 Olivier Hainque <hainque@adacore.com>
2233 Olivier Hainque <hainque@adacore.com>
2235 * configure: Regenerate.
2237 2022-10-05 Tobias Burnus <tobias@codesourcery.com>
2239 * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
2241 2022-10-04 Jakub Jelinek <jakub@redhat.com>
2243 * libgomp.texi (Support begin/end declare target syntax in C/C++):
2244 Mark as implemented.
2246 2022-09-30 Tobias Burnus <tobias@codesourcery.com>
2249 * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
2251 2022-09-28 Tobias Burnus <tobias@codesourcery.com>
2253 * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
2254 for C/C++. Remove duplicated 'begin declare target' entry.
2256 2022-09-24 Jakub Jelinek <jakub@redhat.com>
2259 * testsuite/libgomp.c-c++-common/pr106981.c: New test.
2261 2022-09-14 Julian Brown <julian@codesourcery.com>
2263 * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
2264 * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
2265 * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
2266 * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
2267 test to here, make "run" test.
2269 2022-09-13 Jakub Jelinek <jakub@redhat.com>
2272 * env.c (get_icv_member_addr): Cast false to void * before assigning
2273 it to icv_addr[1], and comment the whole assignment out.
2275 2022-09-13 Tobias Burnus <tobias@codesourcery.com>
2277 * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
2280 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
2282 * libgomp.texi (Offload-Target Specifics: nvptx): Document
2283 that reverse offload requires >= -march=sm_35.
2284 * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
2286 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
2287 * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
2288 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
2289 * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
2290 * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
2292 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
2294 * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
2295 (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
2297 2022-09-12 Jakub Jelinek <jakub@redhat.com>
2300 * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
2301 (main): Avoid tests for which corresponding non-_ALL suffixed variable
2302 is in the environment, or for OMP_NUM_TEAMS on the device
2303 OMP_NUM_TEAMS_DEV_?.
2305 2022-09-10 Iain Sandoe <iain@sandoe.co.uk>
2307 * env.c (initialize_env): Include libiberty environ.h.
2309 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
2311 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
2312 function address table '$offload_func_table' if rev_fn_table
2315 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
2317 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
2318 .offload_func_table to populate rev_fn_table when requested.
2320 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
2322 * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
2323 'uint64_t **rev_fn_table' argument.
2324 * oacc-host.c (host_load_image): Likewise.
2325 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
2327 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2328 * target.c (gomp_load_image_to_device): Update call but pass
2331 2022-09-09 Jakub Jelinek <jakub@redhat.com>
2334 * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
2335 char * for dest[1] initialization from params[1]. Formatting fixes.
2337 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
2340 * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
2342 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
2344 * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
2345 section; move OpenMP Context Selectors from ...
2346 (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
2349 2022-09-08 Marcel Vollweiler <marcel@codesourcery.com>
2351 * config/gcn/icv-device.c (omp_get_default_device): Return device-
2353 (omp_get_max_teams): Added for GCN devices.
2354 (omp_set_num_teams): Likewise.
2356 * config/nvptx/icv-device.c (omp_get_default_device): Return device-
2358 (omp_get_max_teams): Added for NVPTX devices.
2359 (omp_set_num_teams): Likewise.
2361 * env.c (struct gomp_icv_list): New struct to store entries of initial
2363 (struct gomp_offload_icv_list): New struct to store entries of device-
2364 specific ICV values that are copied to the device and back.
2365 (struct gomp_default_icv_values): New struct to store default values of
2366 ICVs according to the OpenMP standard.
2367 (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
2368 (print_env_var_error): Function that prints an error for invalid values
2370 (parse_unsigned_long_1): Removed getenv. Generalized.
2371 (parse_unsigned_long): Likewise.
2372 (parse_int_1): Likewise.
2373 (parse_int): Likewise.
2374 (parse_int_secure): Likewise.
2375 (parse_unsigned_long_list): Likewise.
2376 (parse_target_offload): Likewise.
2377 (parse_bind_var): Likewise.
2378 (parse_stacksize): Likewise.
2379 (parse_boolean): Likewise.
2380 (parse_wait_policy): Likewise.
2381 (parse_allocator): Likewise.
2382 (omp_display_env): Extended to output different variants of environment
2384 (print_schedule): New helper function for omp_display_env which prints
2385 the values of run_sched_var.
2386 (print_proc_bind): New helper function for omp_display_env which prints
2387 the values of proc_bind_var.
2388 (enum gomp_parse_type): Collection of types used for parsing environment
2390 (ENTRY): Preprocess string lengths of environment variables.
2391 (OMP_VAR_CNT): Preprocess table size.
2392 (OMP_HOST_VAR_CNT): Likewise.
2393 (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
2395 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
2396 (gomp_set_icv_flag): Sets a flag for a particular ICV.
2397 (print_device_specific_icvs): New helper function for omp_display_env to
2398 print device specific ICV values.
2399 (get_device_num): New helper function for parse_device_specific.
2400 Extracts the device number from an environment variable name.
2401 (get_icv_member_addr): Gets the memory address for a particular member
2403 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
2404 (initialize_icvs): New function to initialize a gomp_initial_icvs
2406 (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
2407 (startswith): Checks if a string starts with a given prefix.
2408 (initialize_env): Extended to parse the new syntax of environment
2410 * icv-device.c (omp_get_max_teams): Added.
2412 (omp_set_num_teams): Likewise.
2413 * icv.c (omp_set_num_teams): Moved to icv-device.c.
2414 (omp_get_max_teams): Likewise.
2416 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
2417 (GOMP_ADDITIONAL_ICVS): New target-side struct that
2418 holds the designated ICVs of the target device.
2419 * libgomp.h (enum gomp_icvs): Collection of ICVs.
2420 (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
2422 (enum gomp_env_suffix): Collection of possible suffixes of environment
2424 (struct gomp_initial_icvs): Contains all ICVs for which we need to store
2426 (struct gomp_default_icv):New struct to hold ICVs for which we need
2427 to store initial values.
2428 (struct gomp_icv_list): Definition of a linked list that is used for
2429 storing ICVs for the devices and also for _DEV, _ALL, and without
2431 (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
2433 (struct gomp_offload_icv_list): Definition of a linked list that holds
2434 device-specific ICVs that are copied to devices.
2435 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
2436 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
2437 * libgomp.texi: Updated.
2438 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
2439 further ICVs from the offload image.
2440 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2441 * target.c (gomp_get_offload_icv_item): Get a list item of
2442 gomp_offload_icv_list.
2443 (get_gomp_offload_icvs): New. Returns the ICV values
2444 depending on the device num and the variable hierarchy.
2445 (gomp_load_image_to_device): Extended to copy further ICVs to a device.
2446 * testsuite/libgomp.c-c++-common/icv-5.c: New test.
2447 * testsuite/libgomp.c-c++-common/icv-6.c: New test.
2448 * testsuite/libgomp.c-c++-common/icv-7.c: New test.
2449 * testsuite/libgomp.c-c++-common/icv-8.c: New test.
2450 * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
2451 * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
2453 2022-09-08 Jakub Jelinek <jakub@redhat.com>
2455 * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
2457 * testsuite/libgomp.c/doacross-4.c: New test.
2458 * testsuite/libgomp.c/doacross-5.c: New test.
2459 * testsuite/libgomp.c/doacross-6.c: New test.
2460 * testsuite/libgomp.c/doacross-7.c: New test.
2462 2022-09-05 Tobias Burnus <tobias@codesourcery.com>
2464 * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
2466 2022-08-26 Tobias Burnus <tobias@codesourcery.com>
2468 * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
2469 refer to 'requires'.
2470 * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
2471 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
2472 * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
2473 * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
2475 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
2477 PR middle-end/106548
2478 * testsuite/libgomp.c/linear-2.c: New test.
2480 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
2482 * splay-tree.h: Fix splay_* macro unsetting if
2483 splay_tree_prefix is defined.
2485 2022-07-29 Tobias Burnus <tobias@codesourcery.com>
2487 * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
2489 2022-07-29 Jakub Jelinek <jakub@redhat.com>
2491 PR middle-end/106449
2492 * testsuite/libgomp.c-c++-common/pr106449.c: New test.
2494 2022-07-12 Tobias Burnus <tobias@codesourcery.com>
2496 * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
2498 2022-07-12 Thomas Schwinge <thomas@codesourcery.com>
2500 PR middle-end/101551
2501 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
2502 'offloading_enabled' diagnostics issue.
2504 2022-07-11 Thomas Schwinge <thomas@codesourcery.com>
2506 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
2507 '_Pragma' diagnostics verification.
2509 2022-07-10 Lewis Hyatt <lhyatt@gmail.com>
2511 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
2512 improved warning locations.
2513 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
2515 2022-07-08 Thomas Schwinge <thomas@codesourcery.com>
2517 * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
2518 * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
2519 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
2520 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
2521 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
2523 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
2525 * target.c (GOMP_offload_register, GOMP_offload_unregister):
2526 Denote as legacy entry points.
2527 * testsuite/lib/libgomp.exp
2528 (check_effective_target_offload_target_any): New proc.
2529 * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
2530 'offload_target_any'.
2531 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
2532 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
2533 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
2535 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
2537 * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
2538 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
2540 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
2542 * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
2544 2022-07-06 Thomas Schwinge <thomas@codesourcery.com>
2546 * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
2548 (GOMP_offload_unregister_ver): Likewise. Fix up 'target_data'.
2550 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
2551 Jakub Jelinek <jakub@redhat.com>
2553 * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
2555 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
2556 Chung-Lin Tang <cltang@codesourcery.com>
2557 Thomas Schwinge <thomas@codesourcery.com>
2559 * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
2560 omp_requires_mask arg.
2561 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
2562 return -1 when device available but omp_requires_mask != 0.
2563 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
2564 * oacc-host.c (host_get_num_devices, host_openacc_get_property):
2566 * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
2567 goacc_attach_host_thread_to_device, acc_get_num_devices,
2568 acc_set_device_num, get_property_any): Likewise.
2569 * target.c (omp_requires_mask): New global var.
2570 (gomp_requires_to_name): New.
2571 (GOMP_offload_register_ver): Handle passed omp_requires_mask.
2572 (gomp_target_init): Handle omp_requires_mask.
2573 * libgomp.texi (OpenMP 5.0): Update requires impl. status.
2574 (OpenMP 5.1): Add a missed item.
2575 (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
2576 * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
2577 * testsuite/libgomp.c-c++-common/requires-1.c: New test.
2578 * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
2579 * testsuite/libgomp.c-c++-common/requires-2.c: New test.
2580 * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
2581 * testsuite/libgomp.c-c++-common/requires-3.c: New test.
2582 * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
2583 * testsuite/libgomp.c-c++-common/requires-4.c: New test.
2584 * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
2585 * testsuite/libgomp.c-c++-common/requires-5.c: New test.
2586 * testsuite/libgomp.c-c++-common/requires-6.c: New test.
2587 * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
2588 * testsuite/libgomp.c-c++-common/requires-7.c: New test.
2589 * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
2590 * testsuite/libgomp.fortran/requires-1.f90: New test.
2592 2022-07-01 Tobias Burnus <tobias@codesourcery.com>
2594 * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
2595 with fromto as implemented.
2597 2022-06-28 Martin Liska <mliska@suse.cz>
2599 * acinclude.m4: Fix typo in mold linker detection.
2600 * Makefile.in: Regenerate.
2601 * configure: Regenerate.
2603 2022-06-21 Jakub Jelinek <jakub@redhat.com>
2604 Paul Iannetta <piannetta@kalrayinc.com>
2607 * testsuite/libgomp.c/target-31.c: Add private (i) clause.
2609 2022-06-17 Martin Liska <mliska@suse.cz>
2611 * libgomp.texi: Add table header for new features of
2614 2022-06-15 Jakub Jelinek <jakub@redhat.com>
2616 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
2617 q to ddress of an automatic variable. Use -5 instead of -1 in
2618 omp_get_mapped_ptr call. Add test with omp_initial_device.
2619 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
2620 of -1 in omp_get_mapped_ptr call. Add test with omp_initial_device.
2621 Renumber stop arguments afterwards.
2623 2022-06-13 Jakub Jelinek <jakub@redhat.com>
2625 * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
2626 * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
2628 * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
2629 * target.c (resolve_device): Add remapped argument, handle
2630 GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
2631 for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
2632 if remapped, otherwise treat omp_initial_device that way. For
2633 omp_invalid_device, always emit gomp_fatal, even when
2634 OMP_TARGET_OFFLOAD isn't mandatory.
2635 (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
2636 GOMP_target_update, GOMP_target_update_ext,
2637 GOMP_target_enter_exit_data): Pass true as remapped argument to
2639 (omp_target_alloc, omp_target_free, omp_target_is_present,
2640 omp_target_memcpy_check, omp_target_associate_ptr,
2641 omp_target_disassociate_ptr, omp_get_mapped_ptr,
2642 omp_target_is_accessible): Pass false as remapped argument to
2643 resolve_device. Treat omp_initial_device the same as
2644 gomp_get_num_devices (). Don't bypass resolve_device calls if
2645 device_num is negative.
2646 (omp_pause_resource): Treat omp_initial_device the same as
2647 gomp_get_num_devices (). Call resolve_device.
2648 * icv-device.c (omp_set_default_device): Always set to device_num
2649 even when it is negative.
2650 * libgomp.texi: Document that Conforming device numbers,
2651 omp_initial_device and omp_invalid_device is implemented.
2652 * testsuite/libgomp.c/target-41.c (main): Add test with
2654 * testsuite/libgomp.c/target-45.c: New test.
2655 * testsuite/libgomp.c/target-46.c: New test.
2656 * testsuite/libgomp.c/target-47.c: New test.
2657 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
2658 test with omp_initial_device. Use -5 instead of -1 for negative value
2660 * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
2661 Likewise. Reorder stop numbers.
2663 2022-06-10 Jakub Jelinek <jakub@redhat.com>
2665 * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
2666 rather than "libmemkind.so".
2668 2022-06-10 Thomas Schwinge <thomas@codesourcery.com>
2670 * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
2671 * plugin/configfrag.ac (--with-cuda-driver)
2672 (--with-cuda-driver-include, --with-cuda-driver-lib)
2673 (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
2674 (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
2676 * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
2677 (cuda_driver_lib): Remove.
2678 * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
2679 * Makefile.in: Regenerate.
2680 * configure: Likewise.
2681 * testsuite/Makefile.in: Likewise.
2683 2022-06-09 Jakub Jelinek <jakub@redhat.com>
2685 * config/linux/allocator.c: Fix up #include directive.
2687 2022-06-09 Jakub Jelinek <jakub@redhat.com>
2689 * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
2690 (enum gomp_memkind_kind): New type.
2691 (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
2693 (struct gomp_memkind_data): New type.
2694 (memkind_data, memkind_data_once): New variables.
2695 (gomp_init_memkind, gomp_get_memkind): New functions.
2696 (omp_init_allocator): Initialize data.memkind, don't fail for
2697 omp_high_bw_mem_space if libmemkind supports it.
2698 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
2699 memkind support of LIBGOMP_USE_MEMKIND is defined.
2700 * config/linux/allocator.c: New file.
2702 2022-06-03 Tobias Burnus <tobias@codesourcery.com>
2704 * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
2705 * testsuite/libgomp.fortran/scope-2.f90: New test.
2707 2022-06-02 David Malcolm <dmalcolm@redhat.com>
2709 * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
2711 2022-05-31 Jakub Jelinek <jakub@redhat.com>
2713 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
2714 scope construct with allocate clause.
2715 * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
2716 * testsuite/libgomp.c-c++-common/scope-2.c: New test.
2718 2022-05-28 Tobias Burnus <tobias@codesourcery.com>
2720 * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
2721 * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
2722 explicit 'to' and 'enter' clause.
2723 * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
2725 2022-05-28 Jakub Jelinek <jakub@redhat.com>
2728 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
2729 defined(HAVE__ALIGNED_MALLOC) case.
2730 * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
2731 handling as last option before fallback instead of first.
2732 (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
2735 2022-05-27 Jakub Jelinek <jakub@redhat.com>
2737 * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
2739 * testsuite/libgomp.c/target-41.c: Likewise.
2741 2022-05-27 Tobias Burnus <tobias@codesourcery.com>
2743 * libgomp.texi (Other new OpenMP 5.1 features): Add
2744 'begin declare target'.
2745 (Other new OpenMP 5.2 features): New.
2747 2022-05-25 Jakub Jelinek <jakub@redhat.com>
2749 * task.c (gomp_task_run_post_handle_dependers): If empty_task
2750 is the last task taskwait depend depends on, wake it up.
2751 Similarly if it is the last child of a taskgroup, use atomic
2752 store instead of decrement and awak taskgroup wait if any.
2753 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
2755 2022-05-24 Andrew Stubbs <ams@codesourcery.com>
2757 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
2758 EF_AMDGPU_MACH_AMDGCN_GFX90a.
2759 (gcn_gfx90a_s): New.
2760 (isa_hsa_name): Support gfx90a.
2761 (isa_code): Likewise.
2763 2022-05-24 Tobias Burnus <tobias@codesourcery.com>
2766 * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
2767 * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
2769 2022-05-24 Jakub Jelinek <jakub@redhat.com>
2772 * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
2773 * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
2774 * task.c (empty_task): New function.
2775 (gomp_task_run_post_handle_depend_hash): Declare earlier.
2776 (gomp_task_run_post_handle_depend): Declare.
2777 (GOMP_task): Optimize fn == empty_task if there is nothing to wait
2779 (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
2780 (GOMP_taskwait_depend_nowait): New function.
2781 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
2783 2022-05-23 Tobias Burnus <tobias@codesourcery.com>
2786 * target.c (gomp_map_vars_internal, copy_firstprivate_data):
2787 Support attach for GOMP_MAP_FIRSTPRIVATE.
2788 * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
2789 * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
2790 * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
2792 2022-05-20 Marcel Vollweiler <marcel@codesourcery.com>
2794 * libgomp.map: Added omp_target_memcpy_async and
2795 omp_target_memcpy_rect_async.
2796 * libgomp.texi: Both functions are now supported.
2797 * omp.h.in: Added omp_target_memcpy_async and
2798 omp_target_memcpy_rect_async.
2799 * omp_lib.f90.in: Added interfaces for both new functions.
2800 * omp_lib.h.in: Likewise.
2801 * target.c (ialias_redirect): Added for GOMP_task.
2802 (omp_target_memcpy): Restructured into check and copy part.
2803 (omp_target_memcpy_check): New helper function for omp_target_memcpy and
2804 omp_target_memcpy_async that checks requirements.
2805 (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
2806 omp_target_memcpy_async that performs the memcpy.
2807 (omp_target_memcpy_async_helper): New helper function that is used in
2808 omp_target_memcpy_async for the asynchronous task.
2809 (omp_target_memcpy_async): Added.
2810 (omp_target_memcpy_rect): Restructured into check and copy part.
2811 (omp_target_memcpy_rect_check): New helper function for
2812 omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
2814 (omp_target_memcpy_rect_copy): New helper function for
2815 omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
2817 (omp_target_memcpy_rect_async_helper): New helper function that is used
2818 in omp_target_memcpy_rect_async for the asynchronous task.
2819 (omp_target_memcpy_rect_async): Added.
2820 * task.c (ialias): Added for GOMP_task.
2821 * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
2822 * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
2823 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
2824 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
2825 * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
2826 * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
2827 * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
2828 * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
2830 2022-05-18 Tobias Burnus <tobias@codesourcery.com>
2832 * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
2833 (OpenMP Context Selectors): Add missing comma.
2834 * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
2835 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
2836 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
2837 * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
2839 2022-05-17 Jakub Jelinek <jakub@redhat.com>
2841 * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
2842 comment for omp_display_env feature.
2844 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
2846 * libgomp.texi (Offload-Target Specifics): New chapter; add section
2847 to document OpenMP context selectors.
2849 2022-05-17 Jakub Jelinek <jakub@redhat.com>
2851 * libgomp.h (struct gomp_task_depend_entry): Change is_in type
2852 from bool to unsigned char.
2853 * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
2854 Ignore dependencies where
2855 task->depend[i].is_in && task->depend[i].is_in == ent->is_in
2856 rather than just task->depend[i].is_in && ent->is_in. Remember
2857 whether GOMP_DEPEND_IN loop is needed and guard the loop with that
2859 (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
2860 Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
2861 rather than just elem.is_in && ent->is_in.
2862 * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
2863 inoutset depend-kind.
2864 * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
2865 * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
2866 * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
2868 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
2870 * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
2872 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
2874 * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
2875 * testsuite/libgomp.fortran/depend-5.f90: New test.
2876 * testsuite/libgomp.fortran/depend-6.f90: New test.
2877 * testsuite/libgomp.fortran/depend-7.f90: New test.
2879 2022-05-16 Marcel Vollweiler <marcel@codesourcery.com>
2881 * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
2882 * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
2883 * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
2885 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
2887 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
2889 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
2891 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
2893 2022-05-13 Thomas Schwinge <thomas@codesourcery.com>
2895 * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
2896 [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
2897 (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
2898 append '$(PLUGIN_NVPTX_LDFLAGS)'.
2899 * Makefile.in: Regenerate.
2901 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
2903 * Makefile.am (libgomp_la_LIBADD): Initialize.
2904 * plugin/configfrag.ac (DL_LIBS): New.
2905 (PLUGIN_GCN_LIBS): Remove.
2906 (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
2907 * plugin/Makefrag.am (libgomp_la_LIBADD)
2908 (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
2909 (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
2910 * Makefile.in: Regenerate.
2911 * config.h.in: Likewise.
2912 * configure: Likewise.
2913 * testsuite/Makefile.in: Likewise.
2915 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
2917 * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
2918 * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
2919 'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
2920 * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
2921 'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
2922 'PLUGIN_NVPTX_LINK_LIBCUDA'.
2923 * Makefile.in: Regenerate.
2924 * config.h.in: Likewise.
2925 * configure: Likewise.
2927 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
2929 * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
2930 for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
2931 * Makefile.in: Regenerate.
2932 * config.h.in: Likewise.
2933 * configure: Likewise.
2934 * testsuite/Makefile.in: Likewise.
2936 2022-05-12 Jakub Jelinek <jakub@redhat.com>
2938 * libgomp.h (struct gomp_task): Add depend_all_memory member.
2939 * task.c (gomp_init_task): Initialize depend_all_memory.
2940 (gomp_task_handle_depend): Handle omp_all_memory.
2941 (gomp_task_run_post_handle_depend_hash): Clear
2942 parent->depend_all_memory if equal to current task.
2943 (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
2944 * testsuite/libgomp.c-c++-common/depend-1.c: New test.
2945 * testsuite/libgomp.c-c++-common/depend-2.c: New test.
2946 * testsuite/libgomp.c-c++-common/depend-3.c: New test.
2948 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
2950 * plugin/configfrag.ac: Remove '--with-hsa-runtime',
2951 '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
2952 * Makefile.in: Regenerate.
2953 * configure: Likewise.
2954 * testsuite/Makefile.in: Likewise.
2956 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
2958 * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
2959 consider 'PLUGIN_GCN_CPPFLAGS'.
2960 (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
2961 'PLUGIN_GCN_LDFLAGS'.
2962 * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
2964 * Makefile.in: Regenerate.
2965 * configure: Likewise.
2966 * testsuite/Makefile.in: Likewise.
2968 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
2970 * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
2971 (HSA_RUNTIME_LDFLAGS): Remove.
2972 * configure: Regenerate.
2974 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
2976 * testsuite/lib/libgomp.exp (libgomp_init): Don't
2977 'append always_ld_library_path ":$hsa_runtime_lib"'.
2978 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
2980 2022-05-10 Thomas Schwinge <thomas@codesourcery.com>
2982 * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
2983 multi-device testing.
2985 2022-05-06 Marcel Vollweiler <marcel@codesourcery.com>
2987 * libgomp.map: Added omp_target_is_accessible.
2988 * libgomp.texi: Tagged omp_target_is_accessible as supported.
2989 * omp.h.in: Added omp_target_is_accessible.
2990 * omp_lib.f90.in: Added interface for omp_target_is_accessible.
2991 * omp_lib.h.in: Likewise.
2992 * target.c (omp_target_is_accessible): Added implementation of
2993 omp_target_is_accessible.
2994 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
2995 * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
2997 2022-05-05 Sandra Loosemore <sandra@codesourcery.com>
2999 * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
3001 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
3003 * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
3005 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
3007 * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
3009 2022-05-03 Marcel Vollweiler <marcel@codesourcery.com>
3011 * libgomp.map: Added omp_get_mapped_ptr.
3012 * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
3013 * omp.h.in: Added omp_get_mapped_ptr.
3014 * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
3015 * omp_lib.h.in: Likewise.
3016 * target.c (omp_get_mapped_ptr): Added implementation of
3018 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
3019 * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
3020 * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
3021 * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
3022 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
3023 * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
3024 * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
3025 * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
3027 2022-04-28 Thomas Schwinge <thomas@codesourcery.com>
3030 * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
3031 privatization scanning. For GCN offloading compilation, raise
3032 '-mgang-private-size'.
3034 2022-04-26 Jakub Jelinek <jakub@redhat.com>
3037 * work.c (gomp_init_work_share): Don't mask of adjustment for
3038 dynamic long long realignment if struct gomp_work_share has smaller
3039 alignof than long long.
3040 * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
3041 struct gomp_work_share has smaller alignof than long long or if
3042 sizeof (struct gomp_work_share) is smaller than
3043 INLINE_ORDERED_TEAM_IDS_OFF.
3044 * loop_ull.c (GOMP_loop_ull_start): Likewise.
3045 * sections.c (GOMP_sections2_start): Likewise.
3047 2022-04-25 Jakub Jelinek <jakub@redhat.com>
3048 Thomas Schwinge <thomas@codesourcery.com>
3051 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
3053 2022-04-13 Jakub Jelinek <jakub@redhat.com>
3055 * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
3057 2022-04-06 Thomas Schwinge <thomas@codesourcery.com>
3059 * plugin/cuda/cuda.h: Remove file.
3060 * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
3061 "cuda/cuda.h" instead of <cuda.h>.
3062 * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
3063 'PLUGIN_NVPTX_CPPFLAGS'.
3064 * configure: Regenerate.
3066 2022-04-05 Chung-Lin Tang <cltang@codesourcery.com>
3068 * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
3070 2022-04-04 Tom de Vries <tdevries@suse.de>
3072 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
3073 on_device_arch_nvptx instead of offload_target_nvptx.
3074 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3076 2022-04-01 Tom de Vries <tdevries@suse.de>
3078 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
3080 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3082 2022-04-01 Tom de Vries <tdevries@suse.de>
3084 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
3087 2022-03-29 Chenghua Xu <xuchenghua@loongson.cn>
3088 Lulu Cheng <chenglulu@loongson.cn>
3090 * configure.tgt: Add LoongArch triplet.
3092 2022-03-28 Tom de Vries <tdevries@suse.de>
3094 * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
3095 instead of /libexec/.
3096 * configure: Regenerate.
3098 2022-03-25 Tom de Vries <tdevries@suse.de>
3101 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
3103 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
3104 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
3106 2022-03-23 Tobias Burnus <tobias@codesourcery.com>
3108 PR middle-end/104285
3109 * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
3110 * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
3111 * testsuite/libgomp.c++/target-same-name-2.C: New test.
3112 * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
3113 * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
3114 * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
3116 2022-03-22 Tom de Vries <tdevries@suse.de>
3120 * testsuite/libgomp.c/pr104783-2.c: New test.
3122 2022-03-18 Tobias Burnus <tobias@codesourcery.com>
3125 * testsuite/libgomp.fortran/associate4.f90: New test.
3127 2022-03-18 Tom de Vries <tdevries@suse.de>
3130 * testsuite/libgomp.c/pr104952-1.c: New test.
3131 * testsuite/libgomp.c/pr104952-2.c: New test.
3133 2022-03-18 Jakub Jelinek <jakub@redhat.com>
3135 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
3136 variable next to pl variable.
3138 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
3140 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3142 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
3143 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3145 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
3148 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
3149 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3151 2022-03-16 Marcel Vollweiler <marcel@codesourcery.com>
3153 * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
3154 omp_set_max_active_levels.
3155 * testsuite/libgomp.fortran/icv-8.f90: New test.
3157 2022-03-16 Thomas Schwinge <thomas@codesourcery.com>
3160 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
3162 2022-03-13 Tobias Burnus <tobias@codesourcery.com>
3164 * libgomp.texi: Fix typo.
3166 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3168 PR middle-end/100280
3169 PR middle-end/104892
3170 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
3171 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
3172 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3174 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3176 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3177 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3178 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3181 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3183 PR middle-end/104892
3184 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
3186 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
3187 enable '--param=openacc-kernels=decompose' and adjust.
3188 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3190 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3191 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3194 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3197 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
3198 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
3199 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3200 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
3202 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3204 PR middle-end/100280
3205 PR middle-end/104086
3206 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3208 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3210 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
3212 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3215 2022-03-10 Hafiz Abid Qadeer <abidh@codesourcery.com>
3217 * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
3218 trait. Test last index in w and v array. Remove redundant
3219 assignment to V(1). Move alignment checks at the end of
3222 2022-03-10 Tom de Vries <tdevries@suse.de>
3224 * testsuite/libgomp.c/pr104783.c: New test.
3226 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
3229 PR middle-end/102330
3230 PR middle-end/104774
3231 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3233 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3235 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3237 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3239 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3241 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3243 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3245 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3247 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3249 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3251 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3253 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3255 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3257 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3259 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
3260 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3261 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3263 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
3266 * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
3267 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
3268 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
3269 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
3271 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3274 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
3275 expected diagnostics.
3277 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3279 PR middle-end/104784
3280 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3281 Test with '--param=openacc-kernels=decompose'.
3282 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3284 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3286 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3288 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3290 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3292 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3294 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3296 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3298 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3300 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3302 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3304 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3306 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3308 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3310 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3312 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3314 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3316 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3318 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3320 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3322 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3324 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3326 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3328 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3330 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3332 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3334 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3336 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3338 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3340 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3342 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3344 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3347 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3349 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3350 Test '-fopt-info-omp-all'.
3351 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3353 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3355 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3357 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3359 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3361 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3363 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3365 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3367 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3369 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3371 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3373 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3375 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3377 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3379 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3381 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3383 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3385 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3387 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3389 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3391 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3393 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3395 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3397 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3399 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3401 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3403 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3405 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3407 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3409 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3411 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3413 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3416 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3418 PR middle-end/100280
3419 PR middle-end/104132
3420 PR middle-end/104133
3421 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3424 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3426 PR middle-end/100280
3427 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
3428 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3431 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3433 PR middle-end/100280
3434 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
3435 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3438 2022-02-28 Tom de Vries <tdevries@suse.de>
3440 * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
3441 * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
3442 * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
3443 * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
3444 * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
3445 * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
3447 2022-02-24 Tom de Vries <tdevries@suse.de>
3449 * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
3450 * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
3451 * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
3452 * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
3453 * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
3454 * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
3455 * testsuite/libgomp.c/declare-variant-3.h: New header file.
3457 2022-02-22 Thomas Schwinge <thomas@codesourcery.com>
3459 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
3460 gang-redundant execution.
3462 2022-02-22 Tom de Vries <tdevries@suse.de>
3465 * config/nvptx/bar.c (generation_to_barrier): New function, copied
3466 from config/rtems/bar.c.
3467 (futex_wait, futex_wake): New function.
3468 (do_spin, do_wait): New function, copied from config/linux/wait.h.
3469 (gomp_barrier_wait_end, gomp_barrier_wait_last)
3470 (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
3471 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
3472 and replace with include of config/linux/bar.c.
3473 * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
3474 (gomp_barrier_init): Init new fields.
3475 * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
3477 * testsuite/libgomp.c/pr99555-1.c: Same.
3478 * testsuite/libgomp.fortran/task-detach-6.f90: Same.
3480 2022-02-22 Tom de Vries <tdevries@suse.de>
3483 * testsuite/libgomp.c++/pr96390.C: Add additional-option
3484 -foffload=-Wa,--verify for nvptx.
3485 * testsuite/libgomp.c-c++-common/pr96390.c: Same.
3487 2022-02-15 Tobias Burnus <tobias@codesourcery.com>
3489 * testsuite/libgomp.fortran/depend-4.f90: New test.
3491 2022-02-10 Tobias Burnus <tobias@codesourcery.com>
3494 * testsuite/libgomp.c++/target-virtual-1.C: New test.
3496 2022-02-10 Marcel Vollweiler <marcel@codesourcery.com>
3498 * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
3499 * target.c (copy_firstprivate_data): Copy only if host address is not
3501 * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
3502 * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
3503 * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
3504 * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
3505 * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
3506 * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
3507 * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
3508 * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
3509 * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
3510 * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
3512 2022-02-08 Jakub Jelinek <jakub@redhat.com>
3515 * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
3517 * testsuite/libgomp.c/pr104385.c: New test.
3519 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
3521 * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
3522 STOP of previous commit.
3524 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
3526 * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
3527 from is_64bit_aligned_.
3528 * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
3529 and use it, more implicit none, remove unused argument.
3531 2022-02-03 David Seifert <soap@gentoo.org>
3532 Jakub Jelinek <jakub@redhat.com>
3534 * configure.ac: Support --disable-werror.
3535 * configure: Regenerate.
3537 2022-02-01 Tom de Vries <tdevries@suse.de>
3539 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
3541 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
3542 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
3544 2022-02-01 Tom de Vries <tdevries@suse.de>
3546 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
3547 num_workers for nvidia accelerator to fix libgomp error 'insufficient
3549 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
3551 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
3553 2022-02-01 Tom de Vries <tdevries@suse.de>
3555 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
3557 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3559 2022-01-31 Martin Liska <mliska@suse.cz>
3561 * acinclude.m4: Detect *_ld_is_mold and use it.
3562 * configure: Regenerate.
3564 2022-01-27 Tobias Burnus <tobias@codesourcery.com>
3566 * libgomp.texi (OpenMP 5.0): Update implementation status.
3568 2022-01-21 Thomas Schwinge <thomas@codesourcery.com>
3570 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
3571 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
3572 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3573 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3574 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
3575 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3576 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3577 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
3578 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
3579 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3580 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
3581 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
3582 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
3583 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
3584 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
3586 2022-01-19 Marcel Vollweiler <marcel@codesourcery.com>
3588 * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
3589 "static") to make the device num available in the offload image.
3591 2022-01-19 Martin Liska <mliska@suse.cz>
3592 Thomas Schwinge <thomas@codesourcery.com>
3594 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
3596 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3597 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3599 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
3600 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3601 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3602 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
3603 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
3605 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
3607 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
3609 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
3611 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
3613 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
3615 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3616 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3617 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3619 2022-01-18 Martin Liska <mliska@suse.cz>
3621 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
3623 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3624 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
3625 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
3626 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3627 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3628 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
3629 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
3630 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
3631 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
3632 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
3633 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
3634 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
3635 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3636 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3637 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3639 2022-01-17 Thomas Schwinge <thomas@codesourcery.com>
3641 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
3642 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3643 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3645 2022-01-17 Julian Brown <julian@codesourcery.com>
3646 Thomas Schwinge <thomas@codesourcery.com>
3648 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
3649 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
3650 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
3652 2022-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
3653 Andrew Stubbs <ams@codesourcery.com>
3655 * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
3656 the number of teams and threads if necessary.
3657 (gcn_exec): Automatically set the number of gangs and workers if
3660 2022-01-13 Hafiz Abid Qadeer <abidh@codesourcery.com>
3662 * testsuite/libgomp.fortran/allocate-1.c: New test.
3663 * testsuite/libgomp.fortran/allocate-1.f90: New test.
3664 * libgomp.texi: Remove string that says that allocate clause
3665 support is for C/C++ only.
3667 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3669 * testsuite/libgomp.c-c++-common/on_device_arch.h
3670 (any_device_arch, any_device_arch_intel_mic): New.
3671 * testsuite/lib/libgomp.exp
3672 (check_effective_target_offload_device_any_intel_mic): New.
3673 * testsuite/libgomp.c-c++-common/target-45.c: Use it.
3674 * testsuite/libgomp.fortran/target10.f90: Likewise.
3676 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3678 PR tree-optimization/102192
3679 * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
3680 '-Wuninitialized' diagnostics.
3682 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3684 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
3685 current '-Wuninitialized' diagnostics.
3686 * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
3687 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
3688 * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
3689 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
3690 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3691 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
3692 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
3693 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3694 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3695 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3696 * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
3699 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3701 * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
3702 for 'offload_device_intel_mic'.
3704 2022-01-13 Julian Brown <julian@codesourcery.com>
3705 Thomas Schwinge <thomas@codesourcery.com>
3707 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
3708 offloading execution XFAIL.
3710 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3712 PR middle-end/100280
3713 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3715 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
3716 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3719 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3721 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3723 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3725 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
3726 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
3727 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
3728 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
3729 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3731 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3732 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3733 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3734 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
3736 2022-01-04 Tobias Burnus <tobias@codesourcery.com>
3738 * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
3739 * testsuite/libgomp.fortran/target10.f90: Likewise.
3741 2022-01-04 Chung-Lin Tang <cltang@codesourcery.com>
3743 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
3744 into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
3745 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3747 2022-01-03 Jakub Jelinek <jakub@redhat.com>
3749 * libgomp.texi: Bump @copying's copyright year.
3751 2021-12-13 Tobias Burnus <tobias@codesourcery.com>
3753 * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
3754 * testsuite/libgomp.fortran/atomic-19.f90: New test.
3756 2021-12-10 Andrew Stubbs <ams@codesourcery.com>
3758 * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
3759 (GOMP_OFFLOAD_load_image): Locate the offload variables via the
3760 table, not individual symbols.
3762 2021-12-09 Chung-Lin Tang <cltang@codesourcery.com>
3764 * testsuite/libgomp.c++/target-lambda-1.C: Only run under
3765 "target offload_device_nonshared_as"
3766 * testsuite/libgomp.c++/target-this-3.C: Likewise.
3767 * testsuite/libgomp.c++/target-this-4.C: Likewise.
3769 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
3771 * target.c (gomp_map_vars_existing): Make sure attached pointer is
3772 not overwritten during cross-host/device copying.
3773 (gomp_update): Likewise.
3774 (gomp_exit_data): Likewise.
3775 * testsuite/libgomp.c++/target-11.C: Adjust testcase.
3776 * testsuite/libgomp.c++/target-12.C: Likewise.
3777 * testsuite/libgomp.c++/target-15.C: Likewise.
3778 * testsuite/libgomp.c++/target-16.C: Likewise.
3779 * testsuite/libgomp.c++/target-17.C: Likewise.
3780 * testsuite/libgomp.c++/target-21.C: Likewise.
3781 * testsuite/libgomp.c++/target-23.C: Likewise.
3782 * testsuite/libgomp.c/target-23.c: Likewise.
3783 * testsuite/libgomp.c/target-29.c: Likewise.
3784 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
3786 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
3789 * libgomp.h (gomp_attach_pointer): Add bool parameter.
3790 * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
3791 (goacc_enter_data_internal): Likewise.
3792 * target.c (gomp_map_vars_existing): Update assert condition to
3793 include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
3794 (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
3795 parameter, add support for mapping a pointer with NULL target.
3796 (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
3797 parameter, add support for attaching a pointer with NULL target.
3798 (gomp_map_vars_internal): Update calls to gomp_map_pointer and
3799 gomp_attach_pointer, add handling for
3800 GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
3801 GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
3802 * testsuite/libgomp.c++/target-23.C: New testcase.
3803 * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
3804 * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
3805 * testsuite/libgomp.c++/target-this-1.C: New testcase.
3806 * testsuite/libgomp.c++/target-this-2.C: New testcase.
3807 * testsuite/libgomp.c++/target-this-3.C: New testcase.
3808 * testsuite/libgomp.c++/target-this-4.C: New testcase.
3809 * testsuite/libgomp.c++/target-this-5.C: New testcase.
3811 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
3813 * libgomp.texi (OpenMP 5.1): Update status.
3815 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
3817 * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
3819 2021-12-02 Chung-Lin Tang <cltang@codesourcery.com>
3822 * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
3823 * testsuite/libgomp.fortran/pr90030.f90: New test.
3825 2021-11-30 Kwok Cheung Yeung <kcy@codesourcery.com>
3826 Thomas Schwinge <thomas@codesourcery.com>
3828 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
3831 2021-11-30 Cesar Philippidis <cesar@codesourcery.com>
3832 Thomas Schwinge <thomas@codesourcery.com>
3834 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
3837 2021-11-29 Richard Biener <rguenther@suse.de>
3839 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
3842 2021-11-24 Jakub Jelinek <jakub@redhat.com>
3844 PR middle-end/103384
3845 * testsuite/libgomp.c/declare-variant-2.c: New test.
3847 2021-11-18 David Edelsohn <dje.gcc@gmail.com>
3849 * alloc.c (gomp_aligned_alloc): Fix typo.
3851 2021-11-18 Jakub Jelinek <jakub@redhat.com>
3854 * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
3855 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
3856 (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
3857 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
3858 * work.c (alloc_work_share, gomp_work_share_start): Likewise.
3859 * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
3860 gomp_aligned_alloc instead of team_malloc.
3862 2021-11-18 Jakub Jelinek <jakub@redhat.com>
3865 * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
3866 memalign over posix_memalign over aligned_alloc over fallback
3867 with malloc instead of aligned_alloc over _aligned_alloc over
3868 posix_memalign over memalign over fallback with malloc. For
3869 aligned_alloc, round up size up to multiple of al.
3871 2021-11-16 Jakub Jelinek <jakub@redhat.com>
3873 * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
3874 construct as implemented.
3876 2021-11-15 Tobias Burnus <tobias@codesourcery.com>
3878 * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
3880 2021-11-15 Jakub Jelinek <jakub@redhat.com>
3882 * task.c (gomp_create_target_task): Copy args array as well.
3883 * target.c (gomp_target_fallback): Add args argument.
3884 Set gomp_icv (true)->thread_limit_var if thread_limit is present.
3885 (GOMP_target): Adjust gomp_target_fallback caller.
3886 (GOMP_target_ext): Likewise.
3887 (gomp_target_task_fn): Likewise.
3888 * config/nvptx/team.c (gomp_nvptx_main): Set
3889 gomp_global_icv.thread_limit_var.
3890 * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
3892 2021-11-15 Jakub Jelinek <jakub@redhat.com>
3894 * config/nvptx/team.c (__gomp_team_num): Define as
3895 __attribute__((shared)) var.
3896 (gomp_nvptx_main): Initialize __gomp_team_num to 0.
3897 * config/nvptx/target.c (__gomp_team_num): Declare as
3898 extern __attribute__((shared)) var.
3899 (GOMP_teams4): Use __gomp_team_num as the team number instead of
3900 %ctaid.x. If first, initialize it to %ctaid.x. If num_teams_lower
3901 is bigger than num_blocks, use num_teams_lower teams and arrange for
3902 bumping of __gomp_team_num if !first and returning false once we run
3904 * config/nvptx/teams.c (__gomp_team_num): Declare as
3905 extern __attribute__((shared)) var.
3906 (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
3908 2021-11-15 Jakub Jelinek <jakub@redhat.com>
3910 * testsuite/libgomp.c/teams-5.c: New test.
3912 2021-11-12 Jakub Jelinek <jakub@redhat.com>
3915 * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
3917 * config/gcn/teams.c: ... here. New file.
3919 2021-11-12 Chung-Lin Tang <cltang@codesourcery.com>
3921 * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
3922 implicit map handling to allow a "superset" existing map as valid case.
3923 (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
3924 (get_implicit): New function to extract implicit status.
3925 (gomp_map_fields_existing): Adjust arguments in calls to
3926 gomp_map_vars_existing, and add uses of get_implicit.
3927 (gomp_map_vars_internal): Likewise.
3928 * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
3930 2021-11-12 Jakub Jelinek <jakub@redhat.com>
3932 * libgomp_g.h (GOMP_teams4): Declare.
3933 * libgomp.map (GOMP_5.1): Export GOMP_teams4.
3934 * target.c (GOMP_teams4): New function.
3935 * config/nvptx/target.c (GOMP_teams): Remove.
3936 (GOMP_teams4): New function.
3937 * config/gcn/target.c (GOMP_teams): Remove.
3938 (GOMP_teams4): New function.
3939 * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
3940 teams instead of <= 2.
3941 * testsuite/libgomp.c-c++-common/teams-2.c: New test.
3943 2021-11-11 Tobias Burnus <tobias@codesourcery.com>
3945 * testsuite/libgomp.fortran/teams-1.f90: New test.
3947 2021-11-11 Jakub Jelinek <jakub@redhat.com>
3949 * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
3950 * team.c (struct gomp_thread_start_data): Likewise.
3951 (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
3952 (gomp_team_start): Initialize start_data->num_teams and
3953 start_data->team_num. Update nthr->num_teams and nthr->team_num.
3954 * teams.c (gomp_num_teams, gomp_team_num): Remove.
3955 (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
3956 instead of gomp_num_teams and gomp_team_num.
3957 (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
3958 (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
3959 * testsuite/libgomp.c/teams-4.c: New test.
3961 2021-11-11 Jakub Jelinek <jakub@redhat.com>
3963 * testsuite/libgomp.c-c++-common/teams-1.c: New test.
3965 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
3967 * env.c (parse_gomp_openacc_dim): Restore parsing.
3969 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
3971 PR middle-end/102972
3972 * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
3974 * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
3975 * testsuite/libgomp.c/target-3.c: Likewise.
3976 * testsuite/libgomp.c/target-5.c: Likewise.
3977 * testsuite/libgomp.c/target-6.c: Likewise.
3978 * testsuite/libgomp.c/target-teams-1.c: Likewise.
3979 * testsuite/libgomp.c/teams-1.c: Likewise.
3980 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
3981 * testsuite/libgomp.c/thread-limit-3.c: Likewise.
3982 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
3983 * testsuite/libgomp.c/thread-limit-5.c: Likewise.
3984 * testsuite/libgomp.fortran/icv-3.f90: Likewise.
3985 * testsuite/libgomp.fortran/icv-4.f90: Likewise.
3986 * testsuite/libgomp.fortran/teams1.f90: Likewise.
3988 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
3990 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
3991 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
3993 2021-10-27 Jakub Jelinek <jakub@redhat.com>
3995 * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
3996 aren't implemented for Fortran yet.
3998 2021-10-27 Jakub Jelinek <jakub@redhat.com>
4000 * testsuite/libgomp.c/loop-26.c: New test.
4001 * testsuite/libgomp.c/loop-27.c: New test.
4003 2021-10-25 Tobias Burnus <tobias@codesourcery.com>
4006 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
4007 instead of #include <alloca.h> + alloca.
4009 2021-10-21 Chung-Lin Tang <cltang@codesourcery.com>
4011 * libgomp.texi (Support of strictly structured blocks in Fortran):
4013 * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
4015 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
4017 * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
4018 * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
4020 2021-10-20 Jakub Jelinek <jakub@redhat.com>
4023 * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
4024 (struct gomp_work_share): Only use aligned(64) attribute if
4025 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
4026 add padding before lock to ensure lock is at offset 64 bytes
4028 (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
4029 New poor man's static assertions.
4030 * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
4031 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4033 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
4034 Richard Biener <rguenther@suse.de>
4036 * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
4038 2021-10-18 Jakub Jelinek <jakub@redhat.com>
4040 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
4041 && gomp_places_list_len < count after nfirst <= nlast loop condition.
4043 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
4052 * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
4054 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4056 * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
4057 type from char [50] to const char *.
4058 (places_array): Add a testcase for simplified syntax place followed
4059 by length or length and stride.
4061 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4063 * env.c (parse_one_place): Handle non-negative-number the same
4064 as { non-negative-number }. Reject even !number:1 and
4065 !number:1:stride or !place:1 or !place:1:stride instead of just
4066 length other than 1.
4067 * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
4068 and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
4069 omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
4071 * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
4074 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4076 * env.c (parse_schedule): For strtoul or strtoull calls which don't
4077 clearly reject return value 0 as invalid handle the case where end
4078 pointer is the same as first argument as invalid.
4079 (parse_unsigned_long_1): Likewise.
4080 (parse_one_place): Likewise.
4081 (parse_places_var): Likewise.
4082 (parse_stacksize): Likewise.
4083 (parse_spincount): Likewise.
4084 (parse_affinity): Likewise.
4085 (parse_gomp_openacc_dim): Likewise. Avoid strict aliasing violation.
4086 Make code valid C89.
4087 * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
4088 For strtoul calls which don't clearly reject return value 0 as
4089 invalid handle the case where end pointer is the same as first
4090 argument as invalid.
4091 (gomp_affinity_init_level_1): Likewise.
4092 (gomp_affinity_init_numa_domains): Likewise.
4093 * config/rtems/proc.c (parse_thread_pools): Likewise.
4095 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4097 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
4098 after creating count places clean up and return immediately.
4099 * testsuite/libgomp.c/places-6.c: New test.
4100 * testsuite/libgomp.c/places-7.c: New test.
4101 * testsuite/libgomp.c/places-8.c: New test.
4102 * testsuite/libgomp.c/places-9.c: New test.
4103 * testsuite/libgomp.c/places-10.c: New test.
4105 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4107 * env.c (parse_places_var): Handle numa_domains as level 5.
4108 * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
4110 (gomp_affinity_init_level): Use it instead of
4111 gomp_affinity_init_level_1 for level == 5.
4112 * testsuite/libgomp.c/places-5.c: New test.
4114 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4116 * env.c (parse_places_var): Handle ll_caches as level 4.
4117 * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
4119 (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
4121 (gomp_affinity_init_level): Likewise.
4122 * testsuite/libgomp.c/places-1.c: New test.
4123 * testsuite/libgomp.c/places-2.c: New test.
4124 * testsuite/libgomp.c/places-3.c: New test.
4125 * testsuite/libgomp.c/places-4.c: New test.
4127 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
4129 * libgomp.texi (OpenMP 5.0): Update entry for declare variant
4132 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
4134 * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
4136 2021-10-12 Julian Brown <julian@codesourcery.com>
4138 * target.c (gomp_copy_host2dev): Release device lock on cbuf
4141 2021-10-12 Tobias Burnus <tobias@codesourcery.com>
4143 * testsuite/libgomp.fortran/icv-3.f90: New.
4144 * testsuite/libgomp.fortran/icv-4.f90: New.
4146 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4148 * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
4149 omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
4150 OMP_TEAMS_THREAD_LIMIT): Document.
4152 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4154 * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
4155 to avoid makeinfo warnings.
4157 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4159 * testsuite/libgomp.c-c++-common/icv-3.c: New test.
4160 * testsuite/libgomp.c-c++-common/icv-4.c: New test.
4162 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4166 * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
4167 allocation sizes from 420 to 320 and from 768 to 568.
4168 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
4169 * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
4170 for cr from 16 to 4.
4172 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4174 * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
4175 * testsuite/libgomp.c/scan-12.c: Likewise.
4176 * testsuite/libgomp.c/scan-13.c: Likewise.
4177 * testsuite/libgomp.c/scan-14.c: Likewise.
4178 * testsuite/libgomp.c/scan-15.c: Likewise.
4179 * testsuite/libgomp.c/scan-16.c: Likewise.
4180 * testsuite/libgomp.c/scan-17.c: Likewise.
4181 * testsuite/libgomp.c/scan-18.c: Likewise.
4182 * testsuite/libgomp.c/scan-19.c: Likewise.
4183 * testsuite/libgomp.c/scan-20.c: Likewise.
4184 * testsuite/libgomp.c/scan-21.c: Likewise.
4185 * testsuite/libgomp.c/scan-22.c: Likewise.
4186 * testsuite/libgomp.c++/scan-9.C: Likewise.
4187 * testsuite/libgomp.c++/scan-10.C: Likewise.
4188 * testsuite/libgomp.c++/scan-11.C: Likewise.
4189 * testsuite/libgomp.c++/scan-12.C: Likewise.
4190 * testsuite/libgomp.c++/scan-13.C: Likewise.
4191 * testsuite/libgomp.c++/scan-14.C: Likewise.
4192 * testsuite/libgomp.c++/scan-15.C: Likewise.
4193 * testsuite/libgomp.c++/scan-16.C: Likewise.
4195 2021-10-12 Kewen Lin <linkw@linux.ibm.com>
4197 * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
4199 2021-10-11 Marcel Vollweiler <marcel@codesourcery.com>
4201 * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
4203 * omp.h.in: Add deprecated flag for omp_atv_sequential.
4204 * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
4205 * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
4206 * testsuite/libgomp.fortran/alloc-12.f90: New test.
4208 2021-10-11 Jakub Jelinek <jakub@redhat.com>
4210 * omp.h.in (omp_set_num_teams, omp_get_max_teams,
4211 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4212 * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
4213 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4214 * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
4215 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4216 * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
4217 * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
4218 omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
4219 omp_set_teams_thread_limit{,_,_8_}.
4220 * icv.c (omp_set_num_teams, omp_get_max_teams,
4221 omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
4223 * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
4224 (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
4225 (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
4227 * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
4228 gomp_teams_thread_limit_var as fallback if not zero. If num_teams
4229 is not specified, use gomp_nteams_var.
4230 * fortran.c (omp_set_num_teams, omp_get_max_teams,
4231 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
4233 (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
4234 omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
4235 omp_get_teams_thread_limit_): New functions.
4237 2021-10-09 liuhongt <hongtao.liu@intel.com>
4239 * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
4240 * testsuite/libgomp.c++/scan-11.C: Ditto.
4241 * testsuite/libgomp.c++/scan-12.C: Ditto.
4242 * testsuite/libgomp.c++/scan-13.C: Ditto.
4243 * testsuite/libgomp.c++/scan-14.C: Ditto.
4244 * testsuite/libgomp.c++/scan-15.C: Ditto.
4245 * testsuite/libgomp.c++/scan-16.C: Ditto.
4246 * testsuite/libgomp.c++/scan-9.C: Ditto.
4247 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
4248 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
4249 * testsuite/libgomp.c/scan-11.c: Ditto.
4250 * testsuite/libgomp.c/scan-12.c: Ditto.
4251 * testsuite/libgomp.c/scan-13.c: Ditto.
4252 * testsuite/libgomp.c/scan-14.c: Ditto.
4253 * testsuite/libgomp.c/scan-15.c: Ditto.
4254 * testsuite/libgomp.c/scan-16.c: Ditto.
4255 * testsuite/libgomp.c/scan-17.c: Ditto.
4256 * testsuite/libgomp.c/scan-18.c: Ditto.
4257 * testsuite/libgomp.c/scan-19.c: Ditto.
4258 * testsuite/libgomp.c/scan-20.c: Ditto.
4259 * testsuite/libgomp.c/scan-21.c: Ditto.
4260 * testsuite/libgomp.c/scan-22.c: Ditto.
4262 2021-10-09 Jakub Jelinek <jakub@redhat.com>
4264 * libgomp.texi (OpenMP 5.1): Mention implemented support for
4265 structured block sequences in C/C++. Mention support for
4266 unconstrained/reproducible modifiers on order clause.
4267 Mention partial (C/C++ only) support of extentensions to atomics
4268 construct. Mention partial (C/C++ on clause only) support of
4269 align/allocator modifiers on allocate clause.
4271 2021-10-02 Tobias Burnus <tobias@codesourcery.com>
4273 * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
4274 based on libgomp.c-c++-common/order-reproducible-1.c.
4275 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
4276 * testsuite/libgomp.fortran/my-usleep.c: New test.
4278 2021-10-01 Tobias Burnus <tobias@codesourcery.com>
4280 * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
4281 * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
4282 * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
4283 * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
4284 based on libgomp.c-c++-common/alloc-9.c.
4286 2021-10-01 Jakub Jelinek <jakub@redhat.com>
4288 * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
4289 * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
4291 2021-10-01 Jakub Jelinek <jakub@redhat.com>
4293 * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
4295 * env.c (handle_omp_display_env): Use ialias_call.
4296 * icv-device.c: Move ialias right below each function.
4297 (omp_get_device_num): Use ialias_call.
4298 * fortran.c (omp_fulfill_event): Add ialias_redirect.
4299 * icv.c (omp_get_active_level): Add ialias_redirect.
4301 2021-10-01 Jakub Jelinek <jakub@redhat.com>
4303 * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
4304 __alloc_align__ (1) attribute.
4305 * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
4307 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
4309 * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
4310 for -fintrinsic-modules-path= warning of the C compiler.
4311 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
4312 * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
4314 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
4316 * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
4317 omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
4318 * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
4320 * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
4322 * testsuite/libgomp.fortran/alloc-10.f90: New test.
4323 * testsuite/libgomp.fortran/alloc-6.f90: New test.
4324 * testsuite/libgomp.fortran/alloc-7.c: New test.
4325 * testsuite/libgomp.fortran/alloc-7.f90: New test.
4326 * testsuite/libgomp.fortran/alloc-8.f90: New test.
4327 * testsuite/libgomp.fortran/alloc-9.f90: New test.
4329 2021-09-30 Jakub Jelinek <jakub@redhat.com>
4331 * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
4332 omp_realloc): New prototypes.
4333 (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
4335 * allocator.c: Include string.h.
4336 (omp_aligned_alloc): No longer static, add ialias. Add new_alignment
4337 variable and use it instead of alignment so that when retrying the old
4338 alignment is used again. Don't retry if new alignment is the same
4339 as old alignment, unless allocator had pool size.
4340 (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
4341 (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
4342 * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
4343 omp_aligned_calloc and omp_realloc.
4344 * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
4345 omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
4346 * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
4347 * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
4348 * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
4349 * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
4351 2021-09-28 Tobias Burnus <tobias@codesourcery.com>
4354 * configure.ac: Only check for int-type = 2*size_t support when
4355 building with Fortran support.
4356 * configure: Regenerate.
4358 2021-09-28 Thomas Schwinge <thomas@codesourcery.com>
4360 * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
4361 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4363 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
4365 * team.c: Initialize start_data.
4366 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
4367 * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
4369 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
4371 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
4372 dg-message back to dg-note.
4374 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
4377 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
4378 expected dg-note output.
4380 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
4383 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
4384 r12-3722 by removing -Wno-missing-include-dirs.
4385 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
4387 2021-09-22 Jakub Jelinek <jakub@redhat.com>
4389 * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
4390 * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
4392 2021-09-21 Tobias Burnus <tobias@codesourcery.com>
4395 * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
4397 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4399 2021-09-18 Jakub Jelinek <jakub@redhat.com>
4401 * testsuite/libgomp.c++/default-1.C: New test.
4402 * testsuite/libgomp.c-c++-common/default-1.c: New test.
4403 * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
4404 to default clause in C and C++" as implemented.
4406 2021-09-17 Julian Brown <julian@codesourcery.com>
4408 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
4410 2021-09-17 Julian Brown <julian@codesourcery.com>
4412 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
4414 2021-09-17 Jakub Jelinek <jakub@redhat.com>
4416 * libgomp.texi (OpenMP 5.1): Spelling fix,
4417 declare variante -> declare variant.
4419 2021-09-17 Jakub Jelinek <jakub@redhat.com>
4421 * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
4422 Use /* */ comments instead of //.
4423 * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
4424 * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
4425 * testsuite/libgomp.c++/atomic-16.C: New test.
4426 * testsuite/libgomp.c++/atomic-17.C: New test.
4428 2021-09-10 Jakub Jelinek <jakub@redhat.com>
4430 * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
4431 * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
4432 * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
4434 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
4436 * libgomp.texi (OpenMP Implementation Status): Extend
4438 (OpenACC Profiling Interface): Fix typo.
4440 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
4442 * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
4443 not to 4.5; link to new section.
4444 (OpenMP Implementation Status): New.
4446 2021-09-06 Thomas Schwinge <thomas@codesourcery.com>
4448 * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
4450 2021-09-03 Tobias Burnus <tobias@codesourcery.com>
4452 * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
4454 * testsuite/libgomp.fortran/error-1.f90: Likewise.
4456 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
4457 Jakub Jelinek <jakub@redhat.com>
4459 * testsuite/libgomp.c/address-space-1.c: New file.
4461 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
4463 * testsuite/lib/libgomp.exp
4464 (check_effective_target_offload_target_intelmic): Remove 'proc'.
4465 (check_effective_target_offload_device_intel_mic): New 'proc'.
4466 * testsuite/libgomp.c-c++-common/on_device_arch.h
4467 (device_arch_intel_mic, on_device_arch_intel_mic): New.
4468 * testsuite/libgomp.c-c++-common/target-45.c: Use that for
4470 * testsuite/libgomp.fortran/target10.f90: Likewise.
4472 2021-08-23 Tobias Burnus <tobias@codesourcery.com>
4474 * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
4475 * testsuite/libgomp.fortran/taskloop-4.f90: New test.
4476 * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
4477 * testsuite/libgomp.fortran/taskloop-5.f90: New test.
4479 2021-08-23 Jakub Jelinek <jakub@redhat.com>
4481 * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
4482 * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
4483 * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
4485 2021-08-22 Thomas Schwinge <thomas@codesourcery.com>
4487 * config/nvptx/error.c (fwrite, exit): Override, too.
4488 * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
4489 of offloading testing.
4490 * testsuite/libgomp.fortran/error-1.f90: Likewise.
4492 2021-08-20 Tobias Burnus <tobias@codesourcery.com>
4494 * testsuite/libgomp.fortran/error-1.f90: New test.
4496 2021-08-20 Jakub Jelinek <jakub@redhat.com>
4498 * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
4499 * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
4500 * error.c (GOMP_warning, GOMP_error): New functions.
4501 * testsuite/libgomp.c-c++-common/error-1.c: New test.
4503 2021-08-18 Tobias Burnus <tobias@codesourcery.com>
4505 * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
4506 omp_target_free. omp_target_is_present, omp_target_memcpy,
4507 omp_target_memcpy_rect, omp_target_associate_ptr,
4508 omp_target_disassociate_ptr): Add interface.
4509 * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
4510 omp_target_free. omp_target_is_present, omp_target_memcpy,
4511 omp_target_memcpy_rect, omp_target_associate_ptr,
4512 omp_target_disassociate_ptr): Add interface.
4513 * testsuite/libgomp.fortran/alloc-1.F90: Remove local
4514 interface block for omp_alloc + omp_free.
4515 * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
4516 * testsuite/libgomp.fortran/refcount-1.f90: New test.
4517 * testsuite/libgomp.fortran/target-12.f90: New test.
4519 2021-08-18 Jakub Jelinek <jakub@redhat.com>
4521 * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
4523 2021-08-17 Tobias Burnus <tobias@codesourcery.com>
4525 * testsuite/libgomp.fortran/scope-1.f90: New test.
4526 * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
4528 2021-08-17 Jakub Jelinek <jakub@redhat.com>
4530 * Makefile.am (libgomp_la_SOURCES): Add scope.c
4531 * Makefile.in: Regenerated.
4532 * libgomp_g.h (GOMP_scope_start): Declare.
4533 * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
4534 * scope.c: New file.
4535 * testsuite/libgomp.c-c++-common/scope-1.c: New test.
4536 * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
4538 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
4540 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
4543 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
4545 * testsuite/libgomp.fortran/masked-1.f90: New test.
4547 2021-08-13 Thomas Schwinge <thomas@codesourcery.com>
4549 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
4551 2021-08-12 Jakub Jelinek <jakub@redhat.com>
4553 * testsuite/libgomp.c-c++-common/masked-1.c: New test.
4555 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
4557 * env.c (parse_bind_var): Accept 'primary' as alias for
4559 (omp_display_env): Add TODO comment to
4560 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
4561 * libgomp.texi: Change 'master thread' to 'primary thread'
4562 in line with OpenMP 5.1.
4563 (omp_get_proc_bind): Add omp_proc_bind_primary and note that
4564 omp_proc_bind_master is an alias of it.
4565 (OMP_PROC_BIND): Mention 'PRIMARY'.
4566 * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
4567 (omp_proc_bind_primary): Add.
4568 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
4569 * omp_lib.f90.in (omp_proc_bind_primary): Add.
4570 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
4571 * omp_lib.h.in (omp_proc_bind_primary): Add.
4572 * testsuite/libgomp.c/affinity-1.c: Check that
4573 'primary' works and is identical to 'master'.
4575 2021-08-09 Julian Brown <julian@codesourcery.com>
4576 Kwok Cheung Yeung <kcy@codesourcery.com>
4577 Thomas Schwinge <thomas@codesourcery.com>
4579 * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
4581 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
4582 [acc_device_radeon]: Update.
4583 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
4584 [ACC_DEVICE_TYPE_radeon]: Likewise.
4585 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
4586 [acc_device_radeon]: Likewise.
4587 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
4588 [ACC_DEVICE_TYPE_radeon]: Likewise.
4589 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
4590 'openacc_radeon_accel_selected' and '-O0'.
4591 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4593 2021-08-05 Chung-Lin Tang <cltang@codesourcery.com>
4595 * icv-device.c (omp_get_device_num): New API function, host side.
4596 * fortran.c (omp_get_device_num_): New interface function.
4597 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
4598 * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
4599 omp_get_device_num_.
4600 * libgomp.texi (omp_get_device_num): Add documentation for new API
4602 * omp.h.in (omp_get_device_num): Add declaration.
4603 * omp_lib.f90.in (omp_get_device_num): Likewise.
4604 * omp_lib.h.in (omp_get_device_num): Likewise.
4605 * target.c (gomp_load_image_to_device): If additional entry for device
4606 number exists at end of returned entries from 'load_image_func' hook,
4607 copy the assigned device number over to the device variable.
4608 * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
4609 (omp_get_device_num): New API function, device side.
4610 * plugin/plugin-gcn.c ("symcat.h"): Add include.
4611 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
4612 at end of returned 'target_table' entries.
4613 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
4614 (omp_get_device_num): New API function, device side.
4615 * plugin/plugin-nvptx.c ("symcat.h"): Add include.
4616 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
4617 at end of returned 'target_table' entries.
4618 * testsuite/lib/libgomp.exp
4619 (check_effective_target_offload_target_intelmic): New function for
4620 testing for intelmic offloading.
4621 * testsuite/libgomp.c-c++-common/target-45.c: New test.
4622 * testsuite/libgomp.fortran/target10.f90: New test.
4624 2021-07-30 Thomas Schwinge <thomas@codesourcery.com>
4625 Ulrich Drepper <drepper@redhat.com>
4627 * fortran.c (omp_display_env_, omp_display_env_8_): Only
4628 '#ifndef LIBGOMP_OFFLOADED_ONLY'.
4630 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
4631 Julian Brown <julian@codesourcery.com>
4632 Kwok Cheung Yeung <kcy@codesourcery.com>
4634 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
4635 's%oaccdevlow%oaccloops%g'.
4636 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
4637 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4638 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
4640 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
4642 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
4644 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
4646 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
4648 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
4650 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
4652 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
4654 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
4656 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
4658 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
4660 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4662 2021-07-27 Ulrich Drepper <drepper@gmail.com>
4664 * env.c (wait_policy, stacksize): New static variables,
4665 move out of handle_omp_display_env.
4666 (omp_display_env): New function. The meat of the old
4667 handle_omp_display_env function.
4668 (handle_omp_display_env): Change to not take parameters
4669 and instead use the global variables. Only perform
4670 parsing, defer to omp_display_env for the implementation.
4671 (initialize_env): Remove local variables wait_policy and
4672 stacksize. Don't pass parameters to handle_omp_display_env.
4673 * fortran.c: Add ialias_redirect for omp_display_env.
4674 (omp_display_env_, omp_display_env_8_): New functions.
4675 * libgomp.map (OMP_5.1): New version. Add omp_display_env,
4676 omp_display_env_, and omp_display_env_8_.
4677 * omp.h.in: Declare omp_display_env.
4678 * omp_lib.f90.in: Likewise.
4679 * omp_lib.h.in: Likewise.
4681 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
4682 Julian Brown <julian@codesourcery.com>
4684 * target.c (gomp_coalesce_buf_add): Update comment.
4685 (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
4687 (gomp_map_vars_internal): Only 'if (!aq)', do
4688 'gomp_coalesce_buf_add'.
4689 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
4692 2021-07-27 Julian Brown <julian@codesourcery.com>
4693 Thomas Schwinge <thomas@codesourcery.com>
4695 * libgomp.h (gomp_copy_host2dev): Update prototype.
4696 * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
4697 argument to gomp_copy_host2dev (false).
4698 * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
4699 (copy_data): Don't free src.
4700 (queue_push_copy): Remove free_src handling.
4701 (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
4702 (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
4704 (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
4706 * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
4707 (gomp_copy_host2dev): Add EPHEMERAL parameter. Snapshot source
4708 data when true, and set up deferred freeing of temporary buffer.
4709 (gomp_copy_dev2host): Update call to goacc_device_copy_async.
4710 (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
4711 (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
4712 calls to gomp_copy_host2dev with appropriate ephemeral argument.
4713 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
4716 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
4717 Tom de Vries <tom@codesourcery.com>
4719 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
4720 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
4722 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
4724 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
4725 sequencing of 'async' data copying vs. profiling events.
4726 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
4729 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
4730 Julian Brown <julian@codesourcery.com>
4732 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
4733 'async'/'wait' issue.
4734 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
4735 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
4736 * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
4738 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
4739 Joseph Myers <joseph@codesourcery.com>
4740 Cesar Philippidis <cesar@codesourcery.com>
4742 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
4744 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
4746 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
4748 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
4750 2021-07-20 Thomas Schwinge <thomas@codesourcery.com>
4753 * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
4754 '-Wno-error=array-bounds'.
4755 * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
4756 * libgomp.h [__AMDGCN__]: Likewise.
4758 2021-07-19 Thomas Schwinge <thomas@codesourcery.com>
4761 * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
4762 * libgomp.h [__AMDGCN__]: Likewise.
4764 2021-07-13 Jakub Jelinek <jakub@redhat.com>
4765 Florian Weimer <fweimer@redhat.com>
4767 * config/linux/sem.h: Don't include limits.h.
4768 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
4769 * config/linux/affinity.c: Include limits.h.
4771 2021-07-01 Jakub Jelinek <jakub@redhat.com>
4774 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
4776 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
4779 * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
4780 -foffload=nvptx-none= by -foffload-options=nvptx-none= to
4781 avoid disabling other offload targets.
4782 * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
4783 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
4784 * testsuite/libgomp.c/target-44.c: Likewise.
4786 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
4788 * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
4789 target has shared memory and disable some scalar pointer/allocatable
4790 checks if not as firstprivate does not work.
4792 2021-06-25 Chung-Lin Tang <cltang@codesourcery.com>
4795 * testsuite/libgomp.c-c++-common/struct-elem-5.c:
4796 Add "target offload_device_nonshared_as" condition for enabling test.
4798 2021-06-24 Jakub Jelinek <jakub@redhat.com>
4800 * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
4801 * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
4802 * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
4803 * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
4805 2021-06-23 Jakub Jelinek <jakub@redhat.com>
4807 PR middle-end/101167
4808 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
4810 2021-06-17 Chung-Lin Tang <cltang@codesourcery.com>
4812 * hashtab.h (htab_clear): New function with initialization code
4813 factored out from...
4814 (htab_create): ...here, adjust to use htab_clear function.
4815 * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
4816 special refcount values, add comments.
4817 (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
4818 (REFCOUNT_LINK): Likewise.
4819 (REFCOUNT_STRUCTELEM): New special refcount range for structure
4821 (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
4823 (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
4824 (REFCOUNT_STRUCTELEM_FLAG_LAST): Flag to indicate last sibling.
4825 (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
4826 (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
4827 (struct splay_tree_key_s): Add structelem_refcount and
4828 structelem_refcount_ptr fields into a union with dynamic_refcount.
4830 (gomp_map_vars): Delete declaration.
4831 (gomp_map_vars_async): Likewise.
4832 (gomp_unmap_vars): Likewise.
4833 (gomp_unmap_vars_async): Likewise.
4834 (goacc_map_vars): New declaration.
4835 (goacc_unmap_vars): Likewise.
4836 * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
4837 (goacc_enter_datum): Likewise.
4838 (goacc_enter_data_internal): Likewise.
4839 * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
4840 and goacc_unmap_vars.
4841 (GOACC_data_start): Adjust to use goacc_map_vars.
4842 (GOACC_data_end): Adjust to use goacc_unmap_vars.
4843 * target.c (hash_entry_type): New typedef.
4844 (htab_alloc): New function hook for hashtab.h.
4845 (htab_free): Likewise.
4846 (htab_hash): Likewise.
4847 (htab_eq): Likewise.
4848 (hashtab.h): Add file include.
4849 (gomp_increment_refcount): New function.
4850 (gomp_decrement_refcount): Likewise.
4851 (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
4852 gomp_increment_refcount.
4853 (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
4854 to gomp_map_vars_existing.
4855 (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
4856 variable to guard OpenMP specific paths, adjust calls to
4857 gomp_map_vars_existing, add structure element sibling splay_tree_key
4858 sequence creation code, adjust Fortran map case to avoid increment
4860 (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
4861 local refcount_set if caller passed in NULL, adjust call to
4862 gomp_map_vars_internal.
4863 (gomp_map_vars_async): Adjust and rename into...
4864 (goacc_map_vars): ...this new function, adjust call to
4865 gomp_map_vars_internal.
4866 (gomp_remove_splay_tree_key): New function with code factored out from
4867 gomp_remove_var_internal.
4868 (gomp_remove_var_internal): Add code to handle removing multiple
4869 splay_tree_key sequence for structure elements, adjust code to use
4870 gomp_remove_splay_tree_key for splay-tree key removal.
4871 (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
4872 gomp_decrement_refcount.
4873 (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
4874 local refcount_set if caller passed in NULL, adjust call to
4875 gomp_unmap_vars_internal.
4876 (gomp_unmap_vars_async): Adjust and rename into...
4877 (goacc_unmap_vars): ...this new function, adjust call to
4878 gomp_unmap_vars_internal.
4879 (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
4881 (GOMP_target_ext): Likewise.
4882 (gomp_target_data_fallback): Adjust call to gomp_map_vars.
4883 (GOMP_target_data): Likewise.
4884 (GOMP_target_data_ext): Likewise.
4885 (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
4886 (gomp_exit_data): Add refcount_set parameter, adjust to use
4887 gomp_decrement_refcount, adjust to queue splay-tree keys for removal
4889 (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
4890 gomp_map_vars and gomp_exit_data.
4891 (gomp_target_task_fn): Likewise.
4892 * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
4893 * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
4894 * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
4895 * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
4896 * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
4897 * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
4899 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
4902 * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
4904 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
4905 Thomas Schwinge <thomas@codesourcery.com>
4907 * libgomp.map (GOACC_2.0.2): New symbol version.
4908 * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
4909 * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
4911 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
4912 Andrew Stubbs <ams@codesourcery.com>
4914 * oacc-mem.c (goacc_enter_exit_data_internal): New function,
4916 (GOACC_enter_exit_data): ... here.
4917 (GOACC_declare): Use it.
4919 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
4921 * oacc-parallel.c (GOACC_declare): Move...
4922 * oacc-mem.c: ... here.
4923 * libgomp_g.h: Adjust.
4925 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
4926 Thomas Schwinge <thomas@codesourcery.com>
4928 * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
4931 2021-06-10 Jakub Jelinek <jakub@redhat.com>
4933 PR tree-optimization/100981
4934 * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
4935 dsdotr and dsdoti to 0.
4937 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
4939 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
4940 if atomic compare-and-swap is supported on 'int'.
4942 2021-06-09 Richard Biener <rguenther@suse.de>
4944 PR tree-optimization/100981
4945 * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
4947 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4949 * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
4951 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4953 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4954 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
4956 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4958 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
4959 '-DACC_MEM_SHARED=0'.
4960 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
4961 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
4962 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
4963 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
4964 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
4965 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
4966 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
4967 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
4968 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
4969 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
4970 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
4971 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
4972 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
4973 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
4974 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
4975 'acc_device_radeon' testing.
4976 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
4977 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
4978 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
4979 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
4980 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
4981 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
4982 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
4983 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
4984 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
4985 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
4986 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
4987 for non-'openacc_nvidia_accel_selected'.
4988 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
4989 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
4990 all implement this checking".
4991 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
4992 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
4993 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
4994 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
4995 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
4997 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4999 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
5000 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
5002 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5004 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
5005 for 'acc_device_radeon'.
5007 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5009 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
5010 for non-'acc_device_nvidia'.
5012 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5014 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
5015 'acc_device_radeon' testing.
5016 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5017 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5018 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5020 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5022 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
5023 require 'openacc_nvidia_accel_selected'. Fix up for
5024 'ACC_DEVICE_TYPE_radeon'.
5026 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5028 * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
5029 'openacc_nvidia_accel_selected'.
5030 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
5032 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5034 * testsuite/lib/libgomp.exp
5035 (check_effective_target_openacc_radeon_accel_selected):
5038 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5040 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
5043 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5045 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5046 <acc_device_nvidia>: Update comment.
5048 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
5050 * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
5052 2021-05-27 Jakub Jelinek <jakub@redhat.com>
5054 * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
5055 check_effective_target_openacc_cublas,
5056 check_effective_target_openacc_cudart): New.
5057 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
5058 target openacc_cublas.
5059 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
5060 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
5061 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
5062 target openacc_cuda.
5063 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
5064 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
5065 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
5066 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
5067 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
5068 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
5069 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
5070 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
5071 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
5072 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
5073 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
5074 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
5075 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
5076 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
5077 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
5078 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
5079 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
5080 targets openacc_cublas and openacc_cudart.
5081 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
5082 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
5083 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
5084 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
5085 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
5086 Require effective target openacc_cudart.
5087 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
5088 for effective target openacc_cuda and add && defined USE_CUDA_H to
5089 preprocessor conditionals. Guard -lcuda also on openacc_cuda
5092 2021-05-26 Jakub Jelinek <jakub@redhat.com>
5095 * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
5096 GOMP_target_end_data, GOMP_target_update_ext,
5097 GOMP_target_enter_exit_data): New dummy entrypoints.
5098 * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
5099 GOMP_target_end_data, GOMP_target_update_ext,
5100 GOMP_target_enter_exit_data): Likewise.
5101 * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
5102 OMPFROM, OMPTO): Define.
5103 (main): Remove #pragma omp target teams around all the tests.
5104 * testsuite/libgomp.c-c++-common/target-41.c: New test.
5105 * testsuite/libgomp.c-c++-common/target-42.c: New test.
5107 2021-05-25 Jakub Jelinek <jakub@redhat.com>
5110 * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
5112 2021-05-24 Tobias Burnus <tobias@codesourcery.com>
5115 * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
5116 * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
5117 * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
5119 2021-05-22 Thomas Schwinge <thomas@codesourcery.com>
5122 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
5123 uninteresting/varying diagnostics.
5125 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5128 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
5129 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5131 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5134 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
5136 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5137 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
5138 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5140 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
5142 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
5144 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
5146 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
5148 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
5150 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
5152 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
5154 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
5156 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
5158 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
5160 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
5162 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
5164 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
5166 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
5168 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
5170 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
5172 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
5174 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
5176 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
5178 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
5180 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5181 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5182 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5183 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
5184 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5185 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5186 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5187 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5188 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5189 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5190 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5191 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5192 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5193 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5194 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5196 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
5198 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
5200 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5202 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5203 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5205 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5206 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5207 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5208 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5209 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
5210 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5211 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
5213 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
5215 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
5217 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
5219 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
5221 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
5223 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
5225 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
5227 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
5229 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
5231 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
5233 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
5235 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
5237 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5238 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5239 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5241 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5243 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5244 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5245 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5247 2021-05-21 Julian Brown <julian@codesourcery.com>
5248 Chung-Lin Tang <cltang@codesourcery.com>
5249 Thomas Schwinge <thomas@codesourcery.com>
5252 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
5254 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5256 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5259 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5261 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
5262 for nvptx offloading.
5264 2021-05-21 Tobias Burnus <tobias@codesourcery.com>
5266 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
5268 2021-05-19 Thomas Schwinge <thomas@codesourcery.com>
5271 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
5273 2021-05-19 Julian Brown <julian@codesourcery.com>
5275 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
5277 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
5279 * testsuite/lib/libgomp.exp
5280 (check_effective_target_offload_target_nvptx): Don't shadow global
5281 'offload_targets' variable.
5283 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
5285 * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
5286 '-latomic' to nvptx offloading compilation.
5287 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5289 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
5291 * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
5292 offloading compilation.
5294 2021-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
5296 * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
5297 if new tasks generated.
5298 * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
5300 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
5302 * testsuite/libgomp.fortran/parallel-master.f90: New test.
5304 2021-05-13 Martin Liska <mliska@suse.cz>
5307 * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
5308 * testsuite/libgomp.c/pr46032-2.c: Likewise.
5309 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
5310 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
5312 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
5314 * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
5315 * testsuite/libgomp.fortran/task-detach-12.f90: New test.
5317 2021-05-11 Jakub Jelinek <jakub@redhat.com>
5319 PR middle-end/100471
5320 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
5321 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
5323 * testsuite/libgomp.c/task-reduction-4.c: New test.
5325 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
5326 Tom de Vries <tdevries@suse.de>
5328 * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
5329 complex/floating-point || + && reduction with 'omp target'.
5330 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5332 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
5334 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
5335 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
5336 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
5337 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
5339 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
5342 * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
5343 declaration to scope of non-'depend'-guarded assignment to avoid races.
5345 2021-05-03 Tom de Vries <tdevries@suse.de>
5348 * testsuite/libgomp.c/target-44.c: New test.
5350 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
5352 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
5354 2021-04-29 Tom de Vries <tdevries@suse.de>
5356 * testsuite/libgomp.c/pr81778.c: New test.
5358 2021-04-29 Tom de Vries <tdevries@suse.de>
5361 * testsuite/libgomp.c/target-43.c: New file.
5363 2021-04-28 Jakub Jelinek <jakub@redhat.com>
5364 Tobias Burnus <tobias@codesourcery.com>
5366 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
5367 * target.c (gomp_load_plugin_for_device): If set and if a plugin
5368 can't be dlopened, silently assume it has no devices.
5369 * Makefile.in: Regenerate.
5370 * config.h.in: Regenerate.
5371 * configure: Regenerate.
5373 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
5375 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
5376 Use [Ww]arning in dg-bogus as FE diagnostic and default
5377 diagnostic differ and the result depends on ENABLE_OFFLOAD.
5378 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5379 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5380 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5382 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
5384 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
5385 Correct spelling in dg-bogus to match -Wopenacc-parallelism.
5386 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5387 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5388 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5390 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
5391 Nathan Sidwell <nathan@codesourcery.com>
5392 Tom de Vries <vries@codesourcery.com>
5393 Julian Brown <julian@codesourcery.com>
5394 Kwok Cheung Yeung <kcy@codesourcery.com>
5396 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
5397 '-Wopenacc-parallelism', and match diagnostics, as appropriate.
5398 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5399 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5400 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5401 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5402 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
5404 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
5405 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5406 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5407 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5409 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
5410 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5412 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5413 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5414 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5415 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5416 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5417 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5419 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5420 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
5421 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5422 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5423 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5424 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
5425 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5426 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5427 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5428 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5429 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5431 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
5433 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
5435 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5436 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5438 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5439 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
5440 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5441 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5442 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5443 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5444 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
5446 2021-04-22 Richard Biener <rguenther@suse.de>
5448 * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
5451 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
5453 * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
5454 omp_depend_kind instead of defining it as 16.
5456 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
5458 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
5459 New, based on check_effective_target_offload_target_nvptx.
5460 (check_effective_target_offload_target_nvptx): Call it.
5461 (check_effective_target_offload_target_amdgcn): New.
5462 * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
5463 Require target offload_target_nvptx || offload_target_amdgcn.
5464 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
5465 * testsuite/libgomp.c/pr86416-1.c: Likewise.
5466 * testsuite/libgomp.c/pr86416-2.c: Likewise.
5468 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
5470 * testsuite/libgomp.fortran/depobj-1.f90: New test.
5472 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
5474 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
5475 '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
5476 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
5478 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5480 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5482 2021-04-15 Thomas Schwinge <thomas@codesourcery.com>
5485 * testsuite/lib/libgomp.exp
5486 (check_effective_target_offload_device_nvptx): New.
5487 * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
5488 resolved, make sure that we exit quickly, with error status,
5490 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
5491 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
5493 2021-04-14 Jakub Jelinek <jakub@redhat.com>
5496 * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
5497 cp = omp_alloc with cp, p arguments instead of cq, q and call
5498 c_f_pointer after last cq = omp_alloc with cq, q.
5500 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
5503 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
5504 for loop with GT/GE condition.
5505 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
5507 2021-04-09 Thomas Schwinge <thomas@codesourcery.com>
5512 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
5514 2021-04-09 Jakub Jelinek <jakub@redhat.com>
5517 * team.c (gomp_thread_start): Call pthread_setspecific for
5518 !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
5519 has been initialized to avoid false positive warning.
5521 2021-03-29 Tobias Burnus <tobias@codesourcery.com>
5524 * testsuite/lib/on_device_arch.c: Move to ...
5525 * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
5526 * testsuite/libgomp.fortran/on_device_arch.c: New file;
5527 #include on_device_arch.h.
5528 * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
5529 on_device_arch.h instead of using dg-additional-source.
5530 * testsuite/libgomp.c/pr99555-1.c: Likewise.
5531 * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
5532 on_device_arch.c without relative paths.
5534 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
5536 * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
5537 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
5538 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
5539 * config.h.in: Regenerate.
5540 * configure: Likewise.
5542 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
5545 * testsuite/lib/on_device_arch.c: New file.
5546 * testsuite/libgomp.c/pr99555-1.c: Likewise.
5547 * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
5548 skip for nvptx offloading, with error status.
5549 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
5551 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
5553 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
5554 OpenACC 'serial' construct diagnostic for nvptx offloading.
5556 2021-03-15 Tobias Burnus <tobias@codesourcery.com>
5559 * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
5561 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
5564 * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
5566 2021-03-04 Jakub Jelinek <jakub@redhat.com>
5568 * configure.ac: Add AC_CHECK_SIZEOF([void *]).
5569 * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
5570 checking of -m32 or -mx32 options on the command line.
5571 * config.h.in: Regenerated.
5572 * configure: Regenerated.
5574 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
5576 * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
5577 support from the target.
5579 2021-02-25 Kwok Cheung Yeung <kcy@codesourcery.com>
5580 Jakub Jelinek <jakub@redhat.com>
5583 * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
5584 (struct gomp_task): Replace detach and completion_sem fields with
5585 union containing completion_sem and detach_team. Add deferred_p
5587 (struct gomp_team): Remove task_detach_queue.
5588 * task.c: Include assert.h.
5589 (gomp_init_task): Initialize deferred_p and completion_sem fields.
5590 Rearrange initialization order of fields.
5591 (task_fulfilled_p): Delete.
5592 (GOMP_task): Use address of task as the event handle. Remove
5593 initialization of detach field. Initialize deferred_p field.
5594 Use automatic local for completion_sem. Initialize detach_team field
5596 (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
5597 Set kind of suspended detach task to GOMP_TASK_DETACHED and
5598 decrement task_running_count. Move finish_cancelled block out of
5599 else branch. Relocate call to gomp_team_barrier_done.
5600 (GOMP_taskwait): Handle tasks with completion events that have not
5602 (GOMP_taskgroup_end): Likewise.
5603 (omp_fulfill_event): Use address of task as event handle. Post to
5604 completion_sem for undeferred tasks. Clear detach_team if task
5605 has not finished. For finished tasks, handle post-execution tasks,
5606 call gomp_team_barrier_wake if necessary, and free task.
5607 * team.c (gomp_new_team): Remove initialization of task_detach_queue.
5608 (free_team): Remove free of task_detach_queue.
5609 * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
5610 * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
5611 * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
5612 * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
5613 * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
5614 Change data-sharing of detach events on enclosing parallel to private.
5615 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. Remove
5617 * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
5618 * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
5619 * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
5620 * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
5621 * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
5622 * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
5623 * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
5624 * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
5625 * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
5626 * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
5627 Change data-sharing of detach events on enclosing parallel to private.
5628 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise. Remove
5630 * testsuite/libgomp.fortran/task-detach-7.f90: New.
5631 * testsuite/libgomp.fortran/task-detach-8.f90: New.
5632 * testsuite/libgomp.fortran/task-detach-9.f90: New.
5633 * testsuite/libgomp.fortran/task-detach-10.f90: New.
5634 * testsuite/libgomp.fortran/task-detach-11.f90: New.
5636 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
5639 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
5641 2021-02-17 Julian Brown <julian@codesourcery.com>
5643 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
5646 2021-02-17 Julian Brown <julian@codesourcery.com>
5648 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
5649 * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
5651 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
5653 * config/linux/x86/futex.h (__futex_wait):
5654 Revert output type back to long.
5655 (__futex_wake): Ditto.
5656 (futex_wait): Update for revert.
5657 (futex_wake): Ditto.
5659 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
5661 * config/linux/x86/futex.h (__futex_wait): New static inline
5662 wrapper function. Correct output type to int and
5663 timeout type to void *.
5664 (__futex_wake): New static inline wrapper function.
5665 Correct output type to int.
5666 (futex_wait): Use __futex_wait.
5667 (futex_wake): Use __futex_wake.
5669 2021-02-10 Julian Brown <julian@codesourcery.com>
5672 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
5675 2021-02-04 Julian Brown <julian@codesourcery.com>
5677 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
5679 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
5681 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
5682 EF_AMDGPU_MACH_AMDGCN_GFX908.
5683 (gcn_gfx908_s): New constant string.
5684 (isa_hsa_name): Add gfx908.
5685 (isa_code): Add gfx908.
5687 2021-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
5689 * libgomp.texi (omp_fulfill_event): New entry.
5691 2021-01-20 Jakub Jelinek <jakub@redhat.com>
5693 * task.c (GOMP_task): Rename priority argument to priority_arg,
5694 add priority automatic variable and modify that variable. Instead of
5695 clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
5696 check flags for that bit.
5698 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
5701 * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
5703 2021-01-18 Andreas Schwab <schwab@suse.de>
5705 * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
5707 2021-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
5709 * config/rtems/sem.h (gomp_sem_getcount): New function.
5711 2021-01-18 Jakub Jelinek <jakub@redhat.com>
5713 * config/linux/sem.h (gomp_sem_getcount): New function.
5714 * config/posix/sem.h (gomp_sem_getcount): New function.
5715 * config/posix/sem.c (gomp_sem_getcount): New function.
5716 * config/accel/sem.h (gomp_sem_getcount): New function.
5717 * task.c (task_fulfilled_p): Use gomp_sem_getcount.
5718 (omp_fulfill_event): Likewise.
5720 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
5722 * fortran.c (omp_fulfill_event_): New.
5723 * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
5724 (struct gomp_team): Add task_detach_queue and task_detach_count
5726 * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
5727 * libgomp_g.h (GOMP_task): Add extra argument.
5728 * omp.h.in (enum omp_event_handle_t): New.
5729 (omp_fulfill_event): New.
5730 * omp_lib.f90.in (omp_event_handle_kind): New.
5731 (omp_fulfill_event): New.
5732 * omp_lib.h.in (omp_event_handle_kind): New.
5733 (omp_fulfill_event): Declare.
5734 * priority_queue.c (priority_tree_find): New.
5735 (priority_list_find): New.
5736 (priority_queue_find): New.
5737 * priority_queue.h (priority_queue_predicate): New.
5738 (priority_queue_find): New.
5739 * task.c (gomp_init_task): Initialize detach field.
5740 (task_fulfilled_p): New.
5741 (GOMP_task): Add detach argument. Ignore detach argument if
5742 GOMP_TASK_FLAG_DETACH not set in flags. Initialize completion_sem
5743 field. Copy address of completion_sem into detach argument and
5744 into the start of the data record. Wait for detach event if task
5746 (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
5747 Remove completed tasks and requeue dependent tasks.
5748 (omp_fulfill_event): New.
5749 * team.c (gomp_new_team): Initialize task_detach_queue and
5750 task_detach_count fields.
5751 (free_team): Free task_detach_queue field.
5752 * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
5753 * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
5754 * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
5755 * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
5756 * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
5757 * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
5758 * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
5759 * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
5760 * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
5761 * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
5762 * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
5763 * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
5765 2021-01-15 Jakub Jelinek <jakub@redhat.com>
5768 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
5769 be added through preprocessor check on
5770 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
5772 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
5775 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
5777 * configure: Regenerate.
5778 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
5781 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
5783 * configure: Re-generate.
5785 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
5787 * configure: Re-generate.
5789 2021-01-05 Julian Brown <julian@codesourcery.com>
5791 * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
5792 (struct ptx_device): Add omp_stacks struct.
5793 (nvptx_open_device): Initialise cached-stacks housekeeping info.
5794 (nvptx_close_device): Free cached stacks block and mutex.
5795 (nvptx_stacks_free): New function.
5796 (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
5797 (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
5798 (nvptx_stacks_alloc): Rename to...
5799 (nvptx_stacks_acquire): This. Cache stacks block between runs if same
5800 size or smaller is required.
5801 (nvptx_stacks_free): Remove.
5802 (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
5803 during kernel execution.
5805 2021-01-01 Jakub Jelinek <jakub@redhat.com>
5807 * libgomp.texi: Bump @copying's copyright year.
5809 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
5811 * libgomp.texi (Top): Avoid bad "up" link.
5813 2020-12-18 Jakub Jelinek <jakub@redhat.com>
5815 * testsuite/libgomp.c/task-6.c: New test.
5817 2020-12-09 Andrew Stubbs <ams@codesourcery.com>
5819 * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
5820 (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
5822 2020-12-08 Tobias Burnus <tobias@codesourcery.com>
5824 * testsuite/libgomp.fortran/scan-1.f90: New test.
5826 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
5829 * configure: Regenerate.
5831 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
5833 * configure: Regenerate.
5835 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
5837 * testsuite/libgomp.oacc-c++/cache-1.C: New.
5838 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
5840 2020-11-25 Andrew Stubbs <ams@codesourcery.com>
5842 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
5845 2020-11-24 Andrew Stubbs <ams@codesourcery.com>
5847 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
5848 (reserved): Delete unused define.
5850 2020-11-24 Thomas Schwinge <thomas@codesourcery.com>
5852 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
5853 Tcl 8.5-specific behavior.
5854 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5856 2020-11-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5858 * env.c (gomp_global_icv): Remove nest_var field. Add
5859 max_active_levels_var field.
5860 (gomp_max_active_levels_var): Remove.
5861 (parse_boolean): Return true on success.
5862 (handle_omp_display_env): Express OMP_NESTED in terms of
5863 max_active_levels_var. Change format specifier for
5864 max_active_levels_var.
5865 (initialize_env): Set max_active_levels_var from
5866 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
5868 * icv.c (omp_set_nested): Express in terms of
5869 max_active_levels_var.
5870 (omp_get_nested): Likewise.
5871 (omp_set_max_active_levels): Use max_active_levels_var field instead
5872 of gomp_max_active_levels_var.
5873 (omp_get_max_active_levels): Likewise.
5874 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
5875 max_active_levels_var field.
5876 (gomp_supported_active_levels): Set to UCHAR_MAX.
5877 (gomp_max_active_levels_var): Delete.
5878 * libgomp.texi (omp_get_nested): Update documentation.
5879 (omp_set_nested): Likewise.
5880 (OMP_MAX_ACTIVE_LEVELS): Likewise.
5881 (OMP_NESTED): Likewise.
5882 (OMP_NUM_THREADS): Likewise.
5883 (OMP_PROC_BIND): Likewise.
5884 * parallel.c (gomp_resolve_num_threads): Replace reference
5885 to nest_var with max_active_levels_var. Use max_active_levels_var
5886 field instead of gomp_max_active_levels_var.
5888 2020-11-18 Tobias Burnus <tobias@codesourcery.com>
5890 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
5891 nvptx_usleep; use also for device={arch(gcn)}.
5893 2020-11-14 Jakub Jelinek <jakub@redhat.com>
5895 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
5896 (foo): Add tests for non-VLA private and firstprivate clauses on
5898 (bar): Likewise. Remove taking of address from private/firstprivate
5900 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
5901 (foo): Add p, q, px and s arguments. Add tests for array reductions
5902 and for non-VLA private and firstprivate clauses on omp task.
5904 (main): Adjust foo caller. Don't call bar.
5906 2020-11-13 Gergö Barany <gergo@codesourcery.com>
5907 Thomas Schwinge <thomas@codesourcery.com>
5909 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
5911 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
5913 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5915 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
5916 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5918 2020-11-13 Gergö Barany <gergo@codesourcery.com>
5919 Thomas Schwinge <thomas@codesourcery.com>
5922 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
5924 2020-11-13 Jakub Jelinek <jakub@redhat.com>
5926 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
5927 for array reductions.
5928 (main): Adjust foo callers.
5930 2020-11-12 Jakub Jelinek <jakub@redhat.com>
5932 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
5933 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
5934 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
5935 * allocator.c (omp_aligned_alloc): New for now static function,
5936 add alignment argument and handle it.
5937 (omp_alloc): Reimplement using omp_aligned_alloc.
5938 (GOMP_alloc, GOMP_free): New functions.
5939 (omp_free): Add ialias.
5940 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
5941 * testsuite/libgomp.c++/allocate-1.C: New test.
5943 2020-11-12 Thomas Schwinge <thomas@codesourcery.com>
5946 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
5948 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
5950 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
5952 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
5953 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
5954 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
5955 (goacc_enter_data_internal): Likewise.
5956 * target.c (gomp_map_vars_internal):
5957 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
5958 of gomp_attach_pointer for OpenMP cases.
5959 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
5960 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
5961 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
5963 2020-11-05 Ulrich Drepper <drepper@redhat.com>
5964 Kwok Cheung Yeung <kcy@codesourcery.com>
5966 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
5967 * Makefile.in: Regenerate.
5968 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
5969 pragmas to ignore -Wdeprecated-declarations warnings.
5971 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
5972 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
5973 and omp_get_nested with __GOMP_DEPRECATED_5_0.
5974 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
5976 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
5978 * testsuite/libgomp.c/affinity-1.c: Likewise.
5979 * testsuite/libgomp.c/affinity-2.c: Likewise.
5980 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
5981 * testsuite/libgomp.c/lib-1.c: Likewise.
5982 * testsuite/libgomp.c/nested-1.c: Likewise.
5983 * testsuite/libgomp.c/nested-2.c: Likewise.
5984 * testsuite/libgomp.c/nested-3.c: Likewise.
5985 * testsuite/libgomp.c/pr32362-1.c: Likewise.
5986 * testsuite/libgomp.c/pr32362-2.c: Likewise.
5987 * testsuite/libgomp.c/pr32362-3.c: Likewise.
5988 * testsuite/libgomp.c/pr35549.c: Likewise.
5989 * testsuite/libgomp.c/pr42942.c: Likewise.
5990 * testsuite/libgomp.c/pr61200.c: Likewise.
5991 * testsuite/libgomp.c/sort-1.c: Likewise.
5992 * testsuite/libgomp.c/target-5.c: Likewise.
5993 * testsuite/libgomp.c/target-6.c: Likewise.
5994 * testsuite/libgomp.c/teams-1.c: Likewise.
5995 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
5996 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
5997 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
5998 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
5999 * testsuite/libgomp.fortran/lib1.f90: Likewise.
6000 * testsuite/libgomp.fortran/lib2.f: Likewise.
6001 * testsuite/libgomp.fortran/nested1.f90: Likewise.
6002 * testsuite/libgomp.fortran/teams1.f90: Likewise.
6004 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
6007 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
6008 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
6009 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
6011 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
6015 * testsuite/lib/libgomp.exp (libgomp_init): Set
6016 'gcc_warning_prefix', 'gcc_error_prefix'.
6018 2020-10-30 Jakub Jelinek <jakub@redhat.com>
6020 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
6021 even in field_tgt_clear initializer.
6023 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6025 * testsuite/libgomp.c/target-42.c: New test.
6027 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6028 Tom de Vries <tdevries@suse.de>
6031 * testsuite/libgomp.c/usleep.h: New file.
6032 * testsuite/libgomp.c/target-32.c: Include usleep.h.
6033 (main): Use tgt_usleep instead of usleep.
6034 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
6035 (main): Use tgt_usleep instead of usleep.
6037 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6040 * testsuite/libgomp.c/declare-variant-1.c: New test.
6042 2020-10-22 Jakub Jelinek <jakub@redhat.com>
6044 * testsuite/libgomp.c/target-41.c: New test.
6046 2020-10-22 Jakub Jelinek <jakub@redhat.com>
6048 * icv.c (omp_get_initial_device): Remove including corresponding
6050 * icv-device.c (omp_get_initial_device): New function. Return
6051 gomp_get_num_devices (). Add ialias.
6052 * target.c (resolve_device): Don't fail with
6053 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
6054 gomp_get_num_devices ().
6055 (omp_target_alloc, omp_target_free, omp_target_is_present,
6056 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
6057 omp_target_disassociate_ptr, omp_pause_resource): Use
6058 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
6059 first use in the functions, in uses dominated by the
6060 gomp_get_num_devices call use num_devices_openmp instead.
6061 * libgomp.texi (omp_get_initial_device): Document.
6062 * config/gcn/icv-device.c (omp_get_initial_device): New function.
6064 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
6065 * testsuite/libgomp.c/target-40.c: New test.
6067 2020-10-21 Jakub Jelinek <jakub@redhat.com>
6069 * env.c (parse_target_offload): Change new_offload var type to int,
6070 preinitialize to -1, remove found var and test new_offload != -1
6073 2020-10-20 Jakub Jelinek <jakub@redhat.com>
6075 * target.c (gomp_target_init): Inside of the function, use automatic
6076 variables corresponding to num_devices, num_devices_openmp and devices
6077 global variables and update the globals only at the end of the
6080 2020-10-20 Kwok Cheung Yeung <kcy@codesourcery.com>
6082 * env.c (gomp_target_offload_var): New.
6083 (parse_target_offload): New.
6084 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
6085 (initialize_env): Parse OMP_TARGET_OFFLOAD.
6086 * libgomp.h (gomp_target_offload_t): New.
6087 (gomp_target_offload_var): New.
6088 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
6089 * target.c (resolve_device): Generate error if device not found and
6090 offloading is mandatory.
6091 (gomp_target_fallback): Generate error if offloading is mandatory.
6092 (GOMP_target): Add argument in call to gomp_target_fallback.
6093 (GOMP_target_ext): Likewise.
6094 (gomp_target_data_fallback): Generate error if offloading is mandatory.
6095 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
6096 (GOMP_target_data_ext): Likewise.
6097 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
6098 (gomp_target_init): Return early if offloading is disabled.
6100 2020-10-15 Kwok Cheung Yeung <kcy@codesourcery.com>
6102 * libgomp.texi (omp_get_max_active_levels): Modify description.
6103 (omp_get_supported_active_levels): Make descriptions consistent.
6105 2020-10-14 Jakub Jelinek <jakub@redhat.com>
6107 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
6109 2020-10-13 Kwok Cheung Yeung <kcy@codesourcery.com>
6111 * env.c (gomp_max_active_levels_var): Initialize to
6112 gomp_supported_active_levels.
6113 (initialize_env): Limit gomp_max_active_levels_var to be at most
6114 equal to gomp_supported_active_levels.
6115 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
6116 (omp_get_supported_active_levels_): New.
6117 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
6118 to at most equal to gomp_supported_active_levels.
6119 (omp_get_supported_active_levels): New.
6120 * libgomp.h (gomp_supported_active_levels): New.
6121 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
6122 omp_get_supported_active_levels_.
6123 * libgomp.texi (omp_get_supported_active_levels): New.
6124 (omp_set_max_active_levels): Update. Add reference to
6125 omp_get_supported_active_levels.
6126 * omp.h.in (omp_get_supported_active_levels): New.
6127 * omp_lib.f90.in (omp_get_supported_active_levels): New.
6128 * omp_lib.h.in (omp_get_supported_active_levels): New.
6129 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
6130 against omp_get_supported_active_levels.
6131 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
6133 2020-10-11 Clement Chigot <clement.chigot@atos.net>
6135 * config/t-aix: Delete and recreate libgomp before creating
6138 2020-10-08 Tom de Vries <tdevries@suse.de>
6141 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
6144 2020-10-06 Tom de Vries <tdevries@suse.de>
6146 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
6148 2020-10-06 Tom de Vries <tdevries@suse.de>
6151 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
6153 2020-10-05 Tom de Vries <tdevries@suse.de>
6156 * testsuite/libgomp.fortran/pr95654.f90: New test.
6158 2020-10-02 Tobias Burnus <tobias@codesourcery.com>
6160 * Makefile.in: Regenerate with automake 1.15.1.
6161 * aclocal.m4: Likewise.
6162 * configure: Likewise.
6163 * testsuite/Makefile.in: Likewise.
6165 2020-09-30 Andrew Stubbs <ams@codesourcery.com>
6167 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
6170 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
6172 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
6174 2020-09-29 Andrew Stubbs <ams@codesourcery.com>
6176 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
6177 total number of threads is one.
6178 (gomp_team_barrier_wake): Likewise.
6179 (gomp_team_barrier_wait_end): Likewise.
6180 (gomp_team_barrier_wait_cancel_end): Likewise.
6181 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
6182 (gomp_team_barrier_wake): Likewise.
6183 (gomp_team_barrier_wait_end): Likewise.
6184 (gomp_team_barrier_wait_cancel_end): Likewise.
6185 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
6187 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
6190 * testsuite/libgomp.c++/pr96390.C: New test.
6191 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
6193 2020-09-27 Clement Chigot <clement.chigot@atos.net>
6195 * config/t-aix: Use $(AR) without -X32_64.
6197 2020-09-25 Jakub Jelinek <jakub@redhat.com>
6199 * testsuite/libgomp.c/loop-25.c: New test.
6201 2020-09-22 Tobias Burnus <tobias@codesourcery.com>
6204 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
6206 2020-09-22 Tom de Vries <tdevries@suse.de>
6208 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
6211 2020-09-16 Nathan Sidwell <nathan@acm.org>
6213 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
6215 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
6218 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
6220 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
6223 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
6224 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
6225 (gomp_map_vars_existing): Update call to it.
6226 (gomp_map_fields_existing): Likewise
6227 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
6228 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
6230 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
6232 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
6233 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
6235 2020-09-14 Tom de Vries <tdevries@suse.de>
6237 * config/nvptx/atomic.c: New file. Add
6238 __sync_val_compare_and_swap_16.
6239 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
6240 target offload_target_nvptx.
6242 2020-09-08 Julian Brown <julian@codesourcery.com>
6244 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
6245 iteration-ordering assumptions.
6247 2020-09-08 Julian Brown <julian@codesourcery.com>
6249 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
6250 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
6252 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
6254 * plugin/plugin-nvptx.c (nvptx_free):
6255 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
6256 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
6259 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
6261 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
6263 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
6265 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
6267 2020-08-13 Jakub Jelinek <jakub@redhat.com>
6269 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
6270 * testsuite/libgomp.c/loop-23.c (main): Likewise.
6271 * testsuite/libgomp.c/loop-24.c: New test.
6273 2020-08-08 Jakub Jelinek <jakub@redhat.com>
6274 Tobias Burnus <tobias@codesourcery.com>
6277 * testsuite/libgomp.fortran/pr93553.f90: New test.
6279 2020-08-05 Jakub Jelinek <jakub@redhat.com>
6281 * testsuite/libgomp.c/loop-22.c: New test.
6282 * testsuite/libgomp.c/loop-23.c: New test.
6284 2020-08-05 Jakub Jelinek <jakub@redhat.com>
6287 * testsuite/libgomp.c/teams-3.c: New test.
6288 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
6290 (N(test)): Use it before all N(f*) calls.
6291 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
6292 (main): Don't call all test_* functions from within
6293 #pragma omp teams reduction(|:err), call them directly.
6295 2020-08-04 Tom de Vries <tdevries@suse.de>
6298 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
6299 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
6301 2020-08-03 Julian Brown <julian@codesourcery.com>
6302 Thomas Schwinge <thomas@codesourcery.com>
6304 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
6305 shared-memory devices. Extend with further checking.
6307 2020-08-03 Martin Jambor <mjambor@suse.cz>
6309 * plugin/Makefrag.am: Remove configuration of HSA plugin.
6310 * aclocal.m4: Regenerated.
6311 * Makefile.in: Regenerated.
6312 * config.h.in: Regenerated.
6313 * configure: Regenerated.
6314 * plugin/configfrag.ac: Likewise.
6315 * plugin/hsa_ext_finalize.h: Removed.
6316 * plugin/plugin-hsa.c: Likewise.
6317 * testsuite/Makefile.in: Regenerated.
6318 * testsuite/lib/libgomp.exp
6319 (offload_target_to_openacc_device_type): Remove hsa case.
6320 (check_effective_target_hsa_offloading_selected_nocache): Removed
6321 (check_effective_target_hsa_offloading_selected): Likewise.
6322 (libgomp_init): Do not add -Wno-hsa to additional_flags.
6323 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
6324 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
6325 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
6326 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
6327 * testsuite/libgomp.hsa.c/c.exp: Likewise.
6328 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
6329 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
6330 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
6331 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
6332 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
6333 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
6334 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
6335 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
6336 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
6337 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
6338 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
6339 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
6340 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
6341 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
6342 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
6343 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
6344 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
6345 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
6346 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
6348 2020-07-27 Julian Brown <julian@codesourcery.com>
6349 Thomas Schwinge <thomas@codesourcery.com>
6351 * libgomp.h (struct target_var_desc): Rename do_detach field to
6353 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
6354 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
6355 (goacc_enter_data_internal): Don't affect reference counts
6356 for attach mappings.
6357 (goacc_exit_data_internal): Don't affect reference counts for detach
6359 * target.c (gomp_map_vars_existing): Don't affect reference counts for
6361 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
6362 mark attach mappings.
6363 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
6364 reference count for attach mappings.
6365 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
6366 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
6367 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
6368 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
6370 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
6371 gracefully in no-finalize mode.
6372 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
6374 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
6376 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
6378 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6379 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6381 2020-07-23 Julian Brown <julian@codesourcery.com>
6382 Thomas Schwinge <thomas@codesourcery.com>
6384 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
6385 finalization for detach operation.
6386 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
6389 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
6391 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
6392 * libgomp_f.h.in (omp_check_defines): Check whether
6393 sizeof of determined Fortran kind and C typedef match.
6394 * omp_lib.f90.in: Add omp_depened_kind.
6395 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
6396 * configure: Regenerate.
6397 * Makefile.in: Regenerate.
6398 * testsuite/Makefile.in: Regenerate.
6400 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
6402 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
6403 gcc/testsuite/c-c++-common/gomp/.
6404 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
6405 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
6406 from gcc/testsuite/gfortran.dg/gomp/.
6407 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
6409 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
6411 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
6412 * omp_lib.h.in: Likewise.
6414 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
6417 * testsuite/libgomp.c/pr95620.c: New test.
6419 2020-07-16 Julian Brown <julian@codesourcery.com>
6420 Thomas Schwinge <thomas@codesourcery.com>
6422 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
6423 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
6425 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
6427 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
6428 avoid conversion on 32bit systems from 32bit to 64bit due
6429 to -fdefault-integer-8.
6431 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
6433 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
6434 variables; add character(kind=4) tests; update TODO comment.
6436 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
6438 * allocator.c: Add ialias for omp_init_allocator and
6439 omp_destroy_allocator.
6440 * configure.ac: Set INTPTR_T_KIND.
6441 * configure: Regenerate.
6442 * Makefile.in: Regenerate.
6443 * testsuite/Makefile.in: Regenerate.
6444 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
6445 omp_set_default_allocator_, omp_get_default_allocator_): New
6446 functions and ialias_redirect.
6447 * icv.c: Add ialias for omp_set_default_allocator and
6448 omp_get_default_allocator.
6449 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
6450 omp_destroy_allocator_, omp_set_default_allocator_ and
6451 omp_get_default_allocator_.
6452 * omp_lib.f90.in: Add allocator traits parameters, declare
6453 allocator routines and add related kind parameters.
6454 * omp_lib.h.in: Likewise.
6455 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
6456 * testsuite/libgomp.fortran/alloc-1.F90: New test.
6457 * testsuite/libgomp.fortran/alloc-2.F90: New test.
6458 * testsuite/libgomp.fortran/alloc-3.F: New test.
6459 * testsuite/libgomp.fortran/alloc-4.f90: New test.
6460 * testsuite/libgomp.fortran/alloc-5.f90: New test.
6462 2020-07-14 Tom de Vries <tom@codesourcery.com>
6463 Cesar Philippidis <cesar@codesourcery.com>
6464 Thomas Schwinge <thomas@codesourcery.com>
6465 Kwok Cheung Yeung <kcy@codesourcery.com>
6467 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
6469 (acc_init_1): Set acc_init_thread to pthread_self (). Set
6470 acc_init_state to initializing at the start, and to initialized at the
6472 (self_initializing_p): New function.
6473 (acc_get_device_type): Return acc_device_none if called by thread that
6474 is currently executing acc_init_1.
6475 * libgomp.texi (acc_get_device_type): Update documentation.
6476 (Implementation Status and Implementation-Defined Behavior): Likewise.
6477 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
6479 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
6481 * config/t-aix: Set BITS from compiler cpp macro.
6483 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
6485 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
6487 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
6490 * testsuite/libgomp.fortran/target-map-1.f90: New test.
6492 2020-07-14 Jakub Jelinek <jakub@redhat.com>
6494 * testsuite/libgomp.c/loop-21.c: New test.
6496 2020-07-13 Julian Brown <julian@codesourcery.com>
6497 Thomas Schwinge <thomas@codesourcery.com>
6499 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
6501 2020-07-10 Julian Brown <julian@codesourcery.com>
6502 Thomas Schwinge <thomas@codesourcery.com>
6504 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
6506 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
6507 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
6509 (acc_unmap_data): Update comment.
6510 (goacc_map_var_existing, goacc_enter_datum): Adjust for
6511 dynamic_refcount semantics.
6512 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
6513 Adjust for dynamic_refcount semantics.
6514 (goacc_enter_data_internal): Implement "present" case of dynamic
6515 memory-map handling here. Update "non-present" case for
6516 dynamic_refcount semantics.
6517 (goacc_exit_data_internal): Use goacc_exit_datum_1.
6518 * target.c (gomp_map_vars_internal): Remove
6519 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
6521 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
6522 (gomp_load_image_to_device): Substitute dynamic_refcount for
6524 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
6525 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
6526 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
6527 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
6528 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
6530 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
6532 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
6534 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
6535 Remove stale comment.
6536 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
6537 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
6538 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6539 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6540 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6541 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
6543 2020-07-10 Julian Brown <julian@codesourcery.com>
6544 Thomas Schwinge <thomas@codesourcery.com>
6546 * oacc-mem.c (goacc_map_var_existing): New function.
6547 (goacc_enter_datum): Use above function.
6548 (goacc_exit_datum_1): New function.
6549 (goacc_exit_datum): Use above function.
6551 2020-07-09 Julian Brown <julian@codesourcery.com>
6552 Thomas Schwinge <thomas@codesourcery.com>
6555 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
6556 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
6558 2020-07-09 Julian Brown <julian@codesourcery.com>
6560 * oacc-mem.c (find_group_last): Group data-movement clauses
6561 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
6562 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
6564 2020-07-09 Jakub Jelinek <jakub@redhat.com>
6566 * testsuite/libgomp.c/loop-19.c: New test.
6567 * testsuite/libgomp.c/loop-20.c: New test.
6569 2020-07-09 Jakub Jelinek <jakub@redhat.com>
6571 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
6572 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
6573 it. Remove __omp_alloctrait_value_max__.
6574 * allocator.c (omp_init_allocator): Handle omp_atv_default for
6575 omp_atk_alignment and omp_atk_pool_size.
6577 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
6579 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
6580 behavior for 'GOMP_MAP_FORCE_FROM'.
6581 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
6583 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
6585 * oacc-mem.c (goacc_exit_data_internal): Remove
6586 'GOMP_MAP_ALWAYS_FROM' handling.
6588 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
6590 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
6591 'scan-assembler' with 'scan-offload-rtl'.
6592 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
6593 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
6594 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
6595 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
6597 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
6599 * target.c (gomp_map_vars_existing): Assert 'kind !=
6601 (gomp_map_vars_internal): Clean up.
6603 2020-06-27 Jakub Jelinek <jakub@redhat.com>
6605 * testsuite/libgomp.c/loop-17.c: New test.
6606 * testsuite/libgomp.c/loop-18.c: New test.
6608 2020-06-26 Marek Polacek <polacek@redhat.com>
6610 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
6612 2020-06-23 Alexandre Oliva <oliva@adacore.com>
6614 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
6615 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
6617 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
6619 * Makefile.am: Use -include.
6620 * Makefile.in: Regenerate.
6622 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
6624 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
6625 * Makefile.in: Regenerate
6626 * configure.ac (tmake_file): Substitute.
6627 * configure: Regenerate.
6628 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
6629 * config/t-aix: New file.
6631 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
6634 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
6637 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
6639 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
6640 variant for HSA_RUNTIME_LIB name.
6641 (find_executable_symbol_1): Delete.
6642 (find_executable_symbol): Delete.
6643 (init_kernel_properties): Add ".kd" suffix to symbol names.
6644 (find_load_offset): Delete.
6645 (create_and_finalize_hsa_program): Remove relocation handling.
6647 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
6649 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
6651 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
6655 * testsuite/libgomp.fortran/target-var.f90: New test.
6657 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
6658 Julian Brown <julian@codesourcery.com>
6660 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
6663 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
6664 Julian Brown <julian@codesourcery.com>
6666 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6669 2020-06-05 Julian Brown <julian@codesourcery.com>
6671 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
6672 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
6674 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6676 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6677 Evaluate 'copyfrom' individually for each entry.
6678 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
6680 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6682 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6683 Evaluate 'finalize' individually for each entry.
6684 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
6685 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
6688 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6690 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
6692 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
6694 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6695 Julian Brown <julian@codesourcery.com>
6697 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
6699 (acc_unmap_data, goacc_exit_data_internal): Restore
6700 'is_tgt_unmapped' checking.
6701 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
6703 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
6704 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
6705 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6706 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6707 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6708 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
6710 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6711 Julian Brown <julian@codesourcery.com>
6713 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
6715 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6718 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
6720 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6723 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
6726 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6727 Julian Brown <julian@codesourcery.com>
6729 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
6731 (acc_map_data): Clean up accordingly.
6733 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6735 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
6736 of over-eager 'finalize' clause.
6737 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
6739 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
6740 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
6741 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6742 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6743 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6744 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
6745 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
6746 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
6748 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6750 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
6752 2020-06-04 Julian Brown <julian@codesourcery.com>
6754 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
6756 (goacc_detach_internal): Likewise.
6758 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6760 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
6762 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
6763 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
6764 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
6765 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
6766 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
6768 2020-06-02 Jakub Jelinek <jakub@redhat.com>
6770 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
6773 2020-05-30 Jakub Jelinek <jakub@redhat.com>
6775 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
6777 2020-05-30 Jakub Jelinek <jakub@redhat.com>
6779 * allocator.c (omp_alloc): For size == 0, return NULL early.
6781 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
6784 * configure: Regenerated.
6786 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
6789 * testsuite/libgomp.fortran/async_io_9.f90: New test.
6791 2020-05-19 Jakub Jelinek <jakub@redhat.com>
6793 * omp.h.in (omp_uintptr_t): New typedef.
6794 (__GOMP_UINTPTR_T_ENUM): Define.
6795 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
6796 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
6797 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
6798 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
6799 omp_get_default_allocator, omp_alloc, omp_free): Declare.
6800 * libgomp.h (struct gomp_team_state): Add def_allocator field.
6801 (gomp_def_allocator): Declare.
6802 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
6803 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
6804 omp_alloc and omp_free.
6805 * team.c (gomp_team_start): Copy over ts.def_allocator.
6806 * env.c (gomp_def_allocator): New variable.
6807 (parse_wait_policy): Adjust function comment.
6808 (parse_allocator): New function.
6809 (handle_omp_display_env): Print OMP_ALLOCATOR.
6810 (initialize_env): Call parse_allocator.
6811 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
6812 * allocator.c: New file.
6813 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
6815 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
6816 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
6817 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
6818 * Makefile.in: Regenerated.
6820 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
6823 * configure: Regenerated.
6825 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
6828 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
6830 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
6832 * configure: Regenerated.
6834 2020-05-14 Jakub Jelinek <jakub@redhat.com>
6836 * testsuite/libgomp.c-c++-common/target-40.c: New test.
6838 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
6841 * testsuite/libgomp.fortran/pr66199-3.f90: New.
6842 * testsuite/libgomp.fortran/pr66199-4.f90: New.
6843 * testsuite/libgomp.fortran/pr66199-5.f90: New.
6844 * testsuite/libgomp.fortran/pr66199-6.f90: New.
6845 * testsuite/libgomp.fortran/pr66199-7.f90: New.
6846 * testsuite/libgomp.fortran/pr66199-8.f90: New.
6847 * testsuite/libgomp.fortran/pr66199-9.f90: New.
6849 2020-05-12 Jakub Jelinek <jakub@redhat.com>
6851 * testsuite/libgomp.c/target-39.c: New test.
6853 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
6855 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
6856 * openacc.f90 (acc_device_current): Likewise.
6857 * openacc.h (acc_device_current): Likewise.
6858 * openacc_lib.h (acc_device_current): Likewise.
6861 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
6862 'dg-allow-blank-lines-in-output'.
6864 * oacc-init.c (get_openacc_name): Handle 'gcn'.
6865 * testsuite/lib/libgomp.exp
6866 (offload_target_to_openacc_device_type) [amdgcn*]: Return
6867 'radeon'. Adjust all users.
6868 (check_effective_target_openacc_amdgcn_accel_present): Rename
6870 (check_effective_target_openacc_radeon_accel_present): ... this.
6872 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
6873 (check_effective_target_openacc_radeon_accel_selected): ... this.
6876 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
6879 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
6883 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
6885 (GOMP_OFFLOAD_init_device): Check return values from both calls to
6886 hsa_agent_iterate_regions.
6888 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
6891 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
6894 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
6897 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
6900 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
6903 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
6905 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
6908 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
6910 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
6912 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
6914 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
6916 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
6918 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
6920 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
6922 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
6924 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
6926 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
6928 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
6930 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
6932 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
6934 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
6936 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
6938 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
6940 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
6942 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
6944 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
6946 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
6948 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
6950 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
6952 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
6954 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
6956 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
6958 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
6960 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
6962 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
6964 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
6966 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
6968 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
6970 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
6973 2020-04-10 Julian Brown <julian@codesourcery.com>
6974 Thomas Schwinge <thomas@codesourcery.com>
6977 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
6979 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
6981 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
6983 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
6985 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
6987 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
6989 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
6991 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
6993 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
6995 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
6997 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
6999 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7001 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7003 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7005 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7007 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
7010 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
7012 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
7015 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
7018 * libgomp.oacc-c++/declare-pr94120.C: New.
7020 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
7022 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
7024 * configure: Regenerate.
7025 * testsuite/libgomp-site-extra.exp.in: New file.
7026 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
7028 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
7030 * testsuite/Makefile.in: Regenerate.
7032 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
7034 PR tree-optimization/89713
7036 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
7038 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
7040 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
7042 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
7043 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
7045 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
7048 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
7050 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
7053 * target.c (gomp_load_image_to_device): Fix link
7056 2020-03-19 Jakub Jelinek <jakub@redhat.com>
7059 * testsuite/libgomp.c++/pr93931.C: New test.
7061 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
7063 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
7064 dg-allow-blank-lines-in-output.
7066 2020-03-18 Julian Brown <julian@codesourcery.com>
7067 Tobias Burnus <tobias@codesourcery.com>
7069 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
7070 it work concurrently.
7072 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
7074 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
7075 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
7076 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
7078 2020-03-14 Jakub Jelinek <jakub@redhat.com>
7081 * testsuite/libgomp.c/pr93566.c: New test.
7083 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
7085 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
7086 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
7087 integer(acc_device_property) for the type of the return value of
7090 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
7092 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
7093 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
7094 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
7095 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
7096 (acc_set_device_num): Fix Fortran argument name, use same name for C.
7097 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
7098 corrections; add note about the previous interface and named constant.
7099 (OpenACC library and environment variables): Fix two typos.
7100 * openacc.f90: Use for all procedures the argument names from the spec
7101 as for …_h they are user visible.
7102 (openacc_kinds): Rename acc_device_property to
7103 acc_device_property_kinds and change value to int32 ; and update users.
7104 Re-add acc_device_property for for backward compatibility.
7105 (acc_get_property_string_h): Clean up as acc_device_property_kind
7107 (acc_get_property_h): Likewise and return c_size_t instead of
7108 acc_device_property.
7109 (openacc): Also export acc_device_property_kinds.
7110 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
7111 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
7112 handling; check against /= 0 instead of == 1 to match C.
7113 * openacc_lib.h: Use for all procedures the argument names from the spec
7114 as for …_h they are user visible. Place !GCC$ into the first column to
7115 be active also for fixed-form souce form.
7116 (acc_device_current, acc_device_property_kind, acc_device_property,
7117 acc_property_memory, acc_property_free_memory, acc_property_name,
7118 acc_property_vendor, acc_property_driver): New named constants.
7119 (acc_get_property, acc_get_property_string): New generic interface.
7121 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
7124 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
7125 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
7127 (gomp_target_task_fn): Assert "devicep->async_run_func".
7128 (clear_unsupported_flags): New function to remove unsupported flags
7129 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
7130 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
7131 * testsuite/libgomp.c/target-33.c:
7132 Remove xfail for offload_target_nvptx.
7133 * testsuite/libgomp.c/target-34.c: Likewise.
7135 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
7137 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
7138 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
7139 * testsuite/libgomp.c/target-34.c: Likewise.
7140 * testsuite/libgomp.c/target-link-1.c: Add xfail for
7141 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
7143 2020-02-09 Jakub Jelinek <jakub@redhat.com>
7145 * testsuite/libgomp.c/target-38.c: New test.
7147 2020-02-06 Jakub Jelinek <jakub@redhat.com>
7150 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
7152 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
7154 * testsuite/lib/libgomp.exp
7155 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
7156 and not as 'source' argument to libgomp_target_compile.
7158 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
7160 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
7161 (gcn_gfx801_s): Remove.
7162 (isa_hsa_name): Remove gfx801.
7163 (isa_gcc_name): Remove gfx801/carizzo.
7164 (isa_code): Remove gfx801.
7166 2020-02-03 Julian Brown <julian@codesourcery.com>
7167 Tobias Burnus <tobias@codesourcery.com>
7169 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
7170 and *_finalize variants; document acc_attach and acc_detach; update
7171 references from OpenACC 2.0 to 2.6.
7172 * openacc.f90 (openacc_version): Update to 201711.
7173 * openacc_lib.h (openacc_version): Update to 201711.
7174 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
7175 openacc_version to 201711.
7176 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7178 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
7180 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
7181 and vgpr_count fields.
7182 (struct kernel_info): Add a field for a hsa_kernel_description.
7183 (run_kernel): Reduce the number of threads/workers if the requested
7184 number would require too many VGPRs.
7185 (init_basic_kernel_info): Initialize description field with
7186 the hsa_kernel_description entry for the kernel.
7188 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
7191 * plugin/configfrag.ac (enable_offload_targets): Skip
7192 HSA and GCN plugin besides -m32 also for -mx32.
7193 * configure: Regenerate.
7195 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
7197 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
7199 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
7201 * plugin-gcn.c (struct agent_info): Add fields "name" and
7203 (GOMP_OFFLOAD_init_device): ... and init from here.
7204 (struct hsa_context_info): Add field "driver_version_s" ...
7205 (init_hsa_contest): ... and init from here.
7206 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
7208 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7209 Enable test execution for amdgcn and host offloading targets.
7210 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
7211 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7212 (expect_device_properties): Split function into ...
7213 (expect_device_string_properties): ... this new function ...
7214 (expect_device_memory): ... and this new function.
7215 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
7218 2020-01-28 Julian Brown <julian@codesourcery.com>
7220 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
7221 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
7222 component/non-component variable refs in a single directive.
7223 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
7225 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
7227 * configure.ac: Handle `--with-toolexeclibdir='.
7228 * Makefile.in: Regenerate.
7229 * aclocal.m4: Regenerate.
7230 * configure: Regenerate.
7231 * testsuite/Makefile.in: Regenerate.
7233 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
7235 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7236 (expect_device_properties): Remove "expected_free_mem" argument,
7237 change "expected_total_mem" argument type to size_t;
7238 change types of acc_get_property results to size_t,
7239 adapt format strings.
7240 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7241 Use %zu instead of %zd to print size_t values.
7242 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
7244 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
7245 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
7247 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
7249 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
7251 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
7254 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
7256 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
7257 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
7258 Adjust test dimensions for amdgcn.
7259 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
7260 gang/worker/vector expectations dynamically.
7261 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
7263 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
7264 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
7265 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
7266 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
7267 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
7268 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
7269 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
7270 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
7271 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
7272 (acc_gang): Recognise acc_device_radeon.
7273 (acc_worker): Likewise.
7274 (acc_vector): Likewise.
7275 (main): Set expectations for amdgcn.
7276 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
7277 (main): Adjust gang/worker/vector expectations dynamically.
7278 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
7279 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
7280 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
7281 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
7284 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
7286 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
7288 (openacc): Likewise.
7289 * openacc.f90 (openacc_kinds): Likewise.
7290 (openacc): Likewise.
7291 * openacc.h (acc_device_t): Likewise.
7292 * openacc_lib.h: Likewise.
7293 * testsuite/lib/libgomp.exp
7294 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
7295 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
7296 (cb_compute_construct_end): Likewise.
7297 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
7298 (cb_enqueue_launch_start): Likewise.
7299 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
7300 (cb_enter_data_end): Likewise.
7301 (cb_exit_data_start): Likewise.
7302 (cb_exit_data_end): Likewise.
7303 (cb_compute_construct_end): Likewise.
7304 (cb_enqueue_launch_start): Likewise.
7305 (cb_enqueue_launch_end): Likewise.
7306 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
7309 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
7311 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
7312 to use this instead of 'enum gomp_device_property'.
7313 (GOMP_OFFLOAD_get_property): Rename to...
7314 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
7315 * libgomp.h (struct gomp_device_descr): Move
7316 'GOMP_OFFLOAD_openacc_get_property'...
7317 (struct acc_dispatch_t): ... here. Adjust all users.
7318 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
7320 * target.c (gomp_map_vars_internal)
7321 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
7324 2020-01-10 Jakub Jelinek <jakub@redhat.com>
7327 * libgomp.h (gomp_print_string): Change return type from void to int.
7328 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
7329 not all characters have been written.
7331 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
7333 * libgomp.texi: Fix typos, use https.
7335 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
7337 * testsuite/libgomp.fortran/optional-map.f90: Add test for
7338 unallocated/disassociated actual arguments to nonallocatable/nonpointer
7339 dummy arguments; those are/shall be regarded as absent arguments.
7340 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
7341 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
7343 2020-01-01 Jakub Jelinek <jakub@redhat.com>
7345 Update copyright years.
7347 * libgomp.texi: Bump @copying's copyright year.
7349 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
7352 * oacc-init.c (goacc_runtime_deinitialize): New function.
7354 2019-12-28 Jakub Jelinek <jakub@redhat.com>
7357 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
7358 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
7360 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
7361 Frederik Harwath <frederik@codesourcery.com>
7362 Thomas Schwinge <tschwinge@codesourcery.com>
7364 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
7365 * libgomp-plugin.h (gomp_device_property_value): New union.
7366 (gomp_device_property_value): New prototype.
7367 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
7369 (acc_device_property_t): New enum.
7370 (acc_get_property, acc_get_property_string): New prototypes.
7371 * oacc-init.c (acc_get_device_type): Also assert that result
7372 is not `acc_device_current'.
7373 (get_property_any, acc_get_property, acc_get_property_string):
7375 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
7376 `acc_property_memory', `acc_property_free_memory',
7377 `acc_property_name', `acc_property_vendor' and
7378 `acc_property_driver' constants. Add `acc_device_property' data
7380 (openacc_internal): Add `acc_get_property' and
7381 `acc_get_property_string' interfaces. Add `acc_get_property_h',
7382 `acc_get_property_string_h', `acc_get_property_l' and
7383 `acc_get_property_string_l'.
7384 * oacc-host.c (host_get_property): New function.
7385 (host_dispatch): Wire it.
7386 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
7387 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
7388 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
7389 * libgomp.texi (OpenACC Runtime Library Routines): Add
7391 (acc_get_property): New node.
7392 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
7394 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
7395 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
7396 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
7398 (GOMP_OFFLOAD_get_property): New function.
7399 (struct ptx_device): Add new field "name".
7400 (cuda_driver_version_s): Add new static variable ...
7401 (nvptx_init): ... and init from here.
7403 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
7404 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
7405 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
7406 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
7407 with test helper functions.
7409 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
7411 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
7413 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
7416 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
7418 * target.c (gomp_map_vars_internal): Restore 'omp declare target
7421 2019-12-19 Julian Brown <julian@codesourcery.com>
7423 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
7424 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
7425 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
7427 2019-12-19 Julian Brown <julian@codesourcery.com>
7428 Cesar Philippidis <cesar@codesourcery.com>
7430 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
7431 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
7432 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
7433 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
7434 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
7435 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
7436 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
7437 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
7438 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
7439 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
7440 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
7441 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
7442 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
7444 2019-12-19 Julian Brown <julian@codesourcery.com>
7446 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
7447 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
7448 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
7449 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
7450 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
7451 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
7452 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
7453 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
7454 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
7455 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
7456 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
7457 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
7459 2019-12-19 Julian Brown <julian@codesourcery.com>
7461 * libgomp.h (struct target_var_desc): Add do_detach flag.
7462 * oacc-init.c (acc_shutdown_1): Free aux block if present.
7463 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
7464 struct components. Tidy up and add some new checks.
7465 (goacc_enter_data_internal): Update call to find_group_last.
7466 (goacc_exit_data_internal): Support detach operations and
7468 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
7469 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
7470 attach/detach in enter/exit data detection code.
7471 * target.c (gomp_map_vars_existing): Initialise do_detach field of
7473 (gomp_map_vars_internal): Support attach.
7474 (gomp_unmap_vars_internal): Support detach.
7476 2019-12-19 Julian Brown <julian@codesourcery.com>
7477 Thomas Schwinge <thomas@codesourcery.com>
7479 * libgomp.h (struct splay_tree_aux): Add attach_count field.
7480 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
7481 * libgomp.map (OACC_2.6): New section. Add acc_attach,
7482 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
7483 acc_detach_finalize_async.
7484 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
7485 acc_detach, acc_detach_async, acc_detach_finalize,
7486 acc_detach_finalize_async): New functions.
7487 * openacc.h (acc_attach, acc_attach_async, acc_detach,
7488 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
7490 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
7491 (gomp_remove_var_internal): Free attachment counts if present.
7492 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
7493 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
7495 2019-12-19 Julian Brown <julian@codesourcery.com>
7496 Cesar Philippidis <cesar@codesourcery.com>
7498 * libgomp.h (gomp_map_val): Add prototype.
7499 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
7500 open-coding device-address calculation.
7501 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
7504 2019-12-19 Julian Brown <julian@codesourcery.com>
7506 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
7507 field for virtual_refcount.
7508 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
7509 (gomp_free_memmap): Remove prototype.
7510 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
7511 instead of calling gomp_free_memmap.
7512 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
7514 (acc_unmap_data): Open code instead of forcing target_mem_desc's
7515 to_free field to NULL then calling gomp_unmap_vars. Handle
7516 REFCOUNT_INFINITY on target blocks.
7517 (goacc_enter_data): Rename to...
7518 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
7519 handling for mapping groups. Use virtual_refcount instead of
7520 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
7521 map_map_vars_async call. Re-do lookup for target pointer return value.
7522 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
7523 renamed goacc_enter_datum function.
7524 (goacc_exit_data): Rename to...
7525 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
7526 (acc_delete, acc_delete_async, acc_delete_finalize,
7527 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
7528 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
7529 goacc_exit_datum function.
7530 (gomp_acc_remove_pointer, find_pointer): Remove functions.
7531 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
7533 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
7534 goacc_exit_data_internal helper functions.
7535 * target.c (gomp_map_vars_internal): Handle
7536 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
7538 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
7539 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
7540 virtual_refcount field instead of dynamic_refcount.
7541 (gomp_free_memmap): Remove function.
7542 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
7543 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
7544 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
7546 2019-12-19 Julian Brown <julian@codesourcery.com>
7547 Thomas Schwinge <thomas@codesourcery.com>
7549 * libgomp.h (struct splay_tree_aux): New.
7550 (struct splay_tree_key_s): Replace link_key field with aux pointer.
7551 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
7553 (gomp_remove_var_internal): Free aux block if present.
7554 (gomp_load_image_to_device): Zero-initialise aux field instead of
7556 (omp_target_associate_pointer): Zero-initialise aux field.
7558 2019-12-18 Jakub Jelinek <jakub@redhat.com>
7561 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
7563 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
7566 2019-12-19 Julian Brown <julian@codesourcery.com>
7567 Maciej W. Rozycki <macro@codesourcery.com>
7568 Tobias Burnus <tobias@codesourcery.com>
7569 Thomas Schwinge <thomas@codesourcery.com>
7571 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
7572 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
7573 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
7574 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
7575 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
7576 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
7577 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
7578 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
7579 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
7581 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
7583 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
7585 (goacc_insert_pointer): ... from here, "present" case.
7586 (goacc_insert_pointer): Inline function into...
7587 (GOACC_enter_exit_data): ... here, and simplify.
7589 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
7591 (goacc_insert_pointer): ... from here, "not present" case.
7593 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
7596 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
7597 'goacc_enter_data', 'goacc_exit_data'.
7599 * oacc-mem.c (delete_copyout): Refactor into...
7600 (goacc_exit_data): ... this. Adjust all users.
7602 * oacc-mem.c (present_create_copy): Refactor into...
7603 (goacc_enter_data): ... this. Adjust all users.
7605 * target.c (gomp_unmap_vars_internal): Add a safeguard to
7608 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
7609 like 'GOMP_MAP_FROM'.
7614 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
7616 (GOACC_enter_exit_data): Simplify accordingly.
7617 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
7619 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
7620 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
7622 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
7624 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
7625 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
7627 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
7629 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
7631 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
7632 'finalize' handling.
7635 * oacc-mem.c (acc_map_data, present_create_copy)
7636 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
7637 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
7638 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
7639 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
7640 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
7641 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
7642 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
7643 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
7646 * target.c (gomp_unmap_tgt): Make it 'static'.
7647 * libgomp.h (gomp_unmap_tgt): Remove.
7649 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
7652 * testsuite/libgomp.c/pr86416-1.c: New.
7653 * testsuite/libgomp.c/pr86416-2.c: New.
7655 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
7657 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
7658 all symbols as public except for the 'use …, only' imported symbol,
7660 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
7661 all symbols from module openacc_kinds as PUBLIC
7662 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
7664 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
7666 2019-12-13 Julian Brown <julian@codesourcery.com>
7670 * libgomp.h (gomp_remove_var_async): Add prototype.
7671 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
7673 * target.c (gomp_unref_tgt): Change return type to bool, indicating
7674 whether target_mem_desc was unmapped.
7675 (gomp_unref_tgt_void): New.
7676 (gomp_remove_var): Reimplement in terms of...
7677 (gomp_remove_var_internal): ...this new helper function.
7678 (gomp_remove_var_async): New, implemented using above helper function.
7679 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
7682 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
7684 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
7685 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
7686 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
7687 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
7688 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
7690 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
7691 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
7693 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
7695 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
7696 as public except for the 'use …, only' imported symbol, which is
7698 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
7699 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
7700 attributes for acc_copyout_finalize and acc_delete_finalize.
7702 2019-12-11 Jakub Jelinek <jakub@redhat.com>
7705 * testsuite/libgomp.fortran/atomic1.f90: New test.
7707 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
7710 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
7711 reference counting for structured 'REFCOUNT_INFINITY'. Add some
7713 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
7714 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
7715 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
7716 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
7717 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
7719 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
7720 * oacc-mem.c: ... here.
7721 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
7722 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
7723 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
7725 * libgomp_g.h: Update.
7727 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
7728 * oacc-async.c: ... here.
7729 * oacc-int.h (goacc_wait): Declare.
7730 * libgomp_g.h: Update
7733 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
7735 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
7737 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
7739 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
7741 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
7743 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
7746 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
7747 Julian Brown <julian@codesourcery.com>
7749 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
7750 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
7752 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
7754 * omp_lib.h.in: Fix spelling of function declaration
7755 omp_get_cancell(l)ation.
7756 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
7758 * env.c: Fix comment typos.
7759 * oacc-host.c: Likewise.
7760 * ordered.c: Likewise.
7763 * config/gcn/task.c: Likewise.
7764 * config/gcn/team.c: Likewise.
7765 * config/nvptx/task.c: Likewise.
7766 * config/nvptx/team.c: Likewise.
7767 * plugin/plugin-gcn.c: Likewise.
7768 * testsuite/libgomp.fortran/jacobi.f: Likewise.
7769 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
7770 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
7772 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
7774 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
7775 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
7776 unnecessary 'dg-additional-options "-w"'.
7778 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
7779 Julian Brown <julian@codesourcery.com>
7784 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
7785 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
7787 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
7789 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
7791 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
7793 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
7796 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
7797 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
7799 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
7801 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
7803 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
7805 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
7807 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
7809 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
7810 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
7811 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
7812 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
7813 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
7814 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
7815 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
7816 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7817 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
7818 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
7821 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
7822 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
7823 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
7825 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
7827 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
7829 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
7830 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
7833 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
7835 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
7837 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
7839 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
7841 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
7842 ... with their content moved into, and extended in this new file.
7843 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
7845 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
7847 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
7849 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
7852 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
7855 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
7857 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
7859 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
7861 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
7863 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
7865 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
7866 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
7867 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
7868 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
7870 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
7871 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
7873 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
7875 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
7877 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
7878 Kwok Cheung Yeung <kcy@codesourcery.com>
7880 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
7881 if input it a NULL pointer.
7882 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
7883 diagnostic of NULL pointer.
7884 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
7885 * testsuite/libgomp.fortran/optional-map.f90: New.
7886 * testsuite/libgomp.fortran/use_device_addr-1.f90
7887 (test_dummy_opt_callee_1_absent): New.
7888 (test_dummy_opt_call_1): Call it.
7889 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
7890 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
7891 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
7892 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
7893 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
7894 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
7895 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
7896 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
7897 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
7898 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
7899 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
7900 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
7901 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
7902 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
7903 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
7904 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
7906 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
7908 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
7909 expect dg-output of 'Error termination.' for GCN.
7910 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
7911 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
7913 2019-12-04 Jakub Jelinek <jakub@redhat.com>
7916 * testsuite/libgomp.fortran/teams1.f90: New test.
7917 * testsuite/libgomp.fortran/teams2.f90: New test.
7919 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
7921 * oacc-init.c (acc_known_device_type): Add function.
7922 (unknown_device_type_error): Add function.
7923 (name_of_acc_device_t): Change to call unknown_device_type_error
7925 (resolve_device): Use acc_known_device_type.
7926 (acc_init): Fail if acc_device_t argument is not valid.
7927 (acc_shutdown): Likewise.
7928 (acc_get_num_devices): Likewise.
7929 (acc_set_device_type): Likewise.
7930 (acc_get_device_num): Likewise.
7931 (acc_set_device_num): Likewise.
7932 (acc_on_device): Add comment that argument validity is not checked.
7934 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
7936 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
7938 (check_effective_target_openacc_amdgcn_accel_present): New proc.
7939 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
7940 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
7941 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7942 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7944 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
7947 * configure.tgt: Avoid IE tls on *-*-musl*.
7949 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
7951 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
7952 adding a common-block test case.
7954 2019-11-29 Jakub Jelinek <jakub@redhat.com>
7957 * testsuite/libgomp.c++/udr-20.C: New test.
7958 * testsuite/libgomp.c++/udr-21.C: New test.
7960 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
7962 * testsuite/lib/libgomp.exp
7963 (check_effective_target_offload_target_nvptx): New proc.
7964 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
7966 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
7967 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
7968 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
7970 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7972 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
7973 * testsuite/libgomp.c/pr39591-2.c: Likewise.
7974 * testsuite/libgomp.c/pr39591-3.c: Likewise.
7975 * testsuite/libgomp.c/private-1.c: Likewise.
7976 * testsuite/libgomp.c/task-1.c: Likewise.
7977 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
7979 2019-11-20 Julian Brown <julian@codesourcery.com>
7981 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
7983 (queue_push_launch): Lock aq->mutex before calling
7984 wait_for_queue_nonfull.
7985 (queue_push_callback): Likewise.
7986 (queue_push_asyncwait): Likewise.
7987 (queue_push_placeholder): Likewise.
7989 2019-11-20 Julian Brown <julian@codesourcery.com>
7991 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
7992 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
7993 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
7996 2019-11-20 Julian Brown <julian@codesourcery.com>
8000 * oacc-mem.c (present_create_copy): Fix device pointer return value in
8001 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
8002 in non-present/create case.
8003 (delete_copyout): Change error condition to fail only on copies outside
8004 of mapped block. Adjust error message accordingly.
8005 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
8006 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
8007 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
8009 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8010 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
8011 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8013 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
8015 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
8016 libatomic in build-tree testing.
8018 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
8020 * testsuite/Makefile.in: Regenerate.
8022 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
8024 * testsuite/libgomp.c/target-print-1.c: New file.
8025 * testsuite/libgomp.fortran/target-print-1.f90: New file.
8026 * testsuite/libgomp.oacc-c/print-1.c: New file.
8027 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
8029 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8030 Kwok Cheung Yeung <kcy@codesourcery.com>
8031 Julian Brown <julian@codesourcery.com>
8032 Tom de Vries <tom@codesourcery.com>
8034 * plugin/Makefrag.am: Add amdgcn plugin support.
8035 * plugin/configfrag.ac: Likewise.
8036 * plugin/plugin-gcn.c: New file.
8037 * configure: Regenerate.
8038 * Makefile.in: Regenerate.
8039 * testsuite/Makefile.in: Regenerate.
8041 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8043 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
8044 and use team_malloc variants.
8045 (gomp_gcn_exit_kernel): Use team_free.
8046 * libgomp.h (TEAM_ARENA_SIZE): Define.
8047 (TEAM_ARENA_START): Define.
8048 (TEAM_ARENA_FREE): Define.
8049 (TEAM_ARENA_END): Define.
8050 (team_malloc): New function.
8051 (team_malloc_cleared): New function.
8052 (team_free): New function.
8053 * team.c (gomp_new_team): Initialize and use team_malloc.
8054 (free_team): Use team_free.
8055 (gomp_free_thread): Use team_free.
8056 (gomp_pause_host): Use team_free.
8057 * work.c (gomp_init_work_share): Use team_malloc.
8058 (gomp_fini_work_share): Use team_free.
8060 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8061 Kwok Cheung Yeung <kcy@codesourcery.com>
8062 Julian Brown <julian@codesourcery.com>
8063 Tom de Vries <tom@codesourcery.com>
8065 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
8066 * Makefile.in: Regenerate.
8067 * config.h.in (PLUGIN_GCN): Add new undef.
8068 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
8069 * config/gcn/affinity-fmt.c: New file.
8070 * config/gcn/bar.c: New file.
8071 * config/gcn/bar.h: New file.
8072 * config/gcn/doacross.h: New file.
8073 * config/gcn/icv-device.c: New file.
8074 * config/gcn/oacc-target.c: New file.
8075 * config/gcn/simple-bar.h: New file.
8076 * config/gcn/target.c: New file.
8077 * config/gcn/task.c: New file.
8078 * config/gcn/team.c: New file.
8079 * config/gcn/time.c: New file.
8080 * configure.ac: Add amdgcn*-*-*.
8081 * configure: Regenerate.
8082 * configure.tgt: Add amdgcn*-*-*.
8083 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
8084 * libgomp.h (gcn_thrs): Add amdgcn variant.
8085 (set_gcn_thrs): Likewise.
8086 (gomp_thread): Likewise.
8087 * oacc-int.h (goacc_thread): Likewise.
8088 * oacc-target.c: New file.
8089 * openacc.f90 (acc_device_gcn): New parameter.
8090 * openacc.h (acc_device_t): Add acc_device_gcn.
8091 * team.c (gomp_free_pool_helper): Add amdgcn support.
8093 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8094 Julian Brown <julian@codesourcery.com>
8096 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
8098 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
8100 * oacc-host.c (host_openacc_async_construct): Add device parameter.
8101 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
8104 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8106 * configure.tgt (nvptx*-*-*): Add "accel" directory.
8107 * config/nvptx/libgomp-plugin.c: Move ...
8108 * config/accel/libgomp-plugin.c: ... to here.
8109 * config/nvptx/lock.c: Move ...
8110 * config/accel/lock.c: ... to here.
8111 * config/nvptx/mutex.c: Move ...
8112 * config/accel/mutex.c: ... to here.
8113 * config/nvptx/mutex.h: Move ...
8114 * config/accel/mutex.h: ... to here.
8115 * config/nvptx/oacc-async.c: Move ...
8116 * config/accel/oacc-async.c: ... to here.
8117 * config/nvptx/oacc-cuda.c: Move ...
8118 * config/accel/oacc-cuda.c: ... to here.
8119 * config/nvptx/oacc-host.c: Move ...
8120 * config/accel/oacc-host.c: ... to here.
8121 * config/nvptx/oacc-init.c: Move ...
8122 * config/accel/oacc-init.c: ... to here.
8123 * config/nvptx/oacc-mem.c: Move ...
8124 * config/accel/oacc-mem.c: ... to here.
8125 * config/nvptx/oacc-plugin.c: Move ...
8126 * config/accel/oacc-plugin.c: ... to here.
8127 * config/nvptx/omp-lock.h: Move ...
8128 * config/accel/omp-lock.h: ... to here.
8129 * config/nvptx/openacc.f90: Move ...
8130 * config/accel/openacc.f90: ... to here.
8131 * config/nvptx/pool.h: Move ...
8132 * config/accel/pool.h: ... to here.
8133 * config/nvptx/proc.c: Move ...
8134 * config/accel/proc.c: ... to here.
8135 * config/nvptx/ptrlock.c: Move ...
8136 * config/accel/ptrlock.c: ... to here.
8137 * config/nvptx/ptrlock.h: Move ...
8138 * config/accel/ptrlock.h: ... to here.
8139 * config/nvptx/sem.c: Move ...
8140 * config/accel/sem.c: ... to here.
8141 * config/nvptx/sem.h: Move ...
8142 * config/accel/sem.h: ... to here.
8143 * config/nvptx/thread-stacksize.h: Move ...
8144 * config/accel/thread-stacksize.h: ... to here.
8146 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
8147 Tobias Burnus <tobias@codesourcery.com>
8148 Frederik Harwath <frederik@codesourcery.com>
8149 Thomas Schwinge <thomas@codesourcery.com>
8152 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
8153 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
8154 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
8156 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
8157 Kwok Cheung Yeung <kcy@codesourcery.com>
8159 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
8160 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
8162 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
8164 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
8166 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
8168 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8169 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
8171 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
8173 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
8174 Add expected warnings about missing reduction clauses.
8175 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
8177 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
8179 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
8182 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
8184 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
8185 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
8186 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
8187 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8188 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8189 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8191 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
8194 * testsuite/libgomp.fortran/allocatable2.f90: Use
8195 unique numbers with 'stop'.
8196 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8197 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8198 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
8199 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
8200 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
8202 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
8204 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
8205 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
8206 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8207 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
8208 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
8209 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
8211 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
8213 * testsuite/libgomp.fortran/target9.f90: New.
8215 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
8217 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
8218 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
8219 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
8220 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
8221 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
8222 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
8223 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
8224 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
8225 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
8226 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
8227 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
8228 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
8229 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
8230 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
8231 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
8232 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
8233 * testsuite/libgomp.fortran/associate1.f90: Ditto.
8234 * testsuite/libgomp.fortran/associate2.f90: Ditto.
8235 * testsuite/libgomp.fortran/associate3.f90: Ditto.
8236 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
8237 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
8238 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
8239 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
8240 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
8241 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
8242 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
8243 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
8244 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
8245 * testsuite/libgomp.fortran/character1.f90: Ditto.
8246 * testsuite/libgomp.fortran/character2.f90: Ditto.
8247 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
8248 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
8249 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
8250 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
8251 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
8252 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
8253 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
8254 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
8255 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
8256 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
8257 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
8258 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
8259 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
8260 * testsuite/libgomp.fortran/do1.f90: Ditto.
8261 * testsuite/libgomp.fortran/do2.f90: Ditto.
8262 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
8263 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
8264 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
8265 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
8266 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
8267 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
8268 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
8269 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
8270 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
8271 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
8272 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
8273 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
8274 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
8275 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
8276 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
8277 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
8278 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
8279 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
8280 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
8281 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
8282 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
8283 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
8284 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
8285 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
8286 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
8287 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
8288 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
8289 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
8290 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
8291 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
8292 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
8293 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
8294 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
8295 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
8296 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
8297 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
8298 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
8299 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
8300 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
8301 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
8302 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
8303 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
8304 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
8305 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
8306 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
8307 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
8308 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
8309 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
8310 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
8311 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
8312 * testsuite/libgomp.fortran/lib1.f90: Ditto.
8313 * testsuite/libgomp.fortran/lib4.f90: Ditto.
8314 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
8315 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
8316 * testsuite/libgomp.fortran/nested1.f90: Ditto.
8317 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
8318 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
8319 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
8320 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
8321 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
8322 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
8323 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
8324 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
8325 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
8326 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
8327 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
8328 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
8329 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
8330 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
8331 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
8332 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
8333 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
8334 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
8335 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
8336 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
8337 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
8338 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
8339 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
8340 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
8341 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
8342 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
8343 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
8344 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
8345 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
8346 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
8347 * testsuite/libgomp.fortran/pr28390.f: Ditto.
8348 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
8349 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
8350 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
8351 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
8352 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
8353 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
8354 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
8355 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
8356 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
8357 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
8358 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
8359 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
8360 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
8361 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
8362 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
8363 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
8364 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
8365 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
8366 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
8367 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
8368 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
8369 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
8370 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
8371 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
8372 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
8373 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
8374 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
8375 * testsuite/libgomp.fortran/reference1.f90: Ditto.
8376 * testsuite/libgomp.fortran/reference2.f90: Ditto.
8377 * testsuite/libgomp.fortran/retval1.f90: Ditto.
8378 * testsuite/libgomp.fortran/retval2.f90: Ditto.
8379 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
8380 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
8381 * testsuite/libgomp.fortran/simd1.f90: Ditto.
8382 * testsuite/libgomp.fortran/simd2.f90: Ditto.
8383 * testsuite/libgomp.fortran/simd3.f90: Ditto.
8384 * testsuite/libgomp.fortran/simd4.f90: Ditto.
8385 * testsuite/libgomp.fortran/simd5.f90: Ditto.
8386 * testsuite/libgomp.fortran/simd6.f90: Ditto.
8387 * testsuite/libgomp.fortran/simd7.f90: Ditto.
8388 * testsuite/libgomp.fortran/stack.f90: Ditto.
8389 * testsuite/libgomp.fortran/strassen.f90: Ditto.
8390 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
8391 * testsuite/libgomp.fortran/tabs2.f: Ditto.
8392 * testsuite/libgomp.fortran/target1.f90: Ditto.
8393 * testsuite/libgomp.fortran/target2.f90: Ditto.
8394 * testsuite/libgomp.fortran/target3.f90: Ditto.
8395 * testsuite/libgomp.fortran/target4.f90: Ditto.
8396 * testsuite/libgomp.fortran/target5.f90: Ditto.
8397 * testsuite/libgomp.fortran/target6.f90: Ditto.
8398 * testsuite/libgomp.fortran/target7.f90: Ditto.
8399 * testsuite/libgomp.fortran/target8.f90: Ditto.
8400 * testsuite/libgomp.fortran/task1.f90: Ditto.
8401 * testsuite/libgomp.fortran/task2.f90: Ditto.
8402 * testsuite/libgomp.fortran/task3.f90: Ditto.
8403 * testsuite/libgomp.fortran/task4.f90: Ditto.
8404 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
8405 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
8406 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8407 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8408 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8409 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
8410 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
8411 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
8412 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
8413 * testsuite/libgomp.fortran/udr1.f90: Ditto.
8414 * testsuite/libgomp.fortran/udr10.f90: Ditto.
8415 * testsuite/libgomp.fortran/udr11.f90: Ditto.
8416 * testsuite/libgomp.fortran/udr12.f90: Ditto.
8417 * testsuite/libgomp.fortran/udr13.f90: Ditto.
8418 * testsuite/libgomp.fortran/udr14.f90: Ditto.
8419 * testsuite/libgomp.fortran/udr15.f90: Ditto.
8420 * testsuite/libgomp.fortran/udr2.f90: Ditto.
8421 * testsuite/libgomp.fortran/udr3.f90: Ditto.
8422 * testsuite/libgomp.fortran/udr4.f90: Ditto.
8423 * testsuite/libgomp.fortran/udr5.f90: Ditto.
8424 * testsuite/libgomp.fortran/udr6.f90: Ditto.
8425 * testsuite/libgomp.fortran/udr7.f90: Ditto.
8426 * testsuite/libgomp.fortran/udr8.f90: Ditto.
8427 * testsuite/libgomp.fortran/udr9.f90: Ditto.
8428 * testsuite/libgomp.fortran/vla1.f90: Ditto.
8429 * testsuite/libgomp.fortran/vla2.f90: Ditto.
8430 * testsuite/libgomp.fortran/vla3.f90: Ditto.
8431 * testsuite/libgomp.fortran/vla4.f90: Ditto.
8432 * testsuite/libgomp.fortran/vla5.f90: Ditto.
8433 * testsuite/libgomp.fortran/vla6.f90: Ditto.
8434 * testsuite/libgomp.fortran/vla7.f90: Ditto.
8435 * testsuite/libgomp.fortran/vla8.f90: Ditto.
8436 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
8437 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
8439 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
8441 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
8442 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
8443 Ditto; add 'dg-do run' for torture testing.
8444 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
8445 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
8446 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
8447 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
8448 * testsuite/libgomp.fortran/pr28390.f: Ditto.
8449 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
8450 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
8451 * testsuite/libgomp.fortran/task2.f90: Ditto.
8452 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
8453 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
8454 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8455 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8456 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
8457 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
8459 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
8461 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
8462 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
8463 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
8464 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
8465 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
8466 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
8467 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
8468 Use 'stop' not abort().
8469 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
8470 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
8471 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
8472 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
8473 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
8474 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
8475 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
8476 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
8477 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
8478 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
8479 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
8480 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
8481 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
8482 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
8483 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
8484 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
8485 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
8487 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
8489 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
8491 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
8493 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
8495 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
8497 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
8499 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
8501 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
8503 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
8505 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
8507 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
8509 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
8511 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
8513 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
8514 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
8515 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
8516 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
8517 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
8518 Likewise and also add 'dg-do run'.
8519 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
8522 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
8523 Tobias Burnus <tobias@codesourcery.com>
8525 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
8526 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
8527 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
8529 2019-10-14 Jakub Jelinek <jakub@redhat.com>
8532 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
8535 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
8537 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
8538 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
8540 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
8543 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
8546 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
8549 * testsuite/libgomp.fortran/fortran.exp: Conditionally
8551 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
8553 2019-10-09 Jakub Jelinek <jakub@redhat.com>
8556 * target.c (gomp_map_vars_internal): Readd the previous
8557 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
8558 though do that just in the !not_found_cnt case.
8560 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
8562 * gfortran.dg/gomp/target-simd.f90: New.
8564 2019-10-02 Julian Brown <julian@codesourcery.com>
8565 Cesar Philippidis <cesar@codesourcery.com>
8567 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
8568 * target.c (FIELD_TGT_EMPTY): Define.
8569 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
8570 as switch instead of list of ifs.
8571 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
8573 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
8575 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
8576 include. Replace alloca () with __builtin_alloca ().
8577 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
8579 2019-10-01 Jakub Jelinek <jakub@redhat.com>
8581 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
8582 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
8583 * oacc-parallel.c: Don't include "libgomp_g.h".
8584 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
8585 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
8586 * aclocal.m4: Regenerated.
8587 * config.h.in: Regenerated.
8588 * configure: Regenerated.
8589 * Makefile.in: Regenerated.
8591 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
8593 * libgomp_g.h: Include stdint.h instead of gstdint.h.
8595 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
8597 * configure: Regenerate.
8599 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
8601 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
8602 string is initialized.
8604 2019-09-06 Florian Weimer <fweimer@redhat.com>
8606 * configure: Regenerate.
8608 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
8611 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
8612 scanning to conform to the GNU Coding Standards.
8613 * configure: Regenerate.
8615 2019-08-28 Jakub Jelinek <jakub@redhat.com>
8618 * testsuite/libgomp.c/scan-21.c: New test.
8619 * testsuite/libgomp.c/scan-22.c: New test.
8621 2019-08-27 Jakub Jelinek <jakub@redhat.com>
8624 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
8626 * testsuite/libgomp.c/scan-12.c: Likewise.
8627 * testsuite/libgomp.c/scan-13.c: Likewise.
8628 * testsuite/libgomp.c/scan-14.c: Likewise.
8629 * testsuite/libgomp.c/scan-15.c: Likewise.
8630 * testsuite/libgomp.c/scan-16.c: Likewise.
8631 * testsuite/libgomp.c/scan-17.c: Likewise.
8632 * testsuite/libgomp.c/scan-18.c: Likewise.
8633 * testsuite/libgomp.c/scan-19.c: Likewise.
8634 * testsuite/libgomp.c/scan-20.c: Likewise.
8635 * testsuite/libgomp.c++/scan-9.C: Likewise.
8636 * testsuite/libgomp.c++/scan-10.C: Likewise.
8637 * testsuite/libgomp.c++/scan-11.C: Likewise.
8638 * testsuite/libgomp.c++/scan-12.C: Likewise.
8639 * testsuite/libgomp.c++/scan-14.C: Likewise.
8640 * testsuite/libgomp.c++/scan-15.C: Likewise.
8641 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
8642 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
8643 * testsuite/libgomp.c++/scan-16.C: Likewise.
8645 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
8648 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
8649 -std=legacy so invalid code in the test case is accepted.
8651 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
8654 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
8657 2019-08-08 Jakub Jelinek <jakub@redhat.com>
8659 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
8660 perform the lookup in the first loop only if !not_found_cnt, otherwise
8661 perform lookups for it in the second loop guarded with
8662 if (not_found_cnt || has_firstprivate).
8663 * testsuite/libgomp.c/target-37.c: New test.
8664 * testsuite/libgomp.c++/target-22.C: New test.
8666 2019-08-07 Jakub Jelinek <jakub@redhat.com>
8668 * testsuite/libgomp.c/target-18.c (struct S): New type.
8669 (foo): Use use_device_addr clause instead of use_device_ptr clause
8670 where required by OpenMP 5.0, add further tests for both use_device_ptr
8671 and use_device_addr clauses.
8672 * testsuite/libgomp.c++/target-9.C (struct S): New type.
8673 (foo): Use use_device_addr clause instead of use_device_ptr clause
8674 where required by OpenMP 5.0, add further tests for both use_device_ptr
8675 and use_device_addr clauses. Add t and u arguments.
8676 (main): Adjust caller.
8678 2019-08-06 Jakub Jelinek <jakub@redhat.com>
8680 * testsuite/libgomp.c++/loop-13.C: New test.
8681 * testsuite/libgomp.c++/loop-14.C: New test.
8682 * testsuite/libgomp.c++/loop-15.C: New test.
8684 2019-07-31 Jakub Jelinek <jakub@redhat.com>
8687 * testsuite/libgomp.c++/for-27.C: New test.
8689 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
8691 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
8692 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
8694 2019-07-20 Jakub Jelinek <jakub@redhat.com>
8696 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
8698 2019-07-08 Jakub Jelinek <jakub@redhat.com>
8700 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
8701 * testsuite/libgomp.c++/scan-16.C: Likewise.
8703 2019-07-06 Jakub Jelinek <jakub@redhat.com>
8705 * testsuite/libgomp.c/scan-19.c: New test.
8706 * testsuite/libgomp.c/scan-20.c: New test.
8708 * testsuite/libgomp.c/scan-11.c: New test.
8709 * testsuite/libgomp.c/scan-12.c: New test.
8710 * testsuite/libgomp.c/scan-13.c: New test.
8711 * testsuite/libgomp.c/scan-14.c: New test.
8712 * testsuite/libgomp.c/scan-15.c: New test.
8713 * testsuite/libgomp.c/scan-16.c: New test.
8714 * testsuite/libgomp.c/scan-17.c: New test.
8715 * testsuite/libgomp.c/scan-18.c: New test.
8716 * testsuite/libgomp.c++/scan-9.C: New test.
8717 * testsuite/libgomp.c++/scan-10.C: New test.
8718 * testsuite/libgomp.c++/scan-11.C: New test.
8719 * testsuite/libgomp.c++/scan-12.C: New test.
8720 * testsuite/libgomp.c++/scan-13.C: New test.
8721 * testsuite/libgomp.c++/scan-14.C: New test.
8722 * testsuite/libgomp.c++/scan-15.C: New test.
8723 * testsuite/libgomp.c++/scan-16.C: New test.
8725 2019-07-04 Jakub Jelinek <jakub@redhat.com>
8727 * testsuite/libgomp.c/scan-9.c: New test.
8728 * testsuite/libgomp.c/scan-10.c: New test.
8730 2019-07-03 Jakub Jelinek <jakub@redhat.com>
8732 * testsuite/libgomp.c++/scan-1.C: New test.
8733 * testsuite/libgomp.c++/scan-2.C: New test.
8734 * testsuite/libgomp.c++/scan-3.C: New test.
8735 * testsuite/libgomp.c++/scan-4.C: New test.
8736 * testsuite/libgomp.c++/scan-5.C: New test.
8737 * testsuite/libgomp.c++/scan-6.C: New test.
8738 * testsuite/libgomp.c++/scan-7.C: New test.
8739 * testsuite/libgomp.c++/scan-8.C: New test.
8740 * testsuite/libgomp.c/scan-1.c: New test.
8741 * testsuite/libgomp.c/scan-2.c: New test.
8742 * testsuite/libgomp.c/scan-3.c: New test.
8743 * testsuite/libgomp.c/scan-4.c: New test.
8744 * testsuite/libgomp.c/scan-5.c: New test.
8745 * testsuite/libgomp.c/scan-6.c: New test.
8746 * testsuite/libgomp.c/scan-7.c: New test.
8747 * testsuite/libgomp.c/scan-8.c: New test.
8749 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
8751 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
8752 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
8755 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
8758 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
8760 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
8763 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
8766 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
8768 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
8769 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
8770 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
8771 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
8774 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
8777 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
8779 2019-06-16 Tom de Vries <tdevries@suse.de>
8781 PR tree-optimization/89376
8782 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
8784 2019-06-15 Tom de Vries <tdevries@suse.de>
8786 PR tree-optimization/89713
8787 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
8788 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
8790 2019-06-15 Jakub Jelinek <jakub@redhat.com>
8793 * testsuite/libgomp.c/pr90779.c: New test.
8794 * testsuite/libgomp.fortran/pr90779.f90: New test.
8796 2019-06-15 Tom de Vries <tdevries@suse.de>
8798 PR tree-optimization/90009
8799 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
8801 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
8803 PR tree-optimization/89713
8804 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
8806 2019-06-11 Jakub Jelinek <jakub@redhat.com>
8809 * testsuite/libgomp.c/pr90811.c: New test.
8811 2019-06-05 Jakub Jelinek <jakub@redhat.com>
8813 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
8814 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
8816 2019-06-04 Jakub Jelinek <jakub@redhat.com>
8818 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
8819 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
8820 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
8821 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
8823 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8825 * configure.ac: Call AX_COUNT_CPUS.
8826 Substitute CPU_COUNT.
8827 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
8829 * aclocal.m4: Regenerate.
8830 * configure: Regenerate.
8831 * Makefile.in, testsuite/Makefile.in: Regenerate.
8833 2019-05-29 Jakub Jelinek <jakub@redhat.com>
8835 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
8837 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
8838 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
8839 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
8841 2019-05-27 Jakub Jelinek <jakub@redhat.com>
8843 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
8845 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
8848 * work.c (gomp_init_work_share): Instead of aligning final ordered
8849 value to multiples of long long alignment, align to that the
8850 first part (ordered team ids) and if inline_ordered_team_ids
8851 is not on a long long alignment boundary within the structure,
8852 use __alignof__ (long long) - 1 pad size always.
8853 * loop.c (GOMP_loop_start): Fix *mem computation if
8854 inline_ordered_team_ids is not aligned on long long alignment boundary
8855 within the structure.
8856 * loop-ull.c (GOMP_loop_ull_start): Likewise.
8857 * sections.c (GOMP_sections2_start): Likewise.
8859 2019-05-24 Jakub Jelinek <jakub@redhat.com>
8861 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
8862 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
8865 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
8866 HAVE_INTTYPES_H is defined.
8867 (print_uint64_t): New typedef.
8868 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
8869 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
8870 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
8871 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
8872 before casting to void *.
8873 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
8874 * oacc-mem.c: Don't include config.h nor stdint.h.
8875 * target.c: Don't include config.h.
8876 * oacc-cuda.c: Likewise.
8877 * oacc-host.c: Don't include stdint.h.
8879 2019-05-20 Jakub Jelinek <jakub@redhat.com>
8882 * alloc.c (_GNU_SOURCE): Define.
8884 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
8886 * acc_prof.h: New file.
8887 * oacc-profiling.c: Likewise.
8888 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
8889 Add these, respectively.
8890 * Makefile.in: Regenerate.
8891 * env.c (initialize_env): Call goacc_profiling_initialize.
8892 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
8893 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
8894 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
8895 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
8896 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
8897 acc_prof_register, acc_prof_unregister, and acc_register_library.
8898 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
8899 GOMP_PLUGIN_goacc_thread.
8900 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
8901 prof_callbacks_enabled members.
8902 (goacc_prof_enabled, goacc_profiling_initialize)
8903 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
8904 (goacc_profiling_dispatch): Declare.
8905 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
8906 (GOACC_PROFILING_SETUP_P): Define.
8907 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
8908 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
8909 OpenACC Profiling Interface.
8910 * oacc-cuda.c (acc_get_current_cuda_device)
8911 (acc_get_current_cuda_context, acc_get_cuda_stream)
8912 (acc_set_cuda_stream): Likewise.
8913 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
8914 (acc_init, acc_set_device_type, acc_get_device_type)
8915 (acc_get_device_num, goacc_lazy_initialize): Likewise.
8916 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
8917 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
8918 (acc_unmap_data, present_create_copy, delete_copyout)
8919 (update_dev_host): Likewise.
8920 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
8921 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
8923 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
8924 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
8926 * libgomp.texi: Update.
8927 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
8929 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
8930 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
8932 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
8934 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
8936 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
8939 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
8941 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
8942 (struct goacc_asyncqueue_list): Likewise.
8943 (goacc_aq): Likewise.
8944 (goacc_aq_list): Likewise.
8945 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
8946 (GOMP_OFFLOAD_openacc_async_test): Remove.
8947 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
8948 (GOMP_OFFLOAD_openacc_async_wait): Remove.
8949 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
8950 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
8951 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
8952 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
8953 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
8954 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
8955 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
8956 (GOMP_OFFLOAD_openacc_async_exec): Declare.
8957 (GOMP_OFFLOAD_openacc_async_construct): Declare.
8958 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
8959 (GOMP_OFFLOAD_openacc_async_test): Declare.
8960 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
8961 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
8962 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
8963 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
8964 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
8966 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
8967 (gomp_acc_insert_pointer): Adjust declaration.
8968 (gomp_copy_host2dev): New declaration.
8969 (gomp_copy_dev2host): Likewise.
8970 (gomp_map_vars_async): Likewise.
8971 (gomp_unmap_tgt): Likewise.
8972 (gomp_unmap_vars_async): Likewise.
8973 (gomp_fini_device): Likewise.
8975 * oacc-async.c (get_goacc_thread): New function.
8976 (get_goacc_thread_device): New function.
8977 (lookup_goacc_asyncqueue): New function.
8978 (get_goacc_asyncqueue): New function.
8979 (acc_async_test): Adjust code to use new async design.
8980 (acc_async_test_all): Likewise.
8981 (acc_wait): Likewise.
8982 (acc_wait_async): Likewise.
8983 (acc_wait_all): Likewise.
8984 (acc_wait_all_async): Likewise.
8985 (goacc_async_free): New function.
8986 (goacc_init_asyncqueues): Likewise.
8987 (goacc_fini_asyncqueues): Likewise.
8988 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
8990 (acc_set_cuda_stream): Likewise.
8991 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
8992 (host_openacc_register_async_cleanup): Remove.
8993 (host_openacc_async_exec): New function.
8994 (host_openacc_async_test): Adjust parameters.
8995 (host_openacc_async_test_all): Remove.
8996 (host_openacc_async_wait): Remove.
8997 (host_openacc_async_wait_async): Remove.
8998 (host_openacc_async_wait_all): Remove.
8999 (host_openacc_async_wait_all_async): Remove.
9000 (host_openacc_async_set_async): Remove.
9001 (host_openacc_async_synchronize): New function.
9002 (host_openacc_async_serialize): New function.
9003 (host_openacc_async_host2dev): New function.
9004 (host_openacc_async_dev2host): New function.
9005 (host_openacc_async_queue_callback): New function.
9006 (host_openacc_async_construct): New function.
9007 (host_openacc_async_destruct): New function.
9008 (struct gomp_device_descr host_dispatch): Remove initialization of old
9009 interface, add initialization of new async sub-struct.
9010 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
9011 (goacc_attach_host_thread_to_device): Remove old async code usage.
9012 * oacc-int.h (goacc_init_asyncqueues): New declaration.
9013 (goacc_fini_asyncqueues): Likewise.
9014 (goacc_async_copyout_unmap_vars): Likewise.
9015 (goacc_async_free): Likewise.
9016 (get_goacc_asyncqueue): Likewise.
9017 (lookup_goacc_asyncqueue): Likewise.
9018 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
9020 (present_create_copy): Adjust code to use new async design.
9021 (delete_copyout): Likewise.
9022 (update_dev_host): Likewise.
9023 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
9025 (gomp_acc_remove_pointer): Adjust code to use new async design.
9026 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
9028 (GOACC_enter_exit_data): Likewise.
9029 (goacc_wait): Likewise.
9030 (GOACC_update): Likewise.
9031 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
9032 when called, warn as obsolete in comment.
9033 * target.c (goacc_device_copy_async): New function.
9034 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
9035 add goacc_device_copy_async case.
9036 (gomp_copy_dev2host): Likewise.
9037 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
9038 (gomp_map_pointer): Likewise.
9039 (gomp_map_fields_existing): Likewise.
9040 (gomp_map_vars_internal): New always_inline function, renamed from
9042 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
9043 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
9044 passing goacc_asyncqueue argument.
9045 (gomp_unmap_tgt): Remove static, add attribute_hidden.
9046 (gomp_unref_tgt): New function.
9047 (gomp_unmap_vars_internal): New always_inline function, renamed from
9049 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
9050 (gomp_unmap_vars_async): Implement by calling
9051 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
9052 (gomp_fini_device): New function.
9053 (gomp_exit_data): Adjust gomp_copy_dev2host call.
9054 (gomp_load_plugin_for_device): Remove old interface, adjust to load
9055 new async interface.
9056 (gomp_target_fini): Adjust code to call gomp_fini_device.
9058 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
9059 (struct ptx_stream): Remove.
9060 (struct nvptx_thread): Remove current_stream field.
9061 (cuda_map_create): Remove.
9062 (cuda_map_destroy): Remove.
9067 (struct goacc_asyncqueue): Define.
9068 (struct nvptx_callback): Define.
9069 (struct ptx_free_block): Define.
9070 (struct ptx_device): Remove null_stream, active_streams, async_streams,
9071 stream_lock, and next fields.
9072 (enum ptx_event_type): Remove.
9073 (struct ptx_event): Remove.
9074 (ptx_event_lock): Remove.
9075 (ptx_events): Remove.
9076 (init_streams_for_device): Remove.
9077 (fini_streams_for_device): Remove.
9078 (select_stream_for_async): Remove.
9079 (nvptx_init): Remove ptx_events and ptx_event_lock references.
9080 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
9082 (nvptx_open_device): Add free_blocks initialization, remove
9083 init_streams_for_device call.
9084 (nvptx_close_device): Remove fini_streams_for_device call, add
9085 free_blocks destruct code.
9087 (event_add): Remove.
9088 (nvptx_exec): Adjust parameters and code.
9089 (nvptx_free): Likewise.
9090 (nvptx_host2dev): Remove.
9091 (nvptx_dev2host): Remove.
9092 (nvptx_set_async): Remove.
9093 (nvptx_async_test): Remove.
9094 (nvptx_async_test_all): Remove.
9095 (nvptx_wait): Remove.
9096 (nvptx_wait_async): Remove.
9097 (nvptx_wait_all): Remove.
9098 (nvptx_wait_all_async): Remove.
9099 (nvptx_get_cuda_stream): Remove.
9100 (nvptx_set_cuda_stream): Remove.
9101 (GOMP_OFFLOAD_alloc): Adjust code.
9102 (GOMP_OFFLOAD_free): Likewise.
9103 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9104 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
9105 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9106 (GOMP_OFFLOAD_openacc_async_wait): Remove.
9107 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9108 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9109 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9110 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9111 (cuda_free_argmem): New function.
9112 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
9113 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
9114 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
9115 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
9116 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
9117 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
9118 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
9119 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
9120 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
9121 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
9122 (cuda_callback_wrapper): New function.
9123 (cuda_memcpy_sanity_check): New function.
9124 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
9125 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
9126 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
9127 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
9129 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
9132 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
9134 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
9136 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
9138 2019-03-27 Kevin Buettner <kevinb@redhat.com>
9140 * team.c (gomp_team_start): Initialize pool->threads[0].
9142 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
9144 * testsuite/libgomp.oacc-c++/c++.exp: Specify
9145 "-foffload=$offload_target".
9146 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9147 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9148 * testsuite/lib/libgomp.exp
9149 (check_effective_target_openacc_nvidia_accel_configured): Remove,
9150 as (conceptually) merged into
9151 check_effective_target_openacc_nvidia_accel_selected. Adjust all
9154 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
9155 * testsuite/libgomp-test-support.exp.in: Adjust.
9156 * testsuite/lib/libgomp.exp: Likewise. Don't populate
9157 openacc_device_types_s.
9158 (offload_target_to_openacc_device_type): New proc.
9159 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
9160 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9161 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9162 * Makefile.in: Regenerate.
9163 * configure: Likewise.
9164 * testsuite/Makefile.in: Likewise.
9166 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
9167 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
9168 instead of OFFLOAD_TARGETS.
9169 * target.c (gomp_target_init): Adjust.
9170 * testsuite/libgomp-test-support.exp.in: Likewise.
9171 * testsuite/lib/libgomp.exp: Likewise. Populate
9172 openacc_device_types_s instead of offload_targets_s_openacc.
9173 (check_effective_target_openacc_nvidia_accel_selected)
9174 (check_effective_target_openacc_host_selected): Adjust.
9175 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
9176 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9177 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9178 * Makefile.in: Regenerate.
9179 * config.h.in: Likewise.
9180 * configure: Likewise.
9181 * testsuite/Makefile.in: Likewise.
9183 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
9184 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
9185 "offloading: supported, but hardware not accessible".
9186 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9187 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9189 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
9192 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
9194 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
9195 and related adjustment.
9197 2019-01-30 Jakub Jelinek <jakub@redhat.com>
9200 * testsuite/libgomp.c++/pr88988.C: New test.
9202 2019-01-28 Jakub Jelinek <jakub@redhat.com>
9205 * testsuite/libgomp.c/pr89002.c: New test.
9207 2019-01-28 Richard Biener <rguenther@suse.de>
9210 PR tree-optimization/86865
9211 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
9213 2019-01-24 Tom de Vries <tdevries@suse.de>
9215 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
9216 once instantiated_devices drops to 0.
9218 2019-01-23 Tom de Vries <tdevries@suse.de>
9221 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
9223 (nvptx_exec): Don't call map_push if mapnum == 0.
9224 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
9226 2019-01-23 Tom de Vries <tdevries@suse.de>
9230 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
9231 (map_fini): Remove "assert (!s->map->active)".
9232 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
9234 2019-01-23 Tom de Vries <tdevries@suse.de>
9237 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
9238 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
9240 2019-01-15 Tom de Vries <tdevries@suse.de>
9243 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
9246 2019-01-12 Tom de Vries <tdevries@suse.de>
9248 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
9249 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
9250 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
9251 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
9253 2019-01-12 Tom de Vries <tdevries@suse.de>
9255 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
9257 2019-01-12 Tom de Vries <tdevries@suse.de>
9259 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
9260 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
9261 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
9263 2019-01-12 Tom de Vries <tdevries@suse.de>
9266 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
9267 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
9269 2019-01-12 Tom de Vries <tdevries@suse.de>
9272 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
9273 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
9275 2019-01-12 Tom de Vries <tdevries@suse.de>
9277 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
9278 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
9279 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
9281 2019-01-12 Tom de Vries <tdevries@suse.de>
9283 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
9284 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
9285 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
9287 2019-01-12 Tom de Vries <tdevries@suse.de>
9289 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
9290 resources diagnostic.
9292 2019-01-12 Tom de Vries <tdevries@suse.de>
9294 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
9295 vector length to be 128.
9296 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
9297 length 2097152 to be reduced to 1024 instead of 32.
9299 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
9300 James Norris <jnorris@codesourcery.com>
9302 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
9303 Library Routines", and "Environment Variables".
9305 2019-01-11 Tom de Vries <tdevries@suse.de>
9307 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
9310 2019-01-11 Tom de Vries <tdevries@suse.de>
9312 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
9314 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
9315 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
9316 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
9317 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
9319 2019-01-11 Tom de Vries <tdevries@suse.de>
9321 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
9324 2019-01-10 Nathan Sidwell <nathan@acm.org>
9325 Julian Brown <julian@codesourcery.com>
9328 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
9329 * testsuite/libgomp.oacc-c++/pr71959.C: New.
9331 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
9333 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
9336 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
9338 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
9339 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
9342 2019-01-09 Tom de Vries <tdevries@suse.de>
9345 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
9346 #define instead of "const int".
9347 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
9348 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
9349 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
9350 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
9352 2019-01-09 Tom de Vries <tdevries@suse.de>
9354 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
9357 2019-01-07 Tom de Vries <tdevries@suse.de>
9359 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
9360 GOMP_OPENACC_DIM argument.
9362 2019-01-03 Tom de Vries <tdevries@suse.de>
9364 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
9365 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
9367 2019-01-01 Jakub Jelinek <jakub@redhat.com>
9369 Update copyright years.
9371 2019-01-01 Jakub Jelinek <jakub@redhat.com>
9373 * libgomp.texi: Bump @copying's copyright year.
9375 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
9377 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
9378 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
9379 (GOACC_declare): Redefine the "device" argument to "flags".
9381 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
9382 Cesar Philippidis <cesar@codesourcery.com>
9384 * target.c (struct gomp_coalesce_chunk): New structure.
9385 (struct gomp_coalesce_buf): Update the chunks member to use that
9386 type. Adjust all users.
9388 2018-12-19 Tom de Vries <tdevries@suse.de>
9390 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
9391 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
9392 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
9394 2018-12-19 Tom de Vries <tdevries@suse.de>
9396 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
9397 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
9398 gcc/testsuite/gcc.dg/goacc.
9399 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
9401 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
9402 Chung-Lin Tang <cltang@codesourcery.com>
9404 * oacc-mem.c (acc_present_or_create): Remove definition and change
9405 to alias of acc_create.
9406 (acc_present_or_copyin): Remove definition and change to alias of
9408 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
9409 of acc_present_or_create.
9410 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
9411 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
9412 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
9413 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
9414 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
9415 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
9416 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
9417 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
9418 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
9419 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
9420 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
9421 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
9422 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
9423 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
9424 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
9425 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
9427 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
9430 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
9431 "identical parameters".
9432 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
9433 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
9436 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
9437 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
9440 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
9441 (nvptx_wait_async): Unseen async-argument is a no-op.
9442 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
9443 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
9444 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9445 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
9446 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
9447 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
9448 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
9449 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
9450 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
9452 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
9453 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9455 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
9457 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
9458 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9459 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
9461 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
9464 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
9465 (acc_set_cuda_stream): Clarify.
9466 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
9468 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
9470 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
9471 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
9472 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
9473 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
9475 2018-12-14 Tom de Vries <tdevries@suse.de>
9477 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
9478 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
9479 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
9480 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
9481 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
9483 2018-12-13 Tom de Vries <tdevries@suse.de>
9485 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
9486 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
9487 * fortran.c (omp_display_affinity_): ... here.
9488 * libgomp.h (gomp_print_string): Declare.
9489 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
9490 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
9493 2018-12-13 Jakub Jelinek <jakub@redhat.com>
9496 * testsuite/libgomp.c++/for-24.C (results): Include it in
9497 omp declare target region.
9498 (main): Use map (always, tofrom: results) instead of
9499 map (tofrom: results).
9501 2018-12-12 Jakub Jelinek <jakub@redhat.com>
9504 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
9505 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
9507 * testsuite/libgomp.c-c++-common/for-16.c: New test.
9509 2018-12-12 Andreas Schwab <schwab@suse.de>
9511 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
9514 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
9517 * testsuite/libgomp.fortran/async_io_8.f90: New test.
9519 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
9520 Jakub Jelinek <jakub@redhat.com>
9522 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
9523 devicep->host2dev_func.
9525 2018-12-08 Jakub Jelinek <jakub@redhat.com>
9528 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
9529 tls_runtime effective target.
9530 (t): New threadprivate variable.
9531 (main): Set t in threads which execute iterations of the worksharing
9532 loop. Propagate that to the task after the loop and don't abort
9533 if the current taskgroup hasn't been cancelled.
9535 2018-12-02 Jakub Jelinek <jakub@redhat.com>
9537 * testsuite/libgomp.c/task-reduction-3.c: New test.
9539 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
9541 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
9544 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
9545 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
9547 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
9549 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
9551 2018-10-19 Richard Biener <rguenther@suse.de>
9553 PR tree-optimization/88182
9554 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
9556 2018-11-26 Jakub Jelinek <jakub@redhat.com>
9558 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
9559 (RUNTEST): Don't define.
9560 (RUNTESTDEFAULTFLAGS): Add.
9561 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
9562 (distclean-am): Depend on distclean-DEJAGNU.
9563 (check-am): If -j% option is present in MFLAGS and if
9564 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
9565 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
9566 * testsuite/Makefile.in: Regenerated.
9568 2018-11-26 Richard Biener <rguenther@suse.de>
9570 PR tree-optimization/88182
9571 * testsuite/libgomp.c++/pr88182.C: New testcase.
9573 2018-11-20 Jakub Jelinek <jakub@redhat.com>
9576 * config/mingw32/affinity-fmt.c: New file.
9578 2018-11-09 Jakub Jelinek <jakub@redhat.com>
9580 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
9581 (gomp_display_affinity): Use __builtin_choose_expr to handle
9582 properly handle argument having integral, or pointer or some other
9583 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
9584 with uint64_t type instead of %llx and unsigned long long.
9586 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
9587 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
9589 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9591 * affinity.c: Include <string.h>, <stdio.h>.
9592 (gomp_display_affinity_place): Remove cpusetp.
9593 * teams.c: Include <limits.h>.
9595 2018-11-08 Jakub Jelinek <jakub@redhat.com>
9597 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
9598 in_reduction clause for s[0].
9600 * affinity.c (gomp_display_affinity_place): New function.
9601 * affinity-fmt.c: New file.
9602 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
9603 * config/linux/affinity.c (gomp_display_affinity_place): New function.
9604 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
9605 Move these functions to ...
9606 * config/nvptx/teams.c: ... here. New file.
9607 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
9609 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
9611 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
9612 and _aligned_malloc.
9613 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
9614 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
9615 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
9616 gomp_affinity_format_len): New variables.
9617 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
9618 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
9619 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
9620 modifiers. Display (non-default) chunk sizes. Print
9621 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
9622 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
9623 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
9624 * fortran.c: Include stdio.h and string.h.
9625 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
9626 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
9627 (omp_set_affinity_format_, omp_get_affinity_format_,
9628 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
9629 omp_pause_resource_all_): New functions.
9630 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
9632 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
9634 * teams.c: ... here. New file.
9635 * libgomp_g.h: Include gstdint.h.
9636 (GOMP_loop_nonmonotonic_runtime_start,
9637 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
9638 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
9639 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
9640 GOMP_parallel_loop_nonmonotonic_runtime,
9641 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9642 GOMP_loop_ull_nonmonotonic_runtime_start,
9643 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
9644 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
9645 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9646 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
9647 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
9648 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9649 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
9650 GOMP_teams_reg): Declare.
9651 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
9652 gomp_aligned_alloc uses fallback implementation.
9653 (gomp_aligned_alloc, gomp_aligned_free): Declare.
9654 (enum gomp_schedule_type): Add GFS_MONOTONIC.
9655 (struct gomp_doacross_work_share): Add extra field.
9656 (struct gomp_work_share): Add task_reductions field.
9657 (struct gomp_taskgroup): Add workshare and reductions fields.
9658 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
9659 (gomp_thread_handle): New typedef.
9660 (gomp_display_affinity_place, gomp_set_affinity_format,
9661 gomp_display_string, gomp_display_affinity,
9662 gomp_display_affinity_thread): Declare.
9663 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
9664 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
9665 gomp_workshare_task_reduction_register): Declare.
9666 (gomp_team_start): Add taskgroup argument.
9667 (gomp_pause_host): Declare.
9668 (gomp_init_work_share, gomp_work_share_start): Change bool argument
9670 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
9671 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
9672 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
9673 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
9674 GOMP_loop_ull_doacross_start,
9675 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
9676 GOMP_loop_maybe_nonmonotonic_runtime_next,
9677 GOMP_loop_maybe_nonmonotonic_runtime_start,
9678 GOMP_loop_nonmonotonic_runtime_next,
9679 GOMP_loop_nonmonotonic_runtime_start,
9680 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9681 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
9682 GOMP_loop_ull_nonmonotonic_runtime_next,
9683 GOMP_loop_ull_nonmonotonic_runtime_start,
9684 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9685 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
9686 GOMP_taskgroup_reduction_register,
9687 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9688 GOMP_teams_reg and GOMP_taskwait_depend.
9689 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
9690 omp_{capture,display}_affinity{,_}, and
9691 omp_[gs]et_affinity_format{,_}.
9692 * loop.c: Include string.h.
9693 (GOMP_loop_runtime_next): Add ialias.
9694 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9695 (gomp_loop_static_start, gomp_loop_dynamic_start,
9696 gomp_loop_guided_start, gomp_loop_ordered_static_start,
9697 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
9698 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
9699 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
9700 or gomp_doacross_init callers.
9701 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
9702 GOMP_loop_doacross_start): New functions.
9703 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
9704 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
9705 Mask off GFS_MONOTONIC bit.
9706 (GOMP_loop_maybe_nonmonotonic_runtime_next,
9707 GOMP_loop_maybe_nonmonotonic_runtime_start,
9708 GOMP_loop_nonmonotonic_runtime_next,
9709 GOMP_loop_nonmonotonic_runtime_start,
9710 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9711 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
9713 (gomp_parallel_loop_start): Pass NULL as taskgroup to
9715 * loop_ull.c: Include string.h.
9716 (GOMP_loop_ull_runtime_next): Add ialias.
9717 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9718 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
9719 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
9720 gomp_loop_ull_ordered_dynamic_start,
9721 gomp_loop_ull_ordered_guided_start,
9722 gomp_loop_ull_doacross_static_start,
9723 gomp_loop_ull_doacross_dynamic_start,
9724 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
9725 and gomp_doacross_ull_init callers.
9726 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
9727 GOMP_loop_ull_doacross_start): New functions.
9728 (GOMP_loop_ull_runtime_start,
9729 GOMP_loop_ull_ordered_runtime_start,
9730 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
9731 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9732 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
9733 GOMP_loop_ull_nonmonotonic_runtime_next,
9734 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
9735 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
9736 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
9737 (omp_pause_resource_t, omp_depend_t): New typedefs.
9738 (enum omp_lock_hint_t): Renamed to ...
9739 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
9740 enumerators using numbers and omp_lock_hint_* as their aliases.
9741 (omp_lock_hint_t): New typedef. Rename to ...
9742 (omp_sync_hint_t): ... this.
9743 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
9744 omp_sync_hint_t instead of omp_lock_hint_t.
9745 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9746 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9748 (omp_target_is_present, omp_target_disassociate_ptr):
9749 Change first argument from void * to const void *.
9750 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
9751 from void * to const void *.
9752 (omp_target_associate_ptr): Change first and second arguments from
9753 void * to const void *.
9754 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
9755 omp_pause_hard): New parameters.
9756 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9757 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9759 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
9760 omp_pause_hard): New parameters.
9761 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9762 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9764 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
9765 EXTRA argument. If not needed to prepare array, if extra is 0,
9766 clear ws->doacross, otherwise allocate just doacross structure and
9767 extra payload. If array is needed, allocate also extra payload.
9768 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
9769 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
9771 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
9773 (GOMP_parallel): Likewise. Formatting fix.
9774 (GOMP_parallel_reductions): New function.
9775 (GOMP_cancellation_point): If taskgroup has workshare
9776 flag set, check cancelled of prev taskgroup if any.
9777 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
9778 on prev taskgroup if any.
9779 * sections.c: Include string.h.
9780 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9781 (GOMP_sections_start): Adjust gomp_work_share_start caller.
9782 (GOMP_sections2_start): New function.
9783 (GOMP_parallel_sections_start, GOMP_parallel_sections):
9784 Pass NULL as taskgroup to gomp_team_start.
9785 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
9786 gomp_work_share_start callers.
9787 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
9788 If taskgroup has workshare flag set, check cancelled on prev
9789 taskgroup if any. Guard all cancellation tests with
9790 gomp_cancel_var test.
9791 (omp_target_is_present, omp_target_disassociate_ptr):
9792 Change ptr argument from void * to const void *.
9793 (omp_target_memcpy): Change src argument from void * to const void *.
9794 (omp_target_memcpy_rect): Likewise.
9795 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
9796 instead of char * where needed.
9797 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
9798 from void * to const void *.
9799 (omp_pause_resource, omp_pause_resource_all): New functions.
9800 * task.c (gomp_task_handle_depend): Handle new depend array format
9801 in addition to the old. Handle mutexinoutset kinds the same as
9802 inout for now, handle unspecified kinds.
9803 (gomp_create_target_task): If taskgroup has workshare flag set, check
9804 cancelled on prev taskgroup if any. Guard all cancellation tests with
9805 gomp_cancel_var test. Handle new depend array format count in
9806 addition to the old.
9807 (GOMP_task): Likewise. Adjust function comment.
9808 (gomp_task_run_pre): If taskgroup has workshare flag set, check
9809 cancelled on prev taskgroup if any. Guard all cancellation tests with
9810 gomp_cancel_var test.
9811 (GOMP_taskwait_depend): New function.
9812 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
9813 format in addition to the old. Handle mutexinoutset kinds the same as
9814 inout for now, handle unspecified kinds. Fix a function comment typo.
9815 (gomp_taskgroup_init): New function.
9816 (GOMP_taskgroup_start): Use it.
9817 (gomp_reduction_register, gomp_create_artificial_team,
9818 GOMP_taskgroup_reduction_register,
9819 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9820 gomp_parallel_reduction_register,
9821 gomp_workshare_task_reduction_register,
9822 gomp_workshare_taskgroup_start,
9823 GOMP_workshare_task_reduction_unregister): New functions.
9824 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
9825 check cancelled on prev taskgroup if any. Guard all cancellation
9826 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
9827 by calling GOMP_taskgroup_reduction_register.
9828 * team.c (gomp_thread_attr): Remove comment.
9829 (struct gomp_thread_start_data): Add handle field.
9830 (gomp_thread_start): Call pthread_detach.
9831 (gomp_new_team): Adjust gomp_init_work_share caller.
9832 (gomp_free_pool_helper): Call pthread_detach.
9833 (gomp_team_start): Add taskgroup argument, initialize implicit
9834 tasks' taskgroup field to that. Don't call
9835 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
9836 (gomp_team_end): Determine nesting by thr->ts.level != 0
9837 rather than thr->ts.team != NULL.
9838 (gomp_pause_pool_helper, gomp_pause_host): New functions.
9839 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
9840 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
9841 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
9842 if more than 1 allocate also extra payload at the end of array. Never
9843 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
9844 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
9845 return true instead of ws.
9846 * Makefile.in: Regenerated.
9847 * configure: Regenerated.
9848 * config.h.in: Regenerated.
9849 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
9851 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
9852 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
9853 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
9854 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
9855 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
9856 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
9857 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
9858 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
9859 * testsuite/libgomp.c-c++-common/for-10.c: New test.
9860 * testsuite/libgomp.c-c++-common/for-11.c: New test.
9861 * testsuite/libgomp.c-c++-common/for-12.c: New test.
9862 * testsuite/libgomp.c-c++-common/for-13.c: New test.
9863 * testsuite/libgomp.c-c++-common/for-14.c: New test.
9864 * testsuite/libgomp.c-c++-common/for-15.c: New test.
9865 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
9866 define a different N(test), don't define N(f0) to N(f14), but instead
9867 define N(f20) to N(f34) using != comparisons.
9868 * testsuite/libgomp.c-c++-common/for-7.c: New test.
9869 * testsuite/libgomp.c-c++-common/for-8.c: New test.
9870 * testsuite/libgomp.c-c++-common/for-9.c: New test.
9871 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
9872 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
9873 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
9874 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
9875 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
9876 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
9877 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
9878 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
9879 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
9880 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
9881 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
9882 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
9883 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
9884 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
9885 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
9886 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
9887 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
9888 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
9889 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
9890 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
9891 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
9892 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
9893 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
9894 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
9895 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
9896 * testsuite/libgomp.c++/depend-1.C: New test.
9897 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
9898 * testsuite/libgomp.c++/depobj-1.C: New test.
9899 * testsuite/libgomp.c++/for-16.C: New test.
9900 * testsuite/libgomp.c++/for-21.C: New test.
9901 * testsuite/libgomp.c++/for-22.C: New test.
9902 * testsuite/libgomp.c++/for-23.C: New test.
9903 * testsuite/libgomp.c++/for-24.C: New test.
9904 * testsuite/libgomp.c++/for-25.C: New test.
9905 * testsuite/libgomp.c++/for-26.C: New test.
9906 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
9907 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
9908 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
9909 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
9910 * testsuite/libgomp.c++/task-reduction-10.C: New test.
9911 * testsuite/libgomp.c++/task-reduction-11.C: New test.
9912 * testsuite/libgomp.c++/task-reduction-12.C: New test.
9913 * testsuite/libgomp.c++/task-reduction-13.C: New test.
9914 * testsuite/libgomp.c++/task-reduction-14.C: New test.
9915 * testsuite/libgomp.c++/task-reduction-15.C: New test.
9916 * testsuite/libgomp.c++/task-reduction-16.C: New test.
9917 * testsuite/libgomp.c++/task-reduction-17.C: New test.
9918 * testsuite/libgomp.c++/task-reduction-18.C: New test.
9919 * testsuite/libgomp.c++/task-reduction-19.C: New test.
9920 * testsuite/libgomp.c/task-reduction-1.c: New test.
9921 * testsuite/libgomp.c++/task-reduction-1.C: New test.
9922 * testsuite/libgomp.c/task-reduction-2.c: New test.
9923 * testsuite/libgomp.c++/task-reduction-2.C: New test.
9924 * testsuite/libgomp.c++/task-reduction-3.C: New test.
9925 * testsuite/libgomp.c++/task-reduction-4.C: New test.
9926 * testsuite/libgomp.c++/task-reduction-5.C: New test.
9927 * testsuite/libgomp.c++/task-reduction-6.C: New test.
9928 * testsuite/libgomp.c++/task-reduction-7.C: New test.
9929 * testsuite/libgomp.c++/task-reduction-8.C: New test.
9930 * testsuite/libgomp.c++/task-reduction-9.C: New test.
9931 * testsuite/libgomp.c/teams-1.c: New test.
9932 * testsuite/libgomp.c/teams-2.c: New test.
9933 * testsuite/libgomp.c/thread-limit-4.c: New test.
9934 * testsuite/libgomp.c/thread-limit-5.c: New test.
9935 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
9937 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
9939 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
9940 acc_memcpy_to/from_device functions, now with async parameter.
9941 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
9942 (acc_memcpy_from_device): Likewise.
9943 (acc_memcpy_to_device_async): New API function.
9944 (acc_memcpy_from_device_async): Likewise.
9945 (present_create_copy): Add async parameter and async setting/unsetting.
9946 (acc_create): Adjust present_create_copy call.
9947 (acc_copyin): Likewise.
9948 (acc_present_or_create): Likewise.
9949 (acc_present_or_copyin): Likewise.
9950 (acc_create_async): New API function.
9951 (acc_copyin_async): New API function.
9952 (delete_copyout): Add async parameter and async setting/unsetting.
9953 (acc_delete): Adjust delete_copyout call.
9954 (acc_copyout): Likewise.
9955 (acc_delete_async): New API function.
9956 (acc_copyout_async): Likewise.
9957 (update_dev_host): Add async parameter and async setting/unsetting.
9958 (acc_update_device): Adjust update_dev_host call.
9959 (acc_update_self): Likewise.
9960 (acc_update_device_async): New API function.
9961 (acc_update_self_async): Likewise.
9962 * openacc.h (acc_copyin_async): Declare new API function.
9963 (acc_create_async): Likewise.
9964 (acc_copyout_async): Likewise.
9965 (acc_delete_async): Likewise.
9966 (acc_update_device_async): Likewise.
9967 (acc_update_self_async): Likewise.
9968 (acc_memcpy_to_device_async): Likewise.
9969 (acc_memcpy_from_device_async): Likewise.
9970 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
9971 (acc_copyin_async_64_h): New subroutine.
9972 (acc_copyin_async_array_h): New subroutine.
9973 (acc_create_async_32_h): New subroutine.
9974 (acc_create_async_64_h): New subroutine.
9975 (acc_create_async_array_h): New subroutine.
9976 (acc_copyout_async_32_h): New subroutine.
9977 (acc_copyout_async_64_h): New subroutine.
9978 (acc_copyout_async_array_h): New subroutine.
9979 (acc_delete_async_32_h): New subroutine.
9980 (acc_delete_async_64_h): New subroutine.
9981 (acc_delete_async_array_h): New subroutine.
9982 (acc_update_device_async_32_h): New subroutine.
9983 (acc_update_device_async_64_h): New subroutine.
9984 (acc_update_device_async_array_h): New subroutine.
9985 (acc_update_self_async_32_h): New subroutine.
9986 (acc_update_self_async_64_h): New subroutine.
9987 (acc_update_self_async_array_h): New subroutine.
9988 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
9989 (acc_copyin_async_64_h): New subroutine.
9990 (acc_copyin_async_array_h): New subroutine.
9991 (acc_create_async_32_h): New subroutine.
9992 (acc_create_async_64_h): New subroutine.
9993 (acc_create_async_array_h): New subroutine.
9994 (acc_copyout_async_32_h): New subroutine.
9995 (acc_copyout_async_64_h): New subroutine.
9996 (acc_copyout_async_array_h): New subroutine.
9997 (acc_delete_async_32_h): New subroutine.
9998 (acc_delete_async_64_h): New subroutine.
9999 (acc_delete_async_array_h): New subroutine.
10000 (acc_update_device_async_32_h): New subroutine.
10001 (acc_update_device_async_64_h): New subroutine.
10002 (acc_update_device_async_array_h): New subroutine.
10003 (acc_update_self_async_32_h): New subroutine.
10004 (acc_update_self_async_64_h): New subroutine.
10005 (acc_update_self_async_array_h): New subroutine.
10006 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
10007 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
10008 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
10009 acc_memcpy_to_device_async*, acc_update_device_async*, and
10010 acc_update_self_async* entries.
10011 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
10012 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
10013 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
10015 2018-10-31 Joseph Myers <joseph@codesourcery.com>
10018 * Makefile.am: Include multilib.am
10019 (AUTOMAKE_OPTIONS): Add info-in-builddir.
10020 (CLEANFILES): Remove libgomp.info.
10021 * configure.ac: Remove AC_PREREQ.
10022 * testsuite/Makefile.am (RUNTEST): Remove quotes.
10023 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
10026 2018-10-29 Joseph Myers <joseph@codesourcery.com>
10027 Julian Brown <julian@codesourcery.com>
10029 * testsuite/libgomp.oacc-c++/this.C: New.
10031 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
10033 * plugin/plugin-nvptx.c (struct cuda_map): New.
10034 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
10035 h_tail with (cuda_map *) map.
10036 (cuda_map_create): New function.
10037 (cuda_map_destroy): New function.
10038 (map_init): Update to use a linked list of cuda_map objects.
10039 (map_fini): Likewise.
10040 (map_pop): Likewise.
10041 (map_push): Likewise. Return CUdeviceptr instead of void.
10042 (init_streams_for_device): Remove stales references to ptx_stream
10044 (select_stream_for_async): Likewise.
10045 (nvptx_exec): Update call to map_init.
10047 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
10048 Julian Brown <julian@codesourcery.com>
10050 PR middle-end/86336
10051 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
10053 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
10054 Thomas Koenig <tkoenig@gcc.gnu.org>
10057 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10058 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10059 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10060 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10061 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10062 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10063 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10065 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
10066 Tom de Vries <tdevries@suse.de>
10069 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
10070 (cuOccupancyMaxPotentialBlockSize): Declare.
10071 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
10072 CUDA_ONE_CALL_MAYBE_NULL.
10073 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
10074 CUoccupancyB2DSize and declare
10075 cuOccupancyMaxPotentialBlockSize.
10076 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
10077 default num_gangs and num_workers when the driver supports it.
10079 2018-08-08 Tom de Vries <tdevries@suse.de>
10081 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
10082 CUDA_ONE_CALL_MAYBE_NULL.
10083 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
10084 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
10085 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
10088 2018-08-08 Tom de Vries <tdevries@suse.de>
10090 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
10091 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
10094 2018-08-08 Tom de Vries <tdevries@suse.de>
10096 * plugin/plugin-nvptx.c
10097 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
10098 (nvptx_open_device): Use
10099 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
10101 2018-08-08 Tom de Vries <tdevries@suse.de>
10103 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
10104 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
10106 2018-08-07 Tom de Vries <tdevries@suse.de>
10108 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
10109 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
10110 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
10111 corresponding call in CUDA_ONE_CALL. Add def/undef of
10112 CUDA_ONE_CALL_MAYBE_NULL.
10113 (CUDA_CALL_EXISTS): Define.
10115 2018-08-07 Tom de Vries <tdevries@suse.de>
10117 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
10118 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
10119 corresponding undefs right after.
10121 2018-08-04 Tom de Vries <tdevries@suse.de>
10123 * plugin/configfrag.ac: For --without-cuda-driver, set
10124 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
10125 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
10126 * configure: Regenerate.
10128 2018-08-02 Tom de Vries <tdevries@suse.de>
10131 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
10132 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
10133 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
10135 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
10136 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
10137 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
10139 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
10140 Thomas Schwinge <thomas@codesourcery.com>
10142 * config/nvptx/oacc-parallel.c: Truncate.
10144 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
10145 James Norris <jnorris@codesourcery.com>
10147 * plugin/plugin-nvptx.c (struct map): Removed.
10148 (map_init, map_pop): Remove use of struct map.
10149 (map_push): Likewise and change argument list.
10150 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
10152 2018-08-01 Tom de Vries <tdevries@suse.de>
10154 * plugin/cuda-lib.def: New file. Factor out of ...
10155 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
10156 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
10159 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
10161 Revert 'AsyncI/O patch committed'.
10162 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
10163 Thomas Koenig <tkoenig@gcc.gnu.org>
10166 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10167 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10168 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10169 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10170 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10171 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10172 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10174 2018-07-30 Tom de Vries <tdevries@suse.de>
10176 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
10177 (nvptx_exec): Ensure worker and vector default dims don't exceed
10178 targ_fn->max_threads_per_block.
10180 2018-07-30 Tom de Vries <tdevries@suse.de>
10182 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
10183 (nvptx_open_device): Init default_dims for device.
10184 (nvptx_exec): Use default_dims from device.
10186 2018-07-26 Jakub Jelinek <jakub@redhat.com>
10189 * testsuite/libgomp.c++/for-15.C (results): Include it in
10190 omp declare target region.
10191 (main): Use map (always, tofrom: results) instead of
10192 map (tofrom: results).
10194 PR middle-end/86660
10195 * testsuite/libgomp.c/pr86660.c: New test.
10197 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
10198 Tom de Vries <tdevries@suse.de>
10200 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
10201 sufficient resources to launch a kernel, and give a hint on how to fix
10204 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
10205 Tom de Vries <tdevries@suse.de>
10207 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
10208 max_threads_per_block and max_threads_per_multiprocessor fields.
10209 (nvptx_open_device): Initialize new fields.
10210 (nvptx_exec): Use num_sms, and new fields.
10212 2018-07-26 Tom de Vries <tdevries@suse.de>
10214 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
10215 to correct locations. Remove xfail.
10217 2018-07-26 Tom de Vries <tdevries@suse.de>
10219 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
10220 acc_wait. Move acc_async_test calls to correct locations. Remove
10223 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
10224 Thomas Koenig <tkoenig@gcc.gnu.org>
10227 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10228 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10229 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10230 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10231 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10232 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10233 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10235 2018-07-17 Jakub Jelinek <jakub@redhat.com>
10237 PR middle-end/86542
10238 * testsuite/libgomp.c++/pr86542.C: New test.
10240 PR middle-end/86539
10241 * testsuite/libgomp.c++/pr86539.C: New test.
10243 2018-07-11 Jakub Jelinek <jakub@redhat.com>
10246 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
10247 (results): Make sure the variable is not inside declare target region.
10248 (qux): Remove unused function.
10250 2018-07-10 Jakub Jelinek <jakub@redhat.com>
10253 * testsuite/libgomp.c++/for-15.C: New test.
10255 2018-06-26 Jakub Jelinek <jakub@redhat.com>
10258 * testsuite/libgomp.c++/pr86291.C: New test.
10260 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
10262 * libgomp.texi (Top): Move www.openmp.org to https.
10263 (Enabling OpenMP): Ditto.
10264 (omp_get_active_level): Ditto.
10265 (omp_get_ancestor_thread_num): Ditto.
10266 (omp_get_cancellation): Ditto.
10267 (omp_get_default_device): Ditto.
10268 (omp_get_dynamic): Ditto.
10269 (omp_get_level): Ditto.
10270 (omp_get_max_active_levels): Ditto.
10271 (omp_get_max_task_priority): Ditto.
10272 (omp_get_max_threads): Ditto.
10273 (omp_get_nested): Ditto.
10274 (omp_get_num_devices): Ditto.
10275 (omp_get_num_procs): Ditto.
10276 (omp_get_num_teams): Ditto.
10277 (omp_get_num_threads): Ditto.
10278 (omp_get_proc_bind): Ditto.
10279 (omp_get_schedule): Ditto.
10280 (omp_get_team_num): Ditto.
10281 (omp_get_team_size): Ditto.
10282 (omp_get_thread_limit): Ditto.
10283 (omp_get_thread_num): Ditto.
10284 (omp_in_parallel): Ditto.
10285 (omp_in_final): Ditto.
10286 (omp_is_initial_device): Ditto.
10287 (omp_set_default_device): Ditto.
10288 (omp_set_dynamic): Ditto.
10289 (omp_set_max_active_levels): Ditto.
10290 (omp_set_nested): Ditto.
10291 (omp_set_num_threads): Ditto.
10292 (omp_set_schedule): Ditto.
10293 (omp_init_lock): Ditto.
10294 (omp_set_lock): Ditto.
10295 (omp_test_lock): Ditto.
10296 (omp_unset_lock): Ditto.
10297 (omp_destroy_lock): Ditto.
10298 (omp_init_nest_lock): Ditto.
10299 (omp_set_nest_lock): Ditto.
10300 (omp_test_nest_lock): Ditto.
10301 (omp_unset_nest_lock): Ditto.
10302 (omp_destroy_nest_lock): Ditto.
10303 (omp_get_wtick): Ditto.
10304 (omp_get_wtime): Ditto.
10305 (OMP_CANCELLATION): Ditto.
10306 (OMP_DISPLAY_ENV): Ditto.
10307 (OMP_DEFAULT_DEVICE): Ditto.
10308 (OMP_DYNAMIC): Ditto.
10309 (OMP_MAX_ACTIVE_LEVELS): Ditto.
10310 (OMP_MAX_TASK_PRIORITY): Ditto.
10311 (OMP_NESTED): Ditto.
10312 (OMP_NUM_THREADS): Ditto.
10313 (OMP_PROC_BIND): Ditto.
10314 (OMP_PLACES): Ditto.
10315 (OMP_STACKSIZE): Ditto.
10316 (OMP_SCHEDULE): Ditto.
10317 (OMP_THREAD_LIMIT): Ditto.
10318 (OMP_WAIT_POLICY): Ditto.
10320 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
10321 James Norris <jnorris@codesourcery.com>
10322 Julian Brown <julian@codesourcery.com>
10323 Thomas Schwinge <thomas@codesourcery.com>
10324 Tom de Vries <tom@codesourcery.com>
10326 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
10327 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
10328 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
10329 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
10330 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
10331 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
10332 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
10333 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
10334 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
10335 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
10337 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
10339 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
10341 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
10343 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
10345 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
10347 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
10349 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
10351 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
10353 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
10355 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
10357 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
10359 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
10361 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
10363 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
10365 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
10367 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
10369 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
10371 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
10373 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
10375 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
10377 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
10379 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
10381 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
10383 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
10385 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
10387 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
10389 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
10390 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
10391 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
10392 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
10393 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
10394 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
10395 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
10396 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
10397 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
10399 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
10401 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
10402 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
10403 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
10405 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
10406 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
10407 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
10409 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
10411 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
10413 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
10415 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
10417 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
10419 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
10421 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
10423 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
10425 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
10427 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
10429 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
10431 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
10433 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
10435 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
10437 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
10438 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
10439 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
10440 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
10441 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
10442 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
10443 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
10445 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
10446 Thomas Schwinge <thomas@codesourcery.com>
10447 Cesar Philippidis <cesar@codesourcery.com>
10449 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
10450 (gomp_acc_remove_pointer): Update declaration.
10451 (gomp_acc_declare_allocate): Declare.
10452 (gomp_remove_var): Declare.
10453 * libgomp.map (OACC_2.5): Define.
10454 * oacc-mem.c (acc_map_data): Update refcount.
10455 (acc_unmap_data): Likewise.
10456 (present_create_copy): Likewise.
10457 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
10458 (acc_copyin): Likewise.
10459 (FLAG_FINALIZE): Define.
10460 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
10461 (acc_delete_finalize): New function.
10462 (acc_delete_finalize_async): New function.
10463 (acc_copyout_finalize): New function.
10464 (acc_copyout_finalize_async): New function.
10465 (gomp_acc_insert_pointer): Update refcounts.
10466 (gomp_acc_remove_pointer): Return if data is not present on the
10468 * oacc-parallel.c (find_pset): Rename to find_pointer.
10469 (find_pointer): Add support for GOMP_MAP_POINTER.
10470 (handle_ftn_pointers): New function.
10471 (GOACC_parallel_keyed): Update refcounts of variables.
10472 (GOACC_enter_exit_data): Add support for finalized data mappings.
10473 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
10475 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
10476 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
10477 for GOMP_MAP_FORCE_FROM.
10478 * openacc.f90 (module openacc_internal): Add
10479 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
10480 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
10481 acc_copyout_finalize and acc_delete_finalize.
10482 (acc_copyout_finalize_32_h): New subroutine.
10483 (acc_copyout_finalize_64_h): New subroutine.
10484 (acc_copyout_finalize_array_h): New subroutine.
10485 (acc_delete_finalize_32_h): New subroutine.
10486 (acc_delete_finalize_64_h): New subroutine.
10487 (acc_delete_finalize_array_h): New subroutine.
10488 * openacc.h (acc_copyout_finalize): Declare.
10489 (acc_copyout_finalize_async): Declare.
10490 (acc_delete_finalize): Declare.
10491 (acc_delete_finalize_async): Declare.
10492 * openacc_lib.h (acc_copyout_finalize): New interface.
10493 (acc_delete_finalize): New interface.
10494 * target.c (gomp_map_vars): Update dynamic_refcount.
10495 (gomp_remove_var): New function.
10496 (gomp_unmap_vars): Use it.
10497 (gomp_unload_image_from_device): Likewise.
10498 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
10499 case to utilize OpenACC 2.5 data clause semantics.
10500 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10501 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10502 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10503 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10504 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10505 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10506 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10507 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10508 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10509 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
10510 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
10511 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
10512 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
10513 utilize OpenACC 2.5 data clause semantics.
10514 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10515 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10516 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10517 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10518 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10519 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10520 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10521 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
10522 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10524 2018-05-21 Janus Weil <janus@gcc.gnu.org>
10528 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
10529 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
10530 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
10531 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
10532 * testsuite/libgomp.fortran/task2.f90: Ditto.
10533 * testsuite/libgomp.fortran/vla1.f90: Ditto.
10534 * testsuite/libgomp.fortran/vla2.f90: Ditto.
10535 * testsuite/libgomp.fortran/vla3.f90: Ditto.
10536 * testsuite/libgomp.fortran/vla4.f90: Ditto.
10537 * testsuite/libgomp.fortran/vla5.f90: Ditto.
10538 * testsuite/libgomp.fortran/vla6.f90: Ditto.
10539 * testsuite/libgomp.fortran/vla8.f90: Ditto.
10540 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
10541 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
10543 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
10546 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
10548 2018-05-09 Tom de Vries <tom@codesourcery.com>
10551 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
10552 to GOACC_enter_exit_data.
10554 2018-05-09 Tom de Vries <tom@codesourcery.com>
10557 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
10558 (async_synchronous_p): New function.
10559 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
10561 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
10562 async_valid_stream_id_p.
10563 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
10564 * oacc-parallel.c (GOACC_parallel_keyed): Same.
10566 2018-05-07 Tom de Vries <tom@codesourcery.com>
10569 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
10570 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
10572 2018-05-03 Tom de Vries <tom@codesourcery.com>
10575 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
10576 extra_tool_flags if it contains an -foffload=-fdump-* flag.
10577 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
10578 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
10580 2018-05-02 Tom de Vries <tom@codesourcery.com>
10583 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
10584 GOMP_OPENACC_DIM ...
10585 * env.c (parse_gomp_openacc_dim): ... here. New function.
10586 (initialize_env): Call parse_gomp_openacc_dim.
10587 (goacc_default_dims): Define.
10588 * libgomp.h (goacc_default_dims): Declare.
10589 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
10590 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
10591 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
10592 GOMP_PLUGIN_acc_default_dim.
10593 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
10594 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
10596 2018-05-02 Tom de Vries <tom@codesourcery.com>
10599 * testsuite/libgomp.c++/udr-9.C: Update.
10600 * testsuite/libgomp.c++/atomic-16.C: Remove.
10601 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
10602 * testsuite/libgomp.c++/loop-13.C: Remove.
10603 * testsuite/libgomp.c++/loop-14.C: Remove.
10604 * testsuite/libgomp.c++/loop-15.C: Remove.
10605 * testsuite/libgomp.c++/monotonic-1.C: Remove.
10606 * testsuite/libgomp.c++/monotonic-2.C: Remove.
10607 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
10608 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
10609 * testsuite/libgomp.c++/ordered-1.C: Remove.
10610 * testsuite/libgomp.c++/pr45784.C: Remove.
10611 * testsuite/libgomp.c++/pr64824.C: Remove.
10612 * testsuite/libgomp.c++/pr64868.C: Remove.
10613 * testsuite/libgomp.c++/pr66199-1.C: Remove.
10614 * testsuite/libgomp.c++/pr66199-2.C: Remove.
10615 * testsuite/libgomp.c++/pr66199-3.C: Remove.
10616 * testsuite/libgomp.c++/pr66199-4.C: Remove.
10617 * testsuite/libgomp.c++/pr66199-5.C: Remove.
10618 * testsuite/libgomp.c++/pr66199-6.C: Remove.
10619 * testsuite/libgomp.c++/pr66199-7.C: Remove.
10620 * testsuite/libgomp.c++/pr66199-8.C: Remove.
10621 * testsuite/libgomp.c++/pr66199-9.C: Remove.
10622 * testsuite/libgomp.c++/pr69389.C: Remove.
10623 * testsuite/libgomp.c++/simd10.C: Remove.
10624 * testsuite/libgomp.c++/simd11.C: Remove.
10625 * testsuite/libgomp.c++/simd12.C: Remove.
10626 * testsuite/libgomp.c++/simd13.C: Remove.
10627 * testsuite/libgomp.c++/target-1.C: Remove.
10628 * testsuite/libgomp.c++/target-3.C: Remove.
10629 * testsuite/libgomp.c++/target-4.C: Remove.
10630 * testsuite/libgomp.c++/target-5.C: Remove.
10631 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
10632 * testsuite/libgomp.c++/taskloop-1.C: Remove.
10633 * testsuite/libgomp.c++/taskloop-2.C: Remove.
10634 * testsuite/libgomp.c++/taskloop-3.C: Remove.
10635 * testsuite/libgomp.c++/taskloop-4.C: Remove.
10636 * testsuite/libgomp.c++/udr-9.C: Remove.
10637 * testsuite/libgomp.c++/for-10.C: Remove.
10638 * testsuite/libgomp.c++/for-11.C: Remove.
10639 * testsuite/libgomp.c++/for-12.C: Remove.
10640 * testsuite/libgomp.c++/for-13.C: Remove.
10641 * testsuite/libgomp.c++/for-14.C: Remove.
10642 * testsuite/libgomp.c++/for-9.C: Remove.
10643 * testsuite/libgomp.c/atomic-18.c: Move ...
10644 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
10645 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
10646 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
10647 * testsuite/libgomp.c/loop-13.c: Move ...
10648 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
10649 * testsuite/libgomp.c/loop-14.c: Move ...
10650 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
10651 * testsuite/libgomp.c/loop-15.c: Remove.
10652 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
10653 * testsuite/libgomp.c/monotonic-1.c: Move ...
10654 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
10655 * testsuite/libgomp.c/monotonic-2.c: Move ...
10656 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
10657 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
10658 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
10659 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
10660 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
10661 * testsuite/libgomp.c/ordered-4.c: Move ...
10662 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
10663 * testsuite/libgomp.c/pr45784.c: Move ...
10664 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
10665 * testsuite/libgomp.c/pr64824.c: Move ...
10666 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
10667 * testsuite/libgomp.c/pr64868.c: Move ...
10668 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
10669 * testsuite/libgomp.c/pr66199-1.c: Move ...
10670 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
10671 * testsuite/libgomp.c/pr66199-2.c: Move ...
10672 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
10673 * testsuite/libgomp.c/pr66199-3.c: Move ...
10674 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
10675 * testsuite/libgomp.c/pr66199-4.c: Move ...
10676 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
10677 * testsuite/libgomp.c/pr66199-5.c: Move ...
10678 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
10679 * testsuite/libgomp.c/pr66199-6.c: Move ...
10680 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
10681 * testsuite/libgomp.c/pr66199-7.c: Move ...
10682 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
10683 * testsuite/libgomp.c/pr66199-8.c: Move ...
10684 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
10685 * testsuite/libgomp.c/pr66199-9.c: Move ...
10686 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
10687 * testsuite/libgomp.c/pr69389.c: Move ...
10688 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
10689 * testsuite/libgomp.c/simd-14.c: Move ...
10690 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
10691 * testsuite/libgomp.c/simd-15.c: Move ...
10692 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
10693 * testsuite/libgomp.c/simd-16.c: Move ...
10694 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
10695 * testsuite/libgomp.c/simd-17.c: Move ...
10696 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
10697 * testsuite/libgomp.c/target-1.c: Move ...
10698 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
10699 * testsuite/libgomp.c/target-10.c: Move ...
10700 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
10701 * testsuite/libgomp.c/target-13.c: Move ...
10702 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
10703 * testsuite/libgomp.c/target-2.c: Move ...
10704 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
10705 * testsuite/libgomp.c/taskgroup-1.c: Move ...
10706 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
10707 * testsuite/libgomp.c/taskloop-1.c: Move ...
10708 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
10709 * testsuite/libgomp.c/taskloop-2.c: Move ...
10710 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
10711 * testsuite/libgomp.c/taskloop-3.c: Move ...
10712 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
10713 * testsuite/libgomp.c/taskloop-4.c: Move ...
10714 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
10715 * testsuite/libgomp.c/udr-1.c: Move ...
10716 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
10717 * testsuite/libgomp.c/for-1.c: Move ...
10718 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
10719 * testsuite/libgomp.c/for-1.h: Move ...
10720 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
10721 * testsuite/libgomp.c/for-2.c: Move ...
10722 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
10723 * testsuite/libgomp.c/for-2.h: Move ...
10724 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
10725 * testsuite/libgomp.c/for-3.c: Move ...
10726 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
10727 * testsuite/libgomp.c/for-4.c: Move ...
10728 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
10729 * testsuite/libgomp.c/for-5.c: Move ...
10730 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
10731 * testsuite/libgomp.c/for-6.c: Move ...
10732 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
10734 2018-05-02 Tom de Vries <tom@codesourcery.com>
10737 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
10738 __builtin_goacc_parlevel_{id,size}.
10739 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
10740 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
10741 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
10742 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
10743 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
10744 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
10745 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
10746 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
10747 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
10748 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
10749 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
10750 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
10751 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
10752 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
10753 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
10754 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
10755 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
10756 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
10757 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
10758 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
10759 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
10760 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
10761 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
10763 2018-05-02 Tom de Vries <tom@codesourcery.com>
10766 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
10768 2018-05-02 Tom de Vries <tom@codesourcery.com>
10771 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
10773 2018-04-29 Julian Brown <julian@codesourcery.com>
10774 Tom de Vries <tom@codesourcery.com>
10777 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
10778 arbitrary order for iterations of atomic subtract check.
10780 2018-04-28 Tom de Vries <tom@codesourcery.com>
10783 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
10784 atomic capture results obtained in parallel loop to an array, instead of
10787 2018-04-26 Tom de Vries <tom@codesourcery.com>
10790 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
10791 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
10792 (process_GOMP_NVPTX_JIT): New function.
10793 (link_ptx): Use process_GOMP_NVPTX_JIT.
10795 2018-04-26 Richard Biener <rguenther@suse.de>
10796 Tom de Vries <tom@codesourcery.com>
10799 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
10801 2018-04-26 Tom de Vries <tom@codesourcery.com>
10804 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
10805 recursion depth from 25 to 23.
10806 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
10808 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
10810 * configure: Regenerated.
10812 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
10813 Tom de Vries <tom@codesourcery.com>
10816 * testsuite/libgomp.oacc-c++/ref-1.C: New.
10818 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
10821 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
10822 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
10823 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
10824 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
10825 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
10826 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
10828 PR libfortran/85166
10829 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
10831 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
10833 2018-04-19 Jakub Jelinek <jakub@redhat.com>
10835 * configure: Regenerated.
10837 2018-04-18 David Malcolm <dmalcolm@redhat.com>
10840 * configure: Regenerate.
10842 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
10843 Tom de Vries <tom@codesourcery.com>
10845 PR middle-end/84955
10846 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
10847 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
10849 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
10853 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
10854 test from gfortran.dg to here.
10856 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
10858 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
10859 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
10861 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
10863 PR middle-end/84955
10864 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
10865 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
10867 2018-04-05 Tom de Vries <tom@codesourcery.com>
10870 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
10872 2018-03-26 Tom de Vries <tom@codesourcery.com>
10874 PR tree-optimization/85063
10875 * testsuite/libgomp.c/switch-conversion-2.c: New test.
10876 * testsuite/libgomp.c/switch-conversion.c: New test.
10877 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
10878 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
10880 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
10883 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
10884 call abort by STOP n.
10885 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
10886 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
10887 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
10888 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
10889 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
10890 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
10891 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
10892 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
10893 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
10894 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
10895 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
10896 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
10897 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
10898 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
10899 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
10900 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
10901 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
10902 * testsuite/libgomp.fortran/associate1.f90: Likewise.
10903 * testsuite/libgomp.fortran/associate2.f90: Likewise.
10904 * testsuite/libgomp.fortran/associate3.f90: Likewise.
10905 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
10906 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
10907 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
10908 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
10909 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
10910 * testsuite/libgomp.fortran/character1.f90: Likewise.
10911 * testsuite/libgomp.fortran/character2.f90: Likewise.
10912 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
10913 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
10914 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
10915 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
10916 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
10917 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
10918 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
10919 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
10920 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
10921 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
10922 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
10923 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
10924 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
10925 * testsuite/libgomp.fortran/do1.f90: Likewise.
10926 * testsuite/libgomp.fortran/do2.f90: Likewise.
10927 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
10928 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
10929 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
10930 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
10931 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
10932 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
10933 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
10934 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
10935 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
10936 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
10937 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
10938 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
10939 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
10940 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
10941 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
10942 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
10943 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
10944 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
10945 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
10946 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
10947 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
10948 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
10949 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
10950 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
10951 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
10952 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
10953 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
10954 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
10955 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
10956 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
10957 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
10958 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
10959 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
10960 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
10961 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
10962 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
10963 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
10964 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
10965 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
10966 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
10967 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
10968 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
10969 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
10970 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
10971 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
10972 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
10973 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
10974 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
10975 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
10976 * testsuite/libgomp.fortran/lib1.f90: Likewise.
10977 * testsuite/libgomp.fortran/lib2.f: Likewise.
10978 * testsuite/libgomp.fortran/lib3.f: Likewise.
10979 * testsuite/libgomp.fortran/lib4.f90: Likewise.
10980 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
10981 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
10982 * testsuite/libgomp.fortran/nested1.f90: Likewise.
10983 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
10984 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
10985 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
10986 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
10987 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
10988 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
10989 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
10990 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
10991 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
10992 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
10993 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
10994 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
10995 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
10996 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
10997 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
10998 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
10999 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
11000 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
11001 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
11002 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
11003 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
11004 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
11005 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
11006 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
11007 * testsuite/libgomp.fortran/pr25162.f: Likewise.
11008 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
11009 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
11010 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
11011 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
11012 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
11013 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
11014 * testsuite/libgomp.fortran/pr28390.f: Likewise.
11015 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
11016 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
11017 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
11018 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
11019 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
11020 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
11021 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
11022 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
11023 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
11024 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
11025 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
11026 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
11027 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
11028 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
11029 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
11030 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
11031 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
11032 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
11033 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
11034 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
11035 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
11036 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
11037 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
11038 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
11039 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
11040 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11041 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
11042 * testsuite/libgomp.fortran/reference1.f90: Likewise.
11043 * testsuite/libgomp.fortran/reference2.f90: Likewise.
11044 * testsuite/libgomp.fortran/retval1.f90: Likewise.
11045 * testsuite/libgomp.fortran/retval2.f90: Likewise.
11046 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
11047 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
11048 * testsuite/libgomp.fortran/simd1.f90: Likewise.
11049 * testsuite/libgomp.fortran/simd2.f90: Likewise.
11050 * testsuite/libgomp.fortran/simd3.f90: Likewise.
11051 * testsuite/libgomp.fortran/simd4.f90: Likewise.
11052 * testsuite/libgomp.fortran/simd5.f90: Likewise.
11053 * testsuite/libgomp.fortran/simd6.f90: Likewise.
11054 * testsuite/libgomp.fortran/simd7.f90: Likewise.
11055 * testsuite/libgomp.fortran/stack.f90: Likewise.
11056 * testsuite/libgomp.fortran/strassen.f90: Likewise.
11057 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
11058 * testsuite/libgomp.fortran/tabs2.f: Likewise.
11059 * testsuite/libgomp.fortran/target1.f90: Likewise.
11060 * testsuite/libgomp.fortran/target2.f90: Likewise.
11061 * testsuite/libgomp.fortran/target3.f90: Likewise.
11062 * testsuite/libgomp.fortran/target4.f90: Likewise.
11063 * testsuite/libgomp.fortran/target5.f90: Likewise.
11064 * testsuite/libgomp.fortran/target6.f90: Likewise.
11065 * testsuite/libgomp.fortran/target7.f90: Likewise.
11066 * testsuite/libgomp.fortran/target8.f90: Likewise.
11067 * testsuite/libgomp.fortran/task1.f90: Likewise.
11068 * testsuite/libgomp.fortran/task2.f90: Likewise.
11069 * testsuite/libgomp.fortran/task3.f90: Likewise.
11070 * testsuite/libgomp.fortran/task4.f90: Likewise.
11071 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
11072 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
11073 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
11074 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
11075 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
11076 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11077 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11078 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11079 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
11080 * testsuite/libgomp.fortran/udr1.f90: Likewise.
11081 * testsuite/libgomp.fortran/udr10.f90: Likewise.
11082 * testsuite/libgomp.fortran/udr11.f90: Likewise.
11083 * testsuite/libgomp.fortran/udr12.f90: Likewise.
11084 * testsuite/libgomp.fortran/udr13.f90: Likewise.
11085 * testsuite/libgomp.fortran/udr14.f90: Likewise.
11086 * testsuite/libgomp.fortran/udr15.f90: Likewise.
11087 * testsuite/libgomp.fortran/udr2.f90: Likewise.
11088 * testsuite/libgomp.fortran/udr3.f90: Likewise.
11089 * testsuite/libgomp.fortran/udr4.f90: Likewise.
11090 * testsuite/libgomp.fortran/udr5.f90: Likewise.
11091 * testsuite/libgomp.fortran/udr6.f90: Likewise.
11092 * testsuite/libgomp.fortran/udr7.f90: Likewise.
11093 * testsuite/libgomp.fortran/udr8.f90: Likewise.
11094 * testsuite/libgomp.fortran/udr9.f90: Likewise.
11095 * testsuite/libgomp.fortran/vla1.f90: Likewise.
11096 * testsuite/libgomp.fortran/vla2.f90: Likewise.
11097 * testsuite/libgomp.fortran/vla3.f90: Likewise.
11098 * testsuite/libgomp.fortran/vla4.f90: Likewise.
11099 * testsuite/libgomp.fortran/vla5.f90: Likewise.
11100 * testsuite/libgomp.fortran/vla6.f90: Likewise.
11101 * testsuite/libgomp.fortran/vla7.f90: Likewise.
11102 * testsuite/libgomp.fortran/vla8.f90: Likewise.
11103 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
11104 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
11105 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
11106 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11107 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
11108 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
11109 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
11110 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11111 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11112 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11113 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
11114 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
11115 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
11116 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
11117 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
11118 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
11119 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
11120 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
11121 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
11122 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
11123 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
11124 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
11125 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
11126 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
11127 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
11128 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11129 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11130 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
11131 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11132 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
11133 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
11134 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11135 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11136 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11137 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11138 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11139 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
11140 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
11141 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
11142 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
11143 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
11144 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
11145 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
11146 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
11147 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
11148 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
11149 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
11150 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
11151 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
11152 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
11153 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
11154 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
11155 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
11156 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11157 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
11158 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
11159 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
11160 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
11161 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
11162 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
11163 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
11164 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
11165 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
11166 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
11167 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
11168 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
11169 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
11170 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
11171 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
11172 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
11173 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
11174 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
11175 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
11176 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
11177 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
11178 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
11179 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
11180 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11181 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11182 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11183 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11184 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11185 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
11186 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
11187 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
11188 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
11189 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
11190 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
11191 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
11192 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
11193 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
11194 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
11195 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
11196 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
11198 2018-03-20 Richard Biener <rguenther@suse.de>
11200 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
11201 parallelizable loop.
11203 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11206 * configure: Regenerate.
11208 2018-02-16 Jakub Jelinek <jakub@redhat.com>
11211 * libgomp.fortran/pr84418-1.f90: New test.
11212 * libgomp.fortran/pr84418-2.f90: New test.
11214 2018-02-14 Jakub Jelinek <jakub@redhat.com>
11217 * testsuite/libgomp.fortran/threadprivate4.f90: Add
11218 -std=f2003 -fall-intrinsics into dg-additional-options.
11220 2018-02-08 Martin Jambor <mjambor@suse.cz>
11222 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
11225 2018-02-08 Martin Jambor <mjambor@suse.cz>
11227 * testsuite/libgomp.hsa.c/staticvar.c: New test.
11229 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11231 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
11232 [__cplusplus]: Declare extern "C".
11234 2018-02-07 Tom de Vries <tom@codesourcery.com>
11237 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
11239 2018-01-29 Christoph Spiel <cspiel@freenet.de>
11240 Jakub Jelinek <jakub@redhat.com>
11243 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
11244 instead of omp_lock_t.
11246 2018-01-25 Tom de Vries <tom@codesourcery.com>
11249 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
11251 2018-01-24 Tom de Vries <tom@codesourcery.com>
11254 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
11256 2018-01-24 Tom de Vries <tom@codesourcery.com>
11259 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
11261 2018-01-19 Tom de Vries <tom@codesourcery.com>
11262 Cesar Philippidis <cesar@codesourcery.com>
11265 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
11266 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
11268 2018-01-03 Jakub Jelinek <jakub@redhat.com>
11270 Update copyright years.
11272 * libgomp.texi: Bump @copying's copyright year.
11274 2017-12-30 Tom de Vries <tom@codesourcery.com>
11277 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
11278 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
11280 2017-12-27 Tom de Vries <tom@codesourcery.com>
11283 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
11284 (test_nonstatic): Fix return type to workaround PR83046.
11286 2017-12-05 Jakub Jelinek <jakub@redhat.com>
11289 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
11290 j suffix instead of i.
11291 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
11294 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
11296 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
11297 call to acc_wait (1).
11299 2017-11-24 Jakub Jelinek <jakub@redhat.com>
11302 * testsuite/libgomp.fortran/pr81304.f90: New test.
11304 2017-11-23 Jakub Jelinek <jakub@redhat.com>
11307 * libgomp.fortran/pr81841.f90: New test.
11309 2017-11-22 Jakub Jelinek <jakub@redhat.com>
11312 * target.c (gomp_target_init): Compute lengths just once and
11313 use them in both malloc size and subsequent copying.
11315 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11317 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
11318 * acinclude.m4: Add cet.m4.
11319 * configure: Regenerate.
11320 * Makefile.in: Likewise.
11321 * testsuite/Makefile.in: Likewise.
11323 2017-11-15 Tom de Vries <tom@codesourcery.com>
11325 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
11326 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
11327 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
11328 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
11329 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
11330 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
11332 2017-11-14 Tom de Vries <tom@codesourcery.com>
11334 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
11335 non-nvidia devices.
11337 2017-11-07 Jakub Jelinek <jakub@redhat.com>
11340 * testsuite/libgomp.c++/pr82835.C: New test.
11342 2017-11-06 Martin Liska <mliska@suse.cz>
11344 * testsuite/libgomp.c++/loop-2.C: Return a value
11345 for functions with non-void return type, or change type to void,
11346 or add -Wno-return-type for test.
11347 * testsuite/libgomp.c++/loop-4.C: Likewise.
11348 * testsuite/libgomp.c++/parallel-1.C: Likewise.
11349 * testsuite/libgomp.c++/shared-1.C: Likewise.
11350 * testsuite/libgomp.c++/single-1.C: Likewise.
11351 * testsuite/libgomp.c++/single-2.C: Likewise.
11353 2017-10-31 Tom de Vries <tom@codesourcery.com>
11355 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
11356 "do {} while (false)".
11357 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
11358 after HSA_DEBUG call.
11360 2017-10-28 Jakub Jelinek <jakub@redhat.com>
11362 * target.c (struct gomp_coalesce_buf): New type.
11363 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
11364 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
11365 (gomp_copy_host2dev): Add CBUF argument, if copying into
11366 the cached ranges, memcpy into buffer instead of copying
11368 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
11369 Add CBUF argument, pass it through to other calls.
11370 (gomp_map_vars): Aggregate copies from host to device if small enough
11371 and with small enough gaps in between into memcpy into a buffer and
11372 fewer host to device copies from the buffer.
11373 (gomp_update): Adjust gomp_copy_host2dev caller.
11375 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
11377 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
11379 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11380 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11381 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11382 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11384 2017-10-16 Tom de Vries <tom@codesourcery.com>
11386 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
11387 openacc_nvidia_accel_selected.
11388 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
11389 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
11390 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
11391 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
11392 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
11393 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
11394 openacc_nvidia_accel_selected. Skip for shared memory device.
11395 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
11396 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
11398 2017-10-09 Martin Jambor <mjambor@suse.cz>
11401 * testsuite/libgomp.hsa.c/pr82416.c: New test.
11403 2017-10-07 Tom de Vries <tom@codesourcery.com>
11405 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
11406 Remove acc_device_nvidia references.
11407 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
11410 2017-10-05 Tom de Vries <tom@codesourcery.com>
11412 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
11413 vector_length(32) clause from acc parallel directive.
11414 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
11416 2017-10-04 Tom de Vries <tom@codesourcery.com>
11418 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
11419 (main): Reduce sum of arr elements. Assert that hres is exactly
11420 representable in 32-bit floating point.
11421 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
11422 (main): Reduce sum of arr elements. Assert that hres and hmres are
11423 exactly representable in 32-bit floating point.
11424 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
11426 2017-09-28 Tom de Vries <tom@codesourcery.com>
11428 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
11430 * testsuite/libgomp.c++/pr69393.C: Same.
11431 * testsuite/libgomp.c++/taskloop-1.C: Same.
11432 * testsuite/libgomp.c++/taskloop-3.C: Same.
11433 * testsuite/libgomp.c++/taskloop-4.C: Same.
11434 * testsuite/libgomp.c/for-4.c: Same.
11435 * testsuite/libgomp.c/pr66199-3.c: Same.
11436 * testsuite/libgomp.c/pr66199-4.c: Same.
11437 * testsuite/libgomp.c/pr66199-6.c: Same.
11438 * testsuite/libgomp.c/taskloop-1.c: Same.
11439 * testsuite/libgomp.c/taskloop-3.c: Same.
11440 * testsuite/libgomp.c/taskloop-4.c: Same.
11441 * testsuite/libgomp.fortran/aligned1.f03: Same.
11442 * testsuite/libgomp.fortran/condinc1.f: Same.
11443 * testsuite/libgomp.fortran/condinc3.f90: Same.
11444 * testsuite/libgomp.fortran/crayptr1.f90: Same.
11445 * testsuite/libgomp.fortran/crayptr2.f90: Same.
11446 * testsuite/libgomp.fortran/crayptr3.f90: Same.
11447 * testsuite/libgomp.fortran/omp_cond1.f: Same.
11448 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
11449 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
11450 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
11451 * testsuite/libgomp.fortran/recursion1.f90: Same.
11452 * testsuite/libgomp.fortran/target2.f90: Same.
11453 * testsuite/libgomp.fortran/target5.f90: Same.
11454 * testsuite/libgomp.fortran/task3.f90: Same.
11456 2017-09-28 Tom de Vries <tom@codesourcery.com>
11458 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
11459 vector_length(32) clause from acc parallel directive.
11460 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
11462 2017-09-27 Tom de Vries <tom@codesourcery.com>
11464 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
11465 Remove acc_device_nvidia references.
11467 2017-09-16 Tom de Vries <tom@codesourcery.com>
11470 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
11472 2017-09-14 Tom de Vries <tom@codesourcery.com>
11474 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
11475 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
11476 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
11477 * testsuite/libgomp.c/c.exp: Include test-cases from
11478 libgomp.c-c++-common.
11479 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
11482 2017-09-14 Jakub Jelinek <jakub@redhat.com>
11485 * testsuite/libgomp.c++/pr81314.C: New test.
11487 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
11489 * libgomp.texi (Top): www.openacc.org now uses https.
11490 (Enabling OpenACC): Ditto.
11491 (acc_get_num_devices): Ditto.
11492 (acc_set_device_type): Ditto.
11493 (acc_get_device_type): Ditto.
11494 (acc_set_device_num): Ditto.
11495 (acc_get_device_num): Ditto.
11496 (acc_async_test): Ditto.
11497 (acc_async_test_all): Ditto.
11499 (acc_wait_all): Ditto.
11500 (acc_wait_all_async): Ditto.
11501 (acc_wait_async): Ditto.
11503 (acc_shutdown): Ditto.
11504 (acc_on_device): Ditto.
11505 (acc_malloc): Ditto.
11507 (acc_copyin): Ditto.
11508 (acc_present_or_copyin): Ditto.
11509 (acc_create): Ditto.
11510 (acc_present_or_create): Ditto.
11511 (acc_copyout): Ditto.
11512 (acc_delete): Ditto.
11513 (acc_update_device): Ditto.
11514 (acc_update_self): Ditto.
11515 (acc_map_data): Ditto.
11516 (acc_unmap_data): Ditto.
11517 (acc_deviceptr): Ditto.
11518 (acc_hostptr): Ditto.
11519 (acc_is_present): Ditto.
11520 (acc_memcpy_to_device): Ditto.
11521 (acc_memcpy_from_device): Ditto.
11522 (acc_get_current_cuda_device): Ditto.
11523 (acc_get_current_cuda_context): Ditto.
11524 (acc_get_cuda_stream): Ditto.
11525 (acc_set_cuda_stream): Ditto.
11526 (ACC_DEVICE_TYPE): Ditto.
11527 (ACC_DEVICE_NUM): Ditto.
11528 (OpenACC Library Interoperability): Ditto.
11530 2017-08-09 Jakub Jelinek <jakub@redhat.com>
11533 * testsuite/libgomp.c/pr81687-1.c: New test.
11534 * testsuite/libgomp.c/pr81687-2.c: New test.
11536 2017-08-07 Jakub Jelinek <jakub@redhat.com>
11539 * testsuite/libgomp.c/pr69389.c: New test.
11540 * testsuite/libgomp.c++/pr69389.C: New test.
11542 2017-08-07 Tom de Vries <tom@codesourcery.com>
11544 PR middle-end/78266
11545 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
11546 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
11548 2017-07-27 Jakub Jelinek <jakub@redhat.com>
11551 * testsuite/libgomp.c/pr45784.c: New test.
11552 * testsuite/libgomp.c++/pr45784.C: New test.
11554 2017-07-19 Tom de Vries <tom@codesourcery.com>
11556 * testsuite/libgomp.oacc-c/vec.c: New test.
11558 2017-07-03 Tom de Vries <tom@codesourcery.com>
11560 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
11562 2017-06-27 Tom de Vries <tom@codesourcery.com>
11564 * plugin/plugin-nvptx.c (notify_var): New function.
11565 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
11567 2017-06-27 Tom de Vries <tom@codesourcery.com>
11569 * env.c (parse_unsigned_long_1): Factor out of ...
11570 (parse_unsigned_long): ... here.
11571 (parse_int_1): Factor out of ...
11572 (parse_int): ... here.
11573 (parse_int_secure): New function.
11574 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
11575 * secure_getenv.h: Factor out of ...
11576 * plugin/plugin-hsa.c: ... here.
11577 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
11579 2017-06-21 Jakub Jelinek <jakub@redhat.com>
11582 * testsuite/libgomp.c++/pr81130.C: New test.
11584 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11586 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
11588 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
11589 dg-xfail-run-if default args.
11591 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
11593 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
11594 * testsuite/libgomp.c/pr39591-3.c: Likewise.
11596 2017-05-30 Jakub Jelinek <jakub@redhat.com>
11599 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
11600 (gomp_affinity_init_level): Use it. Always analyze the core and thread
11601 sibling lists, depending on level just pick up what CPUs to put
11602 together into a place vs. whether add multiple ordered places.
11604 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
11606 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
11607 * libgomp.map (OACC_2.0.1): Add these.
11608 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
11609 for "acc_wait", and "acc_wait_all", respectively.
11610 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
11611 for "acc_wait", and "acc_wait_all", respectively.
11612 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
11613 * libgomp.texi (acc_wait, acc_wait_all): Update.
11614 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
11615 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
11616 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
11618 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
11619 acc_present_or_copyin and acc_present_or_create procedures,
11621 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
11622 generally different variants of OpenACC Runtime Library functions.
11623 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11625 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
11626 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11628 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
11629 of preprocessor definitions.
11630 * libgomp.h (strong_alias): Guard by "#ifdef
11631 HAVE_ATTRIBUTE_ALIAS".
11632 * oacc-mem.c: Provide "acc_pcreate" as alias for
11633 "acc_present_or_create", and "acc_pcopyin" as alias for
11634 "acc_present_or_copyin".
11635 * libgomp.map: New version "OACC_2.0.1".
11636 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
11637 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
11638 its content into...
11639 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
11642 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
11643 when disabling nvptx offloading.
11645 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
11647 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
11648 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
11649 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
11651 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
11652 * testsuite/lib/libgomp.exp
11653 (check_effective_target_openacc_nvidia_accel_configured): New
11655 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
11656 (check_effective_target_c++): New procs.
11657 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
11658 (check_effective_target_c++): Likewise.
11660 2017-05-22 Jakub Jelinek <jakub@redhat.com>
11662 PR middle-end/80809
11663 * testsuite/libgomp.c/pr80809-2.c: New test.
11664 * testsuite/libgomp.c/pr80809-3.c: New test.
11666 PR middle-end/80809
11667 * testsuite/libgomp.c/pr80809-1.c: New test.
11669 PR middle-end/80853
11670 * testsuite/libgomp.c/pr80853.c: New test.
11672 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
11674 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
11675 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
11676 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11677 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11678 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
11680 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
11681 Debug output for failure.
11683 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11685 * testsuite/lib/libgomp.exp: Load scanlang.exp.
11687 2017-04-27 Jakub Jelinek <jakub@redhat.com>
11690 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
11691 bootstrap compare failures.
11693 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
11695 * testsuite/libgomp.c/target-36.c: New testcase.
11697 2017-04-13 Jakub Jelinek <jakub@redhat.com>
11699 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
11702 2017-04-11 Jakub Jelinek <jakub@redhat.com>
11705 * testsuite/libgomp.c/pr80394.c: New test.
11707 2017-04-04 Jakub Jelinek <jakub@redhat.com>
11710 * config/posix/thread-stacksize.h: New file.
11711 * config/darwin/thread-stacksize.h: New file.
11712 * config/nvptx/thread-stacksize.h: New file.
11713 * env.c: Include thread-stacksize.h.
11714 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
11715 instead of 0. Call pthread_attr_setstacksize even if
11716 GOMP_DEFAULT_STACKSIZE is non-zero.
11718 2017-03-30 Jakub Jelinek <jakub@redhat.com>
11720 * env.c (initialize_env): Initialize stacksize to 0.
11722 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
11725 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
11727 2017-03-08 Jakub Jelinek <jakub@redhat.com>
11730 * testsuite/libgomp.c/pr79940.c: New test.
11732 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11734 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
11736 Add __float128 options.
11738 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
11740 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
11741 hppa*-*-* dg-skip-if directive.
11743 2017-02-09 Jakub Jelinek <jakub@redhat.com>
11745 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
11746 dg-skip-if directive into a comment.
11748 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
11749 Chung-Lin Tang <cltang@codesourcery.com>
11751 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
11752 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
11753 add additional case.
11754 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
11755 "openacc_nvidia_accel_selected".
11756 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
11757 Add num_workers(8) clause.
11759 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
11761 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
11763 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
11764 include complex.h on hppa*-*-hpux*.
11765 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
11767 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
11769 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
11771 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
11772 GOMP_OFFLOAD_openacc_exec. Adjust all users.
11773 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
11774 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
11775 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
11776 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
11777 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
11778 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
11779 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
11780 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
11782 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
11784 * libgomp-plugin.h: #include <stdbool.h>.
11785 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
11786 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
11787 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
11788 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
11789 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
11790 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
11791 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
11792 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
11793 (GOMP_OFFLOAD_openacc_register_async_cleanup)
11794 (GOMP_OFFLOAD_openacc_async_test)
11795 (GOMP_OFFLOAD_openacc_async_test_all)
11796 (GOMP_OFFLOAD_openacc_async_wait)
11797 (GOMP_OFFLOAD_openacc_async_wait_async)
11798 (GOMP_OFFLOAD_openacc_async_wait_all)
11799 (GOMP_OFFLOAD_openacc_async_wait_all_async)
11800 (GOMP_OFFLOAD_openacc_async_set_async)
11801 (GOMP_OFFLOAD_openacc_create_thread_data)
11802 (GOMP_OFFLOAD_openacc_destroy_thread_data)
11803 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
11804 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
11805 (GOMP_OFFLOAD_openacc_get_cuda_stream)
11806 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
11807 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
11809 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
11810 (GOMP_OFFLOAD_unload_image): Fix argument types.
11812 2017-01-26 Jakub Jelinek <jakub@redhat.com>
11814 * testsuite/lib/libgomp.exp
11815 (check_effective_target_hsa_offloading_selected_nocache): Fix up
11816 check_compile invocation. Fix up removal of executable. Drop
11817 bogus "2>&1" argument.
11819 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
11822 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
11823 Martin Jambor <mjambor@suse.cz>
11825 * plugin/hsa.h: Moved to top level include.
11826 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
11828 2017-01-21 Jakub Jelinek <jakub@redhat.com>
11831 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
11832 of cat to get version from BASE-VER file.
11833 * testsuite/Makefile.in: Regenerated.
11835 2017-01-19 Jakub Jelinek <jakub@redhat.com>
11837 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
11840 2017-01-17 Jakub Jelinek <jakub@redhat.com>
11842 * plugin/hsa.h: Add GCC runtime library exception.
11843 * plugin/hsa_ext_finalize.h: Likewise.
11845 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
11846 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
11847 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
11848 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
11849 plugin/include/cuda as include dir and -ldl instead of -lcuda as
11850 library to link ptx plugin against.
11851 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
11852 (CUDA_CALLS): Define.
11853 (cuda_lib, cuda_lib_inited): New variables.
11854 (init_cuda_lib): New function.
11855 (CUDA_CALL_PREFIX): Define.
11856 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
11857 (CUDA_CALL): Use FN instead of (FN).
11858 (CUDA_CALL_NOCHECK): Define.
11859 (cuda_error, fini_streams_for_device, select_stream_for_async,
11860 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
11861 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
11862 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
11863 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
11865 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
11867 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
11868 Use CUDA_CALL_NOCHECK.
11869 * plugin/cuda/cuda.h: New file.
11870 * config.h.in: Regenerated.
11871 * configure: Regenerated.
11874 * configure.ac: Add GCC_BASE_VER.
11875 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
11876 get version from BASE-VER file.
11877 * testsuite/Makefile.in: Regenerated.
11878 * configure: Regenerated.
11879 * Makefile.in: Regenerated.
11881 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11884 * Makefile.am: Make fincludedir multilib-aware.
11885 * Makefile.in: Regenerate.
11887 2017-01-01 Jakub Jelinek <jakub@redhat.com>
11889 Update copyright years.
11891 * libgomp.texi: Bump @copying's copyright year.
11893 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
11895 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
11896 pthread_spinlock_t instead of gomp_mutex_t lock.
11897 (gomp_get_thread_pool): Likewise.
11898 (gomp_release_thread_pool): Likewise.
11899 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
11902 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
11904 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
11905 thread pool in case nthreads == 1.
11907 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
11909 * config/nvptx/env.c: Delete.
11910 * icv.c: Move definitions of ICV variables back ...
11911 * env.c: ...here. Do not compile environment-related functionality if
11912 LIBGOMP_OFFLOADED_ONLY is set.
11914 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
11916 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
11917 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
11918 * configure: Regenerate.
11919 * config.h.in: Likewise.
11921 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
11923 * Makefile.in: Regenerate with automake-1.11.6.
11924 * aclocal.m4: Likewise.
11925 * configure: Likewise.
11926 * testsuite/Makefile.in: Likewise.
11928 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
11930 * config/nvptx/critical.c: Delete to use generic implementation.
11932 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
11934 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
11935 ../../affinity.c as fallback.
11936 * config/nvptx/affinity.c: Delete to use fallback implementation.
11938 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
11939 Jakub Jelinek <jakub@redhat.com>
11940 Dmitry Melnik <dm@ispras.ru>
11942 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
11943 * Makefile.in. Regenerate.
11944 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
11945 (LIBGOMP_USE_PTHREADS): ...here; new define.
11946 * configure: Regenerate.
11947 * config.h.in: Likewise.
11948 * config/posix/affinity.c: Move to...
11949 * affinity.c: ...here (new file). Guard use of Pthreads-specific
11950 interface by LIBGOMP_USE_PTHREADS.
11951 * critical.c: Split out GOMP_atomic_{start,end} into...
11952 * atomic.c: ...here (new file).
11953 * env.c: Split out ICV definitions into...
11954 * icv.c: ...here (new file) and...
11955 * icv-device.c: ...here. New file.
11956 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
11957 (gomp_destroy_lock_30): Ditto.
11958 (gomp_set_lock_30): Ditto.
11959 (gomp_unset_lock_30): Ditto.
11960 (gomp_test_lock_30): Ditto.
11961 (gomp_init_nest_lock_30): Ditto.
11962 (gomp_destroy_nest_lock_30): Ditto.
11963 (gomp_set_nest_lock_30): Ditto.
11964 (gomp_unset_nest_lock_30): Ditto.
11965 (gomp_test_nest_lock_30): Ditto.
11967 * config/nvptx/lock.c: New.
11968 * config/nvptx/bar.c: New.
11969 * config/nvptx/bar.h: New.
11970 * config/nvptx/doacross.h: New.
11971 * config/nvptx/error.c: New.
11972 * config/nvptx/icv-device.c: New.
11973 * config/nvptx/mutex.h: New.
11974 * config/nvptx/pool.h: New.
11975 * config/nvptx/proc.c: New.
11976 * config/nvptx/ptrlock.h: New.
11977 * config/nvptx/sem.h: New.
11978 * config/nvptx/simple-bar.h: New.
11979 * config/nvptx/target.c: New.
11980 * config/nvptx/task.c: New.
11981 * config/nvptx/team.c: New.
11982 * config/nvptx/time.c: New.
11983 * config/posix/simple-bar.h: New.
11984 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
11985 (gomp_num_teams_var): Declare.
11986 (struct gomp_thread_pool): Change threads_dock member to
11987 gomp_simple_barrier_t.
11988 [__nvptx__] (gomp_thread): New implementation.
11989 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
11990 (gomp_thread_destructor): Ditto.
11991 (gomp_init_thread_affinity): Ditto.
11992 * team.c: Guard uses of Pthreads-specific interfaces by
11993 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
11994 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
11995 * config/nvptx/alloc.c: Delete.
11996 * config/nvptx/barrier.c: Ditto.
11997 * config/nvptx/fortran.c: Ditto.
11998 * config/nvptx/iter.c: Ditto.
11999 * config/nvptx/iter_ull.c: Ditto.
12000 * config/nvptx/loop.c: Ditto.
12001 * config/nvptx/loop_ull.c: Ditto.
12002 * config/nvptx/ordered.c: Ditto.
12003 * config/nvptx/parallel.c: Ditto.
12004 * config/nvptx/priority_queue.c: Ditto.
12005 * config/nvptx/sections.c: Ditto.
12006 * config/nvptx/single.c: Ditto.
12007 * config/nvptx/splay-tree.c: Ditto.
12008 * config/nvptx/work.c: Ditto.
12009 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
12010 -foffload=-lgfortran in addition to -lgfortran.
12011 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
12012 * plugin/plugin-nvptx.c: Include <limits.h>.
12013 (struct targ_fn_descriptor): Add new fields.
12014 (struct ptx_device): Ditto. Set them...
12015 (nvptx_open_device): ...here.
12016 (nvptx_adjust_launch_bounds): New.
12017 (nvptx_host2dev): Allow NULL 'nvthd'.
12018 (nvptx_dev2host): Ditto.
12019 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
12020 (link_ptx): Adjust log sizes.
12021 (nvptx_host2dev): Allow NULL 'nvthd'.
12022 (nvptx_dev2host): Ditto.
12023 (nvptx_set_clocktick): New. Use it...
12024 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
12026 (GOMP_OFFLOAD_dev2dev): New.
12027 (nvptx_adjust_launch_bounds): New.
12028 (nvptx_stacks_size): New.
12029 (nvptx_stacks_alloc): New.
12030 (nvptx_stacks_free): New.
12031 (GOMP_OFFLOAD_run): New.
12032 (GOMP_OFFLOAD_async_run): New (stub).
12034 2016-11-23 Martin Jambor <mjambor@suse.cz>
12036 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
12037 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
12038 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
12040 2016-11-23 Martin Liska <mliska@suse.cz>
12041 Martin Jambor <mjambor@suse.cz>
12043 * plugin/hsa.h: New file.
12044 * plugin/hsa_ext_finalize.h: New file.
12045 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
12046 header file unistd.h, and functions secure_getenv, __secure_getenv,
12047 getuid, geteuid, getgid and getegid.
12048 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
12050 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
12051 Handle various cases of secure_getenv presence, add an implementation
12052 when we can test effective UID and GID.
12053 (struct hsa_runtime_fn_info): New structure.
12054 (hsa_runtime_fn_info hsa_fns): New variable.
12055 (hsa_runtime_lib): Likewise.
12056 (support_cpu_devices): Likewise.
12057 (init_enviroment_variables): Load newly introduced ENV
12059 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
12060 (hsa_fatal): Likewise.
12061 (DLSYM_FN): New macro.
12062 (init_hsa_runtime_functions): New function.
12063 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
12064 structure. Depending on environment, also allow CPU devices.
12065 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
12066 (get_kernarg_memory_region): Likewise.
12067 (GOMP_OFFLOAD_init_device): Likewise.
12068 (destroy_hsa_program): Likewise.
12069 (init_basic_kernel_info): New function.
12070 (GOMP_OFFLOAD_load_image): Use it.
12071 (create_and_finalize_hsa_program): Call hsa run-time functions via
12073 (create_single_kernel_dispatch): Likewise.
12074 (release_kernel_dispatch): Likewise.
12075 (init_single_kernel): Likewise.
12076 (parse_target_attributes): Allow up multiple HSA grid dimensions.
12077 (get_group_size): New function.
12078 (run_kernel): Likewise.
12079 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
12080 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
12082 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
12083 * testsuite/libgomp-test-support.exp.in: Likewise.
12084 * Makefile.in: Regenerated.
12085 * aclocal.m4: Likewise.
12086 * config.h.in: Likewise.
12087 * configure: Likewise.
12088 * testsuite/Makefile.in: Likewise.
12090 2016-11-15 Martin Jambor <mjambor@suse.cz>
12091 Alexander Monakov <amonakov@ispras.ru>
12093 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
12094 mapping clauses to target constructs.
12095 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
12097 2016-11-15 Matthias Klose <doko@ubuntu.com>
12099 * configure: Regenerate.
12101 2016-11-10 Jakub Jelinek <jakub@redhat.com>
12103 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
12104 * omp_lib.h.in (openmp_version): Likewise.
12105 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
12107 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12109 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
12110 (fib_wrapper): Add map(from: x) clause.
12111 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
12112 (e_53_2): Likewise.
12113 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
12114 (accum): Add map(tmp) clause.
12115 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
12116 (accum): Add map(tofrom: tmp) clause.
12117 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
12118 (gramSchmidt): Likewise.
12119 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
12120 map(tofrom: sum) clause.
12121 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
12122 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
12123 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
12124 only allowed on the loop iterator.
12125 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
12126 * testsuite/libgomp.fortran/taskloop2.f90: New test.
12127 * testsuite/libgomp.fortran/taskloop4.f90: New test.
12128 * testsuite/libgomp.fortran/doacross1.f90: New test.
12129 * testsuite/libgomp.fortran/doacross3.f90: New test.
12130 * testsuite/libgomp.fortran/taskloop1.f90: New test.
12131 * testsuite/libgomp.fortran/taskloop3.f90: New test.
12132 * testsuite/libgomp.fortran/doacross2.f90: New test.
12133 * testsuite/libgomp.c/doacross-1.c (main): Add missing
12134 #pragma omp atomic read.
12135 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12136 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
12138 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
12139 Nathan Sidwell <nathan@acm.org>
12141 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
12142 to determine default geometry.
12143 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
12146 2016-11-01 Jakub Jelinek <jakub@redhat.com>
12148 * hashtab.h: Use standard GPLv3 with runtime exception
12151 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
12153 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
12154 size when allocating new thread.
12156 2016-09-14 Marek Polacek <polacek@redhat.com>
12158 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
12160 2016-08-19 Jakub Jelinek <jakub@redhat.com>
12163 * testsuite/libgomp.fortran/pr71014.f90: New test.
12165 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
12167 PR middle-end/70895
12168 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
12169 firstprivate clauses.
12170 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
12172 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
12173 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12174 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
12175 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
12176 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
12177 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
12178 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12179 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
12180 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12181 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12182 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12183 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
12185 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
12188 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
12190 2016-08-08 Jakub Jelinek <jakub@redhat.com>
12193 * testsuite/libgomp.c++/pr58706.C: New test.
12195 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
12197 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
12198 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
12199 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
12201 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
12202 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
12204 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
12206 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
12207 test, and don't hardcode -O0.
12209 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
12211 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
12213 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
12215 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
12218 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
12220 PR middle-end/71734
12221 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
12222 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
12224 2016-07-01 Jakub Jelinek <jakub@redhat.com>
12227 * testsuite/libgomp.fortran/associate3.f90: New test.
12229 2016-06-17 Jakub Jelinek <jakub@redhat.com>
12231 * testsuite/libgomp.c++/target-21.C: New test.
12233 2016-06-16 Jakub Jelinek <jakub@redhat.com>
12235 * testsuite/libgomp.c++/target-20.C: New test.
12237 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
12238 Cesar Philippidis <cesar@codesourcery.com>
12240 PR middle-end/71373
12241 * libgomp.oacc-c/nested-function-1.c: New file.
12242 * libgomp.oacc-c/nested-function-2.c: Likewise.
12243 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
12244 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
12245 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
12247 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
12250 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
12251 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
12252 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
12254 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
12256 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
12257 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
12259 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
12262 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
12264 2016-05-26 Jakub Jelinek <jakub@redhat.com>
12266 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
12267 instead of invalid schedule(static, 0).
12268 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12270 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
12272 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
12273 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
12274 parameter, use to set async stream around call to gomp_unmap_vars,
12275 call gomp_unmap_vars() with 'do_copyfrom' set to true.
12276 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
12277 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
12278 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
12279 (event_add): Add int parameter, initialize 'val' field when
12280 adding new ptx_event struct.
12281 (nvptx_evec): Adjust event_add() call arguments.
12282 (nvptx_host2dev): Likewise.
12283 (nvptx_dev2host): Likewise.
12284 (nvptx_wait_async): Likewise.
12285 (nvptx_wait_all_async): Likewise.
12286 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
12287 pass to event_add() call.
12288 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
12290 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
12291 call openacc.register_async_cleanup_func() hook.
12292 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
12293 * target.c (gomp_copy_from_async): Delete function.
12294 (gomp_map_vars): Remove async_refcount.
12295 (gomp_unmap_vars): Likewise.
12296 (gomp_load_image_to_device): Likewise.
12297 (omp_target_associate_ptr): Likewise.
12298 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
12299 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
12300 (gomp_copy_from_async): Remove.
12302 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
12304 * target.c (gomp_device_copy): New function.
12305 (gomp_copy_host2dev): Likewise.
12306 (gomp_copy_dev2host): Likewise.
12307 (gomp_free_device_memory): Likewise.
12308 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
12309 (gomp_map_pointer): Likewise.
12310 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
12311 NULL value from alloc_func plugin hook.
12312 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
12313 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
12314 (gomp_unmap_vars): Likewise.
12315 (gomp_update): Adjust to call gomp_copy_dev2host and
12316 gomp_copy_host2dev functions.
12317 (gomp_unload_image_from_device): Handle false value from
12318 unload_image_func plugin hook.
12319 (gomp_init_device): Handle false value from init_device_func
12321 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
12322 (omp_target_free): Adjust to call gomp_free_device_memory.
12323 (omp_target_memcpy): Handle return values from host2dev_func,
12324 dev2host_func, and dev2dev_func plugin hooks.
12325 (omp_target_memcpy_rect_worker): Likewise.
12326 (gomp_target_fini): Handle false value from fini_device_func
12328 * libgomp.h (struct gomp_device_descr): Adjust return type of
12329 init_device_func, fini_device_func, unload_image_func, free_func,
12330 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
12331 * oacc-init.c (acc_shutdown_1): Handle false value from
12332 fini_device_func plugin hook.
12333 * oacc-host.c (host_init_device): Change return type to bool.
12334 (host_fini_device): Likewise.
12335 (host_unload_image): Likewise.
12336 (host_free): Likewise.
12337 (host_dev2host): Likewise.
12338 (host_host2dev): Likewise.
12339 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
12340 (acc_memcpy_to_device): Likewise.
12341 (acc_memcpy_from_device): Likewise.
12342 (delete_copyout): Add libfnname parameter, handle free_func
12343 hook fatal error case.
12344 (acc_delete): Adjust delete_copyout call.
12345 (acc_copyout): Likewise.
12346 (update_dev_host): Move gomp_mutex_unlock to after
12347 host2dev/dev2host hook calls.
12349 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
12350 to 'hsa_error_msg', for clarity.
12351 (hsa_fatal): Likewise.
12352 (hsa_error): New function.
12353 (init_hsa_context): Change return type to bool, adjust to return
12355 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
12357 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
12358 return false on error.
12359 (get_agent_info): Adjust to return NULL on error.
12360 (destroy_hsa_program): Change return type to bool, adjust to
12361 return false on error.
12362 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
12363 (destroy_module): Change return type to bool, adjust to
12364 return false on error.
12365 (GOMP_OFFLOAD_unload_image): Likewise.
12366 (GOMP_OFFLOAD_fini_device): Likewise.
12367 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
12368 (GOMP_OFFLOAD_free): Change to return false when called.
12369 (GOMP_OFFLOAD_dev2host): Likewise.
12370 (GOMP_OFFLOAD_host2dev): Likewise.
12371 (GOMP_OFFLOAD_dev2dev): Likewise.
12373 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
12374 (CUDA_CALL): Likewise.
12375 (CUDA_CALL_ASSERT): Likewise.
12376 (map_init): Change return type to bool, use CUDA_CALL* macros.
12377 (map_fini): Likewise.
12378 (init_streams_for_device): Change return type to bool, adjust
12380 (fini_streams_for_device): Change return type to bool, adjust
12382 (select_stream_for_async): Release stream_lock before calls to
12383 GOMP_PLUGIN_fatal, adjust call to map_init.
12384 (nvptx_init): Use CUDA_CALL* macros.
12385 (nvptx_attach_host_thread_to_device): Change return type to bool,
12386 use CUDA_CALL* macros.
12387 (nvptx_open_device): Use CUDA_CALL* macros.
12388 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
12390 (nvptx_get_num_devices): Use CUDA_CALL* macros.
12391 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
12392 (nvptx_exec): Use CUDA_CALL* macros.
12393 (nvptx_alloc): Use CUDA_CALL* macros.
12394 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
12395 (nvptx_host2dev): Likewise.
12396 (nvptx_dev2host): Likewise.
12397 (nvptx_wait): Use CUDA_CALL* macros.
12398 (nvptx_wait_async): Likewise.
12399 (nvptx_wait_all): Likewise.
12400 (nvptx_wait_all_async): Likewise.
12401 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
12402 use CUDA_CALL* macros, adjust call to map_fini.
12403 (GOMP_OFFLOAD_init_device): Change return type to bool,
12404 adjust code accordingly.
12405 (GOMP_OFFLOAD_fini_device): Likewise.
12406 (GOMP_OFFLOAD_load_image): Adjust calls to
12407 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
12408 use CUDA_CALL* macros.
12409 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
12411 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
12412 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
12413 handle error return.
12414 (GOMP_OFFLOAD_dev2host): Likewise.
12415 (GOMP_OFFLOAD_host2dev): Likewise.
12416 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
12417 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
12419 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
12421 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
12422 (acc_free): Likewise.
12423 (acc_memcpy_to_device): Likewise.
12424 (acc_memcpy_from_device): Likewise.
12425 (acc_deviceptr): Likewise.
12426 (acc_hostptr): Likewise.
12427 (acc_is_present): Likewise.
12428 (acc_map_data): Likewise.
12429 (acc_unmap_data): Likewise.
12430 (present_create_copy): Likewise.
12431 (delete_copyout): Likewise.
12432 (update_dev_host): Likewise.
12433 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
12434 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
12435 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
12436 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
12437 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
12438 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
12439 it only runs on nvptx targets.
12440 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
12441 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
12442 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
12443 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
12444 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
12445 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
12446 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
12447 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
12448 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
12449 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
12450 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
12451 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
12452 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
12453 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
12454 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
12455 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12456 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
12457 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
12458 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
12459 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
12460 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
12461 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
12462 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
12464 2016-05-23 Martin Jambor <mjambor@suse.cz>
12466 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
12468 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
12470 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
12471 to gomp_init_targets_once.
12472 (acc_set_device_type): Remove !cached_base_dev condition on call to
12473 gomp_init_targets_once, move call to before acc_device_lock acquire,
12475 (acc_get_device_num): Remove !cached_base_dev condition on call to
12476 gomp_init_targets_once.
12477 (acc_set_device_num): Likewise.
12479 2016-05-16 Martin Jambor <mjambor@suse.cz>
12481 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
12483 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
12485 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
12486 expected partitioning.
12488 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
12490 PR middle-end/70626
12491 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
12492 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
12493 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
12495 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
12497 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
12500 2016-04-19 Jakub Jelinek <jakub@redhat.com>
12502 PR middle-end/70680
12503 * testsuite/libgomp.c/pr70680-1.c: New test.
12504 * testsuite/libgomp.c/pr70680-2.c: New test.
12506 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
12508 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
12509 pass parameter variables to subroutines.
12511 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
12513 PR middle-end/70643
12514 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
12516 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
12519 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
12520 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12522 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
12524 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
12525 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
12526 GOACC_declare prototype.
12528 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
12529 Merge this file, and...
12530 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
12531 ... this file, and...
12532 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
12533 ... this file, and...
12534 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
12535 ... this file, and...
12536 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
12537 ... this file, and...
12538 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
12539 ... this file, and...
12540 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
12541 ... this file, and...
12542 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
12543 ... this file, and...
12544 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
12545 ... this file, and...
12546 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
12547 ... this file, and...
12548 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
12549 ... this file, and...
12550 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
12551 ... this file, and...
12552 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
12553 ... this file into...
12554 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
12557 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
12558 Make failure observable.
12560 2016-04-12 Jakub Jelinek <jakub@redhat.com>
12562 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
12564 * target.c (gomp_target_fallback_firstprivate,
12565 gomp_target_unshare_firstprivate): Removed.
12566 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
12567 before waiting for dependencies.
12568 (gomp_target_task_fn): Don't copy firstprivate vars here.
12569 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
12570 firstprivate_copies here.
12571 (gomp_create_target_task): Don't initialize firstprivate_copies field.
12572 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
12573 explicit/implicit firstprivate.
12575 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
12579 PR tree-optimization/70373
12580 PR middle-end/70533
12581 PR middle-end/70534
12582 PR middle-end/70535
12583 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
12585 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
12587 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
12589 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
12591 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
12593 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
12595 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
12597 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
12599 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
12601 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
12602 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
12603 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
12604 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
12606 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
12608 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
12610 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
12612 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
12614 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
12615 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
12616 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
12617 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
12618 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
12619 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
12621 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12622 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
12623 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
12624 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
12625 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
12626 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
12627 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
12628 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
12629 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
12630 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
12631 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
12632 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
12633 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
12634 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12635 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
12637 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
12638 James Norris <jnorris@codesourcery.com>
12639 Nathan Sidwell <nathan@codesourcery.com>
12640 Julian Brown <julian@codesourcery.com>
12641 Cesar Philippidis <cesar@codesourcery.com>
12642 Chung-Lin Tang <cltang@codesourcery.com>
12643 Tom de Vries <tom@codesourcery.com>
12645 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
12646 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
12647 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
12648 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
12649 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
12650 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
12651 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
12652 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
12653 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
12655 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
12657 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
12659 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
12660 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
12661 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
12662 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
12664 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
12666 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
12667 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
12668 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
12669 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
12670 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
12671 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12672 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
12673 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
12674 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
12675 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
12677 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
12678 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
12679 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
12681 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
12683 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
12685 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
12687 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
12689 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
12690 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
12691 ... this new file. Update.
12692 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
12693 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
12694 ... this new file. Update.
12695 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
12696 file. Incorporate...
12697 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
12699 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
12701 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
12703 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
12705 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
12707 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
12708 set-torture-options.
12710 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
12712 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
12714 * testsuite/libgomp.oacc-c/c.exp: Likewise.
12715 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
12716 -fno-builtin-acc_on_device instead of -O0.
12717 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
12719 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
12720 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
12722 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
12723 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
12724 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
12725 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12726 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12727 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12728 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
12729 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12730 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
12731 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
12732 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
12733 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
12734 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
12735 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
12736 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
12737 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
12738 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
12739 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
12741 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
12743 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
12746 2016-03-24 Martin Liska <mliska@suse.cz>
12748 * plugin/plugin-hsa.c (packet_store_release): New function
12749 that is taken from the HSA runtime manual.
12750 (GOMP_OFFLOAD_run): Use the function.
12752 2016-03-23 Jakub Jelinek <jakub@redhat.com>
12755 * testsuite/libgomp.c++/pr70376.C: New test.
12757 2016-03-23 Tom de Vries <tom@codesourcery.com>
12759 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
12760 initialization of lresult and lvresult.
12761 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
12763 2016-03-23 James Norris <jnorris@codesourcery.com>
12764 Daichi Fukuoka <dc-fukuoka@sgi.com>
12767 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
12768 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
12769 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
12770 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
12772 2016-03-23 Martin Liska <mliska@suse.cz>
12775 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
12776 argument just in case a dispatched kernel uses that argument.
12778 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
12780 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
12781 -ftree-parallelize-loops/-fopenacc changes.
12782 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
12784 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
12786 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
12788 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
12790 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
12791 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
12793 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
12795 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
12796 always_ld_library_path the path to libgcc_s.
12798 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
12801 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
12803 2016-03-09 Tom de Vries <tom@codesourcery.com>
12805 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
12806 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
12807 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
12809 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
12810 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
12811 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
12812 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
12814 2016-03-07 Martin Jambor <mjambor@suse.cz>
12816 * testsuite/lib/libgomp.exp
12817 (check_effective_target_hsa_offloading_selected_nocache): New.
12818 (check_effective_target_hsa_offloading_selected): Likewise.
12819 * testsuite/libgomp.hsa.c/c.exp: Likewise.
12820 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
12821 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
12822 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
12823 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
12824 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
12825 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
12826 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
12827 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
12828 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
12829 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
12830 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
12831 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
12832 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
12833 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
12834 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
12835 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
12837 2016-03-07 Martin Jambor <mjambor@suse.cz>
12839 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
12840 non-shared memory accelerators.
12841 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
12842 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
12843 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
12844 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
12845 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
12846 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
12847 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
12848 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
12849 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
12851 2016-03-07 Martin Jambor <mjambor@suse.cz>
12853 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
12856 2016-03-02 Jakub Jelinek <jakub@redhat.com>
12859 * testsuite/libgomp.c++/pr69555-1.C: New test.
12860 * testsuite/libgomp.c++/pr69555-2.C: New test.
12862 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
12863 Martin Jambor <mjambor@suse.cz>
12865 * testsuite/lib/libgomp.exp
12866 (check_effective_target_offload_device_shared_as): New proc.
12867 * testsuite/libgomp.c++/declare_target-1.C: New test.
12869 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
12872 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
12874 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
12876 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
12877 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
12879 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
12880 -ftree-parallelize-loops/-fopenacc changes.
12881 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
12882 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
12884 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
12886 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
12888 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
12890 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
12892 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
12894 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
12896 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
12897 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
12899 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
12900 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
12902 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
12903 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
12906 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
12908 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
12910 2016-02-19 Jakub Jelinek <jakub@redhat.com>
12913 * testsuite/libgomp.c/pr69805.c: New test.
12915 2016-02-16 Tom de Vries <tom@codesourcery.com>
12918 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
12920 2016-02-09 Tom de Vries <tom@codesourcery.com>
12922 PR tree-optimization/69599
12923 * testsuite/libgomp.c/omp-nested-3.c: New test.
12924 * testsuite/libgomp.c/pr46032-2.c: New test.
12925 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
12926 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
12928 2016-02-09 Tom de Vries <tom@codesourcery.com>
12931 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
12933 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
12935 * testsuite/libgomp.c/target-31.c: Fix testcase.
12937 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
12939 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
12941 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
12942 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
12943 reduction and map clauses.
12944 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
12946 2016-02-02 James Norris <jnorris@codesourcery.com>
12948 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
12950 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
12952 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
12953 * oacc-parallel.c (GOACC_host_data): Remove function definition.
12955 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
12958 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
12960 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
12961 (hsa_kmt_lib): Set variables.
12962 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
12963 always_ld_library_path.
12964 * Makefile.in: Regenerate.
12965 * configure: Likewise.
12966 * testsuite/Makefile.in: Likewise.
12968 * plugin/configfrag.ac (offload_additional_options)
12969 (offload_additional_lib_paths): Don't amend for hsa offloading.
12970 * configure: Regenerate.
12972 * plugin/configfrag.ac: Don't configure for offloading target if
12973 we don't build the corresponding plugin.
12974 * configure: Regenerate.
12976 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
12978 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
12979 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
12981 2016-01-26 Tom de Vries <tom@codesourcery.com>
12983 PR tree-optimization/69110
12984 * testsuite/libgomp.c/pr69110.c: New test.
12986 2016-01-25 Richard Biener <rguenther@suse.de>
12989 * testsuite/libgomp.c++/pr69393.C: New testcase.
12991 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
12993 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
12994 function wasn't mapped to the device with non-shared memory.
12996 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
12998 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
13000 2016-01-19 Martin Jambor <mjambor@suse.cz>
13001 Martin Liska <mliska@suse.cz>
13003 * plugin/Makefrag.am: Add HSA plugin requirements.
13004 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
13005 (HSA_RUNTIME_LIB): Likewise.
13006 (HSA_RUNTIME_CPPFLAGS): Likewise.
13007 (HSA_RUNTIME_INCLUDE): New substitution.
13008 (HSA_RUNTIME_LIB): Likewise.
13009 (HSA_RUNTIME_LDFLAGS): Likewise.
13010 (hsa-runtime): New configure option.
13011 (hsa-runtime-include): Likewise.
13012 (hsa-runtime-lib): Likewise.
13013 (PLUGIN_HSA): New substitution variable.
13014 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
13016 (PLUGIN_HSA_CPPFLAGS): Likewise.
13017 (PLUGIN_HSA_LDFLAGS): Likewise.
13018 (PLUGIN_HSA_LIBS): Likewise.
13019 Check that we have access to HSA run-time.
13020 * libgomp-plugin.h (offload_target_type): New element
13021 OFFLOAD_TARGET_TYPE_HSA.
13022 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
13024 (bool gomp_create_target_task): Updated.
13025 (gomp_device_descr): Extra parameter of run_func and async_run_func,
13026 new field can_run_func.
13027 * libgomp_g.h (GOMP_target_ext): Update prototype.
13028 * oacc-host.c (host_run): Added a new parameter args.
13029 * target.c (calculate_firstprivate_requirements): New function.
13030 (copy_firstprivate_data): Likewise.
13031 (gomp_target_fallback_firstprivate): Use them.
13032 (gomp_target_unshare_firstprivate): New function.
13033 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
13035 (GOMP_target): Do host fallback for all shared memory devices. Do not
13036 pass any args to plugins.
13037 (GOMP_target_ext): Introduce device-specific argument parameter args.
13038 Allow host fallback if device shares memory. Do not remap data if
13039 device has shared memory.
13040 (gomp_target_task_fn): Likewise. Also treat shared memory devices
13041 like host fallback for mappings.
13042 (GOMP_target_data): Treat shared memory devices like host fallback.
13043 (GOMP_target_data_ext): Likewise.
13044 (GOMP_target_update): Likewise.
13045 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
13046 gomp_create_target_task.
13047 (GOMP_target_enter_exit_data): Likewise.
13048 (omp_target_alloc): Treat shared memory devices like host fallback.
13049 (omp_target_free): Likewise.
13050 (omp_target_is_present): Likewise.
13051 (omp_target_memcpy): Likewise.
13052 (omp_target_memcpy_rect): Likewise.
13053 (omp_target_associate_ptr): Likewise.
13054 (gomp_load_plugin_for_device): Also load can_run.
13055 * task.c (GOMP_PLUGIN_target_task_completion): Free
13056 firstprivate_copies.
13057 (gomp_create_target_task): Accept new argument args and store it to
13059 * plugin/plugin-hsa.c: New file.
13061 2016-01-18 Tom de Vries <tom@codesourcery.com>
13063 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
13064 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
13065 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
13066 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
13067 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
13068 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
13069 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
13070 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
13071 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
13072 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
13073 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
13075 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
13077 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
13078 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
13079 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
13080 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
13081 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
13082 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
13083 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
13084 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
13086 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
13088 2016-01-15 Jakub Jelinek <jakub@redhat.com>
13090 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
13092 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
13094 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
13096 2016-01-12 James Norris <jnorris@codesourcery.com>
13098 * libgomp.texi: Updates for OpenACC.
13100 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
13102 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
13104 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
13107 * testsuite/libgomp.fortran/pr66680.f90: New test.
13109 2016-01-07 Jakub Jelinek <jakub@redhat.com>
13111 PR middle-end/68960
13112 * testsuite/libgomp.c/pr68960.c: New test.
13114 2016-01-06 Nathan Sidwell <nathan@acm.org>
13116 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
13117 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
13119 2016-01-04 Jakub Jelinek <jakub@redhat.com>
13121 Update copyright years.
13123 * libgomp.texi: Bump @copying's copyright year.
13125 2015-12-31 Nathan Sidwell <nathan@acm.org>
13127 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
13128 dg-additional-options syntax.
13129 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13130 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13131 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13132 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13133 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13134 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13135 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13136 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13137 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13138 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13139 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13140 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13141 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13142 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
13143 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13144 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13145 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13146 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13148 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
13150 * libgomp.h (REFCOUNT_LINK): Define.
13151 (struct splay_tree_key_s): Add link_key.
13152 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
13153 Replace target address of the pointer with target address of newly
13154 mapped object in the splay tree. Set link pointer on target to the
13155 device address of the mapped object.
13156 (gomp_unmap_vars): Restore target address of the pointer in the splay
13157 tree for REFCOUNT_LINK objects after unmapping.
13158 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
13159 declare target link" objects.
13160 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
13161 "omp declare target link" objects, which were mapped for the image.
13162 (gomp_exit_data): Restore target address of the pointer in the splay
13163 tree for REFCOUNT_LINK objects after unmapping.
13164 * testsuite/libgomp.c/target-link-1.c: New file.
13166 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
13168 * libgomp.h (gomp_device_state): New enum.
13169 (struct gomp_device_descr): Replace is_initialized with state.
13170 (gomp_fini_device): Remove declaration.
13171 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
13172 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
13173 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
13174 (acc_set_device_type): Use state instead of is_initialized.
13175 (acc_set_device_num): Likewise.
13176 * target.c (resolve_device): Use state instead of is_initialized.
13177 Do not initialize finalized device.
13178 (gomp_map_vars): Do nothing if device is finalized.
13179 (gomp_unmap_vars): Likewise.
13180 (gomp_update): Likewise.
13181 (GOMP_offload_register_ver): Use state instead of is_initialized.
13182 (GOMP_offload_unregister_ver): Likewise.
13183 (gomp_init_device): Likewise.
13184 (gomp_unload_device): Likewise.
13185 (gomp_fini_device): Remove.
13186 (gomp_get_target_fn_addr): Do nothing if device is finalized.
13187 (GOMP_target): Go to host fallback if device is finalized.
13188 (GOMP_target_ext): Likewise.
13189 (gomp_exit_data): Do nothing if device is finalized.
13190 (gomp_target_task_fn): Go to host fallback if device is finalized.
13191 (gomp_target_fini): New static function.
13192 (gomp_target_init): Use state instead of is_initialized.
13193 Call gomp_target_fini at exit.
13195 2015-12-09 Tom de Vries <tom@codesourcery.com>
13197 PR tree-optimization/68716
13198 * testsuite/libgomp.c/omp-nested-2.c: New test.
13200 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
13202 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
13203 target openacc_nvidia_accel_selected.
13204 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
13205 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
13206 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
13207 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
13209 2015-12-01 Julian Brown <julian@codesourcery.com>
13210 James Norris <James_Norris@mentor.com>
13212 * oacc-parallel.c (GOACC_host_data): New function.
13213 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
13214 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
13215 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
13216 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
13217 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
13218 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
13219 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
13221 2015-11-30 James Norris <jnorris@codesourcery.com>
13222 Cesar Philippidis <cesar@codesourcery.com>
13225 * libgomp.oacc-fortran/routine-5.f90: New test.
13226 * libgomp.oacc-fortran/routine-7.f90: New test.
13227 * libgomp.oacc-fortran/routine-9.f90: New test.
13229 2015-11-30 Tom de Vries <tom@codesourcery.com>
13231 PR tree-optimization/46032
13232 * testsuite/libgomp.c/pr46032.c: New test.
13234 2015-11-27 Jakub Jelinek <jakub@redhat.com>
13237 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
13238 (gomp_create_target_task): Call it before freeing
13239 GOMP_TARGET_TASK_DATA tasks.
13242 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
13243 in between case label and OpenMP standalone directives.
13244 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
13246 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
13248 * configure: Regenerate.
13250 2015-11-26 Jakub Jelinek <jakub@redhat.com>
13252 * testsuite/libgomp.c/target-35.c: New test.
13254 2015-11-22 James Norris <jnorris@codesourcery.com>
13255 Cesar Philippidis <cesar@codesourcery.com>
13257 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
13258 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
13259 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
13260 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
13261 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
13263 2015-11-20 Jakub Jelinek <jakub@redhat.com>
13265 PR middle-end/68221
13266 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
13267 * testsuite/libgomp.c/reduction-12.c: Likewise.
13268 * testsuite/libgomp.c++/reduction-11.C: Likewise.
13269 * testsuite/libgomp.c++/reduction-12.C: Likewise.
13271 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
13273 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
13274 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
13275 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
13276 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
13277 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
13279 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13280 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13282 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
13284 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
13285 worker & gang cases.
13286 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
13288 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
13290 * config/nvptx/priority_queue.c: New file.
13292 2015-11-14 Jakub Jelinek <jakub@redhat.com>
13294 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
13297 2015-11-14 Jakub Jelinek <jakub@redhat.com>
13298 Aldy Hernandez <aldyh@redhat.com>
13299 Ilya Verbin <ilya.verbin@intel.com>
13301 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
13302 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
13303 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
13304 iterators or IV by chunk size.
13305 * parallel.c (gomp_resolve_num_threads): Don't assume that
13306 if thr->ts.team is non-NULL, then pool must be non-NULL.
13307 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
13308 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
13309 GOMP_PLUGIN_target_task_completion.
13310 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
13311 * Makefile.in: Regenerate.
13312 * libgomp.h: Shuffle prototypes and forward definitions around so
13313 priority queues can be defined.
13314 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
13315 (enum gomp_target_task_state): New enum.
13316 (struct gomp_target_task): Add state, tgt, task and team fields.
13317 (gomp_create_target_task): Change return type to bool, add
13319 (gomp_target_task_fn): Change return type to bool.
13320 (struct gomp_device_descr): Add async_run_func.
13321 (struct gomp_task): Remove children, next_child, prev_child,
13322 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
13324 (struct gomp_taskgroup): Remove children.
13325 Add taskgroup_queue.
13326 (struct gomp_team): Change task_queue type to a priority queue.
13327 (splay_compare): Define inline.
13328 (priority_queue_offset): New.
13329 (priority_node_to_task): New.
13330 (task_to_priority_node): New.
13331 * oacc-mem.c: Do not include splay-tree.h.
13332 * priority_queue.c: New file.
13333 * priority_queue.h: New file.
13334 * splay-tree.c: Do not include splay-tree.h.
13335 (splay_tree_foreach_internal): New.
13336 (splay_tree_foreach): New.
13337 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
13338 (splay_tree_callback): Define typedef.
13339 * target.c (splay_compare): Move to libgomp.h.
13340 (GOMP_target): Don't adjust *thr in any way around running offloaded
13342 (GOMP_target_ext): Likewise. Handle target nowait.
13343 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
13344 return value from gomp_create_target_task, if false, fallthrough
13345 as if no dependencies exist.
13346 (gomp_target_task_fn): Change return type to bool, return true
13347 if the task should have another part scheduled later. Handle
13349 (gomp_load_plugin_for_device): Initialize async_run.
13350 * task.c (gomp_init_task): Initialize children_queue.
13351 (gomp_clear_parent_in_list): New.
13352 (gomp_clear_parent_in_tree): New.
13353 (gomp_clear_parent): Handle priorities.
13354 (GOMP_task): Likewise.
13355 (priority_queue_move_task_first,
13356 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
13358 (gomp_create_target_task): Use priority queues. Change return type
13359 to bool, add state argument, return false if for async
13360 {{enter,exit} data,update} constructs no dependencies need to be
13361 waited for, handle target nowait. Set task->fn to NULL instead of
13362 gomp_target_task_fn.
13363 (verify_children_queue): Remove.
13364 (priority_list_upgrade_task): New.
13365 (priority_queue_upgrade_task): New.
13366 (verify_task_queue): Remove.
13367 (priority_list_downgrade_task): New.
13368 (priority_queue_downgrade_task): New.
13369 (gomp_task_run_pre): Use priority queues.
13370 Abstract code out to priority_queue_downgrade_task.
13371 (gomp_task_run_post_handle_dependers): Use priority queues.
13372 (gomp_task_run_post_remove_parent): Likewise.
13373 (gomp_task_run_post_remove_taskgroup): Likewise.
13374 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
13376 (GOMP_taskwait): Likewise.
13377 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
13378 priority-queue_upgrade_task.
13379 (GOMP_taskgroup_start): Use priority queues.
13380 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
13381 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
13383 * taskloop.c (GOMP_taskloop): Handle priorities.
13384 * team.c (gomp_new_team): Call priority_queue_init.
13385 (free_team): Call priority_queue_free.
13386 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
13387 team created for target nowait in implicit parallel region.
13388 (gomp_team_start): For nested check, test thr->ts.level instead of
13389 thr->ts.team != NULL.
13390 * testsuite/libgomp.c/doacross-3.c: New test.
13391 * testsuite/libgomp.c/ordered-5.c: New test.
13392 * testsuite/libgomp.c/priority.c: New test.
13393 * testsuite/libgomp.c/target-31.c: New test.
13394 * testsuite/libgomp.c/target-32.c: New test.
13395 * testsuite/libgomp.c/target-33.c: New test.
13396 * testsuite/libgomp.c/target-34.c: New test.
13398 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
13400 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
13402 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
13403 loop is sequential.
13405 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
13407 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
13408 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
13410 2015-11-12 James Norris <jnorris@codesourcery.com>
13411 Joseph Myers <joseph@codesourcery.com>
13413 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
13414 * oacc-parallel.c (GOACC_declare): New function.
13415 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
13416 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
13417 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
13418 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
13419 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
13421 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
13423 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
13425 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
13427 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
13428 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
13430 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
13432 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
13433 inadvertent commit.
13435 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
13437 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
13438 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
13439 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
13440 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
13441 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
13443 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
13445 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
13446 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
13448 2015-11-05 Jakub Jelinek <jakub@redhat.com>
13449 Ilya Verbin <ilya.verbin@intel.com>
13451 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
13452 GOMP_loop_nonmonotonic_dynamic_start,
13453 GOMP_loop_nonmonotonic_guided_next,
13454 GOMP_loop_nonmonotonic_guided_start,
13455 GOMP_loop_ull_nonmonotonic_dynamic_next,
13456 GOMP_loop_ull_nonmonotonic_dynamic_start,
13457 GOMP_loop_ull_nonmonotonic_guided_next,
13458 GOMP_loop_ull_nonmonotonic_guided_start,
13459 GOMP_parallel_loop_nonmonotonic_dynamic,
13460 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
13461 (GOMP_target_41): Renamed to ...
13462 (GOMP_target_ext): ... this. Add num_teams and thread_limit
13464 (GOMP_target_data_41): Renamed to ...
13465 (GOMP_target_data_ext): ... this.
13466 (GOMP_target_update_41): Renamed to ...
13467 (GOMP_target_update_ext): ... this.
13468 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
13469 GOMP_target_data_ext and GOMP_target_update_ext instead of
13470 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
13471 Export GOMP_loop_nonmonotonic_dynamic_next,
13472 GOMP_loop_nonmonotonic_dynamic_start,
13473 GOMP_loop_nonmonotonic_guided_next,
13474 GOMP_loop_nonmonotonic_guided_start,
13475 GOMP_loop_ull_nonmonotonic_dynamic_next,
13476 GOMP_loop_ull_nonmonotonic_dynamic_start,
13477 GOMP_loop_ull_nonmonotonic_guided_next,
13478 GOMP_loop_ull_nonmonotonic_guided_start,
13479 GOMP_parallel_loop_nonmonotonic_dynamic and
13480 GOMP_parallel_loop_nonmonotonic_guided.
13481 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
13482 GOMP_parallel_loop_nonmonotonic_guided,
13483 GOMP_loop_nonmonotonic_dynamic_start,
13484 GOMP_loop_nonmonotonic_guided_start,
13485 GOMP_loop_nonmonotonic_dynamic_next,
13486 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
13487 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
13488 GOMP_loop_ull_nonmonotonic_guided_start,
13489 GOMP_loop_ull_nonmonotonic_dynamic_next,
13490 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
13491 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
13493 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
13494 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
13495 Use gomp_map_val function.
13496 (gomp_target_fallback_firstprivate): New static function.
13497 (GOMP_target_41): Renamed to ...
13498 (GOMP_target_ext): ... this. Add num_teams and thread_limit
13499 arguments. Move firstprivate fallback handling into a new
13501 (GOMP_target_data_41): Renamed to ...
13502 (GOMP_target_data_ext): ... this.
13503 (GOMP_target_update_41): Renamed to ...
13504 (GOMP_target_update_ext): ... this.
13505 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
13506 gomp_map_0len_lookup instead of gomp_map_lookup.
13507 (omp_target_is_present): Use gomp_map_0len_lookup instead of
13509 * testsuite/libgomp.c/target-28.c: Likewise.
13510 * testsuite/libgomp.c/monotonic-1.c: New test.
13511 * testsuite/libgomp.c/monotonic-2.c: New test.
13512 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
13513 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
13514 * testsuite/libgomp.c/pr66199-5.c: New test.
13515 * testsuite/libgomp.c/pr66199-6.c: New test.
13516 * testsuite/libgomp.c/pr66199-7.c: New test.
13517 * testsuite/libgomp.c/pr66199-8.c: New test.
13518 * testsuite/libgomp.c/pr66199-9.c: New test.
13519 * testsuite/libgomp.c/reduction-11.c: New test.
13520 * testsuite/libgomp.c/reduction-12.c: New test.
13521 * testsuite/libgomp.c/reduction-13.c: New test.
13522 * testsuite/libgomp.c/reduction-14.c: New test.
13523 * testsuite/libgomp.c/reduction-15.c: New test.
13524 * testsuite/libgomp.c/target-12.c (main): Adjust for
13525 omp_target_is_present change for one-past-last element.
13526 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
13527 the same var is both mapped and privatized.
13528 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
13529 handling of zero-length array sections.
13530 * testsuite/libgomp.c/target-28.c: New test.
13531 * testsuite/libgomp.c/target-29.c: New test.
13532 * testsuite/libgomp.c/target-30.c: New test.
13533 * testsuite/libgomp.c/target-teams-1.c: New test.
13534 * testsuite/libgomp.c++/member-6.C: New test.
13535 * testsuite/libgomp.c++/member-7.C: New test.
13536 * testsuite/libgomp.c++/monotonic-1.C: New test.
13537 * testsuite/libgomp.c++/monotonic-2.C: New test.
13538 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
13539 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
13540 * testsuite/libgomp.c++/pr66199-3.C: New test.
13541 * testsuite/libgomp.c++/pr66199-4.C: New test.
13542 * testsuite/libgomp.c++/pr66199-5.C: New test.
13543 * testsuite/libgomp.c++/pr66199-6.C: New test.
13544 * testsuite/libgomp.c++/pr66199-7.C: New test.
13545 * testsuite/libgomp.c++/pr66199-8.C: New test.
13546 * testsuite/libgomp.c++/pr66199-9.C: New test.
13547 * testsuite/libgomp.c++/reduction-11.C: New test.
13548 * testsuite/libgomp.c++/reduction-12.C: New test.
13549 * testsuite/libgomp.c++/target-13.C: New test.
13550 * testsuite/libgomp.c++/target-14.C: New test.
13551 * testsuite/libgomp.c++/target-15.C: New test.
13552 * testsuite/libgomp.c++/target-16.C: New test.
13553 * testsuite/libgomp.c++/target-17.C: New test.
13554 * testsuite/libgomp.c++/target-18.C: New test.
13555 * testsuite/libgomp.c++/target-19.C: New test.
13557 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
13559 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
13560 and reduction copy.
13561 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
13562 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
13563 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
13564 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13565 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
13566 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13567 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
13568 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13569 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13570 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
13571 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
13572 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
13573 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13574 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
13576 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
13578 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
13579 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
13580 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
13581 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
13582 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
13583 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
13584 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
13585 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
13587 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
13589 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
13590 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
13591 (GOMP_OFFLOAD_openacc_parallel): Likewise.
13592 * oacc-host.c (host_openacc_exec): Likewise.
13593 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
13595 2015-11-03 Julian Brown <julian@codesourcery.com>
13596 Thomas Schwinge <thomas@codesourcery.com>
13598 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
13599 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13600 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
13602 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
13603 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
13605 2015-11-03 James Norris <jnorris@codesourcery.com>
13607 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
13609 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
13611 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
13612 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
13613 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
13614 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
13615 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
13617 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
13619 * openacc.h (enum acc_device_t): Reformat. Ensure layout
13621 (enum acc_async_t): Reformat.
13622 (acc_on_device): Declare compatible with builtin and provide C++
13624 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
13626 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
13627 Cesar Philippidis <cesar@codesourcery.com>
13629 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
13630 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
13631 ... this. Add a description of the test at the top of the file.
13632 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
13633 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
13634 ... this. Add a description of the test at the top of the file.
13636 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
13638 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
13639 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
13640 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
13641 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
13642 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
13643 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
13645 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
13647 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
13650 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
13653 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
13655 2015-10-27 James Norris <jnorris@codesourcery.com>
13657 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
13658 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
13660 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
13662 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
13663 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
13665 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
13666 acc_device_nvidia usage.
13667 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
13668 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
13669 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
13671 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
13672 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
13675 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
13679 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
13680 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
13682 2015-10-23 Tom de Vries <tom@codesourcery.com>
13685 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
13687 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
13689 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
13691 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13693 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
13694 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
13696 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
13697 to 0 when mapnum is 0.
13699 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
13701 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
13702 Cast to int from int32_t.
13704 2015-10-13 Jakub Jelinek <jakub@redhat.com>
13705 Aldy Hernandez <aldyh@redhat.com>
13706 Ilya Verbin <ilya.verbin@intel.com>
13708 * config/linux/affinity.c (omp_get_place_num_procs,
13709 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
13710 * config/linux/doacross.h: New file.
13711 * config/posix/affinity.c (omp_get_place_num_procs,
13712 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
13713 * config/posix/doacross.h: New file.
13714 * env.c: Include gomp-constants.h.
13715 (struct gomp_task_icv): Rename run_sched_modifier to
13716 run_sched_chunk_size.
13717 (gomp_max_task_priority_var): New variable.
13718 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
13719 (handle_omp_display_env): Change _OPENMP value from 201307 to
13720 201511. Print OMP_MAX_TASK_PRIORITY.
13721 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
13722 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
13723 chunk_size and run_sched_modifier to run_sched_chunk_size.
13724 (omp_get_max_task_priority, omp_get_initial_device,
13725 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
13726 omp_get_partition_place_nums): New functions.
13727 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
13728 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
13730 (omp_get_num_places_, omp_get_place_num_procs_,
13731 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
13732 omp_get_place_proc_ids_8_, omp_get_place_num_,
13733 omp_get_partition_num_places_, omp_get_partition_place_nums_,
13734 omp_get_partition_place_nums_8_, omp_get_initial_device_,
13735 omp_get_max_task_priority_): New functions.
13736 * libgomp_g.h (GOMP_loop_doacross_static_start,
13737 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
13738 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
13739 GOMP_loop_ull_doacross_dynamic_start,
13740 GOMP_loop_ull_doacross_guided_start,
13741 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
13742 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
13743 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
13744 GOMP_target_data_41, GOMP_target_update_41,
13745 GOMP_target_enter_exit_data): New prototypes.
13746 (GOMP_task): Add prototype argument.
13747 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
13748 (struct gomp_doacross_work_share): New type.
13749 (struct gomp_work_share): Add doacross field.
13750 (struct gomp_task_icv): Rename run_sched_modifier to
13751 run_sched_chunk_size.
13752 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
13753 GOMP_TASK_UNDEFERRED. Add comments.
13754 (struct gomp_task_depend_entry): Add comments.
13755 (struct gomp_task): Likewise.
13756 (struct gomp_taskgroup): Likewise.
13757 (struct gomp_target_task): New type.
13758 (struct gomp_team): Add comment.
13759 (gomp_get_place_proc_ids_8, gomp_doacross_init,
13760 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
13761 gomp_create_target_task, gomp_target_task_fn): New prototypes.
13762 (struct target_var_desc): New type.
13763 (struct target_mem_desc): Adjust comment. Use struct
13764 target_var_desc instead of splay_tree_key for list.
13765 (REFCOUNT_INFINITY): Define.
13766 (struct splay_tree_key_s): Remove copy_from field.
13767 (struct gomp_device_descr): Add dev2dev_func field.
13768 (enum gomp_map_vars_kind): New enum.
13769 (gomp_map_vars): Add one argument.
13770 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
13771 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
13772 omp_get_place_num_procs, omp_get_place_num_procs_,
13773 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
13774 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
13775 omp_get_place_num_, omp_get_partition_num_places,
13776 omp_get_partition_num_places_, omp_get_partition_place_nums,
13777 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
13778 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
13779 omp_target_free, omp_target_is_present, omp_target_memcpy,
13780 omp_target_memcpy_rect, omp_target_associate_ptr and
13781 omp_target_disassociate_ptr.
13782 (GOMP_4.0.2): Renamed to ...
13783 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
13784 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
13785 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
13786 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
13787 GOMP_loop_doacross_static_start, GOMP_doacross_post,
13788 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
13789 GOMP_loop_ull_doacross_guided_start,
13790 GOMP_loop_ull_doacross_runtime_start,
13791 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
13792 GOMP_doacross_ull_wait.
13793 * libgomp.texi: Document omp_get_max_task_priority.
13794 Rename modifier argument to chunk_size for omp_set_schedule and
13795 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
13796 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
13797 to run_sched_chunk_size renaming.
13798 (GOMP_loop_ordered_runtime_start): Likewise.
13799 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
13800 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
13801 GOMP_parallel_loop_runtime_start): New functions.
13802 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
13803 to run_sched_chunk_size renaming.
13804 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
13805 GOMP_loop_doacross_guided_start): New functions or aliases.
13806 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
13807 run_sched_modifier to run_sched_chunk_size renaming.
13808 (GOMP_loop_ull_ordered_runtime_start): Likewise.
13809 (gomp_loop_ull_doacross_static_start,
13810 gomp_loop_ull_doacross_dynamic_start,
13811 gomp_loop_ull_doacross_guided_start,
13812 GOMP_loop_ull_doacross_runtime_start): New functions.
13813 (GOMP_loop_ull_doacross_static_start,
13814 GOMP_loop_ull_doacross_dynamic_start,
13815 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
13816 * oacc-mem.c (acc_map_data, present_create_copy,
13817 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
13819 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
13820 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
13821 instead of false to gomp_map_vars.
13822 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
13823 * omp.h.in (omp_lock_hint_t): New type.
13824 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
13825 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
13826 omp_get_place_num, omp_get_partition_num_places,
13827 omp_get_partition_place_nums, omp_get_initial_device,
13828 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
13829 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
13830 omp_target_associate_ptr, omp_target_disassociate_ptr): New
13832 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
13833 (omp_lock_hint_none, omp_lock_hint_uncontended,
13834 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
13835 omp_lock_hint_speculative): New parameters.
13836 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
13837 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
13838 omp_get_place_num, omp_get_partition_num_places,
13839 omp_get_partition_place_nums, omp_get_initial_device,
13840 omp_get_max_task_priority): New interfaces.
13841 (omp_set_schedule, omp_get_schedule): Rename modifier argument
13843 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
13844 (omp_lock_hint_none, omp_lock_hint_uncontended,
13845 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
13846 omp_lock_hint_speculative): New parameters.
13847 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
13848 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
13849 omp_get_place_num, omp_get_partition_num_places,
13850 omp_get_partition_place_nums, omp_get_initial_device,
13851 omp_get_max_task_priority): New functions and subroutines.
13852 * ordered.c: Include stdarg.h and string.h.
13853 (MAX_COLLAPSED_BITS): Define.
13854 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
13855 gomp_doacross_ull_init, GOMP_doacross_ull_post,
13856 GOMP_doacross_ull_wait): New functions.
13857 * target.c: Include errno.h.
13858 (resolve_device): If device is not initialized, call
13859 gomp_init_device on it.
13860 (gomp_map_lookup): New function.
13861 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
13862 Don't bump refcount if REFCOUNT_INFINITY. Handle
13863 GOMP_MAP_ALWAYS_TO_P.
13864 (get_kind): Rename is_openacc argument to short_mapkind.
13865 (gomp_map_pointer): Use gomp_map_lookup.
13866 (gomp_map_fields_existing): New function.
13867 (gomp_map_vars): Rename is_openacc argument to short_mapkind
13868 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
13869 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
13870 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
13871 Adjust for tgt->list changed type and copy_from living in there.
13872 (gomp_copy_from_async): Adjust for tgt->list changed type and
13873 copy_from living in there.
13874 (gomp_unmap_vars): Likewise.
13875 (gomp_update): Likewise. Rename is_openacc argument to
13876 short_mapkind. Don't fail if object is not mapped.
13877 (gomp_load_image_to_device): Initialize refcount to
13879 (gomp_target_fallback): New function.
13880 (gomp_get_target_fn_addr): Likewise.
13881 (GOMP_target): Adjust gomp_map_vars caller, use
13882 gomp_get_target_fn_addr and gomp_target_fallback.
13883 (GOMP_target_41): New function.
13884 (gomp_target_data_fallback): New function.
13885 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
13886 (GOMP_target_data_41): New function.
13887 (GOMP_target_update): Adjust gomp_update caller.
13888 (GOMP_target_update_41): New function.
13889 (gomp_exit_data, GOMP_target_enter_exit_data,
13890 gomp_target_task_fn, omp_target_alloc, omp_target_free,
13891 omp_target_is_present, omp_target_memcpy,
13892 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
13893 omp_target_associate_ptr, omp_target_disassociate_ptr,
13894 gomp_load_plugin_for_device): New functions.
13895 * task.c: Include gomp-constants.h. Include taskloop.c
13896 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
13897 (gomp_task_handle_depend): New function.
13898 (GOMP_task): Use it. Add priority argument. Use
13899 gomp-constant.h constants instead of hardcoded numbers.
13900 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
13901 (gomp_create_target_task): New function.
13902 (verify_children_queue, verify_taskgroup_queue,
13903 verify_task_queue): New functions.
13904 (gomp_task_run_pre): Call verify_*_queue functions.
13905 If an upcoming tied task is about to leave the sibling or
13906 taskgroup queues in an invalid state, adjust appropriately.
13907 Remove taskgroup argument. Add comments.
13908 (gomp_task_run_post_handle_dependers): Add comments.
13909 (gomp_task_run_post_remove_parent): Likewise.
13910 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
13911 (GOMP_taskwait): Likewise. Add comments.
13912 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
13913 problem such that the first non parent_depends_on task does not
13914 end up at the end of the children queue.
13915 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
13916 GOMP_TASK_UNDEFERRED.
13917 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
13918 * taskloop.c: New file.
13919 * testsuite/lib/libgomp.exp
13920 (check_effective_target_offload_device_nonshared_as): New proc.
13921 * testsuite/libgomp.c/affinity-2.c: New test.
13922 * testsuite/libgomp.c/doacross-1.c: New test.
13923 * testsuite/libgomp.c/doacross-2.c: New test.
13924 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
13925 Add map clause to target.
13926 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
13927 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
13928 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
13929 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
13930 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
13932 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
13933 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
13934 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
13935 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
13936 not defined. Use those where needed.
13937 * testsuite/libgomp.c/for-4.c: New test.
13938 * testsuite/libgomp.c/for-5.c: New test.
13939 * testsuite/libgomp.c/for-6.c: New test.
13940 * testsuite/libgomp.c/linear-1.c: New test.
13941 * testsuite/libgomp.c/ordered-4.c: New test.
13942 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
13943 only allowed on the loop iterator.
13944 * testsuite/libgomp.c/pr66199-3.c: New test.
13945 * testsuite/libgomp.c/pr66199-4.c: New test.
13946 * testsuite/libgomp.c/reduction-7.c: New test.
13947 * testsuite/libgomp.c/reduction-8.c: New test.
13948 * testsuite/libgomp.c/reduction-9.c: New test.
13949 * testsuite/libgomp.c/reduction-10.c: New test.
13950 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
13952 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
13953 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
13954 * testsuite/libgomp.c/target-11.c: New test.
13955 * testsuite/libgomp.c/target-12.c: New test.
13956 * testsuite/libgomp.c/target-13.c: New test.
13957 * testsuite/libgomp.c/target-14.c: New test.
13958 * testsuite/libgomp.c/target-15.c: New test.
13959 * testsuite/libgomp.c/target-16.c: New test.
13960 * testsuite/libgomp.c/target-17.c: New test.
13961 * testsuite/libgomp.c/target-18.c: New test.
13962 * testsuite/libgomp.c/target-19.c: New test.
13963 * testsuite/libgomp.c/target-20.c: New test.
13964 * testsuite/libgomp.c/target-21.c: New test.
13965 * testsuite/libgomp.c/target-22.c: New test.
13966 * testsuite/libgomp.c/target-23.c: New test.
13967 * testsuite/libgomp.c/target-24.c: New test.
13968 * testsuite/libgomp.c/target-25.c: New test.
13969 * testsuite/libgomp.c/target-26.c: New test.
13970 * testsuite/libgomp.c/target-27.c: New test.
13971 * testsuite/libgomp.c/taskloop-1.c: New test.
13972 * testsuite/libgomp.c/taskloop-2.c: New test.
13973 * testsuite/libgomp.c/taskloop-3.c: New test.
13974 * testsuite/libgomp.c/taskloop-4.c: New test.
13975 * testsuite/libgomp.c++/ctor-13.C: New test.
13976 * testsuite/libgomp.c++/doacross-1.C: New test.
13977 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
13978 Replace offload_device with offload_device_nonshared_as.
13979 * testsuite/libgomp.c++/for-12.C: New test.
13980 * testsuite/libgomp.c++/for-13.C: New test.
13981 * testsuite/libgomp.c++/for-14.C: New test.
13982 * testsuite/libgomp.c++/linear-1.C: New test.
13983 * testsuite/libgomp.c++/member-1.C: New test.
13984 * testsuite/libgomp.c++/member-2.C: New test.
13985 * testsuite/libgomp.c++/member-3.C: New test.
13986 * testsuite/libgomp.c++/member-4.C: New test.
13987 * testsuite/libgomp.c++/member-5.C: New test.
13988 * testsuite/libgomp.c++/ordered-1.C: New test.
13989 * testsuite/libgomp.c++/reduction-5.C: New test.
13990 * testsuite/libgomp.c++/reduction-6.C: New test.
13991 * testsuite/libgomp.c++/reduction-7.C: New test.
13992 * testsuite/libgomp.c++/reduction-8.C: New test.
13993 * testsuite/libgomp.c++/reduction-9.C: New test.
13994 * testsuite/libgomp.c++/reduction-10.C: New test.
13995 * testsuite/libgomp.c++/reference-1.C: New test.
13996 * testsuite/libgomp.c++/simd14.C: New test.
13997 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
13998 * testsuite/libgomp.c++/target-5.C: New test.
13999 * testsuite/libgomp.c++/target-6.C: New test.
14000 * testsuite/libgomp.c++/target-7.C: New test.
14001 * testsuite/libgomp.c++/target-8.C: New test.
14002 * testsuite/libgomp.c++/target-9.C: New test.
14003 * testsuite/libgomp.c++/target-10.C: New test.
14004 * testsuite/libgomp.c++/target-11.C: New test.
14005 * testsuite/libgomp.c++/target-12.C: New test.
14006 * testsuite/libgomp.c++/taskloop-1.C: New test.
14007 * testsuite/libgomp.c++/taskloop-2.C: New test.
14008 * testsuite/libgomp.c++/taskloop-3.C: New test.
14009 * testsuite/libgomp.c++/taskloop-4.C: New test.
14010 * testsuite/libgomp.c++/taskloop-5.C: New test.
14011 * testsuite/libgomp.c++/taskloop-6.C: New test.
14012 * testsuite/libgomp.c++/taskloop-7.C: New test.
14013 * testsuite/libgomp.c++/taskloop-8.C: New test.
14014 * testsuite/libgomp.c++/taskloop-9.C: New test.
14015 * testsuite/libgomp.fortran/affinity1.f90: New test.
14016 * testsuite/libgomp.fortran/affinity2.f90: New test.
14018 2015-10-13 Tom de Vries <tom@codesourcery.com>
14020 PR tree-optimization/67476
14021 * testsuite/libgomp.c/autopar-3.c: New test.
14022 * testsuite/libgomp.c/autopar-4.c: New test.
14023 * testsuite/libgomp.c/autopar-5.c: New test.
14024 * testsuite/libgomp.c/autopar-6.c: New test.
14025 * testsuite/libgomp.c/autopar-7.c: New test.
14026 * testsuite/libgomp.c/autopar-8.c: New test.
14028 2015-10-12 James Norris <jnorris@codesourcery.com>
14030 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
14033 2015-10-09 David Malcolm <dmalcolm@redhat.com>
14035 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
14036 using load_gcc_lib.
14038 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
14040 * oacc-ptx.h: Remove file, moving its content into...
14041 * config/nvptx/fortran.c: ... here...
14042 * config/nvptx/oacc-init.c: ..., here...
14043 * config/nvptx/oacc-parallel.c: ..., and here.
14044 * config/nvptx/openacc.f90: New file.
14045 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
14046 (link_ptx): Don't link in predefined bits of PTX code.
14048 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
14049 Bernd Schmidt <bernds@codesourcery.com>
14051 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
14052 (struct targ_ptx_obj): New.
14053 (nvptx_tdata): Move earlier, change data format.
14054 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
14056 (GOMP_OFFLOAD_load_image): Adjust.
14058 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
14060 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
14061 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14062 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
14063 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
14064 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14065 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
14066 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
14067 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
14068 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
14069 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
14070 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14071 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14072 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14073 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14074 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14075 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14076 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14077 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14078 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14079 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14080 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14081 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14082 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14083 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14084 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14085 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14086 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14087 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14088 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14089 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14090 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14091 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14092 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14093 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14094 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14095 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14096 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14097 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14098 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14099 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14100 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14101 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14102 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14103 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14104 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14105 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14106 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14107 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14108 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14109 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14110 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14111 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14112 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14113 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14114 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
14115 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14116 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14117 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
14118 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
14119 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
14120 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
14121 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
14122 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14124 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
14126 * oacc-init.c (acc_on_device): Force optimization level.
14128 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
14130 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
14131 (cuda_errlist): Delete.
14132 (cuda_error): Reimplement.
14134 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
14136 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
14138 * libgomp.map (GOACC_parallel_keyed): New.
14139 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
14141 (GOACC_parallel_keyed): New interface. Lose geometry arguments
14142 and take keyed varargs list. Adjust call to exec_func.
14143 (GOACC_parallel): Force host fallback.
14144 * libgomp_g.h (GOACC_parallel): Remove.
14145 (GOACC_parallel_keyed): Declare.
14146 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
14147 (struct targ_gn_descriptor): Replace name field with launch field.
14148 (nvptx_exec): Lose separate geometry args, take array. Process
14149 dynamic dimensions and adjust.
14150 (struct nvptx_tdata): Replace fn_names field with fn_descs.
14151 (GOMP_OFFLOAD_load_image): Adjust for change in function table
14153 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
14155 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
14158 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
14161 * oacc-int.h (goacc_host_init): Add declaration.
14162 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
14163 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
14165 2015-09-08 Aditya Kumar <hiraditya@msn.com>
14166 Sebastian Pop <s.pop@samsung.com>
14168 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
14170 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
14171 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
14172 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
14173 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
14174 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
14176 2015-09-03 Jakub Jelinek <jakub@redhat.com>
14178 * configure.tgt: Add missing ;; in between nvptx and rtems
14181 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14183 * config/posix/pool.h (gomp_adjust_thread_attr): New.
14184 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
14185 (gomp_thread_pool_reservoir): Add priority member.
14186 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
14188 (parse_thread_pools): Likewise.
14189 * team.c (gomp_team_start): Call configuration provided
14190 gomp_adjust_thread_attr(). Destroy thread attributes if
14192 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
14194 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14196 * config/posix/pool.h: New.
14197 * config/rtems/pool.h: Likewise.
14198 * config/rtems/proc.c: Likewise.
14199 * libgomp.h (gomp_thread_destructor): Declare.
14200 * team.c: Include configuration provided "pool.h".
14201 (gomp_get_thread_pool): Define in configuration.
14202 (gomp_team_end): Call configuration defined
14203 gomp_release_thread_pool().
14205 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14207 * config/rtems/bar.c: New.
14208 * config/rtems/bar.h: Likewise.
14209 * config/rtems/mutex.c: Likewise.
14210 * config/rtems/mutex.h: Likewise.
14211 * config/rtems/sem.c: Likewise.
14212 * config/rtems/sem.h: Likewise.
14213 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
14214 <sys/lock.h> header file.
14215 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
14216 supported by Newlib.
14217 * configure: Regenerate.
14219 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14221 * team.c (gomp_new_thread_pool): Delete and move content to ...
14222 (gomp_get_thread_pool): ... new function. Allocate and
14223 initialize thread pool on demand.
14224 (get_last_team): Use gomp_get_thread_pool().
14225 (gomp_team_start): Delete thread pool initialization.
14227 2015-09-03 Tom de Vries <tom@codesourcery.com>
14229 PR tree-optimization/65637
14230 * testsuite/libgomp.c/autopar-2.c: New test.
14232 2015-08-29 Tom de Vries <tom@codesourcery.com>
14234 PR tree-optimization/46193
14235 * testsuite/libgomp.c/pr46193.c: New test.
14237 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
14240 * libgomp.map: Add 4.0.2 version.
14241 * target.c (offload_image_descr): Add version field.
14242 (gomp_load_image_to_device): Add version argument. Adjust plugin
14243 call. Improve load mismatch diagnostic.
14244 (gomp_unload_image_from_device): Add version argument. Adjust plugin
14246 (GOMP_offload_regster): Make stub function, move bulk to ...
14247 (GOMP_offload_register_ver): ... here. Process version argument.
14248 (GOMP_offload_unregister): Make stub function, move bulk to ...
14249 (GOMP_offload_unregister_ver): ... here. Process version argument.
14250 (gomp_init_device): Process version field.
14251 (gomp_unload_device): Process version field.
14252 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
14253 macros. Check plugin version.
14254 * libgomp.h (gomp_device_descr): Add version function field. Adjust
14255 loader and unloader types.
14256 * oacc-host.c: Include gomp-constants.h.
14257 (host_version): New.
14258 (host_load_image, host_unload_image): Adjust.
14259 (host_dispatch): Add host_version.
14260 * plugin/plugin-nvptx.c: Include gomp-constants.h.
14261 (GOMP_OFFLOAD_version): New.
14262 (GOMP_OFFLOAD_load_image): Add version arg and check it.
14263 (GOMP_OFFLOAD_unload_image): Likewise.
14264 * plugin/plugin-host.c: Include gomp-constants.h.
14265 (GOMP_OFFLOAD_version): New.
14266 (GOMP_OFFLOAD_load_image): Add version arg.
14267 (GOMP_OFFLOAD_unload_image): Likewise.
14269 2015-08-24 Tom de Vries <tom@codesourcery.com>
14271 PR tree-optimization/65468
14272 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
14274 2015-08-24 Tom de Vries <tom@codesourcery.com>
14276 PR tree-optimization/65468
14277 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
14279 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
14283 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
14284 (gomp_iter_guided_next): Idem.
14285 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
14286 (gomp_iter_ull_guided_next): Idem.
14287 * config/linux/wait.h (do_spin): Idem.
14289 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14291 * libgomp-plugin.h (enum offload_target_type): Remove
14292 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
14293 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
14294 * openacc.h (enum acc_device_t): Likewise.
14295 * openacc_lib.h: Likewise.
14296 * oacc-init.c (name_of_acc_device_t): Don't handle it.
14297 (acc_on_device): Just use __builtin_acc_on_device.
14298 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
14299 of acc_on_device builtin.
14300 * plugin/plugin-host.h: Remove file.
14301 * plugin/plugin-host.c: Likewise, but salvage some content into...
14302 * oacc-host.c: ... this file.
14303 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
14304 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
14305 * Makefile.in: Regenerate.
14306 * configure: Likewise.
14307 * testsuite/lib/libgomp.exp
14308 (check_effective_target_openacc_host_nonshm_selected): Remove.
14309 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
14310 ACC_DEVICE_TYPE=host_nonshm.
14311 * testsuite/libgomp.oacc-c/c.exp: Likewise.
14312 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14313 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
14314 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
14315 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
14316 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
14318 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14319 Jakub Jelinek <jakub@redhat.com>
14321 * config/nvptx/affinity.c: New file.
14322 * config/nvptx/alloc.c: Likewise.
14323 * config/nvptx/bar.c: Likewise.
14324 * config/nvptx/barrier.c: Likewise.
14325 * config/nvptx/critical.c: Likewise.
14326 * config/nvptx/env.c: Likewise.
14327 * config/nvptx/error.c: Likewise.
14328 * config/nvptx/fortran.c: Likewise.
14329 * config/nvptx/iter.c: Likewise.
14330 * config/nvptx/iter_ull.c: Likewise.
14331 * config/nvptx/libgomp-plugin.c: Likewise.
14332 * config/nvptx/lock.c: Likewise.
14333 * config/nvptx/loop.c: Likewise.
14334 * config/nvptx/loop_ull.c: Likewise.
14335 * config/nvptx/mutex.c: Likewise.
14336 * config/nvptx/oacc-async.c: Likewise.
14337 * config/nvptx/oacc-cuda.c: Likewise.
14338 * config/nvptx/oacc-host.c: Likewise.
14339 * config/nvptx/oacc-init.c: Likewise.
14340 * config/nvptx/oacc-mem.c: Likewise.
14341 * config/nvptx/oacc-parallel.c: Likewise.
14342 * config/nvptx/oacc-plugin.c: Likewise.
14343 * config/nvptx/omp-lock.h: Likewise.
14344 * config/nvptx/ordered.c: Likewise.
14345 * config/nvptx/parallel.c: Likewise.
14346 * config/nvptx/proc.c: Likewise.
14347 * config/nvptx/ptrlock.c: Likewise.
14348 * config/nvptx/sections.c: Likewise.
14349 * config/nvptx/sem.c: Likewise.
14350 * config/nvptx/single.c: Likewise.
14351 * config/nvptx/splay-tree.c: Likewise.
14352 * config/nvptx/target.c: Likewise.
14353 * config/nvptx/task.c: Likewise.
14354 * config/nvptx/team.c: Likewise.
14355 * config/nvptx/time.c: Likewise.
14356 * config/nvptx/work.c: Likewise.
14357 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
14358 * configure: Regenerate.
14359 * configure.tgt (config_path): Set to "nvptx" for target
14362 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14364 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
14366 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
14368 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
14369 (cuda_errlist): Constify.
14370 (errmsg): Move into ...
14371 (cuda_error): ... here. Make smaller.
14372 (_XSTR, _STR): Delete.
14373 (cuda_synames): Delete.
14374 (verify_device_library): Delete.
14375 (nvptx_init): Don't call it.
14377 2015-07-28 Tom de Vries <tom@codesourcery.com>
14379 * testsuite/libgomp.c/uns-outer-4.c: New test.
14381 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
14383 * testsuite/libgomp.c/pr66714.c: New test.
14385 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
14388 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
14389 (fib_ref): New function.
14390 (fib): Correct corner cases in the recursion.
14391 (main): Replace the non-simd loop with fib_ref call.
14392 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
14394 (fibonacci): Lower the parameter N to 30. Correct accordingly check
14395 for the last array element value. Replace the non-simd loop with
14396 fib_ref call. Remove redundant b_ref array. Remove the comparison
14397 of the last array element with according Fibonacci sequence element.
14398 (fib): Correct corner cases in the recursion.
14400 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
14402 * target.c (gomp_offload_image_to_device): Rename to ...
14403 (gomp_load_image_to_device): ... here.
14404 (GOMP_offload_register): Adjust call.
14405 (gomp_init_device): Likewise.
14406 (gomp_unload_image_from_device): New. Broken out of ...
14407 (GOMP_offload_unregister): ... here. Call it.
14408 (gomp_unload_device): New.
14409 * libgomp.h (gomp_unload_device): Declare.
14410 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
14413 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
14415 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
14417 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
14419 (goacc_waits): Move !num_waits handling to ...
14420 (GOACC_wait): ... here, the only caller that might have zero waits.
14422 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
14423 (struct ptx_image_data): Move earlier, add fns field.
14424 (struct ptx_device): Add images and image_lock fields.
14425 (ptx_images, ptx_image_lock): Delete.
14426 (nvptx_open_device): Initialize images and image_lock fields.
14427 (nvptx_close_device): Destroy image_lock.
14428 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
14429 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
14432 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
14434 * target.c (GOMP_offload_register): Use int for device type arg.
14435 (GOMP_offload_unregister): Likewise.
14437 * target.c (struct_offload_image_descr): Constify host_table.
14438 (gomp_offload_image_to_device): Likewise.
14439 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
14441 * libgomp.h (gomp_device_descr): Constify target data arguments.
14442 * target.c (struct offload_image_descr): Constify target_data.
14443 (gomp_offload_image_to_device): Likewise.
14444 (GOMP_offload_register): Likewise.
14445 (GOMP_offload_unregister): Likewise.
14446 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
14447 GOMP_OFFLOAD_unload_image): Constify target data.
14448 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
14449 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
14451 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
14453 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
14454 Workaround driver library const error.
14455 (struct nvptx_tdata, nvptx_tdata_t): New.
14456 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
14459 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
14461 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
14462 of EPS parameter from integer to real.
14463 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
14464 type of EPS parameter from integer to real.
14466 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
14468 * team.c (get_last_team): New.
14469 (gomp_new_team): Recycle last non-nested team if possible.
14470 (gomp_team_end): Move team work share list free lock destruction
14472 (free_team): ... here.
14474 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
14476 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
14477 and ref from int to double. Replaced their comparison with
14478 an inequality of their difference and EPS.
14479 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
14480 comparison of pri and a reference number with an inequality of their
14481 difference and EPS.
14482 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
14483 the comparison of sum and sum_ref with an inequality of their
14484 difference and EPS.
14485 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
14486 the comparison of pri and a reference number with an inequality of
14487 their difference and EPS.
14489 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
14491 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
14492 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
14493 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
14494 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
14495 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
14496 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
14497 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
14498 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
14499 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
14500 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
14501 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
14502 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
14503 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
14505 (vec_mult): Likewise. Add #pragma omp taskwait.
14506 (main): Adjust caller.
14507 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
14508 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
14509 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
14510 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
14511 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
14512 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
14513 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
14514 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
14515 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
14516 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
14517 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
14518 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
14519 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
14520 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
14521 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
14522 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
14523 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
14524 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
14525 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
14526 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
14527 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
14528 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
14529 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
14530 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
14531 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
14532 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
14533 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
14534 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
14535 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
14536 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
14537 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
14538 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
14539 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
14540 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
14541 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
14542 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
14543 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
14544 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
14545 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
14546 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
14547 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
14548 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
14549 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
14550 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
14551 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
14552 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
14553 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
14554 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
14555 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
14556 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
14557 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
14558 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
14559 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
14560 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
14561 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
14562 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
14563 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
14564 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
14565 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
14566 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
14567 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
14568 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
14569 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
14570 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
14571 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
14572 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
14573 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
14574 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
14575 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
14576 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
14577 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
14578 (vec_mult): Add !$omp taskwait.
14579 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
14580 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
14581 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
14582 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
14583 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
14584 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
14585 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
14586 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
14587 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
14588 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
14589 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
14590 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
14591 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
14592 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
14593 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
14594 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
14595 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
14596 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
14597 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
14598 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
14599 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
14600 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
14601 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
14602 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
14603 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
14604 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
14605 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
14606 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
14607 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
14608 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
14609 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
14610 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
14611 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
14612 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
14613 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
14614 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
14615 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
14616 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
14617 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
14618 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
14619 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
14620 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
14621 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
14622 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
14623 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
14624 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
14625 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
14626 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
14627 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
14628 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
14629 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
14630 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
14631 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
14632 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
14633 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
14634 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
14635 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
14636 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
14637 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
14638 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
14639 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
14640 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
14641 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
14642 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
14643 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
14644 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
14645 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
14647 2015-07-10 Tom de Vries <tom@codesourcery.com>
14649 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
14650 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
14652 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
14655 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
14656 in a 64-bit configuration.
14657 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
14658 offloading testing if no such device is available.
14659 * testsuite/libgomp.oacc-c/c.exp: Likewise.
14660 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14662 2015-07-08 Tom de Vries <tom@codesourcery.com>
14664 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
14666 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14668 2015-07-07 Tom de Vries <tom@codesourcery.com>
14670 PR tree-optimization/66642
14671 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
14672 iteration count case.
14673 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
14674 function, factor out of ...
14675 (main): ... here. Test low iteration count case.
14677 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
14679 * libgomp.h (gomp_thread_pool): Comment last_team field.
14681 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
14683 * testsuite/libgomp.c++/pr66702-1.C: Require
14684 vect_simd_clones effective target.
14685 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
14687 2015-06-30 Tom de Vries <tom@codesourcery.com>
14689 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
14690 already set. Use DEFAULT_CFLAGS in dg-runtest.
14691 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
14694 2015-06-30 Tom de Vries <tom@codesourcery.com>
14696 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
14697 already set. Use DEFAULT_CFLAGS in dg-runtest.
14698 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
14699 * testsuite/libgomp.c++/pr64824.C: Same.
14700 * testsuite/libgomp.c++/pr64868.C: Same.
14701 * testsuite/libgomp.c++/pr66199-1.C: Same.
14702 * testsuite/libgomp.c++/pr66199-2.C: Same.
14703 * testsuite/libgomp.c++/target-2.C: Same.
14704 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
14705 -std=<standard> option.
14706 * testsuite/libgomp.c++/udr-11.C: Same.
14707 * testsuite/libgomp.c++/udr-12.C: Same.
14708 * testsuite/libgomp.c++/udr-13.C: Same.
14709 * testsuite/libgomp.c++/udr-14.C: Same.
14710 * testsuite/libgomp.c++/udr-15.C: Same.
14711 * testsuite/libgomp.c++/udr-16.C: Same.
14712 * testsuite/libgomp.c++/udr-17.C: Same.
14713 * testsuite/libgomp.c++/udr-18.C: Same.
14714 * testsuite/libgomp.c++/udr-19.C: Same.
14715 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
14716 * testsuite/libgomp.c++/simd-1.C: Same.
14717 * testsuite/libgomp.c++/simd-2.C: Same.
14718 * testsuite/libgomp.c++/simd-3.C: Same.
14719 * testsuite/libgomp.c++/simd-4.C: Same.
14720 * testsuite/libgomp.c++/simd-5.C: Same.
14721 * testsuite/libgomp.c++/simd-6.C: Same.
14722 * testsuite/libgomp.c++/simd-7.C: Same.
14723 * testsuite/libgomp.c++/simd-8.C: Same.
14724 * testsuite/libgomp.c++/simd-9.C: Same.
14725 * testsuite/libgomp.c++/simd10.C: Same.
14726 * testsuite/libgomp.c++/simd11.C: Same.
14727 * testsuite/libgomp.c++/simd12.C: Same.
14728 * testsuite/libgomp.c++/simd13.C: Same.
14730 2015-06-30 Jakub Jelinek <jakub@redhat.com>
14732 PR middle-end/66702
14733 * testsuite/libgomp.c++/pr66702-1.C: New test.
14734 * testsuite/libgomp.c++/pr66702-2.C: New test.
14736 2015-06-30 Tom de Vries <tom@codesourcery.com>
14738 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
14739 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
14740 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
14741 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
14743 2015-06-30 Tom de Vries <tom@codesourcery.com>
14745 PR tree-optimization/66652
14746 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
14747 using restrict pointers.
14748 (main): Add arguments to calls to f.
14749 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14751 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
14753 * configure.ac: Fix check for header <sys/sysctl.h>.
14754 * configure: Regenerate.
14755 * config.h.in: Likewise.
14757 2015-06-23 Tom de Vries <tom@codesourcery.com>
14759 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
14761 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
14763 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
14765 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
14769 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
14770 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14772 2015-06-15 Tom de Vries <tom@codesourcery.com>
14774 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
14775 dg-additional-options for any remaining options.
14776 * testsuite/libgomp.c/atomic-2.c: Same.
14777 * testsuite/libgomp.c/atomic-4.c: Same.
14778 * testsuite/libgomp.c/atomic-5.c: Same.
14779 * testsuite/libgomp.c/atomic-6.c: Same.
14780 * testsuite/libgomp.c/autopar-1.c: Same.
14781 * testsuite/libgomp.c/copyin-1.c: Same.
14782 * testsuite/libgomp.c/copyin-2.c: Same.
14783 * testsuite/libgomp.c/copyin-3.c: Same.
14784 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
14785 * testsuite/libgomp.c/nestedfn-5.c: Same.
14786 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
14787 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
14788 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
14789 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14790 * testsuite/libgomp.c/pr32362-1.c: Same.
14791 * testsuite/libgomp.c/pr32362-2.c: Same.
14792 * testsuite/libgomp.c/pr32362-3.c: Same.
14793 * testsuite/libgomp.c/pr39591-1.c: Same.
14794 * testsuite/libgomp.c/pr39591-2.c: Same.
14795 * testsuite/libgomp.c/pr39591-3.c: Same.
14796 * testsuite/libgomp.c/pr58392.c: Same.
14797 * testsuite/libgomp.c/pr58756.c: Same.
14798 * testsuite/libgomp.c/simd-1.c: Same.
14799 * testsuite/libgomp.c/simd-10.c: Same.
14800 * testsuite/libgomp.c/simd-11.c: Same.
14801 * testsuite/libgomp.c/simd-12.c: Same.
14802 * testsuite/libgomp.c/simd-13.c: Same.
14803 * testsuite/libgomp.c/simd-14.c: Same.
14804 * testsuite/libgomp.c/simd-15.c: Same.
14805 * testsuite/libgomp.c/simd-2.c: Same.
14806 * testsuite/libgomp.c/simd-3.c: Same.
14807 * testsuite/libgomp.c/simd-4.c: Same.
14808 * testsuite/libgomp.c/simd-5.c: Same.
14809 * testsuite/libgomp.c/simd-6.c: Same.
14810 * testsuite/libgomp.c/simd-7.c: Same.
14811 * testsuite/libgomp.c/simd-8.c: Same.
14812 * testsuite/libgomp.c/simd-9.c: Same.
14814 2015-06-15 Tom de Vries <tom@codesourcery.com>
14816 * testsuite/libgomp.c/pr35625.c: Fix typo.
14818 2015-06-15 Tom de Vries <tom@codesourcery.com>
14820 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
14822 * testsuite/libgomp.c/atomic-3.c: Same.
14823 * testsuite/libgomp.c/debug-1.c: Same.
14824 * testsuite/libgomp.c/nqueens-1.c: Same.
14825 * testsuite/libgomp.c/pr26171.c: Same.
14826 * testsuite/libgomp.c/pr48591.c: Same.
14827 * testsuite/libgomp.c/pr64824.c: Same.
14828 * testsuite/libgomp.c/pr64868.c: Same.
14829 * testsuite/libgomp.c/pr66133.c: Same.
14830 * testsuite/libgomp.c/pr66199-1.c: Same.
14831 * testsuite/libgomp.c/pr66199-2.c: Same.
14832 * testsuite/libgomp.c/target-8.c: Same.
14834 2015-06-15 Tom de Vries <tom@codesourcery.com>
14836 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
14838 * testsuite/libgomp.c/for-1.c: Same.
14839 * testsuite/libgomp.c/for-2.c: Same.
14840 * testsuite/libgomp.c/for-3.c: Same.
14841 * testsuite/libgomp.c/pr35625.c: Same.
14842 * testsuite/libgomp.c/pr39154.c: Same.
14843 * testsuite/libgomp.c/simd-16.c: Same.
14844 * testsuite/libgomp.c/simd-17.c: Same.
14846 2015-06-13 Tom de Vries <tom@codesourcery.com>
14848 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
14850 2015-06-13 Tom de Vries <tom@codesourcery.com>
14852 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
14853 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14854 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
14856 (main): Use N instead of hardcoded constants.
14858 2015-06-05 Tom de Vries <tom@codesourcery.com>
14860 merge from gomp4 branch:
14861 2015-05-28 Tom de Vries <tom@codesourcery.com>
14863 PR tree-optimization/65443
14864 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
14865 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
14866 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
14868 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14870 * testsuite/libgomp.graphite/bounds.c: Adjust for
14871 cleanup-tree-dump removal.
14872 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
14873 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
14874 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
14875 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
14876 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
14877 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
14878 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
14879 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
14880 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
14881 * testsuite/libgomp.graphite/pr41118.c: Likewise.
14883 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
14885 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
14886 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
14887 (futex_wake) [!__x86_64__]: Ditto.
14889 2015-05-28 Julian Brown <julian@codesourcery.com>
14891 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
14892 function comment. Only call gomp_fatal if new argument is true.
14893 (acc_dev_num_out_of_range): New function.
14894 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
14895 acc_dev_num_out_of_range as appropriate.
14896 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
14897 (acc_get_device_num, acc_set_device_num): Update calls to
14899 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
14902 2015-05-28 Julian Brown <julian@codesourcery.com>
14905 * oacc-init.c (plugin/plugin-host.h): Include.
14906 (acc_on_device): Check whether we're in an offloaded region for
14908 plugin. Don't use __builtin_acc_on_device.
14909 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
14910 nonshm_exec flag in thread-local data.
14911 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
14912 data for host_nonshm plugin.
14913 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
14914 for host_nonshm plugin.
14915 * plugin/plugin-host.h: New.
14917 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
14919 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
14921 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
14923 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
14925 (FUTEX_PRIVATE_FLAG): Remove L suffix.
14926 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
14929 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
14931 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
14933 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
14935 * target.c (gomp_map_pointer): New function abstracting out
14936 GOMP_MAP_POINTER handling.
14937 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
14938 gomp_map_pointer().
14940 2015-05-19 Jakub Jelinek <jakub@redhat.com>
14942 PR middle-end/66199
14943 * testsuite/libgomp.c/pr66199-1.c: New test.
14944 * testsuite/libgomp.c/pr66199-2.c: New test.
14945 * testsuite/libgomp.c++/pr66199-1.C: New test.
14946 * testsuite/libgomp.c++/pr66199-2.C: New test.
14947 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
14948 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
14950 2015-05-19 Julian Brown <julian@codesourcery.com>
14952 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
14955 2015-05-13 Jakub Jelinek <jakub@redhat.com>
14957 PR middle-end/66133
14958 * testsuite/libgomp.c/pr66133.c: New test.
14960 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
14962 * Makefile.in: Regenerated with automake-1.11.6.
14963 * aclocal.m4: Likewise.
14964 * config.h.in: Likewise.
14965 * configure: Likewise.
14966 * testsuite/Makefile.in: Likewise.
14968 2015-05-08 Jason Merrill <jason@redhat.com>
14970 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
14973 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
14975 2015-05-06 Julian Brown <julian@codesourcery.com>
14977 * oacc-init.c (acc_device_lock): Add explanatory comment.
14978 (resolve_device): Add comment about locking requirement.
14979 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
14980 gomp_init_device and gomp_fini_device calls.
14981 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
14982 (acc_get_device_num, acc_set_device_num): Add locking around
14983 resolve_device and gomp_init_device calls.
14985 2015-05-06 Julian Brown <julian@codesourcery.com>
14987 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
14988 goacc_thread_lock on error paths.
14989 * oacc-mem.c (lookup_host): Remove locking from function. Note
14990 locking requirement for caller in function comment.
14991 (lookup_dev): Likewise.
14992 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
14993 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
14994 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
14997 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
15001 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
15002 don't expect "0x" prefix for "%p" format specifier, don't expect
15003 "(nil)" for NULL pointer.
15004 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15005 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15006 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15007 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15008 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15009 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15010 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15011 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15012 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15013 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15014 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15015 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15016 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15017 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15018 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15019 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15020 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15021 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15022 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15023 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15024 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15025 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15026 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15027 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15028 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15029 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15030 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15031 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15032 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
15033 accurately specify what we're looking for.
15034 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15035 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15036 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15037 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15038 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15040 2015-04-30 James Norris <jnorris@codesourcery.com>
15043 * testsuite/lib/libgomp.exp
15044 (check_effective_target_openacc_host_selected)
15045 (check_effective_target_openacc_host_nonshm_selected): New
15047 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
15049 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15050 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15051 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15052 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15053 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15054 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15055 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15056 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15057 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15058 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15059 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15060 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15061 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15062 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15063 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15064 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15065 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15066 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15067 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15068 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15069 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15070 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15071 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15072 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15073 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15074 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15075 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15076 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15077 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15078 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15079 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15080 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15081 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15082 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15083 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15084 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15085 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15086 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15087 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15088 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15089 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15090 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15091 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15093 2015-04-08 Julian Brown <julian@codesourcery.com>
15095 * libgomp.h (target_mem_desc: Remove mem_map field.
15096 (acc_dispatch_t): Remove open_device_func, close_device_func,
15097 get_device_num_func, set_device_num_func, target_data members.
15098 Change create_thread_data_func argument to device number instead of
15100 * oacc-async.c (assert.h): Include.
15101 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
15102 (acc_wait_all, acc_wait_all_async): Use current host thread's
15103 active device, not base_dev.
15104 * oacc-cuda.c (acc_get_current_cuda_device)
15105 (acc_get_current_cuda_context, acc_get_cuda_stream)
15106 (acc_set_cuda_stream): Likewise.
15107 * oacc-host.c (host_dispatch): Don't set open_device_func,
15108 close_device_func, get_device_num_func or set_device_num_func.
15109 * oacc-init.c (base_dev, init_key): Remove.
15110 (cached_base_dev): New.
15111 (name_of_acc_device_t): New.
15112 (acc_init_1): Initialise default-numbered device, not zeroth.
15113 (acc_shutdown_1): Close all devices of a given type.
15114 (goacc_destroy_thread): Don't use base_dev.
15115 (lazy_open, lazy_init, lazy_init_and_open): Remove.
15116 (goacc_attach_host_thread_to_device): New.
15117 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
15118 (acc_get_num_devices): Don't use base_dev.
15119 (acc_set_device_type): Reimplement.
15120 (acc_get_device_type): Don't use base_dev.
15121 (acc_get_device_num): Tweak logic.
15122 (acc_set_device_num): Likewise.
15123 (acc_on_device): Use acc_get_device_type.
15124 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
15125 (goacc_lazy_initialize): Reimplement with acc_init and
15126 goacc_attach_host_thread_to_device.
15127 * oacc-int.h (goacc_thread): Add base_dev field.
15128 (base_dev): Remove extern declaration.
15129 (goacc_attach_host_thread_to_device): Add prototype.
15130 * oacc-mem.c (acc_malloc): Use current thread's device instead of
15132 (acc_free): Likewise.
15133 (acc_memcpy_to_device): Likewise.
15134 (acc_memcpy_from_device): Likewise.
15135 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
15136 goacc_lazy_initialize (throughout).
15137 (GOACC_parallel): Use tgt_offset to locate target functions.
15138 * target.c (gomp_map_vars): Don't set tgt->mem_map.
15139 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
15140 (gomp_load_plugin_for_device): Remove open_device, close_device,
15141 get_device_num, set_device_num openacc hook initialisation. Don't set
15142 openacc.target_data.
15143 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
15144 (GOMP_OFFLOAD_openacc_close_device)
15145 (GOMP_OFFLOAD_openacc_get_device_num)
15146 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
15147 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
15149 * plugin/plugin-nvptx.c (ptx_inited): Remove.
15150 (instantiated_devices, ptx_dev_lock): New.
15151 (struct ptx_image_data): New.
15152 (ptx_devices, ptx_images, ptx_image_lock): New.
15153 (fini_streams_for_device): Reorder cuStreamDestroy call.
15154 (nvptx_get_num_devices): Remove forward declaration.
15155 (nvptx_init): Change return type to bool.
15156 (nvptx_fini): Remove.
15157 (nvptx_attach_host_thread_to_device): New.
15158 (nvptx_open_device): Return struct ptx_device* instead of void*.
15159 (nvptx_close_device): Change argument type to struct ptx_device*,
15160 return type to void.
15161 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
15162 (kernel_target_data, kernel_host_table): Remove static globals.
15163 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
15164 (GOMP_OFFLOAD_init_device): Reimplement.
15165 (GOMP_OFFLOAD_fini_device): Likewise.
15166 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
15167 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
15168 (GOMP_OFFLOAD_host2dev): Use ORD argument.
15169 (GOMP_OFFLOAD_openacc_open_device)
15170 (GOMP_OFFLOAD_openacc_close_device)
15171 (GOMP_OFFLOAD_openacc_set_device_num)
15172 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
15173 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
15177 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
15179 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
15181 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
15182 * libgomp.h (struct gomp_memory_mapping): Remove.
15183 (struct target_mem_desc): Change type of mem_map from
15184 gomp_memory_mapping * to splay_tree_s *.
15185 (struct gomp_device_descr): Remove register_image_func, get_table_func.
15186 Add load_image_func, unload_image_func.
15187 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
15188 Remove offload_regions_registered.
15189 (gomp_init_tables): Remove.
15190 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15192 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
15193 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
15194 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
15195 offload_regions_registered.
15196 Initialize load_image_func, unload_image_func, mem_map.root.
15197 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
15198 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
15199 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
15200 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
15201 gomp_memory_mapping *. Use dev's lock and splay_tree.
15202 (lookup_dev): Use dev's lock.
15203 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
15204 (acc_is_present): Likewise.
15205 (acc_map_data): Likewise.
15206 (acc_unmap_data): Likewise. Use dev's lock.
15207 (present_create_copy): Likewise.
15208 (delete_copyout): Pass dev to lookup_host instead of mem_map.
15209 (update_dev_host): Likewise.
15210 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
15211 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
15212 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
15213 (GOMP_OFFLOAD_get_table): Remove
15214 (GOMP_OFFLOAD_load_image): New function.
15215 (GOMP_OFFLOAD_unload_image): New function.
15216 * target.c (register_lock): New mutex for offload image registration.
15217 (num_devices): Do not guard with PLUGIN_SUPPORT.
15218 (gomp_realloc_unlock): New static function.
15219 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
15221 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
15222 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
15223 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
15225 (gomp_unmap_vars): Likewise.
15226 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
15227 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
15228 (gomp_offload_image_to_device): New static function.
15229 (GOMP_offload_register): Add mutex lock.
15230 Call gomp_offload_image_to_device for all initialized devices.
15231 Replace gomp_realloc with gomp_realloc_unlock.
15232 (GOMP_offload_unregister): New function.
15233 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
15234 get_table_func from the plugin with calls to init_device_func and
15235 gomp_offload_image_to_device.
15236 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15238 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
15239 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
15240 (GOMP_target_data): Do not call gomp_init_tables.
15241 (GOMP_target_update): Likewise. Remove argument from gomp_update.
15242 (gomp_load_plugin_for_device): Replace register_image and get_table
15243 with load_image and unload_image in DLSYM ().
15244 (gomp_register_images_for_device): Remove function.
15245 (gomp_target_init): Do not initialize current_device.mem_map.*,
15246 current_device.offload_regions_registered.
15247 Remove call to gomp_register_images_for_device.
15248 Do not free offload_images and num_offload_images.
15250 2015-03-30 Jakub Jelinek <jakub@redhat.com>
15253 * testsuite/libgomp.fortran/pr65597.f90: New test.
15255 2015-03-27 Tom de Vries <tom@codesourcery.com>
15258 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
15259 (init, check): New function.
15260 (foo): Change return type to void.
15261 (main): Call init and check.
15263 2015-03-27 Tom de Vries <tom@codesourcery.com>
15266 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
15267 (foo): Use M for non-inner loops to scale down test-case.
15269 2015-03-25 Kai Tietz <ktietz@redhat.com>
15272 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
15273 (GOACC_data_start): Likewise.
15274 * target.c (gomp_map_vars): Likewise.
15276 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
15278 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
15281 2015-03-19 Jakub Jelinek <jakub@redhat.com>
15283 * testsuite/libgomp.c/target-10.c: New test.
15284 * testsuite/libgomp.c++/target-4.C: New test.
15286 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
15288 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
15289 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
15291 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
15293 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
15294 * configure.ac (*-*-rtems*): Assume Pthread is supported.
15295 (pthread.h): Check for this header file.
15296 * configure: Regenerate.
15298 2015-02-25 Tom de Vries <tom@codesourcery.com>
15300 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
15301 (check_reduction_op, check_reduction_macro, max, min):
15303 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
15305 (main): Use new functions.
15307 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
15309 * target.c (gomp_load_plugin_for_device): Use const char * instead of
15310 char * for variables holding dlerror return values.
15311 (DLSYM_OPT): Ditto.
15313 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
15315 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
15317 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
15318 Cesar Philippidis <cesar@codesourcery.com>
15320 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
15321 GOACC_ctaid, and GOACC_nctaid routines.
15323 2015-02-11 Jakub Jelinek <jakub@redhat.com>
15326 * testsuite/libgomp.c/atomic-18.c: New test.
15327 * testsuite/libgomp.c++/atomic-16.C: New test.
15329 2015-02-04 Jakub Jelinek <jakub@redhat.com>
15333 * testsuite/libgomp.c/pr64824.c: New test.
15334 * testsuite/libgomp.c/pr64868.c: New test.
15335 * testsuite/libgomp.c++/pr64824.C: New test.
15336 * testsuite/libgomp.c++/pr64868.C: New test.
15338 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
15341 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
15342 Link with -lpthread.
15343 * config/aix/plugin-suffix.h: Delete.
15345 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
15348 * configure.tgt (*-*-aix*): Use config_path "aix posix".
15349 (*-*-darwin*): Use config_path "bsd darwin posix".
15350 (*-*-hpux*): Use config_path "hpux posix".
15351 * target.c: Add include of plugin-suffix.h and use
15352 SONAME_SUFFIX macro.
15353 * config/aix/plugin-suffix.h: New file.
15354 * config/darwin/plugin-suffix.h: New file.
15355 * config/hpux/plugin-suffix.h: New file.
15356 * config/posix/plugin-suffix.h: New file.
15358 2015-01-23 Jakub Jelinek <jakub@redhat.com>
15360 PR middle-end/64734
15361 * libgomp.c/pr64734.c: New test.
15363 2015-01-23 Tom de Vries <tom@codesourcery.com>
15366 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
15368 2015-01-23 Tom de Vries <tom@codesourcery.com>
15371 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
15374 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
15377 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
15378 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
15379 formal parameter. Update all users.
15380 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
15381 Document unused formal parameter.
15383 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
15385 * oacc-parallel.c: Don't include <alloca.h>.
15386 (GOACC_parallel): Use gomp_alloca instead of alloca.
15388 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
15390 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
15392 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
15393 James Norris <jnorris@codesourcery.com>
15394 Tom de Vries <tom@codesourcery.com>
15395 Julian Brown <julian@codesourcery.com>
15396 Cesar Philippidis <cesar@codesourcery.com>
15397 Nathan Sidwell <nathan@codesourcery.com>
15398 Tobias Burnus <burnus@net-b.de>
15400 * Makefile.am (search_path): Add $(top_srcdir)/../include.
15401 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
15402 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
15403 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
15404 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
15405 Include $(top_srcdir)/plugin/Makefrag.am.
15406 (nodist_libsubinclude_HEADERS): Add openacc.h.
15407 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
15408 openacc.f90, openacc.mod, openacc_kinds.mod.
15409 (omp_lib.mod): Generalize into...
15410 (%.mod): ... this new rule.
15411 (openacc_kinds.mod, openacc.mod): New rules.
15412 * plugin/configfrag.ac: New file.
15413 * configure.ac: Move plugin/offloading support into it. Include
15414 it. Instantiate testsuite/libgomp-test-support.pt.exp.
15415 * plugin/Makefrag.am: New file.
15416 * testsuite/Makefile.am (OFFLOAD_TARGETS)
15417 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
15419 (libgomp-test-support.exp): New rule.
15420 (all-local): Depend on it.
15421 * Makefile.in: Regenerate.
15422 * testsuite/Makefile.in: Regenerate.
15423 * config.h.in: Likewise.
15424 * configure: Likewise.
15425 * configure.tgt: Harden shell syntax.
15426 * env.c: Include "oacc-int.h".
15427 (parse_acc_device_type): New function.
15428 (gomp_debug_var, goacc_device_type, goacc_device_num): New
15430 (initialize_env): Initialize those. Call
15431 goacc_runtime_initialize.
15432 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
15433 (gomp_fatal): Call gomp_vfatal.
15434 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
15435 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
15436 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
15437 (splay_tree_node, splay_tree, splay_tree_key)
15438 (struct target_mem_desc, struct splay_tree_key_s)
15439 (struct gomp_memory_mapping, struct acc_dispatch_t)
15440 (struct gomp_device_descr, gomp_acc_insert_pointer)
15441 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
15442 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
15443 (gomp_free_memmap, gomp_fini_device): New declarations.
15444 (gomp_vdebug, gomp_debug): New macros.
15445 Include "splay-tree.h".
15446 * libgomp.map (OACC_2.0): New symbol version. Use for
15447 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
15448 acc_set_device_type_h_, acc_get_device_type,
15449 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
15450 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
15451 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
15452 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
15453 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
15454 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
15455 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
15456 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
15457 acc_copyin_array_h_, acc_present_or_copyin,
15458 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
15459 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
15460 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
15461 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
15462 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
15463 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
15464 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
15465 acc_update_device, acc_update_device_32_h_,
15466 acc_update_device_64_h_, acc_update_device_array_h_,
15467 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
15468 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
15469 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
15470 acc_is_present_64_h_, acc_is_present_array_h_,
15471 acc_memcpy_to_device, acc_memcpy_from_device,
15472 acc_get_current_cuda_device, acc_get_current_cuda_context,
15473 acc_get_cuda_stream, acc_set_cuda_stream.
15474 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
15475 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
15476 GOACC_update, GOACC_wait, GOACC_get_thread_num,
15477 GOACC_get_num_threads.
15478 (GOMP_PLUGIN_1.0): New symbol version. Use for
15479 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
15480 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
15481 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
15482 GOMP_PLUGIN_acc_thread.
15483 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
15484 environment variable.
15485 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
15486 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
15487 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
15488 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
15489 (splay_tree_remove): New declarations.
15490 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
15491 (splay_tree_remove, splay_tree_lookup): Move into...
15492 * splay-tree.c: ... this new file.
15493 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
15494 (splay_tree_node, splay_tree, splay_tree_key)
15495 (struct target_mem_desc, struct splay_tree_key_s)
15496 (struct gomp_device_descr): Don't declare.
15497 (num_devices_openmp): New variable.
15498 (gomp_get_num_devices ): Use it.
15499 (gomp_init_targets_once): New function.
15500 (gomp_get_num_devices ): Use it.
15501 (get_kind, gomp_copy_from_async, gomp_free_memmap)
15502 (gomp_fini_device, gomp_register_image_for_device): New functions.
15503 (gomp_map_vars): Add devaddrs parameter.
15504 (gomp_update): Add mm parameter.
15505 (gomp_init_device): Move most of it into...
15506 (gomp_init_tables): ... this new function.
15507 (gomp_register_images_for_device): Remove function.
15508 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
15509 Make them hidden instead of static.
15510 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
15511 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
15512 (GOMP_target_end_data, GOMP_target_update)
15513 (gomp_load_plugin_for_device, gomp_target_init): Update for
15515 * oacc-async.c: New file.
15516 * oacc-cuda.c: Likewise.
15517 * oacc-host.c: Likewise.
15518 * oacc-init.c: Likewise.
15519 * oacc-int.h: Likewise.
15520 * oacc-mem.c: Likewise.
15521 * oacc-parallel.c: Likewise.
15522 * oacc-plugin.c: Likewise.
15523 * oacc-plugin.h: Likewise.
15524 * oacc-ptx.h: Likewise.
15525 * openacc.f90: Likewise.
15526 * openacc.h: Likewise.
15527 * openacc_lib.h: Likewise.
15528 * plugin/plugin-host.c: Likewise.
15529 * plugin/plugin-nvptx.c: Likewise.
15530 * libgomp-plugin.c: Likewise.
15531 * libgomp-plugin.h: Likewise.
15532 * libgomp_target.h: Remove file after merging content into the
15533 former file. Update all users.
15534 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
15535 (offload_targets_s, offload_targets_s_openacc): New variables.
15536 (check_effective_target_openacc_nvidia_accel_present)
15537 (check_effective_target_openacc_nvidia_accel_selected): New
15539 (libgomp_init): Update for OpenACC changes.
15540 * testsuite/libgomp-test-support.exp.in: New file.
15541 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
15542 * testsuite/libgomp.oacc-c/c.exp: Likewise.
15543 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15544 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
15545 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
15546 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
15547 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
15548 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
15549 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
15550 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
15551 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
15552 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
15553 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
15554 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
15555 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
15556 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
15557 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
15558 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
15559 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
15560 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
15561 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
15562 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
15563 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
15564 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
15565 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15566 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
15567 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
15568 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
15569 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
15570 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
15571 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15572 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
15573 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
15574 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
15575 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
15576 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15577 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
15578 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15579 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
15580 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
15581 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
15582 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
15583 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15584 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15585 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15586 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
15587 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15588 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15589 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15590 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15591 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15592 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
15593 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15594 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15595 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15596 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15597 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15598 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15599 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15600 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
15601 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
15602 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
15603 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15604 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15605 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15606 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
15607 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
15608 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15609 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15610 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15611 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
15612 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15613 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15614 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15615 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
15616 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
15617 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15618 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15619 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
15620 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
15621 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
15622 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
15623 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15624 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15625 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15626 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
15627 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
15628 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15629 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15630 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
15631 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
15632 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
15633 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
15634 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15635 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15636 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15637 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15638 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
15639 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15640 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15641 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
15642 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
15643 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
15644 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15645 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
15646 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
15647 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
15648 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
15649 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
15650 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15651 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
15652 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
15653 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15654 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
15655 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
15656 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
15657 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
15658 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
15659 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
15660 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
15661 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
15662 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
15663 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
15664 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
15665 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
15666 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
15667 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
15668 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
15669 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
15670 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
15671 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
15672 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
15673 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15674 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
15675 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
15676 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
15677 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
15678 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
15679 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
15680 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
15682 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
15683 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
15684 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
15685 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
15686 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
15687 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
15688 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
15689 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
15690 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
15691 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
15692 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
15693 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
15694 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
15695 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
15696 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
15697 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
15698 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
15699 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
15700 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
15701 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
15702 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
15703 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
15704 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
15705 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
15706 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
15707 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
15708 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15709 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15710 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
15711 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
15712 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
15713 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
15714 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
15715 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15716 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
15717 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
15718 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
15719 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
15720 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
15721 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
15722 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
15723 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
15724 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
15725 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
15726 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
15727 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
15728 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
15729 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
15730 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
15731 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
15732 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
15733 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
15734 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
15735 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
15736 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
15737 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
15738 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
15739 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
15740 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
15741 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
15743 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
15744 Julian Brown <julian@codesourcery.com>
15745 David Malcolm <dmalcolm@redhat.com>
15747 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
15748 to "GNU Offloading and Multi Processing Runtime Library". Change
15750 * configure: Regenerate.
15751 * libgomp.texi: Update.
15753 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
15755 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
15757 * configure: Regenerate.
15759 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
15760 "intelmic" in $offload_targets.
15762 2015-01-05 Jakub Jelinek <jakub@redhat.com>
15764 Update copyright years.
15766 * libgomp.texi: Bump @copying's copyright year.
15768 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15770 * testsuite/lib/libgomp.exp: Load target-utils.exp.
15771 Move load of target-supports.exp earlier.
15773 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
15775 * testsuite/libgomp.c/target-9.c: New test.
15777 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
15779 * config.h.in: Regenerate.
15780 * configure: Regenerate.
15781 * configure.ac: Add GCC_CHECK_EMUTLS.
15782 * libgomp.h: Add check for USE_EMUTLS: this case
15783 is equal to HAVE_TLS.
15784 * team.c: Likewise.
15786 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
15788 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
15790 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
15791 Ilya Verbin <ilya.verbin@intel.com>
15793 * testsuite/libgomp.c/target-critical-1.c: New test.
15795 2014-11-26 Jakub Jelinek <jakub@redhat.com>
15797 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
15798 to dg-options unless expensive testing is on.
15799 (TESTITERS): Define to N if not defined.
15800 (main): Use TESTITERS instead of N.
15801 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
15802 dg-additional-options depending on whether expensive testing is on.
15803 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
15804 Decrease N to 100000 and CHUNKSZ to 10000.
15806 2014-11-24 Jakub Jelinek <jakub@redhat.com>
15809 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
15810 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
15812 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
15814 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
15816 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
15819 * configure: Regenerated.
15821 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
15823 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
15824 vect_simd_clones effective target.
15825 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
15827 2014-11-14 Jakub Jelinek <jakub@redhat.com>
15829 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
15830 of 32 as block_size.
15831 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
15832 instead of 32 as block_size.
15834 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
15835 Ilya Verbin <ilya.verbin@intel.com>
15837 * Makefile.in: Regenerate.
15838 * configure: Regenerate.
15839 * configure.ac: Set up offload_additional_options,
15840 offload_additional_lib_paths and offload_targets.
15841 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
15842 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
15843 * testsuite/Makefile.in: Regenerate.
15844 * testsuite/lib/libgomp.exp (libgomp_init): Append
15845 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
15846 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
15847 build directory to LD_LIBRARY_PATH for intelmic offload targets.
15849 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
15850 Ilya Verbin <ilya.verbin@intel.com>
15851 Kirill Yukhin <kirill.yukhin@intel.com>
15852 Ilya Tocar <ilya.tocar@intel.com>
15854 * testsuite/lib/libgomp.exp
15855 (check_effective_target_offload_device): New.
15856 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
15857 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
15858 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
15859 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
15860 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
15861 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
15862 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
15863 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
15864 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
15865 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
15866 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
15867 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
15868 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
15869 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
15870 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
15871 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
15872 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
15873 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
15874 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
15875 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
15876 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
15877 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
15878 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
15879 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
15880 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
15881 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
15882 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
15883 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
15884 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
15885 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
15886 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
15887 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
15888 * testsuite/libgomp.c/target-7.c: Fix test.
15889 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
15890 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
15891 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
15892 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
15893 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
15894 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
15895 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
15896 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
15897 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
15898 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
15899 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
15900 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
15901 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
15902 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
15903 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
15904 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
15905 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
15906 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
15907 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
15908 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
15909 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
15910 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
15911 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
15912 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
15913 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
15914 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
15915 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
15916 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
15917 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
15918 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
15919 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
15921 2014-11-13 Jakub Jelinek <jakub@redhat.com>
15922 Ilya Verbin <ilya.verbin@intel.com>
15923 Thomas Schwinge <thomas@codesourcery.com>
15924 Andrey Turetskiy <andrey.turetskiy@intel.com>
15926 * libgomp.map (GOMP_4.0.1): New symbol version.
15927 Add GOMP_offload_register.
15928 * libgomp_target.h: New file.
15929 * splay-tree.h: New file.
15930 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
15931 (gomp_target_init): New forward declaration.
15932 (gomp_is_initialized): New static variable.
15933 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
15934 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
15936 (offload_images, num_offload_images, devices, num_devices): New static
15938 (splay_compare): New static function.
15939 (struct gomp_device_descr): New structure.
15940 (gomp_get_num_devices): Call gomp_target_init.
15941 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
15942 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
15943 (GOMP_offload_register): New function.
15944 (GOMP_target): Arrange for host callback to be performed in a separate
15945 initial thread and contention group, inheriting ICVs from
15946 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
15947 Add device initialization and lookup for target function in splay tree.
15948 (GOMP_target_data): Add device initialization and call gomp_map_vars.
15949 (GOMP_target_end_data): Call gomp_unmap_vars.
15950 (GOMP_target_update): Add device initialization and call gomp_update.
15951 (gomp_load_plugin_for_device, gomp_register_images_for_device)
15952 (gomp_target_init): New static functions.
15954 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
15955 Thomas Schwinge <thomas@codesourcery.com>
15956 Ilya Verbin <ilya.verbin@intel.com>
15957 Andrey Turetskiy <andrey.turetskiy@intel.com>
15959 * config.h.in: Regenerate.
15960 * configure: Regenerate.
15961 * configure.ac: Check for libdl, required for plugin support.
15962 (PLUGIN_SUPPORT): Define if plugins are supported.
15963 (enable_offload_targets): Support Intel MIC targets.
15964 (OFFLOAD_TARGETS): List of target names suitable for offloading.
15966 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15969 * configure: Regenerate.
15971 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15973 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
15975 2014-10-06 Marek Polacek <polacek@redhat.com>
15977 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
15978 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
15979 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
15980 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
15982 2014-10-06 Marek Polacek <polacek@redhat.com>
15984 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
15985 * testsuite/libgomp.c/nqueens-1.c: Likewise.
15986 * testsuite/libgomp.c/pr26943-3.c: Likewise.
15987 * testsuite/libgomp.c/pr26943-4.c: Likewise.
15988 * testsuite/libgomp.c/pr36802-2.c: Likewise.
15989 * testsuite/libgomp.c/pr36802-3.c: Likewise.
15990 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
15991 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
15992 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
15993 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
15994 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
15995 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
15996 * testsuite/libgomp.c/omp-single-1.c: Likewise.
15997 * testsuite/libgomp.c/omp-single-2.c: Likewise.
15998 * testsuite/libgomp.c/omp_matvec.c: Likewise.
15999 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
16000 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
16001 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
16004 2014-10-03 Jakub Jelinek <jakub@redhat.com>
16007 * testsuite/libgomp.c/pr61200.c: New test.
16009 2014-09-18 Jakub Jelinek <jakub@redhat.com>
16012 * testsuite/libgomp.c++/pr63248.C: New test.
16014 2014-08-04 Jakub Jelinek <jakub@redhat.com>
16016 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
16017 is not zero, but taskgroup->children is NULL and there are
16018 any task->children, schedule those instead of waiting.
16019 * testsuite/libgomp.c/depend-6.c: New test.
16020 * testsuite/libgomp.c/depend-7.c: New test.
16021 * testsuite/libgomp.c/depend-8.c: New test.
16022 * testsuite/libgomp.c/depend-9.c: New test.
16023 * testsuite/libgomp.c/depend-10.c: New test.
16025 2014-08-01 Jakub Jelinek <jakub@redhat.com>
16027 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
16028 (struct gomp_taskwait): New type.
16029 (struct gomp_task): Add taskwait and parent_depends_on, remove
16030 in_taskwait and taskwait_sem fields.
16031 (gomp_finish_task): Don't destroy taskwait_sem.
16032 * task.c (gomp_init_task): Don't init in_taskwait, instead init
16033 taskwait and parent_depends_on.
16034 (GOMP_task): For if (0) tasks with depend clause that depend on
16035 earlier tasks don't defer them, instead call
16036 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
16037 Initialize redundant_out field, for redundant out entries just
16038 move them at the end of linked list instead of removing them
16039 completely, and set redundant_out flag instead of redundant.
16040 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
16042 (gomp_task_run_post_handle_dependers): If parent is in
16043 gomp_task_maybe_wait_for_dependencies and newly runnable task
16044 is not parent_depends_on, queue it in parent->children linked
16045 list after all runnable tasks with parent_depends_on set.
16046 Adjust for addition of taskwait indirection.
16047 (gomp_task_run_post_remove_parent): If parent is in
16048 gomp_task_maybe_wait_for_dependencies and task to be removed
16049 is parent_depends_on, decrement n_depend and if needed awake
16050 parent. Adjust for addition of taskwait indirection.
16051 (GOMP_taskwait): Adjust for addition of taskwait indirection.
16052 (gomp_task_maybe_wait_for_dependencies): New function.
16053 * testsuite/libgomp.c/depend-5.c: New test.
16055 2014-07-13 Tobias Burnus <burnus@net-b.de>
16057 * testsuite/libgomp.fortran/pr34020.f90: Make compile
16058 with TS 18508/Fortran 2015.
16060 2014-07-06 Marek Polacek <polacek@redhat.com>
16063 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
16065 2014-07-03 Jakub Jelinek <jakub@redhat.com>
16067 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
16068 matches regex $lang_source_re, add $lang_include_flags to options.
16069 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
16070 * testsuite/libgomp.c++/c++.exp: Likewise.
16071 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
16072 and lang_include_flags instead of adding -fintrinsic-modules-path= to
16074 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
16076 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
16078 * testsuite/libgomp.fortran/fortran.exp: Explain
16079 gfortran-dg-runtest usage.
16081 2014-06-25 Jakub Jelinek <jakub@redhat.com>
16083 * testsuite/libgomp.fortran/simd5.f90: New test.
16084 * testsuite/libgomp.fortran/simd6.f90: New test.
16085 * testsuite/libgomp.fortran/simd7.f90: New test.
16087 2014-06-24 Jakub Jelinek <jakub@redhat.com>
16089 * testsuite/libgomp.c/for-2.c: Define SC to static for
16090 #pragma omp for simd testing.
16091 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
16092 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
16094 * testsuite/libgomp.c/simd-14.c: New test.
16095 * testsuite/libgomp.c/simd-15.c: New test.
16096 * testsuite/libgomp.c/simd-16.c: New test.
16097 * testsuite/libgomp.c/simd-17.c: New test.
16098 * testsuite/libgomp.c++/for-10.C: Define SC to static for
16099 #pragma omp for simd testing.
16100 * testsuite/libgomp.c++/simd10.C: New test.
16101 * testsuite/libgomp.c++/simd11.C: New test.
16102 * testsuite/libgomp.c++/simd12.C: New test.
16103 * testsuite/libgomp.c++/simd13.C: New test.
16105 * testsuite/libgomp.fortran/aligned1.f03: New test.
16106 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
16107 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
16108 tasks with !$omp parallel !$omp single.
16109 * testsuite/libgomp.fortran/target8.f90: New test.
16110 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
16111 not to use trim in the combiner, instead call elemental function.
16112 (fn): New elemental function.
16113 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
16115 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
16117 * testsuite/libgomp.fortran/udr12.f90: New test.
16118 * testsuite/libgomp.fortran/udr13.f90: New test.
16119 * testsuite/libgomp.fortran/udr14.f90: New test.
16120 * testsuite/libgomp.fortran/udr15.f90: New test.
16122 2014-06-18 Jakub Jelinek <jakub@redhat.com>
16124 * omp_lib.f90.in (openmp_version): Set to 201307.
16125 * omp_lib.h.in (openmp_version): Likewise.
16126 * testsuite/libgomp.c/target-8.c: New test.
16127 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
16128 and inbranch clauses.
16129 * testsuite/libgomp.fortran/depend-3.f90: New test.
16130 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
16132 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16133 * testsuite/libgomp.fortran/target1.f90: New test.
16134 * testsuite/libgomp.fortran/target2.f90: New test.
16135 * testsuite/libgomp.fortran/target3.f90: New test.
16136 * testsuite/libgomp.fortran/target4.f90: New test.
16137 * testsuite/libgomp.fortran/target5.f90: New test.
16138 * testsuite/libgomp.fortran/target6.f90: New test.
16139 * testsuite/libgomp.fortran/target7.f90: New test.
16141 2014-06-10 Jakub Jelinek <jakub@redhat.com>
16144 * testsuite/libgomp.fortran/allocatable9.f90: New test.
16145 * testsuite/libgomp.fortran/allocatable10.f90: New test.
16146 * testsuite/libgomp.fortran/allocatable11.f90: New test.
16147 * testsuite/libgomp.fortran/allocatable12.f90: New test.
16148 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
16149 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
16150 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
16151 * testsuite/libgomp.fortran/associate1.f90: New test.
16152 * testsuite/libgomp.fortran/associate2.f90: New test.
16153 * testsuite/libgomp.fortran/procptr1.f90: New test.
16155 2014-06-06 Jakub Jelinek <jakub@redhat.com>
16157 * testsuite/libgomp.fortran/simd1.f90: New test.
16158 * testsuite/libgomp.fortran/udr1.f90: New test.
16159 * testsuite/libgomp.fortran/udr2.f90: New test.
16160 * testsuite/libgomp.fortran/udr3.f90: New test.
16161 * testsuite/libgomp.fortran/udr4.f90: New test.
16162 * testsuite/libgomp.fortran/udr5.f90: New test.
16163 * testsuite/libgomp.fortran/udr6.f90: New test.
16164 * testsuite/libgomp.fortran/udr7.f90: New test.
16165 * testsuite/libgomp.fortran/udr8.f90: New test.
16166 * testsuite/libgomp.fortran/udr9.f90: New test.
16167 * testsuite/libgomp.fortran/udr10.f90: New test.
16168 * testsuite/libgomp.fortran/udr11.f90: New test.
16170 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
16172 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
16173 vect_simd_clones effective target.
16174 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
16176 2014-05-21 Jakub Jelinek <jakub@redhat.com>
16178 PR middle-end/61252
16179 * testsuite/libgomp.c++/simd-9.C: New test.
16181 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
16183 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
16184 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
16185 texts according to their @menu entry positions.
16187 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16189 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
16190 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
16191 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
16192 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
16193 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
16194 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
16195 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
16196 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
16197 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
16198 * testsuite/libgomp.fortran/depend-1.f90: New test.
16199 * testsuite/libgomp.fortran/depend-2.f90: New test.
16200 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
16201 * testsuite/libgomp.fortran/simd1.f90: New test.
16202 * testsuite/libgomp.fortran/simd2.f90: New test.
16203 * testsuite/libgomp.fortran/simd3.f90: New test.
16204 * testsuite/libgomp.fortran/simd4.f90: New test.
16205 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
16207 2014-05-02 Jakub Jelinek <jakub@redhat.com>
16209 * testsuite/libgomp.c/simd-10.c: New test.
16210 * testsuite/libgomp.c/simd-11.c: New test.
16211 * testsuite/libgomp.c/simd-12.c: New test.
16212 * testsuite/libgomp.c/simd-13.c: New test.
16214 2014-04-24 Jakub Jelinek <jakub@redhat.com>
16216 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
16217 atomic type clauses in any order and optional comma in between.
16218 * testsuite/libgomp.c++/atomic-15.C: Likewise.
16219 * testsuite/libgomp.c/atomic-17.c: Likewise.
16221 * testsuite/libgomp.c/simd-7.c: New test.
16222 * testsuite/libgomp.c/simd-8.c: New test.
16223 * testsuite/libgomp.c/simd-9.c: New test.
16224 * testsuite/libgomp.c/loop-16.c: New test.
16226 2014-04-02 Richard Henderson <rth@redhat.com>
16228 * config/linux/futex.h (futex_wait): Get error value from errno.
16229 (futex_wake): Likewise.
16231 2014-03-25 Jakub Jelinek <jakub@redhat.com>
16234 * testsuite/libgomp.c++/udr-11.C: New test.
16235 * testsuite/libgomp.c++/udr-12.C: New test.
16236 * testsuite/libgomp.c++/udr-13.C: New test.
16237 * testsuite/libgomp.c++/udr-14.C: New test.
16238 * testsuite/libgomp.c++/udr-15.C: New test.
16239 * testsuite/libgomp.c++/udr-16.C: New test.
16240 * testsuite/libgomp.c++/udr-17.C: New test.
16241 * testsuite/libgomp.c++/udr-18.C: New test.
16242 * testsuite/libgomp.c++/udr-19.C: New test.
16244 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
16246 Update copyright years
16248 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
16250 * hashtab.h: Use the standard form for the copyright notice.
16252 2014-01-02 Tobias Burnus <burnus@net-b.de>
16254 * libgomp.texi: Bump @copying's copyright year.
16256 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
16258 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
16259 alloca () with __builtin_alloca ().
16260 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
16261 * testsuite/libgomp.c/lock-3.c: Likewise.
16262 * testsuite/libgomp.c/pr48591.c: Likewise.
16264 2013-12-17 Jakub Jelinek <jakub@redhat.com>
16267 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
16270 2013-12-16 Jakub Jelinek <jakub@redhat.com>
16273 * testsuite/libgomp.c/pr58756.c: New test.
16275 2013-12-12 Jakub Jelinek <jakub@redhat.com>
16278 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
16281 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
16283 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
16285 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
16286 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
16287 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
16288 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
16291 * libgomp_g.h: Include <stddef.h> for size_t.
16293 * libgomp.spec.in: Update comment about libgomp's dependencies.
16294 * configure.ac: Likewise.
16295 * configure: Regenerate.
16297 2013-10-16 Tobias Burnus <burnus@net-b.de>
16299 * libgomp.texi: (Runtime Library Routines): Update references for
16300 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
16301 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
16302 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
16303 (Environment Variables): Update references for OpenMP 4.0. Add
16304 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
16305 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
16308 2013-10-14 Jakub Jelinek <jakub@redhat.com>
16310 * env.c (parse_bind_var): Initialize value to avoid
16311 (false positive) warning.
16313 2013-10-12 Jakub Jelinek <jakub@redhat.com>
16316 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
16318 (gomp_init_num_threads): Move i variable declaration into
16319 #ifdef CPU_ALLOC_SIZE block.
16320 * config/linux/affinity.c (gomp_affinity_init_level): Test
16321 gomp_places_list_len == 0 rather than gomp_places_list == 0
16322 when checking for topology reading error.
16323 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
16324 * env.c (parse_affinity): Add ignore argument, if true, don't populate
16325 gomp_places_list, only parse env var and always return false.
16326 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
16327 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
16328 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
16329 and either of these variables were parsed correctly into a places
16332 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
16333 Jakub Jelinek <jakub@redhat.com>
16335 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
16336 of 5 loopfn matches.
16337 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
16338 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
16339 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
16340 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
16341 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
16342 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16343 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16344 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
16346 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
16348 * Makefile.am (omp_lib.mod): Streamline rule.
16349 * Makefile.in: Regenerate.
16351 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
16354 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
16355 * testsuite/libgomp.fortran/lib1.f90: Likewise.
16356 * testsuite/libgomp.fortran/lib2.f: Likewise.
16357 * testsuite/libgomp.fortran/lib3.f: Likewise.
16359 * configure.ac: Typo fix.
16360 * configure: Regenerate.
16362 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
16363 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16365 * omp.h.in: Don't touch the user's namespace.
16367 2013-10-11 Jakub Jelinek <jakub@redhat.com>
16368 Tobias Burnus <burnus@net-b.de>
16369 Richard Henderson <rth@redhat.com>
16371 * target.c: New file.
16372 * Makefile.am (libgomp_la_SOURCES): Add target.c.
16373 * Makefile.in: Regenerated.
16374 * libgomp_g.h (GOMP_task): Add depend argument.
16375 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
16376 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
16377 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
16378 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
16379 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
16380 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
16381 GOMP_taskgroup_start, GOMP_taskgroup_end,
16382 GOMP_parallel_sections): New prototypes.
16383 * fortran.c (omp_is_initial_device): Add ialias_redirect.
16384 (omp_is_initial_device_): New function.
16385 (ULP, STR1, STR2, ialias_redirect): Removed.
16386 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
16387 omp_set_default_device_8_, omp_get_default_device_,
16388 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
16390 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
16391 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
16392 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
16394 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
16395 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
16396 omp_set_default_device, omp_set_default_device_,
16397 omp_set_default_device_8_, omp_get_default_device,
16398 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
16399 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
16400 omp_get_team_num_): Export @@OMP_4.0.
16401 * team.c (struct gomp_thread_start_data): Add place field.
16402 (gomp_thread_start): Clear thr->thread_pool and
16403 thr->task before returning. Use gomp_team_barrier_wait_final
16404 instead of gomp_team_barrier_wait. Initialize thr->place.
16405 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
16406 team_cancelled and task_queued_count fields.
16407 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
16408 before calling pthread_exit.
16409 (gomp_free_thread): No longer static. Use
16410 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
16411 (gomp_team_start): Add flags argument. Set
16412 thr->thread_pool->threads_busy to nthreads immediately after creating
16413 new pool. Use gomp_managed_threads_lock instead of
16414 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
16415 (gomp_team_end): Use gomp_managed_threads_lock instead of
16416 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
16417 of gomp_team_barrier_wait. If team->team_cancelled, call
16418 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
16419 rather than thr->ts.work_share.
16420 (initialize_team): Don't call gomp_sem_init here.
16421 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
16423 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
16424 * env.c (gomp_global_icv): Add default_device_var, target_data and
16425 bind_var initializers.
16426 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
16427 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
16428 gomp_places_list_len): New variables.
16429 (parse_bind_var, parse_one_place, parse_places_var): New functions.
16430 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
16432 (gomp_cancel_var): New global variable.
16433 (parse_int): New function.
16434 (handle_omp_display_env): New function.
16435 (initialize_env): Use it. Initialize default_device_var.
16436 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
16437 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
16438 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
16439 been successfully parsed (and call gomp_init_affinity in that case).
16440 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16441 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16442 omp_get_team_num, omp_is_initial_device): New functions.
16443 * libgomp.h: Include stdlib.h.
16444 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
16446 (struct target_mem_desc): Forward declare.
16447 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
16448 and thread_limit_var fields.
16449 (gomp_get_num_devices): New prototype.
16450 (gomp_cancel_var): New extern decl.
16451 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
16452 team_cancelled and task_queued_count fields. Add comments about
16453 task_{,queued_,running_}count.
16454 (gomp_cancel_kind): New enum.
16455 (gomp_work_share_end_cancel): New prototype.
16456 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
16457 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
16459 (struct gomp_taskgroup): New type.
16460 (struct gomp_task_depend_entry,
16461 struct gomp_dependers_vec): New types.
16462 (gomp_finish_task): Free depend_hash if non-NULL.
16463 (struct gomp_team_state): Add place_partition_off
16464 and place_partition_len fields.
16465 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
16466 gomp_places_list_len): New extern decls.
16467 (struct gomp_thread): Add place field.
16468 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
16469 (gomp_init_thread_affinity): Add place argument.
16470 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16471 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16472 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16473 gomp_affinity_init_level, gomp_affinity_print_place): New
16475 (gomp_team_start): Add flags argument.
16476 (gomp_thread_limit_var, gomp_remaining_threads_count,
16477 gomp_remaining_threads_lock): Remove.
16478 (gomp_managed_threads_lock): New variable.
16479 (struct gomp_thread_pool): Add threads_busy field.
16480 (gomp_free_thread): New prototype.
16481 * task.c: Include hashtab.h.
16482 (hash_entry_type): New typedef.
16483 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
16484 (gomp_init_task): Clear dependers, depend_hash, depend_count,
16485 copy_ctors_done and taskgroup fields.
16486 (GOMP_task): Add depend argument, handle depend clauses. If
16487 gomp_team_barrier_cancelled or if it's taskgroup has been
16488 cancelled, don't queue or start new tasks. Set copy_ctors_done
16489 field if needed. Initialize taskgroup field. If copy_ctors_done
16490 and already cancelled, don't discard the task. If taskgroup is
16491 non-NULL, enqueue the task into taskgroup queue. Increment
16492 num_children field in taskgroup. Increment task_queued_count.
16493 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
16494 gomp_task_run_post_remove_taskgroup): New inline functions.
16495 (gomp_task_run_post_handle_depend_hash,
16496 gomp_task_run_post_handle_dependers,
16497 gomp_task_run_post_handle_depend): New functions.
16498 (GOMP_taskwait): Use them. If more than one new tasks
16499 have been queued, wake other threads if needed.
16500 (gomp_barrier_handle_tasks): Likewise. If
16501 gomp_team_barrier_cancelled, don't start any new tasks, just free
16503 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
16505 (omp_proc_bind_kind, omp_proc_bind_false,
16506 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
16507 omp_proc_bind_spread): New params.
16508 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16509 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16510 omp_get_team_num, omp_is_initial_device): New interfaces.
16511 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
16512 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
16513 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
16514 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
16515 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
16516 useless use omp_lib_kinds.
16517 * omp.h.in (omp_proc_bind_t): New typedef.
16518 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16519 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16520 omp_get_team_num, omp_is_initial_device): New prototypes.
16521 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
16522 through to gomp_team_start.
16523 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
16524 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
16525 Adjust gomp_parallel_loop_start callers.
16526 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
16527 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
16528 GOMP_loop_end_cancel): New functions.
16529 (GOMP_parallel_end): Add ialias_redirect.
16530 * hashtab.h: New file.
16531 * libgomp.texi (Environment Variables): Minor cleanup,
16532 update section refs to OpenMP 4.0rc2.
16533 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
16534 environment variables.
16535 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
16536 team->work_shares_to_free to thr->ts.work_share before calling
16538 (gomp_work_share_end_cancel): New function.
16539 * config/linux/proc.c: Include errno.h.
16540 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
16541 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
16542 sizeof (cpu_set_t) to determine number of iterations. Fix up check
16543 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
16544 gomp_cpuset_size is sizeof (cpu_set_t).
16545 (gomp_init_num_threads): Initialize gomp_cpuset_size,
16546 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
16547 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
16548 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
16549 contain any logical CPUs.
16550 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
16551 is NULL. Use gomp_cpusetp instead of &cpuset and pass
16552 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
16553 pthread_getaffinity_np. Check gomp_places_list instead of
16554 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
16555 * config/linux/bar.c (gomp_barrier_wait_end,
16556 gomp_barrier_wait_last): Use BAR_* defines.
16557 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
16558 from state where needed. Set work_share_cancelled to 0 on last
16560 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
16561 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
16563 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
16564 Add cpusetsize argument.
16565 (gomp_cpuset_size, gomp_cpusetp): Declare.
16566 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
16567 (affinity_counter): Remove.
16568 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
16569 if CPU_ALLOC_SIZE isn't defined.
16570 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
16571 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
16572 bind current thread to the first place.
16573 (gomp_init_thread_affinity): Rewritten. Add place argument, just
16574 pthread_setaffinity_np to gomp_places_list[place].
16575 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16576 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16577 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16578 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
16579 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
16580 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
16581 (gomp_barrier_t): Add awaited_final field.
16582 (gomp_barrier_init): Initialize awaited_final field.
16583 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
16584 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
16586 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
16588 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
16589 gomp_team_barrier_cancelled): New inline functions.
16590 (gomp_barrier_last_thread,
16591 gomp_team_barrier_set_task_pending,
16592 gomp_team_barrier_clear_task_pending,
16593 gomp_team_barrier_set_waiting_for_tasks,
16594 gomp_team_barrier_waiting_for_tasks,
16595 gomp_team_barrier_done): Use BAR_* defines.
16596 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
16597 (gomp_barrier_wait_end): Use BAR_* defines.
16598 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
16599 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
16601 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
16602 gomp_team_barrier_cancel): New functions.
16603 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
16605 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16606 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16607 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16608 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
16609 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
16610 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
16611 (gomp_barrier_t): Add cancellable field.
16612 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
16613 gomp_team_barrier_cancel): New prototypes.
16614 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
16615 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
16616 gomp_team_barrier_cancelled): New inline functions.
16617 (gomp_barrier_wait_start, gomp_barrier_last_thread,
16618 gomp_team_barrier_set_task_pending,
16619 gomp_team_barrier_clear_task_pending,
16620 gomp_team_barrier_set_waiting_for_tasks,
16621 gomp_team_barrier_waiting_for_tasks,
16622 gomp_team_barrier_done): Use BAR_* defines.
16623 * barrier.c (GOMP_barrier_cancel): New function.
16624 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
16625 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
16626 omp_proc_bind_spread): New params.
16627 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16628 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16629 omp_get_team_num, omp_is_initial_device): New externals.
16630 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
16632 (gomp_resolve_num_threads): Adjust for thread_limit now being in
16633 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
16634 infinity. If not nested, just return minimum of max_num_threads
16635 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
16636 to the returned value. Otherwise, don't update atomically
16637 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
16638 (GOMP_parallel_end): Adjust for thread_limit now being in
16639 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
16640 infinity. Adjust threads_busy in the pool rather than
16641 gomp_remaining_threads_count. Remember team->nthreads and call
16642 gomp_team_end before adjusting threads_busy, if not nested
16643 afterwards, just set it to 1 non-atomically. Add ialias.
16644 (GOMP_parallel_start): Adjust gomp_team_start caller.
16645 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
16646 * testsuite/libgomp.c/affinity-1.c: New test.
16647 * testsuite/libgomp.c/atomic-15.c: New test.
16648 * testsuite/libgomp.c/atomic-16.c: New test.
16649 * testsuite/libgomp.c/atomic-17.c: New test.
16650 * testsuite/libgomp.c/cancel-for-1.c: New test.
16651 * testsuite/libgomp.c/cancel-for-2.c: New test.
16652 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
16653 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
16654 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
16655 * testsuite/libgomp.c/cancel-sections-1.c: New test.
16656 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
16657 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
16658 * testsuite/libgomp.c/depend-1.c: New test.
16659 * testsuite/libgomp.c/depend-2.c: New test.
16660 * testsuite/libgomp.c/depend-3.c: New test.
16661 * testsuite/libgomp.c/depend-4.c: New test.
16662 * testsuite/libgomp.c/for-1.c: New test.
16663 * testsuite/libgomp.c/for-1.h: New file.
16664 * testsuite/libgomp.c/for-2.c: New test.
16665 * testsuite/libgomp.c/for-2.h: New file.
16666 * testsuite/libgomp.c/for-3.c: New test.
16667 * testsuite/libgomp.c/pr58392.c: New test.
16668 * testsuite/libgomp.c/simd-1.c: New test.
16669 * testsuite/libgomp.c/simd-2.c: New test.
16670 * testsuite/libgomp.c/simd-3.c: New test.
16671 * testsuite/libgomp.c/simd-4.c: New test.
16672 * testsuite/libgomp.c/simd-5.c: New test.
16673 * testsuite/libgomp.c/simd-6.c: New test.
16674 * testsuite/libgomp.c/target-1.c: New test.
16675 * testsuite/libgomp.c/target-2.c: New test.
16676 * testsuite/libgomp.c/target-3.c: New test.
16677 * testsuite/libgomp.c/target-4.c: New test.
16678 * testsuite/libgomp.c/target-5.c: New test.
16679 * testsuite/libgomp.c/target-6.c: New test.
16680 * testsuite/libgomp.c/target-7.c: New test.
16681 * testsuite/libgomp.c/taskgroup-1.c: New test.
16682 * testsuite/libgomp.c/thread-limit-1.c: New test.
16683 * testsuite/libgomp.c/thread-limit-2.c: New test.
16684 * testsuite/libgomp.c/thread-limit-3.c: New test.
16685 * testsuite/libgomp.c/udr-1.c: New test.
16686 * testsuite/libgomp.c/udr-2.c: New test.
16687 * testsuite/libgomp.c/udr-3.c: New test.
16688 * testsuite/libgomp.c++/affinity-1.C: New test.
16689 * testsuite/libgomp.c++/atomic-10.C: New test.
16690 * testsuite/libgomp.c++/atomic-11.C: New test.
16691 * testsuite/libgomp.c++/atomic-12.C: New test.
16692 * testsuite/libgomp.c++/atomic-13.C: New test.
16693 * testsuite/libgomp.c++/atomic-14.C: New test.
16694 * testsuite/libgomp.c++/atomic-15.C: New test.
16695 * testsuite/libgomp.c++/cancel-for-1.C: New test.
16696 * testsuite/libgomp.c++/cancel-for-2.C: New test.
16697 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
16698 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
16699 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
16700 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
16701 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
16702 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
16703 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
16704 * testsuite/libgomp.c++/cancel-test.h: New file.
16705 * testsuite/libgomp.c++/for-9.C: New test.
16706 * testsuite/libgomp.c++/for-10.C: New test.
16707 * testsuite/libgomp.c++/for-11.C: New test.
16708 * testsuite/libgomp.c++/simd-1.C: New test.
16709 * testsuite/libgomp.c++/simd-2.C: New test.
16710 * testsuite/libgomp.c++/simd-3.C: New test.
16711 * testsuite/libgomp.c++/simd-4.C: New test.
16712 * testsuite/libgomp.c++/simd-5.C: New test.
16713 * testsuite/libgomp.c++/simd-6.C: New test.
16714 * testsuite/libgomp.c++/simd-7.C: New test.
16715 * testsuite/libgomp.c++/simd-8.C: New test.
16716 * testsuite/libgomp.c++/target-1.C: New test.
16717 * testsuite/libgomp.c++/target-2.C: New test.
16718 * testsuite/libgomp.c++/target-2-aux.cc: New file.
16719 * testsuite/libgomp.c++/target-3.C: New test.
16720 * testsuite/libgomp.c++/taskgroup-1.C: New test.
16721 * testsuite/libgomp.c++/udr-1.C: New test.
16722 * testsuite/libgomp.c++/udr-2.C: New test.
16723 * testsuite/libgomp.c++/udr-3.C: New test.
16724 * testsuite/libgomp.c++/udr-4.C: New test.
16725 * testsuite/libgomp.c++/udr-5.C: New test.
16726 * testsuite/libgomp.c++/udr-6.C: New test.
16727 * testsuite/libgomp.c++/udr-7.C: New test.
16728 * testsuite/libgomp.c++/udr-8.C: New test.
16729 * testsuite/libgomp.c++/udr-9.C: New test.
16731 2013-09-20 Jakub Jelinek <jakub@redhat.com>
16734 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
16737 2013-09-20 Alan Modra <amodra@gmail.com>
16739 * configure: Regenerate.
16741 2013-09-19 Jakub Jelinek <jakub@redhat.com>
16743 * testsuite/libgomp.c/sections-2.c: New test.
16745 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
16747 * testsuite/libgomp.fortran/strassen.f90:
16748 Add dg-skip-if aarch64_tiny.
16750 2013-06-20 Iain Sandoe <iain@codesourcery.com>
16751 Cesar Philippidis <cesar@codesourcery.com>
16753 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
16754 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
16755 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
16756 * testsuite/libgomp.fortran/fortran.exp: Likewise.
16757 * testsuite/libgomp.graphite/graphite.exp: Likewise.
16758 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
16759 Use dg-runtest rather than gfortran-dg-runtest.
16761 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
16763 * testsuite/libgomp.c/icv-2.c: Extend current handling of
16764 Linux-based x86 systems to cover all GNU systems.
16765 * testsuite/libgomp.c/lock-3.c: Likewise.
16766 * testsuite/libgomp.c/pr48591.c: Likewise.
16768 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
16770 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
16771 GNU/Hurd, as done for Linux-based systems.
16773 * config/posix/ptrlock.h: Fix comment.
16775 2013-05-27 Tobias Burnus <burnus@net-b.de>
16778 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
16779 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
16780 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
16781 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
16782 omp_destroy_nest_lock): Correct arguments to match the one in
16784 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
16785 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
16786 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
16787 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
16789 2013-05-16 Jakub Jelinek <jakub@redhat.com>
16791 * testsuite/libgomp.c/loop-13.c: New test.
16792 * testsuite/libgomp.c/loop-14.c: New test.
16793 * testsuite/libgomp.c/loop-15.c: New test.
16794 * testsuite/libgomp.c++/loop-13.C: New test.
16795 * testsuite/libgomp.c++/loop-14.C: New test.
16796 * testsuite/libgomp.c++/loop-15.C: New test.
16798 2013-02-06 Jakub Jelinek <jakub@redhat.com>
16800 PR middle-end/56217
16801 * testsuite/libgomp.c++/pr56217.C: New test.
16803 2013-02-01 Alan Modra <amodra@gmail.com>
16805 * task.c (GOMP_task, GOMP_taskwait): Comment.
16807 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
16808 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
16811 * config/linux/wait.h (do_spin): Use atomic load for addr.
16812 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
16813 for intptr and ptrlock.
16814 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
16817 2013-01-22 Alan Modra <amodra@gmail.com>
16821 * task.c (GOMP_task): Revert 2011-12-09 change.
16822 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
16823 barrier to read task->children..
16824 (gomp_barrier_handle_tasks): ..and matching atomic store with
16825 release barrier here when setting parent->children to NULL.
16827 2013-01-16 Jakub Jelinek <jakub@redhat.com>
16828 Tobias Burnus <burnus@net-b.de>
16831 * testsuite/libgomp.fortran/fortran.exp: Use
16832 -fintrinsic-modules-path= instead of
16833 -fintrinsic-modules-path.
16835 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
16837 Update copyright years.
16839 2012-12-19 Tobias Burnus <burnus@net-b.de>
16841 * testsuite/libgomp.fortran/fortran.exp: Set
16842 -fintrinsic-modules-path.
16844 2012-12-19 Tobias Burnus <burnus@net-b.de>
16846 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
16847 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
16849 2012-11-21 Jakub Jelinek <jakub@redhat.com>
16852 * team.c (gomp_free_thread): Decrease gomp_managed_threads
16853 if pool had any threads_used.
16855 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
16857 * testsuite/libgomp.c++/pr24455.C: Use
16858 -Wl,-undefined,dynamic_lookup on darwin.
16860 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
16862 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
16864 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
16866 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
16868 2012-10-23 Ian Bolton <ian.bolton@arm.com>
16869 Jim MacArthur <jim.macarthur@arm.com>
16870 Marcus Shawcroft <marcus.shawcroft@arm.com>
16871 Nigel Stephens <nigel.stephens@arm.com>
16872 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16873 Richard Earnshaw <rearnsha@arm.com>
16874 Sofiane Naci <sofiane.naci@arm.com>
16875 Stephen Thomas <stephen.thomas@arm.com>
16876 Tejas Belagod <tejas.belagod@arm.com>
16877 Yufeng Zhang <yufeng.zhang@arm.com>
16879 * configure.tgt: Add AArch64.
16881 2012-10-04 Jason Merrill <jason@redhat.com>
16883 * testsuite/libgomp.c++/tls-init1.C: New.
16885 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
16887 * configure: Regenerated.
16889 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
16891 * config/linux/mips/futex.h (sys_futex0): Change to static
16892 function with noinline, nomips16 attributes under MIPS16. Adjust
16893 asm statement to place 'li v0,SYS_futex' immediately before
16896 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
16898 * libgomp.texi (Library Index): Renamed from "Index" to prevent
16899 conflict with index.html on case-insensitive file systems.
16901 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
16903 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
16904 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
16906 2012-07-02 Richard Guenther <rguenther@suse.de>
16907 Michael Matz <matz@suse.de>
16908 Tobias Grosser <tobias@grosser.es>
16909 Sebastian Pop <sebpop@gmail.com>
16911 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
16912 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
16913 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16914 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16916 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
16918 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
16920 2012-06-22 Richard Guenther <rguenther@suse.de>
16922 Merge from graphite branch
16923 2012-01-13 Tobias Grosser <tobias@grosser.es>
16925 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
16926 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
16928 2012-06-07 Jakub Jelinek <jakub@redhat.com>
16930 PR middle-end/53580
16931 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
16932 use GOMP_barrier () call instead.
16933 * testsuite/libgomp.c/pr26943-3.c: Likewise.
16934 * testsuite/libgomp.c/pr26943-4.c: Likewise.
16935 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
16936 call GOMP_barrier instead.
16937 * testsuite/libgomp.fortran/vla5.f90: Likewise.
16939 2012-06-06 Jakub Jelinek <jakub@redhat.com>
16942 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
16943 argument to memset call.
16945 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
16947 * configure: Regenerated.
16949 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
16951 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
16953 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
16956 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
16958 2012-03-22 Jakub Jelinek <jakub@redhat.com>
16960 PR middle-end/52547
16961 * testsuite/libgomp.c/pr52547.c: New test.
16963 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16965 * testsuite/lib/libgomp.exp: load fortran-modules.exp
16967 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16969 * configure.tgt (mips-sgi-irix6*): Remove.
16971 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16973 * configure.tgt (alpha*-dec-osf*): Remove.
16975 * config/osf/sem.h: Remove.
16976 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
16978 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
16980 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
16982 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16985 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
16986 Remove ENABLE_SYMVERS_SOL2.
16987 * configure: Regenerate.
16988 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
16989 (PREPROCESS): New variable.
16990 (libgomp.ver): New target.
16991 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
16992 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
16993 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
16995 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
16996 * Makefile.in: Regenerate.
16998 2012-02-14 Walter Lee <walt@tilera.com>
17000 * configure.tgt: Handle tilegx and tilepro.
17001 * config/linux/tile/futex.h: New file.
17003 2012-02-08 Richard Guenther <rguenther@suse.de>
17005 PR tree-optimization/46886
17006 * testsuite/libgomp.c/pr46886.c: New testcase.
17008 2012-01-25 Matthias Klose <doko@ubuntu.com>
17010 * config/linux/arm: Remove empty directory.
17011 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
17013 2011-12-09 Alan Modra <amodra@gmail.com>
17016 * task.c (GOMP_taskwait): Don't access task->children outside of
17017 task_lock mutex region.
17018 (GOMP_task): Likewise.
17020 2011-12-06 Jakub Jelinek <jakub@redhat.com>
17023 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
17025 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
17026 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
17027 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17028 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17029 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
17031 2011-12-02 Alan Modra <amodra@gmail.com>
17033 * config/linux/affinity.c: Use atomic rather than sync builtin.
17034 * config/linux/lock.c: Likewise.
17035 * config/linux/ptrlock.h: Likewise.
17036 * config/linux/ptrlock.c: Likewise.
17037 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
17038 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
17039 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
17040 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
17041 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
17042 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
17043 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
17044 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
17045 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
17046 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
17048 2011-11-30 Alan Modra <amodra@gmail.com>
17051 * config/linux/bar.h: Use atomic rather than sync builtins.
17052 * config/linux/bar.c: Likewise. Add missing acquire
17053 synchronisation on generation field.
17054 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
17057 2011-11-30 Alan Modra <amodra@gmail.com>
17059 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
17060 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
17061 * config/linux/mutex.h: Use atomic rather than sync builtins.
17062 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
17063 * config/linux/omp-lock.h: Comment fix.
17064 * config/linux/arm/mutex.h: Delete.
17065 * config/linux/powerpc/mutex.h: Delete.
17066 * config/linux/ia64/mutex.h: Delete.
17067 * config/linux/mips/mutex.h: Delete.
17069 2011-11-30 Alan Modra <amodra@gmail.com>
17072 * config/linux/sem.h: Rewrite.
17073 * config/linux/sem.c: Rewrite.
17075 2011-11-28 Richard Henderson <rth@redhat.com>
17077 * libgomp.h (enum memmodel): New.
17079 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
17081 * configure: Regenerate.
17083 2011-10-10 Matthias Klose <doko@ubuntu.com>
17085 * config/posix95: Remove empty directory.
17087 2011-08-26 Jakub Jelinek <jakub@redhat.com>
17089 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
17091 2011-08-19 Jakub Jelinek <jakub@redhat.com>
17094 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
17095 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
17097 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17099 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
17101 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17104 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
17106 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
17108 * config/linux/proc.h: New.
17109 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
17110 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
17111 (gomp_init_num_threads): Update call to cpuset_popcount.
17112 (get_num_procs): Ditto.
17113 * config/linux/affinity.c (gomp_init_affinity): Call
17114 gomp_cpuset_popcount.
17116 2011-08-02 Jakub Jelinek <jakub@redhat.com>
17120 * omp.h.in (omp_in_final): New prototype.
17121 * omp_lib.f90.in (omp_in_final): New interface.
17122 (omp_integer_kind, omp_logical_kind): Remove
17123 and replace all its uses in the module with 4.
17124 (openmp_version): Change to 201107.
17125 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
17126 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
17127 kind for the parameters.
17128 (omp_in_final): New external.
17129 (openmp_version): Change to 201107.
17130 * task.c (omp_in_final): New function.
17131 (gomp_init_task): Initialize final_task.
17132 (GOMP_task): Remove unused attribute from flags. Handle final
17134 (GOMP_taskyield): New function.
17135 (omp_in_final): Return true if if (false) or final (true) task
17136 or descendant of final (true).
17137 * fortran.c (omp_in_final_): New function.
17138 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
17139 (GOMP_3.0): Export GOMP_taskyield.
17140 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
17142 (parse_unsigned_long_list): New function.
17143 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
17144 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
17145 even if parse_affinity returned false.
17146 * config/linux/affinity.c (gomp_init_affinity): Handle
17147 gomp_cpu_affinity_len == 0.
17148 * libgomp_g.h (GOMP_taskyield): New prototype.
17149 * libgomp.h (struct gomp_task): Add final_task field.
17150 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
17151 * team.c (gomp_team_start): Override new task's nthreads_var icv
17152 if list form OMP_NUM_THREADS has been used and it has value for
17153 the new nesting level.
17155 * testsuite/libgomp.c/atomic-11.c: New test.
17156 * testsuite/libgomp.c/atomic-12.c: New test.
17157 * testsuite/libgomp.c/atomic-13.c: New test.
17158 * testsuite/libgomp.c/atomic-14.c: New test.
17159 * testsuite/libgomp.c/reduction-6.c: New test.
17160 * testsuite/libgomp.c/task-5.c: New test.
17161 * testsuite/libgomp.c++/atomic-2.C: New test.
17162 * testsuite/libgomp.c++/atomic-3.C: New test.
17163 * testsuite/libgomp.c++/atomic-4.C: New test.
17164 * testsuite/libgomp.c++/atomic-5.C: New test.
17165 * testsuite/libgomp.c++/atomic-6.C: New test.
17166 * testsuite/libgomp.c++/atomic-7.C: New test.
17167 * testsuite/libgomp.c++/atomic-8.C: New test.
17168 * testsuite/libgomp.c++/atomic-9.C: New test.
17169 * testsuite/libgomp.c++/task-8.C: New test.
17170 * testsuite/libgomp.c++/reduction-4.C: New test.
17171 * testsuite/libgomp.fortran/allocatable7.f90: New test.
17172 * testsuite/libgomp.fortran/allocatable8.f90: New test.
17173 * testsuite/libgomp.fortran/crayptr3.f90: New test.
17174 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
17175 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
17176 * testsuite/libgomp.fortran/pointer1.f90: New test.
17177 * testsuite/libgomp.fortran/pointer2.f90: New test.
17178 * testsuite/libgomp.fortran/task4.f90: New test.
17180 2011-08-02 Tobias Burnus <burnus@net-b.de>
17182 * libgomp.texi: Update OpenMP spec references to 3.1.
17183 (omp_in_final,OMP_PROC_BIND): New sections.
17184 (OMP_NUM_THREADS): Document that the value can be now a list.
17185 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
17187 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
17189 * config/linux/x86/futex.h: Check __x86_64__ instead of
17192 2011-07-29 Jakub Jelinek <jakub@redhat.com>
17194 PR middle-end/49897
17195 PR middle-end/49898
17196 * testsuite/libgomp.c/pr49897-1.c: New test.
17197 * testsuite/libgomp.c/pr49897-2.c: New test.
17198 * testsuite/libgomp.c/pr49898-1.c: New test.
17199 * testsuite/libgomp.c/pr49898-2.c: New test.
17201 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
17203 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
17204 for ia32 instead of ilp32.
17206 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
17207 * testsuite/libgomp.c/atomic-6.c: Likewise.
17209 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
17211 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
17212 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
17214 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17217 * config/osf/sem.h: New file.
17218 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
17220 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17223 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
17226 2011-07-15 Jakub Jelinek <jakub@redhat.com>
17228 * config/linux/wait.h (do_spin): New inline, largely copied
17229 from do_wait, just don't do futex_wait here, instead return true if
17231 (do_wait): Implement using do_spin.
17232 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
17234 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17235 __sync_bool_compare_and_swap, pass the oldval to
17236 gomp_mutex_lock_slow.
17237 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
17238 If all mutex contenders are just spinning and not sleeping, don't
17239 change state to 2 unnecessarily. Optimize the loop when state has
17240 already become 2 to use just one atomic operation per loop instead
17242 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
17244 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17245 __sync_bool_compare_and_swap, pass the oldval to
17246 gomp_mutex_lock_slow.
17248 2011-06-22 Jakub Jelinek <jakub@redhat.com>
17251 * iter.c (gomp_iter_static_next): For chunk size 0
17252 only use n ceil/ nthreads size for the first
17253 n % nthreads threads in the team instead of
17254 all threads except for the last few ones which
17255 get less work or none at all.
17256 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
17257 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
17258 chunk argument, set run_sched_modifier to 0 for static
17259 resp. 1 for other kinds. If chunk argument is 0
17260 and not static, set value to 1.
17262 2011-05-19 Jakub Jelinek <jakub@redhat.com>
17265 * testsuite/libgomp.c++/pr49043.C: New test.
17268 * testsuite/libgomp.c++/pr48869.C: New test.
17270 2011-05-06 Jakub Jelinek <jakub@redhat.com>
17273 * fortran.c: Include limits.h.
17275 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
17277 (omp_set_num_threads_8_, omp_set_schedule_8_,
17278 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
17279 omp_get_team_size_8_): Use TO_INT macro.
17280 * testsuite/libgomp.fortran/pr48894.f90: New test.
17282 2011-04-13 Jakub Jelinek <jakub@redhat.com>
17284 PR middle-end/48591
17285 * testsuite/libgomp.c/pr48591.c: New test.
17287 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17290 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
17291 * configure: Regenerate.
17293 2011-02-27 Jakub Jelinek <jakub@redhat.com>
17296 * testsuite/libgomp.fortran/task3.f90: New test.
17298 2011-02-24 Tobias Burnus <burnus@net-b.de>
17300 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
17302 2011-02-23 Jakub Jelinek <jakub@redhat.com>
17305 * libgomp.texi (omp_get_wtime): Don't say time in the past
17306 must be Unix Epoch.
17308 2011-02-18 Jakub Jelinek <jakub@redhat.com>
17311 * testsuite/libgomp.fortran/fortran.exp: Check for both
17312 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
17313 but $blddir != "", still append ${blddir}/${lang_library_path}
17314 to ld_library_path.
17316 2011-02-16 Tobias Burnus <burnus@net-b.de>
17319 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
17320 of libquadmath.a before adding its libpath to ldflags.
17322 2011-02-14 Jakub Jelinek <jakub@redhat.com>
17325 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
17326 to FUTEX_WAIT futex syscall.
17327 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
17329 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17331 * configure: Regenerate.
17333 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
17336 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
17338 2011-01-16 Gerald Pfeifer
17340 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
17342 2010-12-14 Jakub Jelinek <jakub@redhat.com>
17345 * libgomp.fortran/allocatable6.f90: New test.
17347 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17349 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
17350 * configure: Regenerate.
17352 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
17356 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
17357 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
17358 * aclocal.m4: Regenerate.
17359 * configure: Regenerate.
17360 * Makefile.in: Regenerate.
17361 * testsuite/Makefile.in: Regenerate.
17363 2010-12-02 Jakub Jelinek <jakub@redhat.com>
17366 * libgomp.fortran/pr46753.f90: New test.
17369 * env.c (initialize_env): Default to spin count 300000
17370 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
17374 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
17375 at the end if sync builtins aren't supported.
17377 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17379 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
17381 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17383 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
17385 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
17387 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
17389 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17390 Tobias Burnus <burnus@net-b.de>
17394 * configure: Regenerate.
17396 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
17398 * config/linux/futex.h: New.
17399 * config/linux/arm/mutex.h: New.
17400 * configure.tgt (arm*-*-linux*): Add config path.
17402 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
17404 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17406 2010-09-23 Tobias Burnus <burnus@net-b.de>
17408 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
17409 Change Fortran datatype to LOGICAL.
17410 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
17411 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
17413 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17415 * configure: Regenerate.
17417 2010-07-26 Jakub Jelinek <jakub@redhat.com>
17419 * libgomp.texi: Add function keyword to a couple of Fortran
17420 interfaces, use integer instead of int for Fortran.
17422 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
17424 * libgomp.texi: Fix spelling and pasto problems throughout.
17425 Adjust prototypes to match code.
17427 2010-07-24 Tobias Burnus <burnus@net-b.de>
17429 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
17430 silence -fwhole-file warning.
17432 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17434 * configure.tgt (*-*-solaris2.[56]*): Removed.
17436 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17438 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
17439 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
17440 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
17441 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
17442 targetting solaris2*.
17443 * configure: Regenerate.
17444 * config.h.in: Regenerate.
17446 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
17447 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
17448 Add libgomp_version_dep.
17449 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
17451 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
17452 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
17453 * Makefile.in: Regenerate.
17455 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
17456 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
17457 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
17458 to common block, protected by
17459 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
17461 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
17463 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
17465 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
17468 * configure: Regenerate.
17470 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17473 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
17474 * configure: Regenerate.
17475 * Makefile.in: Regenerate.
17476 * testsuite/Makefile.in: Regenerate.
17478 2010-04-26 Jakub Jelinek <jakub@redhat.com>
17481 * testsuite/libgomp.c/pr43893.c: New test.
17482 * testsuite/libgomp.c++/pr43893.C: New test.
17484 2010-04-21 Jakub Jelinek <jakub@redhat.com>
17486 PR middle-end/43570
17487 * testsuite/libgomp.fortran/vla8.f90: New test.
17489 2010-04-20 Jakub Jelinek <jakub@redhat.com>
17492 * config/linux/affinity.c (gomp_init_affinity): Decrease
17493 gomp_available_cpus if affinity mask confines the process to fewer
17495 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
17496 non-NULL, just return gomp_available_cpus.
17499 * sections.c (gomp_sections_init): Initialize ws->mode.
17501 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
17503 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
17504 not unused bar variable.
17505 * configure: Regenerate.
17507 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17509 * Makefile.in: Regenerate.
17510 * aclocal.m4: Regenerate.
17511 * testsuite/Makefile.in: Regenerate.
17513 2010-03-22 Jakub Jelinek <jakub@redhat.com>
17516 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
17517 (initialize_env): Adjust callers.
17518 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
17519 when the argument is 0.
17521 * testsuite/libgomp.c/pr42942.c: New test.
17523 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
17525 PR middle-end/42644
17526 PR middle-end/42130
17527 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17528 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
17530 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17532 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
17533 * testsuite/libgomp.c++/task-6.C: Likewise.
17535 2010-01-28 Steve Ellcey <sje@cup.hp.com>
17537 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
17539 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
17541 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
17542 * configure: Regenerate.
17544 2010-01-26 Jakub Jelinek <jakub@redhat.com>
17547 * testsuite/libgomp.fortran/allocatable5.f90: New test.
17549 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
17551 * configure.ac: Test for executability of GFORTRAN.
17552 * configure: Regenerate.
17554 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17556 * configure: Regenerate.
17558 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
17561 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
17563 2010-01-03 Richard Guenther <rguenther@suse.de>
17565 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
17567 2009-12-23 Sebastian Pop <sebpop@gmail.com>
17569 * testsuite/libgomp.graphite/pr4118.c: New.
17571 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
17573 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
17574 for darwin, protect the test with require-effective-target tls_runtime.
17575 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
17577 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
17580 * testsuite/lib/libgomp.exp: Provide -B options to allow for
17581 link spec %s substitutions for static libraries.
17583 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
17586 * libgomp.graphite/force-parallel-2.c: Reduce array size.
17588 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17590 * Makefile.in: Regenerate.
17591 * configure: Regenerate.
17592 * testsuite/Makefile.in: Regenerate.
17594 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
17596 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
17597 settings for LC_ALL and LANG.
17599 2009-11-25 Jakub Jelinek <jakub@redhat.com>
17602 * testsuite/libgomp.fortran/pr42162.f90: New test.
17604 2009-11-13 Jakub Jelinek <jakub@redhat.com>
17606 PR middle-end/42029
17607 * testsuite/libgomp.c/pr42029.c: New test.
17609 2009-10-26 Jakub Jelinek <jakub@redhat.com>
17611 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
17612 *s. Accept ld version without text in ()s.
17613 * configure: Regenerated.
17615 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
17617 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
17619 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17622 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
17623 or a hyphen (happens with fortran language disabled).
17624 * configure: Regenerate.
17626 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17628 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
17629 use sed script portable to Solaris /bin/sed for extracting ld
17631 * configure: Regenerate.
17633 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
17635 * testsuite/libgomp.graphite/bounds.c: New test.
17637 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17639 * Makefile.am (libgomp_la_LINK): New.
17640 * Makefile.in: Regenerate.
17642 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17644 * configure.ac (AC_PREREQ): Bump to 2.64.
17646 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17648 * Makefile.am (install-html, install-pdf): Remove.
17649 * Makefile.in: Regenerate.
17651 * Makefile.in: Regenerate.
17652 * aclocal.m4: Regenerate.
17653 * config.h.in: Regenerate.
17654 * configure: Regenerate.
17655 * testsuite/Makefile.in: Regenerate.
17657 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17659 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
17660 * Makefile.in: Regenerate.
17662 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
17664 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
17665 * Makefile.in: Regenerate.
17667 2009-08-19 Tobias Burnus <burnus@net-b.de>
17670 omp_lib.h.in: Fix -std=f95 errors.
17672 2009-08-14 David Edelsohn <edelsohn@gnu.org>
17674 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
17675 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
17676 * testsuite/libgomp.graphite/graphite.exp: New.
17678 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
17680 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
17683 2009-08-04 David Daney <ddaney@caviumnetworks.com>
17685 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
17686 needed memory barrier semantics.
17687 * config/linux/mips/mutex.h: New file.
17689 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17691 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
17693 2009-07-16 Joseph Myers <joseph@codesourcery.com>
17695 * configure: Regenerate.
17697 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
17702 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
17703 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
17704 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
17706 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
17708 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
17709 options when choosing a multilib.
17711 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
17713 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
17714 ld_library_path. Use add_path. Add just find_libgcc_s to
17715 ld_library_path, not every libgcc multilib directory.
17716 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
17717 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
17718 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
17720 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
17722 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
17724 * Makefile.am (LTLDFLAGS): Define.
17726 * Makefile.in: Regenerate.
17728 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
17731 * testsuite/libgomp.fortran/fortran.exp: Don't link with
17732 libgfortranbegin, check existence of libgfortran.a instead of
17733 libgfortranbegin.a.
17735 2009-05-20 Jakub Jelinek <jakub@redhat.com>
17738 * team.c (gomp_thread_start): Destroy thr->release semaphore.
17739 (gomp_free_pool_helper): Likewise.
17741 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
17742 Jakub Jelinek <jakub@redhat.com>
17745 * testsuite/libgomp.fortran/workshare2.f90: New test.
17747 2009-04-09 Nick Clifton <nickc@redhat.com>
17749 * iter.c: Change copyright header to refer to version 3 of the
17750 GNU General Public License with version 3.1 of the GCC Runtime
17751 Library Exception and to point readers at the COPYING3 and
17752 COPYING3.RUNTIME files and the FSF's license web page.
17753 * alloc.c: Likewise.
17754 * barrier.c: Likewise.
17755 * config/bsd/proc.c: Likewise.
17756 * config/linux/affinity.c: Likewise.
17757 * config/linux/alpha/futex.h: Likewise.
17758 * config/linux/bar.c: Likewise.
17759 * config/linux/bar.h: Likewise.
17760 * config/linux/ia64/futex.h: Likewise.
17761 * config/linux/ia64/mutex.h: Likewise.
17762 * config/linux/lock.c: Likewise.
17763 * config/linux/mips/futex.h: Likewise.
17764 * config/linux/mutex.c: Likewise.
17765 * config/linux/mutex.h: Likewise.
17766 * config/linux/powerpc/futex.h: Likewise.
17767 * config/linux/proc.c: Likewise.
17768 * config/linux/ptrlock.c: Likewise.
17769 * config/linux/ptrlock.h: Likewise.
17770 * config/linux/s390/futex.h: Likewise.
17771 * config/linux/sem.c: Likewise.
17772 * config/linux/sem.h: Likewise.
17773 * config/linux/sparc/futex.h: Likewise.
17774 * config/linux/wait.h: Likewise.
17775 * config/linux/x86/futex.h: Likewise.
17776 * config/mingw32/proc.c: Likewise.
17777 * config/mingw32/time.c: Likewise.
17778 * config/posix/affinity.c: Likewise.
17779 * config/posix/bar.c: Likewise.
17780 * config/posix/bar.h: Likewise.
17781 * config/posix/lock.c: Likewise.
17782 * config/posix/mutex.h: Likewise.
17783 * config/posix/proc.c: Likewise.
17784 * config/posix/ptrlock.h: Likewise.
17785 * config/posix/sem.c: Likewise.
17786 * config/posix/sem.h: Likewise.
17787 * config/posix/time.c: Likewise.
17788 * config/posix95/lock.c: Likewise.
17789 * critical.c: Likewise.
17791 * error.c: Likewise.
17792 * fortran.c: Likewise.
17793 * iter_ull.c: Likewise.
17794 * libgomp.h: Likewise.
17795 * libgomp_f.h.in: Likewise.
17796 * libgomp_g.h: Likewise.
17797 * loop.c: Likewise.
17798 * loop_ull.c: Likewise.
17799 * omp.h.in: Likewise.
17800 * omp_lib.f90.in: Likewise.
17801 * omp_lib.h.in: Likewise.
17802 * ordered.c: Likewise.
17803 * parallel.c: Likewise.
17804 * sections.c: Likewise.
17805 * single.c: Likewise.
17806 * task.c: Likewise.
17807 * team.c: Likewise.
17808 * work.c: Likewise.
17810 2009-04-09 Jakub Jelinek <jakub@redhat.com>
17812 * testsuite/config/default.exp: Change copyright header to refer to
17813 version 3 of the GNU General Public License and to point readers
17814 at the COPYING3 file and the FSF's license web page.
17816 2009-04-08 Jakub Jelinek <jakub@redhat.com>
17818 PR middle-end/39573
17819 * libgomp.c++/pr39573.C: New test.
17821 2009-04-01 Jakub Jelinek <jakub@redhat.com>
17824 * testsuite/libgomp.c/pr39591-1.c: New test.
17825 * testsuite/libgomp.c/pr39591-2.c: New test.
17826 * testsuite/libgomp.c/pr39591-3.c: New test.
17828 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
17830 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
17831 * testsuite/libgomp.c/atomic-6.c: Ditto.
17833 2009-03-23 Jakub Jelinek <jakub@redhat.com>
17836 * testsuite/libgomp.c/loop-12.c: New test.
17837 * testsuite/libgomp.c/loop-11.c: New test.
17838 * testsuite/libgomp.c++/loop-11.C: New test.
17839 * testsuite/libgomp.c++/loop-12.C: New test.
17840 * testsuite/libgomp.c++/for-8.C: New test.
17842 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17844 * configure: Regenerate.
17846 2009-02-11 Jakub Jelinek <jakub@redhat.com>
17848 PR middle-end/39154
17849 * testsuite/libgomp.c/pr39154.c: New test.
17851 2009-01-30 Ian Lance Taylor <iant@google.com>
17853 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
17854 libgomp_ld_is_gold. Get gold version number.
17855 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
17856 * configure: Rebuild.
17858 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
17860 * testsuite/lib/libgomp.exp: Add -B option for targets that
17861 use libgfortran.a%s in their specs.
17863 2009-01-07 Jakub Jelinek <jakub@redhat.com>
17866 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
17867 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
17868 HAVE_AS_SYMVER_DIRECTIVE is not defined.
17869 * configure: Regenerated.
17870 * config.h.in: Likewise.
17872 2008-12-28 Jakub Jelinek <jakub@redhat.com>
17875 * testsuite/libgomp.c/pr38650.c: New test.
17876 * testsuite/libgomp.c++/pr38650.C: New test.
17878 2008-12-27 Jakub Jelinek <jakub@redhat.com>
17880 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
17882 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
17884 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
17886 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17888 * configure: Regenerate.
17890 2008-12-08 Jakub Jelinek <jakub@redhat.com>
17892 PR middle-end/36802
17893 * testsuite/libgomp.c/pr36802-1.c: New test.
17894 * testsuite/libgomp.c/pr36802-2.c: New test.
17895 * testsuite/libgomp.c/pr36802-3.c: New test.
17897 2008-12-01 Janis Johnson <janis187@us.ibm.com>
17900 * config/linux/powerpc/mutex.h: New.
17902 2008-12-01 Jakub Jelinek <jakub@redhat.com>
17905 * testsuite/libgomp.c++/for-7.C: New test.
17908 * testsuite/libgomp.c++/for-6.C: New test.
17910 2008-11-26 Janis Johnson <janis187@us.ibm.com>
17913 * testsuite/lib/libgomp.exp: Include new timeout library files.
17914 (libgomp_target_compile): Set timeout value from new proc.
17916 2008-11-13 Steve Ellcey <sje@cup.hp.com>
17919 * config/linux/ia64/mutex.h: New.
17921 2008-11-04 Tobias Burnus <burnus@net-b.de>
17924 * libgomp.texi (Runtime library routines, environment variables):
17925 Update for OpenMP version 3.0.
17927 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
17928 Steve Ellcey <sje@cup.hp.com>
17930 * configure: Regenerate for new libtool.
17931 * Makefile.in: Ditto.
17932 * testsuite/Makefile.in: Ditto.
17934 2008-09-19 Jakub Jelinek <jakub@redhat.com>
17935 Andreas Tobler <a.tobler@schweiz.org>
17937 * config/bsd/proc.c: New file.
17938 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
17939 * configure.ac: Check for header <sys/sysctl.h>
17940 * configure: Regenerate.
17941 * config.h.in: Likewise.
17943 2008-09-05 Janis Johnson <janis187@us.ibm.com>
17945 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
17947 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
17949 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
17950 * Makefile.in: Regenerated.
17951 * testsuite/Makefile.in: Regenerated.
17953 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
17955 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
17956 depend on blddir if blddir exists.
17957 (libgomp_target_compile): Likewise.
17958 * testsuite/libgomp.c++/c++.exp: Likewise.
17959 * testsuite/libgomp.fortran/fortran.exp: Likewise.
17961 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17963 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
17964 Do not list GPL as Invariant Section.
17966 2008-07-28 Ilie Garbacea <ilie@mips.com>
17967 Chao-ying Fu <fu@mips.com>
17969 * configure.tgt: Enable futex for MIPS.
17970 * config/linux/mips/futex.h: New file.
17972 2008-07-16 Jakub Jelinek <jakub@redhat.com>
17974 * team.c (gomp_team_end): Free team immediately if it has
17977 2008-07-08 David Edelsohn <edelsohn@gnu.org>
17979 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
17980 * testsuite/libgomp.fortran/fortran.exp: Same.
17981 * testsuite/libgomp.c/c.exp: Same.
17982 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
17983 directory to library path first.
17985 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
17987 * env.c (parse_stacksize): Add cast to avoid warning.
17988 (parse_spincount): Likewise.
17990 2008-06-27 Jakub Jelinek <jakub@redhat.com>
17992 * testsuite/libgomp.c/loop-10.c: New test.
17993 * libgomp.c/loop-3.c (main): Add lastprivate clause.
17994 * libgomp.c++/loop-6.C (main): Likewise.
17997 * testsuite/libgomp.c/debug-1.c: New test.
17999 2008-06-19 Jakub Jelinek <jakub@redhat.com>
18001 * testsuite/libgomp.c/nqueens-1.c: New test.
18004 * testsuite/libgomp.c++/task-7.C: New function.
18006 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18008 * configure: Regenerate.
18010 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18012 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
18013 mutex when HAVE_SYNC_BUILTINS isn't defined.
18015 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18017 * libgomp.texi (omp_test_lock): Fix typo.
18019 2008-06-12 Tobias Burnus <burnus@net-b.de>
18021 * omp_lib.f90.in: Add "implicit none".
18023 2008-06-12 Jakub Jelinek <jakub@redhat.com>
18025 PR middle-end/36506
18026 * testsuite/libgomp.c/reduction-5.c: New test.
18028 2008-06-11 Jakub Jelinek <jakub@redhat.com>
18030 * libgomp.h (struct gomp_task): Add in_tied_task field.
18031 * task.c (gomp_init_task): Initialize it.
18032 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
18033 unconditionally. Don't call gomp_team_barrier_wake if
18034 current task is implicit or if(0) from implicit and number of
18035 running tasks is equal to nthreads - 1.
18038 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
18039 omp_get_team_size_8): Fix pastos.
18042 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
18043 * configure: Regenerated.
18044 * config.h.in: Regenerated.
18045 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
18048 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
18051 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
18052 (GOMP_loop_ull_dynamic_start): Likewise.
18053 (GOMP_loop_ull_guided_start): Likewise.
18054 (GOMP_loop_ull_ordered_static_start): Likewise.
18055 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
18056 (GOMP_loop_ull_ordered_guided_start): Likewise.
18058 2008-06-06 Jakub Jelinek <jakub@redhat.com>
18059 Richard Henderson <rth@redhat.com>
18060 Ulrich Drepper <drepper@redhat.com>
18061 Jakob Blomer <jakob.blomer@ira.uka.de>
18063 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
18064 Substitute also OMP_*LOCK_25*.
18065 * configure: Regenerated.
18066 * config.h.in: Regenerated.
18067 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
18068 ptrlock.c and task.c.
18069 * Makefile.in: Regenerated.
18070 * testsuite/Makefile.in: Regenerated.
18071 * task.c: New file.
18072 * loop_ull.c: New file.
18073 * iter_ull.c: New file.
18074 * libgomp.h: Include ptrlock.h.
18075 (enum gomp_task_kind): New type.
18076 (struct gomp_team): Add task_lock, task_queue, task_count,
18077 task_running_count, single_count fields. Add
18078 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
18079 Remove work_share_lock, generation_mask,
18080 oldest_live_gen, num_live_gen and init_work_shares fields, add
18081 work work_share_list_alloc, work_share_list_free and work_share_chunk
18082 fields. Change work_shares from pointer to pointers into an array.
18083 Change ordered_release field into gomp_sem_t ** from flexible array
18084 member. Add implicit_task and initial_work_shares fields.
18085 Move close to the end of the struct.
18086 (struct gomp_team_state): Add single_count, last_work_share,
18087 active_level and level fields, remove work_share_generation.
18088 (gomp_barrier_handle_tasks): New prototype.
18089 (gomp_finish_task): New inline function.
18090 (struct gomp_work_share): Move chunk_size, end, incr into
18091 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
18092 next_ll fields. Reshuffle fields. Add next_alloc,
18093 next_ws, next_free and inline_ordered_team_ids fields, change
18094 ordered_team_ids into pointer from flexible array member.
18095 Add mode field. Put lock and next into a different cache line
18096 from most of the write-once fields.
18097 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
18098 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
18099 gomp_iter_ull_guided_next): New prototypes.
18100 (gomp_new_icv): New prototype.
18101 (struct gomp_thread): Add thread_pool and task fields.
18102 (struct gomp_thread_pool): New type.
18103 (gomp_new_team): New prototype.
18104 (gomp_team_start): Change type of last argument.
18105 (gomp_new_work_share): Removed.
18106 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
18107 (gomp_work_share_init_done): New static inline.
18108 (gomp_throttled_spin_count_var, gomp_available_cpus,
18109 gomp_managed_threads): New extern decls.
18110 (gomp_init_task): New prototype.
18111 (gomp_spin_count_var): New extern var decl.
18112 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
18113 or no alias support, or if not PIC.
18114 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
18115 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
18116 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
18117 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
18118 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
18119 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
18120 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
18121 gomp_test_nest_lock_25): New prototypes.
18122 (omp_lock_symver, strong_alias): Define.
18123 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
18125 (gomp_end_task): New.
18126 (struct gomp_task_icv, gomp_global_icv): New.
18127 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
18128 (struct gomp_task): New.
18129 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18130 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18132 (gomp_schedule_type): Reorder enum to match
18134 * team.c (struct gomp_thread_start_data): Add thread_pool and task
18136 (gomp_thread_start): Add gomp_team_barrier_wait call.
18137 For non-nested case remove clearing of docked thread thr fields.
18138 Use pool fields instead of global gomp_* variables. Use
18139 gomp_barrier_wait_last when needed. Initialize ts.active_level.
18140 Create tasks for each member thread.
18141 (free_team): Only destroy team barrier, task_lock here and free it.
18142 (gomp_free_thread): Free last_team if non-NULL.
18143 (gomp_team_end): Call gomp_team_barrier_wait instead of
18144 gomp_barrier_wait. For nested case call one extra
18145 gomp_barrier_wait. Move here some destruction from free_team.
18146 Call free_team on pool->last_team if any, rather than freeing
18147 current team. Destroy work_share_list_free_lock ifndef
18148 HAVE_SYNC_BUILTINS.
18149 (gomp_new_icv): New function.
18150 (gomp_threads, gomp_threads_size, gomp_threads_used,
18151 gomp_threads_dock): Removed.
18152 (gomp_thread_destructor): New variable.
18153 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
18155 (gomp_team_start): Create new pool if current thread doesn't have
18156 one. Use pool fields instead of global gomp_* variables.
18157 Initialize thread_pool field for new threads. Clear single_count.
18158 Change last argument from ws to team, don't create
18159 new team, set ts.work_share to &team->work_shares[0] and clear
18160 ts.last_work_share. Don't clear ts.work_share_generation.
18161 If number of threads changed, adjust atomically gomp_managed_threads.
18162 Use gomp_init_task instead of gomp_new_task,
18163 set thr->task to the corresponding implicit_task array entry.
18164 Create tasks for each member thread. Initialize ts.level.
18165 (initialize_team): Call pthread_key_create on
18166 gomp_thread_destructor.
18167 (team_destructor): New function.
18168 (new_team): Removed.
18169 (gomp_new_team): New function.
18170 (free_team): Free gomp_work_share blocks chained through next_alloc,
18171 instead of freeing work_shares and destroying work_share_lock.
18172 (gomp_team_end): Call gomp_fini_work_share. If number of threads
18173 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
18174 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
18175 of gomp_barrier_wait.
18176 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
18177 instead of gomp_barrier_wait. Call gomp_work_share_init_done
18178 if gomp_work_share_start returned true. Don't unlock ws->lock.
18179 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
18180 of gomp_barrier_wait.
18181 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
18182 gomp_work_share_init_done if gomp_work_share_start returned true.
18183 Don't unlock ws->lock.
18184 * work.c: Include stddef.h.
18185 (free_work_share): Use work_share_list_free_lock instead
18186 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
18187 Call gomp_fini_work_share and then either free ws if orphaned, or
18188 put it into work_share_list_free list of the current team.
18189 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
18191 (gomp_work_share_start, gomp_work_share_end,
18192 gomp_work_share_end_nowait): Rewritten.
18193 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
18194 (openmp_version): Set to 200805.
18195 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18196 omp_sched_guided, omp_sched_auto): New parameters.
18197 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18198 omp_set_max_active_levels, omp_get_max_active_levels,
18199 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18200 omp_get_active_level): New interfaces.
18201 * omp_lib.h.in (openmp_version): Set to 200805.
18202 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18203 omp_sched_guided, omp_sched_auto): New parameters.
18204 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18205 omp_set_max_active_levels, omp_get_max_active_levels,
18206 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18207 omp_get_active_level): New externals.
18208 * loop.c: Include limits.h.
18209 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
18211 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
18212 Likewise. Use gomp_icv.
18213 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
18214 ts.static_trip here.
18215 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
18216 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
18217 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
18218 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
18219 don't unlock ws->lock, otherwise lock it.
18220 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
18221 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
18222 (gomp_parallel_loop_start): Call gomp_new_team instead of
18223 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
18224 Adjust gomp_team_start caller. Pass 0 as second argument to
18225 gomp_resolve_num_threads.
18226 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
18227 If adding ws->chunk_size nthreads + 1 times after end won't
18228 overflow, set ws->mode to 1.
18229 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
18230 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
18231 GOMP_loop_ull_ordered_static_start,
18232 GOMP_loop_ull_ordered_dynamic_start,
18233 GOMP_loop_ull_ordered_guided_start,
18234 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
18235 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
18236 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
18237 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
18238 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
18240 * libgomp.map: Export lock routines also @@OMP_2.0.
18241 (GOMP_loop_ordered_dynamic_first,
18242 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
18243 GOMP_loop_ordered_static_first): Remove.
18244 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
18245 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
18246 GOMP_loop_ull_ordered_dynamic_next,
18247 GOMP_loop_ull_ordered_dynamic_start,
18248 GOMP_loop_ull_ordered_guided_next,
18249 GOMP_loop_ull_ordered_guided_start,
18250 GOMP_loop_ull_ordered_runtime_next,
18251 GOMP_loop_ull_ordered_runtime_start,
18252 GOMP_loop_ull_ordered_static_next,
18253 GOMP_loop_ull_ordered_static_start,
18254 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
18255 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
18256 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
18257 (omp_set_schedule, omp_get_schedule,
18258 omp_get_thread_limit, omp_set_max_active_levels,
18259 omp_get_max_active_levels, omp_get_level,
18260 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
18261 omp_set_schedule_, omp_set_schedule_8_,
18262 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
18263 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
18264 omp_get_max_active_levels_, omp_get_level_,
18265 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
18266 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
18267 New exports @@OMP_3.0.
18268 * omp.h.in (omp_sched_t): New type.
18269 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18270 omp_set_max_active_levels, omp_get_max_active_levels,
18271 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18272 omp_get_active_level): New prototypes.
18273 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
18274 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
18275 gomp_thread_limit_var, gomp_remaining_threads_count,
18276 gomp_remaining_threads_lock): New variables.
18277 (parse_spincount): New function.
18278 (initialize_env): Call gomp_init_num_threads unconditionally.
18279 Initialize gomp_available_cpus. Call parse_spincount,
18280 initialize gomp_{,throttled_}spin_count_var
18281 depending on presence and value of OMP_WAIT_POLICY and
18282 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
18283 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
18284 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
18285 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
18286 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
18287 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18288 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18289 (gomp_global_icv): New.
18290 (parse_schedule): Use it. Parse "auto".
18291 (omp_set_num_threads): Use gomp_icv.
18292 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
18294 (omp_get_max_threads): Move from parallel.c.
18295 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18296 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
18298 (parse_stacksize, parse_wait_policy): New functions.
18299 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
18300 both wrappers for compatibility and new locks.
18301 (omp_set_schedule, omp_get_schedule,
18302 omp_get_thread_limit, omp_set_max_active_levels,
18303 omp_get_max_active_levels, omp_get_level,
18304 omp_get_ancestor_thread_num, omp_get_team_size,
18305 omp_get_active_level): New ialias_redirect.
18306 (omp_set_schedule_, omp_set_schedule_8_,
18307 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
18308 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
18309 omp_get_max_active_levels_, omp_get_level_,
18310 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
18311 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
18313 * parallel.c: Include limits.h.
18314 (gomp_resolve_num_threads): Add count argument. Rewritten.
18315 (GOMP_parallel_start): Call gomp_new_team and pass that as last
18316 argument to gomp_team_start. Pass 0 as second argument to
18317 gomp_resolve_num_threads.
18318 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
18319 if gomp_thread_limit_var != ULONG_MAX.
18320 (omp_in_parallel): Implement using ts.active_level.
18321 (omp_get_max_threads): Move to env.c.
18322 (omp_get_level, omp_get_ancestor_thread_num,
18323 omp_get_team_size, omp_get_active_level): New functions,
18325 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
18326 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
18327 gomp_iter_dynamic_next instead of the _locked variant and don't take
18328 lock around it, otherwise acquire it before calling
18329 gomp_iter_dynamic_next_locked.
18330 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
18331 gomp_iter_dynamic_next instead of the _locked variant and don't take
18333 (GOMP_parallel_sections_start): Call gomp_new_team instead of
18334 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
18335 Adjust gomp_team_start caller. Pass count as second argument to
18336 gomp_resolve_num_threads, don't adjust num_threads after the call.
18338 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
18339 ws->chunk_size by incr.
18340 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
18342 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
18344 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
18345 (omp_check_defines): Check even the compat defines.
18346 * config/linux/ptrlock.c: New file.
18347 * config/linux/ptrlock.h: New file.
18348 * config/linux/wait.h: New file.
18349 * config/posix/ptrlock.c: New file.
18350 * config/posix/ptrlock.h: New file.
18351 * config/linux/bar.h (gomp_team_barrier_wait,
18352 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
18353 (gomp_team_barrier_set_task_pending,
18354 gomp_team_barrier_clear_task_pending,
18355 gomp_team_barrier_set_waiting_for_tasks,
18356 gomp_team_barrier_waiting_for_tasks,
18357 gomp_team_barrier_done): New inlines.
18358 (gomp_barrier_t): Rewritten.
18359 (gomp_barrier_state_t): New typedef.
18360 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
18361 gomp_barrier_wait_start): Rewritten.
18362 (gomp_barrier_wait_end): Change second argument to
18363 gomp_barrier_state_t.
18364 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
18366 * config/linux/bar.c: Include wait.h instead of libgomp.h and
18368 (gomp_barrier_wait_end): Rewritten.
18369 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
18370 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
18371 * config/posix/bar.h (gomp_barrier_t): Add generation field.
18372 (gomp_barrier_state_t): New typedef.
18373 (gomp_team_barrier_wait,
18374 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
18375 (gomp_barrier_wait_start): Or all but low 2 bits from generation
18376 into the return value. Return gomp_barrier_state_t.
18377 (gomp_team_barrier_set_task_pending,
18378 gomp_team_barrier_clear_task_pending,
18379 gomp_team_barrier_set_waiting_for_tasks,
18380 gomp_team_barrier_waiting_for_tasks,
18381 gomp_team_barrier_done): New inlines.
18382 (gomp_barrier_wait_end): Change second argument to
18383 gomp_barrier_state_t.
18384 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
18386 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
18387 (gomp_barrier_wait_end): Change second argument to
18388 gomp_barrier_state_t.
18389 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
18390 gomp_team_barrier_wake): New functions.
18391 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
18393 (gomp_futex_wake, gomp_futex_wait): New variables.
18394 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
18395 * config/linux/lock.c: Rewrite to make locks task owned,
18396 for backwards compatibility provide the old entrypoints
18397 if symbol versioning. Include wait.h instead of libgomp.h and
18399 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
18400 * config/posix95/lock.c: Rewrite to make locks task owned,
18401 for backwards compatibility provide the old entrypoints
18402 if symbol versioning.
18403 * config/posix/lock.c: Rewrite to make locks task owned,
18404 for backwards compatibility provide the old entrypoints
18405 if symbol versioning.
18406 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
18407 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
18408 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
18409 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18410 (sys_futex0): Return error code.
18411 (futex_wake, futex_wait): If ENOSYS was returned, clear
18412 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18413 (cpu_relax, atomic_write_barrier): New static inlines.
18414 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18415 (futex_wake, futex_wait): If ENOSYS was returned, clear
18416 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18417 (cpu_relax, atomic_write_barrier): New static inlines.
18418 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18419 (sys_futex0): Return error code.
18420 (futex_wake, futex_wait): If ENOSYS was returned, clear
18421 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18422 (cpu_relax, atomic_write_barrier): New static inlines.
18423 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18424 (sys_futex0): Return error code.
18425 (futex_wake, futex_wait): If ENOSYS was returned, clear
18426 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18427 (cpu_relax, atomic_write_barrier): New static inlines.
18428 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18429 (sys_futex0): Return error code.
18430 (futex_wake, futex_wait): If ENOSYS was returned, clear
18431 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18432 (cpu_relax, atomic_write_barrier): New static inlines.
18433 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18434 (sys_futex0): Return error code.
18435 (futex_wake, futex_wait): If ENOSYS was returned, clear
18436 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18437 (cpu_relax, atomic_write_barrier): New static inlines.
18438 * config/linux/sem.c: Include wait.h instead of libgomp.h and
18440 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
18441 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
18442 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
18444 (omp_nest_lock_t): Change owner into void *, add lock field.
18445 * config/posix95/omp-lock.h: Include semaphore.h.
18446 (omp_lock_25_t, omp_nest_lock_25_t): New types.
18447 (omp_lock_t): Use sem_t instead of mutex if semaphores
18449 (omp_nest_lock_t): Likewise. Change owner to void *.
18450 * config/posix/omp-lock.h: Include semaphore.h.
18451 (omp_lock_25_t, omp_nest_lock_25_t): New types.
18452 (omp_lock_t): Use sem_t instead of mutex if semaphores
18454 (omp_nest_lock_t): Likewise. Add owner field.
18456 2008-06-06 Jakub Jelinek <jakub@redhat.com>
18458 * testsuite/libgomp.c/collapse-1.c: New test.
18459 * testsuite/libgomp.c/collapse-2.c: New test.
18460 * testsuite/libgomp.c/collapse-3.c: New test.
18461 * testsuite/libgomp.c/icv-1.c: New test.
18462 * testsuite/libgomp.c/icv-2.c: New test.
18463 * testsuite/libgomp.c/lib-2.c: New test.
18464 * testsuite/libgomp.c/lock-1.c: New test.
18465 * testsuite/libgomp.c/lock-2.c: New test.
18466 * testsuite/libgomp.c/lock-3.c: New test.
18467 * testsuite/libgomp.c/loop-4.c: New test.
18468 * testsuite/libgomp.c/loop-5.c: New test.
18469 * testsuite/libgomp.c/loop-6.c: New test.
18470 * testsuite/libgomp.c/loop-7.c: New test.
18471 * testsuite/libgomp.c/loop-8.c: New test.
18472 * testsuite/libgomp.c/loop-9.c: New test.
18473 * testsuite/libgomp.c/nested-3.c: New test.
18474 * testsuite/libgomp.c/nestedfn-6.c: New test.
18475 * testsuite/libgomp.c/sort-1.c: New test.
18476 * testsuite/libgomp.c/task-1.c: New test.
18477 * testsuite/libgomp.c/task-2.c: New test.
18478 * testsuite/libgomp.c/task-3.c: New test.
18479 * testsuite/libgomp.c/task-4.c: New test.
18480 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
18481 to C++ testsuite default compiler options.
18482 * testsuite/libgomp.c++/collapse-1.C: New test.
18483 * testsuite/libgomp.c++/collapse-2.C: New test.
18484 * testsuite/libgomp.c++/ctor-10.C: New test.
18485 * testsuite/libgomp.c++/for-1.C: New test.
18486 * testsuite/libgomp.c++/for-2.C: New test.
18487 * testsuite/libgomp.c++/for-3.C: New test.
18488 * testsuite/libgomp.c++/for-4.C: New test.
18489 * testsuite/libgomp.c++/for-5.C: New test.
18490 * testsuite/libgomp.c++/loop-8.C: New test.
18491 * testsuite/libgomp.c++/loop-9.C: New test.
18492 * testsuite/libgomp.c++/loop-10.C: New test.
18493 * testsuite/libgomp.c++/task-1.C: New test.
18494 * testsuite/libgomp.c++/task-2.C: New test.
18495 * testsuite/libgomp.c++/task-3.C: New test.
18496 * testsuite/libgomp.c++/task-4.C: New test.
18497 * testsuite/libgomp.c++/task-5.C: New test.
18498 * testsuite/libgomp.c++/task-6.C: New test.
18499 * testsuite/libgomp.fortran/allocatable1.f90: New test.
18500 * testsuite/libgomp.fortran/allocatable2.f90: New test.
18501 * testsuite/libgomp.fortran/allocatable3.f90: New test.
18502 * testsuite/libgomp.fortran/allocatable4.f90: New test.
18503 * testsuite/libgomp.fortran/collapse1.f90: New test.
18504 * testsuite/libgomp.fortran/collapse2.f90: New test.
18505 * testsuite/libgomp.fortran/collapse3.f90: New test.
18506 * testsuite/libgomp.fortran/collapse4.f90: New test.
18507 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
18508 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
18509 * testsuite/libgomp.fortran/lib4.f90: New test.
18510 * testsuite/libgomp.fortran/lock-1.f90: New test.
18511 * testsuite/libgomp.fortran/lock-2.f90: New test.
18512 * testsuite/libgomp.fortran/nested1.f90: New test.
18513 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
18514 * testsuite/libgomp.fortran/strassen.f90: New test.
18515 * testsuite/libgomp.fortran/tabs1.f90: New test.
18516 * testsuite/libgomp.fortran/tabs2.f: New test.
18517 * testsuite/libgomp.fortran/task1.f90: New test.
18518 * testsuite/libgomp.fortran/task2.f90: New test.
18519 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
18520 * testsuite/libgomp.fortran/vla5.f90: Likewise.
18521 * testsuite/libgomp.c/pr26943-2.c: Likewise.
18522 * testsuite/libgomp.c/pr26943-3.c: Likewise.
18523 * testsuite/libgomp.c/pr26943-4.c: Likewise.
18525 2008-05-23 Jakub Jelinek <jakub@redhat.com>
18528 * testsuite/libgomp.c++/ctor-11.C: New test.
18529 * testsuite/libgomp.c++/ctor-12.C: New test.
18531 2008-05-15 Janis Johnson <janis187@us.ibm.com>
18533 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
18535 2008-05-07 Jakub Jelinek <jakub@redhat.com>
18537 PR middle-end/36106
18538 * testsuite/libgomp.c/atomic-5.c: New test.
18539 * testsuite/libgomp.c/atomic-6.c: New test.
18540 * testsuite/libgomp.c/autopar-1.c: New test.
18542 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18544 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
18545 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
18546 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
18547 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
18548 * configure: Regenerate.
18549 * Makefile.in, testsuite/Makefile.in: Likewise.
18551 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
18554 * aclocal.m4: Regenerate.
18555 * configure: Regenerate.
18557 2008-03-18 Jakub Jelinek <jakub@redhat.com>
18559 PR middle-end/35611
18560 * testsuite/libgomp.c/atomic-4.c: New test.
18563 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
18564 (gomp_iter_guided_next): Likewise.
18565 * testsuite/libgomp.c/pr35625.c: New test.
18567 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18569 * aclocal.m4: Regenerate.
18570 * configure: Likewise.
18571 * Makefile.in: Likewise.
18572 * testsuite/Makefile.in: Likewise.
18574 2008-03-13 Jakub Jelinek <jakub@redhat.com>
18576 PR middle-end/35185
18577 * testsuite/libgomp.c++/pr35185.C: New test.
18579 2008-03-12 Jakub Jelinek <jakub@redhat.com>
18581 PR middle-end/35549
18582 * testsuite/libgomp.c/pr35549.c: New test.
18584 2008-03-06 Jakub Jelinek <jakub@redhat.com>
18586 * testsuite/libgomp.c/atomic-3.c: New test.
18588 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18591 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
18592 .F08 file suffixes.
18594 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
18597 * configure.ac: Add ACX_HEADER_STRING.
18598 * env.c: Include strings.h.
18599 * aclocal.m4: Regenerate.
18600 * config.h.in: Regenerate.
18601 * configure: Regenerate.
18602 * Makefile.in: Regenerate.
18603 * testsuite/Makefile.in: Regenerate.
18605 2008-02-15 Jakub Jelinek <jakub@redhat.com>
18607 PR middle-end/35196
18608 * testsuite/libgomp.c/pr35196.c: New test.
18610 PR middle-end/35130
18611 * testsuite/libgomp.fortran/pr35130.f90: New test.
18612 * testsuite/libgomp.c/pr35130.c: New test.
18614 2008-01-25 Jakub Jelinek <jakub@redhat.com>
18616 PR middle-end/33880
18617 * testsuite/libgomp.c/pr33880.c: New test.
18618 * testsuite/libgomp.fortran/pr33880.f90: New test.
18620 2008-01-24 David Edelsohn <edelsohn@gnu.org>
18622 * configure: Regenerate.
18624 2008-01-08 Jakub Jelinek <jakub@redhat.com>
18626 * configure.ac: Move futex checking into ../config/futex.m4.
18627 * configure: Rebuilt.
18628 * aclocal.m4: Rebuilt.
18629 * Makefile.in: Rebuilt.
18631 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
18632 2007-10-15 ../config/tls.m4 change.
18634 2007-12-19 Jakub Jelinek <jakub@redhat.com>
18637 * testsuite/libgomp.c/pr34513.c: New test.
18638 * testsuite/libgomp.c++/pr34513.C: New test.
18640 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
18643 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
18645 2007-12-04 Jakub Jelinek <jakub@redhat.com>
18647 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
18649 2007-12-03 Jakub Jelinek <jakub@redhat.com>
18651 * testsuite/libgomp.c/private-1.c: New test.
18653 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
18654 Paolo Bonzini <bonzini@gnu.org>
18656 * Makefile.am: Use space as vpath separator. Use 'vpath %'
18657 instead of 'VPATH ='.
18658 * Makefile.in: Regenerate.
18660 2007-11-23 Matthias Klose <doko@ubuntu.com>
18662 * configure.ac: Adjust makeinfo version check.
18663 * configure: Regenerate.
18665 2007-11-10 Jakub Jelinek <jakub@redhat.com>
18668 * testsuite/libgomp.fortran/pr34020.f90: New test.
18670 2007-11-06 Jakub Jelinek <jakub@redhat.com>
18673 * testsuite/libgomp.c++/atomic-1.C: New test.
18675 2007-10-25 Jakub Jelinek <jakub@redhat.com>
18678 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
18679 Make x and y integers rather than (implicit) reals. Add private (j)
18680 clause to the last omp parallel.
18682 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
18684 * configure: Regenerate following changes to ../config/tls.m4.
18686 2007-09-28 Jakub Jelinek <jakub@redhat.com>
18688 * testsuite/libgomp.fortran/stack.f90: New test.
18690 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
18692 * config/mingw32/proc.c: New file.
18694 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
18696 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
18697 (main): Use __get_cpuid to get i386 target fetaures.
18698 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
18699 (main): Use __get_cpuid to get x86_64 target fetaures.
18701 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
18704 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
18705 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
18707 2007-07-12 Jakub Jelinek <jakub@redhat.com>
18710 * testsuite/libgomp.fortran/pr32550.f90: New test.
18711 * testsuite/libgomp.fortran/crayptr2.f90: New test.
18713 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
18715 * aclocal.m4: Regenerated.
18717 2007-07-05 Tobias Burnus <burnus@net-b.de>
18720 * testsuite/libgomp.fortran/pr32359.f90: New.
18722 2007-07-02 Jakub Jelinek <jakub@redhat.com>
18725 * sections.c (GOMP_parallel_sections_start): Only decrease
18726 number of threads to COUNT if dyn_var is true.
18727 * testsuite/libgomp.c/pr32468.c: New test.
18729 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18732 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
18734 2007-06-21 Jakub Jelinek <jakub@redhat.com>
18736 PR middle-end/32362
18737 * testsuite/libgomp.c/pr32362-1.c: New test.
18738 * testsuite/libgomp.c/pr32362-2.c: New test.
18739 * testsuite/libgomp.c/pr32362-3.c: New test.
18741 2007-06-07 Jakub Jelinek <jakub@redhat.com>
18743 * team.c (gomp_team_start): Fix setting up thread_attr
18746 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
18748 * configure: Regenerate.
18750 2007-05-23 Steve Ellcey <sje@cup.hp.com>
18752 * Makefile.in: Regenerate.
18753 * configure: Regenerate.
18754 * aclocal.m4: Regenerate.
18755 * testsuite/Makefile.in: Regenerate.
18757 2007-05-04 Jakub Jelinek <jakub@redhat.com>
18759 * config/linux/proc.c: New file.
18762 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
18764 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
18766 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
18768 2007-04-16 Matthias Klose <doko@debian.org>
18770 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
18771 flags if not building with -m64.
18772 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
18773 flag for i?86-*-* targets, if current target matches -m64.
18775 2007-04-14 Steve Ellcey <sje@cup.hp.com>
18777 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
18778 * Makefile.in: Regenerate.
18780 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18783 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
18785 * testsuite/libgomp.fortran/fortran.exp: Likewise.
18787 2007-04-04 Jakub Jelinek <jakub@redhat.com>
18789 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
18791 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
18792 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
18793 (parse_affinity): New function.
18794 (initialize_env): Call it and gomp_init_affinity.
18795 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
18796 create new pthread_attr_t and call gomp_init_thread_affinity
18797 on it for each thread before passing the attribute to pthread_create.
18798 * config/linux/affinity.c: New file.
18799 * config/posix/affinity.c: New file.
18800 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
18801 * configure: Rebuilt.
18802 * config.h.in: Rebuilt.
18803 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
18804 * Makefile.in: Rebuilt.
18806 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
18808 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
18810 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
18811 and use it if found.
18813 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
18815 * testsuite/config/default.exp: New file.
18816 * testsuite/lib/libgomp.exp: New file.
18817 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
18818 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
18819 load_lib *, load_gcc_lib *): Move to libgomp.exp.
18820 (libgomp_load): Remove.
18821 * testsuite/lib/libgomp.exp (libgomp_init): Compute
18822 always_ld_library_path, not ld_library_path. Set additional_flags
18823 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
18824 (target_compile): Do not call libgomp_init. Append lang_library_path
18825 and lang_link_flags to options.
18826 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
18827 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
18829 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
18830 always_ld_library_path. Set LD_LIBRARY_PATH here.
18831 * testsuite/libgomp.fortran/fortran.exp: Ditto.
18832 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
18833 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
18835 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
18836 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
18837 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
18838 * testsuite/libgomp.c/pr29947-1.c: Ditto.
18839 * testsuite/libgomp.c/atomic-10.c: Ditto.
18841 2007-03-21 Jakub Jelinek <jakub@redhat.com>
18843 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
18844 dg-final cleanup-modules line.
18845 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
18846 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
18847 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
18848 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
18849 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
18850 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
18851 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
18853 2007-03-18 Andreas Schwab <schwab@suse.de>
18855 * acinclude.m4: Adjust regular expression for ld version
18857 * configure: Regenerate.
18859 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
18861 * Makefile.am: Add install-pdf target as copied from
18862 automake v1.10 rules.
18863 * Makefile.in: Regenerate
18865 2007-02-07 Jakub Jelinek <jakub@redhat.com>
18868 * configure: Regenerate.
18871 * testsuite/libgomp.c++/pr30703.C: New test.
18873 2007-02-02 Jakub Jelinek <jakub@redhat.com>
18876 2006-07-05 Eric Christopher <echristo@apple.com>
18877 * configure.ac: Depend addition of -pthread on host OS.
18878 * configure: Regenerate.
18880 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18882 * libgomp.texi: Fix spacing after abbreviations.
18884 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
18887 * configure.ac: Add check for makeinfo
18888 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
18889 if an appropriate version of makeinfo is found.
18890 * aclocal.m4: Regenerated.
18891 * configure: Regenerated.
18892 * Makefile.in: Regenerated.
18893 * testsuite/Makefile.in: Regenerated.
18895 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
18898 * libgomp.texi: More about implementation-dependent settings.
18900 2007-01-26 Tobias Burnus <burnus@net-b.de>
18902 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
18904 2007-01-24 Jakub Jelinek <jakub@redhat.com>
18906 PR middle-end/30494
18907 * testsuite/libgomp.c/pr30494.c: New test.
18909 2007-01-15 Tom Tromey <tromey@redhat.com>
18911 * configure: Rebuilt.
18912 * configure.ac: Fixed comment.
18914 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
18916 * libgomp.texi: Document implementation specific default values of
18917 environment variables.
18919 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
18922 * libgomp.texi: New file.
18923 * configure.ac: Add --enable-generated-files-in-srcdir option.
18924 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
18926 * Makefile.in: Regenerated.
18927 * config.h.in: Regenerated.
18928 * testsuite/Makefile.in: Regenerated.
18931 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
18934 * env.c (omp_set_num_threads): Set illegal thread count to 1.
18936 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
18938 * configure: Regenerate.
18940 2006-12-04 Jakub Jelinek <jakub@redhat.com>
18943 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
18944 start if there shouldn't be any loop iterations.
18945 (gomp_loop_ordered_static_start): Remove start == end test.
18946 * testsuite/libgomp.c/pr29947-1.c: New test.
18947 * testsuite/libgomp.c/pr29947-2.c: New test.
18949 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
18951 * configure.tgt: Force initial-exec TLS model on Linux only.
18953 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
18955 * configure: Regenerated.
18957 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
18959 * env.c (parse_schedule): Reject out of range values.
18960 (parse_unsigned_long): Reject out of range, negative or zero values.
18962 2006-10-29 Jakub Jelinek <jakub@redhat.com>
18965 * testsuite/libgomp.fortran/pr29629.f90: New test.
18967 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
18970 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
18971 * config/posix95: New directory.
18972 * config/posix95/omp-lock.h: New file.
18973 * config/posix95/lock.c: Likewise.
18975 2006-10-14 Geoffrey Keating <geoffk@apple.com>
18977 * aclocal.m4: Regenerate.
18978 * configure: Regenerate.
18980 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
18982 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
18985 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
18987 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
18989 * configure: Regenerate.
18990 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
18992 2006-09-26 Jakub Jelinek <jakub@redhat.com>
18994 PR middle-end/25261
18995 PR middle-end/28790
18996 * testsuite/libgomp.c/nestedfn-4.c: New test.
18997 * testsuite/libgomp.c/nestedfn-5.c: New test.
18998 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
19001 * testsuite/libgomp.fortran/condinc1.f: New test.
19002 * testsuite/libgomp.fortran/condinc2.f: New test.
19003 * testsuite/libgomp.fortran/condinc3.f90: New test.
19004 * testsuite/libgomp.fortran/condinc4.f90: New test.
19005 * testsuite/libgomp.fortran/condinc1.inc: New file.
19007 2006-09-18 Tom Tromey <tromey@redhat.com>
19009 * configure: Rebuilt.
19011 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
19014 PR preprocessor/14634
19015 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
19017 * configure: Regenerate.
19019 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
19021 * testsuite/libgomp.fortran/reduction3.f90: Change
19022 -2147483648 to -huge(i)-1 to avoid overflow.
19023 * testsuite/libgomp.fortran/reduction4.f90: Change
19024 Z'ffffffff' to not(0) to avoid overflow.
19026 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
19029 * Makefile.am (libsubincludedir): New.
19030 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
19031 * Makefile.in: Regenerate.
19033 2006-08-17 Jakub Jelinek <jakub@redhat.com>
19036 * env.c: Include ctype.h.
19037 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
19038 leading and/or trailing whitespace and compare strings case
19041 2006-07-16 Jakub Jelinek <jakub@redhat.com>
19044 * testsuite/libgomp.fortran/pr28390.f: New test.
19046 2006-07-05 Eric Christopher <echristo@apple.com>
19048 * configure.ac: Depend addition of -pthread on host OS.
19049 * configure: Regenerate.
19051 2006-06-21 Jakub Jelinek <jakub@redhat.com>
19053 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
19054 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
19057 2006-06-20 Jakub Jelinek <jakub@redhat.com>
19061 * configure.ac: If neither --enable-linux-futex nor
19062 --disable-linux-futex is passed, determine the default by checking
19063 for compiling and/or running against NPTL. With --enable-linux-futex,
19064 check if SYS_gettid and SYS_futex are defined.
19065 * configure: Rebuilt.
19067 2006-06-14 Richard Henderson <rth@redhat.com>
19070 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
19071 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
19073 2006-06-09 Richard Henderson <rth@redhat.com>
19075 * env.c (gomp_nthreads_var): Change to unsigned long.
19076 (gomp_run_sched_chunk): Likewise.
19077 (parse_unsigned_long): Rename from parse_num_threads and generalize.
19078 (initialize_env): Initialize gomp_thread_attr.
19079 * libgomp.h (gomp_nthreads_var): Update decl.
19080 (gomp_run_sched_chunk): Likewise.
19081 (gomp_thread_attr): Declare.
19082 * team.c (gomp_thread_attr): Export.
19083 (initialize_team): Don't initialize it.
19085 2006-06-09 Jakub Jelinek <jakub@redhat.com>
19088 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
19089 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
19091 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
19093 * config/mingw32/time.c: New file.
19094 * configure.tgt: Use it.
19096 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
19098 * Makefile.am: Add install-html target. Add install-html to .PHONY
19099 * Makefile.in: Regenerate.
19101 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19104 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
19105 * testsuite/libgomp.c/critical-1.c: Likewise.
19106 * testsuite/libgomp.c/loop-1.c: Likewise.
19107 * testsuite/libgomp.c/loop-2.c: Likewise.
19108 * testsuite/libgomp.c/single-1.c: Likewise.
19109 * testsuite/libgomp.c/ordered-1.c: Likewise.
19110 * testsuite/libgomp.c/ordered-2.c: Likewise.
19112 2006-05-15 Jakub Jelinek <jakub@redhat.com>
19114 PR middle-end/27416
19115 * libgomp.fortran/pr27416-1.f90: New test.
19117 2006-05-03 Jakub Jelinek <jakub@redhat.com>
19120 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
19121 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
19123 2006-05-02 Jakub Jelinek <jakub@redhat.com>
19126 * testsuite/libgomp.c/pr26943-1.c: New test.
19127 * testsuite/libgomp.c/pr26943-2.c: New test.
19128 * testsuite/libgomp.c/pr26943-3.c: New test.
19129 * testsuite/libgomp.c/pr26943-4.c: New test.
19130 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
19131 * testsuite/libgomp.c++/pr26943.C: New test.
19133 2006-05-02 Jakub Jelinek <jakub@redhat.com>
19135 PR middle-end/27337
19136 * testsuite/libgomp.c++/pr27337.C: New test.
19138 2006-04-26 Jakub Jelinek <jakub@redhat.com>
19141 * testsuite/libgomp.c/pr26171.c: New test.
19143 2006-04-25 Richard Henderson <rth@redhat.com>
19146 * configure.ac: Use GCC_CHECK_TLS.
19147 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
19148 * Makefile.in, aclocal.m4, configure: Regenerate.
19150 2006-04-10 Matthias Klose <doko@debian.org>
19152 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
19153 directory names containing underscores.
19155 2006-03-21 Jakub Jelinek <jakub@redhat.com>
19158 * testsuite/libgomp.c++/pr26691.C: New test.
19160 2006-03-13 Jakub Jelinek <jakub@redhat.com>
19162 * testsuite/libgomp.fortran/retval2.f90: New test.
19164 2006-03-09 Diego Novillo <dnovillo@redhat.com>
19166 * testsuite/libgomp.c++: New directory.
19168 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
19170 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
19171 * config/posix/sem.c: Implement the above.
19173 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
19175 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
19176 define HAVE_BROKEN_POSIX_SEMAPHORES.
19177 * configure: Rebuilt.
19178 * config.h.in: Rebuilt.
19180 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
19183 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
19184 for the other pthread check.
19185 * configure: Regenerate.
19186 * config.h.in: Regenerate.
19188 2006-02-15 Jakub Jelinek <jakub@redhat.com>
19192 * Makefile.am (fincludedir): New variable.
19193 (nodist_include_HEADERS): Remove Fortran files.
19194 (nodist_finclude_HEADERS): New variable.
19195 * Makefile.in: Regenerated.
19197 2006-02-13 Jakub Jelinek <jakub@redhat.com>
19199 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
19200 Remove tests for returning assumed character length arrays.
19202 2006-02-12 Roger Sayle <roger@eyesopen.com>
19203 John David Anglin <dave@hiauly1.hia.nrc.ca>
19206 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
19208 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
19210 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
19212 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
19214 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
19215 part of LD_LIBRARY_PATH manually.
19217 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
19220 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
19223 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
19226 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
19227 * configure.ac (PERL): Don't set.
19228 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
19229 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
19230 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
19231 * omp.h.in: Wrap the new configure substitutions with @ characters.
19232 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
19233 * aclocal.m4, configure, Makefile.in: Regenerate.
19234 * mkomp_h.pl: Delete.
19236 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
19239 * configure.ac: Use GCC_HEADER_STDINT.
19240 * libgomp.h: Include gstdint.h.
19241 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
19242 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
19244 2006-01-24 Richard Henderson <rth@redhat.com>
19247 * configure.ac: Add AM_MAINTAINER_MODE.
19248 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
19250 2006-01-24 Diego Novillo <dnovillo@redhat.com>
19252 * Makefile.in: Regenerate.
19253 * testsuite/Makefile.in: Regenerate.
19254 * aclocal.m4: Regenerate.
19256 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
19258 * config/posix/proc.c: Conditional include of sys/loadavg.h for
19260 * configure.ac: Add check for loadavg.h.
19261 (link_gomp): Adjust comment.
19262 * configure: Regenerate.
19263 * config.h.in: Regenerate.
19265 2006-01-21 Steve Ellcey <sje@cup.hp.com>
19268 * configure.ac: Remove check for alloca.h.
19269 * configure: Regenerate.
19270 * config.h.in: Regenerate.
19271 * libgomp.h: define gomp_alloca to be __builtin_alloca.
19272 * team.c: Remove use of alloca.h.
19273 Call gomp_alloca instead of alloca.
19275 2006-01-20 Steve Ellcey <sje@cup.hp.com>
19278 * team.c: Add include of alloca.h.
19279 * configure.ac: Add check for alloca.h.
19280 * configure: Regenerate.
19281 * config.h.in: Regenerate.
19283 2006-01-17 Jakub Jelinek <jakub@redhat.com>
19286 * testsuite/libgomp.fortran/pr25219.f90: New test.
19288 2005-12-05 Uros Bizjak <uros@kss-loka.si>
19290 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
19291 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
19292 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
19293 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
19294 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
19295 testsuite/libgomp.fortran/threadprivate1.f90,
19296 testsuite/libgomp.fortran/threadprivate2.f90,
19297 testsuite/libgomp.fortran/threadprivate3.f90,
19298 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
19299 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
19300 testsuite/libgomp.fortran/omp_parse3.f90: Change required
19301 effective-target to TLS runtime.
19303 * testsuite/libgomp.fortran/pr25162.f: Require
19304 effective-target TLS runtime.
19306 2005-12-01 Jakub Jelinek <jakub@redhat.com>
19308 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
19309 * testsuite/libgomp.c/nestedfn-3.c: New test.
19311 2005-11-30 Jakub Jelinek <jakub@redhat.com>
19314 * testsuite/libgomp.fortran/pr25162.f: New test.
19316 2005-11-28 Jakub Jelinek <jakub@redhat.com>
19318 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
19319 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
19321 2005-11-25 Jakub Jelinek <jakub@redhat.com>
19323 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
19324 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
19325 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
19326 single.c, team.c, work.c, config/linux/alpha/futex.h,
19327 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
19328 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
19329 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
19330 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
19331 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
19332 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
19333 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
19336 2005-11-18 Jakub Jelinek <jakub@redhat.com>
19338 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
19339 to nodist_noinst_HEADERS.
19340 * Makefile.in: Rebuilt.
19342 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
19343 add integer count field.
19344 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
19345 omp_nest_lock_t type change.
19346 (omp_init_nest_lock): Likewise. Initialize count to 0.
19347 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
19349 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
19351 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
19352 Increment count if successful and return the new nesting level.
19353 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
19354 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
19355 * testsuite/libgomp.c/lib-1.c: New test.
19356 * testsuite/libgomp.fortran/lib1.f90: New test.
19357 * testsuite/libgomp.fortran/lib2.f: New test.
19358 * testsuite/libgomp.fortran/lib3.f: New test.
19360 2005-11-17 Richard Henderson <rth@redhat.com>
19363 * Makefile.am (nodist_toolexeclib_HEADERS): New.
19364 * configure.ac (link_gomp): New. Substitute it.
19365 (AC_CONFIG_FILES): Add libgomp.spec.
19366 * libgomp.spec.in: New file.
19367 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
19368 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
19370 2005-11-18 Jakub Jelinek <jakub@redhat.com>
19372 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
19373 reduction(-:var) behaving the same as reduction(+:var).
19374 * testsuite/libgomp.c/reduction-4.c: New test.
19376 2005-11-15 Uros Bizjak <uros@kss-loka.si>
19378 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
19379 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
19380 testsuite/libgomp.c/copyin-3.c,
19381 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
19382 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
19383 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
19384 testsuite/libgomp.c++/pr24455.C,
19385 testsuite/libgomp.fortran/threadprivate1.f90,
19386 testsuite/libgomp.fortran/threadprivate2.f90,
19387 testsuite/libgomp.fortran/threadprivate3.f90,
19388 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
19389 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
19390 testsuite/libgomp.fortran/omp_parse3.f90: Require
19391 effective-target TLS.
19393 2005-11-14 Diego Novillo <dnovillo@redhat.com>
19397 2005-11-13 Jakub Jelinek <jakub@redhat.com>
19400 * team.c (initialize_team): Pass NULL rather than free as
19401 pthread_key_create destructor. Initialize thread specific data
19402 pointer in initial thread to a static local variable rather than
19405 2005-11-11 Uros Bizjak <uros@kss-loka.si>
19407 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
19408 its location to ld_library_path.
19410 2005-11-10 Diego Novillo <dnovillo@redhat.com>
19412 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
19414 2005-11-10 Diego Novillo <dnovillo@redhat.com>
19416 * testsuite/libgomp.c: Rename from libgomp.dg.
19418 2005-11-09 Diego Novillo <dnovillo@redhat.com>
19420 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
19421 threadprivate variable 'i'.
19423 2005-11-09 Jakub Jelinek <jakub@redhat.com>
19425 * config/linux/s390/futex.h: New file.
19426 * configure.tgt: Use it.
19428 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
19429 before the parallel.
19431 2005-11-08 Jakub Jelinek <jakub@redhat.com>
19434 * testsuite/libgomp.c++/master-1.C: New test.
19436 2005-11-07 Jakub Jelinek <jakub@redhat.com>
19438 * testsuite/libgomp.dg/copyin-3.c: New test.
19440 2005-11-07 Jakub Jelinek <jakub@redhat.com>
19442 * testsuite/libgomp.fortran/retval1.f90: New test.
19443 * testsuite/libgomp.fortran/vla7.f90: New test.
19445 2005-11-06 Jakub Jelinek <jakub@redhat.com>
19447 * testsuite/libgomp.fortran/vla2.f90: New test.
19448 * testsuite/libgomp.fortran/vla3.f90: New test.
19449 * testsuite/libgomp.fortran/vla4.f90: New test.
19450 * testsuite/libgomp.fortran/vla5.f90: New test.
19451 * testsuite/libgomp.fortran/vla6.f90: New test.
19453 2005-11-01 Jakub Jelinek <jakub@redhat.com>
19455 * config/linux/sparc/futex.h: New file.
19456 * configure.tgt: Use it.
19457 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
19459 * critical.c: Include stdlib.h.
19460 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
19461 ignoring return value.
19462 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
19463 LIBGOMP_CHECK_SYNC_BUILTINS check.
19464 * configure: Rebuilt.
19466 2005-10-31 Jakub Jelinek <jakub@redhat.com>
19468 * testsuite/libgomp.fortran/vla1.f90: New test.
19470 2005-10-31 Richard Henderson <rth@redhat.com>
19472 * testsuite/libgomp.fortran/character2.f90: Fix race condition
19473 setting 's' in different threads.
19475 2005-10-31 Jakub Jelinek <jakub@redhat.com>
19477 * libgomp.h (attribute_hidden, ialias): Define.
19478 * config/posix/proc.c (omp_get_num_procs): Add ialias.
19479 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
19480 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
19481 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
19482 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
19483 omp_test_lock, omp_test_nest_lock): Likewise.
19484 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
19485 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
19486 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
19487 omp_test_lock, omp_test_nest_lock): Likewise.
19488 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
19489 omp_get_dynamic, omp_get_nested): Likewise.
19490 * parallel.c (omp_get_num_threads, omp_get_max_threads,
19491 omp_get_thread_num, omp_in_parallel): Likewise.
19492 * fortran.c (ialias_redirect): Define.
19493 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
19494 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
19495 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
19496 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
19497 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
19498 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
19499 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
19500 omp_get_wtime): Add ialias_redirect.
19502 2005-10-30 Jakub Jelinek <jakub@redhat.com>
19504 * fortran.c: Include stdlib.h.
19506 2005-10-29 Jakub Jelinek <jakub@redhat.com>
19508 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
19509 * Makefile.in: Regenerated.
19511 2005-10-28 Jakub Jelinek <jakub@redhat.com>
19513 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
19514 * libgomp_f.h.in (omp_check_defines): New function.
19515 * env.c: Include libgomp_f.h.
19516 (initialize_env): Call omp_check_defines.
19518 * testsuite/libgomp.dg/copyin-2.c: New test.
19519 * testsuite/libgomp.c++/copyin-2.C: New test.
19520 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
19522 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
19523 * testsuite/libgomp.fortran/sharing2.f90: New test.
19525 * testsuite/libgomp.dg/copyin-1.c: New test.
19526 * testsuite/libgomp.c++/copyin-1.C: New test.
19528 2005-10-26 Jakub Jelinek <jakub@redhat.com>
19530 * testsuite/libgomp.fortran/crayptr1.f90: New test.
19532 * testsuite/libgomp.fortran/workshare1.f90: New test.
19534 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
19536 * libgomp.fortran/sharing1.f90: New test.
19538 2005-10-24 Jakub Jelinek <jakub@redhat.com>
19541 * testsuite/libgomp.c++/loop-7.C: New test.
19543 * testsuite/libgomp.dg/nestedfn-2.c: New test.
19545 * testsuite/libgomp.dg/nestedfn-1.c: New test.
19546 * testsuite/libgomp.fortran/reduction6.f90: New test.
19547 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
19549 2005-10-23 Richard Henderson <rth@redhat.com>
19551 * testsuite/libgomp.c++/ctor-1.C: New.
19552 * testsuite/libgomp.c++/ctor-2.C: New.
19553 * testsuite/libgomp.c++/ctor-3.C: New.
19554 * testsuite/libgomp.c++/ctor-4.C: New.
19555 * testsuite/libgomp.c++/ctor-5.C: New.
19556 * testsuite/libgomp.c++/ctor-6.C: New.
19557 * testsuite/libgomp.c++/ctor-7.C: New.
19558 * testsuite/libgomp.c++/ctor-8.C: New.
19559 * testsuite/libgomp.c++/ctor-9.C: New.
19561 2005-10-21 Diego Novillo <dnovillo@redhat.com>
19564 * testsuite/libgomp.c++/pr24455-1.C: New test.
19565 * testsuite/libgomp.c++/pr24455.C: New test.
19566 * testsuite/libgomp.dg/pr24455-1.c: New test.
19567 * testsuite/libgomp.dg/pr24455.c: New test.
19569 2005-10-20 Richard Henderson <rth@redhat.com>
19571 * testsuite/libgomp.c++/loop-6.C: New.
19572 * testsuite/libgomp.dg/loop-3.c: New.
19574 2005-10-20 Jakub Jelinek <jakub@redhat.com>
19576 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
19577 explicitly private.
19578 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
19581 2005-10-19 Diego Novillo <dnovillo@redhat.com>
19583 * testsuite/libgomp.fortran/jacobi.f: New test.
19585 2005-10-19 Richard Henderson <rth@redhat.com>
19587 * configure.tgt (i?86-linux): Default to with_arch instead of
19588 CFLAGS. Add -mtune to match target_cpu.
19589 (x86_64-linux): Tune to i686.
19591 * fortran.c (omp_test_nest_lock_): Fix typo.
19593 2005-10-19 Jakub Jelinek <jakub@redhat.com>
19595 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
19596 gomp_ordered_sync): Do nothing if team->nthreads == 1.
19597 * testsuite/libgomp.dg/ordered-3.c: New test.
19599 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
19600 Remove volatile keyword.
19602 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
19603 in COMMON block to avoid warnings on 64-bit targets.
19605 2005-10-18 Diego Novillo <dnovillo@redhat.com>
19607 * testsuite/libgomp.dg/shared-3.c: New test.
19609 2005-10-18 Jakub Jelinek <jakub@redhat.com>
19611 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
19612 * testsuite/libgomp.fortran/reduction5.f90: New test.
19614 2005-10-18 Jakub Jelinek <jakub@redhat.com>
19616 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
19618 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
19619 flush loop now that __sync_synchronize has proper memory barrier.
19620 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
19621 Add -ffixed-form to dg-options.
19623 2005-10-17 Diego Novillo <dnovillo@redhat.com>
19625 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
19626 from subdirectories.
19627 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
19628 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
19629 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
19630 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
19631 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
19632 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
19633 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
19634 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
19635 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
19636 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
19637 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
19638 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
19639 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
19640 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
19641 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
19642 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
19643 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
19644 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
19645 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
19646 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
19647 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
19648 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
19649 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
19650 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
19651 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
19653 2005-10-17 Jakub Jelinek <jakub@redhat.com>
19655 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
19656 lang_library_path exists. Use find instead of glob to gather tests.
19657 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
19659 2005-10-17 Diego Novillo <dnovillo@redhat.com>
19661 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
19662 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
19663 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
19664 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
19665 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
19666 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
19667 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
19668 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
19669 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
19670 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
19671 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
19672 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
19673 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
19675 2005-10-15 Jakub Jelinek <jakub@redhat.com>
19677 * testsuite/libgomp.dg/vla-1.c: New test.
19679 * testsuite/libgomp.fortran/reference2.f90: New test.
19681 * testsuite/libgomp.fortran/character2.f90: Remove explicit
19682 declaration of omp_get_thread_num.
19683 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
19686 * testsuite/libgomp.fortran/reduction1.f90: New test.
19687 * testsuite/libgomp.fortran/reduction2.f90: New test.
19688 * testsuite/libgomp.fortran/reduction3.f90: New test.
19689 * testsuite/libgomp.fortran/reduction4.f90: New test.
19691 2005-10-13 Richard Henderson <rth@redhat.com>
19693 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
19694 * Makefile.in: Regenerate.
19695 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
19696 * libgomp.h: Include bar.h.
19697 (struct gomp_barrier): Remove.
19698 (struct gomp_team): Add barrier. Replace master_barrier with
19699 master_release. Replace threads with ordered_release.
19700 (struct gomp_thread): Replace barrier with release.
19701 * ordered.c (gomp_ordered_first): Update for ordered_release change.
19702 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
19703 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
19704 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
19705 (GOMP_single_copy_end): Likewise.
19706 * team.c (gomp_threads_dock): New.
19707 (gomp_barrier_init, gomp_barrier_destroy): Remove.
19708 (gomp_thread_start): Use gomp_barrier_wait.
19709 (new_team, free_team): Update for gomp_team changes.
19710 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
19711 (gomp_team_end): Use gomp_barrier_wait.
19712 (initialize_team): Update for gomp_thread changes.
19713 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
19714 (gomp_work_share_end_nowait): Use atomic ops when available.
19715 * config/linux/bar.c, config/linux/bar.h: New files.
19716 * config/posix/bar.c, config/posix/bar.h: New files.
19718 2005-10-13 Jakub Jelinek <jakub@redhat.com>
19720 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
19721 * testsuite/libgomp.dg/single-2.c: New test.
19723 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
19724 lang_link_flags): Unset, so that they aren't inherited from previously
19727 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
19729 2005-10-12 Richard Henderson <rth@redhat.com>
19731 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
19732 (libgomp_init): Use lang_test_file, lang_library_path, and
19733 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
19735 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
19736 (lang_test_file, lang_link_flags): New.
19737 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
19739 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
19740 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
19741 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
19742 testsuite/libgomp.c++/parallel-1.C,
19743 testsuite/libgomp.c++/reduction-1.C,
19744 testsuite/libgomp.c++/reduction-2.C,
19745 testsuite/libgomp.c++/reduction-3.C,
19746 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
19747 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
19748 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
19749 New files, largely cribbed from the C testsuite.
19751 2005-10-12 Jakub Jelinek <jakub@redhat.com>
19753 * testsuite/libgomp.fortran/character1.f90: New test.
19754 * testsuite/libgomp.fortran/character2.f90: New test.
19756 * testsuite/libgomp.dg/nested-1.c: New test.
19757 * testsuite/libgomp.dg/nested-2.c: New test.
19758 * testsuite/libgomp.fortran/do1.f90: New test.
19759 * testsuite/libgomp.fortran/do2.f90: New test.
19761 * testsuite/libgomp.fortran/reference1.f90: New test.
19763 2005-10-11 Jakub Jelinek <jakub@redhat.com>
19765 * testsuite/libgomp.dg/reduction-1.c: New test.
19766 * testsuite/libgomp.dg/reduction-2.c: New test.
19767 * testsuite/libgomp.dg/reduction-3.c: New test.
19769 2005-10-10 Jakub Jelinek <jakub@redhat.com>
19771 * testsuite/libgomp.dg/atomic-1.c: New test.
19772 * testsuite/libgomp.dg/atomic-2.c: New test.
19774 2005-10-09 Richard Henderson <rth@redhat.com>
19776 * critical.c (atomic_lock): New.
19777 (initialize_critical): Initialize it.
19778 (GOMP_atomic_start, GOMP_atomic_end): New.
19779 * libgomp.map: Export them.
19780 * libgomp_g.h: Declare them.
19782 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
19784 2005-10-02 Richard Henderson <rth@redhat.com>
19786 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
19787 to XCFLAGS instead of CFLAGS.
19789 2005-09-30 Richard Henderson <rth@redhat.com>
19791 * configure.ac: Determine whether -pthread or -lpthread is needed.
19792 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
19793 * Makefile.in, configure: Rebuild.
19795 2005-09-28 Richard Henderson <rth@redhat.com>
19797 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
19798 * testsuite/libgomp.dg/omp-single-3.c: New test.
19800 2005-09-28 Diego Novillo <dnovillo@redhat.com>
19802 * testsuite/libgomp.dg/omp-single-2.c: New test.
19803 * testsuite/libgomp.dg/shared-2.c: Fix return code.
19805 2005-09-27 Richard Henderson <rth@redhat.com>
19807 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
19808 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
19810 2005-09-27 Jakub Jelinek <jakub@redhat.com>
19812 * testsuite/libgomp.dg/omp-loop03.c: New test.
19814 2005-09-27 Diego Novillo <dnovillo@redhat.com>
19816 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
19818 2005-09-27 Diego Novillo <dnovillo@redhat.com>
19820 * testsuite/libgomp.dg/omp-single-1.c: New test.
19821 * testsuite/libgomp.dg/shared-1.c: Return 0.
19822 Add prototype for abort.
19823 * testsuite/libgomp.dg/shared-2.c: Likewise.
19825 2005-09-26 Jakub Jelinek <jakub@redhat.com>
19827 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
19830 2005-09-26 Diego Novillo <dnovillo@redhat.com>
19832 * testsuite/libgomp.dg/shared-1.c: New test.
19833 * testsuite/libgomp.dg/shared-2.c: New test.
19835 2005-09-24 Richard Henderson <rth@redhat.com>
19837 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
19839 2005-09-24 Richard Henderson <rth@redhat.com>
19841 * iter.c (gomp_iter_static_next): Round up when computing number
19842 of iterations. Don't bother distributing a remainder equally.
19844 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
19845 Don't call srand. Zero b before testing.
19848 2005-09-24 Jakub Jelinek <jakub@redhat.com>
19850 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
19851 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
19853 2005-09-23 Jakub Jelinek <jakub@redhat.com>
19855 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
19856 without !$omp end do, followed immediately by subroutine end.
19858 2005-09-23 Diego Novillo <dnovillo@redhat.com>
19860 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
19862 2005-09-22 Richard Henderson <rth@redhat.com>
19864 * critical.c (GOMP_critical_name_start): Change argument to void**.
19865 Reuse the pointer space if the mutex fits.
19866 (GOMP_critical_name_end): Likewise.
19867 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
19868 * libgomp_g.h (GOMP_critical_name_start): Update decl.
19869 (GOMP_critical_name_end): Likewise.
19870 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
19871 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
19873 2005-09-20 Richard Henderson <rth@redhat.com>
19875 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
19876 (create_lock_lock): New.
19877 (initialize_critical): Initialize it.
19878 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
19879 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
19881 2005-09-20 Diego Novillo <dnovillo@redhat.com>
19883 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
19885 2005-09-20 Diego Novillo <dnovillo@redhat.com>
19887 * testsuite/libgomp.dg/omp-loop01.c: New test.
19888 * testsuite/libgomp.dg/omp-loop02.c: New test.
19890 2005-09-20 Jakub Jelinek <jakub@redhat.com>
19892 * configure.ac (AC_PROG_FC): Add.
19893 (USE_FORTRAN): New automake conditional.
19894 * configure: Rebuilt.
19895 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
19896 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
19897 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
19898 Add rules to build them.
19899 * Makefile.in: Rebuilt.
19900 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
19901 OMP_NEST_LOCK_KIND.
19902 * libgomp.map: Add Fortran wrappers.
19903 * libgomp_f.h.in: New file.
19904 * omp_lib.h.in: New file.
19905 * omp_lib.f90.in: New file.
19906 * fortran.c: New file.
19907 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
19908 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
19909 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
19910 libgfortran has been built.
19911 * testsuite/libgomp.fortran/fortran.exp: New file.
19912 * testsuite/libgomp.fortran/omp_cond1.f: New test.
19913 * testsuite/libgomp.fortran/omp_cond2.f: New test.
19914 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
19915 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
19916 * testsuite/libgomp.fortran/omp_hello.f: New test.
19917 * testsuite/libgomp.fortran/omp_orphan.f: New test.
19918 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
19919 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
19920 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
19921 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
19922 * testsuite/libgomp.fortran/omp_reduction.f: New test.
19923 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
19924 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
19926 2005-08-30 Richard Henderson <rth@redhat.com>
19928 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
19929 function for when aliases are not usable.
19930 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
19931 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
19932 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
19933 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
19934 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
19935 GOMP_loop_ordered_guided_next): Likewise.
19936 * ordered.c (GOMP_ordered_start): Likewise.
19938 2005-08-01 Diego Novillo <dnovillo@redhat.com>
19940 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
19941 * testsuite/libgomp.dg/omp_hello.c: Fix return code
19942 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
19943 * testsuite/libgomp.dg/omp_orphan.c: Likewise
19944 * testsuite/libgomp.dg/omp_reduction.c: Likewise
19945 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
19946 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
19947 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
19948 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
19950 2005-07-07 Eric Christopher <echristo@redhat.com>
19951 Diego Novillo <dnovillo@redhat.com>
19953 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
19954 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
19956 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
19957 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
19958 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
19959 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
19960 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
19961 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
19962 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
19964 2005-06-13 Diego Novillo <dnovillo@redhat.com>
19966 * TOPLEVEL.patch: Remove.
19968 2005-05-16 Richard Henderson <rth@redhat.com>
19970 * configure.ac: Test for clock_gettime.
19971 * config.h.in, configure: Rebuild.
19972 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
19973 (omp_get_wtime): Use clock_gettime if available.
19974 (omp_get_wtick): Use clock_getres if available.
19976 2005-05-11 Richard Henderson <rth@redhat.com>
19978 * config/linux/ia64/futex.h: New file.
19979 * configure.tgt: Use it.
19981 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
19983 2005-05-07 Richard Henderson <rth@redhat.com>
19985 * config/linux/powerpc/futex.h: New file.
19986 * configure.tgt: Use it.
19988 * config/linux/i486/futex.h: Merge ...
19989 * config/linux/x86_64/futex.h: ... into ...
19990 * config/linux/x86/futex.h: ... here.
19991 * configure.tgt: Update to match.
19993 2005-05-06 Richard Henderson <rth@redhat.com>
19995 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
19996 * config/linux/i486/futex.h: Likewise.
19997 * config/linux/x86_64/futex.h: Likewise.
19999 * config/linux/lock.c: New file.
20000 * config/linux/omp-lock.h: New file.
20002 * critical.c, env.h: Don't include omp.h
20003 * config/posix/lock.c: Include libgomp.h instead of omp.h.
20004 * config/posix/time.c: Likewise.
20005 * config/posix/omp-lock.h: New file.
20006 * libgomp.h: Include omp-lock.h and omp.h.
20007 * Makefile.am (nodist_include_HEADERS): New.
20009 * configure.ac (PERL): New.
20010 * mkomp_h.pl: New file.
20011 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
20013 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
20015 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
20016 build directory. Re-add -march=i486 hack.
20018 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
20019 (libgomp_link_flags): Remove.
20020 (libgomp_initialized): Remove.
20021 (libgomp_init): Don't protect from reinitialization. Copy code
20022 from libstdc++ for getting the multilib set correctly.
20024 2005-05-05 Richard Henderson <rth@redhat.com>
20026 * config/linux/alpha/futex.h: New file.
20027 * configure.tgt (alpha*-*-linux*): Use it.
20029 * config/posix/mutex.c: New file.
20030 * config/posix/sem.c: Use libgomp.h.
20032 * configure.tgt (x86_64-linux): Also test CC for -m32.
20033 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
20035 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
20038 * Makefile.am (SUBDIRS): New.
20039 (libgomp_la_LDFLAGS): Add -lpthread.
20040 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
20041 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
20043 * libgomp_g.h: New file.
20044 * libgomp.h: Split out all public declarations to libgomp_g.h.
20045 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
20046 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
20047 * config/linux/sem.h: Likewise.
20048 * config/posix/sem.h: Likewise.
20050 * Makefile.am (AM_LDFLAGS): New.
20051 (libgomp_version_script): Split out from ...
20052 (libgomp_la_LDFLAGS): ... here.
20053 (libgomp_version_info): New.
20054 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
20055 (LIBGOMP_ENABLE): New.
20056 (LIBGOMP_CHECK_LINKER_FEATURES): New.
20057 (LIBGOMP_ENABLE_SYMVERS): New.
20058 * configure.ac (AC_INIT): Version 1.0.
20059 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
20060 (enable-linux-futex): Likewise. Rename from enable-futex.
20061 (libtool_VERSION): New.
20062 (LIBGOMP_ENABLE_SYMVERS): Use it.
20063 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
20064 * Makefile.in, aclocal.m4, configure: Rebuild.
20066 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
20067 (gomp_mutex_unlock_slow): Fix typo.
20068 * config/linux/sem.c: Similarly.
20069 (gomp_sem_post_slow): Fix typo.
20070 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
20071 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
20072 [__PIC__] (sys_futex0): Don't use tmp output in asm.
20074 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
20075 (libgomp_la_LDFLAGS): Add top_srcdir to path.
20076 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
20077 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
20078 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
20079 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
20080 LDFLAGS. Pull enable_futex check to top-level.
20081 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
20082 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
20084 First attempt at real configury.
20085 * Makefile, config.h: Remove file.
20086 * Makefile.am, Makefile.in: New file.
20087 * acinclude.m4 aclocal.m4: New file.
20088 * configure.ac, configure.tgt, configure: New file.
20090 * config/posix/lock.c: Rename from sys-lock.c.
20091 * config/posix/mutex.h: Rename from sys-mutex.h.
20092 * config/posix/sem.c: Rename from sys-sem.c.
20093 * config/posix/sem.h: Rename from sys-sem.h.
20094 * config/posix/proc.c: Rename from sys-proc.c.
20095 * config/posix/time.c: Rename from sys-proc.c.
20097 * config/linux/mutex.c: New file.
20098 * config/linux/mutex.h: New file.
20099 * config/linux/sem.c: New file.
20100 * config/linux/sem.h: New file.
20101 * config/linux/i486/futex.h: New file.
20102 * config/linux/x86_64/futex.h: New file.
20104 2005-05-04 Richard Henderson <rth@redhat.com>
20106 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
20107 * libgomp.h: Declare them.
20108 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
20109 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
20111 2005-05-04 Richard Henderson <rth@redhat.com>
20113 * libgomp-1 code drop
20115 2005-05-04 Richard Henderson <rth@redhat.com>
20117 * iter.c (gomp_iter_static_next): Return tri-state on 0.
20118 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
20119 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
20120 (gomp_iter_static_next): Update.
20121 (gomp_ordered_static_next): Update.
20122 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
20123 (gomp_loop_ordered_static_start): Likewise. Exit early for a
20124 totally empty range.
20125 (gomp_loop_ordered_static_next): Refine test for calling
20126 gomp_ordered_static_next.
20127 * testsuite/ordered-1.c: Add case for more threads than iterations.
20129 * iter.c (gomp_iter_runtime_next_locked): Remove.
20130 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
20131 gomp_loop_guided_start, gomp_loop_ordered_static_start,
20132 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
20133 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
20134 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
20135 gomp_loop_ordered_guided_next): Downcase name, make static, add
20136 an external alias with the old name.
20137 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
20138 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
20139 switch and call one of the above static functions.
20140 * libgomp.h: Update.
20142 * work.c (gomp_work_share_start): Lock the mutex for !first too.
20143 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
20144 GOMP_loop_guided_start, GOMP_loop_runtime_start,
20145 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20146 GOMP_loop_ordered_guided_start): Update to match.
20147 * sections.c (GOMP_sections_start): Likewise.
20148 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
20150 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
20151 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
20152 Use bounds check instead of modulus.
20153 (gomp_ordered_sync): Split out of GOMP_ordered_start.
20154 (gomp_ordered_last): Don't sync with ordered_owner here.
20155 (gomp_ordered_next): Likewise.
20156 (gomp_ordered_static_loop_next): Likewise.
20157 * loop.c, libgomp.h: Update to match.
20159 * libgomp.h (GOMP_barrier): Declare.
20161 * testsuite/barrier-1.c: New file.
20162 * testsuite/critical-1.c: New file.
20163 * testsuite/ordered-2.c: New file.
20164 * testsuite/ordered-1.c: New file.
20165 * testsuite/sections-1.c: New file.
20166 * testsuite/single-1.c: New file.
20167 * testsuite/Makefile (TESTS): Add them.
20169 2005-05-04 Richard Henderson <rth@redhat.com>
20171 * libgomp.h (struct gomp_work_share): Add ordered_owner.
20172 * loop.c (GOMP_loop_static_start): If not the startup thread,
20173 acquire the mutex to wait for initialization complete.
20174 (GOMP_loop_ordered_static_start): Likewise.
20175 (GOMP_loop_ordered_runtime_start): Likewise.
20176 (GOMP_loop_ordered_static_first): Remove.
20177 (GOMP_loop_ordered_dynamic_first): Remove.
20178 (GOMP_loop_ordered_guided_first): Remove.
20179 (GOMP_loop_ordered_runtime_first): Remove.
20180 * ordered.c (gomp_ordered_loop_first): Post to own release when
20181 we're the first thread.
20182 (gomp_ordered_loop_last): Wait on release if not owner.
20183 (gomp_ordered_loop_next): Likewise.
20184 (gomp_ordered_static_loop_init): New.
20185 (gomp_ordered_static_loop_next): Use ordered_owner.
20186 (GOMP_ordered_start): Likewise.
20187 * work.c (gomp_new_work_share): Initialize ordered_owner.
20189 2005-05-03 Richard Henderson <rth@redhat.com>
20191 * Makefile (OPT): New.
20194 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
20195 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
20196 * libgomp.h, libgomp.map, NOTES: Update to match.
20198 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
20199 Add initialized and thr members.
20200 (gomp_thread_start): Pause when initially spawned to wait for
20201 the whole team to be created.
20202 (gomp_team_start): Release team members at the end.
20204 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
20205 (f_foo_1): Use GOMP_loop_end.
20206 (f_foo_2): Use GOMP_loop_end_nowait.
20208 * testsuite/loop-2.c: New file.
20209 * testsuite/Makefile (TESTS): Add it.
20211 2005-05-03 Richard Henderson <rth@redhat.com>
20213 * iter.c (gomp_iter_static_next): Fix overflow check typo.
20214 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
20215 * team.c (new_team): Initialize oldest_live_gen to 1 if no
20216 initial work_share.
20218 * testsuite/Makefile: New file.
20219 * testsuite/loop-1.c: New file.
20221 2005-05-03 Richard Henderson <rth@redhat.com>
20223 Initial implementation and checkin.
20225 Copyright (C) 2005-2023 Free Software Foundation, Inc.
20227 Copying and distribution of this file, with or without modification,
20228 are permitted in any medium without royalty provided the copyright
20229 notice and this notice are preserved.