]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/ChangeLog
Daily bump.
[thirdparty/gcc.git] / libgomp / ChangeLog
1 2023-07-26 Tobias Burnus <tobias@codesourcery.com>
2
3 * libgomp-plugin.h (GOMP_OFFLOAD_memcpy2d,
4 GOMP_OFFLOAD_memcpy3d): New prototypes.
5 * libgomp.h (struct gomp_device_descr): Add memcpy2d_func
6 and memcpy3d_func.
7 * libgomp.texi (nvtpx): Document when cuMemcpy2D/cuMemcpy3D is used.
8 * oacc-host.c (memcpy2d_func, .memcpy3d_func): Init with NULL.
9 * plugin/cuda-lib.def (cuMemcpy2D, cuMemcpy2DUnaligned,
10 cuMemcpy3D): Invoke via CUDA_ONE_CALL.
11 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
12 GOMP_OFFLOAD_memcpy3d): New.
13 * target.c (omp_target_memcpy_rect_worker):
14 (omp_target_memcpy_rect_check, omp_target_memcpy_rect_copy):
15 Permit all device-to-device copyies; invoke new plugins for
16 2D and 3D copying when available.
17 (gomp_load_plugin_for_device): DLSYM the new plugin functions.
18 * testsuite/libgomp.c/target-12.c: Fix dimension bug.
19 * testsuite/libgomp.fortran/target-12.f90: Likewise.
20 * testsuite/libgomp.fortran/target-memcpy-rect-1.f90: New test.
21
22 2023-07-26 Tobias Burnus <tobias@codesourcery.com>
23
24 * libgomp.texi (OpenMP 5.2 features): Add 'all' for 'defaultmap' as 'N'.
25 (Tasking Routines): Document omp_in_explicit_task.
26 (Implementation-defined ICV Initialization): Use @ref not @code.
27
28 2023-07-20 Tobias Burnus <tobias@codesourcery.com>
29
30 * libgomp.texi (OpenMP Runtime Library Routines):
31 Split long list by adding sections and moving routines there.
32 (OMP_ALLOCATORS): Fix typo.
33
34 2023-07-19 Tobias Burnus <tobias@codesourcery.com>
35
36 PR fortran/107424
37 * libgomp.texi (Impl. Status 5.0): Add link to new PR110735.
38 * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: Enable
39 commented tests.
40 * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: Remove
41 test file; tests are in non-rectangular-loop-1.f90.
42 * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: Change
43 testcase to use a non-constant step to retain the 'sorry' test.
44 * testsuite/libgomp.fortran/non-rectangular-loop-6.f90: New test.
45
46 2023-07-17 Tobias Burnus <tobias@codesoucery.com>
47 Chung-Lin Tang <cltang@codesourcery.com>
48
49 * testsuite/libgomp.fortran/uses_allocators_1.f90: New test.
50 * testsuite/libgomp.fortran/uses_allocators_2.f90: New test.
51
52 2023-07-14 Tobias Burnus <tobias@codesourcery.com>
53
54 * libgomp.texi (OMP_ALLOCATOR): Document the default values for
55 the traits. Add crossref to 'Memory allocation'.
56 (Memory allocation): Refer to OMP_ALLOCATOR for the available
57 traits and allocators/mem spaces; document the default value
58 for the pool_size trait.
59
60 2023-07-14 Tobias Burnus <tobias@codesourcery.com>
61
62 * allocator.c (omp_init_allocator): Check whether symbol from
63 dlopened libnuma is available before using libnuma for
64 allocations.
65
66 2023-07-13 David Edelsohn <dje.gcc@gmail.com>
67
68 * testsuite/libgomp.c++/target-map-class-2.C: Require LTO.
69 * testsuite/libgomp.c-c++-common/requires-4.c: Require LTO.
70 * testsuite/libgomp.c-c++-common/requires-4a.c: Require LTO.
71
72 2023-07-12 Tobias Burnus <tobias@codesourcery.com>
73
74 * libgomp.texi (OpenMP 5.0): Replace '... stub' by @ref to
75 'Memory allocation' section which contains the full status.
76 (TR11): Remove differently worded duplicated entry.
77
78 2023-07-12 Tobias Burnus <tobias@codesourcery.com>
79
80 * allocator.c: Add ifdef for LIBGOMP_USE_LIBNUMA.
81 (enum gomp_numa_memkind_kind): Renamed from gomp_memkind_kind;
82 add GOMP_MEMKIND_LIBNUMA.
83 (struct gomp_libnuma_data, gomp_init_libnuma, gomp_get_libnuma): New.
84 (omp_init_allocator): Handle partition=nearest with libnuma if avail.
85 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
86 numa_alloc_local (+ memset), numa_free, and numa_realloc calls as
87 needed.
88 * config/linux/allocator.c (LIBGOMP_USE_LIBNUMA): Define
89 * libgomp.texi: Fix a typo; use 'fi' instead of its ligature char.
90 (Memory allocation): Renamed from 'Memory allocation with libmemkind';
91 updated for libnuma usage.
92 * testsuite/libgomp.c-c++-common/alloc-11.c: New test.
93 * testsuite/libgomp.c-c++-common/alloc-12.c: New test.
94
95 2023-07-11 Tobias Burnus <tobias@codesourcery.com>
96
97 * allocator.c (omp_init_allocator): Use malloc for
98 omp_high_bw_mem_space when the memkind lib is unavailable
99 instead of returning omp_null_allocator.
100 * libgomp.texi (OpenMP 5.0): Fix typo.
101 (Memory allocation with libmemkind): Document implementation
102 in more detail.
103
104 2023-06-22 Tobias Burnus <tobias@codesourcery.com>
105
106 * libgomp.texi: Use @var for ICV vars.
107 (OpenMP Environment Variables): Mention _ALL/_DEV/_DEV_<no> variants,
108 document which ICV is set and which scope the ICV has; extend/cleanup
109 some @ref.
110 (Implementation-defined ICV Initialization): New.
111 (nvptx): Document the implementation-defined used per-warp stack size.
112
113 2023-06-19 Thomas Schwinge <thomas@codesourcery.com>
114
115 * testsuite/libgomp.c/target-51.c: Fix DejaGnu directive syntax
116 error.
117
118 2023-06-19 Tobias Burnus <tobias@codesourcery.com>
119
120 * testsuite/libgomp.c/target-51.c: Accept more error msg variants
121 as expected dg-output.
122
123 2023-06-19 Tobias Burnus <tobias@codesourcery.com>
124
125 PR middle-end/110270
126 * target.c (gomp_map_vars_internal): Copy host value instead of NULL
127 for GOMP_MAP_ZERO_LEN_ARRAY_SECTION if not mapped.
128 * libgomp.texi (OpenMP 5.2 Impl.): Mark as 'Y'.
129 * testsuite/libgomp.c/target-19.c: Update expected value.
130 * testsuite/libgomp.c++/target-18.C: Likewise.
131 * testsuite/libgomp.c++/target-19.C: Likewise.
132 * testsuite/libgomp.c-c++-common/requires-unified-addr-2.c: New test.
133 * testsuite/libgomp.c-c++-common/target-implicit-map-3.c: New test.
134 * testsuite/libgomp.c-c++-common/target-implicit-map-4.c: New test.
135
136 2023-06-16 Tobias Burnus <tobias@codesourcery.com>
137
138 * target.c (resolve_device): Call gomp_get_num_devices early to ensure
139 gomp_init_targets_once was called before using default-device-var.
140 * testsuite/libgomp.c/target-55.c: New test.
141 * testsuite/libgomp.c/target-55a.c: New test.
142
143 2023-06-15 Tobias Burnus <tobias@codesourcery.com>
144
145 * env.c (gomp_def_allocator_envvar): New var.
146 (parse_allocator): Handle OpenMP 5.1 syntax.
147 (cleanup_env): New.
148 (omp_display_env): Output gomp_def_allocator_envvar
149 for an allocator with traits.
150 * libgomp.texi (OMP_ALLOCATOR, OMP_AFFINITY_FORMAT,
151 OMP_DISPLAY_AFFINITY): New.
152 * testsuite/libgomp.c/allocator-1.c: New test.
153 * testsuite/libgomp.c/allocator-2.c: New test.
154 * testsuite/libgomp.c/allocator-3.c: New test.
155 * testsuite/libgomp.c/allocator-4.c: New test.
156 * testsuite/libgomp.c/allocator-5.c: New test.
157 * testsuite/libgomp.c/allocator-6.c: New test.
158
159 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
160
161 * target.c (resolve_device): Align a
162 'OMP_TARGET_OFFLOAD=mandatory' diagnostic with others.
163 * testsuite/libgomp.c/target-51.c: Adjust.
164
165 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
166
167 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Don't
168 set.
169 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags):
170 Likewise.
171 * testsuite/libgomp.c/simd-math-1.c: Remove
172 '-foffload-options=-lm'.
173 * testsuite/libgomp.fortran/fortran-torture_execute_math.f90:
174 Likewise.
175 * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
176 Likewise.
177
178 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
179
180 * testsuite/libgomp.fortran/fortran-torture_execute_math.f90: New.
181 * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
182 Likewise.
183
184 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
185
186 * testsuite/libgomp.c/target-51.c: Fix typo.
187
188 2023-06-14 Tobias Burnus <tobias@codesourcery.com>
189
190 * env.c (gomp_default_icv_values): Init default_device_var to
191 an nonconforming value - INT_MIN.
192 (initialize_env): After env-var parsing, set default_device_var to
193 device 0 unless OMP_TARGET_OFFLOAD=mandatory.
194 (omp_display_env): If default_device_var is INT_MIN, call
195 gomp_init_targets_once.
196 * icv-device.c (omp_get_default_device): Likewise.
197 * libgomp.texi (OMP_DEFAULT_DEVICE): Update init description.
198 (OpenMP 5.2 Impl. Status): Mark OMP_TARGET_OFFLOAD=mandatory as 'Y'.
199 * target.c (resolve_device): Improve error message device-num < 0
200 with 'mandatory' and no no-host devices available.
201 (gomp_target_init): Set default-device-var if INT_MIN.
202 * testsuite/libgomp.c/target-48.c: New test.
203 * testsuite/libgomp.c/target-49.c: New test.
204 * testsuite/libgomp.c/target-50.c: New test.
205 * testsuite/libgomp.c/target-50a.c: New test.
206 * testsuite/libgomp.c/target-51.c: New test.
207 * testsuite/libgomp.c/target-52.c: New test.
208 * testsuite/libgomp.c/target-53.c: New test.
209 * testsuite/libgomp.c/target-54.c: New test.
210
211 2023-06-13 Tobias Burnus <tobias@codesourcery.com>
212
213 PR libgomp/109837
214 * testsuite/libgomp.c-c++-common/requires-unified-addr-1.c: New test.
215 * testsuite/libgomp.fortran/requires-unified-addr-1.f90: New test.
216
217 2023-06-12 Tobias Burnus <tobias@codesourcery.com>
218
219 * target.c (gomp_to_device_kind_p, gomp_map_vars_internal): Replace
220 GOMP_MAP_PRESENT_{FROM,TO,TOFROM,ACLLOC} by GOMP_MAP_FORCE_PRESENT.
221 (gomp_map_vars_internal, gomp_update): Likewise; unify and improve
222 error message.
223 * testsuite/libgomp.c-c++-common/target-present-2.c: Update for
224 changed error message.
225 * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
226 * testsuite/libgomp.fortran/target-present-2.f90: Likewise.
227 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
228 * testsuite/libgomp.c-c++-common/target-present-1.c: Likewise and
229 extend testcase to check that data is copied when needed.
230 * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
231 * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
232
233 2023-06-07 Thomas Schwinge <thomas@codesourcery.com>
234 Tobias Burnus <tobias@codesourcery.com>
235
236 * testsuite/libgomp.c-c++-common/target-present-1.c: Run code
237 also for non-offload_device targets; check that it runs
238 successfully for those and for all until a checkpoint for all
239 * testsuite/libgomp.c-c++-common/target-present-2.c: Likewise.
240 * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
241 * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
242 * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
243 * testsuite/libgomp.fortran/target-present-2.f90: Likewise;
244 add missing vars to map clause.
245
246 2023-06-06 Tobias Burnus <tobias@codesourcery.com>
247
248 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Regard
249 unified_address requirement as supported.
250 * libgomp.texi (OpenMP 5.0, AMD Radeon, nvptx): Remove
251 'unified_address' from the not-supported requirements.
252
253 2023-06-06 Kwok Cheung Yeung <kcy@codesourcery.com>
254 Tobias Burnus <tobias@codesourcery.com>
255
256 * libgomp.texi (OpenMP 5.1 Impl. status): Set 'present' support for
257 defaultmap to 'Y', add 'Y' entry for 'present' on to/from/map clauses.
258 * target.c (gomp_to_device_kind_p): Add map kinds with 'present'
259 modifier.
260 (gomp_map_vars_existing): Use new GOMP_MAP_FORCE_P macro.
261 (gomp_map_vars_internal, gomp_update, gomp_target_rev):
262 Emit runtime error if memory region not present.
263 * testsuite/libgomp.c-c++-common/target-present-1.c: New test.
264 * testsuite/libgomp.c-c++-common/target-present-2.c: New test.
265 * testsuite/libgomp.c-c++-common/target-present-3.c: New test.
266 * testsuite/libgomp.fortran/target-present-1.f90: New test.
267 * testsuite/libgomp.fortran/target-present-2.f90: New test.
268 * testsuite/libgomp.fortran/target-present-3.f90: New test.
269
270 2023-06-02 Thomas Schwinge <thomas@codesourcery.com>
271
272 PR testsuite/66005
273 * testsuite/lib/libgomp.exp: 'flock' through stdout.
274 * testsuite/flock: New.
275 * configure.ac (FLOCK): Point to that if no 'flock' available, but
276 'perl' is.
277 * configure: Regenerate.
278
279 2023-06-02 Thomas Schwinge <thomas@codesourcery.com>
280
281 * configure.ac (PERL): Remove.
282 * configure: Regenerate.
283 * Makefile.in: Likewise.
284 * testsuite/Makefile.in: Likewise.
285
286 2023-06-01 Tobias Burnus <tobias@codesourcery.com>
287
288 * libgomp.texi (OpenMP 5.2): Mark pure-directive handling as 'Y'.
289
290 2023-05-26 Tobias Burnus <tobias@codesourcery.com>
291
292 * testsuite/libgomp.fortran/allocate-4.f90: Update dg-error.
293
294 2023-05-21 Tobias Burnus <tobias@codesourcery.com>
295
296 PR libgomp/109875
297 * config/gcn/target.c (GOMP_teams4): Honor nteams-var ICV.
298 * config/nvptx/target.c (GOMP_teams4): Likewise.
299 * testsuite/libgomp.c-c++-common/teams-nteams-icv-1.c: New test.
300 * testsuite/libgomp.c-c++-common/teams-nteams-icv-2.c: New test.
301 * testsuite/libgomp.c-c++-common/teams-nteams-icv-3.c: New test.
302 * testsuite/libgomp.c-c++-common/teams-nteams-icv-4.c: New test.
303
304 2023-05-19 Jakub Jelinek <jakub@redhat.com>
305
306 PR libgomp/109904
307 * configure.ac (link_gomp): Include also $DL_LIBS.
308 * configure: Regenerated.
309
310 2023-05-17 Tobias Burnus <tobias@codesourcery.com>
311
312 * testsuite/libgomp.fortran/target-enter-data-3.f90: Uncomment
313 'target exit data'.
314 * testsuite/libgomp.fortran/target-enter-data-4.f90: New test.
315 * testsuite/libgomp.fortran/target-enter-data-5.f90: New test.
316 * testsuite/libgomp.fortran/target-enter-data-6.f90: New test.
317 * testsuite/libgomp.fortran/target-enter-data-7.f90: New test.
318
319 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
320
321 PR testsuite/66005
322 * configure.ac: Look for 'flock'.
323 * testsuite/Makefile.am (gcc_test_parallel_slots): Enable parallel testing.
324 * testsuite/config/default.exp: Don't 'load_lib "standard.exp"' here...
325 * testsuite/lib/libgomp.exp: ... but here, instead.
326 (libgomp_load): Override for parallel testing.
327 * testsuite/libgomp-site-extra.exp.in (FLOCK): Set.
328 * configure: Regenerate.
329 * Makefile.in: Regenerate.
330 * testsuite/Makefile.in: Regenerate.
331
332 2023-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
333 Thomas Schwinge <thomas@codesourcery.com>
334
335 PR testsuite/66005
336 * testsuite/Makefile.am (PWD_COMMAND): New variable.
337 (%/site.exp): New target.
338 (check_p_numbers0, check_p_numbers1, check_p_numbers2)
339 (check_p_numbers3, check_p_numbers4, check_p_numbers5)
340 (check_p_numbers6, check_p_numbers, gcc_test_parallel_slots)
341 (check_p_subdirs)
342 (check_DEJAGNU_libgomp_targets): New variables.
343 ($(check_DEJAGNU_libgomp_targets)): New target.
344 ($(check_DEJAGNU_libgomp_targets)): New dependency.
345 (check-DEJAGNU $(check_DEJAGNU_libgomp_targets)): New targets.
346 * testsuite/Makefile.in: Regenerate.
347 * testsuite/lib/libgomp.exp: For parallel testing,
348 'load_file ../libgomp-test-support.exp'.
349
350 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
351
352 PR testsuite/91884
353 * configure.ac: 'AC_SUBST(CXX)'.
354 * configure: Regenerate.
355 * Makefile.in: Likewise.
356 * testsuite/Makefile.in: Likewise.
357 * testsuite/libgomp-site-extra.exp.in (GXX_UNDER_TEST)
358 (GFORTRAN_UNDER_TEST): Set.
359 * testsuite/lib/libgomp.exp (libgomp_init): Adjust.
360 * testsuite/libgomp.c++/c++.exp: Use 'GXX_UNDER_TEST'.
361 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
362 * testsuite/libgomp.fortran/fortran.exp: Use
363 'GFORTRAN_UNDER_TEST'.
364 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
365
366 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
367
368 PR testsuite/91884
369 * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't
370 specify compiler.
371 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Specify compiler.
372 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
373 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
374 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
375 Likewise.
376 * testsuite/libgomp.oacc-c++/c++.exp (ALWAYS_CFLAGS): Likewise.
377 * testsuite/libgomp.oacc-c/c.exp (ALWAYS_CFLAGS): Likewise.
378 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS):
379 Likewise.
380
381 2023-05-12 Tobias Burnus <tobias@codesourcery.com>
382
383 PR libstdc++/109816
384 * testsuite/libgomp.c++/target-map-class-1.C: New test.
385 * testsuite/libgomp.c++/target-map-class-2.C: New test.
386
387 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
388
389 * testsuite/lib/libgomp.exp (libgomp_target_compile): Generalize
390 'lang_library_path' into a list of 'lang_library_paths'.
391 * testsuite/libgomp.c++/c++.exp: Adjust.
392 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
393 * testsuite/libgomp.fortran/fortran.exp: Adjust. Use that for
394 libquadmath, too.
395 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
396
397 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
398
399 * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't look
400 at 'lang_test_file_found'.
401 * testsuite/libgomp.c++/c++.exp: Don't set and use it, and instead
402 'return' early if not able to test. Simplify 'ld_library_path' setup.
403 * testsuite/libgomp.fortran/fortran.exp: Likewise.
404 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
405 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
406
407 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
408
409 * testsuite/libgomp.c++/c++.exp: Resolve 'lang_test_file_found'
410 first.
411 * testsuite/libgomp.fortran/fortran.exp: Likewise.
412 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
413 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
414
415 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
416
417 * testsuite/libgomp.c++/c++.exp: Localize 'lang_[...]' etc.
418 * testsuite/libgomp.c/c.exp: Likewise.
419 * testsuite/libgomp.fortran/fortran.exp: Likewise.
420 * testsuite/libgomp.graphite/graphite.exp: Likewise.
421 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
422 * testsuite/libgomp.oacc-c/c.exp: Likewise.
423 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
424
425 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
426
427 * testsuite/libgomp.c++/c++.exp: Don't set 'lang_test_file'.
428 * testsuite/libgomp.fortran/fortran.exp: Likewise.
429 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
430 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
431 * testsuite/libgomp.c/c.exp: Unset 'lang_test_file_found' instead of
432 'lang_test_file'.
433 * testsuite/libgomp.oacc-c/c.exp: Likewise.
434 * testsuite/libgomp.graphite/graphite.exp: Likewise.
435 * testsuite/lib/libgomp.exp (libgomp_target_compile): Look for
436 'lang_test_file_found' instead of 'lang_test_file'.
437
438 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
439
440 * testsuite/lib/libgomp.exp (libgomp_init): Only use 'blddir' if
441 set.
442 * testsuite/libgomp.c++/c++.exp: Likewise.
443 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
444
445 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
446
447 * testsuite/libgomp.c++/c++.exp (blddir): Don't set.
448 * testsuite/libgomp.oacc-c++/c++.exp (blddir): Likewise.
449
450 2023-05-08 Thomas Schwinge <thomas@codesourcery.com>
451
452 * testsuite/libgomp.c++/c++.exp: Use 'lang_include_flags' instead
453 of 'libstdcxx_includes'.
454 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
455
456 2023-05-08 Thomas Schwinge <thomas@codesourcery.com>
457
458 * target.c (gomp_target_rev): Instead of 'dev_to_host_cpy',
459 'host_to_dev_cpy', 'token', take a single 'goacc_asyncqueue'.
460 * libgomp.h (gomp_target_rev): Adjust.
461 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): Adjust.
462 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): Adjust.
463 * plugin/plugin-gcn.c (process_reverse_offload): Adjust.
464 * plugin/plugin-nvptx.c (rev_off_dev_to_host_cpy)
465 (rev_off_host_to_dev_cpy): Remove.
466 (GOMP_OFFLOAD_run): Adjust.
467
468 2023-05-04 Julian Brown <julian@codesourcery.com>
469
470 PR fortran/109622
471 * testsuite/libgomp.fortran/pr109622.f90: Move test...
472 * testsuite/libgomp.oacc-fortran/pr109622.f90: ...to here. Ignore
473 vector length warning.
474 * testsuite/libgomp.fortran/pr109622-2.f90: Move test...
475 * testsuite/libgomp.oacc-fortran/pr109622-2.f90: ...to here. Add
476 missing copyin/copyout variable. Ignore vector length warnings.
477 * testsuite/libgomp.fortran/pr109622-3.f90: Move test...
478 * testsuite/libgomp.oacc-fortran/pr109622-3.f90: ...to here. Ignore
479 vector length warnings.
480 * testsuite/libgomp.oacc-fortran/pr109622-4.f90: New test.
481
482 2023-04-28 Julian Brown <julian@codesourcery.com>
483
484 PR fortran/109622
485 * testsuite/libgomp.fortran/pr109622.f90: New test.
486 * testsuite/libgomp.fortran/pr109622-2.f90: New test.
487 * testsuite/libgomp.fortran/pr109622-3.f90: New test.
488
489 2023-04-25 Tobias Burnus <tobias@codesourcery.com>
490
491 * testsuite/libgomp.c-c++-common/scan-1.c: New test.
492 * testsuite/libgomp.c/scan-23.c: New test.
493 * testsuite/libgomp.fortran/scan-2.f90: New test.
494
495 2023-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
496
497 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Add
498 weak_undefined options.
499
500 2023-03-24 Tobias Burnus <tobias@codesourcery.com>
501
502 * libgomp.texi (Offload-Target Specifics): Grammar fix.
503
504 2023-03-24 Thomas Schwinge <thomas@codesourcery.com>
505
506 PR fortran/104949
507 * target.c (gomp_map_vars_internal) <GOMP_MAP_FIRSTPRIVATE>: Add
508 caveat/safeguard.
509
510 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
511
512 PR libgomp/90596
513 * target.c (gomp_map_vars_internal): Allow for
514 'param_kind == GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_TARGET'.
515 * oacc-parallel.c (GOACC_parallel_keyed): Pass
516 'GOMP_MAP_VARS_TARGET' to 'goacc_map_vars'.
517 * plugin/plugin-gcn.c (alloc_by_agent, gcn_exec)
518 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
519 Adjust, simplify.
520 (gomp_offload_free): Remove.
521 * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
522 (GOMP_OFFLOAD_openacc_async_exec): Adjust, simplify.
523 (cuda_free_argmem): Remove.
524 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
525 Adjust.
526
527 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
528
529 * target.c (gomp_copy_host2dev, gomp_map_vars_internal): Allow
530 libgomp 'cbuf' buffering with OpenACC 'async' for 'ephemeral'
531 data.
532
533 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
534
535 * target.c (gomp_map_vars_internal): Use 'OFFSET_INLINED' for
536 'GOMP_MAP_IF_PRESENT'.
537 * plugin/plugin-gcn.c (gcn_exec, GOMP_OFFLOAD_openacc_exec)
538 (GOMP_OFFLOAD_openacc_async_exec): Adjust.
539 * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
540 (GOMP_OFFLOAD_openacc_async_exec): Likewise.
541 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: Add 'async'
542 testing.
543 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: Likewise.
544
545 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
546
547 * oacc-async.c (goacc_wait): Remove 'acc_async_test' -> skip
548 shortcut.
549
550 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
551
552 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Document/verify
553 another aspect of OpenACC 'async' semantics.
554
555 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
556
557 * plugin/plugin-gcn.c (gcn_exec): Fix 'acc_ev_enqueue_launch_end'
558 position.
559 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
560 Verify 'acc_ev_alloc', 'acc_ev_free'.
561
562 2023-03-09 Hongyu Wang <hongyu.wang@intel.com>
563
564 PR libgomp/109062
565 * env.c (wait_policy): Initialize to -1.
566 (initialize_icvs): Initialize icvs->wait_policy to -1.
567 * testsuite/libgomp.c-c++-common/pr109062.c: New test.
568
569 2023-03-08 Tobias Burnus <tobias@codesourcery.com>
570
571 * libgomp.texi (Offload-Target Specifics): Mention GCN_STACK_SIZE.
572
573 2023-03-02 Kwok Cheung Yeung <kcy@codesourcery.com>
574 Paul-Antoine Arras <pa@codesourcery.com>
575
576 * testsuite/libgomp.c/simd-math-1.c: New testcase.
577
578 2023-03-01 Tobias Burnus <tobias@codesourcery.com>
579
580 PR middle-end/108546
581 * testsuite/libgomp.fortran/is_device_ptr-3.f90: New test.
582 * testsuite/libgomp.fortran/use_device_ptr-optional-4.f90: New test.
583
584 2023-02-22 Thomas Schwinge <thomas@codesourcery.com>
585
586 * testsuite/libgomp.fortran/alloc-10.f90: Use
587 '-Wno-complain-wrong-lang'.
588 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
589 * testsuite/libgomp.fortran/alloc-7.f90: Likewise.
590 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
591 * testsuite/libgomp.fortran/allocate-1.f90: Likewise.
592 * testsuite/libgomp.fortran/depend-4.f90: Likewise.
593 * testsuite/libgomp.fortran/depend-5.f90: Likewise.
594 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
595 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
596 * testsuite/libgomp.fortran/depend-inoutset-1.f90: Likewise.
597 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90:
598 Likewise.
599 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90:
600 Likewise.
601 * testsuite/libgomp.fortran/order-reproducible-1.f90: Likewise.
602 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
603 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
604 * testsuite/libgomp.fortran/task-detach-6.f90: Remove left-over
605 'dg-prune-output'.
606
607 2023-02-16 Jakub Jelinek <jakub@redhat.com>
608
609 * libgomp.texi: Fix typos - theads -> threads.
610
611 2023-02-16 Jakub Jelinek <jakub@redhat.com>
612
613 * testsuite/libgomp.fortran/target-nowait-array-section.f90: Fix
614 comment typo and improve its wording.
615
616 2023-02-15 Tobias Burnus <tobias@codesourcery.com>
617
618 * target.c (gomp_target_rev): Dereference ptr
619 to get device address.
620 * testsuite/libgomp.fortran/reverse-offload-5.f90: Add test
621 for unallocated allocatable.
622
623 2023-02-15 Tobias Burnus <tobias@codesourcery.com>
624
625 * target.c (gomp_map_vars_internal): Add 'i > 0' before doing a
626 kind check.
627 (GOMP_target_enter_exit_data): If the next map item is
628 GOMP_MAP_ALWAYS_POINTER map it together with the current item.
629 * testsuite/libgomp.fortran/target-enter-data-3.f90: New test.
630
631 2023-02-09 Tobias Burnus <tobias@codesourcery.com>
632
633 PR fortran/107424
634 * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: New test.
635 * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: New test.
636 * testsuite/libgomp.fortran/non-rectangular-loop-2.f90: New test.
637 * testsuite/libgomp.fortran/non-rectangular-loop-3.f90: New test.
638 * testsuite/libgomp.fortran/non-rectangular-loop-4.f90: New test.
639 * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: New test.
640
641 2023-02-07 Thomas Schwinge <thomas@codesourcery.com>
642
643 * testsuite/libgomp.fortran/reverse-offload-6.f90: Fix nvptx
644 offloading compilation.
645
646 2023-02-03 Tobias Burnus <tobias@codesourcery.com>
647
648 * target.c (gomp_target_rev): Handle mapnum == 0 and avoid
649 freeing not allocated memory.
650 * testsuite/libgomp.fortran/reverse-offload-6.f90: New test.
651
652 2023-02-03 Tobias Burnus <tobias@codesourcery.com>
653
654 * libgomp.texi (5.0 Impl. Status, gcn specifics): Update for
655 reverse offload.
656 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Accept
657 reverse-offload requirement.
658
659 2023-02-02 Andrew Stubbs <ams@codesourcery.com>
660
661 * config/gcn/libgomp-gcn.h (DEFAULT_GCN_STACK_SIZE): New define.
662 (DEFAULT_TEAM_ARENA_SIZE): New define.
663 (struct heap): Move to this file.
664 (struct kernargs_abi): Likewise.
665 * config/gcn/team.c (gomp_gcn_enter_kernel): Use team arena size from
666 the kernargs.
667 * libgomp.h: Include libgomp-gcn.h.
668 (TEAM_ARENA_SIZE): Remove.
669 (team_malloc): Update the error message.
670 * plugin/plugin-gcn.c (struct kernargs): Move common content to
671 struct kernargs_abi.
672 (struct agent_info): Rename team arenas to ephemeral memories.
673 (struct team_arena_list): Rename ....
674 (struct ephemeral_memories_list): to this.
675 (struct heap): Delete.
676 (team_arena_size): New variable.
677 (stack_size): New variable.
678 (print_kernel_dispatch): Update debug messages.
679 (init_environment_variables): Read GCN_TEAM_ARENA_SIZE.
680 Read GCN_STACK_SIZE.
681 (get_team_arena): Rename ...
682 (configure_ephemeral_memories): ... to this, and set up stacks.
683 (release_team_arena): Rename ...
684 (release_ephemeral_memories): ... to this.
685 (destroy_team_arenas): Rename ...
686 (destroy_ephemeral_memories): ... to this.
687 (create_kernel_dispatch): Add num_threads parameter.
688 Adjust for kernargs_abi refactor and ephemeral memories.
689 (release_kernel_dispatch): Adjust for ephemeral memories.
690 (run_kernel): Pass thread-count to create_kernel_dispatch.
691 (GOMP_OFFLOAD_init_device): Adjust for ephemeral memories.
692 (GOMP_OFFLOAD_fini_device): Adjust for ephemeral memories.
693
694 2023-02-02 Tobias Burnus <tobias@codesourcery.com>
695
696 * libgomp.texi (OpenMP TR11): Fix item for 'strict' modifier.
697
698 2023-02-01 Tobias Burnus <tobias@codesourcery.com>
699
700 * testsuite/libgomp.fortran/allocate-3.f90: Fix ALIGN
701 usage, remove unused -fdump-tree-original.
702 * testsuite/libgomp.fortran/allocate-4.f90: New.
703
704 2023-02-01 Tobias Burnus <tobias@codesourcery.com>
705
706 * libgomp.texi (5.0 Impl. Status): Update 'requires' and 'ancestor'.
707 (GCN): Add item about 'omp requires'.
708 (nvptx): Likewise; add item about reverse offload.
709
710 2023-01-27 Tobias Burnus <tobias@codesourcery.com>
711
712 PR fortran/108558
713 * testsuite/libgomp.fortran/has_device_addr.f90: New test.
714
715 2023-01-23 Tobias Burnus <tobias@codesourcery.com>
716
717 * libgomp.texi (OpenMP 5.0): Set non-rectangular
718 loop nest back to 'P' as Fortran support is incomplete.
719
720 2023-01-19 Jakub Jelinek <jakub@redhat.com>
721
722 PR middle-end/108459
723 * testsuite/libgomp.c/pr108459.c: New test.
724
725 2023-01-17 Martin Liska <mliska@suse.cz>
726
727 * Makefile.in: Regenerate.
728 * configure: Regenerate.
729
730 2023-01-07 LIU Hao <lh_mouse@126.com>
731
732 PR middle-end/108300
733 * config/mingw32/proc.c: Define `WIN32_LEAN_AND_MEAN` before
734 <windows.h>.
735
736 2023-01-05 Jakub Jelinek <jakub@redhat.com>
737
738 PR c++/108286
739 * testsuite/libgomp.c++/pr108286.C: New test.
740
741 2023-01-02 Jakub Jelinek <jakub@redhat.com>
742
743 * libgomp.texi: Bump @copying's copyright year.
744
745 2022-12-21 Chung-Lin Tang <cltang@codesourcery.com>
746
747 PR target/99555
748 * config/nvptx/bar.c (generation_to_barrier): Remove.
749 (futex_wait,futex_wake,do_spin,do_wait): Remove.
750 (GOMP_WAIT_H): Remove.
751 (#include "../linux/bar.c"): Remove.
752 (gomp_barrier_wait_end): New function.
753 (gomp_barrier_wait): Likewise.
754 (gomp_barrier_wait_last): Likewise.
755 (gomp_team_barrier_wait_end): Likewise.
756 (gomp_team_barrier_wait): Likewise.
757 (gomp_team_barrier_wait_final): Likewise.
758 (gomp_team_barrier_wait_cancel_end): Likewise.
759 (gomp_team_barrier_wait_cancel): Likewise.
760 (gomp_team_barrier_cancel): Likewise.
761 * config/nvptx/bar.h (gomp_barrier_t): Remove waiters, lock fields.
762 (gomp_barrier_init): Remove init of waiters, lock fields.
763 (gomp_team_barrier_wake): Remove prototype, add new static inline
764 function.
765
766 2022-12-21 Jakub Jelinek <jakub@redhat.com>
767
768 PR c++/108180
769 * testsuite/libgomp.c++/pr108180.C: New test.
770
771 2022-12-16 Tobias Burnus <tobias@codesourcery.com>
772
773 PR libfortran/108056
774 * testsuite/libgomp.fortran/allocate-4.f90: Remove
775 accidentally added file.
776
777 2022-12-15 Tobias Burnus <tobias@codesourcery.com>
778
779 PR libfortran/108056
780 * testsuite/libgomp.fortran/allocate-4.f90: New file.
781
782 2022-12-14 Julian Brown <julian@codesourcery.com>
783
784 * testsuite/libgomp.fortran/combined-directive-splitting-1.f90: New
785 test.
786
787 2022-12-10 Tobias Burnus <tobias@codesourcery.com>
788
789 * libgomp.h (struct target_mem_desc): Predeclare; move
790 below after 'reverse_splay_tree_node' and add rev_array
791 member.
792 (struct reverse_splay_tree_key_s, reverse_splay_compare): New.
793 (reverse_splay_tree_node, reverse_splay_tree,
794 reverse_splay_tree_key): New typedef.
795 (struct gomp_device_descr): Add mem_map_rev member.
796 * oacc-host.c (host_dispatch): NULL init .mem_map_rev.
797 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Claim
798 support for GOMP_REQUIRES_REVERSE_OFFLOAD.
799 * splay-tree.h (splay_tree_callback_stop): New typedef; like
800 splay_tree_callback but returning int not void.
801 (splay_tree_foreach_lazy): Define; like splay_tree_foreach but
802 taking splay_tree_callback_stop as argument.
803 * splay-tree.c (splay_tree_foreach_internal_lazy,
804 splay_tree_foreach_lazy): New; but early exit if callback returns
805 nonzero.
806 * target.c: Instatiate splay_tree_c with splay_tree_prefix 'reverse'.
807 (gomp_map_lookup_rev): New.
808 (gomp_load_image_to_device): Handle reverse-offload function
809 lookup table.
810 (gomp_unload_image_from_device): Free devicep->mem_map_rev.
811 (struct gomp_splay_tree_rev_lookup_data, gomp_splay_tree_rev_lookup,
812 gomp_map_rev_lookup, struct cpy_data, gomp_map_cdata_lookup_int,
813 gomp_map_cdata_lookup): New auxiliary structs and functions for
814 gomp_target_rev.
815 (gomp_target_rev): Implement reverse offloading and its mapping.
816 (gomp_target_init): Init current_device.mem_map_rev.root.
817 * testsuite/libgomp.fortran/reverse-offload-2.f90: New test.
818 * testsuite/libgomp.fortran/reverse-offload-3.f90: New test.
819 * testsuite/libgomp.fortran/reverse-offload-4.f90: New test.
820 * testsuite/libgomp.fortran/reverse-offload-5.f90: New test.
821 * testsuite/libgomp.fortran/reverse-offload-5a.f90: New test without
822 mapping of on-device allocated variables.
823
824 2022-12-09 Tobias Burnus <tobias@codesourcery.com>
825
826 * libgomp.texi (5.1 Impl. Status): Split allocate clause/directive
827 item about 'align'; mark clause as 'Y' and directive as 'N'.
828 * testsuite/libgomp.fortran/allocate-2.f90: New test.
829 * testsuite/libgomp.fortran/allocate-3.f90: New test.
830
831 2022-12-06 Marcel Vollweiler <marcel@codesourcery.com>
832
833 * config/gcn/icv-device.c (omp_get_teams_thread_limit): Added to
834 allow processing of device-specific values.
835 (omp_set_teams_thread_limit): Likewise.
836 (ialias): Likewise.
837 * config/nvptx/icv-device.c (omp_get_teams_thread_limit): Likewise.
838 (omp_set_teams_thread_limit): Likewise.
839 (ialias): Likewise.
840 * icv-device.c (omp_get_teams_thread_limit): Likewise.
841 (ialias): Likewise.
842 (omp_set_teams_thread_limit): Likewise.
843 * icv.c (omp_set_teams_thread_limit): Removed.
844 (omp_get_teams_thread_limit): Likewise.
845 (ialias): Likewise.
846 * libgomp.texi: Updated documentation for nvptx and gcn corresponding
847 to the limitation of the number of teams.
848 * plugin/plugin-gcn.c (limit_teams): New helper function that limits
849 the number of teams by twice the number of compute units.
850 (parse_target_attributes): Limit the number of teams on gcn offload
851 devices.
852 * target.c (get_gomp_offload_icvs): Added teams_thread_limit_var
853 handling.
854 (gomp_load_image_to_device): Added a size check for the ICVs struct
855 variable.
856 (gomp_copy_back_icvs): New function that is used in GOMP_target_ext to
857 copy back the ICV values from device to host.
858 (GOMP_target_ext): Update the number of teams and threads in the kernel
859 args also considering device-specific values.
860 * testsuite/libgomp.c-c++-common/icv-4.c: Fixed an error in the reading
861 of OMP_TEAMS_THREAD_LIMIT from the environment.
862 * testsuite/libgomp.c-c++-common/icv-5.c: Extended.
863 * testsuite/libgomp.c-c++-common/icv-6.c: Extended.
864 * testsuite/libgomp.c-c++-common/icv-7.c: Extended.
865 * testsuite/libgomp.c-c++-common/icv-9.c: New test.
866 * testsuite/libgomp.fortran/icv-5.f90: New test.
867 * testsuite/libgomp.fortran/icv-6.f90: New test.
868
869 2022-12-06 Tobias Burnus <tobias@codesourcery.com>
870
871 * libgomp.texi (OpenMP 5.2): Add missing 'the'.
872 (TR11): Add missing '@tab N @tab'.
873
874 2022-11-30 Tobias Burnus <tobias@codesourcery.com>
875
876 * libgomp.texi (OpenMP Context Selectors): Add 'gfx803' to gcn's isa.
877
878 2022-11-30 Paul-Antoine Arras <pa@codesourcery.com>
879
880 * testsuite/libgomp.c/declare-variant-4-fiji.c: New test.
881 * testsuite/libgomp.c/declare-variant-4-gfx803.c: New test.
882 * testsuite/libgomp.c/declare-variant-4-gfx900.c: New test.
883 * testsuite/libgomp.c/declare-variant-4-gfx906.c: New test.
884 * testsuite/libgomp.c/declare-variant-4-gfx908.c: New test.
885 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: New test.
886 * testsuite/libgomp.c/declare-variant-4.h: New header file.
887
888 2022-11-28 Tobias Burnus <tobias@codesourcery.com>
889
890 * libgomp.texi (OpenMP 5.2): Mark end-directive as Y.
891
892 2022-11-25 Sandra Loosemore <sandra@codesourcery.com>
893
894 * testsuite/lib/libgomp.exp: Load scanoffloadipa.exp library.
895 * testsuite/libgomp.c/target-simd-clone-1.c: New.
896 * testsuite/libgomp.c/target-simd-clone-2.c: New.
897 * testsuite/libgomp.c/target-simd-clone-3.c: New.
898
899 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
900
901 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Use unsigned int
902 for 'i' to match 'fn_entries'; regard absent GOMP_REV_OFFLOAD_VAR
903 as valid and the code having no reverse-offload code.
904 * testsuite/libgomp.c-c++-common/reverse-offload-2.c: New test.
905
906 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
907
908 * libgomp.texi (OpenMP Implementation Status): Add three 5.1 items
909 and status for Technical Report (TR) 11.
910
911 2022-11-21 Tobias Burnus <tobias@codesourcery.com>
912
913 * config/gcn/libgomp-gcn.h (struct output):
914 Remove 'msg_u64' from the union, change
915 value_u64[2] to value_u64[6].
916 * config/gcn/target.c (GOMP_target_ext): Update accordingly.
917 * plugin/plugin-gcn.c (process_reverse_offload, console_output):
918 Likewise.
919
920 2022-11-19 Tobias Burnus <tobias@codesourcery.com>
921
922 * config/gcn/libgomp-gcn.h: New file; contains
923 struct output, declared previously in plugin-gcn.c.
924 * config/gcn/target.c: Include it.
925 (GOMP_ADDITIONAL_ICVS): Declare as extern var.
926 (GOMP_target_ext): Handle reverse offload.
927 * plugin/plugin-gcn.c: Include libgomp-gcn.h.
928 (struct kernargs): Replace struct def by the one
929 from libgomp-gcn.h for output_data.
930 (process_reverse_offload): New.
931 (console_output): Call it.
932
933 2022-11-16 Tobias Burnus <tobias@codesourcery.com>
934 Andrew Stubbs <ams@codesourcery.com>
935
936 * config/gcn/team.c (gomp_gcn_enter_kernel): Use
937 __builtin_gcn_kernarg_ptr instead of asm ("s8").
938
939 2022-11-14 Martin Liska <mliska@suse.cz>
940
941 Revert:
942 2022-11-14 Martin Liska <mliska@suse.cz>
943
944 * doc/amd-radeon-gcn.rst: New file.
945 * doc/conf.py: New file.
946 * doc/copyright.rst: New file.
947 * doc/cuda-streams-usage.rst: New file.
948 * doc/enabling-openacc.rst: New file.
949 * doc/enabling-openmp.rst: New file.
950 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
951 * doc/first-invocation-openacc-library-api.rst: New file.
952 * doc/funding.rst: New file.
953 * doc/general-public-license-3.rst: New file.
954 * doc/gnu-free-documentation-license.rst: New file.
955 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
956 * doc/index.rst: New file.
957 * doc/indices-and-tables.rst: New file.
958 * doc/introduction.rst: New file.
959 * doc/memory-allocation-with-libmemkind.rst: New file.
960 * doc/nvptx.rst: New file.
961 * doc/offload-target-specifics.rst: New file.
962 * doc/openacc-environment-variables.rst: New file.
963 * doc/openacc-environment-variables/accdevicenum.rst: New file.
964 * doc/openacc-environment-variables/accdevicetype.rst: New file.
965 * doc/openacc-environment-variables/accproflib.rst: New file.
966 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
967 * doc/openacc-introduction.rst: New file.
968 * doc/openacc-library-and-environment-variables.rst: New file.
969 * doc/openacc-library-interoperability.rst: New file.
970 * doc/openacc-profiling-interface.rst: New file.
971 * doc/openacc-runtime-library-routines.rst: New file.
972 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
973 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
974 * doc/openacc-runtime-library-routines/accattach.rst: New file.
975 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
976 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
977 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
978 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
979 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
980 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
981 * doc/openacc-runtime-library-routines/accfree.rst: New file.
982 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
983 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
984 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
985 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
986 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
987 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
988 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
989 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
990 * doc/openacc-runtime-library-routines/accinit.rst: New file.
991 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
992 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
993 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
994 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
995 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
996 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
997 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
998 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
999 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
1000 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
1001 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
1002 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1003 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
1004 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
1005 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
1006 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
1007 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
1008 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
1009 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
1010 * doc/openacc-runtime-library-routines/accwait.rst: New file.
1011 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
1012 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
1013 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
1014 * doc/openmp-context-selectors.rst: New file.
1015 * doc/openmp-environment-variables.rst: New file.
1016 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
1017 * doc/openmp-environment-variables/gompdebug.rst: New file.
1018 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
1019 * doc/openmp-environment-variables/gompspincount.rst: New file.
1020 * doc/openmp-environment-variables/gompstacksize.rst: New file.
1021 * doc/openmp-environment-variables/ompcancellation.rst: New file.
1022 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
1023 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
1024 * doc/openmp-environment-variables/ompdynamic.rst: New file.
1025 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
1026 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
1027 * doc/openmp-environment-variables/ompnested.rst: New file.
1028 * doc/openmp-environment-variables/ompnumteams.rst: New file.
1029 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
1030 * doc/openmp-environment-variables/ompplaces.rst: New file.
1031 * doc/openmp-environment-variables/ompprocbind.rst: New file.
1032 * doc/openmp-environment-variables/ompschedule.rst: New file.
1033 * doc/openmp-environment-variables/ompstacksize.rst: New file.
1034 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
1035 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
1036 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
1037 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
1038 * doc/openmp-implementation-specifics.rst: New file.
1039 * doc/openmp-implementation-status.rst: New file.
1040 * doc/openmp-implementation-status/openmp-45.rst: New file.
1041 * doc/openmp-implementation-status/openmp-50.rst: New file.
1042 * doc/openmp-implementation-status/openmp-51.rst: New file.
1043 * doc/openmp-implementation-status/openmp-52.rst: New file.
1044 * doc/openmp-runtime-library-routines.rst: New file.
1045 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
1046 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
1047 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
1048 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
1049 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
1050 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
1051 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
1052 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
1053 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
1054 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
1055 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
1056 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
1057 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
1058 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
1059 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
1060 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
1061 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
1062 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
1063 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
1064 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
1065 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
1066 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
1067 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
1068 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
1069 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
1070 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
1071 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
1072 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
1073 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
1074 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
1075 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
1076 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
1077 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
1078 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
1079 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
1080 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
1081 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
1082 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
1083 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
1084 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
1085 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
1086 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
1087 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
1088 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
1089 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
1090 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
1091 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
1092 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
1093 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
1094 * doc/reporting-bugs.rst: New file.
1095 * doc/the-libgomp-abi.rst: New file.
1096 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
1097 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
1098 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
1099 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1100 New file.
1101 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
1102 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
1103 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
1104 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
1105 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
1106 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
1107 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
1108 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
1109 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
1110 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
1111 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
1112
1113 2022-11-14 Martin Liska <mliska@suse.cz>
1114
1115 Revert:
1116 2022-11-14 Martin Liska <mliska@suse.cz>
1117
1118 * Makefile.in: Support Sphinx based documentation.
1119
1120 2022-11-14 Martin Liska <mliska@suse.cz>
1121
1122 Revert:
1123 2022-11-14 Martin Liska <mliska@suse.cz>
1124
1125 * libgomp.texi: Removed.
1126
1127 2022-11-14 Martin Liska <mliska@suse.cz>
1128
1129 Revert:
1130 2022-11-14 Martin Liska <mliska@suse.cz>
1131
1132 * Makefile.in: Support --with-sphinx-build.
1133 * configure.ac: Likewise..
1134 * configure: Regenerate.
1135
1136 2022-11-14 Martin Liska <mliska@suse.cz>
1137
1138 Revert:
1139 2022-11-09 Martin Liska <mliska@suse.cz>
1140
1141 * Makefile.in: Build info pages conditionally.
1142
1143 2022-11-14 Martin Liska <mliska@suse.cz>
1144
1145 Revert:
1146 2022-11-14 Martin Liska <mliska@suse.cz>
1147
1148 * doc/amd-radeon-gcn.rst:
1149 Add trailing newline.
1150 * doc/copyright.rst:
1151 Add trailing newline.
1152 * doc/cuda-streams-usage.rst:
1153 Add trailing newline.
1154 * doc/enabling-openacc.rst:
1155 Add trailing newline.
1156 * doc/enabling-openmp.rst:
1157 Add trailing newline.
1158 * doc/first-invocation-nvidia-cublas-library-api.rst:
1159 Add trailing newline.
1160 * doc/first-invocation-openacc-library-api.rst:
1161 Add trailing newline.
1162 * doc/funding.rst:
1163 Add trailing newline.
1164 * doc/general-public-license-3.rst:
1165 Add trailing newline.
1166 * doc/gnu-free-documentation-license.rst:
1167 Add trailing newline.
1168 * doc/implementation-status-and-implementation-defined-behavior.rst:
1169 Add trailing newline.
1170 * doc/index.rst:
1171 Add trailing newline.
1172 * doc/indices-and-tables.rst:
1173 Add trailing newline.
1174 * doc/introduction.rst:
1175 Add trailing newline.
1176 * doc/memory-allocation-with-libmemkind.rst:
1177 Add trailing newline.
1178 * doc/nvptx.rst:
1179 Add trailing newline.
1180 * doc/offload-target-specifics.rst:
1181 Add trailing newline.
1182 * doc/openacc-environment-variables.rst:
1183 Add trailing newline.
1184 * doc/openacc-environment-variables/accdevicenum.rst:
1185 Add trailing newline.
1186 * doc/openacc-environment-variables/accdevicetype.rst:
1187 Add trailing newline.
1188 * doc/openacc-environment-variables/accproflib.rst:
1189 Add trailing newline.
1190 * doc/openacc-environment-variables/gccaccnotify.rst:
1191 Add trailing newline.
1192 * doc/openacc-introduction.rst:
1193 Add trailing newline.
1194 * doc/openacc-library-and-environment-variables.rst:
1195 Add trailing newline.
1196 * doc/openacc-library-interoperability.rst:
1197 Add trailing newline.
1198 * doc/openacc-profiling-interface.rst:
1199 Add trailing newline.
1200 * doc/openacc-runtime-library-routines.rst:
1201 Add trailing newline.
1202 * doc/openacc-runtime-library-routines/accasynctest.rst:
1203 Add trailing newline.
1204 * doc/openacc-runtime-library-routines/accasynctestall.rst:
1205 Add trailing newline.
1206 * doc/openacc-runtime-library-routines/accattach.rst:
1207 Add trailing newline.
1208 * doc/openacc-runtime-library-routines/acccopyin.rst:
1209 Add trailing newline.
1210 * doc/openacc-runtime-library-routines/acccopyout.rst:
1211 Add trailing newline.
1212 * doc/openacc-runtime-library-routines/acccreate.rst:
1213 Add trailing newline.
1214 * doc/openacc-runtime-library-routines/accdelete.rst:
1215 Add trailing newline.
1216 * doc/openacc-runtime-library-routines/accdetach.rst:
1217 Add trailing newline.
1218 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
1219 Add trailing newline.
1220 * doc/openacc-runtime-library-routines/accfree.rst:
1221 Add trailing newline.
1222 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
1223 Add trailing newline.
1224 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
1225 Add trailing newline.
1226 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
1227 Add trailing newline.
1228 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
1229 Add trailing newline.
1230 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
1231 Add trailing newline.
1232 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
1233 Add trailing newline.
1234 * doc/openacc-runtime-library-routines/accgetproperty.rst:
1235 Add trailing newline.
1236 * doc/openacc-runtime-library-routines/acchostptr.rst:
1237 Add trailing newline.
1238 * doc/openacc-runtime-library-routines/accinit.rst:
1239 Add trailing newline.
1240 * doc/openacc-runtime-library-routines/accispresent.rst:
1241 Add trailing newline.
1242 * doc/openacc-runtime-library-routines/accmalloc.rst:
1243 Add trailing newline.
1244 * doc/openacc-runtime-library-routines/accmapdata.rst:
1245 Add trailing newline.
1246 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
1247 Add trailing newline.
1248 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
1249 Add trailing newline.
1250 * doc/openacc-runtime-library-routines/accondevice.rst:
1251 Add trailing newline.
1252 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
1253 Add trailing newline.
1254 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
1255 Add trailing newline.
1256 * doc/openacc-runtime-library-routines/accproflookup.rst:
1257 Add trailing newline.
1258 * doc/openacc-runtime-library-routines/accprofregister.rst:
1259 Add trailing newline.
1260 * doc/openacc-runtime-library-routines/accprofunregister.rst:
1261 Add trailing newline.
1262 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
1263 Add trailing newline.
1264 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
1265 Add trailing newline.
1266 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
1267 Add trailing newline.
1268 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
1269 Add trailing newline.
1270 * doc/openacc-runtime-library-routines/accshutdown.rst:
1271 Add trailing newline.
1272 * doc/openacc-runtime-library-routines/accunmapdata.rst:
1273 Add trailing newline.
1274 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
1275 Add trailing newline.
1276 * doc/openacc-runtime-library-routines/accupdateself.rst:
1277 Add trailing newline.
1278 * doc/openacc-runtime-library-routines/accwait.rst:
1279 Add trailing newline.
1280 * doc/openacc-runtime-library-routines/accwaitall.rst:
1281 Add trailing newline.
1282 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
1283 Add trailing newline.
1284 * doc/openacc-runtime-library-routines/accwaitasync.rst:
1285 Add trailing newline.
1286 * doc/openmp-context-selectors.rst:
1287 Add trailing newline.
1288 * doc/openmp-environment-variables.rst:
1289 Add trailing newline.
1290 * doc/openmp-environment-variables/gompcpuaffinity.rst:
1291 Add trailing newline.
1292 * doc/openmp-environment-variables/gompdebug.rst:
1293 Add trailing newline.
1294 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
1295 Add trailing newline.
1296 * doc/openmp-environment-variables/gompspincount.rst:
1297 Add trailing newline.
1298 * doc/openmp-environment-variables/gompstacksize.rst:
1299 Add trailing newline.
1300 * doc/openmp-environment-variables/ompcancellation.rst:
1301 Add trailing newline.
1302 * doc/openmp-environment-variables/ompdefaultdevice.rst:
1303 Add trailing newline.
1304 * doc/openmp-environment-variables/ompdisplayenv.rst:
1305 Add trailing newline.
1306 * doc/openmp-environment-variables/ompdynamic.rst:
1307 Add trailing newline.
1308 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
1309 Add trailing newline.
1310 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
1311 Add trailing newline.
1312 * doc/openmp-environment-variables/ompnested.rst:
1313 Add trailing newline.
1314 * doc/openmp-environment-variables/ompnumteams.rst:
1315 Add trailing newline.
1316 * doc/openmp-environment-variables/ompnumthreads.rst:
1317 Add trailing newline.
1318 * doc/openmp-environment-variables/ompplaces.rst:
1319 Add trailing newline.
1320 * doc/openmp-environment-variables/ompprocbind.rst:
1321 Add trailing newline.
1322 * doc/openmp-environment-variables/ompschedule.rst:
1323 Add trailing newline.
1324 * doc/openmp-environment-variables/ompstacksize.rst:
1325 Add trailing newline.
1326 * doc/openmp-environment-variables/omptargetoffload.rst:
1327 Add trailing newline.
1328 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
1329 Add trailing newline.
1330 * doc/openmp-environment-variables/ompthreadlimit.rst:
1331 Add trailing newline.
1332 * doc/openmp-environment-variables/ompwaitpolicy.rst:
1333 Add trailing newline.
1334 * doc/openmp-implementation-specifics.rst:
1335 Add trailing newline.
1336 * doc/openmp-implementation-status.rst:
1337 Add trailing newline.
1338 * doc/openmp-implementation-status/openmp-45.rst:
1339 Add trailing newline.
1340 * doc/openmp-implementation-status/openmp-50.rst:
1341 Add trailing newline.
1342 * doc/openmp-implementation-status/openmp-51.rst:
1343 Add trailing newline.
1344 * doc/openmp-implementation-status/openmp-52.rst:
1345 Add trailing newline.
1346 * doc/openmp-runtime-library-routines.rst:
1347 Add trailing newline.
1348 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
1349 Add trailing newline.
1350 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
1351 Add trailing newline.
1352 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
1353 Add trailing newline.
1354 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
1355 Add trailing newline.
1356 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
1357 Add trailing newline.
1358 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
1359 Add trailing newline.
1360 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
1361 Add trailing newline.
1362 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
1363 Add trailing newline.
1364 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
1365 Add trailing newline.
1366 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
1367 Add trailing newline.
1368 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
1369 Add trailing newline.
1370 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
1371 Add trailing newline.
1372 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
1373 Add trailing newline.
1374 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
1375 Add trailing newline.
1376 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
1377 Add trailing newline.
1378 * doc/openmp-runtime-library-routines/ompgetnested.rst:
1379 Add trailing newline.
1380 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
1381 Add trailing newline.
1382 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
1383 Add trailing newline.
1384 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
1385 Add trailing newline.
1386 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
1387 Add trailing newline.
1388 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
1389 Add trailing newline.
1390 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
1391 Add trailing newline.
1392 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
1393 Add trailing newline.
1394 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
1395 Add trailing newline.
1396 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
1397 Add trailing newline.
1398 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
1399 Add trailing newline.
1400 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
1401 Add trailing newline.
1402 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
1403 Add trailing newline.
1404 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
1405 Add trailing newline.
1406 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
1407 Add trailing newline.
1408 * doc/openmp-runtime-library-routines/ompinfinal.rst:
1409 Add trailing newline.
1410 * doc/openmp-runtime-library-routines/ompinitlock.rst:
1411 Add trailing newline.
1412 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
1413 Add trailing newline.
1414 * doc/openmp-runtime-library-routines/ompinparallel.rst:
1415 Add trailing newline.
1416 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
1417 Add trailing newline.
1418 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
1419 Add trailing newline.
1420 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
1421 Add trailing newline.
1422 * doc/openmp-runtime-library-routines/ompsetlock.rst:
1423 Add trailing newline.
1424 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
1425 Add trailing newline.
1426 * doc/openmp-runtime-library-routines/ompsetnested.rst:
1427 Add trailing newline.
1428 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
1429 Add trailing newline.
1430 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
1431 Add trailing newline.
1432 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
1433 Add trailing newline.
1434 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
1435 Add trailing newline.
1436 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
1437 Add trailing newline.
1438 * doc/openmp-runtime-library-routines/omptestlock.rst:
1439 Add trailing newline.
1440 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
1441 Add trailing newline.
1442 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
1443 Add trailing newline.
1444 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
1445 Add trailing newline.
1446 * doc/reporting-bugs.rst:
1447 Add trailing newline.
1448 * doc/the-libgomp-abi.rst:
1449 Add trailing newline.
1450 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
1451 Add trailing newline.
1452 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
1453 Add trailing newline.
1454 * doc/the-libgomp-abi/implementing-critical-construct.rst:
1455 Add trailing newline.
1456 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1457 Add trailing newline.
1458 * doc/the-libgomp-abi/implementing-flush-construct.rst:
1459 Add trailing newline.
1460 * doc/the-libgomp-abi/implementing-for-construct.rst:
1461 Add trailing newline.
1462 * doc/the-libgomp-abi/implementing-master-construct.rst:
1463 Add trailing newline.
1464 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
1465 Add trailing newline.
1466 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
1467 Add trailing newline.
1468 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
1469 Add trailing newline.
1470 * doc/the-libgomp-abi/implementing-private-clause.rst:
1471 Add trailing newline.
1472 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
1473 Add trailing newline.
1474 * doc/the-libgomp-abi/implementing-sections-construct.rst:
1475 Add trailing newline.
1476 * doc/the-libgomp-abi/implementing-single-construct.rst:
1477 Add trailing newline.
1478 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
1479 Add trailing newline.
1480
1481 2022-11-14 Martin Liska <mliska@suse.cz>
1482
1483 Revert:
1484 2022-11-09 Martin Liska <mliska@suse.cz>
1485
1486 * Makefile.in: Add missing HAS_SPHINX_BUILD.
1487
1488 2022-11-14 Martin Liska <mliska@suse.cz>
1489
1490 Revert:
1491 2022-11-14 Martin Liska <mliska@suse.cz>
1492
1493 * doc/conf.py: Add newline at last line.
1494
1495 2022-11-14 Martin Liska <mliska@suse.cz>
1496
1497 Revert:
1498 2022-11-14 Martin Liska <mliska@suse.cz>
1499
1500 PR other/107620
1501 * configure: Regenerate.
1502 * configure.ac: Always set sphinx-build.
1503
1504 2022-11-13 Martin Liska <mliska@suse.cz>
1505
1506 PR other/107620
1507 * configure: Regenerate.
1508 * configure.ac: Always set sphinx-build.
1509
1510 2022-11-12 Jakub Jelinek <jakub@redhat.com>
1511
1512 PR libgomp/107641
1513 * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
1514 unsigned long. Change type of upper from unsigned to unsigned long.
1515
1516 2022-11-10 Martin Liska <mliska@suse.cz>
1517
1518 * doc/conf.py: Add newline at last line.
1519
1520 2022-11-09 Martin Liska <mliska@suse.cz>
1521
1522 * Makefile.in: Add missing HAS_SPHINX_BUILD.
1523
1524 2022-11-09 Martin Liska <mliska@suse.cz>
1525
1526 * doc/amd-radeon-gcn.rst:
1527 Add trailing newline.
1528 * doc/copyright.rst:
1529 Add trailing newline.
1530 * doc/cuda-streams-usage.rst:
1531 Add trailing newline.
1532 * doc/enabling-openacc.rst:
1533 Add trailing newline.
1534 * doc/enabling-openmp.rst:
1535 Add trailing newline.
1536 * doc/first-invocation-nvidia-cublas-library-api.rst:
1537 Add trailing newline.
1538 * doc/first-invocation-openacc-library-api.rst:
1539 Add trailing newline.
1540 * doc/funding.rst:
1541 Add trailing newline.
1542 * doc/general-public-license-3.rst:
1543 Add trailing newline.
1544 * doc/gnu-free-documentation-license.rst:
1545 Add trailing newline.
1546 * doc/implementation-status-and-implementation-defined-behavior.rst:
1547 Add trailing newline.
1548 * doc/index.rst:
1549 Add trailing newline.
1550 * doc/indices-and-tables.rst:
1551 Add trailing newline.
1552 * doc/introduction.rst:
1553 Add trailing newline.
1554 * doc/memory-allocation-with-libmemkind.rst:
1555 Add trailing newline.
1556 * doc/nvptx.rst:
1557 Add trailing newline.
1558 * doc/offload-target-specifics.rst:
1559 Add trailing newline.
1560 * doc/openacc-environment-variables.rst:
1561 Add trailing newline.
1562 * doc/openacc-environment-variables/accdevicenum.rst:
1563 Add trailing newline.
1564 * doc/openacc-environment-variables/accdevicetype.rst:
1565 Add trailing newline.
1566 * doc/openacc-environment-variables/accproflib.rst:
1567 Add trailing newline.
1568 * doc/openacc-environment-variables/gccaccnotify.rst:
1569 Add trailing newline.
1570 * doc/openacc-introduction.rst:
1571 Add trailing newline.
1572 * doc/openacc-library-and-environment-variables.rst:
1573 Add trailing newline.
1574 * doc/openacc-library-interoperability.rst:
1575 Add trailing newline.
1576 * doc/openacc-profiling-interface.rst:
1577 Add trailing newline.
1578 * doc/openacc-runtime-library-routines.rst:
1579 Add trailing newline.
1580 * doc/openacc-runtime-library-routines/accasynctest.rst:
1581 Add trailing newline.
1582 * doc/openacc-runtime-library-routines/accasynctestall.rst:
1583 Add trailing newline.
1584 * doc/openacc-runtime-library-routines/accattach.rst:
1585 Add trailing newline.
1586 * doc/openacc-runtime-library-routines/acccopyin.rst:
1587 Add trailing newline.
1588 * doc/openacc-runtime-library-routines/acccopyout.rst:
1589 Add trailing newline.
1590 * doc/openacc-runtime-library-routines/acccreate.rst:
1591 Add trailing newline.
1592 * doc/openacc-runtime-library-routines/accdelete.rst:
1593 Add trailing newline.
1594 * doc/openacc-runtime-library-routines/accdetach.rst:
1595 Add trailing newline.
1596 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
1597 Add trailing newline.
1598 * doc/openacc-runtime-library-routines/accfree.rst:
1599 Add trailing newline.
1600 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
1601 Add trailing newline.
1602 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
1603 Add trailing newline.
1604 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
1605 Add trailing newline.
1606 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
1607 Add trailing newline.
1608 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
1609 Add trailing newline.
1610 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
1611 Add trailing newline.
1612 * doc/openacc-runtime-library-routines/accgetproperty.rst:
1613 Add trailing newline.
1614 * doc/openacc-runtime-library-routines/acchostptr.rst:
1615 Add trailing newline.
1616 * doc/openacc-runtime-library-routines/accinit.rst:
1617 Add trailing newline.
1618 * doc/openacc-runtime-library-routines/accispresent.rst:
1619 Add trailing newline.
1620 * doc/openacc-runtime-library-routines/accmalloc.rst:
1621 Add trailing newline.
1622 * doc/openacc-runtime-library-routines/accmapdata.rst:
1623 Add trailing newline.
1624 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
1625 Add trailing newline.
1626 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
1627 Add trailing newline.
1628 * doc/openacc-runtime-library-routines/accondevice.rst:
1629 Add trailing newline.
1630 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
1631 Add trailing newline.
1632 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
1633 Add trailing newline.
1634 * doc/openacc-runtime-library-routines/accproflookup.rst:
1635 Add trailing newline.
1636 * doc/openacc-runtime-library-routines/accprofregister.rst:
1637 Add trailing newline.
1638 * doc/openacc-runtime-library-routines/accprofunregister.rst:
1639 Add trailing newline.
1640 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
1641 Add trailing newline.
1642 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
1643 Add trailing newline.
1644 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
1645 Add trailing newline.
1646 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
1647 Add trailing newline.
1648 * doc/openacc-runtime-library-routines/accshutdown.rst:
1649 Add trailing newline.
1650 * doc/openacc-runtime-library-routines/accunmapdata.rst:
1651 Add trailing newline.
1652 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
1653 Add trailing newline.
1654 * doc/openacc-runtime-library-routines/accupdateself.rst:
1655 Add trailing newline.
1656 * doc/openacc-runtime-library-routines/accwait.rst:
1657 Add trailing newline.
1658 * doc/openacc-runtime-library-routines/accwaitall.rst:
1659 Add trailing newline.
1660 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
1661 Add trailing newline.
1662 * doc/openacc-runtime-library-routines/accwaitasync.rst:
1663 Add trailing newline.
1664 * doc/openmp-context-selectors.rst:
1665 Add trailing newline.
1666 * doc/openmp-environment-variables.rst:
1667 Add trailing newline.
1668 * doc/openmp-environment-variables/gompcpuaffinity.rst:
1669 Add trailing newline.
1670 * doc/openmp-environment-variables/gompdebug.rst:
1671 Add trailing newline.
1672 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
1673 Add trailing newline.
1674 * doc/openmp-environment-variables/gompspincount.rst:
1675 Add trailing newline.
1676 * doc/openmp-environment-variables/gompstacksize.rst:
1677 Add trailing newline.
1678 * doc/openmp-environment-variables/ompcancellation.rst:
1679 Add trailing newline.
1680 * doc/openmp-environment-variables/ompdefaultdevice.rst:
1681 Add trailing newline.
1682 * doc/openmp-environment-variables/ompdisplayenv.rst:
1683 Add trailing newline.
1684 * doc/openmp-environment-variables/ompdynamic.rst:
1685 Add trailing newline.
1686 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
1687 Add trailing newline.
1688 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
1689 Add trailing newline.
1690 * doc/openmp-environment-variables/ompnested.rst:
1691 Add trailing newline.
1692 * doc/openmp-environment-variables/ompnumteams.rst:
1693 Add trailing newline.
1694 * doc/openmp-environment-variables/ompnumthreads.rst:
1695 Add trailing newline.
1696 * doc/openmp-environment-variables/ompplaces.rst:
1697 Add trailing newline.
1698 * doc/openmp-environment-variables/ompprocbind.rst:
1699 Add trailing newline.
1700 * doc/openmp-environment-variables/ompschedule.rst:
1701 Add trailing newline.
1702 * doc/openmp-environment-variables/ompstacksize.rst:
1703 Add trailing newline.
1704 * doc/openmp-environment-variables/omptargetoffload.rst:
1705 Add trailing newline.
1706 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
1707 Add trailing newline.
1708 * doc/openmp-environment-variables/ompthreadlimit.rst:
1709 Add trailing newline.
1710 * doc/openmp-environment-variables/ompwaitpolicy.rst:
1711 Add trailing newline.
1712 * doc/openmp-implementation-specifics.rst:
1713 Add trailing newline.
1714 * doc/openmp-implementation-status.rst:
1715 Add trailing newline.
1716 * doc/openmp-implementation-status/openmp-45.rst:
1717 Add trailing newline.
1718 * doc/openmp-implementation-status/openmp-50.rst:
1719 Add trailing newline.
1720 * doc/openmp-implementation-status/openmp-51.rst:
1721 Add trailing newline.
1722 * doc/openmp-implementation-status/openmp-52.rst:
1723 Add trailing newline.
1724 * doc/openmp-runtime-library-routines.rst:
1725 Add trailing newline.
1726 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
1727 Add trailing newline.
1728 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
1729 Add trailing newline.
1730 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
1731 Add trailing newline.
1732 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
1733 Add trailing newline.
1734 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
1735 Add trailing newline.
1736 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
1737 Add trailing newline.
1738 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
1739 Add trailing newline.
1740 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
1741 Add trailing newline.
1742 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
1743 Add trailing newline.
1744 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
1745 Add trailing newline.
1746 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
1747 Add trailing newline.
1748 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
1749 Add trailing newline.
1750 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
1751 Add trailing newline.
1752 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
1753 Add trailing newline.
1754 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
1755 Add trailing newline.
1756 * doc/openmp-runtime-library-routines/ompgetnested.rst:
1757 Add trailing newline.
1758 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
1759 Add trailing newline.
1760 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
1761 Add trailing newline.
1762 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
1763 Add trailing newline.
1764 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
1765 Add trailing newline.
1766 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
1767 Add trailing newline.
1768 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
1769 Add trailing newline.
1770 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
1771 Add trailing newline.
1772 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
1773 Add trailing newline.
1774 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
1775 Add trailing newline.
1776 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
1777 Add trailing newline.
1778 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
1779 Add trailing newline.
1780 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
1781 Add trailing newline.
1782 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
1783 Add trailing newline.
1784 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
1785 Add trailing newline.
1786 * doc/openmp-runtime-library-routines/ompinfinal.rst:
1787 Add trailing newline.
1788 * doc/openmp-runtime-library-routines/ompinitlock.rst:
1789 Add trailing newline.
1790 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
1791 Add trailing newline.
1792 * doc/openmp-runtime-library-routines/ompinparallel.rst:
1793 Add trailing newline.
1794 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
1795 Add trailing newline.
1796 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
1797 Add trailing newline.
1798 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
1799 Add trailing newline.
1800 * doc/openmp-runtime-library-routines/ompsetlock.rst:
1801 Add trailing newline.
1802 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
1803 Add trailing newline.
1804 * doc/openmp-runtime-library-routines/ompsetnested.rst:
1805 Add trailing newline.
1806 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
1807 Add trailing newline.
1808 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
1809 Add trailing newline.
1810 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
1811 Add trailing newline.
1812 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
1813 Add trailing newline.
1814 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
1815 Add trailing newline.
1816 * doc/openmp-runtime-library-routines/omptestlock.rst:
1817 Add trailing newline.
1818 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
1819 Add trailing newline.
1820 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
1821 Add trailing newline.
1822 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
1823 Add trailing newline.
1824 * doc/reporting-bugs.rst:
1825 Add trailing newline.
1826 * doc/the-libgomp-abi.rst:
1827 Add trailing newline.
1828 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
1829 Add trailing newline.
1830 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
1831 Add trailing newline.
1832 * doc/the-libgomp-abi/implementing-critical-construct.rst:
1833 Add trailing newline.
1834 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1835 Add trailing newline.
1836 * doc/the-libgomp-abi/implementing-flush-construct.rst:
1837 Add trailing newline.
1838 * doc/the-libgomp-abi/implementing-for-construct.rst:
1839 Add trailing newline.
1840 * doc/the-libgomp-abi/implementing-master-construct.rst:
1841 Add trailing newline.
1842 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
1843 Add trailing newline.
1844 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
1845 Add trailing newline.
1846 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
1847 Add trailing newline.
1848 * doc/the-libgomp-abi/implementing-private-clause.rst:
1849 Add trailing newline.
1850 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
1851 Add trailing newline.
1852 * doc/the-libgomp-abi/implementing-sections-construct.rst:
1853 Add trailing newline.
1854 * doc/the-libgomp-abi/implementing-single-construct.rst:
1855 Add trailing newline.
1856 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
1857 Add trailing newline.
1858
1859 2022-11-09 Martin Liska <mliska@suse.cz>
1860
1861 * Makefile.in: Build info pages conditionally.
1862
1863 2022-11-09 Martin Liska <mliska@suse.cz>
1864
1865 * Makefile.in: Support --with-sphinx-build.
1866 * configure.ac: Likewise..
1867 * configure: Regenerate.
1868
1869 2022-11-09 Martin Liska <mliska@suse.cz>
1870
1871 * libgomp.texi: Removed.
1872
1873 2022-11-09 Martin Liska <mliska@suse.cz>
1874
1875 * Makefile.in: Support Sphinx based documentation.
1876
1877 2022-11-09 Martin Liska <mliska@suse.cz>
1878
1879 * doc/amd-radeon-gcn.rst: New file.
1880 * doc/conf.py: New file.
1881 * doc/copyright.rst: New file.
1882 * doc/cuda-streams-usage.rst: New file.
1883 * doc/enabling-openacc.rst: New file.
1884 * doc/enabling-openmp.rst: New file.
1885 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
1886 * doc/first-invocation-openacc-library-api.rst: New file.
1887 * doc/funding.rst: New file.
1888 * doc/general-public-license-3.rst: New file.
1889 * doc/gnu-free-documentation-license.rst: New file.
1890 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
1891 * doc/index.rst: New file.
1892 * doc/indices-and-tables.rst: New file.
1893 * doc/introduction.rst: New file.
1894 * doc/memory-allocation-with-libmemkind.rst: New file.
1895 * doc/nvptx.rst: New file.
1896 * doc/offload-target-specifics.rst: New file.
1897 * doc/openacc-environment-variables.rst: New file.
1898 * doc/openacc-environment-variables/accdevicenum.rst: New file.
1899 * doc/openacc-environment-variables/accdevicetype.rst: New file.
1900 * doc/openacc-environment-variables/accproflib.rst: New file.
1901 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
1902 * doc/openacc-introduction.rst: New file.
1903 * doc/openacc-library-and-environment-variables.rst: New file.
1904 * doc/openacc-library-interoperability.rst: New file.
1905 * doc/openacc-profiling-interface.rst: New file.
1906 * doc/openacc-runtime-library-routines.rst: New file.
1907 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
1908 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
1909 * doc/openacc-runtime-library-routines/accattach.rst: New file.
1910 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
1911 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
1912 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
1913 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
1914 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
1915 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
1916 * doc/openacc-runtime-library-routines/accfree.rst: New file.
1917 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
1918 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
1919 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
1920 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
1921 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
1922 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
1923 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
1924 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
1925 * doc/openacc-runtime-library-routines/accinit.rst: New file.
1926 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
1927 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
1928 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
1929 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
1930 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
1931 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
1932 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
1933 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
1934 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
1935 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
1936 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
1937 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1938 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
1939 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
1940 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
1941 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
1942 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
1943 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
1944 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
1945 * doc/openacc-runtime-library-routines/accwait.rst: New file.
1946 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
1947 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
1948 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
1949 * doc/openmp-context-selectors.rst: New file.
1950 * doc/openmp-environment-variables.rst: New file.
1951 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
1952 * doc/openmp-environment-variables/gompdebug.rst: New file.
1953 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
1954 * doc/openmp-environment-variables/gompspincount.rst: New file.
1955 * doc/openmp-environment-variables/gompstacksize.rst: New file.
1956 * doc/openmp-environment-variables/ompcancellation.rst: New file.
1957 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
1958 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
1959 * doc/openmp-environment-variables/ompdynamic.rst: New file.
1960 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
1961 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
1962 * doc/openmp-environment-variables/ompnested.rst: New file.
1963 * doc/openmp-environment-variables/ompnumteams.rst: New file.
1964 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
1965 * doc/openmp-environment-variables/ompplaces.rst: New file.
1966 * doc/openmp-environment-variables/ompprocbind.rst: New file.
1967 * doc/openmp-environment-variables/ompschedule.rst: New file.
1968 * doc/openmp-environment-variables/ompstacksize.rst: New file.
1969 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
1970 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
1971 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
1972 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
1973 * doc/openmp-implementation-specifics.rst: New file.
1974 * doc/openmp-implementation-status.rst: New file.
1975 * doc/openmp-implementation-status/openmp-45.rst: New file.
1976 * doc/openmp-implementation-status/openmp-50.rst: New file.
1977 * doc/openmp-implementation-status/openmp-51.rst: New file.
1978 * doc/openmp-implementation-status/openmp-52.rst: New file.
1979 * doc/openmp-runtime-library-routines.rst: New file.
1980 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
1981 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
1982 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
1983 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
1984 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
1985 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
1986 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
1987 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
1988 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
1989 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
1990 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
1991 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
1992 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
1993 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
1994 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
1995 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
1996 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
1997 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
1998 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
1999 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
2000 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
2001 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
2002 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
2003 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
2004 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
2005 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
2006 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
2007 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
2008 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
2009 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
2010 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
2011 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
2012 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
2013 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
2014 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
2015 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
2016 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
2017 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
2018 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
2019 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
2020 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
2021 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
2022 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
2023 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
2024 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
2025 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
2026 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
2027 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
2028 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
2029 * doc/reporting-bugs.rst: New file.
2030 * doc/the-libgomp-abi.rst: New file.
2031 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
2032 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
2033 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
2034 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2035 New file.
2036 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
2037 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
2038 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
2039 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
2040 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
2041 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
2042 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
2043 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
2044 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
2045 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
2046 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
2047
2048 2022-11-04 Thomas Schwinge <thomas@codesourcery.com>
2049
2050 * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
2051 * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
2052 documentation.
2053 * plugin/configfrag.ac <enable_offload_targets>
2054 [*-intelmic-* | *-intelmicemul-*]: Remove.
2055 * configure: Regenerate.
2056 * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
2057 handling.
2058 (offload_target_to_openacc_device_type)
2059 [$offload_target = *-intelmic*]: Remove.
2060 (check_effective_target_offload_device_intel_mic)
2061 (check_effective_target_offload_device_any_intel_mic): Remove.
2062 * testsuite/libgomp.c-c++-common/on_device_arch.h
2063 (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
2064 (any_device_arch_intel_mic): Remove.
2065 * testsuite/libgomp.c-c++-common/target-45.c: Remove
2066 'offload_device_any_intel_mic' XFAIL.
2067 * testsuite/libgomp.fortran/target10.f90: Likewise.
2068
2069 2022-11-03 Tobias Burnus <tobias@codesourcery.com>
2070
2071 * testsuite/libgomp.fortran/target-11.f90: New test.
2072 * testsuite/libgomp.fortran/target-13.f90: New test.
2073
2074 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2075
2076 PR libgomp/106643
2077 PR fortran/96668
2078 * oacc-mem.c (goacc_enter_data_internal): Support
2079 OpenACC 'declare create' with Fortran allocatable arrays, part II.
2080 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2081 Adjust.
2082 * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
2083
2084 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2085
2086 PR libgomp/106643
2087 * oacc-mem.c (goacc_enter_data_internal): Support
2088 OpenACC 'declare create' with Fortran allocatable arrays, part I.
2089 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
2090 New.
2091 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2092 New.
2093
2094 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2095
2096 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
2097 New.
2098
2099 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2100
2101 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
2102 New.
2103
2104 2022-11-02 Cesar Philippidis <cesar@codesourcery.com>
2105 Thomas Schwinge <thomas@codesourcery.com>
2106
2107 * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
2108
2109 2022-10-28 Julian Brown <julian@codesourcery.com>
2110 Thomas Schwinge <thomas@codesourcery.com>
2111
2112 PR middle-end/90115
2113 * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
2114 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
2115 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2116 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
2117 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2118
2119 2022-10-24 Thomas Schwinge <thomas@codesourcery.com>
2120
2121 * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
2122 'ptx_dev->rev_data'.
2123
2124 2022-10-24 Tobias Burnus <tobias@codesourcery.com>
2125
2126 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
2127 'static' for this variable.
2128 * config/nvptx/libgomp-nvptx.h: New file.
2129 * config/nvptx/target.c: Include it.
2130 (GOMP_ADDITIONAL_ICVS): Declare extern var.
2131 (GOMP_REV_OFFLOAD_VAR): Declare var.
2132 (GOMP_target_ext): Handle reverse offload.
2133 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
2134 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
2135 * target.c (gomp_target_rev): ... this new stub function.
2136 * libgomp.h (gomp_target_rev): Declare.
2137 * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
2138 * plugin/cuda-lib.def (cuMemHostAlloc): Add.
2139 * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
2140 (struct ptx_device): Add rev_data member.
2141 (nvptx_open_device): Remove async_engines query, last used in
2142 r10-304-g1f4c5b9b; add unified-address assert check.
2143 (GOMP_OFFLOAD_get_num_devices): Claim unified address
2144 support.
2145 (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
2146 offload functions exist. Make offload var available
2147 on host and device.
2148 (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
2149 (GOMP_OFFLOAD_run): Handle reverse offload.
2150
2151 2022-10-21 Thomas Schwinge <thomas@codesourcery.com>
2152
2153 PR tree-optimization/107195
2154 PR target/107344
2155 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
2156 regions checking.
2157
2158 2022-10-20 Tobias Burnus <tobias@codesourcery.com>
2159
2160 * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
2161 New.
2162 * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
2163 on_device_arch_gcn): New.
2164 * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
2165 requires-4.c but using heap-allocated memory.
2166
2167 2022-10-20 Thomas Schwinge <thomas@codesourcery.com>
2168
2169 PR target/105421
2170 * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
2171
2172 2022-10-17 Thomas Schwinge <thomas@codesourcery.com>
2173
2174 * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
2175 '-foffload-options' syntax.
2176
2177 2022-10-13 Tobias Burnus <tobias@codesourcery.com>
2178
2179 * testsuite/libgomp.fortran/task-7.f90: New test.
2180 * testsuite/libgomp.fortran/task-8.f90: New test.
2181 * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
2182 * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
2183 * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
2184 * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
2185 * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
2186
2187 2022-10-12 Jakub Jelinek <jakub@redhat.com>
2188
2189 * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
2190 in deprecation bullet.
2191
2192 2022-10-12 Jakub Jelinek <jakub@redhat.com>
2193
2194 * omp.h.in (omp_in_explicit_task): Declare.
2195 * omp_lib.h.in (omp_in_explicit_task): Likewise.
2196 * omp_lib.f90.in (omp_in_explicit_task): New interface.
2197 * libgomp.map (OMP_5.2): New symbol version, export
2198 omp_in_explicit_task and omp_in_explicit_task_.
2199 * task.c (omp_in_explicit_task): New function.
2200 * fortran.c (omp_in_explicit_task): Add ialias_redirect.
2201 (omp_in_explicit_task_): New function.
2202 * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
2203 * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
2204 * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
2205 * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
2206
2207 2022-10-12 Jakub Jelinek <jakub@redhat.com>
2208
2209 * task.c (gomp_create_artificial_team): Fix up handling of invocations
2210 from within explicit task.
2211 * target.c (GOMP_target_ext): Likewise.
2212 * testsuite/libgomp.c/task-7.c: New test.
2213 * testsuite/libgomp.c/task-8.c: New test.
2214 * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
2215 * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
2216
2217 2022-10-12 Martin Liska <mliska@suse.cz>
2218
2219 * configure: Regenerate.
2220
2221 2022-10-11 Olivier Hainque <hainque@adacore.com>
2222 Olivier Hainque <hainque@adacore.com>
2223
2224 * configure: Regenerate.
2225
2226 2022-10-05 Tobias Burnus <tobias@codesourcery.com>
2227
2228 * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
2229
2230 2022-10-04 Jakub Jelinek <jakub@redhat.com>
2231
2232 * libgomp.texi (Support begin/end declare target syntax in C/C++):
2233 Mark as implemented.
2234
2235 2022-09-30 Tobias Burnus <tobias@codesourcery.com>
2236
2237 PR fortran/105318
2238 * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
2239
2240 2022-09-28 Tobias Burnus <tobias@codesourcery.com>
2241
2242 * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
2243 for C/C++. Remove duplicated 'begin declare target' entry.
2244
2245 2022-09-24 Jakub Jelinek <jakub@redhat.com>
2246
2247 PR c/106981
2248 * testsuite/libgomp.c-c++-common/pr106981.c: New test.
2249
2250 2022-09-14 Julian Brown <julian@codesourcery.com>
2251
2252 * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
2253 * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
2254 * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
2255 * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
2256 test to here, make "run" test.
2257
2258 2022-09-13 Jakub Jelinek <jakub@redhat.com>
2259
2260 PR libgomp/106906
2261 * env.c (get_icv_member_addr): Cast false to void * before assigning
2262 it to icv_addr[1], and comment the whole assignment out.
2263
2264 2022-09-13 Tobias Burnus <tobias@codesourcery.com>
2265
2266 * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
2267 (nvptx): ... here.
2268
2269 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
2270
2271 * libgomp.texi (Offload-Target Specifics: nvptx): Document
2272 that reverse offload requires >= -march=sm_35.
2273 * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
2274 with -misa=sm_35.
2275 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
2276 * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
2277 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
2278 * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
2279 * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
2280
2281 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
2282
2283 * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
2284 (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
2285
2286 2022-09-12 Jakub Jelinek <jakub@redhat.com>
2287
2288 PR libgomp/106894
2289 * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
2290 (main): Avoid tests for which corresponding non-_ALL suffixed variable
2291 is in the environment, or for OMP_NUM_TEAMS on the device
2292 OMP_NUM_TEAMS_DEV_?.
2293
2294 2022-09-10 Iain Sandoe <iain@sandoe.co.uk>
2295
2296 * env.c (initialize_env): Include libiberty environ.h.
2297
2298 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
2299
2300 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
2301 function address table '$offload_func_table' if rev_fn_table
2302 is not NULL.
2303
2304 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
2305
2306 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
2307 .offload_func_table to populate rev_fn_table when requested.
2308
2309 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
2310
2311 * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
2312 'uint64_t **rev_fn_table' argument.
2313 * oacc-host.c (host_load_image): Likewise.
2314 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
2315 currently unused.
2316 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2317 * target.c (gomp_load_image_to_device): Update call but pass
2318 NULL for now.
2319
2320 2022-09-09 Jakub Jelinek <jakub@redhat.com>
2321
2322 PR libgomp/106894
2323 * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
2324 char * for dest[1] initialization from params[1]. Formatting fixes.
2325
2326 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
2327
2328 PR fortran/106670
2329 * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
2330
2331 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
2332
2333 * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
2334 section; move OpenMP Context Selectors from ...
2335 (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
2336 'nvptx' sections.
2337
2338 2022-09-08 Marcel Vollweiler <marcel@codesourcery.com>
2339
2340 * config/gcn/icv-device.c (omp_get_default_device): Return device-
2341 specific ICV.
2342 (omp_get_max_teams): Added for GCN devices.
2343 (omp_set_num_teams): Likewise.
2344 (ialias): Likewise.
2345 * config/nvptx/icv-device.c (omp_get_default_device): Return device-
2346 specific ICV.
2347 (omp_get_max_teams): Added for NVPTX devices.
2348 (omp_set_num_teams): Likewise.
2349 (ialias): Likewise.
2350 * env.c (struct gomp_icv_list): New struct to store entries of initial
2351 ICV values.
2352 (struct gomp_offload_icv_list): New struct to store entries of device-
2353 specific ICV values that are copied to the device and back.
2354 (struct gomp_default_icv_values): New struct to store default values of
2355 ICVs according to the OpenMP standard.
2356 (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
2357 (print_env_var_error): Function that prints an error for invalid values
2358 for ICVs.
2359 (parse_unsigned_long_1): Removed getenv. Generalized.
2360 (parse_unsigned_long): Likewise.
2361 (parse_int_1): Likewise.
2362 (parse_int): Likewise.
2363 (parse_int_secure): Likewise.
2364 (parse_unsigned_long_list): Likewise.
2365 (parse_target_offload): Likewise.
2366 (parse_bind_var): Likewise.
2367 (parse_stacksize): Likewise.
2368 (parse_boolean): Likewise.
2369 (parse_wait_policy): Likewise.
2370 (parse_allocator): Likewise.
2371 (omp_display_env): Extended to output different variants of environment
2372 variables.
2373 (print_schedule): New helper function for omp_display_env which prints
2374 the values of run_sched_var.
2375 (print_proc_bind): New helper function for omp_display_env which prints
2376 the values of proc_bind_var.
2377 (enum gomp_parse_type): Collection of types used for parsing environment
2378 variables.
2379 (ENTRY): Preprocess string lengths of environment variables.
2380 (OMP_VAR_CNT): Preprocess table size.
2381 (OMP_HOST_VAR_CNT): Likewise.
2382 (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
2383 number.
2384 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
2385 (gomp_set_icv_flag): Sets a flag for a particular ICV.
2386 (print_device_specific_icvs): New helper function for omp_display_env to
2387 print device specific ICV values.
2388 (get_device_num): New helper function for parse_device_specific.
2389 Extracts the device number from an environment variable name.
2390 (get_icv_member_addr): Gets the memory address for a particular member
2391 of an ICV struct.
2392 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
2393 (initialize_icvs): New function to initialize a gomp_initial_icvs
2394 struct.
2395 (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
2396 (startswith): Checks if a string starts with a given prefix.
2397 (initialize_env): Extended to parse the new syntax of environment
2398 variables.
2399 * icv-device.c (omp_get_max_teams): Added.
2400 (ialias): Likewise.
2401 (omp_set_num_teams): Likewise.
2402 * icv.c (omp_set_num_teams): Moved to icv-device.c.
2403 (omp_get_max_teams): Likewise.
2404 (ialias): Likewise.
2405 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
2406 (GOMP_ADDITIONAL_ICVS): New target-side struct that
2407 holds the designated ICVs of the target device.
2408 * libgomp.h (enum gomp_icvs): Collection of ICVs.
2409 (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
2410 no suffix.
2411 (enum gomp_env_suffix): Collection of possible suffixes of environment
2412 variables.
2413 (struct gomp_initial_icvs): Contains all ICVs for which we need to store
2414 initial values.
2415 (struct gomp_default_icv):New struct to hold ICVs for which we need
2416 to store initial values.
2417 (struct gomp_icv_list): Definition of a linked list that is used for
2418 storing ICVs for the devices and also for _DEV, _ALL, and without
2419 suffix.
2420 (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
2421 a device.
2422 (struct gomp_offload_icv_list): Definition of a linked list that holds
2423 device-specific ICVs that are copied to devices.
2424 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
2425 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
2426 * libgomp.texi: Updated.
2427 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
2428 further ICVs from the offload image.
2429 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2430 * target.c (gomp_get_offload_icv_item): Get a list item of
2431 gomp_offload_icv_list.
2432 (get_gomp_offload_icvs): New. Returns the ICV values
2433 depending on the device num and the variable hierarchy.
2434 (gomp_load_image_to_device): Extended to copy further ICVs to a device.
2435 * testsuite/libgomp.c-c++-common/icv-5.c: New test.
2436 * testsuite/libgomp.c-c++-common/icv-6.c: New test.
2437 * testsuite/libgomp.c-c++-common/icv-7.c: New test.
2438 * testsuite/libgomp.c-c++-common/icv-8.c: New test.
2439 * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
2440 * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
2441
2442 2022-09-08 Jakub Jelinek <jakub@redhat.com>
2443
2444 * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
2445 fully supported.
2446 * testsuite/libgomp.c/doacross-4.c: New test.
2447 * testsuite/libgomp.c/doacross-5.c: New test.
2448 * testsuite/libgomp.c/doacross-6.c: New test.
2449 * testsuite/libgomp.c/doacross-7.c: New test.
2450
2451 2022-09-05 Tobias Burnus <tobias@codesourcery.com>
2452
2453 * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
2454
2455 2022-08-26 Tobias Burnus <tobias@codesourcery.com>
2456
2457 * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
2458 refer to 'requires'.
2459 * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
2460 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
2461 * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
2462 * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
2463
2464 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
2465
2466 PR middle-end/106548
2467 * testsuite/libgomp.c/linear-2.c: New test.
2468
2469 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
2470
2471 * splay-tree.h: Fix splay_* macro unsetting if
2472 splay_tree_prefix is defined.
2473
2474 2022-07-29 Tobias Burnus <tobias@codesourcery.com>
2475
2476 * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
2477
2478 2022-07-29 Jakub Jelinek <jakub@redhat.com>
2479
2480 PR middle-end/106449
2481 * testsuite/libgomp.c-c++-common/pr106449.c: New test.
2482
2483 2022-07-12 Tobias Burnus <tobias@codesourcery.com>
2484
2485 * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
2486
2487 2022-07-12 Thomas Schwinge <thomas@codesourcery.com>
2488
2489 PR middle-end/101551
2490 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
2491 'offloading_enabled' diagnostics issue.
2492
2493 2022-07-11 Thomas Schwinge <thomas@codesourcery.com>
2494
2495 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
2496 '_Pragma' diagnostics verification.
2497
2498 2022-07-10 Lewis Hyatt <lhyatt@gmail.com>
2499
2500 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
2501 improved warning locations.
2502 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
2503
2504 2022-07-08 Thomas Schwinge <thomas@codesourcery.com>
2505
2506 * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
2507 * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
2508 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
2509 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
2510 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
2511
2512 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
2513
2514 * target.c (GOMP_offload_register, GOMP_offload_unregister):
2515 Denote as legacy entry points.
2516 * testsuite/lib/libgomp.exp
2517 (check_effective_target_offload_target_any): New proc.
2518 * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
2519 'offload_target_any'.
2520 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
2521 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
2522 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
2523
2524 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
2525
2526 * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
2527 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
2528
2529 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
2530
2531 * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
2532
2533 2022-07-06 Thomas Schwinge <thomas@codesourcery.com>
2534
2535 * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
2536 'data'.
2537 (GOMP_offload_unregister_ver): Likewise. Fix up 'target_data'.
2538
2539 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
2540 Jakub Jelinek <jakub@redhat.com>
2541
2542 * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
2543
2544 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
2545 Chung-Lin Tang <cltang@codesourcery.com>
2546 Thomas Schwinge <thomas@codesourcery.com>
2547
2548 * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
2549 omp_requires_mask arg.
2550 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
2551 return -1 when device available but omp_requires_mask != 0.
2552 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
2553 * oacc-host.c (host_get_num_devices, host_openacc_get_property):
2554 Update call.
2555 * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
2556 goacc_attach_host_thread_to_device, acc_get_num_devices,
2557 acc_set_device_num, get_property_any): Likewise.
2558 * target.c (omp_requires_mask): New global var.
2559 (gomp_requires_to_name): New.
2560 (GOMP_offload_register_ver): Handle passed omp_requires_mask.
2561 (gomp_target_init): Handle omp_requires_mask.
2562 * libgomp.texi (OpenMP 5.0): Update requires impl. status.
2563 (OpenMP 5.1): Add a missed item.
2564 (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
2565 * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
2566 * testsuite/libgomp.c-c++-common/requires-1.c: New test.
2567 * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
2568 * testsuite/libgomp.c-c++-common/requires-2.c: New test.
2569 * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
2570 * testsuite/libgomp.c-c++-common/requires-3.c: New test.
2571 * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
2572 * testsuite/libgomp.c-c++-common/requires-4.c: New test.
2573 * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
2574 * testsuite/libgomp.c-c++-common/requires-5.c: New test.
2575 * testsuite/libgomp.c-c++-common/requires-6.c: New test.
2576 * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
2577 * testsuite/libgomp.c-c++-common/requires-7.c: New test.
2578 * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
2579 * testsuite/libgomp.fortran/requires-1.f90: New test.
2580
2581 2022-07-01 Tobias Burnus <tobias@codesourcery.com>
2582
2583 * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
2584 with fromto as implemented.
2585
2586 2022-06-28 Martin Liska <mliska@suse.cz>
2587
2588 * acinclude.m4: Fix typo in mold linker detection.
2589 * Makefile.in: Regenerate.
2590 * configure: Regenerate.
2591
2592 2022-06-21 Jakub Jelinek <jakub@redhat.com>
2593 Paul Iannetta <piannetta@kalrayinc.com>
2594
2595 PR libgomp/106045
2596 * testsuite/libgomp.c/target-31.c: Add private (i) clause.
2597
2598 2022-06-17 Martin Liska <mliska@suse.cz>
2599
2600 * libgomp.texi: Add table header for new features of
2601 OpenMP 5.2.
2602
2603 2022-06-15 Jakub Jelinek <jakub@redhat.com>
2604
2605 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
2606 q to ddress of an automatic variable. Use -5 instead of -1 in
2607 omp_get_mapped_ptr call. Add test with omp_initial_device.
2608 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
2609 of -1 in omp_get_mapped_ptr call. Add test with omp_initial_device.
2610 Renumber stop arguments afterwards.
2611
2612 2022-06-13 Jakub Jelinek <jakub@redhat.com>
2613
2614 * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
2615 * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
2616 parameters.
2617 * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
2618 * target.c (resolve_device): Add remapped argument, handle
2619 GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
2620 for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
2621 if remapped, otherwise treat omp_initial_device that way. For
2622 omp_invalid_device, always emit gomp_fatal, even when
2623 OMP_TARGET_OFFLOAD isn't mandatory.
2624 (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
2625 GOMP_target_update, GOMP_target_update_ext,
2626 GOMP_target_enter_exit_data): Pass true as remapped argument to
2627 resolve_device.
2628 (omp_target_alloc, omp_target_free, omp_target_is_present,
2629 omp_target_memcpy_check, omp_target_associate_ptr,
2630 omp_target_disassociate_ptr, omp_get_mapped_ptr,
2631 omp_target_is_accessible): Pass false as remapped argument to
2632 resolve_device. Treat omp_initial_device the same as
2633 gomp_get_num_devices (). Don't bypass resolve_device calls if
2634 device_num is negative.
2635 (omp_pause_resource): Treat omp_initial_device the same as
2636 gomp_get_num_devices (). Call resolve_device.
2637 * icv-device.c (omp_set_default_device): Always set to device_num
2638 even when it is negative.
2639 * libgomp.texi: Document that Conforming device numbers,
2640 omp_initial_device and omp_invalid_device is implemented.
2641 * testsuite/libgomp.c/target-41.c (main): Add test with
2642 omp_initial_device.
2643 * testsuite/libgomp.c/target-45.c: New test.
2644 * testsuite/libgomp.c/target-46.c: New test.
2645 * testsuite/libgomp.c/target-47.c: New test.
2646 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
2647 test with omp_initial_device. Use -5 instead of -1 for negative value
2648 test.
2649 * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
2650 Likewise. Reorder stop numbers.
2651
2652 2022-06-10 Jakub Jelinek <jakub@redhat.com>
2653
2654 * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
2655 rather than "libmemkind.so".
2656
2657 2022-06-10 Thomas Schwinge <thomas@codesourcery.com>
2658
2659 * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
2660 * plugin/configfrag.ac (--with-cuda-driver)
2661 (--with-cuda-driver-include, --with-cuda-driver-lib)
2662 (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
2663 (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
2664 Remove.
2665 * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
2666 (cuda_driver_lib): Remove.
2667 * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
2668 * Makefile.in: Regenerate.
2669 * configure: Likewise.
2670 * testsuite/Makefile.in: Likewise.
2671
2672 2022-06-09 Jakub Jelinek <jakub@redhat.com>
2673
2674 * config/linux/allocator.c: Fix up #include directive.
2675
2676 2022-06-09 Jakub Jelinek <jakub@redhat.com>
2677
2678 * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
2679 (enum gomp_memkind_kind): New type.
2680 (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
2681 is defined.
2682 (struct gomp_memkind_data): New type.
2683 (memkind_data, memkind_data_once): New variables.
2684 (gomp_init_memkind, gomp_get_memkind): New functions.
2685 (omp_init_allocator): Initialize data.memkind, don't fail for
2686 omp_high_bw_mem_space if libmemkind supports it.
2687 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
2688 memkind support of LIBGOMP_USE_MEMKIND is defined.
2689 * config/linux/allocator.c: New file.
2690
2691 2022-06-03 Tobias Burnus <tobias@codesourcery.com>
2692
2693 * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
2694 * testsuite/libgomp.fortran/scope-2.f90: New test.
2695
2696 2022-06-02 David Malcolm <dmalcolm@redhat.com>
2697
2698 * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
2699
2700 2022-05-31 Jakub Jelinek <jakub@redhat.com>
2701
2702 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
2703 scope construct with allocate clause.
2704 * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
2705 * testsuite/libgomp.c-c++-common/scope-2.c: New test.
2706
2707 2022-05-28 Tobias Burnus <tobias@codesourcery.com>
2708
2709 * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
2710 * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
2711 explicit 'to' and 'enter' clause.
2712 * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
2713
2714 2022-05-28 Jakub Jelinek <jakub@redhat.com>
2715
2716 PR libgomp/105745
2717 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
2718 defined(HAVE__ALIGNED_MALLOC) case.
2719 * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
2720 handling as last option before fallback instead of first.
2721 (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
2722 _aligned_free.
2723
2724 2022-05-27 Jakub Jelinek <jakub@redhat.com>
2725
2726 * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
2727 clauses to enter.
2728 * testsuite/libgomp.c/target-41.c: Likewise.
2729
2730 2022-05-27 Tobias Burnus <tobias@codesourcery.com>
2731
2732 * libgomp.texi (Other new OpenMP 5.1 features): Add
2733 'begin declare target'.
2734 (Other new OpenMP 5.2 features): New.
2735
2736 2022-05-25 Jakub Jelinek <jakub@redhat.com>
2737
2738 * task.c (gomp_task_run_post_handle_dependers): If empty_task
2739 is the last task taskwait depend depends on, wake it up.
2740 Similarly if it is the last child of a taskgroup, use atomic
2741 store instead of decrement and awak taskgroup wait if any.
2742 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
2743
2744 2022-05-24 Andrew Stubbs <ams@codesourcery.com>
2745
2746 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
2747 EF_AMDGPU_MACH_AMDGCN_GFX90a.
2748 (gcn_gfx90a_s): New.
2749 (isa_hsa_name): Support gfx90a.
2750 (isa_code): Likewise.
2751
2752 2022-05-24 Tobias Burnus <tobias@codesourcery.com>
2753
2754 PR c/105378
2755 * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
2756 * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
2757
2758 2022-05-24 Jakub Jelinek <jakub@redhat.com>
2759
2760 PR c/105378
2761 * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
2762 * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
2763 * task.c (empty_task): New function.
2764 (gomp_task_run_post_handle_depend_hash): Declare earlier.
2765 (gomp_task_run_post_handle_depend): Declare.
2766 (GOMP_task): Optimize fn == empty_task if there is nothing to wait
2767 for.
2768 (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
2769 (GOMP_taskwait_depend_nowait): New function.
2770 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
2771
2772 2022-05-23 Tobias Burnus <tobias@codesourcery.com>
2773
2774 PR fortran/104949
2775 * target.c (gomp_map_vars_internal, copy_firstprivate_data):
2776 Support attach for GOMP_MAP_FIRSTPRIVATE.
2777 * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
2778 * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
2779 * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
2780
2781 2022-05-20 Marcel Vollweiler <marcel@codesourcery.com>
2782
2783 * libgomp.map: Added omp_target_memcpy_async and
2784 omp_target_memcpy_rect_async.
2785 * libgomp.texi: Both functions are now supported.
2786 * omp.h.in: Added omp_target_memcpy_async and
2787 omp_target_memcpy_rect_async.
2788 * omp_lib.f90.in: Added interfaces for both new functions.
2789 * omp_lib.h.in: Likewise.
2790 * target.c (ialias_redirect): Added for GOMP_task.
2791 (omp_target_memcpy): Restructured into check and copy part.
2792 (omp_target_memcpy_check): New helper function for omp_target_memcpy and
2793 omp_target_memcpy_async that checks requirements.
2794 (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
2795 omp_target_memcpy_async that performs the memcpy.
2796 (omp_target_memcpy_async_helper): New helper function that is used in
2797 omp_target_memcpy_async for the asynchronous task.
2798 (omp_target_memcpy_async): Added.
2799 (omp_target_memcpy_rect): Restructured into check and copy part.
2800 (omp_target_memcpy_rect_check): New helper function for
2801 omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
2802 requirements.
2803 (omp_target_memcpy_rect_copy): New helper function for
2804 omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
2805 the memcpy.
2806 (omp_target_memcpy_rect_async_helper): New helper function that is used
2807 in omp_target_memcpy_rect_async for the asynchronous task.
2808 (omp_target_memcpy_rect_async): Added.
2809 * task.c (ialias): Added for GOMP_task.
2810 * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
2811 * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
2812 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
2813 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
2814 * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
2815 * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
2816 * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
2817 * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
2818
2819 2022-05-18 Tobias Burnus <tobias@codesourcery.com>
2820
2821 * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
2822 (OpenMP Context Selectors): Add missing comma.
2823 * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
2824 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
2825 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
2826 * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
2827
2828 2022-05-17 Jakub Jelinek <jakub@redhat.com>
2829
2830 * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
2831 comment for omp_display_env feature.
2832
2833 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
2834
2835 * libgomp.texi (Offload-Target Specifics): New chapter; add section
2836 to document OpenMP context selectors.
2837
2838 2022-05-17 Jakub Jelinek <jakub@redhat.com>
2839
2840 * libgomp.h (struct gomp_task_depend_entry): Change is_in type
2841 from bool to unsigned char.
2842 * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
2843 Ignore dependencies where
2844 task->depend[i].is_in && task->depend[i].is_in == ent->is_in
2845 rather than just task->depend[i].is_in && ent->is_in. Remember
2846 whether GOMP_DEPEND_IN loop is needed and guard the loop with that
2847 conditional.
2848 (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
2849 Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
2850 rather than just elem.is_in && ent->is_in.
2851 * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
2852 inoutset depend-kind.
2853 * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
2854 * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
2855 * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
2856
2857 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
2858
2859 * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
2860
2861 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
2862
2863 * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
2864 * testsuite/libgomp.fortran/depend-5.f90: New test.
2865 * testsuite/libgomp.fortran/depend-6.f90: New test.
2866 * testsuite/libgomp.fortran/depend-7.f90: New test.
2867
2868 2022-05-16 Marcel Vollweiler <marcel@codesourcery.com>
2869
2870 * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
2871 * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
2872 * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
2873
2874 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
2875
2876 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
2877
2878 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
2879
2880 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
2881
2882 2022-05-13 Thomas Schwinge <thomas@codesourcery.com>
2883
2884 * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
2885 [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
2886 (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
2887 append '$(PLUGIN_NVPTX_LDFLAGS)'.
2888 * Makefile.in: Regenerate.
2889
2890 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
2891
2892 * Makefile.am (libgomp_la_LIBADD): Initialize.
2893 * plugin/configfrag.ac (DL_LIBS): New.
2894 (PLUGIN_GCN_LIBS): Remove.
2895 (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
2896 * plugin/Makefrag.am (libgomp_la_LIBADD)
2897 (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
2898 (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
2899 * Makefile.in: Regenerate.
2900 * config.h.in: Likewise.
2901 * configure: Likewise.
2902 * testsuite/Makefile.in: Likewise.
2903
2904 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
2905
2906 * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
2907 * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
2908 'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
2909 * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
2910 'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
2911 'PLUGIN_NVPTX_LINK_LIBCUDA'.
2912 * Makefile.in: Regenerate.
2913 * config.h.in: Likewise.
2914 * configure: Likewise.
2915
2916 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
2917
2918 * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
2919 for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
2920 * Makefile.in: Regenerate.
2921 * config.h.in: Likewise.
2922 * configure: Likewise.
2923 * testsuite/Makefile.in: Likewise.
2924
2925 2022-05-12 Jakub Jelinek <jakub@redhat.com>
2926
2927 * libgomp.h (struct gomp_task): Add depend_all_memory member.
2928 * task.c (gomp_init_task): Initialize depend_all_memory.
2929 (gomp_task_handle_depend): Handle omp_all_memory.
2930 (gomp_task_run_post_handle_depend_hash): Clear
2931 parent->depend_all_memory if equal to current task.
2932 (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
2933 * testsuite/libgomp.c-c++-common/depend-1.c: New test.
2934 * testsuite/libgomp.c-c++-common/depend-2.c: New test.
2935 * testsuite/libgomp.c-c++-common/depend-3.c: New test.
2936
2937 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
2938
2939 * plugin/configfrag.ac: Remove '--with-hsa-runtime',
2940 '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
2941 * Makefile.in: Regenerate.
2942 * configure: Likewise.
2943 * testsuite/Makefile.in: Likewise.
2944
2945 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
2946
2947 * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
2948 consider 'PLUGIN_GCN_CPPFLAGS'.
2949 (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
2950 'PLUGIN_GCN_LDFLAGS'.
2951 * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
2952 Remove.
2953 * Makefile.in: Regenerate.
2954 * configure: Likewise.
2955 * testsuite/Makefile.in: Likewise.
2956
2957 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
2958
2959 * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
2960 (HSA_RUNTIME_LDFLAGS): Remove.
2961 * configure: Regenerate.
2962
2963 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
2964
2965 * testsuite/lib/libgomp.exp (libgomp_init): Don't
2966 'append always_ld_library_path ":$hsa_runtime_lib"'.
2967 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
2968
2969 2022-05-10 Thomas Schwinge <thomas@codesourcery.com>
2970
2971 * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
2972 multi-device testing.
2973
2974 2022-05-06 Marcel Vollweiler <marcel@codesourcery.com>
2975
2976 * libgomp.map: Added omp_target_is_accessible.
2977 * libgomp.texi: Tagged omp_target_is_accessible as supported.
2978 * omp.h.in: Added omp_target_is_accessible.
2979 * omp_lib.f90.in: Added interface for omp_target_is_accessible.
2980 * omp_lib.h.in: Likewise.
2981 * target.c (omp_target_is_accessible): Added implementation of
2982 omp_target_is_accessible.
2983 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
2984 * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
2985
2986 2022-05-05 Sandra Loosemore <sandra@codesourcery.com>
2987
2988 * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
2989
2990 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
2991
2992 * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
2993
2994 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
2995
2996 * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
2997
2998 2022-05-03 Marcel Vollweiler <marcel@codesourcery.com>
2999
3000 * libgomp.map: Added omp_get_mapped_ptr.
3001 * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
3002 * omp.h.in: Added omp_get_mapped_ptr.
3003 * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
3004 * omp_lib.h.in: Likewise.
3005 * target.c (omp_get_mapped_ptr): Added implementation of
3006 omp_get_mapped_ptr.
3007 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
3008 * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
3009 * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
3010 * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
3011 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
3012 * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
3013 * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
3014 * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
3015
3016 2022-04-28 Thomas Schwinge <thomas@codesourcery.com>
3017
3018 PR fortran/104717
3019 * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
3020 privatization scanning. For GCN offloading compilation, raise
3021 '-mgang-private-size'.
3022
3023 2022-04-26 Jakub Jelinek <jakub@redhat.com>
3024
3025 PR libgomp/105358
3026 * work.c (gomp_init_work_share): Don't mask of adjustment for
3027 dynamic long long realignment if struct gomp_work_share has smaller
3028 alignof than long long.
3029 * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
3030 struct gomp_work_share has smaller alignof than long long or if
3031 sizeof (struct gomp_work_share) is smaller than
3032 INLINE_ORDERED_TEAM_IDS_OFF.
3033 * loop_ull.c (GOMP_loop_ull_start): Likewise.
3034 * sections.c (GOMP_sections2_start): Likewise.
3035
3036 2022-04-25 Jakub Jelinek <jakub@redhat.com>
3037 Thomas Schwinge <thomas@codesourcery.com>
3038
3039 PR fortran/104717
3040 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
3041
3042 2022-04-13 Jakub Jelinek <jakub@redhat.com>
3043
3044 * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
3045
3046 2022-04-06 Thomas Schwinge <thomas@codesourcery.com>
3047
3048 * plugin/cuda/cuda.h: Remove file.
3049 * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
3050 "cuda/cuda.h" instead of <cuda.h>.
3051 * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
3052 'PLUGIN_NVPTX_CPPFLAGS'.
3053 * configure: Regenerate.
3054
3055 2022-04-05 Chung-Lin Tang <cltang@codesourcery.com>
3056
3057 * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
3058
3059 2022-04-04 Tom de Vries <tdevries@suse.de>
3060
3061 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
3062 on_device_arch_nvptx instead of offload_target_nvptx.
3063 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3064
3065 2022-04-01 Tom de Vries <tdevries@suse.de>
3066
3067 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
3068 and use REC_DEPTH.
3069 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3070
3071 2022-04-01 Tom de Vries <tdevries@suse.de>
3072
3073 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
3074 num_workers check.
3075
3076 2022-03-29 Chenghua Xu <xuchenghua@loongson.cn>
3077 Lulu Cheng <chenglulu@loongson.cn>
3078
3079 * configure.tgt: Add LoongArch triplet.
3080
3081 2022-03-28 Tom de Vries <tdevries@suse.de>
3082
3083 * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
3084 instead of /libexec/.
3085 * configure: Regenerate.
3086
3087 2022-03-25 Tom de Vries <tdevries@suse.de>
3088
3089 PR libgomp/105042
3090 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
3091 execution time.
3092 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
3093 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
3094
3095 2022-03-23 Tobias Burnus <tobias@codesourcery.com>
3096
3097 PR middle-end/104285
3098 * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
3099 * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
3100 * testsuite/libgomp.c++/target-same-name-2.C: New test.
3101 * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
3102 * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
3103 * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
3104
3105 2022-03-22 Tom de Vries <tdevries@suse.de>
3106
3107 PR target/104916
3108 PR target/104783
3109 * testsuite/libgomp.c/pr104783-2.c: New test.
3110
3111 2022-03-18 Tobias Burnus <tobias@codesourcery.com>
3112
3113 PR fortran/103039
3114 * testsuite/libgomp.fortran/associate4.f90: New test.
3115
3116 2022-03-18 Tom de Vries <tdevries@suse.de>
3117
3118 PR target/104952
3119 * testsuite/libgomp.c/pr104952-1.c: New test.
3120 * testsuite/libgomp.c/pr104952-2.c: New test.
3121
3122 2022-03-18 Jakub Jelinek <jakub@redhat.com>
3123
3124 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
3125 variable next to pl variable.
3126
3127 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
3128
3129 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3130 Enhance.
3131 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
3132 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3133
3134 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
3135
3136 PR middle-end/90115
3137 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
3138 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3139
3140 2022-03-16 Marcel Vollweiler <marcel@codesourcery.com>
3141
3142 * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
3143 omp_set_max_active_levels.
3144 * testsuite/libgomp.fortran/icv-8.f90: New test.
3145
3146 2022-03-16 Thomas Schwinge <thomas@codesourcery.com>
3147
3148 PR testsuite/102841
3149 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
3150
3151 2022-03-13 Tobias Burnus <tobias@codesourcery.com>
3152
3153 * libgomp.texi: Fix typo.
3154
3155 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3156
3157 PR middle-end/100280
3158 PR middle-end/104892
3159 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
3160 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
3161 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3162 Likewise.
3163 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3164 Likewise.
3165 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3166 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3167 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3168 Likewise.
3169
3170 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3171
3172 PR middle-end/104892
3173 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
3174 to PR104892.
3175 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
3176 enable '--param=openacc-kernels=decompose' and adjust.
3177 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3178 Likewise.
3179 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3180 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3181 Likewise.
3182
3183 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3184
3185 PR middle-end/90115
3186 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
3187 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
3188 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3189 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
3190
3191 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3192
3193 PR middle-end/100280
3194 PR middle-end/104086
3195 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3196 Merge this...
3197 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3198 ..., and this...
3199 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
3200 this, and adjust.
3201 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3202 Extend.
3203
3204 2022-03-10 Hafiz Abid Qadeer <abidh@codesourcery.com>
3205
3206 * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
3207 trait. Test last index in w and v array. Remove redundant
3208 assignment to V(1). Move alignment checks at the end of
3209 parallel region.
3210
3211 2022-03-10 Tom de Vries <tdevries@suse.de>
3212
3213 * testsuite/libgomp.c/pr104783.c: New test.
3214
3215 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
3216
3217 PR middle-end/90115
3218 PR middle-end/102330
3219 PR middle-end/104774
3220 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3221 Enhance.
3222 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3223 Adjust.
3224 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3225 Likewise.
3226 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3227 Likewise.
3228 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3229 Likewise.
3230 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3231 Likewise.
3232 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3233 Likewise.
3234 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3235 Likewise.
3236 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3237 Likewise.
3238 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3239 Likewise.
3240 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3241 Likewise.
3242 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3243 Likewise.
3244 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3245 Likewise.
3246 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3247 Likewise.
3248 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
3249 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3250 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3251
3252 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
3253
3254 PR middle-end/90115
3255 * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
3256 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
3257 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
3258 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
3259
3260 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3261
3262 PR testsuite/104791
3263 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
3264 expected diagnostics.
3265
3266 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3267
3268 PR middle-end/104784
3269 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3270 Test with '--param=openacc-kernels=decompose'.
3271 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3272 Likewise.
3273 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3274 Likewise.
3275 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3276 Likewise.
3277 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3278 Likewise.
3279 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3280 Likewise.
3281 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3282 Likewise.
3283 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3284 Likewise.
3285 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3286 Likewise.
3287 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3288 Likewise.
3289 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3290 Likewise.
3291 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3292 Likewise.
3293 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3294 Likewise.
3295 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3296 Likewise.
3297 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3298 Likewise.
3299 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3300 Likewise.
3301 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3302 Likewise.
3303 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3304 Likewise.
3305 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3306 Likewise.
3307 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3308 Likewise.
3309 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3310 Likewise.
3311 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3312 Likewise.
3313 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3314 Likewise.
3315 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3316 Likewise.
3317 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3318 Likewise.
3319 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3320 Likewise.
3321 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3322 Likewise.
3323 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3324 Likewise.
3325 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3326 Likewise.
3327 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3328 Likewise.
3329 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3330 Likewise.
3331 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3332 Likewise.
3333 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3334 Likewise.
3335
3336 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3337
3338 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3339 Test '-fopt-info-omp-all'.
3340 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3341 Likewise.
3342 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3343 Likewise.
3344 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3345 Likewise.
3346 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3347 Likewise.
3348 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3349 Likewise.
3350 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3351 Likewise.
3352 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3353 Likewise.
3354 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3355 Likewise.
3356 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3357 Likewise.
3358 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3359 Likewise.
3360 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3361 Likewise.
3362 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3363 Likewise.
3364 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3365 Likewise.
3366 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3367 Likewise.
3368 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3369 Likewise.
3370 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3371 Likewise.
3372 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3373 Likewise.
3374 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3375 Likewise.
3376 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3377 Likewise.
3378 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3379 Likewise.
3380 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3381 Likewise.
3382 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3383 Likewise.
3384 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3385 Likewise.
3386 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3387 Likewise.
3388 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3389 Likewise.
3390 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3391 Likewise.
3392 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3393 Likewise.
3394 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3395 Likewise.
3396 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3397 Likewise.
3398 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3399 Likewise.
3400 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3401 Likewise.
3402 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3403 Likewise.
3404
3405 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3406
3407 PR middle-end/100280
3408 PR middle-end/104132
3409 PR middle-end/104133
3410 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3411 Extend.
3412
3413 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3414
3415 PR middle-end/100280
3416 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
3417 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3418 Likewise.
3419
3420 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3421
3422 PR middle-end/100280
3423 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
3424 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3425 Likewise.
3426
3427 2022-02-28 Tom de Vries <tdevries@suse.de>
3428
3429 * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
3430 * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
3431 * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
3432 * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
3433 * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
3434 * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
3435
3436 2022-02-24 Tom de Vries <tdevries@suse.de>
3437
3438 * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
3439 * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
3440 * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
3441 * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
3442 * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
3443 * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
3444 * testsuite/libgomp.c/declare-variant-3.h: New header file.
3445
3446 2022-02-22 Thomas Schwinge <thomas@codesourcery.com>
3447
3448 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
3449 gang-redundant execution.
3450
3451 2022-02-22 Tom de Vries <tdevries@suse.de>
3452
3453 PR target/99555
3454 * config/nvptx/bar.c (generation_to_barrier): New function, copied
3455 from config/rtems/bar.c.
3456 (futex_wait, futex_wake): New function.
3457 (do_spin, do_wait): New function, copied from config/linux/wait.h.
3458 (gomp_barrier_wait_end, gomp_barrier_wait_last)
3459 (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
3460 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
3461 and replace with include of config/linux/bar.c.
3462 * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
3463 (gomp_barrier_init): Init new fields.
3464 * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
3465 workarounds.
3466 * testsuite/libgomp.c/pr99555-1.c: Same.
3467 * testsuite/libgomp.fortran/task-detach-6.f90: Same.
3468
3469 2022-02-22 Tom de Vries <tdevries@suse.de>
3470
3471 PR testsuite/104146
3472 * testsuite/libgomp.c++/pr96390.C: Add additional-option
3473 -foffload=-Wa,--verify for nvptx.
3474 * testsuite/libgomp.c-c++-common/pr96390.c: Same.
3475
3476 2022-02-15 Tobias Burnus <tobias@codesourcery.com>
3477
3478 * testsuite/libgomp.fortran/depend-4.f90: New test.
3479
3480 2022-02-10 Tobias Burnus <tobias@codesourcery.com>
3481
3482 PR c++/102204
3483 * testsuite/libgomp.c++/target-virtual-1.C: New test.
3484
3485 2022-02-10 Marcel Vollweiler <marcel@codesourcery.com>
3486
3487 * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
3488 * target.c (copy_firstprivate_data): Copy only if host address is not
3489 NULL.
3490 * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
3491 * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
3492 * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
3493 * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
3494 * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
3495 * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
3496 * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
3497 * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
3498 * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
3499 * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
3500
3501 2022-02-08 Jakub Jelinek <jakub@redhat.com>
3502
3503 PR libgomp/104385
3504 * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
3505 clear task->parent.
3506 * testsuite/libgomp.c/pr104385.c: New test.
3507
3508 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
3509
3510 * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
3511 STOP of previous commit.
3512
3513 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
3514
3515 * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
3516 from is_64bit_aligned_.
3517 * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
3518 and use it, more implicit none, remove unused argument.
3519
3520 2022-02-03 David Seifert <soap@gentoo.org>
3521 Jakub Jelinek <jakub@redhat.com>
3522
3523 * configure.ac: Support --disable-werror.
3524 * configure: Regenerate.
3525
3526 2022-02-01 Tom de Vries <tdevries@suse.de>
3527
3528 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
3529 PR83812 workaround.
3530 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
3531 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
3532
3533 2022-02-01 Tom de Vries <tdevries@suse.de>
3534
3535 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
3536 num_workers for nvidia accelerator to fix libgomp error 'insufficient
3537 resources'.
3538 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
3539 Same.
3540 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
3541
3542 2022-02-01 Tom de Vries <tdevries@suse.de>
3543
3544 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
3545 recursion depth.
3546 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3547
3548 2022-01-31 Martin Liska <mliska@suse.cz>
3549
3550 * acinclude.m4: Detect *_ld_is_mold and use it.
3551 * configure: Regenerate.
3552
3553 2022-01-27 Tobias Burnus <tobias@codesourcery.com>
3554
3555 * libgomp.texi (OpenMP 5.0): Update implementation status.
3556
3557 2022-01-21 Thomas Schwinge <thomas@codesourcery.com>
3558
3559 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
3560 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
3561 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3562 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3563 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
3564 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3565 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3566 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
3567 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
3568 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3569 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
3570 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
3571 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
3572 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
3573 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
3574
3575 2022-01-19 Marcel Vollweiler <marcel@codesourcery.com>
3576
3577 * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
3578 "static") to make the device num available in the offload image.
3579
3580 2022-01-19 Martin Liska <mliska@suse.cz>
3581 Thomas Schwinge <thomas@codesourcery.com>
3582
3583 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
3584 patterns.
3585 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3586 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3587 Likewise.
3588 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
3589 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3590 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3591 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
3592 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
3593 Likewise.
3594 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
3595 Likewise.
3596 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
3597 Likewise.
3598 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
3599 Likewise.
3600 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
3601 Likewise.
3602 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
3603 Likewise.
3604 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3605 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3606 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3607
3608 2022-01-18 Martin Liska <mliska@suse.cz>
3609
3610 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
3611 in dg-warning.
3612 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3613 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
3614 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
3615 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3616 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3617 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
3618 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
3619 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
3620 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
3621 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
3622 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
3623 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
3624 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3625 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3626 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3627
3628 2022-01-17 Thomas Schwinge <thomas@codesourcery.com>
3629
3630 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
3631 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3632 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3633
3634 2022-01-17 Julian Brown <julian@codesourcery.com>
3635 Thomas Schwinge <thomas@codesourcery.com>
3636
3637 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
3638 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
3639 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
3640
3641 2022-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
3642 Andrew Stubbs <ams@codesourcery.com>
3643
3644 * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
3645 the number of teams and threads if necessary.
3646 (gcn_exec): Automatically set the number of gangs and workers if
3647 necessary.
3648
3649 2022-01-13 Hafiz Abid Qadeer <abidh@codesourcery.com>
3650
3651 * testsuite/libgomp.fortran/allocate-1.c: New test.
3652 * testsuite/libgomp.fortran/allocate-1.f90: New test.
3653 * libgomp.texi: Remove string that says that allocate clause
3654 support is for C/C++ only.
3655
3656 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3657
3658 * testsuite/libgomp.c-c++-common/on_device_arch.h
3659 (any_device_arch, any_device_arch_intel_mic): New.
3660 * testsuite/lib/libgomp.exp
3661 (check_effective_target_offload_device_any_intel_mic): New.
3662 * testsuite/libgomp.c-c++-common/target-45.c: Use it.
3663 * testsuite/libgomp.fortran/target10.f90: Likewise.
3664
3665 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3666
3667 PR tree-optimization/102192
3668 * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
3669 '-Wuninitialized' diagnostics.
3670
3671 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3672
3673 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
3674 current '-Wuninitialized' diagnostics.
3675 * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
3676 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
3677 * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
3678 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
3679 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3680 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
3681 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
3682 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3683 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3684 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3685 * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
3686 Likewise.
3687
3688 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3689
3690 * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
3691 for 'offload_device_intel_mic'.
3692
3693 2022-01-13 Julian Brown <julian@codesourcery.com>
3694 Thomas Schwinge <thomas@codesourcery.com>
3695
3696 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
3697 offloading execution XFAIL.
3698
3699 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3700
3701 PR middle-end/100280
3702 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3703 Update.
3704 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
3705 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3706 Likewise.
3707
3708 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3709
3710 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3711 Enhance.
3712 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3713 Likewise.
3714 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
3715 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
3716 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
3717 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
3718 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3719 Likewise.
3720 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3721 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3722 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3723 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
3724
3725 2022-01-04 Tobias Burnus <tobias@codesourcery.com>
3726
3727 * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
3728 * testsuite/libgomp.fortran/target10.f90: Likewise.
3729
3730 2022-01-04 Chung-Lin Tang <cltang@codesourcery.com>
3731
3732 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
3733 into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
3734 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3735
3736 2022-01-03 Jakub Jelinek <jakub@redhat.com>
3737
3738 * libgomp.texi: Bump @copying's copyright year.
3739
3740 2021-12-13 Tobias Burnus <tobias@codesourcery.com>
3741
3742 * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
3743 * testsuite/libgomp.fortran/atomic-19.f90: New test.
3744
3745 2021-12-10 Andrew Stubbs <ams@codesourcery.com>
3746
3747 * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
3748 (GOMP_OFFLOAD_load_image): Locate the offload variables via the
3749 table, not individual symbols.
3750
3751 2021-12-09 Chung-Lin Tang <cltang@codesourcery.com>
3752
3753 * testsuite/libgomp.c++/target-lambda-1.C: Only run under
3754 "target offload_device_nonshared_as"
3755 * testsuite/libgomp.c++/target-this-3.C: Likewise.
3756 * testsuite/libgomp.c++/target-this-4.C: Likewise.
3757
3758 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
3759
3760 * target.c (gomp_map_vars_existing): Make sure attached pointer is
3761 not overwritten during cross-host/device copying.
3762 (gomp_update): Likewise.
3763 (gomp_exit_data): Likewise.
3764 * testsuite/libgomp.c++/target-11.C: Adjust testcase.
3765 * testsuite/libgomp.c++/target-12.C: Likewise.
3766 * testsuite/libgomp.c++/target-15.C: Likewise.
3767 * testsuite/libgomp.c++/target-16.C: Likewise.
3768 * testsuite/libgomp.c++/target-17.C: Likewise.
3769 * testsuite/libgomp.c++/target-21.C: Likewise.
3770 * testsuite/libgomp.c++/target-23.C: Likewise.
3771 * testsuite/libgomp.c/target-23.c: Likewise.
3772 * testsuite/libgomp.c/target-29.c: Likewise.
3773 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
3774
3775 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
3776
3777 PR middle-end/92120
3778 * libgomp.h (gomp_attach_pointer): Add bool parameter.
3779 * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
3780 (goacc_enter_data_internal): Likewise.
3781 * target.c (gomp_map_vars_existing): Update assert condition to
3782 include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
3783 (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
3784 parameter, add support for mapping a pointer with NULL target.
3785 (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
3786 parameter, add support for attaching a pointer with NULL target.
3787 (gomp_map_vars_internal): Update calls to gomp_map_pointer and
3788 gomp_attach_pointer, add handling for
3789 GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
3790 GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
3791 * testsuite/libgomp.c++/target-23.C: New testcase.
3792 * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
3793 * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
3794 * testsuite/libgomp.c++/target-this-1.C: New testcase.
3795 * testsuite/libgomp.c++/target-this-2.C: New testcase.
3796 * testsuite/libgomp.c++/target-this-3.C: New testcase.
3797 * testsuite/libgomp.c++/target-this-4.C: New testcase.
3798 * testsuite/libgomp.c++/target-this-5.C: New testcase.
3799
3800 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
3801
3802 * libgomp.texi (OpenMP 5.1): Update status.
3803
3804 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
3805
3806 * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
3807
3808 2021-12-02 Chung-Lin Tang <cltang@codesourcery.com>
3809
3810 PR fortran/90030
3811 * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
3812 * testsuite/libgomp.fortran/pr90030.f90: New test.
3813
3814 2021-11-30 Kwok Cheung Yeung <kcy@codesourcery.com>
3815 Thomas Schwinge <thomas@codesourcery.com>
3816
3817 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
3818 temporary skip.
3819
3820 2021-11-30 Cesar Philippidis <cesar@codesourcery.com>
3821 Thomas Schwinge <thomas@codesourcery.com>
3822
3823 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
3824 skip.
3825
3826 2021-11-29 Richard Biener <rguenther@suse.de>
3827
3828 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
3829 return.
3830
3831 2021-11-24 Jakub Jelinek <jakub@redhat.com>
3832
3833 PR middle-end/103384
3834 * testsuite/libgomp.c/declare-variant-2.c: New test.
3835
3836 2021-11-18 David Edelsohn <dje.gcc@gmail.com>
3837
3838 * alloc.c (gomp_aligned_alloc): Fix typo.
3839
3840 2021-11-18 Jakub Jelinek <jakub@redhat.com>
3841
3842 PR libgomp/102838
3843 * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
3844 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
3845 (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
3846 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
3847 * work.c (alloc_work_share, gomp_work_share_start): Likewise.
3848 * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
3849 gomp_aligned_alloc instead of team_malloc.
3850
3851 2021-11-18 Jakub Jelinek <jakub@redhat.com>
3852
3853 PR libgomp/102838
3854 * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
3855 memalign over posix_memalign over aligned_alloc over fallback
3856 with malloc instead of aligned_alloc over _aligned_alloc over
3857 posix_memalign over memalign over fallback with malloc. For
3858 aligned_alloc, round up size up to multiple of al.
3859
3860 2021-11-16 Jakub Jelinek <jakub@redhat.com>
3861
3862 * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
3863 construct as implemented.
3864
3865 2021-11-15 Tobias Burnus <tobias@codesourcery.com>
3866
3867 * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
3868
3869 2021-11-15 Jakub Jelinek <jakub@redhat.com>
3870
3871 * task.c (gomp_create_target_task): Copy args array as well.
3872 * target.c (gomp_target_fallback): Add args argument.
3873 Set gomp_icv (true)->thread_limit_var if thread_limit is present.
3874 (GOMP_target): Adjust gomp_target_fallback caller.
3875 (GOMP_target_ext): Likewise.
3876 (gomp_target_task_fn): Likewise.
3877 * config/nvptx/team.c (gomp_nvptx_main): Set
3878 gomp_global_icv.thread_limit_var.
3879 * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
3880
3881 2021-11-15 Jakub Jelinek <jakub@redhat.com>
3882
3883 * config/nvptx/team.c (__gomp_team_num): Define as
3884 __attribute__((shared)) var.
3885 (gomp_nvptx_main): Initialize __gomp_team_num to 0.
3886 * config/nvptx/target.c (__gomp_team_num): Declare as
3887 extern __attribute__((shared)) var.
3888 (GOMP_teams4): Use __gomp_team_num as the team number instead of
3889 %ctaid.x. If first, initialize it to %ctaid.x. If num_teams_lower
3890 is bigger than num_blocks, use num_teams_lower teams and arrange for
3891 bumping of __gomp_team_num if !first and returning false once we run
3892 out of teams.
3893 * config/nvptx/teams.c (__gomp_team_num): Declare as
3894 extern __attribute__((shared)) var.
3895 (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
3896
3897 2021-11-15 Jakub Jelinek <jakub@redhat.com>
3898
3899 * testsuite/libgomp.c/teams-5.c: New test.
3900
3901 2021-11-12 Jakub Jelinek <jakub@redhat.com>
3902
3903 PR target/103201
3904 * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
3905 to ...
3906 * config/gcn/teams.c: ... here. New file.
3907
3908 2021-11-12 Chung-Lin Tang <cltang@codesourcery.com>
3909
3910 * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
3911 implicit map handling to allow a "superset" existing map as valid case.
3912 (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
3913 (get_implicit): New function to extract implicit status.
3914 (gomp_map_fields_existing): Adjust arguments in calls to
3915 gomp_map_vars_existing, and add uses of get_implicit.
3916 (gomp_map_vars_internal): Likewise.
3917 * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
3918
3919 2021-11-12 Jakub Jelinek <jakub@redhat.com>
3920
3921 * libgomp_g.h (GOMP_teams4): Declare.
3922 * libgomp.map (GOMP_5.1): Export GOMP_teams4.
3923 * target.c (GOMP_teams4): New function.
3924 * config/nvptx/target.c (GOMP_teams): Remove.
3925 (GOMP_teams4): New function.
3926 * config/gcn/target.c (GOMP_teams): Remove.
3927 (GOMP_teams4): New function.
3928 * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
3929 teams instead of <= 2.
3930 * testsuite/libgomp.c-c++-common/teams-2.c: New test.
3931
3932 2021-11-11 Tobias Burnus <tobias@codesourcery.com>
3933
3934 * testsuite/libgomp.fortran/teams-1.f90: New test.
3935
3936 2021-11-11 Jakub Jelinek <jakub@redhat.com>
3937
3938 * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
3939 * team.c (struct gomp_thread_start_data): Likewise.
3940 (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
3941 (gomp_team_start): Initialize start_data->num_teams and
3942 start_data->team_num. Update nthr->num_teams and nthr->team_num.
3943 * teams.c (gomp_num_teams, gomp_team_num): Remove.
3944 (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
3945 instead of gomp_num_teams and gomp_team_num.
3946 (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
3947 (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
3948 * testsuite/libgomp.c/teams-4.c: New test.
3949
3950 2021-11-11 Jakub Jelinek <jakub@redhat.com>
3951
3952 * testsuite/libgomp.c-c++-common/teams-1.c: New test.
3953
3954 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
3955
3956 * env.c (parse_gomp_openacc_dim): Restore parsing.
3957
3958 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
3959
3960 PR middle-end/102972
3961 * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
3962 parallel construct.
3963 * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
3964 * testsuite/libgomp.c/target-3.c: Likewise.
3965 * testsuite/libgomp.c/target-5.c: Likewise.
3966 * testsuite/libgomp.c/target-6.c: Likewise.
3967 * testsuite/libgomp.c/target-teams-1.c: Likewise.
3968 * testsuite/libgomp.c/teams-1.c: Likewise.
3969 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
3970 * testsuite/libgomp.c/thread-limit-3.c: Likewise.
3971 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
3972 * testsuite/libgomp.c/thread-limit-5.c: Likewise.
3973 * testsuite/libgomp.fortran/icv-3.f90: Likewise.
3974 * testsuite/libgomp.fortran/icv-4.f90: Likewise.
3975 * testsuite/libgomp.fortran/teams1.f90: Likewise.
3976
3977 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
3978
3979 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
3980 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
3981
3982 2021-10-27 Jakub Jelinek <jakub@redhat.com>
3983
3984 * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
3985 aren't implemented for Fortran yet.
3986
3987 2021-10-27 Jakub Jelinek <jakub@redhat.com>
3988
3989 * testsuite/libgomp.c/loop-26.c: New test.
3990 * testsuite/libgomp.c/loop-27.c: New test.
3991
3992 2021-10-25 Tobias Burnus <tobias@codesourcery.com>
3993
3994 PR testsuite/102910
3995 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
3996 instead of #include <alloca.h> + alloca.
3997
3998 2021-10-21 Chung-Lin Tang <cltang@codesourcery.com>
3999
4000 * libgomp.texi (Support of strictly structured blocks in Fortran):
4001 Adjust to 'Y'.
4002 * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
4003
4004 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
4005
4006 * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
4007 * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
4008
4009 2021-10-20 Jakub Jelinek <jakub@redhat.com>
4010
4011 PR libgomp/102838
4012 * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
4013 (struct gomp_work_share): Only use aligned(64) attribute if
4014 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
4015 add padding before lock to ensure lock is at offset 64 bytes
4016 into the structure.
4017 (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
4018 New poor man's static assertions.
4019 * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
4020 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4021
4022 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
4023 Richard Biener <rguenther@suse.de>
4024
4025 * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
4026
4027 2021-10-18 Jakub Jelinek <jakub@redhat.com>
4028
4029 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
4030 && gomp_places_list_len < count after nfirst <= nlast loop condition.
4031
4032 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
4033
4034 PR fortran/102086
4035 PR fortran/92189
4036 PR fortran/92621
4037 PR fortran/101308
4038 PR fortran/101309
4039 PR fortran/101635
4040 PR fortran/92482
4041 * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
4042
4043 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4044
4045 * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
4046 type from char [50] to const char *.
4047 (places_array): Add a testcase for simplified syntax place followed
4048 by length or length and stride.
4049
4050 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4051
4052 * env.c (parse_one_place): Handle non-negative-number the same
4053 as { non-negative-number }. Reject even !number:1 and
4054 !number:1:stride or !place:1 or !place:1:stride instead of just
4055 length other than 1.
4056 * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
4057 and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
4058 omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
4059 as implemented.
4060 * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
4061 simplified syntax.
4062
4063 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4064
4065 * env.c (parse_schedule): For strtoul or strtoull calls which don't
4066 clearly reject return value 0 as invalid handle the case where end
4067 pointer is the same as first argument as invalid.
4068 (parse_unsigned_long_1): Likewise.
4069 (parse_one_place): Likewise.
4070 (parse_places_var): Likewise.
4071 (parse_stacksize): Likewise.
4072 (parse_spincount): Likewise.
4073 (parse_affinity): Likewise.
4074 (parse_gomp_openacc_dim): Likewise. Avoid strict aliasing violation.
4075 Make code valid C89.
4076 * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
4077 For strtoul calls which don't clearly reject return value 0 as
4078 invalid handle the case where end pointer is the same as first
4079 argument as invalid.
4080 (gomp_affinity_init_level_1): Likewise.
4081 (gomp_affinity_init_numa_domains): Likewise.
4082 * config/rtems/proc.c (parse_thread_pools): Likewise.
4083
4084 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4085
4086 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
4087 after creating count places clean up and return immediately.
4088 * testsuite/libgomp.c/places-6.c: New test.
4089 * testsuite/libgomp.c/places-7.c: New test.
4090 * testsuite/libgomp.c/places-8.c: New test.
4091 * testsuite/libgomp.c/places-9.c: New test.
4092 * testsuite/libgomp.c/places-10.c: New test.
4093
4094 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4095
4096 * env.c (parse_places_var): Handle numa_domains as level 5.
4097 * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
4098 function.
4099 (gomp_affinity_init_level): Use it instead of
4100 gomp_affinity_init_level_1 for level == 5.
4101 * testsuite/libgomp.c/places-5.c: New test.
4102
4103 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4104
4105 * env.c (parse_places_var): Handle ll_caches as level 4.
4106 * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
4107 function.
4108 (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
4109 last level cache.
4110 (gomp_affinity_init_level): Likewise.
4111 * testsuite/libgomp.c/places-1.c: New test.
4112 * testsuite/libgomp.c/places-2.c: New test.
4113 * testsuite/libgomp.c/places-3.c: New test.
4114 * testsuite/libgomp.c/places-4.c: New test.
4115
4116 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
4117
4118 * libgomp.texi (OpenMP 5.0): Update entry for declare variant
4119 directive.
4120
4121 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
4122
4123 * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
4124
4125 2021-10-12 Julian Brown <julian@codesourcery.com>
4126
4127 * target.c (gomp_copy_host2dev): Release device lock on cbuf
4128 error path.
4129
4130 2021-10-12 Tobias Burnus <tobias@codesourcery.com>
4131
4132 * testsuite/libgomp.fortran/icv-3.f90: New.
4133 * testsuite/libgomp.fortran/icv-4.f90: New.
4134
4135 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4136
4137 * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
4138 omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
4139 OMP_TEAMS_THREAD_LIMIT): Document.
4140
4141 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4142
4143 * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
4144 to avoid makeinfo warnings.
4145
4146 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4147
4148 * testsuite/libgomp.c-c++-common/icv-3.c: New test.
4149 * testsuite/libgomp.c-c++-common/icv-4.c: New test.
4150
4151 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4152
4153 PR libgomp/102628
4154 PR libgomp/102668
4155 * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
4156 allocation sizes from 420 to 320 and from 768 to 568.
4157 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
4158 * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
4159 for cr from 16 to 4.
4160
4161 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4162
4163 * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
4164 * testsuite/libgomp.c/scan-12.c: Likewise.
4165 * testsuite/libgomp.c/scan-13.c: Likewise.
4166 * testsuite/libgomp.c/scan-14.c: Likewise.
4167 * testsuite/libgomp.c/scan-15.c: Likewise.
4168 * testsuite/libgomp.c/scan-16.c: Likewise.
4169 * testsuite/libgomp.c/scan-17.c: Likewise.
4170 * testsuite/libgomp.c/scan-18.c: Likewise.
4171 * testsuite/libgomp.c/scan-19.c: Likewise.
4172 * testsuite/libgomp.c/scan-20.c: Likewise.
4173 * testsuite/libgomp.c/scan-21.c: Likewise.
4174 * testsuite/libgomp.c/scan-22.c: Likewise.
4175 * testsuite/libgomp.c++/scan-9.C: Likewise.
4176 * testsuite/libgomp.c++/scan-10.C: Likewise.
4177 * testsuite/libgomp.c++/scan-11.C: Likewise.
4178 * testsuite/libgomp.c++/scan-12.C: Likewise.
4179 * testsuite/libgomp.c++/scan-13.C: Likewise.
4180 * testsuite/libgomp.c++/scan-14.C: Likewise.
4181 * testsuite/libgomp.c++/scan-15.C: Likewise.
4182 * testsuite/libgomp.c++/scan-16.C: Likewise.
4183
4184 2021-10-12 Kewen Lin <linkw@linux.ibm.com>
4185
4186 * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
4187
4188 2021-10-11 Marcel Vollweiler <marcel@codesourcery.com>
4189
4190 * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
4191 omp_atv_serialized.
4192 * omp.h.in: Add deprecated flag for omp_atv_sequential.
4193 * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
4194 * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
4195 * testsuite/libgomp.fortran/alloc-12.f90: New test.
4196
4197 2021-10-11 Jakub Jelinek <jakub@redhat.com>
4198
4199 * omp.h.in (omp_set_num_teams, omp_get_max_teams,
4200 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4201 * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
4202 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4203 * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
4204 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4205 * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
4206 * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
4207 omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
4208 omp_set_teams_thread_limit{,_,_8_}.
4209 * icv.c (omp_set_num_teams, omp_get_max_teams,
4210 omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
4211 functions.
4212 * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
4213 (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
4214 (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
4215 vars.
4216 * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
4217 gomp_teams_thread_limit_var as fallback if not zero. If num_teams
4218 is not specified, use gomp_nteams_var.
4219 * fortran.c (omp_set_num_teams, omp_get_max_teams,
4220 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
4221 ialias_redirect.
4222 (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
4223 omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
4224 omp_get_teams_thread_limit_): New functions.
4225
4226 2021-10-09 liuhongt <hongtao.liu@intel.com>
4227
4228 * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
4229 * testsuite/libgomp.c++/scan-11.C: Ditto.
4230 * testsuite/libgomp.c++/scan-12.C: Ditto.
4231 * testsuite/libgomp.c++/scan-13.C: Ditto.
4232 * testsuite/libgomp.c++/scan-14.C: Ditto.
4233 * testsuite/libgomp.c++/scan-15.C: Ditto.
4234 * testsuite/libgomp.c++/scan-16.C: Ditto.
4235 * testsuite/libgomp.c++/scan-9.C: Ditto.
4236 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
4237 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
4238 * testsuite/libgomp.c/scan-11.c: Ditto.
4239 * testsuite/libgomp.c/scan-12.c: Ditto.
4240 * testsuite/libgomp.c/scan-13.c: Ditto.
4241 * testsuite/libgomp.c/scan-14.c: Ditto.
4242 * testsuite/libgomp.c/scan-15.c: Ditto.
4243 * testsuite/libgomp.c/scan-16.c: Ditto.
4244 * testsuite/libgomp.c/scan-17.c: Ditto.
4245 * testsuite/libgomp.c/scan-18.c: Ditto.
4246 * testsuite/libgomp.c/scan-19.c: Ditto.
4247 * testsuite/libgomp.c/scan-20.c: Ditto.
4248 * testsuite/libgomp.c/scan-21.c: Ditto.
4249 * testsuite/libgomp.c/scan-22.c: Ditto.
4250
4251 2021-10-09 Jakub Jelinek <jakub@redhat.com>
4252
4253 * libgomp.texi (OpenMP 5.1): Mention implemented support for
4254 structured block sequences in C/C++. Mention support for
4255 unconstrained/reproducible modifiers on order clause.
4256 Mention partial (C/C++ only) support of extentensions to atomics
4257 construct. Mention partial (C/C++ on clause only) support of
4258 align/allocator modifiers on allocate clause.
4259
4260 2021-10-02 Tobias Burnus <tobias@codesourcery.com>
4261
4262 * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
4263 based on libgomp.c-c++-common/order-reproducible-1.c.
4264 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
4265 * testsuite/libgomp.fortran/my-usleep.c: New test.
4266
4267 2021-10-01 Tobias Burnus <tobias@codesourcery.com>
4268
4269 * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
4270 * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
4271 * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
4272 * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
4273 based on libgomp.c-c++-common/alloc-9.c.
4274
4275 2021-10-01 Jakub Jelinek <jakub@redhat.com>
4276
4277 * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
4278 * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
4279
4280 2021-10-01 Jakub Jelinek <jakub@redhat.com>
4281
4282 * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
4283 ialias_redirect.
4284 * env.c (handle_omp_display_env): Use ialias_call.
4285 * icv-device.c: Move ialias right below each function.
4286 (omp_get_device_num): Use ialias_call.
4287 * fortran.c (omp_fulfill_event): Add ialias_redirect.
4288 * icv.c (omp_get_active_level): Add ialias_redirect.
4289
4290 2021-10-01 Jakub Jelinek <jakub@redhat.com>
4291
4292 * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
4293 __alloc_align__ (1) attribute.
4294 * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
4295
4296 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
4297
4298 * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
4299 for -fintrinsic-modules-path= warning of the C compiler.
4300 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
4301 * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
4302
4303 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
4304
4305 * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
4306 omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
4307 * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
4308 omp_realloc): Add.
4309 * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
4310 omp_realloc): Add.
4311 * testsuite/libgomp.fortran/alloc-10.f90: New test.
4312 * testsuite/libgomp.fortran/alloc-6.f90: New test.
4313 * testsuite/libgomp.fortran/alloc-7.c: New test.
4314 * testsuite/libgomp.fortran/alloc-7.f90: New test.
4315 * testsuite/libgomp.fortran/alloc-8.f90: New test.
4316 * testsuite/libgomp.fortran/alloc-9.f90: New test.
4317
4318 2021-09-30 Jakub Jelinek <jakub@redhat.com>
4319
4320 * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
4321 omp_realloc): New prototypes.
4322 (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
4323 attribute.
4324 * allocator.c: Include string.h.
4325 (omp_aligned_alloc): No longer static, add ialias. Add new_alignment
4326 variable and use it instead of alignment so that when retrying the old
4327 alignment is used again. Don't retry if new alignment is the same
4328 as old alignment, unless allocator had pool size.
4329 (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
4330 (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
4331 * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
4332 omp_aligned_calloc and omp_realloc.
4333 * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
4334 omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
4335 * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
4336 * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
4337 * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
4338 * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
4339
4340 2021-09-28 Tobias Burnus <tobias@codesourcery.com>
4341
4342 PR libgomp/96661
4343 * configure.ac: Only check for int-type = 2*size_t support when
4344 building with Fortran support.
4345 * configure: Regenerate.
4346
4347 2021-09-28 Thomas Schwinge <thomas@codesourcery.com>
4348
4349 * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
4350 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4351
4352 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
4353
4354 * team.c: Initialize start_data.
4355 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
4356 * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
4357
4358 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
4359
4360 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
4361 dg-message back to dg-note.
4362
4363 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
4364
4365 PR fortran/94070
4366 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
4367 expected dg-note output.
4368
4369 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
4370
4371 PR fortran/55534
4372 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
4373 r12-3722 by removing -Wno-missing-include-dirs.
4374 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
4375
4376 2021-09-22 Jakub Jelinek <jakub@redhat.com>
4377
4378 * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
4379 * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
4380
4381 2021-09-21 Tobias Burnus <tobias@codesourcery.com>
4382
4383 PR fortran/55534
4384 * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
4385 to ALWAYS_CFLAGS.
4386 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4387
4388 2021-09-18 Jakub Jelinek <jakub@redhat.com>
4389
4390 * testsuite/libgomp.c++/default-1.C: New test.
4391 * testsuite/libgomp.c-c++-common/default-1.c: New test.
4392 * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
4393 to default clause in C and C++" as implemented.
4394
4395 2021-09-17 Julian Brown <julian@codesourcery.com>
4396
4397 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
4398
4399 2021-09-17 Julian Brown <julian@codesourcery.com>
4400
4401 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
4402
4403 2021-09-17 Jakub Jelinek <jakub@redhat.com>
4404
4405 * libgomp.texi (OpenMP 5.1): Spelling fix,
4406 declare variante -> declare variant.
4407
4408 2021-09-17 Jakub Jelinek <jakub@redhat.com>
4409
4410 * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
4411 Use /* */ comments instead of //.
4412 * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
4413 * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
4414 * testsuite/libgomp.c++/atomic-16.C: New test.
4415 * testsuite/libgomp.c++/atomic-17.C: New test.
4416
4417 2021-09-10 Jakub Jelinek <jakub@redhat.com>
4418
4419 * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
4420 * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
4421 * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
4422
4423 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
4424
4425 * libgomp.texi (OpenMP Implementation Status): Extend
4426 OpenMP 5.0 section.
4427 (OpenACC Profiling Interface): Fix typo.
4428
4429 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
4430
4431 * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
4432 not to 4.5; link to new section.
4433 (OpenMP Implementation Status): New.
4434
4435 2021-09-06 Thomas Schwinge <thomas@codesourcery.com>
4436
4437 * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
4438
4439 2021-09-03 Tobias Burnus <tobias@codesourcery.com>
4440
4441 * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
4442 dg-output.
4443 * testsuite/libgomp.fortran/error-1.f90: Likewise.
4444
4445 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
4446 Jakub Jelinek <jakub@redhat.com>
4447
4448 * testsuite/libgomp.c/address-space-1.c: New file.
4449
4450 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
4451
4452 * testsuite/lib/libgomp.exp
4453 (check_effective_target_offload_target_intelmic): Remove 'proc'.
4454 (check_effective_target_offload_device_intel_mic): New 'proc'.
4455 * testsuite/libgomp.c-c++-common/on_device_arch.h
4456 (device_arch_intel_mic, on_device_arch_intel_mic): New.
4457 * testsuite/libgomp.c-c++-common/target-45.c: Use that for
4458 'dg-xfail-run-if'.
4459 * testsuite/libgomp.fortran/target10.f90: Likewise.
4460
4461 2021-08-23 Tobias Burnus <tobias@codesourcery.com>
4462
4463 * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
4464 * testsuite/libgomp.fortran/taskloop-4.f90: New test.
4465 * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
4466 * testsuite/libgomp.fortran/taskloop-5.f90: New test.
4467
4468 2021-08-23 Jakub Jelinek <jakub@redhat.com>
4469
4470 * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
4471 * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
4472 * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
4473
4474 2021-08-22 Thomas Schwinge <thomas@codesourcery.com>
4475
4476 * config/nvptx/error.c (fwrite, exit): Override, too.
4477 * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
4478 of offloading testing.
4479 * testsuite/libgomp.fortran/error-1.f90: Likewise.
4480
4481 2021-08-20 Tobias Burnus <tobias@codesourcery.com>
4482
4483 * testsuite/libgomp.fortran/error-1.f90: New test.
4484
4485 2021-08-20 Jakub Jelinek <jakub@redhat.com>
4486
4487 * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
4488 * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
4489 * error.c (GOMP_warning, GOMP_error): New functions.
4490 * testsuite/libgomp.c-c++-common/error-1.c: New test.
4491
4492 2021-08-18 Tobias Burnus <tobias@codesourcery.com>
4493
4494 * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
4495 omp_target_free. omp_target_is_present, omp_target_memcpy,
4496 omp_target_memcpy_rect, omp_target_associate_ptr,
4497 omp_target_disassociate_ptr): Add interface.
4498 * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
4499 omp_target_free. omp_target_is_present, omp_target_memcpy,
4500 omp_target_memcpy_rect, omp_target_associate_ptr,
4501 omp_target_disassociate_ptr): Add interface.
4502 * testsuite/libgomp.fortran/alloc-1.F90: Remove local
4503 interface block for omp_alloc + omp_free.
4504 * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
4505 * testsuite/libgomp.fortran/refcount-1.f90: New test.
4506 * testsuite/libgomp.fortran/target-12.f90: New test.
4507
4508 2021-08-18 Jakub Jelinek <jakub@redhat.com>
4509
4510 * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
4511
4512 2021-08-17 Tobias Burnus <tobias@codesourcery.com>
4513
4514 * testsuite/libgomp.fortran/scope-1.f90: New test.
4515 * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
4516
4517 2021-08-17 Jakub Jelinek <jakub@redhat.com>
4518
4519 * Makefile.am (libgomp_la_SOURCES): Add scope.c
4520 * Makefile.in: Regenerated.
4521 * libgomp_g.h (GOMP_scope_start): Declare.
4522 * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
4523 * scope.c: New file.
4524 * testsuite/libgomp.c-c++-common/scope-1.c: New test.
4525 * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
4526
4527 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
4528
4529 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
4530 '?:' issues.
4531
4532 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
4533
4534 * testsuite/libgomp.fortran/masked-1.f90: New test.
4535
4536 2021-08-13 Thomas Schwinge <thomas@codesourcery.com>
4537
4538 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
4539
4540 2021-08-12 Jakub Jelinek <jakub@redhat.com>
4541
4542 * testsuite/libgomp.c-c++-common/masked-1.c: New test.
4543
4544 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
4545
4546 * env.c (parse_bind_var): Accept 'primary' as alias for
4547 'master'.
4548 (omp_display_env): Add TODO comment to
4549 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
4550 * libgomp.texi: Change 'master thread' to 'primary thread'
4551 in line with OpenMP 5.1.
4552 (omp_get_proc_bind): Add omp_proc_bind_primary and note that
4553 omp_proc_bind_master is an alias of it.
4554 (OMP_PROC_BIND): Mention 'PRIMARY'.
4555 * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
4556 (omp_proc_bind_primary): Add.
4557 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
4558 * omp_lib.f90.in (omp_proc_bind_primary): Add.
4559 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
4560 * omp_lib.h.in (omp_proc_bind_primary): Add.
4561 * testsuite/libgomp.c/affinity-1.c: Check that
4562 'primary' works and is identical to 'master'.
4563
4564 2021-08-09 Julian Brown <julian@codesourcery.com>
4565 Kwok Cheung Yeung <kcy@codesourcery.com>
4566 Thomas Schwinge <thomas@codesourcery.com>
4567
4568 * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
4569 16.
4570 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
4571 [acc_device_radeon]: Update.
4572 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
4573 [ACC_DEVICE_TYPE_radeon]: Likewise.
4574 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
4575 [acc_device_radeon]: Likewise.
4576 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
4577 [ACC_DEVICE_TYPE_radeon]: Likewise.
4578 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
4579 'openacc_radeon_accel_selected' and '-O0'.
4580 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4581
4582 2021-08-05 Chung-Lin Tang <cltang@codesourcery.com>
4583
4584 * icv-device.c (omp_get_device_num): New API function, host side.
4585 * fortran.c (omp_get_device_num_): New interface function.
4586 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
4587 * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
4588 omp_get_device_num_.
4589 * libgomp.texi (omp_get_device_num): Add documentation for new API
4590 function.
4591 * omp.h.in (omp_get_device_num): Add declaration.
4592 * omp_lib.f90.in (omp_get_device_num): Likewise.
4593 * omp_lib.h.in (omp_get_device_num): Likewise.
4594 * target.c (gomp_load_image_to_device): If additional entry for device
4595 number exists at end of returned entries from 'load_image_func' hook,
4596 copy the assigned device number over to the device variable.
4597 * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
4598 (omp_get_device_num): New API function, device side.
4599 * plugin/plugin-gcn.c ("symcat.h"): Add include.
4600 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
4601 at end of returned 'target_table' entries.
4602 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
4603 (omp_get_device_num): New API function, device side.
4604 * plugin/plugin-nvptx.c ("symcat.h"): Add include.
4605 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
4606 at end of returned 'target_table' entries.
4607 * testsuite/lib/libgomp.exp
4608 (check_effective_target_offload_target_intelmic): New function for
4609 testing for intelmic offloading.
4610 * testsuite/libgomp.c-c++-common/target-45.c: New test.
4611 * testsuite/libgomp.fortran/target10.f90: New test.
4612
4613 2021-07-30 Thomas Schwinge <thomas@codesourcery.com>
4614 Ulrich Drepper <drepper@redhat.com>
4615
4616 * fortran.c (omp_display_env_, omp_display_env_8_): Only
4617 '#ifndef LIBGOMP_OFFLOADED_ONLY'.
4618
4619 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
4620 Julian Brown <julian@codesourcery.com>
4621 Kwok Cheung Yeung <kcy@codesourcery.com>
4622
4623 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
4624 's%oaccdevlow%oaccloops%g'.
4625 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
4626 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4627 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
4628 Likewise.
4629 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
4630 Likewise.
4631 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
4632 Likewise.
4633 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
4634 Likewise.
4635 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
4636 Likewise.
4637 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
4638 Likewise.
4639 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
4640 Likewise.
4641 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
4642 Likewise.
4643 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
4644
4645 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
4646
4647 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
4648 threader.
4649 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4650
4651 2021-07-27 Ulrich Drepper <drepper@gmail.com>
4652
4653 * env.c (wait_policy, stacksize): New static variables,
4654 move out of handle_omp_display_env.
4655 (omp_display_env): New function. The meat of the old
4656 handle_omp_display_env function.
4657 (handle_omp_display_env): Change to not take parameters
4658 and instead use the global variables. Only perform
4659 parsing, defer to omp_display_env for the implementation.
4660 (initialize_env): Remove local variables wait_policy and
4661 stacksize. Don't pass parameters to handle_omp_display_env.
4662 * fortran.c: Add ialias_redirect for omp_display_env.
4663 (omp_display_env_, omp_display_env_8_): New functions.
4664 * libgomp.map (OMP_5.1): New version. Add omp_display_env,
4665 omp_display_env_, and omp_display_env_8_.
4666 * omp.h.in: Declare omp_display_env.
4667 * omp_lib.f90.in: Likewise.
4668 * omp_lib.h.in: Likewise.
4669
4670 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
4671 Julian Brown <julian@codesourcery.com>
4672
4673 * target.c (gomp_coalesce_buf_add): Update comment.
4674 (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
4675 'aq && cbuf'.
4676 (gomp_map_vars_internal): Only 'if (!aq)', do
4677 'gomp_coalesce_buf_add'.
4678 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
4679 XFAIL.
4680
4681 2021-07-27 Julian Brown <julian@codesourcery.com>
4682 Thomas Schwinge <thomas@codesourcery.com>
4683
4684 * libgomp.h (gomp_copy_host2dev): Update prototype.
4685 * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
4686 argument to gomp_copy_host2dev (false).
4687 * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
4688 (copy_data): Don't free src.
4689 (queue_push_copy): Remove free_src handling.
4690 (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
4691 (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
4692 snapshotting.
4693 (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
4694 queue_push_copy.
4695 * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
4696 (gomp_copy_host2dev): Add EPHEMERAL parameter. Snapshot source
4697 data when true, and set up deferred freeing of temporary buffer.
4698 (gomp_copy_dev2host): Update call to goacc_device_copy_async.
4699 (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
4700 (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
4701 calls to gomp_copy_host2dev with appropriate ephemeral argument.
4702 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
4703 XFAIL.
4704
4705 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
4706 Tom de Vries <tom@codesourcery.com>
4707
4708 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
4709 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
4710
4711 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
4712
4713 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
4714 sequencing of 'async' data copying vs. profiling events.
4715 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
4716 Likewise.
4717
4718 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
4719 Julian Brown <julian@codesourcery.com>
4720
4721 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
4722 'async'/'wait' issue.
4723 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
4724 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
4725 * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
4726
4727 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
4728 Joseph Myers <joseph@codesourcery.com>
4729 Cesar Philippidis <cesar@codesourcery.com>
4730
4731 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
4732 file.
4733 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
4734 Likewise.
4735 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
4736 Likewise.
4737 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
4738
4739 2021-07-20 Thomas Schwinge <thomas@codesourcery.com>
4740
4741 PR target/101484
4742 * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
4743 '-Wno-error=array-bounds'.
4744 * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
4745 * libgomp.h [__AMDGCN__]: Likewise.
4746
4747 2021-07-19 Thomas Schwinge <thomas@codesourcery.com>
4748
4749 PR target/101484
4750 * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
4751 * libgomp.h [__AMDGCN__]: Likewise.
4752
4753 2021-07-13 Jakub Jelinek <jakub@redhat.com>
4754 Florian Weimer <fweimer@redhat.com>
4755
4756 * config/linux/sem.h: Don't include limits.h.
4757 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
4758 * config/linux/affinity.c: Include limits.h.
4759
4760 2021-07-01 Jakub Jelinek <jakub@redhat.com>
4761
4762 PR middle-end/94366
4763 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
4764
4765 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
4766
4767 PR other/67300
4768 * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
4769 -foffload=nvptx-none= by -foffload-options=nvptx-none= to
4770 avoid disabling other offload targets.
4771 * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
4772 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
4773 * testsuite/libgomp.c/target-44.c: Likewise.
4774
4775 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
4776
4777 * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
4778 target has shared memory and disable some scalar pointer/allocatable
4779 checks if not as firstprivate does not work.
4780
4781 2021-06-25 Chung-Lin Tang <cltang@codesourcery.com>
4782
4783 PR testsuite/101114
4784 * testsuite/libgomp.c-c++-common/struct-elem-5.c:
4785 Add "target offload_device_nonshared_as" condition for enabling test.
4786
4787 2021-06-24 Jakub Jelinek <jakub@redhat.com>
4788
4789 * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
4790 * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
4791 * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
4792 * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
4793
4794 2021-06-23 Jakub Jelinek <jakub@redhat.com>
4795
4796 PR middle-end/101167
4797 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
4798
4799 2021-06-17 Chung-Lin Tang <cltang@codesourcery.com>
4800
4801 * hashtab.h (htab_clear): New function with initialization code
4802 factored out from...
4803 (htab_create): ...here, adjust to use htab_clear function.
4804 * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
4805 special refcount values, add comments.
4806 (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
4807 (REFCOUNT_LINK): Likewise.
4808 (REFCOUNT_STRUCTELEM): New special refcount range for structure
4809 element siblings.
4810 (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
4811 sibling maps.
4812 (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
4813 (REFCOUNT_STRUCTELEM_FLAG_LAST): Flag to indicate last sibling.
4814 (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
4815 (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
4816 (struct splay_tree_key_s): Add structelem_refcount and
4817 structelem_refcount_ptr fields into a union with dynamic_refcount.
4818 Add comments.
4819 (gomp_map_vars): Delete declaration.
4820 (gomp_map_vars_async): Likewise.
4821 (gomp_unmap_vars): Likewise.
4822 (gomp_unmap_vars_async): Likewise.
4823 (goacc_map_vars): New declaration.
4824 (goacc_unmap_vars): Likewise.
4825 * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
4826 (goacc_enter_datum): Likewise.
4827 (goacc_enter_data_internal): Likewise.
4828 * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
4829 and goacc_unmap_vars.
4830 (GOACC_data_start): Adjust to use goacc_map_vars.
4831 (GOACC_data_end): Adjust to use goacc_unmap_vars.
4832 * target.c (hash_entry_type): New typedef.
4833 (htab_alloc): New function hook for hashtab.h.
4834 (htab_free): Likewise.
4835 (htab_hash): Likewise.
4836 (htab_eq): Likewise.
4837 (hashtab.h): Add file include.
4838 (gomp_increment_refcount): New function.
4839 (gomp_decrement_refcount): Likewise.
4840 (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
4841 gomp_increment_refcount.
4842 (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
4843 to gomp_map_vars_existing.
4844 (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
4845 variable to guard OpenMP specific paths, adjust calls to
4846 gomp_map_vars_existing, add structure element sibling splay_tree_key
4847 sequence creation code, adjust Fortran map case to avoid increment
4848 under OpenMP.
4849 (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
4850 local refcount_set if caller passed in NULL, adjust call to
4851 gomp_map_vars_internal.
4852 (gomp_map_vars_async): Adjust and rename into...
4853 (goacc_map_vars): ...this new function, adjust call to
4854 gomp_map_vars_internal.
4855 (gomp_remove_splay_tree_key): New function with code factored out from
4856 gomp_remove_var_internal.
4857 (gomp_remove_var_internal): Add code to handle removing multiple
4858 splay_tree_key sequence for structure elements, adjust code to use
4859 gomp_remove_splay_tree_key for splay-tree key removal.
4860 (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
4861 gomp_decrement_refcount.
4862 (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
4863 local refcount_set if caller passed in NULL, adjust call to
4864 gomp_unmap_vars_internal.
4865 (gomp_unmap_vars_async): Adjust and rename into...
4866 (goacc_unmap_vars): ...this new function, adjust call to
4867 gomp_unmap_vars_internal.
4868 (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
4869 gomp_unmap_vars.
4870 (GOMP_target_ext): Likewise.
4871 (gomp_target_data_fallback): Adjust call to gomp_map_vars.
4872 (GOMP_target_data): Likewise.
4873 (GOMP_target_data_ext): Likewise.
4874 (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
4875 (gomp_exit_data): Add refcount_set parameter, adjust to use
4876 gomp_decrement_refcount, adjust to queue splay-tree keys for removal
4877 after main loop.
4878 (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
4879 gomp_map_vars and gomp_exit_data.
4880 (gomp_target_task_fn): Likewise.
4881 * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
4882 * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
4883 * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
4884 * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
4885 * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
4886 * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
4887
4888 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
4889
4890 PR fortran/92568
4891 * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
4892
4893 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
4894 Thomas Schwinge <thomas@codesourcery.com>
4895
4896 * libgomp.map (GOACC_2.0.2): New symbol version.
4897 * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
4898 * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
4899
4900 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
4901 Andrew Stubbs <ams@codesourcery.com>
4902
4903 * oacc-mem.c (goacc_enter_exit_data_internal): New function,
4904 extracted from...
4905 (GOACC_enter_exit_data): ... here.
4906 (GOACC_declare): Use it.
4907
4908 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
4909
4910 * oacc-parallel.c (GOACC_declare): Move...
4911 * oacc-mem.c: ... here.
4912 * libgomp_g.h: Adjust.
4913
4914 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
4915 Thomas Schwinge <thomas@codesourcery.com>
4916
4917 * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
4918 handling.
4919
4920 2021-06-10 Jakub Jelinek <jakub@redhat.com>
4921
4922 PR tree-optimization/100981
4923 * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
4924 dsdotr and dsdoti to 0.
4925
4926 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
4927
4928 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
4929 if atomic compare-and-swap is supported on 'int'.
4930
4931 2021-06-09 Richard Biener <rguenther@suse.de>
4932
4933 PR tree-optimization/100981
4934 * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
4935
4936 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4937
4938 * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
4939 unconditionally.
4940 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4941 Update.
4942 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4943 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
4944
4945 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4946
4947 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
4948 '-DACC_MEM_SHARED=0'.
4949 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
4950 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
4951 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
4952 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
4953 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
4954 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
4955 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
4956 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
4957 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
4958 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
4959 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
4960 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
4961 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
4962 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
4963 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
4964 'acc_device_radeon' testing.
4965 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
4966 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
4967 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
4968 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
4969 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
4970 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
4971 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
4972 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
4973 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
4974 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
4975 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
4976 for non-'openacc_nvidia_accel_selected'.
4977 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
4978 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
4979 all implement this checking".
4980 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
4981 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
4982 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
4983 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
4984 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
4985
4986 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4987
4988 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
4989 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
4990
4991 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4992
4993 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
4994 for 'acc_device_radeon'.
4995
4996 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4997
4998 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
4999 for non-'acc_device_nvidia'.
5000
5001 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5002
5003 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
5004 'acc_device_radeon' testing.
5005 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5006 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5007 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5008
5009 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5010
5011 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
5012 require 'openacc_nvidia_accel_selected'. Fix up for
5013 'ACC_DEVICE_TYPE_radeon'.
5014
5015 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5016
5017 * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
5018 'openacc_nvidia_accel_selected'.
5019 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
5020
5021 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5022
5023 * testsuite/lib/libgomp.exp
5024 (check_effective_target_openacc_radeon_accel_selected):
5025 Streamline.
5026
5027 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5028
5029 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
5030 PR80547 workaround.
5031
5032 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5033
5034 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5035 <acc_device_nvidia>: Update comment.
5036
5037 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
5038
5039 * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
5040
5041 2021-05-27 Jakub Jelinek <jakub@redhat.com>
5042
5043 * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
5044 check_effective_target_openacc_cublas,
5045 check_effective_target_openacc_cudart): New.
5046 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
5047 target openacc_cublas.
5048 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
5049 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
5050 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
5051 target openacc_cuda.
5052 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
5053 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
5054 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
5055 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
5056 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
5057 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
5058 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
5059 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
5060 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
5061 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
5062 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
5063 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
5064 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
5065 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
5066 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
5067 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
5068 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
5069 targets openacc_cublas and openacc_cudart.
5070 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
5071 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
5072 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
5073 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
5074 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
5075 Require effective target openacc_cudart.
5076 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
5077 for effective target openacc_cuda and add && defined USE_CUDA_H to
5078 preprocessor conditionals. Guard -lcuda also on openacc_cuda
5079 effective target.
5080
5081 2021-05-26 Jakub Jelinek <jakub@redhat.com>
5082
5083 PR libgomp/100573
5084 * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
5085 GOMP_target_end_data, GOMP_target_update_ext,
5086 GOMP_target_enter_exit_data): New dummy entrypoints.
5087 * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
5088 GOMP_target_end_data, GOMP_target_update_ext,
5089 GOMP_target_enter_exit_data): Likewise.
5090 * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
5091 OMPFROM, OMPTO): Define.
5092 (main): Remove #pragma omp target teams around all the tests.
5093 * testsuite/libgomp.c-c++-common/target-41.c: New test.
5094 * testsuite/libgomp.c-c++-common/target-42.c: New test.
5095
5096 2021-05-25 Jakub Jelinek <jakub@redhat.com>
5097
5098 PR middle-end/99928
5099 * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
5100
5101 2021-05-24 Tobias Burnus <tobias@codesourcery.com>
5102
5103 PR fortran/86470
5104 * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
5105 * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
5106 * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
5107
5108 2021-05-22 Thomas Schwinge <thomas@codesourcery.com>
5109
5110 PR testsuite/90115
5111 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
5112 uninteresting/varying diagnostics.
5113
5114 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5115
5116 PR middle-end/90115
5117 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
5118 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5119
5120 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5121
5122 PR middle-end/90115
5123 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
5124 file.
5125 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5126 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
5127 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5128 Likewise.
5129 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
5130 Likewise.
5131 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
5132 Likewise.
5133 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
5134 Likewise.
5135 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
5136 Likewise.
5137 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
5138 Likewise.
5139 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
5140 Likewise.
5141 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
5142 Likewise.
5143 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
5144 Likewise.
5145 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
5146 Likewise.
5147 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
5148 Likewise.
5149 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
5150 Likewise.
5151 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
5152 Likewise.
5153 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
5154 Likewise.
5155 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
5156 Likewise.
5157 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
5158 Likewise.
5159 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
5160 Likewise.
5161 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
5162 Likewise.
5163 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
5164 Likewise.
5165 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
5166 Likewise.
5167 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
5168 Likewise.
5169 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5170 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5171 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5172 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
5173 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5174 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5175 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5176 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5177 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5178 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5179 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5180 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5181 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5182 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5183 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5184 Likewise.
5185 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
5186 Likewise.
5187 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
5188 Likewise.
5189 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5190 Likewise.
5191 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5192 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5193 Likewise.
5194 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5195 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5196 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5197 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5198 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
5199 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5200 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
5201 Likewise.
5202 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
5203 Likewise.
5204 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
5205 Likewise.
5206 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
5207 Likewise.
5208 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
5209 Likewise.
5210 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
5211 Likewise.
5212 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
5213 Likewise.
5214 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
5215 Likewise.
5216 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
5217 Likewise.
5218 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
5219 Likewise.
5220 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
5221 Likewise.
5222 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
5223 Likewise.
5224 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
5225 Likewise.
5226 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5227 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5228 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5229 Likewise.
5230 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5231 Likewise.
5232 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5233 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5234 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5235
5236 2021-05-21 Julian Brown <julian@codesourcery.com>
5237 Chung-Lin Tang <cltang@codesourcery.com>
5238 Thomas Schwinge <thomas@codesourcery.com>
5239
5240 PR middle-end/90115
5241 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
5242 test.
5243 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5244 Likewise.
5245 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5246 Likewise.
5247
5248 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5249
5250 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
5251 for nvptx offloading.
5252
5253 2021-05-21 Tobias Burnus <tobias@codesourcery.com>
5254
5255 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
5256
5257 2021-05-19 Thomas Schwinge <thomas@codesourcery.com>
5258
5259 PR target/83812
5260 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
5261
5262 2021-05-19 Julian Brown <julian@codesourcery.com>
5263
5264 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
5265
5266 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
5267
5268 * testsuite/lib/libgomp.exp
5269 (check_effective_target_offload_target_nvptx): Don't shadow global
5270 'offload_targets' variable.
5271
5272 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
5273
5274 * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
5275 '-latomic' to nvptx offloading compilation.
5276 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5277
5278 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
5279
5280 * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
5281 offloading compilation.
5282
5283 2021-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
5284
5285 * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
5286 if new tasks generated.
5287 * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
5288
5289 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
5290
5291 * testsuite/libgomp.fortran/parallel-master.f90: New test.
5292
5293 2021-05-13 Martin Liska <mliska@suse.cz>
5294
5295 PR testsuite/100569
5296 * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
5297 * testsuite/libgomp.c/pr46032-2.c: Likewise.
5298 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
5299 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
5300
5301 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
5302
5303 * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
5304 * testsuite/libgomp.fortran/task-detach-12.f90: New test.
5305
5306 2021-05-11 Jakub Jelinek <jakub@redhat.com>
5307
5308 PR middle-end/100471
5309 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
5310 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
5311 reduction pointer.
5312 * testsuite/libgomp.c/task-reduction-4.c: New test.
5313
5314 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
5315 Tom de Vries <tdevries@suse.de>
5316
5317 * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
5318 complex/floating-point || + && reduction with 'omp target'.
5319 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5320
5321 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
5322
5323 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
5324 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
5325 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
5326 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
5327
5328 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
5329
5330 PR testsuite/100397
5331 * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
5332 declaration to scope of non-'depend'-guarded assignment to avoid races.
5333
5334 2021-05-03 Tom de Vries <tdevries@suse.de>
5335
5336 PR target/100321
5337 * testsuite/libgomp.c/target-44.c: New test.
5338
5339 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
5340
5341 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
5342
5343 2021-04-29 Tom de Vries <tdevries@suse.de>
5344
5345 * testsuite/libgomp.c/pr81778.c: New test.
5346
5347 2021-04-29 Tom de Vries <tdevries@suse.de>
5348
5349 PR target/100232
5350 * testsuite/libgomp.c/target-43.c: New file.
5351
5352 2021-04-28 Jakub Jelinek <jakub@redhat.com>
5353 Tobias Burnus <tobias@codesourcery.com>
5354
5355 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
5356 * target.c (gomp_load_plugin_for_device): If set and if a plugin
5357 can't be dlopened, silently assume it has no devices.
5358 * Makefile.in: Regenerate.
5359 * config.h.in: Regenerate.
5360 * configure: Regenerate.
5361
5362 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
5363
5364 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
5365 Use [Ww]arning in dg-bogus as FE diagnostic and default
5366 diagnostic differ and the result depends on ENABLE_OFFLOAD.
5367 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5368 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5369 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5370
5371 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
5372
5373 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
5374 Correct spelling in dg-bogus to match -Wopenacc-parallelism.
5375 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5376 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5377 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5378
5379 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
5380 Nathan Sidwell <nathan@codesourcery.com>
5381 Tom de Vries <vries@codesourcery.com>
5382 Julian Brown <julian@codesourcery.com>
5383 Kwok Cheung Yeung <kcy@codesourcery.com>
5384
5385 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
5386 '-Wopenacc-parallelism', and match diagnostics, as appropriate.
5387 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5388 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5389 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5390 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5391 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
5392 Likewise.
5393 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
5394 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5395 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5396 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5397 Likewise.
5398 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
5399 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5400 Likewise.
5401 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5402 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5403 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5404 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5405 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5406 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5407 Likewise.
5408 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5409 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
5410 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5411 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5412 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5413 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
5414 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5415 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5416 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5417 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5418 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5419
5420 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
5421
5422 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
5423 compile with '-w'.
5424 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5425 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5426 Likewise.
5427 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5428 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
5429 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5430 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5431 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5432 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5433 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
5434
5435 2021-04-22 Richard Biener <rguenther@suse.de>
5436
5437 * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
5438 only on nvptx-none.
5439
5440 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
5441
5442 * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
5443 omp_depend_kind instead of defining it as 16.
5444
5445 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
5446
5447 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
5448 New, based on check_effective_target_offload_target_nvptx.
5449 (check_effective_target_offload_target_nvptx): Call it.
5450 (check_effective_target_offload_target_amdgcn): New.
5451 * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
5452 Require target offload_target_nvptx || offload_target_amdgcn.
5453 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
5454 * testsuite/libgomp.c/pr86416-1.c: Likewise.
5455 * testsuite/libgomp.c/pr86416-2.c: Likewise.
5456
5457 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
5458
5459 * testsuite/libgomp.fortran/depobj-1.f90: New test.
5460
5461 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
5462
5463 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
5464 '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
5465 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
5466 Likewise.
5467 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5468 Likewise.
5469 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5470
5471 2021-04-15 Thomas Schwinge <thomas@codesourcery.com>
5472
5473 PR target/99555
5474 * testsuite/lib/libgomp.exp
5475 (check_effective_target_offload_device_nvptx): New.
5476 * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
5477 resolved, make sure that we exit quickly, with error status,
5478 XFAILed.
5479 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
5480 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
5481
5482 2021-04-14 Jakub Jelinek <jakub@redhat.com>
5483
5484 PR testsuite/100071
5485 * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
5486 cp = omp_alloc with cp, p arguments instead of cq, q and call
5487 c_f_pointer after last cq = omp_alloc with cq, q.
5488
5489 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
5490
5491 PR middle-end/98088
5492 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
5493 for loop with GT/GE condition.
5494 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
5495
5496 2021-04-09 Thomas Schwinge <thomas@codesourcery.com>
5497
5498 PR middle-end/84991
5499 PR middle-end/84992
5500 PR middle-end/90779
5501 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
5502
5503 2021-04-09 Jakub Jelinek <jakub@redhat.com>
5504
5505 PR libgomp/99984
5506 * team.c (gomp_thread_start): Call pthread_setspecific for
5507 !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
5508 has been initialized to avoid false positive warning.
5509
5510 2021-03-29 Tobias Burnus <tobias@codesourcery.com>
5511
5512 PR target/99555
5513 * testsuite/lib/on_device_arch.c: Move to ...
5514 * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
5515 * testsuite/libgomp.fortran/on_device_arch.c: New file;
5516 #include on_device_arch.h.
5517 * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
5518 on_device_arch.h instead of using dg-additional-source.
5519 * testsuite/libgomp.c/pr99555-1.c: Likewise.
5520 * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
5521 on_device_arch.c without relative paths.
5522
5523 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
5524
5525 * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
5526 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
5527 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
5528 * config.h.in: Regenerate.
5529 * configure: Likewise.
5530
5531 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
5532
5533 PR target/99555
5534 * testsuite/lib/on_device_arch.c: New file.
5535 * testsuite/libgomp.c/pr99555-1.c: Likewise.
5536 * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
5537 skip for nvptx offloading, with error status.
5538 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
5539
5540 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
5541
5542 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
5543 OpenACC 'serial' construct diagnostic for nvptx offloading.
5544
5545 2021-03-15 Tobias Burnus <tobias@codesourcery.com>
5546
5547 PR c++/99509
5548 * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
5549
5550 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
5551
5552 PR fortran/98858
5553 * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
5554
5555 2021-03-04 Jakub Jelinek <jakub@redhat.com>
5556
5557 * configure.ac: Add AC_CHECK_SIZEOF([void *]).
5558 * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
5559 checking of -m32 or -mx32 options on the command line.
5560 * config.h.in: Regenerated.
5561 * configure: Regenerated.
5562
5563 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
5564
5565 * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
5566 support from the target.
5567
5568 2021-02-25 Kwok Cheung Yeung <kcy@codesourcery.com>
5569 Jakub Jelinek <jakub@redhat.com>
5570
5571 PR libgomp/98738
5572 * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
5573 (struct gomp_task): Replace detach and completion_sem fields with
5574 union containing completion_sem and detach_team. Add deferred_p
5575 field.
5576 (struct gomp_team): Remove task_detach_queue.
5577 * task.c: Include assert.h.
5578 (gomp_init_task): Initialize deferred_p and completion_sem fields.
5579 Rearrange initialization order of fields.
5580 (task_fulfilled_p): Delete.
5581 (GOMP_task): Use address of task as the event handle. Remove
5582 initialization of detach field. Initialize deferred_p field.
5583 Use automatic local for completion_sem. Initialize detach_team field
5584 for deferred tasks.
5585 (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
5586 Set kind of suspended detach task to GOMP_TASK_DETACHED and
5587 decrement task_running_count. Move finish_cancelled block out of
5588 else branch. Relocate call to gomp_team_barrier_done.
5589 (GOMP_taskwait): Handle tasks with completion events that have not
5590 been fulfilled.
5591 (GOMP_taskgroup_end): Likewise.
5592 (omp_fulfill_event): Use address of task as event handle. Post to
5593 completion_sem for undeferred tasks. Clear detach_team if task
5594 has not finished. For finished tasks, handle post-execution tasks,
5595 call gomp_team_barrier_wake if necessary, and free task.
5596 * team.c (gomp_new_team): Remove initialization of task_detach_queue.
5597 (free_team): Remove free of task_detach_queue.
5598 * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
5599 * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
5600 * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
5601 * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
5602 * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
5603 Change data-sharing of detach events on enclosing parallel to private.
5604 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. Remove
5605 taskwait directive.
5606 * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
5607 * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
5608 * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
5609 * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
5610 * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
5611 * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
5612 * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
5613 * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
5614 * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
5615 * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
5616 Change data-sharing of detach events on enclosing parallel to private.
5617 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise. Remove
5618 taskwait directive.
5619 * testsuite/libgomp.fortran/task-detach-7.f90: New.
5620 * testsuite/libgomp.fortran/task-detach-8.f90: New.
5621 * testsuite/libgomp.fortran/task-detach-9.f90: New.
5622 * testsuite/libgomp.fortran/task-detach-10.f90: New.
5623 * testsuite/libgomp.fortran/task-detach-11.f90: New.
5624
5625 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
5626
5627 PR fortran/99171
5628 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
5629
5630 2021-02-17 Julian Brown <julian@codesourcery.com>
5631
5632 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
5633 expected errors.
5634
5635 2021-02-17 Julian Brown <julian@codesourcery.com>
5636
5637 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
5638 * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
5639
5640 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
5641
5642 * config/linux/x86/futex.h (__futex_wait):
5643 Revert output type back to long.
5644 (__futex_wake): Ditto.
5645 (futex_wait): Update for revert.
5646 (futex_wake): Ditto.
5647
5648 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
5649
5650 * config/linux/x86/futex.h (__futex_wait): New static inline
5651 wrapper function. Correct output type to int and
5652 timeout type to void *.
5653 (__futex_wake): New static inline wrapper function.
5654 Correct output type to int.
5655 (futex_wait): Use __futex_wait.
5656 (futex_wake): Use __futex_wake.
5657
5658 2021-02-10 Julian Brown <julian@codesourcery.com>
5659
5660 PR fortran/98979
5661 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
5662 errors.
5663
5664 2021-02-04 Julian Brown <julian@codesourcery.com>
5665
5666 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
5667
5668 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
5669
5670 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
5671 EF_AMDGPU_MACH_AMDGCN_GFX908.
5672 (gcn_gfx908_s): New constant string.
5673 (isa_hsa_name): Add gfx908.
5674 (isa_code): Add gfx908.
5675
5676 2021-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
5677
5678 * libgomp.texi (omp_fulfill_event): New entry.
5679
5680 2021-01-20 Jakub Jelinek <jakub@redhat.com>
5681
5682 * task.c (GOMP_task): Rename priority argument to priority_arg,
5683 add priority automatic variable and modify that variable. Instead of
5684 clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
5685 check flags for that bit.
5686
5687 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
5688
5689 PR fortran/98476
5690 * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
5691
5692 2021-01-18 Andreas Schwab <schwab@suse.de>
5693
5694 * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
5695
5696 2021-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
5697
5698 * config/rtems/sem.h (gomp_sem_getcount): New function.
5699
5700 2021-01-18 Jakub Jelinek <jakub@redhat.com>
5701
5702 * config/linux/sem.h (gomp_sem_getcount): New function.
5703 * config/posix/sem.h (gomp_sem_getcount): New function.
5704 * config/posix/sem.c (gomp_sem_getcount): New function.
5705 * config/accel/sem.h (gomp_sem_getcount): New function.
5706 * task.c (task_fulfilled_p): Use gomp_sem_getcount.
5707 (omp_fulfill_event): Likewise.
5708
5709 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
5710
5711 * fortran.c (omp_fulfill_event_): New.
5712 * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
5713 (struct gomp_team): Add task_detach_queue and task_detach_count
5714 fields.
5715 * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
5716 * libgomp_g.h (GOMP_task): Add extra argument.
5717 * omp.h.in (enum omp_event_handle_t): New.
5718 (omp_fulfill_event): New.
5719 * omp_lib.f90.in (omp_event_handle_kind): New.
5720 (omp_fulfill_event): New.
5721 * omp_lib.h.in (omp_event_handle_kind): New.
5722 (omp_fulfill_event): Declare.
5723 * priority_queue.c (priority_tree_find): New.
5724 (priority_list_find): New.
5725 (priority_queue_find): New.
5726 * priority_queue.h (priority_queue_predicate): New.
5727 (priority_queue_find): New.
5728 * task.c (gomp_init_task): Initialize detach field.
5729 (task_fulfilled_p): New.
5730 (GOMP_task): Add detach argument. Ignore detach argument if
5731 GOMP_TASK_FLAG_DETACH not set in flags. Initialize completion_sem
5732 field. Copy address of completion_sem into detach argument and
5733 into the start of the data record. Wait for detach event if task
5734 not deferred.
5735 (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
5736 Remove completed tasks and requeue dependent tasks.
5737 (omp_fulfill_event): New.
5738 * team.c (gomp_new_team): Initialize task_detach_queue and
5739 task_detach_count fields.
5740 (free_team): Free task_detach_queue field.
5741 * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
5742 * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
5743 * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
5744 * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
5745 * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
5746 * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
5747 * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
5748 * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
5749 * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
5750 * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
5751 * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
5752 * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
5753
5754 2021-01-15 Jakub Jelinek <jakub@redhat.com>
5755
5756 PR target/70454
5757 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
5758 be added through preprocessor check on
5759 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
5760
5761 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
5762
5763 PR libgomp/65099
5764 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
5765 configurations.
5766 * configure: Regenerate.
5767 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
5768 check.
5769
5770 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
5771
5772 * configure: Re-generate.
5773
5774 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
5775
5776 * configure: Re-generate.
5777
5778 2021-01-05 Julian Brown <julian@codesourcery.com>
5779
5780 * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
5781 (struct ptx_device): Add omp_stacks struct.
5782 (nvptx_open_device): Initialise cached-stacks housekeeping info.
5783 (nvptx_close_device): Free cached stacks block and mutex.
5784 (nvptx_stacks_free): New function.
5785 (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
5786 (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
5787 (nvptx_stacks_alloc): Rename to...
5788 (nvptx_stacks_acquire): This. Cache stacks block between runs if same
5789 size or smaller is required.
5790 (nvptx_stacks_free): Remove.
5791 (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
5792 during kernel execution.
5793
5794 2021-01-01 Jakub Jelinek <jakub@redhat.com>
5795
5796 * libgomp.texi: Bump @copying's copyright year.
5797
5798 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
5799
5800 * libgomp.texi (Top): Avoid bad "up" link.
5801
5802 2020-12-18 Jakub Jelinek <jakub@redhat.com>
5803
5804 * testsuite/libgomp.c/task-6.c: New test.
5805
5806 2020-12-09 Andrew Stubbs <ams@codesourcery.com>
5807
5808 * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
5809 (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
5810
5811 2020-12-08 Tobias Burnus <tobias@codesourcery.com>
5812
5813 * testsuite/libgomp.fortran/scan-1.f90: New test.
5814
5815 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
5816
5817 PR target/97865
5818 * configure: Regenerate.
5819
5820 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
5821
5822 * configure: Regenerate.
5823
5824 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
5825
5826 * testsuite/libgomp.oacc-c++/cache-1.C: New.
5827 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
5828
5829 2020-11-25 Andrew Stubbs <ams@codesourcery.com>
5830
5831 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
5832 expected results.
5833
5834 2020-11-24 Andrew Stubbs <ams@codesourcery.com>
5835
5836 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
5837 (reserved): Delete unused define.
5838
5839 2020-11-24 Thomas Schwinge <thomas@codesourcery.com>
5840
5841 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
5842 Tcl 8.5-specific behavior.
5843 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5844
5845 2020-11-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5846
5847 * env.c (gomp_global_icv): Remove nest_var field. Add
5848 max_active_levels_var field.
5849 (gomp_max_active_levels_var): Remove.
5850 (parse_boolean): Return true on success.
5851 (handle_omp_display_env): Express OMP_NESTED in terms of
5852 max_active_levels_var. Change format specifier for
5853 max_active_levels_var.
5854 (initialize_env): Set max_active_levels_var from
5855 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
5856 OMP_PROC_BIND.
5857 * icv.c (omp_set_nested): Express in terms of
5858 max_active_levels_var.
5859 (omp_get_nested): Likewise.
5860 (omp_set_max_active_levels): Use max_active_levels_var field instead
5861 of gomp_max_active_levels_var.
5862 (omp_get_max_active_levels): Likewise.
5863 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
5864 max_active_levels_var field.
5865 (gomp_supported_active_levels): Set to UCHAR_MAX.
5866 (gomp_max_active_levels_var): Delete.
5867 * libgomp.texi (omp_get_nested): Update documentation.
5868 (omp_set_nested): Likewise.
5869 (OMP_MAX_ACTIVE_LEVELS): Likewise.
5870 (OMP_NESTED): Likewise.
5871 (OMP_NUM_THREADS): Likewise.
5872 (OMP_PROC_BIND): Likewise.
5873 * parallel.c (gomp_resolve_num_threads): Replace reference
5874 to nest_var with max_active_levels_var. Use max_active_levels_var
5875 field instead of gomp_max_active_levels_var.
5876
5877 2020-11-18 Tobias Burnus <tobias@codesourcery.com>
5878
5879 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
5880 nvptx_usleep; use also for device={arch(gcn)}.
5881
5882 2020-11-14 Jakub Jelinek <jakub@redhat.com>
5883
5884 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
5885 (foo): Add tests for non-VLA private and firstprivate clauses on
5886 omp task.
5887 (bar): Likewise. Remove taking of address from private/firstprivate
5888 variables.
5889 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
5890 (foo): Add p, q, px and s arguments. Add tests for array reductions
5891 and for non-VLA private and firstprivate clauses on omp task.
5892 (bar): Removed.
5893 (main): Adjust foo caller. Don't call bar.
5894
5895 2020-11-13 Gergö Barany <gergo@codesourcery.com>
5896 Thomas Schwinge <thomas@codesourcery.com>
5897
5898 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
5899 New.
5900 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
5901 Likewise.
5902 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5903 Likewise.
5904 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
5905 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5906
5907 2020-11-13 Gergö Barany <gergo@codesourcery.com>
5908 Thomas Schwinge <thomas@codesourcery.com>
5909
5910 PR fortran/94358
5911 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
5912
5913 2020-11-13 Jakub Jelinek <jakub@redhat.com>
5914
5915 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
5916 for array reductions.
5917 (main): Adjust foo callers.
5918
5919 2020-11-12 Jakub Jelinek <jakub@redhat.com>
5920
5921 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
5922 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
5923 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
5924 * allocator.c (omp_aligned_alloc): New for now static function,
5925 add alignment argument and handle it.
5926 (omp_alloc): Reimplement using omp_aligned_alloc.
5927 (GOMP_alloc, GOMP_free): New functions.
5928 (omp_free): Add ialias.
5929 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
5930 * testsuite/libgomp.c++/allocate-1.C: New test.
5931
5932 2020-11-12 Thomas Schwinge <thomas@codesourcery.com>
5933
5934 PR fortran/97782
5935 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
5936
5937 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
5938
5939 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
5940 usable.
5941 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
5942 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
5943 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
5944 (goacc_enter_data_internal): Likewise.
5945 * target.c (gomp_map_vars_internal):
5946 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
5947 of gomp_attach_pointer for OpenMP cases.
5948 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
5949 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
5950 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
5951
5952 2020-11-05 Ulrich Drepper <drepper@redhat.com>
5953 Kwok Cheung Yeung <kcy@codesourcery.com>
5954
5955 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
5956 * Makefile.in: Regenerate.
5957 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
5958 pragmas to ignore -Wdeprecated-declarations warnings.
5959 * icv.c: Likewise.
5960 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
5961 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
5962 and omp_get_nested with __GOMP_DEPRECATED_5_0.
5963 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
5964 deprecated.
5965 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
5966 to test options.
5967 * testsuite/libgomp.c/affinity-1.c: Likewise.
5968 * testsuite/libgomp.c/affinity-2.c: Likewise.
5969 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
5970 * testsuite/libgomp.c/lib-1.c: Likewise.
5971 * testsuite/libgomp.c/nested-1.c: Likewise.
5972 * testsuite/libgomp.c/nested-2.c: Likewise.
5973 * testsuite/libgomp.c/nested-3.c: Likewise.
5974 * testsuite/libgomp.c/pr32362-1.c: Likewise.
5975 * testsuite/libgomp.c/pr32362-2.c: Likewise.
5976 * testsuite/libgomp.c/pr32362-3.c: Likewise.
5977 * testsuite/libgomp.c/pr35549.c: Likewise.
5978 * testsuite/libgomp.c/pr42942.c: Likewise.
5979 * testsuite/libgomp.c/pr61200.c: Likewise.
5980 * testsuite/libgomp.c/sort-1.c: Likewise.
5981 * testsuite/libgomp.c/target-5.c: Likewise.
5982 * testsuite/libgomp.c/target-6.c: Likewise.
5983 * testsuite/libgomp.c/teams-1.c: Likewise.
5984 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
5985 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
5986 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
5987 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
5988 * testsuite/libgomp.fortran/lib1.f90: Likewise.
5989 * testsuite/libgomp.fortran/lib2.f: Likewise.
5990 * testsuite/libgomp.fortran/nested1.f90: Likewise.
5991 * testsuite/libgomp.fortran/teams1.f90: Likewise.
5992
5993 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
5994
5995 PR target/85486
5996 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
5997 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
5998 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
5999
6000 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
6001
6002 PR testsuite/80219
6003 PR testsuite/85303
6004 * testsuite/lib/libgomp.exp (libgomp_init): Set
6005 'gcc_warning_prefix', 'gcc_error_prefix'.
6006
6007 2020-10-30 Jakub Jelinek <jakub@redhat.com>
6008
6009 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
6010 even in field_tgt_clear initializer.
6011
6012 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6013
6014 * testsuite/libgomp.c/target-42.c: New test.
6015
6016 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6017 Tom de Vries <tdevries@suse.de>
6018
6019 PR testsuite/81690
6020 * testsuite/libgomp.c/usleep.h: New file.
6021 * testsuite/libgomp.c/target-32.c: Include usleep.h.
6022 (main): Use tgt_usleep instead of usleep.
6023 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
6024 (main): Use tgt_usleep instead of usleep.
6025
6026 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6027
6028 PR lto/96680
6029 * testsuite/libgomp.c/declare-variant-1.c: New test.
6030
6031 2020-10-22 Jakub Jelinek <jakub@redhat.com>
6032
6033 * testsuite/libgomp.c/target-41.c: New test.
6034
6035 2020-10-22 Jakub Jelinek <jakub@redhat.com>
6036
6037 * icv.c (omp_get_initial_device): Remove including corresponding
6038 ialias.
6039 * icv-device.c (omp_get_initial_device): New function. Return
6040 gomp_get_num_devices (). Add ialias.
6041 * target.c (resolve_device): Don't fail with
6042 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
6043 gomp_get_num_devices ().
6044 (omp_target_alloc, omp_target_free, omp_target_is_present,
6045 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
6046 omp_target_disassociate_ptr, omp_pause_resource): Use
6047 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
6048 first use in the functions, in uses dominated by the
6049 gomp_get_num_devices call use num_devices_openmp instead.
6050 * libgomp.texi (omp_get_initial_device): Document.
6051 * config/gcn/icv-device.c (omp_get_initial_device): New function.
6052 Add ialias.
6053 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
6054 * testsuite/libgomp.c/target-40.c: New test.
6055
6056 2020-10-21 Jakub Jelinek <jakub@redhat.com>
6057
6058 * env.c (parse_target_offload): Change new_offload var type to int,
6059 preinitialize to -1, remove found var and test new_offload != -1
6060 instead of found.
6061
6062 2020-10-20 Jakub Jelinek <jakub@redhat.com>
6063
6064 * target.c (gomp_target_init): Inside of the function, use automatic
6065 variables corresponding to num_devices, num_devices_openmp and devices
6066 global variables and update the globals only at the end of the
6067 function.
6068
6069 2020-10-20 Kwok Cheung Yeung <kcy@codesourcery.com>
6070
6071 * env.c (gomp_target_offload_var): New.
6072 (parse_target_offload): New.
6073 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
6074 (initialize_env): Parse OMP_TARGET_OFFLOAD.
6075 * libgomp.h (gomp_target_offload_t): New.
6076 (gomp_target_offload_var): New.
6077 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
6078 * target.c (resolve_device): Generate error if device not found and
6079 offloading is mandatory.
6080 (gomp_target_fallback): Generate error if offloading is mandatory.
6081 (GOMP_target): Add argument in call to gomp_target_fallback.
6082 (GOMP_target_ext): Likewise.
6083 (gomp_target_data_fallback): Generate error if offloading is mandatory.
6084 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
6085 (GOMP_target_data_ext): Likewise.
6086 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
6087 (gomp_target_init): Return early if offloading is disabled.
6088
6089 2020-10-15 Kwok Cheung Yeung <kcy@codesourcery.com>
6090
6091 * libgomp.texi (omp_get_max_active_levels): Modify description.
6092 (omp_get_supported_active_levels): Make descriptions consistent.
6093
6094 2020-10-14 Jakub Jelinek <jakub@redhat.com>
6095
6096 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
6097
6098 2020-10-13 Kwok Cheung Yeung <kcy@codesourcery.com>
6099
6100 * env.c (gomp_max_active_levels_var): Initialize to
6101 gomp_supported_active_levels.
6102 (initialize_env): Limit gomp_max_active_levels_var to be at most
6103 equal to gomp_supported_active_levels.
6104 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
6105 (omp_get_supported_active_levels_): New.
6106 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
6107 to at most equal to gomp_supported_active_levels.
6108 (omp_get_supported_active_levels): New.
6109 * libgomp.h (gomp_supported_active_levels): New.
6110 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
6111 omp_get_supported_active_levels_.
6112 * libgomp.texi (omp_get_supported_active_levels): New.
6113 (omp_set_max_active_levels): Update. Add reference to
6114 omp_get_supported_active_levels.
6115 * omp.h.in (omp_get_supported_active_levels): New.
6116 * omp_lib.f90.in (omp_get_supported_active_levels): New.
6117 * omp_lib.h.in (omp_get_supported_active_levels): New.
6118 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
6119 against omp_get_supported_active_levels.
6120 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
6121
6122 2020-10-11 Clement Chigot <clement.chigot@atos.net>
6123
6124 * config/t-aix: Delete and recreate libgomp before creating
6125 FAT library.
6126
6127 2020-10-08 Tom de Vries <tdevries@suse.de>
6128
6129 PR libgomp/81802
6130 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
6131 dimensions.
6132
6133 2020-10-06 Tom de Vries <tdevries@suse.de>
6134
6135 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
6136
6137 2020-10-06 Tom de Vries <tdevries@suse.de>
6138
6139 PR middle-end/90861
6140 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
6141
6142 2020-10-05 Tom de Vries <tdevries@suse.de>
6143
6144 PR fortran/95654
6145 * testsuite/libgomp.fortran/pr95654.f90: New test.
6146
6147 2020-10-02 Tobias Burnus <tobias@codesourcery.com>
6148
6149 * Makefile.in: Regenerate with automake 1.15.1.
6150 * aclocal.m4: Likewise.
6151 * configure: Likewise.
6152 * testsuite/Makefile.in: Likewise.
6153
6154 2020-09-30 Andrew Stubbs <ams@codesourcery.com>
6155
6156 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
6157 and amdgcn targets.
6158
6159 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
6160
6161 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
6162
6163 2020-09-29 Andrew Stubbs <ams@codesourcery.com>
6164
6165 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
6166 total number of threads is one.
6167 (gomp_team_barrier_wake): Likewise.
6168 (gomp_team_barrier_wait_end): Likewise.
6169 (gomp_team_barrier_wait_cancel_end): Likewise.
6170 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
6171 (gomp_team_barrier_wake): Likewise.
6172 (gomp_team_barrier_wait_end): Likewise.
6173 (gomp_team_barrier_wait_cancel_end): Likewise.
6174 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
6175
6176 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
6177
6178 PR middle-end/96390
6179 * testsuite/libgomp.c++/pr96390.C: New test.
6180 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
6181
6182 2020-09-27 Clement Chigot <clement.chigot@atos.net>
6183
6184 * config/t-aix: Use $(AR) without -X32_64.
6185
6186 2020-09-25 Jakub Jelinek <jakub@redhat.com>
6187
6188 * testsuite/libgomp.c/loop-25.c: New test.
6189
6190 2020-09-22 Tobias Burnus <tobias@codesourcery.com>
6191
6192 PR fortran/95654
6193 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
6194
6195 2020-09-22 Tom de Vries <tdevries@suse.de>
6196
6197 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
6198 fails.
6199
6200 2020-09-16 Nathan Sidwell <nathan@acm.org>
6201
6202 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
6203
6204 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
6205
6206 PR fortran/96668
6207 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
6208
6209 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
6210
6211 PR fortran/96668
6212 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
6213 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
6214 (gomp_map_vars_existing): Update call to it.
6215 (gomp_map_fields_existing): Likewise
6216 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
6217 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
6218 remapped.
6219 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
6220 GOMP_MAP_POINTER.
6221 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
6222 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
6223
6224 2020-09-14 Tom de Vries <tdevries@suse.de>
6225
6226 * config/nvptx/atomic.c: New file. Add
6227 __sync_val_compare_and_swap_16.
6228 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
6229 target offload_target_nvptx.
6230
6231 2020-09-08 Julian Brown <julian@codesourcery.com>
6232
6233 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
6234 iteration-ordering assumptions.
6235
6236 2020-09-08 Julian Brown <julian@codesourcery.com>
6237
6238 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
6239 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
6240
6241 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
6242
6243 * plugin/plugin-nvptx.c (nvptx_free):
6244 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
6245 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
6246 comments.
6247
6248 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
6249
6250 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
6251
6252 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
6253
6254 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
6255
6256 2020-08-13 Jakub Jelinek <jakub@redhat.com>
6257
6258 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
6259 * testsuite/libgomp.c/loop-23.c (main): Likewise.
6260 * testsuite/libgomp.c/loop-24.c: New test.
6261
6262 2020-08-08 Jakub Jelinek <jakub@redhat.com>
6263 Tobias Burnus <tobias@codesourcery.com>
6264
6265 PR fortran/93553
6266 * testsuite/libgomp.fortran/pr93553.f90: New test.
6267
6268 2020-08-05 Jakub Jelinek <jakub@redhat.com>
6269
6270 * testsuite/libgomp.c/loop-22.c: New test.
6271 * testsuite/libgomp.c/loop-23.c: New test.
6272
6273 2020-08-05 Jakub Jelinek <jakub@redhat.com>
6274
6275 PR middle-end/96459
6276 * testsuite/libgomp.c/teams-3.c: New test.
6277 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
6278 if not defined yet.
6279 (N(test)): Use it before all N(f*) calls.
6280 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
6281 (main): Don't call all test_* functions from within
6282 #pragma omp teams reduction(|:err), call them directly.
6283
6284 2020-08-04 Tom de Vries <tdevries@suse.de>
6285
6286 PR target/96428
6287 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
6288 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
6289
6290 2020-08-03 Julian Brown <julian@codesourcery.com>
6291 Thomas Schwinge <thomas@codesourcery.com>
6292
6293 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
6294 shared-memory devices. Extend with further checking.
6295
6296 2020-08-03 Martin Jambor <mjambor@suse.cz>
6297
6298 * plugin/Makefrag.am: Remove configuration of HSA plugin.
6299 * aclocal.m4: Regenerated.
6300 * Makefile.in: Regenerated.
6301 * config.h.in: Regenerated.
6302 * configure: Regenerated.
6303 * plugin/configfrag.ac: Likewise.
6304 * plugin/hsa_ext_finalize.h: Removed.
6305 * plugin/plugin-hsa.c: Likewise.
6306 * testsuite/Makefile.in: Regenerated.
6307 * testsuite/lib/libgomp.exp
6308 (offload_target_to_openacc_device_type): Remove hsa case.
6309 (check_effective_target_hsa_offloading_selected_nocache): Removed
6310 (check_effective_target_hsa_offloading_selected): Likewise.
6311 (libgomp_init): Do not add -Wno-hsa to additional_flags.
6312 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
6313 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
6314 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
6315 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
6316 * testsuite/libgomp.hsa.c/c.exp: Likewise.
6317 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
6318 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
6319 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
6320 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
6321 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
6322 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
6323 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
6324 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
6325 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
6326 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
6327 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
6328 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
6329 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
6330 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
6331 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
6332 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
6333 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
6334 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
6335 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
6336
6337 2020-07-27 Julian Brown <julian@codesourcery.com>
6338 Thomas Schwinge <thomas@codesourcery.com>
6339
6340 * libgomp.h (struct target_var_desc): Rename do_detach field to
6341 is_attach.
6342 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
6343 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
6344 (goacc_enter_data_internal): Don't affect reference counts
6345 for attach mappings.
6346 (goacc_exit_data_internal): Don't affect reference counts for detach
6347 mappings.
6348 * target.c (gomp_map_vars_existing): Don't affect reference counts for
6349 attach mappings.
6350 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
6351 mark attach mappings.
6352 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
6353 reference count for attach mappings.
6354 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
6355 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
6356 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
6357 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
6358 test as shouldfail.
6359 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
6360 gracefully in no-finalize mode.
6361 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
6362
6363 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
6364
6365 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
6366 use.
6367 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6368 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6369
6370 2020-07-23 Julian Brown <julian@codesourcery.com>
6371 Thomas Schwinge <thomas@codesourcery.com>
6372
6373 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
6374 finalization for detach operation.
6375 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
6376 New test.
6377
6378 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
6379
6380 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
6381 * libgomp_f.h.in (omp_check_defines): Check whether
6382 sizeof of determined Fortran kind and C typedef match.
6383 * omp_lib.f90.in: Add omp_depened_kind.
6384 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
6385 * configure: Regenerate.
6386 * Makefile.in: Regenerate.
6387 * testsuite/Makefile.in: Regenerate.
6388
6389 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
6390
6391 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
6392 gcc/testsuite/c-c++-common/gomp/.
6393 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
6394 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
6395 from gcc/testsuite/gfortran.dg/gomp/.
6396 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
6397
6398 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
6399
6400 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
6401 * omp_lib.h.in: Likewise.
6402
6403 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
6404
6405 PR target/95620
6406 * testsuite/libgomp.c/pr95620.c: New test.
6407
6408 2020-07-16 Julian Brown <julian@codesourcery.com>
6409 Thomas Schwinge <thomas@codesourcery.com>
6410
6411 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
6412 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
6413
6414 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
6415
6416 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
6417 avoid conversion on 32bit systems from 32bit to 64bit due
6418 to -fdefault-integer-8.
6419
6420 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
6421
6422 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
6423 variables; add character(kind=4) tests; update TODO comment.
6424
6425 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
6426
6427 * allocator.c: Add ialias for omp_init_allocator and
6428 omp_destroy_allocator.
6429 * configure.ac: Set INTPTR_T_KIND.
6430 * configure: Regenerate.
6431 * Makefile.in: Regenerate.
6432 * testsuite/Makefile.in: Regenerate.
6433 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
6434 omp_set_default_allocator_, omp_get_default_allocator_): New
6435 functions and ialias_redirect.
6436 * icv.c: Add ialias for omp_set_default_allocator and
6437 omp_get_default_allocator.
6438 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
6439 omp_destroy_allocator_, omp_set_default_allocator_ and
6440 omp_get_default_allocator_.
6441 * omp_lib.f90.in: Add allocator traits parameters, declare
6442 allocator routines and add related kind parameters.
6443 * omp_lib.h.in: Likewise.
6444 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
6445 * testsuite/libgomp.fortran/alloc-1.F90: New test.
6446 * testsuite/libgomp.fortran/alloc-2.F90: New test.
6447 * testsuite/libgomp.fortran/alloc-3.F: New test.
6448 * testsuite/libgomp.fortran/alloc-4.f90: New test.
6449 * testsuite/libgomp.fortran/alloc-5.f90: New test.
6450
6451 2020-07-14 Tom de Vries <tom@codesourcery.com>
6452 Cesar Philippidis <cesar@codesourcery.com>
6453 Thomas Schwinge <thomas@codesourcery.com>
6454 Kwok Cheung Yeung <kcy@codesourcery.com>
6455
6456 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
6457 New variable.
6458 (acc_init_1): Set acc_init_thread to pthread_self (). Set
6459 acc_init_state to initializing at the start, and to initialized at the
6460 end.
6461 (self_initializing_p): New function.
6462 (acc_get_device_type): Return acc_device_none if called by thread that
6463 is currently executing acc_init_1.
6464 * libgomp.texi (acc_get_device_type): Update documentation.
6465 (Implementation Status and Implementation-Defined Behavior): Likewise.
6466 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
6467
6468 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
6469
6470 * config/t-aix: Set BITS from compiler cpp macro.
6471
6472 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
6473
6474 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
6475
6476 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
6477
6478 PR fortran/67311
6479 * testsuite/libgomp.fortran/target-map-1.f90: New test.
6480
6481 2020-07-14 Jakub Jelinek <jakub@redhat.com>
6482
6483 * testsuite/libgomp.c/loop-21.c: New test.
6484
6485 2020-07-13 Julian Brown <julian@codesourcery.com>
6486 Thomas Schwinge <thomas@codesourcery.com>
6487
6488 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
6489
6490 2020-07-10 Julian Brown <julian@codesourcery.com>
6491 Thomas Schwinge <thomas@codesourcery.com>
6492
6493 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
6494 dynamic_refcount.
6495 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
6496 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
6497 dynamic_refcount.
6498 (acc_unmap_data): Update comment.
6499 (goacc_map_var_existing, goacc_enter_datum): Adjust for
6500 dynamic_refcount semantics.
6501 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
6502 Adjust for dynamic_refcount semantics.
6503 (goacc_enter_data_internal): Implement "present" case of dynamic
6504 memory-map handling here. Update "non-present" case for
6505 dynamic_refcount semantics.
6506 (goacc_exit_data_internal): Use goacc_exit_datum_1.
6507 * target.c (gomp_map_vars_internal): Remove
6508 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
6509 handling.
6510 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
6511 (gomp_load_image_to_device): Substitute dynamic_refcount for
6512 virtual_refcount.
6513 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
6514 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
6515 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
6516 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
6517 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
6518 trace output.
6519 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
6520 trace output.
6521 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
6522 test.
6523 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
6524 Remove stale comment.
6525 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
6526 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
6527 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6528 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6529 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6530 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
6531
6532 2020-07-10 Julian Brown <julian@codesourcery.com>
6533 Thomas Schwinge <thomas@codesourcery.com>
6534
6535 * oacc-mem.c (goacc_map_var_existing): New function.
6536 (goacc_enter_datum): Use above function.
6537 (goacc_exit_datum_1): New function.
6538 (goacc_exit_datum): Use above function.
6539
6540 2020-07-09 Julian Brown <julian@codesourcery.com>
6541 Thomas Schwinge <thomas@codesourcery.com>
6542
6543 PR middle-end/95270
6544 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
6545 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
6546
6547 2020-07-09 Julian Brown <julian@codesourcery.com>
6548
6549 * oacc-mem.c (find_group_last): Group data-movement clauses
6550 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
6551 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
6552
6553 2020-07-09 Jakub Jelinek <jakub@redhat.com>
6554
6555 * testsuite/libgomp.c/loop-19.c: New test.
6556 * testsuite/libgomp.c/loop-20.c: New test.
6557
6558 2020-07-09 Jakub Jelinek <jakub@redhat.com>
6559
6560 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
6561 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
6562 it. Remove __omp_alloctrait_value_max__.
6563 * allocator.c (omp_init_allocator): Handle omp_atv_default for
6564 omp_atk_alignment and omp_atk_pool_size.
6565
6566 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
6567
6568 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
6569 behavior for 'GOMP_MAP_FORCE_FROM'.
6570 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
6571
6572 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
6573
6574 * oacc-mem.c (goacc_exit_data_internal): Remove
6575 'GOMP_MAP_ALWAYS_FROM' handling.
6576
6577 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
6578
6579 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
6580 'scan-assembler' with 'scan-offload-rtl'.
6581 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
6582 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
6583 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
6584 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
6585
6586 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
6587
6588 * target.c (gomp_map_vars_existing): Assert 'kind !=
6589 GOMP_MAP_ATTACH'.
6590 (gomp_map_vars_internal): Clean up.
6591
6592 2020-06-27 Jakub Jelinek <jakub@redhat.com>
6593
6594 * testsuite/libgomp.c/loop-17.c: New test.
6595 * testsuite/libgomp.c/loop-18.c: New test.
6596
6597 2020-06-26 Marek Polacek <polacek@redhat.com>
6598
6599 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
6600
6601 2020-06-23 Alexandre Oliva <oliva@adacore.com>
6602
6603 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
6604 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
6605
6606 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
6607
6608 * Makefile.am: Use -include.
6609 * Makefile.in: Regenerate.
6610
6611 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
6612
6613 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
6614 * Makefile.in: Regenerate
6615 * configure.ac (tmake_file): Substitute.
6616 * configure: Regenerate.
6617 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
6618 * config/t-aix: New file.
6619
6620 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
6621
6622 PR lto/94848
6623 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
6624 'dg-do run'.
6625
6626 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
6627
6628 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
6629 variant for HSA_RUNTIME_LIB name.
6630 (find_executable_symbol_1): Delete.
6631 (find_executable_symbol): Delete.
6632 (init_kernel_properties): Add ".kd" suffix to symbol names.
6633 (find_load_offset): Delete.
6634 (create_and_finalize_hsa_program): Remove relocation handling.
6635
6636 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
6637
6638 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
6639
6640 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
6641
6642 PR lto/94848
6643 PR middle-end/95551
6644 * testsuite/libgomp.fortran/target-var.f90: New test.
6645
6646 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
6647 Julian Brown <julian@codesourcery.com>
6648
6649 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
6650 special handling.
6651
6652 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
6653 Julian Brown <julian@codesourcery.com>
6654
6655 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6656 Simplify.
6657
6658 2020-06-05 Julian Brown <julian@codesourcery.com>
6659
6660 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
6661 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
6662
6663 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6664
6665 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6666 Evaluate 'copyfrom' individually for each entry.
6667 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
6668
6669 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6670
6671 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6672 Evaluate 'finalize' individually for each entry.
6673 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
6674 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
6675 file.
6676
6677 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6678
6679 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
6680 usage.
6681 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
6682
6683 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6684 Julian Brown <julian@codesourcery.com>
6685
6686 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
6687 checking.
6688 (acc_unmap_data, goacc_exit_data_internal): Restore
6689 'is_tgt_unmapped' checking.
6690 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
6691 file.
6692 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
6693 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
6694 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6695 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6696 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6697 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
6698
6699 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6700 Julian Brown <julian@codesourcery.com>
6701
6702 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
6703
6704 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6705
6706 PR libgomp/92854
6707 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
6708
6709 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6710
6711 PR libgomp/92854
6712 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
6713 more.
6714
6715 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6716 Julian Brown <julian@codesourcery.com>
6717
6718 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
6719 'gomp_map_vars'.
6720 (acc_map_data): Clean up accordingly.
6721
6722 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6723
6724 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
6725 of over-eager 'finalize' clause.
6726 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
6727 file.
6728 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
6729 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
6730 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6731 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6732 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6733 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
6734 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
6735 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
6736
6737 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6738
6739 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
6740
6741 2020-06-04 Julian Brown <julian@codesourcery.com>
6742
6743 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
6744 error path.
6745 (goacc_detach_internal): Likewise.
6746
6747 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6748
6749 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
6750 the checkpoint.
6751 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
6752 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
6753 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
6754 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
6755 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
6756
6757 2020-06-02 Jakub Jelinek <jakub@redhat.com>
6758
6759 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
6760 defined.
6761
6762 2020-05-30 Jakub Jelinek <jakub@redhat.com>
6763
6764 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
6765
6766 2020-05-30 Jakub Jelinek <jakub@redhat.com>
6767
6768 * allocator.c (omp_alloc): For size == 0, return NULL early.
6769
6770 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
6771
6772 PR bootstrap/95413
6773 * configure: Regenerated.
6774
6775 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
6776
6777 PR libfortran/95191
6778 * testsuite/libgomp.fortran/async_io_9.f90: New test.
6779
6780 2020-05-19 Jakub Jelinek <jakub@redhat.com>
6781
6782 * omp.h.in (omp_uintptr_t): New typedef.
6783 (__GOMP_UINTPTR_T_ENUM): Define.
6784 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
6785 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
6786 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
6787 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
6788 omp_get_default_allocator, omp_alloc, omp_free): Declare.
6789 * libgomp.h (struct gomp_team_state): Add def_allocator field.
6790 (gomp_def_allocator): Declare.
6791 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
6792 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
6793 omp_alloc and omp_free.
6794 * team.c (gomp_team_start): Copy over ts.def_allocator.
6795 * env.c (gomp_def_allocator): New variable.
6796 (parse_wait_policy): Adjust function comment.
6797 (parse_allocator): New function.
6798 (handle_omp_display_env): Print OMP_ALLOCATOR.
6799 (initialize_env): Call parse_allocator.
6800 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
6801 * allocator.c: New file.
6802 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
6803 functions.
6804 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
6805 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
6806 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
6807 * Makefile.in: Regenerated.
6808
6809 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
6810
6811 PR bootstrap/95147
6812 * configure: Regenerated.
6813
6814 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
6815
6816 PR libfortran/95119
6817 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
6818
6819 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
6820
6821 * configure: Regenerated.
6822
6823 2020-05-14 Jakub Jelinek <jakub@redhat.com>
6824
6825 * testsuite/libgomp.c-c++-common/target-40.c: New test.
6826
6827 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
6828
6829 PR fortran/94690
6830 * testsuite/libgomp.fortran/pr66199-3.f90: New.
6831 * testsuite/libgomp.fortran/pr66199-4.f90: New.
6832 * testsuite/libgomp.fortran/pr66199-5.f90: New.
6833 * testsuite/libgomp.fortran/pr66199-6.f90: New.
6834 * testsuite/libgomp.fortran/pr66199-7.f90: New.
6835 * testsuite/libgomp.fortran/pr66199-8.f90: New.
6836 * testsuite/libgomp.fortran/pr66199-9.f90: New.
6837
6838 2020-05-12 Jakub Jelinek <jakub@redhat.com>
6839
6840 * testsuite/libgomp.c/target-39.c: New test.
6841
6842 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
6843
6844 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
6845 * openacc.f90 (acc_device_current): Likewise.
6846 * openacc.h (acc_device_current): Likewise.
6847 * openacc_lib.h (acc_device_current): Likewise.
6848
6849 PR target/94282
6850 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
6851 'dg-allow-blank-lines-in-output'.
6852
6853 * oacc-init.c (get_openacc_name): Handle 'gcn'.
6854 * testsuite/lib/libgomp.exp
6855 (offload_target_to_openacc_device_type) [amdgcn*]: Return
6856 'radeon'. Adjust all users.
6857 (check_effective_target_openacc_amdgcn_accel_present): Rename
6858 to...
6859 (check_effective_target_openacc_radeon_accel_present): ... this.
6860 Adjust all users.
6861 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
6862 (check_effective_target_openacc_radeon_accel_selected): ... this.
6863 Adjust all users.
6864
6865 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
6866 'dg-do run'.
6867
6868 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
6869
6870 PR other/94629
6871
6872 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
6873 hsa_iterate_agents.
6874 (GOMP_OFFLOAD_init_device): Check return values from both calls to
6875 hsa_agent_iterate_regions.
6876
6877 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
6878
6879 PR middle-end/94635
6880 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
6881 run'.
6882
6883 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
6884
6885 PR middle-end/94120
6886 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
6887 test case.
6888
6889 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
6890
6891 PR middle-end/94635
6892 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
6893
6894 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
6895
6896 PR libgomp/92843
6897 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
6898 Rename to...
6899 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
6900 ... this.
6901 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
6902 Rename to...
6903 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
6904 ... this.
6905 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
6906 Rename to...
6907 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
6908 ... this.
6909 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
6910 Rename to...
6911 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
6912 ... this.
6913 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
6914 Rename to...
6915 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
6916 ... this.
6917 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
6918 Rename to...
6919 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
6920 ... this.
6921 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
6922 Rename to...
6923 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
6924 ... this.
6925 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
6926 Rename to...
6927 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
6928 ... this.
6929 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
6930 Rename to...
6931 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
6932 ... this.
6933 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
6934 Rename to...
6935 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
6936 ... this.
6937 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
6938 Rename to...
6939 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
6940 ... this.
6941 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
6942 Rename to...
6943 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
6944 ... this.
6945 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
6946 Rename to...
6947 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
6948 ... this.
6949 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
6950 Rename to...
6951 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
6952 ... this.
6953 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
6954 Rename to...
6955 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
6956 ... this.
6957 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
6958 Rename to...
6959 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
6960 ... this.
6961
6962 2020-04-10 Julian Brown <julian@codesourcery.com>
6963 Thomas Schwinge <thomas@codesourcery.com>
6964
6965 PR libgomp/92843
6966 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
6967 New file.
6968 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
6969 Likewise.
6970 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
6971 Likewise.
6972 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
6973 Likewise.
6974 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
6975 Likewise.
6976 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
6977 Likewise.
6978 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
6979 Likewise.
6980 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
6981 Likewise.
6982 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
6983 Likewise.
6984 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
6985 Likewise.
6986 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
6987 Likewise.
6988 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
6989 Likewise.
6990 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
6991 Likewise.
6992 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
6993 Likewise.
6994 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
6995 Likewise.
6996 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
6997 Likewise.
6998
6999 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
7000
7001 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
7002 run'.
7003
7004 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
7005
7006 PR middle-end/94120
7007 * libgomp.oacc-c++/declare-pr94120.C: New.
7008
7009 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
7010
7011 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
7012 files.
7013 * configure: Regenerate.
7014 * testsuite/libgomp-site-extra.exp.in: New file.
7015 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
7016 variable.
7017 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
7018 variable.
7019 * testsuite/Makefile.in: Regenerate.
7020
7021 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
7022
7023 PR tree-optimization/89713
7024 PR c/94392
7025 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
7026 'bar.sync'.
7027 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
7028
7029 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
7030
7031 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
7032 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
7033
7034 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
7035
7036 PR libgomp/81689
7037 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
7038
7039 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
7040
7041 PR libgomp/94251
7042 * target.c (gomp_load_image_to_device): Fix link
7043 variable handling.
7044
7045 2020-03-19 Jakub Jelinek <jakub@redhat.com>
7046
7047 PR c++/93931
7048 * testsuite/libgomp.c++/pr93931.C: New test.
7049
7050 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
7051
7052 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
7053 dg-allow-blank-lines-in-output.
7054
7055 2020-03-18 Julian Brown <julian@codesourcery.com>
7056 Tobias Burnus <tobias@codesourcery.com>
7057
7058 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
7059 it work concurrently.
7060
7061 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
7062
7063 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
7064 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
7065 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
7066
7067 2020-03-14 Jakub Jelinek <jakub@redhat.com>
7068
7069 PR middle-end/93566
7070 * testsuite/libgomp.c/pr93566.c: New test.
7071
7072 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
7073
7074 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
7075 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
7076 integer(acc_device_property) for the type of the return value of
7077 acc_get_property.
7078
7079 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
7080
7081 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
7082 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
7083 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
7084 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
7085 (acc_set_device_num): Fix Fortran argument name, use same name for C.
7086 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
7087 corrections; add note about the previous interface and named constant.
7088 (OpenACC library and environment variables): Fix two typos.
7089 * openacc.f90: Use for all procedures the argument names from the spec
7090 as for …_h they are user visible.
7091 (openacc_kinds): Rename acc_device_property to
7092 acc_device_property_kinds and change value to int32 ; and update users.
7093 Re-add acc_device_property for for backward compatibility.
7094 (acc_get_property_string_h): Clean up as acc_device_property_kind
7095 changed.
7096 (acc_get_property_h): Likewise and return c_size_t instead of
7097 acc_device_property.
7098 (openacc): Also export acc_device_property_kinds.
7099 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
7100 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
7101 handling; check against /= 0 instead of == 1 to match C.
7102 * openacc_lib.h: Use for all procedures the argument names from the spec
7103 as for …_h they are user visible. Place !GCC$ into the first column to
7104 be active also for fixed-form souce form.
7105 (acc_device_current, acc_device_property_kind, acc_device_property,
7106 acc_property_memory, acc_property_free_memory, acc_property_name,
7107 acc_property_vendor, acc_property_driver): New named constants.
7108 (acc_get_property, acc_get_property_string): New generic interface.
7109
7110 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
7111
7112 PR libgomp/93481
7113 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
7114 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
7115 optional.
7116 (gomp_target_task_fn): Assert "devicep->async_run_func".
7117 (clear_unsupported_flags): New function to remove unsupported flags
7118 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
7119 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
7120 * testsuite/libgomp.c/target-33.c:
7121 Remove xfail for offload_target_nvptx.
7122 * testsuite/libgomp.c/target-34.c: Likewise.
7123
7124 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
7125
7126 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
7127 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
7128 * testsuite/libgomp.c/target-34.c: Likewise.
7129 * testsuite/libgomp.c/target-link-1.c: Add xfail for
7130 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
7131
7132 2020-02-09 Jakub Jelinek <jakub@redhat.com>
7133
7134 * testsuite/libgomp.c/target-38.c: New test.
7135
7136 2020-02-06 Jakub Jelinek <jakub@redhat.com>
7137
7138 PR libgomp/93515
7139 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
7140
7141 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
7142
7143 * testsuite/lib/libgomp.exp
7144 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
7145 and not as 'source' argument to libgomp_target_compile.
7146
7147 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
7148
7149 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
7150 (gcn_gfx801_s): Remove.
7151 (isa_hsa_name): Remove gfx801.
7152 (isa_gcc_name): Remove gfx801/carizzo.
7153 (isa_code): Remove gfx801.
7154
7155 2020-02-03 Julian Brown <julian@codesourcery.com>
7156 Tobias Burnus <tobias@codesourcery.com>
7157
7158 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
7159 and *_finalize variants; document acc_attach and acc_detach; update
7160 references from OpenACC 2.0 to 2.6.
7161 * openacc.f90 (openacc_version): Update to 201711.
7162 * openacc_lib.h (openacc_version): Update to 201711.
7163 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
7164 openacc_version to 201711.
7165 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7166
7167 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
7168
7169 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
7170 and vgpr_count fields.
7171 (struct kernel_info): Add a field for a hsa_kernel_description.
7172 (run_kernel): Reduce the number of threads/workers if the requested
7173 number would require too many VGPRs.
7174 (init_basic_kernel_info): Initialize description field with
7175 the hsa_kernel_description entry for the kernel.
7176
7177 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
7178
7179 PR bootstrap/93409
7180 * plugin/configfrag.ac (enable_offload_targets): Skip
7181 HSA and GCN plugin besides -m32 also for -mx32.
7182 * configure: Regenerate.
7183
7184 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
7185
7186 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
7187
7188 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
7189
7190 * plugin-gcn.c (struct agent_info): Add fields "name" and
7191 "vendor_name" ...
7192 (GOMP_OFFLOAD_init_device): ... and init from here.
7193 (struct hsa_context_info): Add field "driver_version_s" ...
7194 (init_hsa_contest): ... and init from here.
7195 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
7196 implementation.
7197 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7198 Enable test execution for amdgcn and host offloading targets.
7199 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
7200 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7201 (expect_device_properties): Split function into ...
7202 (expect_device_string_properties): ... this new function ...
7203 (expect_device_memory): ... and this new function.
7204 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
7205 Add test.
7206
7207 2020-01-28 Julian Brown <julian@codesourcery.com>
7208
7209 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
7210 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
7211 component/non-component variable refs in a single directive.
7212 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
7213
7214 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
7215
7216 * configure.ac: Handle `--with-toolexeclibdir='.
7217 * Makefile.in: Regenerate.
7218 * aclocal.m4: Regenerate.
7219 * configure: Regenerate.
7220 * testsuite/Makefile.in: Regenerate.
7221
7222 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
7223
7224 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7225 (expect_device_properties): Remove "expected_free_mem" argument,
7226 change "expected_total_mem" argument type to size_t;
7227 change types of acc_get_property results to size_t,
7228 adapt format strings.
7229 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7230 Use %zu instead of %zd to print size_t values.
7231 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
7232 rename to ...
7233 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
7234 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
7235 rename to ...
7236 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
7237
7238 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
7239
7240 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
7241 the device id.
7242
7243 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
7244
7245 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
7246 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
7247 Adjust test dimensions for amdgcn.
7248 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
7249 gang/worker/vector expectations dynamically.
7250 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
7251 (main): Likewise.
7252 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
7253 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
7254 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
7255 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
7256 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
7257 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
7258 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
7259 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
7260 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
7261 (acc_gang): Recognise acc_device_radeon.
7262 (acc_worker): Likewise.
7263 (acc_vector): Likewise.
7264 (main): Set expectations for amdgcn.
7265 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
7266 (main): Adjust gang/worker/vector expectations dynamically.
7267 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
7268 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
7269 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
7270 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
7271 for amdgcn.
7272
7273 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
7274
7275 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
7276 acc_device_radeon.
7277 (openacc): Likewise.
7278 * openacc.f90 (openacc_kinds): Likewise.
7279 (openacc): Likewise.
7280 * openacc.h (acc_device_t): Likewise.
7281 * openacc_lib.h: Likewise.
7282 * testsuite/lib/libgomp.exp
7283 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
7284 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
7285 (cb_compute_construct_end): Likewise.
7286 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
7287 (cb_enqueue_launch_start): Likewise.
7288 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
7289 (cb_enter_data_end): Likewise.
7290 (cb_exit_data_start): Likewise.
7291 (cb_exit_data_end): Likewise.
7292 (cb_compute_construct_end): Likewise.
7293 (cb_enqueue_launch_start): Likewise.
7294 (cb_enqueue_launch_end): Likewise.
7295 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
7296 (main): Likewise.
7297
7298 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
7299
7300 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
7301 to use this instead of 'enum gomp_device_property'.
7302 (GOMP_OFFLOAD_get_property): Rename to...
7303 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
7304 * libgomp.h (struct gomp_device_descr): Move
7305 'GOMP_OFFLOAD_openacc_get_property'...
7306 (struct acc_dispatch_t): ... here. Adjust all users.
7307 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
7308
7309 * target.c (gomp_map_vars_internal)
7310 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
7311 paths.
7312
7313 2020-01-10 Jakub Jelinek <jakub@redhat.com>
7314
7315 PR libgomp/93219
7316 * libgomp.h (gomp_print_string): Change return type from void to int.
7317 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
7318 not all characters have been written.
7319
7320 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
7321
7322 * libgomp.texi: Fix typos, use https.
7323
7324 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
7325
7326 * testsuite/libgomp.fortran/optional-map.f90: Add test for
7327 unallocated/disassociated actual arguments to nonallocatable/nonpointer
7328 dummy arguments; those are/shall be regarded as absent arguments.
7329 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
7330 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
7331
7332 2020-01-01 Jakub Jelinek <jakub@redhat.com>
7333
7334 Update copyright years.
7335
7336 * libgomp.texi: Bump @copying's copyright year.
7337
7338 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
7339
7340 PR libgomp/93065
7341 * oacc-init.c (goacc_runtime_deinitialize): New function.
7342
7343 2019-12-28 Jakub Jelinek <jakub@redhat.com>
7344
7345 PR bootstrap/93074
7346 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
7347 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
7348
7349 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
7350 Frederik Harwath <frederik@codesourcery.com>
7351 Thomas Schwinge <tschwinge@codesourcery.com>
7352
7353 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
7354 * libgomp-plugin.h (gomp_device_property_value): New union.
7355 (gomp_device_property_value): New prototype.
7356 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
7357 constant.
7358 (acc_device_property_t): New enum.
7359 (acc_get_property, acc_get_property_string): New prototypes.
7360 * oacc-init.c (acc_get_device_type): Also assert that result
7361 is not `acc_device_current'.
7362 (get_property_any, acc_get_property, acc_get_property_string):
7363 New functions.
7364 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
7365 `acc_property_memory', `acc_property_free_memory',
7366 `acc_property_name', `acc_property_vendor' and
7367 `acc_property_driver' constants. Add `acc_device_property' data
7368 type.
7369 (openacc_internal): Add `acc_get_property' and
7370 `acc_get_property_string' interfaces. Add `acc_get_property_h',
7371 `acc_get_property_string_h', `acc_get_property_l' and
7372 `acc_get_property_string_l'.
7373 * oacc-host.c (host_get_property): New function.
7374 (host_dispatch): Wire it.
7375 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
7376 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
7377 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
7378 * libgomp.texi (OpenACC Runtime Library Routines): Add
7379 `acc_get_property'.
7380 (acc_get_property): New node.
7381 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
7382 function (stub).
7383 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
7384 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
7385 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
7386 calls.
7387 (GOMP_OFFLOAD_get_property): New function.
7388 (struct ptx_device): Add new field "name".
7389 (cuda_driver_version_s): Add new static variable ...
7390 (nvptx_init): ... and init from here.
7391
7392 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
7393 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
7394 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
7395 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
7396 with test helper functions.
7397
7398 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
7399
7400 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
7401
7402 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
7403 variable.
7404
7405 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
7406
7407 * target.c (gomp_map_vars_internal): Restore 'omp declare target
7408 link' handling.
7409
7410 2019-12-19 Julian Brown <julian@codesourcery.com>
7411
7412 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
7413 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
7414 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
7415
7416 2019-12-19 Julian Brown <julian@codesourcery.com>
7417 Cesar Philippidis <cesar@codesourcery.com>
7418
7419 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
7420 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
7421 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
7422 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
7423 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
7424 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
7425 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
7426 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
7427 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
7428 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
7429 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
7430 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
7431 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
7432
7433 2019-12-19 Julian Brown <julian@codesourcery.com>
7434
7435 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
7436 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
7437 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
7438 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
7439 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
7440 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
7441 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
7442 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
7443 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
7444 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
7445 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
7446 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
7447
7448 2019-12-19 Julian Brown <julian@codesourcery.com>
7449
7450 * libgomp.h (struct target_var_desc): Add do_detach flag.
7451 * oacc-init.c (acc_shutdown_1): Free aux block if present.
7452 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
7453 struct components. Tidy up and add some new checks.
7454 (goacc_enter_data_internal): Update call to find_group_last.
7455 (goacc_exit_data_internal): Support detach operations and
7456 GOMP_MAP_STRUCT.
7457 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
7458 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
7459 attach/detach in enter/exit data detection code.
7460 * target.c (gomp_map_vars_existing): Initialise do_detach field of
7461 tgt_var_desc.
7462 (gomp_map_vars_internal): Support attach.
7463 (gomp_unmap_vars_internal): Support detach.
7464
7465 2019-12-19 Julian Brown <julian@codesourcery.com>
7466 Thomas Schwinge <thomas@codesourcery.com>
7467
7468 * libgomp.h (struct splay_tree_aux): Add attach_count field.
7469 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
7470 * libgomp.map (OACC_2.6): New section. Add acc_attach,
7471 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
7472 acc_detach_finalize_async.
7473 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
7474 acc_detach, acc_detach_async, acc_detach_finalize,
7475 acc_detach_finalize_async): New functions.
7476 * openacc.h (acc_attach, acc_attach_async, acc_detach,
7477 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
7478 prototypes.
7479 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
7480 (gomp_remove_var_internal): Free attachment counts if present.
7481 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
7482 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
7483
7484 2019-12-19 Julian Brown <julian@codesourcery.com>
7485 Cesar Philippidis <cesar@codesourcery.com>
7486
7487 * libgomp.h (gomp_map_val): Add prototype.
7488 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
7489 open-coding device-address calculation.
7490 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
7491 non-present case.
7492
7493 2019-12-19 Julian Brown <julian@codesourcery.com>
7494
7495 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
7496 field for virtual_refcount.
7497 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
7498 (gomp_free_memmap): Remove prototype.
7499 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
7500 instead of calling gomp_free_memmap.
7501 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
7502 dynamic_refcount.
7503 (acc_unmap_data): Open code instead of forcing target_mem_desc's
7504 to_free field to NULL then calling gomp_unmap_vars. Handle
7505 REFCOUNT_INFINITY on target blocks.
7506 (goacc_enter_data): Rename to...
7507 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
7508 handling for mapping groups. Use virtual_refcount instead of
7509 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
7510 map_map_vars_async call. Re-do lookup for target pointer return value.
7511 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
7512 renamed goacc_enter_datum function.
7513 (goacc_exit_data): Rename to...
7514 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
7515 (acc_delete, acc_delete_async, acc_delete_finalize,
7516 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
7517 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
7518 goacc_exit_datum function.
7519 (gomp_acc_remove_pointer, find_pointer): Remove functions.
7520 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
7521 New functions.
7522 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
7523 goacc_exit_data_internal helper functions.
7524 * target.c (gomp_map_vars_internal): Handle
7525 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
7526 semantics.
7527 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
7528 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
7529 virtual_refcount field instead of dynamic_refcount.
7530 (gomp_free_memmap): Remove function.
7531 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
7532 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
7533 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
7534
7535 2019-12-19 Julian Brown <julian@codesourcery.com>
7536 Thomas Schwinge <thomas@codesourcery.com>
7537
7538 * libgomp.h (struct splay_tree_aux): New.
7539 (struct splay_tree_key_s): Replace link_key field with aux pointer.
7540 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
7541 to aux struct.
7542 (gomp_remove_var_internal): Free aux block if present.
7543 (gomp_load_image_to_device): Zero-initialise aux field instead of
7544 link_key field.
7545 (omp_target_associate_pointer): Zero-initialise aux field.
7546
7547 2019-12-18 Jakub Jelinek <jakub@redhat.com>
7548
7549 PR middle-end/86416
7550 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
7551 q or none.
7552 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
7553 L or none.
7554
7555 2019-12-19 Julian Brown <julian@codesourcery.com>
7556 Maciej W. Rozycki <macro@codesourcery.com>
7557 Tobias Burnus <tobias@codesourcery.com>
7558 Thomas Schwinge <thomas@codesourcery.com>
7559
7560 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
7561 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
7562 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
7563 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
7564 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
7565 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
7566 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
7567 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
7568 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
7569
7570 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
7571
7572 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
7573 called...
7574 (goacc_insert_pointer): ... from here, "present" case.
7575 (goacc_insert_pointer): Inline function into...
7576 (GOACC_enter_exit_data): ... here, and simplify.
7577
7578 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
7579 called...
7580 (goacc_insert_pointer): ... from here, "not present" case.
7581
7582 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
7583 all users.
7584
7585 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
7586 'goacc_enter_data', 'goacc_exit_data'.
7587
7588 * oacc-mem.c (delete_copyout): Refactor into...
7589 (goacc_exit_data): ... this. Adjust all users.
7590
7591 * oacc-mem.c (present_create_copy): Refactor into...
7592 (goacc_enter_data): ... this. Adjust all users.
7593
7594 * target.c (gomp_unmap_vars_internal): Add a safeguard to
7595 'gomp_remove_var'.
7596
7597 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
7598 like 'GOMP_MAP_FROM'.
7599
7600 PR libgomp/92726
7601 PR libgomp/92970
7602 PR libgomp/92984
7603 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
7604 fails.
7605 (GOACC_enter_exit_data): Simplify accordingly.
7606 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
7607 subsuming...
7608 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
7609 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
7610 file.
7611 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
7612 subsuming...
7613 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
7614 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
7615 file.
7616 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
7617 subsuming...
7618 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
7619
7620 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
7621 'finalize' handling.
7622
7623 PR libgomp/92848
7624 * oacc-mem.c (acc_map_data, present_create_copy)
7625 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
7626 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
7627 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
7628 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
7629 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
7630 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
7631 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
7632 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
7633 Remove "XFAIL"s.
7634
7635 * target.c (gomp_unmap_tgt): Make it 'static'.
7636 * libgomp.h (gomp_unmap_tgt): Remove.
7637
7638 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
7639
7640 PR middle-end/86416
7641 * testsuite/libgomp.c/pr86416-1.c: New.
7642 * testsuite/libgomp.c/pr86416-2.c: New.
7643
7644 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
7645
7646 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
7647 all symbols as public except for the 'use …, only' imported symbol,
7648 which is private.
7649 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
7650 all symbols from module openacc_kinds as PUBLIC
7651 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
7652 fix comment typo.
7653 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
7654
7655 2019-12-13 Julian Brown <julian@codesourcery.com>
7656
7657 PR libgomp/92881
7658
7659 * libgomp.h (gomp_remove_var_async): Add prototype.
7660 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
7661 gomp_remove_var.
7662 * target.c (gomp_unref_tgt): Change return type to bool, indicating
7663 whether target_mem_desc was unmapped.
7664 (gomp_unref_tgt_void): New.
7665 (gomp_remove_var): Reimplement in terms of...
7666 (gomp_remove_var_internal): ...this new helper function.
7667 (gomp_remove_var_async): New, implemented using above helper function.
7668 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
7669 gomp_unref_tgt.
7670
7671 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
7672
7673 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
7674 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
7675 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
7676 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
7677 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
7678 Likewise.
7679 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
7680 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
7681
7682 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
7683
7684 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
7685 as public except for the 'use …, only' imported symbol, which is
7686 private.
7687 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
7688 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
7689 attributes for acc_copyout_finalize and acc_delete_finalize.
7690
7691 2019-12-11 Jakub Jelinek <jakub@redhat.com>
7692
7693 PR fortran/92899
7694 * testsuite/libgomp.fortran/atomic1.f90: New test.
7695
7696 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
7697
7698 PR libgomp/92843
7699 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
7700 reference counting for structured 'REFCOUNT_INFINITY'. Add some
7701 assertions.
7702 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
7703 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
7704 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
7705 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
7706 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
7707
7708 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
7709 * oacc-mem.c: ... here.
7710 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
7711 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
7712 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
7713 Remove.
7714 * libgomp_g.h: Update.
7715
7716 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
7717 * oacc-async.c: ... here.
7718 * oacc-int.h (goacc_wait): Declare.
7719 * libgomp_g.h: Update
7720
7721 PR libgomp/92854
7722 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
7723 New file.
7724 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
7725 Likewise.
7726 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
7727 Likewise.
7728 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
7729 Likewise.
7730 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
7731 Likewise.
7732 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
7733 Likewise.
7734
7735 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
7736 Julian Brown <julian@codesourcery.com>
7737
7738 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
7739 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
7740
7741 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
7742
7743 * omp_lib.h.in: Fix spelling of function declaration
7744 omp_get_cancell(l)ation.
7745 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
7746 Fix typos.
7747 * env.c: Fix comment typos.
7748 * oacc-host.c: Likewise.
7749 * ordered.c: Likewise.
7750 * task.c: Likewise.
7751 * team.c: Likewise.
7752 * config/gcn/task.c: Likewise.
7753 * config/gcn/team.c: Likewise.
7754 * config/nvptx/task.c: Likewise.
7755 * config/nvptx/team.c: Likewise.
7756 * plugin/plugin-gcn.c: Likewise.
7757 * testsuite/libgomp.fortran/jacobi.f: Likewise.
7758 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
7759 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
7760
7761 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
7762
7763 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
7764 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
7765 unnecessary 'dg-additional-options "-w"'.
7766
7767 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
7768 Julian Brown <julian@codesourcery.com>
7769
7770 PR libgomp/92116
7771 PR libgomp/92877
7772
7773 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
7774 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
7775 Adjust all users.
7776 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
7777 Remove XFAIL.
7778 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
7779 Likewise.
7780 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
7781
7782 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
7783
7784 PR libgomp/92503
7785 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
7786 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
7787 file.
7788 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
7789 Likewise.
7790 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
7791 Likewise.
7792 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
7793 Likewise.
7794 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
7795 Likewise.
7796 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
7797 Likewise.
7798 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
7799 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
7800 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
7801 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
7802 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
7803 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
7804 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
7805 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7806 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
7807 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
7808
7809 PR libgomp/92840
7810 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
7811 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
7812 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
7813 New file.
7814 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
7815 Likewise.
7816 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
7817 Likewise.
7818 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
7819 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
7820
7821 PR libgomp/92511
7822 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
7823 this file...
7824 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
7825 this file...
7826 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
7827 file...
7828 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
7829 file...
7830 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
7831 ... with their content moved into, and extended in this new file.
7832 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
7833 New file.
7834 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
7835 Likewise.
7836 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
7837 Likewise.
7838 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
7839 Likewise.
7840
7841 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
7842
7843 PR libgomp/92854
7844 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
7845
7846 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
7847
7848 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
7849
7850 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
7851
7852 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
7853 unique.
7854 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
7855 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
7856 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
7857 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
7858 Ditto.
7859 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
7860 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
7861
7862 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
7863
7864 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
7865
7866 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
7867 Kwok Cheung Yeung <kcy@codesourcery.com>
7868
7869 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
7870 if input it a NULL pointer.
7871 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
7872 diagnostic of NULL pointer.
7873 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
7874 * testsuite/libgomp.fortran/optional-map.f90: New.
7875 * testsuite/libgomp.fortran/use_device_addr-1.f90
7876 (test_dummy_opt_callee_1_absent): New.
7877 (test_dummy_opt_call_1): Call it.
7878 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
7879 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
7880 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
7881 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
7882 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
7883 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
7884 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
7885 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
7886 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
7887 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
7888 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
7889 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
7890 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
7891 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
7892 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
7893 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
7894
7895 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
7896
7897 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
7898 expect dg-output of 'Error termination.' for GCN.
7899 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
7900 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
7901
7902 2019-12-04 Jakub Jelinek <jakub@redhat.com>
7903
7904 PR fortran/92756
7905 * testsuite/libgomp.fortran/teams1.f90: New test.
7906 * testsuite/libgomp.fortran/teams2.f90: New test.
7907
7908 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
7909
7910 * oacc-init.c (acc_known_device_type): Add function.
7911 (unknown_device_type_error): Add function.
7912 (name_of_acc_device_t): Change to call unknown_device_type_error
7913 on unknown type.
7914 (resolve_device): Use acc_known_device_type.
7915 (acc_init): Fail if acc_device_t argument is not valid.
7916 (acc_shutdown): Likewise.
7917 (acc_get_num_devices): Likewise.
7918 (acc_set_device_type): Likewise.
7919 (acc_get_device_num): Likewise.
7920 (acc_set_device_num): Likewise.
7921 (acc_on_device): Add comment that argument validity is not checked.
7922
7923 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
7924
7925 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
7926 Recognize amdgcn.
7927 (check_effective_target_openacc_amdgcn_accel_present): New proc.
7928 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
7929 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
7930 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7931 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7932
7933 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
7934
7935 PR libgomp/91938
7936 * configure.tgt: Avoid IE tls on *-*-musl*.
7937
7938 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
7939
7940 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
7941 adding a common-block test case.
7942
7943 2019-11-29 Jakub Jelinek <jakub@redhat.com>
7944
7945 PR c++/60228
7946 * testsuite/libgomp.c++/udr-20.C: New test.
7947 * testsuite/libgomp.c++/udr-21.C: New test.
7948
7949 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
7950
7951 * testsuite/lib/libgomp.exp
7952 (check_effective_target_offload_target_nvptx): New proc.
7953 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
7954 'dg-skip-if'.
7955 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
7956 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
7957 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
7958
7959 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7960
7961 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
7962 * testsuite/libgomp.c/pr39591-2.c: Likewise.
7963 * testsuite/libgomp.c/pr39591-3.c: Likewise.
7964 * testsuite/libgomp.c/private-1.c: Likewise.
7965 * testsuite/libgomp.c/task-1.c: Likewise.
7966 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
7967
7968 2019-11-20 Julian Brown <julian@codesourcery.com>
7969
7970 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
7971 aq->mutex here.
7972 (queue_push_launch): Lock aq->mutex before calling
7973 wait_for_queue_nonfull.
7974 (queue_push_callback): Likewise.
7975 (queue_push_asyncwait): Likewise.
7976 (queue_push_placeholder): Likewise.
7977
7978 2019-11-20 Julian Brown <julian@codesourcery.com>
7979
7980 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
7981 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
7982 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
7983 return code.
7984
7985 2019-11-20 Julian Brown <julian@codesourcery.com>
7986
7987 PR libgomp/92511
7988
7989 * oacc-mem.c (present_create_copy): Fix device pointer return value in
7990 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
7991 in non-present/create case.
7992 (delete_copyout): Change error condition to fail only on copies outside
7993 of mapped block. Adjust error message accordingly.
7994 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
7995 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
7996 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
7997 message.
7998 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7999 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
8000 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8001
8002 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
8003
8004 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
8005 libatomic in build-tree testing.
8006
8007 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
8008
8009 * testsuite/Makefile.in: Regenerate.
8010
8011 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
8012
8013 * testsuite/libgomp.c/target-print-1.c: New file.
8014 * testsuite/libgomp.fortran/target-print-1.f90: New file.
8015 * testsuite/libgomp.oacc-c/print-1.c: New file.
8016 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
8017
8018 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8019 Kwok Cheung Yeung <kcy@codesourcery.com>
8020 Julian Brown <julian@codesourcery.com>
8021 Tom de Vries <tom@codesourcery.com>
8022
8023 * plugin/Makefrag.am: Add amdgcn plugin support.
8024 * plugin/configfrag.ac: Likewise.
8025 * plugin/plugin-gcn.c: New file.
8026 * configure: Regenerate.
8027 * Makefile.in: Regenerate.
8028 * testsuite/Makefile.in: Regenerate.
8029
8030 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8031
8032 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
8033 and use team_malloc variants.
8034 (gomp_gcn_exit_kernel): Use team_free.
8035 * libgomp.h (TEAM_ARENA_SIZE): Define.
8036 (TEAM_ARENA_START): Define.
8037 (TEAM_ARENA_FREE): Define.
8038 (TEAM_ARENA_END): Define.
8039 (team_malloc): New function.
8040 (team_malloc_cleared): New function.
8041 (team_free): New function.
8042 * team.c (gomp_new_team): Initialize and use team_malloc.
8043 (free_team): Use team_free.
8044 (gomp_free_thread): Use team_free.
8045 (gomp_pause_host): Use team_free.
8046 * work.c (gomp_init_work_share): Use team_malloc.
8047 (gomp_fini_work_share): Use team_free.
8048
8049 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8050 Kwok Cheung Yeung <kcy@codesourcery.com>
8051 Julian Brown <julian@codesourcery.com>
8052 Tom de Vries <tom@codesourcery.com>
8053
8054 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
8055 * Makefile.in: Regenerate.
8056 * config.h.in (PLUGIN_GCN): Add new undef.
8057 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
8058 * config/gcn/affinity-fmt.c: New file.
8059 * config/gcn/bar.c: New file.
8060 * config/gcn/bar.h: New file.
8061 * config/gcn/doacross.h: New file.
8062 * config/gcn/icv-device.c: New file.
8063 * config/gcn/oacc-target.c: New file.
8064 * config/gcn/simple-bar.h: New file.
8065 * config/gcn/target.c: New file.
8066 * config/gcn/task.c: New file.
8067 * config/gcn/team.c: New file.
8068 * config/gcn/time.c: New file.
8069 * configure.ac: Add amdgcn*-*-*.
8070 * configure: Regenerate.
8071 * configure.tgt: Add amdgcn*-*-*.
8072 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
8073 * libgomp.h (gcn_thrs): Add amdgcn variant.
8074 (set_gcn_thrs): Likewise.
8075 (gomp_thread): Likewise.
8076 * oacc-int.h (goacc_thread): Likewise.
8077 * oacc-target.c: New file.
8078 * openacc.f90 (acc_device_gcn): New parameter.
8079 * openacc.h (acc_device_t): Add acc_device_gcn.
8080 * team.c (gomp_free_pool_helper): Add amdgcn support.
8081
8082 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8083 Julian Brown <julian@codesourcery.com>
8084
8085 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
8086 parameter.
8087 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
8088 queue constructor.
8089 * oacc-host.c (host_openacc_async_construct): Add device parameter.
8090 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
8091 device parameter.
8092
8093 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8094
8095 * configure.tgt (nvptx*-*-*): Add "accel" directory.
8096 * config/nvptx/libgomp-plugin.c: Move ...
8097 * config/accel/libgomp-plugin.c: ... to here.
8098 * config/nvptx/lock.c: Move ...
8099 * config/accel/lock.c: ... to here.
8100 * config/nvptx/mutex.c: Move ...
8101 * config/accel/mutex.c: ... to here.
8102 * config/nvptx/mutex.h: Move ...
8103 * config/accel/mutex.h: ... to here.
8104 * config/nvptx/oacc-async.c: Move ...
8105 * config/accel/oacc-async.c: ... to here.
8106 * config/nvptx/oacc-cuda.c: Move ...
8107 * config/accel/oacc-cuda.c: ... to here.
8108 * config/nvptx/oacc-host.c: Move ...
8109 * config/accel/oacc-host.c: ... to here.
8110 * config/nvptx/oacc-init.c: Move ...
8111 * config/accel/oacc-init.c: ... to here.
8112 * config/nvptx/oacc-mem.c: Move ...
8113 * config/accel/oacc-mem.c: ... to here.
8114 * config/nvptx/oacc-plugin.c: Move ...
8115 * config/accel/oacc-plugin.c: ... to here.
8116 * config/nvptx/omp-lock.h: Move ...
8117 * config/accel/omp-lock.h: ... to here.
8118 * config/nvptx/openacc.f90: Move ...
8119 * config/accel/openacc.f90: ... to here.
8120 * config/nvptx/pool.h: Move ...
8121 * config/accel/pool.h: ... to here.
8122 * config/nvptx/proc.c: Move ...
8123 * config/accel/proc.c: ... to here.
8124 * config/nvptx/ptrlock.c: Move ...
8125 * config/accel/ptrlock.c: ... to here.
8126 * config/nvptx/ptrlock.h: Move ...
8127 * config/accel/ptrlock.h: ... to here.
8128 * config/nvptx/sem.c: Move ...
8129 * config/accel/sem.c: ... to here.
8130 * config/nvptx/sem.h: Move ...
8131 * config/accel/sem.h: ... to here.
8132 * config/nvptx/thread-stacksize.h: Move ...
8133 * config/accel/thread-stacksize.h: ... to here.
8134
8135 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
8136 Tobias Burnus <tobias@codesourcery.com>
8137 Frederik Harwath <frederik@codesourcery.com>
8138 Thomas Schwinge <thomas@codesourcery.com>
8139
8140 libgomp/
8141 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
8142 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
8143 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
8144
8145 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
8146 Kwok Cheung Yeung <kcy@codesourcery.com>
8147
8148 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
8149 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
8150
8151 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
8152
8153 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
8154
8155 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
8156 run'.
8157 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8158 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
8159
8160 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
8161
8162 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
8163 Add expected warnings about missing reduction clauses.
8164 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
8165 Likewise.
8166 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
8167 Likewise.
8168 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
8169 Likewise.
8170
8171 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
8172
8173 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
8174 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
8175 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
8176 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8177 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8178 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8179
8180 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
8181
8182 PR fortran/92305
8183 * testsuite/libgomp.fortran/allocatable2.f90: Use
8184 unique numbers with 'stop'.
8185 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8186 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8187 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
8188 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
8189 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
8190
8191 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
8192
8193 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
8194 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
8195 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8196 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
8197 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
8198 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
8199
8200 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
8201
8202 * testsuite/libgomp.fortran/target9.f90: New.
8203
8204 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
8205
8206 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
8207 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
8208 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
8209 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
8210 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
8211 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
8212 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
8213 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
8214 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
8215 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
8216 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
8217 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
8218 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
8219 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
8220 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
8221 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
8222 * testsuite/libgomp.fortran/associate1.f90: Ditto.
8223 * testsuite/libgomp.fortran/associate2.f90: Ditto.
8224 * testsuite/libgomp.fortran/associate3.f90: Ditto.
8225 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
8226 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
8227 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
8228 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
8229 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
8230 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
8231 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
8232 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
8233 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
8234 * testsuite/libgomp.fortran/character1.f90: Ditto.
8235 * testsuite/libgomp.fortran/character2.f90: Ditto.
8236 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
8237 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
8238 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
8239 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
8240 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
8241 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
8242 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
8243 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
8244 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
8245 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
8246 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
8247 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
8248 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
8249 * testsuite/libgomp.fortran/do1.f90: Ditto.
8250 * testsuite/libgomp.fortran/do2.f90: Ditto.
8251 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
8252 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
8253 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
8254 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
8255 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
8256 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
8257 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
8258 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
8259 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
8260 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
8261 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
8262 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
8263 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
8264 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
8265 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
8266 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
8267 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
8268 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
8269 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
8270 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
8271 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
8272 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
8273 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
8274 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
8275 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
8276 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
8277 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
8278 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
8279 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
8280 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
8281 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
8282 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
8283 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
8284 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
8285 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
8286 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
8287 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
8288 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
8289 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
8290 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
8291 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
8292 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
8293 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
8294 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
8295 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
8296 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
8297 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
8298 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
8299 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
8300 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
8301 * testsuite/libgomp.fortran/lib1.f90: Ditto.
8302 * testsuite/libgomp.fortran/lib4.f90: Ditto.
8303 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
8304 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
8305 * testsuite/libgomp.fortran/nested1.f90: Ditto.
8306 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
8307 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
8308 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
8309 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
8310 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
8311 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
8312 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
8313 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
8314 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
8315 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
8316 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
8317 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
8318 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
8319 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
8320 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
8321 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
8322 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
8323 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
8324 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
8325 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
8326 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
8327 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
8328 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
8329 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
8330 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
8331 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
8332 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
8333 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
8334 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
8335 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
8336 * testsuite/libgomp.fortran/pr28390.f: Ditto.
8337 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
8338 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
8339 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
8340 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
8341 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
8342 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
8343 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
8344 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
8345 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
8346 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
8347 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
8348 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
8349 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
8350 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
8351 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
8352 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
8353 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
8354 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
8355 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
8356 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
8357 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
8358 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
8359 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
8360 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
8361 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
8362 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
8363 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
8364 * testsuite/libgomp.fortran/reference1.f90: Ditto.
8365 * testsuite/libgomp.fortran/reference2.f90: Ditto.
8366 * testsuite/libgomp.fortran/retval1.f90: Ditto.
8367 * testsuite/libgomp.fortran/retval2.f90: Ditto.
8368 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
8369 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
8370 * testsuite/libgomp.fortran/simd1.f90: Ditto.
8371 * testsuite/libgomp.fortran/simd2.f90: Ditto.
8372 * testsuite/libgomp.fortran/simd3.f90: Ditto.
8373 * testsuite/libgomp.fortran/simd4.f90: Ditto.
8374 * testsuite/libgomp.fortran/simd5.f90: Ditto.
8375 * testsuite/libgomp.fortran/simd6.f90: Ditto.
8376 * testsuite/libgomp.fortran/simd7.f90: Ditto.
8377 * testsuite/libgomp.fortran/stack.f90: Ditto.
8378 * testsuite/libgomp.fortran/strassen.f90: Ditto.
8379 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
8380 * testsuite/libgomp.fortran/tabs2.f: Ditto.
8381 * testsuite/libgomp.fortran/target1.f90: Ditto.
8382 * testsuite/libgomp.fortran/target2.f90: Ditto.
8383 * testsuite/libgomp.fortran/target3.f90: Ditto.
8384 * testsuite/libgomp.fortran/target4.f90: Ditto.
8385 * testsuite/libgomp.fortran/target5.f90: Ditto.
8386 * testsuite/libgomp.fortran/target6.f90: Ditto.
8387 * testsuite/libgomp.fortran/target7.f90: Ditto.
8388 * testsuite/libgomp.fortran/target8.f90: Ditto.
8389 * testsuite/libgomp.fortran/task1.f90: Ditto.
8390 * testsuite/libgomp.fortran/task2.f90: Ditto.
8391 * testsuite/libgomp.fortran/task3.f90: Ditto.
8392 * testsuite/libgomp.fortran/task4.f90: Ditto.
8393 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
8394 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
8395 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8396 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8397 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8398 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
8399 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
8400 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
8401 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
8402 * testsuite/libgomp.fortran/udr1.f90: Ditto.
8403 * testsuite/libgomp.fortran/udr10.f90: Ditto.
8404 * testsuite/libgomp.fortran/udr11.f90: Ditto.
8405 * testsuite/libgomp.fortran/udr12.f90: Ditto.
8406 * testsuite/libgomp.fortran/udr13.f90: Ditto.
8407 * testsuite/libgomp.fortran/udr14.f90: Ditto.
8408 * testsuite/libgomp.fortran/udr15.f90: Ditto.
8409 * testsuite/libgomp.fortran/udr2.f90: Ditto.
8410 * testsuite/libgomp.fortran/udr3.f90: Ditto.
8411 * testsuite/libgomp.fortran/udr4.f90: Ditto.
8412 * testsuite/libgomp.fortran/udr5.f90: Ditto.
8413 * testsuite/libgomp.fortran/udr6.f90: Ditto.
8414 * testsuite/libgomp.fortran/udr7.f90: Ditto.
8415 * testsuite/libgomp.fortran/udr8.f90: Ditto.
8416 * testsuite/libgomp.fortran/udr9.f90: Ditto.
8417 * testsuite/libgomp.fortran/vla1.f90: Ditto.
8418 * testsuite/libgomp.fortran/vla2.f90: Ditto.
8419 * testsuite/libgomp.fortran/vla3.f90: Ditto.
8420 * testsuite/libgomp.fortran/vla4.f90: Ditto.
8421 * testsuite/libgomp.fortran/vla5.f90: Ditto.
8422 * testsuite/libgomp.fortran/vla6.f90: Ditto.
8423 * testsuite/libgomp.fortran/vla7.f90: Ditto.
8424 * testsuite/libgomp.fortran/vla8.f90: Ditto.
8425 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
8426 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
8427
8428 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
8429
8430 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
8431 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
8432 Ditto; add 'dg-do run' for torture testing.
8433 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
8434 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
8435 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
8436 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
8437 * testsuite/libgomp.fortran/pr28390.f: Ditto.
8438 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
8439 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
8440 * testsuite/libgomp.fortran/task2.f90: Ditto.
8441 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
8442 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
8443 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8444 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8445 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
8446 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
8447
8448 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
8449
8450 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
8451 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
8452 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
8453 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
8454 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
8455 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
8456 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
8457 Use 'stop' not abort().
8458 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
8459 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
8460 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
8461 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
8462 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
8463 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
8464 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
8465 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
8466 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
8467 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
8468 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
8469 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
8470 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
8471 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
8472 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
8473 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
8474 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
8475 Ditto.
8476 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
8477 Ditto.
8478 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
8479 Ditto.
8480 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
8481 Ditto.
8482 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
8483 Ditto.
8484 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
8485 Ditto.
8486 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
8487 Ditto.
8488 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
8489 Ditto.
8490 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
8491 Ditto.
8492 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
8493 Ditto.
8494 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
8495 Ditto.
8496 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
8497 Ditto.
8498 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
8499 Ditto.
8500 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
8501 Ditto.
8502 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
8503 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
8504 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
8505 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
8506 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
8507 Likewise and also add 'dg-do run'.
8508 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
8509 Ditto.
8510
8511 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
8512 Tobias Burnus <tobias@codesourcery.com>
8513
8514 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
8515 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
8516 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
8517
8518 2019-10-14 Jakub Jelinek <jakub@redhat.com>
8519
8520 PR libgomp/92081
8521 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
8522 than 0.
8523
8524 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
8525
8526 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
8527 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
8528
8529 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
8530
8531 PR middle-end/92036
8532 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
8533 file.
8534
8535 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
8536
8537 PR testsuite/91884
8538 * testsuite/libgomp.fortran/fortran.exp: Conditionally
8539 add -lquadmath.
8540 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
8541
8542 2019-10-09 Jakub Jelinek <jakub@redhat.com>
8543
8544 PR libgomp/92028
8545 * target.c (gomp_map_vars_internal): Readd the previous
8546 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
8547 though do that just in the !not_found_cnt case.
8548
8549 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
8550
8551 * gfortran.dg/gomp/target-simd.f90: New.
8552
8553 2019-10-02 Julian Brown <julian@codesourcery.com>
8554 Cesar Philippidis <cesar@codesourcery.com>
8555
8556 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
8557 * target.c (FIELD_TGT_EMPTY): Define.
8558 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
8559 as switch instead of list of ifs.
8560 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
8561
8562 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
8563
8564 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
8565 include. Replace alloca () with __builtin_alloca ().
8566 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
8567
8568 2019-10-01 Jakub Jelinek <jakub@redhat.com>
8569
8570 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
8571 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
8572 * oacc-parallel.c: Don't include "libgomp_g.h".
8573 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
8574 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
8575 * aclocal.m4: Regenerated.
8576 * config.h.in: Regenerated.
8577 * configure: Regenerated.
8578 * Makefile.in: Regenerated.
8579
8580 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
8581
8582 * libgomp_g.h: Include stdint.h instead of gstdint.h.
8583
8584 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
8585
8586 * configure: Regenerate.
8587
8588 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
8589
8590 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
8591 string is initialized.
8592
8593 2019-09-06 Florian Weimer <fweimer@redhat.com>
8594
8595 * configure: Regenerate.
8596
8597 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
8598
8599 PR other/79543
8600 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
8601 scanning to conform to the GNU Coding Standards.
8602 * configure: Regenerate.
8603
8604 2019-08-28 Jakub Jelinek <jakub@redhat.com>
8605
8606 PR libgomp/91530
8607 * testsuite/libgomp.c/scan-21.c: New test.
8608 * testsuite/libgomp.c/scan-22.c: New test.
8609
8610 2019-08-27 Jakub Jelinek <jakub@redhat.com>
8611
8612 PR libgomp/91530
8613 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
8614 targets.
8615 * testsuite/libgomp.c/scan-12.c: Likewise.
8616 * testsuite/libgomp.c/scan-13.c: Likewise.
8617 * testsuite/libgomp.c/scan-14.c: Likewise.
8618 * testsuite/libgomp.c/scan-15.c: Likewise.
8619 * testsuite/libgomp.c/scan-16.c: Likewise.
8620 * testsuite/libgomp.c/scan-17.c: Likewise.
8621 * testsuite/libgomp.c/scan-18.c: Likewise.
8622 * testsuite/libgomp.c/scan-19.c: Likewise.
8623 * testsuite/libgomp.c/scan-20.c: Likewise.
8624 * testsuite/libgomp.c++/scan-9.C: Likewise.
8625 * testsuite/libgomp.c++/scan-10.C: Likewise.
8626 * testsuite/libgomp.c++/scan-11.C: Likewise.
8627 * testsuite/libgomp.c++/scan-12.C: Likewise.
8628 * testsuite/libgomp.c++/scan-14.C: Likewise.
8629 * testsuite/libgomp.c++/scan-15.C: Likewise.
8630 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
8631 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
8632 * testsuite/libgomp.c++/scan-16.C: Likewise.
8633
8634 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
8635
8636 PR fortran/91473
8637 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
8638 -std=legacy so invalid code in the test case is accepted.
8639
8640 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
8641
8642 PR fortran/91422
8643 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
8644 dimension.
8645
8646 2019-08-08 Jakub Jelinek <jakub@redhat.com>
8647
8648 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
8649 perform the lookup in the first loop only if !not_found_cnt, otherwise
8650 perform lookups for it in the second loop guarded with
8651 if (not_found_cnt || has_firstprivate).
8652 * testsuite/libgomp.c/target-37.c: New test.
8653 * testsuite/libgomp.c++/target-22.C: New test.
8654
8655 2019-08-07 Jakub Jelinek <jakub@redhat.com>
8656
8657 * testsuite/libgomp.c/target-18.c (struct S): New type.
8658 (foo): Use use_device_addr clause instead of use_device_ptr clause
8659 where required by OpenMP 5.0, add further tests for both use_device_ptr
8660 and use_device_addr clauses.
8661 * testsuite/libgomp.c++/target-9.C (struct S): New type.
8662 (foo): Use use_device_addr clause instead of use_device_ptr clause
8663 where required by OpenMP 5.0, add further tests for both use_device_ptr
8664 and use_device_addr clauses. Add t and u arguments.
8665 (main): Adjust caller.
8666
8667 2019-08-06 Jakub Jelinek <jakub@redhat.com>
8668
8669 * testsuite/libgomp.c++/loop-13.C: New test.
8670 * testsuite/libgomp.c++/loop-14.C: New test.
8671 * testsuite/libgomp.c++/loop-15.C: New test.
8672
8673 2019-07-31 Jakub Jelinek <jakub@redhat.com>
8674
8675 PR middle-end/91301
8676 * testsuite/libgomp.c++/for-27.C: New test.
8677
8678 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
8679
8680 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
8681 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
8682
8683 2019-07-20 Jakub Jelinek <jakub@redhat.com>
8684
8685 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
8686
8687 2019-07-08 Jakub Jelinek <jakub@redhat.com>
8688
8689 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
8690 * testsuite/libgomp.c++/scan-16.C: Likewise.
8691
8692 2019-07-06 Jakub Jelinek <jakub@redhat.com>
8693
8694 * testsuite/libgomp.c/scan-19.c: New test.
8695 * testsuite/libgomp.c/scan-20.c: New test.
8696
8697 * testsuite/libgomp.c/scan-11.c: New test.
8698 * testsuite/libgomp.c/scan-12.c: New test.
8699 * testsuite/libgomp.c/scan-13.c: New test.
8700 * testsuite/libgomp.c/scan-14.c: New test.
8701 * testsuite/libgomp.c/scan-15.c: New test.
8702 * testsuite/libgomp.c/scan-16.c: New test.
8703 * testsuite/libgomp.c/scan-17.c: New test.
8704 * testsuite/libgomp.c/scan-18.c: New test.
8705 * testsuite/libgomp.c++/scan-9.C: New test.
8706 * testsuite/libgomp.c++/scan-10.C: New test.
8707 * testsuite/libgomp.c++/scan-11.C: New test.
8708 * testsuite/libgomp.c++/scan-12.C: New test.
8709 * testsuite/libgomp.c++/scan-13.C: New test.
8710 * testsuite/libgomp.c++/scan-14.C: New test.
8711 * testsuite/libgomp.c++/scan-15.C: New test.
8712 * testsuite/libgomp.c++/scan-16.C: New test.
8713
8714 2019-07-04 Jakub Jelinek <jakub@redhat.com>
8715
8716 * testsuite/libgomp.c/scan-9.c: New test.
8717 * testsuite/libgomp.c/scan-10.c: New test.
8718
8719 2019-07-03 Jakub Jelinek <jakub@redhat.com>
8720
8721 * testsuite/libgomp.c++/scan-1.C: New test.
8722 * testsuite/libgomp.c++/scan-2.C: New test.
8723 * testsuite/libgomp.c++/scan-3.C: New test.
8724 * testsuite/libgomp.c++/scan-4.C: New test.
8725 * testsuite/libgomp.c++/scan-5.C: New test.
8726 * testsuite/libgomp.c++/scan-6.C: New test.
8727 * testsuite/libgomp.c++/scan-7.C: New test.
8728 * testsuite/libgomp.c++/scan-8.C: New test.
8729 * testsuite/libgomp.c/scan-1.c: New test.
8730 * testsuite/libgomp.c/scan-2.c: New test.
8731 * testsuite/libgomp.c/scan-3.c: New test.
8732 * testsuite/libgomp.c/scan-4.c: New test.
8733 * testsuite/libgomp.c/scan-5.c: New test.
8734 * testsuite/libgomp.c/scan-6.c: New test.
8735 * testsuite/libgomp.c/scan-7.c: New test.
8736 * testsuite/libgomp.c/scan-8.c: New test.
8737
8738 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
8739
8740 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
8741 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
8742 Likewise.
8743
8744 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
8745 check.
8746
8747 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
8748
8749 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
8750 file.
8751
8752 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
8753
8754 PR fortran/90743
8755 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
8756 case.
8757 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
8758 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
8759 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
8760 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
8761
8762 PR testsuite/90861
8763 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
8764
8765 PR middle-end/90862
8766 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
8767
8768 2019-06-16 Tom de Vries <tdevries@suse.de>
8769
8770 PR tree-optimization/89376
8771 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
8772
8773 2019-06-15 Tom de Vries <tdevries@suse.de>
8774
8775 PR tree-optimization/89713
8776 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
8777 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
8778
8779 2019-06-15 Jakub Jelinek <jakub@redhat.com>
8780
8781 PR middle-end/90779
8782 * testsuite/libgomp.c/pr90779.c: New test.
8783 * testsuite/libgomp.fortran/pr90779.f90: New test.
8784
8785 2019-06-15 Tom de Vries <tdevries@suse.de>
8786
8787 PR tree-optimization/90009
8788 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
8789
8790 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
8791
8792 PR tree-optimization/89713
8793 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
8794
8795 2019-06-11 Jakub Jelinek <jakub@redhat.com>
8796
8797 PR target/90811
8798 * testsuite/libgomp.c/pr90811.c: New test.
8799
8800 2019-06-05 Jakub Jelinek <jakub@redhat.com>
8801
8802 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
8803 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
8804
8805 2019-06-04 Jakub Jelinek <jakub@redhat.com>
8806
8807 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
8808 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
8809 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
8810 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
8811
8812 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8813
8814 * configure.ac: Call AX_COUNT_CPUS.
8815 Substitute CPU_COUNT.
8816 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
8817 count fallback.
8818 * aclocal.m4: Regenerate.
8819 * configure: Regenerate.
8820 * Makefile.in, testsuite/Makefile.in: Regenerate.
8821
8822 2019-05-29 Jakub Jelinek <jakub@redhat.com>
8823
8824 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
8825 to ...
8826 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
8827 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
8828 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
8829
8830 2019-05-27 Jakub Jelinek <jakub@redhat.com>
8831
8832 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
8833
8834 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
8835
8836 PR libgomp/90641
8837 * work.c (gomp_init_work_share): Instead of aligning final ordered
8838 value to multiples of long long alignment, align to that the
8839 first part (ordered team ids) and if inline_ordered_team_ids
8840 is not on a long long alignment boundary within the structure,
8841 use __alignof__ (long long) - 1 pad size always.
8842 * loop.c (GOMP_loop_start): Fix *mem computation if
8843 inline_ordered_team_ids is not aligned on long long alignment boundary
8844 within the structure.
8845 * loop-ull.c (GOMP_loop_ull_start): Likewise.
8846 * sections.c (GOMP_sections2_start): Likewise.
8847
8848 2019-05-24 Jakub Jelinek <jakub@redhat.com>
8849
8850 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
8851 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
8852
8853 PR libgomp/90585
8854 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
8855 HAVE_INTTYPES_H is defined.
8856 (print_uint64_t): New typedef.
8857 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
8858 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
8859 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
8860 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
8861 before casting to void *.
8862 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
8863 * oacc-mem.c: Don't include config.h nor stdint.h.
8864 * target.c: Don't include config.h.
8865 * oacc-cuda.c: Likewise.
8866 * oacc-host.c: Don't include stdint.h.
8867
8868 2019-05-20 Jakub Jelinek <jakub@redhat.com>
8869
8870 PR libgomp/90527
8871 * alloc.c (_GNU_SOURCE): Define.
8872
8873 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
8874
8875 * acc_prof.h: New file.
8876 * oacc-profiling.c: Likewise.
8877 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
8878 Add these, respectively.
8879 * Makefile.in: Regenerate.
8880 * env.c (initialize_env): Call goacc_profiling_initialize.
8881 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
8882 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
8883 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
8884 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
8885 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
8886 acc_prof_register, acc_prof_unregister, and acc_register_library.
8887 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
8888 GOMP_PLUGIN_goacc_thread.
8889 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
8890 prof_callbacks_enabled members.
8891 (goacc_prof_enabled, goacc_profiling_initialize)
8892 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
8893 (goacc_profiling_dispatch): Declare.
8894 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
8895 (GOACC_PROFILING_SETUP_P): Define.
8896 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
8897 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
8898 OpenACC Profiling Interface.
8899 * oacc-cuda.c (acc_get_current_cuda_device)
8900 (acc_get_current_cuda_context, acc_get_cuda_stream)
8901 (acc_set_cuda_stream): Likewise.
8902 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
8903 (acc_init, acc_set_device_type, acc_get_device_type)
8904 (acc_get_device_num, goacc_lazy_initialize): Likewise.
8905 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
8906 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
8907 (acc_unmap_data, present_create_copy, delete_copyout)
8908 (update_dev_host): Likewise.
8909 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
8910 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
8911 Likewise.
8912 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
8913 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
8914 Likewise.
8915 * libgomp.texi: Update.
8916 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
8917 file.
8918 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
8919 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
8920 Likewise.
8921 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
8922 Likewise.
8923 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
8924 Likewise.
8925 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
8926 Likewise.
8927
8928 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
8929
8930 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
8931 (struct goacc_asyncqueue_list): Likewise.
8932 (goacc_aq): Likewise.
8933 (goacc_aq_list): Likewise.
8934 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
8935 (GOMP_OFFLOAD_openacc_async_test): Remove.
8936 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
8937 (GOMP_OFFLOAD_openacc_async_wait): Remove.
8938 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
8939 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
8940 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
8941 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
8942 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
8943 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
8944 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
8945 (GOMP_OFFLOAD_openacc_async_exec): Declare.
8946 (GOMP_OFFLOAD_openacc_async_construct): Declare.
8947 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
8948 (GOMP_OFFLOAD_openacc_async_test): Declare.
8949 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
8950 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
8951 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
8952 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
8953 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
8954
8955 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
8956 (gomp_acc_insert_pointer): Adjust declaration.
8957 (gomp_copy_host2dev): New declaration.
8958 (gomp_copy_dev2host): Likewise.
8959 (gomp_map_vars_async): Likewise.
8960 (gomp_unmap_tgt): Likewise.
8961 (gomp_unmap_vars_async): Likewise.
8962 (gomp_fini_device): Likewise.
8963
8964 * oacc-async.c (get_goacc_thread): New function.
8965 (get_goacc_thread_device): New function.
8966 (lookup_goacc_asyncqueue): New function.
8967 (get_goacc_asyncqueue): New function.
8968 (acc_async_test): Adjust code to use new async design.
8969 (acc_async_test_all): Likewise.
8970 (acc_wait): Likewise.
8971 (acc_wait_async): Likewise.
8972 (acc_wait_all): Likewise.
8973 (acc_wait_all_async): Likewise.
8974 (goacc_async_free): New function.
8975 (goacc_init_asyncqueues): Likewise.
8976 (goacc_fini_asyncqueues): Likewise.
8977 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
8978 design.
8979 (acc_set_cuda_stream): Likewise.
8980 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
8981 (host_openacc_register_async_cleanup): Remove.
8982 (host_openacc_async_exec): New function.
8983 (host_openacc_async_test): Adjust parameters.
8984 (host_openacc_async_test_all): Remove.
8985 (host_openacc_async_wait): Remove.
8986 (host_openacc_async_wait_async): Remove.
8987 (host_openacc_async_wait_all): Remove.
8988 (host_openacc_async_wait_all_async): Remove.
8989 (host_openacc_async_set_async): Remove.
8990 (host_openacc_async_synchronize): New function.
8991 (host_openacc_async_serialize): New function.
8992 (host_openacc_async_host2dev): New function.
8993 (host_openacc_async_dev2host): New function.
8994 (host_openacc_async_queue_callback): New function.
8995 (host_openacc_async_construct): New function.
8996 (host_openacc_async_destruct): New function.
8997 (struct gomp_device_descr host_dispatch): Remove initialization of old
8998 interface, add initialization of new async sub-struct.
8999 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
9000 (goacc_attach_host_thread_to_device): Remove old async code usage.
9001 * oacc-int.h (goacc_init_asyncqueues): New declaration.
9002 (goacc_fini_asyncqueues): Likewise.
9003 (goacc_async_copyout_unmap_vars): Likewise.
9004 (goacc_async_free): Likewise.
9005 (get_goacc_asyncqueue): Likewise.
9006 (lookup_goacc_asyncqueue): Likewise.
9007 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
9008 design.
9009 (present_create_copy): Adjust code to use new async design.
9010 (delete_copyout): Likewise.
9011 (update_dev_host): Likewise.
9012 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
9013 async design.
9014 (gomp_acc_remove_pointer): Adjust code to use new async design.
9015 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
9016 design.
9017 (GOACC_enter_exit_data): Likewise.
9018 (goacc_wait): Likewise.
9019 (GOACC_update): Likewise.
9020 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
9021 when called, warn as obsolete in comment.
9022 * target.c (goacc_device_copy_async): New function.
9023 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
9024 add goacc_device_copy_async case.
9025 (gomp_copy_dev2host): Likewise.
9026 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
9027 (gomp_map_pointer): Likewise.
9028 (gomp_map_fields_existing): Likewise.
9029 (gomp_map_vars_internal): New always_inline function, renamed from
9030 gomp_map_vars.
9031 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
9032 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
9033 passing goacc_asyncqueue argument.
9034 (gomp_unmap_tgt): Remove static, add attribute_hidden.
9035 (gomp_unref_tgt): New function.
9036 (gomp_unmap_vars_internal): New always_inline function, renamed from
9037 gomp_unmap_vars.
9038 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
9039 (gomp_unmap_vars_async): Implement by calling
9040 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
9041 (gomp_fini_device): New function.
9042 (gomp_exit_data): Adjust gomp_copy_dev2host call.
9043 (gomp_load_plugin_for_device): Remove old interface, adjust to load
9044 new async interface.
9045 (gomp_target_fini): Adjust code to call gomp_fini_device.
9046
9047 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
9048 (struct ptx_stream): Remove.
9049 (struct nvptx_thread): Remove current_stream field.
9050 (cuda_map_create): Remove.
9051 (cuda_map_destroy): Remove.
9052 (map_init): Remove.
9053 (map_fini): Remove.
9054 (map_pop): Remove.
9055 (map_push): Remove.
9056 (struct goacc_asyncqueue): Define.
9057 (struct nvptx_callback): Define.
9058 (struct ptx_free_block): Define.
9059 (struct ptx_device): Remove null_stream, active_streams, async_streams,
9060 stream_lock, and next fields.
9061 (enum ptx_event_type): Remove.
9062 (struct ptx_event): Remove.
9063 (ptx_event_lock): Remove.
9064 (ptx_events): Remove.
9065 (init_streams_for_device): Remove.
9066 (fini_streams_for_device): Remove.
9067 (select_stream_for_async): Remove.
9068 (nvptx_init): Remove ptx_events and ptx_event_lock references.
9069 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
9070 case.
9071 (nvptx_open_device): Add free_blocks initialization, remove
9072 init_streams_for_device call.
9073 (nvptx_close_device): Remove fini_streams_for_device call, add
9074 free_blocks destruct code.
9075 (event_gc): Remove.
9076 (event_add): Remove.
9077 (nvptx_exec): Adjust parameters and code.
9078 (nvptx_free): Likewise.
9079 (nvptx_host2dev): Remove.
9080 (nvptx_dev2host): Remove.
9081 (nvptx_set_async): Remove.
9082 (nvptx_async_test): Remove.
9083 (nvptx_async_test_all): Remove.
9084 (nvptx_wait): Remove.
9085 (nvptx_wait_async): Remove.
9086 (nvptx_wait_all): Remove.
9087 (nvptx_wait_all_async): Remove.
9088 (nvptx_get_cuda_stream): Remove.
9089 (nvptx_set_cuda_stream): Remove.
9090 (GOMP_OFFLOAD_alloc): Adjust code.
9091 (GOMP_OFFLOAD_free): Likewise.
9092 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9093 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
9094 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9095 (GOMP_OFFLOAD_openacc_async_wait): Remove.
9096 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9097 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9098 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9099 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9100 (cuda_free_argmem): New function.
9101 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
9102 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
9103 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
9104 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
9105 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
9106 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
9107 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
9108 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
9109 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
9110 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
9111 (cuda_callback_wrapper): New function.
9112 (cuda_memcpy_sanity_check): New function.
9113 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
9114 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
9115 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
9116 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
9117
9118 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
9119
9120 PR target/87835
9121 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
9122
9123 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
9124
9125 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
9126
9127 2019-03-27 Kevin Buettner <kevinb@redhat.com>
9128
9129 * team.c (gomp_team_start): Initialize pool->threads[0].
9130
9131 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
9132
9133 * testsuite/libgomp.oacc-c++/c++.exp: Specify
9134 "-foffload=$offload_target".
9135 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9136 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9137 * testsuite/lib/libgomp.exp
9138 (check_effective_target_openacc_nvidia_accel_configured): Remove,
9139 as (conceptually) merged into
9140 check_effective_target_openacc_nvidia_accel_selected. Adjust all
9141 users.
9142
9143 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
9144 * testsuite/libgomp-test-support.exp.in: Adjust.
9145 * testsuite/lib/libgomp.exp: Likewise. Don't populate
9146 openacc_device_types_s.
9147 (offload_target_to_openacc_device_type): New proc.
9148 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
9149 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9150 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9151 * Makefile.in: Regenerate.
9152 * configure: Likewise.
9153 * testsuite/Makefile.in: Likewise.
9154
9155 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
9156 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
9157 instead of OFFLOAD_TARGETS.
9158 * target.c (gomp_target_init): Adjust.
9159 * testsuite/libgomp-test-support.exp.in: Likewise.
9160 * testsuite/lib/libgomp.exp: Likewise. Populate
9161 openacc_device_types_s instead of offload_targets_s_openacc.
9162 (check_effective_target_openacc_nvidia_accel_selected)
9163 (check_effective_target_openacc_host_selected): Adjust.
9164 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
9165 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9166 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9167 * Makefile.in: Regenerate.
9168 * config.h.in: Likewise.
9169 * configure: Likewise.
9170 * testsuite/Makefile.in: Likewise.
9171
9172 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
9173 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
9174 "offloading: supported, but hardware not accessible".
9175 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9176 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9177
9178 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
9179
9180 PR c/87924
9181 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
9182 goacc_wait().
9183 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
9184 and related adjustment.
9185
9186 2019-01-30 Jakub Jelinek <jakub@redhat.com>
9187
9188 PR c++/88988
9189 * testsuite/libgomp.c++/pr88988.C: New test.
9190
9191 2019-01-28 Jakub Jelinek <jakub@redhat.com>
9192
9193 PR middle-end/89002
9194 * testsuite/libgomp.c/pr89002.c: New test.
9195
9196 2019-01-28 Richard Biener <rguenther@suse.de>
9197
9198 PR testsuite/89064
9199 PR tree-optimization/86865
9200 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
9201
9202 2019-01-24 Tom de Vries <tdevries@suse.de>
9203
9204 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
9205 once instantiated_devices drops to 0.
9206
9207 2019-01-23 Tom de Vries <tdevries@suse.de>
9208
9209 PR target/PR88946
9210 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
9211 cuMemFree.
9212 (nvptx_exec): Don't call map_push if mapnum == 0.
9213 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
9214
9215 2019-01-23 Tom de Vries <tdevries@suse.de>
9216
9217 PR target/88941
9218 PR target/88939
9219 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
9220 (map_fini): Remove "assert (!s->map->active)".
9221 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
9222
9223 2019-01-23 Tom de Vries <tdevries@suse.de>
9224
9225 PR target/87835
9226 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
9227 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
9228
9229 2019-01-15 Tom de Vries <tdevries@suse.de>
9230
9231 PR target/80547
9232 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
9233 New test.
9234
9235 2019-01-12 Tom de Vries <tdevries@suse.de>
9236
9237 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
9238 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
9239 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
9240 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
9241
9242 2019-01-12 Tom de Vries <tdevries@suse.de>
9243
9244 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
9245
9246 2019-01-12 Tom de Vries <tdevries@suse.de>
9247
9248 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
9249 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
9250 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
9251
9252 2019-01-12 Tom de Vries <tdevries@suse.de>
9253
9254 PR target/85486
9255 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
9256 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
9257
9258 2019-01-12 Tom de Vries <tdevries@suse.de>
9259
9260 PR target/85381
9261 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
9262 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
9263
9264 2019-01-12 Tom de Vries <tdevries@suse.de>
9265
9266 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
9267 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
9268 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
9269
9270 2019-01-12 Tom de Vries <tdevries@suse.de>
9271
9272 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
9273 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
9274 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
9275
9276 2019-01-12 Tom de Vries <tdevries@suse.de>
9277
9278 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
9279 resources diagnostic.
9280
9281 2019-01-12 Tom de Vries <tdevries@suse.de>
9282
9283 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
9284 vector length to be 128.
9285 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
9286 length 2097152 to be reduced to 1024 instead of 32.
9287
9288 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
9289 James Norris <jnorris@codesourcery.com>
9290
9291 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
9292 Library Routines", and "Environment Variables".
9293
9294 2019-01-11 Tom de Vries <tdevries@suse.de>
9295
9296 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
9297 num_workers 16.
9298
9299 2019-01-11 Tom de Vries <tdevries@suse.de>
9300
9301 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
9302 -foffload=-w.
9303 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
9304 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
9305 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
9306 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
9307
9308 2019-01-11 Tom de Vries <tdevries@suse.de>
9309
9310 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
9311 test.
9312
9313 2019-01-10 Nathan Sidwell <nathan@acm.org>
9314 Julian Brown <julian@codesourcery.com>
9315
9316 PR lto/71959
9317 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
9318 * testsuite/libgomp.oacc-c++/pr71959.C: New.
9319
9320 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
9321
9322 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
9323 and paste code.
9324
9325 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
9326
9327 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
9328 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
9329 write.
9330
9331 2019-01-09 Tom de Vries <tdevries@suse.de>
9332
9333 PR target/88756
9334 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
9335 #define instead of "const int".
9336 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
9337 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
9338 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
9339 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
9340
9341 2019-01-09 Tom de Vries <tdevries@suse.de>
9342
9343 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
9344 one worker.
9345
9346 2019-01-07 Tom de Vries <tdevries@suse.de>
9347
9348 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
9349 GOMP_OPENACC_DIM argument.
9350
9351 2019-01-03 Tom de Vries <tdevries@suse.de>
9352
9353 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
9354 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
9355
9356 2019-01-01 Jakub Jelinek <jakub@redhat.com>
9357
9358 Update copyright years.
9359
9360 2019-01-01 Jakub Jelinek <jakub@redhat.com>
9361
9362 * libgomp.texi: Bump @copying's copyright year.
9363
9364 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
9365
9366 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
9367 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
9368 (GOACC_declare): Redefine the "device" argument to "flags".
9369
9370 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
9371 Cesar Philippidis <cesar@codesourcery.com>
9372
9373 * target.c (struct gomp_coalesce_chunk): New structure.
9374 (struct gomp_coalesce_buf): Update the chunks member to use that
9375 type. Adjust all users.
9376
9377 2018-12-19 Tom de Vries <tdevries@suse.de>
9378
9379 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
9380 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
9381 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
9382
9383 2018-12-19 Tom de Vries <tdevries@suse.de>
9384
9385 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
9386 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
9387 gcc/testsuite/gcc.dg/goacc.
9388 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
9389
9390 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
9391 Chung-Lin Tang <cltang@codesourcery.com>
9392
9393 * oacc-mem.c (acc_present_or_create): Remove definition and change
9394 to alias of acc_create.
9395 (acc_present_or_copyin): Remove definition and change to alias of
9396 acc_copyin.
9397 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
9398 of acc_present_or_create.
9399 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
9400 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
9401 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
9402 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
9403 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
9404 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
9405 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
9406 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
9407 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
9408 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
9409 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
9410 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
9411 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
9412 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
9413 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
9414 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
9415
9416 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
9417
9418 PR libgomp/88495
9419 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
9420 "identical parameters".
9421 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
9422 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
9423
9424 PR libgomp/88484
9425 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
9426 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
9427
9428 PR libgomp/88407
9429 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
9430 (nvptx_wait_async): Unseen async-argument is a no-op.
9431 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
9432 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
9433 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9434 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
9435 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
9436 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
9437 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
9438 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
9439 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
9440
9441 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
9442 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9443
9444 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
9445
9446 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
9447 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9448 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
9449
9450 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
9451
9452 PR libgomp/88370
9453 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
9454 (acc_set_cuda_stream): Clarify.
9455 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
9456 "async_valid_p".
9457 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
9458 acc_async_sync".
9459 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
9460 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
9461 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
9462 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
9463
9464 2018-12-14 Tom de Vries <tdevries@suse.de>
9465
9466 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
9467 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
9468 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
9469 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
9470 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
9471
9472 2018-12-13 Tom de Vries <tdevries@suse.de>
9473
9474 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
9475 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
9476 * fortran.c (omp_display_affinity_): ... here.
9477 * libgomp.h (gomp_print_string): Declare.
9478 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
9479 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
9480 write.
9481
9482 2018-12-13 Jakub Jelinek <jakub@redhat.com>
9483
9484 PR libgomp/88460
9485 * testsuite/libgomp.c++/for-24.C (results): Include it in
9486 omp declare target region.
9487 (main): Use map (always, tofrom: results) instead of
9488 map (tofrom: results).
9489
9490 2018-12-12 Jakub Jelinek <jakub@redhat.com>
9491
9492 PR fortran/88463
9493 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
9494 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
9495
9496 * testsuite/libgomp.c-c++-common/for-16.c: New test.
9497
9498 2018-12-12 Andreas Schwab <schwab@suse.de>
9499
9500 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
9501 clobbered.
9502
9503 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
9504
9505 PR fortran/88411
9506 * testsuite/libgomp.fortran/async_io_8.f90: New test.
9507
9508 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
9509 Jakub Jelinek <jakub@redhat.com>
9510
9511 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
9512 devicep->host2dev_func.
9513
9514 2018-12-08 Jakub Jelinek <jakub@redhat.com>
9515
9516 PR libgomp/87995
9517 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
9518 tls_runtime effective target.
9519 (t): New threadprivate variable.
9520 (main): Set t in threads which execute iterations of the worksharing
9521 loop. Propagate that to the task after the loop and don't abort
9522 if the current taskgroup hasn't been cancelled.
9523
9524 2018-12-02 Jakub Jelinek <jakub@redhat.com>
9525
9526 * testsuite/libgomp.c/task-reduction-3.c: New test.
9527
9528 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
9529
9530 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
9531
9532 PR libgomp/88288
9533 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
9534 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
9535
9536 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
9537
9538 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
9539
9540 2018-10-19 Richard Biener <rguenther@suse.de>
9541
9542 PR tree-optimization/88182
9543 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
9544
9545 2018-11-26 Jakub Jelinek <jakub@redhat.com>
9546
9547 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
9548 (RUNTEST): Don't define.
9549 (RUNTESTDEFAULTFLAGS): Add.
9550 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
9551 (distclean-am): Depend on distclean-DEJAGNU.
9552 (check-am): If -j% option is present in MFLAGS and if
9553 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
9554 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
9555 * testsuite/Makefile.in: Regenerated.
9556
9557 2018-11-26 Richard Biener <rguenther@suse.de>
9558
9559 PR tree-optimization/88182
9560 * testsuite/libgomp.c++/pr88182.C: New testcase.
9561
9562 2018-11-20 Jakub Jelinek <jakub@redhat.com>
9563
9564 PR bootstrap/88106
9565 * config/mingw32/affinity-fmt.c: New file.
9566
9567 2018-11-09 Jakub Jelinek <jakub@redhat.com>
9568
9569 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
9570 (gomp_display_affinity): Use __builtin_choose_expr to handle
9571 properly handle argument having integral, or pointer or some other
9572 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
9573 with uint64_t type instead of %llx and unsigned long long.
9574
9575 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
9576 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
9577
9578 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9579
9580 * affinity.c: Include <string.h>, <stdio.h>.
9581 (gomp_display_affinity_place): Remove cpusetp.
9582 * teams.c: Include <limits.h>.
9583
9584 2018-11-08 Jakub Jelinek <jakub@redhat.com>
9585
9586 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
9587 in_reduction clause for s[0].
9588
9589 * affinity.c (gomp_display_affinity_place): New function.
9590 * affinity-fmt.c: New file.
9591 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
9592 * config/linux/affinity.c (gomp_display_affinity_place): New function.
9593 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
9594 Move these functions to ...
9595 * config/nvptx/teams.c: ... here. New file.
9596 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
9597 New functions.
9598 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
9599 functions.
9600 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
9601 and _aligned_malloc.
9602 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
9603 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
9604 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
9605 gomp_affinity_format_len): New variables.
9606 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
9607 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
9608 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
9609 modifiers. Display (non-default) chunk sizes. Print
9610 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
9611 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
9612 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
9613 * fortran.c: Include stdio.h and string.h.
9614 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
9615 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
9616 (omp_set_affinity_format_, omp_get_affinity_format_,
9617 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
9618 omp_pause_resource_all_): New functions.
9619 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
9620 switch.
9621 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
9622 functions to ...
9623 * teams.c: ... here. New file.
9624 * libgomp_g.h: Include gstdint.h.
9625 (GOMP_loop_nonmonotonic_runtime_start,
9626 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
9627 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
9628 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
9629 GOMP_parallel_loop_nonmonotonic_runtime,
9630 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9631 GOMP_loop_ull_nonmonotonic_runtime_start,
9632 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
9633 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
9634 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9635 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
9636 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
9637 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9638 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
9639 GOMP_teams_reg): Declare.
9640 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
9641 gomp_aligned_alloc uses fallback implementation.
9642 (gomp_aligned_alloc, gomp_aligned_free): Declare.
9643 (enum gomp_schedule_type): Add GFS_MONOTONIC.
9644 (struct gomp_doacross_work_share): Add extra field.
9645 (struct gomp_work_share): Add task_reductions field.
9646 (struct gomp_taskgroup): Add workshare and reductions fields.
9647 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
9648 (gomp_thread_handle): New typedef.
9649 (gomp_display_affinity_place, gomp_set_affinity_format,
9650 gomp_display_string, gomp_display_affinity,
9651 gomp_display_affinity_thread): Declare.
9652 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
9653 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
9654 gomp_workshare_task_reduction_register): Declare.
9655 (gomp_team_start): Add taskgroup argument.
9656 (gomp_pause_host): Declare.
9657 (gomp_init_work_share, gomp_work_share_start): Change bool argument
9658 to size_t.
9659 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
9660 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
9661 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
9662 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
9663 GOMP_loop_ull_doacross_start,
9664 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
9665 GOMP_loop_maybe_nonmonotonic_runtime_next,
9666 GOMP_loop_maybe_nonmonotonic_runtime_start,
9667 GOMP_loop_nonmonotonic_runtime_next,
9668 GOMP_loop_nonmonotonic_runtime_start,
9669 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9670 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
9671 GOMP_loop_ull_nonmonotonic_runtime_next,
9672 GOMP_loop_ull_nonmonotonic_runtime_start,
9673 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9674 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
9675 GOMP_taskgroup_reduction_register,
9676 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9677 GOMP_teams_reg and GOMP_taskwait_depend.
9678 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
9679 omp_{capture,display}_affinity{,_}, and
9680 omp_[gs]et_affinity_format{,_}.
9681 * loop.c: Include string.h.
9682 (GOMP_loop_runtime_next): Add ialias.
9683 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9684 (gomp_loop_static_start, gomp_loop_dynamic_start,
9685 gomp_loop_guided_start, gomp_loop_ordered_static_start,
9686 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
9687 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
9688 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
9689 or gomp_doacross_init callers.
9690 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
9691 GOMP_loop_doacross_start): New functions.
9692 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
9693 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
9694 Mask off GFS_MONOTONIC bit.
9695 (GOMP_loop_maybe_nonmonotonic_runtime_next,
9696 GOMP_loop_maybe_nonmonotonic_runtime_start,
9697 GOMP_loop_nonmonotonic_runtime_next,
9698 GOMP_loop_nonmonotonic_runtime_start,
9699 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9700 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
9701 functions.
9702 (gomp_parallel_loop_start): Pass NULL as taskgroup to
9703 gomp_team_start.
9704 * loop_ull.c: Include string.h.
9705 (GOMP_loop_ull_runtime_next): Add ialias.
9706 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9707 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
9708 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
9709 gomp_loop_ull_ordered_dynamic_start,
9710 gomp_loop_ull_ordered_guided_start,
9711 gomp_loop_ull_doacross_static_start,
9712 gomp_loop_ull_doacross_dynamic_start,
9713 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
9714 and gomp_doacross_ull_init callers.
9715 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
9716 GOMP_loop_ull_doacross_start): New functions.
9717 (GOMP_loop_ull_runtime_start,
9718 GOMP_loop_ull_ordered_runtime_start,
9719 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
9720 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9721 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
9722 GOMP_loop_ull_nonmonotonic_runtime_next,
9723 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
9724 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
9725 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
9726 (omp_pause_resource_t, omp_depend_t): New typedefs.
9727 (enum omp_lock_hint_t): Renamed to ...
9728 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
9729 enumerators using numbers and omp_lock_hint_* as their aliases.
9730 (omp_lock_hint_t): New typedef. Rename to ...
9731 (omp_sync_hint_t): ... this.
9732 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
9733 omp_sync_hint_t instead of omp_lock_hint_t.
9734 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9735 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9736 Declare.
9737 (omp_target_is_present, omp_target_disassociate_ptr):
9738 Change first argument from void * to const void *.
9739 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
9740 from void * to const void *.
9741 (omp_target_associate_ptr): Change first and second arguments from
9742 void * to const void *.
9743 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
9744 omp_pause_hard): New parameters.
9745 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9746 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9747 New interfaces.
9748 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
9749 omp_pause_hard): New parameters.
9750 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9751 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9752 New externals.
9753 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
9754 EXTRA argument. If not needed to prepare array, if extra is 0,
9755 clear ws->doacross, otherwise allocate just doacross structure and
9756 extra payload. If array is needed, allocate also extra payload.
9757 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
9758 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
9759 doacross == NULL.
9760 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
9761 gomp_team_start.
9762 (GOMP_parallel): Likewise. Formatting fix.
9763 (GOMP_parallel_reductions): New function.
9764 (GOMP_cancellation_point): If taskgroup has workshare
9765 flag set, check cancelled of prev taskgroup if any.
9766 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
9767 on prev taskgroup if any.
9768 * sections.c: Include string.h.
9769 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9770 (GOMP_sections_start): Adjust gomp_work_share_start caller.
9771 (GOMP_sections2_start): New function.
9772 (GOMP_parallel_sections_start, GOMP_parallel_sections):
9773 Pass NULL as taskgroup to gomp_team_start.
9774 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
9775 gomp_work_share_start callers.
9776 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
9777 If taskgroup has workshare flag set, check cancelled on prev
9778 taskgroup if any. Guard all cancellation tests with
9779 gomp_cancel_var test.
9780 (omp_target_is_present, omp_target_disassociate_ptr):
9781 Change ptr argument from void * to const void *.
9782 (omp_target_memcpy): Change src argument from void * to const void *.
9783 (omp_target_memcpy_rect): Likewise.
9784 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
9785 instead of char * where needed.
9786 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
9787 from void * to const void *.
9788 (omp_pause_resource, omp_pause_resource_all): New functions.
9789 * task.c (gomp_task_handle_depend): Handle new depend array format
9790 in addition to the old. Handle mutexinoutset kinds the same as
9791 inout for now, handle unspecified kinds.
9792 (gomp_create_target_task): If taskgroup has workshare flag set, check
9793 cancelled on prev taskgroup if any. Guard all cancellation tests with
9794 gomp_cancel_var test. Handle new depend array format count in
9795 addition to the old.
9796 (GOMP_task): Likewise. Adjust function comment.
9797 (gomp_task_run_pre): If taskgroup has workshare flag set, check
9798 cancelled on prev taskgroup if any. Guard all cancellation tests with
9799 gomp_cancel_var test.
9800 (GOMP_taskwait_depend): New function.
9801 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
9802 format in addition to the old. Handle mutexinoutset kinds the same as
9803 inout for now, handle unspecified kinds. Fix a function comment typo.
9804 (gomp_taskgroup_init): New function.
9805 (GOMP_taskgroup_start): Use it.
9806 (gomp_reduction_register, gomp_create_artificial_team,
9807 GOMP_taskgroup_reduction_register,
9808 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9809 gomp_parallel_reduction_register,
9810 gomp_workshare_task_reduction_register,
9811 gomp_workshare_taskgroup_start,
9812 GOMP_workshare_task_reduction_unregister): New functions.
9813 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
9814 check cancelled on prev taskgroup if any. Guard all cancellation
9815 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
9816 by calling GOMP_taskgroup_reduction_register.
9817 * team.c (gomp_thread_attr): Remove comment.
9818 (struct gomp_thread_start_data): Add handle field.
9819 (gomp_thread_start): Call pthread_detach.
9820 (gomp_new_team): Adjust gomp_init_work_share caller.
9821 (gomp_free_pool_helper): Call pthread_detach.
9822 (gomp_team_start): Add taskgroup argument, initialize implicit
9823 tasks' taskgroup field to that. Don't call
9824 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
9825 (gomp_team_end): Determine nesting by thr->ts.level != 0
9826 rather than thr->ts.team != NULL.
9827 (gomp_pause_pool_helper, gomp_pause_host): New functions.
9828 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
9829 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
9830 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
9831 if more than 1 allocate also extra payload at the end of array. Never
9832 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
9833 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
9834 return true instead of ws.
9835 * Makefile.in: Regenerated.
9836 * configure: Regenerated.
9837 * config.h.in: Regenerated.
9838 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
9839 in some cases.
9840 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
9841 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
9842 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
9843 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
9844 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
9845 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
9846 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
9847 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
9848 * testsuite/libgomp.c-c++-common/for-10.c: New test.
9849 * testsuite/libgomp.c-c++-common/for-11.c: New test.
9850 * testsuite/libgomp.c-c++-common/for-12.c: New test.
9851 * testsuite/libgomp.c-c++-common/for-13.c: New test.
9852 * testsuite/libgomp.c-c++-common/for-14.c: New test.
9853 * testsuite/libgomp.c-c++-common/for-15.c: New test.
9854 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
9855 define a different N(test), don't define N(f0) to N(f14), but instead
9856 define N(f20) to N(f34) using != comparisons.
9857 * testsuite/libgomp.c-c++-common/for-7.c: New test.
9858 * testsuite/libgomp.c-c++-common/for-8.c: New test.
9859 * testsuite/libgomp.c-c++-common/for-9.c: New test.
9860 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
9861 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
9862 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
9863 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
9864 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
9865 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
9866 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
9867 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
9868 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
9869 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
9870 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
9871 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
9872 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
9873 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
9874 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
9875 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
9876 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
9877 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
9878 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
9879 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
9880 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
9881 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
9882 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
9883 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
9884 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
9885 * testsuite/libgomp.c++/depend-1.C: New test.
9886 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
9887 * testsuite/libgomp.c++/depobj-1.C: New test.
9888 * testsuite/libgomp.c++/for-16.C: New test.
9889 * testsuite/libgomp.c++/for-21.C: New test.
9890 * testsuite/libgomp.c++/for-22.C: New test.
9891 * testsuite/libgomp.c++/for-23.C: New test.
9892 * testsuite/libgomp.c++/for-24.C: New test.
9893 * testsuite/libgomp.c++/for-25.C: New test.
9894 * testsuite/libgomp.c++/for-26.C: New test.
9895 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
9896 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
9897 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
9898 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
9899 * testsuite/libgomp.c++/task-reduction-10.C: New test.
9900 * testsuite/libgomp.c++/task-reduction-11.C: New test.
9901 * testsuite/libgomp.c++/task-reduction-12.C: New test.
9902 * testsuite/libgomp.c++/task-reduction-13.C: New test.
9903 * testsuite/libgomp.c++/task-reduction-14.C: New test.
9904 * testsuite/libgomp.c++/task-reduction-15.C: New test.
9905 * testsuite/libgomp.c++/task-reduction-16.C: New test.
9906 * testsuite/libgomp.c++/task-reduction-17.C: New test.
9907 * testsuite/libgomp.c++/task-reduction-18.C: New test.
9908 * testsuite/libgomp.c++/task-reduction-19.C: New test.
9909 * testsuite/libgomp.c/task-reduction-1.c: New test.
9910 * testsuite/libgomp.c++/task-reduction-1.C: New test.
9911 * testsuite/libgomp.c/task-reduction-2.c: New test.
9912 * testsuite/libgomp.c++/task-reduction-2.C: New test.
9913 * testsuite/libgomp.c++/task-reduction-3.C: New test.
9914 * testsuite/libgomp.c++/task-reduction-4.C: New test.
9915 * testsuite/libgomp.c++/task-reduction-5.C: New test.
9916 * testsuite/libgomp.c++/task-reduction-6.C: New test.
9917 * testsuite/libgomp.c++/task-reduction-7.C: New test.
9918 * testsuite/libgomp.c++/task-reduction-8.C: New test.
9919 * testsuite/libgomp.c++/task-reduction-9.C: New test.
9920 * testsuite/libgomp.c/teams-1.c: New test.
9921 * testsuite/libgomp.c/teams-2.c: New test.
9922 * testsuite/libgomp.c/thread-limit-4.c: New test.
9923 * testsuite/libgomp.c/thread-limit-5.c: New test.
9924 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
9925
9926 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
9927
9928 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
9929 acc_memcpy_to/from_device functions, now with async parameter.
9930 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
9931 (acc_memcpy_from_device): Likewise.
9932 (acc_memcpy_to_device_async): New API function.
9933 (acc_memcpy_from_device_async): Likewise.
9934 (present_create_copy): Add async parameter and async setting/unsetting.
9935 (acc_create): Adjust present_create_copy call.
9936 (acc_copyin): Likewise.
9937 (acc_present_or_create): Likewise.
9938 (acc_present_or_copyin): Likewise.
9939 (acc_create_async): New API function.
9940 (acc_copyin_async): New API function.
9941 (delete_copyout): Add async parameter and async setting/unsetting.
9942 (acc_delete): Adjust delete_copyout call.
9943 (acc_copyout): Likewise.
9944 (acc_delete_async): New API function.
9945 (acc_copyout_async): Likewise.
9946 (update_dev_host): Add async parameter and async setting/unsetting.
9947 (acc_update_device): Adjust update_dev_host call.
9948 (acc_update_self): Likewise.
9949 (acc_update_device_async): New API function.
9950 (acc_update_self_async): Likewise.
9951 * openacc.h (acc_copyin_async): Declare new API function.
9952 (acc_create_async): Likewise.
9953 (acc_copyout_async): Likewise.
9954 (acc_delete_async): Likewise.
9955 (acc_update_device_async): Likewise.
9956 (acc_update_self_async): Likewise.
9957 (acc_memcpy_to_device_async): Likewise.
9958 (acc_memcpy_from_device_async): Likewise.
9959 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
9960 (acc_copyin_async_64_h): New subroutine.
9961 (acc_copyin_async_array_h): New subroutine.
9962 (acc_create_async_32_h): New subroutine.
9963 (acc_create_async_64_h): New subroutine.
9964 (acc_create_async_array_h): New subroutine.
9965 (acc_copyout_async_32_h): New subroutine.
9966 (acc_copyout_async_64_h): New subroutine.
9967 (acc_copyout_async_array_h): New subroutine.
9968 (acc_delete_async_32_h): New subroutine.
9969 (acc_delete_async_64_h): New subroutine.
9970 (acc_delete_async_array_h): New subroutine.
9971 (acc_update_device_async_32_h): New subroutine.
9972 (acc_update_device_async_64_h): New subroutine.
9973 (acc_update_device_async_array_h): New subroutine.
9974 (acc_update_self_async_32_h): New subroutine.
9975 (acc_update_self_async_64_h): New subroutine.
9976 (acc_update_self_async_array_h): New subroutine.
9977 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
9978 (acc_copyin_async_64_h): New subroutine.
9979 (acc_copyin_async_array_h): New subroutine.
9980 (acc_create_async_32_h): New subroutine.
9981 (acc_create_async_64_h): New subroutine.
9982 (acc_create_async_array_h): New subroutine.
9983 (acc_copyout_async_32_h): New subroutine.
9984 (acc_copyout_async_64_h): New subroutine.
9985 (acc_copyout_async_array_h): New subroutine.
9986 (acc_delete_async_32_h): New subroutine.
9987 (acc_delete_async_64_h): New subroutine.
9988 (acc_delete_async_array_h): New subroutine.
9989 (acc_update_device_async_32_h): New subroutine.
9990 (acc_update_device_async_64_h): New subroutine.
9991 (acc_update_device_async_array_h): New subroutine.
9992 (acc_update_self_async_32_h): New subroutine.
9993 (acc_update_self_async_64_h): New subroutine.
9994 (acc_update_self_async_array_h): New subroutine.
9995 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
9996 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
9997 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
9998 acc_memcpy_to_device_async*, acc_update_device_async*, and
9999 acc_update_self_async* entries.
10000 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
10001 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
10002 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
10003
10004 2018-10-31 Joseph Myers <joseph@codesourcery.com>
10005
10006 PR bootstrap/82856
10007 * Makefile.am: Include multilib.am
10008 (AUTOMAKE_OPTIONS): Add info-in-builddir.
10009 (CLEANFILES): Remove libgomp.info.
10010 * configure.ac: Remove AC_PREREQ.
10011 * testsuite/Makefile.am (RUNTEST): Remove quotes.
10012 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
10013 Regenerate.
10014
10015 2018-10-29 Joseph Myers <joseph@codesourcery.com>
10016 Julian Brown <julian@codesourcery.com>
10017
10018 * testsuite/libgomp.oacc-c++/this.C: New.
10019
10020 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
10021
10022 * plugin/plugin-nvptx.c (struct cuda_map): New.
10023 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
10024 h_tail with (cuda_map *) map.
10025 (cuda_map_create): New function.
10026 (cuda_map_destroy): New function.
10027 (map_init): Update to use a linked list of cuda_map objects.
10028 (map_fini): Likewise.
10029 (map_pop): Likewise.
10030 (map_push): Likewise. Return CUdeviceptr instead of void.
10031 (init_streams_for_device): Remove stales references to ptx_stream
10032 members.
10033 (select_stream_for_async): Likewise.
10034 (nvptx_exec): Update call to map_init.
10035
10036 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
10037 Julian Brown <julian@codesourcery.com>
10038
10039 PR middle-end/86336
10040 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
10041
10042 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
10043 Thomas Koenig <tkoenig@gcc.gnu.org>
10044
10045 PR fortran/25829
10046 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10047 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10048 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10049 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10050 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10051 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10052 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10053
10054 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
10055 Tom de Vries <tdevries@suse.de>
10056
10057 PR target/85590
10058 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
10059 (cuOccupancyMaxPotentialBlockSize): Declare.
10060 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
10061 CUDA_ONE_CALL_MAYBE_NULL.
10062 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
10063 CUoccupancyB2DSize and declare
10064 cuOccupancyMaxPotentialBlockSize.
10065 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
10066 default num_gangs and num_workers when the driver supports it.
10067
10068 2018-08-08 Tom de Vries <tdevries@suse.de>
10069
10070 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
10071 CUDA_ONE_CALL_MAYBE_NULL.
10072 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
10073 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
10074 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
10075 are not found.
10076
10077 2018-08-08 Tom de Vries <tdevries@suse.de>
10078
10079 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
10080 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
10081 present.
10082
10083 2018-08-08 Tom de Vries <tdevries@suse.de>
10084
10085 * plugin/plugin-nvptx.c
10086 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
10087 (nvptx_open_device): Use
10088 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
10089
10090 2018-08-08 Tom de Vries <tdevries@suse.de>
10091
10092 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
10093 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
10094
10095 2018-08-07 Tom de Vries <tdevries@suse.de>
10096
10097 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
10098 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
10099 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
10100 corresponding call in CUDA_ONE_CALL. Add def/undef of
10101 CUDA_ONE_CALL_MAYBE_NULL.
10102 (CUDA_CALL_EXISTS): Define.
10103
10104 2018-08-07 Tom de Vries <tdevries@suse.de>
10105
10106 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
10107 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
10108 corresponding undefs right after.
10109
10110 2018-08-04 Tom de Vries <tdevries@suse.de>
10111
10112 * plugin/configfrag.ac: For --without-cuda-driver, set
10113 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
10114 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
10115 * configure: Regenerate.
10116
10117 2018-08-02 Tom de Vries <tdevries@suse.de>
10118
10119 PR target/86660
10120 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
10121 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
10122 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
10123 Same.
10124 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
10125 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
10126 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
10127
10128 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
10129 Thomas Schwinge <thomas@codesourcery.com>
10130
10131 * config/nvptx/oacc-parallel.c: Truncate.
10132
10133 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
10134 James Norris <jnorris@codesourcery.com>
10135
10136 * plugin/plugin-nvptx.c (struct map): Removed.
10137 (map_init, map_pop): Remove use of struct map.
10138 (map_push): Likewise and change argument list.
10139 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
10140
10141 2018-08-01 Tom de Vries <tdevries@suse.de>
10142
10143 * plugin/cuda-lib.def: New file. Factor out of ...
10144 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
10145 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
10146 using CUDA_CALLS.
10147
10148 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
10149
10150 Revert 'AsyncI/O patch committed'.
10151 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
10152 Thomas Koenig <tkoenig@gcc.gnu.org>
10153
10154 PR fortran/25829
10155 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10156 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10157 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10158 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10159 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10160 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10161 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10162
10163 2018-07-30 Tom de Vries <tdevries@suse.de>
10164
10165 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
10166 (nvptx_exec): Ensure worker and vector default dims don't exceed
10167 targ_fn->max_threads_per_block.
10168
10169 2018-07-30 Tom de Vries <tdevries@suse.de>
10170
10171 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
10172 (nvptx_open_device): Init default_dims for device.
10173 (nvptx_exec): Use default_dims from device.
10174
10175 2018-07-26 Jakub Jelinek <jakub@redhat.com>
10176
10177 PR testsuite/86660
10178 * testsuite/libgomp.c++/for-15.C (results): Include it in
10179 omp declare target region.
10180 (main): Use map (always, tofrom: results) instead of
10181 map (tofrom: results).
10182
10183 PR middle-end/86660
10184 * testsuite/libgomp.c/pr86660.c: New test.
10185
10186 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
10187 Tom de Vries <tdevries@suse.de>
10188
10189 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
10190 sufficient resources to launch a kernel, and give a hint on how to fix
10191 it.
10192
10193 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
10194 Tom de Vries <tdevries@suse.de>
10195
10196 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
10197 max_threads_per_block and max_threads_per_multiprocessor fields.
10198 (nvptx_open_device): Initialize new fields.
10199 (nvptx_exec): Use num_sms, and new fields.
10200
10201 2018-07-26 Tom de Vries <tdevries@suse.de>
10202
10203 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
10204 to correct locations. Remove xfail.
10205
10206 2018-07-26 Tom de Vries <tdevries@suse.de>
10207
10208 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
10209 acc_wait. Move acc_async_test calls to correct locations. Remove
10210 xfail.
10211
10212 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
10213 Thomas Koenig <tkoenig@gcc.gnu.org>
10214
10215 PR fortran/25829
10216 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10217 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10218 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10219 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10220 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10221 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10222 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10223
10224 2018-07-17 Jakub Jelinek <jakub@redhat.com>
10225
10226 PR middle-end/86542
10227 * testsuite/libgomp.c++/pr86542.C: New test.
10228
10229 PR middle-end/86539
10230 * testsuite/libgomp.c++/pr86539.C: New test.
10231
10232 2018-07-11 Jakub Jelinek <jakub@redhat.com>
10233
10234 PR c++/86443
10235 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
10236 (results): Make sure the variable is not inside declare target region.
10237 (qux): Remove unused function.
10238
10239 2018-07-10 Jakub Jelinek <jakub@redhat.com>
10240
10241 PR c++/86443
10242 * testsuite/libgomp.c++/for-15.C: New test.
10243
10244 2018-06-26 Jakub Jelinek <jakub@redhat.com>
10245
10246 PR c++/86291
10247 * testsuite/libgomp.c++/pr86291.C: New test.
10248
10249 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
10250
10251 * libgomp.texi (Top): Move www.openmp.org to https.
10252 (Enabling OpenMP): Ditto.
10253 (omp_get_active_level): Ditto.
10254 (omp_get_ancestor_thread_num): Ditto.
10255 (omp_get_cancellation): Ditto.
10256 (omp_get_default_device): Ditto.
10257 (omp_get_dynamic): Ditto.
10258 (omp_get_level): Ditto.
10259 (omp_get_max_active_levels): Ditto.
10260 (omp_get_max_task_priority): Ditto.
10261 (omp_get_max_threads): Ditto.
10262 (omp_get_nested): Ditto.
10263 (omp_get_num_devices): Ditto.
10264 (omp_get_num_procs): Ditto.
10265 (omp_get_num_teams): Ditto.
10266 (omp_get_num_threads): Ditto.
10267 (omp_get_proc_bind): Ditto.
10268 (omp_get_schedule): Ditto.
10269 (omp_get_team_num): Ditto.
10270 (omp_get_team_size): Ditto.
10271 (omp_get_thread_limit): Ditto.
10272 (omp_get_thread_num): Ditto.
10273 (omp_in_parallel): Ditto.
10274 (omp_in_final): Ditto.
10275 (omp_is_initial_device): Ditto.
10276 (omp_set_default_device): Ditto.
10277 (omp_set_dynamic): Ditto.
10278 (omp_set_max_active_levels): Ditto.
10279 (omp_set_nested): Ditto.
10280 (omp_set_num_threads): Ditto.
10281 (omp_set_schedule): Ditto.
10282 (omp_init_lock): Ditto.
10283 (omp_set_lock): Ditto.
10284 (omp_test_lock): Ditto.
10285 (omp_unset_lock): Ditto.
10286 (omp_destroy_lock): Ditto.
10287 (omp_init_nest_lock): Ditto.
10288 (omp_set_nest_lock): Ditto.
10289 (omp_test_nest_lock): Ditto.
10290 (omp_unset_nest_lock): Ditto.
10291 (omp_destroy_nest_lock): Ditto.
10292 (omp_get_wtick): Ditto.
10293 (omp_get_wtime): Ditto.
10294 (OMP_CANCELLATION): Ditto.
10295 (OMP_DISPLAY_ENV): Ditto.
10296 (OMP_DEFAULT_DEVICE): Ditto.
10297 (OMP_DYNAMIC): Ditto.
10298 (OMP_MAX_ACTIVE_LEVELS): Ditto.
10299 (OMP_MAX_TASK_PRIORITY): Ditto.
10300 (OMP_NESTED): Ditto.
10301 (OMP_NUM_THREADS): Ditto.
10302 (OMP_PROC_BIND): Ditto.
10303 (OMP_PLACES): Ditto.
10304 (OMP_STACKSIZE): Ditto.
10305 (OMP_SCHEDULE): Ditto.
10306 (OMP_THREAD_LIMIT): Ditto.
10307 (OMP_WAIT_POLICY): Ditto.
10308
10309 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
10310 James Norris <jnorris@codesourcery.com>
10311 Julian Brown <julian@codesourcery.com>
10312 Thomas Schwinge <thomas@codesourcery.com>
10313 Tom de Vries <tom@codesourcery.com>
10314
10315 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
10316 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
10317 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
10318 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
10319 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
10320 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
10321 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
10322 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
10323 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
10324 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
10325 Likewise.
10326 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
10327 Likewise.
10328 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
10329 Likewise.
10330 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
10331 Likewise.
10332 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
10333 Likewise.
10334 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
10335 Likewise.
10336 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
10337 Likewise.
10338 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
10339 Likewise.
10340 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
10341 Likewise.
10342 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
10343 Likewise.
10344 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
10345 Likewise.
10346 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
10347 Likewise.
10348 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
10349 Likewise.
10350 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
10351 Likewise.
10352 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
10353 Likewise.
10354 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
10355 Likewise.
10356 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
10357 Likewise.
10358 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
10359 Likewise.
10360 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
10361 Likewise.
10362 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
10363 Likewise.
10364 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
10365 Likewise.
10366 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
10367 Likewise.
10368 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
10369 Likewise.
10370 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
10371 Likewise.
10372 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
10373 Likewise.
10374 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
10375 Likewise.
10376 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
10377 Likewise.
10378 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
10379 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
10380 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
10381 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
10382 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
10383 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
10384 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
10385 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
10386 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
10387 Likewise.
10388 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
10389 Likewise.
10390 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
10391 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
10392 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
10393 Likewise.
10394 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
10395 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
10396 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
10397 Likewise.
10398 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
10399 Likewise.
10400 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
10401 Likewise.
10402 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
10403 Likewise.
10404 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
10405 Likewise.
10406 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
10407 Likewise.
10408 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
10409 Likewise.
10410 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
10411 Likewise.
10412 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
10413 Likewise.
10414 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
10415 Likewise.
10416 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
10417 Likewise.
10418 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
10419 Likewise.
10420 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
10421 Likewise.
10422 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
10423 Likewise.
10424 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
10425 Likewise.
10426 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
10427 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
10428 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
10429 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
10430 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
10431 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
10432 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
10433
10434 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
10435 Thomas Schwinge <thomas@codesourcery.com>
10436 Cesar Philippidis <cesar@codesourcery.com>
10437
10438 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
10439 (gomp_acc_remove_pointer): Update declaration.
10440 (gomp_acc_declare_allocate): Declare.
10441 (gomp_remove_var): Declare.
10442 * libgomp.map (OACC_2.5): Define.
10443 * oacc-mem.c (acc_map_data): Update refcount.
10444 (acc_unmap_data): Likewise.
10445 (present_create_copy): Likewise.
10446 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
10447 (acc_copyin): Likewise.
10448 (FLAG_FINALIZE): Define.
10449 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
10450 (acc_delete_finalize): New function.
10451 (acc_delete_finalize_async): New function.
10452 (acc_copyout_finalize): New function.
10453 (acc_copyout_finalize_async): New function.
10454 (gomp_acc_insert_pointer): Update refcounts.
10455 (gomp_acc_remove_pointer): Return if data is not present on the
10456 accelerator.
10457 * oacc-parallel.c (find_pset): Rename to find_pointer.
10458 (find_pointer): Add support for GOMP_MAP_POINTER.
10459 (handle_ftn_pointers): New function.
10460 (GOACC_parallel_keyed): Update refcounts of variables.
10461 (GOACC_enter_exit_data): Add support for finalized data mappings.
10462 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
10463 of fortran arrays.
10464 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
10465 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
10466 for GOMP_MAP_FORCE_FROM.
10467 * openacc.f90 (module openacc_internal): Add
10468 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
10469 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
10470 acc_copyout_finalize and acc_delete_finalize.
10471 (acc_copyout_finalize_32_h): New subroutine.
10472 (acc_copyout_finalize_64_h): New subroutine.
10473 (acc_copyout_finalize_array_h): New subroutine.
10474 (acc_delete_finalize_32_h): New subroutine.
10475 (acc_delete_finalize_64_h): New subroutine.
10476 (acc_delete_finalize_array_h): New subroutine.
10477 * openacc.h (acc_copyout_finalize): Declare.
10478 (acc_copyout_finalize_async): Declare.
10479 (acc_delete_finalize): Declare.
10480 (acc_delete_finalize_async): Declare.
10481 * openacc_lib.h (acc_copyout_finalize): New interface.
10482 (acc_delete_finalize): New interface.
10483 * target.c (gomp_map_vars): Update dynamic_refcount.
10484 (gomp_remove_var): New function.
10485 (gomp_unmap_vars): Use it.
10486 (gomp_unload_image_from_device): Likewise.
10487 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
10488 case to utilize OpenACC 2.5 data clause semantics.
10489 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10490 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10491 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10492 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10493 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10494 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10495 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10496 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10497 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10498 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
10499 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
10500 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
10501 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
10502 utilize OpenACC 2.5 data clause semantics.
10503 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10504 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10505 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10506 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10507 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10508 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10509 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10510 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
10511 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10512
10513 2018-05-21 Janus Weil <janus@gcc.gnu.org>
10514
10515 PR fortran/85841
10516 PR testsuite/85865
10517 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
10518 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
10519 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
10520 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
10521 * testsuite/libgomp.fortran/task2.f90: Ditto.
10522 * testsuite/libgomp.fortran/vla1.f90: Ditto.
10523 * testsuite/libgomp.fortran/vla2.f90: Ditto.
10524 * testsuite/libgomp.fortran/vla3.f90: Ditto.
10525 * testsuite/libgomp.fortran/vla4.f90: Ditto.
10526 * testsuite/libgomp.fortran/vla5.f90: Ditto.
10527 * testsuite/libgomp.fortran/vla6.f90: Ditto.
10528 * testsuite/libgomp.fortran/vla8.f90: Ditto.
10529 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
10530 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
10531
10532 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
10533
10534 PR c++/85782
10535 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
10536
10537 2018-05-09 Tom de Vries <tom@codesourcery.com>
10538
10539 PR libgomp/82901
10540 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
10541 to GOACC_enter_exit_data.
10542
10543 2018-05-09 Tom de Vries <tom@codesourcery.com>
10544
10545 PR libgomp/83792
10546 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
10547 (async_synchronous_p): New function.
10548 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
10549 async_valid_p.
10550 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
10551 async_valid_stream_id_p.
10552 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
10553 * oacc-parallel.c (GOACC_parallel_keyed): Same.
10554
10555 2018-05-07 Tom de Vries <tom@codesourcery.com>
10556
10557 PR testsuite/85677
10558 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
10559 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
10560
10561 2018-05-03 Tom de Vries <tom@codesourcery.com>
10562
10563 PR testsuite/85106
10564 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
10565 extra_tool_flags if it contains an -foffload=-fdump-* flag.
10566 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
10567 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
10568
10569 2018-05-02 Tom de Vries <tom@codesourcery.com>
10570
10571 PR libgomp/85411
10572 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
10573 GOMP_OPENACC_DIM ...
10574 * env.c (parse_gomp_openacc_dim): ... here. New function.
10575 (initialize_env): Call parse_gomp_openacc_dim.
10576 (goacc_default_dims): Define.
10577 * libgomp.h (goacc_default_dims): Declare.
10578 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
10579 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
10580 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
10581 GOMP_PLUGIN_acc_default_dim.
10582 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
10583 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
10584
10585 2018-05-02 Tom de Vries <tom@codesourcery.com>
10586
10587 PR testsuite/83791
10588 * testsuite/libgomp.c++/udr-9.C: Update.
10589 * testsuite/libgomp.c++/atomic-16.C: Remove.
10590 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
10591 * testsuite/libgomp.c++/loop-13.C: Remove.
10592 * testsuite/libgomp.c++/loop-14.C: Remove.
10593 * testsuite/libgomp.c++/loop-15.C: Remove.
10594 * testsuite/libgomp.c++/monotonic-1.C: Remove.
10595 * testsuite/libgomp.c++/monotonic-2.C: Remove.
10596 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
10597 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
10598 * testsuite/libgomp.c++/ordered-1.C: Remove.
10599 * testsuite/libgomp.c++/pr45784.C: Remove.
10600 * testsuite/libgomp.c++/pr64824.C: Remove.
10601 * testsuite/libgomp.c++/pr64868.C: Remove.
10602 * testsuite/libgomp.c++/pr66199-1.C: Remove.
10603 * testsuite/libgomp.c++/pr66199-2.C: Remove.
10604 * testsuite/libgomp.c++/pr66199-3.C: Remove.
10605 * testsuite/libgomp.c++/pr66199-4.C: Remove.
10606 * testsuite/libgomp.c++/pr66199-5.C: Remove.
10607 * testsuite/libgomp.c++/pr66199-6.C: Remove.
10608 * testsuite/libgomp.c++/pr66199-7.C: Remove.
10609 * testsuite/libgomp.c++/pr66199-8.C: Remove.
10610 * testsuite/libgomp.c++/pr66199-9.C: Remove.
10611 * testsuite/libgomp.c++/pr69389.C: Remove.
10612 * testsuite/libgomp.c++/simd10.C: Remove.
10613 * testsuite/libgomp.c++/simd11.C: Remove.
10614 * testsuite/libgomp.c++/simd12.C: Remove.
10615 * testsuite/libgomp.c++/simd13.C: Remove.
10616 * testsuite/libgomp.c++/target-1.C: Remove.
10617 * testsuite/libgomp.c++/target-3.C: Remove.
10618 * testsuite/libgomp.c++/target-4.C: Remove.
10619 * testsuite/libgomp.c++/target-5.C: Remove.
10620 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
10621 * testsuite/libgomp.c++/taskloop-1.C: Remove.
10622 * testsuite/libgomp.c++/taskloop-2.C: Remove.
10623 * testsuite/libgomp.c++/taskloop-3.C: Remove.
10624 * testsuite/libgomp.c++/taskloop-4.C: Remove.
10625 * testsuite/libgomp.c++/udr-9.C: Remove.
10626 * testsuite/libgomp.c++/for-10.C: Remove.
10627 * testsuite/libgomp.c++/for-11.C: Remove.
10628 * testsuite/libgomp.c++/for-12.C: Remove.
10629 * testsuite/libgomp.c++/for-13.C: Remove.
10630 * testsuite/libgomp.c++/for-14.C: Remove.
10631 * testsuite/libgomp.c++/for-9.C: Remove.
10632 * testsuite/libgomp.c/atomic-18.c: Move ...
10633 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
10634 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
10635 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
10636 * testsuite/libgomp.c/loop-13.c: Move ...
10637 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
10638 * testsuite/libgomp.c/loop-14.c: Move ...
10639 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
10640 * testsuite/libgomp.c/loop-15.c: Remove.
10641 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
10642 * testsuite/libgomp.c/monotonic-1.c: Move ...
10643 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
10644 * testsuite/libgomp.c/monotonic-2.c: Move ...
10645 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
10646 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
10647 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
10648 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
10649 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
10650 * testsuite/libgomp.c/ordered-4.c: Move ...
10651 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
10652 * testsuite/libgomp.c/pr45784.c: Move ...
10653 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
10654 * testsuite/libgomp.c/pr64824.c: Move ...
10655 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
10656 * testsuite/libgomp.c/pr64868.c: Move ...
10657 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
10658 * testsuite/libgomp.c/pr66199-1.c: Move ...
10659 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
10660 * testsuite/libgomp.c/pr66199-2.c: Move ...
10661 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
10662 * testsuite/libgomp.c/pr66199-3.c: Move ...
10663 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
10664 * testsuite/libgomp.c/pr66199-4.c: Move ...
10665 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
10666 * testsuite/libgomp.c/pr66199-5.c: Move ...
10667 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
10668 * testsuite/libgomp.c/pr66199-6.c: Move ...
10669 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
10670 * testsuite/libgomp.c/pr66199-7.c: Move ...
10671 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
10672 * testsuite/libgomp.c/pr66199-8.c: Move ...
10673 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
10674 * testsuite/libgomp.c/pr66199-9.c: Move ...
10675 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
10676 * testsuite/libgomp.c/pr69389.c: Move ...
10677 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
10678 * testsuite/libgomp.c/simd-14.c: Move ...
10679 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
10680 * testsuite/libgomp.c/simd-15.c: Move ...
10681 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
10682 * testsuite/libgomp.c/simd-16.c: Move ...
10683 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
10684 * testsuite/libgomp.c/simd-17.c: Move ...
10685 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
10686 * testsuite/libgomp.c/target-1.c: Move ...
10687 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
10688 * testsuite/libgomp.c/target-10.c: Move ...
10689 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
10690 * testsuite/libgomp.c/target-13.c: Move ...
10691 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
10692 * testsuite/libgomp.c/target-2.c: Move ...
10693 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
10694 * testsuite/libgomp.c/taskgroup-1.c: Move ...
10695 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
10696 * testsuite/libgomp.c/taskloop-1.c: Move ...
10697 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
10698 * testsuite/libgomp.c/taskloop-2.c: Move ...
10699 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
10700 * testsuite/libgomp.c/taskloop-3.c: Move ...
10701 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
10702 * testsuite/libgomp.c/taskloop-4.c: Move ...
10703 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
10704 * testsuite/libgomp.c/udr-1.c: Move ...
10705 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
10706 * testsuite/libgomp.c/for-1.c: Move ...
10707 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
10708 * testsuite/libgomp.c/for-1.h: Move ...
10709 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
10710 * testsuite/libgomp.c/for-2.c: Move ...
10711 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
10712 * testsuite/libgomp.c/for-2.h: Move ...
10713 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
10714 * testsuite/libgomp.c/for-3.c: Move ...
10715 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
10716 * testsuite/libgomp.c/for-4.c: Move ...
10717 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
10718 * testsuite/libgomp.c/for-5.c: Move ...
10719 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
10720 * testsuite/libgomp.c/for-6.c: Move ...
10721 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
10722
10723 2018-05-02 Tom de Vries <tom@codesourcery.com>
10724
10725 PR libgomp/82428
10726 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
10727 __builtin_goacc_parlevel_{id,size}.
10728 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
10729 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
10730 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
10731 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
10732 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
10733 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
10734 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
10735 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
10736 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
10737 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
10738 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
10739 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
10740 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
10741 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
10742 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
10743 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
10744 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
10745 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
10746 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
10747 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
10748 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
10749 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
10750 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
10751
10752 2018-05-02 Tom de Vries <tom@codesourcery.com>
10753
10754 PR testsuite/85106
10755 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
10756
10757 2018-05-02 Tom de Vries <tom@codesourcery.com>
10758
10759 PR testsuite/85106
10760 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
10761
10762 2018-04-29 Julian Brown <julian@codesourcery.com>
10763 Tom de Vries <tom@codesourcery.com>
10764
10765 PR testsuite/85527
10766 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
10767 arbitrary order for iterations of atomic subtract check.
10768
10769 2018-04-28 Tom de Vries <tom@codesourcery.com>
10770
10771 PR testsuite/85527
10772 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
10773 atomic capture results obtained in parallel loop to an array, instead of
10774 to a scalar.
10775
10776 2018-04-26 Tom de Vries <tom@codesourcery.com>
10777
10778 PR libgomp/84020
10779 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
10780 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
10781 (process_GOMP_NVPTX_JIT): New function.
10782 (link_ptx): Use process_GOMP_NVPTX_JIT.
10783
10784 2018-04-26 Richard Biener <rguenther@suse.de>
10785 Tom de Vries <tom@codesourcery.com>
10786
10787 PR lto/85422
10788 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
10789
10790 2018-04-26 Tom de Vries <tom@codesourcery.com>
10791
10792 PR target/85519
10793 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
10794 recursion depth from 25 to 23.
10795 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
10796
10797 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
10798
10799 * configure: Regenerated.
10800
10801 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
10802 Tom de Vries <tom@codesourcery.com>
10803
10804 PR target/85445
10805 * testsuite/libgomp.oacc-c++/ref-1.C: New.
10806
10807 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
10808
10809 PR libgomp/85463
10810 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
10811 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
10812 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
10813 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
10814 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
10815 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
10816
10817 PR libfortran/85166
10818 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
10819 abort".
10820 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
10821
10822 2018-04-19 Jakub Jelinek <jakub@redhat.com>
10823
10824 * configure: Regenerated.
10825
10826 2018-04-18 David Malcolm <dmalcolm@redhat.com>
10827
10828 PR jit/85384
10829 * configure: Regenerate.
10830
10831 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
10832 Tom de Vries <tom@codesourcery.com>
10833
10834 PR middle-end/84955
10835 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
10836 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
10837
10838 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
10839
10840 PR fortran/83064
10841 PR testsuite/85346
10842 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
10843 test from gfortran.dg to here.
10844
10845 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
10846
10847 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
10848 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
10849
10850 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
10851
10852 PR middle-end/84955
10853 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
10854 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
10855
10856 2018-04-05 Tom de Vries <tom@codesourcery.com>
10857
10858 PR target/85204
10859 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
10860
10861 2018-03-26 Tom de Vries <tom@codesourcery.com>
10862
10863 PR tree-optimization/85063
10864 * testsuite/libgomp.c/switch-conversion-2.c: New test.
10865 * testsuite/libgomp.c/switch-conversion.c: New test.
10866 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
10867 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
10868
10869 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
10870
10871 PR fortran/84381
10872 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
10873 call abort by STOP n.
10874 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
10875 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
10876 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
10877 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
10878 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
10879 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
10880 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
10881 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
10882 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
10883 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
10884 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
10885 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
10886 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
10887 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
10888 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
10889 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
10890 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
10891 * testsuite/libgomp.fortran/associate1.f90: Likewise.
10892 * testsuite/libgomp.fortran/associate2.f90: Likewise.
10893 * testsuite/libgomp.fortran/associate3.f90: Likewise.
10894 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
10895 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
10896 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
10897 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
10898 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
10899 * testsuite/libgomp.fortran/character1.f90: Likewise.
10900 * testsuite/libgomp.fortran/character2.f90: Likewise.
10901 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
10902 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
10903 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
10904 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
10905 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
10906 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
10907 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
10908 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
10909 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
10910 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
10911 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
10912 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
10913 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
10914 * testsuite/libgomp.fortran/do1.f90: Likewise.
10915 * testsuite/libgomp.fortran/do2.f90: Likewise.
10916 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
10917 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
10918 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
10919 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
10920 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
10921 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
10922 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
10923 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
10924 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
10925 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
10926 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
10927 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
10928 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
10929 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
10930 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
10931 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
10932 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
10933 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
10934 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
10935 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
10936 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
10937 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
10938 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
10939 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
10940 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
10941 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
10942 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
10943 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
10944 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
10945 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
10946 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
10947 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
10948 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
10949 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
10950 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
10951 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
10952 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
10953 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
10954 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
10955 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
10956 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
10957 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
10958 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
10959 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
10960 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
10961 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
10962 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
10963 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
10964 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
10965 * testsuite/libgomp.fortran/lib1.f90: Likewise.
10966 * testsuite/libgomp.fortran/lib2.f: Likewise.
10967 * testsuite/libgomp.fortran/lib3.f: Likewise.
10968 * testsuite/libgomp.fortran/lib4.f90: Likewise.
10969 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
10970 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
10971 * testsuite/libgomp.fortran/nested1.f90: Likewise.
10972 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
10973 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
10974 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
10975 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
10976 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
10977 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
10978 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
10979 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
10980 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
10981 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
10982 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
10983 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
10984 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
10985 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
10986 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
10987 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
10988 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
10989 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
10990 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
10991 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
10992 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
10993 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
10994 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
10995 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
10996 * testsuite/libgomp.fortran/pr25162.f: Likewise.
10997 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
10998 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
10999 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
11000 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
11001 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
11002 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
11003 * testsuite/libgomp.fortran/pr28390.f: Likewise.
11004 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
11005 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
11006 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
11007 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
11008 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
11009 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
11010 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
11011 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
11012 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
11013 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
11014 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
11015 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
11016 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
11017 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
11018 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
11019 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
11020 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
11021 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
11022 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
11023 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
11024 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
11025 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
11026 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
11027 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
11028 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
11029 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11030 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
11031 * testsuite/libgomp.fortran/reference1.f90: Likewise.
11032 * testsuite/libgomp.fortran/reference2.f90: Likewise.
11033 * testsuite/libgomp.fortran/retval1.f90: Likewise.
11034 * testsuite/libgomp.fortran/retval2.f90: Likewise.
11035 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
11036 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
11037 * testsuite/libgomp.fortran/simd1.f90: Likewise.
11038 * testsuite/libgomp.fortran/simd2.f90: Likewise.
11039 * testsuite/libgomp.fortran/simd3.f90: Likewise.
11040 * testsuite/libgomp.fortran/simd4.f90: Likewise.
11041 * testsuite/libgomp.fortran/simd5.f90: Likewise.
11042 * testsuite/libgomp.fortran/simd6.f90: Likewise.
11043 * testsuite/libgomp.fortran/simd7.f90: Likewise.
11044 * testsuite/libgomp.fortran/stack.f90: Likewise.
11045 * testsuite/libgomp.fortran/strassen.f90: Likewise.
11046 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
11047 * testsuite/libgomp.fortran/tabs2.f: Likewise.
11048 * testsuite/libgomp.fortran/target1.f90: Likewise.
11049 * testsuite/libgomp.fortran/target2.f90: Likewise.
11050 * testsuite/libgomp.fortran/target3.f90: Likewise.
11051 * testsuite/libgomp.fortran/target4.f90: Likewise.
11052 * testsuite/libgomp.fortran/target5.f90: Likewise.
11053 * testsuite/libgomp.fortran/target6.f90: Likewise.
11054 * testsuite/libgomp.fortran/target7.f90: Likewise.
11055 * testsuite/libgomp.fortran/target8.f90: Likewise.
11056 * testsuite/libgomp.fortran/task1.f90: Likewise.
11057 * testsuite/libgomp.fortran/task2.f90: Likewise.
11058 * testsuite/libgomp.fortran/task3.f90: Likewise.
11059 * testsuite/libgomp.fortran/task4.f90: Likewise.
11060 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
11061 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
11062 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
11063 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
11064 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
11065 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11066 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11067 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11068 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
11069 * testsuite/libgomp.fortran/udr1.f90: Likewise.
11070 * testsuite/libgomp.fortran/udr10.f90: Likewise.
11071 * testsuite/libgomp.fortran/udr11.f90: Likewise.
11072 * testsuite/libgomp.fortran/udr12.f90: Likewise.
11073 * testsuite/libgomp.fortran/udr13.f90: Likewise.
11074 * testsuite/libgomp.fortran/udr14.f90: Likewise.
11075 * testsuite/libgomp.fortran/udr15.f90: Likewise.
11076 * testsuite/libgomp.fortran/udr2.f90: Likewise.
11077 * testsuite/libgomp.fortran/udr3.f90: Likewise.
11078 * testsuite/libgomp.fortran/udr4.f90: Likewise.
11079 * testsuite/libgomp.fortran/udr5.f90: Likewise.
11080 * testsuite/libgomp.fortran/udr6.f90: Likewise.
11081 * testsuite/libgomp.fortran/udr7.f90: Likewise.
11082 * testsuite/libgomp.fortran/udr8.f90: Likewise.
11083 * testsuite/libgomp.fortran/udr9.f90: Likewise.
11084 * testsuite/libgomp.fortran/vla1.f90: Likewise.
11085 * testsuite/libgomp.fortran/vla2.f90: Likewise.
11086 * testsuite/libgomp.fortran/vla3.f90: Likewise.
11087 * testsuite/libgomp.fortran/vla4.f90: Likewise.
11088 * testsuite/libgomp.fortran/vla5.f90: Likewise.
11089 * testsuite/libgomp.fortran/vla6.f90: Likewise.
11090 * testsuite/libgomp.fortran/vla7.f90: Likewise.
11091 * testsuite/libgomp.fortran/vla8.f90: Likewise.
11092 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
11093 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
11094 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
11095 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11096 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
11097 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
11098 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
11099 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11100 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11101 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11102 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
11103 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
11104 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
11105 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
11106 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
11107 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
11108 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
11109 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
11110 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
11111 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
11112 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
11113 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
11114 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
11115 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
11116 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
11117 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11118 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11119 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
11120 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11121 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
11122 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
11123 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11124 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11125 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11126 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11127 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11128 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
11129 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
11130 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
11131 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
11132 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
11133 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
11134 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
11135 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
11136 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
11137 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
11138 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
11139 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
11140 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
11141 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
11142 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
11143 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
11144 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
11145 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11146 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
11147 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
11148 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
11149 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
11150 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
11151 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
11152 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
11153 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
11154 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
11155 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
11156 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
11157 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
11158 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
11159 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
11160 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
11161 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
11162 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
11163 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
11164 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
11165 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
11166 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
11167 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
11168 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
11169 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11170 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11171 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11172 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11173 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11174 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
11175 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
11176 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
11177 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
11178 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
11179 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
11180 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
11181 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
11182 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
11183 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
11184 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
11185 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
11186
11187 2018-03-20 Richard Biener <rguenther@suse.de>
11188
11189 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
11190 parallelizable loop.
11191
11192 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11193
11194 PR target/84148
11195 * configure: Regenerate.
11196
11197 2018-02-16 Jakub Jelinek <jakub@redhat.com>
11198
11199 PR fortran/84418
11200 * libgomp.fortran/pr84418-1.f90: New test.
11201 * libgomp.fortran/pr84418-2.f90: New test.
11202
11203 2018-02-14 Jakub Jelinek <jakub@redhat.com>
11204
11205 PR fortran/84313
11206 * testsuite/libgomp.fortran/threadprivate4.f90: Add
11207 -std=f2003 -fall-intrinsics into dg-additional-options.
11208
11209 2018-02-08 Martin Jambor <mjambor@suse.cz>
11210
11211 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
11212 clonable.
11213
11214 2018-02-08 Martin Jambor <mjambor@suse.cz>
11215
11216 * testsuite/libgomp.hsa.c/staticvar.c: New test.
11217
11218 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11219
11220 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
11221 [__cplusplus]: Declare extern "C".
11222
11223 2018-02-07 Tom de Vries <tom@codesourcery.com>
11224
11225 PR libgomp/84217
11226 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
11227
11228 2018-01-29 Christoph Spiel <cspiel@freenet.de>
11229 Jakub Jelinek <jakub@redhat.com>
11230
11231 PR libgomp/84096
11232 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
11233 instead of omp_lock_t.
11234
11235 2018-01-25 Tom de Vries <tom@codesourcery.com>
11236
11237 PR target/84028
11238 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
11239
11240 2018-01-24 Tom de Vries <tom@codesourcery.com>
11241
11242 PR target/83589
11243 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
11244
11245 2018-01-24 Tom de Vries <tom@codesourcery.com>
11246
11247 PR target/81352
11248 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
11249
11250 2018-01-19 Tom de Vries <tom@codesourcery.com>
11251 Cesar Philippidis <cesar@codesourcery.com>
11252
11253 PR target/83920
11254 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
11255 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
11256
11257 2018-01-03 Jakub Jelinek <jakub@redhat.com>
11258
11259 Update copyright years.
11260
11261 * libgomp.texi: Bump @copying's copyright year.
11262
11263 2017-12-30 Tom de Vries <tom@codesourcery.com>
11264
11265 PR libgomp/83046
11266 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
11267 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
11268
11269 2017-12-27 Tom de Vries <tom@codesourcery.com>
11270
11271 PR c++/83046
11272 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
11273 (test_nonstatic): Fix return type to workaround PR83046.
11274
11275 2017-12-05 Jakub Jelinek <jakub@redhat.com>
11276
11277 PR testsuite/83281
11278 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
11279 j suffix instead of i.
11280 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
11281 Likewise.
11282
11283 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
11284
11285 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
11286 call to acc_wait (1).
11287
11288 2017-11-24 Jakub Jelinek <jakub@redhat.com>
11289
11290 PR fortran/81304
11291 * testsuite/libgomp.fortran/pr81304.f90: New test.
11292
11293 2017-11-23 Jakub Jelinek <jakub@redhat.com>
11294
11295 PR fortran/81841
11296 * libgomp.fortran/pr81841.f90: New test.
11297
11298 2017-11-22 Jakub Jelinek <jakub@redhat.com>
11299
11300 PR libgomp/83106
11301 * target.c (gomp_target_init): Compute lengths just once and
11302 use them in both malloc size and subsequent copying.
11303
11304 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11305
11306 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
11307 * acinclude.m4: Add cet.m4.
11308 * configure: Regenerate.
11309 * Makefile.in: Likewise.
11310 * testsuite/Makefile.in: Likewise.
11311
11312 2017-11-15 Tom de Vries <tom@codesourcery.com>
11313
11314 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
11315 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
11316 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
11317 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
11318 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
11319 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
11320
11321 2017-11-14 Tom de Vries <tom@codesourcery.com>
11322
11323 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
11324 non-nvidia devices.
11325
11326 2017-11-07 Jakub Jelinek <jakub@redhat.com>
11327
11328 PR c++/82835
11329 * testsuite/libgomp.c++/pr82835.C: New test.
11330
11331 2017-11-06 Martin Liska <mliska@suse.cz>
11332
11333 * testsuite/libgomp.c++/loop-2.C: Return a value
11334 for functions with non-void return type, or change type to void,
11335 or add -Wno-return-type for test.
11336 * testsuite/libgomp.c++/loop-4.C: Likewise.
11337 * testsuite/libgomp.c++/parallel-1.C: Likewise.
11338 * testsuite/libgomp.c++/shared-1.C: Likewise.
11339 * testsuite/libgomp.c++/single-1.C: Likewise.
11340 * testsuite/libgomp.c++/single-2.C: Likewise.
11341
11342 2017-10-31 Tom de Vries <tom@codesourcery.com>
11343
11344 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
11345 "do {} while (false)".
11346 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
11347 after HSA_DEBUG call.
11348
11349 2017-10-28 Jakub Jelinek <jakub@redhat.com>
11350
11351 * target.c (struct gomp_coalesce_buf): New type.
11352 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
11353 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
11354 (gomp_copy_host2dev): Add CBUF argument, if copying into
11355 the cached ranges, memcpy into buffer instead of copying
11356 into device.
11357 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
11358 Add CBUF argument, pass it through to other calls.
11359 (gomp_map_vars): Aggregate copies from host to device if small enough
11360 and with small enough gaps in between into memcpy into a buffer and
11361 fewer host to device copies from the buffer.
11362 (gomp_update): Adjust gomp_copy_host2dev caller.
11363
11364 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
11365
11366 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
11367 run" directive.
11368 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11369 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11370 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11371 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11372
11373 2017-10-16 Tom de Vries <tom@codesourcery.com>
11374
11375 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
11376 openacc_nvidia_accel_selected.
11377 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
11378 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
11379 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
11380 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
11381 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
11382 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
11383 openacc_nvidia_accel_selected. Skip for shared memory device.
11384 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
11385 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
11386
11387 2017-10-09 Martin Jambor <mjambor@suse.cz>
11388
11389 PR hsa/82416
11390 * testsuite/libgomp.hsa.c/pr82416.c: New test.
11391
11392 2017-10-07 Tom de Vries <tom@codesourcery.com>
11393
11394 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
11395 Remove acc_device_nvidia references.
11396 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
11397 Same.
11398
11399 2017-10-05 Tom de Vries <tom@codesourcery.com>
11400
11401 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
11402 vector_length(32) clause from acc parallel directive.
11403 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
11404
11405 2017-10-04 Tom de Vries <tom@codesourcery.com>
11406
11407 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
11408 (main): Reduce sum of arr elements. Assert that hres is exactly
11409 representable in 32-bit floating point.
11410 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
11411 (main): Reduce sum of arr elements. Assert that hres and hmres are
11412 exactly representable in 32-bit floating point.
11413 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
11414
11415 2017-09-28 Tom de Vries <tom@codesourcery.com>
11416
11417 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
11418 setting.
11419 * testsuite/libgomp.c++/pr69393.C: Same.
11420 * testsuite/libgomp.c++/taskloop-1.C: Same.
11421 * testsuite/libgomp.c++/taskloop-3.C: Same.
11422 * testsuite/libgomp.c++/taskloop-4.C: Same.
11423 * testsuite/libgomp.c/for-4.c: Same.
11424 * testsuite/libgomp.c/pr66199-3.c: Same.
11425 * testsuite/libgomp.c/pr66199-4.c: Same.
11426 * testsuite/libgomp.c/pr66199-6.c: Same.
11427 * testsuite/libgomp.c/taskloop-1.c: Same.
11428 * testsuite/libgomp.c/taskloop-3.c: Same.
11429 * testsuite/libgomp.c/taskloop-4.c: Same.
11430 * testsuite/libgomp.fortran/aligned1.f03: Same.
11431 * testsuite/libgomp.fortran/condinc1.f: Same.
11432 * testsuite/libgomp.fortran/condinc3.f90: Same.
11433 * testsuite/libgomp.fortran/crayptr1.f90: Same.
11434 * testsuite/libgomp.fortran/crayptr2.f90: Same.
11435 * testsuite/libgomp.fortran/crayptr3.f90: Same.
11436 * testsuite/libgomp.fortran/omp_cond1.f: Same.
11437 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
11438 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
11439 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
11440 * testsuite/libgomp.fortran/recursion1.f90: Same.
11441 * testsuite/libgomp.fortran/target2.f90: Same.
11442 * testsuite/libgomp.fortran/target5.f90: Same.
11443 * testsuite/libgomp.fortran/task3.f90: Same.
11444
11445 2017-09-28 Tom de Vries <tom@codesourcery.com>
11446
11447 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
11448 vector_length(32) clause from acc parallel directive.
11449 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
11450
11451 2017-09-27 Tom de Vries <tom@codesourcery.com>
11452
11453 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
11454 Remove acc_device_nvidia references.
11455
11456 2017-09-16 Tom de Vries <tom@codesourcery.com>
11457
11458 PR c/81875
11459 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
11460
11461 2017-09-14 Tom de Vries <tom@codesourcery.com>
11462
11463 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
11464 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
11465 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
11466 * testsuite/libgomp.c/c.exp: Include test-cases from
11467 libgomp.c-c++-common.
11468 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
11469 files.
11470
11471 2017-09-14 Jakub Jelinek <jakub@redhat.com>
11472
11473 PR c++/81314
11474 * testsuite/libgomp.c++/pr81314.C: New test.
11475
11476 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
11477
11478 * libgomp.texi (Top): www.openacc.org now uses https.
11479 (Enabling OpenACC): Ditto.
11480 (acc_get_num_devices): Ditto.
11481 (acc_set_device_type): Ditto.
11482 (acc_get_device_type): Ditto.
11483 (acc_set_device_num): Ditto.
11484 (acc_get_device_num): Ditto.
11485 (acc_async_test): Ditto.
11486 (acc_async_test_all): Ditto.
11487 (acc_wait): Ditto.
11488 (acc_wait_all): Ditto.
11489 (acc_wait_all_async): Ditto.
11490 (acc_wait_async): Ditto.
11491 (acc_init): Ditto.
11492 (acc_shutdown): Ditto.
11493 (acc_on_device): Ditto.
11494 (acc_malloc): Ditto.
11495 (acc_free): Ditto.
11496 (acc_copyin): Ditto.
11497 (acc_present_or_copyin): Ditto.
11498 (acc_create): Ditto.
11499 (acc_present_or_create): Ditto.
11500 (acc_copyout): Ditto.
11501 (acc_delete): Ditto.
11502 (acc_update_device): Ditto.
11503 (acc_update_self): Ditto.
11504 (acc_map_data): Ditto.
11505 (acc_unmap_data): Ditto.
11506 (acc_deviceptr): Ditto.
11507 (acc_hostptr): Ditto.
11508 (acc_is_present): Ditto.
11509 (acc_memcpy_to_device): Ditto.
11510 (acc_memcpy_from_device): Ditto.
11511 (acc_get_current_cuda_device): Ditto.
11512 (acc_get_current_cuda_context): Ditto.
11513 (acc_get_cuda_stream): Ditto.
11514 (acc_set_cuda_stream): Ditto.
11515 (ACC_DEVICE_TYPE): Ditto.
11516 (ACC_DEVICE_NUM): Ditto.
11517 (OpenACC Library Interoperability): Ditto.
11518
11519 2017-08-09 Jakub Jelinek <jakub@redhat.com>
11520
11521 PR c/81687
11522 * testsuite/libgomp.c/pr81687-1.c: New test.
11523 * testsuite/libgomp.c/pr81687-2.c: New test.
11524
11525 2017-08-07 Jakub Jelinek <jakub@redhat.com>
11526
11527 PR c/69389
11528 * testsuite/libgomp.c/pr69389.c: New test.
11529 * testsuite/libgomp.c++/pr69389.C: New test.
11530
11531 2017-08-07 Tom de Vries <tom@codesourcery.com>
11532
11533 PR middle-end/78266
11534 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
11535 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
11536
11537 2017-07-27 Jakub Jelinek <jakub@redhat.com>
11538
11539 PR c/45784
11540 * testsuite/libgomp.c/pr45784.c: New test.
11541 * testsuite/libgomp.c++/pr45784.C: New test.
11542
11543 2017-07-19 Tom de Vries <tom@codesourcery.com>
11544
11545 * testsuite/libgomp.oacc-c/vec.c: New test.
11546
11547 2017-07-03 Tom de Vries <tom@codesourcery.com>
11548
11549 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
11550
11551 2017-06-27 Tom de Vries <tom@codesourcery.com>
11552
11553 * plugin/plugin-nvptx.c (notify_var): New function.
11554 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
11555
11556 2017-06-27 Tom de Vries <tom@codesourcery.com>
11557
11558 * env.c (parse_unsigned_long_1): Factor out of ...
11559 (parse_unsigned_long): ... here.
11560 (parse_int_1): Factor out of ...
11561 (parse_int): ... here.
11562 (parse_int_secure): New function.
11563 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
11564 * secure_getenv.h: Factor out of ...
11565 * plugin/plugin-hsa.c: ... here.
11566 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
11567
11568 2017-06-21 Jakub Jelinek <jakub@redhat.com>
11569
11570 PR c++/81130
11571 * testsuite/libgomp.c++/pr81130.C: New test.
11572
11573 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11574
11575 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
11576 default args.
11577 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
11578 dg-xfail-run-if default args.
11579
11580 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
11581
11582 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
11583 * testsuite/libgomp.c/pr39591-3.c: Likewise.
11584
11585 2017-05-30 Jakub Jelinek <jakub@redhat.com>
11586
11587 PR libgomp/80822
11588 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
11589 (gomp_affinity_init_level): Use it. Always analyze the core and thread
11590 sibling lists, depending on level just pick up what CPUs to put
11591 together into a place vs. whether add multiple ordered places.
11592
11593 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
11594
11595 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
11596 * libgomp.map (OACC_2.0.1): Add these.
11597 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
11598 for "acc_wait", and "acc_wait_all", respectively.
11599 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
11600 for "acc_wait", and "acc_wait_all", respectively.
11601 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
11602 * libgomp.texi (acc_wait, acc_wait_all): Update.
11603 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
11604 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
11605 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
11606
11607 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
11608 acc_present_or_copyin and acc_present_or_create procedures,
11609 respectively.
11610 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
11611 generally different variants of OpenACC Runtime Library functions.
11612 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11613
11614 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
11615 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11616
11617 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
11618 of preprocessor definitions.
11619 * libgomp.h (strong_alias): Guard by "#ifdef
11620 HAVE_ATTRIBUTE_ALIAS".
11621 * oacc-mem.c: Provide "acc_pcreate" as alias for
11622 "acc_present_or_create", and "acc_pcopyin" as alias for
11623 "acc_present_or_copyin".
11624 * libgomp.map: New version "OACC_2.0.1".
11625 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
11626 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
11627 its content into...
11628 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
11629 Extend testing.
11630
11631 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
11632 when disabling nvptx offloading.
11633
11634 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
11635
11636 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
11637 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
11638 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
11639
11640 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
11641 * testsuite/lib/libgomp.exp
11642 (check_effective_target_openacc_nvidia_accel_configured): New
11643 proc.
11644 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
11645 (check_effective_target_c++): New procs.
11646 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
11647 (check_effective_target_c++): Likewise.
11648
11649 2017-05-22 Jakub Jelinek <jakub@redhat.com>
11650
11651 PR middle-end/80809
11652 * testsuite/libgomp.c/pr80809-2.c: New test.
11653 * testsuite/libgomp.c/pr80809-3.c: New test.
11654
11655 PR middle-end/80809
11656 * testsuite/libgomp.c/pr80809-1.c: New test.
11657
11658 PR middle-end/80853
11659 * testsuite/libgomp.c/pr80853.c: New test.
11660
11661 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
11662
11663 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
11664 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
11665 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11666 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11667 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
11668
11669 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
11670 Debug output for failure.
11671
11672 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11673
11674 * testsuite/lib/libgomp.exp: Load scanlang.exp.
11675
11676 2017-04-27 Jakub Jelinek <jakub@redhat.com>
11677
11678 PR bootstrap/80531
11679 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
11680 bootstrap compare failures.
11681
11682 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
11683
11684 * testsuite/libgomp.c/target-36.c: New testcase.
11685
11686 2017-04-13 Jakub Jelinek <jakub@redhat.com>
11687
11688 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
11689 instead of char.
11690
11691 2017-04-11 Jakub Jelinek <jakub@redhat.com>
11692
11693 PR libgomp/80394
11694 * testsuite/libgomp.c/pr80394.c: New test.
11695
11696 2017-04-04 Jakub Jelinek <jakub@redhat.com>
11697
11698 PR libgomp/79876
11699 * config/posix/thread-stacksize.h: New file.
11700 * config/darwin/thread-stacksize.h: New file.
11701 * config/nvptx/thread-stacksize.h: New file.
11702 * env.c: Include thread-stacksize.h.
11703 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
11704 instead of 0. Call pthread_attr_setstacksize even if
11705 GOMP_DEFAULT_STACKSIZE is non-zero.
11706
11707 2017-03-30 Jakub Jelinek <jakub@redhat.com>
11708
11709 * env.c (initialize_env): Initialize stacksize to 0.
11710
11711 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
11712
11713 PR c++/80029
11714 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
11715
11716 2017-03-08 Jakub Jelinek <jakub@redhat.com>
11717
11718 PR c/79940
11719 * testsuite/libgomp.c/pr79940.c: New test.
11720
11721 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11722
11723 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
11724 targets.
11725 Add __float128 options.
11726
11727 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
11728
11729 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
11730 hppa*-*-* dg-skip-if directive.
11731
11732 2017-02-09 Jakub Jelinek <jakub@redhat.com>
11733
11734 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
11735 dg-skip-if directive into a comment.
11736
11737 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
11738 Chung-Lin Tang <cltang@codesourcery.com>
11739
11740 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
11741 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
11742 add additional case.
11743 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
11744 "openacc_nvidia_accel_selected".
11745 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
11746 Add num_workers(8) clause.
11747
11748 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
11749
11750 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
11751 hppa*-*-*.
11752 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
11753 include complex.h on hppa*-*-hpux*.
11754 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
11755
11756 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
11757
11758 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
11759
11760 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
11761 GOMP_OFFLOAD_openacc_exec. Adjust all users.
11762 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
11763 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
11764 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
11765 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
11766 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
11767 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
11768 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
11769 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
11770
11771 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
11772
11773 * libgomp-plugin.h: #include <stdbool.h>.
11774 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
11775 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
11776 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
11777 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
11778 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
11779 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
11780 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
11781 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
11782 (GOMP_OFFLOAD_openacc_register_async_cleanup)
11783 (GOMP_OFFLOAD_openacc_async_test)
11784 (GOMP_OFFLOAD_openacc_async_test_all)
11785 (GOMP_OFFLOAD_openacc_async_wait)
11786 (GOMP_OFFLOAD_openacc_async_wait_async)
11787 (GOMP_OFFLOAD_openacc_async_wait_all)
11788 (GOMP_OFFLOAD_openacc_async_wait_all_async)
11789 (GOMP_OFFLOAD_openacc_async_set_async)
11790 (GOMP_OFFLOAD_openacc_create_thread_data)
11791 (GOMP_OFFLOAD_openacc_destroy_thread_data)
11792 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
11793 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
11794 (GOMP_OFFLOAD_openacc_get_cuda_stream)
11795 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
11796 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
11797 these.
11798 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
11799 (GOMP_OFFLOAD_unload_image): Fix argument types.
11800
11801 2017-01-26 Jakub Jelinek <jakub@redhat.com>
11802
11803 * testsuite/lib/libgomp.exp
11804 (check_effective_target_hsa_offloading_selected_nocache): Fix up
11805 check_compile invocation. Fix up removal of executable. Drop
11806 bogus "2>&1" argument.
11807
11808 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
11809 directive.
11810
11811 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
11812 Martin Jambor <mjambor@suse.cz>
11813
11814 * plugin/hsa.h: Moved to top level include.
11815 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
11816
11817 2017-01-21 Jakub Jelinek <jakub@redhat.com>
11818
11819 PR other/79046
11820 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
11821 of cat to get version from BASE-VER file.
11822 * testsuite/Makefile.in: Regenerated.
11823
11824 2017-01-19 Jakub Jelinek <jakub@redhat.com>
11825
11826 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
11827 for _WIN64.
11828
11829 2017-01-17 Jakub Jelinek <jakub@redhat.com>
11830
11831 * plugin/hsa.h: Add GCC runtime library exception.
11832 * plugin/hsa_ext_finalize.h: Likewise.
11833
11834 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
11835 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
11836 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
11837 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
11838 plugin/include/cuda as include dir and -ldl instead of -lcuda as
11839 library to link ptx plugin against.
11840 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
11841 (CUDA_CALLS): Define.
11842 (cuda_lib, cuda_lib_inited): New variables.
11843 (init_cuda_lib): New function.
11844 (CUDA_CALL_PREFIX): Define.
11845 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
11846 (CUDA_CALL): Use FN instead of (FN).
11847 (CUDA_CALL_NOCHECK): Define.
11848 (cuda_error, fini_streams_for_device, select_stream_for_async,
11849 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
11850 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
11851 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
11852 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
11853 CUDA_CALL_NOCHECK.
11854 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
11855 CUDA_CALL_NOCHECK.
11856 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
11857 Use CUDA_CALL_NOCHECK.
11858 * plugin/cuda/cuda.h: New file.
11859 * config.h.in: Regenerated.
11860 * configure: Regenerated.
11861
11862 PR other/79046
11863 * configure.ac: Add GCC_BASE_VER.
11864 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
11865 get version from BASE-VER file.
11866 * testsuite/Makefile.in: Regenerated.
11867 * configure: Regenerated.
11868 * Makefile.in: Regenerated.
11869
11870 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11871
11872 PR libgomp/60670
11873 * Makefile.am: Make fincludedir multilib-aware.
11874 * Makefile.in: Regenerate.
11875
11876 2017-01-01 Jakub Jelinek <jakub@redhat.com>
11877
11878 Update copyright years.
11879
11880 * libgomp.texi: Bump @copying's copyright year.
11881
11882 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
11883
11884 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
11885 pthread_spinlock_t instead of gomp_mutex_t lock.
11886 (gomp_get_thread_pool): Likewise.
11887 (gomp_release_thread_pool): Likewise.
11888 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
11889 Likewise.
11890
11891 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
11892
11893 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
11894 thread pool in case nthreads == 1.
11895
11896 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
11897
11898 * config/nvptx/env.c: Delete.
11899 * icv.c: Move definitions of ICV variables back ...
11900 * env.c: ...here. Do not compile environment-related functionality if
11901 LIBGOMP_OFFLOADED_ONLY is set.
11902
11903 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
11904
11905 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
11906 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
11907 * configure: Regenerate.
11908 * config.h.in: Likewise.
11909
11910 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
11911
11912 * Makefile.in: Regenerate with automake-1.11.6.
11913 * aclocal.m4: Likewise.
11914 * configure: Likewise.
11915 * testsuite/Makefile.in: Likewise.
11916
11917 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
11918
11919 * config/nvptx/critical.c: Delete to use generic implementation.
11920
11921 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
11922
11923 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
11924 ../../affinity.c as fallback.
11925 * config/nvptx/affinity.c: Delete to use fallback implementation.
11926
11927 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
11928 Jakub Jelinek <jakub@redhat.com>
11929 Dmitry Melnik <dm@ispras.ru>
11930
11931 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
11932 * Makefile.in. Regenerate.
11933 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
11934 (LIBGOMP_USE_PTHREADS): ...here; new define.
11935 * configure: Regenerate.
11936 * config.h.in: Likewise.
11937 * config/posix/affinity.c: Move to...
11938 * affinity.c: ...here (new file). Guard use of Pthreads-specific
11939 interface by LIBGOMP_USE_PTHREADS.
11940 * critical.c: Split out GOMP_atomic_{start,end} into...
11941 * atomic.c: ...here (new file).
11942 * env.c: Split out ICV definitions into...
11943 * icv.c: ...here (new file) and...
11944 * icv-device.c: ...here. New file.
11945 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
11946 (gomp_destroy_lock_30): Ditto.
11947 (gomp_set_lock_30): Ditto.
11948 (gomp_unset_lock_30): Ditto.
11949 (gomp_test_lock_30): Ditto.
11950 (gomp_init_nest_lock_30): Ditto.
11951 (gomp_destroy_nest_lock_30): Ditto.
11952 (gomp_set_nest_lock_30): Ditto.
11953 (gomp_unset_nest_lock_30): Ditto.
11954 (gomp_test_nest_lock_30): Ditto.
11955 * lock.c: New.
11956 * config/nvptx/lock.c: New.
11957 * config/nvptx/bar.c: New.
11958 * config/nvptx/bar.h: New.
11959 * config/nvptx/doacross.h: New.
11960 * config/nvptx/error.c: New.
11961 * config/nvptx/icv-device.c: New.
11962 * config/nvptx/mutex.h: New.
11963 * config/nvptx/pool.h: New.
11964 * config/nvptx/proc.c: New.
11965 * config/nvptx/ptrlock.h: New.
11966 * config/nvptx/sem.h: New.
11967 * config/nvptx/simple-bar.h: New.
11968 * config/nvptx/target.c: New.
11969 * config/nvptx/task.c: New.
11970 * config/nvptx/team.c: New.
11971 * config/nvptx/time.c: New.
11972 * config/posix/simple-bar.h: New.
11973 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
11974 (gomp_num_teams_var): Declare.
11975 (struct gomp_thread_pool): Change threads_dock member to
11976 gomp_simple_barrier_t.
11977 [__nvptx__] (gomp_thread): New implementation.
11978 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
11979 (gomp_thread_destructor): Ditto.
11980 (gomp_init_thread_affinity): Ditto.
11981 * team.c: Guard uses of Pthreads-specific interfaces by
11982 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
11983 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
11984 * config/nvptx/alloc.c: Delete.
11985 * config/nvptx/barrier.c: Ditto.
11986 * config/nvptx/fortran.c: Ditto.
11987 * config/nvptx/iter.c: Ditto.
11988 * config/nvptx/iter_ull.c: Ditto.
11989 * config/nvptx/loop.c: Ditto.
11990 * config/nvptx/loop_ull.c: Ditto.
11991 * config/nvptx/ordered.c: Ditto.
11992 * config/nvptx/parallel.c: Ditto.
11993 * config/nvptx/priority_queue.c: Ditto.
11994 * config/nvptx/sections.c: Ditto.
11995 * config/nvptx/single.c: Ditto.
11996 * config/nvptx/splay-tree.c: Ditto.
11997 * config/nvptx/work.c: Ditto.
11998 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
11999 -foffload=-lgfortran in addition to -lgfortran.
12000 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
12001 * plugin/plugin-nvptx.c: Include <limits.h>.
12002 (struct targ_fn_descriptor): Add new fields.
12003 (struct ptx_device): Ditto. Set them...
12004 (nvptx_open_device): ...here.
12005 (nvptx_adjust_launch_bounds): New.
12006 (nvptx_host2dev): Allow NULL 'nvthd'.
12007 (nvptx_dev2host): Ditto.
12008 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
12009 (link_ptx): Adjust log sizes.
12010 (nvptx_host2dev): Allow NULL 'nvthd'.
12011 (nvptx_dev2host): Ditto.
12012 (nvptx_set_clocktick): New. Use it...
12013 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
12014 fields.
12015 (GOMP_OFFLOAD_dev2dev): New.
12016 (nvptx_adjust_launch_bounds): New.
12017 (nvptx_stacks_size): New.
12018 (nvptx_stacks_alloc): New.
12019 (nvptx_stacks_free): New.
12020 (GOMP_OFFLOAD_run): New.
12021 (GOMP_OFFLOAD_async_run): New (stub).
12022
12023 2016-11-23 Martin Jambor <mjambor@suse.cz>
12024
12025 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
12026 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
12027 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
12028
12029 2016-11-23 Martin Liska <mliska@suse.cz>
12030 Martin Jambor <mjambor@suse.cz>
12031
12032 * plugin/hsa.h: New file.
12033 * plugin/hsa_ext_finalize.h: New file.
12034 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
12035 header file unistd.h, and functions secure_getenv, __secure_getenv,
12036 getuid, geteuid, getgid and getegid.
12037 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
12038 -D_GNU_SOURCE.
12039 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
12040 Handle various cases of secure_getenv presence, add an implementation
12041 when we can test effective UID and GID.
12042 (struct hsa_runtime_fn_info): New structure.
12043 (hsa_runtime_fn_info hsa_fns): New variable.
12044 (hsa_runtime_lib): Likewise.
12045 (support_cpu_devices): Likewise.
12046 (init_enviroment_variables): Load newly introduced ENV
12047 variables.
12048 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
12049 (hsa_fatal): Likewise.
12050 (DLSYM_FN): New macro.
12051 (init_hsa_runtime_functions): New function.
12052 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
12053 structure. Depending on environment, also allow CPU devices.
12054 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
12055 (get_kernarg_memory_region): Likewise.
12056 (GOMP_OFFLOAD_init_device): Likewise.
12057 (destroy_hsa_program): Likewise.
12058 (init_basic_kernel_info): New function.
12059 (GOMP_OFFLOAD_load_image): Use it.
12060 (create_and_finalize_hsa_program): Call hsa run-time functions via
12061 hsa_fns structure.
12062 (create_single_kernel_dispatch): Likewise.
12063 (release_kernel_dispatch): Likewise.
12064 (init_single_kernel): Likewise.
12065 (parse_target_attributes): Allow up multiple HSA grid dimensions.
12066 (get_group_size): New function.
12067 (run_kernel): Likewise.
12068 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
12069 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
12070 structure.
12071 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
12072 * testsuite/libgomp-test-support.exp.in: Likewise.
12073 * Makefile.in: Regenerated.
12074 * aclocal.m4: Likewise.
12075 * config.h.in: Likewise.
12076 * configure: Likewise.
12077 * testsuite/Makefile.in: Likewise.
12078
12079 2016-11-15 Martin Jambor <mjambor@suse.cz>
12080 Alexander Monakov <amonakov@ispras.ru>
12081
12082 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
12083 mapping clauses to target constructs.
12084 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
12085
12086 2016-11-15 Matthias Klose <doko@ubuntu.com>
12087
12088 * configure: Regenerate.
12089
12090 2016-11-10 Jakub Jelinek <jakub@redhat.com>
12091
12092 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
12093 * omp_lib.h.in (openmp_version): Likewise.
12094 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
12095 of 201307.
12096 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12097
12098 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
12099 (fib_wrapper): Add map(from: x) clause.
12100 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
12101 (e_53_2): Likewise.
12102 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
12103 (accum): Add map(tmp) clause.
12104 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
12105 (accum): Add map(tofrom: tmp) clause.
12106 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
12107 (gramSchmidt): Likewise.
12108 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
12109 map(tofrom: sum) clause.
12110 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
12111 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
12112 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
12113 only allowed on the loop iterator.
12114 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
12115 * testsuite/libgomp.fortran/taskloop2.f90: New test.
12116 * testsuite/libgomp.fortran/taskloop4.f90: New test.
12117 * testsuite/libgomp.fortran/doacross1.f90: New test.
12118 * testsuite/libgomp.fortran/doacross3.f90: New test.
12119 * testsuite/libgomp.fortran/taskloop1.f90: New test.
12120 * testsuite/libgomp.fortran/taskloop3.f90: New test.
12121 * testsuite/libgomp.fortran/doacross2.f90: New test.
12122 * testsuite/libgomp.c/doacross-1.c (main): Add missing
12123 #pragma omp atomic read.
12124 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12125 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
12126
12127 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
12128 Nathan Sidwell <nathan@acm.org>
12129
12130 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
12131 to determine default geometry.
12132 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
12133 dimension.
12134
12135 2016-11-01 Jakub Jelinek <jakub@redhat.com>
12136
12137 * hashtab.h: Use standard GPLv3 with runtime exception
12138 boilerplate.
12139
12140 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
12141
12142 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
12143 size when allocating new thread.
12144
12145 2016-09-14 Marek Polacek <polacek@redhat.com>
12146
12147 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
12148
12149 2016-08-19 Jakub Jelinek <jakub@redhat.com>
12150
12151 PR fortran/71014
12152 * testsuite/libgomp.fortran/pr71014.f90: New test.
12153
12154 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
12155
12156 PR middle-end/70895
12157 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
12158 firstprivate clauses.
12159 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
12160 copy clauses.
12161 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
12162 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12163 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
12164 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
12165 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
12166 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
12167 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12168 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
12169 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12170 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12171 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12172 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
12173
12174 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
12175
12176 PR fortran/70598
12177 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
12178
12179 2016-08-08 Jakub Jelinek <jakub@redhat.com>
12180
12181 PR c++/58706
12182 * testsuite/libgomp.c++/pr58706.C: New test.
12183
12184 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
12185
12186 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
12187 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
12188 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
12189 Likewise.
12190 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
12191 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
12192 Likewise.
12193 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
12194
12195 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
12196 test, and don't hardcode -O0.
12197
12198 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
12199
12200 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
12201
12202 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
12203
12204 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
12205 test.
12206
12207 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
12208
12209 PR middle-end/71734
12210 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
12211 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
12212
12213 2016-07-01 Jakub Jelinek <jakub@redhat.com>
12214
12215 PR fortran/71717
12216 * testsuite/libgomp.fortran/associate3.f90: New test.
12217
12218 2016-06-17 Jakub Jelinek <jakub@redhat.com>
12219
12220 * testsuite/libgomp.c++/target-21.C: New test.
12221
12222 2016-06-16 Jakub Jelinek <jakub@redhat.com>
12223
12224 * testsuite/libgomp.c++/target-20.C: New test.
12225
12226 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
12227 Cesar Philippidis <cesar@codesourcery.com>
12228
12229 PR middle-end/71373
12230 * libgomp.oacc-c/nested-function-1.c: New file.
12231 * libgomp.oacc-c/nested-function-2.c: Likewise.
12232 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
12233 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
12234 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
12235
12236 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
12237
12238 PR c/71381
12239 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
12240 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
12241 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
12242
12243 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
12244
12245 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
12246 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
12247
12248 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
12249
12250 PR c/70688
12251 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
12252
12253 2016-05-26 Jakub Jelinek <jakub@redhat.com>
12254
12255 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
12256 instead of invalid schedule(static, 0).
12257 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12258
12259 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
12260
12261 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
12262 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
12263 parameter, use to set async stream around call to gomp_unmap_vars,
12264 call gomp_unmap_vars() with 'do_copyfrom' set to true.
12265 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
12266 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
12267 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
12268 (event_add): Add int parameter, initialize 'val' field when
12269 adding new ptx_event struct.
12270 (nvptx_evec): Adjust event_add() call arguments.
12271 (nvptx_host2dev): Likewise.
12272 (nvptx_dev2host): Likewise.
12273 (nvptx_wait_async): Likewise.
12274 (nvptx_wait_all_async): Likewise.
12275 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
12276 pass to event_add() call.
12277 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
12278 parameter.
12279 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
12280 call openacc.register_async_cleanup_func() hook.
12281 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
12282 * target.c (gomp_copy_from_async): Delete function.
12283 (gomp_map_vars): Remove async_refcount.
12284 (gomp_unmap_vars): Likewise.
12285 (gomp_load_image_to_device): Likewise.
12286 (omp_target_associate_ptr): Likewise.
12287 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
12288 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
12289 (gomp_copy_from_async): Remove.
12290
12291 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
12292
12293 * target.c (gomp_device_copy): New function.
12294 (gomp_copy_host2dev): Likewise.
12295 (gomp_copy_dev2host): Likewise.
12296 (gomp_free_device_memory): Likewise.
12297 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
12298 (gomp_map_pointer): Likewise.
12299 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
12300 NULL value from alloc_func plugin hook.
12301 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
12302 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
12303 (gomp_unmap_vars): Likewise.
12304 (gomp_update): Adjust to call gomp_copy_dev2host and
12305 gomp_copy_host2dev functions.
12306 (gomp_unload_image_from_device): Handle false value from
12307 unload_image_func plugin hook.
12308 (gomp_init_device): Handle false value from init_device_func
12309 plugin hook.
12310 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
12311 (omp_target_free): Adjust to call gomp_free_device_memory.
12312 (omp_target_memcpy): Handle return values from host2dev_func,
12313 dev2host_func, and dev2dev_func plugin hooks.
12314 (omp_target_memcpy_rect_worker): Likewise.
12315 (gomp_target_fini): Handle false value from fini_device_func
12316 plugin hook.
12317 * libgomp.h (struct gomp_device_descr): Adjust return type of
12318 init_device_func, fini_device_func, unload_image_func, free_func,
12319 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
12320 * oacc-init.c (acc_shutdown_1): Handle false value from
12321 fini_device_func plugin hook.
12322 * oacc-host.c (host_init_device): Change return type to bool.
12323 (host_fini_device): Likewise.
12324 (host_unload_image): Likewise.
12325 (host_free): Likewise.
12326 (host_dev2host): Likewise.
12327 (host_host2dev): Likewise.
12328 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
12329 (acc_memcpy_to_device): Likewise.
12330 (acc_memcpy_from_device): Likewise.
12331 (delete_copyout): Add libfnname parameter, handle free_func
12332 hook fatal error case.
12333 (acc_delete): Adjust delete_copyout call.
12334 (acc_copyout): Likewise.
12335 (update_dev_host): Move gomp_mutex_unlock to after
12336 host2dev/dev2host hook calls.
12337
12338 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
12339 to 'hsa_error_msg', for clarity.
12340 (hsa_fatal): Likewise.
12341 (hsa_error): New function.
12342 (init_hsa_context): Change return type to bool, adjust to return
12343 false on error.
12344 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
12345 return value.
12346 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
12347 return false on error.
12348 (get_agent_info): Adjust to return NULL on error.
12349 (destroy_hsa_program): Change return type to bool, adjust to
12350 return false on error.
12351 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
12352 (destroy_module): Change return type to bool, adjust to
12353 return false on error.
12354 (GOMP_OFFLOAD_unload_image): Likewise.
12355 (GOMP_OFFLOAD_fini_device): Likewise.
12356 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
12357 (GOMP_OFFLOAD_free): Change to return false when called.
12358 (GOMP_OFFLOAD_dev2host): Likewise.
12359 (GOMP_OFFLOAD_host2dev): Likewise.
12360 (GOMP_OFFLOAD_dev2dev): Likewise.
12361
12362 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
12363 (CUDA_CALL): Likewise.
12364 (CUDA_CALL_ASSERT): Likewise.
12365 (map_init): Change return type to bool, use CUDA_CALL* macros.
12366 (map_fini): Likewise.
12367 (init_streams_for_device): Change return type to bool, adjust
12368 call to map_init.
12369 (fini_streams_for_device): Change return type to bool, adjust
12370 call to map_fini.
12371 (select_stream_for_async): Release stream_lock before calls to
12372 GOMP_PLUGIN_fatal, adjust call to map_init.
12373 (nvptx_init): Use CUDA_CALL* macros.
12374 (nvptx_attach_host_thread_to_device): Change return type to bool,
12375 use CUDA_CALL* macros.
12376 (nvptx_open_device): Use CUDA_CALL* macros.
12377 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
12378 macros.
12379 (nvptx_get_num_devices): Use CUDA_CALL* macros.
12380 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
12381 (nvptx_exec): Use CUDA_CALL* macros.
12382 (nvptx_alloc): Use CUDA_CALL* macros.
12383 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
12384 (nvptx_host2dev): Likewise.
12385 (nvptx_dev2host): Likewise.
12386 (nvptx_wait): Use CUDA_CALL* macros.
12387 (nvptx_wait_async): Likewise.
12388 (nvptx_wait_all): Likewise.
12389 (nvptx_wait_all_async): Likewise.
12390 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
12391 use CUDA_CALL* macros, adjust call to map_fini.
12392 (GOMP_OFFLOAD_init_device): Change return type to bool,
12393 adjust code accordingly.
12394 (GOMP_OFFLOAD_fini_device): Likewise.
12395 (GOMP_OFFLOAD_load_image): Adjust calls to
12396 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
12397 use CUDA_CALL* macros.
12398 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
12399 return code.
12400 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
12401 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
12402 handle error return.
12403 (GOMP_OFFLOAD_dev2host): Likewise.
12404 (GOMP_OFFLOAD_host2dev): Likewise.
12405 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
12406 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
12407
12408 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
12409
12410 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
12411 (acc_free): Likewise.
12412 (acc_memcpy_to_device): Likewise.
12413 (acc_memcpy_from_device): Likewise.
12414 (acc_deviceptr): Likewise.
12415 (acc_hostptr): Likewise.
12416 (acc_is_present): Likewise.
12417 (acc_map_data): Likewise.
12418 (acc_unmap_data): Likewise.
12419 (present_create_copy): Likewise.
12420 (delete_copyout): Likewise.
12421 (update_dev_host): Likewise.
12422 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
12423 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
12424 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
12425 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
12426 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
12427 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
12428 it only runs on nvptx targets.
12429 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
12430 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
12431 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
12432 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
12433 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
12434 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
12435 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
12436 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
12437 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
12438 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
12439 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
12440 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
12441 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
12442 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
12443 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
12444 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12445 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
12446 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
12447 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
12448 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
12449 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
12450 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
12451 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
12452
12453 2016-05-23 Martin Jambor <mjambor@suse.cz>
12454
12455 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
12456
12457 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
12458
12459 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
12460 to gomp_init_targets_once.
12461 (acc_set_device_type): Remove !cached_base_dev condition on call to
12462 gomp_init_targets_once, move call to before acc_device_lock acquire,
12463 to avoid deadlock.
12464 (acc_get_device_num): Remove !cached_base_dev condition on call to
12465 gomp_init_targets_once.
12466 (acc_set_device_num): Likewise.
12467
12468 2016-05-16 Martin Jambor <mjambor@suse.cz>
12469
12470 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
12471
12472 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
12473
12474 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
12475 expected partitioning.
12476
12477 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
12478
12479 PR middle-end/70626
12480 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
12481 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
12482 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
12483
12484 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
12485
12486 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
12487 non-fatal.
12488
12489 2016-04-19 Jakub Jelinek <jakub@redhat.com>
12490
12491 PR middle-end/70680
12492 * testsuite/libgomp.c/pr70680-1.c: New test.
12493 * testsuite/libgomp.c/pr70680-2.c: New test.
12494
12495 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
12496
12497 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
12498 pass parameter variables to subroutines.
12499
12500 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
12501
12502 PR middle-end/70643
12503 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
12504
12505 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
12506
12507 PR testsuite/68242
12508 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
12509 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12510
12511 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
12512
12513 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
12514 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
12515 GOACC_declare prototype.
12516
12517 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
12518 Merge this file, and...
12519 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
12520 ... this file, and...
12521 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
12522 ... this file, and...
12523 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
12524 ... this file, and...
12525 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
12526 ... this file, and...
12527 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
12528 ... this file, and...
12529 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
12530 ... this file, and...
12531 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
12532 ... this file, and...
12533 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
12534 ... this file, and...
12535 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
12536 ... this file, and...
12537 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
12538 ... this file, and...
12539 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
12540 ... this file, and...
12541 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
12542 ... this file into...
12543 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
12544 file.
12545
12546 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
12547 Make failure observable.
12548
12549 2016-04-12 Jakub Jelinek <jakub@redhat.com>
12550
12551 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
12552 field.
12553 * target.c (gomp_target_fallback_firstprivate,
12554 gomp_target_unshare_firstprivate): Removed.
12555 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
12556 before waiting for dependencies.
12557 (gomp_target_task_fn): Don't copy firstprivate vars here.
12558 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
12559 firstprivate_copies here.
12560 (gomp_create_target_task): Don't initialize firstprivate_copies field.
12561 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
12562 explicit/implicit firstprivate.
12563
12564 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
12565
12566 PR lto/70289
12567 PR ipa/70348
12568 PR tree-optimization/70373
12569 PR middle-end/70533
12570 PR middle-end/70534
12571 PR middle-end/70535
12572 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
12573 test.
12574 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
12575 test.
12576 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
12577 test.
12578 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
12579 test.
12580 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
12581 test.
12582 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
12583 test.
12584 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
12585 test.
12586 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
12587 test.
12588 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
12589 test.
12590 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
12591 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
12592 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
12593 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
12594 test.
12595 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
12596 test.
12597 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
12598 test.
12599 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
12600 test.
12601 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
12602 coverage.
12603 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
12604 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
12605 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
12606 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
12607 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
12608 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
12609 coverage.
12610 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12611 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
12612 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
12613 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
12614 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
12615 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
12616 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
12617 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
12618 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
12619 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
12620 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
12621 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
12622 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
12623 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12624 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
12625
12626 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
12627 James Norris <jnorris@codesourcery.com>
12628 Nathan Sidwell <nathan@codesourcery.com>
12629 Julian Brown <julian@codesourcery.com>
12630 Cesar Philippidis <cesar@codesourcery.com>
12631 Chung-Lin Tang <cltang@codesourcery.com>
12632 Tom de Vries <tom@codesourcery.com>
12633
12634 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
12635 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
12636 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
12637 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
12638 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
12639 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
12640 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
12641 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
12642 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
12643 XFAIL.
12644 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
12645 Incorporate...
12646 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
12647 file.
12648 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
12649 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
12650 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
12651 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
12652 Likewise.
12653 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
12654 Likewise.
12655 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
12656 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
12657 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
12658 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
12659 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
12660 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12661 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
12662 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
12663 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
12664 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
12665 Likewise.
12666 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
12667 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
12668 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
12669 file...
12670 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
12671 file into...
12672 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
12673 file. Update.
12674 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
12675 file.
12676 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
12677 Likewise.
12678 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
12679 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
12680 ... this new file. Update.
12681 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
12682 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
12683 ... this new file. Update.
12684 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
12685 file. Incorporate...
12686 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
12687 file, and...
12688 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
12689 file, and...
12690 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
12691 file.
12692 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
12693
12694 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
12695
12696 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
12697 set-torture-options.
12698
12699 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
12700
12701 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
12702 gcc-dg-runtest.
12703 * testsuite/libgomp.oacc-c/c.exp: Likewise.
12704 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
12705 -fno-builtin-acc_on_device instead of -O0.
12706 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
12707 -O0.
12708 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
12709 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
12710 Likewise.
12711 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
12712 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
12713 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
12714 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12715 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12716 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12717 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
12718 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12719 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
12720 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
12721 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
12722 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
12723 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
12724 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
12725 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
12726 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
12727 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
12728 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
12729 Don't specify -O2.
12730 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
12731 Likewise.
12732 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
12733 Likewise.
12734
12735 2016-03-24 Martin Liska <mliska@suse.cz>
12736
12737 * plugin/plugin-hsa.c (packet_store_release): New function
12738 that is taken from the HSA runtime manual.
12739 (GOMP_OFFLOAD_run): Use the function.
12740
12741 2016-03-23 Jakub Jelinek <jakub@redhat.com>
12742
12743 PR c++/70376
12744 * testsuite/libgomp.c++/pr70376.C: New test.
12745
12746 2016-03-23 Tom de Vries <tom@codesourcery.com>
12747
12748 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
12749 initialization of lresult and lvresult.
12750 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
12751
12752 2016-03-23 James Norris <jnorris@codesourcery.com>
12753 Daichi Fukuoka <dc-fukuoka@sgi.com>
12754
12755 PR libgomp/69414
12756 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
12757 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
12758 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
12759 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
12760
12761 2016-03-23 Martin Liska <mliska@suse.cz>
12762
12763 PR hsa/70337
12764 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
12765 argument just in case a dispatched kernel uses that argument.
12766
12767 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
12768
12769 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
12770 -ftree-parallelize-loops/-fopenacc changes.
12771 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
12772 Likewise.
12773 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
12774 Likewise.
12775 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
12776 Likewise.
12777 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
12778 Likewise.
12779 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
12780 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
12781
12782 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
12783
12784 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
12785 always_ld_library_path the path to libgcc_s.
12786
12787 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
12788
12789 PR testsuite/70009
12790 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
12791
12792 2016-03-09 Tom de Vries <tom@codesourcery.com>
12793
12794 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
12795 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
12796 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
12797 Same.
12798 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
12799 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
12800 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
12801 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
12802
12803 2016-03-07 Martin Jambor <mjambor@suse.cz>
12804
12805 * testsuite/lib/libgomp.exp
12806 (check_effective_target_hsa_offloading_selected_nocache): New.
12807 (check_effective_target_hsa_offloading_selected): Likewise.
12808 * testsuite/libgomp.hsa.c/c.exp: Likewise.
12809 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
12810 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
12811 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
12812 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
12813 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
12814 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
12815 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
12816 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
12817 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
12818 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
12819 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
12820 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
12821 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
12822 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
12823 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
12824 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
12825
12826 2016-03-07 Martin Jambor <mjambor@suse.cz>
12827
12828 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
12829 non-shared memory accelerators.
12830 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
12831 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
12832 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
12833 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
12834 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
12835 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
12836 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
12837 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
12838 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
12839
12840 2016-03-07 Martin Jambor <mjambor@suse.cz>
12841
12842 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
12843 ALWAYS_CFLAGS.
12844
12845 2016-03-02 Jakub Jelinek <jakub@redhat.com>
12846
12847 PR libgomp/69555
12848 * testsuite/libgomp.c++/pr69555-1.C: New test.
12849 * testsuite/libgomp.c++/pr69555-2.C: New test.
12850
12851 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
12852 Martin Jambor <mjambor@suse.cz>
12853
12854 * testsuite/lib/libgomp.exp
12855 (check_effective_target_offload_device_shared_as): New proc.
12856 * testsuite/libgomp.c++/declare_target-1.C: New test.
12857
12858 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
12859
12860 PR driver/68463
12861 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
12862
12863 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
12864
12865 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
12866 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
12867 dims.
12868 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
12869 -ftree-parallelize-loops/-fopenacc changes.
12870 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
12871 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
12872 Likewise.
12873 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
12874 Likewise.
12875 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
12876 Likewise.
12877 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
12878 Likewise.
12879 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
12880 Likewise.
12881 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
12882 Likewise.
12883 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
12884 Likewise.
12885 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
12886 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
12887 Likewise.
12888 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
12889 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
12890 Likewise.
12891 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
12892 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
12893 Likewise.
12894
12895 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
12896
12897 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
12898
12899 2016-02-19 Jakub Jelinek <jakub@redhat.com>
12900
12901 PR driver/69805
12902 * testsuite/libgomp.c/pr69805.c: New test.
12903
12904 2016-02-16 Tom de Vries <tom@codesourcery.com>
12905
12906 PR lto/67709
12907 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
12908
12909 2016-02-09 Tom de Vries <tom@codesourcery.com>
12910
12911 PR tree-optimization/69599
12912 * testsuite/libgomp.c/omp-nested-3.c: New test.
12913 * testsuite/libgomp.c/pr46032-2.c: New test.
12914 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
12915 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
12916
12917 2016-02-09 Tom de Vries <tom@codesourcery.com>
12918
12919 PR lto/69707
12920 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
12921
12922 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
12923
12924 * testsuite/libgomp.c/target-31.c: Fix testcase.
12925
12926 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
12927
12928 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
12929 clause.
12930 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
12931 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
12932 reduction and map clauses.
12933 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
12934
12935 2016-02-02 James Norris <jnorris@codesourcery.com>
12936
12937 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
12938
12939 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
12940
12941 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
12942 * oacc-parallel.c (GOACC_host_data): Remove function definition.
12943
12944 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
12945 cases.
12946
12947 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
12948 variables.
12949 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
12950 (hsa_kmt_lib): Set variables.
12951 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
12952 always_ld_library_path.
12953 * Makefile.in: Regenerate.
12954 * configure: Likewise.
12955 * testsuite/Makefile.in: Likewise.
12956
12957 * plugin/configfrag.ac (offload_additional_options)
12958 (offload_additional_lib_paths): Don't amend for hsa offloading.
12959 * configure: Regenerate.
12960
12961 * plugin/configfrag.ac: Don't configure for offloading target if
12962 we don't build the corresponding plugin.
12963 * configure: Regenerate.
12964
12965 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
12966
12967 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
12968 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
12969
12970 2016-01-26 Tom de Vries <tom@codesourcery.com>
12971
12972 PR tree-optimization/69110
12973 * testsuite/libgomp.c/pr69110.c: New test.
12974
12975 2016-01-25 Richard Biener <rguenther@suse.de>
12976
12977 PR lto/69393
12978 * testsuite/libgomp.c++/pr69393.C: New testcase.
12979
12980 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
12981
12982 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
12983 function wasn't mapped to the device with non-shared memory.
12984
12985 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
12986
12987 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
12988
12989 2016-01-19 Martin Jambor <mjambor@suse.cz>
12990 Martin Liska <mliska@suse.cz>
12991
12992 * plugin/Makefrag.am: Add HSA plugin requirements.
12993 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
12994 (HSA_RUNTIME_LIB): Likewise.
12995 (HSA_RUNTIME_CPPFLAGS): Likewise.
12996 (HSA_RUNTIME_INCLUDE): New substitution.
12997 (HSA_RUNTIME_LIB): Likewise.
12998 (HSA_RUNTIME_LDFLAGS): Likewise.
12999 (hsa-runtime): New configure option.
13000 (hsa-runtime-include): Likewise.
13001 (hsa-runtime-lib): Likewise.
13002 (PLUGIN_HSA): New substitution variable.
13003 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
13004 configure options.
13005 (PLUGIN_HSA_CPPFLAGS): Likewise.
13006 (PLUGIN_HSA_LDFLAGS): Likewise.
13007 (PLUGIN_HSA_LIBS): Likewise.
13008 Check that we have access to HSA run-time.
13009 * libgomp-plugin.h (offload_target_type): New element
13010 OFFLOAD_TARGET_TYPE_HSA.
13011 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
13012 args.
13013 (bool gomp_create_target_task): Updated.
13014 (gomp_device_descr): Extra parameter of run_func and async_run_func,
13015 new field can_run_func.
13016 * libgomp_g.h (GOMP_target_ext): Update prototype.
13017 * oacc-host.c (host_run): Added a new parameter args.
13018 * target.c (calculate_firstprivate_requirements): New function.
13019 (copy_firstprivate_data): Likewise.
13020 (gomp_target_fallback_firstprivate): Use them.
13021 (gomp_target_unshare_firstprivate): New function.
13022 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
13023 devices.
13024 (GOMP_target): Do host fallback for all shared memory devices. Do not
13025 pass any args to plugins.
13026 (GOMP_target_ext): Introduce device-specific argument parameter args.
13027 Allow host fallback if device shares memory. Do not remap data if
13028 device has shared memory.
13029 (gomp_target_task_fn): Likewise. Also treat shared memory devices
13030 like host fallback for mappings.
13031 (GOMP_target_data): Treat shared memory devices like host fallback.
13032 (GOMP_target_data_ext): Likewise.
13033 (GOMP_target_update): Likewise.
13034 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
13035 gomp_create_target_task.
13036 (GOMP_target_enter_exit_data): Likewise.
13037 (omp_target_alloc): Treat shared memory devices like host fallback.
13038 (omp_target_free): Likewise.
13039 (omp_target_is_present): Likewise.
13040 (omp_target_memcpy): Likewise.
13041 (omp_target_memcpy_rect): Likewise.
13042 (omp_target_associate_ptr): Likewise.
13043 (gomp_load_plugin_for_device): Also load can_run.
13044 * task.c (GOMP_PLUGIN_target_task_completion): Free
13045 firstprivate_copies.
13046 (gomp_create_target_task): Accept new argument args and store it to
13047 ttask.
13048 * plugin/plugin-hsa.c: New file.
13049
13050 2016-01-18 Tom de Vries <tom@codesourcery.com>
13051
13052 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
13053 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
13054 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
13055 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
13056 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
13057 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
13058 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
13059 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
13060 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
13061 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
13062 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
13063 Same.
13064 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
13065 Same.
13066 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
13067 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
13068 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
13069 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
13070 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
13071 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
13072 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
13073 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
13074 Same.
13075 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
13076
13077 2016-01-15 Jakub Jelinek <jakub@redhat.com>
13078
13079 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
13080
13081 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
13082
13083 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
13084
13085 2016-01-12 James Norris <jnorris@codesourcery.com>
13086
13087 * libgomp.texi: Updates for OpenACC.
13088
13089 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
13090
13091 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
13092
13093 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
13094
13095 PR fortran/66680
13096 * testsuite/libgomp.fortran/pr66680.f90: New test.
13097
13098 2016-01-07 Jakub Jelinek <jakub@redhat.com>
13099
13100 PR middle-end/68960
13101 * testsuite/libgomp.c/pr68960.c: New test.
13102
13103 2016-01-06 Nathan Sidwell <nathan@acm.org>
13104
13105 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
13106 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
13107
13108 2016-01-04 Jakub Jelinek <jakub@redhat.com>
13109
13110 Update copyright years.
13111
13112 * libgomp.texi: Bump @copying's copyright year.
13113
13114 2015-12-31 Nathan Sidwell <nathan@acm.org>
13115
13116 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
13117 dg-additional-options syntax.
13118 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13119 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13120 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13121 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13122 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13123 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13124 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13125 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13126 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13127 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13128 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13129 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13130 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13131 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
13132 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13133 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13134 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13135 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13136
13137 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
13138
13139 * libgomp.h (REFCOUNT_LINK): Define.
13140 (struct splay_tree_key_s): Add link_key.
13141 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
13142 Replace target address of the pointer with target address of newly
13143 mapped object in the splay tree. Set link pointer on target to the
13144 device address of the mapped object.
13145 (gomp_unmap_vars): Restore target address of the pointer in the splay
13146 tree for REFCOUNT_LINK objects after unmapping.
13147 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
13148 declare target link" objects.
13149 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
13150 "omp declare target link" objects, which were mapped for the image.
13151 (gomp_exit_data): Restore target address of the pointer in the splay
13152 tree for REFCOUNT_LINK objects after unmapping.
13153 * testsuite/libgomp.c/target-link-1.c: New file.
13154
13155 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
13156
13157 * libgomp.h (gomp_device_state): New enum.
13158 (struct gomp_device_descr): Replace is_initialized with state.
13159 (gomp_fini_device): Remove declaration.
13160 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
13161 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
13162 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
13163 (acc_set_device_type): Use state instead of is_initialized.
13164 (acc_set_device_num): Likewise.
13165 * target.c (resolve_device): Use state instead of is_initialized.
13166 Do not initialize finalized device.
13167 (gomp_map_vars): Do nothing if device is finalized.
13168 (gomp_unmap_vars): Likewise.
13169 (gomp_update): Likewise.
13170 (GOMP_offload_register_ver): Use state instead of is_initialized.
13171 (GOMP_offload_unregister_ver): Likewise.
13172 (gomp_init_device): Likewise.
13173 (gomp_unload_device): Likewise.
13174 (gomp_fini_device): Remove.
13175 (gomp_get_target_fn_addr): Do nothing if device is finalized.
13176 (GOMP_target): Go to host fallback if device is finalized.
13177 (GOMP_target_ext): Likewise.
13178 (gomp_exit_data): Do nothing if device is finalized.
13179 (gomp_target_task_fn): Go to host fallback if device is finalized.
13180 (gomp_target_fini): New static function.
13181 (gomp_target_init): Use state instead of is_initialized.
13182 Call gomp_target_fini at exit.
13183
13184 2015-12-09 Tom de Vries <tom@codesourcery.com>
13185
13186 PR tree-optimization/68716
13187 * testsuite/libgomp.c/omp-nested-2.c: New test.
13188
13189 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
13190
13191 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
13192 target openacc_nvidia_accel_selected.
13193 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
13194 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
13195 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
13196 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
13197
13198 2015-12-01 Julian Brown <julian@codesourcery.com>
13199 James Norris <James_Norris@mentor.com>
13200
13201 * oacc-parallel.c (GOACC_host_data): New function.
13202 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
13203 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
13204 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
13205 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
13206 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
13207 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
13208 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
13209
13210 2015-11-30 James Norris <jnorris@codesourcery.com>
13211 Cesar Philippidis <cesar@codesourcery.com>
13212
13213 libgomp/
13214 * libgomp.oacc-fortran/routine-5.f90: New test.
13215 * libgomp.oacc-fortran/routine-7.f90: New test.
13216 * libgomp.oacc-fortran/routine-9.f90: New test.
13217
13218 2015-11-30 Tom de Vries <tom@codesourcery.com>
13219
13220 PR tree-optimization/46032
13221 * testsuite/libgomp.c/pr46032.c: New test.
13222
13223 2015-11-27 Jakub Jelinek <jakub@redhat.com>
13224
13225 PR libgomp/68579
13226 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
13227 (gomp_create_target_task): Call it before freeing
13228 GOMP_TARGET_TASK_DATA tasks.
13229
13230 PR c/63326
13231 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
13232 in between case label and OpenMP standalone directives.
13233 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
13234
13235 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
13236
13237 * configure: Regenerate.
13238
13239 2015-11-26 Jakub Jelinek <jakub@redhat.com>
13240
13241 * testsuite/libgomp.c/target-35.c: New test.
13242
13243 2015-11-22 James Norris <jnorris@codesourcery.com>
13244 Cesar Philippidis <cesar@codesourcery.com>
13245
13246 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
13247 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
13248 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
13249 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
13250 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
13251
13252 2015-11-20 Jakub Jelinek <jakub@redhat.com>
13253
13254 PR middle-end/68221
13255 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
13256 * testsuite/libgomp.c/reduction-12.c: Likewise.
13257 * testsuite/libgomp.c++/reduction-11.C: Likewise.
13258 * testsuite/libgomp.c++/reduction-12.C: Likewise.
13259
13260 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
13261
13262 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
13263 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
13264 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
13265 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
13266 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
13267 and fix.
13268 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13269 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13270
13271 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
13272
13273 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
13274 worker & gang cases.
13275 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
13276
13277 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
13278
13279 * config/nvptx/priority_queue.c: New file.
13280
13281 2015-11-14 Jakub Jelinek <jakub@redhat.com>
13282
13283 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
13284 sections.
13285
13286 2015-11-14 Jakub Jelinek <jakub@redhat.com>
13287 Aldy Hernandez <aldyh@redhat.com>
13288 Ilya Verbin <ilya.verbin@intel.com>
13289
13290 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
13291 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
13292 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
13293 iterators or IV by chunk size.
13294 * parallel.c (gomp_resolve_num_threads): Don't assume that
13295 if thr->ts.team is non-NULL, then pool must be non-NULL.
13296 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
13297 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
13298 GOMP_PLUGIN_target_task_completion.
13299 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
13300 * Makefile.in: Regenerate.
13301 * libgomp.h: Shuffle prototypes and forward definitions around so
13302 priority queues can be defined.
13303 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
13304 (enum gomp_target_task_state): New enum.
13305 (struct gomp_target_task): Add state, tgt, task and team fields.
13306 (gomp_create_target_task): Change return type to bool, add
13307 state argument.
13308 (gomp_target_task_fn): Change return type to bool.
13309 (struct gomp_device_descr): Add async_run_func.
13310 (struct gomp_task): Remove children, next_child, prev_child,
13311 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
13312 Add pnode field.
13313 (struct gomp_taskgroup): Remove children.
13314 Add taskgroup_queue.
13315 (struct gomp_team): Change task_queue type to a priority queue.
13316 (splay_compare): Define inline.
13317 (priority_queue_offset): New.
13318 (priority_node_to_task): New.
13319 (task_to_priority_node): New.
13320 * oacc-mem.c: Do not include splay-tree.h.
13321 * priority_queue.c: New file.
13322 * priority_queue.h: New file.
13323 * splay-tree.c: Do not include splay-tree.h.
13324 (splay_tree_foreach_internal): New.
13325 (splay_tree_foreach): New.
13326 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
13327 (splay_tree_callback): Define typedef.
13328 * target.c (splay_compare): Move to libgomp.h.
13329 (GOMP_target): Don't adjust *thr in any way around running offloaded
13330 task.
13331 (GOMP_target_ext): Likewise. Handle target nowait.
13332 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
13333 return value from gomp_create_target_task, if false, fallthrough
13334 as if no dependencies exist.
13335 (gomp_target_task_fn): Change return type to bool, return true
13336 if the task should have another part scheduled later. Handle
13337 target nowait.
13338 (gomp_load_plugin_for_device): Initialize async_run.
13339 * task.c (gomp_init_task): Initialize children_queue.
13340 (gomp_clear_parent_in_list): New.
13341 (gomp_clear_parent_in_tree): New.
13342 (gomp_clear_parent): Handle priorities.
13343 (GOMP_task): Likewise.
13344 (priority_queue_move_task_first,
13345 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
13346 New functions.
13347 (gomp_create_target_task): Use priority queues. Change return type
13348 to bool, add state argument, return false if for async
13349 {{enter,exit} data,update} constructs no dependencies need to be
13350 waited for, handle target nowait. Set task->fn to NULL instead of
13351 gomp_target_task_fn.
13352 (verify_children_queue): Remove.
13353 (priority_list_upgrade_task): New.
13354 (priority_queue_upgrade_task): New.
13355 (verify_task_queue): Remove.
13356 (priority_list_downgrade_task): New.
13357 (priority_queue_downgrade_task): New.
13358 (gomp_task_run_pre): Use priority queues.
13359 Abstract code out to priority_queue_downgrade_task.
13360 (gomp_task_run_post_handle_dependers): Use priority queues.
13361 (gomp_task_run_post_remove_parent): Likewise.
13362 (gomp_task_run_post_remove_taskgroup): Likewise.
13363 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
13364 tasks specially.
13365 (GOMP_taskwait): Likewise.
13366 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
13367 priority-queue_upgrade_task.
13368 (GOMP_taskgroup_start): Use priority queues.
13369 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
13370 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
13371 barrier.
13372 * taskloop.c (GOMP_taskloop): Handle priorities.
13373 * team.c (gomp_new_team): Call priority_queue_init.
13374 (free_team): Call priority_queue_free.
13375 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
13376 team created for target nowait in implicit parallel region.
13377 (gomp_team_start): For nested check, test thr->ts.level instead of
13378 thr->ts.team != NULL.
13379 * testsuite/libgomp.c/doacross-3.c: New test.
13380 * testsuite/libgomp.c/ordered-5.c: New test.
13381 * testsuite/libgomp.c/priority.c: New test.
13382 * testsuite/libgomp.c/target-31.c: New test.
13383 * testsuite/libgomp.c/target-32.c: New test.
13384 * testsuite/libgomp.c/target-33.c: New test.
13385 * testsuite/libgomp.c/target-34.c: New test.
13386
13387 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
13388
13389 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
13390
13391 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
13392 loop is sequential.
13393
13394 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
13395
13396 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
13397 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
13398
13399 2015-11-12 James Norris <jnorris@codesourcery.com>
13400 Joseph Myers <joseph@codesourcery.com>
13401
13402 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
13403 * oacc-parallel.c (GOACC_declare): New function.
13404 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
13405 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
13406 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
13407 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
13408 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
13409
13410 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
13411
13412 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
13413
13414 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
13415
13416 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
13417 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
13418
13419 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
13420
13421 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
13422 inadvertent commit.
13423
13424 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
13425
13426 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
13427 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
13428 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
13429 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
13430 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
13431
13432 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
13433
13434 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
13435 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
13436
13437 2015-11-05 Jakub Jelinek <jakub@redhat.com>
13438 Ilya Verbin <ilya.verbin@intel.com>
13439
13440 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
13441 GOMP_loop_nonmonotonic_dynamic_start,
13442 GOMP_loop_nonmonotonic_guided_next,
13443 GOMP_loop_nonmonotonic_guided_start,
13444 GOMP_loop_ull_nonmonotonic_dynamic_next,
13445 GOMP_loop_ull_nonmonotonic_dynamic_start,
13446 GOMP_loop_ull_nonmonotonic_guided_next,
13447 GOMP_loop_ull_nonmonotonic_guided_start,
13448 GOMP_parallel_loop_nonmonotonic_dynamic,
13449 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
13450 (GOMP_target_41): Renamed to ...
13451 (GOMP_target_ext): ... this. Add num_teams and thread_limit
13452 arguments.
13453 (GOMP_target_data_41): Renamed to ...
13454 (GOMP_target_data_ext): ... this.
13455 (GOMP_target_update_41): Renamed to ...
13456 (GOMP_target_update_ext): ... this.
13457 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
13458 GOMP_target_data_ext and GOMP_target_update_ext instead of
13459 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
13460 Export GOMP_loop_nonmonotonic_dynamic_next,
13461 GOMP_loop_nonmonotonic_dynamic_start,
13462 GOMP_loop_nonmonotonic_guided_next,
13463 GOMP_loop_nonmonotonic_guided_start,
13464 GOMP_loop_ull_nonmonotonic_dynamic_next,
13465 GOMP_loop_ull_nonmonotonic_dynamic_start,
13466 GOMP_loop_ull_nonmonotonic_guided_next,
13467 GOMP_loop_ull_nonmonotonic_guided_start,
13468 GOMP_parallel_loop_nonmonotonic_dynamic and
13469 GOMP_parallel_loop_nonmonotonic_guided.
13470 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
13471 GOMP_parallel_loop_nonmonotonic_guided,
13472 GOMP_loop_nonmonotonic_dynamic_start,
13473 GOMP_loop_nonmonotonic_guided_start,
13474 GOMP_loop_nonmonotonic_dynamic_next,
13475 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
13476 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
13477 GOMP_loop_ull_nonmonotonic_guided_start,
13478 GOMP_loop_ull_nonmonotonic_dynamic_next,
13479 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
13480 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
13481 functions.
13482 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
13483 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
13484 Use gomp_map_val function.
13485 (gomp_target_fallback_firstprivate): New static function.
13486 (GOMP_target_41): Renamed to ...
13487 (GOMP_target_ext): ... this. Add num_teams and thread_limit
13488 arguments. Move firstprivate fallback handling into a new
13489 function.
13490 (GOMP_target_data_41): Renamed to ...
13491 (GOMP_target_data_ext): ... this.
13492 (GOMP_target_update_41): Renamed to ...
13493 (GOMP_target_update_ext): ... this.
13494 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
13495 gomp_map_0len_lookup instead of gomp_map_lookup.
13496 (omp_target_is_present): Use gomp_map_0len_lookup instead of
13497 gomp_map_lookup.
13498 * testsuite/libgomp.c/target-28.c: Likewise.
13499 * testsuite/libgomp.c/monotonic-1.c: New test.
13500 * testsuite/libgomp.c/monotonic-2.c: New test.
13501 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
13502 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
13503 * testsuite/libgomp.c/pr66199-5.c: New test.
13504 * testsuite/libgomp.c/pr66199-6.c: New test.
13505 * testsuite/libgomp.c/pr66199-7.c: New test.
13506 * testsuite/libgomp.c/pr66199-8.c: New test.
13507 * testsuite/libgomp.c/pr66199-9.c: New test.
13508 * testsuite/libgomp.c/reduction-11.c: New test.
13509 * testsuite/libgomp.c/reduction-12.c: New test.
13510 * testsuite/libgomp.c/reduction-13.c: New test.
13511 * testsuite/libgomp.c/reduction-14.c: New test.
13512 * testsuite/libgomp.c/reduction-15.c: New test.
13513 * testsuite/libgomp.c/target-12.c (main): Adjust for
13514 omp_target_is_present change for one-past-last element.
13515 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
13516 the same var is both mapped and privatized.
13517 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
13518 handling of zero-length array sections.
13519 * testsuite/libgomp.c/target-28.c: New test.
13520 * testsuite/libgomp.c/target-29.c: New test.
13521 * testsuite/libgomp.c/target-30.c: New test.
13522 * testsuite/libgomp.c/target-teams-1.c: New test.
13523 * testsuite/libgomp.c++/member-6.C: New test.
13524 * testsuite/libgomp.c++/member-7.C: New test.
13525 * testsuite/libgomp.c++/monotonic-1.C: New test.
13526 * testsuite/libgomp.c++/monotonic-2.C: New test.
13527 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
13528 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
13529 * testsuite/libgomp.c++/pr66199-3.C: New test.
13530 * testsuite/libgomp.c++/pr66199-4.C: New test.
13531 * testsuite/libgomp.c++/pr66199-5.C: New test.
13532 * testsuite/libgomp.c++/pr66199-6.C: New test.
13533 * testsuite/libgomp.c++/pr66199-7.C: New test.
13534 * testsuite/libgomp.c++/pr66199-8.C: New test.
13535 * testsuite/libgomp.c++/pr66199-9.C: New test.
13536 * testsuite/libgomp.c++/reduction-11.C: New test.
13537 * testsuite/libgomp.c++/reduction-12.C: New test.
13538 * testsuite/libgomp.c++/target-13.C: New test.
13539 * testsuite/libgomp.c++/target-14.C: New test.
13540 * testsuite/libgomp.c++/target-15.C: New test.
13541 * testsuite/libgomp.c++/target-16.C: New test.
13542 * testsuite/libgomp.c++/target-17.C: New test.
13543 * testsuite/libgomp.c++/target-18.C: New test.
13544 * testsuite/libgomp.c++/target-19.C: New test.
13545
13546 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
13547
13548 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
13549 and reduction copy.
13550 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
13551 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
13552 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
13553 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13554 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
13555 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13556 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
13557 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13558 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13559 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
13560 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
13561 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
13562 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13563 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
13564
13565 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
13566
13567 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
13568 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
13569 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
13570 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
13571 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
13572 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
13573 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
13574 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
13575
13576 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
13577
13578 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
13579 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
13580 (GOMP_OFFLOAD_openacc_parallel): Likewise.
13581 * oacc-host.c (host_openacc_exec): Likewise.
13582 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
13583
13584 2015-11-03 Julian Brown <julian@codesourcery.com>
13585 Thomas Schwinge <thomas@codesourcery.com>
13586
13587 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
13588 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13589 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
13590 Likewise.
13591 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
13592 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
13593
13594 2015-11-03 James Norris <jnorris@codesourcery.com>
13595
13596 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
13597 file.
13598 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
13599 Likewise.
13600 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
13601 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
13602 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
13603 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
13604 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
13605
13606 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
13607
13608 * openacc.h (enum acc_device_t): Reformat. Ensure layout
13609 compatibility.
13610 (enum acc_async_t): Reformat.
13611 (acc_on_device): Declare compatible with builtin and provide C++
13612 wrapper.
13613 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
13614
13615 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
13616 Cesar Philippidis <cesar@codesourcery.com>
13617
13618 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
13619 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
13620 ... this. Add a description of the test at the top of the file.
13621 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
13622 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
13623 ... this. Add a description of the test at the top of the file.
13624
13625 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
13626
13627 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
13628 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
13629 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
13630 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
13631 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
13632 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
13633
13634 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
13635
13636 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
13637 dimensions.
13638
13639 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
13640
13641 PR testsuite/68063
13642 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
13643
13644 2015-10-27 James Norris <jnorris@codesourcery.com>
13645
13646 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
13647 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
13648
13649 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
13650
13651 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
13652 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
13653
13654 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
13655 acc_device_nvidia usage.
13656 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
13657 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
13658 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
13659
13660 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
13661 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
13662
13663 PR libgomp/66518
13664 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
13665
13666 PR libgomp/65437
13667 PR libgomp/66518
13668 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
13669 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
13670
13671 2015-10-23 Tom de Vries <tom@codesourcery.com>
13672
13673 PR testsuite/68063
13674 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
13675
13676 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
13677
13678 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
13679 vector_length.
13680 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13681
13682 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
13683 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
13684
13685 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
13686 to 0 when mapnum is 0.
13687
13688 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
13689
13690 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
13691 Cast to int from int32_t.
13692
13693 2015-10-13 Jakub Jelinek <jakub@redhat.com>
13694 Aldy Hernandez <aldyh@redhat.com>
13695 Ilya Verbin <ilya.verbin@intel.com>
13696
13697 * config/linux/affinity.c (omp_get_place_num_procs,
13698 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
13699 * config/linux/doacross.h: New file.
13700 * config/posix/affinity.c (omp_get_place_num_procs,
13701 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
13702 * config/posix/doacross.h: New file.
13703 * env.c: Include gomp-constants.h.
13704 (struct gomp_task_icv): Rename run_sched_modifier to
13705 run_sched_chunk_size.
13706 (gomp_max_task_priority_var): New variable.
13707 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
13708 (handle_omp_display_env): Change _OPENMP value from 201307 to
13709 201511. Print OMP_MAX_TASK_PRIORITY.
13710 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
13711 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
13712 chunk_size and run_sched_modifier to run_sched_chunk_size.
13713 (omp_get_max_task_priority, omp_get_initial_device,
13714 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
13715 omp_get_partition_place_nums): New functions.
13716 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
13717 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
13718 to chunk_size.
13719 (omp_get_num_places_, omp_get_place_num_procs_,
13720 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
13721 omp_get_place_proc_ids_8_, omp_get_place_num_,
13722 omp_get_partition_num_places_, omp_get_partition_place_nums_,
13723 omp_get_partition_place_nums_8_, omp_get_initial_device_,
13724 omp_get_max_task_priority_): New functions.
13725 * libgomp_g.h (GOMP_loop_doacross_static_start,
13726 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
13727 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
13728 GOMP_loop_ull_doacross_dynamic_start,
13729 GOMP_loop_ull_doacross_guided_start,
13730 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
13731 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
13732 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
13733 GOMP_target_data_41, GOMP_target_update_41,
13734 GOMP_target_enter_exit_data): New prototypes.
13735 (GOMP_task): Add prototype argument.
13736 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
13737 (struct gomp_doacross_work_share): New type.
13738 (struct gomp_work_share): Add doacross field.
13739 (struct gomp_task_icv): Rename run_sched_modifier to
13740 run_sched_chunk_size.
13741 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
13742 GOMP_TASK_UNDEFERRED. Add comments.
13743 (struct gomp_task_depend_entry): Add comments.
13744 (struct gomp_task): Likewise.
13745 (struct gomp_taskgroup): Likewise.
13746 (struct gomp_target_task): New type.
13747 (struct gomp_team): Add comment.
13748 (gomp_get_place_proc_ids_8, gomp_doacross_init,
13749 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
13750 gomp_create_target_task, gomp_target_task_fn): New prototypes.
13751 (struct target_var_desc): New type.
13752 (struct target_mem_desc): Adjust comment. Use struct
13753 target_var_desc instead of splay_tree_key for list.
13754 (REFCOUNT_INFINITY): Define.
13755 (struct splay_tree_key_s): Remove copy_from field.
13756 (struct gomp_device_descr): Add dev2dev_func field.
13757 (enum gomp_map_vars_kind): New enum.
13758 (gomp_map_vars): Add one argument.
13759 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
13760 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
13761 omp_get_place_num_procs, omp_get_place_num_procs_,
13762 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
13763 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
13764 omp_get_place_num_, omp_get_partition_num_places,
13765 omp_get_partition_num_places_, omp_get_partition_place_nums,
13766 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
13767 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
13768 omp_target_free, omp_target_is_present, omp_target_memcpy,
13769 omp_target_memcpy_rect, omp_target_associate_ptr and
13770 omp_target_disassociate_ptr.
13771 (GOMP_4.0.2): Renamed to ...
13772 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
13773 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
13774 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
13775 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
13776 GOMP_loop_doacross_static_start, GOMP_doacross_post,
13777 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
13778 GOMP_loop_ull_doacross_guided_start,
13779 GOMP_loop_ull_doacross_runtime_start,
13780 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
13781 GOMP_doacross_ull_wait.
13782 * libgomp.texi: Document omp_get_max_task_priority.
13783 Rename modifier argument to chunk_size for omp_set_schedule and
13784 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
13785 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
13786 to run_sched_chunk_size renaming.
13787 (GOMP_loop_ordered_runtime_start): Likewise.
13788 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
13789 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
13790 GOMP_parallel_loop_runtime_start): New functions.
13791 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
13792 to run_sched_chunk_size renaming.
13793 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
13794 GOMP_loop_doacross_guided_start): New functions or aliases.
13795 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
13796 run_sched_modifier to run_sched_chunk_size renaming.
13797 (GOMP_loop_ull_ordered_runtime_start): Likewise.
13798 (gomp_loop_ull_doacross_static_start,
13799 gomp_loop_ull_doacross_dynamic_start,
13800 gomp_loop_ull_doacross_guided_start,
13801 GOMP_loop_ull_doacross_runtime_start): New functions.
13802 (GOMP_loop_ull_doacross_static_start,
13803 GOMP_loop_ull_doacross_dynamic_start,
13804 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
13805 * oacc-mem.c (acc_map_data, present_create_copy,
13806 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
13807 to gomp_map_vars.
13808 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
13809 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
13810 instead of false to gomp_map_vars.
13811 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
13812 * omp.h.in (omp_lock_hint_t): New type.
13813 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
13814 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
13815 omp_get_place_num, omp_get_partition_num_places,
13816 omp_get_partition_place_nums, omp_get_initial_device,
13817 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
13818 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
13819 omp_target_associate_ptr, omp_target_disassociate_ptr): New
13820 prototypes.
13821 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
13822 (omp_lock_hint_none, omp_lock_hint_uncontended,
13823 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
13824 omp_lock_hint_speculative): New parameters.
13825 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
13826 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
13827 omp_get_place_num, omp_get_partition_num_places,
13828 omp_get_partition_place_nums, omp_get_initial_device,
13829 omp_get_max_task_priority): New interfaces.
13830 (omp_set_schedule, omp_get_schedule): Rename modifier argument
13831 to chunk_size.
13832 * omp_lib.h.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 functions and subroutines.
13841 * ordered.c: Include stdarg.h and string.h.
13842 (MAX_COLLAPSED_BITS): Define.
13843 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
13844 gomp_doacross_ull_init, GOMP_doacross_ull_post,
13845 GOMP_doacross_ull_wait): New functions.
13846 * target.c: Include errno.h.
13847 (resolve_device): If device is not initialized, call
13848 gomp_init_device on it.
13849 (gomp_map_lookup): New function.
13850 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
13851 Don't bump refcount if REFCOUNT_INFINITY. Handle
13852 GOMP_MAP_ALWAYS_TO_P.
13853 (get_kind): Rename is_openacc argument to short_mapkind.
13854 (gomp_map_pointer): Use gomp_map_lookup.
13855 (gomp_map_fields_existing): New function.
13856 (gomp_map_vars): Rename is_openacc argument to short_mapkind
13857 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
13858 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
13859 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
13860 Adjust for tgt->list changed type and copy_from living in there.
13861 (gomp_copy_from_async): Adjust for tgt->list changed type and
13862 copy_from living in there.
13863 (gomp_unmap_vars): Likewise.
13864 (gomp_update): Likewise. Rename is_openacc argument to
13865 short_mapkind. Don't fail if object is not mapped.
13866 (gomp_load_image_to_device): Initialize refcount to
13867 REFCOUNT_INFINITY.
13868 (gomp_target_fallback): New function.
13869 (gomp_get_target_fn_addr): Likewise.
13870 (GOMP_target): Adjust gomp_map_vars caller, use
13871 gomp_get_target_fn_addr and gomp_target_fallback.
13872 (GOMP_target_41): New function.
13873 (gomp_target_data_fallback): New function.
13874 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
13875 (GOMP_target_data_41): New function.
13876 (GOMP_target_update): Adjust gomp_update caller.
13877 (GOMP_target_update_41): New function.
13878 (gomp_exit_data, GOMP_target_enter_exit_data,
13879 gomp_target_task_fn, omp_target_alloc, omp_target_free,
13880 omp_target_is_present, omp_target_memcpy,
13881 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
13882 omp_target_associate_ptr, omp_target_disassociate_ptr,
13883 gomp_load_plugin_for_device): New functions.
13884 * task.c: Include gomp-constants.h. Include taskloop.c
13885 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
13886 (gomp_task_handle_depend): New function.
13887 (GOMP_task): Use it. Add priority argument. Use
13888 gomp-constant.h constants instead of hardcoded numbers.
13889 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
13890 (gomp_create_target_task): New function.
13891 (verify_children_queue, verify_taskgroup_queue,
13892 verify_task_queue): New functions.
13893 (gomp_task_run_pre): Call verify_*_queue functions.
13894 If an upcoming tied task is about to leave the sibling or
13895 taskgroup queues in an invalid state, adjust appropriately.
13896 Remove taskgroup argument. Add comments.
13897 (gomp_task_run_post_handle_dependers): Add comments.
13898 (gomp_task_run_post_remove_parent): Likewise.
13899 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
13900 (GOMP_taskwait): Likewise. Add comments.
13901 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
13902 problem such that the first non parent_depends_on task does not
13903 end up at the end of the children queue.
13904 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
13905 GOMP_TASK_UNDEFERRED.
13906 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
13907 * taskloop.c: New file.
13908 * testsuite/lib/libgomp.exp
13909 (check_effective_target_offload_device_nonshared_as): New proc.
13910 * testsuite/libgomp.c/affinity-2.c: New test.
13911 * testsuite/libgomp.c/doacross-1.c: New test.
13912 * testsuite/libgomp.c/doacross-2.c: New test.
13913 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
13914 Add map clause to target.
13915 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
13916 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
13917 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
13918 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
13919 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
13920 Likewise.
13921 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
13922 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
13923 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
13924 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
13925 not defined. Use those where needed.
13926 * testsuite/libgomp.c/for-4.c: New test.
13927 * testsuite/libgomp.c/for-5.c: New test.
13928 * testsuite/libgomp.c/for-6.c: New test.
13929 * testsuite/libgomp.c/linear-1.c: New test.
13930 * testsuite/libgomp.c/ordered-4.c: New test.
13931 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
13932 only allowed on the loop iterator.
13933 * testsuite/libgomp.c/pr66199-3.c: New test.
13934 * testsuite/libgomp.c/pr66199-4.c: New test.
13935 * testsuite/libgomp.c/reduction-7.c: New test.
13936 * testsuite/libgomp.c/reduction-8.c: New test.
13937 * testsuite/libgomp.c/reduction-9.c: New test.
13938 * testsuite/libgomp.c/reduction-10.c: New test.
13939 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
13940 map(tofrom:s).
13941 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
13942 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
13943 * testsuite/libgomp.c/target-11.c: New test.
13944 * testsuite/libgomp.c/target-12.c: New test.
13945 * testsuite/libgomp.c/target-13.c: New test.
13946 * testsuite/libgomp.c/target-14.c: New test.
13947 * testsuite/libgomp.c/target-15.c: New test.
13948 * testsuite/libgomp.c/target-16.c: New test.
13949 * testsuite/libgomp.c/target-17.c: New test.
13950 * testsuite/libgomp.c/target-18.c: New test.
13951 * testsuite/libgomp.c/target-19.c: New test.
13952 * testsuite/libgomp.c/target-20.c: New test.
13953 * testsuite/libgomp.c/target-21.c: New test.
13954 * testsuite/libgomp.c/target-22.c: New test.
13955 * testsuite/libgomp.c/target-23.c: New test.
13956 * testsuite/libgomp.c/target-24.c: New test.
13957 * testsuite/libgomp.c/target-25.c: New test.
13958 * testsuite/libgomp.c/target-26.c: New test.
13959 * testsuite/libgomp.c/target-27.c: New test.
13960 * testsuite/libgomp.c/taskloop-1.c: New test.
13961 * testsuite/libgomp.c/taskloop-2.c: New test.
13962 * testsuite/libgomp.c/taskloop-3.c: New test.
13963 * testsuite/libgomp.c/taskloop-4.c: New test.
13964 * testsuite/libgomp.c++/ctor-13.C: New test.
13965 * testsuite/libgomp.c++/doacross-1.C: New test.
13966 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
13967 Replace offload_device with offload_device_nonshared_as.
13968 * testsuite/libgomp.c++/for-12.C: New test.
13969 * testsuite/libgomp.c++/for-13.C: New test.
13970 * testsuite/libgomp.c++/for-14.C: New test.
13971 * testsuite/libgomp.c++/linear-1.C: New test.
13972 * testsuite/libgomp.c++/member-1.C: New test.
13973 * testsuite/libgomp.c++/member-2.C: New test.
13974 * testsuite/libgomp.c++/member-3.C: New test.
13975 * testsuite/libgomp.c++/member-4.C: New test.
13976 * testsuite/libgomp.c++/member-5.C: New test.
13977 * testsuite/libgomp.c++/ordered-1.C: New test.
13978 * testsuite/libgomp.c++/reduction-5.C: New test.
13979 * testsuite/libgomp.c++/reduction-6.C: New test.
13980 * testsuite/libgomp.c++/reduction-7.C: New test.
13981 * testsuite/libgomp.c++/reduction-8.C: New test.
13982 * testsuite/libgomp.c++/reduction-9.C: New test.
13983 * testsuite/libgomp.c++/reduction-10.C: New test.
13984 * testsuite/libgomp.c++/reference-1.C: New test.
13985 * testsuite/libgomp.c++/simd14.C: New test.
13986 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
13987 * testsuite/libgomp.c++/target-5.C: New test.
13988 * testsuite/libgomp.c++/target-6.C: New test.
13989 * testsuite/libgomp.c++/target-7.C: New test.
13990 * testsuite/libgomp.c++/target-8.C: New test.
13991 * testsuite/libgomp.c++/target-9.C: New test.
13992 * testsuite/libgomp.c++/target-10.C: New test.
13993 * testsuite/libgomp.c++/target-11.C: New test.
13994 * testsuite/libgomp.c++/target-12.C: New test.
13995 * testsuite/libgomp.c++/taskloop-1.C: New test.
13996 * testsuite/libgomp.c++/taskloop-2.C: New test.
13997 * testsuite/libgomp.c++/taskloop-3.C: New test.
13998 * testsuite/libgomp.c++/taskloop-4.C: New test.
13999 * testsuite/libgomp.c++/taskloop-5.C: New test.
14000 * testsuite/libgomp.c++/taskloop-6.C: New test.
14001 * testsuite/libgomp.c++/taskloop-7.C: New test.
14002 * testsuite/libgomp.c++/taskloop-8.C: New test.
14003 * testsuite/libgomp.c++/taskloop-9.C: New test.
14004 * testsuite/libgomp.fortran/affinity1.f90: New test.
14005 * testsuite/libgomp.fortran/affinity2.f90: New test.
14006
14007 2015-10-13 Tom de Vries <tom@codesourcery.com>
14008
14009 PR tree-optimization/67476
14010 * testsuite/libgomp.c/autopar-3.c: New test.
14011 * testsuite/libgomp.c/autopar-4.c: New test.
14012 * testsuite/libgomp.c/autopar-5.c: New test.
14013 * testsuite/libgomp.c/autopar-6.c: New test.
14014 * testsuite/libgomp.c/autopar-7.c: New test.
14015 * testsuite/libgomp.c/autopar-8.c: New test.
14016
14017 2015-10-12 James Norris <jnorris@codesourcery.com>
14018
14019 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
14020 initializer.
14021
14022 2015-10-09 David Malcolm <dmalcolm@redhat.com>
14023
14024 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
14025 using load_gcc_lib.
14026
14027 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
14028
14029 * oacc-ptx.h: Remove file, moving its content into...
14030 * config/nvptx/fortran.c: ... here...
14031 * config/nvptx/oacc-init.c: ..., here...
14032 * config/nvptx/oacc-parallel.c: ..., and here.
14033 * config/nvptx/openacc.f90: New file.
14034 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
14035 (link_ptx): Don't link in predefined bits of PTX code.
14036
14037 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
14038 Bernd Schmidt <bernds@codesourcery.com>
14039
14040 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
14041 (struct targ_ptx_obj): New.
14042 (nvptx_tdata): Move earlier, change data format.
14043 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
14044 objects.
14045 (GOMP_OFFLOAD_load_image): Adjust.
14046
14047 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
14048
14049 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
14050 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14051 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
14052 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
14053 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14054 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
14055 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
14056 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
14057 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
14058 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
14059 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14060 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14061 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14062 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14063 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14064 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14065 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14066 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14067 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14068 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14069 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14070 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14071 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14072 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14073 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14074 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14075 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14076 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14077 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14078 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14079 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14080 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14081 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14082 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14083 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14084 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14085 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14086 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14087 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14088 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14089 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14090 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14091 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14092 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14093 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14094 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14095 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14096 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14097 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14098 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14099 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14100 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14101 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14102 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14103 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
14104 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14105 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14106 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
14107 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
14108 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
14109 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
14110 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
14111 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14112
14113 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
14114
14115 * oacc-init.c (acc_on_device): Force optimization level.
14116
14117 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
14118
14119 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
14120 (cuda_errlist): Delete.
14121 (cuda_error): Reimplement.
14122
14123 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
14124
14125 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
14126 array.
14127 * libgomp.map (GOACC_parallel_keyed): New.
14128 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
14129 all callers.
14130 (GOACC_parallel_keyed): New interface. Lose geometry arguments
14131 and take keyed varargs list. Adjust call to exec_func.
14132 (GOACC_parallel): Force host fallback.
14133 * libgomp_g.h (GOACC_parallel): Remove.
14134 (GOACC_parallel_keyed): Declare.
14135 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
14136 (struct targ_gn_descriptor): Replace name field with launch field.
14137 (nvptx_exec): Lose separate geometry args, take array. Process
14138 dynamic dimensions and adjust.
14139 (struct nvptx_tdata): Replace fn_names field with fn_descs.
14140 (GOMP_OFFLOAD_load_image): Adjust for change in function table
14141 data.
14142 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
14143 passing.
14144 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
14145 passing.
14146
14147 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
14148
14149 PR libgomp/67141
14150 * oacc-int.h (goacc_host_init): Add declaration.
14151 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
14152 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
14153
14154 2015-09-08 Aditya Kumar <hiraditya@msn.com>
14155 Sebastian Pop <s.pop@samsung.com>
14156
14157 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
14158 match o/p.
14159 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
14160 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
14161 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
14162 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
14163 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
14164
14165 2015-09-03 Jakub Jelinek <jakub@redhat.com>
14166
14167 * configure.tgt: Add missing ;; in between nvptx and rtems
14168 snippets.
14169
14170 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14171
14172 * config/posix/pool.h (gomp_adjust_thread_attr): New.
14173 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
14174 (gomp_thread_pool_reservoir): Add priority member.
14175 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
14176 priority.
14177 (parse_thread_pools): Likewise.
14178 * team.c (gomp_team_start): Call configuration provided
14179 gomp_adjust_thread_attr(). Destroy thread attributes if
14180 necessary.
14181 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
14182
14183 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14184
14185 * config/posix/pool.h: New.
14186 * config/rtems/pool.h: Likewise.
14187 * config/rtems/proc.c: Likewise.
14188 * libgomp.h (gomp_thread_destructor): Declare.
14189 * team.c: Include configuration provided "pool.h".
14190 (gomp_get_thread_pool): Define in configuration.
14191 (gomp_team_end): Call configuration defined
14192 gomp_release_thread_pool().
14193
14194 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14195
14196 * config/rtems/bar.c: New.
14197 * config/rtems/bar.h: Likewise.
14198 * config/rtems/mutex.c: Likewise.
14199 * config/rtems/mutex.h: Likewise.
14200 * config/rtems/sem.c: Likewise.
14201 * config/rtems/sem.h: Likewise.
14202 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
14203 <sys/lock.h> header file.
14204 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
14205 supported by Newlib.
14206 * configure: Regenerate.
14207
14208 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14209
14210 * team.c (gomp_new_thread_pool): Delete and move content to ...
14211 (gomp_get_thread_pool): ... new function. Allocate and
14212 initialize thread pool on demand.
14213 (get_last_team): Use gomp_get_thread_pool().
14214 (gomp_team_start): Delete thread pool initialization.
14215
14216 2015-09-03 Tom de Vries <tom@codesourcery.com>
14217
14218 PR tree-optimization/65637
14219 * testsuite/libgomp.c/autopar-2.c: New test.
14220
14221 2015-08-29 Tom de Vries <tom@codesourcery.com>
14222
14223 PR tree-optimization/46193
14224 * testsuite/libgomp.c/pr46193.c: New test.
14225
14226 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
14227
14228 libgomp/
14229 * libgomp.map: Add 4.0.2 version.
14230 * target.c (offload_image_descr): Add version field.
14231 (gomp_load_image_to_device): Add version argument. Adjust plugin
14232 call. Improve load mismatch diagnostic.
14233 (gomp_unload_image_from_device): Add version argument. Adjust plugin
14234 call.
14235 (GOMP_offload_regster): Make stub function, move bulk to ...
14236 (GOMP_offload_register_ver): ... here. Process version argument.
14237 (GOMP_offload_unregister): Make stub function, move bulk to ...
14238 (GOMP_offload_unregister_ver): ... here. Process version argument.
14239 (gomp_init_device): Process version field.
14240 (gomp_unload_device): Process version field.
14241 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
14242 macros. Check plugin version.
14243 * libgomp.h (gomp_device_descr): Add version function field. Adjust
14244 loader and unloader types.
14245 * oacc-host.c: Include gomp-constants.h.
14246 (host_version): New.
14247 (host_load_image, host_unload_image): Adjust.
14248 (host_dispatch): Add host_version.
14249 * plugin/plugin-nvptx.c: Include gomp-constants.h.
14250 (GOMP_OFFLOAD_version): New.
14251 (GOMP_OFFLOAD_load_image): Add version arg and check it.
14252 (GOMP_OFFLOAD_unload_image): Likewise.
14253 * plugin/plugin-host.c: Include gomp-constants.h.
14254 (GOMP_OFFLOAD_version): New.
14255 (GOMP_OFFLOAD_load_image): Add version arg.
14256 (GOMP_OFFLOAD_unload_image): Likewise.
14257
14258 2015-08-24 Tom de Vries <tom@codesourcery.com>
14259
14260 PR tree-optimization/65468
14261 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
14262
14263 2015-08-24 Tom de Vries <tom@codesourcery.com>
14264
14265 PR tree-optimization/65468
14266 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
14267
14268 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
14269
14270 PR libgomp/66761
14271 PR libgomp/67303
14272 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
14273 (gomp_iter_guided_next): Idem.
14274 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
14275 (gomp_iter_ull_guided_next): Idem.
14276 * config/linux/wait.h (do_spin): Idem.
14277
14278 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14279
14280 * libgomp-plugin.h (enum offload_target_type): Remove
14281 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
14282 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
14283 * openacc.h (enum acc_device_t): Likewise.
14284 * openacc_lib.h: Likewise.
14285 * oacc-init.c (name_of_acc_device_t): Don't handle it.
14286 (acc_on_device): Just use __builtin_acc_on_device.
14287 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
14288 of acc_on_device builtin.
14289 * plugin/plugin-host.h: Remove file.
14290 * plugin/plugin-host.c: Likewise, but salvage some content into...
14291 * oacc-host.c: ... this file.
14292 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
14293 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
14294 * Makefile.in: Regenerate.
14295 * configure: Likewise.
14296 * testsuite/lib/libgomp.exp
14297 (check_effective_target_openacc_host_nonshm_selected): Remove.
14298 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
14299 ACC_DEVICE_TYPE=host_nonshm.
14300 * testsuite/libgomp.oacc-c/c.exp: Likewise.
14301 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14302 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
14303 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
14304 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
14305 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
14306
14307 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14308 Jakub Jelinek <jakub@redhat.com>
14309
14310 * config/nvptx/affinity.c: New file.
14311 * config/nvptx/alloc.c: Likewise.
14312 * config/nvptx/bar.c: Likewise.
14313 * config/nvptx/barrier.c: Likewise.
14314 * config/nvptx/critical.c: Likewise.
14315 * config/nvptx/env.c: Likewise.
14316 * config/nvptx/error.c: Likewise.
14317 * config/nvptx/fortran.c: Likewise.
14318 * config/nvptx/iter.c: Likewise.
14319 * config/nvptx/iter_ull.c: Likewise.
14320 * config/nvptx/libgomp-plugin.c: Likewise.
14321 * config/nvptx/lock.c: Likewise.
14322 * config/nvptx/loop.c: Likewise.
14323 * config/nvptx/loop_ull.c: Likewise.
14324 * config/nvptx/mutex.c: Likewise.
14325 * config/nvptx/oacc-async.c: Likewise.
14326 * config/nvptx/oacc-cuda.c: Likewise.
14327 * config/nvptx/oacc-host.c: Likewise.
14328 * config/nvptx/oacc-init.c: Likewise.
14329 * config/nvptx/oacc-mem.c: Likewise.
14330 * config/nvptx/oacc-parallel.c: Likewise.
14331 * config/nvptx/oacc-plugin.c: Likewise.
14332 * config/nvptx/omp-lock.h: Likewise.
14333 * config/nvptx/ordered.c: Likewise.
14334 * config/nvptx/parallel.c: Likewise.
14335 * config/nvptx/proc.c: Likewise.
14336 * config/nvptx/ptrlock.c: Likewise.
14337 * config/nvptx/sections.c: Likewise.
14338 * config/nvptx/sem.c: Likewise.
14339 * config/nvptx/single.c: Likewise.
14340 * config/nvptx/splay-tree.c: Likewise.
14341 * config/nvptx/target.c: Likewise.
14342 * config/nvptx/task.c: Likewise.
14343 * config/nvptx/team.c: Likewise.
14344 * config/nvptx/time.c: Likewise.
14345 * config/nvptx/work.c: Likewise.
14346 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
14347 * configure: Regenerate.
14348 * configure.tgt (config_path): Set to "nvptx" for target
14349 nvptx*-*-*.
14350
14351 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14352
14353 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
14354
14355 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
14356
14357 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
14358 (cuda_errlist): Constify.
14359 (errmsg): Move into ...
14360 (cuda_error): ... here. Make smaller.
14361 (_XSTR, _STR): Delete.
14362 (cuda_synames): Delete.
14363 (verify_device_library): Delete.
14364 (nvptx_init): Don't call it.
14365
14366 2015-07-28 Tom de Vries <tom@codesourcery.com>
14367
14368 * testsuite/libgomp.c/uns-outer-4.c: New test.
14369
14370 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
14371
14372 * testsuite/libgomp.c/pr66714.c: New test.
14373
14374 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
14375
14376 PR libgomp/66950
14377 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
14378 (fib_ref): New function.
14379 (fib): Correct corner cases in the recursion.
14380 (main): Replace the non-simd loop with fib_ref call.
14381 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
14382 subroutine.
14383 (fibonacci): Lower the parameter N to 30. Correct accordingly check
14384 for the last array element value. Replace the non-simd loop with
14385 fib_ref call. Remove redundant b_ref array. Remove the comparison
14386 of the last array element with according Fibonacci sequence element.
14387 (fib): Correct corner cases in the recursion.
14388
14389 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
14390
14391 * target.c (gomp_offload_image_to_device): Rename to ...
14392 (gomp_load_image_to_device): ... here.
14393 (GOMP_offload_register): Adjust call.
14394 (gomp_init_device): Likewise.
14395 (gomp_unload_image_from_device): New. Broken out of ...
14396 (GOMP_offload_unregister): ... here. Call it.
14397 (gomp_unload_device): New.
14398 * libgomp.h (gomp_unload_device): Declare.
14399 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
14400 mem maps.
14401
14402 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
14403
14404 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
14405 wait=-specific if.
14406 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
14407 !=0 condition.
14408 (goacc_waits): Move !num_waits handling to ...
14409 (GOACC_wait): ... here, the only caller that might have zero waits.
14410
14411 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
14412 (struct ptx_image_data): Move earlier, add fns field.
14413 (struct ptx_device): Add images and image_lock fields.
14414 (ptx_images, ptx_image_lock): Delete.
14415 (nvptx_open_device): Initialize images and image_lock fields.
14416 (nvptx_close_device): Destroy image_lock.
14417 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
14418 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
14419 fields.
14420
14421 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
14422
14423 * target.c (GOMP_offload_register): Use int for device type arg.
14424 (GOMP_offload_unregister): Likewise.
14425
14426 * target.c (struct_offload_image_descr): Constify host_table.
14427 (gomp_offload_image_to_device): Likewise.
14428 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
14429
14430 * libgomp.h (gomp_device_descr): Constify target data arguments.
14431 * target.c (struct offload_image_descr): Constify target_data.
14432 (gomp_offload_image_to_device): Likewise.
14433 (GOMP_offload_register): Likewise.
14434 (GOMP_offload_unregister): Likewise.
14435 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
14436 GOMP_OFFLOAD_unload_image): Constify target data.
14437 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
14438 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
14439
14440 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
14441
14442 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
14443 Workaround driver library const error.
14444 (struct nvptx_tdata, nvptx_tdata_t): New.
14445 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
14446 type.
14447
14448 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
14449
14450 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
14451 of EPS parameter from integer to real.
14452 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
14453 type of EPS parameter from integer to real.
14454
14455 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
14456
14457 * team.c (get_last_team): New.
14458 (gomp_new_team): Recycle last non-nested team if possible.
14459 (gomp_team_end): Move team work share list free lock destruction
14460 to ...
14461 (free_team): ... here.
14462
14463 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
14464
14465 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
14466 and ref from int to double. Replaced their comparison with
14467 an inequality of their difference and EPS.
14468 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
14469 comparison of pri and a reference number with an inequality of their
14470 difference and EPS.
14471 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
14472 the comparison of sum and sum_ref with an inequality of their
14473 difference and EPS.
14474 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
14475 the comparison of pri and a reference number with an inequality of
14476 their difference and EPS.
14477
14478 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
14479
14480 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
14481 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
14482 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
14483 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
14484 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
14485 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
14486 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
14487 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
14488 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
14489 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
14490 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
14491 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
14492 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
14493 variables.
14494 (vec_mult): Likewise. Add #pragma omp taskwait.
14495 (main): Adjust caller.
14496 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
14497 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
14498 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
14499 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
14500 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
14501 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
14502 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
14503 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
14504 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
14505 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
14506 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
14507 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
14508 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
14509 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
14510 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
14511 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
14512 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
14513 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
14514 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
14515 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
14516 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
14517 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
14518 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
14519 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
14520 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
14521 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
14522 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
14523 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
14524 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
14525 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
14526 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
14527 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
14528 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
14529 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
14530 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
14531 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
14532 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
14533 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
14534 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
14535 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
14536 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
14537 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
14538 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
14539 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
14540 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
14541 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
14542 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
14543 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
14544 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
14545 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
14546 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
14547 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
14548 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
14549 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
14550 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
14551 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
14552 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
14553 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
14554 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
14555 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
14556 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
14557 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
14558 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
14559 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
14560 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
14561 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
14562 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
14563 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
14564 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
14565 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
14566 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
14567 (vec_mult): Add !$omp taskwait.
14568 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
14569 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
14570 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
14571 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
14572 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
14573 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
14574 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
14575 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
14576 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
14577 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
14578 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
14579 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
14580 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
14581 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
14582 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
14583 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
14584 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
14585 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
14586 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
14587 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
14588 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
14589 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
14590 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
14591 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
14592 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
14593 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
14594 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
14595 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
14596 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
14597 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
14598 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
14599 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
14600 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
14601 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
14602 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
14603 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
14604 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
14605 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
14606 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
14607 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
14608 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
14609 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
14610 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
14611 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
14612 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
14613 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
14614 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
14615 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
14616 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
14617 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
14618 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
14619 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
14620 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
14621 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
14622 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
14623 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
14624 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
14625 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
14626 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
14627 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
14628 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
14629 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
14630 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
14631 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
14632 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
14633 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
14634 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
14635
14636 2015-07-10 Tom de Vries <tom@codesourcery.com>
14637
14638 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
14639 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
14640
14641 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
14642
14643 PR libgomp/65099
14644 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
14645 in a 64-bit configuration.
14646 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
14647 offloading testing if no such device is available.
14648 * testsuite/libgomp.oacc-c/c.exp: Likewise.
14649 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14650
14651 2015-07-08 Tom de Vries <tom@codesourcery.com>
14652
14653 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
14654 second call to f.
14655 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14656
14657 2015-07-07 Tom de Vries <tom@codesourcery.com>
14658
14659 PR tree-optimization/66642
14660 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
14661 iteration count case.
14662 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
14663 function, factor out of ...
14664 (main): ... here. Test low iteration count case.
14665
14666 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
14667
14668 * libgomp.h (gomp_thread_pool): Comment last_team field.
14669
14670 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
14671
14672 * testsuite/libgomp.c++/pr66702-1.C: Require
14673 vect_simd_clones effective target.
14674 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
14675
14676 2015-06-30 Tom de Vries <tom@codesourcery.com>
14677
14678 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
14679 already set. Use DEFAULT_CFLAGS in dg-runtest.
14680 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
14681 "-O2".
14682
14683 2015-06-30 Tom de Vries <tom@codesourcery.com>
14684
14685 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
14686 already set. Use DEFAULT_CFLAGS in dg-runtest.
14687 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
14688 * testsuite/libgomp.c++/pr64824.C: Same.
14689 * testsuite/libgomp.c++/pr64868.C: Same.
14690 * testsuite/libgomp.c++/pr66199-1.C: Same.
14691 * testsuite/libgomp.c++/pr66199-2.C: Same.
14692 * testsuite/libgomp.c++/target-2.C: Same.
14693 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
14694 -std=<standard> option.
14695 * testsuite/libgomp.c++/udr-11.C: Same.
14696 * testsuite/libgomp.c++/udr-12.C: Same.
14697 * testsuite/libgomp.c++/udr-13.C: Same.
14698 * testsuite/libgomp.c++/udr-14.C: Same.
14699 * testsuite/libgomp.c++/udr-15.C: Same.
14700 * testsuite/libgomp.c++/udr-16.C: Same.
14701 * testsuite/libgomp.c++/udr-17.C: Same.
14702 * testsuite/libgomp.c++/udr-18.C: Same.
14703 * testsuite/libgomp.c++/udr-19.C: Same.
14704 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
14705 * testsuite/libgomp.c++/simd-1.C: Same.
14706 * testsuite/libgomp.c++/simd-2.C: Same.
14707 * testsuite/libgomp.c++/simd-3.C: Same.
14708 * testsuite/libgomp.c++/simd-4.C: Same.
14709 * testsuite/libgomp.c++/simd-5.C: Same.
14710 * testsuite/libgomp.c++/simd-6.C: Same.
14711 * testsuite/libgomp.c++/simd-7.C: Same.
14712 * testsuite/libgomp.c++/simd-8.C: Same.
14713 * testsuite/libgomp.c++/simd-9.C: Same.
14714 * testsuite/libgomp.c++/simd10.C: Same.
14715 * testsuite/libgomp.c++/simd11.C: Same.
14716 * testsuite/libgomp.c++/simd12.C: Same.
14717 * testsuite/libgomp.c++/simd13.C: Same.
14718
14719 2015-06-30 Jakub Jelinek <jakub@redhat.com>
14720
14721 PR middle-end/66702
14722 * testsuite/libgomp.c++/pr66702-1.C: New test.
14723 * testsuite/libgomp.c++/pr66702-2.C: New test.
14724
14725 2015-06-30 Tom de Vries <tom@codesourcery.com>
14726
14727 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
14728 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
14729 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
14730 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
14731
14732 2015-06-30 Tom de Vries <tom@codesourcery.com>
14733
14734 PR tree-optimization/66652
14735 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
14736 using restrict pointers.
14737 (main): Add arguments to calls to f.
14738 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14739
14740 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
14741
14742 * configure.ac: Fix check for header <sys/sysctl.h>.
14743 * configure: Regenerate.
14744 * config.h.in: Likewise.
14745
14746 2015-06-23 Tom de Vries <tom@codesourcery.com>
14747
14748 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
14749 abort.
14750 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
14751
14752 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
14753
14754 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
14755 acc_device_nvidia.
14756
14757 PR libgomp/66518
14758 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
14759 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14760
14761 2015-06-15 Tom de Vries <tom@codesourcery.com>
14762
14763 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
14764 dg-additional-options for any remaining options.
14765 * testsuite/libgomp.c/atomic-2.c: Same.
14766 * testsuite/libgomp.c/atomic-4.c: Same.
14767 * testsuite/libgomp.c/atomic-5.c: Same.
14768 * testsuite/libgomp.c/atomic-6.c: Same.
14769 * testsuite/libgomp.c/autopar-1.c: Same.
14770 * testsuite/libgomp.c/copyin-1.c: Same.
14771 * testsuite/libgomp.c/copyin-2.c: Same.
14772 * testsuite/libgomp.c/copyin-3.c: Same.
14773 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
14774 * testsuite/libgomp.c/nestedfn-5.c: Same.
14775 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
14776 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
14777 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
14778 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14779 * testsuite/libgomp.c/pr32362-1.c: Same.
14780 * testsuite/libgomp.c/pr32362-2.c: Same.
14781 * testsuite/libgomp.c/pr32362-3.c: Same.
14782 * testsuite/libgomp.c/pr39591-1.c: Same.
14783 * testsuite/libgomp.c/pr39591-2.c: Same.
14784 * testsuite/libgomp.c/pr39591-3.c: Same.
14785 * testsuite/libgomp.c/pr58392.c: Same.
14786 * testsuite/libgomp.c/pr58756.c: Same.
14787 * testsuite/libgomp.c/simd-1.c: Same.
14788 * testsuite/libgomp.c/simd-10.c: Same.
14789 * testsuite/libgomp.c/simd-11.c: Same.
14790 * testsuite/libgomp.c/simd-12.c: Same.
14791 * testsuite/libgomp.c/simd-13.c: Same.
14792 * testsuite/libgomp.c/simd-14.c: Same.
14793 * testsuite/libgomp.c/simd-15.c: Same.
14794 * testsuite/libgomp.c/simd-2.c: Same.
14795 * testsuite/libgomp.c/simd-3.c: Same.
14796 * testsuite/libgomp.c/simd-4.c: Same.
14797 * testsuite/libgomp.c/simd-5.c: Same.
14798 * testsuite/libgomp.c/simd-6.c: Same.
14799 * testsuite/libgomp.c/simd-7.c: Same.
14800 * testsuite/libgomp.c/simd-8.c: Same.
14801 * testsuite/libgomp.c/simd-9.c: Same.
14802
14803 2015-06-15 Tom de Vries <tom@codesourcery.com>
14804
14805 * testsuite/libgomp.c/pr35625.c: Fix typo.
14806
14807 2015-06-15 Tom de Vries <tom@codesourcery.com>
14808
14809 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
14810 in dg-options.
14811 * testsuite/libgomp.c/atomic-3.c: Same.
14812 * testsuite/libgomp.c/debug-1.c: Same.
14813 * testsuite/libgomp.c/nqueens-1.c: Same.
14814 * testsuite/libgomp.c/pr26171.c: Same.
14815 * testsuite/libgomp.c/pr48591.c: Same.
14816 * testsuite/libgomp.c/pr64824.c: Same.
14817 * testsuite/libgomp.c/pr64868.c: Same.
14818 * testsuite/libgomp.c/pr66133.c: Same.
14819 * testsuite/libgomp.c/pr66199-1.c: Same.
14820 * testsuite/libgomp.c/pr66199-2.c: Same.
14821 * testsuite/libgomp.c/target-8.c: Same.
14822
14823 2015-06-15 Tom de Vries <tom@codesourcery.com>
14824
14825 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
14826 -std={gnu99,c99}.
14827 * testsuite/libgomp.c/for-1.c: Same.
14828 * testsuite/libgomp.c/for-2.c: Same.
14829 * testsuite/libgomp.c/for-3.c: Same.
14830 * testsuite/libgomp.c/pr35625.c: Same.
14831 * testsuite/libgomp.c/pr39154.c: Same.
14832 * testsuite/libgomp.c/simd-16.c: Same.
14833 * testsuite/libgomp.c/simd-17.c: Same.
14834
14835 2015-06-13 Tom de Vries <tom@codesourcery.com>
14836
14837 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
14838
14839 2015-06-13 Tom de Vries <tom@codesourcery.com>
14840
14841 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
14842 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14843 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
14844 (N): Define.
14845 (main): Use N instead of hardcoded constants.
14846
14847 2015-06-05 Tom de Vries <tom@codesourcery.com>
14848
14849 merge from gomp4 branch:
14850 2015-05-28 Tom de Vries <tom@codesourcery.com>
14851
14852 PR tree-optimization/65443
14853 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
14854 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
14855 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
14856
14857 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14858
14859 * testsuite/libgomp.graphite/bounds.c: Adjust for
14860 cleanup-tree-dump removal.
14861 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
14862 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
14863 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
14864 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
14865 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
14866 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
14867 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
14868 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
14869 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
14870 * testsuite/libgomp.graphite/pr41118.c: Likewise.
14871
14872 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
14873
14874 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
14875 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
14876 (futex_wake) [!__x86_64__]: Ditto.
14877
14878 2015-05-28 Julian Brown <julian@codesourcery.com>
14879
14880 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
14881 function comment. Only call gomp_fatal if new argument is true.
14882 (acc_dev_num_out_of_range): New function.
14883 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
14884 acc_dev_num_out_of_range as appropriate.
14885 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
14886 (acc_get_device_num, acc_set_device_num): Update calls to
14887 resolve_device.
14888 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
14889 output.
14890
14891 2015-05-28 Julian Brown <julian@codesourcery.com>
14892
14893 PR libgomp/65742
14894 * oacc-init.c (plugin/plugin-host.h): Include.
14895 (acc_on_device): Check whether we're in an offloaded region for
14896 host_nonshm
14897 plugin. Don't use __builtin_acc_on_device.
14898 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
14899 nonshm_exec flag in thread-local data.
14900 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
14901 data for host_nonshm plugin.
14902 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
14903 for host_nonshm plugin.
14904 * plugin/plugin-host.h: New.
14905
14906 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
14907
14908 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
14909
14910 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
14911
14912 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
14913 Declare as int.
14914 (FUTEX_PRIVATE_FLAG): Remove L suffix.
14915 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
14916 Declare as int.
14917
14918 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
14919
14920 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
14921
14922 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
14923
14924 * target.c (gomp_map_pointer): New function abstracting out
14925 GOMP_MAP_POINTER handling.
14926 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
14927 gomp_map_pointer().
14928
14929 2015-05-19 Jakub Jelinek <jakub@redhat.com>
14930
14931 PR middle-end/66199
14932 * testsuite/libgomp.c/pr66199-1.c: New test.
14933 * testsuite/libgomp.c/pr66199-2.c: New test.
14934 * testsuite/libgomp.c++/pr66199-1.C: New test.
14935 * testsuite/libgomp.c++/pr66199-2.C: New test.
14936 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
14937 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
14938
14939 2015-05-19 Julian Brown <julian@codesourcery.com>
14940
14941 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
14942 on cuInit failure.
14943
14944 2015-05-13 Jakub Jelinek <jakub@redhat.com>
14945
14946 PR middle-end/66133
14947 * testsuite/libgomp.c/pr66133.c: New test.
14948
14949 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
14950
14951 * Makefile.in: Regenerated with automake-1.11.6.
14952 * aclocal.m4: Likewise.
14953 * config.h.in: Likewise.
14954 * configure: Likewise.
14955 * testsuite/Makefile.in: Likewise.
14956
14957 2015-05-08 Jason Merrill <jason@redhat.com>
14958
14959 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
14960 _Complex.
14961
14962 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
14963
14964 2015-05-06 Julian Brown <julian@codesourcery.com>
14965
14966 * oacc-init.c (acc_device_lock): Add explanatory comment.
14967 (resolve_device): Add comment about locking requirement.
14968 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
14969 gomp_init_device and gomp_fini_device calls.
14970 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
14971 (acc_get_device_num, acc_set_device_num): Add locking around
14972 resolve_device and gomp_init_device calls.
14973
14974 2015-05-06 Julian Brown <julian@codesourcery.com>
14975
14976 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
14977 goacc_thread_lock on error paths.
14978 * oacc-mem.c (lookup_host): Remove locking from function. Note
14979 locking requirement for caller in function comment.
14980 (lookup_dev): Likewise.
14981 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
14982 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
14983 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
14984 Add locking.
14985
14986 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
14987
14988 PR testsuite/65205
14989 PR libgomp/65993
14990 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
14991 don't expect "0x" prefix for "%p" format specifier, don't expect
14992 "(nil)" for NULL pointer.
14993 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14994 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14995 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14996 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14997 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14998 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14999 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15000 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15001 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15002 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15003 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15004 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15005 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15006 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15007 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15008 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15009 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15010 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15011 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15012 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15013 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15014 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15015 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15016 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15017 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15018 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15019 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15020 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15021 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
15022 accurately specify what we're looking for.
15023 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15024 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15025 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15026 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15027 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15028
15029 2015-04-30 James Norris <jnorris@codesourcery.com>
15030
15031 PR testsuite/65205
15032 * testsuite/lib/libgomp.exp
15033 (check_effective_target_openacc_host_selected)
15034 (check_effective_target_openacc_host_nonshm_selected): New
15035 procedures.
15036 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
15037 dg-shouldfail.
15038 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15039 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15040 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15041 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15042 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15043 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15044 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15045 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15046 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15047 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15048 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15049 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15050 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15051 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15052 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15053 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15054 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15055 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15056 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15057 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15058 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15059 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15060 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15061 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15062 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15063 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15064 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15065 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15066 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15067 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15068 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15069 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15070 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15071 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15072 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15073 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15074 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15075 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15076 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15077 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15078 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15079 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15080 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15081
15082 2015-04-08 Julian Brown <julian@codesourcery.com>
15083
15084 * libgomp.h (target_mem_desc: Remove mem_map field.
15085 (acc_dispatch_t): Remove open_device_func, close_device_func,
15086 get_device_num_func, set_device_num_func, target_data members.
15087 Change create_thread_data_func argument to device number instead of
15088 generic pointer.
15089 * oacc-async.c (assert.h): Include.
15090 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
15091 (acc_wait_all, acc_wait_all_async): Use current host thread's
15092 active device, not base_dev.
15093 * oacc-cuda.c (acc_get_current_cuda_device)
15094 (acc_get_current_cuda_context, acc_get_cuda_stream)
15095 (acc_set_cuda_stream): Likewise.
15096 * oacc-host.c (host_dispatch): Don't set open_device_func,
15097 close_device_func, get_device_num_func or set_device_num_func.
15098 * oacc-init.c (base_dev, init_key): Remove.
15099 (cached_base_dev): New.
15100 (name_of_acc_device_t): New.
15101 (acc_init_1): Initialise default-numbered device, not zeroth.
15102 (acc_shutdown_1): Close all devices of a given type.
15103 (goacc_destroy_thread): Don't use base_dev.
15104 (lazy_open, lazy_init, lazy_init_and_open): Remove.
15105 (goacc_attach_host_thread_to_device): New.
15106 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
15107 (acc_get_num_devices): Don't use base_dev.
15108 (acc_set_device_type): Reimplement.
15109 (acc_get_device_type): Don't use base_dev.
15110 (acc_get_device_num): Tweak logic.
15111 (acc_set_device_num): Likewise.
15112 (acc_on_device): Use acc_get_device_type.
15113 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
15114 (goacc_lazy_initialize): Reimplement with acc_init and
15115 goacc_attach_host_thread_to_device.
15116 * oacc-int.h (goacc_thread): Add base_dev field.
15117 (base_dev): Remove extern declaration.
15118 (goacc_attach_host_thread_to_device): Add prototype.
15119 * oacc-mem.c (acc_malloc): Use current thread's device instead of
15120 base_dev.
15121 (acc_free): Likewise.
15122 (acc_memcpy_to_device): Likewise.
15123 (acc_memcpy_from_device): Likewise.
15124 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
15125 goacc_lazy_initialize (throughout).
15126 (GOACC_parallel): Use tgt_offset to locate target functions.
15127 * target.c (gomp_map_vars): Don't set tgt->mem_map.
15128 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
15129 (gomp_load_plugin_for_device): Remove open_device, close_device,
15130 get_device_num, set_device_num openacc hook initialisation. Don't set
15131 openacc.target_data.
15132 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
15133 (GOMP_OFFLOAD_openacc_close_device)
15134 (GOMP_OFFLOAD_openacc_get_device_num)
15135 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
15136 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
15137 to int.
15138 * plugin/plugin-nvptx.c (ptx_inited): Remove.
15139 (instantiated_devices, ptx_dev_lock): New.
15140 (struct ptx_image_data): New.
15141 (ptx_devices, ptx_images, ptx_image_lock): New.
15142 (fini_streams_for_device): Reorder cuStreamDestroy call.
15143 (nvptx_get_num_devices): Remove forward declaration.
15144 (nvptx_init): Change return type to bool.
15145 (nvptx_fini): Remove.
15146 (nvptx_attach_host_thread_to_device): New.
15147 (nvptx_open_device): Return struct ptx_device* instead of void*.
15148 (nvptx_close_device): Change argument type to struct ptx_device*,
15149 return type to void.
15150 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
15151 (kernel_target_data, kernel_host_table): Remove static globals.
15152 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
15153 (GOMP_OFFLOAD_init_device): Reimplement.
15154 (GOMP_OFFLOAD_fini_device): Likewise.
15155 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
15156 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
15157 (GOMP_OFFLOAD_host2dev): Use ORD argument.
15158 (GOMP_OFFLOAD_openacc_open_device)
15159 (GOMP_OFFLOAD_openacc_close_device)
15160 (GOMP_OFFLOAD_openacc_set_device_num)
15161 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
15162 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
15163 (device number).
15164
15165 testsuite/
15166 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
15167
15168 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
15169
15170 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
15171 * libgomp.h (struct gomp_memory_mapping): Remove.
15172 (struct target_mem_desc): Change type of mem_map from
15173 gomp_memory_mapping * to splay_tree_s *.
15174 (struct gomp_device_descr): Remove register_image_func, get_table_func.
15175 Add load_image_func, unload_image_func.
15176 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
15177 Remove offload_regions_registered.
15178 (gomp_init_tables): Remove.
15179 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15180 to splay_tree_s *.
15181 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
15182 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
15183 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
15184 offload_regions_registered.
15185 Initialize load_image_func, unload_image_func, mem_map.root.
15186 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
15187 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
15188 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
15189 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
15190 gomp_memory_mapping *. Use dev's lock and splay_tree.
15191 (lookup_dev): Use dev's lock.
15192 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
15193 (acc_is_present): Likewise.
15194 (acc_map_data): Likewise.
15195 (acc_unmap_data): Likewise. Use dev's lock.
15196 (present_create_copy): Likewise.
15197 (delete_copyout): Pass dev to lookup_host instead of mem_map.
15198 (update_dev_host): Likewise.
15199 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
15200 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
15201 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
15202 (GOMP_OFFLOAD_get_table): Remove
15203 (GOMP_OFFLOAD_load_image): New function.
15204 (GOMP_OFFLOAD_unload_image): New function.
15205 * target.c (register_lock): New mutex for offload image registration.
15206 (num_devices): Do not guard with PLUGIN_SUPPORT.
15207 (gomp_realloc_unlock): New static function.
15208 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
15209 before gomp_fatal.
15210 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
15211 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
15212 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
15213 mem_map's.
15214 (gomp_unmap_vars): Likewise.
15215 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
15216 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
15217 (gomp_offload_image_to_device): New static function.
15218 (GOMP_offload_register): Add mutex lock.
15219 Call gomp_offload_image_to_device for all initialized devices.
15220 Replace gomp_realloc with gomp_realloc_unlock.
15221 (GOMP_offload_unregister): New function.
15222 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
15223 get_table_func from the plugin with calls to init_device_func and
15224 gomp_offload_image_to_device.
15225 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15226 to splay_tree_s *.
15227 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
15228 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
15229 (GOMP_target_data): Do not call gomp_init_tables.
15230 (GOMP_target_update): Likewise. Remove argument from gomp_update.
15231 (gomp_load_plugin_for_device): Replace register_image and get_table
15232 with load_image and unload_image in DLSYM ().
15233 (gomp_register_images_for_device): Remove function.
15234 (gomp_target_init): Do not initialize current_device.mem_map.*,
15235 current_device.offload_regions_registered.
15236 Remove call to gomp_register_images_for_device.
15237 Do not free offload_images and num_offload_images.
15238
15239 2015-03-30 Jakub Jelinek <jakub@redhat.com>
15240
15241 PR fortran/65597
15242 * testsuite/libgomp.fortran/pr65597.f90: New test.
15243
15244 2015-03-27 Tom de Vries <tom@codesourcery.com>
15245
15246 PR testsuite/65594
15247 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
15248 (init, check): New function.
15249 (foo): Change return type to void.
15250 (main): Call init and check.
15251
15252 2015-03-27 Tom de Vries <tom@codesourcery.com>
15253
15254 PR testsuite/65594
15255 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
15256 (foo): Use M for non-inner loops to scale down test-case.
15257
15258 2015-03-25 Kai Tietz <ktietz@redhat.com>
15259
15260 PR libgomp/64972
15261 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
15262 (GOACC_data_start): Likewise.
15263 * target.c (gomp_map_vars): Likewise.
15264
15265 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
15266
15267 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
15268 hppa*-*-hpux*.
15269
15270 2015-03-19 Jakub Jelinek <jakub@redhat.com>
15271
15272 * testsuite/libgomp.c/target-10.c: New test.
15273 * testsuite/libgomp.c++/target-4.C: New test.
15274
15275 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
15276
15277 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
15278 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
15279
15280 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
15281
15282 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
15283 * configure.ac (*-*-rtems*): Assume Pthread is supported.
15284 (pthread.h): Check for this header file.
15285 * configure: Regenerate.
15286
15287 2015-02-25 Tom de Vries <tom@codesourcery.com>
15288
15289 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
15290 (check_reduction_op, check_reduction_macro, max, min):
15291 Declare.
15292 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
15293 function.
15294 (main): Use new functions.
15295
15296 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
15297
15298 * target.c (gomp_load_plugin_for_device): Use const char * instead of
15299 char * for variables holding dlerror return values.
15300 (DLSYM_OPT): Ditto.
15301
15302 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
15303
15304 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
15305
15306 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
15307 Cesar Philippidis <cesar@codesourcery.com>
15308
15309 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
15310 GOACC_ctaid, and GOACC_nctaid routines.
15311
15312 2015-02-11 Jakub Jelinek <jakub@redhat.com>
15313
15314 PR c/64824
15315 * testsuite/libgomp.c/atomic-18.c: New test.
15316 * testsuite/libgomp.c++/atomic-16.C: New test.
15317
15318 2015-02-04 Jakub Jelinek <jakub@redhat.com>
15319
15320 PR c/64824
15321 PR c/64868
15322 * testsuite/libgomp.c/pr64824.c: New test.
15323 * testsuite/libgomp.c/pr64868.c: New test.
15324 * testsuite/libgomp.c++/pr64824.C: New test.
15325 * testsuite/libgomp.c++/pr64868.C: New test.
15326
15327 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
15328
15329 PR libgomp/64635
15330 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
15331 Link with -lpthread.
15332 * config/aix/plugin-suffix.h: Delete.
15333
15334 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
15335
15336 PR libgomp/64635
15337 * configure.tgt (*-*-aix*): Use config_path "aix posix".
15338 (*-*-darwin*): Use config_path "bsd darwin posix".
15339 (*-*-hpux*): Use config_path "hpux posix".
15340 * target.c: Add include of plugin-suffix.h and use
15341 SONAME_SUFFIX macro.
15342 * config/aix/plugin-suffix.h: New file.
15343 * config/darwin/plugin-suffix.h: New file.
15344 * config/hpux/plugin-suffix.h: New file.
15345 * config/posix/plugin-suffix.h: New file.
15346
15347 2015-01-23 Jakub Jelinek <jakub@redhat.com>
15348
15349 PR middle-end/64734
15350 * libgomp.c/pr64734.c: New test.
15351
15352 2015-01-23 Tom de Vries <tom@codesourcery.com>
15353
15354 PR libgomp/64672
15355 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
15356
15357 2015-01-23 Tom de Vries <tom@codesourcery.com>
15358
15359 PR libgomp/64707
15360 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
15361 dg-options.
15362
15363 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
15364
15365 PR libgomp/64625
15366 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
15367 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
15368 formal parameter. Update all users.
15369 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
15370 Document unused formal parameter.
15371
15372 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
15373
15374 * oacc-parallel.c: Don't include <alloca.h>.
15375 (GOACC_parallel): Use gomp_alloca instead of alloca.
15376
15377 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
15378
15379 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
15380
15381 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
15382 James Norris <jnorris@codesourcery.com>
15383 Tom de Vries <tom@codesourcery.com>
15384 Julian Brown <julian@codesourcery.com>
15385 Cesar Philippidis <cesar@codesourcery.com>
15386 Nathan Sidwell <nathan@codesourcery.com>
15387 Tobias Burnus <burnus@net-b.de>
15388
15389 * Makefile.am (search_path): Add $(top_srcdir)/../include.
15390 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
15391 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
15392 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
15393 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
15394 Include $(top_srcdir)/plugin/Makefrag.am.
15395 (nodist_libsubinclude_HEADERS): Add openacc.h.
15396 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
15397 openacc.f90, openacc.mod, openacc_kinds.mod.
15398 (omp_lib.mod): Generalize into...
15399 (%.mod): ... this new rule.
15400 (openacc_kinds.mod, openacc.mod): New rules.
15401 * plugin/configfrag.ac: New file.
15402 * configure.ac: Move plugin/offloading support into it. Include
15403 it. Instantiate testsuite/libgomp-test-support.pt.exp.
15404 * plugin/Makefrag.am: New file.
15405 * testsuite/Makefile.am (OFFLOAD_TARGETS)
15406 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
15407 export.
15408 (libgomp-test-support.exp): New rule.
15409 (all-local): Depend on it.
15410 * Makefile.in: Regenerate.
15411 * testsuite/Makefile.in: Regenerate.
15412 * config.h.in: Likewise.
15413 * configure: Likewise.
15414 * configure.tgt: Harden shell syntax.
15415 * env.c: Include "oacc-int.h".
15416 (parse_acc_device_type): New function.
15417 (gomp_debug_var, goacc_device_type, goacc_device_num): New
15418 variables.
15419 (initialize_env): Initialize those. Call
15420 goacc_runtime_initialize.
15421 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
15422 (gomp_fatal): Call gomp_vfatal.
15423 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
15424 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
15425 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
15426 (splay_tree_node, splay_tree, splay_tree_key)
15427 (struct target_mem_desc, struct splay_tree_key_s)
15428 (struct gomp_memory_mapping, struct acc_dispatch_t)
15429 (struct gomp_device_descr, gomp_acc_insert_pointer)
15430 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
15431 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
15432 (gomp_free_memmap, gomp_fini_device): New declarations.
15433 (gomp_vdebug, gomp_debug): New macros.
15434 Include "splay-tree.h".
15435 * libgomp.map (OACC_2.0): New symbol version. Use for
15436 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
15437 acc_set_device_type_h_, acc_get_device_type,
15438 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
15439 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
15440 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
15441 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
15442 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
15443 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
15444 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
15445 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
15446 acc_copyin_array_h_, acc_present_or_copyin,
15447 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
15448 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
15449 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
15450 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
15451 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
15452 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
15453 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
15454 acc_update_device, acc_update_device_32_h_,
15455 acc_update_device_64_h_, acc_update_device_array_h_,
15456 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
15457 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
15458 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
15459 acc_is_present_64_h_, acc_is_present_array_h_,
15460 acc_memcpy_to_device, acc_memcpy_from_device,
15461 acc_get_current_cuda_device, acc_get_current_cuda_context,
15462 acc_get_cuda_stream, acc_set_cuda_stream.
15463 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
15464 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
15465 GOACC_update, GOACC_wait, GOACC_get_thread_num,
15466 GOACC_get_num_threads.
15467 (GOMP_PLUGIN_1.0): New symbol version. Use for
15468 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
15469 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
15470 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
15471 GOMP_PLUGIN_acc_thread.
15472 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
15473 environment variable.
15474 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
15475 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
15476 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
15477 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
15478 (splay_tree_remove): New declarations.
15479 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
15480 (splay_tree_remove, splay_tree_lookup): Move into...
15481 * splay-tree.c: ... this new file.
15482 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
15483 (splay_tree_node, splay_tree, splay_tree_key)
15484 (struct target_mem_desc, struct splay_tree_key_s)
15485 (struct gomp_device_descr): Don't declare.
15486 (num_devices_openmp): New variable.
15487 (gomp_get_num_devices ): Use it.
15488 (gomp_init_targets_once): New function.
15489 (gomp_get_num_devices ): Use it.
15490 (get_kind, gomp_copy_from_async, gomp_free_memmap)
15491 (gomp_fini_device, gomp_register_image_for_device): New functions.
15492 (gomp_map_vars): Add devaddrs parameter.
15493 (gomp_update): Add mm parameter.
15494 (gomp_init_device): Move most of it into...
15495 (gomp_init_tables): ... this new function.
15496 (gomp_register_images_for_device): Remove function.
15497 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
15498 Make them hidden instead of static.
15499 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
15500 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
15501 (GOMP_target_end_data, GOMP_target_update)
15502 (gomp_load_plugin_for_device, gomp_target_init): Update for
15503 OpenACC changes.
15504 * oacc-async.c: New file.
15505 * oacc-cuda.c: Likewise.
15506 * oacc-host.c: Likewise.
15507 * oacc-init.c: Likewise.
15508 * oacc-int.h: Likewise.
15509 * oacc-mem.c: Likewise.
15510 * oacc-parallel.c: Likewise.
15511 * oacc-plugin.c: Likewise.
15512 * oacc-plugin.h: Likewise.
15513 * oacc-ptx.h: Likewise.
15514 * openacc.f90: Likewise.
15515 * openacc.h: Likewise.
15516 * openacc_lib.h: Likewise.
15517 * plugin/plugin-host.c: Likewise.
15518 * plugin/plugin-nvptx.c: Likewise.
15519 * libgomp-plugin.c: Likewise.
15520 * libgomp-plugin.h: Likewise.
15521 * libgomp_target.h: Remove file after merging content into the
15522 former file. Update all users.
15523 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
15524 (offload_targets_s, offload_targets_s_openacc): New variables.
15525 (check_effective_target_openacc_nvidia_accel_present)
15526 (check_effective_target_openacc_nvidia_accel_selected): New
15527 procedures.
15528 (libgomp_init): Update for OpenACC changes.
15529 * testsuite/libgomp-test-support.exp.in: New file.
15530 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
15531 * testsuite/libgomp.oacc-c/c.exp: Likewise.
15532 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15533 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
15534 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
15535 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
15536 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
15537 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
15538 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
15539 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
15540 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
15541 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
15542 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
15543 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
15544 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
15545 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
15546 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
15547 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
15548 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
15549 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
15550 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
15551 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
15552 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
15553 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
15554 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15555 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
15556 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
15557 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
15558 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
15559 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
15560 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15561 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
15562 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
15563 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
15564 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
15565 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15566 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
15567 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15568 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
15569 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
15570 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
15571 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
15572 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15573 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15574 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15575 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
15576 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15577 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15578 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15579 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15580 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15581 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
15582 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15583 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15584 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15585 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15586 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15587 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15588 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15589 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
15590 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
15591 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
15592 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15593 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15594 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15595 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
15596 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
15597 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15598 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15599 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15600 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
15601 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15602 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15603 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15604 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
15605 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
15606 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15607 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15608 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
15609 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
15610 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
15611 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
15612 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15613 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15614 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15615 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
15616 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
15617 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15618 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15619 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
15620 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
15621 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
15622 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
15623 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15624 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15625 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15626 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15627 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
15628 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15629 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15630 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
15631 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
15632 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
15633 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15634 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
15635 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
15636 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
15637 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
15638 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
15639 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15640 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
15641 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
15642 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15643 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
15644 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
15645 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
15646 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
15647 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
15648 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
15649 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
15650 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
15651 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
15652 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
15653 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
15654 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
15655 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
15656 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
15657 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
15658 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
15659 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
15660 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
15661 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
15662 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15663 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
15664 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
15665 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
15666 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
15667 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
15668 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
15669 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
15670 Likewise.
15671 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
15672 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
15673 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
15674 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
15675 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
15676 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
15677 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
15678 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
15679 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
15680 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
15681 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
15682 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
15683 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
15684 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
15685 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
15686 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
15687 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
15688 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
15689 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
15690 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
15691 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
15692 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
15693 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
15694 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
15695 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
15696 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
15697 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15698 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15699 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
15700 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
15701 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
15702 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
15703 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
15704 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15705 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
15706 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
15707 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
15708 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
15709 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
15710 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
15711 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
15712 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
15713 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
15714 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
15715 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
15716 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
15717 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
15718 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
15719 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
15720 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
15721 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
15722 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
15723 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
15724 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
15725 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
15726 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
15727 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
15728 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
15729 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
15730 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
15731
15732 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
15733 Julian Brown <julian@codesourcery.com>
15734 David Malcolm <dmalcolm@redhat.com>
15735
15736 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
15737 to "GNU Offloading and Multi Processing Runtime Library". Change
15738 all users.
15739 * configure: Regenerate.
15740 * libgomp.texi: Update.
15741
15742 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
15743
15744 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
15745 "$tgt_dir/lib32".
15746 * configure: Regenerate.
15747
15748 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
15749 "intelmic" in $offload_targets.
15750
15751 2015-01-05 Jakub Jelinek <jakub@redhat.com>
15752
15753 Update copyright years.
15754
15755 * libgomp.texi: Bump @copying's copyright year.
15756
15757 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15758
15759 * testsuite/lib/libgomp.exp: Load target-utils.exp.
15760 Move load of target-supports.exp earlier.
15761
15762 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
15763
15764 * testsuite/libgomp.c/target-9.c: New test.
15765
15766 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
15767
15768 * config.h.in: Regenerate.
15769 * configure: Regenerate.
15770 * configure.ac: Add GCC_CHECK_EMUTLS.
15771 * libgomp.h: Add check for USE_EMUTLS: this case
15772 is equal to HAVE_TLS.
15773 * team.c: Likewise.
15774
15775 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
15776
15777 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
15778
15779 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
15780 Ilya Verbin <ilya.verbin@intel.com>
15781
15782 * testsuite/libgomp.c/target-critical-1.c: New test.
15783
15784 2014-11-26 Jakub Jelinek <jakub@redhat.com>
15785
15786 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
15787 to dg-options unless expensive testing is on.
15788 (TESTITERS): Define to N if not defined.
15789 (main): Use TESTITERS instead of N.
15790 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
15791 dg-additional-options depending on whether expensive testing is on.
15792 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
15793 Decrease N to 100000 and CHUNKSZ to 10000.
15794
15795 2014-11-24 Jakub Jelinek <jakub@redhat.com>
15796
15797 PR fortran/63938
15798 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
15799 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
15800
15801 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
15802
15803 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
15804
15805 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
15806
15807 PR bootstrap/63784
15808 * configure: Regenerated.
15809
15810 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
15811
15812 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
15813 vect_simd_clones effective target.
15814 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
15815
15816 2014-11-14 Jakub Jelinek <jakub@redhat.com>
15817
15818 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
15819 of 32 as block_size.
15820 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
15821 instead of 32 as block_size.
15822
15823 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
15824 Ilya Verbin <ilya.verbin@intel.com>
15825
15826 * Makefile.in: Regenerate.
15827 * configure: Regenerate.
15828 * configure.ac: Set up offload_additional_options,
15829 offload_additional_lib_paths and offload_targets.
15830 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
15831 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
15832 * testsuite/Makefile.in: Regenerate.
15833 * testsuite/lib/libgomp.exp (libgomp_init): Append
15834 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
15835 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
15836 build directory to LD_LIBRARY_PATH for intelmic offload targets.
15837
15838 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
15839 Ilya Verbin <ilya.verbin@intel.com>
15840 Kirill Yukhin <kirill.yukhin@intel.com>
15841 Ilya Tocar <ilya.tocar@intel.com>
15842
15843 * testsuite/lib/libgomp.exp
15844 (check_effective_target_offload_device): New.
15845 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
15846 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
15847 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
15848 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
15849 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
15850 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
15851 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
15852 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
15853 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
15854 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
15855 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
15856 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
15857 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
15858 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
15859 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
15860 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
15861 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
15862 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
15863 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
15864 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
15865 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
15866 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
15867 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
15868 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
15869 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
15870 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
15871 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
15872 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
15873 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
15874 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
15875 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
15876 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
15877 * testsuite/libgomp.c/target-7.c: Fix test.
15878 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
15879 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
15880 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
15881 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
15882 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
15883 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
15884 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
15885 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
15886 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
15887 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
15888 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
15889 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
15890 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
15891 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
15892 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
15893 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
15894 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
15895 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
15896 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
15897 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
15898 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
15899 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
15900 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
15901 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
15902 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
15903 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
15904 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
15905 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
15906 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
15907 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
15908 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
15909
15910 2014-11-13 Jakub Jelinek <jakub@redhat.com>
15911 Ilya Verbin <ilya.verbin@intel.com>
15912 Thomas Schwinge <thomas@codesourcery.com>
15913 Andrey Turetskiy <andrey.turetskiy@intel.com>
15914
15915 * libgomp.map (GOMP_4.0.1): New symbol version.
15916 Add GOMP_offload_register.
15917 * libgomp_target.h: New file.
15918 * splay-tree.h: New file.
15919 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
15920 (gomp_target_init): New forward declaration.
15921 (gomp_is_initialized): New static variable.
15922 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
15923 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
15924 New structures.
15925 (offload_images, num_offload_images, devices, num_devices): New static
15926 variables.
15927 (splay_compare): New static function.
15928 (struct gomp_device_descr): New structure.
15929 (gomp_get_num_devices): Call gomp_target_init.
15930 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
15931 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
15932 (GOMP_offload_register): New function.
15933 (GOMP_target): Arrange for host callback to be performed in a separate
15934 initial thread and contention group, inheriting ICVs from
15935 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
15936 Add device initialization and lookup for target function in splay tree.
15937 (GOMP_target_data): Add device initialization and call gomp_map_vars.
15938 (GOMP_target_end_data): Call gomp_unmap_vars.
15939 (GOMP_target_update): Add device initialization and call gomp_update.
15940 (gomp_load_plugin_for_device, gomp_register_images_for_device)
15941 (gomp_target_init): New static functions.
15942
15943 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
15944 Thomas Schwinge <thomas@codesourcery.com>
15945 Ilya Verbin <ilya.verbin@intel.com>
15946 Andrey Turetskiy <andrey.turetskiy@intel.com>
15947
15948 * config.h.in: Regenerate.
15949 * configure: Regenerate.
15950 * configure.ac: Check for libdl, required for plugin support.
15951 (PLUGIN_SUPPORT): Define if plugins are supported.
15952 (enable_offload_targets): Support Intel MIC targets.
15953 (OFFLOAD_TARGETS): List of target names suitable for offloading.
15954
15955 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15956
15957 PR target/63610
15958 * configure: Regenerate.
15959
15960 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15961
15962 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
15963
15964 2014-10-06 Marek Polacek <polacek@redhat.com>
15965
15966 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
15967 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
15968 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
15969 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
15970
15971 2014-10-06 Marek Polacek <polacek@redhat.com>
15972
15973 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
15974 * testsuite/libgomp.c/nqueens-1.c: Likewise.
15975 * testsuite/libgomp.c/pr26943-3.c: Likewise.
15976 * testsuite/libgomp.c/pr26943-4.c: Likewise.
15977 * testsuite/libgomp.c/pr36802-2.c: Likewise.
15978 * testsuite/libgomp.c/pr36802-3.c: Likewise.
15979 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
15980 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
15981 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
15982 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
15983 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
15984 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
15985 * testsuite/libgomp.c/omp-single-1.c: Likewise.
15986 * testsuite/libgomp.c/omp-single-2.c: Likewise.
15987 * testsuite/libgomp.c/omp_matvec.c: Likewise.
15988 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
15989 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
15990 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
15991 declarations.
15992
15993 2014-10-03 Jakub Jelinek <jakub@redhat.com>
15994
15995 PR libgomp/61200
15996 * testsuite/libgomp.c/pr61200.c: New test.
15997
15998 2014-09-18 Jakub Jelinek <jakub@redhat.com>
15999
16000 PR c++/63248
16001 * testsuite/libgomp.c++/pr63248.C: New test.
16002
16003 2014-08-04 Jakub Jelinek <jakub@redhat.com>
16004
16005 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
16006 is not zero, but taskgroup->children is NULL and there are
16007 any task->children, schedule those instead of waiting.
16008 * testsuite/libgomp.c/depend-6.c: New test.
16009 * testsuite/libgomp.c/depend-7.c: New test.
16010 * testsuite/libgomp.c/depend-8.c: New test.
16011 * testsuite/libgomp.c/depend-9.c: New test.
16012 * testsuite/libgomp.c/depend-10.c: New test.
16013
16014 2014-08-01 Jakub Jelinek <jakub@redhat.com>
16015
16016 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
16017 (struct gomp_taskwait): New type.
16018 (struct gomp_task): Add taskwait and parent_depends_on, remove
16019 in_taskwait and taskwait_sem fields.
16020 (gomp_finish_task): Don't destroy taskwait_sem.
16021 * task.c (gomp_init_task): Don't init in_taskwait, instead init
16022 taskwait and parent_depends_on.
16023 (GOMP_task): For if (0) tasks with depend clause that depend on
16024 earlier tasks don't defer them, instead call
16025 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
16026 Initialize redundant_out field, for redundant out entries just
16027 move them at the end of linked list instead of removing them
16028 completely, and set redundant_out flag instead of redundant.
16029 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
16030 that task.
16031 (gomp_task_run_post_handle_dependers): If parent is in
16032 gomp_task_maybe_wait_for_dependencies and newly runnable task
16033 is not parent_depends_on, queue it in parent->children linked
16034 list after all runnable tasks with parent_depends_on set.
16035 Adjust for addition of taskwait indirection.
16036 (gomp_task_run_post_remove_parent): If parent is in
16037 gomp_task_maybe_wait_for_dependencies and task to be removed
16038 is parent_depends_on, decrement n_depend and if needed awake
16039 parent. Adjust for addition of taskwait indirection.
16040 (GOMP_taskwait): Adjust for addition of taskwait indirection.
16041 (gomp_task_maybe_wait_for_dependencies): New function.
16042 * testsuite/libgomp.c/depend-5.c: New test.
16043
16044 2014-07-13 Tobias Burnus <burnus@net-b.de>
16045
16046 * testsuite/libgomp.fortran/pr34020.f90: Make compile
16047 with TS 18508/Fortran 2015.
16048
16049 2014-07-06 Marek Polacek <polacek@redhat.com>
16050
16051 PR c/6940
16052 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
16053
16054 2014-07-03 Jakub Jelinek <jakub@redhat.com>
16055
16056 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
16057 matches regex $lang_source_re, add $lang_include_flags to options.
16058 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
16059 * testsuite/libgomp.c++/c++.exp: Likewise.
16060 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
16061 and lang_include_flags instead of adding -fintrinsic-modules-path= to
16062 ALWAYS_CFLAGS.
16063 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
16064
16065 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
16066
16067 * testsuite/libgomp.fortran/fortran.exp: Explain
16068 gfortran-dg-runtest usage.
16069
16070 2014-06-25 Jakub Jelinek <jakub@redhat.com>
16071
16072 * testsuite/libgomp.fortran/simd5.f90: New test.
16073 * testsuite/libgomp.fortran/simd6.f90: New test.
16074 * testsuite/libgomp.fortran/simd7.f90: New test.
16075
16076 2014-06-24 Jakub Jelinek <jakub@redhat.com>
16077
16078 * testsuite/libgomp.c/for-2.c: Define SC to static for
16079 #pragma omp for simd testing.
16080 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
16081 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
16082 SC macro.
16083 * testsuite/libgomp.c/simd-14.c: New test.
16084 * testsuite/libgomp.c/simd-15.c: New test.
16085 * testsuite/libgomp.c/simd-16.c: New test.
16086 * testsuite/libgomp.c/simd-17.c: New test.
16087 * testsuite/libgomp.c++/for-10.C: Define SC to static for
16088 #pragma omp for simd testing.
16089 * testsuite/libgomp.c++/simd10.C: New test.
16090 * testsuite/libgomp.c++/simd11.C: New test.
16091 * testsuite/libgomp.c++/simd12.C: New test.
16092 * testsuite/libgomp.c++/simd13.C: New test.
16093
16094 * testsuite/libgomp.fortran/aligned1.f03: New test.
16095 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
16096 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
16097 tasks with !$omp parallel !$omp single.
16098 * testsuite/libgomp.fortran/target8.f90: New test.
16099 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
16100 not to use trim in the combiner, instead call elemental function.
16101 (fn): New elemental function.
16102 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
16103 Make elemental.
16104 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
16105 omp_in): Likewise.
16106 * testsuite/libgomp.fortran/udr12.f90: New test.
16107 * testsuite/libgomp.fortran/udr13.f90: New test.
16108 * testsuite/libgomp.fortran/udr14.f90: New test.
16109 * testsuite/libgomp.fortran/udr15.f90: New test.
16110
16111 2014-06-18 Jakub Jelinek <jakub@redhat.com>
16112
16113 * omp_lib.f90.in (openmp_version): Set to 201307.
16114 * omp_lib.h.in (openmp_version): Likewise.
16115 * testsuite/libgomp.c/target-8.c: New test.
16116 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
16117 and inbranch clauses.
16118 * testsuite/libgomp.fortran/depend-3.f90: New test.
16119 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
16120 openmp_version.
16121 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16122 * testsuite/libgomp.fortran/target1.f90: New test.
16123 * testsuite/libgomp.fortran/target2.f90: New test.
16124 * testsuite/libgomp.fortran/target3.f90: New test.
16125 * testsuite/libgomp.fortran/target4.f90: New test.
16126 * testsuite/libgomp.fortran/target5.f90: New test.
16127 * testsuite/libgomp.fortran/target6.f90: New test.
16128 * testsuite/libgomp.fortran/target7.f90: New test.
16129
16130 2014-06-10 Jakub Jelinek <jakub@redhat.com>
16131
16132 PR fortran/60928
16133 * testsuite/libgomp.fortran/allocatable9.f90: New test.
16134 * testsuite/libgomp.fortran/allocatable10.f90: New test.
16135 * testsuite/libgomp.fortran/allocatable11.f90: New test.
16136 * testsuite/libgomp.fortran/allocatable12.f90: New test.
16137 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
16138 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
16139 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
16140 * testsuite/libgomp.fortran/associate1.f90: New test.
16141 * testsuite/libgomp.fortran/associate2.f90: New test.
16142 * testsuite/libgomp.fortran/procptr1.f90: New test.
16143
16144 2014-06-06 Jakub Jelinek <jakub@redhat.com>
16145
16146 * testsuite/libgomp.fortran/simd1.f90: New test.
16147 * testsuite/libgomp.fortran/udr1.f90: New test.
16148 * testsuite/libgomp.fortran/udr2.f90: New test.
16149 * testsuite/libgomp.fortran/udr3.f90: New test.
16150 * testsuite/libgomp.fortran/udr4.f90: New test.
16151 * testsuite/libgomp.fortran/udr5.f90: New test.
16152 * testsuite/libgomp.fortran/udr6.f90: New test.
16153 * testsuite/libgomp.fortran/udr7.f90: New test.
16154 * testsuite/libgomp.fortran/udr8.f90: New test.
16155 * testsuite/libgomp.fortran/udr9.f90: New test.
16156 * testsuite/libgomp.fortran/udr10.f90: New test.
16157 * testsuite/libgomp.fortran/udr11.f90: New test.
16158
16159 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
16160
16161 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
16162 vect_simd_clones effective target.
16163 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
16164
16165 2014-05-21 Jakub Jelinek <jakub@redhat.com>
16166
16167 PR middle-end/61252
16168 * testsuite/libgomp.c++/simd-9.C: New test.
16169
16170 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
16171
16172 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
16173 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
16174 texts according to their @menu entry positions.
16175
16176 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16177
16178 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
16179 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
16180 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
16181 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
16182 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
16183 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
16184 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
16185 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
16186 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
16187 * testsuite/libgomp.fortran/depend-1.f90: New test.
16188 * testsuite/libgomp.fortran/depend-2.f90: New test.
16189 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
16190 * testsuite/libgomp.fortran/simd1.f90: New test.
16191 * testsuite/libgomp.fortran/simd2.f90: New test.
16192 * testsuite/libgomp.fortran/simd3.f90: New test.
16193 * testsuite/libgomp.fortran/simd4.f90: New test.
16194 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
16195
16196 2014-05-02 Jakub Jelinek <jakub@redhat.com>
16197
16198 * testsuite/libgomp.c/simd-10.c: New test.
16199 * testsuite/libgomp.c/simd-11.c: New test.
16200 * testsuite/libgomp.c/simd-12.c: New test.
16201 * testsuite/libgomp.c/simd-13.c: New test.
16202
16203 2014-04-24 Jakub Jelinek <jakub@redhat.com>
16204
16205 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
16206 atomic type clauses in any order and optional comma in between.
16207 * testsuite/libgomp.c++/atomic-15.C: Likewise.
16208 * testsuite/libgomp.c/atomic-17.c: Likewise.
16209
16210 * testsuite/libgomp.c/simd-7.c: New test.
16211 * testsuite/libgomp.c/simd-8.c: New test.
16212 * testsuite/libgomp.c/simd-9.c: New test.
16213 * testsuite/libgomp.c/loop-16.c: New test.
16214
16215 2014-04-02 Richard Henderson <rth@redhat.com>
16216
16217 * config/linux/futex.h (futex_wait): Get error value from errno.
16218 (futex_wake): Likewise.
16219
16220 2014-03-25 Jakub Jelinek <jakub@redhat.com>
16221
16222 PR c++/60331
16223 * testsuite/libgomp.c++/udr-11.C: New test.
16224 * testsuite/libgomp.c++/udr-12.C: New test.
16225 * testsuite/libgomp.c++/udr-13.C: New test.
16226 * testsuite/libgomp.c++/udr-14.C: New test.
16227 * testsuite/libgomp.c++/udr-15.C: New test.
16228 * testsuite/libgomp.c++/udr-16.C: New test.
16229 * testsuite/libgomp.c++/udr-17.C: New test.
16230 * testsuite/libgomp.c++/udr-18.C: New test.
16231 * testsuite/libgomp.c++/udr-19.C: New test.
16232
16233 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
16234
16235 Update copyright years
16236
16237 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
16238
16239 * hashtab.h: Use the standard form for the copyright notice.
16240
16241 2014-01-02 Tobias Burnus <burnus@net-b.de>
16242
16243 * libgomp.texi: Bump @copying's copyright year.
16244
16245 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
16246
16247 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
16248 alloca () with __builtin_alloca ().
16249 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
16250 * testsuite/libgomp.c/lock-3.c: Likewise.
16251 * testsuite/libgomp.c/pr48591.c: Likewise.
16252
16253 2013-12-17 Jakub Jelinek <jakub@redhat.com>
16254
16255 PR testsuite/59534
16256 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
16257 comparisons.
16258
16259 2013-12-16 Jakub Jelinek <jakub@redhat.com>
16260
16261 PR libgomp/58756
16262 * testsuite/libgomp.c/pr58756.c: New test.
16263
16264 2013-12-12 Jakub Jelinek <jakub@redhat.com>
16265
16266 PR libgomp/59467
16267 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
16268 !$omp parallel.
16269
16270 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
16271
16272 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
16273 ALWAYS_CFLAGS.
16274 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
16275 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
16276 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
16277 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
16278 Likewise.
16279
16280 * libgomp_g.h: Include <stddef.h> for size_t.
16281
16282 * libgomp.spec.in: Update comment about libgomp's dependencies.
16283 * configure.ac: Likewise.
16284 * configure: Regenerate.
16285
16286 2013-10-16 Tobias Burnus <burnus@net-b.de>
16287
16288 * libgomp.texi: (Runtime Library Routines): Update references for
16289 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
16290 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
16291 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
16292 (Environment Variables): Update references for OpenMP 4.0. Add
16293 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
16294 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
16295 order.
16296
16297 2013-10-14 Jakub Jelinek <jakub@redhat.com>
16298
16299 * env.c (parse_bind_var): Initialize value to avoid
16300 (false positive) warning.
16301
16302 2013-10-12 Jakub Jelinek <jakub@redhat.com>
16303
16304 PR libgomp/58691
16305 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
16306 to check variable.
16307 (gomp_init_num_threads): Move i variable declaration into
16308 #ifdef CPU_ALLOC_SIZE block.
16309 * config/linux/affinity.c (gomp_affinity_init_level): Test
16310 gomp_places_list_len == 0 rather than gomp_places_list == 0
16311 when checking for topology reading error.
16312 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
16313 * env.c (parse_affinity): Add ignore argument, if true, don't populate
16314 gomp_places_list, only parse env var and always return false.
16315 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
16316 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
16317 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
16318 and either of these variables were parsed correctly into a places
16319 list.
16320
16321 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
16322 Jakub Jelinek <jakub@redhat.com>
16323
16324 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
16325 of 5 loopfn matches.
16326 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
16327 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
16328 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
16329 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
16330 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
16331 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16332 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16333 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
16334
16335 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
16336
16337 * Makefile.am (omp_lib.mod): Streamline rule.
16338 * Makefile.in: Regenerate.
16339
16340 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
16341 exceptions.
16342
16343 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
16344 * testsuite/libgomp.fortran/lib1.f90: Likewise.
16345 * testsuite/libgomp.fortran/lib2.f: Likewise.
16346 * testsuite/libgomp.fortran/lib3.f: Likewise.
16347
16348 * configure.ac: Typo fix.
16349 * configure: Regenerate.
16350
16351 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
16352 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16353
16354 * omp.h.in: Don't touch the user's namespace.
16355
16356 2013-10-11 Jakub Jelinek <jakub@redhat.com>
16357 Tobias Burnus <burnus@net-b.de>
16358 Richard Henderson <rth@redhat.com>
16359
16360 * target.c: New file.
16361 * Makefile.am (libgomp_la_SOURCES): Add target.c.
16362 * Makefile.in: Regenerated.
16363 * libgomp_g.h (GOMP_task): Add depend argument.
16364 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
16365 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
16366 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
16367 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
16368 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
16369 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
16370 GOMP_taskgroup_start, GOMP_taskgroup_end,
16371 GOMP_parallel_sections): New prototypes.
16372 * fortran.c (omp_is_initial_device): Add ialias_redirect.
16373 (omp_is_initial_device_): New function.
16374 (ULP, STR1, STR2, ialias_redirect): Removed.
16375 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
16376 omp_set_default_device_8_, omp_get_default_device_,
16377 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
16378 functions.
16379 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
16380 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
16381 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
16382 @@GOMP_4.0.
16383 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
16384 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
16385 omp_set_default_device, omp_set_default_device_,
16386 omp_set_default_device_8_, omp_get_default_device,
16387 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
16388 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
16389 omp_get_team_num_): Export @@OMP_4.0.
16390 * team.c (struct gomp_thread_start_data): Add place field.
16391 (gomp_thread_start): Clear thr->thread_pool and
16392 thr->task before returning. Use gomp_team_barrier_wait_final
16393 instead of gomp_team_barrier_wait. Initialize thr->place.
16394 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
16395 team_cancelled and task_queued_count fields.
16396 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
16397 before calling pthread_exit.
16398 (gomp_free_thread): No longer static. Use
16399 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
16400 (gomp_team_start): Add flags argument. Set
16401 thr->thread_pool->threads_busy to nthreads immediately after creating
16402 new pool. Use gomp_managed_threads_lock instead of
16403 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
16404 (gomp_team_end): Use gomp_managed_threads_lock instead of
16405 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
16406 of gomp_team_barrier_wait. If team->team_cancelled, call
16407 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
16408 rather than thr->ts.work_share.
16409 (initialize_team): Don't call gomp_sem_init here.
16410 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
16411 caller.
16412 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
16413 * env.c (gomp_global_icv): Add default_device_var, target_data and
16414 bind_var initializers.
16415 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
16416 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
16417 gomp_places_list_len): New variables.
16418 (parse_bind_var, parse_one_place, parse_places_var): New functions.
16419 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
16420 sized places.
16421 (gomp_cancel_var): New global variable.
16422 (parse_int): New function.
16423 (handle_omp_display_env): New function.
16424 (initialize_env): Use it. Initialize default_device_var.
16425 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
16426 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
16427 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
16428 been successfully parsed (and call gomp_init_affinity in that case).
16429 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16430 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16431 omp_get_team_num, omp_is_initial_device): New functions.
16432 * libgomp.h: Include stdlib.h.
16433 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
16434 Define.
16435 (struct target_mem_desc): Forward declare.
16436 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
16437 and thread_limit_var fields.
16438 (gomp_get_num_devices): New prototype.
16439 (gomp_cancel_var): New extern decl.
16440 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
16441 team_cancelled and task_queued_count fields. Add comments about
16442 task_{,queued_,running_}count.
16443 (gomp_cancel_kind): New enum.
16444 (gomp_work_share_end_cancel): New prototype.
16445 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
16446 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
16447 and depend fields.
16448 (struct gomp_taskgroup): New type.
16449 (struct gomp_task_depend_entry,
16450 struct gomp_dependers_vec): New types.
16451 (gomp_finish_task): Free depend_hash if non-NULL.
16452 (struct gomp_team_state): Add place_partition_off
16453 and place_partition_len fields.
16454 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
16455 gomp_places_list_len): New extern decls.
16456 (struct gomp_thread): Add place field.
16457 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
16458 (gomp_init_thread_affinity): Add place argument.
16459 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16460 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16461 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16462 gomp_affinity_init_level, gomp_affinity_print_place): New
16463 prototypes.
16464 (gomp_team_start): Add flags argument.
16465 (gomp_thread_limit_var, gomp_remaining_threads_count,
16466 gomp_remaining_threads_lock): Remove.
16467 (gomp_managed_threads_lock): New variable.
16468 (struct gomp_thread_pool): Add threads_busy field.
16469 (gomp_free_thread): New prototype.
16470 * task.c: Include hashtab.h.
16471 (hash_entry_type): New typedef.
16472 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
16473 (gomp_init_task): Clear dependers, depend_hash, depend_count,
16474 copy_ctors_done and taskgroup fields.
16475 (GOMP_task): Add depend argument, handle depend clauses. If
16476 gomp_team_barrier_cancelled or if it's taskgroup has been
16477 cancelled, don't queue or start new tasks. Set copy_ctors_done
16478 field if needed. Initialize taskgroup field. If copy_ctors_done
16479 and already cancelled, don't discard the task. If taskgroup is
16480 non-NULL, enqueue the task into taskgroup queue. Increment
16481 num_children field in taskgroup. Increment task_queued_count.
16482 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
16483 gomp_task_run_post_remove_taskgroup): New inline functions.
16484 (gomp_task_run_post_handle_depend_hash,
16485 gomp_task_run_post_handle_dependers,
16486 gomp_task_run_post_handle_depend): New functions.
16487 (GOMP_taskwait): Use them. If more than one new tasks
16488 have been queued, wake other threads if needed.
16489 (gomp_barrier_handle_tasks): Likewise. If
16490 gomp_team_barrier_cancelled, don't start any new tasks, just free
16491 all tasks.
16492 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
16493 * omp_lib.f90.in
16494 (omp_proc_bind_kind, omp_proc_bind_false,
16495 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
16496 omp_proc_bind_spread): New params.
16497 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16498 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16499 omp_get_team_num, omp_is_initial_device): New interfaces.
16500 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
16501 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
16502 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
16503 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
16504 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
16505 useless use omp_lib_kinds.
16506 * omp.h.in (omp_proc_bind_t): New typedef.
16507 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16508 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16509 omp_get_team_num, omp_is_initial_device): New prototypes.
16510 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
16511 through to gomp_team_start.
16512 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
16513 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
16514 Adjust gomp_parallel_loop_start callers.
16515 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
16516 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
16517 GOMP_loop_end_cancel): New functions.
16518 (GOMP_parallel_end): Add ialias_redirect.
16519 * hashtab.h: New file.
16520 * libgomp.texi (Environment Variables): Minor cleanup,
16521 update section refs to OpenMP 4.0rc2.
16522 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
16523 environment variables.
16524 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
16525 team->work_shares_to_free to thr->ts.work_share before calling
16526 free_work_share.
16527 (gomp_work_share_end_cancel): New function.
16528 * config/linux/proc.c: Include errno.h.
16529 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
16530 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
16531 sizeof (cpu_set_t) to determine number of iterations. Fix up check
16532 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
16533 gomp_cpuset_size is sizeof (cpu_set_t).
16534 (gomp_init_num_threads): Initialize gomp_cpuset_size,
16535 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
16536 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
16537 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
16538 contain any logical CPUs.
16539 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
16540 is NULL. Use gomp_cpusetp instead of &cpuset and pass
16541 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
16542 pthread_getaffinity_np. Check gomp_places_list instead of
16543 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
16544 * config/linux/bar.c (gomp_barrier_wait_end,
16545 gomp_barrier_wait_last): Use BAR_* defines.
16546 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
16547 from state where needed. Set work_share_cancelled to 0 on last
16548 thread.
16549 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
16550 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
16551 functions.
16552 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
16553 Add cpusetsize argument.
16554 (gomp_cpuset_size, gomp_cpusetp): Declare.
16555 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
16556 (affinity_counter): Remove.
16557 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
16558 if CPU_ALLOC_SIZE isn't defined.
16559 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
16560 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
16561 bind current thread to the first place.
16562 (gomp_init_thread_affinity): Rewritten. Add place argument, just
16563 pthread_setaffinity_np to gomp_places_list[place].
16564 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16565 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16566 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16567 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
16568 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
16569 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
16570 (gomp_barrier_t): Add awaited_final field.
16571 (gomp_barrier_init): Initialize awaited_final field.
16572 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
16573 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
16574 prototypes.
16575 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
16576 defines.
16577 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
16578 gomp_team_barrier_cancelled): New inline functions.
16579 (gomp_barrier_last_thread,
16580 gomp_team_barrier_set_task_pending,
16581 gomp_team_barrier_clear_task_pending,
16582 gomp_team_barrier_set_waiting_for_tasks,
16583 gomp_team_barrier_waiting_for_tasks,
16584 gomp_team_barrier_done): Use BAR_* defines.
16585 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
16586 (gomp_barrier_wait_end): Use BAR_* defines.
16587 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
16588 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
16589 Use BAR_* defines.
16590 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
16591 gomp_team_barrier_cancel): New functions.
16592 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
16593 argument.
16594 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16595 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16596 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16597 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
16598 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
16599 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
16600 (gomp_barrier_t): Add cancellable field.
16601 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
16602 gomp_team_barrier_cancel): New prototypes.
16603 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
16604 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
16605 gomp_team_barrier_cancelled): New inline functions.
16606 (gomp_barrier_wait_start, gomp_barrier_last_thread,
16607 gomp_team_barrier_set_task_pending,
16608 gomp_team_barrier_clear_task_pending,
16609 gomp_team_barrier_set_waiting_for_tasks,
16610 gomp_team_barrier_waiting_for_tasks,
16611 gomp_team_barrier_done): Use BAR_* defines.
16612 * barrier.c (GOMP_barrier_cancel): New function.
16613 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
16614 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
16615 omp_proc_bind_spread): New params.
16616 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16617 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16618 omp_get_team_num, omp_is_initial_device): New externals.
16619 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
16620 New functions.
16621 (gomp_resolve_num_threads): Adjust for thread_limit now being in
16622 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
16623 infinity. If not nested, just return minimum of max_num_threads
16624 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
16625 to the returned value. Otherwise, don't update atomically
16626 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
16627 (GOMP_parallel_end): Adjust for thread_limit now being in
16628 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
16629 infinity. Adjust threads_busy in the pool rather than
16630 gomp_remaining_threads_count. Remember team->nthreads and call
16631 gomp_team_end before adjusting threads_busy, if not nested
16632 afterwards, just set it to 1 non-atomically. Add ialias.
16633 (GOMP_parallel_start): Adjust gomp_team_start caller.
16634 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
16635 * testsuite/libgomp.c/affinity-1.c: New test.
16636 * testsuite/libgomp.c/atomic-15.c: New test.
16637 * testsuite/libgomp.c/atomic-16.c: New test.
16638 * testsuite/libgomp.c/atomic-17.c: New test.
16639 * testsuite/libgomp.c/cancel-for-1.c: New test.
16640 * testsuite/libgomp.c/cancel-for-2.c: New test.
16641 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
16642 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
16643 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
16644 * testsuite/libgomp.c/cancel-sections-1.c: New test.
16645 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
16646 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
16647 * testsuite/libgomp.c/depend-1.c: New test.
16648 * testsuite/libgomp.c/depend-2.c: New test.
16649 * testsuite/libgomp.c/depend-3.c: New test.
16650 * testsuite/libgomp.c/depend-4.c: New test.
16651 * testsuite/libgomp.c/for-1.c: New test.
16652 * testsuite/libgomp.c/for-1.h: New file.
16653 * testsuite/libgomp.c/for-2.c: New test.
16654 * testsuite/libgomp.c/for-2.h: New file.
16655 * testsuite/libgomp.c/for-3.c: New test.
16656 * testsuite/libgomp.c/pr58392.c: New test.
16657 * testsuite/libgomp.c/simd-1.c: New test.
16658 * testsuite/libgomp.c/simd-2.c: New test.
16659 * testsuite/libgomp.c/simd-3.c: New test.
16660 * testsuite/libgomp.c/simd-4.c: New test.
16661 * testsuite/libgomp.c/simd-5.c: New test.
16662 * testsuite/libgomp.c/simd-6.c: New test.
16663 * testsuite/libgomp.c/target-1.c: New test.
16664 * testsuite/libgomp.c/target-2.c: New test.
16665 * testsuite/libgomp.c/target-3.c: New test.
16666 * testsuite/libgomp.c/target-4.c: New test.
16667 * testsuite/libgomp.c/target-5.c: New test.
16668 * testsuite/libgomp.c/target-6.c: New test.
16669 * testsuite/libgomp.c/target-7.c: New test.
16670 * testsuite/libgomp.c/taskgroup-1.c: New test.
16671 * testsuite/libgomp.c/thread-limit-1.c: New test.
16672 * testsuite/libgomp.c/thread-limit-2.c: New test.
16673 * testsuite/libgomp.c/thread-limit-3.c: New test.
16674 * testsuite/libgomp.c/udr-1.c: New test.
16675 * testsuite/libgomp.c/udr-2.c: New test.
16676 * testsuite/libgomp.c/udr-3.c: New test.
16677 * testsuite/libgomp.c++/affinity-1.C: New test.
16678 * testsuite/libgomp.c++/atomic-10.C: New test.
16679 * testsuite/libgomp.c++/atomic-11.C: New test.
16680 * testsuite/libgomp.c++/atomic-12.C: New test.
16681 * testsuite/libgomp.c++/atomic-13.C: New test.
16682 * testsuite/libgomp.c++/atomic-14.C: New test.
16683 * testsuite/libgomp.c++/atomic-15.C: New test.
16684 * testsuite/libgomp.c++/cancel-for-1.C: New test.
16685 * testsuite/libgomp.c++/cancel-for-2.C: New test.
16686 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
16687 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
16688 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
16689 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
16690 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
16691 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
16692 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
16693 * testsuite/libgomp.c++/cancel-test.h: New file.
16694 * testsuite/libgomp.c++/for-9.C: New test.
16695 * testsuite/libgomp.c++/for-10.C: New test.
16696 * testsuite/libgomp.c++/for-11.C: New test.
16697 * testsuite/libgomp.c++/simd-1.C: New test.
16698 * testsuite/libgomp.c++/simd-2.C: New test.
16699 * testsuite/libgomp.c++/simd-3.C: New test.
16700 * testsuite/libgomp.c++/simd-4.C: New test.
16701 * testsuite/libgomp.c++/simd-5.C: New test.
16702 * testsuite/libgomp.c++/simd-6.C: New test.
16703 * testsuite/libgomp.c++/simd-7.C: New test.
16704 * testsuite/libgomp.c++/simd-8.C: New test.
16705 * testsuite/libgomp.c++/target-1.C: New test.
16706 * testsuite/libgomp.c++/target-2.C: New test.
16707 * testsuite/libgomp.c++/target-2-aux.cc: New file.
16708 * testsuite/libgomp.c++/target-3.C: New test.
16709 * testsuite/libgomp.c++/taskgroup-1.C: New test.
16710 * testsuite/libgomp.c++/udr-1.C: New test.
16711 * testsuite/libgomp.c++/udr-2.C: New test.
16712 * testsuite/libgomp.c++/udr-3.C: New test.
16713 * testsuite/libgomp.c++/udr-4.C: New test.
16714 * testsuite/libgomp.c++/udr-5.C: New test.
16715 * testsuite/libgomp.c++/udr-6.C: New test.
16716 * testsuite/libgomp.c++/udr-7.C: New test.
16717 * testsuite/libgomp.c++/udr-8.C: New test.
16718 * testsuite/libgomp.c++/udr-9.C: New test.
16719
16720 2013-09-20 Jakub Jelinek <jakub@redhat.com>
16721
16722 PR testsuite/57605
16723 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
16724 ALWAYS_CFLAGS.
16725
16726 2013-09-20 Alan Modra <amodra@gmail.com>
16727
16728 * configure: Regenerate.
16729
16730 2013-09-19 Jakub Jelinek <jakub@redhat.com>
16731
16732 * testsuite/libgomp.c/sections-2.c: New test.
16733
16734 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
16735
16736 * testsuite/libgomp.fortran/strassen.f90:
16737 Add dg-skip-if aarch64_tiny.
16738
16739 2013-06-20 Iain Sandoe <iain@codesourcery.com>
16740 Cesar Philippidis <cesar@codesourcery.com>
16741
16742 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
16743 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
16744 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
16745 * testsuite/libgomp.fortran/fortran.exp: Likewise.
16746 * testsuite/libgomp.graphite/graphite.exp: Likewise.
16747 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
16748 Use dg-runtest rather than gfortran-dg-runtest.
16749
16750 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
16751
16752 * testsuite/libgomp.c/icv-2.c: Extend current handling of
16753 Linux-based x86 systems to cover all GNU systems.
16754 * testsuite/libgomp.c/lock-3.c: Likewise.
16755 * testsuite/libgomp.c/pr48591.c: Likewise.
16756
16757 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
16758
16759 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
16760 GNU/Hurd, as done for Linux-based systems.
16761
16762 * config/posix/ptrlock.h: Fix comment.
16763
16764 2013-05-27 Tobias Burnus <burnus@net-b.de>
16765
16766 PR fortran/57423
16767 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
16768 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
16769 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
16770 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
16771 omp_destroy_nest_lock): Correct arguments to match the one in
16772 the OpenMP spec.
16773 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
16774 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
16775 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
16776 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
16777
16778 2013-05-16 Jakub Jelinek <jakub@redhat.com>
16779
16780 * testsuite/libgomp.c/loop-13.c: New test.
16781 * testsuite/libgomp.c/loop-14.c: New test.
16782 * testsuite/libgomp.c/loop-15.c: New test.
16783 * testsuite/libgomp.c++/loop-13.C: New test.
16784 * testsuite/libgomp.c++/loop-14.C: New test.
16785 * testsuite/libgomp.c++/loop-15.C: New test.
16786
16787 2013-02-06 Jakub Jelinek <jakub@redhat.com>
16788
16789 PR middle-end/56217
16790 * testsuite/libgomp.c++/pr56217.C: New test.
16791
16792 2013-02-01 Alan Modra <amodra@gmail.com>
16793
16794 * task.c (GOMP_task, GOMP_taskwait): Comment.
16795
16796 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
16797 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
16798
16799 PR libgomp/55561
16800 * config/linux/wait.h (do_spin): Use atomic load for addr.
16801 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
16802 for intptr and ptrlock.
16803 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
16804 for ptrlock.
16805
16806 2013-01-22 Alan Modra <amodra@gmail.com>
16807
16808 PR libgomp/51376
16809 PR libgomp/56073
16810 * task.c (GOMP_task): Revert 2011-12-09 change.
16811 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
16812 barrier to read task->children..
16813 (gomp_barrier_handle_tasks): ..and matching atomic store with
16814 release barrier here when setting parent->children to NULL.
16815
16816 2013-01-16 Jakub Jelinek <jakub@redhat.com>
16817 Tobias Burnus <burnus@net-b.de>
16818
16819 PR driver/55884
16820 * testsuite/libgomp.fortran/fortran.exp: Use
16821 -fintrinsic-modules-path= instead of
16822 -fintrinsic-modules-path.
16823
16824 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
16825
16826 Update copyright years.
16827
16828 2012-12-19 Tobias Burnus <burnus@net-b.de>
16829
16830 * testsuite/libgomp.fortran/fortran.exp: Set
16831 -fintrinsic-modules-path.
16832
16833 2012-12-19 Tobias Burnus <burnus@net-b.de>
16834
16835 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
16836 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
16837
16838 2012-11-21 Jakub Jelinek <jakub@redhat.com>
16839
16840 PR libgomp/55411
16841 * team.c (gomp_free_thread): Decrease gomp_managed_threads
16842 if pool had any threads_used.
16843
16844 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
16845
16846 * testsuite/libgomp.c++/pr24455.C: Use
16847 -Wl,-undefined,dynamic_lookup on darwin.
16848
16849 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
16850
16851 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
16852
16853 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
16854
16855 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
16856
16857 2012-10-23 Ian Bolton <ian.bolton@arm.com>
16858 Jim MacArthur <jim.macarthur@arm.com>
16859 Marcus Shawcroft <marcus.shawcroft@arm.com>
16860 Nigel Stephens <nigel.stephens@arm.com>
16861 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16862 Richard Earnshaw <rearnsha@arm.com>
16863 Sofiane Naci <sofiane.naci@arm.com>
16864 Stephen Thomas <stephen.thomas@arm.com>
16865 Tejas Belagod <tejas.belagod@arm.com>
16866 Yufeng Zhang <yufeng.zhang@arm.com>
16867
16868 * configure.tgt: Add AArch64.
16869
16870 2012-10-04 Jason Merrill <jason@redhat.com>
16871
16872 * testsuite/libgomp.c++/tls-init1.C: New.
16873
16874 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
16875
16876 * configure: Regenerated.
16877
16878 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
16879
16880 * config/linux/mips/futex.h (sys_futex0): Change to static
16881 function with noinline, nomips16 attributes under MIPS16. Adjust
16882 asm statement to place 'li v0,SYS_futex' immediately before
16883 syscall insn.
16884
16885 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
16886
16887 * libgomp.texi (Library Index): Renamed from "Index" to prevent
16888 conflict with index.html on case-insensitive file systems.
16889
16890 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
16891
16892 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
16893 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
16894
16895 2012-07-02 Richard Guenther <rguenther@suse.de>
16896 Michael Matz <matz@suse.de>
16897 Tobias Grosser <tobias@grosser.es>
16898 Sebastian Pop <sebpop@gmail.com>
16899
16900 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
16901 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
16902 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16903 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16904
16905 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
16906
16907 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
16908
16909 2012-06-22 Richard Guenther <rguenther@suse.de>
16910
16911 Merge from graphite branch
16912 2012-01-13 Tobias Grosser <tobias@grosser.es>
16913
16914 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
16915 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
16916
16917 2012-06-07 Jakub Jelinek <jakub@redhat.com>
16918
16919 PR middle-end/53580
16920 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
16921 use GOMP_barrier () call instead.
16922 * testsuite/libgomp.c/pr26943-3.c: Likewise.
16923 * testsuite/libgomp.c/pr26943-4.c: Likewise.
16924 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
16925 call GOMP_barrier instead.
16926 * testsuite/libgomp.fortran/vla5.f90: Likewise.
16927
16928 2012-06-06 Jakub Jelinek <jakub@redhat.com>
16929
16930 PR libgomp/52993
16931 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
16932 argument to memset call.
16933
16934 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
16935
16936 * configure: Regenerated.
16937
16938 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
16939
16940 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
16941
16942 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
16943
16944 PR bootstrap/52812
16945 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
16946
16947 2012-03-22 Jakub Jelinek <jakub@redhat.com>
16948
16949 PR middle-end/52547
16950 * testsuite/libgomp.c/pr52547.c: New test.
16951
16952 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16953
16954 * testsuite/lib/libgomp.exp: load fortran-modules.exp
16955
16956 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16957
16958 * configure.tgt (mips-sgi-irix6*): Remove.
16959
16960 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16961
16962 * configure.tgt (alpha*-dec-osf*): Remove.
16963
16964 * config/osf/sem.h: Remove.
16965 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
16966
16967 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
16968
16969 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
16970
16971 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16972
16973 PR libstdc++/52188
16974 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
16975 Remove ENABLE_SYMVERS_SOL2.
16976 * configure: Regenerate.
16977 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
16978 (PREPROCESS): New variable.
16979 (libgomp.ver): New target.
16980 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
16981 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
16982 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
16983 Use libgomp.ver.
16984 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
16985 * Makefile.in: Regenerate.
16986
16987 2012-02-14 Walter Lee <walt@tilera.com>
16988
16989 * configure.tgt: Handle tilegx and tilepro.
16990 * config/linux/tile/futex.h: New file.
16991
16992 2012-02-08 Richard Guenther <rguenther@suse.de>
16993
16994 PR tree-optimization/46886
16995 * testsuite/libgomp.c/pr46886.c: New testcase.
16996
16997 2012-01-25 Matthias Klose <doko@ubuntu.com>
16998
16999 * config/linux/arm: Remove empty directory.
17000 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
17001
17002 2011-12-09 Alan Modra <amodra@gmail.com>
17003
17004 PR libgomp/51376
17005 * task.c (GOMP_taskwait): Don't access task->children outside of
17006 task_lock mutex region.
17007 (GOMP_task): Likewise.
17008
17009 2011-12-06 Jakub Jelinek <jakub@redhat.com>
17010
17011 PR libgomp/51132
17012 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
17013 to file scope.
17014 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
17015 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
17016 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17017 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17018 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
17019
17020 2011-12-02 Alan Modra <amodra@gmail.com>
17021
17022 * config/linux/affinity.c: Use atomic rather than sync builtin.
17023 * config/linux/lock.c: Likewise.
17024 * config/linux/ptrlock.h: Likewise.
17025 * config/linux/ptrlock.c: Likewise.
17026 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
17027 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
17028 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
17029 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
17030 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
17031 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
17032 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
17033 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
17034 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
17035 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
17036
17037 2011-11-30 Alan Modra <amodra@gmail.com>
17038
17039 PR libgomp/51298
17040 * config/linux/bar.h: Use atomic rather than sync builtins.
17041 * config/linux/bar.c: Likewise. Add missing acquire
17042 synchronisation on generation field.
17043 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
17044 double unlock.
17045
17046 2011-11-30 Alan Modra <amodra@gmail.com>
17047
17048 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
17049 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
17050 * config/linux/mutex.h: Use atomic rather than sync builtins.
17051 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
17052 * config/linux/omp-lock.h: Comment fix.
17053 * config/linux/arm/mutex.h: Delete.
17054 * config/linux/powerpc/mutex.h: Delete.
17055 * config/linux/ia64/mutex.h: Delete.
17056 * config/linux/mips/mutex.h: Delete.
17057
17058 2011-11-30 Alan Modra <amodra@gmail.com>
17059
17060 PR libgomp/51249
17061 * config/linux/sem.h: Rewrite.
17062 * config/linux/sem.c: Rewrite.
17063
17064 2011-11-28 Richard Henderson <rth@redhat.com>
17065
17066 * libgomp.h (enum memmodel): New.
17067
17068 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
17069
17070 * configure: Regenerate.
17071
17072 2011-10-10 Matthias Klose <doko@ubuntu.com>
17073
17074 * config/posix95: Remove empty directory.
17075
17076 2011-08-26 Jakub Jelinek <jakub@redhat.com>
17077
17078 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
17079
17080 2011-08-19 Jakub Jelinek <jakub@redhat.com>
17081
17082 PR fortran/49792
17083 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
17084 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
17085
17086 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17087
17088 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
17089
17090 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17091
17092 PR libgomp/49965
17093 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
17094
17095 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
17096
17097 * config/linux/proc.h: New.
17098 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
17099 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
17100 (gomp_init_num_threads): Update call to cpuset_popcount.
17101 (get_num_procs): Ditto.
17102 * config/linux/affinity.c (gomp_init_affinity): Call
17103 gomp_cpuset_popcount.
17104
17105 2011-08-02 Jakub Jelinek <jakub@redhat.com>
17106
17107 PR fortran/42041
17108 PR fortran/46752
17109 * omp.h.in (omp_in_final): New prototype.
17110 * omp_lib.f90.in (omp_in_final): New interface.
17111 (omp_integer_kind, omp_logical_kind): Remove
17112 and replace all its uses in the module with 4.
17113 (openmp_version): Change to 201107.
17114 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
17115 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
17116 kind for the parameters.
17117 (omp_in_final): New external.
17118 (openmp_version): Change to 201107.
17119 * task.c (omp_in_final): New function.
17120 (gomp_init_task): Initialize final_task.
17121 (GOMP_task): Remove unused attribute from flags. Handle final
17122 tasks.
17123 (GOMP_taskyield): New function.
17124 (omp_in_final): Return true if if (false) or final (true) task
17125 or descendant of final (true).
17126 * fortran.c (omp_in_final_): New function.
17127 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
17128 (GOMP_3.0): Export GOMP_taskyield.
17129 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
17130 variables.
17131 (parse_unsigned_long_list): New function.
17132 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
17133 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
17134 even if parse_affinity returned false.
17135 * config/linux/affinity.c (gomp_init_affinity): Handle
17136 gomp_cpu_affinity_len == 0.
17137 * libgomp_g.h (GOMP_taskyield): New prototype.
17138 * libgomp.h (struct gomp_task): Add final_task field.
17139 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
17140 * team.c (gomp_team_start): Override new task's nthreads_var icv
17141 if list form OMP_NUM_THREADS has been used and it has value for
17142 the new nesting level.
17143
17144 * testsuite/libgomp.c/atomic-11.c: New test.
17145 * testsuite/libgomp.c/atomic-12.c: New test.
17146 * testsuite/libgomp.c/atomic-13.c: New test.
17147 * testsuite/libgomp.c/atomic-14.c: New test.
17148 * testsuite/libgomp.c/reduction-6.c: New test.
17149 * testsuite/libgomp.c/task-5.c: New test.
17150 * testsuite/libgomp.c++/atomic-2.C: New test.
17151 * testsuite/libgomp.c++/atomic-3.C: New test.
17152 * testsuite/libgomp.c++/atomic-4.C: New test.
17153 * testsuite/libgomp.c++/atomic-5.C: New test.
17154 * testsuite/libgomp.c++/atomic-6.C: New test.
17155 * testsuite/libgomp.c++/atomic-7.C: New test.
17156 * testsuite/libgomp.c++/atomic-8.C: New test.
17157 * testsuite/libgomp.c++/atomic-9.C: New test.
17158 * testsuite/libgomp.c++/task-8.C: New test.
17159 * testsuite/libgomp.c++/reduction-4.C: New test.
17160 * testsuite/libgomp.fortran/allocatable7.f90: New test.
17161 * testsuite/libgomp.fortran/allocatable8.f90: New test.
17162 * testsuite/libgomp.fortran/crayptr3.f90: New test.
17163 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
17164 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
17165 * testsuite/libgomp.fortran/pointer1.f90: New test.
17166 * testsuite/libgomp.fortran/pointer2.f90: New test.
17167 * testsuite/libgomp.fortran/task4.f90: New test.
17168
17169 2011-08-02 Tobias Burnus <burnus@net-b.de>
17170
17171 * libgomp.texi: Update OpenMP spec references to 3.1.
17172 (omp_in_final,OMP_PROC_BIND): New sections.
17173 (OMP_NUM_THREADS): Document that the value can be now a list.
17174 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
17175
17176 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
17177
17178 * config/linux/x86/futex.h: Check __x86_64__ instead of
17179 __LP64__.
17180
17181 2011-07-29 Jakub Jelinek <jakub@redhat.com>
17182
17183 PR middle-end/49897
17184 PR middle-end/49898
17185 * testsuite/libgomp.c/pr49897-1.c: New test.
17186 * testsuite/libgomp.c/pr49897-2.c: New test.
17187 * testsuite/libgomp.c/pr49898-1.c: New test.
17188 * testsuite/libgomp.c/pr49898-2.c: New test.
17189
17190 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
17191
17192 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
17193 for ia32 instead of ilp32.
17194
17195 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
17196 * testsuite/libgomp.c/atomic-6.c: Likewise.
17197
17198 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
17199
17200 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
17201 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
17202
17203 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17204
17205 PR libgomp/45351
17206 * config/osf/sem.h: New file.
17207 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
17208
17209 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17210
17211 PR target/49541
17212 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
17213 ldflags.
17214
17215 2011-07-15 Jakub Jelinek <jakub@redhat.com>
17216
17217 * config/linux/wait.h (do_spin): New inline, largely copied
17218 from do_wait, just don't do futex_wait here, instead return true if
17219 it should be done.
17220 (do_wait): Implement using do_spin.
17221 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
17222 to prototype.
17223 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17224 __sync_bool_compare_and_swap, pass the oldval to
17225 gomp_mutex_lock_slow.
17226 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
17227 If all mutex contenders are just spinning and not sleeping, don't
17228 change state to 2 unnecessarily. Optimize the loop when state has
17229 already become 2 to use just one atomic operation per loop instead
17230 of two.
17231 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
17232 to prototype.
17233 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17234 __sync_bool_compare_and_swap, pass the oldval to
17235 gomp_mutex_lock_slow.
17236
17237 2011-06-22 Jakub Jelinek <jakub@redhat.com>
17238
17239 PR libgomp/49490
17240 * iter.c (gomp_iter_static_next): For chunk size 0
17241 only use n ceil/ nthreads size for the first
17242 n % nthreads threads in the team instead of
17243 all threads except for the last few ones which
17244 get less work or none at all.
17245 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
17246 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
17247 chunk argument, set run_sched_modifier to 0 for static
17248 resp. 1 for other kinds. If chunk argument is 0
17249 and not static, set value to 1.
17250
17251 2011-05-19 Jakub Jelinek <jakub@redhat.com>
17252
17253 PR c++/49043
17254 * testsuite/libgomp.c++/pr49043.C: New test.
17255
17256 PR c++/48869
17257 * testsuite/libgomp.c++/pr48869.C: New test.
17258
17259 2011-05-06 Jakub Jelinek <jakub@redhat.com>
17260
17261 PR fortran/48894
17262 * fortran.c: Include limits.h.
17263 (TO_INT): Define.
17264 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
17265 *set.
17266 (omp_set_num_threads_8_, omp_set_schedule_8_,
17267 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
17268 omp_get_team_size_8_): Use TO_INT macro.
17269 * testsuite/libgomp.fortran/pr48894.f90: New test.
17270
17271 2011-04-13 Jakub Jelinek <jakub@redhat.com>
17272
17273 PR middle-end/48591
17274 * testsuite/libgomp.c/pr48591.c: New test.
17275
17276 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17277
17278 PR bootstrap/48135
17279 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
17280 * configure: Regenerate.
17281
17282 2011-02-27 Jakub Jelinek <jakub@redhat.com>
17283
17284 PR fortran/47886
17285 * testsuite/libgomp.fortran/task3.f90: New test.
17286
17287 2011-02-24 Tobias Burnus <burnus@net-b.de>
17288
17289 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
17290
17291 2011-02-23 Jakub Jelinek <jakub@redhat.com>
17292
17293 PR libgomp/47854
17294 * libgomp.texi (omp_get_wtime): Don't say time in the past
17295 must be Unix Epoch.
17296
17297 2011-02-18 Jakub Jelinek <jakub@redhat.com>
17298
17299 PR libgomp/47804
17300 * testsuite/libgomp.fortran/fortran.exp: Check for both
17301 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
17302 but $blddir != "", still append ${blddir}/${lang_library_path}
17303 to ld_library_path.
17304
17305 2011-02-16 Tobias Burnus <burnus@net-b.de>
17306
17307 PR libgomp/47758
17308 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
17309 of libquadmath.a before adding its libpath to ldflags.
17310
17311 2011-02-14 Jakub Jelinek <jakub@redhat.com>
17312
17313 PR libgomp/47731
17314 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
17315 to FUTEX_WAIT futex syscall.
17316 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
17317
17318 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17319
17320 * configure: Regenerate.
17321
17322 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
17323
17324 PR libstdc++/36104
17325 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
17326
17327 2011-01-16 Gerald Pfeifer
17328
17329 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
17330
17331 2010-12-14 Jakub Jelinek <jakub@redhat.com>
17332
17333 PR fortran/46874
17334 * libgomp.fortran/allocatable6.f90: New test.
17335
17336 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17337
17338 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
17339 * configure: Regenerate.
17340
17341 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
17342
17343 PR target/40125
17344 PR lto/46695
17345 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
17346 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
17347 * aclocal.m4: Regenerate.
17348 * configure: Regenerate.
17349 * Makefile.in: Regenerate.
17350 * testsuite/Makefile.in: Regenerate.
17351
17352 2010-12-02 Jakub Jelinek <jakub@redhat.com>
17353
17354 PR fortran/46753
17355 * libgomp.fortran/pr46753.f90: New test.
17356
17357 PR libgomp/43706
17358 * env.c (initialize_env): Default to spin count 300000
17359 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
17360 is specified.
17361
17362 PR libgomp/45240
17363 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
17364 at the end if sync builtins aren't supported.
17365
17366 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17367
17368 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
17369
17370 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17371
17372 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
17373
17374 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
17375
17376 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
17377
17378 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17379 Tobias Burnus <burnus@net-b.de>
17380
17381 PR fortran/32049
17382 * configure.ac:
17383 * configure: Regenerate.
17384
17385 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
17386
17387 * config/linux/futex.h: New.
17388 * config/linux/arm/mutex.h: New.
17389 * configure.tgt (arm*-*-linux*): Add config path.
17390
17391 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
17392
17393 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17394
17395 2010-09-23 Tobias Burnus <burnus@net-b.de>
17396
17397 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
17398 Change Fortran datatype to LOGICAL.
17399 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
17400 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
17401
17402 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17403
17404 * configure: Regenerate.
17405
17406 2010-07-26 Jakub Jelinek <jakub@redhat.com>
17407
17408 * libgomp.texi: Add function keyword to a couple of Fortran
17409 interfaces, use integer instead of int for Fortran.
17410
17411 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
17412
17413 * libgomp.texi: Fix spelling and pasto problems throughout.
17414 Adjust prototypes to match code.
17415
17416 2010-07-24 Tobias Burnus <burnus@net-b.de>
17417
17418 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
17419 silence -fwhole-file warning.
17420
17421 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17422
17423 * configure.tgt (*-*-solaris2.[56]*): Removed.
17424
17425 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17426
17427 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
17428 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
17429 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
17430 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
17431 targetting solaris2*.
17432 * configure: Regenerate.
17433 * config.h.in: Regenerate.
17434
17435 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
17436 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
17437 Add libgomp_version_dep.
17438 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
17439 versioning.
17440 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
17441 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
17442 * Makefile.in: Regenerate.
17443
17444 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
17445 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
17446 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
17447 to common block, protected by
17448 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
17449
17450 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
17451
17452 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
17453
17454 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
17455
17456 PR bootstrap/43170
17457 * configure: Regenerate.
17458
17459 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17460
17461 PR other/43620
17462 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
17463 * configure: Regenerate.
17464 * Makefile.in: Regenerate.
17465 * testsuite/Makefile.in: Regenerate.
17466
17467 2010-04-26 Jakub Jelinek <jakub@redhat.com>
17468
17469 PR c/43893
17470 * testsuite/libgomp.c/pr43893.c: New test.
17471 * testsuite/libgomp.c++/pr43893.C: New test.
17472
17473 2010-04-21 Jakub Jelinek <jakub@redhat.com>
17474
17475 PR middle-end/43570
17476 * testsuite/libgomp.fortran/vla8.f90: New test.
17477
17478 2010-04-20 Jakub Jelinek <jakub@redhat.com>
17479
17480 PR libgomp/43706
17481 * config/linux/affinity.c (gomp_init_affinity): Decrease
17482 gomp_available_cpus if affinity mask confines the process to fewer
17483 CPUs.
17484 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
17485 non-NULL, just return gomp_available_cpus.
17486
17487 PR libgomp/43569
17488 * sections.c (gomp_sections_init): Initialize ws->mode.
17489
17490 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
17491
17492 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
17493 not unused bar variable.
17494 * configure: Regenerate.
17495
17496 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17497
17498 * Makefile.in: Regenerate.
17499 * aclocal.m4: Regenerate.
17500 * testsuite/Makefile.in: Regenerate.
17501
17502 2010-03-22 Jakub Jelinek <jakub@redhat.com>
17503
17504 PR libgomp/42942
17505 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
17506 (initialize_env): Adjust callers.
17507 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
17508 when the argument is 0.
17509
17510 * testsuite/libgomp.c/pr42942.c: New test.
17511
17512 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
17513
17514 PR middle-end/42644
17515 PR middle-end/42130
17516 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17517 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
17518
17519 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17520
17521 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
17522 * testsuite/libgomp.c++/task-6.C: Likewise.
17523
17524 2010-01-28 Steve Ellcey <sje@cup.hp.com>
17525
17526 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
17527
17528 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
17529
17530 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
17531 * configure: Regenerate.
17532
17533 2010-01-26 Jakub Jelinek <jakub@redhat.com>
17534
17535 PR fortran/42866
17536 * testsuite/libgomp.fortran/allocatable5.f90: New test.
17537
17538 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
17539
17540 * configure.ac: Test for executability of GFORTRAN.
17541 * configure: Regenerate.
17542
17543 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17544
17545 * configure: Regenerate.
17546
17547 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
17548
17549 PR libgomp/42602
17550 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
17551
17552 2010-01-03 Richard Guenther <rguenther@suse.de>
17553
17554 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
17555
17556 2009-12-23 Sebastian Pop <sebpop@gmail.com>
17557
17558 * testsuite/libgomp.graphite/pr4118.c: New.
17559
17560 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
17561
17562 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
17563 for darwin, protect the test with require-effective-target tls_runtime.
17564 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
17565
17566 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
17567
17568 PR target/41605
17569 * testsuite/lib/libgomp.exp: Provide -B options to allow for
17570 link spec %s substitutions for static libraries.
17571
17572 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
17573
17574 PR testsuite/42135
17575 * libgomp.graphite/force-parallel-2.c: Reduce array size.
17576
17577 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17578
17579 * Makefile.in: Regenerate.
17580 * configure: Regenerate.
17581 * testsuite/Makefile.in: Regenerate.
17582
17583 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
17584
17585 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
17586 settings for LC_ALL and LANG.
17587
17588 2009-11-25 Jakub Jelinek <jakub@redhat.com>
17589
17590 PR fortran/42162
17591 * testsuite/libgomp.fortran/pr42162.f90: New test.
17592
17593 2009-11-13 Jakub Jelinek <jakub@redhat.com>
17594
17595 PR middle-end/42029
17596 * testsuite/libgomp.c/pr42029.c: New test.
17597
17598 2009-10-26 Jakub Jelinek <jakub@redhat.com>
17599
17600 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
17601 *s. Accept ld version without text in ()s.
17602 * configure: Regenerated.
17603
17604 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
17605
17606 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
17607
17608 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17609
17610 PR libgomp/41418
17611 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
17612 or a hyphen (happens with fortran language disabled).
17613 * configure: Regenerate.
17614
17615 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17616
17617 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
17618 use sed script portable to Solaris /bin/sed for extracting ld
17619 version.
17620 * configure: Regenerate.
17621
17622 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
17623
17624 * testsuite/libgomp.graphite/bounds.c: New test.
17625
17626 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17627
17628 * Makefile.am (libgomp_la_LINK): New.
17629 * Makefile.in: Regenerate.
17630
17631 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17632
17633 * configure.ac (AC_PREREQ): Bump to 2.64.
17634
17635 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17636
17637 * Makefile.am (install-html, install-pdf): Remove.
17638 * Makefile.in: Regenerate.
17639
17640 * Makefile.in: Regenerate.
17641 * aclocal.m4: Regenerate.
17642 * config.h.in: Regenerate.
17643 * configure: Regenerate.
17644 * testsuite/Makefile.in: Regenerate.
17645
17646 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17647
17648 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
17649 * Makefile.in: Regenerate.
17650
17651 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
17652
17653 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
17654 * Makefile.in: Regenerate.
17655
17656 2009-08-19 Tobias Burnus <burnus@net-b.de>
17657
17658 PR fortran/41102
17659 omp_lib.h.in: Fix -std=f95 errors.
17660
17661 2009-08-14 David Edelsohn <edelsohn@gnu.org>
17662
17663 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
17664 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
17665 * testsuite/libgomp.graphite/graphite.exp: New.
17666
17667 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
17668
17669 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
17670 only build.
17671
17672 2009-08-04 David Daney <ddaney@caviumnetworks.com>
17673
17674 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
17675 needed memory barrier semantics.
17676 * config/linux/mips/mutex.h: New file.
17677
17678 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17679
17680 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
17681
17682 2009-07-16 Joseph Myers <joseph@codesourcery.com>
17683
17684 * configure: Regenerate.
17685
17686 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
17687
17688 PR testsuite/40699
17689 PR testsuite/40707
17690 PR testsuite/40709
17691 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
17692 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
17693 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
17694
17695 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
17696
17697 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
17698 options when choosing a multilib.
17699
17700 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
17701
17702 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
17703 ld_library_path. Use add_path. Add just find_libgcc_s to
17704 ld_library_path, not every libgcc multilib directory.
17705 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
17706 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
17707 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
17708 Use add_path.
17709 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
17710
17711 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
17712
17713 * Makefile.am (LTLDFLAGS): Define.
17714 (LINK): Define.
17715 * Makefile.in: Regenerate.
17716
17717 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
17718
17719 PR fortran/39718
17720 * testsuite/libgomp.fortran/fortran.exp: Don't link with
17721 libgfortranbegin, check existence of libgfortran.a instead of
17722 libgfortranbegin.a.
17723
17724 2009-05-20 Jakub Jelinek <jakub@redhat.com>
17725
17726 PR libgomp/40174
17727 * team.c (gomp_thread_start): Destroy thr->release semaphore.
17728 (gomp_free_pool_helper): Likewise.
17729
17730 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
17731 Jakub Jelinek <jakub@redhat.com>
17732
17733 PR fortran/35423
17734 * testsuite/libgomp.fortran/workshare2.f90: New test.
17735
17736 2009-04-09 Nick Clifton <nickc@redhat.com>
17737
17738 * iter.c: Change copyright header to refer to version 3 of the
17739 GNU General Public License with version 3.1 of the GCC Runtime
17740 Library Exception and to point readers at the COPYING3 and
17741 COPYING3.RUNTIME files and the FSF's license web page.
17742 * alloc.c: Likewise.
17743 * barrier.c: Likewise.
17744 * config/bsd/proc.c: Likewise.
17745 * config/linux/affinity.c: Likewise.
17746 * config/linux/alpha/futex.h: Likewise.
17747 * config/linux/bar.c: Likewise.
17748 * config/linux/bar.h: Likewise.
17749 * config/linux/ia64/futex.h: Likewise.
17750 * config/linux/ia64/mutex.h: Likewise.
17751 * config/linux/lock.c: Likewise.
17752 * config/linux/mips/futex.h: Likewise.
17753 * config/linux/mutex.c: Likewise.
17754 * config/linux/mutex.h: Likewise.
17755 * config/linux/powerpc/futex.h: Likewise.
17756 * config/linux/proc.c: Likewise.
17757 * config/linux/ptrlock.c: Likewise.
17758 * config/linux/ptrlock.h: Likewise.
17759 * config/linux/s390/futex.h: Likewise.
17760 * config/linux/sem.c: Likewise.
17761 * config/linux/sem.h: Likewise.
17762 * config/linux/sparc/futex.h: Likewise.
17763 * config/linux/wait.h: Likewise.
17764 * config/linux/x86/futex.h: Likewise.
17765 * config/mingw32/proc.c: Likewise.
17766 * config/mingw32/time.c: Likewise.
17767 * config/posix/affinity.c: Likewise.
17768 * config/posix/bar.c: Likewise.
17769 * config/posix/bar.h: Likewise.
17770 * config/posix/lock.c: Likewise.
17771 * config/posix/mutex.h: Likewise.
17772 * config/posix/proc.c: Likewise.
17773 * config/posix/ptrlock.h: Likewise.
17774 * config/posix/sem.c: Likewise.
17775 * config/posix/sem.h: Likewise.
17776 * config/posix/time.c: Likewise.
17777 * config/posix95/lock.c: Likewise.
17778 * critical.c: Likewise.
17779 * env.c: Likewise.
17780 * error.c: Likewise.
17781 * fortran.c: Likewise.
17782 * iter_ull.c: Likewise.
17783 * libgomp.h: Likewise.
17784 * libgomp_f.h.in: Likewise.
17785 * libgomp_g.h: Likewise.
17786 * loop.c: Likewise.
17787 * loop_ull.c: Likewise.
17788 * omp.h.in: Likewise.
17789 * omp_lib.f90.in: Likewise.
17790 * omp_lib.h.in: Likewise.
17791 * ordered.c: Likewise.
17792 * parallel.c: Likewise.
17793 * sections.c: Likewise.
17794 * single.c: Likewise.
17795 * task.c: Likewise.
17796 * team.c: Likewise.
17797 * work.c: Likewise.
17798
17799 2009-04-09 Jakub Jelinek <jakub@redhat.com>
17800
17801 * testsuite/config/default.exp: Change copyright header to refer to
17802 version 3 of the GNU General Public License and to point readers
17803 at the COPYING3 file and the FSF's license web page.
17804
17805 2009-04-08 Jakub Jelinek <jakub@redhat.com>
17806
17807 PR middle-end/39573
17808 * libgomp.c++/pr39573.C: New test.
17809
17810 2009-04-01 Jakub Jelinek <jakub@redhat.com>
17811
17812 PR other/39591
17813 * testsuite/libgomp.c/pr39591-1.c: New test.
17814 * testsuite/libgomp.c/pr39591-2.c: New test.
17815 * testsuite/libgomp.c/pr39591-3.c: New test.
17816
17817 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
17818
17819 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
17820 * testsuite/libgomp.c/atomic-6.c: Ditto.
17821
17822 2009-03-23 Jakub Jelinek <jakub@redhat.com>
17823
17824 PR c/39495
17825 * testsuite/libgomp.c/loop-12.c: New test.
17826 * testsuite/libgomp.c/loop-11.c: New test.
17827 * testsuite/libgomp.c++/loop-11.C: New test.
17828 * testsuite/libgomp.c++/loop-12.C: New test.
17829 * testsuite/libgomp.c++/for-8.C: New test.
17830
17831 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17832
17833 * configure: Regenerate.
17834
17835 2009-02-11 Jakub Jelinek <jakub@redhat.com>
17836
17837 PR middle-end/39154
17838 * testsuite/libgomp.c/pr39154.c: New test.
17839
17840 2009-01-30 Ian Lance Taylor <iant@google.com>
17841
17842 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
17843 libgomp_ld_is_gold. Get gold version number.
17844 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
17845 * configure: Rebuild.
17846
17847 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
17848
17849 * testsuite/lib/libgomp.exp: Add -B option for targets that
17850 use libgfortran.a%s in their specs.
17851
17852 2009-01-07 Jakub Jelinek <jakub@redhat.com>
17853
17854 PR libgomp/38086
17855 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
17856 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
17857 HAVE_AS_SYMVER_DIRECTIVE is not defined.
17858 * configure: Regenerated.
17859 * config.h.in: Likewise.
17860
17861 2008-12-28 Jakub Jelinek <jakub@redhat.com>
17862
17863 PR c++/38650
17864 * testsuite/libgomp.c/pr38650.c: New test.
17865 * testsuite/libgomp.c++/pr38650.C: New test.
17866
17867 2008-12-27 Jakub Jelinek <jakub@redhat.com>
17868
17869 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
17870
17871 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
17872
17873 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
17874
17875 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17876
17877 * configure: Regenerate.
17878
17879 2008-12-08 Jakub Jelinek <jakub@redhat.com>
17880
17881 PR middle-end/36802
17882 * testsuite/libgomp.c/pr36802-1.c: New test.
17883 * testsuite/libgomp.c/pr36802-2.c: New test.
17884 * testsuite/libgomp.c/pr36802-3.c: New test.
17885
17886 2008-12-01 Janis Johnson <janis187@us.ibm.com>
17887
17888 PR libgomp/38270
17889 * config/linux/powerpc/mutex.h: New.
17890
17891 2008-12-01 Jakub Jelinek <jakub@redhat.com>
17892
17893 PR c++/38257
17894 * testsuite/libgomp.c++/for-7.C: New test.
17895
17896 PR c++/38348
17897 * testsuite/libgomp.c++/for-6.C: New test.
17898
17899 2008-11-26 Janis Johnson <janis187@us.ibm.com>
17900
17901 PR testsuite/28870
17902 * testsuite/lib/libgomp.exp: Include new timeout library files.
17903 (libgomp_target_compile): Set timeout value from new proc.
17904
17905 2008-11-13 Steve Ellcey <sje@cup.hp.com>
17906
17907 PR libgomp/37938
17908 * config/linux/ia64/mutex.h: New.
17909
17910 2008-11-04 Tobias Burnus <burnus@net-b.de>
17911
17912 PR libgomp/37935
17913 * libgomp.texi (Runtime library routines, environment variables):
17914 Update for OpenMP version 3.0.
17915
17916 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
17917 Steve Ellcey <sje@cup.hp.com>
17918
17919 * configure: Regenerate for new libtool.
17920 * Makefile.in: Ditto.
17921 * testsuite/Makefile.in: Ditto.
17922
17923 2008-09-19 Jakub Jelinek <jakub@redhat.com>
17924 Andreas Tobler <a.tobler@schweiz.org>
17925
17926 * config/bsd/proc.c: New file.
17927 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
17928 * configure.ac: Check for header <sys/sysctl.h>
17929 * configure: Regenerate.
17930 * config.h.in: Likewise.
17931
17932 2008-09-05 Janis Johnson <janis187@us.ibm.com>
17933
17934 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
17935
17936 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
17937
17938 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
17939 * Makefile.in: Regenerated.
17940 * testsuite/Makefile.in: Regenerated.
17941
17942 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
17943
17944 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
17945 depend on blddir if blddir exists.
17946 (libgomp_target_compile): Likewise.
17947 * testsuite/libgomp.c++/c++.exp: Likewise.
17948 * testsuite/libgomp.fortran/fortran.exp: Likewise.
17949
17950 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17951
17952 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
17953 Do not list GPL as Invariant Section.
17954
17955 2008-07-28 Ilie Garbacea <ilie@mips.com>
17956 Chao-ying Fu <fu@mips.com>
17957
17958 * configure.tgt: Enable futex for MIPS.
17959 * config/linux/mips/futex.h: New file.
17960
17961 2008-07-16 Jakub Jelinek <jakub@redhat.com>
17962
17963 * team.c (gomp_team_end): Free team immediately if it has
17964 just one thread.
17965
17966 2008-07-08 David Edelsohn <edelsohn@gnu.org>
17967
17968 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
17969 * testsuite/libgomp.fortran/fortran.exp: Same.
17970 * testsuite/libgomp.c/c.exp: Same.
17971 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
17972 directory to library path first.
17973
17974 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
17975
17976 * env.c (parse_stacksize): Add cast to avoid warning.
17977 (parse_spincount): Likewise.
17978
17979 2008-06-27 Jakub Jelinek <jakub@redhat.com>
17980
17981 * testsuite/libgomp.c/loop-10.c: New test.
17982 * libgomp.c/loop-3.c (main): Add lastprivate clause.
17983 * libgomp.c++/loop-6.C (main): Likewise.
17984
17985 PR debug/36617
17986 * testsuite/libgomp.c/debug-1.c: New test.
17987
17988 2008-06-19 Jakub Jelinek <jakub@redhat.com>
17989
17990 * testsuite/libgomp.c/nqueens-1.c: New test.
17991
17992 PR c++/36523
17993 * testsuite/libgomp.c++/task-7.C: New function.
17994
17995 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17996
17997 * configure: Regenerate.
17998
17999 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18000
18001 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
18002 mutex when HAVE_SYNC_BUILTINS isn't defined.
18003
18004 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18005
18006 * libgomp.texi (omp_test_lock): Fix typo.
18007
18008 2008-06-12 Tobias Burnus <burnus@net-b.de>
18009
18010 * omp_lib.f90.in: Add "implicit none".
18011
18012 2008-06-12 Jakub Jelinek <jakub@redhat.com>
18013
18014 PR middle-end/36506
18015 * testsuite/libgomp.c/reduction-5.c: New test.
18016
18017 2008-06-11 Jakub Jelinek <jakub@redhat.com>
18018
18019 * libgomp.h (struct gomp_task): Add in_tied_task field.
18020 * task.c (gomp_init_task): Initialize it.
18021 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
18022 unconditionally. Don't call gomp_team_barrier_wake if
18023 current task is implicit or if(0) from implicit and number of
18024 running tasks is equal to nthreads - 1.
18025
18026 PR libgomp/36471
18027 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
18028 omp_get_team_size_8): Fix pastos.
18029
18030 PR libgomp/36469
18031 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
18032 * configure: Regenerated.
18033 * config.h.in: Regenerated.
18034 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
18035 defined.
18036
18037 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
18038
18039 PR bootstrap/36452
18040 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
18041 (GOMP_loop_ull_dynamic_start): Likewise.
18042 (GOMP_loop_ull_guided_start): Likewise.
18043 (GOMP_loop_ull_ordered_static_start): Likewise.
18044 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
18045 (GOMP_loop_ull_ordered_guided_start): Likewise.
18046
18047 2008-06-06 Jakub Jelinek <jakub@redhat.com>
18048 Richard Henderson <rth@redhat.com>
18049 Ulrich Drepper <drepper@redhat.com>
18050 Jakob Blomer <jakob.blomer@ira.uka.de>
18051
18052 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
18053 Substitute also OMP_*LOCK_25*.
18054 * configure: Regenerated.
18055 * config.h.in: Regenerated.
18056 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
18057 ptrlock.c and task.c.
18058 * Makefile.in: Regenerated.
18059 * testsuite/Makefile.in: Regenerated.
18060 * task.c: New file.
18061 * loop_ull.c: New file.
18062 * iter_ull.c: New file.
18063 * libgomp.h: Include ptrlock.h.
18064 (enum gomp_task_kind): New type.
18065 (struct gomp_team): Add task_lock, task_queue, task_count,
18066 task_running_count, single_count fields. Add
18067 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
18068 Remove work_share_lock, generation_mask,
18069 oldest_live_gen, num_live_gen and init_work_shares fields, add
18070 work work_share_list_alloc, work_share_list_free and work_share_chunk
18071 fields. Change work_shares from pointer to pointers into an array.
18072 Change ordered_release field into gomp_sem_t ** from flexible array
18073 member. Add implicit_task and initial_work_shares fields.
18074 Move close to the end of the struct.
18075 (struct gomp_team_state): Add single_count, last_work_share,
18076 active_level and level fields, remove work_share_generation.
18077 (gomp_barrier_handle_tasks): New prototype.
18078 (gomp_finish_task): New inline function.
18079 (struct gomp_work_share): Move chunk_size, end, incr into
18080 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
18081 next_ll fields. Reshuffle fields. Add next_alloc,
18082 next_ws, next_free and inline_ordered_team_ids fields, change
18083 ordered_team_ids into pointer from flexible array member.
18084 Add mode field. Put lock and next into a different cache line
18085 from most of the write-once fields.
18086 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
18087 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
18088 gomp_iter_ull_guided_next): New prototypes.
18089 (gomp_new_icv): New prototype.
18090 (struct gomp_thread): Add thread_pool and task fields.
18091 (struct gomp_thread_pool): New type.
18092 (gomp_new_team): New prototype.
18093 (gomp_team_start): Change type of last argument.
18094 (gomp_new_work_share): Removed.
18095 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
18096 (gomp_work_share_init_done): New static inline.
18097 (gomp_throttled_spin_count_var, gomp_available_cpus,
18098 gomp_managed_threads): New extern decls.
18099 (gomp_init_task): New prototype.
18100 (gomp_spin_count_var): New extern var decl.
18101 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
18102 or no alias support, or if not PIC.
18103 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
18104 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
18105 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
18106 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
18107 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
18108 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
18109 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
18110 gomp_test_nest_lock_25): New prototypes.
18111 (omp_lock_symver, strong_alias): Define.
18112 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
18113 decls.
18114 (gomp_end_task): New.
18115 (struct gomp_task_icv, gomp_global_icv): New.
18116 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
18117 (struct gomp_task): New.
18118 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18119 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18120 (gomp_icv): New.
18121 (gomp_schedule_type): Reorder enum to match
18122 omp_sched_t.
18123 * team.c (struct gomp_thread_start_data): Add thread_pool and task
18124 fields.
18125 (gomp_thread_start): Add gomp_team_barrier_wait call.
18126 For non-nested case remove clearing of docked thread thr fields.
18127 Use pool fields instead of global gomp_* variables. Use
18128 gomp_barrier_wait_last when needed. Initialize ts.active_level.
18129 Create tasks for each member thread.
18130 (free_team): Only destroy team barrier, task_lock here and free it.
18131 (gomp_free_thread): Free last_team if non-NULL.
18132 (gomp_team_end): Call gomp_team_barrier_wait instead of
18133 gomp_barrier_wait. For nested case call one extra
18134 gomp_barrier_wait. Move here some destruction from free_team.
18135 Call free_team on pool->last_team if any, rather than freeing
18136 current team. Destroy work_share_list_free_lock ifndef
18137 HAVE_SYNC_BUILTINS.
18138 (gomp_new_icv): New function.
18139 (gomp_threads, gomp_threads_size, gomp_threads_used,
18140 gomp_threads_dock): Removed.
18141 (gomp_thread_destructor): New variable.
18142 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
18143 functions.
18144 (gomp_team_start): Create new pool if current thread doesn't have
18145 one. Use pool fields instead of global gomp_* variables.
18146 Initialize thread_pool field for new threads. Clear single_count.
18147 Change last argument from ws to team, don't create
18148 new team, set ts.work_share to &team->work_shares[0] and clear
18149 ts.last_work_share. Don't clear ts.work_share_generation.
18150 If number of threads changed, adjust atomically gomp_managed_threads.
18151 Use gomp_init_task instead of gomp_new_task,
18152 set thr->task to the corresponding implicit_task array entry.
18153 Create tasks for each member thread. Initialize ts.level.
18154 (initialize_team): Call pthread_key_create on
18155 gomp_thread_destructor.
18156 (team_destructor): New function.
18157 (new_team): Removed.
18158 (gomp_new_team): New function.
18159 (free_team): Free gomp_work_share blocks chained through next_alloc,
18160 instead of freeing work_shares and destroying work_share_lock.
18161 (gomp_team_end): Call gomp_fini_work_share. If number of threads
18162 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
18163 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
18164 of gomp_barrier_wait.
18165 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
18166 instead of gomp_barrier_wait. Call gomp_work_share_init_done
18167 if gomp_work_share_start returned true. Don't unlock ws->lock.
18168 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
18169 of gomp_barrier_wait.
18170 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
18171 gomp_work_share_init_done if gomp_work_share_start returned true.
18172 Don't unlock ws->lock.
18173 * work.c: Include stddef.h.
18174 (free_work_share): Use work_share_list_free_lock instead
18175 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
18176 Call gomp_fini_work_share and then either free ws if orphaned, or
18177 put it into work_share_list_free list of the current team.
18178 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
18179 functions.
18180 (gomp_work_share_start, gomp_work_share_end,
18181 gomp_work_share_end_nowait): Rewritten.
18182 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
18183 (openmp_version): Set to 200805.
18184 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18185 omp_sched_guided, omp_sched_auto): New parameters.
18186 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18187 omp_set_max_active_levels, omp_get_max_active_levels,
18188 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18189 omp_get_active_level): New interfaces.
18190 * omp_lib.h.in (openmp_version): Set to 200805.
18191 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18192 omp_sched_guided, omp_sched_auto): New parameters.
18193 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18194 omp_set_max_active_levels, omp_get_max_active_levels,
18195 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18196 omp_get_active_level): New externals.
18197 * loop.c: Include limits.h.
18198 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
18199 GFS_AUTO.
18200 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
18201 Likewise. Use gomp_icv.
18202 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
18203 ts.static_trip here.
18204 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
18205 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
18206 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
18207 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
18208 don't unlock ws->lock, otherwise lock it.
18209 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
18210 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
18211 (gomp_parallel_loop_start): Call gomp_new_team instead of
18212 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
18213 Adjust gomp_team_start caller. Pass 0 as second argument to
18214 gomp_resolve_num_threads.
18215 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
18216 If adding ws->chunk_size nthreads + 1 times after end won't
18217 overflow, set ws->mode to 1.
18218 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
18219 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
18220 GOMP_loop_ull_ordered_static_start,
18221 GOMP_loop_ull_ordered_dynamic_start,
18222 GOMP_loop_ull_ordered_guided_start,
18223 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
18224 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
18225 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
18226 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
18227 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
18228 prototypes.
18229 * libgomp.map: Export lock routines also @@OMP_2.0.
18230 (GOMP_loop_ordered_dynamic_first,
18231 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
18232 GOMP_loop_ordered_static_first): Remove.
18233 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
18234 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
18235 GOMP_loop_ull_ordered_dynamic_next,
18236 GOMP_loop_ull_ordered_dynamic_start,
18237 GOMP_loop_ull_ordered_guided_next,
18238 GOMP_loop_ull_ordered_guided_start,
18239 GOMP_loop_ull_ordered_runtime_next,
18240 GOMP_loop_ull_ordered_runtime_start,
18241 GOMP_loop_ull_ordered_static_next,
18242 GOMP_loop_ull_ordered_static_start,
18243 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
18244 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
18245 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
18246 (omp_set_schedule, omp_get_schedule,
18247 omp_get_thread_limit, omp_set_max_active_levels,
18248 omp_get_max_active_levels, omp_get_level,
18249 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
18250 omp_set_schedule_, omp_set_schedule_8_,
18251 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
18252 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
18253 omp_get_max_active_levels_, omp_get_level_,
18254 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
18255 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
18256 New exports @@OMP_3.0.
18257 * omp.h.in (omp_sched_t): New type.
18258 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18259 omp_set_max_active_levels, omp_get_max_active_levels,
18260 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18261 omp_get_active_level): New prototypes.
18262 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
18263 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
18264 gomp_thread_limit_var, gomp_remaining_threads_count,
18265 gomp_remaining_threads_lock): New variables.
18266 (parse_spincount): New function.
18267 (initialize_env): Call gomp_init_num_threads unconditionally.
18268 Initialize gomp_available_cpus. Call parse_spincount,
18269 initialize gomp_{,throttled_}spin_count_var
18270 depending on presence and value of OMP_WAIT_POLICY and
18271 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
18272 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
18273 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
18274 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
18275 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
18276 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18277 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18278 (gomp_global_icv): New.
18279 (parse_schedule): Use it. Parse "auto".
18280 (omp_set_num_threads): Use gomp_icv.
18281 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
18282 Likewise.
18283 (omp_get_max_threads): Move from parallel.c.
18284 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18285 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
18286 add ialias.
18287 (parse_stacksize, parse_wait_policy): New functions.
18288 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
18289 both wrappers for compatibility and new locks.
18290 (omp_set_schedule, omp_get_schedule,
18291 omp_get_thread_limit, omp_set_max_active_levels,
18292 omp_get_max_active_levels, omp_get_level,
18293 omp_get_ancestor_thread_num, omp_get_team_size,
18294 omp_get_active_level): New ialias_redirect.
18295 (omp_set_schedule_, omp_set_schedule_8_,
18296 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
18297 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
18298 omp_get_max_active_levels_, omp_get_level_,
18299 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
18300 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
18301 New functions.
18302 * parallel.c: Include limits.h.
18303 (gomp_resolve_num_threads): Add count argument. Rewritten.
18304 (GOMP_parallel_start): Call gomp_new_team and pass that as last
18305 argument to gomp_team_start. Pass 0 as second argument to
18306 gomp_resolve_num_threads.
18307 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
18308 if gomp_thread_limit_var != ULONG_MAX.
18309 (omp_in_parallel): Implement using ts.active_level.
18310 (omp_get_max_threads): Move to env.c.
18311 (omp_get_level, omp_get_ancestor_thread_num,
18312 omp_get_team_size, omp_get_active_level): New functions,
18313 add ialias.
18314 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
18315 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
18316 gomp_iter_dynamic_next instead of the _locked variant and don't take
18317 lock around it, otherwise acquire it before calling
18318 gomp_iter_dynamic_next_locked.
18319 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
18320 gomp_iter_dynamic_next instead of the _locked variant and don't take
18321 lock around it.
18322 (GOMP_parallel_sections_start): Call gomp_new_team instead of
18323 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
18324 Adjust gomp_team_start caller. Pass count as second argument to
18325 gomp_resolve_num_threads, don't adjust num_threads after the call.
18326 Use gomp_icv.
18327 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
18328 ws->chunk_size by incr.
18329 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
18330 code.
18331 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
18332 types.
18333 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
18334 (omp_check_defines): Check even the compat defines.
18335 * config/linux/ptrlock.c: New file.
18336 * config/linux/ptrlock.h: New file.
18337 * config/linux/wait.h: New file.
18338 * config/posix/ptrlock.c: New file.
18339 * config/posix/ptrlock.h: New file.
18340 * config/linux/bar.h (gomp_team_barrier_wait,
18341 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
18342 (gomp_team_barrier_set_task_pending,
18343 gomp_team_barrier_clear_task_pending,
18344 gomp_team_barrier_set_waiting_for_tasks,
18345 gomp_team_barrier_waiting_for_tasks,
18346 gomp_team_barrier_done): New inlines.
18347 (gomp_barrier_t): Rewritten.
18348 (gomp_barrier_state_t): New typedef.
18349 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
18350 gomp_barrier_wait_start): Rewritten.
18351 (gomp_barrier_wait_end): Change second argument to
18352 gomp_barrier_state_t.
18353 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
18354 inlines.
18355 * config/linux/bar.c: Include wait.h instead of libgomp.h and
18356 futex.h.
18357 (gomp_barrier_wait_end): Rewritten.
18358 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
18359 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
18360 * config/posix/bar.h (gomp_barrier_t): Add generation field.
18361 (gomp_barrier_state_t): New typedef.
18362 (gomp_team_barrier_wait,
18363 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
18364 (gomp_barrier_wait_start): Or all but low 2 bits from generation
18365 into the return value. Return gomp_barrier_state_t.
18366 (gomp_team_barrier_set_task_pending,
18367 gomp_team_barrier_clear_task_pending,
18368 gomp_team_barrier_set_waiting_for_tasks,
18369 gomp_team_barrier_waiting_for_tasks,
18370 gomp_team_barrier_done): New inlines.
18371 (gomp_barrier_wait_end): Change second argument to
18372 gomp_barrier_state_t.
18373 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
18374 inlines.
18375 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
18376 (gomp_barrier_wait_end): Change second argument to
18377 gomp_barrier_state_t.
18378 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
18379 gomp_team_barrier_wake): New functions.
18380 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
18381 futex.h.
18382 (gomp_futex_wake, gomp_futex_wait): New variables.
18383 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
18384 * config/linux/lock.c: Rewrite to make locks task owned,
18385 for backwards compatibility provide the old entrypoints
18386 if symbol versioning. Include wait.h instead of libgomp.h and
18387 futex.h.
18388 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
18389 * config/posix95/lock.c: Rewrite to make locks task owned,
18390 for backwards compatibility provide the old entrypoints
18391 if symbol versioning.
18392 * config/posix/lock.c: Rewrite to make locks task owned,
18393 for backwards compatibility provide the old entrypoints
18394 if symbol versioning.
18395 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
18396 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
18397 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
18398 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18399 (sys_futex0): Return error code.
18400 (futex_wake, futex_wait): If ENOSYS was returned, clear
18401 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18402 (cpu_relax, atomic_write_barrier): New static inlines.
18403 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18404 (futex_wake, futex_wait): If ENOSYS was returned, clear
18405 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18406 (cpu_relax, atomic_write_barrier): New static inlines.
18407 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18408 (sys_futex0): Return error code.
18409 (futex_wake, futex_wait): If ENOSYS was returned, clear
18410 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18411 (cpu_relax, atomic_write_barrier): New static inlines.
18412 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18413 (sys_futex0): Return error code.
18414 (futex_wake, futex_wait): If ENOSYS was returned, clear
18415 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18416 (cpu_relax, atomic_write_barrier): New static inlines.
18417 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18418 (sys_futex0): Return error code.
18419 (futex_wake, futex_wait): If ENOSYS was returned, clear
18420 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18421 (cpu_relax, atomic_write_barrier): New static inlines.
18422 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18423 (sys_futex0): Return error code.
18424 (futex_wake, futex_wait): If ENOSYS was returned, clear
18425 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18426 (cpu_relax, atomic_write_barrier): New static inlines.
18427 * config/linux/sem.c: Include wait.h instead of libgomp.h and
18428 futex.h.
18429 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
18430 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
18431 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
18432 types.
18433 (omp_nest_lock_t): Change owner into void *, add lock field.
18434 * config/posix95/omp-lock.h: Include semaphore.h.
18435 (omp_lock_25_t, omp_nest_lock_25_t): New types.
18436 (omp_lock_t): Use sem_t instead of mutex if semaphores
18437 aren't broken.
18438 (omp_nest_lock_t): Likewise. Change owner to void *.
18439 * config/posix/omp-lock.h: Include semaphore.h.
18440 (omp_lock_25_t, omp_nest_lock_25_t): New types.
18441 (omp_lock_t): Use sem_t instead of mutex if semaphores
18442 aren't broken.
18443 (omp_nest_lock_t): Likewise. Add owner field.
18444
18445 2008-06-06 Jakub Jelinek <jakub@redhat.com>
18446
18447 * testsuite/libgomp.c/collapse-1.c: New test.
18448 * testsuite/libgomp.c/collapse-2.c: New test.
18449 * testsuite/libgomp.c/collapse-3.c: New test.
18450 * testsuite/libgomp.c/icv-1.c: New test.
18451 * testsuite/libgomp.c/icv-2.c: New test.
18452 * testsuite/libgomp.c/lib-2.c: New test.
18453 * testsuite/libgomp.c/lock-1.c: New test.
18454 * testsuite/libgomp.c/lock-2.c: New test.
18455 * testsuite/libgomp.c/lock-3.c: New test.
18456 * testsuite/libgomp.c/loop-4.c: New test.
18457 * testsuite/libgomp.c/loop-5.c: New test.
18458 * testsuite/libgomp.c/loop-6.c: New test.
18459 * testsuite/libgomp.c/loop-7.c: New test.
18460 * testsuite/libgomp.c/loop-8.c: New test.
18461 * testsuite/libgomp.c/loop-9.c: New test.
18462 * testsuite/libgomp.c/nested-3.c: New test.
18463 * testsuite/libgomp.c/nestedfn-6.c: New test.
18464 * testsuite/libgomp.c/sort-1.c: New test.
18465 * testsuite/libgomp.c/task-1.c: New test.
18466 * testsuite/libgomp.c/task-2.c: New test.
18467 * testsuite/libgomp.c/task-3.c: New test.
18468 * testsuite/libgomp.c/task-4.c: New test.
18469 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
18470 to C++ testsuite default compiler options.
18471 * testsuite/libgomp.c++/collapse-1.C: New test.
18472 * testsuite/libgomp.c++/collapse-2.C: New test.
18473 * testsuite/libgomp.c++/ctor-10.C: New test.
18474 * testsuite/libgomp.c++/for-1.C: New test.
18475 * testsuite/libgomp.c++/for-2.C: New test.
18476 * testsuite/libgomp.c++/for-3.C: New test.
18477 * testsuite/libgomp.c++/for-4.C: New test.
18478 * testsuite/libgomp.c++/for-5.C: New test.
18479 * testsuite/libgomp.c++/loop-8.C: New test.
18480 * testsuite/libgomp.c++/loop-9.C: New test.
18481 * testsuite/libgomp.c++/loop-10.C: New test.
18482 * testsuite/libgomp.c++/task-1.C: New test.
18483 * testsuite/libgomp.c++/task-2.C: New test.
18484 * testsuite/libgomp.c++/task-3.C: New test.
18485 * testsuite/libgomp.c++/task-4.C: New test.
18486 * testsuite/libgomp.c++/task-5.C: New test.
18487 * testsuite/libgomp.c++/task-6.C: New test.
18488 * testsuite/libgomp.fortran/allocatable1.f90: New test.
18489 * testsuite/libgomp.fortran/allocatable2.f90: New test.
18490 * testsuite/libgomp.fortran/allocatable3.f90: New test.
18491 * testsuite/libgomp.fortran/allocatable4.f90: New test.
18492 * testsuite/libgomp.fortran/collapse1.f90: New test.
18493 * testsuite/libgomp.fortran/collapse2.f90: New test.
18494 * testsuite/libgomp.fortran/collapse3.f90: New test.
18495 * testsuite/libgomp.fortran/collapse4.f90: New test.
18496 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
18497 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
18498 * testsuite/libgomp.fortran/lib4.f90: New test.
18499 * testsuite/libgomp.fortran/lock-1.f90: New test.
18500 * testsuite/libgomp.fortran/lock-2.f90: New test.
18501 * testsuite/libgomp.fortran/nested1.f90: New test.
18502 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
18503 * testsuite/libgomp.fortran/strassen.f90: New test.
18504 * testsuite/libgomp.fortran/tabs1.f90: New test.
18505 * testsuite/libgomp.fortran/tabs2.f: New test.
18506 * testsuite/libgomp.fortran/task1.f90: New test.
18507 * testsuite/libgomp.fortran/task2.f90: New test.
18508 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
18509 * testsuite/libgomp.fortran/vla5.f90: Likewise.
18510 * testsuite/libgomp.c/pr26943-2.c: Likewise.
18511 * testsuite/libgomp.c/pr26943-3.c: Likewise.
18512 * testsuite/libgomp.c/pr26943-4.c: Likewise.
18513
18514 2008-05-23 Jakub Jelinek <jakub@redhat.com>
18515
18516 PR c++/36308
18517 * testsuite/libgomp.c++/ctor-11.C: New test.
18518 * testsuite/libgomp.c++/ctor-12.C: New test.
18519
18520 2008-05-15 Janis Johnson <janis187@us.ibm.com>
18521
18522 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
18523
18524 2008-05-07 Jakub Jelinek <jakub@redhat.com>
18525
18526 PR middle-end/36106
18527 * testsuite/libgomp.c/atomic-5.c: New test.
18528 * testsuite/libgomp.c/atomic-6.c: New test.
18529 * testsuite/libgomp.c/autopar-1.c: New test.
18530
18531 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18532
18533 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
18534 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
18535 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
18536 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
18537 * configure: Regenerate.
18538 * Makefile.in, testsuite/Makefile.in: Likewise.
18539
18540 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
18541
18542 PR bootstrap/35457
18543 * aclocal.m4: Regenerate.
18544 * configure: Regenerate.
18545
18546 2008-03-18 Jakub Jelinek <jakub@redhat.com>
18547
18548 PR middle-end/35611
18549 * testsuite/libgomp.c/atomic-4.c: New test.
18550
18551 PR libgomp/35625
18552 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
18553 (gomp_iter_guided_next): Likewise.
18554 * testsuite/libgomp.c/pr35625.c: New test.
18555
18556 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18557
18558 * aclocal.m4: Regenerate.
18559 * configure: Likewise.
18560 * Makefile.in: Likewise.
18561 * testsuite/Makefile.in: Likewise.
18562
18563 2008-03-13 Jakub Jelinek <jakub@redhat.com>
18564
18565 PR middle-end/35185
18566 * testsuite/libgomp.c++/pr35185.C: New test.
18567
18568 2008-03-12 Jakub Jelinek <jakub@redhat.com>
18569
18570 PR middle-end/35549
18571 * testsuite/libgomp.c/pr35549.c: New test.
18572
18573 2008-03-06 Jakub Jelinek <jakub@redhat.com>
18574
18575 * testsuite/libgomp.c/atomic-3.c: New test.
18576
18577 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18578
18579 PR fortran/33197
18580 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
18581 .F08 file suffixes.
18582
18583 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
18584
18585 PR libgomp/33131
18586 * configure.ac: Add ACX_HEADER_STRING.
18587 * env.c: Include strings.h.
18588 * aclocal.m4: Regenerate.
18589 * config.h.in: Regenerate.
18590 * configure: Regenerate.
18591 * Makefile.in: Regenerate.
18592 * testsuite/Makefile.in: Regenerate.
18593
18594 2008-02-15 Jakub Jelinek <jakub@redhat.com>
18595
18596 PR middle-end/35196
18597 * testsuite/libgomp.c/pr35196.c: New test.
18598
18599 PR middle-end/35130
18600 * testsuite/libgomp.fortran/pr35130.f90: New test.
18601 * testsuite/libgomp.c/pr35130.c: New test.
18602
18603 2008-01-25 Jakub Jelinek <jakub@redhat.com>
18604
18605 PR middle-end/33880
18606 * testsuite/libgomp.c/pr33880.c: New test.
18607 * testsuite/libgomp.fortran/pr33880.f90: New test.
18608
18609 2008-01-24 David Edelsohn <edelsohn@gnu.org>
18610
18611 * configure: Regenerate.
18612
18613 2008-01-08 Jakub Jelinek <jakub@redhat.com>
18614
18615 * configure.ac: Move futex checking into ../config/futex.m4.
18616 * configure: Rebuilt.
18617 * aclocal.m4: Rebuilt.
18618 * Makefile.in: Rebuilt.
18619
18620 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
18621 2007-10-15 ../config/tls.m4 change.
18622
18623 2007-12-19 Jakub Jelinek <jakub@redhat.com>
18624
18625 PR c++/34513
18626 * testsuite/libgomp.c/pr34513.c: New test.
18627 * testsuite/libgomp.c++/pr34513.C: New test.
18628
18629 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
18630
18631 PR target/32765
18632 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
18633
18634 2007-12-04 Jakub Jelinek <jakub@redhat.com>
18635
18636 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
18637
18638 2007-12-03 Jakub Jelinek <jakub@redhat.com>
18639
18640 * testsuite/libgomp.c/private-1.c: New test.
18641
18642 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
18643 Paolo Bonzini <bonzini@gnu.org>
18644
18645 * Makefile.am: Use space as vpath separator. Use 'vpath %'
18646 instead of 'VPATH ='.
18647 * Makefile.in: Regenerate.
18648
18649 2007-11-23 Matthias Klose <doko@ubuntu.com>
18650
18651 * configure.ac: Adjust makeinfo version check.
18652 * configure: Regenerate.
18653
18654 2007-11-10 Jakub Jelinek <jakub@redhat.com>
18655
18656 PR fortran/34020
18657 * testsuite/libgomp.fortran/pr34020.f90: New test.
18658
18659 2007-11-06 Jakub Jelinek <jakub@redhat.com>
18660
18661 PR c++/33894
18662 * testsuite/libgomp.c++/atomic-1.C: New test.
18663
18664 2007-10-25 Jakub Jelinek <jakub@redhat.com>
18665
18666 PR libgomp/33275
18667 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
18668 Make x and y integers rather than (implicit) reals. Add private (j)
18669 clause to the last omp parallel.
18670
18671 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
18672
18673 * configure: Regenerate following changes to ../config/tls.m4.
18674
18675 2007-09-28 Jakub Jelinek <jakub@redhat.com>
18676
18677 * testsuite/libgomp.fortran/stack.f90: New test.
18678
18679 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
18680
18681 * config/mingw32/proc.c: New file.
18682
18683 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
18684
18685 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
18686 (main): Use __get_cpuid to get i386 target fetaures.
18687 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
18688 (main): Use __get_cpuid to get x86_64 target fetaures.
18689
18690 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
18691
18692 PR target/32765
18693 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
18694 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
18695
18696 2007-07-12 Jakub Jelinek <jakub@redhat.com>
18697
18698 PR fortran/32550
18699 * testsuite/libgomp.fortran/pr32550.f90: New test.
18700 * testsuite/libgomp.fortran/crayptr2.f90: New test.
18701
18702 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
18703
18704 * aclocal.m4: Regenerated.
18705
18706 2007-07-05 Tobias Burnus <burnus@net-b.de>
18707
18708 PR fortran/32359
18709 * testsuite/libgomp.fortran/pr32359.f90: New.
18710
18711 2007-07-02 Jakub Jelinek <jakub@redhat.com>
18712
18713 PR libgomp/32468
18714 * sections.c (GOMP_parallel_sections_start): Only decrease
18715 number of threads to COUNT if dyn_var is true.
18716 * testsuite/libgomp.c/pr32468.c: New test.
18717
18718 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18719
18720 PR libgomp/26308
18721 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
18722
18723 2007-06-21 Jakub Jelinek <jakub@redhat.com>
18724
18725 PR middle-end/32362
18726 * testsuite/libgomp.c/pr32362-1.c: New test.
18727 * testsuite/libgomp.c/pr32362-2.c: New test.
18728 * testsuite/libgomp.c/pr32362-3.c: New test.
18729
18730 2007-06-07 Jakub Jelinek <jakub@redhat.com>
18731
18732 * team.c (gomp_team_start): Fix setting up thread_attr
18733 stack size.
18734
18735 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
18736
18737 * configure: Regenerate.
18738
18739 2007-05-23 Steve Ellcey <sje@cup.hp.com>
18740
18741 * Makefile.in: Regenerate.
18742 * configure: Regenerate.
18743 * aclocal.m4: Regenerate.
18744 * testsuite/Makefile.in: Regenerate.
18745
18746 2007-05-04 Jakub Jelinek <jakub@redhat.com>
18747
18748 * config/linux/proc.c: New file.
18749
18750 PR libgomp/28482
18751 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
18752
18753 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
18754
18755 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
18756
18757 2007-04-16 Matthias Klose <doko@debian.org>
18758
18759 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
18760 flags if not building with -m64.
18761 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
18762 flag for i?86-*-* targets, if current target matches -m64.
18763
18764 2007-04-14 Steve Ellcey <sje@cup.hp.com>
18765
18766 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
18767 * Makefile.in: Regenerate.
18768
18769 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18770
18771 PR testsuite/31369
18772 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
18773 ld_library_path.
18774 * testsuite/libgomp.fortran/fortran.exp: Likewise.
18775
18776 2007-04-04 Jakub Jelinek <jakub@redhat.com>
18777
18778 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
18779 decls.
18780 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
18781 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
18782 (parse_affinity): New function.
18783 (initialize_env): Call it and gomp_init_affinity.
18784 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
18785 create new pthread_attr_t and call gomp_init_thread_affinity
18786 on it for each thread before passing the attribute to pthread_create.
18787 * config/linux/affinity.c: New file.
18788 * config/posix/affinity.c: New file.
18789 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
18790 * configure: Rebuilt.
18791 * config.h.in: Rebuilt.
18792 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
18793 * Makefile.in: Rebuilt.
18794
18795 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
18796
18797 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
18798 *-*-darwin*.
18799 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
18800 and use it if found.
18801
18802 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
18803
18804 * testsuite/config/default.exp: New file.
18805 * testsuite/lib/libgomp.exp: New file.
18806 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
18807 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
18808 load_lib *, load_gcc_lib *): Move to libgomp.exp.
18809 (libgomp_load): Remove.
18810 * testsuite/lib/libgomp.exp (libgomp_init): Compute
18811 always_ld_library_path, not ld_library_path. Set additional_flags
18812 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
18813 (target_compile): Do not call libgomp_init. Append lang_library_path
18814 and lang_link_flags to options.
18815 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
18816 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
18817 here.
18818 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
18819 always_ld_library_path. Set LD_LIBRARY_PATH here.
18820 * testsuite/libgomp.fortran/fortran.exp: Ditto.
18821 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
18822 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
18823 CX8 flag.
18824 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
18825 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
18826 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
18827 * testsuite/libgomp.c/pr29947-1.c: Ditto.
18828 * testsuite/libgomp.c/atomic-10.c: Ditto.
18829
18830 2007-03-21 Jakub Jelinek <jakub@redhat.com>
18831
18832 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
18833 dg-final cleanup-modules line.
18834 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
18835 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
18836 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
18837 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
18838 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
18839 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
18840 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
18841
18842 2007-03-18 Andreas Schwab <schwab@suse.de>
18843
18844 * acinclude.m4: Adjust regular expression for ld version
18845 extraction.
18846 * configure: Regenerate.
18847
18848 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
18849
18850 * Makefile.am: Add install-pdf target as copied from
18851 automake v1.10 rules.
18852 * Makefile.in: Regenerate
18853
18854 2007-02-07 Jakub Jelinek <jakub@redhat.com>
18855
18856 PR libgomp/28486
18857 * configure: Regenerate.
18858
18859 PR c++/30703
18860 * testsuite/libgomp.c++/pr30703.C: New test.
18861
18862 2007-02-02 Jakub Jelinek <jakub@redhat.com>
18863
18864 Revert:
18865 2006-07-05 Eric Christopher <echristo@apple.com>
18866 * configure.ac: Depend addition of -pthread on host OS.
18867 * configure: Regenerate.
18868
18869 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18870
18871 * libgomp.texi: Fix spacing after abbreviations.
18872
18873 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
18874
18875 PR libgomp/30546
18876 * configure.ac: Add check for makeinfo
18877 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
18878 if an appropriate version of makeinfo is found.
18879 * aclocal.m4: Regenerated.
18880 * configure: Regenerated.
18881 * Makefile.in: Regenerated.
18882 * testsuite/Makefile.in: Regenerated.
18883
18884 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
18885
18886 PR libgomp/30540
18887 * libgomp.texi: More about implementation-dependent settings.
18888
18889 2007-01-26 Tobias Burnus <burnus@net-b.de>
18890
18891 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
18892
18893 2007-01-24 Jakub Jelinek <jakub@redhat.com>
18894
18895 PR middle-end/30494
18896 * testsuite/libgomp.c/pr30494.c: New test.
18897
18898 2007-01-15 Tom Tromey <tromey@redhat.com>
18899
18900 * configure: Rebuilt.
18901 * configure.ac: Fixed comment.
18902
18903 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
18904
18905 * libgomp.texi: Document implementation specific default values of
18906 environment variables.
18907
18908 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
18909
18910 PR libgomp/28209
18911 * libgomp.texi: New file.
18912 * configure.ac: Add --enable-generated-files-in-srcdir option.
18913 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
18914 files to srcdir.
18915 * Makefile.in: Regenerated.
18916 * config.h.in: Regenerated.
18917 * testsuite/Makefile.in: Regenerated.
18918 * NOTES: Removed.
18919
18920 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
18921
18922 PR libgomp/29949
18923 * env.c (omp_set_num_threads): Set illegal thread count to 1.
18924
18925 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
18926
18927 * configure: Regenerate.
18928
18929 2006-12-04 Jakub Jelinek <jakub@redhat.com>
18930
18931 PR libgomp/29947
18932 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
18933 start if there shouldn't be any loop iterations.
18934 (gomp_loop_ordered_static_start): Remove start == end test.
18935 * testsuite/libgomp.c/pr29947-1.c: New test.
18936 * testsuite/libgomp.c/pr29947-2.c: New test.
18937
18938 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
18939
18940 * configure.tgt: Force initial-exec TLS model on Linux only.
18941
18942 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
18943
18944 * configure: Regenerated.
18945
18946 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
18947
18948 * env.c (parse_schedule): Reject out of range values.
18949 (parse_unsigned_long): Reject out of range, negative or zero values.
18950
18951 2006-10-29 Jakub Jelinek <jakub@redhat.com>
18952
18953 PR fortran/29629
18954 * testsuite/libgomp.fortran/pr29629.f90: New test.
18955
18956 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
18957
18958 PR libgomp/29494
18959 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
18960 * config/posix95: New directory.
18961 * config/posix95/omp-lock.h: New file.
18962 * config/posix95/lock.c: Likewise.
18963
18964 2006-10-14 Geoffrey Keating <geoffk@apple.com>
18965
18966 * aclocal.m4: Regenerate.
18967 * configure: Regenerate.
18968
18969 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
18970
18971 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
18972 '<' to '<='.
18973
18974 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
18975
18976 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
18977 test.
18978 * configure: Regenerate.
18979 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
18980
18981 2006-09-26 Jakub Jelinek <jakub@redhat.com>
18982
18983 PR middle-end/25261
18984 PR middle-end/28790
18985 * testsuite/libgomp.c/nestedfn-4.c: New test.
18986 * testsuite/libgomp.c/nestedfn-5.c: New test.
18987 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
18988
18989 PR fortran/29097
18990 * testsuite/libgomp.fortran/condinc1.f: New test.
18991 * testsuite/libgomp.fortran/condinc2.f: New test.
18992 * testsuite/libgomp.fortran/condinc3.f90: New test.
18993 * testsuite/libgomp.fortran/condinc4.f90: New test.
18994 * testsuite/libgomp.fortran/condinc1.inc: New file.
18995
18996 2006-09-18 Tom Tromey <tromey@redhat.com>
18997
18998 * configure: Rebuilt.
18999
19000 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
19001
19002 PR c/28768
19003 PR preprocessor/14634
19004 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
19005 to AC_DEFINE.
19006 * configure: Regenerate.
19007
19008 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
19009
19010 * testsuite/libgomp.fortran/reduction3.f90: Change
19011 -2147483648 to -huge(i)-1 to avoid overflow.
19012 * testsuite/libgomp.fortran/reduction4.f90: Change
19013 Z'ffffffff' to not(0) to avoid overflow.
19014
19015 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
19016
19017 PR libgomp/25938
19018 * Makefile.am (libsubincludedir): New.
19019 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
19020 * Makefile.in: Regenerate.
19021
19022 2006-08-17 Jakub Jelinek <jakub@redhat.com>
19023
19024 PR libgomp/28725
19025 * env.c: Include ctype.h.
19026 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
19027 leading and/or trailing whitespace and compare strings case
19028 insensitively.
19029
19030 2006-07-16 Jakub Jelinek <jakub@redhat.com>
19031
19032 PR fortran/28390
19033 * testsuite/libgomp.fortran/pr28390.f: New test.
19034
19035 2006-07-05 Eric Christopher <echristo@apple.com>
19036
19037 * configure.ac: Depend addition of -pthread on host OS.
19038 * configure: Regenerate.
19039
19040 2006-06-21 Jakub Jelinek <jakub@redhat.com>
19041
19042 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
19043 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
19044 defined.
19045
19046 2006-06-20 Jakub Jelinek <jakub@redhat.com>
19047
19048 PR libgomp/26175
19049 PR libgomp/26477
19050 * configure.ac: If neither --enable-linux-futex nor
19051 --disable-linux-futex is passed, determine the default by checking
19052 for compiling and/or running against NPTL. With --enable-linux-futex,
19053 check if SYS_gettid and SYS_futex are defined.
19054 * configure: Rebuilt.
19055
19056 2006-06-14 Richard Henderson <rth@redhat.com>
19057
19058 PR libgomp/28008
19059 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
19060 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
19061
19062 2006-06-09 Richard Henderson <rth@redhat.com>
19063
19064 * env.c (gomp_nthreads_var): Change to unsigned long.
19065 (gomp_run_sched_chunk): Likewise.
19066 (parse_unsigned_long): Rename from parse_num_threads and generalize.
19067 (initialize_env): Initialize gomp_thread_attr.
19068 * libgomp.h (gomp_nthreads_var): Update decl.
19069 (gomp_run_sched_chunk): Likewise.
19070 (gomp_thread_attr): Declare.
19071 * team.c (gomp_thread_attr): Export.
19072 (initialize_team): Don't initialize it.
19073
19074 2006-06-09 Jakub Jelinek <jakub@redhat.com>
19075
19076 PR fortran/27916
19077 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
19078 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
19079
19080 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
19081
19082 * config/mingw32/time.c: New file.
19083 * configure.tgt: Use it.
19084
19085 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
19086
19087 * Makefile.am: Add install-html target. Add install-html to .PHONY
19088 * Makefile.in: Regenerate.
19089
19090 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19091
19092 PR libgomp/27612
19093 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
19094 * testsuite/libgomp.c/critical-1.c: Likewise.
19095 * testsuite/libgomp.c/loop-1.c: Likewise.
19096 * testsuite/libgomp.c/loop-2.c: Likewise.
19097 * testsuite/libgomp.c/single-1.c: Likewise.
19098 * testsuite/libgomp.c/ordered-1.c: Likewise.
19099 * testsuite/libgomp.c/ordered-2.c: Likewise.
19100
19101 2006-05-15 Jakub Jelinek <jakub@redhat.com>
19102
19103 PR middle-end/27416
19104 * libgomp.fortran/pr27416-1.f90: New test.
19105
19106 2006-05-03 Jakub Jelinek <jakub@redhat.com>
19107
19108 PR fortran/27395
19109 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
19110 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
19111
19112 2006-05-02 Jakub Jelinek <jakub@redhat.com>
19113
19114 PR c++/26943
19115 * testsuite/libgomp.c/pr26943-1.c: New test.
19116 * testsuite/libgomp.c/pr26943-2.c: New test.
19117 * testsuite/libgomp.c/pr26943-3.c: New test.
19118 * testsuite/libgomp.c/pr26943-4.c: New test.
19119 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
19120 * testsuite/libgomp.c++/pr26943.C: New test.
19121
19122 2006-05-02 Jakub Jelinek <jakub@redhat.com>
19123
19124 PR middle-end/27337
19125 * testsuite/libgomp.c++/pr27337.C: New test.
19126
19127 2006-04-26 Jakub Jelinek <jakub@redhat.com>
19128
19129 PR c/26171
19130 * testsuite/libgomp.c/pr26171.c: New test.
19131
19132 2006-04-25 Richard Henderson <rth@redhat.com>
19133
19134 PR libgomp/25865
19135 * configure.ac: Use GCC_CHECK_TLS.
19136 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
19137 * Makefile.in, aclocal.m4, configure: Regenerate.
19138
19139 2006-04-10 Matthias Klose <doko@debian.org>
19140
19141 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
19142 directory names containing underscores.
19143
19144 2006-03-21 Jakub Jelinek <jakub@redhat.com>
19145
19146 PR c++/26691
19147 * testsuite/libgomp.c++/pr26691.C: New test.
19148
19149 2006-03-13 Jakub Jelinek <jakub@redhat.com>
19150
19151 * testsuite/libgomp.fortran/retval2.f90: New test.
19152
19153 2006-03-09 Diego Novillo <dnovillo@redhat.com>
19154
19155 * testsuite/libgomp.c++: New directory.
19156
19157 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
19158
19159 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
19160 * config/posix/sem.c: Implement the above.
19161
19162 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
19163
19164 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
19165 define HAVE_BROKEN_POSIX_SEMAPHORES.
19166 * configure: Rebuilt.
19167 * config.h.in: Rebuilt.
19168
19169 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
19170
19171 PR bootstrap/26161
19172 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
19173 for the other pthread check.
19174 * configure: Regenerate.
19175 * config.h.in: Regenerate.
19176
19177 2006-02-15 Jakub Jelinek <jakub@redhat.com>
19178
19179 PR libgomp/25938
19180 PR libgomp/25984
19181 * Makefile.am (fincludedir): New variable.
19182 (nodist_include_HEADERS): Remove Fortran files.
19183 (nodist_finclude_HEADERS): New variable.
19184 * Makefile.in: Regenerated.
19185
19186 2006-02-13 Jakub Jelinek <jakub@redhat.com>
19187
19188 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
19189 Remove tests for returning assumed character length arrays.
19190
19191 2006-02-12 Roger Sayle <roger@eyesopen.com>
19192 John David Anglin <dave@hiauly1.hia.nrc.ca>
19193
19194 PR libgomp/25936
19195 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
19196
19197 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
19198
19199 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
19200
19201 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
19202
19203 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
19204 part of LD_LIBRARY_PATH manually.
19205
19206 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
19207
19208 PR libgomp/25852
19209 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
19210 libgomp_init.
19211
19212 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
19213
19214 PR libgomp/25884
19215 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
19216 * configure.ac (PERL): Don't set.
19217 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
19218 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
19219 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
19220 * omp.h.in: Wrap the new configure substitutions with @ characters.
19221 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
19222 * aclocal.m4, configure, Makefile.in: Regenerate.
19223 * mkomp_h.pl: Delete.
19224
19225 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
19226
19227 PR libgomp/25259
19228 * configure.ac: Use GCC_HEADER_STDINT.
19229 * libgomp.h: Include gstdint.h.
19230 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
19231 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
19232
19233 2006-01-24 Richard Henderson <rth@redhat.com>
19234
19235 PR libgomp/25942
19236 * configure.ac: Add AM_MAINTAINER_MODE.
19237 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
19238
19239 2006-01-24 Diego Novillo <dnovillo@redhat.com>
19240
19241 * Makefile.in: Regenerate.
19242 * testsuite/Makefile.in: Regenerate.
19243 * aclocal.m4: Regenerate.
19244
19245 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
19246
19247 * config/posix/proc.c: Conditional include of sys/loadavg.h for
19248 Solaris.
19249 * configure.ac: Add check for loadavg.h.
19250 (link_gomp): Adjust comment.
19251 * configure: Regenerate.
19252 * config.h.in: Regenerate.
19253
19254 2006-01-21 Steve Ellcey <sje@cup.hp.com>
19255
19256 PR libgomp/25877
19257 * configure.ac: Remove check for alloca.h.
19258 * configure: Regenerate.
19259 * config.h.in: Regenerate.
19260 * libgomp.h: define gomp_alloca to be __builtin_alloca.
19261 * team.c: Remove use of alloca.h.
19262 Call gomp_alloca instead of alloca.
19263
19264 2006-01-20 Steve Ellcey <sje@cup.hp.com>
19265
19266 PR libgomp/25877
19267 * team.c: Add include of alloca.h.
19268 * configure.ac: Add check for alloca.h.
19269 * configure: Regenerate.
19270 * config.h.in: Regenerate.
19271
19272 2006-01-17 Jakub Jelinek <jakub@redhat.com>
19273
19274 PR fortran/25219
19275 * testsuite/libgomp.fortran/pr25219.f90: New test.
19276
19277 2005-12-05 Uros Bizjak <uros@kss-loka.si>
19278
19279 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
19280 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
19281 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
19282 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
19283 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
19284 testsuite/libgomp.fortran/threadprivate1.f90,
19285 testsuite/libgomp.fortran/threadprivate2.f90,
19286 testsuite/libgomp.fortran/threadprivate3.f90,
19287 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
19288 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
19289 testsuite/libgomp.fortran/omp_parse3.f90: Change required
19290 effective-target to TLS runtime.
19291
19292 * testsuite/libgomp.fortran/pr25162.f: Require
19293 effective-target TLS runtime.
19294
19295 2005-12-01 Jakub Jelinek <jakub@redhat.com>
19296
19297 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
19298 * testsuite/libgomp.c/nestedfn-3.c: New test.
19299
19300 2005-11-30 Jakub Jelinek <jakub@redhat.com>
19301
19302 PR fortran/25162
19303 * testsuite/libgomp.fortran/pr25162.f: New test.
19304
19305 2005-11-28 Jakub Jelinek <jakub@redhat.com>
19306
19307 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
19308 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
19309
19310 2005-11-25 Jakub Jelinek <jakub@redhat.com>
19311
19312 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
19313 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
19314 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
19315 single.c, team.c, work.c, config/linux/alpha/futex.h,
19316 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
19317 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
19318 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
19319 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
19320 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
19321 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
19322 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
19323 FSF address.
19324
19325 2005-11-18 Jakub Jelinek <jakub@redhat.com>
19326
19327 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
19328 to nodist_noinst_HEADERS.
19329 * Makefile.in: Rebuilt.
19330
19331 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
19332 add integer count field.
19333 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
19334 omp_nest_lock_t type change.
19335 (omp_init_nest_lock): Likewise. Initialize count to 0.
19336 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
19337 Increment count.
19338 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
19339 Decrement count.
19340 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
19341 Increment count if successful and return the new nesting level.
19342 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
19343 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
19344 * testsuite/libgomp.c/lib-1.c: New test.
19345 * testsuite/libgomp.fortran/lib1.f90: New test.
19346 * testsuite/libgomp.fortran/lib2.f: New test.
19347 * testsuite/libgomp.fortran/lib3.f: New test.
19348
19349 2005-11-17 Richard Henderson <rth@redhat.com>
19350
19351 PR 24845
19352 * Makefile.am (nodist_toolexeclib_HEADERS): New.
19353 * configure.ac (link_gomp): New. Substitute it.
19354 (AC_CONFIG_FILES): Add libgomp.spec.
19355 * libgomp.spec.in: New file.
19356 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
19357 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
19358
19359 2005-11-18 Jakub Jelinek <jakub@redhat.com>
19360
19361 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
19362 reduction(-:var) behaving the same as reduction(+:var).
19363 * testsuite/libgomp.c/reduction-4.c: New test.
19364
19365 2005-11-15 Uros Bizjak <uros@kss-loka.si>
19366
19367 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
19368 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
19369 testsuite/libgomp.c/copyin-3.c,
19370 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
19371 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
19372 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
19373 testsuite/libgomp.c++/pr24455.C,
19374 testsuite/libgomp.fortran/threadprivate1.f90,
19375 testsuite/libgomp.fortran/threadprivate2.f90,
19376 testsuite/libgomp.fortran/threadprivate3.f90,
19377 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
19378 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
19379 testsuite/libgomp.fortran/omp_parse3.f90: Require
19380 effective-target TLS.
19381
19382 2005-11-14 Diego Novillo <dnovillo@redhat.com>
19383
19384 * HEADER: Remove.
19385
19386 2005-11-13 Jakub Jelinek <jakub@redhat.com>
19387
19388 PR libgomp/24797
19389 * team.c (initialize_team): Pass NULL rather than free as
19390 pthread_key_create destructor. Initialize thread specific data
19391 pointer in initial thread to a static local variable rather than
19392 malloced memory.
19393
19394 2005-11-11 Uros Bizjak <uros@kss-loka.si>
19395
19396 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
19397 its location to ld_library_path.
19398
19399 2005-11-10 Diego Novillo <dnovillo@redhat.com>
19400
19401 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
19402
19403 2005-11-10 Diego Novillo <dnovillo@redhat.com>
19404
19405 * testsuite/libgomp.c: Rename from libgomp.dg.
19406
19407 2005-11-09 Diego Novillo <dnovillo@redhat.com>
19408
19409 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
19410 threadprivate variable 'i'.
19411
19412 2005-11-09 Jakub Jelinek <jakub@redhat.com>
19413
19414 * config/linux/s390/futex.h: New file.
19415 * configure.tgt: Use it.
19416
19417 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
19418 before the parallel.
19419
19420 2005-11-08 Jakub Jelinek <jakub@redhat.com>
19421
19422 PR c++/24734
19423 * testsuite/libgomp.c++/master-1.C: New test.
19424
19425 2005-11-07 Jakub Jelinek <jakub@redhat.com>
19426
19427 * testsuite/libgomp.dg/copyin-3.c: New test.
19428
19429 2005-11-07 Jakub Jelinek <jakub@redhat.com>
19430
19431 * testsuite/libgomp.fortran/retval1.f90: New test.
19432 * testsuite/libgomp.fortran/vla7.f90: New test.
19433
19434 2005-11-06 Jakub Jelinek <jakub@redhat.com>
19435
19436 * testsuite/libgomp.fortran/vla2.f90: New test.
19437 * testsuite/libgomp.fortran/vla3.f90: New test.
19438 * testsuite/libgomp.fortran/vla4.f90: New test.
19439 * testsuite/libgomp.fortran/vla5.f90: New test.
19440 * testsuite/libgomp.fortran/vla6.f90: New test.
19441
19442 2005-11-01 Jakub Jelinek <jakub@redhat.com>
19443
19444 * config/linux/sparc/futex.h: New file.
19445 * configure.tgt: Use it.
19446 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
19447
19448 * critical.c: Include stdlib.h.
19449 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
19450 ignoring return value.
19451 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
19452 LIBGOMP_CHECK_SYNC_BUILTINS check.
19453 * configure: Rebuilt.
19454
19455 2005-10-31 Jakub Jelinek <jakub@redhat.com>
19456
19457 * testsuite/libgomp.fortran/vla1.f90: New test.
19458
19459 2005-10-31 Richard Henderson <rth@redhat.com>
19460
19461 * testsuite/libgomp.fortran/character2.f90: Fix race condition
19462 setting 's' in different threads.
19463
19464 2005-10-31 Jakub Jelinek <jakub@redhat.com>
19465
19466 * libgomp.h (attribute_hidden, ialias): Define.
19467 * config/posix/proc.c (omp_get_num_procs): Add ialias.
19468 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
19469 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
19470 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
19471 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
19472 omp_test_lock, omp_test_nest_lock): Likewise.
19473 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
19474 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
19475 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
19476 omp_test_lock, omp_test_nest_lock): Likewise.
19477 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
19478 omp_get_dynamic, omp_get_nested): Likewise.
19479 * parallel.c (omp_get_num_threads, omp_get_max_threads,
19480 omp_get_thread_num, omp_in_parallel): Likewise.
19481 * fortran.c (ialias_redirect): Define.
19482 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
19483 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
19484 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
19485 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
19486 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
19487 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
19488 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
19489 omp_get_wtime): Add ialias_redirect.
19490
19491 2005-10-30 Jakub Jelinek <jakub@redhat.com>
19492
19493 * fortran.c: Include stdlib.h.
19494
19495 2005-10-29 Jakub Jelinek <jakub@redhat.com>
19496
19497 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
19498 * Makefile.in: Regenerated.
19499
19500 2005-10-28 Jakub Jelinek <jakub@redhat.com>
19501
19502 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
19503 * libgomp_f.h.in (omp_check_defines): New function.
19504 * env.c: Include libgomp_f.h.
19505 (initialize_env): Call omp_check_defines.
19506
19507 * testsuite/libgomp.dg/copyin-2.c: New test.
19508 * testsuite/libgomp.c++/copyin-2.C: New test.
19509 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
19510
19511 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
19512 * testsuite/libgomp.fortran/sharing2.f90: New test.
19513
19514 * testsuite/libgomp.dg/copyin-1.c: New test.
19515 * testsuite/libgomp.c++/copyin-1.C: New test.
19516
19517 2005-10-26 Jakub Jelinek <jakub@redhat.com>
19518
19519 * testsuite/libgomp.fortran/crayptr1.f90: New test.
19520
19521 * testsuite/libgomp.fortran/workshare1.f90: New test.
19522
19523 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
19524 only test.
19525 * libgomp.fortran/sharing1.f90: New test.
19526
19527 2005-10-24 Jakub Jelinek <jakub@redhat.com>
19528
19529 PR c++/24502
19530 * testsuite/libgomp.c++/loop-7.C: New test.
19531
19532 * testsuite/libgomp.dg/nestedfn-2.c: New test.
19533
19534 * testsuite/libgomp.dg/nestedfn-1.c: New test.
19535 * testsuite/libgomp.fortran/reduction6.f90: New test.
19536 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
19537
19538 2005-10-23 Richard Henderson <rth@redhat.com>
19539
19540 * testsuite/libgomp.c++/ctor-1.C: New.
19541 * testsuite/libgomp.c++/ctor-2.C: New.
19542 * testsuite/libgomp.c++/ctor-3.C: New.
19543 * testsuite/libgomp.c++/ctor-4.C: New.
19544 * testsuite/libgomp.c++/ctor-5.C: New.
19545 * testsuite/libgomp.c++/ctor-6.C: New.
19546 * testsuite/libgomp.c++/ctor-7.C: New.
19547 * testsuite/libgomp.c++/ctor-8.C: New.
19548 * testsuite/libgomp.c++/ctor-9.C: New.
19549
19550 2005-10-21 Diego Novillo <dnovillo@redhat.com>
19551
19552 PR 24455
19553 * testsuite/libgomp.c++/pr24455-1.C: New test.
19554 * testsuite/libgomp.c++/pr24455.C: New test.
19555 * testsuite/libgomp.dg/pr24455-1.c: New test.
19556 * testsuite/libgomp.dg/pr24455.c: New test.
19557
19558 2005-10-20 Richard Henderson <rth@redhat.com>
19559
19560 * testsuite/libgomp.c++/loop-6.C: New.
19561 * testsuite/libgomp.dg/loop-3.c: New.
19562
19563 2005-10-20 Jakub Jelinek <jakub@redhat.com>
19564
19565 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
19566 explicitly private.
19567 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
19568 explicitly shared.
19569
19570 2005-10-19 Diego Novillo <dnovillo@redhat.com>
19571
19572 * testsuite/libgomp.fortran/jacobi.f: New test.
19573
19574 2005-10-19 Richard Henderson <rth@redhat.com>
19575
19576 * configure.tgt (i?86-linux): Default to with_arch instead of
19577 CFLAGS. Add -mtune to match target_cpu.
19578 (x86_64-linux): Tune to i686.
19579
19580 * fortran.c (omp_test_nest_lock_): Fix typo.
19581
19582 2005-10-19 Jakub Jelinek <jakub@redhat.com>
19583
19584 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
19585 gomp_ordered_sync): Do nothing if team->nthreads == 1.
19586 * testsuite/libgomp.dg/ordered-3.c: New test.
19587
19588 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
19589 Remove volatile keyword.
19590
19591 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
19592 in COMMON block to avoid warnings on 64-bit targets.
19593
19594 2005-10-18 Diego Novillo <dnovillo@redhat.com>
19595
19596 * testsuite/libgomp.dg/shared-3.c: New test.
19597
19598 2005-10-18 Jakub Jelinek <jakub@redhat.com>
19599
19600 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
19601 * testsuite/libgomp.fortran/reduction5.f90: New test.
19602
19603 2005-10-18 Jakub Jelinek <jakub@redhat.com>
19604
19605 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
19606 dg-options.
19607 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
19608 flush loop now that __sync_synchronize has proper memory barrier.
19609 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
19610 Add -ffixed-form to dg-options.
19611
19612 2005-10-17 Diego Novillo <dnovillo@redhat.com>
19613
19614 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
19615 from subdirectories.
19616 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
19617 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
19618 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
19619 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
19620 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
19621 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
19622 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
19623 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
19624 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
19625 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
19626 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
19627 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
19628 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
19629 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
19630 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
19631 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
19632 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
19633 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
19634 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
19635 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
19636 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
19637 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
19638 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
19639 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
19640 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
19641
19642 2005-10-17 Jakub Jelinek <jakub@redhat.com>
19643
19644 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
19645 lang_library_path exists. Use find instead of glob to gather tests.
19646 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
19647
19648 2005-10-17 Diego Novillo <dnovillo@redhat.com>
19649
19650 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
19651 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
19652 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
19653 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
19654 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
19655 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
19656 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
19657 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
19658 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
19659 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
19660 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
19661 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
19662 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
19663
19664 2005-10-15 Jakub Jelinek <jakub@redhat.com>
19665
19666 * testsuite/libgomp.dg/vla-1.c: New test.
19667
19668 * testsuite/libgomp.fortran/reference2.f90: New test.
19669
19670 * testsuite/libgomp.fortran/character2.f90: Remove explicit
19671 declaration of omp_get_thread_num.
19672 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
19673 use omp_lib.
19674
19675 * testsuite/libgomp.fortran/reduction1.f90: New test.
19676 * testsuite/libgomp.fortran/reduction2.f90: New test.
19677 * testsuite/libgomp.fortran/reduction3.f90: New test.
19678 * testsuite/libgomp.fortran/reduction4.f90: New test.
19679
19680 2005-10-13 Richard Henderson <rth@redhat.com>
19681
19682 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
19683 * Makefile.in: Regenerate.
19684 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
19685 * libgomp.h: Include bar.h.
19686 (struct gomp_barrier): Remove.
19687 (struct gomp_team): Add barrier. Replace master_barrier with
19688 master_release. Replace threads with ordered_release.
19689 (struct gomp_thread): Replace barrier with release.
19690 * ordered.c (gomp_ordered_first): Update for ordered_release change.
19691 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
19692 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
19693 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
19694 (GOMP_single_copy_end): Likewise.
19695 * team.c (gomp_threads_dock): New.
19696 (gomp_barrier_init, gomp_barrier_destroy): Remove.
19697 (gomp_thread_start): Use gomp_barrier_wait.
19698 (new_team, free_team): Update for gomp_team changes.
19699 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
19700 (gomp_team_end): Use gomp_barrier_wait.
19701 (initialize_team): Update for gomp_thread changes.
19702 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
19703 (gomp_work_share_end_nowait): Use atomic ops when available.
19704 * config/linux/bar.c, config/linux/bar.h: New files.
19705 * config/posix/bar.c, config/posix/bar.h: New files.
19706
19707 2005-10-13 Jakub Jelinek <jakub@redhat.com>
19708
19709 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
19710 * testsuite/libgomp.dg/single-2.c: New test.
19711
19712 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
19713 lang_link_flags): Unset, so that they aren't inherited from previously
19714 sourced *.exp.
19715
19716 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
19717
19718 2005-10-12 Richard Henderson <rth@redhat.com>
19719
19720 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
19721 (libgomp_init): Use lang_test_file, lang_library_path, and
19722 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
19723
19724 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
19725 (lang_test_file, lang_link_flags): New.
19726 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
19727
19728 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
19729 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
19730 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
19731 testsuite/libgomp.c++/parallel-1.C,
19732 testsuite/libgomp.c++/reduction-1.C,
19733 testsuite/libgomp.c++/reduction-2.C,
19734 testsuite/libgomp.c++/reduction-3.C,
19735 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
19736 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
19737 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
19738 New files, largely cribbed from the C testsuite.
19739
19740 2005-10-12 Jakub Jelinek <jakub@redhat.com>
19741
19742 * testsuite/libgomp.fortran/character1.f90: New test.
19743 * testsuite/libgomp.fortran/character2.f90: New test.
19744
19745 * testsuite/libgomp.dg/nested-1.c: New test.
19746 * testsuite/libgomp.dg/nested-2.c: New test.
19747 * testsuite/libgomp.fortran/do1.f90: New test.
19748 * testsuite/libgomp.fortran/do2.f90: New test.
19749
19750 * testsuite/libgomp.fortran/reference1.f90: New test.
19751
19752 2005-10-11 Jakub Jelinek <jakub@redhat.com>
19753
19754 * testsuite/libgomp.dg/reduction-1.c: New test.
19755 * testsuite/libgomp.dg/reduction-2.c: New test.
19756 * testsuite/libgomp.dg/reduction-3.c: New test.
19757
19758 2005-10-10 Jakub Jelinek <jakub@redhat.com>
19759
19760 * testsuite/libgomp.dg/atomic-1.c: New test.
19761 * testsuite/libgomp.dg/atomic-2.c: New test.
19762
19763 2005-10-09 Richard Henderson <rth@redhat.com>
19764
19765 * critical.c (atomic_lock): New.
19766 (initialize_critical): Initialize it.
19767 (GOMP_atomic_start, GOMP_atomic_end): New.
19768 * libgomp.map: Export them.
19769 * libgomp_g.h: Declare them.
19770
19771 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
19772
19773 2005-10-02 Richard Henderson <rth@redhat.com>
19774
19775 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
19776 to XCFLAGS instead of CFLAGS.
19777
19778 2005-09-30 Richard Henderson <rth@redhat.com>
19779
19780 * configure.ac: Determine whether -pthread or -lpthread is needed.
19781 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
19782 * Makefile.in, configure: Rebuild.
19783
19784 2005-09-28 Richard Henderson <rth@redhat.com>
19785
19786 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
19787 * testsuite/libgomp.dg/omp-single-3.c: New test.
19788
19789 2005-09-28 Diego Novillo <dnovillo@redhat.com>
19790
19791 * testsuite/libgomp.dg/omp-single-2.c: New test.
19792 * testsuite/libgomp.dg/shared-2.c: Fix return code.
19793
19794 2005-09-27 Richard Henderson <rth@redhat.com>
19795
19796 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
19797 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
19798
19799 2005-09-27 Jakub Jelinek <jakub@redhat.com>
19800
19801 * testsuite/libgomp.dg/omp-loop03.c: New test.
19802
19803 2005-09-27 Diego Novillo <dnovillo@redhat.com>
19804
19805 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
19806
19807 2005-09-27 Diego Novillo <dnovillo@redhat.com>
19808
19809 * testsuite/libgomp.dg/omp-single-1.c: New test.
19810 * testsuite/libgomp.dg/shared-1.c: Return 0.
19811 Add prototype for abort.
19812 * testsuite/libgomp.dg/shared-2.c: Likewise.
19813
19814 2005-09-26 Jakub Jelinek <jakub@redhat.com>
19815
19816 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
19817 constructs.
19818
19819 2005-09-26 Diego Novillo <dnovillo@redhat.com>
19820
19821 * testsuite/libgomp.dg/shared-1.c: New test.
19822 * testsuite/libgomp.dg/shared-2.c: New test.
19823
19824 2005-09-24 Richard Henderson <rth@redhat.com>
19825
19826 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
19827
19828 2005-09-24 Richard Henderson <rth@redhat.com>
19829
19830 * iter.c (gomp_iter_static_next): Round up when computing number
19831 of iterations. Don't bother distributing a remainder equally.
19832
19833 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
19834 Don't call srand. Zero b before testing.
19835 (main): New.
19836
19837 2005-09-24 Jakub Jelinek <jakub@redhat.com>
19838
19839 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
19840 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
19841
19842 2005-09-23 Jakub Jelinek <jakub@redhat.com>
19843
19844 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
19845 without !$omp end do, followed immediately by subroutine end.
19846
19847 2005-09-23 Diego Novillo <dnovillo@redhat.com>
19848
19849 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
19850
19851 2005-09-22 Richard Henderson <rth@redhat.com>
19852
19853 * critical.c (GOMP_critical_name_start): Change argument to void**.
19854 Reuse the pointer space if the mutex fits.
19855 (GOMP_critical_name_end): Likewise.
19856 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
19857 * libgomp_g.h (GOMP_critical_name_start): Update decl.
19858 (GOMP_critical_name_end): Likewise.
19859 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
19860 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
19861
19862 2005-09-20 Richard Henderson <rth@redhat.com>
19863
19864 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
19865 (create_lock_lock): New.
19866 (initialize_critical): Initialize it.
19867 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
19868 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
19869
19870 2005-09-20 Diego Novillo <dnovillo@redhat.com>
19871
19872 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
19873
19874 2005-09-20 Diego Novillo <dnovillo@redhat.com>
19875
19876 * testsuite/libgomp.dg/omp-loop01.c: New test.
19877 * testsuite/libgomp.dg/omp-loop02.c: New test.
19878
19879 2005-09-20 Jakub Jelinek <jakub@redhat.com>
19880
19881 * configure.ac (AC_PROG_FC): Add.
19882 (USE_FORTRAN): New automake conditional.
19883 * configure: Rebuilt.
19884 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
19885 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
19886 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
19887 Add rules to build them.
19888 * Makefile.in: Rebuilt.
19889 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
19890 OMP_NEST_LOCK_KIND.
19891 * libgomp.map: Add Fortran wrappers.
19892 * libgomp_f.h.in: New file.
19893 * omp_lib.h.in: New file.
19894 * omp_lib.f90.in: New file.
19895 * fortran.c: New file.
19896 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
19897 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
19898 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
19899 libgfortran has been built.
19900 * testsuite/libgomp.fortran/fortran.exp: New file.
19901 * testsuite/libgomp.fortran/omp_cond1.f: New test.
19902 * testsuite/libgomp.fortran/omp_cond2.f: New test.
19903 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
19904 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
19905 * testsuite/libgomp.fortran/omp_hello.f: New test.
19906 * testsuite/libgomp.fortran/omp_orphan.f: New test.
19907 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
19908 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
19909 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
19910 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
19911 * testsuite/libgomp.fortran/omp_reduction.f: New test.
19912 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
19913 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
19914
19915 2005-08-30 Richard Henderson <rth@redhat.com>
19916
19917 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
19918 function for when aliases are not usable.
19919 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
19920 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
19921 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
19922 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
19923 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
19924 GOMP_loop_ordered_guided_next): Likewise.
19925 * ordered.c (GOMP_ordered_start): Likewise.
19926
19927 2005-08-01 Diego Novillo <dnovillo@redhat.com>
19928
19929 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
19930 * testsuite/libgomp.dg/omp_hello.c: Fix return code
19931 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
19932 * testsuite/libgomp.dg/omp_orphan.c: Likewise
19933 * testsuite/libgomp.dg/omp_reduction.c: Likewise
19934 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
19935 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
19936 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
19937 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
19938
19939 2005-07-07 Eric Christopher <echristo@redhat.com>
19940 Diego Novillo <dnovillo@redhat.com>
19941
19942 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
19943 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
19944 up code.
19945 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
19946 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
19947 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
19948 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
19949 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
19950 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
19951 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
19952
19953 2005-06-13 Diego Novillo <dnovillo@redhat.com>
19954
19955 * TOPLEVEL.patch: Remove.
19956
19957 2005-05-16 Richard Henderson <rth@redhat.com>
19958
19959 * configure.ac: Test for clock_gettime.
19960 * config.h.in, configure: Rebuild.
19961 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
19962 (omp_get_wtime): Use clock_gettime if available.
19963 (omp_get_wtick): Use clock_getres if available.
19964
19965 2005-05-11 Richard Henderson <rth@redhat.com>
19966
19967 * config/linux/ia64/futex.h: New file.
19968 * configure.tgt: Use it.
19969
19970 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
19971
19972 2005-05-07 Richard Henderson <rth@redhat.com>
19973
19974 * config/linux/powerpc/futex.h: New file.
19975 * configure.tgt: Use it.
19976
19977 * config/linux/i486/futex.h: Merge ...
19978 * config/linux/x86_64/futex.h: ... into ...
19979 * config/linux/x86/futex.h: ... here.
19980 * configure.tgt: Update to match.
19981
19982 2005-05-06 Richard Henderson <rth@redhat.com>
19983
19984 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
19985 * config/linux/i486/futex.h: Likewise.
19986 * config/linux/x86_64/futex.h: Likewise.
19987
19988 * config/linux/lock.c: New file.
19989 * config/linux/omp-lock.h: New file.
19990
19991 * critical.c, env.h: Don't include omp.h
19992 * config/posix/lock.c: Include libgomp.h instead of omp.h.
19993 * config/posix/time.c: Likewise.
19994 * config/posix/omp-lock.h: New file.
19995 * libgomp.h: Include omp-lock.h and omp.h.
19996 * Makefile.am (nodist_include_HEADERS): New.
19997 (omp.h): New rule.
19998 * configure.ac (PERL): New.
19999 * mkomp_h.pl: New file.
20000 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
20001 with templates.
20002 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
20003
20004 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
20005 build directory. Re-add -march=i486 hack.
20006
20007 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
20008 (libgomp_link_flags): Remove.
20009 (libgomp_initialized): Remove.
20010 (libgomp_init): Don't protect from reinitialization. Copy code
20011 from libstdc++ for getting the multilib set correctly.
20012
20013 2005-05-05 Richard Henderson <rth@redhat.com>
20014
20015 * config/linux/alpha/futex.h: New file.
20016 * configure.tgt (alpha*-*-linux*): Use it.
20017
20018 * config/posix/mutex.c: New file.
20019 * config/posix/sem.c: Use libgomp.h.
20020
20021 * configure.tgt (x86_64-linux): Also test CC for -m32.
20022 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
20023
20024 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
20025 after $gccpath.
20026
20027 * Makefile.am (SUBDIRS): New.
20028 (libgomp_la_LDFLAGS): Add -lpthread.
20029 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
20030 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
20031
20032 * libgomp_g.h: New file.
20033 * libgomp.h: Split out all public declarations to libgomp_g.h.
20034 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
20035 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
20036 * config/linux/sem.h: Likewise.
20037 * config/posix/sem.h: Likewise.
20038
20039 * Makefile.am (AM_LDFLAGS): New.
20040 (libgomp_version_script): Split out from ...
20041 (libgomp_la_LDFLAGS): ... here.
20042 (libgomp_version_info): New.
20043 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
20044 (LIBGOMP_ENABLE): New.
20045 (LIBGOMP_CHECK_LINKER_FEATURES): New.
20046 (LIBGOMP_ENABLE_SYMVERS): New.
20047 * configure.ac (AC_INIT): Version 1.0.
20048 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
20049 (enable-linux-futex): Likewise. Rename from enable-futex.
20050 (libtool_VERSION): New.
20051 (LIBGOMP_ENABLE_SYMVERS): Use it.
20052 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
20053 * Makefile.in, aclocal.m4, configure: Rebuild.
20054
20055 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
20056 (gomp_mutex_unlock_slow): Fix typo.
20057 * config/linux/sem.c: Similarly.
20058 (gomp_sem_post_slow): Fix typo.
20059 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
20060 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
20061 [__PIC__] (sys_futex0): Don't use tmp output in asm.
20062
20063 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
20064 (libgomp_la_LDFLAGS): Add top_srcdir to path.
20065 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
20066 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
20067 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
20068 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
20069 LDFLAGS. Pull enable_futex check to top-level.
20070 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
20071 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
20072
20073 First attempt at real configury.
20074 * Makefile, config.h: Remove file.
20075 * Makefile.am, Makefile.in: New file.
20076 * acinclude.m4 aclocal.m4: New file.
20077 * configure.ac, configure.tgt, configure: New file.
20078
20079 * config/posix/lock.c: Rename from sys-lock.c.
20080 * config/posix/mutex.h: Rename from sys-mutex.h.
20081 * config/posix/sem.c: Rename from sys-sem.c.
20082 * config/posix/sem.h: Rename from sys-sem.h.
20083 * config/posix/proc.c: Rename from sys-proc.c.
20084 * config/posix/time.c: Rename from sys-proc.c.
20085
20086 * config/linux/mutex.c: New file.
20087 * config/linux/mutex.h: New file.
20088 * config/linux/sem.c: New file.
20089 * config/linux/sem.h: New file.
20090 * config/linux/i486/futex.h: New file.
20091 * config/linux/x86_64/futex.h: New file.
20092
20093 2005-05-04 Richard Henderson <rth@redhat.com>
20094
20095 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
20096 * libgomp.h: Declare them.
20097 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
20098 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
20099
20100 2005-05-04 Richard Henderson <rth@redhat.com>
20101
20102 * libgomp-1 code drop
20103
20104 2005-05-04 Richard Henderson <rth@redhat.com>
20105
20106 * iter.c (gomp_iter_static_next): Return tri-state on 0.
20107 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
20108 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
20109 (gomp_iter_static_next): Update.
20110 (gomp_ordered_static_next): Update.
20111 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
20112 (gomp_loop_ordered_static_start): Likewise. Exit early for a
20113 totally empty range.
20114 (gomp_loop_ordered_static_next): Refine test for calling
20115 gomp_ordered_static_next.
20116 * testsuite/ordered-1.c: Add case for more threads than iterations.
20117
20118 * iter.c (gomp_iter_runtime_next_locked): Remove.
20119 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
20120 gomp_loop_guided_start, gomp_loop_ordered_static_start,
20121 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
20122 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
20123 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
20124 gomp_loop_ordered_guided_next): Downcase name, make static, add
20125 an external alias with the old name.
20126 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
20127 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
20128 switch and call one of the above static functions.
20129 * libgomp.h: Update.
20130
20131 * work.c (gomp_work_share_start): Lock the mutex for !first too.
20132 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
20133 GOMP_loop_guided_start, GOMP_loop_runtime_start,
20134 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20135 GOMP_loop_ordered_guided_start): Update to match.
20136 * sections.c (GOMP_sections_start): Likewise.
20137 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
20138
20139 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
20140 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
20141 Use bounds check instead of modulus.
20142 (gomp_ordered_sync): Split out of GOMP_ordered_start.
20143 (gomp_ordered_last): Don't sync with ordered_owner here.
20144 (gomp_ordered_next): Likewise.
20145 (gomp_ordered_static_loop_next): Likewise.
20146 * loop.c, libgomp.h: Update to match.
20147
20148 * libgomp.h (GOMP_barrier): Declare.
20149
20150 * testsuite/barrier-1.c: New file.
20151 * testsuite/critical-1.c: New file.
20152 * testsuite/ordered-2.c: New file.
20153 * testsuite/ordered-1.c: New file.
20154 * testsuite/sections-1.c: New file.
20155 * testsuite/single-1.c: New file.
20156 * testsuite/Makefile (TESTS): Add them.
20157
20158 2005-05-04 Richard Henderson <rth@redhat.com>
20159
20160 * libgomp.h (struct gomp_work_share): Add ordered_owner.
20161 * loop.c (GOMP_loop_static_start): If not the startup thread,
20162 acquire the mutex to wait for initialization complete.
20163 (GOMP_loop_ordered_static_start): Likewise.
20164 (GOMP_loop_ordered_runtime_start): Likewise.
20165 (GOMP_loop_ordered_static_first): Remove.
20166 (GOMP_loop_ordered_dynamic_first): Remove.
20167 (GOMP_loop_ordered_guided_first): Remove.
20168 (GOMP_loop_ordered_runtime_first): Remove.
20169 * ordered.c (gomp_ordered_loop_first): Post to own release when
20170 we're the first thread.
20171 (gomp_ordered_loop_last): Wait on release if not owner.
20172 (gomp_ordered_loop_next): Likewise.
20173 (gomp_ordered_static_loop_init): New.
20174 (gomp_ordered_static_loop_next): Use ordered_owner.
20175 (GOMP_ordered_start): Likewise.
20176 * work.c (gomp_new_work_share): Initialize ordered_owner.
20177
20178 2005-05-03 Richard Henderson <rth@redhat.com>
20179
20180 * Makefile (OPT): New.
20181 (CFLAGS): Use it.
20182
20183 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
20184 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
20185 * libgomp.h, libgomp.map, NOTES: Update to match.
20186
20187 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
20188 Add initialized and thr members.
20189 (gomp_thread_start): Pause when initially spawned to wait for
20190 the whole team to be created.
20191 (gomp_team_start): Release team members at the end.
20192
20193 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
20194 (f_foo_1): Use GOMP_loop_end.
20195 (f_foo_2): Use GOMP_loop_end_nowait.
20196
20197 * testsuite/loop-2.c: New file.
20198 * testsuite/Makefile (TESTS): Add it.
20199
20200 2005-05-03 Richard Henderson <rth@redhat.com>
20201
20202 * iter.c (gomp_iter_static_next): Fix overflow check typo.
20203 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
20204 * team.c (new_team): Initialize oldest_live_gen to 1 if no
20205 initial work_share.
20206
20207 * testsuite/Makefile: New file.
20208 * testsuite/loop-1.c: New file.
20209
20210 2005-05-03 Richard Henderson <rth@redhat.com>
20211
20212 Initial implementation and checkin.
20213 \f
20214 Copyright (C) 2005-2023 Free Software Foundation, Inc.
20215
20216 Copying and distribution of this file, with or without modification,
20217 are permitted in any medium without royalty provided the copyright
20218 notice and this notice are preserved.