1 2023-01-19 Jakub Jelinek <jakub@redhat.com>
4 * testsuite/libgomp.c/pr108459.c: New test.
6 2023-01-17 Martin Liska <mliska@suse.cz>
8 * Makefile.in: Regenerate.
9 * configure: Regenerate.
11 2023-01-07 LIU Hao <lh_mouse@126.com>
14 * config/mingw32/proc.c: Define `WIN32_LEAN_AND_MEAN` before
17 2023-01-05 Jakub Jelinek <jakub@redhat.com>
20 * testsuite/libgomp.c++/pr108286.C: New test.
22 2023-01-02 Jakub Jelinek <jakub@redhat.com>
24 * libgomp.texi: Bump @copying's copyright year.
26 2022-12-21 Chung-Lin Tang <cltang@codesourcery.com>
29 * config/nvptx/bar.c (generation_to_barrier): Remove.
30 (futex_wait,futex_wake,do_spin,do_wait): Remove.
31 (GOMP_WAIT_H): Remove.
32 (#include "../linux/bar.c"): Remove.
33 (gomp_barrier_wait_end): New function.
34 (gomp_barrier_wait): Likewise.
35 (gomp_barrier_wait_last): Likewise.
36 (gomp_team_barrier_wait_end): Likewise.
37 (gomp_team_barrier_wait): Likewise.
38 (gomp_team_barrier_wait_final): Likewise.
39 (gomp_team_barrier_wait_cancel_end): Likewise.
40 (gomp_team_barrier_wait_cancel): Likewise.
41 (gomp_team_barrier_cancel): Likewise.
42 * config/nvptx/bar.h (gomp_barrier_t): Remove waiters, lock fields.
43 (gomp_barrier_init): Remove init of waiters, lock fields.
44 (gomp_team_barrier_wake): Remove prototype, add new static inline
47 2022-12-21 Jakub Jelinek <jakub@redhat.com>
50 * testsuite/libgomp.c++/pr108180.C: New test.
52 2022-12-16 Tobias Burnus <tobias@codesourcery.com>
55 * testsuite/libgomp.fortran/allocate-4.f90: Remove
56 accidentally added file.
58 2022-12-15 Tobias Burnus <tobias@codesourcery.com>
61 * testsuite/libgomp.fortran/allocate-4.f90: New file.
63 2022-12-14 Julian Brown <julian@codesourcery.com>
65 * testsuite/libgomp.fortran/combined-directive-splitting-1.f90: New
68 2022-12-10 Tobias Burnus <tobias@codesourcery.com>
70 * libgomp.h (struct target_mem_desc): Predeclare; move
71 below after 'reverse_splay_tree_node' and add rev_array
73 (struct reverse_splay_tree_key_s, reverse_splay_compare): New.
74 (reverse_splay_tree_node, reverse_splay_tree,
75 reverse_splay_tree_key): New typedef.
76 (struct gomp_device_descr): Add mem_map_rev member.
77 * oacc-host.c (host_dispatch): NULL init .mem_map_rev.
78 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Claim
79 support for GOMP_REQUIRES_REVERSE_OFFLOAD.
80 * splay-tree.h (splay_tree_callback_stop): New typedef; like
81 splay_tree_callback but returning int not void.
82 (splay_tree_foreach_lazy): Define; like splay_tree_foreach but
83 taking splay_tree_callback_stop as argument.
84 * splay-tree.c (splay_tree_foreach_internal_lazy,
85 splay_tree_foreach_lazy): New; but early exit if callback returns
87 * target.c: Instatiate splay_tree_c with splay_tree_prefix 'reverse'.
88 (gomp_map_lookup_rev): New.
89 (gomp_load_image_to_device): Handle reverse-offload function
91 (gomp_unload_image_from_device): Free devicep->mem_map_rev.
92 (struct gomp_splay_tree_rev_lookup_data, gomp_splay_tree_rev_lookup,
93 gomp_map_rev_lookup, struct cpy_data, gomp_map_cdata_lookup_int,
94 gomp_map_cdata_lookup): New auxiliary structs and functions for
96 (gomp_target_rev): Implement reverse offloading and its mapping.
97 (gomp_target_init): Init current_device.mem_map_rev.root.
98 * testsuite/libgomp.fortran/reverse-offload-2.f90: New test.
99 * testsuite/libgomp.fortran/reverse-offload-3.f90: New test.
100 * testsuite/libgomp.fortran/reverse-offload-4.f90: New test.
101 * testsuite/libgomp.fortran/reverse-offload-5.f90: New test.
102 * testsuite/libgomp.fortran/reverse-offload-5a.f90: New test without
103 mapping of on-device allocated variables.
105 2022-12-09 Tobias Burnus <tobias@codesourcery.com>
107 * libgomp.texi (5.1 Impl. Status): Split allocate clause/directive
108 item about 'align'; mark clause as 'Y' and directive as 'N'.
109 * testsuite/libgomp.fortran/allocate-2.f90: New test.
110 * testsuite/libgomp.fortran/allocate-3.f90: New test.
112 2022-12-06 Marcel Vollweiler <marcel@codesourcery.com>
114 * config/gcn/icv-device.c (omp_get_teams_thread_limit): Added to
115 allow processing of device-specific values.
116 (omp_set_teams_thread_limit): Likewise.
118 * config/nvptx/icv-device.c (omp_get_teams_thread_limit): Likewise.
119 (omp_set_teams_thread_limit): Likewise.
121 * icv-device.c (omp_get_teams_thread_limit): Likewise.
123 (omp_set_teams_thread_limit): Likewise.
124 * icv.c (omp_set_teams_thread_limit): Removed.
125 (omp_get_teams_thread_limit): Likewise.
127 * libgomp.texi: Updated documentation for nvptx and gcn corresponding
128 to the limitation of the number of teams.
129 * plugin/plugin-gcn.c (limit_teams): New helper function that limits
130 the number of teams by twice the number of compute units.
131 (parse_target_attributes): Limit the number of teams on gcn offload
133 * target.c (get_gomp_offload_icvs): Added teams_thread_limit_var
135 (gomp_load_image_to_device): Added a size check for the ICVs struct
137 (gomp_copy_back_icvs): New function that is used in GOMP_target_ext to
138 copy back the ICV values from device to host.
139 (GOMP_target_ext): Update the number of teams and threads in the kernel
140 args also considering device-specific values.
141 * testsuite/libgomp.c-c++-common/icv-4.c: Fixed an error in the reading
142 of OMP_TEAMS_THREAD_LIMIT from the environment.
143 * testsuite/libgomp.c-c++-common/icv-5.c: Extended.
144 * testsuite/libgomp.c-c++-common/icv-6.c: Extended.
145 * testsuite/libgomp.c-c++-common/icv-7.c: Extended.
146 * testsuite/libgomp.c-c++-common/icv-9.c: New test.
147 * testsuite/libgomp.fortran/icv-5.f90: New test.
148 * testsuite/libgomp.fortran/icv-6.f90: New test.
150 2022-12-06 Tobias Burnus <tobias@codesourcery.com>
152 * libgomp.texi (OpenMP 5.2): Add missing 'the'.
153 (TR11): Add missing '@tab N @tab'.
155 2022-11-30 Tobias Burnus <tobias@codesourcery.com>
157 * libgomp.texi (OpenMP Context Selectors): Add 'gfx803' to gcn's isa.
159 2022-11-30 Paul-Antoine Arras <pa@codesourcery.com>
161 * testsuite/libgomp.c/declare-variant-4-fiji.c: New test.
162 * testsuite/libgomp.c/declare-variant-4-gfx803.c: New test.
163 * testsuite/libgomp.c/declare-variant-4-gfx900.c: New test.
164 * testsuite/libgomp.c/declare-variant-4-gfx906.c: New test.
165 * testsuite/libgomp.c/declare-variant-4-gfx908.c: New test.
166 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: New test.
167 * testsuite/libgomp.c/declare-variant-4.h: New header file.
169 2022-11-28 Tobias Burnus <tobias@codesourcery.com>
171 * libgomp.texi (OpenMP 5.2): Mark end-directive as Y.
173 2022-11-25 Sandra Loosemore <sandra@codesourcery.com>
175 * testsuite/lib/libgomp.exp: Load scanoffloadipa.exp library.
176 * testsuite/libgomp.c/target-simd-clone-1.c: New.
177 * testsuite/libgomp.c/target-simd-clone-2.c: New.
178 * testsuite/libgomp.c/target-simd-clone-3.c: New.
180 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
182 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Use unsigned int
183 for 'i' to match 'fn_entries'; regard absent GOMP_REV_OFFLOAD_VAR
184 as valid and the code having no reverse-offload code.
185 * testsuite/libgomp.c-c++-common/reverse-offload-2.c: New test.
187 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
189 * libgomp.texi (OpenMP Implementation Status): Add three 5.1 items
190 and status for Technical Report (TR) 11.
192 2022-11-21 Tobias Burnus <tobias@codesourcery.com>
194 * config/gcn/libgomp-gcn.h (struct output):
195 Remove 'msg_u64' from the union, change
196 value_u64[2] to value_u64[6].
197 * config/gcn/target.c (GOMP_target_ext): Update accordingly.
198 * plugin/plugin-gcn.c (process_reverse_offload, console_output):
201 2022-11-19 Tobias Burnus <tobias@codesourcery.com>
203 * config/gcn/libgomp-gcn.h: New file; contains
204 struct output, declared previously in plugin-gcn.c.
205 * config/gcn/target.c: Include it.
206 (GOMP_ADDITIONAL_ICVS): Declare as extern var.
207 (GOMP_target_ext): Handle reverse offload.
208 * plugin/plugin-gcn.c: Include libgomp-gcn.h.
209 (struct kernargs): Replace struct def by the one
210 from libgomp-gcn.h for output_data.
211 (process_reverse_offload): New.
212 (console_output): Call it.
214 2022-11-16 Tobias Burnus <tobias@codesourcery.com>
215 Andrew Stubbs <ams@codesourcery.com>
217 * config/gcn/team.c (gomp_gcn_enter_kernel): Use
218 __builtin_gcn_kernarg_ptr instead of asm ("s8").
220 2022-11-14 Martin Liska <mliska@suse.cz>
223 2022-11-14 Martin Liska <mliska@suse.cz>
225 * doc/amd-radeon-gcn.rst: New file.
226 * doc/conf.py: New file.
227 * doc/copyright.rst: New file.
228 * doc/cuda-streams-usage.rst: New file.
229 * doc/enabling-openacc.rst: New file.
230 * doc/enabling-openmp.rst: New file.
231 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
232 * doc/first-invocation-openacc-library-api.rst: New file.
233 * doc/funding.rst: New file.
234 * doc/general-public-license-3.rst: New file.
235 * doc/gnu-free-documentation-license.rst: New file.
236 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
237 * doc/index.rst: New file.
238 * doc/indices-and-tables.rst: New file.
239 * doc/introduction.rst: New file.
240 * doc/memory-allocation-with-libmemkind.rst: New file.
241 * doc/nvptx.rst: New file.
242 * doc/offload-target-specifics.rst: New file.
243 * doc/openacc-environment-variables.rst: New file.
244 * doc/openacc-environment-variables/accdevicenum.rst: New file.
245 * doc/openacc-environment-variables/accdevicetype.rst: New file.
246 * doc/openacc-environment-variables/accproflib.rst: New file.
247 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
248 * doc/openacc-introduction.rst: New file.
249 * doc/openacc-library-and-environment-variables.rst: New file.
250 * doc/openacc-library-interoperability.rst: New file.
251 * doc/openacc-profiling-interface.rst: New file.
252 * doc/openacc-runtime-library-routines.rst: New file.
253 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
254 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
255 * doc/openacc-runtime-library-routines/accattach.rst: New file.
256 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
257 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
258 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
259 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
260 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
261 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
262 * doc/openacc-runtime-library-routines/accfree.rst: New file.
263 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
264 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
265 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
266 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
267 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
268 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
269 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
270 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
271 * doc/openacc-runtime-library-routines/accinit.rst: New file.
272 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
273 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
274 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
275 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
276 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
277 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
278 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
279 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
280 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
281 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
282 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
283 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
284 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
285 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
286 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
287 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
288 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
289 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
290 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
291 * doc/openacc-runtime-library-routines/accwait.rst: New file.
292 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
293 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
294 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
295 * doc/openmp-context-selectors.rst: New file.
296 * doc/openmp-environment-variables.rst: New file.
297 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
298 * doc/openmp-environment-variables/gompdebug.rst: New file.
299 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
300 * doc/openmp-environment-variables/gompspincount.rst: New file.
301 * doc/openmp-environment-variables/gompstacksize.rst: New file.
302 * doc/openmp-environment-variables/ompcancellation.rst: New file.
303 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
304 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
305 * doc/openmp-environment-variables/ompdynamic.rst: New file.
306 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
307 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
308 * doc/openmp-environment-variables/ompnested.rst: New file.
309 * doc/openmp-environment-variables/ompnumteams.rst: New file.
310 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
311 * doc/openmp-environment-variables/ompplaces.rst: New file.
312 * doc/openmp-environment-variables/ompprocbind.rst: New file.
313 * doc/openmp-environment-variables/ompschedule.rst: New file.
314 * doc/openmp-environment-variables/ompstacksize.rst: New file.
315 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
316 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
317 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
318 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
319 * doc/openmp-implementation-specifics.rst: New file.
320 * doc/openmp-implementation-status.rst: New file.
321 * doc/openmp-implementation-status/openmp-45.rst: New file.
322 * doc/openmp-implementation-status/openmp-50.rst: New file.
323 * doc/openmp-implementation-status/openmp-51.rst: New file.
324 * doc/openmp-implementation-status/openmp-52.rst: New file.
325 * doc/openmp-runtime-library-routines.rst: New file.
326 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
327 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
328 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
329 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
330 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
331 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
332 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
333 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
334 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
335 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
336 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
337 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
338 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
339 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
340 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
341 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
342 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
343 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
344 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
345 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
346 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
347 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
348 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
349 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
350 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
351 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
352 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
353 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
354 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
355 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
356 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
357 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
358 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
359 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
360 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
361 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
362 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
363 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
364 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
365 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
366 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
367 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
368 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
369 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
370 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
371 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
372 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
373 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
374 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
375 * doc/reporting-bugs.rst: New file.
376 * doc/the-libgomp-abi.rst: New file.
377 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
378 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
379 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
380 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
382 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
383 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
384 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
385 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
386 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
387 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
388 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
389 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
390 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
391 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
392 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
394 2022-11-14 Martin Liska <mliska@suse.cz>
397 2022-11-14 Martin Liska <mliska@suse.cz>
399 * Makefile.in: Support Sphinx based documentation.
401 2022-11-14 Martin Liska <mliska@suse.cz>
404 2022-11-14 Martin Liska <mliska@suse.cz>
406 * libgomp.texi: Removed.
408 2022-11-14 Martin Liska <mliska@suse.cz>
411 2022-11-14 Martin Liska <mliska@suse.cz>
413 * Makefile.in: Support --with-sphinx-build.
414 * configure.ac: Likewise..
415 * configure: Regenerate.
417 2022-11-14 Martin Liska <mliska@suse.cz>
420 2022-11-09 Martin Liska <mliska@suse.cz>
422 * Makefile.in: Build info pages conditionally.
424 2022-11-14 Martin Liska <mliska@suse.cz>
427 2022-11-14 Martin Liska <mliska@suse.cz>
429 * doc/amd-radeon-gcn.rst:
430 Add trailing newline.
432 Add trailing newline.
433 * doc/cuda-streams-usage.rst:
434 Add trailing newline.
435 * doc/enabling-openacc.rst:
436 Add trailing newline.
437 * doc/enabling-openmp.rst:
438 Add trailing newline.
439 * doc/first-invocation-nvidia-cublas-library-api.rst:
440 Add trailing newline.
441 * doc/first-invocation-openacc-library-api.rst:
442 Add trailing newline.
444 Add trailing newline.
445 * doc/general-public-license-3.rst:
446 Add trailing newline.
447 * doc/gnu-free-documentation-license.rst:
448 Add trailing newline.
449 * doc/implementation-status-and-implementation-defined-behavior.rst:
450 Add trailing newline.
452 Add trailing newline.
453 * doc/indices-and-tables.rst:
454 Add trailing newline.
455 * doc/introduction.rst:
456 Add trailing newline.
457 * doc/memory-allocation-with-libmemkind.rst:
458 Add trailing newline.
460 Add trailing newline.
461 * doc/offload-target-specifics.rst:
462 Add trailing newline.
463 * doc/openacc-environment-variables.rst:
464 Add trailing newline.
465 * doc/openacc-environment-variables/accdevicenum.rst:
466 Add trailing newline.
467 * doc/openacc-environment-variables/accdevicetype.rst:
468 Add trailing newline.
469 * doc/openacc-environment-variables/accproflib.rst:
470 Add trailing newline.
471 * doc/openacc-environment-variables/gccaccnotify.rst:
472 Add trailing newline.
473 * doc/openacc-introduction.rst:
474 Add trailing newline.
475 * doc/openacc-library-and-environment-variables.rst:
476 Add trailing newline.
477 * doc/openacc-library-interoperability.rst:
478 Add trailing newline.
479 * doc/openacc-profiling-interface.rst:
480 Add trailing newline.
481 * doc/openacc-runtime-library-routines.rst:
482 Add trailing newline.
483 * doc/openacc-runtime-library-routines/accasynctest.rst:
484 Add trailing newline.
485 * doc/openacc-runtime-library-routines/accasynctestall.rst:
486 Add trailing newline.
487 * doc/openacc-runtime-library-routines/accattach.rst:
488 Add trailing newline.
489 * doc/openacc-runtime-library-routines/acccopyin.rst:
490 Add trailing newline.
491 * doc/openacc-runtime-library-routines/acccopyout.rst:
492 Add trailing newline.
493 * doc/openacc-runtime-library-routines/acccreate.rst:
494 Add trailing newline.
495 * doc/openacc-runtime-library-routines/accdelete.rst:
496 Add trailing newline.
497 * doc/openacc-runtime-library-routines/accdetach.rst:
498 Add trailing newline.
499 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
500 Add trailing newline.
501 * doc/openacc-runtime-library-routines/accfree.rst:
502 Add trailing newline.
503 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
504 Add trailing newline.
505 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
506 Add trailing newline.
507 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
508 Add trailing newline.
509 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
510 Add trailing newline.
511 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
512 Add trailing newline.
513 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
514 Add trailing newline.
515 * doc/openacc-runtime-library-routines/accgetproperty.rst:
516 Add trailing newline.
517 * doc/openacc-runtime-library-routines/acchostptr.rst:
518 Add trailing newline.
519 * doc/openacc-runtime-library-routines/accinit.rst:
520 Add trailing newline.
521 * doc/openacc-runtime-library-routines/accispresent.rst:
522 Add trailing newline.
523 * doc/openacc-runtime-library-routines/accmalloc.rst:
524 Add trailing newline.
525 * doc/openacc-runtime-library-routines/accmapdata.rst:
526 Add trailing newline.
527 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
528 Add trailing newline.
529 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
530 Add trailing newline.
531 * doc/openacc-runtime-library-routines/accondevice.rst:
532 Add trailing newline.
533 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
534 Add trailing newline.
535 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
536 Add trailing newline.
537 * doc/openacc-runtime-library-routines/accproflookup.rst:
538 Add trailing newline.
539 * doc/openacc-runtime-library-routines/accprofregister.rst:
540 Add trailing newline.
541 * doc/openacc-runtime-library-routines/accprofunregister.rst:
542 Add trailing newline.
543 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
544 Add trailing newline.
545 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
546 Add trailing newline.
547 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
548 Add trailing newline.
549 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
550 Add trailing newline.
551 * doc/openacc-runtime-library-routines/accshutdown.rst:
552 Add trailing newline.
553 * doc/openacc-runtime-library-routines/accunmapdata.rst:
554 Add trailing newline.
555 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
556 Add trailing newline.
557 * doc/openacc-runtime-library-routines/accupdateself.rst:
558 Add trailing newline.
559 * doc/openacc-runtime-library-routines/accwait.rst:
560 Add trailing newline.
561 * doc/openacc-runtime-library-routines/accwaitall.rst:
562 Add trailing newline.
563 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
564 Add trailing newline.
565 * doc/openacc-runtime-library-routines/accwaitasync.rst:
566 Add trailing newline.
567 * doc/openmp-context-selectors.rst:
568 Add trailing newline.
569 * doc/openmp-environment-variables.rst:
570 Add trailing newline.
571 * doc/openmp-environment-variables/gompcpuaffinity.rst:
572 Add trailing newline.
573 * doc/openmp-environment-variables/gompdebug.rst:
574 Add trailing newline.
575 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
576 Add trailing newline.
577 * doc/openmp-environment-variables/gompspincount.rst:
578 Add trailing newline.
579 * doc/openmp-environment-variables/gompstacksize.rst:
580 Add trailing newline.
581 * doc/openmp-environment-variables/ompcancellation.rst:
582 Add trailing newline.
583 * doc/openmp-environment-variables/ompdefaultdevice.rst:
584 Add trailing newline.
585 * doc/openmp-environment-variables/ompdisplayenv.rst:
586 Add trailing newline.
587 * doc/openmp-environment-variables/ompdynamic.rst:
588 Add trailing newline.
589 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
590 Add trailing newline.
591 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
592 Add trailing newline.
593 * doc/openmp-environment-variables/ompnested.rst:
594 Add trailing newline.
595 * doc/openmp-environment-variables/ompnumteams.rst:
596 Add trailing newline.
597 * doc/openmp-environment-variables/ompnumthreads.rst:
598 Add trailing newline.
599 * doc/openmp-environment-variables/ompplaces.rst:
600 Add trailing newline.
601 * doc/openmp-environment-variables/ompprocbind.rst:
602 Add trailing newline.
603 * doc/openmp-environment-variables/ompschedule.rst:
604 Add trailing newline.
605 * doc/openmp-environment-variables/ompstacksize.rst:
606 Add trailing newline.
607 * doc/openmp-environment-variables/omptargetoffload.rst:
608 Add trailing newline.
609 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
610 Add trailing newline.
611 * doc/openmp-environment-variables/ompthreadlimit.rst:
612 Add trailing newline.
613 * doc/openmp-environment-variables/ompwaitpolicy.rst:
614 Add trailing newline.
615 * doc/openmp-implementation-specifics.rst:
616 Add trailing newline.
617 * doc/openmp-implementation-status.rst:
618 Add trailing newline.
619 * doc/openmp-implementation-status/openmp-45.rst:
620 Add trailing newline.
621 * doc/openmp-implementation-status/openmp-50.rst:
622 Add trailing newline.
623 * doc/openmp-implementation-status/openmp-51.rst:
624 Add trailing newline.
625 * doc/openmp-implementation-status/openmp-52.rst:
626 Add trailing newline.
627 * doc/openmp-runtime-library-routines.rst:
628 Add trailing newline.
629 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
630 Add trailing newline.
631 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
632 Add trailing newline.
633 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
634 Add trailing newline.
635 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
636 Add trailing newline.
637 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
638 Add trailing newline.
639 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
640 Add trailing newline.
641 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
642 Add trailing newline.
643 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
644 Add trailing newline.
645 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
646 Add trailing newline.
647 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
648 Add trailing newline.
649 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
650 Add trailing newline.
651 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
652 Add trailing newline.
653 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
654 Add trailing newline.
655 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
656 Add trailing newline.
657 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
658 Add trailing newline.
659 * doc/openmp-runtime-library-routines/ompgetnested.rst:
660 Add trailing newline.
661 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
662 Add trailing newline.
663 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
664 Add trailing newline.
665 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
666 Add trailing newline.
667 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
668 Add trailing newline.
669 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
670 Add trailing newline.
671 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
672 Add trailing newline.
673 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
674 Add trailing newline.
675 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
676 Add trailing newline.
677 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
678 Add trailing newline.
679 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
680 Add trailing newline.
681 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
682 Add trailing newline.
683 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
684 Add trailing newline.
685 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
686 Add trailing newline.
687 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
688 Add trailing newline.
689 * doc/openmp-runtime-library-routines/ompinfinal.rst:
690 Add trailing newline.
691 * doc/openmp-runtime-library-routines/ompinitlock.rst:
692 Add trailing newline.
693 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
694 Add trailing newline.
695 * doc/openmp-runtime-library-routines/ompinparallel.rst:
696 Add trailing newline.
697 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
698 Add trailing newline.
699 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
700 Add trailing newline.
701 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
702 Add trailing newline.
703 * doc/openmp-runtime-library-routines/ompsetlock.rst:
704 Add trailing newline.
705 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
706 Add trailing newline.
707 * doc/openmp-runtime-library-routines/ompsetnested.rst:
708 Add trailing newline.
709 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
710 Add trailing newline.
711 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
712 Add trailing newline.
713 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
714 Add trailing newline.
715 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
716 Add trailing newline.
717 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
718 Add trailing newline.
719 * doc/openmp-runtime-library-routines/omptestlock.rst:
720 Add trailing newline.
721 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
722 Add trailing newline.
723 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
724 Add trailing newline.
725 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
726 Add trailing newline.
727 * doc/reporting-bugs.rst:
728 Add trailing newline.
729 * doc/the-libgomp-abi.rst:
730 Add trailing newline.
731 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
732 Add trailing newline.
733 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
734 Add trailing newline.
735 * doc/the-libgomp-abi/implementing-critical-construct.rst:
736 Add trailing newline.
737 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
738 Add trailing newline.
739 * doc/the-libgomp-abi/implementing-flush-construct.rst:
740 Add trailing newline.
741 * doc/the-libgomp-abi/implementing-for-construct.rst:
742 Add trailing newline.
743 * doc/the-libgomp-abi/implementing-master-construct.rst:
744 Add trailing newline.
745 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
746 Add trailing newline.
747 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
748 Add trailing newline.
749 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
750 Add trailing newline.
751 * doc/the-libgomp-abi/implementing-private-clause.rst:
752 Add trailing newline.
753 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
754 Add trailing newline.
755 * doc/the-libgomp-abi/implementing-sections-construct.rst:
756 Add trailing newline.
757 * doc/the-libgomp-abi/implementing-single-construct.rst:
758 Add trailing newline.
759 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
760 Add trailing newline.
762 2022-11-14 Martin Liska <mliska@suse.cz>
765 2022-11-09 Martin Liska <mliska@suse.cz>
767 * Makefile.in: Add missing HAS_SPHINX_BUILD.
769 2022-11-14 Martin Liska <mliska@suse.cz>
772 2022-11-14 Martin Liska <mliska@suse.cz>
774 * doc/conf.py: Add newline at last line.
776 2022-11-14 Martin Liska <mliska@suse.cz>
779 2022-11-14 Martin Liska <mliska@suse.cz>
782 * configure: Regenerate.
783 * configure.ac: Always set sphinx-build.
785 2022-11-13 Martin Liska <mliska@suse.cz>
788 * configure: Regenerate.
789 * configure.ac: Always set sphinx-build.
791 2022-11-12 Jakub Jelinek <jakub@redhat.com>
794 * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
795 unsigned long. Change type of upper from unsigned to unsigned long.
797 2022-11-10 Martin Liska <mliska@suse.cz>
799 * doc/conf.py: Add newline at last line.
801 2022-11-09 Martin Liska <mliska@suse.cz>
803 * Makefile.in: Add missing HAS_SPHINX_BUILD.
805 2022-11-09 Martin Liska <mliska@suse.cz>
807 * doc/amd-radeon-gcn.rst:
808 Add trailing newline.
810 Add trailing newline.
811 * doc/cuda-streams-usage.rst:
812 Add trailing newline.
813 * doc/enabling-openacc.rst:
814 Add trailing newline.
815 * doc/enabling-openmp.rst:
816 Add trailing newline.
817 * doc/first-invocation-nvidia-cublas-library-api.rst:
818 Add trailing newline.
819 * doc/first-invocation-openacc-library-api.rst:
820 Add trailing newline.
822 Add trailing newline.
823 * doc/general-public-license-3.rst:
824 Add trailing newline.
825 * doc/gnu-free-documentation-license.rst:
826 Add trailing newline.
827 * doc/implementation-status-and-implementation-defined-behavior.rst:
828 Add trailing newline.
830 Add trailing newline.
831 * doc/indices-and-tables.rst:
832 Add trailing newline.
833 * doc/introduction.rst:
834 Add trailing newline.
835 * doc/memory-allocation-with-libmemkind.rst:
836 Add trailing newline.
838 Add trailing newline.
839 * doc/offload-target-specifics.rst:
840 Add trailing newline.
841 * doc/openacc-environment-variables.rst:
842 Add trailing newline.
843 * doc/openacc-environment-variables/accdevicenum.rst:
844 Add trailing newline.
845 * doc/openacc-environment-variables/accdevicetype.rst:
846 Add trailing newline.
847 * doc/openacc-environment-variables/accproflib.rst:
848 Add trailing newline.
849 * doc/openacc-environment-variables/gccaccnotify.rst:
850 Add trailing newline.
851 * doc/openacc-introduction.rst:
852 Add trailing newline.
853 * doc/openacc-library-and-environment-variables.rst:
854 Add trailing newline.
855 * doc/openacc-library-interoperability.rst:
856 Add trailing newline.
857 * doc/openacc-profiling-interface.rst:
858 Add trailing newline.
859 * doc/openacc-runtime-library-routines.rst:
860 Add trailing newline.
861 * doc/openacc-runtime-library-routines/accasynctest.rst:
862 Add trailing newline.
863 * doc/openacc-runtime-library-routines/accasynctestall.rst:
864 Add trailing newline.
865 * doc/openacc-runtime-library-routines/accattach.rst:
866 Add trailing newline.
867 * doc/openacc-runtime-library-routines/acccopyin.rst:
868 Add trailing newline.
869 * doc/openacc-runtime-library-routines/acccopyout.rst:
870 Add trailing newline.
871 * doc/openacc-runtime-library-routines/acccreate.rst:
872 Add trailing newline.
873 * doc/openacc-runtime-library-routines/accdelete.rst:
874 Add trailing newline.
875 * doc/openacc-runtime-library-routines/accdetach.rst:
876 Add trailing newline.
877 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
878 Add trailing newline.
879 * doc/openacc-runtime-library-routines/accfree.rst:
880 Add trailing newline.
881 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
882 Add trailing newline.
883 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
884 Add trailing newline.
885 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
886 Add trailing newline.
887 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
888 Add trailing newline.
889 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
890 Add trailing newline.
891 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
892 Add trailing newline.
893 * doc/openacc-runtime-library-routines/accgetproperty.rst:
894 Add trailing newline.
895 * doc/openacc-runtime-library-routines/acchostptr.rst:
896 Add trailing newline.
897 * doc/openacc-runtime-library-routines/accinit.rst:
898 Add trailing newline.
899 * doc/openacc-runtime-library-routines/accispresent.rst:
900 Add trailing newline.
901 * doc/openacc-runtime-library-routines/accmalloc.rst:
902 Add trailing newline.
903 * doc/openacc-runtime-library-routines/accmapdata.rst:
904 Add trailing newline.
905 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
906 Add trailing newline.
907 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
908 Add trailing newline.
909 * doc/openacc-runtime-library-routines/accondevice.rst:
910 Add trailing newline.
911 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
912 Add trailing newline.
913 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
914 Add trailing newline.
915 * doc/openacc-runtime-library-routines/accproflookup.rst:
916 Add trailing newline.
917 * doc/openacc-runtime-library-routines/accprofregister.rst:
918 Add trailing newline.
919 * doc/openacc-runtime-library-routines/accprofunregister.rst:
920 Add trailing newline.
921 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
922 Add trailing newline.
923 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
924 Add trailing newline.
925 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
926 Add trailing newline.
927 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
928 Add trailing newline.
929 * doc/openacc-runtime-library-routines/accshutdown.rst:
930 Add trailing newline.
931 * doc/openacc-runtime-library-routines/accunmapdata.rst:
932 Add trailing newline.
933 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
934 Add trailing newline.
935 * doc/openacc-runtime-library-routines/accupdateself.rst:
936 Add trailing newline.
937 * doc/openacc-runtime-library-routines/accwait.rst:
938 Add trailing newline.
939 * doc/openacc-runtime-library-routines/accwaitall.rst:
940 Add trailing newline.
941 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
942 Add trailing newline.
943 * doc/openacc-runtime-library-routines/accwaitasync.rst:
944 Add trailing newline.
945 * doc/openmp-context-selectors.rst:
946 Add trailing newline.
947 * doc/openmp-environment-variables.rst:
948 Add trailing newline.
949 * doc/openmp-environment-variables/gompcpuaffinity.rst:
950 Add trailing newline.
951 * doc/openmp-environment-variables/gompdebug.rst:
952 Add trailing newline.
953 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
954 Add trailing newline.
955 * doc/openmp-environment-variables/gompspincount.rst:
956 Add trailing newline.
957 * doc/openmp-environment-variables/gompstacksize.rst:
958 Add trailing newline.
959 * doc/openmp-environment-variables/ompcancellation.rst:
960 Add trailing newline.
961 * doc/openmp-environment-variables/ompdefaultdevice.rst:
962 Add trailing newline.
963 * doc/openmp-environment-variables/ompdisplayenv.rst:
964 Add trailing newline.
965 * doc/openmp-environment-variables/ompdynamic.rst:
966 Add trailing newline.
967 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
968 Add trailing newline.
969 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
970 Add trailing newline.
971 * doc/openmp-environment-variables/ompnested.rst:
972 Add trailing newline.
973 * doc/openmp-environment-variables/ompnumteams.rst:
974 Add trailing newline.
975 * doc/openmp-environment-variables/ompnumthreads.rst:
976 Add trailing newline.
977 * doc/openmp-environment-variables/ompplaces.rst:
978 Add trailing newline.
979 * doc/openmp-environment-variables/ompprocbind.rst:
980 Add trailing newline.
981 * doc/openmp-environment-variables/ompschedule.rst:
982 Add trailing newline.
983 * doc/openmp-environment-variables/ompstacksize.rst:
984 Add trailing newline.
985 * doc/openmp-environment-variables/omptargetoffload.rst:
986 Add trailing newline.
987 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
988 Add trailing newline.
989 * doc/openmp-environment-variables/ompthreadlimit.rst:
990 Add trailing newline.
991 * doc/openmp-environment-variables/ompwaitpolicy.rst:
992 Add trailing newline.
993 * doc/openmp-implementation-specifics.rst:
994 Add trailing newline.
995 * doc/openmp-implementation-status.rst:
996 Add trailing newline.
997 * doc/openmp-implementation-status/openmp-45.rst:
998 Add trailing newline.
999 * doc/openmp-implementation-status/openmp-50.rst:
1000 Add trailing newline.
1001 * doc/openmp-implementation-status/openmp-51.rst:
1002 Add trailing newline.
1003 * doc/openmp-implementation-status/openmp-52.rst:
1004 Add trailing newline.
1005 * doc/openmp-runtime-library-routines.rst:
1006 Add trailing newline.
1007 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
1008 Add trailing newline.
1009 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
1010 Add trailing newline.
1011 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
1012 Add trailing newline.
1013 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
1014 Add trailing newline.
1015 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
1016 Add trailing newline.
1017 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
1018 Add trailing newline.
1019 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
1020 Add trailing newline.
1021 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
1022 Add trailing newline.
1023 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
1024 Add trailing newline.
1025 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
1026 Add trailing newline.
1027 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
1028 Add trailing newline.
1029 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
1030 Add trailing newline.
1031 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
1032 Add trailing newline.
1033 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
1034 Add trailing newline.
1035 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
1036 Add trailing newline.
1037 * doc/openmp-runtime-library-routines/ompgetnested.rst:
1038 Add trailing newline.
1039 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
1040 Add trailing newline.
1041 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
1042 Add trailing newline.
1043 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
1044 Add trailing newline.
1045 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
1046 Add trailing newline.
1047 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
1048 Add trailing newline.
1049 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
1050 Add trailing newline.
1051 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
1052 Add trailing newline.
1053 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
1054 Add trailing newline.
1055 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
1056 Add trailing newline.
1057 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
1058 Add trailing newline.
1059 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
1060 Add trailing newline.
1061 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
1062 Add trailing newline.
1063 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
1064 Add trailing newline.
1065 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
1066 Add trailing newline.
1067 * doc/openmp-runtime-library-routines/ompinfinal.rst:
1068 Add trailing newline.
1069 * doc/openmp-runtime-library-routines/ompinitlock.rst:
1070 Add trailing newline.
1071 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
1072 Add trailing newline.
1073 * doc/openmp-runtime-library-routines/ompinparallel.rst:
1074 Add trailing newline.
1075 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
1076 Add trailing newline.
1077 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
1078 Add trailing newline.
1079 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
1080 Add trailing newline.
1081 * doc/openmp-runtime-library-routines/ompsetlock.rst:
1082 Add trailing newline.
1083 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
1084 Add trailing newline.
1085 * doc/openmp-runtime-library-routines/ompsetnested.rst:
1086 Add trailing newline.
1087 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
1088 Add trailing newline.
1089 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
1090 Add trailing newline.
1091 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
1092 Add trailing newline.
1093 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
1094 Add trailing newline.
1095 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
1096 Add trailing newline.
1097 * doc/openmp-runtime-library-routines/omptestlock.rst:
1098 Add trailing newline.
1099 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
1100 Add trailing newline.
1101 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
1102 Add trailing newline.
1103 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
1104 Add trailing newline.
1105 * doc/reporting-bugs.rst:
1106 Add trailing newline.
1107 * doc/the-libgomp-abi.rst:
1108 Add trailing newline.
1109 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
1110 Add trailing newline.
1111 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
1112 Add trailing newline.
1113 * doc/the-libgomp-abi/implementing-critical-construct.rst:
1114 Add trailing newline.
1115 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1116 Add trailing newline.
1117 * doc/the-libgomp-abi/implementing-flush-construct.rst:
1118 Add trailing newline.
1119 * doc/the-libgomp-abi/implementing-for-construct.rst:
1120 Add trailing newline.
1121 * doc/the-libgomp-abi/implementing-master-construct.rst:
1122 Add trailing newline.
1123 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
1124 Add trailing newline.
1125 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
1126 Add trailing newline.
1127 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
1128 Add trailing newline.
1129 * doc/the-libgomp-abi/implementing-private-clause.rst:
1130 Add trailing newline.
1131 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
1132 Add trailing newline.
1133 * doc/the-libgomp-abi/implementing-sections-construct.rst:
1134 Add trailing newline.
1135 * doc/the-libgomp-abi/implementing-single-construct.rst:
1136 Add trailing newline.
1137 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
1138 Add trailing newline.
1140 2022-11-09 Martin Liska <mliska@suse.cz>
1142 * Makefile.in: Build info pages conditionally.
1144 2022-11-09 Martin Liska <mliska@suse.cz>
1146 * Makefile.in: Support --with-sphinx-build.
1147 * configure.ac: Likewise..
1148 * configure: Regenerate.
1150 2022-11-09 Martin Liska <mliska@suse.cz>
1152 * libgomp.texi: Removed.
1154 2022-11-09 Martin Liska <mliska@suse.cz>
1156 * Makefile.in: Support Sphinx based documentation.
1158 2022-11-09 Martin Liska <mliska@suse.cz>
1160 * doc/amd-radeon-gcn.rst: New file.
1161 * doc/conf.py: New file.
1162 * doc/copyright.rst: New file.
1163 * doc/cuda-streams-usage.rst: New file.
1164 * doc/enabling-openacc.rst: New file.
1165 * doc/enabling-openmp.rst: New file.
1166 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
1167 * doc/first-invocation-openacc-library-api.rst: New file.
1168 * doc/funding.rst: New file.
1169 * doc/general-public-license-3.rst: New file.
1170 * doc/gnu-free-documentation-license.rst: New file.
1171 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
1172 * doc/index.rst: New file.
1173 * doc/indices-and-tables.rst: New file.
1174 * doc/introduction.rst: New file.
1175 * doc/memory-allocation-with-libmemkind.rst: New file.
1176 * doc/nvptx.rst: New file.
1177 * doc/offload-target-specifics.rst: New file.
1178 * doc/openacc-environment-variables.rst: New file.
1179 * doc/openacc-environment-variables/accdevicenum.rst: New file.
1180 * doc/openacc-environment-variables/accdevicetype.rst: New file.
1181 * doc/openacc-environment-variables/accproflib.rst: New file.
1182 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
1183 * doc/openacc-introduction.rst: New file.
1184 * doc/openacc-library-and-environment-variables.rst: New file.
1185 * doc/openacc-library-interoperability.rst: New file.
1186 * doc/openacc-profiling-interface.rst: New file.
1187 * doc/openacc-runtime-library-routines.rst: New file.
1188 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
1189 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
1190 * doc/openacc-runtime-library-routines/accattach.rst: New file.
1191 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
1192 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
1193 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
1194 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
1195 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
1196 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
1197 * doc/openacc-runtime-library-routines/accfree.rst: New file.
1198 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
1199 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
1200 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
1201 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
1202 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
1203 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
1204 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
1205 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
1206 * doc/openacc-runtime-library-routines/accinit.rst: New file.
1207 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
1208 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
1209 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
1210 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
1211 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
1212 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
1213 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
1214 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
1215 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
1216 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
1217 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
1218 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1219 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
1220 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
1221 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
1222 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
1223 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
1224 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
1225 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
1226 * doc/openacc-runtime-library-routines/accwait.rst: New file.
1227 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
1228 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
1229 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
1230 * doc/openmp-context-selectors.rst: New file.
1231 * doc/openmp-environment-variables.rst: New file.
1232 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
1233 * doc/openmp-environment-variables/gompdebug.rst: New file.
1234 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
1235 * doc/openmp-environment-variables/gompspincount.rst: New file.
1236 * doc/openmp-environment-variables/gompstacksize.rst: New file.
1237 * doc/openmp-environment-variables/ompcancellation.rst: New file.
1238 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
1239 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
1240 * doc/openmp-environment-variables/ompdynamic.rst: New file.
1241 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
1242 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
1243 * doc/openmp-environment-variables/ompnested.rst: New file.
1244 * doc/openmp-environment-variables/ompnumteams.rst: New file.
1245 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
1246 * doc/openmp-environment-variables/ompplaces.rst: New file.
1247 * doc/openmp-environment-variables/ompprocbind.rst: New file.
1248 * doc/openmp-environment-variables/ompschedule.rst: New file.
1249 * doc/openmp-environment-variables/ompstacksize.rst: New file.
1250 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
1251 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
1252 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
1253 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
1254 * doc/openmp-implementation-specifics.rst: New file.
1255 * doc/openmp-implementation-status.rst: New file.
1256 * doc/openmp-implementation-status/openmp-45.rst: New file.
1257 * doc/openmp-implementation-status/openmp-50.rst: New file.
1258 * doc/openmp-implementation-status/openmp-51.rst: New file.
1259 * doc/openmp-implementation-status/openmp-52.rst: New file.
1260 * doc/openmp-runtime-library-routines.rst: New file.
1261 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
1262 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
1263 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
1264 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
1265 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
1266 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
1267 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
1268 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
1269 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
1270 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
1271 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
1272 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
1273 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
1274 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
1275 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
1276 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
1277 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
1278 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
1279 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
1280 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
1281 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
1282 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
1283 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
1284 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
1285 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
1286 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
1287 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
1288 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
1289 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
1290 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
1291 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
1292 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
1293 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
1294 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
1295 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
1296 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
1297 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
1298 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
1299 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
1300 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
1301 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
1302 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
1303 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
1304 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
1305 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
1306 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
1307 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
1308 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
1309 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
1310 * doc/reporting-bugs.rst: New file.
1311 * doc/the-libgomp-abi.rst: New file.
1312 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
1313 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
1314 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
1315 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1317 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
1318 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
1319 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
1320 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
1321 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
1322 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
1323 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
1324 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
1325 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
1326 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
1327 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
1329 2022-11-04 Thomas Schwinge <thomas@codesourcery.com>
1331 * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
1332 * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
1334 * plugin/configfrag.ac <enable_offload_targets>
1335 [*-intelmic-* | *-intelmicemul-*]: Remove.
1336 * configure: Regenerate.
1337 * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
1339 (offload_target_to_openacc_device_type)
1340 [$offload_target = *-intelmic*]: Remove.
1341 (check_effective_target_offload_device_intel_mic)
1342 (check_effective_target_offload_device_any_intel_mic): Remove.
1343 * testsuite/libgomp.c-c++-common/on_device_arch.h
1344 (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
1345 (any_device_arch_intel_mic): Remove.
1346 * testsuite/libgomp.c-c++-common/target-45.c: Remove
1347 'offload_device_any_intel_mic' XFAIL.
1348 * testsuite/libgomp.fortran/target10.f90: Likewise.
1350 2022-11-03 Tobias Burnus <tobias@codesourcery.com>
1352 * testsuite/libgomp.fortran/target-11.f90: New test.
1353 * testsuite/libgomp.fortran/target-13.f90: New test.
1355 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
1359 * oacc-mem.c (goacc_enter_data_internal): Support
1360 OpenACC 'declare create' with Fortran allocatable arrays, part II.
1361 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
1363 * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
1365 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
1368 * oacc-mem.c (goacc_enter_data_internal): Support
1369 OpenACC 'declare create' with Fortran allocatable arrays, part I.
1370 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
1372 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
1375 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
1377 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
1380 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
1382 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
1385 2022-11-02 Cesar Philippidis <cesar@codesourcery.com>
1386 Thomas Schwinge <thomas@codesourcery.com>
1388 * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
1390 2022-10-28 Julian Brown <julian@codesourcery.com>
1391 Thomas Schwinge <thomas@codesourcery.com>
1394 * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
1395 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
1396 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
1397 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
1398 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1400 2022-10-24 Thomas Schwinge <thomas@codesourcery.com>
1402 * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
1403 'ptx_dev->rev_data'.
1405 2022-10-24 Tobias Burnus <tobias@codesourcery.com>
1407 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
1408 'static' for this variable.
1409 * config/nvptx/libgomp-nvptx.h: New file.
1410 * config/nvptx/target.c: Include it.
1411 (GOMP_ADDITIONAL_ICVS): Declare extern var.
1412 (GOMP_REV_OFFLOAD_VAR): Declare var.
1413 (GOMP_target_ext): Handle reverse offload.
1414 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
1415 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
1416 * target.c (gomp_target_rev): ... this new stub function.
1417 * libgomp.h (gomp_target_rev): Declare.
1418 * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
1419 * plugin/cuda-lib.def (cuMemHostAlloc): Add.
1420 * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
1421 (struct ptx_device): Add rev_data member.
1422 (nvptx_open_device): Remove async_engines query, last used in
1423 r10-304-g1f4c5b9b; add unified-address assert check.
1424 (GOMP_OFFLOAD_get_num_devices): Claim unified address
1426 (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
1427 offload functions exist. Make offload var available
1429 (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
1430 (GOMP_OFFLOAD_run): Handle reverse offload.
1432 2022-10-21 Thomas Schwinge <thomas@codesourcery.com>
1434 PR tree-optimization/107195
1436 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
1439 2022-10-20 Tobias Burnus <tobias@codesourcery.com>
1441 * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
1443 * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
1444 on_device_arch_gcn): New.
1445 * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
1446 requires-4.c but using heap-allocated memory.
1448 2022-10-20 Thomas Schwinge <thomas@codesourcery.com>
1451 * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
1453 2022-10-17 Thomas Schwinge <thomas@codesourcery.com>
1455 * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
1456 '-foffload-options' syntax.
1458 2022-10-13 Tobias Burnus <tobias@codesourcery.com>
1460 * testsuite/libgomp.fortran/task-7.f90: New test.
1461 * testsuite/libgomp.fortran/task-8.f90: New test.
1462 * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
1463 * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
1464 * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
1465 * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
1466 * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
1468 2022-10-12 Jakub Jelinek <jakub@redhat.com>
1470 * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
1471 in deprecation bullet.
1473 2022-10-12 Jakub Jelinek <jakub@redhat.com>
1475 * omp.h.in (omp_in_explicit_task): Declare.
1476 * omp_lib.h.in (omp_in_explicit_task): Likewise.
1477 * omp_lib.f90.in (omp_in_explicit_task): New interface.
1478 * libgomp.map (OMP_5.2): New symbol version, export
1479 omp_in_explicit_task and omp_in_explicit_task_.
1480 * task.c (omp_in_explicit_task): New function.
1481 * fortran.c (omp_in_explicit_task): Add ialias_redirect.
1482 (omp_in_explicit_task_): New function.
1483 * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
1484 * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
1485 * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
1486 * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
1488 2022-10-12 Jakub Jelinek <jakub@redhat.com>
1490 * task.c (gomp_create_artificial_team): Fix up handling of invocations
1491 from within explicit task.
1492 * target.c (GOMP_target_ext): Likewise.
1493 * testsuite/libgomp.c/task-7.c: New test.
1494 * testsuite/libgomp.c/task-8.c: New test.
1495 * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
1496 * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
1498 2022-10-12 Martin Liska <mliska@suse.cz>
1500 * configure: Regenerate.
1502 2022-10-11 Olivier Hainque <hainque@adacore.com>
1503 Olivier Hainque <hainque@adacore.com>
1505 * configure: Regenerate.
1507 2022-10-05 Tobias Burnus <tobias@codesourcery.com>
1509 * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
1511 2022-10-04 Jakub Jelinek <jakub@redhat.com>
1513 * libgomp.texi (Support begin/end declare target syntax in C/C++):
1514 Mark as implemented.
1516 2022-09-30 Tobias Burnus <tobias@codesourcery.com>
1519 * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
1521 2022-09-28 Tobias Burnus <tobias@codesourcery.com>
1523 * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
1524 for C/C++. Remove duplicated 'begin declare target' entry.
1526 2022-09-24 Jakub Jelinek <jakub@redhat.com>
1529 * testsuite/libgomp.c-c++-common/pr106981.c: New test.
1531 2022-09-14 Julian Brown <julian@codesourcery.com>
1533 * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
1534 * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
1535 * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
1536 * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
1537 test to here, make "run" test.
1539 2022-09-13 Jakub Jelinek <jakub@redhat.com>
1542 * env.c (get_icv_member_addr): Cast false to void * before assigning
1543 it to icv_addr[1], and comment the whole assignment out.
1545 2022-09-13 Tobias Burnus <tobias@codesourcery.com>
1547 * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
1550 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
1552 * libgomp.texi (Offload-Target Specifics: nvptx): Document
1553 that reverse offload requires >= -march=sm_35.
1554 * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
1556 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
1557 * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
1558 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
1559 * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
1560 * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
1562 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
1564 * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
1565 (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
1567 2022-09-12 Jakub Jelinek <jakub@redhat.com>
1570 * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
1571 (main): Avoid tests for which corresponding non-_ALL suffixed variable
1572 is in the environment, or for OMP_NUM_TEAMS on the device
1573 OMP_NUM_TEAMS_DEV_?.
1575 2022-09-10 Iain Sandoe <iain@sandoe.co.uk>
1577 * env.c (initialize_env): Include libiberty environ.h.
1579 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
1581 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
1582 function address table '$offload_func_table' if rev_fn_table
1585 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
1587 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
1588 .offload_func_table to populate rev_fn_table when requested.
1590 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
1592 * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
1593 'uint64_t **rev_fn_table' argument.
1594 * oacc-host.c (host_load_image): Likewise.
1595 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
1597 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
1598 * target.c (gomp_load_image_to_device): Update call but pass
1601 2022-09-09 Jakub Jelinek <jakub@redhat.com>
1604 * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
1605 char * for dest[1] initialization from params[1]. Formatting fixes.
1607 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
1610 * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
1612 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
1614 * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
1615 section; move OpenMP Context Selectors from ...
1616 (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
1619 2022-09-08 Marcel Vollweiler <marcel@codesourcery.com>
1621 * config/gcn/icv-device.c (omp_get_default_device): Return device-
1623 (omp_get_max_teams): Added for GCN devices.
1624 (omp_set_num_teams): Likewise.
1626 * config/nvptx/icv-device.c (omp_get_default_device): Return device-
1628 (omp_get_max_teams): Added for NVPTX devices.
1629 (omp_set_num_teams): Likewise.
1631 * env.c (struct gomp_icv_list): New struct to store entries of initial
1633 (struct gomp_offload_icv_list): New struct to store entries of device-
1634 specific ICV values that are copied to the device and back.
1635 (struct gomp_default_icv_values): New struct to store default values of
1636 ICVs according to the OpenMP standard.
1637 (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
1638 (print_env_var_error): Function that prints an error for invalid values
1640 (parse_unsigned_long_1): Removed getenv. Generalized.
1641 (parse_unsigned_long): Likewise.
1642 (parse_int_1): Likewise.
1643 (parse_int): Likewise.
1644 (parse_int_secure): Likewise.
1645 (parse_unsigned_long_list): Likewise.
1646 (parse_target_offload): Likewise.
1647 (parse_bind_var): Likewise.
1648 (parse_stacksize): Likewise.
1649 (parse_boolean): Likewise.
1650 (parse_wait_policy): Likewise.
1651 (parse_allocator): Likewise.
1652 (omp_display_env): Extended to output different variants of environment
1654 (print_schedule): New helper function for omp_display_env which prints
1655 the values of run_sched_var.
1656 (print_proc_bind): New helper function for omp_display_env which prints
1657 the values of proc_bind_var.
1658 (enum gomp_parse_type): Collection of types used for parsing environment
1660 (ENTRY): Preprocess string lengths of environment variables.
1661 (OMP_VAR_CNT): Preprocess table size.
1662 (OMP_HOST_VAR_CNT): Likewise.
1663 (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
1665 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
1666 (gomp_set_icv_flag): Sets a flag for a particular ICV.
1667 (print_device_specific_icvs): New helper function for omp_display_env to
1668 print device specific ICV values.
1669 (get_device_num): New helper function for parse_device_specific.
1670 Extracts the device number from an environment variable name.
1671 (get_icv_member_addr): Gets the memory address for a particular member
1673 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
1674 (initialize_icvs): New function to initialize a gomp_initial_icvs
1676 (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
1677 (startswith): Checks if a string starts with a given prefix.
1678 (initialize_env): Extended to parse the new syntax of environment
1680 * icv-device.c (omp_get_max_teams): Added.
1682 (omp_set_num_teams): Likewise.
1683 * icv.c (omp_set_num_teams): Moved to icv-device.c.
1684 (omp_get_max_teams): Likewise.
1686 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
1687 (GOMP_ADDITIONAL_ICVS): New target-side struct that
1688 holds the designated ICVs of the target device.
1689 * libgomp.h (enum gomp_icvs): Collection of ICVs.
1690 (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
1692 (enum gomp_env_suffix): Collection of possible suffixes of environment
1694 (struct gomp_initial_icvs): Contains all ICVs for which we need to store
1696 (struct gomp_default_icv):New struct to hold ICVs for which we need
1697 to store initial values.
1698 (struct gomp_icv_list): Definition of a linked list that is used for
1699 storing ICVs for the devices and also for _DEV, _ALL, and without
1701 (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
1703 (struct gomp_offload_icv_list): Definition of a linked list that holds
1704 device-specific ICVs that are copied to devices.
1705 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
1706 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
1707 * libgomp.texi: Updated.
1708 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
1709 further ICVs from the offload image.
1710 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
1711 * target.c (gomp_get_offload_icv_item): Get a list item of
1712 gomp_offload_icv_list.
1713 (get_gomp_offload_icvs): New. Returns the ICV values
1714 depending on the device num and the variable hierarchy.
1715 (gomp_load_image_to_device): Extended to copy further ICVs to a device.
1716 * testsuite/libgomp.c-c++-common/icv-5.c: New test.
1717 * testsuite/libgomp.c-c++-common/icv-6.c: New test.
1718 * testsuite/libgomp.c-c++-common/icv-7.c: New test.
1719 * testsuite/libgomp.c-c++-common/icv-8.c: New test.
1720 * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
1721 * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
1723 2022-09-08 Jakub Jelinek <jakub@redhat.com>
1725 * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
1727 * testsuite/libgomp.c/doacross-4.c: New test.
1728 * testsuite/libgomp.c/doacross-5.c: New test.
1729 * testsuite/libgomp.c/doacross-6.c: New test.
1730 * testsuite/libgomp.c/doacross-7.c: New test.
1732 2022-09-05 Tobias Burnus <tobias@codesourcery.com>
1734 * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
1736 2022-08-26 Tobias Burnus <tobias@codesourcery.com>
1738 * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
1739 refer to 'requires'.
1740 * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
1741 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
1742 * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
1743 * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
1745 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
1747 PR middle-end/106548
1748 * testsuite/libgomp.c/linear-2.c: New test.
1750 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
1752 * splay-tree.h: Fix splay_* macro unsetting if
1753 splay_tree_prefix is defined.
1755 2022-07-29 Tobias Burnus <tobias@codesourcery.com>
1757 * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
1759 2022-07-29 Jakub Jelinek <jakub@redhat.com>
1761 PR middle-end/106449
1762 * testsuite/libgomp.c-c++-common/pr106449.c: New test.
1764 2022-07-12 Tobias Burnus <tobias@codesourcery.com>
1766 * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
1768 2022-07-12 Thomas Schwinge <thomas@codesourcery.com>
1770 PR middle-end/101551
1771 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
1772 'offloading_enabled' diagnostics issue.
1774 2022-07-11 Thomas Schwinge <thomas@codesourcery.com>
1776 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
1777 '_Pragma' diagnostics verification.
1779 2022-07-10 Lewis Hyatt <lhyatt@gmail.com>
1781 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
1782 improved warning locations.
1783 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
1785 2022-07-08 Thomas Schwinge <thomas@codesourcery.com>
1787 * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
1788 * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
1789 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
1790 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
1791 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
1793 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
1795 * target.c (GOMP_offload_register, GOMP_offload_unregister):
1796 Denote as legacy entry points.
1797 * testsuite/lib/libgomp.exp
1798 (check_effective_target_offload_target_any): New proc.
1799 * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
1800 'offload_target_any'.
1801 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
1802 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
1803 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
1805 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
1807 * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
1808 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
1810 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
1812 * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
1814 2022-07-06 Thomas Schwinge <thomas@codesourcery.com>
1816 * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
1818 (GOMP_offload_unregister_ver): Likewise. Fix up 'target_data'.
1820 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
1821 Jakub Jelinek <jakub@redhat.com>
1823 * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
1825 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
1826 Chung-Lin Tang <cltang@codesourcery.com>
1827 Thomas Schwinge <thomas@codesourcery.com>
1829 * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
1830 omp_requires_mask arg.
1831 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
1832 return -1 when device available but omp_requires_mask != 0.
1833 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
1834 * oacc-host.c (host_get_num_devices, host_openacc_get_property):
1836 * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
1837 goacc_attach_host_thread_to_device, acc_get_num_devices,
1838 acc_set_device_num, get_property_any): Likewise.
1839 * target.c (omp_requires_mask): New global var.
1840 (gomp_requires_to_name): New.
1841 (GOMP_offload_register_ver): Handle passed omp_requires_mask.
1842 (gomp_target_init): Handle omp_requires_mask.
1843 * libgomp.texi (OpenMP 5.0): Update requires impl. status.
1844 (OpenMP 5.1): Add a missed item.
1845 (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
1846 * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
1847 * testsuite/libgomp.c-c++-common/requires-1.c: New test.
1848 * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
1849 * testsuite/libgomp.c-c++-common/requires-2.c: New test.
1850 * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
1851 * testsuite/libgomp.c-c++-common/requires-3.c: New test.
1852 * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
1853 * testsuite/libgomp.c-c++-common/requires-4.c: New test.
1854 * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
1855 * testsuite/libgomp.c-c++-common/requires-5.c: New test.
1856 * testsuite/libgomp.c-c++-common/requires-6.c: New test.
1857 * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
1858 * testsuite/libgomp.c-c++-common/requires-7.c: New test.
1859 * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
1860 * testsuite/libgomp.fortran/requires-1.f90: New test.
1862 2022-07-01 Tobias Burnus <tobias@codesourcery.com>
1864 * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
1865 with fromto as implemented.
1867 2022-06-28 Martin Liska <mliska@suse.cz>
1869 * acinclude.m4: Fix typo in mold linker detection.
1870 * Makefile.in: Regenerate.
1871 * configure: Regenerate.
1873 2022-06-21 Jakub Jelinek <jakub@redhat.com>
1874 Paul Iannetta <piannetta@kalrayinc.com>
1877 * testsuite/libgomp.c/target-31.c: Add private (i) clause.
1879 2022-06-17 Martin Liska <mliska@suse.cz>
1881 * libgomp.texi: Add table header for new features of
1884 2022-06-15 Jakub Jelinek <jakub@redhat.com>
1886 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
1887 q to ddress of an automatic variable. Use -5 instead of -1 in
1888 omp_get_mapped_ptr call. Add test with omp_initial_device.
1889 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
1890 of -1 in omp_get_mapped_ptr call. Add test with omp_initial_device.
1891 Renumber stop arguments afterwards.
1893 2022-06-13 Jakub Jelinek <jakub@redhat.com>
1895 * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
1896 * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
1898 * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
1899 * target.c (resolve_device): Add remapped argument, handle
1900 GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
1901 for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
1902 if remapped, otherwise treat omp_initial_device that way. For
1903 omp_invalid_device, always emit gomp_fatal, even when
1904 OMP_TARGET_OFFLOAD isn't mandatory.
1905 (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
1906 GOMP_target_update, GOMP_target_update_ext,
1907 GOMP_target_enter_exit_data): Pass true as remapped argument to
1909 (omp_target_alloc, omp_target_free, omp_target_is_present,
1910 omp_target_memcpy_check, omp_target_associate_ptr,
1911 omp_target_disassociate_ptr, omp_get_mapped_ptr,
1912 omp_target_is_accessible): Pass false as remapped argument to
1913 resolve_device. Treat omp_initial_device the same as
1914 gomp_get_num_devices (). Don't bypass resolve_device calls if
1915 device_num is negative.
1916 (omp_pause_resource): Treat omp_initial_device the same as
1917 gomp_get_num_devices (). Call resolve_device.
1918 * icv-device.c (omp_set_default_device): Always set to device_num
1919 even when it is negative.
1920 * libgomp.texi: Document that Conforming device numbers,
1921 omp_initial_device and omp_invalid_device is implemented.
1922 * testsuite/libgomp.c/target-41.c (main): Add test with
1924 * testsuite/libgomp.c/target-45.c: New test.
1925 * testsuite/libgomp.c/target-46.c: New test.
1926 * testsuite/libgomp.c/target-47.c: New test.
1927 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
1928 test with omp_initial_device. Use -5 instead of -1 for negative value
1930 * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
1931 Likewise. Reorder stop numbers.
1933 2022-06-10 Jakub Jelinek <jakub@redhat.com>
1935 * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
1936 rather than "libmemkind.so".
1938 2022-06-10 Thomas Schwinge <thomas@codesourcery.com>
1940 * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
1941 * plugin/configfrag.ac (--with-cuda-driver)
1942 (--with-cuda-driver-include, --with-cuda-driver-lib)
1943 (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
1944 (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
1946 * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
1947 (cuda_driver_lib): Remove.
1948 * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
1949 * Makefile.in: Regenerate.
1950 * configure: Likewise.
1951 * testsuite/Makefile.in: Likewise.
1953 2022-06-09 Jakub Jelinek <jakub@redhat.com>
1955 * config/linux/allocator.c: Fix up #include directive.
1957 2022-06-09 Jakub Jelinek <jakub@redhat.com>
1959 * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
1960 (enum gomp_memkind_kind): New type.
1961 (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
1963 (struct gomp_memkind_data): New type.
1964 (memkind_data, memkind_data_once): New variables.
1965 (gomp_init_memkind, gomp_get_memkind): New functions.
1966 (omp_init_allocator): Initialize data.memkind, don't fail for
1967 omp_high_bw_mem_space if libmemkind supports it.
1968 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
1969 memkind support of LIBGOMP_USE_MEMKIND is defined.
1970 * config/linux/allocator.c: New file.
1972 2022-06-03 Tobias Burnus <tobias@codesourcery.com>
1974 * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
1975 * testsuite/libgomp.fortran/scope-2.f90: New test.
1977 2022-06-02 David Malcolm <dmalcolm@redhat.com>
1979 * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
1981 2022-05-31 Jakub Jelinek <jakub@redhat.com>
1983 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
1984 scope construct with allocate clause.
1985 * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
1986 * testsuite/libgomp.c-c++-common/scope-2.c: New test.
1988 2022-05-28 Tobias Burnus <tobias@codesourcery.com>
1990 * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
1991 * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
1992 explicit 'to' and 'enter' clause.
1993 * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
1995 2022-05-28 Jakub Jelinek <jakub@redhat.com>
1998 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
1999 defined(HAVE__ALIGNED_MALLOC) case.
2000 * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
2001 handling as last option before fallback instead of first.
2002 (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
2005 2022-05-27 Jakub Jelinek <jakub@redhat.com>
2007 * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
2009 * testsuite/libgomp.c/target-41.c: Likewise.
2011 2022-05-27 Tobias Burnus <tobias@codesourcery.com>
2013 * libgomp.texi (Other new OpenMP 5.1 features): Add
2014 'begin declare target'.
2015 (Other new OpenMP 5.2 features): New.
2017 2022-05-25 Jakub Jelinek <jakub@redhat.com>
2019 * task.c (gomp_task_run_post_handle_dependers): If empty_task
2020 is the last task taskwait depend depends on, wake it up.
2021 Similarly if it is the last child of a taskgroup, use atomic
2022 store instead of decrement and awak taskgroup wait if any.
2023 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
2025 2022-05-24 Andrew Stubbs <ams@codesourcery.com>
2027 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
2028 EF_AMDGPU_MACH_AMDGCN_GFX90a.
2029 (gcn_gfx90a_s): New.
2030 (isa_hsa_name): Support gfx90a.
2031 (isa_code): Likewise.
2033 2022-05-24 Tobias Burnus <tobias@codesourcery.com>
2036 * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
2037 * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
2039 2022-05-24 Jakub Jelinek <jakub@redhat.com>
2042 * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
2043 * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
2044 * task.c (empty_task): New function.
2045 (gomp_task_run_post_handle_depend_hash): Declare earlier.
2046 (gomp_task_run_post_handle_depend): Declare.
2047 (GOMP_task): Optimize fn == empty_task if there is nothing to wait
2049 (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
2050 (GOMP_taskwait_depend_nowait): New function.
2051 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
2053 2022-05-23 Tobias Burnus <tobias@codesourcery.com>
2056 * target.c (gomp_map_vars_internal, copy_firstprivate_data):
2057 Support attach for GOMP_MAP_FIRSTPRIVATE.
2058 * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
2059 * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
2060 * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
2062 2022-05-20 Marcel Vollweiler <marcel@codesourcery.com>
2064 * libgomp.map: Added omp_target_memcpy_async and
2065 omp_target_memcpy_rect_async.
2066 * libgomp.texi: Both functions are now supported.
2067 * omp.h.in: Added omp_target_memcpy_async and
2068 omp_target_memcpy_rect_async.
2069 * omp_lib.f90.in: Added interfaces for both new functions.
2070 * omp_lib.h.in: Likewise.
2071 * target.c (ialias_redirect): Added for GOMP_task.
2072 (omp_target_memcpy): Restructured into check and copy part.
2073 (omp_target_memcpy_check): New helper function for omp_target_memcpy and
2074 omp_target_memcpy_async that checks requirements.
2075 (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
2076 omp_target_memcpy_async that performs the memcpy.
2077 (omp_target_memcpy_async_helper): New helper function that is used in
2078 omp_target_memcpy_async for the asynchronous task.
2079 (omp_target_memcpy_async): Added.
2080 (omp_target_memcpy_rect): Restructured into check and copy part.
2081 (omp_target_memcpy_rect_check): New helper function for
2082 omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
2084 (omp_target_memcpy_rect_copy): New helper function for
2085 omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
2087 (omp_target_memcpy_rect_async_helper): New helper function that is used
2088 in omp_target_memcpy_rect_async for the asynchronous task.
2089 (omp_target_memcpy_rect_async): Added.
2090 * task.c (ialias): Added for GOMP_task.
2091 * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
2092 * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
2093 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
2094 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
2095 * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
2096 * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
2097 * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
2098 * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
2100 2022-05-18 Tobias Burnus <tobias@codesourcery.com>
2102 * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
2103 (OpenMP Context Selectors): Add missing comma.
2104 * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
2105 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
2106 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
2107 * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
2109 2022-05-17 Jakub Jelinek <jakub@redhat.com>
2111 * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
2112 comment for omp_display_env feature.
2114 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
2116 * libgomp.texi (Offload-Target Specifics): New chapter; add section
2117 to document OpenMP context selectors.
2119 2022-05-17 Jakub Jelinek <jakub@redhat.com>
2121 * libgomp.h (struct gomp_task_depend_entry): Change is_in type
2122 from bool to unsigned char.
2123 * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
2124 Ignore dependencies where
2125 task->depend[i].is_in && task->depend[i].is_in == ent->is_in
2126 rather than just task->depend[i].is_in && ent->is_in. Remember
2127 whether GOMP_DEPEND_IN loop is needed and guard the loop with that
2129 (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
2130 Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
2131 rather than just elem.is_in && ent->is_in.
2132 * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
2133 inoutset depend-kind.
2134 * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
2135 * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
2136 * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
2138 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
2140 * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
2142 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
2144 * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
2145 * testsuite/libgomp.fortran/depend-5.f90: New test.
2146 * testsuite/libgomp.fortran/depend-6.f90: New test.
2147 * testsuite/libgomp.fortran/depend-7.f90: New test.
2149 2022-05-16 Marcel Vollweiler <marcel@codesourcery.com>
2151 * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
2152 * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
2153 * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
2155 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
2157 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
2159 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
2161 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
2163 2022-05-13 Thomas Schwinge <thomas@codesourcery.com>
2165 * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
2166 [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
2167 (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
2168 append '$(PLUGIN_NVPTX_LDFLAGS)'.
2169 * Makefile.in: Regenerate.
2171 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
2173 * Makefile.am (libgomp_la_LIBADD): Initialize.
2174 * plugin/configfrag.ac (DL_LIBS): New.
2175 (PLUGIN_GCN_LIBS): Remove.
2176 (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
2177 * plugin/Makefrag.am (libgomp_la_LIBADD)
2178 (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
2179 (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
2180 * Makefile.in: Regenerate.
2181 * config.h.in: Likewise.
2182 * configure: Likewise.
2183 * testsuite/Makefile.in: Likewise.
2185 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
2187 * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
2188 * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
2189 'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
2190 * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
2191 'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
2192 'PLUGIN_NVPTX_LINK_LIBCUDA'.
2193 * Makefile.in: Regenerate.
2194 * config.h.in: Likewise.
2195 * configure: Likewise.
2197 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
2199 * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
2200 for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
2201 * Makefile.in: Regenerate.
2202 * config.h.in: Likewise.
2203 * configure: Likewise.
2204 * testsuite/Makefile.in: Likewise.
2206 2022-05-12 Jakub Jelinek <jakub@redhat.com>
2208 * libgomp.h (struct gomp_task): Add depend_all_memory member.
2209 * task.c (gomp_init_task): Initialize depend_all_memory.
2210 (gomp_task_handle_depend): Handle omp_all_memory.
2211 (gomp_task_run_post_handle_depend_hash): Clear
2212 parent->depend_all_memory if equal to current task.
2213 (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
2214 * testsuite/libgomp.c-c++-common/depend-1.c: New test.
2215 * testsuite/libgomp.c-c++-common/depend-2.c: New test.
2216 * testsuite/libgomp.c-c++-common/depend-3.c: New test.
2218 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
2220 * plugin/configfrag.ac: Remove '--with-hsa-runtime',
2221 '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
2222 * Makefile.in: Regenerate.
2223 * configure: Likewise.
2224 * testsuite/Makefile.in: Likewise.
2226 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
2228 * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
2229 consider 'PLUGIN_GCN_CPPFLAGS'.
2230 (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
2231 'PLUGIN_GCN_LDFLAGS'.
2232 * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
2234 * Makefile.in: Regenerate.
2235 * configure: Likewise.
2236 * testsuite/Makefile.in: Likewise.
2238 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
2240 * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
2241 (HSA_RUNTIME_LDFLAGS): Remove.
2242 * configure: Regenerate.
2244 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
2246 * testsuite/lib/libgomp.exp (libgomp_init): Don't
2247 'append always_ld_library_path ":$hsa_runtime_lib"'.
2248 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
2250 2022-05-10 Thomas Schwinge <thomas@codesourcery.com>
2252 * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
2253 multi-device testing.
2255 2022-05-06 Marcel Vollweiler <marcel@codesourcery.com>
2257 * libgomp.map: Added omp_target_is_accessible.
2258 * libgomp.texi: Tagged omp_target_is_accessible as supported.
2259 * omp.h.in: Added omp_target_is_accessible.
2260 * omp_lib.f90.in: Added interface for omp_target_is_accessible.
2261 * omp_lib.h.in: Likewise.
2262 * target.c (omp_target_is_accessible): Added implementation of
2263 omp_target_is_accessible.
2264 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
2265 * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
2267 2022-05-05 Sandra Loosemore <sandra@codesourcery.com>
2269 * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
2271 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
2273 * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
2275 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
2277 * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
2279 2022-05-03 Marcel Vollweiler <marcel@codesourcery.com>
2281 * libgomp.map: Added omp_get_mapped_ptr.
2282 * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
2283 * omp.h.in: Added omp_get_mapped_ptr.
2284 * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
2285 * omp_lib.h.in: Likewise.
2286 * target.c (omp_get_mapped_ptr): Added implementation of
2288 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
2289 * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
2290 * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
2291 * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
2292 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
2293 * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
2294 * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
2295 * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
2297 2022-04-28 Thomas Schwinge <thomas@codesourcery.com>
2300 * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
2301 privatization scanning. For GCN offloading compilation, raise
2302 '-mgang-private-size'.
2304 2022-04-26 Jakub Jelinek <jakub@redhat.com>
2307 * work.c (gomp_init_work_share): Don't mask of adjustment for
2308 dynamic long long realignment if struct gomp_work_share has smaller
2309 alignof than long long.
2310 * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
2311 struct gomp_work_share has smaller alignof than long long or if
2312 sizeof (struct gomp_work_share) is smaller than
2313 INLINE_ORDERED_TEAM_IDS_OFF.
2314 * loop_ull.c (GOMP_loop_ull_start): Likewise.
2315 * sections.c (GOMP_sections2_start): Likewise.
2317 2022-04-25 Jakub Jelinek <jakub@redhat.com>
2318 Thomas Schwinge <thomas@codesourcery.com>
2321 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
2323 2022-04-13 Jakub Jelinek <jakub@redhat.com>
2325 * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
2327 2022-04-06 Thomas Schwinge <thomas@codesourcery.com>
2329 * plugin/cuda/cuda.h: Remove file.
2330 * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
2331 "cuda/cuda.h" instead of <cuda.h>.
2332 * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
2333 'PLUGIN_NVPTX_CPPFLAGS'.
2334 * configure: Regenerate.
2336 2022-04-05 Chung-Lin Tang <cltang@codesourcery.com>
2338 * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
2340 2022-04-04 Tom de Vries <tdevries@suse.de>
2342 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
2343 on_device_arch_nvptx instead of offload_target_nvptx.
2344 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2346 2022-04-01 Tom de Vries <tdevries@suse.de>
2348 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
2350 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2352 2022-04-01 Tom de Vries <tdevries@suse.de>
2354 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
2357 2022-03-29 Chenghua Xu <xuchenghua@loongson.cn>
2358 Lulu Cheng <chenglulu@loongson.cn>
2360 * configure.tgt: Add LoongArch triplet.
2362 2022-03-28 Tom de Vries <tdevries@suse.de>
2364 * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
2365 instead of /libexec/.
2366 * configure: Regenerate.
2368 2022-03-25 Tom de Vries <tdevries@suse.de>
2371 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
2373 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
2374 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
2376 2022-03-23 Tobias Burnus <tobias@codesourcery.com>
2378 PR middle-end/104285
2379 * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
2380 * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
2381 * testsuite/libgomp.c++/target-same-name-2.C: New test.
2382 * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
2383 * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
2384 * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
2386 2022-03-22 Tom de Vries <tdevries@suse.de>
2390 * testsuite/libgomp.c/pr104783-2.c: New test.
2392 2022-03-18 Tobias Burnus <tobias@codesourcery.com>
2395 * testsuite/libgomp.fortran/associate4.f90: New test.
2397 2022-03-18 Tom de Vries <tdevries@suse.de>
2400 * testsuite/libgomp.c/pr104952-1.c: New test.
2401 * testsuite/libgomp.c/pr104952-2.c: New test.
2403 2022-03-18 Jakub Jelinek <jakub@redhat.com>
2405 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
2406 variable next to pl variable.
2408 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
2410 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
2412 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
2413 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2415 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
2418 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
2419 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2421 2022-03-16 Marcel Vollweiler <marcel@codesourcery.com>
2423 * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
2424 omp_set_max_active_levels.
2425 * testsuite/libgomp.fortran/icv-8.f90: New test.
2427 2022-03-16 Thomas Schwinge <thomas@codesourcery.com>
2430 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
2432 2022-03-13 Tobias Burnus <tobias@codesourcery.com>
2434 * libgomp.texi: Fix typo.
2436 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
2438 PR middle-end/100280
2439 PR middle-end/104892
2440 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
2441 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
2442 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2444 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
2446 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2447 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
2448 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
2451 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
2453 PR middle-end/104892
2454 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
2456 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
2457 enable '--param=openacc-kernels=decompose' and adjust.
2458 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
2460 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2461 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
2464 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
2467 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
2468 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
2469 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2470 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
2472 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
2474 PR middle-end/100280
2475 PR middle-end/104086
2476 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
2478 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
2480 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
2482 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2485 2022-03-10 Hafiz Abid Qadeer <abidh@codesourcery.com>
2487 * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
2488 trait. Test last index in w and v array. Remove redundant
2489 assignment to V(1). Move alignment checks at the end of
2492 2022-03-10 Tom de Vries <tdevries@suse.de>
2494 * testsuite/libgomp.c/pr104783.c: New test.
2496 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
2499 PR middle-end/102330
2500 PR middle-end/104774
2501 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2503 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
2505 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
2507 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
2509 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
2511 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
2513 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
2515 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
2517 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
2519 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
2521 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
2523 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
2525 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
2527 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
2529 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
2530 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
2531 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2533 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
2536 * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
2537 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
2538 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
2539 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
2541 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
2544 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
2545 expected diagnostics.
2547 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
2549 PR middle-end/104784
2550 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
2551 Test with '--param=openacc-kernels=decompose'.
2552 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
2554 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
2556 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
2558 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
2560 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
2562 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
2564 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
2566 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
2568 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
2570 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
2572 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
2574 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
2576 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
2578 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
2580 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
2582 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
2584 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
2586 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
2588 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
2590 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
2592 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
2594 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
2596 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
2598 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
2600 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
2602 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
2604 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
2606 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
2608 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
2610 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
2612 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
2614 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
2617 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
2619 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
2620 Test '-fopt-info-omp-all'.
2621 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
2623 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
2625 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
2627 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
2629 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
2631 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
2633 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
2635 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
2637 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
2639 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
2641 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
2643 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
2645 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
2647 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
2649 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
2651 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
2653 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
2655 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
2657 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
2659 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
2661 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
2663 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
2665 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
2667 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
2669 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
2671 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
2673 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
2675 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
2677 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
2679 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
2681 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
2683 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
2686 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
2688 PR middle-end/100280
2689 PR middle-end/104132
2690 PR middle-end/104133
2691 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2694 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
2696 PR middle-end/100280
2697 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
2698 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2701 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
2703 PR middle-end/100280
2704 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
2705 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2708 2022-02-28 Tom de Vries <tdevries@suse.de>
2710 * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
2711 * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
2712 * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
2713 * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
2714 * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
2715 * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
2717 2022-02-24 Tom de Vries <tdevries@suse.de>
2719 * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
2720 * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
2721 * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
2722 * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
2723 * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
2724 * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
2725 * testsuite/libgomp.c/declare-variant-3.h: New header file.
2727 2022-02-22 Thomas Schwinge <thomas@codesourcery.com>
2729 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
2730 gang-redundant execution.
2732 2022-02-22 Tom de Vries <tdevries@suse.de>
2735 * config/nvptx/bar.c (generation_to_barrier): New function, copied
2736 from config/rtems/bar.c.
2737 (futex_wait, futex_wake): New function.
2738 (do_spin, do_wait): New function, copied from config/linux/wait.h.
2739 (gomp_barrier_wait_end, gomp_barrier_wait_last)
2740 (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
2741 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
2742 and replace with include of config/linux/bar.c.
2743 * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
2744 (gomp_barrier_init): Init new fields.
2745 * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
2747 * testsuite/libgomp.c/pr99555-1.c: Same.
2748 * testsuite/libgomp.fortran/task-detach-6.f90: Same.
2750 2022-02-22 Tom de Vries <tdevries@suse.de>
2753 * testsuite/libgomp.c++/pr96390.C: Add additional-option
2754 -foffload=-Wa,--verify for nvptx.
2755 * testsuite/libgomp.c-c++-common/pr96390.c: Same.
2757 2022-02-15 Tobias Burnus <tobias@codesourcery.com>
2759 * testsuite/libgomp.fortran/depend-4.f90: New test.
2761 2022-02-10 Tobias Burnus <tobias@codesourcery.com>
2764 * testsuite/libgomp.c++/target-virtual-1.C: New test.
2766 2022-02-10 Marcel Vollweiler <marcel@codesourcery.com>
2768 * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
2769 * target.c (copy_firstprivate_data): Copy only if host address is not
2771 * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
2772 * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
2773 * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
2774 * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
2775 * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
2776 * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
2777 * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
2778 * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
2779 * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
2780 * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
2782 2022-02-08 Jakub Jelinek <jakub@redhat.com>
2785 * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
2787 * testsuite/libgomp.c/pr104385.c: New test.
2789 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
2791 * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
2792 STOP of previous commit.
2794 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
2796 * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
2797 from is_64bit_aligned_.
2798 * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
2799 and use it, more implicit none, remove unused argument.
2801 2022-02-03 David Seifert <soap@gentoo.org>
2802 Jakub Jelinek <jakub@redhat.com>
2804 * configure.ac: Support --disable-werror.
2805 * configure: Regenerate.
2807 2022-02-01 Tom de Vries <tdevries@suse.de>
2809 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
2811 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
2812 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
2814 2022-02-01 Tom de Vries <tdevries@suse.de>
2816 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
2817 num_workers for nvidia accelerator to fix libgomp error 'insufficient
2819 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
2821 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
2823 2022-02-01 Tom de Vries <tdevries@suse.de>
2825 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
2827 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2829 2022-01-31 Martin Liska <mliska@suse.cz>
2831 * acinclude.m4: Detect *_ld_is_mold and use it.
2832 * configure: Regenerate.
2834 2022-01-27 Tobias Burnus <tobias@codesourcery.com>
2836 * libgomp.texi (OpenMP 5.0): Update implementation status.
2838 2022-01-21 Thomas Schwinge <thomas@codesourcery.com>
2840 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
2841 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
2842 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
2843 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
2844 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
2845 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
2846 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
2847 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
2848 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
2849 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
2850 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
2851 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
2852 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
2853 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
2854 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
2856 2022-01-19 Marcel Vollweiler <marcel@codesourcery.com>
2858 * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
2859 "static") to make the device num available in the offload image.
2861 2022-01-19 Martin Liska <mliska@suse.cz>
2862 Thomas Schwinge <thomas@codesourcery.com>
2864 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
2866 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
2867 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
2869 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
2870 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2871 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
2872 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
2873 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
2875 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
2877 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
2879 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
2881 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
2883 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
2885 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2886 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
2887 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
2889 2022-01-18 Martin Liska <mliska@suse.cz>
2891 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
2893 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
2894 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
2895 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
2896 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2897 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
2898 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
2899 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
2900 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
2901 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
2902 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
2903 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
2904 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
2905 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2906 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
2907 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
2909 2022-01-17 Thomas Schwinge <thomas@codesourcery.com>
2911 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
2912 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
2913 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
2915 2022-01-17 Julian Brown <julian@codesourcery.com>
2916 Thomas Schwinge <thomas@codesourcery.com>
2918 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
2919 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
2920 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
2922 2022-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
2923 Andrew Stubbs <ams@codesourcery.com>
2925 * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
2926 the number of teams and threads if necessary.
2927 (gcn_exec): Automatically set the number of gangs and workers if
2930 2022-01-13 Hafiz Abid Qadeer <abidh@codesourcery.com>
2932 * testsuite/libgomp.fortran/allocate-1.c: New test.
2933 * testsuite/libgomp.fortran/allocate-1.f90: New test.
2934 * libgomp.texi: Remove string that says that allocate clause
2935 support is for C/C++ only.
2937 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
2939 * testsuite/libgomp.c-c++-common/on_device_arch.h
2940 (any_device_arch, any_device_arch_intel_mic): New.
2941 * testsuite/lib/libgomp.exp
2942 (check_effective_target_offload_device_any_intel_mic): New.
2943 * testsuite/libgomp.c-c++-common/target-45.c: Use it.
2944 * testsuite/libgomp.fortran/target10.f90: Likewise.
2946 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
2948 PR tree-optimization/102192
2949 * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
2950 '-Wuninitialized' diagnostics.
2952 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
2954 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
2955 current '-Wuninitialized' diagnostics.
2956 * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
2957 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
2958 * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
2959 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
2960 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
2961 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
2962 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
2963 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2964 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
2965 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
2966 * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
2969 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
2971 * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
2972 for 'offload_device_intel_mic'.
2974 2022-01-13 Julian Brown <julian@codesourcery.com>
2975 Thomas Schwinge <thomas@codesourcery.com>
2977 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
2978 offloading execution XFAIL.
2980 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
2982 PR middle-end/100280
2983 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
2985 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
2986 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2989 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
2991 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
2993 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
2995 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
2996 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
2997 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
2998 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
2999 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3001 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3002 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3003 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3004 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
3006 2022-01-04 Tobias Burnus <tobias@codesourcery.com>
3008 * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
3009 * testsuite/libgomp.fortran/target10.f90: Likewise.
3011 2022-01-04 Chung-Lin Tang <cltang@codesourcery.com>
3013 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
3014 into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
3015 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3017 2022-01-03 Jakub Jelinek <jakub@redhat.com>
3019 * libgomp.texi: Bump @copying's copyright year.
3021 2021-12-13 Tobias Burnus <tobias@codesourcery.com>
3023 * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
3024 * testsuite/libgomp.fortran/atomic-19.f90: New test.
3026 2021-12-10 Andrew Stubbs <ams@codesourcery.com>
3028 * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
3029 (GOMP_OFFLOAD_load_image): Locate the offload variables via the
3030 table, not individual symbols.
3032 2021-12-09 Chung-Lin Tang <cltang@codesourcery.com>
3034 * testsuite/libgomp.c++/target-lambda-1.C: Only run under
3035 "target offload_device_nonshared_as"
3036 * testsuite/libgomp.c++/target-this-3.C: Likewise.
3037 * testsuite/libgomp.c++/target-this-4.C: Likewise.
3039 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
3041 * target.c (gomp_map_vars_existing): Make sure attached pointer is
3042 not overwritten during cross-host/device copying.
3043 (gomp_update): Likewise.
3044 (gomp_exit_data): Likewise.
3045 * testsuite/libgomp.c++/target-11.C: Adjust testcase.
3046 * testsuite/libgomp.c++/target-12.C: Likewise.
3047 * testsuite/libgomp.c++/target-15.C: Likewise.
3048 * testsuite/libgomp.c++/target-16.C: Likewise.
3049 * testsuite/libgomp.c++/target-17.C: Likewise.
3050 * testsuite/libgomp.c++/target-21.C: Likewise.
3051 * testsuite/libgomp.c++/target-23.C: Likewise.
3052 * testsuite/libgomp.c/target-23.c: Likewise.
3053 * testsuite/libgomp.c/target-29.c: Likewise.
3054 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
3056 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
3059 * libgomp.h (gomp_attach_pointer): Add bool parameter.
3060 * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
3061 (goacc_enter_data_internal): Likewise.
3062 * target.c (gomp_map_vars_existing): Update assert condition to
3063 include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
3064 (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
3065 parameter, add support for mapping a pointer with NULL target.
3066 (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
3067 parameter, add support for attaching a pointer with NULL target.
3068 (gomp_map_vars_internal): Update calls to gomp_map_pointer and
3069 gomp_attach_pointer, add handling for
3070 GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
3071 GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
3072 * testsuite/libgomp.c++/target-23.C: New testcase.
3073 * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
3074 * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
3075 * testsuite/libgomp.c++/target-this-1.C: New testcase.
3076 * testsuite/libgomp.c++/target-this-2.C: New testcase.
3077 * testsuite/libgomp.c++/target-this-3.C: New testcase.
3078 * testsuite/libgomp.c++/target-this-4.C: New testcase.
3079 * testsuite/libgomp.c++/target-this-5.C: New testcase.
3081 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
3083 * libgomp.texi (OpenMP 5.1): Update status.
3085 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
3087 * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
3089 2021-12-02 Chung-Lin Tang <cltang@codesourcery.com>
3092 * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
3093 * testsuite/libgomp.fortran/pr90030.f90: New test.
3095 2021-11-30 Kwok Cheung Yeung <kcy@codesourcery.com>
3096 Thomas Schwinge <thomas@codesourcery.com>
3098 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
3101 2021-11-30 Cesar Philippidis <cesar@codesourcery.com>
3102 Thomas Schwinge <thomas@codesourcery.com>
3104 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
3107 2021-11-29 Richard Biener <rguenther@suse.de>
3109 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
3112 2021-11-24 Jakub Jelinek <jakub@redhat.com>
3114 PR middle-end/103384
3115 * testsuite/libgomp.c/declare-variant-2.c: New test.
3117 2021-11-18 David Edelsohn <dje.gcc@gmail.com>
3119 * alloc.c (gomp_aligned_alloc): Fix typo.
3121 2021-11-18 Jakub Jelinek <jakub@redhat.com>
3124 * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
3125 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
3126 (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
3127 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
3128 * work.c (alloc_work_share, gomp_work_share_start): Likewise.
3129 * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
3130 gomp_aligned_alloc instead of team_malloc.
3132 2021-11-18 Jakub Jelinek <jakub@redhat.com>
3135 * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
3136 memalign over posix_memalign over aligned_alloc over fallback
3137 with malloc instead of aligned_alloc over _aligned_alloc over
3138 posix_memalign over memalign over fallback with malloc. For
3139 aligned_alloc, round up size up to multiple of al.
3141 2021-11-16 Jakub Jelinek <jakub@redhat.com>
3143 * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
3144 construct as implemented.
3146 2021-11-15 Tobias Burnus <tobias@codesourcery.com>
3148 * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
3150 2021-11-15 Jakub Jelinek <jakub@redhat.com>
3152 * task.c (gomp_create_target_task): Copy args array as well.
3153 * target.c (gomp_target_fallback): Add args argument.
3154 Set gomp_icv (true)->thread_limit_var if thread_limit is present.
3155 (GOMP_target): Adjust gomp_target_fallback caller.
3156 (GOMP_target_ext): Likewise.
3157 (gomp_target_task_fn): Likewise.
3158 * config/nvptx/team.c (gomp_nvptx_main): Set
3159 gomp_global_icv.thread_limit_var.
3160 * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
3162 2021-11-15 Jakub Jelinek <jakub@redhat.com>
3164 * config/nvptx/team.c (__gomp_team_num): Define as
3165 __attribute__((shared)) var.
3166 (gomp_nvptx_main): Initialize __gomp_team_num to 0.
3167 * config/nvptx/target.c (__gomp_team_num): Declare as
3168 extern __attribute__((shared)) var.
3169 (GOMP_teams4): Use __gomp_team_num as the team number instead of
3170 %ctaid.x. If first, initialize it to %ctaid.x. If num_teams_lower
3171 is bigger than num_blocks, use num_teams_lower teams and arrange for
3172 bumping of __gomp_team_num if !first and returning false once we run
3174 * config/nvptx/teams.c (__gomp_team_num): Declare as
3175 extern __attribute__((shared)) var.
3176 (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
3178 2021-11-15 Jakub Jelinek <jakub@redhat.com>
3180 * testsuite/libgomp.c/teams-5.c: New test.
3182 2021-11-12 Jakub Jelinek <jakub@redhat.com>
3185 * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
3187 * config/gcn/teams.c: ... here. New file.
3189 2021-11-12 Chung-Lin Tang <cltang@codesourcery.com>
3191 * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
3192 implicit map handling to allow a "superset" existing map as valid case.
3193 (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
3194 (get_implicit): New function to extract implicit status.
3195 (gomp_map_fields_existing): Adjust arguments in calls to
3196 gomp_map_vars_existing, and add uses of get_implicit.
3197 (gomp_map_vars_internal): Likewise.
3198 * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
3200 2021-11-12 Jakub Jelinek <jakub@redhat.com>
3202 * libgomp_g.h (GOMP_teams4): Declare.
3203 * libgomp.map (GOMP_5.1): Export GOMP_teams4.
3204 * target.c (GOMP_teams4): New function.
3205 * config/nvptx/target.c (GOMP_teams): Remove.
3206 (GOMP_teams4): New function.
3207 * config/gcn/target.c (GOMP_teams): Remove.
3208 (GOMP_teams4): New function.
3209 * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
3210 teams instead of <= 2.
3211 * testsuite/libgomp.c-c++-common/teams-2.c: New test.
3213 2021-11-11 Tobias Burnus <tobias@codesourcery.com>
3215 * testsuite/libgomp.fortran/teams-1.f90: New test.
3217 2021-11-11 Jakub Jelinek <jakub@redhat.com>
3219 * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
3220 * team.c (struct gomp_thread_start_data): Likewise.
3221 (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
3222 (gomp_team_start): Initialize start_data->num_teams and
3223 start_data->team_num. Update nthr->num_teams and nthr->team_num.
3224 * teams.c (gomp_num_teams, gomp_team_num): Remove.
3225 (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
3226 instead of gomp_num_teams and gomp_team_num.
3227 (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
3228 (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
3229 * testsuite/libgomp.c/teams-4.c: New test.
3231 2021-11-11 Jakub Jelinek <jakub@redhat.com>
3233 * testsuite/libgomp.c-c++-common/teams-1.c: New test.
3235 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
3237 * env.c (parse_gomp_openacc_dim): Restore parsing.
3239 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
3241 PR middle-end/102972
3242 * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
3244 * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
3245 * testsuite/libgomp.c/target-3.c: Likewise.
3246 * testsuite/libgomp.c/target-5.c: Likewise.
3247 * testsuite/libgomp.c/target-6.c: Likewise.
3248 * testsuite/libgomp.c/target-teams-1.c: Likewise.
3249 * testsuite/libgomp.c/teams-1.c: Likewise.
3250 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
3251 * testsuite/libgomp.c/thread-limit-3.c: Likewise.
3252 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
3253 * testsuite/libgomp.c/thread-limit-5.c: Likewise.
3254 * testsuite/libgomp.fortran/icv-3.f90: Likewise.
3255 * testsuite/libgomp.fortran/icv-4.f90: Likewise.
3256 * testsuite/libgomp.fortran/teams1.f90: Likewise.
3258 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
3260 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
3261 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
3263 2021-10-27 Jakub Jelinek <jakub@redhat.com>
3265 * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
3266 aren't implemented for Fortran yet.
3268 2021-10-27 Jakub Jelinek <jakub@redhat.com>
3270 * testsuite/libgomp.c/loop-26.c: New test.
3271 * testsuite/libgomp.c/loop-27.c: New test.
3273 2021-10-25 Tobias Burnus <tobias@codesourcery.com>
3276 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
3277 instead of #include <alloca.h> + alloca.
3279 2021-10-21 Chung-Lin Tang <cltang@codesourcery.com>
3281 * libgomp.texi (Support of strictly structured blocks in Fortran):
3283 * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
3285 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
3287 * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
3288 * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
3290 2021-10-20 Jakub Jelinek <jakub@redhat.com>
3293 * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
3294 (struct gomp_work_share): Only use aligned(64) attribute if
3295 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
3296 add padding before lock to ensure lock is at offset 64 bytes
3298 (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
3299 New poor man's static assertions.
3300 * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
3301 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
3303 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
3304 Richard Biener <rguenther@suse.de>
3306 * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
3308 2021-10-18 Jakub Jelinek <jakub@redhat.com>
3310 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
3311 && gomp_places_list_len < count after nfirst <= nlast loop condition.
3313 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
3322 * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
3324 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3326 * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
3327 type from char [50] to const char *.
3328 (places_array): Add a testcase for simplified syntax place followed
3329 by length or length and stride.
3331 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3333 * env.c (parse_one_place): Handle non-negative-number the same
3334 as { non-negative-number }. Reject even !number:1 and
3335 !number:1:stride or !place:1 or !place:1:stride instead of just
3336 length other than 1.
3337 * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
3338 and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
3339 omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
3341 * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
3344 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3346 * env.c (parse_schedule): For strtoul or strtoull calls which don't
3347 clearly reject return value 0 as invalid handle the case where end
3348 pointer is the same as first argument as invalid.
3349 (parse_unsigned_long_1): Likewise.
3350 (parse_one_place): Likewise.
3351 (parse_places_var): Likewise.
3352 (parse_stacksize): Likewise.
3353 (parse_spincount): Likewise.
3354 (parse_affinity): Likewise.
3355 (parse_gomp_openacc_dim): Likewise. Avoid strict aliasing violation.
3356 Make code valid C89.
3357 * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
3358 For strtoul calls which don't clearly reject return value 0 as
3359 invalid handle the case where end pointer is the same as first
3360 argument as invalid.
3361 (gomp_affinity_init_level_1): Likewise.
3362 (gomp_affinity_init_numa_domains): Likewise.
3363 * config/rtems/proc.c (parse_thread_pools): Likewise.
3365 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3367 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
3368 after creating count places clean up and return immediately.
3369 * testsuite/libgomp.c/places-6.c: New test.
3370 * testsuite/libgomp.c/places-7.c: New test.
3371 * testsuite/libgomp.c/places-8.c: New test.
3372 * testsuite/libgomp.c/places-9.c: New test.
3373 * testsuite/libgomp.c/places-10.c: New test.
3375 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3377 * env.c (parse_places_var): Handle numa_domains as level 5.
3378 * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
3380 (gomp_affinity_init_level): Use it instead of
3381 gomp_affinity_init_level_1 for level == 5.
3382 * testsuite/libgomp.c/places-5.c: New test.
3384 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3386 * env.c (parse_places_var): Handle ll_caches as level 4.
3387 * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
3389 (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
3391 (gomp_affinity_init_level): Likewise.
3392 * testsuite/libgomp.c/places-1.c: New test.
3393 * testsuite/libgomp.c/places-2.c: New test.
3394 * testsuite/libgomp.c/places-3.c: New test.
3395 * testsuite/libgomp.c/places-4.c: New test.
3397 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
3399 * libgomp.texi (OpenMP 5.0): Update entry for declare variant
3402 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
3404 * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
3406 2021-10-12 Julian Brown <julian@codesourcery.com>
3408 * target.c (gomp_copy_host2dev): Release device lock on cbuf
3411 2021-10-12 Tobias Burnus <tobias@codesourcery.com>
3413 * testsuite/libgomp.fortran/icv-3.f90: New.
3414 * testsuite/libgomp.fortran/icv-4.f90: New.
3416 2021-10-12 Jakub Jelinek <jakub@redhat.com>
3418 * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
3419 omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
3420 OMP_TEAMS_THREAD_LIMIT): Document.
3422 2021-10-12 Jakub Jelinek <jakub@redhat.com>
3424 * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
3425 to avoid makeinfo warnings.
3427 2021-10-12 Jakub Jelinek <jakub@redhat.com>
3429 * testsuite/libgomp.c-c++-common/icv-3.c: New test.
3430 * testsuite/libgomp.c-c++-common/icv-4.c: New test.
3432 2021-10-12 Jakub Jelinek <jakub@redhat.com>
3436 * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
3437 allocation sizes from 420 to 320 and from 768 to 568.
3438 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
3439 * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
3440 for cr from 16 to 4.
3442 2021-10-12 Jakub Jelinek <jakub@redhat.com>
3444 * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
3445 * testsuite/libgomp.c/scan-12.c: Likewise.
3446 * testsuite/libgomp.c/scan-13.c: Likewise.
3447 * testsuite/libgomp.c/scan-14.c: Likewise.
3448 * testsuite/libgomp.c/scan-15.c: Likewise.
3449 * testsuite/libgomp.c/scan-16.c: Likewise.
3450 * testsuite/libgomp.c/scan-17.c: Likewise.
3451 * testsuite/libgomp.c/scan-18.c: Likewise.
3452 * testsuite/libgomp.c/scan-19.c: Likewise.
3453 * testsuite/libgomp.c/scan-20.c: Likewise.
3454 * testsuite/libgomp.c/scan-21.c: Likewise.
3455 * testsuite/libgomp.c/scan-22.c: Likewise.
3456 * testsuite/libgomp.c++/scan-9.C: Likewise.
3457 * testsuite/libgomp.c++/scan-10.C: Likewise.
3458 * testsuite/libgomp.c++/scan-11.C: Likewise.
3459 * testsuite/libgomp.c++/scan-12.C: Likewise.
3460 * testsuite/libgomp.c++/scan-13.C: Likewise.
3461 * testsuite/libgomp.c++/scan-14.C: Likewise.
3462 * testsuite/libgomp.c++/scan-15.C: Likewise.
3463 * testsuite/libgomp.c++/scan-16.C: Likewise.
3465 2021-10-12 Kewen Lin <linkw@linux.ibm.com>
3467 * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
3469 2021-10-11 Marcel Vollweiler <marcel@codesourcery.com>
3471 * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
3473 * omp.h.in: Add deprecated flag for omp_atv_sequential.
3474 * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
3475 * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
3476 * testsuite/libgomp.fortran/alloc-12.f90: New test.
3478 2021-10-11 Jakub Jelinek <jakub@redhat.com>
3480 * omp.h.in (omp_set_num_teams, omp_get_max_teams,
3481 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
3482 * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
3483 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
3484 * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
3485 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
3486 * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
3487 * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
3488 omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
3489 omp_set_teams_thread_limit{,_,_8_}.
3490 * icv.c (omp_set_num_teams, omp_get_max_teams,
3491 omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
3493 * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
3494 (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
3495 (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
3497 * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
3498 gomp_teams_thread_limit_var as fallback if not zero. If num_teams
3499 is not specified, use gomp_nteams_var.
3500 * fortran.c (omp_set_num_teams, omp_get_max_teams,
3501 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
3503 (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
3504 omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
3505 omp_get_teams_thread_limit_): New functions.
3507 2021-10-09 liuhongt <hongtao.liu@intel.com>
3509 * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
3510 * testsuite/libgomp.c++/scan-11.C: Ditto.
3511 * testsuite/libgomp.c++/scan-12.C: Ditto.
3512 * testsuite/libgomp.c++/scan-13.C: Ditto.
3513 * testsuite/libgomp.c++/scan-14.C: Ditto.
3514 * testsuite/libgomp.c++/scan-15.C: Ditto.
3515 * testsuite/libgomp.c++/scan-16.C: Ditto.
3516 * testsuite/libgomp.c++/scan-9.C: Ditto.
3517 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
3518 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
3519 * testsuite/libgomp.c/scan-11.c: Ditto.
3520 * testsuite/libgomp.c/scan-12.c: Ditto.
3521 * testsuite/libgomp.c/scan-13.c: Ditto.
3522 * testsuite/libgomp.c/scan-14.c: Ditto.
3523 * testsuite/libgomp.c/scan-15.c: Ditto.
3524 * testsuite/libgomp.c/scan-16.c: Ditto.
3525 * testsuite/libgomp.c/scan-17.c: Ditto.
3526 * testsuite/libgomp.c/scan-18.c: Ditto.
3527 * testsuite/libgomp.c/scan-19.c: Ditto.
3528 * testsuite/libgomp.c/scan-20.c: Ditto.
3529 * testsuite/libgomp.c/scan-21.c: Ditto.
3530 * testsuite/libgomp.c/scan-22.c: Ditto.
3532 2021-10-09 Jakub Jelinek <jakub@redhat.com>
3534 * libgomp.texi (OpenMP 5.1): Mention implemented support for
3535 structured block sequences in C/C++. Mention support for
3536 unconstrained/reproducible modifiers on order clause.
3537 Mention partial (C/C++ only) support of extentensions to atomics
3538 construct. Mention partial (C/C++ on clause only) support of
3539 align/allocator modifiers on allocate clause.
3541 2021-10-02 Tobias Burnus <tobias@codesourcery.com>
3543 * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
3544 based on libgomp.c-c++-common/order-reproducible-1.c.
3545 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
3546 * testsuite/libgomp.fortran/my-usleep.c: New test.
3548 2021-10-01 Tobias Burnus <tobias@codesourcery.com>
3550 * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
3551 * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
3552 * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
3553 * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
3554 based on libgomp.c-c++-common/alloc-9.c.
3556 2021-10-01 Jakub Jelinek <jakub@redhat.com>
3558 * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
3559 * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
3561 2021-10-01 Jakub Jelinek <jakub@redhat.com>
3563 * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
3565 * env.c (handle_omp_display_env): Use ialias_call.
3566 * icv-device.c: Move ialias right below each function.
3567 (omp_get_device_num): Use ialias_call.
3568 * fortran.c (omp_fulfill_event): Add ialias_redirect.
3569 * icv.c (omp_get_active_level): Add ialias_redirect.
3571 2021-10-01 Jakub Jelinek <jakub@redhat.com>
3573 * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
3574 __alloc_align__ (1) attribute.
3575 * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
3577 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
3579 * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
3580 for -fintrinsic-modules-path= warning of the C compiler.
3581 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
3582 * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
3584 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
3586 * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
3587 omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
3588 * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
3590 * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
3592 * testsuite/libgomp.fortran/alloc-10.f90: New test.
3593 * testsuite/libgomp.fortran/alloc-6.f90: New test.
3594 * testsuite/libgomp.fortran/alloc-7.c: New test.
3595 * testsuite/libgomp.fortran/alloc-7.f90: New test.
3596 * testsuite/libgomp.fortran/alloc-8.f90: New test.
3597 * testsuite/libgomp.fortran/alloc-9.f90: New test.
3599 2021-09-30 Jakub Jelinek <jakub@redhat.com>
3601 * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
3602 omp_realloc): New prototypes.
3603 (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
3605 * allocator.c: Include string.h.
3606 (omp_aligned_alloc): No longer static, add ialias. Add new_alignment
3607 variable and use it instead of alignment so that when retrying the old
3608 alignment is used again. Don't retry if new alignment is the same
3609 as old alignment, unless allocator had pool size.
3610 (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
3611 (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
3612 * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
3613 omp_aligned_calloc and omp_realloc.
3614 * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
3615 omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
3616 * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
3617 * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
3618 * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
3619 * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
3621 2021-09-28 Tobias Burnus <tobias@codesourcery.com>
3624 * configure.ac: Only check for int-type = 2*size_t support when
3625 building with Fortran support.
3626 * configure: Regenerate.
3628 2021-09-28 Thomas Schwinge <thomas@codesourcery.com>
3630 * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
3631 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3633 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
3635 * team.c: Initialize start_data.
3636 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
3637 * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
3639 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
3641 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
3642 dg-message back to dg-note.
3644 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
3647 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
3648 expected dg-note output.
3650 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
3653 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
3654 r12-3722 by removing -Wno-missing-include-dirs.
3655 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
3657 2021-09-22 Jakub Jelinek <jakub@redhat.com>
3659 * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
3660 * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
3662 2021-09-21 Tobias Burnus <tobias@codesourcery.com>
3665 * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
3667 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
3669 2021-09-18 Jakub Jelinek <jakub@redhat.com>
3671 * testsuite/libgomp.c++/default-1.C: New test.
3672 * testsuite/libgomp.c-c++-common/default-1.c: New test.
3673 * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
3674 to default clause in C and C++" as implemented.
3676 2021-09-17 Julian Brown <julian@codesourcery.com>
3678 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
3680 2021-09-17 Julian Brown <julian@codesourcery.com>
3682 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
3684 2021-09-17 Jakub Jelinek <jakub@redhat.com>
3686 * libgomp.texi (OpenMP 5.1): Spelling fix,
3687 declare variante -> declare variant.
3689 2021-09-17 Jakub Jelinek <jakub@redhat.com>
3691 * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
3692 Use /* */ comments instead of //.
3693 * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
3694 * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
3695 * testsuite/libgomp.c++/atomic-16.C: New test.
3696 * testsuite/libgomp.c++/atomic-17.C: New test.
3698 2021-09-10 Jakub Jelinek <jakub@redhat.com>
3700 * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
3701 * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
3702 * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
3704 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
3706 * libgomp.texi (OpenMP Implementation Status): Extend
3708 (OpenACC Profiling Interface): Fix typo.
3710 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
3712 * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
3713 not to 4.5; link to new section.
3714 (OpenMP Implementation Status): New.
3716 2021-09-06 Thomas Schwinge <thomas@codesourcery.com>
3718 * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
3720 2021-09-03 Tobias Burnus <tobias@codesourcery.com>
3722 * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
3724 * testsuite/libgomp.fortran/error-1.f90: Likewise.
3726 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
3727 Jakub Jelinek <jakub@redhat.com>
3729 * testsuite/libgomp.c/address-space-1.c: New file.
3731 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
3733 * testsuite/lib/libgomp.exp
3734 (check_effective_target_offload_target_intelmic): Remove 'proc'.
3735 (check_effective_target_offload_device_intel_mic): New 'proc'.
3736 * testsuite/libgomp.c-c++-common/on_device_arch.h
3737 (device_arch_intel_mic, on_device_arch_intel_mic): New.
3738 * testsuite/libgomp.c-c++-common/target-45.c: Use that for
3740 * testsuite/libgomp.fortran/target10.f90: Likewise.
3742 2021-08-23 Tobias Burnus <tobias@codesourcery.com>
3744 * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
3745 * testsuite/libgomp.fortran/taskloop-4.f90: New test.
3746 * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
3747 * testsuite/libgomp.fortran/taskloop-5.f90: New test.
3749 2021-08-23 Jakub Jelinek <jakub@redhat.com>
3751 * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
3752 * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
3753 * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
3755 2021-08-22 Thomas Schwinge <thomas@codesourcery.com>
3757 * config/nvptx/error.c (fwrite, exit): Override, too.
3758 * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
3759 of offloading testing.
3760 * testsuite/libgomp.fortran/error-1.f90: Likewise.
3762 2021-08-20 Tobias Burnus <tobias@codesourcery.com>
3764 * testsuite/libgomp.fortran/error-1.f90: New test.
3766 2021-08-20 Jakub Jelinek <jakub@redhat.com>
3768 * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
3769 * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
3770 * error.c (GOMP_warning, GOMP_error): New functions.
3771 * testsuite/libgomp.c-c++-common/error-1.c: New test.
3773 2021-08-18 Tobias Burnus <tobias@codesourcery.com>
3775 * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
3776 omp_target_free. omp_target_is_present, omp_target_memcpy,
3777 omp_target_memcpy_rect, omp_target_associate_ptr,
3778 omp_target_disassociate_ptr): Add interface.
3779 * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
3780 omp_target_free. omp_target_is_present, omp_target_memcpy,
3781 omp_target_memcpy_rect, omp_target_associate_ptr,
3782 omp_target_disassociate_ptr): Add interface.
3783 * testsuite/libgomp.fortran/alloc-1.F90: Remove local
3784 interface block for omp_alloc + omp_free.
3785 * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
3786 * testsuite/libgomp.fortran/refcount-1.f90: New test.
3787 * testsuite/libgomp.fortran/target-12.f90: New test.
3789 2021-08-18 Jakub Jelinek <jakub@redhat.com>
3791 * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
3793 2021-08-17 Tobias Burnus <tobias@codesourcery.com>
3795 * testsuite/libgomp.fortran/scope-1.f90: New test.
3796 * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
3798 2021-08-17 Jakub Jelinek <jakub@redhat.com>
3800 * Makefile.am (libgomp_la_SOURCES): Add scope.c
3801 * Makefile.in: Regenerated.
3802 * libgomp_g.h (GOMP_scope_start): Declare.
3803 * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
3804 * scope.c: New file.
3805 * testsuite/libgomp.c-c++-common/scope-1.c: New test.
3806 * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
3808 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
3810 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
3813 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
3815 * testsuite/libgomp.fortran/masked-1.f90: New test.
3817 2021-08-13 Thomas Schwinge <thomas@codesourcery.com>
3819 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
3821 2021-08-12 Jakub Jelinek <jakub@redhat.com>
3823 * testsuite/libgomp.c-c++-common/masked-1.c: New test.
3825 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
3827 * env.c (parse_bind_var): Accept 'primary' as alias for
3829 (omp_display_env): Add TODO comment to
3830 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
3831 * libgomp.texi: Change 'master thread' to 'primary thread'
3832 in line with OpenMP 5.1.
3833 (omp_get_proc_bind): Add omp_proc_bind_primary and note that
3834 omp_proc_bind_master is an alias of it.
3835 (OMP_PROC_BIND): Mention 'PRIMARY'.
3836 * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
3837 (omp_proc_bind_primary): Add.
3838 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
3839 * omp_lib.f90.in (omp_proc_bind_primary): Add.
3840 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
3841 * omp_lib.h.in (omp_proc_bind_primary): Add.
3842 * testsuite/libgomp.c/affinity-1.c: Check that
3843 'primary' works and is identical to 'master'.
3845 2021-08-09 Julian Brown <julian@codesourcery.com>
3846 Kwok Cheung Yeung <kcy@codesourcery.com>
3847 Thomas Schwinge <thomas@codesourcery.com>
3849 * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
3851 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
3852 [acc_device_radeon]: Update.
3853 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
3854 [ACC_DEVICE_TYPE_radeon]: Likewise.
3855 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
3856 [acc_device_radeon]: Likewise.
3857 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
3858 [ACC_DEVICE_TYPE_radeon]: Likewise.
3859 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
3860 'openacc_radeon_accel_selected' and '-O0'.
3861 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3863 2021-08-05 Chung-Lin Tang <cltang@codesourcery.com>
3865 * icv-device.c (omp_get_device_num): New API function, host side.
3866 * fortran.c (omp_get_device_num_): New interface function.
3867 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
3868 * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
3869 omp_get_device_num_.
3870 * libgomp.texi (omp_get_device_num): Add documentation for new API
3872 * omp.h.in (omp_get_device_num): Add declaration.
3873 * omp_lib.f90.in (omp_get_device_num): Likewise.
3874 * omp_lib.h.in (omp_get_device_num): Likewise.
3875 * target.c (gomp_load_image_to_device): If additional entry for device
3876 number exists at end of returned entries from 'load_image_func' hook,
3877 copy the assigned device number over to the device variable.
3878 * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
3879 (omp_get_device_num): New API function, device side.
3880 * plugin/plugin-gcn.c ("symcat.h"): Add include.
3881 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
3882 at end of returned 'target_table' entries.
3883 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
3884 (omp_get_device_num): New API function, device side.
3885 * plugin/plugin-nvptx.c ("symcat.h"): Add include.
3886 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
3887 at end of returned 'target_table' entries.
3888 * testsuite/lib/libgomp.exp
3889 (check_effective_target_offload_target_intelmic): New function for
3890 testing for intelmic offloading.
3891 * testsuite/libgomp.c-c++-common/target-45.c: New test.
3892 * testsuite/libgomp.fortran/target10.f90: New test.
3894 2021-07-30 Thomas Schwinge <thomas@codesourcery.com>
3895 Ulrich Drepper <drepper@redhat.com>
3897 * fortran.c (omp_display_env_, omp_display_env_8_): Only
3898 '#ifndef LIBGOMP_OFFLOADED_ONLY'.
3900 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
3901 Julian Brown <julian@codesourcery.com>
3902 Kwok Cheung Yeung <kcy@codesourcery.com>
3904 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
3905 's%oaccdevlow%oaccloops%g'.
3906 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
3907 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3908 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
3910 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
3912 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
3914 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
3916 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
3918 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
3920 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
3922 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
3924 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
3926 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
3928 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
3930 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
3932 2021-07-27 Ulrich Drepper <drepper@gmail.com>
3934 * env.c (wait_policy, stacksize): New static variables,
3935 move out of handle_omp_display_env.
3936 (omp_display_env): New function. The meat of the old
3937 handle_omp_display_env function.
3938 (handle_omp_display_env): Change to not take parameters
3939 and instead use the global variables. Only perform
3940 parsing, defer to omp_display_env for the implementation.
3941 (initialize_env): Remove local variables wait_policy and
3942 stacksize. Don't pass parameters to handle_omp_display_env.
3943 * fortran.c: Add ialias_redirect for omp_display_env.
3944 (omp_display_env_, omp_display_env_8_): New functions.
3945 * libgomp.map (OMP_5.1): New version. Add omp_display_env,
3946 omp_display_env_, and omp_display_env_8_.
3947 * omp.h.in: Declare omp_display_env.
3948 * omp_lib.f90.in: Likewise.
3949 * omp_lib.h.in: Likewise.
3951 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
3952 Julian Brown <julian@codesourcery.com>
3954 * target.c (gomp_coalesce_buf_add): Update comment.
3955 (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
3957 (gomp_map_vars_internal): Only 'if (!aq)', do
3958 'gomp_coalesce_buf_add'.
3959 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
3962 2021-07-27 Julian Brown <julian@codesourcery.com>
3963 Thomas Schwinge <thomas@codesourcery.com>
3965 * libgomp.h (gomp_copy_host2dev): Update prototype.
3966 * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
3967 argument to gomp_copy_host2dev (false).
3968 * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
3969 (copy_data): Don't free src.
3970 (queue_push_copy): Remove free_src handling.
3971 (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
3972 (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
3974 (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
3976 * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
3977 (gomp_copy_host2dev): Add EPHEMERAL parameter. Snapshot source
3978 data when true, and set up deferred freeing of temporary buffer.
3979 (gomp_copy_dev2host): Update call to goacc_device_copy_async.
3980 (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
3981 (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
3982 calls to gomp_copy_host2dev with appropriate ephemeral argument.
3983 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
3986 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
3987 Tom de Vries <tom@codesourcery.com>
3989 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
3990 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
3992 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
3994 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
3995 sequencing of 'async' data copying vs. profiling events.
3996 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
3999 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
4000 Julian Brown <julian@codesourcery.com>
4002 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
4003 'async'/'wait' issue.
4004 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
4005 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
4006 * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
4008 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
4009 Joseph Myers <joseph@codesourcery.com>
4010 Cesar Philippidis <cesar@codesourcery.com>
4012 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
4014 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
4016 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
4018 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
4020 2021-07-20 Thomas Schwinge <thomas@codesourcery.com>
4023 * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
4024 '-Wno-error=array-bounds'.
4025 * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
4026 * libgomp.h [__AMDGCN__]: Likewise.
4028 2021-07-19 Thomas Schwinge <thomas@codesourcery.com>
4031 * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
4032 * libgomp.h [__AMDGCN__]: Likewise.
4034 2021-07-13 Jakub Jelinek <jakub@redhat.com>
4035 Florian Weimer <fweimer@redhat.com>
4037 * config/linux/sem.h: Don't include limits.h.
4038 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
4039 * config/linux/affinity.c: Include limits.h.
4041 2021-07-01 Jakub Jelinek <jakub@redhat.com>
4044 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
4046 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
4049 * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
4050 -foffload=nvptx-none= by -foffload-options=nvptx-none= to
4051 avoid disabling other offload targets.
4052 * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
4053 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
4054 * testsuite/libgomp.c/target-44.c: Likewise.
4056 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
4058 * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
4059 target has shared memory and disable some scalar pointer/allocatable
4060 checks if not as firstprivate does not work.
4062 2021-06-25 Chung-Lin Tang <cltang@codesourcery.com>
4065 * testsuite/libgomp.c-c++-common/struct-elem-5.c:
4066 Add "target offload_device_nonshared_as" condition for enabling test.
4068 2021-06-24 Jakub Jelinek <jakub@redhat.com>
4070 * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
4071 * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
4072 * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
4073 * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
4075 2021-06-23 Jakub Jelinek <jakub@redhat.com>
4077 PR middle-end/101167
4078 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
4080 2021-06-17 Chung-Lin Tang <cltang@codesourcery.com>
4082 * hashtab.h (htab_clear): New function with initialization code
4083 factored out from...
4084 (htab_create): ...here, adjust to use htab_clear function.
4085 * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
4086 special refcount values, add comments.
4087 (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
4088 (REFCOUNT_LINK): Likewise.
4089 (REFCOUNT_STRUCTELEM): New special refcount range for structure
4091 (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
4093 (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
4094 (REFCOUNT_STRUCTELEM_FLAG_LAST): Flag to indicate last sibling.
4095 (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
4096 (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
4097 (struct splay_tree_key_s): Add structelem_refcount and
4098 structelem_refcount_ptr fields into a union with dynamic_refcount.
4100 (gomp_map_vars): Delete declaration.
4101 (gomp_map_vars_async): Likewise.
4102 (gomp_unmap_vars): Likewise.
4103 (gomp_unmap_vars_async): Likewise.
4104 (goacc_map_vars): New declaration.
4105 (goacc_unmap_vars): Likewise.
4106 * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
4107 (goacc_enter_datum): Likewise.
4108 (goacc_enter_data_internal): Likewise.
4109 * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
4110 and goacc_unmap_vars.
4111 (GOACC_data_start): Adjust to use goacc_map_vars.
4112 (GOACC_data_end): Adjust to use goacc_unmap_vars.
4113 * target.c (hash_entry_type): New typedef.
4114 (htab_alloc): New function hook for hashtab.h.
4115 (htab_free): Likewise.
4116 (htab_hash): Likewise.
4117 (htab_eq): Likewise.
4118 (hashtab.h): Add file include.
4119 (gomp_increment_refcount): New function.
4120 (gomp_decrement_refcount): Likewise.
4121 (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
4122 gomp_increment_refcount.
4123 (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
4124 to gomp_map_vars_existing.
4125 (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
4126 variable to guard OpenMP specific paths, adjust calls to
4127 gomp_map_vars_existing, add structure element sibling splay_tree_key
4128 sequence creation code, adjust Fortran map case to avoid increment
4130 (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
4131 local refcount_set if caller passed in NULL, adjust call to
4132 gomp_map_vars_internal.
4133 (gomp_map_vars_async): Adjust and rename into...
4134 (goacc_map_vars): ...this new function, adjust call to
4135 gomp_map_vars_internal.
4136 (gomp_remove_splay_tree_key): New function with code factored out from
4137 gomp_remove_var_internal.
4138 (gomp_remove_var_internal): Add code to handle removing multiple
4139 splay_tree_key sequence for structure elements, adjust code to use
4140 gomp_remove_splay_tree_key for splay-tree key removal.
4141 (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
4142 gomp_decrement_refcount.
4143 (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
4144 local refcount_set if caller passed in NULL, adjust call to
4145 gomp_unmap_vars_internal.
4146 (gomp_unmap_vars_async): Adjust and rename into...
4147 (goacc_unmap_vars): ...this new function, adjust call to
4148 gomp_unmap_vars_internal.
4149 (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
4151 (GOMP_target_ext): Likewise.
4152 (gomp_target_data_fallback): Adjust call to gomp_map_vars.
4153 (GOMP_target_data): Likewise.
4154 (GOMP_target_data_ext): Likewise.
4155 (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
4156 (gomp_exit_data): Add refcount_set parameter, adjust to use
4157 gomp_decrement_refcount, adjust to queue splay-tree keys for removal
4159 (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
4160 gomp_map_vars and gomp_exit_data.
4161 (gomp_target_task_fn): Likewise.
4162 * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
4163 * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
4164 * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
4165 * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
4166 * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
4167 * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
4169 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
4172 * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
4174 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
4175 Thomas Schwinge <thomas@codesourcery.com>
4177 * libgomp.map (GOACC_2.0.2): New symbol version.
4178 * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
4179 * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
4181 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
4182 Andrew Stubbs <ams@codesourcery.com>
4184 * oacc-mem.c (goacc_enter_exit_data_internal): New function,
4186 (GOACC_enter_exit_data): ... here.
4187 (GOACC_declare): Use it.
4189 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
4191 * oacc-parallel.c (GOACC_declare): Move...
4192 * oacc-mem.c: ... here.
4193 * libgomp_g.h: Adjust.
4195 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
4196 Thomas Schwinge <thomas@codesourcery.com>
4198 * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
4201 2021-06-10 Jakub Jelinek <jakub@redhat.com>
4203 PR tree-optimization/100981
4204 * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
4205 dsdotr and dsdoti to 0.
4207 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
4209 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
4210 if atomic compare-and-swap is supported on 'int'.
4212 2021-06-09 Richard Biener <rguenther@suse.de>
4214 PR tree-optimization/100981
4215 * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
4217 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4219 * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
4221 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4223 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4224 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
4226 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4228 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
4229 '-DACC_MEM_SHARED=0'.
4230 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
4231 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
4232 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
4233 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
4234 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
4235 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
4236 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
4237 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
4238 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
4239 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
4240 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
4241 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
4242 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
4243 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
4244 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
4245 'acc_device_radeon' testing.
4246 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
4247 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
4248 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
4249 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
4250 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
4251 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
4252 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
4253 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
4254 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
4255 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
4256 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
4257 for non-'openacc_nvidia_accel_selected'.
4258 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
4259 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
4260 all implement this checking".
4261 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
4262 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
4263 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
4264 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
4265 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
4267 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4269 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
4270 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
4272 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4274 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
4275 for 'acc_device_radeon'.
4277 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4279 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
4280 for non-'acc_device_nvidia'.
4282 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4284 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
4285 'acc_device_radeon' testing.
4286 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4287 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4288 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4290 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4292 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
4293 require 'openacc_nvidia_accel_selected'. Fix up for
4294 'ACC_DEVICE_TYPE_radeon'.
4296 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4298 * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
4299 'openacc_nvidia_accel_selected'.
4300 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
4302 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4304 * testsuite/lib/libgomp.exp
4305 (check_effective_target_openacc_radeon_accel_selected):
4308 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4310 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
4313 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4315 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
4316 <acc_device_nvidia>: Update comment.
4318 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
4320 * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
4322 2021-05-27 Jakub Jelinek <jakub@redhat.com>
4324 * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
4325 check_effective_target_openacc_cublas,
4326 check_effective_target_openacc_cudart): New.
4327 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
4328 target openacc_cublas.
4329 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
4330 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
4331 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
4332 target openacc_cuda.
4333 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
4334 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
4335 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
4336 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
4337 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
4338 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
4339 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
4340 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
4341 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
4342 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
4343 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
4344 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
4345 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
4346 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
4347 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
4348 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
4349 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
4350 targets openacc_cublas and openacc_cudart.
4351 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
4352 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
4353 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
4354 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
4355 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
4356 Require effective target openacc_cudart.
4357 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
4358 for effective target openacc_cuda and add && defined USE_CUDA_H to
4359 preprocessor conditionals. Guard -lcuda also on openacc_cuda
4362 2021-05-26 Jakub Jelinek <jakub@redhat.com>
4365 * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
4366 GOMP_target_end_data, GOMP_target_update_ext,
4367 GOMP_target_enter_exit_data): New dummy entrypoints.
4368 * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
4369 GOMP_target_end_data, GOMP_target_update_ext,
4370 GOMP_target_enter_exit_data): Likewise.
4371 * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
4372 OMPFROM, OMPTO): Define.
4373 (main): Remove #pragma omp target teams around all the tests.
4374 * testsuite/libgomp.c-c++-common/target-41.c: New test.
4375 * testsuite/libgomp.c-c++-common/target-42.c: New test.
4377 2021-05-25 Jakub Jelinek <jakub@redhat.com>
4380 * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
4382 2021-05-24 Tobias Burnus <tobias@codesourcery.com>
4385 * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
4386 * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
4387 * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
4389 2021-05-22 Thomas Schwinge <thomas@codesourcery.com>
4392 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
4393 uninteresting/varying diagnostics.
4395 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
4398 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
4399 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4401 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
4404 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
4406 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
4407 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
4408 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4410 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4412 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4414 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4416 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4418 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4420 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
4422 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
4424 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
4426 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
4428 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4430 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4432 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4434 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4436 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4438 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4440 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4442 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4444 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4446 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4448 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4450 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
4451 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
4452 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
4453 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
4454 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
4455 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4456 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4457 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4458 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4459 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4460 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4461 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
4462 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4463 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
4464 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
4466 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
4468 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
4470 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
4472 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
4473 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
4475 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4476 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4477 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4478 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
4479 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
4480 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4481 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4483 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4485 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4487 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4489 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
4491 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
4493 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
4495 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
4497 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
4499 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
4501 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
4503 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
4505 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
4507 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
4508 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4509 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
4511 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
4513 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
4514 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4515 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
4517 2021-05-21 Julian Brown <julian@codesourcery.com>
4518 Chung-Lin Tang <cltang@codesourcery.com>
4519 Thomas Schwinge <thomas@codesourcery.com>
4522 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
4524 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
4526 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
4529 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
4531 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
4532 for nvptx offloading.
4534 2021-05-21 Tobias Burnus <tobias@codesourcery.com>
4536 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
4538 2021-05-19 Thomas Schwinge <thomas@codesourcery.com>
4541 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
4543 2021-05-19 Julian Brown <julian@codesourcery.com>
4545 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
4547 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
4549 * testsuite/lib/libgomp.exp
4550 (check_effective_target_offload_target_nvptx): Don't shadow global
4551 'offload_targets' variable.
4553 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
4555 * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
4556 '-latomic' to nvptx offloading compilation.
4557 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
4559 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
4561 * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
4562 offloading compilation.
4564 2021-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
4566 * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
4567 if new tasks generated.
4568 * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
4570 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
4572 * testsuite/libgomp.fortran/parallel-master.f90: New test.
4574 2021-05-13 Martin Liska <mliska@suse.cz>
4577 * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
4578 * testsuite/libgomp.c/pr46032-2.c: Likewise.
4579 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
4580 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
4582 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
4584 * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
4585 * testsuite/libgomp.fortran/task-detach-12.f90: New test.
4587 2021-05-11 Jakub Jelinek <jakub@redhat.com>
4589 PR middle-end/100471
4590 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
4591 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
4593 * testsuite/libgomp.c/task-reduction-4.c: New test.
4595 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
4596 Tom de Vries <tdevries@suse.de>
4598 * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
4599 complex/floating-point || + && reduction with 'omp target'.
4600 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
4602 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
4604 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
4605 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
4606 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
4607 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
4609 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
4612 * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
4613 declaration to scope of non-'depend'-guarded assignment to avoid races.
4615 2021-05-03 Tom de Vries <tdevries@suse.de>
4618 * testsuite/libgomp.c/target-44.c: New test.
4620 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
4622 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
4624 2021-04-29 Tom de Vries <tdevries@suse.de>
4626 * testsuite/libgomp.c/pr81778.c: New test.
4628 2021-04-29 Tom de Vries <tdevries@suse.de>
4631 * testsuite/libgomp.c/target-43.c: New file.
4633 2021-04-28 Jakub Jelinek <jakub@redhat.com>
4634 Tobias Burnus <tobias@codesourcery.com>
4636 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
4637 * target.c (gomp_load_plugin_for_device): If set and if a plugin
4638 can't be dlopened, silently assume it has no devices.
4639 * Makefile.in: Regenerate.
4640 * config.h.in: Regenerate.
4641 * configure: Regenerate.
4643 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
4645 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
4646 Use [Ww]arning in dg-bogus as FE diagnostic and default
4647 diagnostic differ and the result depends on ENABLE_OFFLOAD.
4648 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4649 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4650 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4652 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
4654 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
4655 Correct spelling in dg-bogus to match -Wopenacc-parallelism.
4656 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4657 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4658 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4660 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
4661 Nathan Sidwell <nathan@codesourcery.com>
4662 Tom de Vries <vries@codesourcery.com>
4663 Julian Brown <julian@codesourcery.com>
4664 Kwok Cheung Yeung <kcy@codesourcery.com>
4666 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
4667 '-Wopenacc-parallelism', and match diagnostics, as appropriate.
4668 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
4669 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4670 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4671 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4672 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
4674 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
4675 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4676 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4677 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
4679 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
4680 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
4682 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
4683 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
4684 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
4685 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
4686 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
4687 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
4689 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
4690 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
4691 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4692 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4693 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4694 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
4695 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
4696 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
4697 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4698 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4699 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
4701 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
4703 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
4705 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4706 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
4708 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
4709 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
4710 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4711 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
4712 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4713 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4714 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4716 2021-04-22 Richard Biener <rguenther@suse.de>
4718 * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
4721 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
4723 * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
4724 omp_depend_kind instead of defining it as 16.
4726 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
4728 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
4729 New, based on check_effective_target_offload_target_nvptx.
4730 (check_effective_target_offload_target_nvptx): Call it.
4731 (check_effective_target_offload_target_amdgcn): New.
4732 * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
4733 Require target offload_target_nvptx || offload_target_amdgcn.
4734 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
4735 * testsuite/libgomp.c/pr86416-1.c: Likewise.
4736 * testsuite/libgomp.c/pr86416-2.c: Likewise.
4738 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
4740 * testsuite/libgomp.fortran/depobj-1.f90: New test.
4742 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
4744 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4745 '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
4746 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
4748 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4750 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
4752 2021-04-15 Thomas Schwinge <thomas@codesourcery.com>
4755 * testsuite/lib/libgomp.exp
4756 (check_effective_target_offload_device_nvptx): New.
4757 * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
4758 resolved, make sure that we exit quickly, with error status,
4760 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
4761 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
4763 2021-04-14 Jakub Jelinek <jakub@redhat.com>
4766 * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
4767 cp = omp_alloc with cp, p arguments instead of cq, q and call
4768 c_f_pointer after last cq = omp_alloc with cq, q.
4770 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
4773 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
4774 for loop with GT/GE condition.
4775 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
4777 2021-04-09 Thomas Schwinge <thomas@codesourcery.com>
4782 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
4784 2021-04-09 Jakub Jelinek <jakub@redhat.com>
4787 * team.c (gomp_thread_start): Call pthread_setspecific for
4788 !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
4789 has been initialized to avoid false positive warning.
4791 2021-03-29 Tobias Burnus <tobias@codesourcery.com>
4794 * testsuite/lib/on_device_arch.c: Move to ...
4795 * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
4796 * testsuite/libgomp.fortran/on_device_arch.c: New file;
4797 #include on_device_arch.h.
4798 * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
4799 on_device_arch.h instead of using dg-additional-source.
4800 * testsuite/libgomp.c/pr99555-1.c: Likewise.
4801 * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
4802 on_device_arch.c without relative paths.
4804 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
4806 * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
4807 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
4808 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
4809 * config.h.in: Regenerate.
4810 * configure: Likewise.
4812 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
4815 * testsuite/lib/on_device_arch.c: New file.
4816 * testsuite/libgomp.c/pr99555-1.c: Likewise.
4817 * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
4818 skip for nvptx offloading, with error status.
4819 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
4821 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
4823 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
4824 OpenACC 'serial' construct diagnostic for nvptx offloading.
4826 2021-03-15 Tobias Burnus <tobias@codesourcery.com>
4829 * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
4831 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
4834 * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
4836 2021-03-04 Jakub Jelinek <jakub@redhat.com>
4838 * configure.ac: Add AC_CHECK_SIZEOF([void *]).
4839 * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
4840 checking of -m32 or -mx32 options on the command line.
4841 * config.h.in: Regenerated.
4842 * configure: Regenerated.
4844 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
4846 * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
4847 support from the target.
4849 2021-02-25 Kwok Cheung Yeung <kcy@codesourcery.com>
4850 Jakub Jelinek <jakub@redhat.com>
4853 * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
4854 (struct gomp_task): Replace detach and completion_sem fields with
4855 union containing completion_sem and detach_team. Add deferred_p
4857 (struct gomp_team): Remove task_detach_queue.
4858 * task.c: Include assert.h.
4859 (gomp_init_task): Initialize deferred_p and completion_sem fields.
4860 Rearrange initialization order of fields.
4861 (task_fulfilled_p): Delete.
4862 (GOMP_task): Use address of task as the event handle. Remove
4863 initialization of detach field. Initialize deferred_p field.
4864 Use automatic local for completion_sem. Initialize detach_team field
4866 (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
4867 Set kind of suspended detach task to GOMP_TASK_DETACHED and
4868 decrement task_running_count. Move finish_cancelled block out of
4869 else branch. Relocate call to gomp_team_barrier_done.
4870 (GOMP_taskwait): Handle tasks with completion events that have not
4872 (GOMP_taskgroup_end): Likewise.
4873 (omp_fulfill_event): Use address of task as event handle. Post to
4874 completion_sem for undeferred tasks. Clear detach_team if task
4875 has not finished. For finished tasks, handle post-execution tasks,
4876 call gomp_team_barrier_wake if necessary, and free task.
4877 * team.c (gomp_new_team): Remove initialization of task_detach_queue.
4878 (free_team): Remove free of task_detach_queue.
4879 * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
4880 * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
4881 * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
4882 * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
4883 * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
4884 Change data-sharing of detach events on enclosing parallel to private.
4885 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. Remove
4887 * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
4888 * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
4889 * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
4890 * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
4891 * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
4892 * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
4893 * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
4894 * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
4895 * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
4896 * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
4897 Change data-sharing of detach events on enclosing parallel to private.
4898 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise. Remove
4900 * testsuite/libgomp.fortran/task-detach-7.f90: New.
4901 * testsuite/libgomp.fortran/task-detach-8.f90: New.
4902 * testsuite/libgomp.fortran/task-detach-9.f90: New.
4903 * testsuite/libgomp.fortran/task-detach-10.f90: New.
4904 * testsuite/libgomp.fortran/task-detach-11.f90: New.
4906 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
4909 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
4911 2021-02-17 Julian Brown <julian@codesourcery.com>
4913 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
4916 2021-02-17 Julian Brown <julian@codesourcery.com>
4918 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
4919 * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
4921 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
4923 * config/linux/x86/futex.h (__futex_wait):
4924 Revert output type back to long.
4925 (__futex_wake): Ditto.
4926 (futex_wait): Update for revert.
4927 (futex_wake): Ditto.
4929 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
4931 * config/linux/x86/futex.h (__futex_wait): New static inline
4932 wrapper function. Correct output type to int and
4933 timeout type to void *.
4934 (__futex_wake): New static inline wrapper function.
4935 Correct output type to int.
4936 (futex_wait): Use __futex_wait.
4937 (futex_wake): Use __futex_wake.
4939 2021-02-10 Julian Brown <julian@codesourcery.com>
4942 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
4945 2021-02-04 Julian Brown <julian@codesourcery.com>
4947 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
4949 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
4951 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
4952 EF_AMDGPU_MACH_AMDGCN_GFX908.
4953 (gcn_gfx908_s): New constant string.
4954 (isa_hsa_name): Add gfx908.
4955 (isa_code): Add gfx908.
4957 2021-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
4959 * libgomp.texi (omp_fulfill_event): New entry.
4961 2021-01-20 Jakub Jelinek <jakub@redhat.com>
4963 * task.c (GOMP_task): Rename priority argument to priority_arg,
4964 add priority automatic variable and modify that variable. Instead of
4965 clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
4966 check flags for that bit.
4968 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
4971 * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
4973 2021-01-18 Andreas Schwab <schwab@suse.de>
4975 * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
4977 2021-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
4979 * config/rtems/sem.h (gomp_sem_getcount): New function.
4981 2021-01-18 Jakub Jelinek <jakub@redhat.com>
4983 * config/linux/sem.h (gomp_sem_getcount): New function.
4984 * config/posix/sem.h (gomp_sem_getcount): New function.
4985 * config/posix/sem.c (gomp_sem_getcount): New function.
4986 * config/accel/sem.h (gomp_sem_getcount): New function.
4987 * task.c (task_fulfilled_p): Use gomp_sem_getcount.
4988 (omp_fulfill_event): Likewise.
4990 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
4992 * fortran.c (omp_fulfill_event_): New.
4993 * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
4994 (struct gomp_team): Add task_detach_queue and task_detach_count
4996 * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
4997 * libgomp_g.h (GOMP_task): Add extra argument.
4998 * omp.h.in (enum omp_event_handle_t): New.
4999 (omp_fulfill_event): New.
5000 * omp_lib.f90.in (omp_event_handle_kind): New.
5001 (omp_fulfill_event): New.
5002 * omp_lib.h.in (omp_event_handle_kind): New.
5003 (omp_fulfill_event): Declare.
5004 * priority_queue.c (priority_tree_find): New.
5005 (priority_list_find): New.
5006 (priority_queue_find): New.
5007 * priority_queue.h (priority_queue_predicate): New.
5008 (priority_queue_find): New.
5009 * task.c (gomp_init_task): Initialize detach field.
5010 (task_fulfilled_p): New.
5011 (GOMP_task): Add detach argument. Ignore detach argument if
5012 GOMP_TASK_FLAG_DETACH not set in flags. Initialize completion_sem
5013 field. Copy address of completion_sem into detach argument and
5014 into the start of the data record. Wait for detach event if task
5016 (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
5017 Remove completed tasks and requeue dependent tasks.
5018 (omp_fulfill_event): New.
5019 * team.c (gomp_new_team): Initialize task_detach_queue and
5020 task_detach_count fields.
5021 (free_team): Free task_detach_queue field.
5022 * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
5023 * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
5024 * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
5025 * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
5026 * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
5027 * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
5028 * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
5029 * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
5030 * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
5031 * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
5032 * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
5033 * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
5035 2021-01-15 Jakub Jelinek <jakub@redhat.com>
5038 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
5039 be added through preprocessor check on
5040 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
5042 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
5045 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
5047 * configure: Regenerate.
5048 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
5051 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
5053 * configure: Re-generate.
5055 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
5057 * configure: Re-generate.
5059 2021-01-05 Julian Brown <julian@codesourcery.com>
5061 * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
5062 (struct ptx_device): Add omp_stacks struct.
5063 (nvptx_open_device): Initialise cached-stacks housekeeping info.
5064 (nvptx_close_device): Free cached stacks block and mutex.
5065 (nvptx_stacks_free): New function.
5066 (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
5067 (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
5068 (nvptx_stacks_alloc): Rename to...
5069 (nvptx_stacks_acquire): This. Cache stacks block between runs if same
5070 size or smaller is required.
5071 (nvptx_stacks_free): Remove.
5072 (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
5073 during kernel execution.
5075 2021-01-01 Jakub Jelinek <jakub@redhat.com>
5077 * libgomp.texi: Bump @copying's copyright year.
5079 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
5081 * libgomp.texi (Top): Avoid bad "up" link.
5083 2020-12-18 Jakub Jelinek <jakub@redhat.com>
5085 * testsuite/libgomp.c/task-6.c: New test.
5087 2020-12-09 Andrew Stubbs <ams@codesourcery.com>
5089 * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
5090 (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
5092 2020-12-08 Tobias Burnus <tobias@codesourcery.com>
5094 * testsuite/libgomp.fortran/scan-1.f90: New test.
5096 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
5099 * configure: Regenerate.
5101 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
5103 * configure: Regenerate.
5105 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
5107 * testsuite/libgomp.oacc-c++/cache-1.C: New.
5108 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
5110 2020-11-25 Andrew Stubbs <ams@codesourcery.com>
5112 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
5115 2020-11-24 Andrew Stubbs <ams@codesourcery.com>
5117 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
5118 (reserved): Delete unused define.
5120 2020-11-24 Thomas Schwinge <thomas@codesourcery.com>
5122 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
5123 Tcl 8.5-specific behavior.
5124 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5126 2020-11-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5128 * env.c (gomp_global_icv): Remove nest_var field. Add
5129 max_active_levels_var field.
5130 (gomp_max_active_levels_var): Remove.
5131 (parse_boolean): Return true on success.
5132 (handle_omp_display_env): Express OMP_NESTED in terms of
5133 max_active_levels_var. Change format specifier for
5134 max_active_levels_var.
5135 (initialize_env): Set max_active_levels_var from
5136 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
5138 * icv.c (omp_set_nested): Express in terms of
5139 max_active_levels_var.
5140 (omp_get_nested): Likewise.
5141 (omp_set_max_active_levels): Use max_active_levels_var field instead
5142 of gomp_max_active_levels_var.
5143 (omp_get_max_active_levels): Likewise.
5144 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
5145 max_active_levels_var field.
5146 (gomp_supported_active_levels): Set to UCHAR_MAX.
5147 (gomp_max_active_levels_var): Delete.
5148 * libgomp.texi (omp_get_nested): Update documentation.
5149 (omp_set_nested): Likewise.
5150 (OMP_MAX_ACTIVE_LEVELS): Likewise.
5151 (OMP_NESTED): Likewise.
5152 (OMP_NUM_THREADS): Likewise.
5153 (OMP_PROC_BIND): Likewise.
5154 * parallel.c (gomp_resolve_num_threads): Replace reference
5155 to nest_var with max_active_levels_var. Use max_active_levels_var
5156 field instead of gomp_max_active_levels_var.
5158 2020-11-18 Tobias Burnus <tobias@codesourcery.com>
5160 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
5161 nvptx_usleep; use also for device={arch(gcn)}.
5163 2020-11-14 Jakub Jelinek <jakub@redhat.com>
5165 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
5166 (foo): Add tests for non-VLA private and firstprivate clauses on
5168 (bar): Likewise. Remove taking of address from private/firstprivate
5170 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
5171 (foo): Add p, q, px and s arguments. Add tests for array reductions
5172 and for non-VLA private and firstprivate clauses on omp task.
5174 (main): Adjust foo caller. Don't call bar.
5176 2020-11-13 Gergö Barany <gergo@codesourcery.com>
5177 Thomas Schwinge <thomas@codesourcery.com>
5179 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
5181 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
5183 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5185 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
5186 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5188 2020-11-13 Gergö Barany <gergo@codesourcery.com>
5189 Thomas Schwinge <thomas@codesourcery.com>
5192 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
5194 2020-11-13 Jakub Jelinek <jakub@redhat.com>
5196 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
5197 for array reductions.
5198 (main): Adjust foo callers.
5200 2020-11-12 Jakub Jelinek <jakub@redhat.com>
5202 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
5203 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
5204 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
5205 * allocator.c (omp_aligned_alloc): New for now static function,
5206 add alignment argument and handle it.
5207 (omp_alloc): Reimplement using omp_aligned_alloc.
5208 (GOMP_alloc, GOMP_free): New functions.
5209 (omp_free): Add ialias.
5210 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
5211 * testsuite/libgomp.c++/allocate-1.C: New test.
5213 2020-11-12 Thomas Schwinge <thomas@codesourcery.com>
5216 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
5218 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
5220 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
5222 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
5223 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
5224 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
5225 (goacc_enter_data_internal): Likewise.
5226 * target.c (gomp_map_vars_internal):
5227 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
5228 of gomp_attach_pointer for OpenMP cases.
5229 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
5230 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
5231 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
5233 2020-11-05 Ulrich Drepper <drepper@redhat.com>
5234 Kwok Cheung Yeung <kcy@codesourcery.com>
5236 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
5237 * Makefile.in: Regenerate.
5238 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
5239 pragmas to ignore -Wdeprecated-declarations warnings.
5241 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
5242 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
5243 and omp_get_nested with __GOMP_DEPRECATED_5_0.
5244 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
5246 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
5248 * testsuite/libgomp.c/affinity-1.c: Likewise.
5249 * testsuite/libgomp.c/affinity-2.c: Likewise.
5250 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
5251 * testsuite/libgomp.c/lib-1.c: Likewise.
5252 * testsuite/libgomp.c/nested-1.c: Likewise.
5253 * testsuite/libgomp.c/nested-2.c: Likewise.
5254 * testsuite/libgomp.c/nested-3.c: Likewise.
5255 * testsuite/libgomp.c/pr32362-1.c: Likewise.
5256 * testsuite/libgomp.c/pr32362-2.c: Likewise.
5257 * testsuite/libgomp.c/pr32362-3.c: Likewise.
5258 * testsuite/libgomp.c/pr35549.c: Likewise.
5259 * testsuite/libgomp.c/pr42942.c: Likewise.
5260 * testsuite/libgomp.c/pr61200.c: Likewise.
5261 * testsuite/libgomp.c/sort-1.c: Likewise.
5262 * testsuite/libgomp.c/target-5.c: Likewise.
5263 * testsuite/libgomp.c/target-6.c: Likewise.
5264 * testsuite/libgomp.c/teams-1.c: Likewise.
5265 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
5266 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
5267 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
5268 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
5269 * testsuite/libgomp.fortran/lib1.f90: Likewise.
5270 * testsuite/libgomp.fortran/lib2.f: Likewise.
5271 * testsuite/libgomp.fortran/nested1.f90: Likewise.
5272 * testsuite/libgomp.fortran/teams1.f90: Likewise.
5274 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
5277 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
5278 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
5279 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
5281 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
5285 * testsuite/lib/libgomp.exp (libgomp_init): Set
5286 'gcc_warning_prefix', 'gcc_error_prefix'.
5288 2020-10-30 Jakub Jelinek <jakub@redhat.com>
5290 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
5291 even in field_tgt_clear initializer.
5293 2020-10-28 Jakub Jelinek <jakub@redhat.com>
5295 * testsuite/libgomp.c/target-42.c: New test.
5297 2020-10-28 Jakub Jelinek <jakub@redhat.com>
5298 Tom de Vries <tdevries@suse.de>
5301 * testsuite/libgomp.c/usleep.h: New file.
5302 * testsuite/libgomp.c/target-32.c: Include usleep.h.
5303 (main): Use tgt_usleep instead of usleep.
5304 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
5305 (main): Use tgt_usleep instead of usleep.
5307 2020-10-28 Jakub Jelinek <jakub@redhat.com>
5310 * testsuite/libgomp.c/declare-variant-1.c: New test.
5312 2020-10-22 Jakub Jelinek <jakub@redhat.com>
5314 * testsuite/libgomp.c/target-41.c: New test.
5316 2020-10-22 Jakub Jelinek <jakub@redhat.com>
5318 * icv.c (omp_get_initial_device): Remove including corresponding
5320 * icv-device.c (omp_get_initial_device): New function. Return
5321 gomp_get_num_devices (). Add ialias.
5322 * target.c (resolve_device): Don't fail with
5323 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
5324 gomp_get_num_devices ().
5325 (omp_target_alloc, omp_target_free, omp_target_is_present,
5326 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
5327 omp_target_disassociate_ptr, omp_pause_resource): Use
5328 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
5329 first use in the functions, in uses dominated by the
5330 gomp_get_num_devices call use num_devices_openmp instead.
5331 * libgomp.texi (omp_get_initial_device): Document.
5332 * config/gcn/icv-device.c (omp_get_initial_device): New function.
5334 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
5335 * testsuite/libgomp.c/target-40.c: New test.
5337 2020-10-21 Jakub Jelinek <jakub@redhat.com>
5339 * env.c (parse_target_offload): Change new_offload var type to int,
5340 preinitialize to -1, remove found var and test new_offload != -1
5343 2020-10-20 Jakub Jelinek <jakub@redhat.com>
5345 * target.c (gomp_target_init): Inside of the function, use automatic
5346 variables corresponding to num_devices, num_devices_openmp and devices
5347 global variables and update the globals only at the end of the
5350 2020-10-20 Kwok Cheung Yeung <kcy@codesourcery.com>
5352 * env.c (gomp_target_offload_var): New.
5353 (parse_target_offload): New.
5354 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
5355 (initialize_env): Parse OMP_TARGET_OFFLOAD.
5356 * libgomp.h (gomp_target_offload_t): New.
5357 (gomp_target_offload_var): New.
5358 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
5359 * target.c (resolve_device): Generate error if device not found and
5360 offloading is mandatory.
5361 (gomp_target_fallback): Generate error if offloading is mandatory.
5362 (GOMP_target): Add argument in call to gomp_target_fallback.
5363 (GOMP_target_ext): Likewise.
5364 (gomp_target_data_fallback): Generate error if offloading is mandatory.
5365 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
5366 (GOMP_target_data_ext): Likewise.
5367 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
5368 (gomp_target_init): Return early if offloading is disabled.
5370 2020-10-15 Kwok Cheung Yeung <kcy@codesourcery.com>
5372 * libgomp.texi (omp_get_max_active_levels): Modify description.
5373 (omp_get_supported_active_levels): Make descriptions consistent.
5375 2020-10-14 Jakub Jelinek <jakub@redhat.com>
5377 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
5379 2020-10-13 Kwok Cheung Yeung <kcy@codesourcery.com>
5381 * env.c (gomp_max_active_levels_var): Initialize to
5382 gomp_supported_active_levels.
5383 (initialize_env): Limit gomp_max_active_levels_var to be at most
5384 equal to gomp_supported_active_levels.
5385 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
5386 (omp_get_supported_active_levels_): New.
5387 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
5388 to at most equal to gomp_supported_active_levels.
5389 (omp_get_supported_active_levels): New.
5390 * libgomp.h (gomp_supported_active_levels): New.
5391 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
5392 omp_get_supported_active_levels_.
5393 * libgomp.texi (omp_get_supported_active_levels): New.
5394 (omp_set_max_active_levels): Update. Add reference to
5395 omp_get_supported_active_levels.
5396 * omp.h.in (omp_get_supported_active_levels): New.
5397 * omp_lib.f90.in (omp_get_supported_active_levels): New.
5398 * omp_lib.h.in (omp_get_supported_active_levels): New.
5399 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
5400 against omp_get_supported_active_levels.
5401 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
5403 2020-10-11 Clement Chigot <clement.chigot@atos.net>
5405 * config/t-aix: Delete and recreate libgomp before creating
5408 2020-10-08 Tom de Vries <tdevries@suse.de>
5411 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
5414 2020-10-06 Tom de Vries <tdevries@suse.de>
5416 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
5418 2020-10-06 Tom de Vries <tdevries@suse.de>
5421 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
5423 2020-10-05 Tom de Vries <tdevries@suse.de>
5426 * testsuite/libgomp.fortran/pr95654.f90: New test.
5428 2020-10-02 Tobias Burnus <tobias@codesourcery.com>
5430 * Makefile.in: Regenerate with automake 1.15.1.
5431 * aclocal.m4: Likewise.
5432 * configure: Likewise.
5433 * testsuite/Makefile.in: Likewise.
5435 2020-09-30 Andrew Stubbs <ams@codesourcery.com>
5437 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
5440 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
5442 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
5444 2020-09-29 Andrew Stubbs <ams@codesourcery.com>
5446 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
5447 total number of threads is one.
5448 (gomp_team_barrier_wake): Likewise.
5449 (gomp_team_barrier_wait_end): Likewise.
5450 (gomp_team_barrier_wait_cancel_end): Likewise.
5451 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
5452 (gomp_team_barrier_wake): Likewise.
5453 (gomp_team_barrier_wait_end): Likewise.
5454 (gomp_team_barrier_wait_cancel_end): Likewise.
5455 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
5457 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
5460 * testsuite/libgomp.c++/pr96390.C: New test.
5461 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
5463 2020-09-27 Clement Chigot <clement.chigot@atos.net>
5465 * config/t-aix: Use $(AR) without -X32_64.
5467 2020-09-25 Jakub Jelinek <jakub@redhat.com>
5469 * testsuite/libgomp.c/loop-25.c: New test.
5471 2020-09-22 Tobias Burnus <tobias@codesourcery.com>
5474 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
5476 2020-09-22 Tom de Vries <tdevries@suse.de>
5478 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
5481 2020-09-16 Nathan Sidwell <nathan@acm.org>
5483 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
5485 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
5488 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
5490 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
5493 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
5494 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
5495 (gomp_map_vars_existing): Update call to it.
5496 (gomp_map_fields_existing): Likewise
5497 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
5498 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
5500 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
5502 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
5503 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
5505 2020-09-14 Tom de Vries <tdevries@suse.de>
5507 * config/nvptx/atomic.c: New file. Add
5508 __sync_val_compare_and_swap_16.
5509 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
5510 target offload_target_nvptx.
5512 2020-09-08 Julian Brown <julian@codesourcery.com>
5514 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
5515 iteration-ordering assumptions.
5517 2020-09-08 Julian Brown <julian@codesourcery.com>
5519 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
5520 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
5522 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
5524 * plugin/plugin-nvptx.c (nvptx_free):
5525 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
5526 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
5529 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
5531 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
5533 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
5535 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
5537 2020-08-13 Jakub Jelinek <jakub@redhat.com>
5539 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
5540 * testsuite/libgomp.c/loop-23.c (main): Likewise.
5541 * testsuite/libgomp.c/loop-24.c: New test.
5543 2020-08-08 Jakub Jelinek <jakub@redhat.com>
5544 Tobias Burnus <tobias@codesourcery.com>
5547 * testsuite/libgomp.fortran/pr93553.f90: New test.
5549 2020-08-05 Jakub Jelinek <jakub@redhat.com>
5551 * testsuite/libgomp.c/loop-22.c: New test.
5552 * testsuite/libgomp.c/loop-23.c: New test.
5554 2020-08-05 Jakub Jelinek <jakub@redhat.com>
5557 * testsuite/libgomp.c/teams-3.c: New test.
5558 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
5560 (N(test)): Use it before all N(f*) calls.
5561 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
5562 (main): Don't call all test_* functions from within
5563 #pragma omp teams reduction(|:err), call them directly.
5565 2020-08-04 Tom de Vries <tdevries@suse.de>
5568 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
5569 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
5571 2020-08-03 Julian Brown <julian@codesourcery.com>
5572 Thomas Schwinge <thomas@codesourcery.com>
5574 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
5575 shared-memory devices. Extend with further checking.
5577 2020-08-03 Martin Jambor <mjambor@suse.cz>
5579 * plugin/Makefrag.am: Remove configuration of HSA plugin.
5580 * aclocal.m4: Regenerated.
5581 * Makefile.in: Regenerated.
5582 * config.h.in: Regenerated.
5583 * configure: Regenerated.
5584 * plugin/configfrag.ac: Likewise.
5585 * plugin/hsa_ext_finalize.h: Removed.
5586 * plugin/plugin-hsa.c: Likewise.
5587 * testsuite/Makefile.in: Regenerated.
5588 * testsuite/lib/libgomp.exp
5589 (offload_target_to_openacc_device_type): Remove hsa case.
5590 (check_effective_target_hsa_offloading_selected_nocache): Removed
5591 (check_effective_target_hsa_offloading_selected): Likewise.
5592 (libgomp_init): Do not add -Wno-hsa to additional_flags.
5593 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
5594 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
5595 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
5596 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
5597 * testsuite/libgomp.hsa.c/c.exp: Likewise.
5598 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
5599 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
5600 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
5601 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
5602 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
5603 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
5604 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
5605 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
5606 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
5607 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
5608 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
5609 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
5610 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
5611 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
5612 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
5613 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
5614 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
5615 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
5616 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
5618 2020-07-27 Julian Brown <julian@codesourcery.com>
5619 Thomas Schwinge <thomas@codesourcery.com>
5621 * libgomp.h (struct target_var_desc): Rename do_detach field to
5623 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
5624 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
5625 (goacc_enter_data_internal): Don't affect reference counts
5626 for attach mappings.
5627 (goacc_exit_data_internal): Don't affect reference counts for detach
5629 * target.c (gomp_map_vars_existing): Don't affect reference counts for
5631 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
5632 mark attach mappings.
5633 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
5634 reference count for attach mappings.
5635 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
5636 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
5637 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
5638 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
5640 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
5641 gracefully in no-finalize mode.
5642 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
5644 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
5646 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
5648 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5649 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5651 2020-07-23 Julian Brown <julian@codesourcery.com>
5652 Thomas Schwinge <thomas@codesourcery.com>
5654 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
5655 finalization for detach operation.
5656 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
5659 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
5661 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
5662 * libgomp_f.h.in (omp_check_defines): Check whether
5663 sizeof of determined Fortran kind and C typedef match.
5664 * omp_lib.f90.in: Add omp_depened_kind.
5665 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
5666 * configure: Regenerate.
5667 * Makefile.in: Regenerate.
5668 * testsuite/Makefile.in: Regenerate.
5670 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
5672 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
5673 gcc/testsuite/c-c++-common/gomp/.
5674 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
5675 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
5676 from gcc/testsuite/gfortran.dg/gomp/.
5677 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
5679 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
5681 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
5682 * omp_lib.h.in: Likewise.
5684 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
5687 * testsuite/libgomp.c/pr95620.c: New test.
5689 2020-07-16 Julian Brown <julian@codesourcery.com>
5690 Thomas Schwinge <thomas@codesourcery.com>
5692 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
5693 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
5695 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
5697 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
5698 avoid conversion on 32bit systems from 32bit to 64bit due
5699 to -fdefault-integer-8.
5701 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
5703 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
5704 variables; add character(kind=4) tests; update TODO comment.
5706 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
5708 * allocator.c: Add ialias for omp_init_allocator and
5709 omp_destroy_allocator.
5710 * configure.ac: Set INTPTR_T_KIND.
5711 * configure: Regenerate.
5712 * Makefile.in: Regenerate.
5713 * testsuite/Makefile.in: Regenerate.
5714 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
5715 omp_set_default_allocator_, omp_get_default_allocator_): New
5716 functions and ialias_redirect.
5717 * icv.c: Add ialias for omp_set_default_allocator and
5718 omp_get_default_allocator.
5719 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
5720 omp_destroy_allocator_, omp_set_default_allocator_ and
5721 omp_get_default_allocator_.
5722 * omp_lib.f90.in: Add allocator traits parameters, declare
5723 allocator routines and add related kind parameters.
5724 * omp_lib.h.in: Likewise.
5725 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
5726 * testsuite/libgomp.fortran/alloc-1.F90: New test.
5727 * testsuite/libgomp.fortran/alloc-2.F90: New test.
5728 * testsuite/libgomp.fortran/alloc-3.F: New test.
5729 * testsuite/libgomp.fortran/alloc-4.f90: New test.
5730 * testsuite/libgomp.fortran/alloc-5.f90: New test.
5732 2020-07-14 Tom de Vries <tom@codesourcery.com>
5733 Cesar Philippidis <cesar@codesourcery.com>
5734 Thomas Schwinge <thomas@codesourcery.com>
5735 Kwok Cheung Yeung <kcy@codesourcery.com>
5737 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
5739 (acc_init_1): Set acc_init_thread to pthread_self (). Set
5740 acc_init_state to initializing at the start, and to initialized at the
5742 (self_initializing_p): New function.
5743 (acc_get_device_type): Return acc_device_none if called by thread that
5744 is currently executing acc_init_1.
5745 * libgomp.texi (acc_get_device_type): Update documentation.
5746 (Implementation Status and Implementation-Defined Behavior): Likewise.
5747 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
5749 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
5751 * config/t-aix: Set BITS from compiler cpp macro.
5753 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
5755 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
5757 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
5760 * testsuite/libgomp.fortran/target-map-1.f90: New test.
5762 2020-07-14 Jakub Jelinek <jakub@redhat.com>
5764 * testsuite/libgomp.c/loop-21.c: New test.
5766 2020-07-13 Julian Brown <julian@codesourcery.com>
5767 Thomas Schwinge <thomas@codesourcery.com>
5769 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
5771 2020-07-10 Julian Brown <julian@codesourcery.com>
5772 Thomas Schwinge <thomas@codesourcery.com>
5774 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
5776 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
5777 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
5779 (acc_unmap_data): Update comment.
5780 (goacc_map_var_existing, goacc_enter_datum): Adjust for
5781 dynamic_refcount semantics.
5782 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
5783 Adjust for dynamic_refcount semantics.
5784 (goacc_enter_data_internal): Implement "present" case of dynamic
5785 memory-map handling here. Update "non-present" case for
5786 dynamic_refcount semantics.
5787 (goacc_exit_data_internal): Use goacc_exit_datum_1.
5788 * target.c (gomp_map_vars_internal): Remove
5789 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
5791 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
5792 (gomp_load_image_to_device): Substitute dynamic_refcount for
5794 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
5795 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
5796 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
5797 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
5798 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
5800 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
5802 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
5804 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
5805 Remove stale comment.
5806 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
5807 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
5808 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
5809 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
5810 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
5811 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
5813 2020-07-10 Julian Brown <julian@codesourcery.com>
5814 Thomas Schwinge <thomas@codesourcery.com>
5816 * oacc-mem.c (goacc_map_var_existing): New function.
5817 (goacc_enter_datum): Use above function.
5818 (goacc_exit_datum_1): New function.
5819 (goacc_exit_datum): Use above function.
5821 2020-07-09 Julian Brown <julian@codesourcery.com>
5822 Thomas Schwinge <thomas@codesourcery.com>
5825 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
5826 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
5828 2020-07-09 Julian Brown <julian@codesourcery.com>
5830 * oacc-mem.c (find_group_last): Group data-movement clauses
5831 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
5832 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
5834 2020-07-09 Jakub Jelinek <jakub@redhat.com>
5836 * testsuite/libgomp.c/loop-19.c: New test.
5837 * testsuite/libgomp.c/loop-20.c: New test.
5839 2020-07-09 Jakub Jelinek <jakub@redhat.com>
5841 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
5842 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
5843 it. Remove __omp_alloctrait_value_max__.
5844 * allocator.c (omp_init_allocator): Handle omp_atv_default for
5845 omp_atk_alignment and omp_atk_pool_size.
5847 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
5849 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
5850 behavior for 'GOMP_MAP_FORCE_FROM'.
5851 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
5853 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
5855 * oacc-mem.c (goacc_exit_data_internal): Remove
5856 'GOMP_MAP_ALWAYS_FROM' handling.
5858 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
5860 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
5861 'scan-assembler' with 'scan-offload-rtl'.
5862 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
5863 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
5864 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
5865 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
5867 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
5869 * target.c (gomp_map_vars_existing): Assert 'kind !=
5871 (gomp_map_vars_internal): Clean up.
5873 2020-06-27 Jakub Jelinek <jakub@redhat.com>
5875 * testsuite/libgomp.c/loop-17.c: New test.
5876 * testsuite/libgomp.c/loop-18.c: New test.
5878 2020-06-26 Marek Polacek <polacek@redhat.com>
5880 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
5882 2020-06-23 Alexandre Oliva <oliva@adacore.com>
5884 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
5885 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
5887 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
5889 * Makefile.am: Use -include.
5890 * Makefile.in: Regenerate.
5892 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
5894 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
5895 * Makefile.in: Regenerate
5896 * configure.ac (tmake_file): Substitute.
5897 * configure: Regenerate.
5898 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
5899 * config/t-aix: New file.
5901 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
5904 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
5907 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
5909 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
5910 variant for HSA_RUNTIME_LIB name.
5911 (find_executable_symbol_1): Delete.
5912 (find_executable_symbol): Delete.
5913 (init_kernel_properties): Add ".kd" suffix to symbol names.
5914 (find_load_offset): Delete.
5915 (create_and_finalize_hsa_program): Remove relocation handling.
5917 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
5919 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
5921 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
5925 * testsuite/libgomp.fortran/target-var.f90: New test.
5927 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
5928 Julian Brown <julian@codesourcery.com>
5930 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
5933 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
5934 Julian Brown <julian@codesourcery.com>
5936 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
5939 2020-06-05 Julian Brown <julian@codesourcery.com>
5941 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
5942 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
5944 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5946 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
5947 Evaluate 'copyfrom' individually for each entry.
5948 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
5950 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5952 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
5953 Evaluate 'finalize' individually for each entry.
5954 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
5955 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
5958 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5960 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
5962 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
5964 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5965 Julian Brown <julian@codesourcery.com>
5967 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
5969 (acc_unmap_data, goacc_exit_data_internal): Restore
5970 'is_tgt_unmapped' checking.
5971 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
5973 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
5974 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
5975 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
5976 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
5977 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
5978 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
5980 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5981 Julian Brown <julian@codesourcery.com>
5983 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
5985 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5988 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
5990 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5993 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
5996 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5997 Julian Brown <julian@codesourcery.com>
5999 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
6001 (acc_map_data): Clean up accordingly.
6003 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6005 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
6006 of over-eager 'finalize' clause.
6007 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
6009 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
6010 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
6011 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6012 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6013 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6014 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
6015 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
6016 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
6018 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6020 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
6022 2020-06-04 Julian Brown <julian@codesourcery.com>
6024 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
6026 (goacc_detach_internal): Likewise.
6028 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6030 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
6032 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
6033 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
6034 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
6035 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
6036 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
6038 2020-06-02 Jakub Jelinek <jakub@redhat.com>
6040 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
6043 2020-05-30 Jakub Jelinek <jakub@redhat.com>
6045 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
6047 2020-05-30 Jakub Jelinek <jakub@redhat.com>
6049 * allocator.c (omp_alloc): For size == 0, return NULL early.
6051 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
6054 * configure: Regenerated.
6056 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
6059 * testsuite/libgomp.fortran/async_io_9.f90: New test.
6061 2020-05-19 Jakub Jelinek <jakub@redhat.com>
6063 * omp.h.in (omp_uintptr_t): New typedef.
6064 (__GOMP_UINTPTR_T_ENUM): Define.
6065 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
6066 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
6067 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
6068 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
6069 omp_get_default_allocator, omp_alloc, omp_free): Declare.
6070 * libgomp.h (struct gomp_team_state): Add def_allocator field.
6071 (gomp_def_allocator): Declare.
6072 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
6073 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
6074 omp_alloc and omp_free.
6075 * team.c (gomp_team_start): Copy over ts.def_allocator.
6076 * env.c (gomp_def_allocator): New variable.
6077 (parse_wait_policy): Adjust function comment.
6078 (parse_allocator): New function.
6079 (handle_omp_display_env): Print OMP_ALLOCATOR.
6080 (initialize_env): Call parse_allocator.
6081 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
6082 * allocator.c: New file.
6083 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
6085 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
6086 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
6087 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
6088 * Makefile.in: Regenerated.
6090 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
6093 * configure: Regenerated.
6095 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
6098 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
6100 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
6102 * configure: Regenerated.
6104 2020-05-14 Jakub Jelinek <jakub@redhat.com>
6106 * testsuite/libgomp.c-c++-common/target-40.c: New test.
6108 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
6111 * testsuite/libgomp.fortran/pr66199-3.f90: New.
6112 * testsuite/libgomp.fortran/pr66199-4.f90: New.
6113 * testsuite/libgomp.fortran/pr66199-5.f90: New.
6114 * testsuite/libgomp.fortran/pr66199-6.f90: New.
6115 * testsuite/libgomp.fortran/pr66199-7.f90: New.
6116 * testsuite/libgomp.fortran/pr66199-8.f90: New.
6117 * testsuite/libgomp.fortran/pr66199-9.f90: New.
6119 2020-05-12 Jakub Jelinek <jakub@redhat.com>
6121 * testsuite/libgomp.c/target-39.c: New test.
6123 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
6125 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
6126 * openacc.f90 (acc_device_current): Likewise.
6127 * openacc.h (acc_device_current): Likewise.
6128 * openacc_lib.h (acc_device_current): Likewise.
6131 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
6132 'dg-allow-blank-lines-in-output'.
6134 * oacc-init.c (get_openacc_name): Handle 'gcn'.
6135 * testsuite/lib/libgomp.exp
6136 (offload_target_to_openacc_device_type) [amdgcn*]: Return
6137 'radeon'. Adjust all users.
6138 (check_effective_target_openacc_amdgcn_accel_present): Rename
6140 (check_effective_target_openacc_radeon_accel_present): ... this.
6142 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
6143 (check_effective_target_openacc_radeon_accel_selected): ... this.
6146 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
6149 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
6153 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
6155 (GOMP_OFFLOAD_init_device): Check return values from both calls to
6156 hsa_agent_iterate_regions.
6158 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
6161 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
6164 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
6167 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
6170 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
6173 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
6175 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
6178 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
6180 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
6182 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
6184 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
6186 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
6188 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
6190 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
6192 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
6194 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
6196 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
6198 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
6200 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
6202 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
6204 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
6206 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
6208 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
6210 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
6212 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
6214 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
6216 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
6218 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
6220 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
6222 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
6224 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
6226 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
6228 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
6230 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
6232 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
6234 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
6236 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
6238 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
6240 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
6243 2020-04-10 Julian Brown <julian@codesourcery.com>
6244 Thomas Schwinge <thomas@codesourcery.com>
6247 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
6249 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
6251 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
6253 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
6255 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
6257 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
6259 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
6261 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
6263 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
6265 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
6267 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
6269 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
6271 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
6273 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
6275 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
6277 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
6280 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
6282 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
6285 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
6288 * libgomp.oacc-c++/declare-pr94120.C: New.
6290 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
6292 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
6294 * configure: Regenerate.
6295 * testsuite/libgomp-site-extra.exp.in: New file.
6296 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
6298 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
6300 * testsuite/Makefile.in: Regenerate.
6302 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
6304 PR tree-optimization/89713
6306 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
6308 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
6310 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
6312 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
6313 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
6315 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
6318 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
6320 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
6323 * target.c (gomp_load_image_to_device): Fix link
6326 2020-03-19 Jakub Jelinek <jakub@redhat.com>
6329 * testsuite/libgomp.c++/pr93931.C: New test.
6331 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
6333 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
6334 dg-allow-blank-lines-in-output.
6336 2020-03-18 Julian Brown <julian@codesourcery.com>
6337 Tobias Burnus <tobias@codesourcery.com>
6339 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
6340 it work concurrently.
6342 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
6344 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
6345 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
6346 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
6348 2020-03-14 Jakub Jelinek <jakub@redhat.com>
6351 * testsuite/libgomp.c/pr93566.c: New test.
6353 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
6355 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
6356 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
6357 integer(acc_device_property) for the type of the return value of
6360 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
6362 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
6363 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
6364 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
6365 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
6366 (acc_set_device_num): Fix Fortran argument name, use same name for C.
6367 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
6368 corrections; add note about the previous interface and named constant.
6369 (OpenACC library and environment variables): Fix two typos.
6370 * openacc.f90: Use for all procedures the argument names from the spec
6371 as for …_h they are user visible.
6372 (openacc_kinds): Rename acc_device_property to
6373 acc_device_property_kinds and change value to int32 ; and update users.
6374 Re-add acc_device_property for for backward compatibility.
6375 (acc_get_property_string_h): Clean up as acc_device_property_kind
6377 (acc_get_property_h): Likewise and return c_size_t instead of
6378 acc_device_property.
6379 (openacc): Also export acc_device_property_kinds.
6380 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
6381 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
6382 handling; check against /= 0 instead of == 1 to match C.
6383 * openacc_lib.h: Use for all procedures the argument names from the spec
6384 as for …_h they are user visible. Place !GCC$ into the first column to
6385 be active also for fixed-form souce form.
6386 (acc_device_current, acc_device_property_kind, acc_device_property,
6387 acc_property_memory, acc_property_free_memory, acc_property_name,
6388 acc_property_vendor, acc_property_driver): New named constants.
6389 (acc_get_property, acc_get_property_string): New generic interface.
6391 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
6394 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
6395 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
6397 (gomp_target_task_fn): Assert "devicep->async_run_func".
6398 (clear_unsupported_flags): New function to remove unsupported flags
6399 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
6400 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
6401 * testsuite/libgomp.c/target-33.c:
6402 Remove xfail for offload_target_nvptx.
6403 * testsuite/libgomp.c/target-34.c: Likewise.
6405 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
6407 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
6408 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
6409 * testsuite/libgomp.c/target-34.c: Likewise.
6410 * testsuite/libgomp.c/target-link-1.c: Add xfail for
6411 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
6413 2020-02-09 Jakub Jelinek <jakub@redhat.com>
6415 * testsuite/libgomp.c/target-38.c: New test.
6417 2020-02-06 Jakub Jelinek <jakub@redhat.com>
6420 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
6422 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
6424 * testsuite/lib/libgomp.exp
6425 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
6426 and not as 'source' argument to libgomp_target_compile.
6428 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
6430 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
6431 (gcn_gfx801_s): Remove.
6432 (isa_hsa_name): Remove gfx801.
6433 (isa_gcc_name): Remove gfx801/carizzo.
6434 (isa_code): Remove gfx801.
6436 2020-02-03 Julian Brown <julian@codesourcery.com>
6437 Tobias Burnus <tobias@codesourcery.com>
6439 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
6440 and *_finalize variants; document acc_attach and acc_detach; update
6441 references from OpenACC 2.0 to 2.6.
6442 * openacc.f90 (openacc_version): Update to 201711.
6443 * openacc_lib.h (openacc_version): Update to 201711.
6444 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
6445 openacc_version to 201711.
6446 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
6448 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
6450 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
6451 and vgpr_count fields.
6452 (struct kernel_info): Add a field for a hsa_kernel_description.
6453 (run_kernel): Reduce the number of threads/workers if the requested
6454 number would require too many VGPRs.
6455 (init_basic_kernel_info): Initialize description field with
6456 the hsa_kernel_description entry for the kernel.
6458 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
6461 * plugin/configfrag.ac (enable_offload_targets): Skip
6462 HSA and GCN plugin besides -m32 also for -mx32.
6463 * configure: Regenerate.
6465 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
6467 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
6469 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
6471 * plugin-gcn.c (struct agent_info): Add fields "name" and
6473 (GOMP_OFFLOAD_init_device): ... and init from here.
6474 (struct hsa_context_info): Add field "driver_version_s" ...
6475 (init_hsa_contest): ... and init from here.
6476 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
6478 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
6479 Enable test execution for amdgcn and host offloading targets.
6480 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
6481 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
6482 (expect_device_properties): Split function into ...
6483 (expect_device_string_properties): ... this new function ...
6484 (expect_device_memory): ... and this new function.
6485 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
6488 2020-01-28 Julian Brown <julian@codesourcery.com>
6490 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
6491 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
6492 component/non-component variable refs in a single directive.
6493 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
6495 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
6497 * configure.ac: Handle `--with-toolexeclibdir='.
6498 * Makefile.in: Regenerate.
6499 * aclocal.m4: Regenerate.
6500 * configure: Regenerate.
6501 * testsuite/Makefile.in: Regenerate.
6503 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
6505 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
6506 (expect_device_properties): Remove "expected_free_mem" argument,
6507 change "expected_total_mem" argument type to size_t;
6508 change types of acc_get_property results to size_t,
6509 adapt format strings.
6510 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
6511 Use %zu instead of %zd to print size_t values.
6512 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
6514 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
6515 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
6517 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
6519 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
6521 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
6524 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
6526 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
6527 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
6528 Adjust test dimensions for amdgcn.
6529 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
6530 gang/worker/vector expectations dynamically.
6531 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
6533 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
6534 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
6535 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
6536 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
6537 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
6538 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
6539 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
6540 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
6541 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
6542 (acc_gang): Recognise acc_device_radeon.
6543 (acc_worker): Likewise.
6544 (acc_vector): Likewise.
6545 (main): Set expectations for amdgcn.
6546 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
6547 (main): Adjust gang/worker/vector expectations dynamically.
6548 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
6549 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
6550 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
6551 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
6554 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
6556 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
6558 (openacc): Likewise.
6559 * openacc.f90 (openacc_kinds): Likewise.
6560 (openacc): Likewise.
6561 * openacc.h (acc_device_t): Likewise.
6562 * openacc_lib.h: Likewise.
6563 * testsuite/lib/libgomp.exp
6564 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
6565 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
6566 (cb_compute_construct_end): Likewise.
6567 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
6568 (cb_enqueue_launch_start): Likewise.
6569 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
6570 (cb_enter_data_end): Likewise.
6571 (cb_exit_data_start): Likewise.
6572 (cb_exit_data_end): Likewise.
6573 (cb_compute_construct_end): Likewise.
6574 (cb_enqueue_launch_start): Likewise.
6575 (cb_enqueue_launch_end): Likewise.
6576 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
6579 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
6581 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
6582 to use this instead of 'enum gomp_device_property'.
6583 (GOMP_OFFLOAD_get_property): Rename to...
6584 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
6585 * libgomp.h (struct gomp_device_descr): Move
6586 'GOMP_OFFLOAD_openacc_get_property'...
6587 (struct acc_dispatch_t): ... here. Adjust all users.
6588 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
6590 * target.c (gomp_map_vars_internal)
6591 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
6594 2020-01-10 Jakub Jelinek <jakub@redhat.com>
6597 * libgomp.h (gomp_print_string): Change return type from void to int.
6598 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
6599 not all characters have been written.
6601 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
6603 * libgomp.texi: Fix typos, use https.
6605 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
6607 * testsuite/libgomp.fortran/optional-map.f90: Add test for
6608 unallocated/disassociated actual arguments to nonallocatable/nonpointer
6609 dummy arguments; those are/shall be regarded as absent arguments.
6610 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
6611 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
6613 2020-01-01 Jakub Jelinek <jakub@redhat.com>
6615 Update copyright years.
6617 * libgomp.texi: Bump @copying's copyright year.
6619 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
6622 * oacc-init.c (goacc_runtime_deinitialize): New function.
6624 2019-12-28 Jakub Jelinek <jakub@redhat.com>
6627 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
6628 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
6630 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
6631 Frederik Harwath <frederik@codesourcery.com>
6632 Thomas Schwinge <tschwinge@codesourcery.com>
6634 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
6635 * libgomp-plugin.h (gomp_device_property_value): New union.
6636 (gomp_device_property_value): New prototype.
6637 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
6639 (acc_device_property_t): New enum.
6640 (acc_get_property, acc_get_property_string): New prototypes.
6641 * oacc-init.c (acc_get_device_type): Also assert that result
6642 is not `acc_device_current'.
6643 (get_property_any, acc_get_property, acc_get_property_string):
6645 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
6646 `acc_property_memory', `acc_property_free_memory',
6647 `acc_property_name', `acc_property_vendor' and
6648 `acc_property_driver' constants. Add `acc_device_property' data
6650 (openacc_internal): Add `acc_get_property' and
6651 `acc_get_property_string' interfaces. Add `acc_get_property_h',
6652 `acc_get_property_string_h', `acc_get_property_l' and
6653 `acc_get_property_string_l'.
6654 * oacc-host.c (host_get_property): New function.
6655 (host_dispatch): Wire it.
6656 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
6657 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
6658 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
6659 * libgomp.texi (OpenACC Runtime Library Routines): Add
6661 (acc_get_property): New node.
6662 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
6664 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
6665 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
6666 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
6668 (GOMP_OFFLOAD_get_property): New function.
6669 (struct ptx_device): Add new field "name".
6670 (cuda_driver_version_s): Add new static variable ...
6671 (nvptx_init): ... and init from here.
6673 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
6674 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
6675 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
6676 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
6677 with test helper functions.
6679 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
6681 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
6683 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
6686 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
6688 * target.c (gomp_map_vars_internal): Restore 'omp declare target
6691 2019-12-19 Julian Brown <julian@codesourcery.com>
6693 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
6694 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
6695 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
6697 2019-12-19 Julian Brown <julian@codesourcery.com>
6698 Cesar Philippidis <cesar@codesourcery.com>
6700 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
6701 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
6702 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
6703 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
6704 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
6705 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
6706 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
6707 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
6708 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
6709 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
6710 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
6711 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
6712 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
6714 2019-12-19 Julian Brown <julian@codesourcery.com>
6716 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
6717 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
6718 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
6719 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
6720 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
6721 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
6722 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
6723 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
6724 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
6725 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
6726 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
6727 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
6729 2019-12-19 Julian Brown <julian@codesourcery.com>
6731 * libgomp.h (struct target_var_desc): Add do_detach flag.
6732 * oacc-init.c (acc_shutdown_1): Free aux block if present.
6733 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
6734 struct components. Tidy up and add some new checks.
6735 (goacc_enter_data_internal): Update call to find_group_last.
6736 (goacc_exit_data_internal): Support detach operations and
6738 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
6739 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
6740 attach/detach in enter/exit data detection code.
6741 * target.c (gomp_map_vars_existing): Initialise do_detach field of
6743 (gomp_map_vars_internal): Support attach.
6744 (gomp_unmap_vars_internal): Support detach.
6746 2019-12-19 Julian Brown <julian@codesourcery.com>
6747 Thomas Schwinge <thomas@codesourcery.com>
6749 * libgomp.h (struct splay_tree_aux): Add attach_count field.
6750 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
6751 * libgomp.map (OACC_2.6): New section. Add acc_attach,
6752 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
6753 acc_detach_finalize_async.
6754 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
6755 acc_detach, acc_detach_async, acc_detach_finalize,
6756 acc_detach_finalize_async): New functions.
6757 * openacc.h (acc_attach, acc_attach_async, acc_detach,
6758 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
6760 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
6761 (gomp_remove_var_internal): Free attachment counts if present.
6762 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
6763 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
6765 2019-12-19 Julian Brown <julian@codesourcery.com>
6766 Cesar Philippidis <cesar@codesourcery.com>
6768 * libgomp.h (gomp_map_val): Add prototype.
6769 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
6770 open-coding device-address calculation.
6771 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
6774 2019-12-19 Julian Brown <julian@codesourcery.com>
6776 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
6777 field for virtual_refcount.
6778 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
6779 (gomp_free_memmap): Remove prototype.
6780 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
6781 instead of calling gomp_free_memmap.
6782 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
6784 (acc_unmap_data): Open code instead of forcing target_mem_desc's
6785 to_free field to NULL then calling gomp_unmap_vars. Handle
6786 REFCOUNT_INFINITY on target blocks.
6787 (goacc_enter_data): Rename to...
6788 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
6789 handling for mapping groups. Use virtual_refcount instead of
6790 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
6791 map_map_vars_async call. Re-do lookup for target pointer return value.
6792 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
6793 renamed goacc_enter_datum function.
6794 (goacc_exit_data): Rename to...
6795 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
6796 (acc_delete, acc_delete_async, acc_delete_finalize,
6797 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
6798 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
6799 goacc_exit_datum function.
6800 (gomp_acc_remove_pointer, find_pointer): Remove functions.
6801 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
6803 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
6804 goacc_exit_data_internal helper functions.
6805 * target.c (gomp_map_vars_internal): Handle
6806 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
6808 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
6809 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
6810 virtual_refcount field instead of dynamic_refcount.
6811 (gomp_free_memmap): Remove function.
6812 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
6813 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
6814 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
6816 2019-12-19 Julian Brown <julian@codesourcery.com>
6817 Thomas Schwinge <thomas@codesourcery.com>
6819 * libgomp.h (struct splay_tree_aux): New.
6820 (struct splay_tree_key_s): Replace link_key field with aux pointer.
6821 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
6823 (gomp_remove_var_internal): Free aux block if present.
6824 (gomp_load_image_to_device): Zero-initialise aux field instead of
6826 (omp_target_associate_pointer): Zero-initialise aux field.
6828 2019-12-18 Jakub Jelinek <jakub@redhat.com>
6831 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
6833 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
6836 2019-12-19 Julian Brown <julian@codesourcery.com>
6837 Maciej W. Rozycki <macro@codesourcery.com>
6838 Tobias Burnus <tobias@codesourcery.com>
6839 Thomas Schwinge <thomas@codesourcery.com>
6841 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
6842 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
6843 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
6844 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
6845 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
6846 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
6847 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
6848 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
6849 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
6851 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
6853 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
6855 (goacc_insert_pointer): ... from here, "present" case.
6856 (goacc_insert_pointer): Inline function into...
6857 (GOACC_enter_exit_data): ... here, and simplify.
6859 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
6861 (goacc_insert_pointer): ... from here, "not present" case.
6863 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
6866 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
6867 'goacc_enter_data', 'goacc_exit_data'.
6869 * oacc-mem.c (delete_copyout): Refactor into...
6870 (goacc_exit_data): ... this. Adjust all users.
6872 * oacc-mem.c (present_create_copy): Refactor into...
6873 (goacc_enter_data): ... this. Adjust all users.
6875 * target.c (gomp_unmap_vars_internal): Add a safeguard to
6878 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
6879 like 'GOMP_MAP_FROM'.
6884 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
6886 (GOACC_enter_exit_data): Simplify accordingly.
6887 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
6889 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
6890 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
6892 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
6894 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
6895 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
6897 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
6899 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
6901 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
6902 'finalize' handling.
6905 * oacc-mem.c (acc_map_data, present_create_copy)
6906 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
6907 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
6908 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
6909 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
6910 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
6911 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
6912 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
6913 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
6916 * target.c (gomp_unmap_tgt): Make it 'static'.
6917 * libgomp.h (gomp_unmap_tgt): Remove.
6919 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
6922 * testsuite/libgomp.c/pr86416-1.c: New.
6923 * testsuite/libgomp.c/pr86416-2.c: New.
6925 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
6927 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
6928 all symbols as public except for the 'use …, only' imported symbol,
6930 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
6931 all symbols from module openacc_kinds as PUBLIC
6932 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
6934 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
6936 2019-12-13 Julian Brown <julian@codesourcery.com>
6940 * libgomp.h (gomp_remove_var_async): Add prototype.
6941 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
6943 * target.c (gomp_unref_tgt): Change return type to bool, indicating
6944 whether target_mem_desc was unmapped.
6945 (gomp_unref_tgt_void): New.
6946 (gomp_remove_var): Reimplement in terms of...
6947 (gomp_remove_var_internal): ...this new helper function.
6948 (gomp_remove_var_async): New, implemented using above helper function.
6949 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
6952 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
6954 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
6955 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
6956 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
6957 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
6958 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
6960 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
6961 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
6963 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
6965 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
6966 as public except for the 'use …, only' imported symbol, which is
6968 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
6969 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
6970 attributes for acc_copyout_finalize and acc_delete_finalize.
6972 2019-12-11 Jakub Jelinek <jakub@redhat.com>
6975 * testsuite/libgomp.fortran/atomic1.f90: New test.
6977 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
6980 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
6981 reference counting for structured 'REFCOUNT_INFINITY'. Add some
6983 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
6984 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
6985 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
6986 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
6987 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
6989 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
6990 * oacc-mem.c: ... here.
6991 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
6992 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
6993 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
6995 * libgomp_g.h: Update.
6997 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
6998 * oacc-async.c: ... here.
6999 * oacc-int.h (goacc_wait): Declare.
7000 * libgomp_g.h: Update
7003 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
7005 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
7007 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
7009 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
7011 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
7013 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
7016 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
7017 Julian Brown <julian@codesourcery.com>
7019 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
7020 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
7022 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
7024 * omp_lib.h.in: Fix spelling of function declaration
7025 omp_get_cancell(l)ation.
7026 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
7028 * env.c: Fix comment typos.
7029 * oacc-host.c: Likewise.
7030 * ordered.c: Likewise.
7033 * config/gcn/task.c: Likewise.
7034 * config/gcn/team.c: Likewise.
7035 * config/nvptx/task.c: Likewise.
7036 * config/nvptx/team.c: Likewise.
7037 * plugin/plugin-gcn.c: Likewise.
7038 * testsuite/libgomp.fortran/jacobi.f: Likewise.
7039 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
7040 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
7042 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
7044 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
7045 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
7046 unnecessary 'dg-additional-options "-w"'.
7048 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
7049 Julian Brown <julian@codesourcery.com>
7054 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
7055 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
7057 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
7059 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
7061 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
7063 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
7066 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
7067 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
7069 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
7071 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
7073 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
7075 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
7077 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
7079 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
7080 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
7081 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
7082 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
7083 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
7084 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
7085 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
7086 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7087 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
7088 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
7091 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
7092 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
7093 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
7095 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
7097 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
7099 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
7100 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
7103 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
7105 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
7107 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
7109 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
7111 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
7112 ... with their content moved into, and extended in this new file.
7113 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
7115 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
7117 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
7119 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
7122 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
7125 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
7127 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
7129 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
7131 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
7133 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
7135 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
7136 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
7137 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
7138 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
7140 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
7141 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
7143 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
7145 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
7147 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
7148 Kwok Cheung Yeung <kcy@codesourcery.com>
7150 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
7151 if input it a NULL pointer.
7152 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
7153 diagnostic of NULL pointer.
7154 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
7155 * testsuite/libgomp.fortran/optional-map.f90: New.
7156 * testsuite/libgomp.fortran/use_device_addr-1.f90
7157 (test_dummy_opt_callee_1_absent): New.
7158 (test_dummy_opt_call_1): Call it.
7159 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
7160 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
7161 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
7162 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
7163 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
7164 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
7165 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
7166 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
7167 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
7168 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
7169 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
7170 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
7171 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
7172 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
7173 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
7174 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
7176 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
7178 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
7179 expect dg-output of 'Error termination.' for GCN.
7180 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
7181 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
7183 2019-12-04 Jakub Jelinek <jakub@redhat.com>
7186 * testsuite/libgomp.fortran/teams1.f90: New test.
7187 * testsuite/libgomp.fortran/teams2.f90: New test.
7189 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
7191 * oacc-init.c (acc_known_device_type): Add function.
7192 (unknown_device_type_error): Add function.
7193 (name_of_acc_device_t): Change to call unknown_device_type_error
7195 (resolve_device): Use acc_known_device_type.
7196 (acc_init): Fail if acc_device_t argument is not valid.
7197 (acc_shutdown): Likewise.
7198 (acc_get_num_devices): Likewise.
7199 (acc_set_device_type): Likewise.
7200 (acc_get_device_num): Likewise.
7201 (acc_set_device_num): Likewise.
7202 (acc_on_device): Add comment that argument validity is not checked.
7204 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
7206 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
7208 (check_effective_target_openacc_amdgcn_accel_present): New proc.
7209 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
7210 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
7211 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7212 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7214 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
7217 * configure.tgt: Avoid IE tls on *-*-musl*.
7219 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
7221 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
7222 adding a common-block test case.
7224 2019-11-29 Jakub Jelinek <jakub@redhat.com>
7227 * testsuite/libgomp.c++/udr-20.C: New test.
7228 * testsuite/libgomp.c++/udr-21.C: New test.
7230 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
7232 * testsuite/lib/libgomp.exp
7233 (check_effective_target_offload_target_nvptx): New proc.
7234 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
7236 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
7237 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
7238 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
7240 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7242 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
7243 * testsuite/libgomp.c/pr39591-2.c: Likewise.
7244 * testsuite/libgomp.c/pr39591-3.c: Likewise.
7245 * testsuite/libgomp.c/private-1.c: Likewise.
7246 * testsuite/libgomp.c/task-1.c: Likewise.
7247 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
7249 2019-11-20 Julian Brown <julian@codesourcery.com>
7251 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
7253 (queue_push_launch): Lock aq->mutex before calling
7254 wait_for_queue_nonfull.
7255 (queue_push_callback): Likewise.
7256 (queue_push_asyncwait): Likewise.
7257 (queue_push_placeholder): Likewise.
7259 2019-11-20 Julian Brown <julian@codesourcery.com>
7261 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
7262 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
7263 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
7266 2019-11-20 Julian Brown <julian@codesourcery.com>
7270 * oacc-mem.c (present_create_copy): Fix device pointer return value in
7271 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
7272 in non-present/create case.
7273 (delete_copyout): Change error condition to fail only on copies outside
7274 of mapped block. Adjust error message accordingly.
7275 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
7276 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
7277 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
7279 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7280 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
7281 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7283 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
7285 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
7286 libatomic in build-tree testing.
7288 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
7290 * testsuite/Makefile.in: Regenerate.
7292 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
7294 * testsuite/libgomp.c/target-print-1.c: New file.
7295 * testsuite/libgomp.fortran/target-print-1.f90: New file.
7296 * testsuite/libgomp.oacc-c/print-1.c: New file.
7297 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
7299 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
7300 Kwok Cheung Yeung <kcy@codesourcery.com>
7301 Julian Brown <julian@codesourcery.com>
7302 Tom de Vries <tom@codesourcery.com>
7304 * plugin/Makefrag.am: Add amdgcn plugin support.
7305 * plugin/configfrag.ac: Likewise.
7306 * plugin/plugin-gcn.c: New file.
7307 * configure: Regenerate.
7308 * Makefile.in: Regenerate.
7309 * testsuite/Makefile.in: Regenerate.
7311 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
7313 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
7314 and use team_malloc variants.
7315 (gomp_gcn_exit_kernel): Use team_free.
7316 * libgomp.h (TEAM_ARENA_SIZE): Define.
7317 (TEAM_ARENA_START): Define.
7318 (TEAM_ARENA_FREE): Define.
7319 (TEAM_ARENA_END): Define.
7320 (team_malloc): New function.
7321 (team_malloc_cleared): New function.
7322 (team_free): New function.
7323 * team.c (gomp_new_team): Initialize and use team_malloc.
7324 (free_team): Use team_free.
7325 (gomp_free_thread): Use team_free.
7326 (gomp_pause_host): Use team_free.
7327 * work.c (gomp_init_work_share): Use team_malloc.
7328 (gomp_fini_work_share): Use team_free.
7330 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
7331 Kwok Cheung Yeung <kcy@codesourcery.com>
7332 Julian Brown <julian@codesourcery.com>
7333 Tom de Vries <tom@codesourcery.com>
7335 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
7336 * Makefile.in: Regenerate.
7337 * config.h.in (PLUGIN_GCN): Add new undef.
7338 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
7339 * config/gcn/affinity-fmt.c: New file.
7340 * config/gcn/bar.c: New file.
7341 * config/gcn/bar.h: New file.
7342 * config/gcn/doacross.h: New file.
7343 * config/gcn/icv-device.c: New file.
7344 * config/gcn/oacc-target.c: New file.
7345 * config/gcn/simple-bar.h: New file.
7346 * config/gcn/target.c: New file.
7347 * config/gcn/task.c: New file.
7348 * config/gcn/team.c: New file.
7349 * config/gcn/time.c: New file.
7350 * configure.ac: Add amdgcn*-*-*.
7351 * configure: Regenerate.
7352 * configure.tgt: Add amdgcn*-*-*.
7353 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
7354 * libgomp.h (gcn_thrs): Add amdgcn variant.
7355 (set_gcn_thrs): Likewise.
7356 (gomp_thread): Likewise.
7357 * oacc-int.h (goacc_thread): Likewise.
7358 * oacc-target.c: New file.
7359 * openacc.f90 (acc_device_gcn): New parameter.
7360 * openacc.h (acc_device_t): Add acc_device_gcn.
7361 * team.c (gomp_free_pool_helper): Add amdgcn support.
7363 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
7364 Julian Brown <julian@codesourcery.com>
7366 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
7368 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
7370 * oacc-host.c (host_openacc_async_construct): Add device parameter.
7371 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
7374 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
7376 * configure.tgt (nvptx*-*-*): Add "accel" directory.
7377 * config/nvptx/libgomp-plugin.c: Move ...
7378 * config/accel/libgomp-plugin.c: ... to here.
7379 * config/nvptx/lock.c: Move ...
7380 * config/accel/lock.c: ... to here.
7381 * config/nvptx/mutex.c: Move ...
7382 * config/accel/mutex.c: ... to here.
7383 * config/nvptx/mutex.h: Move ...
7384 * config/accel/mutex.h: ... to here.
7385 * config/nvptx/oacc-async.c: Move ...
7386 * config/accel/oacc-async.c: ... to here.
7387 * config/nvptx/oacc-cuda.c: Move ...
7388 * config/accel/oacc-cuda.c: ... to here.
7389 * config/nvptx/oacc-host.c: Move ...
7390 * config/accel/oacc-host.c: ... to here.
7391 * config/nvptx/oacc-init.c: Move ...
7392 * config/accel/oacc-init.c: ... to here.
7393 * config/nvptx/oacc-mem.c: Move ...
7394 * config/accel/oacc-mem.c: ... to here.
7395 * config/nvptx/oacc-plugin.c: Move ...
7396 * config/accel/oacc-plugin.c: ... to here.
7397 * config/nvptx/omp-lock.h: Move ...
7398 * config/accel/omp-lock.h: ... to here.
7399 * config/nvptx/openacc.f90: Move ...
7400 * config/accel/openacc.f90: ... to here.
7401 * config/nvptx/pool.h: Move ...
7402 * config/accel/pool.h: ... to here.
7403 * config/nvptx/proc.c: Move ...
7404 * config/accel/proc.c: ... to here.
7405 * config/nvptx/ptrlock.c: Move ...
7406 * config/accel/ptrlock.c: ... to here.
7407 * config/nvptx/ptrlock.h: Move ...
7408 * config/accel/ptrlock.h: ... to here.
7409 * config/nvptx/sem.c: Move ...
7410 * config/accel/sem.c: ... to here.
7411 * config/nvptx/sem.h: Move ...
7412 * config/accel/sem.h: ... to here.
7413 * config/nvptx/thread-stacksize.h: Move ...
7414 * config/accel/thread-stacksize.h: ... to here.
7416 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
7417 Tobias Burnus <tobias@codesourcery.com>
7418 Frederik Harwath <frederik@codesourcery.com>
7419 Thomas Schwinge <thomas@codesourcery.com>
7422 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
7423 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
7424 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
7426 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
7427 Kwok Cheung Yeung <kcy@codesourcery.com>
7429 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
7430 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
7432 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
7434 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
7436 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
7438 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
7439 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
7441 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
7443 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
7444 Add expected warnings about missing reduction clauses.
7445 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
7447 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
7449 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
7452 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
7454 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
7455 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
7456 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
7457 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
7458 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
7459 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
7461 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
7464 * testsuite/libgomp.fortran/allocatable2.f90: Use
7465 unique numbers with 'stop'.
7466 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
7467 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
7468 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
7469 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
7470 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
7472 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
7474 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
7475 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
7476 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
7477 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
7478 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
7479 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
7481 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
7483 * testsuite/libgomp.fortran/target9.f90: New.
7485 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
7487 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
7488 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
7489 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
7490 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
7491 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
7492 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
7493 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
7494 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
7495 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
7496 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
7497 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
7498 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
7499 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
7500 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
7501 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
7502 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
7503 * testsuite/libgomp.fortran/associate1.f90: Ditto.
7504 * testsuite/libgomp.fortran/associate2.f90: Ditto.
7505 * testsuite/libgomp.fortran/associate3.f90: Ditto.
7506 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
7507 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
7508 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
7509 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
7510 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
7511 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
7512 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
7513 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
7514 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
7515 * testsuite/libgomp.fortran/character1.f90: Ditto.
7516 * testsuite/libgomp.fortran/character2.f90: Ditto.
7517 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
7518 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
7519 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
7520 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
7521 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
7522 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
7523 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
7524 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
7525 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
7526 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
7527 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
7528 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
7529 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
7530 * testsuite/libgomp.fortran/do1.f90: Ditto.
7531 * testsuite/libgomp.fortran/do2.f90: Ditto.
7532 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
7533 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
7534 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
7535 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
7536 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
7537 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
7538 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
7539 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
7540 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
7541 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
7542 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
7543 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
7544 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
7545 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
7546 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
7547 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
7548 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
7549 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
7550 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
7551 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
7552 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
7553 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
7554 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
7555 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
7556 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
7557 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
7558 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
7559 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
7560 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
7561 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
7562 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
7563 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
7564 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
7565 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
7566 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
7567 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
7568 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
7569 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
7570 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
7571 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
7572 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
7573 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
7574 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
7575 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
7576 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
7577 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
7578 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
7579 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
7580 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
7581 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
7582 * testsuite/libgomp.fortran/lib1.f90: Ditto.
7583 * testsuite/libgomp.fortran/lib4.f90: Ditto.
7584 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
7585 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
7586 * testsuite/libgomp.fortran/nested1.f90: Ditto.
7587 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
7588 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
7589 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
7590 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
7591 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
7592 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
7593 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
7594 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
7595 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
7596 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
7597 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
7598 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
7599 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
7600 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
7601 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
7602 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
7603 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
7604 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
7605 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
7606 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
7607 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
7608 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
7609 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
7610 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
7611 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
7612 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
7613 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
7614 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
7615 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
7616 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
7617 * testsuite/libgomp.fortran/pr28390.f: Ditto.
7618 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
7619 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
7620 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
7621 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
7622 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
7623 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
7624 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
7625 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
7626 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
7627 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
7628 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
7629 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
7630 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
7631 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
7632 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
7633 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
7634 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
7635 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
7636 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
7637 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
7638 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
7639 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
7640 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
7641 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
7642 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
7643 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
7644 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
7645 * testsuite/libgomp.fortran/reference1.f90: Ditto.
7646 * testsuite/libgomp.fortran/reference2.f90: Ditto.
7647 * testsuite/libgomp.fortran/retval1.f90: Ditto.
7648 * testsuite/libgomp.fortran/retval2.f90: Ditto.
7649 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
7650 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
7651 * testsuite/libgomp.fortran/simd1.f90: Ditto.
7652 * testsuite/libgomp.fortran/simd2.f90: Ditto.
7653 * testsuite/libgomp.fortran/simd3.f90: Ditto.
7654 * testsuite/libgomp.fortran/simd4.f90: Ditto.
7655 * testsuite/libgomp.fortran/simd5.f90: Ditto.
7656 * testsuite/libgomp.fortran/simd6.f90: Ditto.
7657 * testsuite/libgomp.fortran/simd7.f90: Ditto.
7658 * testsuite/libgomp.fortran/stack.f90: Ditto.
7659 * testsuite/libgomp.fortran/strassen.f90: Ditto.
7660 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
7661 * testsuite/libgomp.fortran/tabs2.f: Ditto.
7662 * testsuite/libgomp.fortran/target1.f90: Ditto.
7663 * testsuite/libgomp.fortran/target2.f90: Ditto.
7664 * testsuite/libgomp.fortran/target3.f90: Ditto.
7665 * testsuite/libgomp.fortran/target4.f90: Ditto.
7666 * testsuite/libgomp.fortran/target5.f90: Ditto.
7667 * testsuite/libgomp.fortran/target6.f90: Ditto.
7668 * testsuite/libgomp.fortran/target7.f90: Ditto.
7669 * testsuite/libgomp.fortran/target8.f90: Ditto.
7670 * testsuite/libgomp.fortran/task1.f90: Ditto.
7671 * testsuite/libgomp.fortran/task2.f90: Ditto.
7672 * testsuite/libgomp.fortran/task3.f90: Ditto.
7673 * testsuite/libgomp.fortran/task4.f90: Ditto.
7674 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
7675 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
7676 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
7677 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
7678 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
7679 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
7680 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
7681 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
7682 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
7683 * testsuite/libgomp.fortran/udr1.f90: Ditto.
7684 * testsuite/libgomp.fortran/udr10.f90: Ditto.
7685 * testsuite/libgomp.fortran/udr11.f90: Ditto.
7686 * testsuite/libgomp.fortran/udr12.f90: Ditto.
7687 * testsuite/libgomp.fortran/udr13.f90: Ditto.
7688 * testsuite/libgomp.fortran/udr14.f90: Ditto.
7689 * testsuite/libgomp.fortran/udr15.f90: Ditto.
7690 * testsuite/libgomp.fortran/udr2.f90: Ditto.
7691 * testsuite/libgomp.fortran/udr3.f90: Ditto.
7692 * testsuite/libgomp.fortran/udr4.f90: Ditto.
7693 * testsuite/libgomp.fortran/udr5.f90: Ditto.
7694 * testsuite/libgomp.fortran/udr6.f90: Ditto.
7695 * testsuite/libgomp.fortran/udr7.f90: Ditto.
7696 * testsuite/libgomp.fortran/udr8.f90: Ditto.
7697 * testsuite/libgomp.fortran/udr9.f90: Ditto.
7698 * testsuite/libgomp.fortran/vla1.f90: Ditto.
7699 * testsuite/libgomp.fortran/vla2.f90: Ditto.
7700 * testsuite/libgomp.fortran/vla3.f90: Ditto.
7701 * testsuite/libgomp.fortran/vla4.f90: Ditto.
7702 * testsuite/libgomp.fortran/vla5.f90: Ditto.
7703 * testsuite/libgomp.fortran/vla6.f90: Ditto.
7704 * testsuite/libgomp.fortran/vla7.f90: Ditto.
7705 * testsuite/libgomp.fortran/vla8.f90: Ditto.
7706 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
7707 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
7709 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
7711 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
7712 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
7713 Ditto; add 'dg-do run' for torture testing.
7714 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
7715 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
7716 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
7717 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
7718 * testsuite/libgomp.fortran/pr28390.f: Ditto.
7719 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
7720 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
7721 * testsuite/libgomp.fortran/task2.f90: Ditto.
7722 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
7723 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
7724 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
7725 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
7726 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
7727 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
7729 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
7731 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
7732 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
7733 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
7734 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
7735 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
7736 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
7737 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
7738 Use 'stop' not abort().
7739 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
7740 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
7741 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
7742 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
7743 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
7744 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
7745 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
7746 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
7747 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
7748 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
7749 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
7750 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
7751 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
7752 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
7753 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
7754 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
7755 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
7757 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
7759 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
7761 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
7763 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
7765 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
7767 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
7769 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
7771 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
7773 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
7775 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
7777 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
7779 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
7781 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
7783 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
7784 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
7785 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
7786 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
7787 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
7788 Likewise and also add 'dg-do run'.
7789 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
7792 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7793 Tobias Burnus <tobias@codesourcery.com>
7795 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
7796 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
7797 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
7799 2019-10-14 Jakub Jelinek <jakub@redhat.com>
7802 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
7805 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
7807 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
7808 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
7810 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
7813 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
7816 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
7819 * testsuite/libgomp.fortran/fortran.exp: Conditionally
7821 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
7823 2019-10-09 Jakub Jelinek <jakub@redhat.com>
7826 * target.c (gomp_map_vars_internal): Readd the previous
7827 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
7828 though do that just in the !not_found_cnt case.
7830 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
7832 * gfortran.dg/gomp/target-simd.f90: New.
7834 2019-10-02 Julian Brown <julian@codesourcery.com>
7835 Cesar Philippidis <cesar@codesourcery.com>
7837 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
7838 * target.c (FIELD_TGT_EMPTY): Define.
7839 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
7840 as switch instead of list of ifs.
7841 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
7843 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
7845 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
7846 include. Replace alloca () with __builtin_alloca ().
7847 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
7849 2019-10-01 Jakub Jelinek <jakub@redhat.com>
7851 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
7852 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
7853 * oacc-parallel.c: Don't include "libgomp_g.h".
7854 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
7855 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
7856 * aclocal.m4: Regenerated.
7857 * config.h.in: Regenerated.
7858 * configure: Regenerated.
7859 * Makefile.in: Regenerated.
7861 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
7863 * libgomp_g.h: Include stdint.h instead of gstdint.h.
7865 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
7867 * configure: Regenerate.
7869 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
7871 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
7872 string is initialized.
7874 2019-09-06 Florian Weimer <fweimer@redhat.com>
7876 * configure: Regenerate.
7878 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
7881 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
7882 scanning to conform to the GNU Coding Standards.
7883 * configure: Regenerate.
7885 2019-08-28 Jakub Jelinek <jakub@redhat.com>
7888 * testsuite/libgomp.c/scan-21.c: New test.
7889 * testsuite/libgomp.c/scan-22.c: New test.
7891 2019-08-27 Jakub Jelinek <jakub@redhat.com>
7894 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
7896 * testsuite/libgomp.c/scan-12.c: Likewise.
7897 * testsuite/libgomp.c/scan-13.c: Likewise.
7898 * testsuite/libgomp.c/scan-14.c: Likewise.
7899 * testsuite/libgomp.c/scan-15.c: Likewise.
7900 * testsuite/libgomp.c/scan-16.c: Likewise.
7901 * testsuite/libgomp.c/scan-17.c: Likewise.
7902 * testsuite/libgomp.c/scan-18.c: Likewise.
7903 * testsuite/libgomp.c/scan-19.c: Likewise.
7904 * testsuite/libgomp.c/scan-20.c: Likewise.
7905 * testsuite/libgomp.c++/scan-9.C: Likewise.
7906 * testsuite/libgomp.c++/scan-10.C: Likewise.
7907 * testsuite/libgomp.c++/scan-11.C: Likewise.
7908 * testsuite/libgomp.c++/scan-12.C: Likewise.
7909 * testsuite/libgomp.c++/scan-14.C: Likewise.
7910 * testsuite/libgomp.c++/scan-15.C: Likewise.
7911 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
7912 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
7913 * testsuite/libgomp.c++/scan-16.C: Likewise.
7915 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
7918 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
7919 -std=legacy so invalid code in the test case is accepted.
7921 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
7924 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
7927 2019-08-08 Jakub Jelinek <jakub@redhat.com>
7929 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
7930 perform the lookup in the first loop only if !not_found_cnt, otherwise
7931 perform lookups for it in the second loop guarded with
7932 if (not_found_cnt || has_firstprivate).
7933 * testsuite/libgomp.c/target-37.c: New test.
7934 * testsuite/libgomp.c++/target-22.C: New test.
7936 2019-08-07 Jakub Jelinek <jakub@redhat.com>
7938 * testsuite/libgomp.c/target-18.c (struct S): New type.
7939 (foo): Use use_device_addr clause instead of use_device_ptr clause
7940 where required by OpenMP 5.0, add further tests for both use_device_ptr
7941 and use_device_addr clauses.
7942 * testsuite/libgomp.c++/target-9.C (struct S): New type.
7943 (foo): Use use_device_addr clause instead of use_device_ptr clause
7944 where required by OpenMP 5.0, add further tests for both use_device_ptr
7945 and use_device_addr clauses. Add t and u arguments.
7946 (main): Adjust caller.
7948 2019-08-06 Jakub Jelinek <jakub@redhat.com>
7950 * testsuite/libgomp.c++/loop-13.C: New test.
7951 * testsuite/libgomp.c++/loop-14.C: New test.
7952 * testsuite/libgomp.c++/loop-15.C: New test.
7954 2019-07-31 Jakub Jelinek <jakub@redhat.com>
7957 * testsuite/libgomp.c++/for-27.C: New test.
7959 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
7961 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
7962 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
7964 2019-07-20 Jakub Jelinek <jakub@redhat.com>
7966 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
7968 2019-07-08 Jakub Jelinek <jakub@redhat.com>
7970 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
7971 * testsuite/libgomp.c++/scan-16.C: Likewise.
7973 2019-07-06 Jakub Jelinek <jakub@redhat.com>
7975 * testsuite/libgomp.c/scan-19.c: New test.
7976 * testsuite/libgomp.c/scan-20.c: New test.
7978 * testsuite/libgomp.c/scan-11.c: New test.
7979 * testsuite/libgomp.c/scan-12.c: New test.
7980 * testsuite/libgomp.c/scan-13.c: New test.
7981 * testsuite/libgomp.c/scan-14.c: New test.
7982 * testsuite/libgomp.c/scan-15.c: New test.
7983 * testsuite/libgomp.c/scan-16.c: New test.
7984 * testsuite/libgomp.c/scan-17.c: New test.
7985 * testsuite/libgomp.c/scan-18.c: New test.
7986 * testsuite/libgomp.c++/scan-9.C: New test.
7987 * testsuite/libgomp.c++/scan-10.C: New test.
7988 * testsuite/libgomp.c++/scan-11.C: New test.
7989 * testsuite/libgomp.c++/scan-12.C: New test.
7990 * testsuite/libgomp.c++/scan-13.C: New test.
7991 * testsuite/libgomp.c++/scan-14.C: New test.
7992 * testsuite/libgomp.c++/scan-15.C: New test.
7993 * testsuite/libgomp.c++/scan-16.C: New test.
7995 2019-07-04 Jakub Jelinek <jakub@redhat.com>
7997 * testsuite/libgomp.c/scan-9.c: New test.
7998 * testsuite/libgomp.c/scan-10.c: New test.
8000 2019-07-03 Jakub Jelinek <jakub@redhat.com>
8002 * testsuite/libgomp.c++/scan-1.C: New test.
8003 * testsuite/libgomp.c++/scan-2.C: New test.
8004 * testsuite/libgomp.c++/scan-3.C: New test.
8005 * testsuite/libgomp.c++/scan-4.C: New test.
8006 * testsuite/libgomp.c++/scan-5.C: New test.
8007 * testsuite/libgomp.c++/scan-6.C: New test.
8008 * testsuite/libgomp.c++/scan-7.C: New test.
8009 * testsuite/libgomp.c++/scan-8.C: New test.
8010 * testsuite/libgomp.c/scan-1.c: New test.
8011 * testsuite/libgomp.c/scan-2.c: New test.
8012 * testsuite/libgomp.c/scan-3.c: New test.
8013 * testsuite/libgomp.c/scan-4.c: New test.
8014 * testsuite/libgomp.c/scan-5.c: New test.
8015 * testsuite/libgomp.c/scan-6.c: New test.
8016 * testsuite/libgomp.c/scan-7.c: New test.
8017 * testsuite/libgomp.c/scan-8.c: New test.
8019 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
8021 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
8022 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
8025 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
8028 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
8030 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
8033 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
8036 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
8038 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
8039 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
8040 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
8041 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
8044 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
8047 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
8049 2019-06-16 Tom de Vries <tdevries@suse.de>
8051 PR tree-optimization/89376
8052 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
8054 2019-06-15 Tom de Vries <tdevries@suse.de>
8056 PR tree-optimization/89713
8057 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
8058 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
8060 2019-06-15 Jakub Jelinek <jakub@redhat.com>
8063 * testsuite/libgomp.c/pr90779.c: New test.
8064 * testsuite/libgomp.fortran/pr90779.f90: New test.
8066 2019-06-15 Tom de Vries <tdevries@suse.de>
8068 PR tree-optimization/90009
8069 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
8071 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
8073 PR tree-optimization/89713
8074 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
8076 2019-06-11 Jakub Jelinek <jakub@redhat.com>
8079 * testsuite/libgomp.c/pr90811.c: New test.
8081 2019-06-05 Jakub Jelinek <jakub@redhat.com>
8083 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
8084 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
8086 2019-06-04 Jakub Jelinek <jakub@redhat.com>
8088 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
8089 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
8090 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
8091 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
8093 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8095 * configure.ac: Call AX_COUNT_CPUS.
8096 Substitute CPU_COUNT.
8097 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
8099 * aclocal.m4: Regenerate.
8100 * configure: Regenerate.
8101 * Makefile.in, testsuite/Makefile.in: Regenerate.
8103 2019-05-29 Jakub Jelinek <jakub@redhat.com>
8105 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
8107 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
8108 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
8109 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
8111 2019-05-27 Jakub Jelinek <jakub@redhat.com>
8113 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
8115 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
8118 * work.c (gomp_init_work_share): Instead of aligning final ordered
8119 value to multiples of long long alignment, align to that the
8120 first part (ordered team ids) and if inline_ordered_team_ids
8121 is not on a long long alignment boundary within the structure,
8122 use __alignof__ (long long) - 1 pad size always.
8123 * loop.c (GOMP_loop_start): Fix *mem computation if
8124 inline_ordered_team_ids is not aligned on long long alignment boundary
8125 within the structure.
8126 * loop-ull.c (GOMP_loop_ull_start): Likewise.
8127 * sections.c (GOMP_sections2_start): Likewise.
8129 2019-05-24 Jakub Jelinek <jakub@redhat.com>
8131 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
8132 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
8135 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
8136 HAVE_INTTYPES_H is defined.
8137 (print_uint64_t): New typedef.
8138 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
8139 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
8140 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
8141 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
8142 before casting to void *.
8143 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
8144 * oacc-mem.c: Don't include config.h nor stdint.h.
8145 * target.c: Don't include config.h.
8146 * oacc-cuda.c: Likewise.
8147 * oacc-host.c: Don't include stdint.h.
8149 2019-05-20 Jakub Jelinek <jakub@redhat.com>
8152 * alloc.c (_GNU_SOURCE): Define.
8154 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
8156 * acc_prof.h: New file.
8157 * oacc-profiling.c: Likewise.
8158 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
8159 Add these, respectively.
8160 * Makefile.in: Regenerate.
8161 * env.c (initialize_env): Call goacc_profiling_initialize.
8162 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
8163 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
8164 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
8165 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
8166 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
8167 acc_prof_register, acc_prof_unregister, and acc_register_library.
8168 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
8169 GOMP_PLUGIN_goacc_thread.
8170 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
8171 prof_callbacks_enabled members.
8172 (goacc_prof_enabled, goacc_profiling_initialize)
8173 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
8174 (goacc_profiling_dispatch): Declare.
8175 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
8176 (GOACC_PROFILING_SETUP_P): Define.
8177 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
8178 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
8179 OpenACC Profiling Interface.
8180 * oacc-cuda.c (acc_get_current_cuda_device)
8181 (acc_get_current_cuda_context, acc_get_cuda_stream)
8182 (acc_set_cuda_stream): Likewise.
8183 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
8184 (acc_init, acc_set_device_type, acc_get_device_type)
8185 (acc_get_device_num, goacc_lazy_initialize): Likewise.
8186 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
8187 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
8188 (acc_unmap_data, present_create_copy, delete_copyout)
8189 (update_dev_host): Likewise.
8190 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
8191 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
8193 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
8194 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
8196 * libgomp.texi: Update.
8197 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
8199 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
8200 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
8202 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
8204 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
8206 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
8209 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
8211 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
8212 (struct goacc_asyncqueue_list): Likewise.
8213 (goacc_aq): Likewise.
8214 (goacc_aq_list): Likewise.
8215 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
8216 (GOMP_OFFLOAD_openacc_async_test): Remove.
8217 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
8218 (GOMP_OFFLOAD_openacc_async_wait): Remove.
8219 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
8220 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
8221 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
8222 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
8223 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
8224 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
8225 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
8226 (GOMP_OFFLOAD_openacc_async_exec): Declare.
8227 (GOMP_OFFLOAD_openacc_async_construct): Declare.
8228 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
8229 (GOMP_OFFLOAD_openacc_async_test): Declare.
8230 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
8231 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
8232 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
8233 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
8234 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
8236 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
8237 (gomp_acc_insert_pointer): Adjust declaration.
8238 (gomp_copy_host2dev): New declaration.
8239 (gomp_copy_dev2host): Likewise.
8240 (gomp_map_vars_async): Likewise.
8241 (gomp_unmap_tgt): Likewise.
8242 (gomp_unmap_vars_async): Likewise.
8243 (gomp_fini_device): Likewise.
8245 * oacc-async.c (get_goacc_thread): New function.
8246 (get_goacc_thread_device): New function.
8247 (lookup_goacc_asyncqueue): New function.
8248 (get_goacc_asyncqueue): New function.
8249 (acc_async_test): Adjust code to use new async design.
8250 (acc_async_test_all): Likewise.
8251 (acc_wait): Likewise.
8252 (acc_wait_async): Likewise.
8253 (acc_wait_all): Likewise.
8254 (acc_wait_all_async): Likewise.
8255 (goacc_async_free): New function.
8256 (goacc_init_asyncqueues): Likewise.
8257 (goacc_fini_asyncqueues): Likewise.
8258 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
8260 (acc_set_cuda_stream): Likewise.
8261 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
8262 (host_openacc_register_async_cleanup): Remove.
8263 (host_openacc_async_exec): New function.
8264 (host_openacc_async_test): Adjust parameters.
8265 (host_openacc_async_test_all): Remove.
8266 (host_openacc_async_wait): Remove.
8267 (host_openacc_async_wait_async): Remove.
8268 (host_openacc_async_wait_all): Remove.
8269 (host_openacc_async_wait_all_async): Remove.
8270 (host_openacc_async_set_async): Remove.
8271 (host_openacc_async_synchronize): New function.
8272 (host_openacc_async_serialize): New function.
8273 (host_openacc_async_host2dev): New function.
8274 (host_openacc_async_dev2host): New function.
8275 (host_openacc_async_queue_callback): New function.
8276 (host_openacc_async_construct): New function.
8277 (host_openacc_async_destruct): New function.
8278 (struct gomp_device_descr host_dispatch): Remove initialization of old
8279 interface, add initialization of new async sub-struct.
8280 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
8281 (goacc_attach_host_thread_to_device): Remove old async code usage.
8282 * oacc-int.h (goacc_init_asyncqueues): New declaration.
8283 (goacc_fini_asyncqueues): Likewise.
8284 (goacc_async_copyout_unmap_vars): Likewise.
8285 (goacc_async_free): Likewise.
8286 (get_goacc_asyncqueue): Likewise.
8287 (lookup_goacc_asyncqueue): Likewise.
8288 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
8290 (present_create_copy): Adjust code to use new async design.
8291 (delete_copyout): Likewise.
8292 (update_dev_host): Likewise.
8293 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
8295 (gomp_acc_remove_pointer): Adjust code to use new async design.
8296 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
8298 (GOACC_enter_exit_data): Likewise.
8299 (goacc_wait): Likewise.
8300 (GOACC_update): Likewise.
8301 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
8302 when called, warn as obsolete in comment.
8303 * target.c (goacc_device_copy_async): New function.
8304 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
8305 add goacc_device_copy_async case.
8306 (gomp_copy_dev2host): Likewise.
8307 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
8308 (gomp_map_pointer): Likewise.
8309 (gomp_map_fields_existing): Likewise.
8310 (gomp_map_vars_internal): New always_inline function, renamed from
8312 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
8313 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
8314 passing goacc_asyncqueue argument.
8315 (gomp_unmap_tgt): Remove static, add attribute_hidden.
8316 (gomp_unref_tgt): New function.
8317 (gomp_unmap_vars_internal): New always_inline function, renamed from
8319 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
8320 (gomp_unmap_vars_async): Implement by calling
8321 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
8322 (gomp_fini_device): New function.
8323 (gomp_exit_data): Adjust gomp_copy_dev2host call.
8324 (gomp_load_plugin_for_device): Remove old interface, adjust to load
8325 new async interface.
8326 (gomp_target_fini): Adjust code to call gomp_fini_device.
8328 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
8329 (struct ptx_stream): Remove.
8330 (struct nvptx_thread): Remove current_stream field.
8331 (cuda_map_create): Remove.
8332 (cuda_map_destroy): Remove.
8337 (struct goacc_asyncqueue): Define.
8338 (struct nvptx_callback): Define.
8339 (struct ptx_free_block): Define.
8340 (struct ptx_device): Remove null_stream, active_streams, async_streams,
8341 stream_lock, and next fields.
8342 (enum ptx_event_type): Remove.
8343 (struct ptx_event): Remove.
8344 (ptx_event_lock): Remove.
8345 (ptx_events): Remove.
8346 (init_streams_for_device): Remove.
8347 (fini_streams_for_device): Remove.
8348 (select_stream_for_async): Remove.
8349 (nvptx_init): Remove ptx_events and ptx_event_lock references.
8350 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
8352 (nvptx_open_device): Add free_blocks initialization, remove
8353 init_streams_for_device call.
8354 (nvptx_close_device): Remove fini_streams_for_device call, add
8355 free_blocks destruct code.
8357 (event_add): Remove.
8358 (nvptx_exec): Adjust parameters and code.
8359 (nvptx_free): Likewise.
8360 (nvptx_host2dev): Remove.
8361 (nvptx_dev2host): Remove.
8362 (nvptx_set_async): Remove.
8363 (nvptx_async_test): Remove.
8364 (nvptx_async_test_all): Remove.
8365 (nvptx_wait): Remove.
8366 (nvptx_wait_async): Remove.
8367 (nvptx_wait_all): Remove.
8368 (nvptx_wait_all_async): Remove.
8369 (nvptx_get_cuda_stream): Remove.
8370 (nvptx_set_cuda_stream): Remove.
8371 (GOMP_OFFLOAD_alloc): Adjust code.
8372 (GOMP_OFFLOAD_free): Likewise.
8373 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
8374 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
8375 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
8376 (GOMP_OFFLOAD_openacc_async_wait): Remove.
8377 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
8378 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
8379 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
8380 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
8381 (cuda_free_argmem): New function.
8382 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
8383 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
8384 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
8385 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
8386 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
8387 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
8388 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
8389 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
8390 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
8391 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
8392 (cuda_callback_wrapper): New function.
8393 (cuda_memcpy_sanity_check): New function.
8394 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
8395 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
8396 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
8397 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
8399 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
8402 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
8404 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
8406 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
8408 2019-03-27 Kevin Buettner <kevinb@redhat.com>
8410 * team.c (gomp_team_start): Initialize pool->threads[0].
8412 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
8414 * testsuite/libgomp.oacc-c++/c++.exp: Specify
8415 "-foffload=$offload_target".
8416 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8417 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8418 * testsuite/lib/libgomp.exp
8419 (check_effective_target_openacc_nvidia_accel_configured): Remove,
8420 as (conceptually) merged into
8421 check_effective_target_openacc_nvidia_accel_selected. Adjust all
8424 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
8425 * testsuite/libgomp-test-support.exp.in: Adjust.
8426 * testsuite/lib/libgomp.exp: Likewise. Don't populate
8427 openacc_device_types_s.
8428 (offload_target_to_openacc_device_type): New proc.
8429 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
8430 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8431 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8432 * Makefile.in: Regenerate.
8433 * configure: Likewise.
8434 * testsuite/Makefile.in: Likewise.
8436 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
8437 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
8438 instead of OFFLOAD_TARGETS.
8439 * target.c (gomp_target_init): Adjust.
8440 * testsuite/libgomp-test-support.exp.in: Likewise.
8441 * testsuite/lib/libgomp.exp: Likewise. Populate
8442 openacc_device_types_s instead of offload_targets_s_openacc.
8443 (check_effective_target_openacc_nvidia_accel_selected)
8444 (check_effective_target_openacc_host_selected): Adjust.
8445 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
8446 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8447 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8448 * Makefile.in: Regenerate.
8449 * config.h.in: Likewise.
8450 * configure: Likewise.
8451 * testsuite/Makefile.in: Likewise.
8453 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
8454 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
8455 "offloading: supported, but hardware not accessible".
8456 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8457 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8459 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
8462 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
8464 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
8465 and related adjustment.
8467 2019-01-30 Jakub Jelinek <jakub@redhat.com>
8470 * testsuite/libgomp.c++/pr88988.C: New test.
8472 2019-01-28 Jakub Jelinek <jakub@redhat.com>
8475 * testsuite/libgomp.c/pr89002.c: New test.
8477 2019-01-28 Richard Biener <rguenther@suse.de>
8480 PR tree-optimization/86865
8481 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
8483 2019-01-24 Tom de Vries <tdevries@suse.de>
8485 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
8486 once instantiated_devices drops to 0.
8488 2019-01-23 Tom de Vries <tdevries@suse.de>
8491 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
8493 (nvptx_exec): Don't call map_push if mapnum == 0.
8494 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
8496 2019-01-23 Tom de Vries <tdevries@suse.de>
8500 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
8501 (map_fini): Remove "assert (!s->map->active)".
8502 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
8504 2019-01-23 Tom de Vries <tdevries@suse.de>
8507 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
8508 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
8510 2019-01-15 Tom de Vries <tdevries@suse.de>
8513 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
8516 2019-01-12 Tom de Vries <tdevries@suse.de>
8518 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
8519 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
8520 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
8521 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
8523 2019-01-12 Tom de Vries <tdevries@suse.de>
8525 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
8527 2019-01-12 Tom de Vries <tdevries@suse.de>
8529 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
8530 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
8531 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
8533 2019-01-12 Tom de Vries <tdevries@suse.de>
8536 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
8537 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
8539 2019-01-12 Tom de Vries <tdevries@suse.de>
8542 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
8543 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
8545 2019-01-12 Tom de Vries <tdevries@suse.de>
8547 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
8548 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
8549 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
8551 2019-01-12 Tom de Vries <tdevries@suse.de>
8553 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
8554 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
8555 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
8557 2019-01-12 Tom de Vries <tdevries@suse.de>
8559 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
8560 resources diagnostic.
8562 2019-01-12 Tom de Vries <tdevries@suse.de>
8564 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
8565 vector length to be 128.
8566 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
8567 length 2097152 to be reduced to 1024 instead of 32.
8569 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
8570 James Norris <jnorris@codesourcery.com>
8572 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
8573 Library Routines", and "Environment Variables".
8575 2019-01-11 Tom de Vries <tdevries@suse.de>
8577 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
8580 2019-01-11 Tom de Vries <tdevries@suse.de>
8582 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
8584 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
8585 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
8586 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
8587 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
8589 2019-01-11 Tom de Vries <tdevries@suse.de>
8591 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
8594 2019-01-10 Nathan Sidwell <nathan@acm.org>
8595 Julian Brown <julian@codesourcery.com>
8598 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
8599 * testsuite/libgomp.oacc-c++/pr71959.C: New.
8601 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
8603 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
8606 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
8608 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
8609 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
8612 2019-01-09 Tom de Vries <tdevries@suse.de>
8615 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
8616 #define instead of "const int".
8617 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
8618 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
8619 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
8620 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
8622 2019-01-09 Tom de Vries <tdevries@suse.de>
8624 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
8627 2019-01-07 Tom de Vries <tdevries@suse.de>
8629 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
8630 GOMP_OPENACC_DIM argument.
8632 2019-01-03 Tom de Vries <tdevries@suse.de>
8634 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
8635 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
8637 2019-01-01 Jakub Jelinek <jakub@redhat.com>
8639 Update copyright years.
8641 2019-01-01 Jakub Jelinek <jakub@redhat.com>
8643 * libgomp.texi: Bump @copying's copyright year.
8645 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
8647 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
8648 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
8649 (GOACC_declare): Redefine the "device" argument to "flags".
8651 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
8652 Cesar Philippidis <cesar@codesourcery.com>
8654 * target.c (struct gomp_coalesce_chunk): New structure.
8655 (struct gomp_coalesce_buf): Update the chunks member to use that
8656 type. Adjust all users.
8658 2018-12-19 Tom de Vries <tdevries@suse.de>
8660 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
8661 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
8662 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
8664 2018-12-19 Tom de Vries <tdevries@suse.de>
8666 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
8667 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
8668 gcc/testsuite/gcc.dg/goacc.
8669 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
8671 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
8672 Chung-Lin Tang <cltang@codesourcery.com>
8674 * oacc-mem.c (acc_present_or_create): Remove definition and change
8675 to alias of acc_create.
8676 (acc_present_or_copyin): Remove definition and change to alias of
8678 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
8679 of acc_present_or_create.
8680 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
8681 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8682 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
8683 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
8684 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
8685 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
8686 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
8687 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8688 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8689 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8690 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8691 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8692 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8693 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8694 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8695 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8697 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
8700 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
8701 "identical parameters".
8702 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
8703 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
8706 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
8707 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
8710 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
8711 (nvptx_wait_async): Unseen async-argument is a no-op.
8712 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
8713 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
8714 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8715 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
8716 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
8717 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
8718 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
8719 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
8720 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
8722 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
8723 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8725 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
8727 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
8728 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8729 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
8731 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
8734 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
8735 (acc_set_cuda_stream): Clarify.
8736 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
8738 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
8740 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
8741 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
8742 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
8743 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
8745 2018-12-14 Tom de Vries <tdevries@suse.de>
8747 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
8748 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
8749 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
8750 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
8751 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
8753 2018-12-13 Tom de Vries <tdevries@suse.de>
8755 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
8756 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
8757 * fortran.c (omp_display_affinity_): ... here.
8758 * libgomp.h (gomp_print_string): Declare.
8759 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
8760 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
8763 2018-12-13 Jakub Jelinek <jakub@redhat.com>
8766 * testsuite/libgomp.c++/for-24.C (results): Include it in
8767 omp declare target region.
8768 (main): Use map (always, tofrom: results) instead of
8769 map (tofrom: results).
8771 2018-12-12 Jakub Jelinek <jakub@redhat.com>
8774 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
8775 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
8777 * testsuite/libgomp.c-c++-common/for-16.c: New test.
8779 2018-12-12 Andreas Schwab <schwab@suse.de>
8781 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
8784 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
8787 * testsuite/libgomp.fortran/async_io_8.f90: New test.
8789 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
8790 Jakub Jelinek <jakub@redhat.com>
8792 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
8793 devicep->host2dev_func.
8795 2018-12-08 Jakub Jelinek <jakub@redhat.com>
8798 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
8799 tls_runtime effective target.
8800 (t): New threadprivate variable.
8801 (main): Set t in threads which execute iterations of the worksharing
8802 loop. Propagate that to the task after the loop and don't abort
8803 if the current taskgroup hasn't been cancelled.
8805 2018-12-02 Jakub Jelinek <jakub@redhat.com>
8807 * testsuite/libgomp.c/task-reduction-3.c: New test.
8809 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
8811 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
8814 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
8815 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
8817 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
8819 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
8821 2018-10-19 Richard Biener <rguenther@suse.de>
8823 PR tree-optimization/88182
8824 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
8826 2018-11-26 Jakub Jelinek <jakub@redhat.com>
8828 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
8829 (RUNTEST): Don't define.
8830 (RUNTESTDEFAULTFLAGS): Add.
8831 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
8832 (distclean-am): Depend on distclean-DEJAGNU.
8833 (check-am): If -j% option is present in MFLAGS and if
8834 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
8835 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
8836 * testsuite/Makefile.in: Regenerated.
8838 2018-11-26 Richard Biener <rguenther@suse.de>
8840 PR tree-optimization/88182
8841 * testsuite/libgomp.c++/pr88182.C: New testcase.
8843 2018-11-20 Jakub Jelinek <jakub@redhat.com>
8846 * config/mingw32/affinity-fmt.c: New file.
8848 2018-11-09 Jakub Jelinek <jakub@redhat.com>
8850 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
8851 (gomp_display_affinity): Use __builtin_choose_expr to handle
8852 properly handle argument having integral, or pointer or some other
8853 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
8854 with uint64_t type instead of %llx and unsigned long long.
8856 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
8857 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
8859 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8861 * affinity.c: Include <string.h>, <stdio.h>.
8862 (gomp_display_affinity_place): Remove cpusetp.
8863 * teams.c: Include <limits.h>.
8865 2018-11-08 Jakub Jelinek <jakub@redhat.com>
8867 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
8868 in_reduction clause for s[0].
8870 * affinity.c (gomp_display_affinity_place): New function.
8871 * affinity-fmt.c: New file.
8872 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
8873 * config/linux/affinity.c (gomp_display_affinity_place): New function.
8874 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
8875 Move these functions to ...
8876 * config/nvptx/teams.c: ... here. New file.
8877 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
8879 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
8881 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
8882 and _aligned_malloc.
8883 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
8884 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
8885 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
8886 gomp_affinity_format_len): New variables.
8887 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
8888 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
8889 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
8890 modifiers. Display (non-default) chunk sizes. Print
8891 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
8892 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
8893 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
8894 * fortran.c: Include stdio.h and string.h.
8895 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
8896 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
8897 (omp_set_affinity_format_, omp_get_affinity_format_,
8898 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
8899 omp_pause_resource_all_): New functions.
8900 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
8902 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
8904 * teams.c: ... here. New file.
8905 * libgomp_g.h: Include gstdint.h.
8906 (GOMP_loop_nonmonotonic_runtime_start,
8907 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
8908 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
8909 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
8910 GOMP_parallel_loop_nonmonotonic_runtime,
8911 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
8912 GOMP_loop_ull_nonmonotonic_runtime_start,
8913 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
8914 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
8915 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
8916 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
8917 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
8918 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
8919 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
8920 GOMP_teams_reg): Declare.
8921 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
8922 gomp_aligned_alloc uses fallback implementation.
8923 (gomp_aligned_alloc, gomp_aligned_free): Declare.
8924 (enum gomp_schedule_type): Add GFS_MONOTONIC.
8925 (struct gomp_doacross_work_share): Add extra field.
8926 (struct gomp_work_share): Add task_reductions field.
8927 (struct gomp_taskgroup): Add workshare and reductions fields.
8928 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
8929 (gomp_thread_handle): New typedef.
8930 (gomp_display_affinity_place, gomp_set_affinity_format,
8931 gomp_display_string, gomp_display_affinity,
8932 gomp_display_affinity_thread): Declare.
8933 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
8934 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
8935 gomp_workshare_task_reduction_register): Declare.
8936 (gomp_team_start): Add taskgroup argument.
8937 (gomp_pause_host): Declare.
8938 (gomp_init_work_share, gomp_work_share_start): Change bool argument
8940 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
8941 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
8942 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
8943 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
8944 GOMP_loop_ull_doacross_start,
8945 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
8946 GOMP_loop_maybe_nonmonotonic_runtime_next,
8947 GOMP_loop_maybe_nonmonotonic_runtime_start,
8948 GOMP_loop_nonmonotonic_runtime_next,
8949 GOMP_loop_nonmonotonic_runtime_start,
8950 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
8951 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
8952 GOMP_loop_ull_nonmonotonic_runtime_next,
8953 GOMP_loop_ull_nonmonotonic_runtime_start,
8954 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
8955 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
8956 GOMP_taskgroup_reduction_register,
8957 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
8958 GOMP_teams_reg and GOMP_taskwait_depend.
8959 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
8960 omp_{capture,display}_affinity{,_}, and
8961 omp_[gs]et_affinity_format{,_}.
8962 * loop.c: Include string.h.
8963 (GOMP_loop_runtime_next): Add ialias.
8964 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
8965 (gomp_loop_static_start, gomp_loop_dynamic_start,
8966 gomp_loop_guided_start, gomp_loop_ordered_static_start,
8967 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
8968 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
8969 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
8970 or gomp_doacross_init callers.
8971 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
8972 GOMP_loop_doacross_start): New functions.
8973 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
8974 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
8975 Mask off GFS_MONOTONIC bit.
8976 (GOMP_loop_maybe_nonmonotonic_runtime_next,
8977 GOMP_loop_maybe_nonmonotonic_runtime_start,
8978 GOMP_loop_nonmonotonic_runtime_next,
8979 GOMP_loop_nonmonotonic_runtime_start,
8980 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
8981 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
8983 (gomp_parallel_loop_start): Pass NULL as taskgroup to
8985 * loop_ull.c: Include string.h.
8986 (GOMP_loop_ull_runtime_next): Add ialias.
8987 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
8988 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
8989 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
8990 gomp_loop_ull_ordered_dynamic_start,
8991 gomp_loop_ull_ordered_guided_start,
8992 gomp_loop_ull_doacross_static_start,
8993 gomp_loop_ull_doacross_dynamic_start,
8994 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
8995 and gomp_doacross_ull_init callers.
8996 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
8997 GOMP_loop_ull_doacross_start): New functions.
8998 (GOMP_loop_ull_runtime_start,
8999 GOMP_loop_ull_ordered_runtime_start,
9000 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
9001 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9002 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
9003 GOMP_loop_ull_nonmonotonic_runtime_next,
9004 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
9005 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
9006 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
9007 (omp_pause_resource_t, omp_depend_t): New typedefs.
9008 (enum omp_lock_hint_t): Renamed to ...
9009 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
9010 enumerators using numbers and omp_lock_hint_* as their aliases.
9011 (omp_lock_hint_t): New typedef. Rename to ...
9012 (omp_sync_hint_t): ... this.
9013 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
9014 omp_sync_hint_t instead of omp_lock_hint_t.
9015 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9016 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9018 (omp_target_is_present, omp_target_disassociate_ptr):
9019 Change first argument from void * to const void *.
9020 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
9021 from void * to const void *.
9022 (omp_target_associate_ptr): Change first and second arguments from
9023 void * to const void *.
9024 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
9025 omp_pause_hard): New parameters.
9026 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9027 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9029 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
9030 omp_pause_hard): New parameters.
9031 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9032 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9034 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
9035 EXTRA argument. If not needed to prepare array, if extra is 0,
9036 clear ws->doacross, otherwise allocate just doacross structure and
9037 extra payload. If array is needed, allocate also extra payload.
9038 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
9039 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
9041 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
9043 (GOMP_parallel): Likewise. Formatting fix.
9044 (GOMP_parallel_reductions): New function.
9045 (GOMP_cancellation_point): If taskgroup has workshare
9046 flag set, check cancelled of prev taskgroup if any.
9047 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
9048 on prev taskgroup if any.
9049 * sections.c: Include string.h.
9050 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9051 (GOMP_sections_start): Adjust gomp_work_share_start caller.
9052 (GOMP_sections2_start): New function.
9053 (GOMP_parallel_sections_start, GOMP_parallel_sections):
9054 Pass NULL as taskgroup to gomp_team_start.
9055 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
9056 gomp_work_share_start callers.
9057 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
9058 If taskgroup has workshare flag set, check cancelled on prev
9059 taskgroup if any. Guard all cancellation tests with
9060 gomp_cancel_var test.
9061 (omp_target_is_present, omp_target_disassociate_ptr):
9062 Change ptr argument from void * to const void *.
9063 (omp_target_memcpy): Change src argument from void * to const void *.
9064 (omp_target_memcpy_rect): Likewise.
9065 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
9066 instead of char * where needed.
9067 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
9068 from void * to const void *.
9069 (omp_pause_resource, omp_pause_resource_all): New functions.
9070 * task.c (gomp_task_handle_depend): Handle new depend array format
9071 in addition to the old. Handle mutexinoutset kinds the same as
9072 inout for now, handle unspecified kinds.
9073 (gomp_create_target_task): If taskgroup has workshare flag set, check
9074 cancelled on prev taskgroup if any. Guard all cancellation tests with
9075 gomp_cancel_var test. Handle new depend array format count in
9076 addition to the old.
9077 (GOMP_task): Likewise. Adjust function comment.
9078 (gomp_task_run_pre): If taskgroup has workshare flag set, check
9079 cancelled on prev taskgroup if any. Guard all cancellation tests with
9080 gomp_cancel_var test.
9081 (GOMP_taskwait_depend): New function.
9082 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
9083 format in addition to the old. Handle mutexinoutset kinds the same as
9084 inout for now, handle unspecified kinds. Fix a function comment typo.
9085 (gomp_taskgroup_init): New function.
9086 (GOMP_taskgroup_start): Use it.
9087 (gomp_reduction_register, gomp_create_artificial_team,
9088 GOMP_taskgroup_reduction_register,
9089 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9090 gomp_parallel_reduction_register,
9091 gomp_workshare_task_reduction_register,
9092 gomp_workshare_taskgroup_start,
9093 GOMP_workshare_task_reduction_unregister): New functions.
9094 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
9095 check cancelled on prev taskgroup if any. Guard all cancellation
9096 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
9097 by calling GOMP_taskgroup_reduction_register.
9098 * team.c (gomp_thread_attr): Remove comment.
9099 (struct gomp_thread_start_data): Add handle field.
9100 (gomp_thread_start): Call pthread_detach.
9101 (gomp_new_team): Adjust gomp_init_work_share caller.
9102 (gomp_free_pool_helper): Call pthread_detach.
9103 (gomp_team_start): Add taskgroup argument, initialize implicit
9104 tasks' taskgroup field to that. Don't call
9105 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
9106 (gomp_team_end): Determine nesting by thr->ts.level != 0
9107 rather than thr->ts.team != NULL.
9108 (gomp_pause_pool_helper, gomp_pause_host): New functions.
9109 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
9110 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
9111 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
9112 if more than 1 allocate also extra payload at the end of array. Never
9113 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
9114 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
9115 return true instead of ws.
9116 * Makefile.in: Regenerated.
9117 * configure: Regenerated.
9118 * config.h.in: Regenerated.
9119 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
9121 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
9122 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
9123 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
9124 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
9125 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
9126 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
9127 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
9128 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
9129 * testsuite/libgomp.c-c++-common/for-10.c: New test.
9130 * testsuite/libgomp.c-c++-common/for-11.c: New test.
9131 * testsuite/libgomp.c-c++-common/for-12.c: New test.
9132 * testsuite/libgomp.c-c++-common/for-13.c: New test.
9133 * testsuite/libgomp.c-c++-common/for-14.c: New test.
9134 * testsuite/libgomp.c-c++-common/for-15.c: New test.
9135 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
9136 define a different N(test), don't define N(f0) to N(f14), but instead
9137 define N(f20) to N(f34) using != comparisons.
9138 * testsuite/libgomp.c-c++-common/for-7.c: New test.
9139 * testsuite/libgomp.c-c++-common/for-8.c: New test.
9140 * testsuite/libgomp.c-c++-common/for-9.c: New test.
9141 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
9142 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
9143 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
9144 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
9145 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
9146 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
9147 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
9148 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
9149 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
9150 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
9151 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
9152 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
9153 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
9154 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
9155 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
9156 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
9157 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
9158 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
9159 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
9160 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
9161 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
9162 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
9163 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
9164 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
9165 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
9166 * testsuite/libgomp.c++/depend-1.C: New test.
9167 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
9168 * testsuite/libgomp.c++/depobj-1.C: New test.
9169 * testsuite/libgomp.c++/for-16.C: New test.
9170 * testsuite/libgomp.c++/for-21.C: New test.
9171 * testsuite/libgomp.c++/for-22.C: New test.
9172 * testsuite/libgomp.c++/for-23.C: New test.
9173 * testsuite/libgomp.c++/for-24.C: New test.
9174 * testsuite/libgomp.c++/for-25.C: New test.
9175 * testsuite/libgomp.c++/for-26.C: New test.
9176 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
9177 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
9178 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
9179 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
9180 * testsuite/libgomp.c++/task-reduction-10.C: New test.
9181 * testsuite/libgomp.c++/task-reduction-11.C: New test.
9182 * testsuite/libgomp.c++/task-reduction-12.C: New test.
9183 * testsuite/libgomp.c++/task-reduction-13.C: New test.
9184 * testsuite/libgomp.c++/task-reduction-14.C: New test.
9185 * testsuite/libgomp.c++/task-reduction-15.C: New test.
9186 * testsuite/libgomp.c++/task-reduction-16.C: New test.
9187 * testsuite/libgomp.c++/task-reduction-17.C: New test.
9188 * testsuite/libgomp.c++/task-reduction-18.C: New test.
9189 * testsuite/libgomp.c++/task-reduction-19.C: New test.
9190 * testsuite/libgomp.c/task-reduction-1.c: New test.
9191 * testsuite/libgomp.c++/task-reduction-1.C: New test.
9192 * testsuite/libgomp.c/task-reduction-2.c: New test.
9193 * testsuite/libgomp.c++/task-reduction-2.C: New test.
9194 * testsuite/libgomp.c++/task-reduction-3.C: New test.
9195 * testsuite/libgomp.c++/task-reduction-4.C: New test.
9196 * testsuite/libgomp.c++/task-reduction-5.C: New test.
9197 * testsuite/libgomp.c++/task-reduction-6.C: New test.
9198 * testsuite/libgomp.c++/task-reduction-7.C: New test.
9199 * testsuite/libgomp.c++/task-reduction-8.C: New test.
9200 * testsuite/libgomp.c++/task-reduction-9.C: New test.
9201 * testsuite/libgomp.c/teams-1.c: New test.
9202 * testsuite/libgomp.c/teams-2.c: New test.
9203 * testsuite/libgomp.c/thread-limit-4.c: New test.
9204 * testsuite/libgomp.c/thread-limit-5.c: New test.
9205 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
9207 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
9209 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
9210 acc_memcpy_to/from_device functions, now with async parameter.
9211 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
9212 (acc_memcpy_from_device): Likewise.
9213 (acc_memcpy_to_device_async): New API function.
9214 (acc_memcpy_from_device_async): Likewise.
9215 (present_create_copy): Add async parameter and async setting/unsetting.
9216 (acc_create): Adjust present_create_copy call.
9217 (acc_copyin): Likewise.
9218 (acc_present_or_create): Likewise.
9219 (acc_present_or_copyin): Likewise.
9220 (acc_create_async): New API function.
9221 (acc_copyin_async): New API function.
9222 (delete_copyout): Add async parameter and async setting/unsetting.
9223 (acc_delete): Adjust delete_copyout call.
9224 (acc_copyout): Likewise.
9225 (acc_delete_async): New API function.
9226 (acc_copyout_async): Likewise.
9227 (update_dev_host): Add async parameter and async setting/unsetting.
9228 (acc_update_device): Adjust update_dev_host call.
9229 (acc_update_self): Likewise.
9230 (acc_update_device_async): New API function.
9231 (acc_update_self_async): Likewise.
9232 * openacc.h (acc_copyin_async): Declare new API function.
9233 (acc_create_async): Likewise.
9234 (acc_copyout_async): Likewise.
9235 (acc_delete_async): Likewise.
9236 (acc_update_device_async): Likewise.
9237 (acc_update_self_async): Likewise.
9238 (acc_memcpy_to_device_async): Likewise.
9239 (acc_memcpy_from_device_async): Likewise.
9240 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
9241 (acc_copyin_async_64_h): New subroutine.
9242 (acc_copyin_async_array_h): New subroutine.
9243 (acc_create_async_32_h): New subroutine.
9244 (acc_create_async_64_h): New subroutine.
9245 (acc_create_async_array_h): New subroutine.
9246 (acc_copyout_async_32_h): New subroutine.
9247 (acc_copyout_async_64_h): New subroutine.
9248 (acc_copyout_async_array_h): New subroutine.
9249 (acc_delete_async_32_h): New subroutine.
9250 (acc_delete_async_64_h): New subroutine.
9251 (acc_delete_async_array_h): New subroutine.
9252 (acc_update_device_async_32_h): New subroutine.
9253 (acc_update_device_async_64_h): New subroutine.
9254 (acc_update_device_async_array_h): New subroutine.
9255 (acc_update_self_async_32_h): New subroutine.
9256 (acc_update_self_async_64_h): New subroutine.
9257 (acc_update_self_async_array_h): New subroutine.
9258 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
9259 (acc_copyin_async_64_h): New subroutine.
9260 (acc_copyin_async_array_h): New subroutine.
9261 (acc_create_async_32_h): New subroutine.
9262 (acc_create_async_64_h): New subroutine.
9263 (acc_create_async_array_h): New subroutine.
9264 (acc_copyout_async_32_h): New subroutine.
9265 (acc_copyout_async_64_h): New subroutine.
9266 (acc_copyout_async_array_h): New subroutine.
9267 (acc_delete_async_32_h): New subroutine.
9268 (acc_delete_async_64_h): New subroutine.
9269 (acc_delete_async_array_h): New subroutine.
9270 (acc_update_device_async_32_h): New subroutine.
9271 (acc_update_device_async_64_h): New subroutine.
9272 (acc_update_device_async_array_h): New subroutine.
9273 (acc_update_self_async_32_h): New subroutine.
9274 (acc_update_self_async_64_h): New subroutine.
9275 (acc_update_self_async_array_h): New subroutine.
9276 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
9277 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
9278 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
9279 acc_memcpy_to_device_async*, acc_update_device_async*, and
9280 acc_update_self_async* entries.
9281 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
9282 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
9283 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
9285 2018-10-31 Joseph Myers <joseph@codesourcery.com>
9288 * Makefile.am: Include multilib.am
9289 (AUTOMAKE_OPTIONS): Add info-in-builddir.
9290 (CLEANFILES): Remove libgomp.info.
9291 * configure.ac: Remove AC_PREREQ.
9292 * testsuite/Makefile.am (RUNTEST): Remove quotes.
9293 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
9296 2018-10-29 Joseph Myers <joseph@codesourcery.com>
9297 Julian Brown <julian@codesourcery.com>
9299 * testsuite/libgomp.oacc-c++/this.C: New.
9301 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
9303 * plugin/plugin-nvptx.c (struct cuda_map): New.
9304 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
9305 h_tail with (cuda_map *) map.
9306 (cuda_map_create): New function.
9307 (cuda_map_destroy): New function.
9308 (map_init): Update to use a linked list of cuda_map objects.
9309 (map_fini): Likewise.
9310 (map_pop): Likewise.
9311 (map_push): Likewise. Return CUdeviceptr instead of void.
9312 (init_streams_for_device): Remove stales references to ptx_stream
9314 (select_stream_for_async): Likewise.
9315 (nvptx_exec): Update call to map_init.
9317 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
9318 Julian Brown <julian@codesourcery.com>
9321 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
9323 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
9324 Thomas Koenig <tkoenig@gcc.gnu.org>
9327 * testsuite/libgomp.fortran/async_io_1.f90: New test.
9328 * testsuite/libgomp.fortran/async_io_2.f90: New test.
9329 * testsuite/libgomp.fortran/async_io_3.f90: New test.
9330 * testsuite/libgomp.fortran/async_io_4.f90: New test.
9331 * testsuite/libgomp.fortran/async_io_5.f90: New test.
9332 * testsuite/libgomp.fortran/async_io_6.f90: New test.
9333 * testsuite/libgomp.fortran/async_io_7.f90: New test.
9335 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
9336 Tom de Vries <tdevries@suse.de>
9339 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
9340 (cuOccupancyMaxPotentialBlockSize): Declare.
9341 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
9342 CUDA_ONE_CALL_MAYBE_NULL.
9343 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
9344 CUoccupancyB2DSize and declare
9345 cuOccupancyMaxPotentialBlockSize.
9346 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
9347 default num_gangs and num_workers when the driver supports it.
9349 2018-08-08 Tom de Vries <tdevries@suse.de>
9351 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
9352 CUDA_ONE_CALL_MAYBE_NULL.
9353 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
9354 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
9355 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
9358 2018-08-08 Tom de Vries <tdevries@suse.de>
9360 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
9361 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
9364 2018-08-08 Tom de Vries <tdevries@suse.de>
9366 * plugin/plugin-nvptx.c
9367 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
9368 (nvptx_open_device): Use
9369 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
9371 2018-08-08 Tom de Vries <tdevries@suse.de>
9373 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
9374 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
9376 2018-08-07 Tom de Vries <tdevries@suse.de>
9378 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
9379 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
9380 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
9381 corresponding call in CUDA_ONE_CALL. Add def/undef of
9382 CUDA_ONE_CALL_MAYBE_NULL.
9383 (CUDA_CALL_EXISTS): Define.
9385 2018-08-07 Tom de Vries <tdevries@suse.de>
9387 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
9388 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
9389 corresponding undefs right after.
9391 2018-08-04 Tom de Vries <tdevries@suse.de>
9393 * plugin/configfrag.ac: For --without-cuda-driver, set
9394 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
9395 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
9396 * configure: Regenerate.
9398 2018-08-02 Tom de Vries <tdevries@suse.de>
9401 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
9402 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
9403 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
9405 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
9406 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
9407 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
9409 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
9410 Thomas Schwinge <thomas@codesourcery.com>
9412 * config/nvptx/oacc-parallel.c: Truncate.
9414 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
9415 James Norris <jnorris@codesourcery.com>
9417 * plugin/plugin-nvptx.c (struct map): Removed.
9418 (map_init, map_pop): Remove use of struct map.
9419 (map_push): Likewise and change argument list.
9420 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
9422 2018-08-01 Tom de Vries <tdevries@suse.de>
9424 * plugin/cuda-lib.def: New file. Factor out of ...
9425 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
9426 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
9429 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
9431 Revert 'AsyncI/O patch committed'.
9432 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
9433 Thomas Koenig <tkoenig@gcc.gnu.org>
9436 * testsuite/libgomp.fortran/async_io_1.f90: New test.
9437 * testsuite/libgomp.fortran/async_io_2.f90: New test.
9438 * testsuite/libgomp.fortran/async_io_3.f90: New test.
9439 * testsuite/libgomp.fortran/async_io_4.f90: New test.
9440 * testsuite/libgomp.fortran/async_io_5.f90: New test.
9441 * testsuite/libgomp.fortran/async_io_6.f90: New test.
9442 * testsuite/libgomp.fortran/async_io_7.f90: New test.
9444 2018-07-30 Tom de Vries <tdevries@suse.de>
9446 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
9447 (nvptx_exec): Ensure worker and vector default dims don't exceed
9448 targ_fn->max_threads_per_block.
9450 2018-07-30 Tom de Vries <tdevries@suse.de>
9452 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
9453 (nvptx_open_device): Init default_dims for device.
9454 (nvptx_exec): Use default_dims from device.
9456 2018-07-26 Jakub Jelinek <jakub@redhat.com>
9459 * testsuite/libgomp.c++/for-15.C (results): Include it in
9460 omp declare target region.
9461 (main): Use map (always, tofrom: results) instead of
9462 map (tofrom: results).
9465 * testsuite/libgomp.c/pr86660.c: New test.
9467 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
9468 Tom de Vries <tdevries@suse.de>
9470 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
9471 sufficient resources to launch a kernel, and give a hint on how to fix
9474 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
9475 Tom de Vries <tdevries@suse.de>
9477 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
9478 max_threads_per_block and max_threads_per_multiprocessor fields.
9479 (nvptx_open_device): Initialize new fields.
9480 (nvptx_exec): Use num_sms, and new fields.
9482 2018-07-26 Tom de Vries <tdevries@suse.de>
9484 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
9485 to correct locations. Remove xfail.
9487 2018-07-26 Tom de Vries <tdevries@suse.de>
9489 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
9490 acc_wait. Move acc_async_test calls to correct locations. Remove
9493 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
9494 Thomas Koenig <tkoenig@gcc.gnu.org>
9497 * testsuite/libgomp.fortran/async_io_1.f90: New test.
9498 * testsuite/libgomp.fortran/async_io_2.f90: New test.
9499 * testsuite/libgomp.fortran/async_io_3.f90: New test.
9500 * testsuite/libgomp.fortran/async_io_4.f90: New test.
9501 * testsuite/libgomp.fortran/async_io_5.f90: New test.
9502 * testsuite/libgomp.fortran/async_io_6.f90: New test.
9503 * testsuite/libgomp.fortran/async_io_7.f90: New test.
9505 2018-07-17 Jakub Jelinek <jakub@redhat.com>
9508 * testsuite/libgomp.c++/pr86542.C: New test.
9511 * testsuite/libgomp.c++/pr86539.C: New test.
9513 2018-07-11 Jakub Jelinek <jakub@redhat.com>
9516 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
9517 (results): Make sure the variable is not inside declare target region.
9518 (qux): Remove unused function.
9520 2018-07-10 Jakub Jelinek <jakub@redhat.com>
9523 * testsuite/libgomp.c++/for-15.C: New test.
9525 2018-06-26 Jakub Jelinek <jakub@redhat.com>
9528 * testsuite/libgomp.c++/pr86291.C: New test.
9530 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
9532 * libgomp.texi (Top): Move www.openmp.org to https.
9533 (Enabling OpenMP): Ditto.
9534 (omp_get_active_level): Ditto.
9535 (omp_get_ancestor_thread_num): Ditto.
9536 (omp_get_cancellation): Ditto.
9537 (omp_get_default_device): Ditto.
9538 (omp_get_dynamic): Ditto.
9539 (omp_get_level): Ditto.
9540 (omp_get_max_active_levels): Ditto.
9541 (omp_get_max_task_priority): Ditto.
9542 (omp_get_max_threads): Ditto.
9543 (omp_get_nested): Ditto.
9544 (omp_get_num_devices): Ditto.
9545 (omp_get_num_procs): Ditto.
9546 (omp_get_num_teams): Ditto.
9547 (omp_get_num_threads): Ditto.
9548 (omp_get_proc_bind): Ditto.
9549 (omp_get_schedule): Ditto.
9550 (omp_get_team_num): Ditto.
9551 (omp_get_team_size): Ditto.
9552 (omp_get_thread_limit): Ditto.
9553 (omp_get_thread_num): Ditto.
9554 (omp_in_parallel): Ditto.
9555 (omp_in_final): Ditto.
9556 (omp_is_initial_device): Ditto.
9557 (omp_set_default_device): Ditto.
9558 (omp_set_dynamic): Ditto.
9559 (omp_set_max_active_levels): Ditto.
9560 (omp_set_nested): Ditto.
9561 (omp_set_num_threads): Ditto.
9562 (omp_set_schedule): Ditto.
9563 (omp_init_lock): Ditto.
9564 (omp_set_lock): Ditto.
9565 (omp_test_lock): Ditto.
9566 (omp_unset_lock): Ditto.
9567 (omp_destroy_lock): Ditto.
9568 (omp_init_nest_lock): Ditto.
9569 (omp_set_nest_lock): Ditto.
9570 (omp_test_nest_lock): Ditto.
9571 (omp_unset_nest_lock): Ditto.
9572 (omp_destroy_nest_lock): Ditto.
9573 (omp_get_wtick): Ditto.
9574 (omp_get_wtime): Ditto.
9575 (OMP_CANCELLATION): Ditto.
9576 (OMP_DISPLAY_ENV): Ditto.
9577 (OMP_DEFAULT_DEVICE): Ditto.
9578 (OMP_DYNAMIC): Ditto.
9579 (OMP_MAX_ACTIVE_LEVELS): Ditto.
9580 (OMP_MAX_TASK_PRIORITY): Ditto.
9581 (OMP_NESTED): Ditto.
9582 (OMP_NUM_THREADS): Ditto.
9583 (OMP_PROC_BIND): Ditto.
9584 (OMP_PLACES): Ditto.
9585 (OMP_STACKSIZE): Ditto.
9586 (OMP_SCHEDULE): Ditto.
9587 (OMP_THREAD_LIMIT): Ditto.
9588 (OMP_WAIT_POLICY): Ditto.
9590 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
9591 James Norris <jnorris@codesourcery.com>
9592 Julian Brown <julian@codesourcery.com>
9593 Thomas Schwinge <thomas@codesourcery.com>
9594 Tom de Vries <tom@codesourcery.com>
9596 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
9597 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
9598 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
9599 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
9600 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
9601 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
9602 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
9603 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
9604 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
9605 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
9607 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
9609 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
9611 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
9613 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
9615 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
9617 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
9619 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
9621 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
9623 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
9625 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
9627 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
9629 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
9631 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
9633 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
9635 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
9637 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
9639 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
9641 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
9643 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
9645 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
9647 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
9649 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
9651 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
9653 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
9655 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
9657 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
9659 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
9660 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
9661 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
9662 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
9663 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
9664 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
9665 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
9666 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
9667 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
9669 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
9671 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
9672 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
9673 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
9675 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
9676 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
9677 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
9679 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
9681 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
9683 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
9685 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
9687 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
9689 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
9691 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
9693 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
9695 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
9697 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
9699 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
9701 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
9703 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
9705 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
9707 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
9708 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
9709 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
9710 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
9711 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
9712 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
9713 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
9715 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
9716 Thomas Schwinge <thomas@codesourcery.com>
9717 Cesar Philippidis <cesar@codesourcery.com>
9719 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
9720 (gomp_acc_remove_pointer): Update declaration.
9721 (gomp_acc_declare_allocate): Declare.
9722 (gomp_remove_var): Declare.
9723 * libgomp.map (OACC_2.5): Define.
9724 * oacc-mem.c (acc_map_data): Update refcount.
9725 (acc_unmap_data): Likewise.
9726 (present_create_copy): Likewise.
9727 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
9728 (acc_copyin): Likewise.
9729 (FLAG_FINALIZE): Define.
9730 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
9731 (acc_delete_finalize): New function.
9732 (acc_delete_finalize_async): New function.
9733 (acc_copyout_finalize): New function.
9734 (acc_copyout_finalize_async): New function.
9735 (gomp_acc_insert_pointer): Update refcounts.
9736 (gomp_acc_remove_pointer): Return if data is not present on the
9738 * oacc-parallel.c (find_pset): Rename to find_pointer.
9739 (find_pointer): Add support for GOMP_MAP_POINTER.
9740 (handle_ftn_pointers): New function.
9741 (GOACC_parallel_keyed): Update refcounts of variables.
9742 (GOACC_enter_exit_data): Add support for finalized data mappings.
9743 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
9745 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
9746 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
9747 for GOMP_MAP_FORCE_FROM.
9748 * openacc.f90 (module openacc_internal): Add
9749 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
9750 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
9751 acc_copyout_finalize and acc_delete_finalize.
9752 (acc_copyout_finalize_32_h): New subroutine.
9753 (acc_copyout_finalize_64_h): New subroutine.
9754 (acc_copyout_finalize_array_h): New subroutine.
9755 (acc_delete_finalize_32_h): New subroutine.
9756 (acc_delete_finalize_64_h): New subroutine.
9757 (acc_delete_finalize_array_h): New subroutine.
9758 * openacc.h (acc_copyout_finalize): Declare.
9759 (acc_copyout_finalize_async): Declare.
9760 (acc_delete_finalize): Declare.
9761 (acc_delete_finalize_async): Declare.
9762 * openacc_lib.h (acc_copyout_finalize): New interface.
9763 (acc_delete_finalize): New interface.
9764 * target.c (gomp_map_vars): Update dynamic_refcount.
9765 (gomp_remove_var): New function.
9766 (gomp_unmap_vars): Use it.
9767 (gomp_unload_image_from_device): Likewise.
9768 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
9769 case to utilize OpenACC 2.5 data clause semantics.
9770 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
9771 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
9772 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
9773 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
9774 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
9775 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
9776 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
9777 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
9778 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
9779 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
9780 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
9781 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
9782 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
9783 utilize OpenACC 2.5 data clause semantics.
9784 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
9785 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
9786 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
9787 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
9788 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
9789 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
9790 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
9791 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
9792 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
9794 2018-05-21 Janus Weil <janus@gcc.gnu.org>
9798 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
9799 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
9800 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
9801 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
9802 * testsuite/libgomp.fortran/task2.f90: Ditto.
9803 * testsuite/libgomp.fortran/vla1.f90: Ditto.
9804 * testsuite/libgomp.fortran/vla2.f90: Ditto.
9805 * testsuite/libgomp.fortran/vla3.f90: Ditto.
9806 * testsuite/libgomp.fortran/vla4.f90: Ditto.
9807 * testsuite/libgomp.fortran/vla5.f90: Ditto.
9808 * testsuite/libgomp.fortran/vla6.f90: Ditto.
9809 * testsuite/libgomp.fortran/vla8.f90: Ditto.
9810 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
9811 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
9813 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
9816 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
9818 2018-05-09 Tom de Vries <tom@codesourcery.com>
9821 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
9822 to GOACC_enter_exit_data.
9824 2018-05-09 Tom de Vries <tom@codesourcery.com>
9827 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
9828 (async_synchronous_p): New function.
9829 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
9831 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
9832 async_valid_stream_id_p.
9833 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
9834 * oacc-parallel.c (GOACC_parallel_keyed): Same.
9836 2018-05-07 Tom de Vries <tom@codesourcery.com>
9839 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
9840 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
9842 2018-05-03 Tom de Vries <tom@codesourcery.com>
9845 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
9846 extra_tool_flags if it contains an -foffload=-fdump-* flag.
9847 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
9848 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
9850 2018-05-02 Tom de Vries <tom@codesourcery.com>
9853 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
9854 GOMP_OPENACC_DIM ...
9855 * env.c (parse_gomp_openacc_dim): ... here. New function.
9856 (initialize_env): Call parse_gomp_openacc_dim.
9857 (goacc_default_dims): Define.
9858 * libgomp.h (goacc_default_dims): Declare.
9859 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
9860 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
9861 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
9862 GOMP_PLUGIN_acc_default_dim.
9863 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
9864 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
9866 2018-05-02 Tom de Vries <tom@codesourcery.com>
9869 * testsuite/libgomp.c++/udr-9.C: Update.
9870 * testsuite/libgomp.c++/atomic-16.C: Remove.
9871 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
9872 * testsuite/libgomp.c++/loop-13.C: Remove.
9873 * testsuite/libgomp.c++/loop-14.C: Remove.
9874 * testsuite/libgomp.c++/loop-15.C: Remove.
9875 * testsuite/libgomp.c++/monotonic-1.C: Remove.
9876 * testsuite/libgomp.c++/monotonic-2.C: Remove.
9877 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
9878 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
9879 * testsuite/libgomp.c++/ordered-1.C: Remove.
9880 * testsuite/libgomp.c++/pr45784.C: Remove.
9881 * testsuite/libgomp.c++/pr64824.C: Remove.
9882 * testsuite/libgomp.c++/pr64868.C: Remove.
9883 * testsuite/libgomp.c++/pr66199-1.C: Remove.
9884 * testsuite/libgomp.c++/pr66199-2.C: Remove.
9885 * testsuite/libgomp.c++/pr66199-3.C: Remove.
9886 * testsuite/libgomp.c++/pr66199-4.C: Remove.
9887 * testsuite/libgomp.c++/pr66199-5.C: Remove.
9888 * testsuite/libgomp.c++/pr66199-6.C: Remove.
9889 * testsuite/libgomp.c++/pr66199-7.C: Remove.
9890 * testsuite/libgomp.c++/pr66199-8.C: Remove.
9891 * testsuite/libgomp.c++/pr66199-9.C: Remove.
9892 * testsuite/libgomp.c++/pr69389.C: Remove.
9893 * testsuite/libgomp.c++/simd10.C: Remove.
9894 * testsuite/libgomp.c++/simd11.C: Remove.
9895 * testsuite/libgomp.c++/simd12.C: Remove.
9896 * testsuite/libgomp.c++/simd13.C: Remove.
9897 * testsuite/libgomp.c++/target-1.C: Remove.
9898 * testsuite/libgomp.c++/target-3.C: Remove.
9899 * testsuite/libgomp.c++/target-4.C: Remove.
9900 * testsuite/libgomp.c++/target-5.C: Remove.
9901 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
9902 * testsuite/libgomp.c++/taskloop-1.C: Remove.
9903 * testsuite/libgomp.c++/taskloop-2.C: Remove.
9904 * testsuite/libgomp.c++/taskloop-3.C: Remove.
9905 * testsuite/libgomp.c++/taskloop-4.C: Remove.
9906 * testsuite/libgomp.c++/udr-9.C: Remove.
9907 * testsuite/libgomp.c++/for-10.C: Remove.
9908 * testsuite/libgomp.c++/for-11.C: Remove.
9909 * testsuite/libgomp.c++/for-12.C: Remove.
9910 * testsuite/libgomp.c++/for-13.C: Remove.
9911 * testsuite/libgomp.c++/for-14.C: Remove.
9912 * testsuite/libgomp.c++/for-9.C: Remove.
9913 * testsuite/libgomp.c/atomic-18.c: Move ...
9914 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
9915 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
9916 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
9917 * testsuite/libgomp.c/loop-13.c: Move ...
9918 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
9919 * testsuite/libgomp.c/loop-14.c: Move ...
9920 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
9921 * testsuite/libgomp.c/loop-15.c: Remove.
9922 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
9923 * testsuite/libgomp.c/monotonic-1.c: Move ...
9924 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
9925 * testsuite/libgomp.c/monotonic-2.c: Move ...
9926 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
9927 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
9928 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
9929 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
9930 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
9931 * testsuite/libgomp.c/ordered-4.c: Move ...
9932 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
9933 * testsuite/libgomp.c/pr45784.c: Move ...
9934 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
9935 * testsuite/libgomp.c/pr64824.c: Move ...
9936 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
9937 * testsuite/libgomp.c/pr64868.c: Move ...
9938 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
9939 * testsuite/libgomp.c/pr66199-1.c: Move ...
9940 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
9941 * testsuite/libgomp.c/pr66199-2.c: Move ...
9942 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
9943 * testsuite/libgomp.c/pr66199-3.c: Move ...
9944 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
9945 * testsuite/libgomp.c/pr66199-4.c: Move ...
9946 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
9947 * testsuite/libgomp.c/pr66199-5.c: Move ...
9948 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
9949 * testsuite/libgomp.c/pr66199-6.c: Move ...
9950 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
9951 * testsuite/libgomp.c/pr66199-7.c: Move ...
9952 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
9953 * testsuite/libgomp.c/pr66199-8.c: Move ...
9954 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
9955 * testsuite/libgomp.c/pr66199-9.c: Move ...
9956 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
9957 * testsuite/libgomp.c/pr69389.c: Move ...
9958 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
9959 * testsuite/libgomp.c/simd-14.c: Move ...
9960 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
9961 * testsuite/libgomp.c/simd-15.c: Move ...
9962 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
9963 * testsuite/libgomp.c/simd-16.c: Move ...
9964 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
9965 * testsuite/libgomp.c/simd-17.c: Move ...
9966 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
9967 * testsuite/libgomp.c/target-1.c: Move ...
9968 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
9969 * testsuite/libgomp.c/target-10.c: Move ...
9970 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
9971 * testsuite/libgomp.c/target-13.c: Move ...
9972 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
9973 * testsuite/libgomp.c/target-2.c: Move ...
9974 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
9975 * testsuite/libgomp.c/taskgroup-1.c: Move ...
9976 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
9977 * testsuite/libgomp.c/taskloop-1.c: Move ...
9978 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
9979 * testsuite/libgomp.c/taskloop-2.c: Move ...
9980 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
9981 * testsuite/libgomp.c/taskloop-3.c: Move ...
9982 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
9983 * testsuite/libgomp.c/taskloop-4.c: Move ...
9984 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
9985 * testsuite/libgomp.c/udr-1.c: Move ...
9986 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
9987 * testsuite/libgomp.c/for-1.c: Move ...
9988 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
9989 * testsuite/libgomp.c/for-1.h: Move ...
9990 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
9991 * testsuite/libgomp.c/for-2.c: Move ...
9992 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
9993 * testsuite/libgomp.c/for-2.h: Move ...
9994 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
9995 * testsuite/libgomp.c/for-3.c: Move ...
9996 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
9997 * testsuite/libgomp.c/for-4.c: Move ...
9998 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
9999 * testsuite/libgomp.c/for-5.c: Move ...
10000 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
10001 * testsuite/libgomp.c/for-6.c: Move ...
10002 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
10004 2018-05-02 Tom de Vries <tom@codesourcery.com>
10007 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
10008 __builtin_goacc_parlevel_{id,size}.
10009 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
10010 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
10011 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
10012 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
10013 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
10014 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
10015 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
10016 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
10017 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
10018 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
10019 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
10020 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
10021 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
10022 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
10023 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
10024 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
10025 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
10026 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
10027 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
10028 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
10029 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
10030 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
10031 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
10033 2018-05-02 Tom de Vries <tom@codesourcery.com>
10036 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
10038 2018-05-02 Tom de Vries <tom@codesourcery.com>
10041 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
10043 2018-04-29 Julian Brown <julian@codesourcery.com>
10044 Tom de Vries <tom@codesourcery.com>
10047 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
10048 arbitrary order for iterations of atomic subtract check.
10050 2018-04-28 Tom de Vries <tom@codesourcery.com>
10053 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
10054 atomic capture results obtained in parallel loop to an array, instead of
10057 2018-04-26 Tom de Vries <tom@codesourcery.com>
10060 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
10061 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
10062 (process_GOMP_NVPTX_JIT): New function.
10063 (link_ptx): Use process_GOMP_NVPTX_JIT.
10065 2018-04-26 Richard Biener <rguenther@suse.de>
10066 Tom de Vries <tom@codesourcery.com>
10069 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
10071 2018-04-26 Tom de Vries <tom@codesourcery.com>
10074 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
10075 recursion depth from 25 to 23.
10076 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
10078 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
10080 * configure: Regenerated.
10082 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
10083 Tom de Vries <tom@codesourcery.com>
10086 * testsuite/libgomp.oacc-c++/ref-1.C: New.
10088 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
10091 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
10092 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
10093 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
10094 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
10095 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
10096 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
10098 PR libfortran/85166
10099 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
10101 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
10103 2018-04-19 Jakub Jelinek <jakub@redhat.com>
10105 * configure: Regenerated.
10107 2018-04-18 David Malcolm <dmalcolm@redhat.com>
10110 * configure: Regenerate.
10112 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
10113 Tom de Vries <tom@codesourcery.com>
10115 PR middle-end/84955
10116 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
10117 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
10119 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
10123 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
10124 test from gfortran.dg to here.
10126 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
10128 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
10129 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
10131 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
10133 PR middle-end/84955
10134 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
10135 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
10137 2018-04-05 Tom de Vries <tom@codesourcery.com>
10140 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
10142 2018-03-26 Tom de Vries <tom@codesourcery.com>
10144 PR tree-optimization/85063
10145 * testsuite/libgomp.c/switch-conversion-2.c: New test.
10146 * testsuite/libgomp.c/switch-conversion.c: New test.
10147 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
10148 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
10150 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
10153 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
10154 call abort by STOP n.
10155 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
10156 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
10157 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
10158 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
10159 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
10160 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
10161 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
10162 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
10163 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
10164 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
10165 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
10166 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
10167 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
10168 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
10169 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
10170 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
10171 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
10172 * testsuite/libgomp.fortran/associate1.f90: Likewise.
10173 * testsuite/libgomp.fortran/associate2.f90: Likewise.
10174 * testsuite/libgomp.fortran/associate3.f90: Likewise.
10175 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
10176 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
10177 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
10178 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
10179 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
10180 * testsuite/libgomp.fortran/character1.f90: Likewise.
10181 * testsuite/libgomp.fortran/character2.f90: Likewise.
10182 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
10183 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
10184 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
10185 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
10186 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
10187 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
10188 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
10189 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
10190 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
10191 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
10192 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
10193 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
10194 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
10195 * testsuite/libgomp.fortran/do1.f90: Likewise.
10196 * testsuite/libgomp.fortran/do2.f90: Likewise.
10197 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
10198 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
10199 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
10200 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
10201 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
10202 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
10203 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
10204 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
10205 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
10206 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
10207 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
10208 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
10209 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
10210 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
10211 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
10212 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
10213 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
10214 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
10215 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
10216 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
10217 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
10218 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
10219 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
10220 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
10221 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
10222 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
10223 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
10224 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
10225 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
10226 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
10227 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
10228 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
10229 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
10230 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
10231 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
10232 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
10233 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
10234 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
10235 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
10236 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
10237 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
10238 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
10239 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
10240 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
10241 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
10242 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
10243 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
10244 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
10245 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
10246 * testsuite/libgomp.fortran/lib1.f90: Likewise.
10247 * testsuite/libgomp.fortran/lib2.f: Likewise.
10248 * testsuite/libgomp.fortran/lib3.f: Likewise.
10249 * testsuite/libgomp.fortran/lib4.f90: Likewise.
10250 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
10251 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
10252 * testsuite/libgomp.fortran/nested1.f90: Likewise.
10253 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
10254 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
10255 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
10256 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
10257 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
10258 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
10259 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
10260 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
10261 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
10262 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
10263 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
10264 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
10265 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
10266 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
10267 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
10268 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
10269 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
10270 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
10271 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
10272 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
10273 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
10274 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
10275 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
10276 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
10277 * testsuite/libgomp.fortran/pr25162.f: Likewise.
10278 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
10279 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
10280 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
10281 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
10282 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
10283 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
10284 * testsuite/libgomp.fortran/pr28390.f: Likewise.
10285 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
10286 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
10287 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
10288 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
10289 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
10290 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
10291 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
10292 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
10293 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
10294 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
10295 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
10296 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
10297 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
10298 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
10299 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
10300 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
10301 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
10302 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
10303 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
10304 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
10305 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
10306 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
10307 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
10308 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
10309 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
10310 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
10311 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
10312 * testsuite/libgomp.fortran/reference1.f90: Likewise.
10313 * testsuite/libgomp.fortran/reference2.f90: Likewise.
10314 * testsuite/libgomp.fortran/retval1.f90: Likewise.
10315 * testsuite/libgomp.fortran/retval2.f90: Likewise.
10316 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
10317 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
10318 * testsuite/libgomp.fortran/simd1.f90: Likewise.
10319 * testsuite/libgomp.fortran/simd2.f90: Likewise.
10320 * testsuite/libgomp.fortran/simd3.f90: Likewise.
10321 * testsuite/libgomp.fortran/simd4.f90: Likewise.
10322 * testsuite/libgomp.fortran/simd5.f90: Likewise.
10323 * testsuite/libgomp.fortran/simd6.f90: Likewise.
10324 * testsuite/libgomp.fortran/simd7.f90: Likewise.
10325 * testsuite/libgomp.fortran/stack.f90: Likewise.
10326 * testsuite/libgomp.fortran/strassen.f90: Likewise.
10327 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
10328 * testsuite/libgomp.fortran/tabs2.f: Likewise.
10329 * testsuite/libgomp.fortran/target1.f90: Likewise.
10330 * testsuite/libgomp.fortran/target2.f90: Likewise.
10331 * testsuite/libgomp.fortran/target3.f90: Likewise.
10332 * testsuite/libgomp.fortran/target4.f90: Likewise.
10333 * testsuite/libgomp.fortran/target5.f90: Likewise.
10334 * testsuite/libgomp.fortran/target6.f90: Likewise.
10335 * testsuite/libgomp.fortran/target7.f90: Likewise.
10336 * testsuite/libgomp.fortran/target8.f90: Likewise.
10337 * testsuite/libgomp.fortran/task1.f90: Likewise.
10338 * testsuite/libgomp.fortran/task2.f90: Likewise.
10339 * testsuite/libgomp.fortran/task3.f90: Likewise.
10340 * testsuite/libgomp.fortran/task4.f90: Likewise.
10341 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
10342 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
10343 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
10344 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
10345 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
10346 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
10347 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
10348 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
10349 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
10350 * testsuite/libgomp.fortran/udr1.f90: Likewise.
10351 * testsuite/libgomp.fortran/udr10.f90: Likewise.
10352 * testsuite/libgomp.fortran/udr11.f90: Likewise.
10353 * testsuite/libgomp.fortran/udr12.f90: Likewise.
10354 * testsuite/libgomp.fortran/udr13.f90: Likewise.
10355 * testsuite/libgomp.fortran/udr14.f90: Likewise.
10356 * testsuite/libgomp.fortran/udr15.f90: Likewise.
10357 * testsuite/libgomp.fortran/udr2.f90: Likewise.
10358 * testsuite/libgomp.fortran/udr3.f90: Likewise.
10359 * testsuite/libgomp.fortran/udr4.f90: Likewise.
10360 * testsuite/libgomp.fortran/udr5.f90: Likewise.
10361 * testsuite/libgomp.fortran/udr6.f90: Likewise.
10362 * testsuite/libgomp.fortran/udr7.f90: Likewise.
10363 * testsuite/libgomp.fortran/udr8.f90: Likewise.
10364 * testsuite/libgomp.fortran/udr9.f90: Likewise.
10365 * testsuite/libgomp.fortran/vla1.f90: Likewise.
10366 * testsuite/libgomp.fortran/vla2.f90: Likewise.
10367 * testsuite/libgomp.fortran/vla3.f90: Likewise.
10368 * testsuite/libgomp.fortran/vla4.f90: Likewise.
10369 * testsuite/libgomp.fortran/vla5.f90: Likewise.
10370 * testsuite/libgomp.fortran/vla6.f90: Likewise.
10371 * testsuite/libgomp.fortran/vla7.f90: Likewise.
10372 * testsuite/libgomp.fortran/vla8.f90: Likewise.
10373 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
10374 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
10375 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
10376 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
10377 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
10378 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
10379 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
10380 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
10381 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
10382 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
10383 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
10384 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
10385 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
10386 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
10387 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
10388 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
10389 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
10390 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
10391 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
10392 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
10393 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
10394 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
10395 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
10396 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
10397 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
10398 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
10399 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
10400 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
10401 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
10402 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
10403 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
10404 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
10405 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
10406 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
10407 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
10408 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
10409 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
10410 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
10411 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
10412 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
10413 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
10414 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
10415 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
10416 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
10417 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
10418 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
10419 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
10420 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
10421 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
10422 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
10423 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
10424 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
10425 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
10426 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10427 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
10428 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
10429 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
10430 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
10431 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
10432 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
10433 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
10434 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
10435 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
10436 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
10437 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
10438 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
10439 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
10440 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
10441 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
10442 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
10443 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
10444 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
10445 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
10446 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
10447 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
10448 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
10449 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
10450 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
10451 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
10452 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
10453 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
10454 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
10455 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
10456 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
10457 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
10458 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
10459 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
10460 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
10461 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
10462 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
10463 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
10464 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
10465 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
10466 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
10468 2018-03-20 Richard Biener <rguenther@suse.de>
10470 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
10471 parallelizable loop.
10473 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
10476 * configure: Regenerate.
10478 2018-02-16 Jakub Jelinek <jakub@redhat.com>
10481 * libgomp.fortran/pr84418-1.f90: New test.
10482 * libgomp.fortran/pr84418-2.f90: New test.
10484 2018-02-14 Jakub Jelinek <jakub@redhat.com>
10487 * testsuite/libgomp.fortran/threadprivate4.f90: Add
10488 -std=f2003 -fall-intrinsics into dg-additional-options.
10490 2018-02-08 Martin Jambor <mjambor@suse.cz>
10492 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
10495 2018-02-08 Martin Jambor <mjambor@suse.cz>
10497 * testsuite/libgomp.hsa.c/staticvar.c: New test.
10499 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10501 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
10502 [__cplusplus]: Declare extern "C".
10504 2018-02-07 Tom de Vries <tom@codesourcery.com>
10507 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
10509 2018-01-29 Christoph Spiel <cspiel@freenet.de>
10510 Jakub Jelinek <jakub@redhat.com>
10513 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
10514 instead of omp_lock_t.
10516 2018-01-25 Tom de Vries <tom@codesourcery.com>
10519 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
10521 2018-01-24 Tom de Vries <tom@codesourcery.com>
10524 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
10526 2018-01-24 Tom de Vries <tom@codesourcery.com>
10529 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
10531 2018-01-19 Tom de Vries <tom@codesourcery.com>
10532 Cesar Philippidis <cesar@codesourcery.com>
10535 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
10536 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
10538 2018-01-03 Jakub Jelinek <jakub@redhat.com>
10540 Update copyright years.
10542 * libgomp.texi: Bump @copying's copyright year.
10544 2017-12-30 Tom de Vries <tom@codesourcery.com>
10547 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
10548 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
10550 2017-12-27 Tom de Vries <tom@codesourcery.com>
10553 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
10554 (test_nonstatic): Fix return type to workaround PR83046.
10556 2017-12-05 Jakub Jelinek <jakub@redhat.com>
10559 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
10560 j suffix instead of i.
10561 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
10564 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
10566 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
10567 call to acc_wait (1).
10569 2017-11-24 Jakub Jelinek <jakub@redhat.com>
10572 * testsuite/libgomp.fortran/pr81304.f90: New test.
10574 2017-11-23 Jakub Jelinek <jakub@redhat.com>
10577 * libgomp.fortran/pr81841.f90: New test.
10579 2017-11-22 Jakub Jelinek <jakub@redhat.com>
10582 * target.c (gomp_target_init): Compute lengths just once and
10583 use them in both malloc size and subsequent copying.
10585 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
10587 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
10588 * acinclude.m4: Add cet.m4.
10589 * configure: Regenerate.
10590 * Makefile.in: Likewise.
10591 * testsuite/Makefile.in: Likewise.
10593 2017-11-15 Tom de Vries <tom@codesourcery.com>
10595 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
10596 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
10597 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
10598 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
10599 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
10600 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
10602 2017-11-14 Tom de Vries <tom@codesourcery.com>
10604 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
10605 non-nvidia devices.
10607 2017-11-07 Jakub Jelinek <jakub@redhat.com>
10610 * testsuite/libgomp.c++/pr82835.C: New test.
10612 2017-11-06 Martin Liska <mliska@suse.cz>
10614 * testsuite/libgomp.c++/loop-2.C: Return a value
10615 for functions with non-void return type, or change type to void,
10616 or add -Wno-return-type for test.
10617 * testsuite/libgomp.c++/loop-4.C: Likewise.
10618 * testsuite/libgomp.c++/parallel-1.C: Likewise.
10619 * testsuite/libgomp.c++/shared-1.C: Likewise.
10620 * testsuite/libgomp.c++/single-1.C: Likewise.
10621 * testsuite/libgomp.c++/single-2.C: Likewise.
10623 2017-10-31 Tom de Vries <tom@codesourcery.com>
10625 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
10626 "do {} while (false)".
10627 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
10628 after HSA_DEBUG call.
10630 2017-10-28 Jakub Jelinek <jakub@redhat.com>
10632 * target.c (struct gomp_coalesce_buf): New type.
10633 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
10634 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
10635 (gomp_copy_host2dev): Add CBUF argument, if copying into
10636 the cached ranges, memcpy into buffer instead of copying
10638 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
10639 Add CBUF argument, pass it through to other calls.
10640 (gomp_map_vars): Aggregate copies from host to device if small enough
10641 and with small enough gaps in between into memcpy into a buffer and
10642 fewer host to device copies from the buffer.
10643 (gomp_update): Adjust gomp_copy_host2dev caller.
10645 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
10647 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
10649 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
10650 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
10651 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
10652 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
10654 2017-10-16 Tom de Vries <tom@codesourcery.com>
10656 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
10657 openacc_nvidia_accel_selected.
10658 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
10659 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
10660 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
10661 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
10662 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
10663 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
10664 openacc_nvidia_accel_selected. Skip for shared memory device.
10665 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
10666 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
10668 2017-10-09 Martin Jambor <mjambor@suse.cz>
10671 * testsuite/libgomp.hsa.c/pr82416.c: New test.
10673 2017-10-07 Tom de Vries <tom@codesourcery.com>
10675 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
10676 Remove acc_device_nvidia references.
10677 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
10680 2017-10-05 Tom de Vries <tom@codesourcery.com>
10682 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
10683 vector_length(32) clause from acc parallel directive.
10684 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
10686 2017-10-04 Tom de Vries <tom@codesourcery.com>
10688 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
10689 (main): Reduce sum of arr elements. Assert that hres is exactly
10690 representable in 32-bit floating point.
10691 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
10692 (main): Reduce sum of arr elements. Assert that hres and hmres are
10693 exactly representable in 32-bit floating point.
10694 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
10696 2017-09-28 Tom de Vries <tom@codesourcery.com>
10698 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
10700 * testsuite/libgomp.c++/pr69393.C: Same.
10701 * testsuite/libgomp.c++/taskloop-1.C: Same.
10702 * testsuite/libgomp.c++/taskloop-3.C: Same.
10703 * testsuite/libgomp.c++/taskloop-4.C: Same.
10704 * testsuite/libgomp.c/for-4.c: Same.
10705 * testsuite/libgomp.c/pr66199-3.c: Same.
10706 * testsuite/libgomp.c/pr66199-4.c: Same.
10707 * testsuite/libgomp.c/pr66199-6.c: Same.
10708 * testsuite/libgomp.c/taskloop-1.c: Same.
10709 * testsuite/libgomp.c/taskloop-3.c: Same.
10710 * testsuite/libgomp.c/taskloop-4.c: Same.
10711 * testsuite/libgomp.fortran/aligned1.f03: Same.
10712 * testsuite/libgomp.fortran/condinc1.f: Same.
10713 * testsuite/libgomp.fortran/condinc3.f90: Same.
10714 * testsuite/libgomp.fortran/crayptr1.f90: Same.
10715 * testsuite/libgomp.fortran/crayptr2.f90: Same.
10716 * testsuite/libgomp.fortran/crayptr3.f90: Same.
10717 * testsuite/libgomp.fortran/omp_cond1.f: Same.
10718 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
10719 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
10720 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
10721 * testsuite/libgomp.fortran/recursion1.f90: Same.
10722 * testsuite/libgomp.fortran/target2.f90: Same.
10723 * testsuite/libgomp.fortran/target5.f90: Same.
10724 * testsuite/libgomp.fortran/task3.f90: Same.
10726 2017-09-28 Tom de Vries <tom@codesourcery.com>
10728 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
10729 vector_length(32) clause from acc parallel directive.
10730 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
10732 2017-09-27 Tom de Vries <tom@codesourcery.com>
10734 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
10735 Remove acc_device_nvidia references.
10737 2017-09-16 Tom de Vries <tom@codesourcery.com>
10740 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
10742 2017-09-14 Tom de Vries <tom@codesourcery.com>
10744 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
10745 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
10746 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
10747 * testsuite/libgomp.c/c.exp: Include test-cases from
10748 libgomp.c-c++-common.
10749 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
10752 2017-09-14 Jakub Jelinek <jakub@redhat.com>
10755 * testsuite/libgomp.c++/pr81314.C: New test.
10757 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
10759 * libgomp.texi (Top): www.openacc.org now uses https.
10760 (Enabling OpenACC): Ditto.
10761 (acc_get_num_devices): Ditto.
10762 (acc_set_device_type): Ditto.
10763 (acc_get_device_type): Ditto.
10764 (acc_set_device_num): Ditto.
10765 (acc_get_device_num): Ditto.
10766 (acc_async_test): Ditto.
10767 (acc_async_test_all): Ditto.
10769 (acc_wait_all): Ditto.
10770 (acc_wait_all_async): Ditto.
10771 (acc_wait_async): Ditto.
10773 (acc_shutdown): Ditto.
10774 (acc_on_device): Ditto.
10775 (acc_malloc): Ditto.
10777 (acc_copyin): Ditto.
10778 (acc_present_or_copyin): Ditto.
10779 (acc_create): Ditto.
10780 (acc_present_or_create): Ditto.
10781 (acc_copyout): Ditto.
10782 (acc_delete): Ditto.
10783 (acc_update_device): Ditto.
10784 (acc_update_self): Ditto.
10785 (acc_map_data): Ditto.
10786 (acc_unmap_data): Ditto.
10787 (acc_deviceptr): Ditto.
10788 (acc_hostptr): Ditto.
10789 (acc_is_present): Ditto.
10790 (acc_memcpy_to_device): Ditto.
10791 (acc_memcpy_from_device): Ditto.
10792 (acc_get_current_cuda_device): Ditto.
10793 (acc_get_current_cuda_context): Ditto.
10794 (acc_get_cuda_stream): Ditto.
10795 (acc_set_cuda_stream): Ditto.
10796 (ACC_DEVICE_TYPE): Ditto.
10797 (ACC_DEVICE_NUM): Ditto.
10798 (OpenACC Library Interoperability): Ditto.
10800 2017-08-09 Jakub Jelinek <jakub@redhat.com>
10803 * testsuite/libgomp.c/pr81687-1.c: New test.
10804 * testsuite/libgomp.c/pr81687-2.c: New test.
10806 2017-08-07 Jakub Jelinek <jakub@redhat.com>
10809 * testsuite/libgomp.c/pr69389.c: New test.
10810 * testsuite/libgomp.c++/pr69389.C: New test.
10812 2017-08-07 Tom de Vries <tom@codesourcery.com>
10814 PR middle-end/78266
10815 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
10816 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
10818 2017-07-27 Jakub Jelinek <jakub@redhat.com>
10821 * testsuite/libgomp.c/pr45784.c: New test.
10822 * testsuite/libgomp.c++/pr45784.C: New test.
10824 2017-07-19 Tom de Vries <tom@codesourcery.com>
10826 * testsuite/libgomp.oacc-c/vec.c: New test.
10828 2017-07-03 Tom de Vries <tom@codesourcery.com>
10830 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
10832 2017-06-27 Tom de Vries <tom@codesourcery.com>
10834 * plugin/plugin-nvptx.c (notify_var): New function.
10835 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
10837 2017-06-27 Tom de Vries <tom@codesourcery.com>
10839 * env.c (parse_unsigned_long_1): Factor out of ...
10840 (parse_unsigned_long): ... here.
10841 (parse_int_1): Factor out of ...
10842 (parse_int): ... here.
10843 (parse_int_secure): New function.
10844 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
10845 * secure_getenv.h: Factor out of ...
10846 * plugin/plugin-hsa.c: ... here.
10847 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
10849 2017-06-21 Jakub Jelinek <jakub@redhat.com>
10852 * testsuite/libgomp.c++/pr81130.C: New test.
10854 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10856 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
10858 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
10859 dg-xfail-run-if default args.
10861 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
10863 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
10864 * testsuite/libgomp.c/pr39591-3.c: Likewise.
10866 2017-05-30 Jakub Jelinek <jakub@redhat.com>
10869 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
10870 (gomp_affinity_init_level): Use it. Always analyze the core and thread
10871 sibling lists, depending on level just pick up what CPUs to put
10872 together into a place vs. whether add multiple ordered places.
10874 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
10876 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
10877 * libgomp.map (OACC_2.0.1): Add these.
10878 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
10879 for "acc_wait", and "acc_wait_all", respectively.
10880 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
10881 for "acc_wait", and "acc_wait_all", respectively.
10882 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
10883 * libgomp.texi (acc_wait, acc_wait_all): Update.
10884 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
10885 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
10886 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
10888 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
10889 acc_present_or_copyin and acc_present_or_create procedures,
10891 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
10892 generally different variants of OpenACC Runtime Library functions.
10893 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10895 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
10896 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10898 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
10899 of preprocessor definitions.
10900 * libgomp.h (strong_alias): Guard by "#ifdef
10901 HAVE_ATTRIBUTE_ALIAS".
10902 * oacc-mem.c: Provide "acc_pcreate" as alias for
10903 "acc_present_or_create", and "acc_pcopyin" as alias for
10904 "acc_present_or_copyin".
10905 * libgomp.map: New version "OACC_2.0.1".
10906 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
10907 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
10908 its content into...
10909 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
10912 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
10913 when disabling nvptx offloading.
10915 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
10917 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
10918 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
10919 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
10921 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
10922 * testsuite/lib/libgomp.exp
10923 (check_effective_target_openacc_nvidia_accel_configured): New
10925 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
10926 (check_effective_target_c++): New procs.
10927 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
10928 (check_effective_target_c++): Likewise.
10930 2017-05-22 Jakub Jelinek <jakub@redhat.com>
10932 PR middle-end/80809
10933 * testsuite/libgomp.c/pr80809-2.c: New test.
10934 * testsuite/libgomp.c/pr80809-3.c: New test.
10936 PR middle-end/80809
10937 * testsuite/libgomp.c/pr80809-1.c: New test.
10939 PR middle-end/80853
10940 * testsuite/libgomp.c/pr80853.c: New test.
10942 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
10944 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
10945 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
10946 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
10947 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
10948 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
10950 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
10951 Debug output for failure.
10953 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10955 * testsuite/lib/libgomp.exp: Load scanlang.exp.
10957 2017-04-27 Jakub Jelinek <jakub@redhat.com>
10960 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
10961 bootstrap compare failures.
10963 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
10965 * testsuite/libgomp.c/target-36.c: New testcase.
10967 2017-04-13 Jakub Jelinek <jakub@redhat.com>
10969 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
10972 2017-04-11 Jakub Jelinek <jakub@redhat.com>
10975 * testsuite/libgomp.c/pr80394.c: New test.
10977 2017-04-04 Jakub Jelinek <jakub@redhat.com>
10980 * config/posix/thread-stacksize.h: New file.
10981 * config/darwin/thread-stacksize.h: New file.
10982 * config/nvptx/thread-stacksize.h: New file.
10983 * env.c: Include thread-stacksize.h.
10984 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
10985 instead of 0. Call pthread_attr_setstacksize even if
10986 GOMP_DEFAULT_STACKSIZE is non-zero.
10988 2017-03-30 Jakub Jelinek <jakub@redhat.com>
10990 * env.c (initialize_env): Initialize stacksize to 0.
10992 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
10995 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
10997 2017-03-08 Jakub Jelinek <jakub@redhat.com>
11000 * testsuite/libgomp.c/pr79940.c: New test.
11002 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11004 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
11006 Add __float128 options.
11008 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
11010 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
11011 hppa*-*-* dg-skip-if directive.
11013 2017-02-09 Jakub Jelinek <jakub@redhat.com>
11015 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
11016 dg-skip-if directive into a comment.
11018 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
11019 Chung-Lin Tang <cltang@codesourcery.com>
11021 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
11022 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
11023 add additional case.
11024 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
11025 "openacc_nvidia_accel_selected".
11026 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
11027 Add num_workers(8) clause.
11029 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
11031 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
11033 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
11034 include complex.h on hppa*-*-hpux*.
11035 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
11037 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
11039 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
11041 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
11042 GOMP_OFFLOAD_openacc_exec. Adjust all users.
11043 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
11044 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
11045 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
11046 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
11047 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
11048 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
11049 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
11050 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
11052 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
11054 * libgomp-plugin.h: #include <stdbool.h>.
11055 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
11056 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
11057 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
11058 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
11059 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
11060 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
11061 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
11062 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
11063 (GOMP_OFFLOAD_openacc_register_async_cleanup)
11064 (GOMP_OFFLOAD_openacc_async_test)
11065 (GOMP_OFFLOAD_openacc_async_test_all)
11066 (GOMP_OFFLOAD_openacc_async_wait)
11067 (GOMP_OFFLOAD_openacc_async_wait_async)
11068 (GOMP_OFFLOAD_openacc_async_wait_all)
11069 (GOMP_OFFLOAD_openacc_async_wait_all_async)
11070 (GOMP_OFFLOAD_openacc_async_set_async)
11071 (GOMP_OFFLOAD_openacc_create_thread_data)
11072 (GOMP_OFFLOAD_openacc_destroy_thread_data)
11073 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
11074 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
11075 (GOMP_OFFLOAD_openacc_get_cuda_stream)
11076 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
11077 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
11079 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
11080 (GOMP_OFFLOAD_unload_image): Fix argument types.
11082 2017-01-26 Jakub Jelinek <jakub@redhat.com>
11084 * testsuite/lib/libgomp.exp
11085 (check_effective_target_hsa_offloading_selected_nocache): Fix up
11086 check_compile invocation. Fix up removal of executable. Drop
11087 bogus "2>&1" argument.
11089 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
11092 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
11093 Martin Jambor <mjambor@suse.cz>
11095 * plugin/hsa.h: Moved to top level include.
11096 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
11098 2017-01-21 Jakub Jelinek <jakub@redhat.com>
11101 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
11102 of cat to get version from BASE-VER file.
11103 * testsuite/Makefile.in: Regenerated.
11105 2017-01-19 Jakub Jelinek <jakub@redhat.com>
11107 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
11110 2017-01-17 Jakub Jelinek <jakub@redhat.com>
11112 * plugin/hsa.h: Add GCC runtime library exception.
11113 * plugin/hsa_ext_finalize.h: Likewise.
11115 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
11116 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
11117 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
11118 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
11119 plugin/include/cuda as include dir and -ldl instead of -lcuda as
11120 library to link ptx plugin against.
11121 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
11122 (CUDA_CALLS): Define.
11123 (cuda_lib, cuda_lib_inited): New variables.
11124 (init_cuda_lib): New function.
11125 (CUDA_CALL_PREFIX): Define.
11126 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
11127 (CUDA_CALL): Use FN instead of (FN).
11128 (CUDA_CALL_NOCHECK): Define.
11129 (cuda_error, fini_streams_for_device, select_stream_for_async,
11130 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
11131 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
11132 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
11133 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
11135 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
11137 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
11138 Use CUDA_CALL_NOCHECK.
11139 * plugin/cuda/cuda.h: New file.
11140 * config.h.in: Regenerated.
11141 * configure: Regenerated.
11144 * configure.ac: Add GCC_BASE_VER.
11145 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
11146 get version from BASE-VER file.
11147 * testsuite/Makefile.in: Regenerated.
11148 * configure: Regenerated.
11149 * Makefile.in: Regenerated.
11151 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11154 * Makefile.am: Make fincludedir multilib-aware.
11155 * Makefile.in: Regenerate.
11157 2017-01-01 Jakub Jelinek <jakub@redhat.com>
11159 Update copyright years.
11161 * libgomp.texi: Bump @copying's copyright year.
11163 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
11165 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
11166 pthread_spinlock_t instead of gomp_mutex_t lock.
11167 (gomp_get_thread_pool): Likewise.
11168 (gomp_release_thread_pool): Likewise.
11169 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
11172 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
11174 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
11175 thread pool in case nthreads == 1.
11177 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
11179 * config/nvptx/env.c: Delete.
11180 * icv.c: Move definitions of ICV variables back ...
11181 * env.c: ...here. Do not compile environment-related functionality if
11182 LIBGOMP_OFFLOADED_ONLY is set.
11184 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
11186 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
11187 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
11188 * configure: Regenerate.
11189 * config.h.in: Likewise.
11191 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
11193 * Makefile.in: Regenerate with automake-1.11.6.
11194 * aclocal.m4: Likewise.
11195 * configure: Likewise.
11196 * testsuite/Makefile.in: Likewise.
11198 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
11200 * config/nvptx/critical.c: Delete to use generic implementation.
11202 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
11204 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
11205 ../../affinity.c as fallback.
11206 * config/nvptx/affinity.c: Delete to use fallback implementation.
11208 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
11209 Jakub Jelinek <jakub@redhat.com>
11210 Dmitry Melnik <dm@ispras.ru>
11212 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
11213 * Makefile.in. Regenerate.
11214 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
11215 (LIBGOMP_USE_PTHREADS): ...here; new define.
11216 * configure: Regenerate.
11217 * config.h.in: Likewise.
11218 * config/posix/affinity.c: Move to...
11219 * affinity.c: ...here (new file). Guard use of Pthreads-specific
11220 interface by LIBGOMP_USE_PTHREADS.
11221 * critical.c: Split out GOMP_atomic_{start,end} into...
11222 * atomic.c: ...here (new file).
11223 * env.c: Split out ICV definitions into...
11224 * icv.c: ...here (new file) and...
11225 * icv-device.c: ...here. New file.
11226 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
11227 (gomp_destroy_lock_30): Ditto.
11228 (gomp_set_lock_30): Ditto.
11229 (gomp_unset_lock_30): Ditto.
11230 (gomp_test_lock_30): Ditto.
11231 (gomp_init_nest_lock_30): Ditto.
11232 (gomp_destroy_nest_lock_30): Ditto.
11233 (gomp_set_nest_lock_30): Ditto.
11234 (gomp_unset_nest_lock_30): Ditto.
11235 (gomp_test_nest_lock_30): Ditto.
11237 * config/nvptx/lock.c: New.
11238 * config/nvptx/bar.c: New.
11239 * config/nvptx/bar.h: New.
11240 * config/nvptx/doacross.h: New.
11241 * config/nvptx/error.c: New.
11242 * config/nvptx/icv-device.c: New.
11243 * config/nvptx/mutex.h: New.
11244 * config/nvptx/pool.h: New.
11245 * config/nvptx/proc.c: New.
11246 * config/nvptx/ptrlock.h: New.
11247 * config/nvptx/sem.h: New.
11248 * config/nvptx/simple-bar.h: New.
11249 * config/nvptx/target.c: New.
11250 * config/nvptx/task.c: New.
11251 * config/nvptx/team.c: New.
11252 * config/nvptx/time.c: New.
11253 * config/posix/simple-bar.h: New.
11254 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
11255 (gomp_num_teams_var): Declare.
11256 (struct gomp_thread_pool): Change threads_dock member to
11257 gomp_simple_barrier_t.
11258 [__nvptx__] (gomp_thread): New implementation.
11259 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
11260 (gomp_thread_destructor): Ditto.
11261 (gomp_init_thread_affinity): Ditto.
11262 * team.c: Guard uses of Pthreads-specific interfaces by
11263 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
11264 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
11265 * config/nvptx/alloc.c: Delete.
11266 * config/nvptx/barrier.c: Ditto.
11267 * config/nvptx/fortran.c: Ditto.
11268 * config/nvptx/iter.c: Ditto.
11269 * config/nvptx/iter_ull.c: Ditto.
11270 * config/nvptx/loop.c: Ditto.
11271 * config/nvptx/loop_ull.c: Ditto.
11272 * config/nvptx/ordered.c: Ditto.
11273 * config/nvptx/parallel.c: Ditto.
11274 * config/nvptx/priority_queue.c: Ditto.
11275 * config/nvptx/sections.c: Ditto.
11276 * config/nvptx/single.c: Ditto.
11277 * config/nvptx/splay-tree.c: Ditto.
11278 * config/nvptx/work.c: Ditto.
11279 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
11280 -foffload=-lgfortran in addition to -lgfortran.
11281 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
11282 * plugin/plugin-nvptx.c: Include <limits.h>.
11283 (struct targ_fn_descriptor): Add new fields.
11284 (struct ptx_device): Ditto. Set them...
11285 (nvptx_open_device): ...here.
11286 (nvptx_adjust_launch_bounds): New.
11287 (nvptx_host2dev): Allow NULL 'nvthd'.
11288 (nvptx_dev2host): Ditto.
11289 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
11290 (link_ptx): Adjust log sizes.
11291 (nvptx_host2dev): Allow NULL 'nvthd'.
11292 (nvptx_dev2host): Ditto.
11293 (nvptx_set_clocktick): New. Use it...
11294 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
11296 (GOMP_OFFLOAD_dev2dev): New.
11297 (nvptx_adjust_launch_bounds): New.
11298 (nvptx_stacks_size): New.
11299 (nvptx_stacks_alloc): New.
11300 (nvptx_stacks_free): New.
11301 (GOMP_OFFLOAD_run): New.
11302 (GOMP_OFFLOAD_async_run): New (stub).
11304 2016-11-23 Martin Jambor <mjambor@suse.cz>
11306 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
11307 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
11308 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
11310 2016-11-23 Martin Liska <mliska@suse.cz>
11311 Martin Jambor <mjambor@suse.cz>
11313 * plugin/hsa.h: New file.
11314 * plugin/hsa_ext_finalize.h: New file.
11315 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
11316 header file unistd.h, and functions secure_getenv, __secure_getenv,
11317 getuid, geteuid, getgid and getegid.
11318 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
11320 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
11321 Handle various cases of secure_getenv presence, add an implementation
11322 when we can test effective UID and GID.
11323 (struct hsa_runtime_fn_info): New structure.
11324 (hsa_runtime_fn_info hsa_fns): New variable.
11325 (hsa_runtime_lib): Likewise.
11326 (support_cpu_devices): Likewise.
11327 (init_enviroment_variables): Load newly introduced ENV
11329 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
11330 (hsa_fatal): Likewise.
11331 (DLSYM_FN): New macro.
11332 (init_hsa_runtime_functions): New function.
11333 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
11334 structure. Depending on environment, also allow CPU devices.
11335 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
11336 (get_kernarg_memory_region): Likewise.
11337 (GOMP_OFFLOAD_init_device): Likewise.
11338 (destroy_hsa_program): Likewise.
11339 (init_basic_kernel_info): New function.
11340 (GOMP_OFFLOAD_load_image): Use it.
11341 (create_and_finalize_hsa_program): Call hsa run-time functions via
11343 (create_single_kernel_dispatch): Likewise.
11344 (release_kernel_dispatch): Likewise.
11345 (init_single_kernel): Likewise.
11346 (parse_target_attributes): Allow up multiple HSA grid dimensions.
11347 (get_group_size): New function.
11348 (run_kernel): Likewise.
11349 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
11350 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
11352 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
11353 * testsuite/libgomp-test-support.exp.in: Likewise.
11354 * Makefile.in: Regenerated.
11355 * aclocal.m4: Likewise.
11356 * config.h.in: Likewise.
11357 * configure: Likewise.
11358 * testsuite/Makefile.in: Likewise.
11360 2016-11-15 Martin Jambor <mjambor@suse.cz>
11361 Alexander Monakov <amonakov@ispras.ru>
11363 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
11364 mapping clauses to target constructs.
11365 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
11367 2016-11-15 Matthias Klose <doko@ubuntu.com>
11369 * configure: Regenerate.
11371 2016-11-10 Jakub Jelinek <jakub@redhat.com>
11373 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
11374 * omp_lib.h.in (openmp_version): Likewise.
11375 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
11377 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
11379 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
11380 (fib_wrapper): Add map(from: x) clause.
11381 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
11382 (e_53_2): Likewise.
11383 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
11384 (accum): Add map(tmp) clause.
11385 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
11386 (accum): Add map(tofrom: tmp) clause.
11387 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
11388 (gramSchmidt): Likewise.
11389 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
11390 map(tofrom: sum) clause.
11391 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
11392 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
11393 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
11394 only allowed on the loop iterator.
11395 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
11396 * testsuite/libgomp.fortran/taskloop2.f90: New test.
11397 * testsuite/libgomp.fortran/taskloop4.f90: New test.
11398 * testsuite/libgomp.fortran/doacross1.f90: New test.
11399 * testsuite/libgomp.fortran/doacross3.f90: New test.
11400 * testsuite/libgomp.fortran/taskloop1.f90: New test.
11401 * testsuite/libgomp.fortran/taskloop3.f90: New test.
11402 * testsuite/libgomp.fortran/doacross2.f90: New test.
11403 * testsuite/libgomp.c/doacross-1.c (main): Add missing
11404 #pragma omp atomic read.
11405 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
11406 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
11408 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
11409 Nathan Sidwell <nathan@acm.org>
11411 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
11412 to determine default geometry.
11413 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
11416 2016-11-01 Jakub Jelinek <jakub@redhat.com>
11418 * hashtab.h: Use standard GPLv3 with runtime exception
11421 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
11423 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
11424 size when allocating new thread.
11426 2016-09-14 Marek Polacek <polacek@redhat.com>
11428 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
11430 2016-08-19 Jakub Jelinek <jakub@redhat.com>
11433 * testsuite/libgomp.fortran/pr71014.f90: New test.
11435 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
11437 PR middle-end/70895
11438 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
11439 firstprivate clauses.
11440 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
11442 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
11443 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
11444 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
11445 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
11446 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
11447 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
11448 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
11449 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
11450 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
11451 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
11452 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
11453 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
11455 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
11458 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
11460 2016-08-08 Jakub Jelinek <jakub@redhat.com>
11463 * testsuite/libgomp.c++/pr58706.C: New test.
11465 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
11467 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
11468 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
11469 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
11471 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
11472 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
11474 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
11476 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
11477 test, and don't hardcode -O0.
11479 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
11481 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
11483 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
11485 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
11488 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
11490 PR middle-end/71734
11491 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
11492 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
11494 2016-07-01 Jakub Jelinek <jakub@redhat.com>
11497 * testsuite/libgomp.fortran/associate3.f90: New test.
11499 2016-06-17 Jakub Jelinek <jakub@redhat.com>
11501 * testsuite/libgomp.c++/target-21.C: New test.
11503 2016-06-16 Jakub Jelinek <jakub@redhat.com>
11505 * testsuite/libgomp.c++/target-20.C: New test.
11507 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
11508 Cesar Philippidis <cesar@codesourcery.com>
11510 PR middle-end/71373
11511 * libgomp.oacc-c/nested-function-1.c: New file.
11512 * libgomp.oacc-c/nested-function-2.c: Likewise.
11513 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
11514 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
11515 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
11517 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
11520 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
11521 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
11522 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
11524 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
11526 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
11527 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
11529 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
11532 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
11534 2016-05-26 Jakub Jelinek <jakub@redhat.com>
11536 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
11537 instead of invalid schedule(static, 0).
11538 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
11540 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
11542 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
11543 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
11544 parameter, use to set async stream around call to gomp_unmap_vars,
11545 call gomp_unmap_vars() with 'do_copyfrom' set to true.
11546 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
11547 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
11548 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
11549 (event_add): Add int parameter, initialize 'val' field when
11550 adding new ptx_event struct.
11551 (nvptx_evec): Adjust event_add() call arguments.
11552 (nvptx_host2dev): Likewise.
11553 (nvptx_dev2host): Likewise.
11554 (nvptx_wait_async): Likewise.
11555 (nvptx_wait_all_async): Likewise.
11556 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
11557 pass to event_add() call.
11558 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
11560 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
11561 call openacc.register_async_cleanup_func() hook.
11562 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
11563 * target.c (gomp_copy_from_async): Delete function.
11564 (gomp_map_vars): Remove async_refcount.
11565 (gomp_unmap_vars): Likewise.
11566 (gomp_load_image_to_device): Likewise.
11567 (omp_target_associate_ptr): Likewise.
11568 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
11569 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
11570 (gomp_copy_from_async): Remove.
11572 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
11574 * target.c (gomp_device_copy): New function.
11575 (gomp_copy_host2dev): Likewise.
11576 (gomp_copy_dev2host): Likewise.
11577 (gomp_free_device_memory): Likewise.
11578 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
11579 (gomp_map_pointer): Likewise.
11580 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
11581 NULL value from alloc_func plugin hook.
11582 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
11583 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
11584 (gomp_unmap_vars): Likewise.
11585 (gomp_update): Adjust to call gomp_copy_dev2host and
11586 gomp_copy_host2dev functions.
11587 (gomp_unload_image_from_device): Handle false value from
11588 unload_image_func plugin hook.
11589 (gomp_init_device): Handle false value from init_device_func
11591 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
11592 (omp_target_free): Adjust to call gomp_free_device_memory.
11593 (omp_target_memcpy): Handle return values from host2dev_func,
11594 dev2host_func, and dev2dev_func plugin hooks.
11595 (omp_target_memcpy_rect_worker): Likewise.
11596 (gomp_target_fini): Handle false value from fini_device_func
11598 * libgomp.h (struct gomp_device_descr): Adjust return type of
11599 init_device_func, fini_device_func, unload_image_func, free_func,
11600 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
11601 * oacc-init.c (acc_shutdown_1): Handle false value from
11602 fini_device_func plugin hook.
11603 * oacc-host.c (host_init_device): Change return type to bool.
11604 (host_fini_device): Likewise.
11605 (host_unload_image): Likewise.
11606 (host_free): Likewise.
11607 (host_dev2host): Likewise.
11608 (host_host2dev): Likewise.
11609 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
11610 (acc_memcpy_to_device): Likewise.
11611 (acc_memcpy_from_device): Likewise.
11612 (delete_copyout): Add libfnname parameter, handle free_func
11613 hook fatal error case.
11614 (acc_delete): Adjust delete_copyout call.
11615 (acc_copyout): Likewise.
11616 (update_dev_host): Move gomp_mutex_unlock to after
11617 host2dev/dev2host hook calls.
11619 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
11620 to 'hsa_error_msg', for clarity.
11621 (hsa_fatal): Likewise.
11622 (hsa_error): New function.
11623 (init_hsa_context): Change return type to bool, adjust to return
11625 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
11627 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
11628 return false on error.
11629 (get_agent_info): Adjust to return NULL on error.
11630 (destroy_hsa_program): Change return type to bool, adjust to
11631 return false on error.
11632 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
11633 (destroy_module): Change return type to bool, adjust to
11634 return false on error.
11635 (GOMP_OFFLOAD_unload_image): Likewise.
11636 (GOMP_OFFLOAD_fini_device): Likewise.
11637 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
11638 (GOMP_OFFLOAD_free): Change to return false when called.
11639 (GOMP_OFFLOAD_dev2host): Likewise.
11640 (GOMP_OFFLOAD_host2dev): Likewise.
11641 (GOMP_OFFLOAD_dev2dev): Likewise.
11643 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
11644 (CUDA_CALL): Likewise.
11645 (CUDA_CALL_ASSERT): Likewise.
11646 (map_init): Change return type to bool, use CUDA_CALL* macros.
11647 (map_fini): Likewise.
11648 (init_streams_for_device): Change return type to bool, adjust
11650 (fini_streams_for_device): Change return type to bool, adjust
11652 (select_stream_for_async): Release stream_lock before calls to
11653 GOMP_PLUGIN_fatal, adjust call to map_init.
11654 (nvptx_init): Use CUDA_CALL* macros.
11655 (nvptx_attach_host_thread_to_device): Change return type to bool,
11656 use CUDA_CALL* macros.
11657 (nvptx_open_device): Use CUDA_CALL* macros.
11658 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
11660 (nvptx_get_num_devices): Use CUDA_CALL* macros.
11661 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
11662 (nvptx_exec): Use CUDA_CALL* macros.
11663 (nvptx_alloc): Use CUDA_CALL* macros.
11664 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
11665 (nvptx_host2dev): Likewise.
11666 (nvptx_dev2host): Likewise.
11667 (nvptx_wait): Use CUDA_CALL* macros.
11668 (nvptx_wait_async): Likewise.
11669 (nvptx_wait_all): Likewise.
11670 (nvptx_wait_all_async): Likewise.
11671 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
11672 use CUDA_CALL* macros, adjust call to map_fini.
11673 (GOMP_OFFLOAD_init_device): Change return type to bool,
11674 adjust code accordingly.
11675 (GOMP_OFFLOAD_fini_device): Likewise.
11676 (GOMP_OFFLOAD_load_image): Adjust calls to
11677 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
11678 use CUDA_CALL* macros.
11679 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
11681 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
11682 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
11683 handle error return.
11684 (GOMP_OFFLOAD_dev2host): Likewise.
11685 (GOMP_OFFLOAD_host2dev): Likewise.
11686 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
11687 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
11689 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
11691 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
11692 (acc_free): Likewise.
11693 (acc_memcpy_to_device): Likewise.
11694 (acc_memcpy_from_device): Likewise.
11695 (acc_deviceptr): Likewise.
11696 (acc_hostptr): Likewise.
11697 (acc_is_present): Likewise.
11698 (acc_map_data): Likewise.
11699 (acc_unmap_data): Likewise.
11700 (present_create_copy): Likewise.
11701 (delete_copyout): Likewise.
11702 (update_dev_host): Likewise.
11703 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
11704 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
11705 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
11706 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
11707 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
11708 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
11709 it only runs on nvptx targets.
11710 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
11711 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
11712 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11713 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11714 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11715 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11716 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11717 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11718 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11719 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
11720 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11721 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11722 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11723 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11724 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11725 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11726 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11727 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11728 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11729 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11730 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11731 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11732 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11734 2016-05-23 Martin Jambor <mjambor@suse.cz>
11736 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
11738 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
11740 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
11741 to gomp_init_targets_once.
11742 (acc_set_device_type): Remove !cached_base_dev condition on call to
11743 gomp_init_targets_once, move call to before acc_device_lock acquire,
11745 (acc_get_device_num): Remove !cached_base_dev condition on call to
11746 gomp_init_targets_once.
11747 (acc_set_device_num): Likewise.
11749 2016-05-16 Martin Jambor <mjambor@suse.cz>
11751 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
11753 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
11755 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
11756 expected partitioning.
11758 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
11760 PR middle-end/70626
11761 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
11762 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
11763 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
11765 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
11767 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
11770 2016-04-19 Jakub Jelinek <jakub@redhat.com>
11772 PR middle-end/70680
11773 * testsuite/libgomp.c/pr70680-1.c: New test.
11774 * testsuite/libgomp.c/pr70680-2.c: New test.
11776 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
11778 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
11779 pass parameter variables to subroutines.
11781 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
11783 PR middle-end/70643
11784 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
11786 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
11789 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
11790 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
11792 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
11794 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
11795 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
11796 GOACC_declare prototype.
11798 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
11799 Merge this file, and...
11800 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
11801 ... this file, and...
11802 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
11803 ... this file, and...
11804 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
11805 ... this file, and...
11806 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
11807 ... this file, and...
11808 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
11809 ... this file, and...
11810 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
11811 ... this file, and...
11812 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
11813 ... this file, and...
11814 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
11815 ... this file, and...
11816 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
11817 ... this file, and...
11818 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
11819 ... this file, and...
11820 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
11821 ... this file, and...
11822 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
11823 ... this file into...
11824 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
11827 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
11828 Make failure observable.
11830 2016-04-12 Jakub Jelinek <jakub@redhat.com>
11832 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
11834 * target.c (gomp_target_fallback_firstprivate,
11835 gomp_target_unshare_firstprivate): Removed.
11836 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
11837 before waiting for dependencies.
11838 (gomp_target_task_fn): Don't copy firstprivate vars here.
11839 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
11840 firstprivate_copies here.
11841 (gomp_create_target_task): Don't initialize firstprivate_copies field.
11842 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
11843 explicit/implicit firstprivate.
11845 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
11849 PR tree-optimization/70373
11850 PR middle-end/70533
11851 PR middle-end/70534
11852 PR middle-end/70535
11853 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
11855 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
11857 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
11859 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
11861 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
11863 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
11865 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
11867 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
11869 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
11871 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
11872 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
11873 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
11874 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
11876 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
11878 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
11880 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
11882 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
11884 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
11885 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
11886 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
11887 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
11888 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
11889 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
11891 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
11892 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
11893 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
11894 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
11895 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
11896 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
11897 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
11898 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
11899 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
11900 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11901 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11902 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11903 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11904 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11905 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
11907 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
11908 James Norris <jnorris@codesourcery.com>
11909 Nathan Sidwell <nathan@codesourcery.com>
11910 Julian Brown <julian@codesourcery.com>
11911 Cesar Philippidis <cesar@codesourcery.com>
11912 Chung-Lin Tang <cltang@codesourcery.com>
11913 Tom de Vries <tom@codesourcery.com>
11915 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
11916 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
11917 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
11918 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
11919 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11920 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11921 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11922 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
11923 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
11925 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
11927 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
11929 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
11930 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
11931 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
11932 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
11934 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
11936 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
11937 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
11938 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
11939 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
11940 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
11941 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11942 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
11943 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
11944 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
11945 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
11947 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
11948 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
11949 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
11951 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
11953 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
11955 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
11957 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
11959 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
11960 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
11961 ... this new file. Update.
11962 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
11963 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
11964 ... this new file. Update.
11965 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
11966 file. Incorporate...
11967 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
11969 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
11971 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
11973 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
11975 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
11977 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
11978 set-torture-options.
11980 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
11982 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
11984 * testsuite/libgomp.oacc-c/c.exp: Likewise.
11985 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
11986 -fno-builtin-acc_on_device instead of -O0.
11987 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
11989 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
11990 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
11992 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
11993 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
11994 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
11995 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
11996 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
11997 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
11998 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
11999 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12000 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
12001 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
12002 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
12003 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
12004 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
12005 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
12006 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
12007 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
12008 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
12009 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
12011 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
12013 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
12016 2016-03-24 Martin Liska <mliska@suse.cz>
12018 * plugin/plugin-hsa.c (packet_store_release): New function
12019 that is taken from the HSA runtime manual.
12020 (GOMP_OFFLOAD_run): Use the function.
12022 2016-03-23 Jakub Jelinek <jakub@redhat.com>
12025 * testsuite/libgomp.c++/pr70376.C: New test.
12027 2016-03-23 Tom de Vries <tom@codesourcery.com>
12029 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
12030 initialization of lresult and lvresult.
12031 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
12033 2016-03-23 James Norris <jnorris@codesourcery.com>
12034 Daichi Fukuoka <dc-fukuoka@sgi.com>
12037 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
12038 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
12039 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
12040 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
12042 2016-03-23 Martin Liska <mliska@suse.cz>
12045 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
12046 argument just in case a dispatched kernel uses that argument.
12048 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
12050 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
12051 -ftree-parallelize-loops/-fopenacc changes.
12052 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
12054 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
12056 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
12058 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
12060 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
12061 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
12063 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
12065 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
12066 always_ld_library_path the path to libgcc_s.
12068 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
12071 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
12073 2016-03-09 Tom de Vries <tom@codesourcery.com>
12075 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
12076 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
12077 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
12079 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
12080 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
12081 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
12082 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
12084 2016-03-07 Martin Jambor <mjambor@suse.cz>
12086 * testsuite/lib/libgomp.exp
12087 (check_effective_target_hsa_offloading_selected_nocache): New.
12088 (check_effective_target_hsa_offloading_selected): Likewise.
12089 * testsuite/libgomp.hsa.c/c.exp: Likewise.
12090 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
12091 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
12092 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
12093 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
12094 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
12095 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
12096 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
12097 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
12098 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
12099 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
12100 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
12101 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
12102 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
12103 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
12104 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
12105 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
12107 2016-03-07 Martin Jambor <mjambor@suse.cz>
12109 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
12110 non-shared memory accelerators.
12111 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
12112 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
12113 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
12114 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
12115 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
12116 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
12117 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
12118 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
12119 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
12121 2016-03-07 Martin Jambor <mjambor@suse.cz>
12123 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
12126 2016-03-02 Jakub Jelinek <jakub@redhat.com>
12129 * testsuite/libgomp.c++/pr69555-1.C: New test.
12130 * testsuite/libgomp.c++/pr69555-2.C: New test.
12132 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
12133 Martin Jambor <mjambor@suse.cz>
12135 * testsuite/lib/libgomp.exp
12136 (check_effective_target_offload_device_shared_as): New proc.
12137 * testsuite/libgomp.c++/declare_target-1.C: New test.
12139 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
12142 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
12144 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
12146 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
12147 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
12149 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
12150 -ftree-parallelize-loops/-fopenacc changes.
12151 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
12152 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
12154 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
12156 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
12158 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
12160 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
12162 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
12164 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
12166 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
12167 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
12169 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
12170 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
12172 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
12173 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
12176 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
12178 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
12180 2016-02-19 Jakub Jelinek <jakub@redhat.com>
12183 * testsuite/libgomp.c/pr69805.c: New test.
12185 2016-02-16 Tom de Vries <tom@codesourcery.com>
12188 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
12190 2016-02-09 Tom de Vries <tom@codesourcery.com>
12192 PR tree-optimization/69599
12193 * testsuite/libgomp.c/omp-nested-3.c: New test.
12194 * testsuite/libgomp.c/pr46032-2.c: New test.
12195 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
12196 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
12198 2016-02-09 Tom de Vries <tom@codesourcery.com>
12201 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
12203 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
12205 * testsuite/libgomp.c/target-31.c: Fix testcase.
12207 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
12209 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
12211 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
12212 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
12213 reduction and map clauses.
12214 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
12216 2016-02-02 James Norris <jnorris@codesourcery.com>
12218 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
12220 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
12222 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
12223 * oacc-parallel.c (GOACC_host_data): Remove function definition.
12225 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
12228 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
12230 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
12231 (hsa_kmt_lib): Set variables.
12232 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
12233 always_ld_library_path.
12234 * Makefile.in: Regenerate.
12235 * configure: Likewise.
12236 * testsuite/Makefile.in: Likewise.
12238 * plugin/configfrag.ac (offload_additional_options)
12239 (offload_additional_lib_paths): Don't amend for hsa offloading.
12240 * configure: Regenerate.
12242 * plugin/configfrag.ac: Don't configure for offloading target if
12243 we don't build the corresponding plugin.
12244 * configure: Regenerate.
12246 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
12248 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
12249 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
12251 2016-01-26 Tom de Vries <tom@codesourcery.com>
12253 PR tree-optimization/69110
12254 * testsuite/libgomp.c/pr69110.c: New test.
12256 2016-01-25 Richard Biener <rguenther@suse.de>
12259 * testsuite/libgomp.c++/pr69393.C: New testcase.
12261 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
12263 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
12264 function wasn't mapped to the device with non-shared memory.
12266 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
12268 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
12270 2016-01-19 Martin Jambor <mjambor@suse.cz>
12271 Martin Liska <mliska@suse.cz>
12273 * plugin/Makefrag.am: Add HSA plugin requirements.
12274 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
12275 (HSA_RUNTIME_LIB): Likewise.
12276 (HSA_RUNTIME_CPPFLAGS): Likewise.
12277 (HSA_RUNTIME_INCLUDE): New substitution.
12278 (HSA_RUNTIME_LIB): Likewise.
12279 (HSA_RUNTIME_LDFLAGS): Likewise.
12280 (hsa-runtime): New configure option.
12281 (hsa-runtime-include): Likewise.
12282 (hsa-runtime-lib): Likewise.
12283 (PLUGIN_HSA): New substitution variable.
12284 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
12286 (PLUGIN_HSA_CPPFLAGS): Likewise.
12287 (PLUGIN_HSA_LDFLAGS): Likewise.
12288 (PLUGIN_HSA_LIBS): Likewise.
12289 Check that we have access to HSA run-time.
12290 * libgomp-plugin.h (offload_target_type): New element
12291 OFFLOAD_TARGET_TYPE_HSA.
12292 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
12294 (bool gomp_create_target_task): Updated.
12295 (gomp_device_descr): Extra parameter of run_func and async_run_func,
12296 new field can_run_func.
12297 * libgomp_g.h (GOMP_target_ext): Update prototype.
12298 * oacc-host.c (host_run): Added a new parameter args.
12299 * target.c (calculate_firstprivate_requirements): New function.
12300 (copy_firstprivate_data): Likewise.
12301 (gomp_target_fallback_firstprivate): Use them.
12302 (gomp_target_unshare_firstprivate): New function.
12303 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
12305 (GOMP_target): Do host fallback for all shared memory devices. Do not
12306 pass any args to plugins.
12307 (GOMP_target_ext): Introduce device-specific argument parameter args.
12308 Allow host fallback if device shares memory. Do not remap data if
12309 device has shared memory.
12310 (gomp_target_task_fn): Likewise. Also treat shared memory devices
12311 like host fallback for mappings.
12312 (GOMP_target_data): Treat shared memory devices like host fallback.
12313 (GOMP_target_data_ext): Likewise.
12314 (GOMP_target_update): Likewise.
12315 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
12316 gomp_create_target_task.
12317 (GOMP_target_enter_exit_data): Likewise.
12318 (omp_target_alloc): Treat shared memory devices like host fallback.
12319 (omp_target_free): Likewise.
12320 (omp_target_is_present): Likewise.
12321 (omp_target_memcpy): Likewise.
12322 (omp_target_memcpy_rect): Likewise.
12323 (omp_target_associate_ptr): Likewise.
12324 (gomp_load_plugin_for_device): Also load can_run.
12325 * task.c (GOMP_PLUGIN_target_task_completion): Free
12326 firstprivate_copies.
12327 (gomp_create_target_task): Accept new argument args and store it to
12329 * plugin/plugin-hsa.c: New file.
12331 2016-01-18 Tom de Vries <tom@codesourcery.com>
12333 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
12334 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
12335 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
12336 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
12337 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
12338 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
12339 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
12340 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
12341 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
12342 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
12343 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
12345 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
12347 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
12348 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
12349 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
12350 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
12351 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
12352 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
12353 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
12354 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
12356 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
12358 2016-01-15 Jakub Jelinek <jakub@redhat.com>
12360 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
12362 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
12364 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
12366 2016-01-12 James Norris <jnorris@codesourcery.com>
12368 * libgomp.texi: Updates for OpenACC.
12370 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
12372 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
12374 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
12377 * testsuite/libgomp.fortran/pr66680.f90: New test.
12379 2016-01-07 Jakub Jelinek <jakub@redhat.com>
12381 PR middle-end/68960
12382 * testsuite/libgomp.c/pr68960.c: New test.
12384 2016-01-06 Nathan Sidwell <nathan@acm.org>
12386 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
12387 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
12389 2016-01-04 Jakub Jelinek <jakub@redhat.com>
12391 Update copyright years.
12393 * libgomp.texi: Bump @copying's copyright year.
12395 2015-12-31 Nathan Sidwell <nathan@acm.org>
12397 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
12398 dg-additional-options syntax.
12399 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
12400 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
12401 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
12402 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12403 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
12404 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
12405 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
12406 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
12407 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
12408 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
12409 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12410 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
12411 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
12412 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
12413 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
12414 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
12415 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12416 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12418 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
12420 * libgomp.h (REFCOUNT_LINK): Define.
12421 (struct splay_tree_key_s): Add link_key.
12422 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
12423 Replace target address of the pointer with target address of newly
12424 mapped object in the splay tree. Set link pointer on target to the
12425 device address of the mapped object.
12426 (gomp_unmap_vars): Restore target address of the pointer in the splay
12427 tree for REFCOUNT_LINK objects after unmapping.
12428 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
12429 declare target link" objects.
12430 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
12431 "omp declare target link" objects, which were mapped for the image.
12432 (gomp_exit_data): Restore target address of the pointer in the splay
12433 tree for REFCOUNT_LINK objects after unmapping.
12434 * testsuite/libgomp.c/target-link-1.c: New file.
12436 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
12438 * libgomp.h (gomp_device_state): New enum.
12439 (struct gomp_device_descr): Replace is_initialized with state.
12440 (gomp_fini_device): Remove declaration.
12441 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
12442 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
12443 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
12444 (acc_set_device_type): Use state instead of is_initialized.
12445 (acc_set_device_num): Likewise.
12446 * target.c (resolve_device): Use state instead of is_initialized.
12447 Do not initialize finalized device.
12448 (gomp_map_vars): Do nothing if device is finalized.
12449 (gomp_unmap_vars): Likewise.
12450 (gomp_update): Likewise.
12451 (GOMP_offload_register_ver): Use state instead of is_initialized.
12452 (GOMP_offload_unregister_ver): Likewise.
12453 (gomp_init_device): Likewise.
12454 (gomp_unload_device): Likewise.
12455 (gomp_fini_device): Remove.
12456 (gomp_get_target_fn_addr): Do nothing if device is finalized.
12457 (GOMP_target): Go to host fallback if device is finalized.
12458 (GOMP_target_ext): Likewise.
12459 (gomp_exit_data): Do nothing if device is finalized.
12460 (gomp_target_task_fn): Go to host fallback if device is finalized.
12461 (gomp_target_fini): New static function.
12462 (gomp_target_init): Use state instead of is_initialized.
12463 Call gomp_target_fini at exit.
12465 2015-12-09 Tom de Vries <tom@codesourcery.com>
12467 PR tree-optimization/68716
12468 * testsuite/libgomp.c/omp-nested-2.c: New test.
12470 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
12472 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
12473 target openacc_nvidia_accel_selected.
12474 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
12475 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
12476 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
12477 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
12479 2015-12-01 Julian Brown <julian@codesourcery.com>
12480 James Norris <James_Norris@mentor.com>
12482 * oacc-parallel.c (GOACC_host_data): New function.
12483 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
12484 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
12485 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
12486 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
12487 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
12488 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
12489 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
12491 2015-11-30 James Norris <jnorris@codesourcery.com>
12492 Cesar Philippidis <cesar@codesourcery.com>
12495 * libgomp.oacc-fortran/routine-5.f90: New test.
12496 * libgomp.oacc-fortran/routine-7.f90: New test.
12497 * libgomp.oacc-fortran/routine-9.f90: New test.
12499 2015-11-30 Tom de Vries <tom@codesourcery.com>
12501 PR tree-optimization/46032
12502 * testsuite/libgomp.c/pr46032.c: New test.
12504 2015-11-27 Jakub Jelinek <jakub@redhat.com>
12507 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
12508 (gomp_create_target_task): Call it before freeing
12509 GOMP_TARGET_TASK_DATA tasks.
12512 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
12513 in between case label and OpenMP standalone directives.
12514 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
12516 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
12518 * configure: Regenerate.
12520 2015-11-26 Jakub Jelinek <jakub@redhat.com>
12522 * testsuite/libgomp.c/target-35.c: New test.
12524 2015-11-22 James Norris <jnorris@codesourcery.com>
12525 Cesar Philippidis <cesar@codesourcery.com>
12527 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
12528 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
12529 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
12530 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
12531 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
12533 2015-11-20 Jakub Jelinek <jakub@redhat.com>
12535 PR middle-end/68221
12536 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
12537 * testsuite/libgomp.c/reduction-12.c: Likewise.
12538 * testsuite/libgomp.c++/reduction-11.C: Likewise.
12539 * testsuite/libgomp.c++/reduction-12.C: Likewise.
12541 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
12543 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
12544 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
12545 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
12546 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
12547 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
12549 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
12550 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
12552 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
12554 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
12555 worker & gang cases.
12556 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
12558 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
12560 * config/nvptx/priority_queue.c: New file.
12562 2015-11-14 Jakub Jelinek <jakub@redhat.com>
12564 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
12567 2015-11-14 Jakub Jelinek <jakub@redhat.com>
12568 Aldy Hernandez <aldyh@redhat.com>
12569 Ilya Verbin <ilya.verbin@intel.com>
12571 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
12572 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
12573 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
12574 iterators or IV by chunk size.
12575 * parallel.c (gomp_resolve_num_threads): Don't assume that
12576 if thr->ts.team is non-NULL, then pool must be non-NULL.
12577 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
12578 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
12579 GOMP_PLUGIN_target_task_completion.
12580 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
12581 * Makefile.in: Regenerate.
12582 * libgomp.h: Shuffle prototypes and forward definitions around so
12583 priority queues can be defined.
12584 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
12585 (enum gomp_target_task_state): New enum.
12586 (struct gomp_target_task): Add state, tgt, task and team fields.
12587 (gomp_create_target_task): Change return type to bool, add
12589 (gomp_target_task_fn): Change return type to bool.
12590 (struct gomp_device_descr): Add async_run_func.
12591 (struct gomp_task): Remove children, next_child, prev_child,
12592 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
12594 (struct gomp_taskgroup): Remove children.
12595 Add taskgroup_queue.
12596 (struct gomp_team): Change task_queue type to a priority queue.
12597 (splay_compare): Define inline.
12598 (priority_queue_offset): New.
12599 (priority_node_to_task): New.
12600 (task_to_priority_node): New.
12601 * oacc-mem.c: Do not include splay-tree.h.
12602 * priority_queue.c: New file.
12603 * priority_queue.h: New file.
12604 * splay-tree.c: Do not include splay-tree.h.
12605 (splay_tree_foreach_internal): New.
12606 (splay_tree_foreach): New.
12607 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
12608 (splay_tree_callback): Define typedef.
12609 * target.c (splay_compare): Move to libgomp.h.
12610 (GOMP_target): Don't adjust *thr in any way around running offloaded
12612 (GOMP_target_ext): Likewise. Handle target nowait.
12613 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
12614 return value from gomp_create_target_task, if false, fallthrough
12615 as if no dependencies exist.
12616 (gomp_target_task_fn): Change return type to bool, return true
12617 if the task should have another part scheduled later. Handle
12619 (gomp_load_plugin_for_device): Initialize async_run.
12620 * task.c (gomp_init_task): Initialize children_queue.
12621 (gomp_clear_parent_in_list): New.
12622 (gomp_clear_parent_in_tree): New.
12623 (gomp_clear_parent): Handle priorities.
12624 (GOMP_task): Likewise.
12625 (priority_queue_move_task_first,
12626 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
12628 (gomp_create_target_task): Use priority queues. Change return type
12629 to bool, add state argument, return false if for async
12630 {{enter,exit} data,update} constructs no dependencies need to be
12631 waited for, handle target nowait. Set task->fn to NULL instead of
12632 gomp_target_task_fn.
12633 (verify_children_queue): Remove.
12634 (priority_list_upgrade_task): New.
12635 (priority_queue_upgrade_task): New.
12636 (verify_task_queue): Remove.
12637 (priority_list_downgrade_task): New.
12638 (priority_queue_downgrade_task): New.
12639 (gomp_task_run_pre): Use priority queues.
12640 Abstract code out to priority_queue_downgrade_task.
12641 (gomp_task_run_post_handle_dependers): Use priority queues.
12642 (gomp_task_run_post_remove_parent): Likewise.
12643 (gomp_task_run_post_remove_taskgroup): Likewise.
12644 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
12646 (GOMP_taskwait): Likewise.
12647 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
12648 priority-queue_upgrade_task.
12649 (GOMP_taskgroup_start): Use priority queues.
12650 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
12651 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
12653 * taskloop.c (GOMP_taskloop): Handle priorities.
12654 * team.c (gomp_new_team): Call priority_queue_init.
12655 (free_team): Call priority_queue_free.
12656 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
12657 team created for target nowait in implicit parallel region.
12658 (gomp_team_start): For nested check, test thr->ts.level instead of
12659 thr->ts.team != NULL.
12660 * testsuite/libgomp.c/doacross-3.c: New test.
12661 * testsuite/libgomp.c/ordered-5.c: New test.
12662 * testsuite/libgomp.c/priority.c: New test.
12663 * testsuite/libgomp.c/target-31.c: New test.
12664 * testsuite/libgomp.c/target-32.c: New test.
12665 * testsuite/libgomp.c/target-33.c: New test.
12666 * testsuite/libgomp.c/target-34.c: New test.
12668 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
12670 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
12672 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
12673 loop is sequential.
12675 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
12677 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
12678 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
12680 2015-11-12 James Norris <jnorris@codesourcery.com>
12681 Joseph Myers <joseph@codesourcery.com>
12683 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
12684 * oacc-parallel.c (GOACC_declare): New function.
12685 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
12686 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
12687 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
12688 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
12689 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
12691 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
12693 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
12695 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
12697 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
12698 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
12700 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
12702 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
12703 inadvertent commit.
12705 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
12707 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
12708 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
12709 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
12710 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
12711 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
12713 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
12715 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
12716 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
12718 2015-11-05 Jakub Jelinek <jakub@redhat.com>
12719 Ilya Verbin <ilya.verbin@intel.com>
12721 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
12722 GOMP_loop_nonmonotonic_dynamic_start,
12723 GOMP_loop_nonmonotonic_guided_next,
12724 GOMP_loop_nonmonotonic_guided_start,
12725 GOMP_loop_ull_nonmonotonic_dynamic_next,
12726 GOMP_loop_ull_nonmonotonic_dynamic_start,
12727 GOMP_loop_ull_nonmonotonic_guided_next,
12728 GOMP_loop_ull_nonmonotonic_guided_start,
12729 GOMP_parallel_loop_nonmonotonic_dynamic,
12730 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
12731 (GOMP_target_41): Renamed to ...
12732 (GOMP_target_ext): ... this. Add num_teams and thread_limit
12734 (GOMP_target_data_41): Renamed to ...
12735 (GOMP_target_data_ext): ... this.
12736 (GOMP_target_update_41): Renamed to ...
12737 (GOMP_target_update_ext): ... this.
12738 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
12739 GOMP_target_data_ext and GOMP_target_update_ext instead of
12740 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
12741 Export GOMP_loop_nonmonotonic_dynamic_next,
12742 GOMP_loop_nonmonotonic_dynamic_start,
12743 GOMP_loop_nonmonotonic_guided_next,
12744 GOMP_loop_nonmonotonic_guided_start,
12745 GOMP_loop_ull_nonmonotonic_dynamic_next,
12746 GOMP_loop_ull_nonmonotonic_dynamic_start,
12747 GOMP_loop_ull_nonmonotonic_guided_next,
12748 GOMP_loop_ull_nonmonotonic_guided_start,
12749 GOMP_parallel_loop_nonmonotonic_dynamic and
12750 GOMP_parallel_loop_nonmonotonic_guided.
12751 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
12752 GOMP_parallel_loop_nonmonotonic_guided,
12753 GOMP_loop_nonmonotonic_dynamic_start,
12754 GOMP_loop_nonmonotonic_guided_start,
12755 GOMP_loop_nonmonotonic_dynamic_next,
12756 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
12757 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
12758 GOMP_loop_ull_nonmonotonic_guided_start,
12759 GOMP_loop_ull_nonmonotonic_dynamic_next,
12760 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
12761 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
12763 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
12764 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
12765 Use gomp_map_val function.
12766 (gomp_target_fallback_firstprivate): New static function.
12767 (GOMP_target_41): Renamed to ...
12768 (GOMP_target_ext): ... this. Add num_teams and thread_limit
12769 arguments. Move firstprivate fallback handling into a new
12771 (GOMP_target_data_41): Renamed to ...
12772 (GOMP_target_data_ext): ... this.
12773 (GOMP_target_update_41): Renamed to ...
12774 (GOMP_target_update_ext): ... this.
12775 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
12776 gomp_map_0len_lookup instead of gomp_map_lookup.
12777 (omp_target_is_present): Use gomp_map_0len_lookup instead of
12779 * testsuite/libgomp.c/target-28.c: Likewise.
12780 * testsuite/libgomp.c/monotonic-1.c: New test.
12781 * testsuite/libgomp.c/monotonic-2.c: New test.
12782 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
12783 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
12784 * testsuite/libgomp.c/pr66199-5.c: New test.
12785 * testsuite/libgomp.c/pr66199-6.c: New test.
12786 * testsuite/libgomp.c/pr66199-7.c: New test.
12787 * testsuite/libgomp.c/pr66199-8.c: New test.
12788 * testsuite/libgomp.c/pr66199-9.c: New test.
12789 * testsuite/libgomp.c/reduction-11.c: New test.
12790 * testsuite/libgomp.c/reduction-12.c: New test.
12791 * testsuite/libgomp.c/reduction-13.c: New test.
12792 * testsuite/libgomp.c/reduction-14.c: New test.
12793 * testsuite/libgomp.c/reduction-15.c: New test.
12794 * testsuite/libgomp.c/target-12.c (main): Adjust for
12795 omp_target_is_present change for one-past-last element.
12796 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
12797 the same var is both mapped and privatized.
12798 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
12799 handling of zero-length array sections.
12800 * testsuite/libgomp.c/target-28.c: New test.
12801 * testsuite/libgomp.c/target-29.c: New test.
12802 * testsuite/libgomp.c/target-30.c: New test.
12803 * testsuite/libgomp.c/target-teams-1.c: New test.
12804 * testsuite/libgomp.c++/member-6.C: New test.
12805 * testsuite/libgomp.c++/member-7.C: New test.
12806 * testsuite/libgomp.c++/monotonic-1.C: New test.
12807 * testsuite/libgomp.c++/monotonic-2.C: New test.
12808 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
12809 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
12810 * testsuite/libgomp.c++/pr66199-3.C: New test.
12811 * testsuite/libgomp.c++/pr66199-4.C: New test.
12812 * testsuite/libgomp.c++/pr66199-5.C: New test.
12813 * testsuite/libgomp.c++/pr66199-6.C: New test.
12814 * testsuite/libgomp.c++/pr66199-7.C: New test.
12815 * testsuite/libgomp.c++/pr66199-8.C: New test.
12816 * testsuite/libgomp.c++/pr66199-9.C: New test.
12817 * testsuite/libgomp.c++/reduction-11.C: New test.
12818 * testsuite/libgomp.c++/reduction-12.C: New test.
12819 * testsuite/libgomp.c++/target-13.C: New test.
12820 * testsuite/libgomp.c++/target-14.C: New test.
12821 * testsuite/libgomp.c++/target-15.C: New test.
12822 * testsuite/libgomp.c++/target-16.C: New test.
12823 * testsuite/libgomp.c++/target-17.C: New test.
12824 * testsuite/libgomp.c++/target-18.C: New test.
12825 * testsuite/libgomp.c++/target-19.C: New test.
12827 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
12829 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
12830 and reduction copy.
12831 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
12832 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
12833 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
12834 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12835 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
12836 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
12837 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
12838 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
12839 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
12840 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
12841 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
12842 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
12843 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12844 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
12846 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
12848 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
12849 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
12850 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
12851 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
12852 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
12853 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
12854 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
12855 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
12857 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
12859 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
12860 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
12861 (GOMP_OFFLOAD_openacc_parallel): Likewise.
12862 * oacc-host.c (host_openacc_exec): Likewise.
12863 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
12865 2015-11-03 Julian Brown <julian@codesourcery.com>
12866 Thomas Schwinge <thomas@codesourcery.com>
12868 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
12869 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
12870 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
12872 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
12873 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
12875 2015-11-03 James Norris <jnorris@codesourcery.com>
12877 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
12879 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
12881 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
12882 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
12883 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
12884 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
12885 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
12887 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
12889 * openacc.h (enum acc_device_t): Reformat. Ensure layout
12891 (enum acc_async_t): Reformat.
12892 (acc_on_device): Declare compatible with builtin and provide C++
12894 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
12896 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
12897 Cesar Philippidis <cesar@codesourcery.com>
12899 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
12900 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
12901 ... this. Add a description of the test at the top of the file.
12902 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
12903 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
12904 ... this. Add a description of the test at the top of the file.
12906 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
12908 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
12909 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
12910 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
12911 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
12912 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
12913 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
12915 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
12917 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
12920 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
12923 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
12925 2015-10-27 James Norris <jnorris@codesourcery.com>
12927 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
12928 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
12930 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
12932 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
12933 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
12935 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
12936 acc_device_nvidia usage.
12937 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
12938 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
12939 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
12941 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
12942 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
12945 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
12949 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
12950 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
12952 2015-10-23 Tom de Vries <tom@codesourcery.com>
12955 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
12957 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
12959 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
12961 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12963 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
12964 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
12966 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
12967 to 0 when mapnum is 0.
12969 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
12971 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
12972 Cast to int from int32_t.
12974 2015-10-13 Jakub Jelinek <jakub@redhat.com>
12975 Aldy Hernandez <aldyh@redhat.com>
12976 Ilya Verbin <ilya.verbin@intel.com>
12978 * config/linux/affinity.c (omp_get_place_num_procs,
12979 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
12980 * config/linux/doacross.h: New file.
12981 * config/posix/affinity.c (omp_get_place_num_procs,
12982 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
12983 * config/posix/doacross.h: New file.
12984 * env.c: Include gomp-constants.h.
12985 (struct gomp_task_icv): Rename run_sched_modifier to
12986 run_sched_chunk_size.
12987 (gomp_max_task_priority_var): New variable.
12988 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
12989 (handle_omp_display_env): Change _OPENMP value from 201307 to
12990 201511. Print OMP_MAX_TASK_PRIORITY.
12991 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
12992 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
12993 chunk_size and run_sched_modifier to run_sched_chunk_size.
12994 (omp_get_max_task_priority, omp_get_initial_device,
12995 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
12996 omp_get_partition_place_nums): New functions.
12997 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
12998 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
13000 (omp_get_num_places_, omp_get_place_num_procs_,
13001 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
13002 omp_get_place_proc_ids_8_, omp_get_place_num_,
13003 omp_get_partition_num_places_, omp_get_partition_place_nums_,
13004 omp_get_partition_place_nums_8_, omp_get_initial_device_,
13005 omp_get_max_task_priority_): New functions.
13006 * libgomp_g.h (GOMP_loop_doacross_static_start,
13007 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
13008 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
13009 GOMP_loop_ull_doacross_dynamic_start,
13010 GOMP_loop_ull_doacross_guided_start,
13011 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
13012 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
13013 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
13014 GOMP_target_data_41, GOMP_target_update_41,
13015 GOMP_target_enter_exit_data): New prototypes.
13016 (GOMP_task): Add prototype argument.
13017 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
13018 (struct gomp_doacross_work_share): New type.
13019 (struct gomp_work_share): Add doacross field.
13020 (struct gomp_task_icv): Rename run_sched_modifier to
13021 run_sched_chunk_size.
13022 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
13023 GOMP_TASK_UNDEFERRED. Add comments.
13024 (struct gomp_task_depend_entry): Add comments.
13025 (struct gomp_task): Likewise.
13026 (struct gomp_taskgroup): Likewise.
13027 (struct gomp_target_task): New type.
13028 (struct gomp_team): Add comment.
13029 (gomp_get_place_proc_ids_8, gomp_doacross_init,
13030 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
13031 gomp_create_target_task, gomp_target_task_fn): New prototypes.
13032 (struct target_var_desc): New type.
13033 (struct target_mem_desc): Adjust comment. Use struct
13034 target_var_desc instead of splay_tree_key for list.
13035 (REFCOUNT_INFINITY): Define.
13036 (struct splay_tree_key_s): Remove copy_from field.
13037 (struct gomp_device_descr): Add dev2dev_func field.
13038 (enum gomp_map_vars_kind): New enum.
13039 (gomp_map_vars): Add one argument.
13040 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
13041 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
13042 omp_get_place_num_procs, omp_get_place_num_procs_,
13043 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
13044 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
13045 omp_get_place_num_, omp_get_partition_num_places,
13046 omp_get_partition_num_places_, omp_get_partition_place_nums,
13047 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
13048 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
13049 omp_target_free, omp_target_is_present, omp_target_memcpy,
13050 omp_target_memcpy_rect, omp_target_associate_ptr and
13051 omp_target_disassociate_ptr.
13052 (GOMP_4.0.2): Renamed to ...
13053 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
13054 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
13055 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
13056 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
13057 GOMP_loop_doacross_static_start, GOMP_doacross_post,
13058 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
13059 GOMP_loop_ull_doacross_guided_start,
13060 GOMP_loop_ull_doacross_runtime_start,
13061 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
13062 GOMP_doacross_ull_wait.
13063 * libgomp.texi: Document omp_get_max_task_priority.
13064 Rename modifier argument to chunk_size for omp_set_schedule and
13065 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
13066 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
13067 to run_sched_chunk_size renaming.
13068 (GOMP_loop_ordered_runtime_start): Likewise.
13069 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
13070 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
13071 GOMP_parallel_loop_runtime_start): New functions.
13072 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
13073 to run_sched_chunk_size renaming.
13074 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
13075 GOMP_loop_doacross_guided_start): New functions or aliases.
13076 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
13077 run_sched_modifier to run_sched_chunk_size renaming.
13078 (GOMP_loop_ull_ordered_runtime_start): Likewise.
13079 (gomp_loop_ull_doacross_static_start,
13080 gomp_loop_ull_doacross_dynamic_start,
13081 gomp_loop_ull_doacross_guided_start,
13082 GOMP_loop_ull_doacross_runtime_start): New functions.
13083 (GOMP_loop_ull_doacross_static_start,
13084 GOMP_loop_ull_doacross_dynamic_start,
13085 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
13086 * oacc-mem.c (acc_map_data, present_create_copy,
13087 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
13089 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
13090 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
13091 instead of false to gomp_map_vars.
13092 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
13093 * omp.h.in (omp_lock_hint_t): New type.
13094 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
13095 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
13096 omp_get_place_num, omp_get_partition_num_places,
13097 omp_get_partition_place_nums, omp_get_initial_device,
13098 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
13099 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
13100 omp_target_associate_ptr, omp_target_disassociate_ptr): New
13102 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
13103 (omp_lock_hint_none, omp_lock_hint_uncontended,
13104 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
13105 omp_lock_hint_speculative): New parameters.
13106 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
13107 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
13108 omp_get_place_num, omp_get_partition_num_places,
13109 omp_get_partition_place_nums, omp_get_initial_device,
13110 omp_get_max_task_priority): New interfaces.
13111 (omp_set_schedule, omp_get_schedule): Rename modifier argument
13113 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
13114 (omp_lock_hint_none, omp_lock_hint_uncontended,
13115 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
13116 omp_lock_hint_speculative): New parameters.
13117 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
13118 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
13119 omp_get_place_num, omp_get_partition_num_places,
13120 omp_get_partition_place_nums, omp_get_initial_device,
13121 omp_get_max_task_priority): New functions and subroutines.
13122 * ordered.c: Include stdarg.h and string.h.
13123 (MAX_COLLAPSED_BITS): Define.
13124 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
13125 gomp_doacross_ull_init, GOMP_doacross_ull_post,
13126 GOMP_doacross_ull_wait): New functions.
13127 * target.c: Include errno.h.
13128 (resolve_device): If device is not initialized, call
13129 gomp_init_device on it.
13130 (gomp_map_lookup): New function.
13131 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
13132 Don't bump refcount if REFCOUNT_INFINITY. Handle
13133 GOMP_MAP_ALWAYS_TO_P.
13134 (get_kind): Rename is_openacc argument to short_mapkind.
13135 (gomp_map_pointer): Use gomp_map_lookup.
13136 (gomp_map_fields_existing): New function.
13137 (gomp_map_vars): Rename is_openacc argument to short_mapkind
13138 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
13139 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
13140 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
13141 Adjust for tgt->list changed type and copy_from living in there.
13142 (gomp_copy_from_async): Adjust for tgt->list changed type and
13143 copy_from living in there.
13144 (gomp_unmap_vars): Likewise.
13145 (gomp_update): Likewise. Rename is_openacc argument to
13146 short_mapkind. Don't fail if object is not mapped.
13147 (gomp_load_image_to_device): Initialize refcount to
13149 (gomp_target_fallback): New function.
13150 (gomp_get_target_fn_addr): Likewise.
13151 (GOMP_target): Adjust gomp_map_vars caller, use
13152 gomp_get_target_fn_addr and gomp_target_fallback.
13153 (GOMP_target_41): New function.
13154 (gomp_target_data_fallback): New function.
13155 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
13156 (GOMP_target_data_41): New function.
13157 (GOMP_target_update): Adjust gomp_update caller.
13158 (GOMP_target_update_41): New function.
13159 (gomp_exit_data, GOMP_target_enter_exit_data,
13160 gomp_target_task_fn, omp_target_alloc, omp_target_free,
13161 omp_target_is_present, omp_target_memcpy,
13162 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
13163 omp_target_associate_ptr, omp_target_disassociate_ptr,
13164 gomp_load_plugin_for_device): New functions.
13165 * task.c: Include gomp-constants.h. Include taskloop.c
13166 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
13167 (gomp_task_handle_depend): New function.
13168 (GOMP_task): Use it. Add priority argument. Use
13169 gomp-constant.h constants instead of hardcoded numbers.
13170 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
13171 (gomp_create_target_task): New function.
13172 (verify_children_queue, verify_taskgroup_queue,
13173 verify_task_queue): New functions.
13174 (gomp_task_run_pre): Call verify_*_queue functions.
13175 If an upcoming tied task is about to leave the sibling or
13176 taskgroup queues in an invalid state, adjust appropriately.
13177 Remove taskgroup argument. Add comments.
13178 (gomp_task_run_post_handle_dependers): Add comments.
13179 (gomp_task_run_post_remove_parent): Likewise.
13180 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
13181 (GOMP_taskwait): Likewise. Add comments.
13182 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
13183 problem such that the first non parent_depends_on task does not
13184 end up at the end of the children queue.
13185 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
13186 GOMP_TASK_UNDEFERRED.
13187 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
13188 * taskloop.c: New file.
13189 * testsuite/lib/libgomp.exp
13190 (check_effective_target_offload_device_nonshared_as): New proc.
13191 * testsuite/libgomp.c/affinity-2.c: New test.
13192 * testsuite/libgomp.c/doacross-1.c: New test.
13193 * testsuite/libgomp.c/doacross-2.c: New test.
13194 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
13195 Add map clause to target.
13196 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
13197 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
13198 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
13199 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
13200 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
13202 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
13203 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
13204 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
13205 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
13206 not defined. Use those where needed.
13207 * testsuite/libgomp.c/for-4.c: New test.
13208 * testsuite/libgomp.c/for-5.c: New test.
13209 * testsuite/libgomp.c/for-6.c: New test.
13210 * testsuite/libgomp.c/linear-1.c: New test.
13211 * testsuite/libgomp.c/ordered-4.c: New test.
13212 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
13213 only allowed on the loop iterator.
13214 * testsuite/libgomp.c/pr66199-3.c: New test.
13215 * testsuite/libgomp.c/pr66199-4.c: New test.
13216 * testsuite/libgomp.c/reduction-7.c: New test.
13217 * testsuite/libgomp.c/reduction-8.c: New test.
13218 * testsuite/libgomp.c/reduction-9.c: New test.
13219 * testsuite/libgomp.c/reduction-10.c: New test.
13220 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
13222 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
13223 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
13224 * testsuite/libgomp.c/target-11.c: New test.
13225 * testsuite/libgomp.c/target-12.c: New test.
13226 * testsuite/libgomp.c/target-13.c: New test.
13227 * testsuite/libgomp.c/target-14.c: New test.
13228 * testsuite/libgomp.c/target-15.c: New test.
13229 * testsuite/libgomp.c/target-16.c: New test.
13230 * testsuite/libgomp.c/target-17.c: New test.
13231 * testsuite/libgomp.c/target-18.c: New test.
13232 * testsuite/libgomp.c/target-19.c: New test.
13233 * testsuite/libgomp.c/target-20.c: New test.
13234 * testsuite/libgomp.c/target-21.c: New test.
13235 * testsuite/libgomp.c/target-22.c: New test.
13236 * testsuite/libgomp.c/target-23.c: New test.
13237 * testsuite/libgomp.c/target-24.c: New test.
13238 * testsuite/libgomp.c/target-25.c: New test.
13239 * testsuite/libgomp.c/target-26.c: New test.
13240 * testsuite/libgomp.c/target-27.c: New test.
13241 * testsuite/libgomp.c/taskloop-1.c: New test.
13242 * testsuite/libgomp.c/taskloop-2.c: New test.
13243 * testsuite/libgomp.c/taskloop-3.c: New test.
13244 * testsuite/libgomp.c/taskloop-4.c: New test.
13245 * testsuite/libgomp.c++/ctor-13.C: New test.
13246 * testsuite/libgomp.c++/doacross-1.C: New test.
13247 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
13248 Replace offload_device with offload_device_nonshared_as.
13249 * testsuite/libgomp.c++/for-12.C: New test.
13250 * testsuite/libgomp.c++/for-13.C: New test.
13251 * testsuite/libgomp.c++/for-14.C: New test.
13252 * testsuite/libgomp.c++/linear-1.C: New test.
13253 * testsuite/libgomp.c++/member-1.C: New test.
13254 * testsuite/libgomp.c++/member-2.C: New test.
13255 * testsuite/libgomp.c++/member-3.C: New test.
13256 * testsuite/libgomp.c++/member-4.C: New test.
13257 * testsuite/libgomp.c++/member-5.C: New test.
13258 * testsuite/libgomp.c++/ordered-1.C: New test.
13259 * testsuite/libgomp.c++/reduction-5.C: New test.
13260 * testsuite/libgomp.c++/reduction-6.C: New test.
13261 * testsuite/libgomp.c++/reduction-7.C: New test.
13262 * testsuite/libgomp.c++/reduction-8.C: New test.
13263 * testsuite/libgomp.c++/reduction-9.C: New test.
13264 * testsuite/libgomp.c++/reduction-10.C: New test.
13265 * testsuite/libgomp.c++/reference-1.C: New test.
13266 * testsuite/libgomp.c++/simd14.C: New test.
13267 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
13268 * testsuite/libgomp.c++/target-5.C: New test.
13269 * testsuite/libgomp.c++/target-6.C: New test.
13270 * testsuite/libgomp.c++/target-7.C: New test.
13271 * testsuite/libgomp.c++/target-8.C: New test.
13272 * testsuite/libgomp.c++/target-9.C: New test.
13273 * testsuite/libgomp.c++/target-10.C: New test.
13274 * testsuite/libgomp.c++/target-11.C: New test.
13275 * testsuite/libgomp.c++/target-12.C: New test.
13276 * testsuite/libgomp.c++/taskloop-1.C: New test.
13277 * testsuite/libgomp.c++/taskloop-2.C: New test.
13278 * testsuite/libgomp.c++/taskloop-3.C: New test.
13279 * testsuite/libgomp.c++/taskloop-4.C: New test.
13280 * testsuite/libgomp.c++/taskloop-5.C: New test.
13281 * testsuite/libgomp.c++/taskloop-6.C: New test.
13282 * testsuite/libgomp.c++/taskloop-7.C: New test.
13283 * testsuite/libgomp.c++/taskloop-8.C: New test.
13284 * testsuite/libgomp.c++/taskloop-9.C: New test.
13285 * testsuite/libgomp.fortran/affinity1.f90: New test.
13286 * testsuite/libgomp.fortran/affinity2.f90: New test.
13288 2015-10-13 Tom de Vries <tom@codesourcery.com>
13290 PR tree-optimization/67476
13291 * testsuite/libgomp.c/autopar-3.c: New test.
13292 * testsuite/libgomp.c/autopar-4.c: New test.
13293 * testsuite/libgomp.c/autopar-5.c: New test.
13294 * testsuite/libgomp.c/autopar-6.c: New test.
13295 * testsuite/libgomp.c/autopar-7.c: New test.
13296 * testsuite/libgomp.c/autopar-8.c: New test.
13298 2015-10-12 James Norris <jnorris@codesourcery.com>
13300 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
13303 2015-10-09 David Malcolm <dmalcolm@redhat.com>
13305 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
13306 using load_gcc_lib.
13308 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
13310 * oacc-ptx.h: Remove file, moving its content into...
13311 * config/nvptx/fortran.c: ... here...
13312 * config/nvptx/oacc-init.c: ..., here...
13313 * config/nvptx/oacc-parallel.c: ..., and here.
13314 * config/nvptx/openacc.f90: New file.
13315 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
13316 (link_ptx): Don't link in predefined bits of PTX code.
13318 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
13319 Bernd Schmidt <bernds@codesourcery.com>
13321 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
13322 (struct targ_ptx_obj): New.
13323 (nvptx_tdata): Move earlier, change data format.
13324 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
13326 (GOMP_OFFLOAD_load_image): Adjust.
13328 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
13330 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
13331 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
13332 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
13333 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
13334 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
13335 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
13336 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
13337 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
13338 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
13339 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
13340 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
13341 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
13342 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
13343 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
13344 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
13345 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
13346 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
13347 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
13348 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
13349 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
13350 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
13351 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
13352 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
13353 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
13354 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
13355 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
13356 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
13357 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
13358 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
13359 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
13360 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
13361 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
13362 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
13363 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
13364 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13365 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
13366 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
13367 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
13368 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
13369 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
13370 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
13371 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
13372 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
13373 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
13374 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
13375 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
13376 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
13377 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
13378 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
13379 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
13380 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
13381 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
13382 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
13383 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
13384 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
13385 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
13386 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
13387 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
13388 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
13389 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
13390 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
13391 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
13392 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
13394 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
13396 * oacc-init.c (acc_on_device): Force optimization level.
13398 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
13400 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
13401 (cuda_errlist): Delete.
13402 (cuda_error): Reimplement.
13404 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
13406 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
13408 * libgomp.map (GOACC_parallel_keyed): New.
13409 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
13411 (GOACC_parallel_keyed): New interface. Lose geometry arguments
13412 and take keyed varargs list. Adjust call to exec_func.
13413 (GOACC_parallel): Force host fallback.
13414 * libgomp_g.h (GOACC_parallel): Remove.
13415 (GOACC_parallel_keyed): Declare.
13416 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
13417 (struct targ_gn_descriptor): Replace name field with launch field.
13418 (nvptx_exec): Lose separate geometry args, take array. Process
13419 dynamic dimensions and adjust.
13420 (struct nvptx_tdata): Replace fn_names field with fn_descs.
13421 (GOMP_OFFLOAD_load_image): Adjust for change in function table
13423 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
13425 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
13428 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
13431 * oacc-int.h (goacc_host_init): Add declaration.
13432 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
13433 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
13435 2015-09-08 Aditya Kumar <hiraditya@msn.com>
13436 Sebastian Pop <s.pop@samsung.com>
13438 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
13440 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
13441 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
13442 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
13443 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
13444 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
13446 2015-09-03 Jakub Jelinek <jakub@redhat.com>
13448 * configure.tgt: Add missing ;; in between nvptx and rtems
13451 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
13453 * config/posix/pool.h (gomp_adjust_thread_attr): New.
13454 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
13455 (gomp_thread_pool_reservoir): Add priority member.
13456 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
13458 (parse_thread_pools): Likewise.
13459 * team.c (gomp_team_start): Call configuration provided
13460 gomp_adjust_thread_attr(). Destroy thread attributes if
13462 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
13464 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
13466 * config/posix/pool.h: New.
13467 * config/rtems/pool.h: Likewise.
13468 * config/rtems/proc.c: Likewise.
13469 * libgomp.h (gomp_thread_destructor): Declare.
13470 * team.c: Include configuration provided "pool.h".
13471 (gomp_get_thread_pool): Define in configuration.
13472 (gomp_team_end): Call configuration defined
13473 gomp_release_thread_pool().
13475 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
13477 * config/rtems/bar.c: New.
13478 * config/rtems/bar.h: Likewise.
13479 * config/rtems/mutex.c: Likewise.
13480 * config/rtems/mutex.h: Likewise.
13481 * config/rtems/sem.c: Likewise.
13482 * config/rtems/sem.h: Likewise.
13483 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
13484 <sys/lock.h> header file.
13485 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
13486 supported by Newlib.
13487 * configure: Regenerate.
13489 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
13491 * team.c (gomp_new_thread_pool): Delete and move content to ...
13492 (gomp_get_thread_pool): ... new function. Allocate and
13493 initialize thread pool on demand.
13494 (get_last_team): Use gomp_get_thread_pool().
13495 (gomp_team_start): Delete thread pool initialization.
13497 2015-09-03 Tom de Vries <tom@codesourcery.com>
13499 PR tree-optimization/65637
13500 * testsuite/libgomp.c/autopar-2.c: New test.
13502 2015-08-29 Tom de Vries <tom@codesourcery.com>
13504 PR tree-optimization/46193
13505 * testsuite/libgomp.c/pr46193.c: New test.
13507 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
13510 * libgomp.map: Add 4.0.2 version.
13511 * target.c (offload_image_descr): Add version field.
13512 (gomp_load_image_to_device): Add version argument. Adjust plugin
13513 call. Improve load mismatch diagnostic.
13514 (gomp_unload_image_from_device): Add version argument. Adjust plugin
13516 (GOMP_offload_regster): Make stub function, move bulk to ...
13517 (GOMP_offload_register_ver): ... here. Process version argument.
13518 (GOMP_offload_unregister): Make stub function, move bulk to ...
13519 (GOMP_offload_unregister_ver): ... here. Process version argument.
13520 (gomp_init_device): Process version field.
13521 (gomp_unload_device): Process version field.
13522 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
13523 macros. Check plugin version.
13524 * libgomp.h (gomp_device_descr): Add version function field. Adjust
13525 loader and unloader types.
13526 * oacc-host.c: Include gomp-constants.h.
13527 (host_version): New.
13528 (host_load_image, host_unload_image): Adjust.
13529 (host_dispatch): Add host_version.
13530 * plugin/plugin-nvptx.c: Include gomp-constants.h.
13531 (GOMP_OFFLOAD_version): New.
13532 (GOMP_OFFLOAD_load_image): Add version arg and check it.
13533 (GOMP_OFFLOAD_unload_image): Likewise.
13534 * plugin/plugin-host.c: Include gomp-constants.h.
13535 (GOMP_OFFLOAD_version): New.
13536 (GOMP_OFFLOAD_load_image): Add version arg.
13537 (GOMP_OFFLOAD_unload_image): Likewise.
13539 2015-08-24 Tom de Vries <tom@codesourcery.com>
13541 PR tree-optimization/65468
13542 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
13544 2015-08-24 Tom de Vries <tom@codesourcery.com>
13546 PR tree-optimization/65468
13547 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
13549 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
13553 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
13554 (gomp_iter_guided_next): Idem.
13555 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
13556 (gomp_iter_ull_guided_next): Idem.
13557 * config/linux/wait.h (do_spin): Idem.
13559 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
13561 * libgomp-plugin.h (enum offload_target_type): Remove
13562 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
13563 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
13564 * openacc.h (enum acc_device_t): Likewise.
13565 * openacc_lib.h: Likewise.
13566 * oacc-init.c (name_of_acc_device_t): Don't handle it.
13567 (acc_on_device): Just use __builtin_acc_on_device.
13568 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
13569 of acc_on_device builtin.
13570 * plugin/plugin-host.h: Remove file.
13571 * plugin/plugin-host.c: Likewise, but salvage some content into...
13572 * oacc-host.c: ... this file.
13573 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
13574 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
13575 * Makefile.in: Regenerate.
13576 * configure: Likewise.
13577 * testsuite/lib/libgomp.exp
13578 (check_effective_target_openacc_host_nonshm_selected): Remove.
13579 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
13580 ACC_DEVICE_TYPE=host_nonshm.
13581 * testsuite/libgomp.oacc-c/c.exp: Likewise.
13582 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
13583 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
13584 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
13585 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
13586 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
13588 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
13589 Jakub Jelinek <jakub@redhat.com>
13591 * config/nvptx/affinity.c: New file.
13592 * config/nvptx/alloc.c: Likewise.
13593 * config/nvptx/bar.c: Likewise.
13594 * config/nvptx/barrier.c: Likewise.
13595 * config/nvptx/critical.c: Likewise.
13596 * config/nvptx/env.c: Likewise.
13597 * config/nvptx/error.c: Likewise.
13598 * config/nvptx/fortran.c: Likewise.
13599 * config/nvptx/iter.c: Likewise.
13600 * config/nvptx/iter_ull.c: Likewise.
13601 * config/nvptx/libgomp-plugin.c: Likewise.
13602 * config/nvptx/lock.c: Likewise.
13603 * config/nvptx/loop.c: Likewise.
13604 * config/nvptx/loop_ull.c: Likewise.
13605 * config/nvptx/mutex.c: Likewise.
13606 * config/nvptx/oacc-async.c: Likewise.
13607 * config/nvptx/oacc-cuda.c: Likewise.
13608 * config/nvptx/oacc-host.c: Likewise.
13609 * config/nvptx/oacc-init.c: Likewise.
13610 * config/nvptx/oacc-mem.c: Likewise.
13611 * config/nvptx/oacc-parallel.c: Likewise.
13612 * config/nvptx/oacc-plugin.c: Likewise.
13613 * config/nvptx/omp-lock.h: Likewise.
13614 * config/nvptx/ordered.c: Likewise.
13615 * config/nvptx/parallel.c: Likewise.
13616 * config/nvptx/proc.c: Likewise.
13617 * config/nvptx/ptrlock.c: Likewise.
13618 * config/nvptx/sections.c: Likewise.
13619 * config/nvptx/sem.c: Likewise.
13620 * config/nvptx/single.c: Likewise.
13621 * config/nvptx/splay-tree.c: Likewise.
13622 * config/nvptx/target.c: Likewise.
13623 * config/nvptx/task.c: Likewise.
13624 * config/nvptx/team.c: Likewise.
13625 * config/nvptx/time.c: Likewise.
13626 * config/nvptx/work.c: Likewise.
13627 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
13628 * configure: Regenerate.
13629 * configure.tgt (config_path): Set to "nvptx" for target
13632 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
13634 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
13636 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
13638 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
13639 (cuda_errlist): Constify.
13640 (errmsg): Move into ...
13641 (cuda_error): ... here. Make smaller.
13642 (_XSTR, _STR): Delete.
13643 (cuda_synames): Delete.
13644 (verify_device_library): Delete.
13645 (nvptx_init): Don't call it.
13647 2015-07-28 Tom de Vries <tom@codesourcery.com>
13649 * testsuite/libgomp.c/uns-outer-4.c: New test.
13651 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
13653 * testsuite/libgomp.c/pr66714.c: New test.
13655 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
13658 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
13659 (fib_ref): New function.
13660 (fib): Correct corner cases in the recursion.
13661 (main): Replace the non-simd loop with fib_ref call.
13662 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
13664 (fibonacci): Lower the parameter N to 30. Correct accordingly check
13665 for the last array element value. Replace the non-simd loop with
13666 fib_ref call. Remove redundant b_ref array. Remove the comparison
13667 of the last array element with according Fibonacci sequence element.
13668 (fib): Correct corner cases in the recursion.
13670 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
13672 * target.c (gomp_offload_image_to_device): Rename to ...
13673 (gomp_load_image_to_device): ... here.
13674 (GOMP_offload_register): Adjust call.
13675 (gomp_init_device): Likewise.
13676 (gomp_unload_image_from_device): New. Broken out of ...
13677 (GOMP_offload_unregister): ... here. Call it.
13678 (gomp_unload_device): New.
13679 * libgomp.h (gomp_unload_device): Declare.
13680 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
13683 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
13685 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
13687 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
13689 (goacc_waits): Move !num_waits handling to ...
13690 (GOACC_wait): ... here, the only caller that might have zero waits.
13692 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
13693 (struct ptx_image_data): Move earlier, add fns field.
13694 (struct ptx_device): Add images and image_lock fields.
13695 (ptx_images, ptx_image_lock): Delete.
13696 (nvptx_open_device): Initialize images and image_lock fields.
13697 (nvptx_close_device): Destroy image_lock.
13698 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
13699 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
13702 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
13704 * target.c (GOMP_offload_register): Use int for device type arg.
13705 (GOMP_offload_unregister): Likewise.
13707 * target.c (struct_offload_image_descr): Constify host_table.
13708 (gomp_offload_image_to_device): Likewise.
13709 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
13711 * libgomp.h (gomp_device_descr): Constify target data arguments.
13712 * target.c (struct offload_image_descr): Constify target_data.
13713 (gomp_offload_image_to_device): Likewise.
13714 (GOMP_offload_register): Likewise.
13715 (GOMP_offload_unregister): Likewise.
13716 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
13717 GOMP_OFFLOAD_unload_image): Constify target data.
13718 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
13719 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
13721 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
13723 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
13724 Workaround driver library const error.
13725 (struct nvptx_tdata, nvptx_tdata_t): New.
13726 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
13729 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
13731 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
13732 of EPS parameter from integer to real.
13733 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
13734 type of EPS parameter from integer to real.
13736 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
13738 * team.c (get_last_team): New.
13739 (gomp_new_team): Recycle last non-nested team if possible.
13740 (gomp_team_end): Move team work share list free lock destruction
13742 (free_team): ... here.
13744 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
13746 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
13747 and ref from int to double. Replaced their comparison with
13748 an inequality of their difference and EPS.
13749 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
13750 comparison of pri and a reference number with an inequality of their
13751 difference and EPS.
13752 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
13753 the comparison of sum and sum_ref with an inequality of their
13754 difference and EPS.
13755 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
13756 the comparison of pri and a reference number with an inequality of
13757 their difference and EPS.
13759 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
13761 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
13762 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
13763 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
13764 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
13765 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
13766 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
13767 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
13768 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
13769 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
13770 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
13771 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
13772 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
13773 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
13775 (vec_mult): Likewise. Add #pragma omp taskwait.
13776 (main): Adjust caller.
13777 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
13778 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
13779 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
13780 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
13781 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
13782 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
13783 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
13784 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
13785 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
13786 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
13787 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
13788 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
13789 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
13790 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
13791 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
13792 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
13793 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
13794 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
13795 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
13796 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
13797 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
13798 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
13799 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
13800 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
13801 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
13802 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
13803 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
13804 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
13805 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
13806 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
13807 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
13808 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
13809 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
13810 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
13811 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
13812 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
13813 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
13814 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
13815 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
13816 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
13817 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
13818 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
13819 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
13820 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
13821 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
13822 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
13823 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
13824 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
13825 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
13826 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
13827 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
13828 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
13829 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
13830 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
13831 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
13832 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
13833 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
13834 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
13835 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
13836 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
13837 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
13838 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
13839 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
13840 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
13841 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
13842 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
13843 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
13844 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
13845 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
13846 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
13847 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
13848 (vec_mult): Add !$omp taskwait.
13849 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
13850 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
13851 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
13852 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
13853 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
13854 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
13855 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
13856 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
13857 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
13858 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
13859 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
13860 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
13861 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
13862 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
13863 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
13864 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
13865 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
13866 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
13867 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
13868 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
13869 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
13870 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
13871 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
13872 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
13873 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
13874 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
13875 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
13876 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
13877 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
13878 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
13879 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
13880 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
13881 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
13882 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
13883 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
13884 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
13885 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
13886 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
13887 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
13888 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
13889 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
13890 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
13891 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
13892 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
13893 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
13894 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
13895 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
13896 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
13897 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
13898 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
13899 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
13900 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
13901 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
13902 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
13903 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
13904 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
13905 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
13906 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
13907 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
13908 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
13909 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
13910 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
13911 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
13912 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
13913 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
13914 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
13915 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
13917 2015-07-10 Tom de Vries <tom@codesourcery.com>
13919 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
13920 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
13922 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
13925 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
13926 in a 64-bit configuration.
13927 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
13928 offloading testing if no such device is available.
13929 * testsuite/libgomp.oacc-c/c.exp: Likewise.
13930 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
13932 2015-07-08 Tom de Vries <tom@codesourcery.com>
13934 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
13936 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
13938 2015-07-07 Tom de Vries <tom@codesourcery.com>
13940 PR tree-optimization/66642
13941 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
13942 iteration count case.
13943 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
13944 function, factor out of ...
13945 (main): ... here. Test low iteration count case.
13947 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
13949 * libgomp.h (gomp_thread_pool): Comment last_team field.
13951 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
13953 * testsuite/libgomp.c++/pr66702-1.C: Require
13954 vect_simd_clones effective target.
13955 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
13957 2015-06-30 Tom de Vries <tom@codesourcery.com>
13959 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
13960 already set. Use DEFAULT_CFLAGS in dg-runtest.
13961 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
13964 2015-06-30 Tom de Vries <tom@codesourcery.com>
13966 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
13967 already set. Use DEFAULT_CFLAGS in dg-runtest.
13968 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
13969 * testsuite/libgomp.c++/pr64824.C: Same.
13970 * testsuite/libgomp.c++/pr64868.C: Same.
13971 * testsuite/libgomp.c++/pr66199-1.C: Same.
13972 * testsuite/libgomp.c++/pr66199-2.C: Same.
13973 * testsuite/libgomp.c++/target-2.C: Same.
13974 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
13975 -std=<standard> option.
13976 * testsuite/libgomp.c++/udr-11.C: Same.
13977 * testsuite/libgomp.c++/udr-12.C: Same.
13978 * testsuite/libgomp.c++/udr-13.C: Same.
13979 * testsuite/libgomp.c++/udr-14.C: Same.
13980 * testsuite/libgomp.c++/udr-15.C: Same.
13981 * testsuite/libgomp.c++/udr-16.C: Same.
13982 * testsuite/libgomp.c++/udr-17.C: Same.
13983 * testsuite/libgomp.c++/udr-18.C: Same.
13984 * testsuite/libgomp.c++/udr-19.C: Same.
13985 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
13986 * testsuite/libgomp.c++/simd-1.C: Same.
13987 * testsuite/libgomp.c++/simd-2.C: Same.
13988 * testsuite/libgomp.c++/simd-3.C: Same.
13989 * testsuite/libgomp.c++/simd-4.C: Same.
13990 * testsuite/libgomp.c++/simd-5.C: Same.
13991 * testsuite/libgomp.c++/simd-6.C: Same.
13992 * testsuite/libgomp.c++/simd-7.C: Same.
13993 * testsuite/libgomp.c++/simd-8.C: Same.
13994 * testsuite/libgomp.c++/simd-9.C: Same.
13995 * testsuite/libgomp.c++/simd10.C: Same.
13996 * testsuite/libgomp.c++/simd11.C: Same.
13997 * testsuite/libgomp.c++/simd12.C: Same.
13998 * testsuite/libgomp.c++/simd13.C: Same.
14000 2015-06-30 Jakub Jelinek <jakub@redhat.com>
14002 PR middle-end/66702
14003 * testsuite/libgomp.c++/pr66702-1.C: New test.
14004 * testsuite/libgomp.c++/pr66702-2.C: New test.
14006 2015-06-30 Tom de Vries <tom@codesourcery.com>
14008 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
14009 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
14010 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
14011 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
14013 2015-06-30 Tom de Vries <tom@codesourcery.com>
14015 PR tree-optimization/66652
14016 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
14017 using restrict pointers.
14018 (main): Add arguments to calls to f.
14019 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14021 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
14023 * configure.ac: Fix check for header <sys/sysctl.h>.
14024 * configure: Regenerate.
14025 * config.h.in: Likewise.
14027 2015-06-23 Tom de Vries <tom@codesourcery.com>
14029 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
14031 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
14033 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
14035 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
14039 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
14040 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14042 2015-06-15 Tom de Vries <tom@codesourcery.com>
14044 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
14045 dg-additional-options for any remaining options.
14046 * testsuite/libgomp.c/atomic-2.c: Same.
14047 * testsuite/libgomp.c/atomic-4.c: Same.
14048 * testsuite/libgomp.c/atomic-5.c: Same.
14049 * testsuite/libgomp.c/atomic-6.c: Same.
14050 * testsuite/libgomp.c/autopar-1.c: Same.
14051 * testsuite/libgomp.c/copyin-1.c: Same.
14052 * testsuite/libgomp.c/copyin-2.c: Same.
14053 * testsuite/libgomp.c/copyin-3.c: Same.
14054 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
14055 * testsuite/libgomp.c/nestedfn-5.c: Same.
14056 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
14057 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
14058 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
14059 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14060 * testsuite/libgomp.c/pr32362-1.c: Same.
14061 * testsuite/libgomp.c/pr32362-2.c: Same.
14062 * testsuite/libgomp.c/pr32362-3.c: Same.
14063 * testsuite/libgomp.c/pr39591-1.c: Same.
14064 * testsuite/libgomp.c/pr39591-2.c: Same.
14065 * testsuite/libgomp.c/pr39591-3.c: Same.
14066 * testsuite/libgomp.c/pr58392.c: Same.
14067 * testsuite/libgomp.c/pr58756.c: Same.
14068 * testsuite/libgomp.c/simd-1.c: Same.
14069 * testsuite/libgomp.c/simd-10.c: Same.
14070 * testsuite/libgomp.c/simd-11.c: Same.
14071 * testsuite/libgomp.c/simd-12.c: Same.
14072 * testsuite/libgomp.c/simd-13.c: Same.
14073 * testsuite/libgomp.c/simd-14.c: Same.
14074 * testsuite/libgomp.c/simd-15.c: Same.
14075 * testsuite/libgomp.c/simd-2.c: Same.
14076 * testsuite/libgomp.c/simd-3.c: Same.
14077 * testsuite/libgomp.c/simd-4.c: Same.
14078 * testsuite/libgomp.c/simd-5.c: Same.
14079 * testsuite/libgomp.c/simd-6.c: Same.
14080 * testsuite/libgomp.c/simd-7.c: Same.
14081 * testsuite/libgomp.c/simd-8.c: Same.
14082 * testsuite/libgomp.c/simd-9.c: Same.
14084 2015-06-15 Tom de Vries <tom@codesourcery.com>
14086 * testsuite/libgomp.c/pr35625.c: Fix typo.
14088 2015-06-15 Tom de Vries <tom@codesourcery.com>
14090 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
14092 * testsuite/libgomp.c/atomic-3.c: Same.
14093 * testsuite/libgomp.c/debug-1.c: Same.
14094 * testsuite/libgomp.c/nqueens-1.c: Same.
14095 * testsuite/libgomp.c/pr26171.c: Same.
14096 * testsuite/libgomp.c/pr48591.c: Same.
14097 * testsuite/libgomp.c/pr64824.c: Same.
14098 * testsuite/libgomp.c/pr64868.c: Same.
14099 * testsuite/libgomp.c/pr66133.c: Same.
14100 * testsuite/libgomp.c/pr66199-1.c: Same.
14101 * testsuite/libgomp.c/pr66199-2.c: Same.
14102 * testsuite/libgomp.c/target-8.c: Same.
14104 2015-06-15 Tom de Vries <tom@codesourcery.com>
14106 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
14108 * testsuite/libgomp.c/for-1.c: Same.
14109 * testsuite/libgomp.c/for-2.c: Same.
14110 * testsuite/libgomp.c/for-3.c: Same.
14111 * testsuite/libgomp.c/pr35625.c: Same.
14112 * testsuite/libgomp.c/pr39154.c: Same.
14113 * testsuite/libgomp.c/simd-16.c: Same.
14114 * testsuite/libgomp.c/simd-17.c: Same.
14116 2015-06-13 Tom de Vries <tom@codesourcery.com>
14118 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
14120 2015-06-13 Tom de Vries <tom@codesourcery.com>
14122 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
14123 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14124 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
14126 (main): Use N instead of hardcoded constants.
14128 2015-06-05 Tom de Vries <tom@codesourcery.com>
14130 merge from gomp4 branch:
14131 2015-05-28 Tom de Vries <tom@codesourcery.com>
14133 PR tree-optimization/65443
14134 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
14135 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
14136 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
14138 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14140 * testsuite/libgomp.graphite/bounds.c: Adjust for
14141 cleanup-tree-dump removal.
14142 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
14143 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
14144 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
14145 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
14146 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
14147 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
14148 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
14149 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
14150 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
14151 * testsuite/libgomp.graphite/pr41118.c: Likewise.
14153 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
14155 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
14156 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
14157 (futex_wake) [!__x86_64__]: Ditto.
14159 2015-05-28 Julian Brown <julian@codesourcery.com>
14161 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
14162 function comment. Only call gomp_fatal if new argument is true.
14163 (acc_dev_num_out_of_range): New function.
14164 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
14165 acc_dev_num_out_of_range as appropriate.
14166 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
14167 (acc_get_device_num, acc_set_device_num): Update calls to
14169 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
14172 2015-05-28 Julian Brown <julian@codesourcery.com>
14175 * oacc-init.c (plugin/plugin-host.h): Include.
14176 (acc_on_device): Check whether we're in an offloaded region for
14178 plugin. Don't use __builtin_acc_on_device.
14179 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
14180 nonshm_exec flag in thread-local data.
14181 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
14182 data for host_nonshm plugin.
14183 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
14184 for host_nonshm plugin.
14185 * plugin/plugin-host.h: New.
14187 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
14189 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
14191 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
14193 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
14195 (FUTEX_PRIVATE_FLAG): Remove L suffix.
14196 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
14199 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
14201 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
14203 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
14205 * target.c (gomp_map_pointer): New function abstracting out
14206 GOMP_MAP_POINTER handling.
14207 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
14208 gomp_map_pointer().
14210 2015-05-19 Jakub Jelinek <jakub@redhat.com>
14212 PR middle-end/66199
14213 * testsuite/libgomp.c/pr66199-1.c: New test.
14214 * testsuite/libgomp.c/pr66199-2.c: New test.
14215 * testsuite/libgomp.c++/pr66199-1.C: New test.
14216 * testsuite/libgomp.c++/pr66199-2.C: New test.
14217 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
14218 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
14220 2015-05-19 Julian Brown <julian@codesourcery.com>
14222 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
14225 2015-05-13 Jakub Jelinek <jakub@redhat.com>
14227 PR middle-end/66133
14228 * testsuite/libgomp.c/pr66133.c: New test.
14230 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
14232 * Makefile.in: Regenerated with automake-1.11.6.
14233 * aclocal.m4: Likewise.
14234 * config.h.in: Likewise.
14235 * configure: Likewise.
14236 * testsuite/Makefile.in: Likewise.
14238 2015-05-08 Jason Merrill <jason@redhat.com>
14240 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
14243 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
14245 2015-05-06 Julian Brown <julian@codesourcery.com>
14247 * oacc-init.c (acc_device_lock): Add explanatory comment.
14248 (resolve_device): Add comment about locking requirement.
14249 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
14250 gomp_init_device and gomp_fini_device calls.
14251 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
14252 (acc_get_device_num, acc_set_device_num): Add locking around
14253 resolve_device and gomp_init_device calls.
14255 2015-05-06 Julian Brown <julian@codesourcery.com>
14257 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
14258 goacc_thread_lock on error paths.
14259 * oacc-mem.c (lookup_host): Remove locking from function. Note
14260 locking requirement for caller in function comment.
14261 (lookup_dev): Likewise.
14262 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
14263 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
14264 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
14267 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
14271 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
14272 don't expect "0x" prefix for "%p" format specifier, don't expect
14273 "(nil)" for NULL pointer.
14274 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14275 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14276 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14277 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14278 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14279 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14280 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14281 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14282 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14283 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14284 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14285 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14286 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14287 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14288 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14289 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14290 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14291 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14292 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14293 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14294 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14295 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14296 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14297 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14298 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14299 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14300 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14301 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14302 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
14303 accurately specify what we're looking for.
14304 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14305 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14306 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14307 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14308 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14310 2015-04-30 James Norris <jnorris@codesourcery.com>
14313 * testsuite/lib/libgomp.exp
14314 (check_effective_target_openacc_host_selected)
14315 (check_effective_target_openacc_host_nonshm_selected): New
14317 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
14319 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14320 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14321 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14322 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14323 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14324 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14325 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14326 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14327 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14328 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14329 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14330 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14331 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14332 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14333 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14334 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14335 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14336 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14337 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14338 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14339 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14340 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14341 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14342 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14343 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14344 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14345 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14346 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14347 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14348 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14349 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14350 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14351 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14352 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14353 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14354 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14355 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14356 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14357 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14358 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14359 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14360 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14361 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14363 2015-04-08 Julian Brown <julian@codesourcery.com>
14365 * libgomp.h (target_mem_desc: Remove mem_map field.
14366 (acc_dispatch_t): Remove open_device_func, close_device_func,
14367 get_device_num_func, set_device_num_func, target_data members.
14368 Change create_thread_data_func argument to device number instead of
14370 * oacc-async.c (assert.h): Include.
14371 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
14372 (acc_wait_all, acc_wait_all_async): Use current host thread's
14373 active device, not base_dev.
14374 * oacc-cuda.c (acc_get_current_cuda_device)
14375 (acc_get_current_cuda_context, acc_get_cuda_stream)
14376 (acc_set_cuda_stream): Likewise.
14377 * oacc-host.c (host_dispatch): Don't set open_device_func,
14378 close_device_func, get_device_num_func or set_device_num_func.
14379 * oacc-init.c (base_dev, init_key): Remove.
14380 (cached_base_dev): New.
14381 (name_of_acc_device_t): New.
14382 (acc_init_1): Initialise default-numbered device, not zeroth.
14383 (acc_shutdown_1): Close all devices of a given type.
14384 (goacc_destroy_thread): Don't use base_dev.
14385 (lazy_open, lazy_init, lazy_init_and_open): Remove.
14386 (goacc_attach_host_thread_to_device): New.
14387 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
14388 (acc_get_num_devices): Don't use base_dev.
14389 (acc_set_device_type): Reimplement.
14390 (acc_get_device_type): Don't use base_dev.
14391 (acc_get_device_num): Tweak logic.
14392 (acc_set_device_num): Likewise.
14393 (acc_on_device): Use acc_get_device_type.
14394 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
14395 (goacc_lazy_initialize): Reimplement with acc_init and
14396 goacc_attach_host_thread_to_device.
14397 * oacc-int.h (goacc_thread): Add base_dev field.
14398 (base_dev): Remove extern declaration.
14399 (goacc_attach_host_thread_to_device): Add prototype.
14400 * oacc-mem.c (acc_malloc): Use current thread's device instead of
14402 (acc_free): Likewise.
14403 (acc_memcpy_to_device): Likewise.
14404 (acc_memcpy_from_device): Likewise.
14405 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
14406 goacc_lazy_initialize (throughout).
14407 (GOACC_parallel): Use tgt_offset to locate target functions.
14408 * target.c (gomp_map_vars): Don't set tgt->mem_map.
14409 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
14410 (gomp_load_plugin_for_device): Remove open_device, close_device,
14411 get_device_num, set_device_num openacc hook initialisation. Don't set
14412 openacc.target_data.
14413 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
14414 (GOMP_OFFLOAD_openacc_close_device)
14415 (GOMP_OFFLOAD_openacc_get_device_num)
14416 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
14417 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
14419 * plugin/plugin-nvptx.c (ptx_inited): Remove.
14420 (instantiated_devices, ptx_dev_lock): New.
14421 (struct ptx_image_data): New.
14422 (ptx_devices, ptx_images, ptx_image_lock): New.
14423 (fini_streams_for_device): Reorder cuStreamDestroy call.
14424 (nvptx_get_num_devices): Remove forward declaration.
14425 (nvptx_init): Change return type to bool.
14426 (nvptx_fini): Remove.
14427 (nvptx_attach_host_thread_to_device): New.
14428 (nvptx_open_device): Return struct ptx_device* instead of void*.
14429 (nvptx_close_device): Change argument type to struct ptx_device*,
14430 return type to void.
14431 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
14432 (kernel_target_data, kernel_host_table): Remove static globals.
14433 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
14434 (GOMP_OFFLOAD_init_device): Reimplement.
14435 (GOMP_OFFLOAD_fini_device): Likewise.
14436 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
14437 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
14438 (GOMP_OFFLOAD_host2dev): Use ORD argument.
14439 (GOMP_OFFLOAD_openacc_open_device)
14440 (GOMP_OFFLOAD_openacc_close_device)
14441 (GOMP_OFFLOAD_openacc_set_device_num)
14442 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
14443 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
14447 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
14449 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
14451 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
14452 * libgomp.h (struct gomp_memory_mapping): Remove.
14453 (struct target_mem_desc): Change type of mem_map from
14454 gomp_memory_mapping * to splay_tree_s *.
14455 (struct gomp_device_descr): Remove register_image_func, get_table_func.
14456 Add load_image_func, unload_image_func.
14457 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
14458 Remove offload_regions_registered.
14459 (gomp_init_tables): Remove.
14460 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
14462 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
14463 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
14464 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
14465 offload_regions_registered.
14466 Initialize load_image_func, unload_image_func, mem_map.root.
14467 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
14468 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
14469 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
14470 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
14471 gomp_memory_mapping *. Use dev's lock and splay_tree.
14472 (lookup_dev): Use dev's lock.
14473 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
14474 (acc_is_present): Likewise.
14475 (acc_map_data): Likewise.
14476 (acc_unmap_data): Likewise. Use dev's lock.
14477 (present_create_copy): Likewise.
14478 (delete_copyout): Pass dev to lookup_host instead of mem_map.
14479 (update_dev_host): Likewise.
14480 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
14481 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
14482 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
14483 (GOMP_OFFLOAD_get_table): Remove
14484 (GOMP_OFFLOAD_load_image): New function.
14485 (GOMP_OFFLOAD_unload_image): New function.
14486 * target.c (register_lock): New mutex for offload image registration.
14487 (num_devices): Do not guard with PLUGIN_SUPPORT.
14488 (gomp_realloc_unlock): New static function.
14489 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
14491 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
14492 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
14493 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
14495 (gomp_unmap_vars): Likewise.
14496 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
14497 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
14498 (gomp_offload_image_to_device): New static function.
14499 (GOMP_offload_register): Add mutex lock.
14500 Call gomp_offload_image_to_device for all initialized devices.
14501 Replace gomp_realloc with gomp_realloc_unlock.
14502 (GOMP_offload_unregister): New function.
14503 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
14504 get_table_func from the plugin with calls to init_device_func and
14505 gomp_offload_image_to_device.
14506 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
14508 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
14509 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
14510 (GOMP_target_data): Do not call gomp_init_tables.
14511 (GOMP_target_update): Likewise. Remove argument from gomp_update.
14512 (gomp_load_plugin_for_device): Replace register_image and get_table
14513 with load_image and unload_image in DLSYM ().
14514 (gomp_register_images_for_device): Remove function.
14515 (gomp_target_init): Do not initialize current_device.mem_map.*,
14516 current_device.offload_regions_registered.
14517 Remove call to gomp_register_images_for_device.
14518 Do not free offload_images and num_offload_images.
14520 2015-03-30 Jakub Jelinek <jakub@redhat.com>
14523 * testsuite/libgomp.fortran/pr65597.f90: New test.
14525 2015-03-27 Tom de Vries <tom@codesourcery.com>
14528 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
14529 (init, check): New function.
14530 (foo): Change return type to void.
14531 (main): Call init and check.
14533 2015-03-27 Tom de Vries <tom@codesourcery.com>
14536 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
14537 (foo): Use M for non-inner loops to scale down test-case.
14539 2015-03-25 Kai Tietz <ktietz@redhat.com>
14542 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
14543 (GOACC_data_start): Likewise.
14544 * target.c (gomp_map_vars): Likewise.
14546 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
14548 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
14551 2015-03-19 Jakub Jelinek <jakub@redhat.com>
14553 * testsuite/libgomp.c/target-10.c: New test.
14554 * testsuite/libgomp.c++/target-4.C: New test.
14556 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
14558 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
14559 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
14561 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
14563 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
14564 * configure.ac (*-*-rtems*): Assume Pthread is supported.
14565 (pthread.h): Check for this header file.
14566 * configure: Regenerate.
14568 2015-02-25 Tom de Vries <tom@codesourcery.com>
14570 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
14571 (check_reduction_op, check_reduction_macro, max, min):
14573 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
14575 (main): Use new functions.
14577 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
14579 * target.c (gomp_load_plugin_for_device): Use const char * instead of
14580 char * for variables holding dlerror return values.
14581 (DLSYM_OPT): Ditto.
14583 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
14585 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
14587 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
14588 Cesar Philippidis <cesar@codesourcery.com>
14590 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
14591 GOACC_ctaid, and GOACC_nctaid routines.
14593 2015-02-11 Jakub Jelinek <jakub@redhat.com>
14596 * testsuite/libgomp.c/atomic-18.c: New test.
14597 * testsuite/libgomp.c++/atomic-16.C: New test.
14599 2015-02-04 Jakub Jelinek <jakub@redhat.com>
14603 * testsuite/libgomp.c/pr64824.c: New test.
14604 * testsuite/libgomp.c/pr64868.c: New test.
14605 * testsuite/libgomp.c++/pr64824.C: New test.
14606 * testsuite/libgomp.c++/pr64868.C: New test.
14608 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
14611 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
14612 Link with -lpthread.
14613 * config/aix/plugin-suffix.h: Delete.
14615 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
14618 * configure.tgt (*-*-aix*): Use config_path "aix posix".
14619 (*-*-darwin*): Use config_path "bsd darwin posix".
14620 (*-*-hpux*): Use config_path "hpux posix".
14621 * target.c: Add include of plugin-suffix.h and use
14622 SONAME_SUFFIX macro.
14623 * config/aix/plugin-suffix.h: New file.
14624 * config/darwin/plugin-suffix.h: New file.
14625 * config/hpux/plugin-suffix.h: New file.
14626 * config/posix/plugin-suffix.h: New file.
14628 2015-01-23 Jakub Jelinek <jakub@redhat.com>
14630 PR middle-end/64734
14631 * libgomp.c/pr64734.c: New test.
14633 2015-01-23 Tom de Vries <tom@codesourcery.com>
14636 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
14638 2015-01-23 Tom de Vries <tom@codesourcery.com>
14641 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
14644 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
14647 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
14648 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
14649 formal parameter. Update all users.
14650 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
14651 Document unused formal parameter.
14653 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
14655 * oacc-parallel.c: Don't include <alloca.h>.
14656 (GOACC_parallel): Use gomp_alloca instead of alloca.
14658 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
14660 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
14662 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
14663 James Norris <jnorris@codesourcery.com>
14664 Tom de Vries <tom@codesourcery.com>
14665 Julian Brown <julian@codesourcery.com>
14666 Cesar Philippidis <cesar@codesourcery.com>
14667 Nathan Sidwell <nathan@codesourcery.com>
14668 Tobias Burnus <burnus@net-b.de>
14670 * Makefile.am (search_path): Add $(top_srcdir)/../include.
14671 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
14672 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
14673 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
14674 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
14675 Include $(top_srcdir)/plugin/Makefrag.am.
14676 (nodist_libsubinclude_HEADERS): Add openacc.h.
14677 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
14678 openacc.f90, openacc.mod, openacc_kinds.mod.
14679 (omp_lib.mod): Generalize into...
14680 (%.mod): ... this new rule.
14681 (openacc_kinds.mod, openacc.mod): New rules.
14682 * plugin/configfrag.ac: New file.
14683 * configure.ac: Move plugin/offloading support into it. Include
14684 it. Instantiate testsuite/libgomp-test-support.pt.exp.
14685 * plugin/Makefrag.am: New file.
14686 * testsuite/Makefile.am (OFFLOAD_TARGETS)
14687 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
14689 (libgomp-test-support.exp): New rule.
14690 (all-local): Depend on it.
14691 * Makefile.in: Regenerate.
14692 * testsuite/Makefile.in: Regenerate.
14693 * config.h.in: Likewise.
14694 * configure: Likewise.
14695 * configure.tgt: Harden shell syntax.
14696 * env.c: Include "oacc-int.h".
14697 (parse_acc_device_type): New function.
14698 (gomp_debug_var, goacc_device_type, goacc_device_num): New
14700 (initialize_env): Initialize those. Call
14701 goacc_runtime_initialize.
14702 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
14703 (gomp_fatal): Call gomp_vfatal.
14704 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
14705 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
14706 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
14707 (splay_tree_node, splay_tree, splay_tree_key)
14708 (struct target_mem_desc, struct splay_tree_key_s)
14709 (struct gomp_memory_mapping, struct acc_dispatch_t)
14710 (struct gomp_device_descr, gomp_acc_insert_pointer)
14711 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
14712 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
14713 (gomp_free_memmap, gomp_fini_device): New declarations.
14714 (gomp_vdebug, gomp_debug): New macros.
14715 Include "splay-tree.h".
14716 * libgomp.map (OACC_2.0): New symbol version. Use for
14717 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
14718 acc_set_device_type_h_, acc_get_device_type,
14719 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
14720 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
14721 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
14722 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
14723 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
14724 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
14725 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
14726 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
14727 acc_copyin_array_h_, acc_present_or_copyin,
14728 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
14729 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
14730 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
14731 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
14732 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
14733 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
14734 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
14735 acc_update_device, acc_update_device_32_h_,
14736 acc_update_device_64_h_, acc_update_device_array_h_,
14737 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
14738 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
14739 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
14740 acc_is_present_64_h_, acc_is_present_array_h_,
14741 acc_memcpy_to_device, acc_memcpy_from_device,
14742 acc_get_current_cuda_device, acc_get_current_cuda_context,
14743 acc_get_cuda_stream, acc_set_cuda_stream.
14744 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
14745 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
14746 GOACC_update, GOACC_wait, GOACC_get_thread_num,
14747 GOACC_get_num_threads.
14748 (GOMP_PLUGIN_1.0): New symbol version. Use for
14749 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
14750 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
14751 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
14752 GOMP_PLUGIN_acc_thread.
14753 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
14754 environment variable.
14755 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
14756 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
14757 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
14758 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
14759 (splay_tree_remove): New declarations.
14760 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
14761 (splay_tree_remove, splay_tree_lookup): Move into...
14762 * splay-tree.c: ... this new file.
14763 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
14764 (splay_tree_node, splay_tree, splay_tree_key)
14765 (struct target_mem_desc, struct splay_tree_key_s)
14766 (struct gomp_device_descr): Don't declare.
14767 (num_devices_openmp): New variable.
14768 (gomp_get_num_devices ): Use it.
14769 (gomp_init_targets_once): New function.
14770 (gomp_get_num_devices ): Use it.
14771 (get_kind, gomp_copy_from_async, gomp_free_memmap)
14772 (gomp_fini_device, gomp_register_image_for_device): New functions.
14773 (gomp_map_vars): Add devaddrs parameter.
14774 (gomp_update): Add mm parameter.
14775 (gomp_init_device): Move most of it into...
14776 (gomp_init_tables): ... this new function.
14777 (gomp_register_images_for_device): Remove function.
14778 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
14779 Make them hidden instead of static.
14780 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
14781 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
14782 (GOMP_target_end_data, GOMP_target_update)
14783 (gomp_load_plugin_for_device, gomp_target_init): Update for
14785 * oacc-async.c: New file.
14786 * oacc-cuda.c: Likewise.
14787 * oacc-host.c: Likewise.
14788 * oacc-init.c: Likewise.
14789 * oacc-int.h: Likewise.
14790 * oacc-mem.c: Likewise.
14791 * oacc-parallel.c: Likewise.
14792 * oacc-plugin.c: Likewise.
14793 * oacc-plugin.h: Likewise.
14794 * oacc-ptx.h: Likewise.
14795 * openacc.f90: Likewise.
14796 * openacc.h: Likewise.
14797 * openacc_lib.h: Likewise.
14798 * plugin/plugin-host.c: Likewise.
14799 * plugin/plugin-nvptx.c: Likewise.
14800 * libgomp-plugin.c: Likewise.
14801 * libgomp-plugin.h: Likewise.
14802 * libgomp_target.h: Remove file after merging content into the
14803 former file. Update all users.
14804 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
14805 (offload_targets_s, offload_targets_s_openacc): New variables.
14806 (check_effective_target_openacc_nvidia_accel_present)
14807 (check_effective_target_openacc_nvidia_accel_selected): New
14809 (libgomp_init): Update for OpenACC changes.
14810 * testsuite/libgomp-test-support.exp.in: New file.
14811 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
14812 * testsuite/libgomp.oacc-c/c.exp: Likewise.
14813 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14814 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
14815 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
14816 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14817 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
14818 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
14819 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
14820 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
14821 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
14822 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
14823 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
14824 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
14825 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
14826 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
14827 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
14828 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
14829 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
14830 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
14831 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
14832 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
14833 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
14834 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
14835 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14836 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
14837 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
14838 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
14839 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
14840 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
14841 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14842 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
14843 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
14844 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
14845 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
14846 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14847 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
14848 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14849 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
14850 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
14851 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
14852 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
14853 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14854 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14855 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14856 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
14857 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14858 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14859 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14860 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14861 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14862 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
14863 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14864 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14865 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14866 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14867 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14868 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14869 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14870 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
14871 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
14872 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
14873 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14874 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14875 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14876 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
14877 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
14878 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14879 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14880 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14881 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
14882 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14883 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14884 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14885 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
14886 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
14887 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14888 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14889 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
14890 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
14891 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
14892 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
14893 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14894 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14895 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14896 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
14897 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
14898 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14899 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14900 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
14901 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
14902 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
14903 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
14904 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14905 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14906 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14907 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14908 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
14909 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14910 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14911 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
14912 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
14913 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
14914 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14915 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
14916 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
14917 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
14918 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
14919 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
14920 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14921 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
14922 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
14923 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14924 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
14925 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
14926 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
14927 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
14928 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
14929 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
14930 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
14931 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
14932 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
14933 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
14934 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
14935 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
14936 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
14937 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
14938 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
14939 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
14940 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
14941 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
14942 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
14943 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14944 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
14945 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
14946 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
14947 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
14948 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
14949 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
14950 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
14952 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
14953 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
14954 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
14955 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
14956 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
14957 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
14958 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
14959 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
14960 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
14961 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
14962 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
14963 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
14964 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
14965 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
14966 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
14967 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
14968 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
14969 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
14970 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
14971 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
14972 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
14973 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
14974 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
14975 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
14976 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
14977 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
14978 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14979 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14980 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
14981 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
14982 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
14983 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
14984 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
14985 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14986 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
14987 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
14988 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
14989 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
14990 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
14991 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
14992 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
14993 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
14994 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
14995 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
14996 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
14997 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
14998 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
14999 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
15000 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
15001 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
15002 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
15003 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
15004 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
15005 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
15006 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
15007 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
15008 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
15009 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
15010 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
15011 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
15013 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
15014 Julian Brown <julian@codesourcery.com>
15015 David Malcolm <dmalcolm@redhat.com>
15017 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
15018 to "GNU Offloading and Multi Processing Runtime Library". Change
15020 * configure: Regenerate.
15021 * libgomp.texi: Update.
15023 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
15025 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
15027 * configure: Regenerate.
15029 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
15030 "intelmic" in $offload_targets.
15032 2015-01-05 Jakub Jelinek <jakub@redhat.com>
15034 Update copyright years.
15036 * libgomp.texi: Bump @copying's copyright year.
15038 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15040 * testsuite/lib/libgomp.exp: Load target-utils.exp.
15041 Move load of target-supports.exp earlier.
15043 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
15045 * testsuite/libgomp.c/target-9.c: New test.
15047 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
15049 * config.h.in: Regenerate.
15050 * configure: Regenerate.
15051 * configure.ac: Add GCC_CHECK_EMUTLS.
15052 * libgomp.h: Add check for USE_EMUTLS: this case
15053 is equal to HAVE_TLS.
15054 * team.c: Likewise.
15056 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
15058 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
15060 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
15061 Ilya Verbin <ilya.verbin@intel.com>
15063 * testsuite/libgomp.c/target-critical-1.c: New test.
15065 2014-11-26 Jakub Jelinek <jakub@redhat.com>
15067 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
15068 to dg-options unless expensive testing is on.
15069 (TESTITERS): Define to N if not defined.
15070 (main): Use TESTITERS instead of N.
15071 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
15072 dg-additional-options depending on whether expensive testing is on.
15073 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
15074 Decrease N to 100000 and CHUNKSZ to 10000.
15076 2014-11-24 Jakub Jelinek <jakub@redhat.com>
15079 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
15080 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
15082 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
15084 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
15086 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
15089 * configure: Regenerated.
15091 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
15093 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
15094 vect_simd_clones effective target.
15095 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
15097 2014-11-14 Jakub Jelinek <jakub@redhat.com>
15099 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
15100 of 32 as block_size.
15101 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
15102 instead of 32 as block_size.
15104 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
15105 Ilya Verbin <ilya.verbin@intel.com>
15107 * Makefile.in: Regenerate.
15108 * configure: Regenerate.
15109 * configure.ac: Set up offload_additional_options,
15110 offload_additional_lib_paths and offload_targets.
15111 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
15112 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
15113 * testsuite/Makefile.in: Regenerate.
15114 * testsuite/lib/libgomp.exp (libgomp_init): Append
15115 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
15116 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
15117 build directory to LD_LIBRARY_PATH for intelmic offload targets.
15119 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
15120 Ilya Verbin <ilya.verbin@intel.com>
15121 Kirill Yukhin <kirill.yukhin@intel.com>
15122 Ilya Tocar <ilya.tocar@intel.com>
15124 * testsuite/lib/libgomp.exp
15125 (check_effective_target_offload_device): New.
15126 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
15127 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
15128 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
15129 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
15130 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
15131 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
15132 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
15133 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
15134 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
15135 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
15136 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
15137 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
15138 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
15139 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
15140 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
15141 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
15142 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
15143 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
15144 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
15145 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
15146 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
15147 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
15148 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
15149 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
15150 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
15151 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
15152 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
15153 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
15154 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
15155 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
15156 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
15157 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
15158 * testsuite/libgomp.c/target-7.c: Fix test.
15159 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
15160 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
15161 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
15162 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
15163 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
15164 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
15165 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
15166 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
15167 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
15168 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
15169 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
15170 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
15171 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
15172 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
15173 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
15174 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
15175 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
15176 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
15177 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
15178 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
15179 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
15180 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
15181 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
15182 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
15183 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
15184 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
15185 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
15186 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
15187 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
15188 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
15189 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
15191 2014-11-13 Jakub Jelinek <jakub@redhat.com>
15192 Ilya Verbin <ilya.verbin@intel.com>
15193 Thomas Schwinge <thomas@codesourcery.com>
15194 Andrey Turetskiy <andrey.turetskiy@intel.com>
15196 * libgomp.map (GOMP_4.0.1): New symbol version.
15197 Add GOMP_offload_register.
15198 * libgomp_target.h: New file.
15199 * splay-tree.h: New file.
15200 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
15201 (gomp_target_init): New forward declaration.
15202 (gomp_is_initialized): New static variable.
15203 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
15204 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
15206 (offload_images, num_offload_images, devices, num_devices): New static
15208 (splay_compare): New static function.
15209 (struct gomp_device_descr): New structure.
15210 (gomp_get_num_devices): Call gomp_target_init.
15211 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
15212 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
15213 (GOMP_offload_register): New function.
15214 (GOMP_target): Arrange for host callback to be performed in a separate
15215 initial thread and contention group, inheriting ICVs from
15216 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
15217 Add device initialization and lookup for target function in splay tree.
15218 (GOMP_target_data): Add device initialization and call gomp_map_vars.
15219 (GOMP_target_end_data): Call gomp_unmap_vars.
15220 (GOMP_target_update): Add device initialization and call gomp_update.
15221 (gomp_load_plugin_for_device, gomp_register_images_for_device)
15222 (gomp_target_init): New static functions.
15224 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
15225 Thomas Schwinge <thomas@codesourcery.com>
15226 Ilya Verbin <ilya.verbin@intel.com>
15227 Andrey Turetskiy <andrey.turetskiy@intel.com>
15229 * config.h.in: Regenerate.
15230 * configure: Regenerate.
15231 * configure.ac: Check for libdl, required for plugin support.
15232 (PLUGIN_SUPPORT): Define if plugins are supported.
15233 (enable_offload_targets): Support Intel MIC targets.
15234 (OFFLOAD_TARGETS): List of target names suitable for offloading.
15236 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15239 * configure: Regenerate.
15241 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15243 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
15245 2014-10-06 Marek Polacek <polacek@redhat.com>
15247 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
15248 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
15249 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
15250 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
15252 2014-10-06 Marek Polacek <polacek@redhat.com>
15254 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
15255 * testsuite/libgomp.c/nqueens-1.c: Likewise.
15256 * testsuite/libgomp.c/pr26943-3.c: Likewise.
15257 * testsuite/libgomp.c/pr26943-4.c: Likewise.
15258 * testsuite/libgomp.c/pr36802-2.c: Likewise.
15259 * testsuite/libgomp.c/pr36802-3.c: Likewise.
15260 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
15261 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
15262 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
15263 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
15264 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
15265 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
15266 * testsuite/libgomp.c/omp-single-1.c: Likewise.
15267 * testsuite/libgomp.c/omp-single-2.c: Likewise.
15268 * testsuite/libgomp.c/omp_matvec.c: Likewise.
15269 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
15270 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
15271 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
15274 2014-10-03 Jakub Jelinek <jakub@redhat.com>
15277 * testsuite/libgomp.c/pr61200.c: New test.
15279 2014-09-18 Jakub Jelinek <jakub@redhat.com>
15282 * testsuite/libgomp.c++/pr63248.C: New test.
15284 2014-08-04 Jakub Jelinek <jakub@redhat.com>
15286 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
15287 is not zero, but taskgroup->children is NULL and there are
15288 any task->children, schedule those instead of waiting.
15289 * testsuite/libgomp.c/depend-6.c: New test.
15290 * testsuite/libgomp.c/depend-7.c: New test.
15291 * testsuite/libgomp.c/depend-8.c: New test.
15292 * testsuite/libgomp.c/depend-9.c: New test.
15293 * testsuite/libgomp.c/depend-10.c: New test.
15295 2014-08-01 Jakub Jelinek <jakub@redhat.com>
15297 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
15298 (struct gomp_taskwait): New type.
15299 (struct gomp_task): Add taskwait and parent_depends_on, remove
15300 in_taskwait and taskwait_sem fields.
15301 (gomp_finish_task): Don't destroy taskwait_sem.
15302 * task.c (gomp_init_task): Don't init in_taskwait, instead init
15303 taskwait and parent_depends_on.
15304 (GOMP_task): For if (0) tasks with depend clause that depend on
15305 earlier tasks don't defer them, instead call
15306 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
15307 Initialize redundant_out field, for redundant out entries just
15308 move them at the end of linked list instead of removing them
15309 completely, and set redundant_out flag instead of redundant.
15310 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
15312 (gomp_task_run_post_handle_dependers): If parent is in
15313 gomp_task_maybe_wait_for_dependencies and newly runnable task
15314 is not parent_depends_on, queue it in parent->children linked
15315 list after all runnable tasks with parent_depends_on set.
15316 Adjust for addition of taskwait indirection.
15317 (gomp_task_run_post_remove_parent): If parent is in
15318 gomp_task_maybe_wait_for_dependencies and task to be removed
15319 is parent_depends_on, decrement n_depend and if needed awake
15320 parent. Adjust for addition of taskwait indirection.
15321 (GOMP_taskwait): Adjust for addition of taskwait indirection.
15322 (gomp_task_maybe_wait_for_dependencies): New function.
15323 * testsuite/libgomp.c/depend-5.c: New test.
15325 2014-07-13 Tobias Burnus <burnus@net-b.de>
15327 * testsuite/libgomp.fortran/pr34020.f90: Make compile
15328 with TS 18508/Fortran 2015.
15330 2014-07-06 Marek Polacek <polacek@redhat.com>
15333 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
15335 2014-07-03 Jakub Jelinek <jakub@redhat.com>
15337 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
15338 matches regex $lang_source_re, add $lang_include_flags to options.
15339 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
15340 * testsuite/libgomp.c++/c++.exp: Likewise.
15341 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
15342 and lang_include_flags instead of adding -fintrinsic-modules-path= to
15344 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
15346 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
15348 * testsuite/libgomp.fortran/fortran.exp: Explain
15349 gfortran-dg-runtest usage.
15351 2014-06-25 Jakub Jelinek <jakub@redhat.com>
15353 * testsuite/libgomp.fortran/simd5.f90: New test.
15354 * testsuite/libgomp.fortran/simd6.f90: New test.
15355 * testsuite/libgomp.fortran/simd7.f90: New test.
15357 2014-06-24 Jakub Jelinek <jakub@redhat.com>
15359 * testsuite/libgomp.c/for-2.c: Define SC to static for
15360 #pragma omp for simd testing.
15361 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
15362 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
15364 * testsuite/libgomp.c/simd-14.c: New test.
15365 * testsuite/libgomp.c/simd-15.c: New test.
15366 * testsuite/libgomp.c/simd-16.c: New test.
15367 * testsuite/libgomp.c/simd-17.c: New test.
15368 * testsuite/libgomp.c++/for-10.C: Define SC to static for
15369 #pragma omp for simd testing.
15370 * testsuite/libgomp.c++/simd10.C: New test.
15371 * testsuite/libgomp.c++/simd11.C: New test.
15372 * testsuite/libgomp.c++/simd12.C: New test.
15373 * testsuite/libgomp.c++/simd13.C: New test.
15375 * testsuite/libgomp.fortran/aligned1.f03: New test.
15376 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
15377 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
15378 tasks with !$omp parallel !$omp single.
15379 * testsuite/libgomp.fortran/target8.f90: New test.
15380 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
15381 not to use trim in the combiner, instead call elemental function.
15382 (fn): New elemental function.
15383 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
15385 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
15387 * testsuite/libgomp.fortran/udr12.f90: New test.
15388 * testsuite/libgomp.fortran/udr13.f90: New test.
15389 * testsuite/libgomp.fortran/udr14.f90: New test.
15390 * testsuite/libgomp.fortran/udr15.f90: New test.
15392 2014-06-18 Jakub Jelinek <jakub@redhat.com>
15394 * omp_lib.f90.in (openmp_version): Set to 201307.
15395 * omp_lib.h.in (openmp_version): Likewise.
15396 * testsuite/libgomp.c/target-8.c: New test.
15397 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
15398 and inbranch clauses.
15399 * testsuite/libgomp.fortran/depend-3.f90: New test.
15400 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
15402 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
15403 * testsuite/libgomp.fortran/target1.f90: New test.
15404 * testsuite/libgomp.fortran/target2.f90: New test.
15405 * testsuite/libgomp.fortran/target3.f90: New test.
15406 * testsuite/libgomp.fortran/target4.f90: New test.
15407 * testsuite/libgomp.fortran/target5.f90: New test.
15408 * testsuite/libgomp.fortran/target6.f90: New test.
15409 * testsuite/libgomp.fortran/target7.f90: New test.
15411 2014-06-10 Jakub Jelinek <jakub@redhat.com>
15414 * testsuite/libgomp.fortran/allocatable9.f90: New test.
15415 * testsuite/libgomp.fortran/allocatable10.f90: New test.
15416 * testsuite/libgomp.fortran/allocatable11.f90: New test.
15417 * testsuite/libgomp.fortran/allocatable12.f90: New test.
15418 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
15419 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
15420 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
15421 * testsuite/libgomp.fortran/associate1.f90: New test.
15422 * testsuite/libgomp.fortran/associate2.f90: New test.
15423 * testsuite/libgomp.fortran/procptr1.f90: New test.
15425 2014-06-06 Jakub Jelinek <jakub@redhat.com>
15427 * testsuite/libgomp.fortran/simd1.f90: New test.
15428 * testsuite/libgomp.fortran/udr1.f90: New test.
15429 * testsuite/libgomp.fortran/udr2.f90: New test.
15430 * testsuite/libgomp.fortran/udr3.f90: New test.
15431 * testsuite/libgomp.fortran/udr4.f90: New test.
15432 * testsuite/libgomp.fortran/udr5.f90: New test.
15433 * testsuite/libgomp.fortran/udr6.f90: New test.
15434 * testsuite/libgomp.fortran/udr7.f90: New test.
15435 * testsuite/libgomp.fortran/udr8.f90: New test.
15436 * testsuite/libgomp.fortran/udr9.f90: New test.
15437 * testsuite/libgomp.fortran/udr10.f90: New test.
15438 * testsuite/libgomp.fortran/udr11.f90: New test.
15440 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
15442 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
15443 vect_simd_clones effective target.
15444 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
15446 2014-05-21 Jakub Jelinek <jakub@redhat.com>
15448 PR middle-end/61252
15449 * testsuite/libgomp.c++/simd-9.C: New test.
15451 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
15453 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
15454 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
15455 texts according to their @menu entry positions.
15457 2014-05-11 Jakub Jelinek <jakub@redhat.com>
15459 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
15460 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
15461 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
15462 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
15463 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
15464 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
15465 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
15466 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
15467 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
15468 * testsuite/libgomp.fortran/depend-1.f90: New test.
15469 * testsuite/libgomp.fortran/depend-2.f90: New test.
15470 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
15471 * testsuite/libgomp.fortran/simd1.f90: New test.
15472 * testsuite/libgomp.fortran/simd2.f90: New test.
15473 * testsuite/libgomp.fortran/simd3.f90: New test.
15474 * testsuite/libgomp.fortran/simd4.f90: New test.
15475 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
15477 2014-05-02 Jakub Jelinek <jakub@redhat.com>
15479 * testsuite/libgomp.c/simd-10.c: New test.
15480 * testsuite/libgomp.c/simd-11.c: New test.
15481 * testsuite/libgomp.c/simd-12.c: New test.
15482 * testsuite/libgomp.c/simd-13.c: New test.
15484 2014-04-24 Jakub Jelinek <jakub@redhat.com>
15486 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
15487 atomic type clauses in any order and optional comma in between.
15488 * testsuite/libgomp.c++/atomic-15.C: Likewise.
15489 * testsuite/libgomp.c/atomic-17.c: Likewise.
15491 * testsuite/libgomp.c/simd-7.c: New test.
15492 * testsuite/libgomp.c/simd-8.c: New test.
15493 * testsuite/libgomp.c/simd-9.c: New test.
15494 * testsuite/libgomp.c/loop-16.c: New test.
15496 2014-04-02 Richard Henderson <rth@redhat.com>
15498 * config/linux/futex.h (futex_wait): Get error value from errno.
15499 (futex_wake): Likewise.
15501 2014-03-25 Jakub Jelinek <jakub@redhat.com>
15504 * testsuite/libgomp.c++/udr-11.C: New test.
15505 * testsuite/libgomp.c++/udr-12.C: New test.
15506 * testsuite/libgomp.c++/udr-13.C: New test.
15507 * testsuite/libgomp.c++/udr-14.C: New test.
15508 * testsuite/libgomp.c++/udr-15.C: New test.
15509 * testsuite/libgomp.c++/udr-16.C: New test.
15510 * testsuite/libgomp.c++/udr-17.C: New test.
15511 * testsuite/libgomp.c++/udr-18.C: New test.
15512 * testsuite/libgomp.c++/udr-19.C: New test.
15514 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
15516 Update copyright years
15518 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
15520 * hashtab.h: Use the standard form for the copyright notice.
15522 2014-01-02 Tobias Burnus <burnus@net-b.de>
15524 * libgomp.texi: Bump @copying's copyright year.
15526 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
15528 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
15529 alloca () with __builtin_alloca ().
15530 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
15531 * testsuite/libgomp.c/lock-3.c: Likewise.
15532 * testsuite/libgomp.c/pr48591.c: Likewise.
15534 2013-12-17 Jakub Jelinek <jakub@redhat.com>
15537 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
15540 2013-12-16 Jakub Jelinek <jakub@redhat.com>
15543 * testsuite/libgomp.c/pr58756.c: New test.
15545 2013-12-12 Jakub Jelinek <jakub@redhat.com>
15548 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
15551 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
15553 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
15555 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
15556 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
15557 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
15558 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
15561 * libgomp_g.h: Include <stddef.h> for size_t.
15563 * libgomp.spec.in: Update comment about libgomp's dependencies.
15564 * configure.ac: Likewise.
15565 * configure: Regenerate.
15567 2013-10-16 Tobias Burnus <burnus@net-b.de>
15569 * libgomp.texi: (Runtime Library Routines): Update references for
15570 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
15571 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
15572 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
15573 (Environment Variables): Update references for OpenMP 4.0. Add
15574 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
15575 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
15578 2013-10-14 Jakub Jelinek <jakub@redhat.com>
15580 * env.c (parse_bind_var): Initialize value to avoid
15581 (false positive) warning.
15583 2013-10-12 Jakub Jelinek <jakub@redhat.com>
15586 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
15588 (gomp_init_num_threads): Move i variable declaration into
15589 #ifdef CPU_ALLOC_SIZE block.
15590 * config/linux/affinity.c (gomp_affinity_init_level): Test
15591 gomp_places_list_len == 0 rather than gomp_places_list == 0
15592 when checking for topology reading error.
15593 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
15594 * env.c (parse_affinity): Add ignore argument, if true, don't populate
15595 gomp_places_list, only parse env var and always return false.
15596 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
15597 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
15598 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
15599 and either of these variables were parsed correctly into a places
15602 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
15603 Jakub Jelinek <jakub@redhat.com>
15605 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
15606 of 5 loopfn matches.
15607 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
15608 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
15609 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
15610 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
15611 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
15612 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
15613 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
15614 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
15616 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
15618 * Makefile.am (omp_lib.mod): Streamline rule.
15619 * Makefile.in: Regenerate.
15621 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
15624 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
15625 * testsuite/libgomp.fortran/lib1.f90: Likewise.
15626 * testsuite/libgomp.fortran/lib2.f: Likewise.
15627 * testsuite/libgomp.fortran/lib3.f: Likewise.
15629 * configure.ac: Typo fix.
15630 * configure: Regenerate.
15632 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
15633 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
15635 * omp.h.in: Don't touch the user's namespace.
15637 2013-10-11 Jakub Jelinek <jakub@redhat.com>
15638 Tobias Burnus <burnus@net-b.de>
15639 Richard Henderson <rth@redhat.com>
15641 * target.c: New file.
15642 * Makefile.am (libgomp_la_SOURCES): Add target.c.
15643 * Makefile.in: Regenerated.
15644 * libgomp_g.h (GOMP_task): Add depend argument.
15645 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
15646 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
15647 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
15648 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
15649 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
15650 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
15651 GOMP_taskgroup_start, GOMP_taskgroup_end,
15652 GOMP_parallel_sections): New prototypes.
15653 * fortran.c (omp_is_initial_device): Add ialias_redirect.
15654 (omp_is_initial_device_): New function.
15655 (ULP, STR1, STR2, ialias_redirect): Removed.
15656 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
15657 omp_set_default_device_8_, omp_get_default_device_,
15658 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
15660 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
15661 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
15662 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
15664 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
15665 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
15666 omp_set_default_device, omp_set_default_device_,
15667 omp_set_default_device_8_, omp_get_default_device,
15668 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
15669 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
15670 omp_get_team_num_): Export @@OMP_4.0.
15671 * team.c (struct gomp_thread_start_data): Add place field.
15672 (gomp_thread_start): Clear thr->thread_pool and
15673 thr->task before returning. Use gomp_team_barrier_wait_final
15674 instead of gomp_team_barrier_wait. Initialize thr->place.
15675 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
15676 team_cancelled and task_queued_count fields.
15677 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
15678 before calling pthread_exit.
15679 (gomp_free_thread): No longer static. Use
15680 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
15681 (gomp_team_start): Add flags argument. Set
15682 thr->thread_pool->threads_busy to nthreads immediately after creating
15683 new pool. Use gomp_managed_threads_lock instead of
15684 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
15685 (gomp_team_end): Use gomp_managed_threads_lock instead of
15686 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
15687 of gomp_team_barrier_wait. If team->team_cancelled, call
15688 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
15689 rather than thr->ts.work_share.
15690 (initialize_team): Don't call gomp_sem_init here.
15691 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
15693 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
15694 * env.c (gomp_global_icv): Add default_device_var, target_data and
15695 bind_var initializers.
15696 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
15697 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
15698 gomp_places_list_len): New variables.
15699 (parse_bind_var, parse_one_place, parse_places_var): New functions.
15700 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
15702 (gomp_cancel_var): New global variable.
15703 (parse_int): New function.
15704 (handle_omp_display_env): New function.
15705 (initialize_env): Use it. Initialize default_device_var.
15706 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
15707 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
15708 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
15709 been successfully parsed (and call gomp_init_affinity in that case).
15710 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
15711 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
15712 omp_get_team_num, omp_is_initial_device): New functions.
15713 * libgomp.h: Include stdlib.h.
15714 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
15716 (struct target_mem_desc): Forward declare.
15717 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
15718 and thread_limit_var fields.
15719 (gomp_get_num_devices): New prototype.
15720 (gomp_cancel_var): New extern decl.
15721 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
15722 team_cancelled and task_queued_count fields. Add comments about
15723 task_{,queued_,running_}count.
15724 (gomp_cancel_kind): New enum.
15725 (gomp_work_share_end_cancel): New prototype.
15726 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
15727 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
15729 (struct gomp_taskgroup): New type.
15730 (struct gomp_task_depend_entry,
15731 struct gomp_dependers_vec): New types.
15732 (gomp_finish_task): Free depend_hash if non-NULL.
15733 (struct gomp_team_state): Add place_partition_off
15734 and place_partition_len fields.
15735 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
15736 gomp_places_list_len): New extern decls.
15737 (struct gomp_thread): Add place field.
15738 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
15739 (gomp_init_thread_affinity): Add place argument.
15740 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
15741 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
15742 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
15743 gomp_affinity_init_level, gomp_affinity_print_place): New
15745 (gomp_team_start): Add flags argument.
15746 (gomp_thread_limit_var, gomp_remaining_threads_count,
15747 gomp_remaining_threads_lock): Remove.
15748 (gomp_managed_threads_lock): New variable.
15749 (struct gomp_thread_pool): Add threads_busy field.
15750 (gomp_free_thread): New prototype.
15751 * task.c: Include hashtab.h.
15752 (hash_entry_type): New typedef.
15753 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
15754 (gomp_init_task): Clear dependers, depend_hash, depend_count,
15755 copy_ctors_done and taskgroup fields.
15756 (GOMP_task): Add depend argument, handle depend clauses. If
15757 gomp_team_barrier_cancelled or if it's taskgroup has been
15758 cancelled, don't queue or start new tasks. Set copy_ctors_done
15759 field if needed. Initialize taskgroup field. If copy_ctors_done
15760 and already cancelled, don't discard the task. If taskgroup is
15761 non-NULL, enqueue the task into taskgroup queue. Increment
15762 num_children field in taskgroup. Increment task_queued_count.
15763 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
15764 gomp_task_run_post_remove_taskgroup): New inline functions.
15765 (gomp_task_run_post_handle_depend_hash,
15766 gomp_task_run_post_handle_dependers,
15767 gomp_task_run_post_handle_depend): New functions.
15768 (GOMP_taskwait): Use them. If more than one new tasks
15769 have been queued, wake other threads if needed.
15770 (gomp_barrier_handle_tasks): Likewise. If
15771 gomp_team_barrier_cancelled, don't start any new tasks, just free
15773 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
15775 (omp_proc_bind_kind, omp_proc_bind_false,
15776 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
15777 omp_proc_bind_spread): New params.
15778 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
15779 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
15780 omp_get_team_num, omp_is_initial_device): New interfaces.
15781 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
15782 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
15783 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
15784 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
15785 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
15786 useless use omp_lib_kinds.
15787 * omp.h.in (omp_proc_bind_t): New typedef.
15788 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
15789 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
15790 omp_get_team_num, omp_is_initial_device): New prototypes.
15791 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
15792 through to gomp_team_start.
15793 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
15794 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
15795 Adjust gomp_parallel_loop_start callers.
15796 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
15797 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
15798 GOMP_loop_end_cancel): New functions.
15799 (GOMP_parallel_end): Add ialias_redirect.
15800 * hashtab.h: New file.
15801 * libgomp.texi (Environment Variables): Minor cleanup,
15802 update section refs to OpenMP 4.0rc2.
15803 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
15804 environment variables.
15805 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
15806 team->work_shares_to_free to thr->ts.work_share before calling
15808 (gomp_work_share_end_cancel): New function.
15809 * config/linux/proc.c: Include errno.h.
15810 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
15811 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
15812 sizeof (cpu_set_t) to determine number of iterations. Fix up check
15813 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
15814 gomp_cpuset_size is sizeof (cpu_set_t).
15815 (gomp_init_num_threads): Initialize gomp_cpuset_size,
15816 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
15817 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
15818 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
15819 contain any logical CPUs.
15820 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
15821 is NULL. Use gomp_cpusetp instead of &cpuset and pass
15822 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
15823 pthread_getaffinity_np. Check gomp_places_list instead of
15824 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
15825 * config/linux/bar.c (gomp_barrier_wait_end,
15826 gomp_barrier_wait_last): Use BAR_* defines.
15827 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
15828 from state where needed. Set work_share_cancelled to 0 on last
15830 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
15831 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
15833 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
15834 Add cpusetsize argument.
15835 (gomp_cpuset_size, gomp_cpusetp): Declare.
15836 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
15837 (affinity_counter): Remove.
15838 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
15839 if CPU_ALLOC_SIZE isn't defined.
15840 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
15841 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
15842 bind current thread to the first place.
15843 (gomp_init_thread_affinity): Rewritten. Add place argument, just
15844 pthread_setaffinity_np to gomp_places_list[place].
15845 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
15846 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
15847 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
15848 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
15849 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
15850 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
15851 (gomp_barrier_t): Add awaited_final field.
15852 (gomp_barrier_init): Initialize awaited_final field.
15853 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
15854 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
15856 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
15858 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
15859 gomp_team_barrier_cancelled): New inline functions.
15860 (gomp_barrier_last_thread,
15861 gomp_team_barrier_set_task_pending,
15862 gomp_team_barrier_clear_task_pending,
15863 gomp_team_barrier_set_waiting_for_tasks,
15864 gomp_team_barrier_waiting_for_tasks,
15865 gomp_team_barrier_done): Use BAR_* defines.
15866 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
15867 (gomp_barrier_wait_end): Use BAR_* defines.
15868 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
15869 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
15871 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
15872 gomp_team_barrier_cancel): New functions.
15873 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
15875 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
15876 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
15877 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
15878 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
15879 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
15880 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
15881 (gomp_barrier_t): Add cancellable field.
15882 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
15883 gomp_team_barrier_cancel): New prototypes.
15884 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
15885 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
15886 gomp_team_barrier_cancelled): New inline functions.
15887 (gomp_barrier_wait_start, gomp_barrier_last_thread,
15888 gomp_team_barrier_set_task_pending,
15889 gomp_team_barrier_clear_task_pending,
15890 gomp_team_barrier_set_waiting_for_tasks,
15891 gomp_team_barrier_waiting_for_tasks,
15892 gomp_team_barrier_done): Use BAR_* defines.
15893 * barrier.c (GOMP_barrier_cancel): New function.
15894 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
15895 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
15896 omp_proc_bind_spread): New params.
15897 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
15898 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
15899 omp_get_team_num, omp_is_initial_device): New externals.
15900 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
15902 (gomp_resolve_num_threads): Adjust for thread_limit now being in
15903 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
15904 infinity. If not nested, just return minimum of max_num_threads
15905 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
15906 to the returned value. Otherwise, don't update atomically
15907 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
15908 (GOMP_parallel_end): Adjust for thread_limit now being in
15909 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
15910 infinity. Adjust threads_busy in the pool rather than
15911 gomp_remaining_threads_count. Remember team->nthreads and call
15912 gomp_team_end before adjusting threads_busy, if not nested
15913 afterwards, just set it to 1 non-atomically. Add ialias.
15914 (GOMP_parallel_start): Adjust gomp_team_start caller.
15915 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
15916 * testsuite/libgomp.c/affinity-1.c: New test.
15917 * testsuite/libgomp.c/atomic-15.c: New test.
15918 * testsuite/libgomp.c/atomic-16.c: New test.
15919 * testsuite/libgomp.c/atomic-17.c: New test.
15920 * testsuite/libgomp.c/cancel-for-1.c: New test.
15921 * testsuite/libgomp.c/cancel-for-2.c: New test.
15922 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
15923 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
15924 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
15925 * testsuite/libgomp.c/cancel-sections-1.c: New test.
15926 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
15927 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
15928 * testsuite/libgomp.c/depend-1.c: New test.
15929 * testsuite/libgomp.c/depend-2.c: New test.
15930 * testsuite/libgomp.c/depend-3.c: New test.
15931 * testsuite/libgomp.c/depend-4.c: New test.
15932 * testsuite/libgomp.c/for-1.c: New test.
15933 * testsuite/libgomp.c/for-1.h: New file.
15934 * testsuite/libgomp.c/for-2.c: New test.
15935 * testsuite/libgomp.c/for-2.h: New file.
15936 * testsuite/libgomp.c/for-3.c: New test.
15937 * testsuite/libgomp.c/pr58392.c: New test.
15938 * testsuite/libgomp.c/simd-1.c: New test.
15939 * testsuite/libgomp.c/simd-2.c: New test.
15940 * testsuite/libgomp.c/simd-3.c: New test.
15941 * testsuite/libgomp.c/simd-4.c: New test.
15942 * testsuite/libgomp.c/simd-5.c: New test.
15943 * testsuite/libgomp.c/simd-6.c: New test.
15944 * testsuite/libgomp.c/target-1.c: New test.
15945 * testsuite/libgomp.c/target-2.c: New test.
15946 * testsuite/libgomp.c/target-3.c: New test.
15947 * testsuite/libgomp.c/target-4.c: New test.
15948 * testsuite/libgomp.c/target-5.c: New test.
15949 * testsuite/libgomp.c/target-6.c: New test.
15950 * testsuite/libgomp.c/target-7.c: New test.
15951 * testsuite/libgomp.c/taskgroup-1.c: New test.
15952 * testsuite/libgomp.c/thread-limit-1.c: New test.
15953 * testsuite/libgomp.c/thread-limit-2.c: New test.
15954 * testsuite/libgomp.c/thread-limit-3.c: New test.
15955 * testsuite/libgomp.c/udr-1.c: New test.
15956 * testsuite/libgomp.c/udr-2.c: New test.
15957 * testsuite/libgomp.c/udr-3.c: New test.
15958 * testsuite/libgomp.c++/affinity-1.C: New test.
15959 * testsuite/libgomp.c++/atomic-10.C: New test.
15960 * testsuite/libgomp.c++/atomic-11.C: New test.
15961 * testsuite/libgomp.c++/atomic-12.C: New test.
15962 * testsuite/libgomp.c++/atomic-13.C: New test.
15963 * testsuite/libgomp.c++/atomic-14.C: New test.
15964 * testsuite/libgomp.c++/atomic-15.C: New test.
15965 * testsuite/libgomp.c++/cancel-for-1.C: New test.
15966 * testsuite/libgomp.c++/cancel-for-2.C: New test.
15967 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
15968 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
15969 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
15970 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
15971 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
15972 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
15973 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
15974 * testsuite/libgomp.c++/cancel-test.h: New file.
15975 * testsuite/libgomp.c++/for-9.C: New test.
15976 * testsuite/libgomp.c++/for-10.C: New test.
15977 * testsuite/libgomp.c++/for-11.C: New test.
15978 * testsuite/libgomp.c++/simd-1.C: New test.
15979 * testsuite/libgomp.c++/simd-2.C: New test.
15980 * testsuite/libgomp.c++/simd-3.C: New test.
15981 * testsuite/libgomp.c++/simd-4.C: New test.
15982 * testsuite/libgomp.c++/simd-5.C: New test.
15983 * testsuite/libgomp.c++/simd-6.C: New test.
15984 * testsuite/libgomp.c++/simd-7.C: New test.
15985 * testsuite/libgomp.c++/simd-8.C: New test.
15986 * testsuite/libgomp.c++/target-1.C: New test.
15987 * testsuite/libgomp.c++/target-2.C: New test.
15988 * testsuite/libgomp.c++/target-2-aux.cc: New file.
15989 * testsuite/libgomp.c++/target-3.C: New test.
15990 * testsuite/libgomp.c++/taskgroup-1.C: New test.
15991 * testsuite/libgomp.c++/udr-1.C: New test.
15992 * testsuite/libgomp.c++/udr-2.C: New test.
15993 * testsuite/libgomp.c++/udr-3.C: New test.
15994 * testsuite/libgomp.c++/udr-4.C: New test.
15995 * testsuite/libgomp.c++/udr-5.C: New test.
15996 * testsuite/libgomp.c++/udr-6.C: New test.
15997 * testsuite/libgomp.c++/udr-7.C: New test.
15998 * testsuite/libgomp.c++/udr-8.C: New test.
15999 * testsuite/libgomp.c++/udr-9.C: New test.
16001 2013-09-20 Jakub Jelinek <jakub@redhat.com>
16004 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
16007 2013-09-20 Alan Modra <amodra@gmail.com>
16009 * configure: Regenerate.
16011 2013-09-19 Jakub Jelinek <jakub@redhat.com>
16013 * testsuite/libgomp.c/sections-2.c: New test.
16015 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
16017 * testsuite/libgomp.fortran/strassen.f90:
16018 Add dg-skip-if aarch64_tiny.
16020 2013-06-20 Iain Sandoe <iain@codesourcery.com>
16021 Cesar Philippidis <cesar@codesourcery.com>
16023 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
16024 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
16025 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
16026 * testsuite/libgomp.fortran/fortran.exp: Likewise.
16027 * testsuite/libgomp.graphite/graphite.exp: Likewise.
16028 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
16029 Use dg-runtest rather than gfortran-dg-runtest.
16031 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
16033 * testsuite/libgomp.c/icv-2.c: Extend current handling of
16034 Linux-based x86 systems to cover all GNU systems.
16035 * testsuite/libgomp.c/lock-3.c: Likewise.
16036 * testsuite/libgomp.c/pr48591.c: Likewise.
16038 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
16040 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
16041 GNU/Hurd, as done for Linux-based systems.
16043 * config/posix/ptrlock.h: Fix comment.
16045 2013-05-27 Tobias Burnus <burnus@net-b.de>
16048 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
16049 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
16050 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
16051 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
16052 omp_destroy_nest_lock): Correct arguments to match the one in
16054 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
16055 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
16056 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
16057 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
16059 2013-05-16 Jakub Jelinek <jakub@redhat.com>
16061 * testsuite/libgomp.c/loop-13.c: New test.
16062 * testsuite/libgomp.c/loop-14.c: New test.
16063 * testsuite/libgomp.c/loop-15.c: New test.
16064 * testsuite/libgomp.c++/loop-13.C: New test.
16065 * testsuite/libgomp.c++/loop-14.C: New test.
16066 * testsuite/libgomp.c++/loop-15.C: New test.
16068 2013-02-06 Jakub Jelinek <jakub@redhat.com>
16070 PR middle-end/56217
16071 * testsuite/libgomp.c++/pr56217.C: New test.
16073 2013-02-01 Alan Modra <amodra@gmail.com>
16075 * task.c (GOMP_task, GOMP_taskwait): Comment.
16077 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
16078 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
16081 * config/linux/wait.h (do_spin): Use atomic load for addr.
16082 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
16083 for intptr and ptrlock.
16084 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
16087 2013-01-22 Alan Modra <amodra@gmail.com>
16091 * task.c (GOMP_task): Revert 2011-12-09 change.
16092 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
16093 barrier to read task->children..
16094 (gomp_barrier_handle_tasks): ..and matching atomic store with
16095 release barrier here when setting parent->children to NULL.
16097 2013-01-16 Jakub Jelinek <jakub@redhat.com>
16098 Tobias Burnus <burnus@net-b.de>
16101 * testsuite/libgomp.fortran/fortran.exp: Use
16102 -fintrinsic-modules-path= instead of
16103 -fintrinsic-modules-path.
16105 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
16107 Update copyright years.
16109 2012-12-19 Tobias Burnus <burnus@net-b.de>
16111 * testsuite/libgomp.fortran/fortran.exp: Set
16112 -fintrinsic-modules-path.
16114 2012-12-19 Tobias Burnus <burnus@net-b.de>
16116 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
16117 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
16119 2012-11-21 Jakub Jelinek <jakub@redhat.com>
16122 * team.c (gomp_free_thread): Decrease gomp_managed_threads
16123 if pool had any threads_used.
16125 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
16127 * testsuite/libgomp.c++/pr24455.C: Use
16128 -Wl,-undefined,dynamic_lookup on darwin.
16130 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
16132 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
16134 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
16136 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
16138 2012-10-23 Ian Bolton <ian.bolton@arm.com>
16139 Jim MacArthur <jim.macarthur@arm.com>
16140 Marcus Shawcroft <marcus.shawcroft@arm.com>
16141 Nigel Stephens <nigel.stephens@arm.com>
16142 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16143 Richard Earnshaw <rearnsha@arm.com>
16144 Sofiane Naci <sofiane.naci@arm.com>
16145 Stephen Thomas <stephen.thomas@arm.com>
16146 Tejas Belagod <tejas.belagod@arm.com>
16147 Yufeng Zhang <yufeng.zhang@arm.com>
16149 * configure.tgt: Add AArch64.
16151 2012-10-04 Jason Merrill <jason@redhat.com>
16153 * testsuite/libgomp.c++/tls-init1.C: New.
16155 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
16157 * configure: Regenerated.
16159 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
16161 * config/linux/mips/futex.h (sys_futex0): Change to static
16162 function with noinline, nomips16 attributes under MIPS16. Adjust
16163 asm statement to place 'li v0,SYS_futex' immediately before
16166 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
16168 * libgomp.texi (Library Index): Renamed from "Index" to prevent
16169 conflict with index.html on case-insensitive file systems.
16171 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
16173 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
16174 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
16176 2012-07-02 Richard Guenther <rguenther@suse.de>
16177 Michael Matz <matz@suse.de>
16178 Tobias Grosser <tobias@grosser.es>
16179 Sebastian Pop <sebpop@gmail.com>
16181 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
16182 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
16183 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16184 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16186 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
16188 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
16190 2012-06-22 Richard Guenther <rguenther@suse.de>
16192 Merge from graphite branch
16193 2012-01-13 Tobias Grosser <tobias@grosser.es>
16195 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
16196 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
16198 2012-06-07 Jakub Jelinek <jakub@redhat.com>
16200 PR middle-end/53580
16201 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
16202 use GOMP_barrier () call instead.
16203 * testsuite/libgomp.c/pr26943-3.c: Likewise.
16204 * testsuite/libgomp.c/pr26943-4.c: Likewise.
16205 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
16206 call GOMP_barrier instead.
16207 * testsuite/libgomp.fortran/vla5.f90: Likewise.
16209 2012-06-06 Jakub Jelinek <jakub@redhat.com>
16212 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
16213 argument to memset call.
16215 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
16217 * configure: Regenerated.
16219 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
16221 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
16223 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
16226 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
16228 2012-03-22 Jakub Jelinek <jakub@redhat.com>
16230 PR middle-end/52547
16231 * testsuite/libgomp.c/pr52547.c: New test.
16233 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16235 * testsuite/lib/libgomp.exp: load fortran-modules.exp
16237 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16239 * configure.tgt (mips-sgi-irix6*): Remove.
16241 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16243 * configure.tgt (alpha*-dec-osf*): Remove.
16245 * config/osf/sem.h: Remove.
16246 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
16248 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
16250 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
16252 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16255 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
16256 Remove ENABLE_SYMVERS_SOL2.
16257 * configure: Regenerate.
16258 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
16259 (PREPROCESS): New variable.
16260 (libgomp.ver): New target.
16261 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
16262 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
16263 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
16265 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
16266 * Makefile.in: Regenerate.
16268 2012-02-14 Walter Lee <walt@tilera.com>
16270 * configure.tgt: Handle tilegx and tilepro.
16271 * config/linux/tile/futex.h: New file.
16273 2012-02-08 Richard Guenther <rguenther@suse.de>
16275 PR tree-optimization/46886
16276 * testsuite/libgomp.c/pr46886.c: New testcase.
16278 2012-01-25 Matthias Klose <doko@ubuntu.com>
16280 * config/linux/arm: Remove empty directory.
16281 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
16283 2011-12-09 Alan Modra <amodra@gmail.com>
16286 * task.c (GOMP_taskwait): Don't access task->children outside of
16287 task_lock mutex region.
16288 (GOMP_task): Likewise.
16290 2011-12-06 Jakub Jelinek <jakub@redhat.com>
16293 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
16295 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
16296 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
16297 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16298 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16299 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
16301 2011-12-02 Alan Modra <amodra@gmail.com>
16303 * config/linux/affinity.c: Use atomic rather than sync builtin.
16304 * config/linux/lock.c: Likewise.
16305 * config/linux/ptrlock.h: Likewise.
16306 * config/linux/ptrlock.c: Likewise.
16307 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
16308 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
16309 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
16310 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
16311 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
16312 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
16313 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
16314 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
16315 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
16316 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
16318 2011-11-30 Alan Modra <amodra@gmail.com>
16321 * config/linux/bar.h: Use atomic rather than sync builtins.
16322 * config/linux/bar.c: Likewise. Add missing acquire
16323 synchronisation on generation field.
16324 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
16327 2011-11-30 Alan Modra <amodra@gmail.com>
16329 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
16330 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
16331 * config/linux/mutex.h: Use atomic rather than sync builtins.
16332 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
16333 * config/linux/omp-lock.h: Comment fix.
16334 * config/linux/arm/mutex.h: Delete.
16335 * config/linux/powerpc/mutex.h: Delete.
16336 * config/linux/ia64/mutex.h: Delete.
16337 * config/linux/mips/mutex.h: Delete.
16339 2011-11-30 Alan Modra <amodra@gmail.com>
16342 * config/linux/sem.h: Rewrite.
16343 * config/linux/sem.c: Rewrite.
16345 2011-11-28 Richard Henderson <rth@redhat.com>
16347 * libgomp.h (enum memmodel): New.
16349 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
16351 * configure: Regenerate.
16353 2011-10-10 Matthias Klose <doko@ubuntu.com>
16355 * config/posix95: Remove empty directory.
16357 2011-08-26 Jakub Jelinek <jakub@redhat.com>
16359 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
16361 2011-08-19 Jakub Jelinek <jakub@redhat.com>
16364 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
16365 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
16367 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16369 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
16371 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16374 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
16376 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
16378 * config/linux/proc.h: New.
16379 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
16380 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
16381 (gomp_init_num_threads): Update call to cpuset_popcount.
16382 (get_num_procs): Ditto.
16383 * config/linux/affinity.c (gomp_init_affinity): Call
16384 gomp_cpuset_popcount.
16386 2011-08-02 Jakub Jelinek <jakub@redhat.com>
16390 * omp.h.in (omp_in_final): New prototype.
16391 * omp_lib.f90.in (omp_in_final): New interface.
16392 (omp_integer_kind, omp_logical_kind): Remove
16393 and replace all its uses in the module with 4.
16394 (openmp_version): Change to 201107.
16395 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
16396 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
16397 kind for the parameters.
16398 (omp_in_final): New external.
16399 (openmp_version): Change to 201107.
16400 * task.c (omp_in_final): New function.
16401 (gomp_init_task): Initialize final_task.
16402 (GOMP_task): Remove unused attribute from flags. Handle final
16404 (GOMP_taskyield): New function.
16405 (omp_in_final): Return true if if (false) or final (true) task
16406 or descendant of final (true).
16407 * fortran.c (omp_in_final_): New function.
16408 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
16409 (GOMP_3.0): Export GOMP_taskyield.
16410 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
16412 (parse_unsigned_long_list): New function.
16413 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
16414 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
16415 even if parse_affinity returned false.
16416 * config/linux/affinity.c (gomp_init_affinity): Handle
16417 gomp_cpu_affinity_len == 0.
16418 * libgomp_g.h (GOMP_taskyield): New prototype.
16419 * libgomp.h (struct gomp_task): Add final_task field.
16420 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
16421 * team.c (gomp_team_start): Override new task's nthreads_var icv
16422 if list form OMP_NUM_THREADS has been used and it has value for
16423 the new nesting level.
16425 * testsuite/libgomp.c/atomic-11.c: New test.
16426 * testsuite/libgomp.c/atomic-12.c: New test.
16427 * testsuite/libgomp.c/atomic-13.c: New test.
16428 * testsuite/libgomp.c/atomic-14.c: New test.
16429 * testsuite/libgomp.c/reduction-6.c: New test.
16430 * testsuite/libgomp.c/task-5.c: New test.
16431 * testsuite/libgomp.c++/atomic-2.C: New test.
16432 * testsuite/libgomp.c++/atomic-3.C: New test.
16433 * testsuite/libgomp.c++/atomic-4.C: New test.
16434 * testsuite/libgomp.c++/atomic-5.C: New test.
16435 * testsuite/libgomp.c++/atomic-6.C: New test.
16436 * testsuite/libgomp.c++/atomic-7.C: New test.
16437 * testsuite/libgomp.c++/atomic-8.C: New test.
16438 * testsuite/libgomp.c++/atomic-9.C: New test.
16439 * testsuite/libgomp.c++/task-8.C: New test.
16440 * testsuite/libgomp.c++/reduction-4.C: New test.
16441 * testsuite/libgomp.fortran/allocatable7.f90: New test.
16442 * testsuite/libgomp.fortran/allocatable8.f90: New test.
16443 * testsuite/libgomp.fortran/crayptr3.f90: New test.
16444 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
16445 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
16446 * testsuite/libgomp.fortran/pointer1.f90: New test.
16447 * testsuite/libgomp.fortran/pointer2.f90: New test.
16448 * testsuite/libgomp.fortran/task4.f90: New test.
16450 2011-08-02 Tobias Burnus <burnus@net-b.de>
16452 * libgomp.texi: Update OpenMP spec references to 3.1.
16453 (omp_in_final,OMP_PROC_BIND): New sections.
16454 (OMP_NUM_THREADS): Document that the value can be now a list.
16455 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
16457 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
16459 * config/linux/x86/futex.h: Check __x86_64__ instead of
16462 2011-07-29 Jakub Jelinek <jakub@redhat.com>
16464 PR middle-end/49897
16465 PR middle-end/49898
16466 * testsuite/libgomp.c/pr49897-1.c: New test.
16467 * testsuite/libgomp.c/pr49897-2.c: New test.
16468 * testsuite/libgomp.c/pr49898-1.c: New test.
16469 * testsuite/libgomp.c/pr49898-2.c: New test.
16471 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
16473 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
16474 for ia32 instead of ilp32.
16476 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
16477 * testsuite/libgomp.c/atomic-6.c: Likewise.
16479 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
16481 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
16482 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
16484 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16487 * config/osf/sem.h: New file.
16488 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
16490 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16493 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
16496 2011-07-15 Jakub Jelinek <jakub@redhat.com>
16498 * config/linux/wait.h (do_spin): New inline, largely copied
16499 from do_wait, just don't do futex_wait here, instead return true if
16501 (do_wait): Implement using do_spin.
16502 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
16504 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
16505 __sync_bool_compare_and_swap, pass the oldval to
16506 gomp_mutex_lock_slow.
16507 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
16508 If all mutex contenders are just spinning and not sleeping, don't
16509 change state to 2 unnecessarily. Optimize the loop when state has
16510 already become 2 to use just one atomic operation per loop instead
16512 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
16514 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
16515 __sync_bool_compare_and_swap, pass the oldval to
16516 gomp_mutex_lock_slow.
16518 2011-06-22 Jakub Jelinek <jakub@redhat.com>
16521 * iter.c (gomp_iter_static_next): For chunk size 0
16522 only use n ceil/ nthreads size for the first
16523 n % nthreads threads in the team instead of
16524 all threads except for the last few ones which
16525 get less work or none at all.
16526 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
16527 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
16528 chunk argument, set run_sched_modifier to 0 for static
16529 resp. 1 for other kinds. If chunk argument is 0
16530 and not static, set value to 1.
16532 2011-05-19 Jakub Jelinek <jakub@redhat.com>
16535 * testsuite/libgomp.c++/pr49043.C: New test.
16538 * testsuite/libgomp.c++/pr48869.C: New test.
16540 2011-05-06 Jakub Jelinek <jakub@redhat.com>
16543 * fortran.c: Include limits.h.
16545 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
16547 (omp_set_num_threads_8_, omp_set_schedule_8_,
16548 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
16549 omp_get_team_size_8_): Use TO_INT macro.
16550 * testsuite/libgomp.fortran/pr48894.f90: New test.
16552 2011-04-13 Jakub Jelinek <jakub@redhat.com>
16554 PR middle-end/48591
16555 * testsuite/libgomp.c/pr48591.c: New test.
16557 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16560 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
16561 * configure: Regenerate.
16563 2011-02-27 Jakub Jelinek <jakub@redhat.com>
16566 * testsuite/libgomp.fortran/task3.f90: New test.
16568 2011-02-24 Tobias Burnus <burnus@net-b.de>
16570 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
16572 2011-02-23 Jakub Jelinek <jakub@redhat.com>
16575 * libgomp.texi (omp_get_wtime): Don't say time in the past
16576 must be Unix Epoch.
16578 2011-02-18 Jakub Jelinek <jakub@redhat.com>
16581 * testsuite/libgomp.fortran/fortran.exp: Check for both
16582 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
16583 but $blddir != "", still append ${blddir}/${lang_library_path}
16584 to ld_library_path.
16586 2011-02-16 Tobias Burnus <burnus@net-b.de>
16589 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
16590 of libquadmath.a before adding its libpath to ldflags.
16592 2011-02-14 Jakub Jelinek <jakub@redhat.com>
16595 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
16596 to FUTEX_WAIT futex syscall.
16597 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
16599 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16601 * configure: Regenerate.
16603 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
16606 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
16608 2011-01-16 Gerald Pfeifer
16610 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
16612 2010-12-14 Jakub Jelinek <jakub@redhat.com>
16615 * libgomp.fortran/allocatable6.f90: New test.
16617 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16619 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
16620 * configure: Regenerate.
16622 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
16626 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
16627 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
16628 * aclocal.m4: Regenerate.
16629 * configure: Regenerate.
16630 * Makefile.in: Regenerate.
16631 * testsuite/Makefile.in: Regenerate.
16633 2010-12-02 Jakub Jelinek <jakub@redhat.com>
16636 * libgomp.fortran/pr46753.f90: New test.
16639 * env.c (initialize_env): Default to spin count 300000
16640 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
16644 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
16645 at the end if sync builtins aren't supported.
16647 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16649 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
16651 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16653 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
16655 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
16657 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
16659 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16660 Tobias Burnus <burnus@net-b.de>
16664 * configure: Regenerate.
16666 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
16668 * config/linux/futex.h: New.
16669 * config/linux/arm/mutex.h: New.
16670 * configure.tgt (arm*-*-linux*): Add config path.
16672 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
16674 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
16676 2010-09-23 Tobias Burnus <burnus@net-b.de>
16678 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
16679 Change Fortran datatype to LOGICAL.
16680 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
16681 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
16683 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16685 * configure: Regenerate.
16687 2010-07-26 Jakub Jelinek <jakub@redhat.com>
16689 * libgomp.texi: Add function keyword to a couple of Fortran
16690 interfaces, use integer instead of int for Fortran.
16692 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
16694 * libgomp.texi: Fix spelling and pasto problems throughout.
16695 Adjust prototypes to match code.
16697 2010-07-24 Tobias Burnus <burnus@net-b.de>
16699 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
16700 silence -fwhole-file warning.
16702 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16704 * configure.tgt (*-*-solaris2.[56]*): Removed.
16706 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16708 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
16709 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
16710 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
16711 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
16712 targetting solaris2*.
16713 * configure: Regenerate.
16714 * config.h.in: Regenerate.
16716 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
16717 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
16718 Add libgomp_version_dep.
16719 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
16721 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
16722 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
16723 * Makefile.in: Regenerate.
16725 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
16726 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
16727 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
16728 to common block, protected by
16729 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
16731 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
16733 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
16735 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
16738 * configure: Regenerate.
16740 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16743 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
16744 * configure: Regenerate.
16745 * Makefile.in: Regenerate.
16746 * testsuite/Makefile.in: Regenerate.
16748 2010-04-26 Jakub Jelinek <jakub@redhat.com>
16751 * testsuite/libgomp.c/pr43893.c: New test.
16752 * testsuite/libgomp.c++/pr43893.C: New test.
16754 2010-04-21 Jakub Jelinek <jakub@redhat.com>
16756 PR middle-end/43570
16757 * testsuite/libgomp.fortran/vla8.f90: New test.
16759 2010-04-20 Jakub Jelinek <jakub@redhat.com>
16762 * config/linux/affinity.c (gomp_init_affinity): Decrease
16763 gomp_available_cpus if affinity mask confines the process to fewer
16765 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
16766 non-NULL, just return gomp_available_cpus.
16769 * sections.c (gomp_sections_init): Initialize ws->mode.
16771 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
16773 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
16774 not unused bar variable.
16775 * configure: Regenerate.
16777 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16779 * Makefile.in: Regenerate.
16780 * aclocal.m4: Regenerate.
16781 * testsuite/Makefile.in: Regenerate.
16783 2010-03-22 Jakub Jelinek <jakub@redhat.com>
16786 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
16787 (initialize_env): Adjust callers.
16788 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
16789 when the argument is 0.
16791 * testsuite/libgomp.c/pr42942.c: New test.
16793 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
16795 PR middle-end/42644
16796 PR middle-end/42130
16797 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
16798 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
16800 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16802 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
16803 * testsuite/libgomp.c++/task-6.C: Likewise.
16805 2010-01-28 Steve Ellcey <sje@cup.hp.com>
16807 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
16809 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
16811 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
16812 * configure: Regenerate.
16814 2010-01-26 Jakub Jelinek <jakub@redhat.com>
16817 * testsuite/libgomp.fortran/allocatable5.f90: New test.
16819 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
16821 * configure.ac: Test for executability of GFORTRAN.
16822 * configure: Regenerate.
16824 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16826 * configure: Regenerate.
16828 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
16831 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
16833 2010-01-03 Richard Guenther <rguenther@suse.de>
16835 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
16837 2009-12-23 Sebastian Pop <sebpop@gmail.com>
16839 * testsuite/libgomp.graphite/pr4118.c: New.
16841 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
16843 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
16844 for darwin, protect the test with require-effective-target tls_runtime.
16845 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
16847 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
16850 * testsuite/lib/libgomp.exp: Provide -B options to allow for
16851 link spec %s substitutions for static libraries.
16853 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
16856 * libgomp.graphite/force-parallel-2.c: Reduce array size.
16858 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16860 * Makefile.in: Regenerate.
16861 * configure: Regenerate.
16862 * testsuite/Makefile.in: Regenerate.
16864 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
16866 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
16867 settings for LC_ALL and LANG.
16869 2009-11-25 Jakub Jelinek <jakub@redhat.com>
16872 * testsuite/libgomp.fortran/pr42162.f90: New test.
16874 2009-11-13 Jakub Jelinek <jakub@redhat.com>
16876 PR middle-end/42029
16877 * testsuite/libgomp.c/pr42029.c: New test.
16879 2009-10-26 Jakub Jelinek <jakub@redhat.com>
16881 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
16882 *s. Accept ld version without text in ()s.
16883 * configure: Regenerated.
16885 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
16887 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
16889 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16892 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
16893 or a hyphen (happens with fortran language disabled).
16894 * configure: Regenerate.
16896 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16898 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
16899 use sed script portable to Solaris /bin/sed for extracting ld
16901 * configure: Regenerate.
16903 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
16905 * testsuite/libgomp.graphite/bounds.c: New test.
16907 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16909 * Makefile.am (libgomp_la_LINK): New.
16910 * Makefile.in: Regenerate.
16912 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16914 * configure.ac (AC_PREREQ): Bump to 2.64.
16916 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16918 * Makefile.am (install-html, install-pdf): Remove.
16919 * Makefile.in: Regenerate.
16921 * Makefile.in: Regenerate.
16922 * aclocal.m4: Regenerate.
16923 * config.h.in: Regenerate.
16924 * configure: Regenerate.
16925 * testsuite/Makefile.in: Regenerate.
16927 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16929 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
16930 * Makefile.in: Regenerate.
16932 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
16934 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
16935 * Makefile.in: Regenerate.
16937 2009-08-19 Tobias Burnus <burnus@net-b.de>
16940 omp_lib.h.in: Fix -std=f95 errors.
16942 2009-08-14 David Edelsohn <edelsohn@gnu.org>
16944 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
16945 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
16946 * testsuite/libgomp.graphite/graphite.exp: New.
16948 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
16950 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
16953 2009-08-04 David Daney <ddaney@caviumnetworks.com>
16955 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
16956 needed memory barrier semantics.
16957 * config/linux/mips/mutex.h: New file.
16959 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16961 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
16963 2009-07-16 Joseph Myers <joseph@codesourcery.com>
16965 * configure: Regenerate.
16967 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
16972 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
16973 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
16974 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
16976 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
16978 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
16979 options when choosing a multilib.
16981 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
16983 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
16984 ld_library_path. Use add_path. Add just find_libgcc_s to
16985 ld_library_path, not every libgcc multilib directory.
16986 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
16987 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
16988 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
16990 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
16992 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
16994 * Makefile.am (LTLDFLAGS): Define.
16996 * Makefile.in: Regenerate.
16998 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
17001 * testsuite/libgomp.fortran/fortran.exp: Don't link with
17002 libgfortranbegin, check existence of libgfortran.a instead of
17003 libgfortranbegin.a.
17005 2009-05-20 Jakub Jelinek <jakub@redhat.com>
17008 * team.c (gomp_thread_start): Destroy thr->release semaphore.
17009 (gomp_free_pool_helper): Likewise.
17011 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
17012 Jakub Jelinek <jakub@redhat.com>
17015 * testsuite/libgomp.fortran/workshare2.f90: New test.
17017 2009-04-09 Nick Clifton <nickc@redhat.com>
17019 * iter.c: Change copyright header to refer to version 3 of the
17020 GNU General Public License with version 3.1 of the GCC Runtime
17021 Library Exception and to point readers at the COPYING3 and
17022 COPYING3.RUNTIME files and the FSF's license web page.
17023 * alloc.c: Likewise.
17024 * barrier.c: Likewise.
17025 * config/bsd/proc.c: Likewise.
17026 * config/linux/affinity.c: Likewise.
17027 * config/linux/alpha/futex.h: Likewise.
17028 * config/linux/bar.c: Likewise.
17029 * config/linux/bar.h: Likewise.
17030 * config/linux/ia64/futex.h: Likewise.
17031 * config/linux/ia64/mutex.h: Likewise.
17032 * config/linux/lock.c: Likewise.
17033 * config/linux/mips/futex.h: Likewise.
17034 * config/linux/mutex.c: Likewise.
17035 * config/linux/mutex.h: Likewise.
17036 * config/linux/powerpc/futex.h: Likewise.
17037 * config/linux/proc.c: Likewise.
17038 * config/linux/ptrlock.c: Likewise.
17039 * config/linux/ptrlock.h: Likewise.
17040 * config/linux/s390/futex.h: Likewise.
17041 * config/linux/sem.c: Likewise.
17042 * config/linux/sem.h: Likewise.
17043 * config/linux/sparc/futex.h: Likewise.
17044 * config/linux/wait.h: Likewise.
17045 * config/linux/x86/futex.h: Likewise.
17046 * config/mingw32/proc.c: Likewise.
17047 * config/mingw32/time.c: Likewise.
17048 * config/posix/affinity.c: Likewise.
17049 * config/posix/bar.c: Likewise.
17050 * config/posix/bar.h: Likewise.
17051 * config/posix/lock.c: Likewise.
17052 * config/posix/mutex.h: Likewise.
17053 * config/posix/proc.c: Likewise.
17054 * config/posix/ptrlock.h: Likewise.
17055 * config/posix/sem.c: Likewise.
17056 * config/posix/sem.h: Likewise.
17057 * config/posix/time.c: Likewise.
17058 * config/posix95/lock.c: Likewise.
17059 * critical.c: Likewise.
17061 * error.c: Likewise.
17062 * fortran.c: Likewise.
17063 * iter_ull.c: Likewise.
17064 * libgomp.h: Likewise.
17065 * libgomp_f.h.in: Likewise.
17066 * libgomp_g.h: Likewise.
17067 * loop.c: Likewise.
17068 * loop_ull.c: Likewise.
17069 * omp.h.in: Likewise.
17070 * omp_lib.f90.in: Likewise.
17071 * omp_lib.h.in: Likewise.
17072 * ordered.c: Likewise.
17073 * parallel.c: Likewise.
17074 * sections.c: Likewise.
17075 * single.c: Likewise.
17076 * task.c: Likewise.
17077 * team.c: Likewise.
17078 * work.c: Likewise.
17080 2009-04-09 Jakub Jelinek <jakub@redhat.com>
17082 * testsuite/config/default.exp: Change copyright header to refer to
17083 version 3 of the GNU General Public License and to point readers
17084 at the COPYING3 file and the FSF's license web page.
17086 2009-04-08 Jakub Jelinek <jakub@redhat.com>
17088 PR middle-end/39573
17089 * libgomp.c++/pr39573.C: New test.
17091 2009-04-01 Jakub Jelinek <jakub@redhat.com>
17094 * testsuite/libgomp.c/pr39591-1.c: New test.
17095 * testsuite/libgomp.c/pr39591-2.c: New test.
17096 * testsuite/libgomp.c/pr39591-3.c: New test.
17098 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
17100 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
17101 * testsuite/libgomp.c/atomic-6.c: Ditto.
17103 2009-03-23 Jakub Jelinek <jakub@redhat.com>
17106 * testsuite/libgomp.c/loop-12.c: New test.
17107 * testsuite/libgomp.c/loop-11.c: New test.
17108 * testsuite/libgomp.c++/loop-11.C: New test.
17109 * testsuite/libgomp.c++/loop-12.C: New test.
17110 * testsuite/libgomp.c++/for-8.C: New test.
17112 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17114 * configure: Regenerate.
17116 2009-02-11 Jakub Jelinek <jakub@redhat.com>
17118 PR middle-end/39154
17119 * testsuite/libgomp.c/pr39154.c: New test.
17121 2009-01-30 Ian Lance Taylor <iant@google.com>
17123 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
17124 libgomp_ld_is_gold. Get gold version number.
17125 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
17126 * configure: Rebuild.
17128 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
17130 * testsuite/lib/libgomp.exp: Add -B option for targets that
17131 use libgfortran.a%s in their specs.
17133 2009-01-07 Jakub Jelinek <jakub@redhat.com>
17136 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
17137 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
17138 HAVE_AS_SYMVER_DIRECTIVE is not defined.
17139 * configure: Regenerated.
17140 * config.h.in: Likewise.
17142 2008-12-28 Jakub Jelinek <jakub@redhat.com>
17145 * testsuite/libgomp.c/pr38650.c: New test.
17146 * testsuite/libgomp.c++/pr38650.C: New test.
17148 2008-12-27 Jakub Jelinek <jakub@redhat.com>
17150 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
17152 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
17154 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
17156 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17158 * configure: Regenerate.
17160 2008-12-08 Jakub Jelinek <jakub@redhat.com>
17162 PR middle-end/36802
17163 * testsuite/libgomp.c/pr36802-1.c: New test.
17164 * testsuite/libgomp.c/pr36802-2.c: New test.
17165 * testsuite/libgomp.c/pr36802-3.c: New test.
17167 2008-12-01 Janis Johnson <janis187@us.ibm.com>
17170 * config/linux/powerpc/mutex.h: New.
17172 2008-12-01 Jakub Jelinek <jakub@redhat.com>
17175 * testsuite/libgomp.c++/for-7.C: New test.
17178 * testsuite/libgomp.c++/for-6.C: New test.
17180 2008-11-26 Janis Johnson <janis187@us.ibm.com>
17183 * testsuite/lib/libgomp.exp: Include new timeout library files.
17184 (libgomp_target_compile): Set timeout value from new proc.
17186 2008-11-13 Steve Ellcey <sje@cup.hp.com>
17189 * config/linux/ia64/mutex.h: New.
17191 2008-11-04 Tobias Burnus <burnus@net-b.de>
17194 * libgomp.texi (Runtime library routines, environment variables):
17195 Update for OpenMP version 3.0.
17197 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
17198 Steve Ellcey <sje@cup.hp.com>
17200 * configure: Regenerate for new libtool.
17201 * Makefile.in: Ditto.
17202 * testsuite/Makefile.in: Ditto.
17204 2008-09-19 Jakub Jelinek <jakub@redhat.com>
17205 Andreas Tobler <a.tobler@schweiz.org>
17207 * config/bsd/proc.c: New file.
17208 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
17209 * configure.ac: Check for header <sys/sysctl.h>
17210 * configure: Regenerate.
17211 * config.h.in: Likewise.
17213 2008-09-05 Janis Johnson <janis187@us.ibm.com>
17215 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
17217 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
17219 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
17220 * Makefile.in: Regenerated.
17221 * testsuite/Makefile.in: Regenerated.
17223 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
17225 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
17226 depend on blddir if blddir exists.
17227 (libgomp_target_compile): Likewise.
17228 * testsuite/libgomp.c++/c++.exp: Likewise.
17229 * testsuite/libgomp.fortran/fortran.exp: Likewise.
17231 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17233 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
17234 Do not list GPL as Invariant Section.
17236 2008-07-28 Ilie Garbacea <ilie@mips.com>
17237 Chao-ying Fu <fu@mips.com>
17239 * configure.tgt: Enable futex for MIPS.
17240 * config/linux/mips/futex.h: New file.
17242 2008-07-16 Jakub Jelinek <jakub@redhat.com>
17244 * team.c (gomp_team_end): Free team immediately if it has
17247 2008-07-08 David Edelsohn <edelsohn@gnu.org>
17249 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
17250 * testsuite/libgomp.fortran/fortran.exp: Same.
17251 * testsuite/libgomp.c/c.exp: Same.
17252 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
17253 directory to library path first.
17255 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
17257 * env.c (parse_stacksize): Add cast to avoid warning.
17258 (parse_spincount): Likewise.
17260 2008-06-27 Jakub Jelinek <jakub@redhat.com>
17262 * testsuite/libgomp.c/loop-10.c: New test.
17263 * libgomp.c/loop-3.c (main): Add lastprivate clause.
17264 * libgomp.c++/loop-6.C (main): Likewise.
17267 * testsuite/libgomp.c/debug-1.c: New test.
17269 2008-06-19 Jakub Jelinek <jakub@redhat.com>
17271 * testsuite/libgomp.c/nqueens-1.c: New test.
17274 * testsuite/libgomp.c++/task-7.C: New function.
17276 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17278 * configure: Regenerate.
17280 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17282 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
17283 mutex when HAVE_SYNC_BUILTINS isn't defined.
17285 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17287 * libgomp.texi (omp_test_lock): Fix typo.
17289 2008-06-12 Tobias Burnus <burnus@net-b.de>
17291 * omp_lib.f90.in: Add "implicit none".
17293 2008-06-12 Jakub Jelinek <jakub@redhat.com>
17295 PR middle-end/36506
17296 * testsuite/libgomp.c/reduction-5.c: New test.
17298 2008-06-11 Jakub Jelinek <jakub@redhat.com>
17300 * libgomp.h (struct gomp_task): Add in_tied_task field.
17301 * task.c (gomp_init_task): Initialize it.
17302 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
17303 unconditionally. Don't call gomp_team_barrier_wake if
17304 current task is implicit or if(0) from implicit and number of
17305 running tasks is equal to nthreads - 1.
17308 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
17309 omp_get_team_size_8): Fix pastos.
17312 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
17313 * configure: Regenerated.
17314 * config.h.in: Regenerated.
17315 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
17318 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
17321 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
17322 (GOMP_loop_ull_dynamic_start): Likewise.
17323 (GOMP_loop_ull_guided_start): Likewise.
17324 (GOMP_loop_ull_ordered_static_start): Likewise.
17325 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
17326 (GOMP_loop_ull_ordered_guided_start): Likewise.
17328 2008-06-06 Jakub Jelinek <jakub@redhat.com>
17329 Richard Henderson <rth@redhat.com>
17330 Ulrich Drepper <drepper@redhat.com>
17331 Jakob Blomer <jakob.blomer@ira.uka.de>
17333 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
17334 Substitute also OMP_*LOCK_25*.
17335 * configure: Regenerated.
17336 * config.h.in: Regenerated.
17337 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
17338 ptrlock.c and task.c.
17339 * Makefile.in: Regenerated.
17340 * testsuite/Makefile.in: Regenerated.
17341 * task.c: New file.
17342 * loop_ull.c: New file.
17343 * iter_ull.c: New file.
17344 * libgomp.h: Include ptrlock.h.
17345 (enum gomp_task_kind): New type.
17346 (struct gomp_team): Add task_lock, task_queue, task_count,
17347 task_running_count, single_count fields. Add
17348 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
17349 Remove work_share_lock, generation_mask,
17350 oldest_live_gen, num_live_gen and init_work_shares fields, add
17351 work work_share_list_alloc, work_share_list_free and work_share_chunk
17352 fields. Change work_shares from pointer to pointers into an array.
17353 Change ordered_release field into gomp_sem_t ** from flexible array
17354 member. Add implicit_task and initial_work_shares fields.
17355 Move close to the end of the struct.
17356 (struct gomp_team_state): Add single_count, last_work_share,
17357 active_level and level fields, remove work_share_generation.
17358 (gomp_barrier_handle_tasks): New prototype.
17359 (gomp_finish_task): New inline function.
17360 (struct gomp_work_share): Move chunk_size, end, incr into
17361 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
17362 next_ll fields. Reshuffle fields. Add next_alloc,
17363 next_ws, next_free and inline_ordered_team_ids fields, change
17364 ordered_team_ids into pointer from flexible array member.
17365 Add mode field. Put lock and next into a different cache line
17366 from most of the write-once fields.
17367 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
17368 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
17369 gomp_iter_ull_guided_next): New prototypes.
17370 (gomp_new_icv): New prototype.
17371 (struct gomp_thread): Add thread_pool and task fields.
17372 (struct gomp_thread_pool): New type.
17373 (gomp_new_team): New prototype.
17374 (gomp_team_start): Change type of last argument.
17375 (gomp_new_work_share): Removed.
17376 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
17377 (gomp_work_share_init_done): New static inline.
17378 (gomp_throttled_spin_count_var, gomp_available_cpus,
17379 gomp_managed_threads): New extern decls.
17380 (gomp_init_task): New prototype.
17381 (gomp_spin_count_var): New extern var decl.
17382 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
17383 or no alias support, or if not PIC.
17384 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
17385 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
17386 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
17387 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
17388 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
17389 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
17390 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
17391 gomp_test_nest_lock_25): New prototypes.
17392 (omp_lock_symver, strong_alias): Define.
17393 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
17395 (gomp_end_task): New.
17396 (struct gomp_task_icv, gomp_global_icv): New.
17397 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
17398 (struct gomp_task): New.
17399 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
17400 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
17402 (gomp_schedule_type): Reorder enum to match
17404 * team.c (struct gomp_thread_start_data): Add thread_pool and task
17406 (gomp_thread_start): Add gomp_team_barrier_wait call.
17407 For non-nested case remove clearing of docked thread thr fields.
17408 Use pool fields instead of global gomp_* variables. Use
17409 gomp_barrier_wait_last when needed. Initialize ts.active_level.
17410 Create tasks for each member thread.
17411 (free_team): Only destroy team barrier, task_lock here and free it.
17412 (gomp_free_thread): Free last_team if non-NULL.
17413 (gomp_team_end): Call gomp_team_barrier_wait instead of
17414 gomp_barrier_wait. For nested case call one extra
17415 gomp_barrier_wait. Move here some destruction from free_team.
17416 Call free_team on pool->last_team if any, rather than freeing
17417 current team. Destroy work_share_list_free_lock ifndef
17418 HAVE_SYNC_BUILTINS.
17419 (gomp_new_icv): New function.
17420 (gomp_threads, gomp_threads_size, gomp_threads_used,
17421 gomp_threads_dock): Removed.
17422 (gomp_thread_destructor): New variable.
17423 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
17425 (gomp_team_start): Create new pool if current thread doesn't have
17426 one. Use pool fields instead of global gomp_* variables.
17427 Initialize thread_pool field for new threads. Clear single_count.
17428 Change last argument from ws to team, don't create
17429 new team, set ts.work_share to &team->work_shares[0] and clear
17430 ts.last_work_share. Don't clear ts.work_share_generation.
17431 If number of threads changed, adjust atomically gomp_managed_threads.
17432 Use gomp_init_task instead of gomp_new_task,
17433 set thr->task to the corresponding implicit_task array entry.
17434 Create tasks for each member thread. Initialize ts.level.
17435 (initialize_team): Call pthread_key_create on
17436 gomp_thread_destructor.
17437 (team_destructor): New function.
17438 (new_team): Removed.
17439 (gomp_new_team): New function.
17440 (free_team): Free gomp_work_share blocks chained through next_alloc,
17441 instead of freeing work_shares and destroying work_share_lock.
17442 (gomp_team_end): Call gomp_fini_work_share. If number of threads
17443 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
17444 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
17445 of gomp_barrier_wait.
17446 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
17447 instead of gomp_barrier_wait. Call gomp_work_share_init_done
17448 if gomp_work_share_start returned true. Don't unlock ws->lock.
17449 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
17450 of gomp_barrier_wait.
17451 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
17452 gomp_work_share_init_done if gomp_work_share_start returned true.
17453 Don't unlock ws->lock.
17454 * work.c: Include stddef.h.
17455 (free_work_share): Use work_share_list_free_lock instead
17456 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
17457 Call gomp_fini_work_share and then either free ws if orphaned, or
17458 put it into work_share_list_free list of the current team.
17459 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
17461 (gomp_work_share_start, gomp_work_share_end,
17462 gomp_work_share_end_nowait): Rewritten.
17463 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
17464 (openmp_version): Set to 200805.
17465 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
17466 omp_sched_guided, omp_sched_auto): New parameters.
17467 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
17468 omp_set_max_active_levels, omp_get_max_active_levels,
17469 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
17470 omp_get_active_level): New interfaces.
17471 * omp_lib.h.in (openmp_version): Set to 200805.
17472 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
17473 omp_sched_guided, omp_sched_auto): New parameters.
17474 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
17475 omp_set_max_active_levels, omp_get_max_active_levels,
17476 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
17477 omp_get_active_level): New externals.
17478 * loop.c: Include limits.h.
17479 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
17481 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
17482 Likewise. Use gomp_icv.
17483 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
17484 ts.static_trip here.
17485 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
17486 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
17487 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
17488 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
17489 don't unlock ws->lock, otherwise lock it.
17490 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
17491 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
17492 (gomp_parallel_loop_start): Call gomp_new_team instead of
17493 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
17494 Adjust gomp_team_start caller. Pass 0 as second argument to
17495 gomp_resolve_num_threads.
17496 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
17497 If adding ws->chunk_size nthreads + 1 times after end won't
17498 overflow, set ws->mode to 1.
17499 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
17500 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
17501 GOMP_loop_ull_ordered_static_start,
17502 GOMP_loop_ull_ordered_dynamic_start,
17503 GOMP_loop_ull_ordered_guided_start,
17504 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
17505 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
17506 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
17507 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
17508 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
17510 * libgomp.map: Export lock routines also @@OMP_2.0.
17511 (GOMP_loop_ordered_dynamic_first,
17512 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
17513 GOMP_loop_ordered_static_first): Remove.
17514 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
17515 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
17516 GOMP_loop_ull_ordered_dynamic_next,
17517 GOMP_loop_ull_ordered_dynamic_start,
17518 GOMP_loop_ull_ordered_guided_next,
17519 GOMP_loop_ull_ordered_guided_start,
17520 GOMP_loop_ull_ordered_runtime_next,
17521 GOMP_loop_ull_ordered_runtime_start,
17522 GOMP_loop_ull_ordered_static_next,
17523 GOMP_loop_ull_ordered_static_start,
17524 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
17525 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
17526 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
17527 (omp_set_schedule, omp_get_schedule,
17528 omp_get_thread_limit, omp_set_max_active_levels,
17529 omp_get_max_active_levels, omp_get_level,
17530 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
17531 omp_set_schedule_, omp_set_schedule_8_,
17532 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
17533 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
17534 omp_get_max_active_levels_, omp_get_level_,
17535 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
17536 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
17537 New exports @@OMP_3.0.
17538 * omp.h.in (omp_sched_t): New type.
17539 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
17540 omp_set_max_active_levels, omp_get_max_active_levels,
17541 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
17542 omp_get_active_level): New prototypes.
17543 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
17544 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
17545 gomp_thread_limit_var, gomp_remaining_threads_count,
17546 gomp_remaining_threads_lock): New variables.
17547 (parse_spincount): New function.
17548 (initialize_env): Call gomp_init_num_threads unconditionally.
17549 Initialize gomp_available_cpus. Call parse_spincount,
17550 initialize gomp_{,throttled_}spin_count_var
17551 depending on presence and value of OMP_WAIT_POLICY and
17552 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
17553 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
17554 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
17555 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
17556 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
17557 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
17558 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
17559 (gomp_global_icv): New.
17560 (parse_schedule): Use it. Parse "auto".
17561 (omp_set_num_threads): Use gomp_icv.
17562 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
17564 (omp_get_max_threads): Move from parallel.c.
17565 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
17566 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
17568 (parse_stacksize, parse_wait_policy): New functions.
17569 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
17570 both wrappers for compatibility and new locks.
17571 (omp_set_schedule, omp_get_schedule,
17572 omp_get_thread_limit, omp_set_max_active_levels,
17573 omp_get_max_active_levels, omp_get_level,
17574 omp_get_ancestor_thread_num, omp_get_team_size,
17575 omp_get_active_level): New ialias_redirect.
17576 (omp_set_schedule_, omp_set_schedule_8_,
17577 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
17578 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
17579 omp_get_max_active_levels_, omp_get_level_,
17580 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
17581 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
17583 * parallel.c: Include limits.h.
17584 (gomp_resolve_num_threads): Add count argument. Rewritten.
17585 (GOMP_parallel_start): Call gomp_new_team and pass that as last
17586 argument to gomp_team_start. Pass 0 as second argument to
17587 gomp_resolve_num_threads.
17588 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
17589 if gomp_thread_limit_var != ULONG_MAX.
17590 (omp_in_parallel): Implement using ts.active_level.
17591 (omp_get_max_threads): Move to env.c.
17592 (omp_get_level, omp_get_ancestor_thread_num,
17593 omp_get_team_size, omp_get_active_level): New functions,
17595 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
17596 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
17597 gomp_iter_dynamic_next instead of the _locked variant and don't take
17598 lock around it, otherwise acquire it before calling
17599 gomp_iter_dynamic_next_locked.
17600 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
17601 gomp_iter_dynamic_next instead of the _locked variant and don't take
17603 (GOMP_parallel_sections_start): Call gomp_new_team instead of
17604 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
17605 Adjust gomp_team_start caller. Pass count as second argument to
17606 gomp_resolve_num_threads, don't adjust num_threads after the call.
17608 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
17609 ws->chunk_size by incr.
17610 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
17612 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
17614 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
17615 (omp_check_defines): Check even the compat defines.
17616 * config/linux/ptrlock.c: New file.
17617 * config/linux/ptrlock.h: New file.
17618 * config/linux/wait.h: New file.
17619 * config/posix/ptrlock.c: New file.
17620 * config/posix/ptrlock.h: New file.
17621 * config/linux/bar.h (gomp_team_barrier_wait,
17622 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
17623 (gomp_team_barrier_set_task_pending,
17624 gomp_team_barrier_clear_task_pending,
17625 gomp_team_barrier_set_waiting_for_tasks,
17626 gomp_team_barrier_waiting_for_tasks,
17627 gomp_team_barrier_done): New inlines.
17628 (gomp_barrier_t): Rewritten.
17629 (gomp_barrier_state_t): New typedef.
17630 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
17631 gomp_barrier_wait_start): Rewritten.
17632 (gomp_barrier_wait_end): Change second argument to
17633 gomp_barrier_state_t.
17634 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
17636 * config/linux/bar.c: Include wait.h instead of libgomp.h and
17638 (gomp_barrier_wait_end): Rewritten.
17639 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
17640 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
17641 * config/posix/bar.h (gomp_barrier_t): Add generation field.
17642 (gomp_barrier_state_t): New typedef.
17643 (gomp_team_barrier_wait,
17644 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
17645 (gomp_barrier_wait_start): Or all but low 2 bits from generation
17646 into the return value. Return gomp_barrier_state_t.
17647 (gomp_team_barrier_set_task_pending,
17648 gomp_team_barrier_clear_task_pending,
17649 gomp_team_barrier_set_waiting_for_tasks,
17650 gomp_team_barrier_waiting_for_tasks,
17651 gomp_team_barrier_done): New inlines.
17652 (gomp_barrier_wait_end): Change second argument to
17653 gomp_barrier_state_t.
17654 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
17656 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
17657 (gomp_barrier_wait_end): Change second argument to
17658 gomp_barrier_state_t.
17659 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
17660 gomp_team_barrier_wake): New functions.
17661 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
17663 (gomp_futex_wake, gomp_futex_wait): New variables.
17664 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
17665 * config/linux/lock.c: Rewrite to make locks task owned,
17666 for backwards compatibility provide the old entrypoints
17667 if symbol versioning. Include wait.h instead of libgomp.h and
17669 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
17670 * config/posix95/lock.c: Rewrite to make locks task owned,
17671 for backwards compatibility provide the old entrypoints
17672 if symbol versioning.
17673 * config/posix/lock.c: Rewrite to make locks task owned,
17674 for backwards compatibility provide the old entrypoints
17675 if symbol versioning.
17676 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
17677 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
17678 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
17679 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17680 (sys_futex0): Return error code.
17681 (futex_wake, futex_wait): If ENOSYS was returned, clear
17682 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17683 (cpu_relax, atomic_write_barrier): New static inlines.
17684 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17685 (futex_wake, futex_wait): If ENOSYS was returned, clear
17686 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17687 (cpu_relax, atomic_write_barrier): New static inlines.
17688 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17689 (sys_futex0): Return error code.
17690 (futex_wake, futex_wait): If ENOSYS was returned, clear
17691 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17692 (cpu_relax, atomic_write_barrier): New static inlines.
17693 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17694 (sys_futex0): Return error code.
17695 (futex_wake, futex_wait): If ENOSYS was returned, clear
17696 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17697 (cpu_relax, atomic_write_barrier): New static inlines.
17698 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17699 (sys_futex0): Return error code.
17700 (futex_wake, futex_wait): If ENOSYS was returned, clear
17701 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17702 (cpu_relax, atomic_write_barrier): New static inlines.
17703 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17704 (sys_futex0): Return error code.
17705 (futex_wake, futex_wait): If ENOSYS was returned, clear
17706 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17707 (cpu_relax, atomic_write_barrier): New static inlines.
17708 * config/linux/sem.c: Include wait.h instead of libgomp.h and
17710 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
17711 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
17712 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
17714 (omp_nest_lock_t): Change owner into void *, add lock field.
17715 * config/posix95/omp-lock.h: Include semaphore.h.
17716 (omp_lock_25_t, omp_nest_lock_25_t): New types.
17717 (omp_lock_t): Use sem_t instead of mutex if semaphores
17719 (omp_nest_lock_t): Likewise. Change owner to void *.
17720 * config/posix/omp-lock.h: Include semaphore.h.
17721 (omp_lock_25_t, omp_nest_lock_25_t): New types.
17722 (omp_lock_t): Use sem_t instead of mutex if semaphores
17724 (omp_nest_lock_t): Likewise. Add owner field.
17726 2008-06-06 Jakub Jelinek <jakub@redhat.com>
17728 * testsuite/libgomp.c/collapse-1.c: New test.
17729 * testsuite/libgomp.c/collapse-2.c: New test.
17730 * testsuite/libgomp.c/collapse-3.c: New test.
17731 * testsuite/libgomp.c/icv-1.c: New test.
17732 * testsuite/libgomp.c/icv-2.c: New test.
17733 * testsuite/libgomp.c/lib-2.c: New test.
17734 * testsuite/libgomp.c/lock-1.c: New test.
17735 * testsuite/libgomp.c/lock-2.c: New test.
17736 * testsuite/libgomp.c/lock-3.c: New test.
17737 * testsuite/libgomp.c/loop-4.c: New test.
17738 * testsuite/libgomp.c/loop-5.c: New test.
17739 * testsuite/libgomp.c/loop-6.c: New test.
17740 * testsuite/libgomp.c/loop-7.c: New test.
17741 * testsuite/libgomp.c/loop-8.c: New test.
17742 * testsuite/libgomp.c/loop-9.c: New test.
17743 * testsuite/libgomp.c/nested-3.c: New test.
17744 * testsuite/libgomp.c/nestedfn-6.c: New test.
17745 * testsuite/libgomp.c/sort-1.c: New test.
17746 * testsuite/libgomp.c/task-1.c: New test.
17747 * testsuite/libgomp.c/task-2.c: New test.
17748 * testsuite/libgomp.c/task-3.c: New test.
17749 * testsuite/libgomp.c/task-4.c: New test.
17750 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
17751 to C++ testsuite default compiler options.
17752 * testsuite/libgomp.c++/collapse-1.C: New test.
17753 * testsuite/libgomp.c++/collapse-2.C: New test.
17754 * testsuite/libgomp.c++/ctor-10.C: New test.
17755 * testsuite/libgomp.c++/for-1.C: New test.
17756 * testsuite/libgomp.c++/for-2.C: New test.
17757 * testsuite/libgomp.c++/for-3.C: New test.
17758 * testsuite/libgomp.c++/for-4.C: New test.
17759 * testsuite/libgomp.c++/for-5.C: New test.
17760 * testsuite/libgomp.c++/loop-8.C: New test.
17761 * testsuite/libgomp.c++/loop-9.C: New test.
17762 * testsuite/libgomp.c++/loop-10.C: New test.
17763 * testsuite/libgomp.c++/task-1.C: New test.
17764 * testsuite/libgomp.c++/task-2.C: New test.
17765 * testsuite/libgomp.c++/task-3.C: New test.
17766 * testsuite/libgomp.c++/task-4.C: New test.
17767 * testsuite/libgomp.c++/task-5.C: New test.
17768 * testsuite/libgomp.c++/task-6.C: New test.
17769 * testsuite/libgomp.fortran/allocatable1.f90: New test.
17770 * testsuite/libgomp.fortran/allocatable2.f90: New test.
17771 * testsuite/libgomp.fortran/allocatable3.f90: New test.
17772 * testsuite/libgomp.fortran/allocatable4.f90: New test.
17773 * testsuite/libgomp.fortran/collapse1.f90: New test.
17774 * testsuite/libgomp.fortran/collapse2.f90: New test.
17775 * testsuite/libgomp.fortran/collapse3.f90: New test.
17776 * testsuite/libgomp.fortran/collapse4.f90: New test.
17777 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
17778 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
17779 * testsuite/libgomp.fortran/lib4.f90: New test.
17780 * testsuite/libgomp.fortran/lock-1.f90: New test.
17781 * testsuite/libgomp.fortran/lock-2.f90: New test.
17782 * testsuite/libgomp.fortran/nested1.f90: New test.
17783 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
17784 * testsuite/libgomp.fortran/strassen.f90: New test.
17785 * testsuite/libgomp.fortran/tabs1.f90: New test.
17786 * testsuite/libgomp.fortran/tabs2.f: New test.
17787 * testsuite/libgomp.fortran/task1.f90: New test.
17788 * testsuite/libgomp.fortran/task2.f90: New test.
17789 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
17790 * testsuite/libgomp.fortran/vla5.f90: Likewise.
17791 * testsuite/libgomp.c/pr26943-2.c: Likewise.
17792 * testsuite/libgomp.c/pr26943-3.c: Likewise.
17793 * testsuite/libgomp.c/pr26943-4.c: Likewise.
17795 2008-05-23 Jakub Jelinek <jakub@redhat.com>
17798 * testsuite/libgomp.c++/ctor-11.C: New test.
17799 * testsuite/libgomp.c++/ctor-12.C: New test.
17801 2008-05-15 Janis Johnson <janis187@us.ibm.com>
17803 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
17805 2008-05-07 Jakub Jelinek <jakub@redhat.com>
17807 PR middle-end/36106
17808 * testsuite/libgomp.c/atomic-5.c: New test.
17809 * testsuite/libgomp.c/atomic-6.c: New test.
17810 * testsuite/libgomp.c/autopar-1.c: New test.
17812 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17814 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
17815 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
17816 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
17817 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
17818 * configure: Regenerate.
17819 * Makefile.in, testsuite/Makefile.in: Likewise.
17821 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
17824 * aclocal.m4: Regenerate.
17825 * configure: Regenerate.
17827 2008-03-18 Jakub Jelinek <jakub@redhat.com>
17829 PR middle-end/35611
17830 * testsuite/libgomp.c/atomic-4.c: New test.
17833 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
17834 (gomp_iter_guided_next): Likewise.
17835 * testsuite/libgomp.c/pr35625.c: New test.
17837 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17839 * aclocal.m4: Regenerate.
17840 * configure: Likewise.
17841 * Makefile.in: Likewise.
17842 * testsuite/Makefile.in: Likewise.
17844 2008-03-13 Jakub Jelinek <jakub@redhat.com>
17846 PR middle-end/35185
17847 * testsuite/libgomp.c++/pr35185.C: New test.
17849 2008-03-12 Jakub Jelinek <jakub@redhat.com>
17851 PR middle-end/35549
17852 * testsuite/libgomp.c/pr35549.c: New test.
17854 2008-03-06 Jakub Jelinek <jakub@redhat.com>
17856 * testsuite/libgomp.c/atomic-3.c: New test.
17858 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17861 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
17862 .F08 file suffixes.
17864 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
17867 * configure.ac: Add ACX_HEADER_STRING.
17868 * env.c: Include strings.h.
17869 * aclocal.m4: Regenerate.
17870 * config.h.in: Regenerate.
17871 * configure: Regenerate.
17872 * Makefile.in: Regenerate.
17873 * testsuite/Makefile.in: Regenerate.
17875 2008-02-15 Jakub Jelinek <jakub@redhat.com>
17877 PR middle-end/35196
17878 * testsuite/libgomp.c/pr35196.c: New test.
17880 PR middle-end/35130
17881 * testsuite/libgomp.fortran/pr35130.f90: New test.
17882 * testsuite/libgomp.c/pr35130.c: New test.
17884 2008-01-25 Jakub Jelinek <jakub@redhat.com>
17886 PR middle-end/33880
17887 * testsuite/libgomp.c/pr33880.c: New test.
17888 * testsuite/libgomp.fortran/pr33880.f90: New test.
17890 2008-01-24 David Edelsohn <edelsohn@gnu.org>
17892 * configure: Regenerate.
17894 2008-01-08 Jakub Jelinek <jakub@redhat.com>
17896 * configure.ac: Move futex checking into ../config/futex.m4.
17897 * configure: Rebuilt.
17898 * aclocal.m4: Rebuilt.
17899 * Makefile.in: Rebuilt.
17901 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
17902 2007-10-15 ../config/tls.m4 change.
17904 2007-12-19 Jakub Jelinek <jakub@redhat.com>
17907 * testsuite/libgomp.c/pr34513.c: New test.
17908 * testsuite/libgomp.c++/pr34513.C: New test.
17910 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
17913 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
17915 2007-12-04 Jakub Jelinek <jakub@redhat.com>
17917 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
17919 2007-12-03 Jakub Jelinek <jakub@redhat.com>
17921 * testsuite/libgomp.c/private-1.c: New test.
17923 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
17924 Paolo Bonzini <bonzini@gnu.org>
17926 * Makefile.am: Use space as vpath separator. Use 'vpath %'
17927 instead of 'VPATH ='.
17928 * Makefile.in: Regenerate.
17930 2007-11-23 Matthias Klose <doko@ubuntu.com>
17932 * configure.ac: Adjust makeinfo version check.
17933 * configure: Regenerate.
17935 2007-11-10 Jakub Jelinek <jakub@redhat.com>
17938 * testsuite/libgomp.fortran/pr34020.f90: New test.
17940 2007-11-06 Jakub Jelinek <jakub@redhat.com>
17943 * testsuite/libgomp.c++/atomic-1.C: New test.
17945 2007-10-25 Jakub Jelinek <jakub@redhat.com>
17948 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
17949 Make x and y integers rather than (implicit) reals. Add private (j)
17950 clause to the last omp parallel.
17952 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
17954 * configure: Regenerate following changes to ../config/tls.m4.
17956 2007-09-28 Jakub Jelinek <jakub@redhat.com>
17958 * testsuite/libgomp.fortran/stack.f90: New test.
17960 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
17962 * config/mingw32/proc.c: New file.
17964 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
17966 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
17967 (main): Use __get_cpuid to get i386 target fetaures.
17968 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
17969 (main): Use __get_cpuid to get x86_64 target fetaures.
17971 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
17974 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
17975 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
17977 2007-07-12 Jakub Jelinek <jakub@redhat.com>
17980 * testsuite/libgomp.fortran/pr32550.f90: New test.
17981 * testsuite/libgomp.fortran/crayptr2.f90: New test.
17983 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
17985 * aclocal.m4: Regenerated.
17987 2007-07-05 Tobias Burnus <burnus@net-b.de>
17990 * testsuite/libgomp.fortran/pr32359.f90: New.
17992 2007-07-02 Jakub Jelinek <jakub@redhat.com>
17995 * sections.c (GOMP_parallel_sections_start): Only decrease
17996 number of threads to COUNT if dyn_var is true.
17997 * testsuite/libgomp.c/pr32468.c: New test.
17999 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18002 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
18004 2007-06-21 Jakub Jelinek <jakub@redhat.com>
18006 PR middle-end/32362
18007 * testsuite/libgomp.c/pr32362-1.c: New test.
18008 * testsuite/libgomp.c/pr32362-2.c: New test.
18009 * testsuite/libgomp.c/pr32362-3.c: New test.
18011 2007-06-07 Jakub Jelinek <jakub@redhat.com>
18013 * team.c (gomp_team_start): Fix setting up thread_attr
18016 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
18018 * configure: Regenerate.
18020 2007-05-23 Steve Ellcey <sje@cup.hp.com>
18022 * Makefile.in: Regenerate.
18023 * configure: Regenerate.
18024 * aclocal.m4: Regenerate.
18025 * testsuite/Makefile.in: Regenerate.
18027 2007-05-04 Jakub Jelinek <jakub@redhat.com>
18029 * config/linux/proc.c: New file.
18032 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
18034 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
18036 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
18038 2007-04-16 Matthias Klose <doko@debian.org>
18040 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
18041 flags if not building with -m64.
18042 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
18043 flag for i?86-*-* targets, if current target matches -m64.
18045 2007-04-14 Steve Ellcey <sje@cup.hp.com>
18047 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
18048 * Makefile.in: Regenerate.
18050 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18053 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
18055 * testsuite/libgomp.fortran/fortran.exp: Likewise.
18057 2007-04-04 Jakub Jelinek <jakub@redhat.com>
18059 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
18061 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
18062 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
18063 (parse_affinity): New function.
18064 (initialize_env): Call it and gomp_init_affinity.
18065 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
18066 create new pthread_attr_t and call gomp_init_thread_affinity
18067 on it for each thread before passing the attribute to pthread_create.
18068 * config/linux/affinity.c: New file.
18069 * config/posix/affinity.c: New file.
18070 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
18071 * configure: Rebuilt.
18072 * config.h.in: Rebuilt.
18073 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
18074 * Makefile.in: Rebuilt.
18076 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
18078 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
18080 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
18081 and use it if found.
18083 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
18085 * testsuite/config/default.exp: New file.
18086 * testsuite/lib/libgomp.exp: New file.
18087 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
18088 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
18089 load_lib *, load_gcc_lib *): Move to libgomp.exp.
18090 (libgomp_load): Remove.
18091 * testsuite/lib/libgomp.exp (libgomp_init): Compute
18092 always_ld_library_path, not ld_library_path. Set additional_flags
18093 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
18094 (target_compile): Do not call libgomp_init. Append lang_library_path
18095 and lang_link_flags to options.
18096 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
18097 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
18099 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
18100 always_ld_library_path. Set LD_LIBRARY_PATH here.
18101 * testsuite/libgomp.fortran/fortran.exp: Ditto.
18102 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
18103 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
18105 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
18106 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
18107 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
18108 * testsuite/libgomp.c/pr29947-1.c: Ditto.
18109 * testsuite/libgomp.c/atomic-10.c: Ditto.
18111 2007-03-21 Jakub Jelinek <jakub@redhat.com>
18113 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
18114 dg-final cleanup-modules line.
18115 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
18116 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
18117 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
18118 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
18119 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
18120 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
18121 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
18123 2007-03-18 Andreas Schwab <schwab@suse.de>
18125 * acinclude.m4: Adjust regular expression for ld version
18127 * configure: Regenerate.
18129 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
18131 * Makefile.am: Add install-pdf target as copied from
18132 automake v1.10 rules.
18133 * Makefile.in: Regenerate
18135 2007-02-07 Jakub Jelinek <jakub@redhat.com>
18138 * configure: Regenerate.
18141 * testsuite/libgomp.c++/pr30703.C: New test.
18143 2007-02-02 Jakub Jelinek <jakub@redhat.com>
18146 2006-07-05 Eric Christopher <echristo@apple.com>
18147 * configure.ac: Depend addition of -pthread on host OS.
18148 * configure: Regenerate.
18150 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18152 * libgomp.texi: Fix spacing after abbreviations.
18154 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
18157 * configure.ac: Add check for makeinfo
18158 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
18159 if an appropriate version of makeinfo is found.
18160 * aclocal.m4: Regenerated.
18161 * configure: Regenerated.
18162 * Makefile.in: Regenerated.
18163 * testsuite/Makefile.in: Regenerated.
18165 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
18168 * libgomp.texi: More about implementation-dependent settings.
18170 2007-01-26 Tobias Burnus <burnus@net-b.de>
18172 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
18174 2007-01-24 Jakub Jelinek <jakub@redhat.com>
18176 PR middle-end/30494
18177 * testsuite/libgomp.c/pr30494.c: New test.
18179 2007-01-15 Tom Tromey <tromey@redhat.com>
18181 * configure: Rebuilt.
18182 * configure.ac: Fixed comment.
18184 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
18186 * libgomp.texi: Document implementation specific default values of
18187 environment variables.
18189 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
18192 * libgomp.texi: New file.
18193 * configure.ac: Add --enable-generated-files-in-srcdir option.
18194 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
18196 * Makefile.in: Regenerated.
18197 * config.h.in: Regenerated.
18198 * testsuite/Makefile.in: Regenerated.
18201 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
18204 * env.c (omp_set_num_threads): Set illegal thread count to 1.
18206 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
18208 * configure: Regenerate.
18210 2006-12-04 Jakub Jelinek <jakub@redhat.com>
18213 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
18214 start if there shouldn't be any loop iterations.
18215 (gomp_loop_ordered_static_start): Remove start == end test.
18216 * testsuite/libgomp.c/pr29947-1.c: New test.
18217 * testsuite/libgomp.c/pr29947-2.c: New test.
18219 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
18221 * configure.tgt: Force initial-exec TLS model on Linux only.
18223 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
18225 * configure: Regenerated.
18227 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
18229 * env.c (parse_schedule): Reject out of range values.
18230 (parse_unsigned_long): Reject out of range, negative or zero values.
18232 2006-10-29 Jakub Jelinek <jakub@redhat.com>
18235 * testsuite/libgomp.fortran/pr29629.f90: New test.
18237 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
18240 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
18241 * config/posix95: New directory.
18242 * config/posix95/omp-lock.h: New file.
18243 * config/posix95/lock.c: Likewise.
18245 2006-10-14 Geoffrey Keating <geoffk@apple.com>
18247 * aclocal.m4: Regenerate.
18248 * configure: Regenerate.
18250 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
18252 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
18255 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
18257 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
18259 * configure: Regenerate.
18260 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
18262 2006-09-26 Jakub Jelinek <jakub@redhat.com>
18264 PR middle-end/25261
18265 PR middle-end/28790
18266 * testsuite/libgomp.c/nestedfn-4.c: New test.
18267 * testsuite/libgomp.c/nestedfn-5.c: New test.
18268 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
18271 * testsuite/libgomp.fortran/condinc1.f: New test.
18272 * testsuite/libgomp.fortran/condinc2.f: New test.
18273 * testsuite/libgomp.fortran/condinc3.f90: New test.
18274 * testsuite/libgomp.fortran/condinc4.f90: New test.
18275 * testsuite/libgomp.fortran/condinc1.inc: New file.
18277 2006-09-18 Tom Tromey <tromey@redhat.com>
18279 * configure: Rebuilt.
18281 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
18284 PR preprocessor/14634
18285 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
18287 * configure: Regenerate.
18289 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
18291 * testsuite/libgomp.fortran/reduction3.f90: Change
18292 -2147483648 to -huge(i)-1 to avoid overflow.
18293 * testsuite/libgomp.fortran/reduction4.f90: Change
18294 Z'ffffffff' to not(0) to avoid overflow.
18296 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
18299 * Makefile.am (libsubincludedir): New.
18300 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
18301 * Makefile.in: Regenerate.
18303 2006-08-17 Jakub Jelinek <jakub@redhat.com>
18306 * env.c: Include ctype.h.
18307 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
18308 leading and/or trailing whitespace and compare strings case
18311 2006-07-16 Jakub Jelinek <jakub@redhat.com>
18314 * testsuite/libgomp.fortran/pr28390.f: New test.
18316 2006-07-05 Eric Christopher <echristo@apple.com>
18318 * configure.ac: Depend addition of -pthread on host OS.
18319 * configure: Regenerate.
18321 2006-06-21 Jakub Jelinek <jakub@redhat.com>
18323 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
18324 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
18327 2006-06-20 Jakub Jelinek <jakub@redhat.com>
18331 * configure.ac: If neither --enable-linux-futex nor
18332 --disable-linux-futex is passed, determine the default by checking
18333 for compiling and/or running against NPTL. With --enable-linux-futex,
18334 check if SYS_gettid and SYS_futex are defined.
18335 * configure: Rebuilt.
18337 2006-06-14 Richard Henderson <rth@redhat.com>
18340 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
18341 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
18343 2006-06-09 Richard Henderson <rth@redhat.com>
18345 * env.c (gomp_nthreads_var): Change to unsigned long.
18346 (gomp_run_sched_chunk): Likewise.
18347 (parse_unsigned_long): Rename from parse_num_threads and generalize.
18348 (initialize_env): Initialize gomp_thread_attr.
18349 * libgomp.h (gomp_nthreads_var): Update decl.
18350 (gomp_run_sched_chunk): Likewise.
18351 (gomp_thread_attr): Declare.
18352 * team.c (gomp_thread_attr): Export.
18353 (initialize_team): Don't initialize it.
18355 2006-06-09 Jakub Jelinek <jakub@redhat.com>
18358 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
18359 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
18361 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
18363 * config/mingw32/time.c: New file.
18364 * configure.tgt: Use it.
18366 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
18368 * Makefile.am: Add install-html target. Add install-html to .PHONY
18369 * Makefile.in: Regenerate.
18371 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18374 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
18375 * testsuite/libgomp.c/critical-1.c: Likewise.
18376 * testsuite/libgomp.c/loop-1.c: Likewise.
18377 * testsuite/libgomp.c/loop-2.c: Likewise.
18378 * testsuite/libgomp.c/single-1.c: Likewise.
18379 * testsuite/libgomp.c/ordered-1.c: Likewise.
18380 * testsuite/libgomp.c/ordered-2.c: Likewise.
18382 2006-05-15 Jakub Jelinek <jakub@redhat.com>
18384 PR middle-end/27416
18385 * libgomp.fortran/pr27416-1.f90: New test.
18387 2006-05-03 Jakub Jelinek <jakub@redhat.com>
18390 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
18391 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
18393 2006-05-02 Jakub Jelinek <jakub@redhat.com>
18396 * testsuite/libgomp.c/pr26943-1.c: New test.
18397 * testsuite/libgomp.c/pr26943-2.c: New test.
18398 * testsuite/libgomp.c/pr26943-3.c: New test.
18399 * testsuite/libgomp.c/pr26943-4.c: New test.
18400 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
18401 * testsuite/libgomp.c++/pr26943.C: New test.
18403 2006-05-02 Jakub Jelinek <jakub@redhat.com>
18405 PR middle-end/27337
18406 * testsuite/libgomp.c++/pr27337.C: New test.
18408 2006-04-26 Jakub Jelinek <jakub@redhat.com>
18411 * testsuite/libgomp.c/pr26171.c: New test.
18413 2006-04-25 Richard Henderson <rth@redhat.com>
18416 * configure.ac: Use GCC_CHECK_TLS.
18417 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
18418 * Makefile.in, aclocal.m4, configure: Regenerate.
18420 2006-04-10 Matthias Klose <doko@debian.org>
18422 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
18423 directory names containing underscores.
18425 2006-03-21 Jakub Jelinek <jakub@redhat.com>
18428 * testsuite/libgomp.c++/pr26691.C: New test.
18430 2006-03-13 Jakub Jelinek <jakub@redhat.com>
18432 * testsuite/libgomp.fortran/retval2.f90: New test.
18434 2006-03-09 Diego Novillo <dnovillo@redhat.com>
18436 * testsuite/libgomp.c++: New directory.
18438 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
18440 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
18441 * config/posix/sem.c: Implement the above.
18443 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
18445 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
18446 define HAVE_BROKEN_POSIX_SEMAPHORES.
18447 * configure: Rebuilt.
18448 * config.h.in: Rebuilt.
18450 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
18453 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
18454 for the other pthread check.
18455 * configure: Regenerate.
18456 * config.h.in: Regenerate.
18458 2006-02-15 Jakub Jelinek <jakub@redhat.com>
18462 * Makefile.am (fincludedir): New variable.
18463 (nodist_include_HEADERS): Remove Fortran files.
18464 (nodist_finclude_HEADERS): New variable.
18465 * Makefile.in: Regenerated.
18467 2006-02-13 Jakub Jelinek <jakub@redhat.com>
18469 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
18470 Remove tests for returning assumed character length arrays.
18472 2006-02-12 Roger Sayle <roger@eyesopen.com>
18473 John David Anglin <dave@hiauly1.hia.nrc.ca>
18476 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
18478 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
18480 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
18482 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
18484 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
18485 part of LD_LIBRARY_PATH manually.
18487 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
18490 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
18493 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
18496 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
18497 * configure.ac (PERL): Don't set.
18498 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
18499 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
18500 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
18501 * omp.h.in: Wrap the new configure substitutions with @ characters.
18502 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
18503 * aclocal.m4, configure, Makefile.in: Regenerate.
18504 * mkomp_h.pl: Delete.
18506 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
18509 * configure.ac: Use GCC_HEADER_STDINT.
18510 * libgomp.h: Include gstdint.h.
18511 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
18512 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
18514 2006-01-24 Richard Henderson <rth@redhat.com>
18517 * configure.ac: Add AM_MAINTAINER_MODE.
18518 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
18520 2006-01-24 Diego Novillo <dnovillo@redhat.com>
18522 * Makefile.in: Regenerate.
18523 * testsuite/Makefile.in: Regenerate.
18524 * aclocal.m4: Regenerate.
18526 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
18528 * config/posix/proc.c: Conditional include of sys/loadavg.h for
18530 * configure.ac: Add check for loadavg.h.
18531 (link_gomp): Adjust comment.
18532 * configure: Regenerate.
18533 * config.h.in: Regenerate.
18535 2006-01-21 Steve Ellcey <sje@cup.hp.com>
18538 * configure.ac: Remove check for alloca.h.
18539 * configure: Regenerate.
18540 * config.h.in: Regenerate.
18541 * libgomp.h: define gomp_alloca to be __builtin_alloca.
18542 * team.c: Remove use of alloca.h.
18543 Call gomp_alloca instead of alloca.
18545 2006-01-20 Steve Ellcey <sje@cup.hp.com>
18548 * team.c: Add include of alloca.h.
18549 * configure.ac: Add check for alloca.h.
18550 * configure: Regenerate.
18551 * config.h.in: Regenerate.
18553 2006-01-17 Jakub Jelinek <jakub@redhat.com>
18556 * testsuite/libgomp.fortran/pr25219.f90: New test.
18558 2005-12-05 Uros Bizjak <uros@kss-loka.si>
18560 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
18561 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
18562 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
18563 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
18564 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
18565 testsuite/libgomp.fortran/threadprivate1.f90,
18566 testsuite/libgomp.fortran/threadprivate2.f90,
18567 testsuite/libgomp.fortran/threadprivate3.f90,
18568 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
18569 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
18570 testsuite/libgomp.fortran/omp_parse3.f90: Change required
18571 effective-target to TLS runtime.
18573 * testsuite/libgomp.fortran/pr25162.f: Require
18574 effective-target TLS runtime.
18576 2005-12-01 Jakub Jelinek <jakub@redhat.com>
18578 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
18579 * testsuite/libgomp.c/nestedfn-3.c: New test.
18581 2005-11-30 Jakub Jelinek <jakub@redhat.com>
18584 * testsuite/libgomp.fortran/pr25162.f: New test.
18586 2005-11-28 Jakub Jelinek <jakub@redhat.com>
18588 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
18589 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
18591 2005-11-25 Jakub Jelinek <jakub@redhat.com>
18593 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
18594 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
18595 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
18596 single.c, team.c, work.c, config/linux/alpha/futex.h,
18597 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
18598 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
18599 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
18600 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
18601 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
18602 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
18603 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
18606 2005-11-18 Jakub Jelinek <jakub@redhat.com>
18608 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
18609 to nodist_noinst_HEADERS.
18610 * Makefile.in: Rebuilt.
18612 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
18613 add integer count field.
18614 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
18615 omp_nest_lock_t type change.
18616 (omp_init_nest_lock): Likewise. Initialize count to 0.
18617 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
18619 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
18621 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
18622 Increment count if successful and return the new nesting level.
18623 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
18624 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
18625 * testsuite/libgomp.c/lib-1.c: New test.
18626 * testsuite/libgomp.fortran/lib1.f90: New test.
18627 * testsuite/libgomp.fortran/lib2.f: New test.
18628 * testsuite/libgomp.fortran/lib3.f: New test.
18630 2005-11-17 Richard Henderson <rth@redhat.com>
18633 * Makefile.am (nodist_toolexeclib_HEADERS): New.
18634 * configure.ac (link_gomp): New. Substitute it.
18635 (AC_CONFIG_FILES): Add libgomp.spec.
18636 * libgomp.spec.in: New file.
18637 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
18638 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
18640 2005-11-18 Jakub Jelinek <jakub@redhat.com>
18642 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
18643 reduction(-:var) behaving the same as reduction(+:var).
18644 * testsuite/libgomp.c/reduction-4.c: New test.
18646 2005-11-15 Uros Bizjak <uros@kss-loka.si>
18648 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
18649 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
18650 testsuite/libgomp.c/copyin-3.c,
18651 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
18652 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
18653 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
18654 testsuite/libgomp.c++/pr24455.C,
18655 testsuite/libgomp.fortran/threadprivate1.f90,
18656 testsuite/libgomp.fortran/threadprivate2.f90,
18657 testsuite/libgomp.fortran/threadprivate3.f90,
18658 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
18659 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
18660 testsuite/libgomp.fortran/omp_parse3.f90: Require
18661 effective-target TLS.
18663 2005-11-14 Diego Novillo <dnovillo@redhat.com>
18667 2005-11-13 Jakub Jelinek <jakub@redhat.com>
18670 * team.c (initialize_team): Pass NULL rather than free as
18671 pthread_key_create destructor. Initialize thread specific data
18672 pointer in initial thread to a static local variable rather than
18675 2005-11-11 Uros Bizjak <uros@kss-loka.si>
18677 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
18678 its location to ld_library_path.
18680 2005-11-10 Diego Novillo <dnovillo@redhat.com>
18682 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
18684 2005-11-10 Diego Novillo <dnovillo@redhat.com>
18686 * testsuite/libgomp.c: Rename from libgomp.dg.
18688 2005-11-09 Diego Novillo <dnovillo@redhat.com>
18690 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
18691 threadprivate variable 'i'.
18693 2005-11-09 Jakub Jelinek <jakub@redhat.com>
18695 * config/linux/s390/futex.h: New file.
18696 * configure.tgt: Use it.
18698 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
18699 before the parallel.
18701 2005-11-08 Jakub Jelinek <jakub@redhat.com>
18704 * testsuite/libgomp.c++/master-1.C: New test.
18706 2005-11-07 Jakub Jelinek <jakub@redhat.com>
18708 * testsuite/libgomp.dg/copyin-3.c: New test.
18710 2005-11-07 Jakub Jelinek <jakub@redhat.com>
18712 * testsuite/libgomp.fortran/retval1.f90: New test.
18713 * testsuite/libgomp.fortran/vla7.f90: New test.
18715 2005-11-06 Jakub Jelinek <jakub@redhat.com>
18717 * testsuite/libgomp.fortran/vla2.f90: New test.
18718 * testsuite/libgomp.fortran/vla3.f90: New test.
18719 * testsuite/libgomp.fortran/vla4.f90: New test.
18720 * testsuite/libgomp.fortran/vla5.f90: New test.
18721 * testsuite/libgomp.fortran/vla6.f90: New test.
18723 2005-11-01 Jakub Jelinek <jakub@redhat.com>
18725 * config/linux/sparc/futex.h: New file.
18726 * configure.tgt: Use it.
18727 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
18729 * critical.c: Include stdlib.h.
18730 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
18731 ignoring return value.
18732 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
18733 LIBGOMP_CHECK_SYNC_BUILTINS check.
18734 * configure: Rebuilt.
18736 2005-10-31 Jakub Jelinek <jakub@redhat.com>
18738 * testsuite/libgomp.fortran/vla1.f90: New test.
18740 2005-10-31 Richard Henderson <rth@redhat.com>
18742 * testsuite/libgomp.fortran/character2.f90: Fix race condition
18743 setting 's' in different threads.
18745 2005-10-31 Jakub Jelinek <jakub@redhat.com>
18747 * libgomp.h (attribute_hidden, ialias): Define.
18748 * config/posix/proc.c (omp_get_num_procs): Add ialias.
18749 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
18750 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
18751 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
18752 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
18753 omp_test_lock, omp_test_nest_lock): Likewise.
18754 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
18755 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
18756 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
18757 omp_test_lock, omp_test_nest_lock): Likewise.
18758 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
18759 omp_get_dynamic, omp_get_nested): Likewise.
18760 * parallel.c (omp_get_num_threads, omp_get_max_threads,
18761 omp_get_thread_num, omp_in_parallel): Likewise.
18762 * fortran.c (ialias_redirect): Define.
18763 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
18764 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
18765 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
18766 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
18767 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
18768 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
18769 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
18770 omp_get_wtime): Add ialias_redirect.
18772 2005-10-30 Jakub Jelinek <jakub@redhat.com>
18774 * fortran.c: Include stdlib.h.
18776 2005-10-29 Jakub Jelinek <jakub@redhat.com>
18778 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
18779 * Makefile.in: Regenerated.
18781 2005-10-28 Jakub Jelinek <jakub@redhat.com>
18783 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
18784 * libgomp_f.h.in (omp_check_defines): New function.
18785 * env.c: Include libgomp_f.h.
18786 (initialize_env): Call omp_check_defines.
18788 * testsuite/libgomp.dg/copyin-2.c: New test.
18789 * testsuite/libgomp.c++/copyin-2.C: New test.
18790 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
18792 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
18793 * testsuite/libgomp.fortran/sharing2.f90: New test.
18795 * testsuite/libgomp.dg/copyin-1.c: New test.
18796 * testsuite/libgomp.c++/copyin-1.C: New test.
18798 2005-10-26 Jakub Jelinek <jakub@redhat.com>
18800 * testsuite/libgomp.fortran/crayptr1.f90: New test.
18802 * testsuite/libgomp.fortran/workshare1.f90: New test.
18804 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
18806 * libgomp.fortran/sharing1.f90: New test.
18808 2005-10-24 Jakub Jelinek <jakub@redhat.com>
18811 * testsuite/libgomp.c++/loop-7.C: New test.
18813 * testsuite/libgomp.dg/nestedfn-2.c: New test.
18815 * testsuite/libgomp.dg/nestedfn-1.c: New test.
18816 * testsuite/libgomp.fortran/reduction6.f90: New test.
18817 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
18819 2005-10-23 Richard Henderson <rth@redhat.com>
18821 * testsuite/libgomp.c++/ctor-1.C: New.
18822 * testsuite/libgomp.c++/ctor-2.C: New.
18823 * testsuite/libgomp.c++/ctor-3.C: New.
18824 * testsuite/libgomp.c++/ctor-4.C: New.
18825 * testsuite/libgomp.c++/ctor-5.C: New.
18826 * testsuite/libgomp.c++/ctor-6.C: New.
18827 * testsuite/libgomp.c++/ctor-7.C: New.
18828 * testsuite/libgomp.c++/ctor-8.C: New.
18829 * testsuite/libgomp.c++/ctor-9.C: New.
18831 2005-10-21 Diego Novillo <dnovillo@redhat.com>
18834 * testsuite/libgomp.c++/pr24455-1.C: New test.
18835 * testsuite/libgomp.c++/pr24455.C: New test.
18836 * testsuite/libgomp.dg/pr24455-1.c: New test.
18837 * testsuite/libgomp.dg/pr24455.c: New test.
18839 2005-10-20 Richard Henderson <rth@redhat.com>
18841 * testsuite/libgomp.c++/loop-6.C: New.
18842 * testsuite/libgomp.dg/loop-3.c: New.
18844 2005-10-20 Jakub Jelinek <jakub@redhat.com>
18846 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
18847 explicitly private.
18848 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
18851 2005-10-19 Diego Novillo <dnovillo@redhat.com>
18853 * testsuite/libgomp.fortran/jacobi.f: New test.
18855 2005-10-19 Richard Henderson <rth@redhat.com>
18857 * configure.tgt (i?86-linux): Default to with_arch instead of
18858 CFLAGS. Add -mtune to match target_cpu.
18859 (x86_64-linux): Tune to i686.
18861 * fortran.c (omp_test_nest_lock_): Fix typo.
18863 2005-10-19 Jakub Jelinek <jakub@redhat.com>
18865 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
18866 gomp_ordered_sync): Do nothing if team->nthreads == 1.
18867 * testsuite/libgomp.dg/ordered-3.c: New test.
18869 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
18870 Remove volatile keyword.
18872 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
18873 in COMMON block to avoid warnings on 64-bit targets.
18875 2005-10-18 Diego Novillo <dnovillo@redhat.com>
18877 * testsuite/libgomp.dg/shared-3.c: New test.
18879 2005-10-18 Jakub Jelinek <jakub@redhat.com>
18881 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
18882 * testsuite/libgomp.fortran/reduction5.f90: New test.
18884 2005-10-18 Jakub Jelinek <jakub@redhat.com>
18886 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
18888 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
18889 flush loop now that __sync_synchronize has proper memory barrier.
18890 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
18891 Add -ffixed-form to dg-options.
18893 2005-10-17 Diego Novillo <dnovillo@redhat.com>
18895 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
18896 from subdirectories.
18897 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
18898 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
18899 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
18900 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
18901 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
18902 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
18903 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
18904 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
18905 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
18906 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
18907 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
18908 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
18909 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
18910 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
18911 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
18912 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
18913 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
18914 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
18915 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
18916 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
18917 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
18918 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
18919 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
18920 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
18921 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
18923 2005-10-17 Jakub Jelinek <jakub@redhat.com>
18925 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
18926 lang_library_path exists. Use find instead of glob to gather tests.
18927 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
18929 2005-10-17 Diego Novillo <dnovillo@redhat.com>
18931 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
18932 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
18933 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
18934 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
18935 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
18936 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
18937 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
18938 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
18939 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
18940 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
18941 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
18942 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
18943 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
18945 2005-10-15 Jakub Jelinek <jakub@redhat.com>
18947 * testsuite/libgomp.dg/vla-1.c: New test.
18949 * testsuite/libgomp.fortran/reference2.f90: New test.
18951 * testsuite/libgomp.fortran/character2.f90: Remove explicit
18952 declaration of omp_get_thread_num.
18953 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
18956 * testsuite/libgomp.fortran/reduction1.f90: New test.
18957 * testsuite/libgomp.fortran/reduction2.f90: New test.
18958 * testsuite/libgomp.fortran/reduction3.f90: New test.
18959 * testsuite/libgomp.fortran/reduction4.f90: New test.
18961 2005-10-13 Richard Henderson <rth@redhat.com>
18963 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
18964 * Makefile.in: Regenerate.
18965 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
18966 * libgomp.h: Include bar.h.
18967 (struct gomp_barrier): Remove.
18968 (struct gomp_team): Add barrier. Replace master_barrier with
18969 master_release. Replace threads with ordered_release.
18970 (struct gomp_thread): Replace barrier with release.
18971 * ordered.c (gomp_ordered_first): Update for ordered_release change.
18972 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
18973 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
18974 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
18975 (GOMP_single_copy_end): Likewise.
18976 * team.c (gomp_threads_dock): New.
18977 (gomp_barrier_init, gomp_barrier_destroy): Remove.
18978 (gomp_thread_start): Use gomp_barrier_wait.
18979 (new_team, free_team): Update for gomp_team changes.
18980 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
18981 (gomp_team_end): Use gomp_barrier_wait.
18982 (initialize_team): Update for gomp_thread changes.
18983 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
18984 (gomp_work_share_end_nowait): Use atomic ops when available.
18985 * config/linux/bar.c, config/linux/bar.h: New files.
18986 * config/posix/bar.c, config/posix/bar.h: New files.
18988 2005-10-13 Jakub Jelinek <jakub@redhat.com>
18990 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
18991 * testsuite/libgomp.dg/single-2.c: New test.
18993 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
18994 lang_link_flags): Unset, so that they aren't inherited from previously
18997 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
18999 2005-10-12 Richard Henderson <rth@redhat.com>
19001 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
19002 (libgomp_init): Use lang_test_file, lang_library_path, and
19003 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
19005 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
19006 (lang_test_file, lang_link_flags): New.
19007 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
19009 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
19010 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
19011 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
19012 testsuite/libgomp.c++/parallel-1.C,
19013 testsuite/libgomp.c++/reduction-1.C,
19014 testsuite/libgomp.c++/reduction-2.C,
19015 testsuite/libgomp.c++/reduction-3.C,
19016 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
19017 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
19018 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
19019 New files, largely cribbed from the C testsuite.
19021 2005-10-12 Jakub Jelinek <jakub@redhat.com>
19023 * testsuite/libgomp.fortran/character1.f90: New test.
19024 * testsuite/libgomp.fortran/character2.f90: New test.
19026 * testsuite/libgomp.dg/nested-1.c: New test.
19027 * testsuite/libgomp.dg/nested-2.c: New test.
19028 * testsuite/libgomp.fortran/do1.f90: New test.
19029 * testsuite/libgomp.fortran/do2.f90: New test.
19031 * testsuite/libgomp.fortran/reference1.f90: New test.
19033 2005-10-11 Jakub Jelinek <jakub@redhat.com>
19035 * testsuite/libgomp.dg/reduction-1.c: New test.
19036 * testsuite/libgomp.dg/reduction-2.c: New test.
19037 * testsuite/libgomp.dg/reduction-3.c: New test.
19039 2005-10-10 Jakub Jelinek <jakub@redhat.com>
19041 * testsuite/libgomp.dg/atomic-1.c: New test.
19042 * testsuite/libgomp.dg/atomic-2.c: New test.
19044 2005-10-09 Richard Henderson <rth@redhat.com>
19046 * critical.c (atomic_lock): New.
19047 (initialize_critical): Initialize it.
19048 (GOMP_atomic_start, GOMP_atomic_end): New.
19049 * libgomp.map: Export them.
19050 * libgomp_g.h: Declare them.
19052 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
19054 2005-10-02 Richard Henderson <rth@redhat.com>
19056 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
19057 to XCFLAGS instead of CFLAGS.
19059 2005-09-30 Richard Henderson <rth@redhat.com>
19061 * configure.ac: Determine whether -pthread or -lpthread is needed.
19062 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
19063 * Makefile.in, configure: Rebuild.
19065 2005-09-28 Richard Henderson <rth@redhat.com>
19067 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
19068 * testsuite/libgomp.dg/omp-single-3.c: New test.
19070 2005-09-28 Diego Novillo <dnovillo@redhat.com>
19072 * testsuite/libgomp.dg/omp-single-2.c: New test.
19073 * testsuite/libgomp.dg/shared-2.c: Fix return code.
19075 2005-09-27 Richard Henderson <rth@redhat.com>
19077 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
19078 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
19080 2005-09-27 Jakub Jelinek <jakub@redhat.com>
19082 * testsuite/libgomp.dg/omp-loop03.c: New test.
19084 2005-09-27 Diego Novillo <dnovillo@redhat.com>
19086 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
19088 2005-09-27 Diego Novillo <dnovillo@redhat.com>
19090 * testsuite/libgomp.dg/omp-single-1.c: New test.
19091 * testsuite/libgomp.dg/shared-1.c: Return 0.
19092 Add prototype for abort.
19093 * testsuite/libgomp.dg/shared-2.c: Likewise.
19095 2005-09-26 Jakub Jelinek <jakub@redhat.com>
19097 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
19100 2005-09-26 Diego Novillo <dnovillo@redhat.com>
19102 * testsuite/libgomp.dg/shared-1.c: New test.
19103 * testsuite/libgomp.dg/shared-2.c: New test.
19105 2005-09-24 Richard Henderson <rth@redhat.com>
19107 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
19109 2005-09-24 Richard Henderson <rth@redhat.com>
19111 * iter.c (gomp_iter_static_next): Round up when computing number
19112 of iterations. Don't bother distributing a remainder equally.
19114 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
19115 Don't call srand. Zero b before testing.
19118 2005-09-24 Jakub Jelinek <jakub@redhat.com>
19120 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
19121 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
19123 2005-09-23 Jakub Jelinek <jakub@redhat.com>
19125 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
19126 without !$omp end do, followed immediately by subroutine end.
19128 2005-09-23 Diego Novillo <dnovillo@redhat.com>
19130 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
19132 2005-09-22 Richard Henderson <rth@redhat.com>
19134 * critical.c (GOMP_critical_name_start): Change argument to void**.
19135 Reuse the pointer space if the mutex fits.
19136 (GOMP_critical_name_end): Likewise.
19137 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
19138 * libgomp_g.h (GOMP_critical_name_start): Update decl.
19139 (GOMP_critical_name_end): Likewise.
19140 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
19141 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
19143 2005-09-20 Richard Henderson <rth@redhat.com>
19145 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
19146 (create_lock_lock): New.
19147 (initialize_critical): Initialize it.
19148 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
19149 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
19151 2005-09-20 Diego Novillo <dnovillo@redhat.com>
19153 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
19155 2005-09-20 Diego Novillo <dnovillo@redhat.com>
19157 * testsuite/libgomp.dg/omp-loop01.c: New test.
19158 * testsuite/libgomp.dg/omp-loop02.c: New test.
19160 2005-09-20 Jakub Jelinek <jakub@redhat.com>
19162 * configure.ac (AC_PROG_FC): Add.
19163 (USE_FORTRAN): New automake conditional.
19164 * configure: Rebuilt.
19165 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
19166 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
19167 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
19168 Add rules to build them.
19169 * Makefile.in: Rebuilt.
19170 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
19171 OMP_NEST_LOCK_KIND.
19172 * libgomp.map: Add Fortran wrappers.
19173 * libgomp_f.h.in: New file.
19174 * omp_lib.h.in: New file.
19175 * omp_lib.f90.in: New file.
19176 * fortran.c: New file.
19177 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
19178 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
19179 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
19180 libgfortran has been built.
19181 * testsuite/libgomp.fortran/fortran.exp: New file.
19182 * testsuite/libgomp.fortran/omp_cond1.f: New test.
19183 * testsuite/libgomp.fortran/omp_cond2.f: New test.
19184 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
19185 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
19186 * testsuite/libgomp.fortran/omp_hello.f: New test.
19187 * testsuite/libgomp.fortran/omp_orphan.f: New test.
19188 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
19189 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
19190 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
19191 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
19192 * testsuite/libgomp.fortran/omp_reduction.f: New test.
19193 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
19194 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
19196 2005-08-30 Richard Henderson <rth@redhat.com>
19198 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
19199 function for when aliases are not usable.
19200 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
19201 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
19202 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
19203 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
19204 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
19205 GOMP_loop_ordered_guided_next): Likewise.
19206 * ordered.c (GOMP_ordered_start): Likewise.
19208 2005-08-01 Diego Novillo <dnovillo@redhat.com>
19210 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
19211 * testsuite/libgomp.dg/omp_hello.c: Fix return code
19212 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
19213 * testsuite/libgomp.dg/omp_orphan.c: Likewise
19214 * testsuite/libgomp.dg/omp_reduction.c: Likewise
19215 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
19216 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
19217 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
19218 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
19220 2005-07-07 Eric Christopher <echristo@redhat.com>
19221 Diego Novillo <dnovillo@redhat.com>
19223 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
19224 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
19226 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
19227 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
19228 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
19229 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
19230 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
19231 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
19232 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
19234 2005-06-13 Diego Novillo <dnovillo@redhat.com>
19236 * TOPLEVEL.patch: Remove.
19238 2005-05-16 Richard Henderson <rth@redhat.com>
19240 * configure.ac: Test for clock_gettime.
19241 * config.h.in, configure: Rebuild.
19242 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
19243 (omp_get_wtime): Use clock_gettime if available.
19244 (omp_get_wtick): Use clock_getres if available.
19246 2005-05-11 Richard Henderson <rth@redhat.com>
19248 * config/linux/ia64/futex.h: New file.
19249 * configure.tgt: Use it.
19251 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
19253 2005-05-07 Richard Henderson <rth@redhat.com>
19255 * config/linux/powerpc/futex.h: New file.
19256 * configure.tgt: Use it.
19258 * config/linux/i486/futex.h: Merge ...
19259 * config/linux/x86_64/futex.h: ... into ...
19260 * config/linux/x86/futex.h: ... here.
19261 * configure.tgt: Update to match.
19263 2005-05-06 Richard Henderson <rth@redhat.com>
19265 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
19266 * config/linux/i486/futex.h: Likewise.
19267 * config/linux/x86_64/futex.h: Likewise.
19269 * config/linux/lock.c: New file.
19270 * config/linux/omp-lock.h: New file.
19272 * critical.c, env.h: Don't include omp.h
19273 * config/posix/lock.c: Include libgomp.h instead of omp.h.
19274 * config/posix/time.c: Likewise.
19275 * config/posix/omp-lock.h: New file.
19276 * libgomp.h: Include omp-lock.h and omp.h.
19277 * Makefile.am (nodist_include_HEADERS): New.
19279 * configure.ac (PERL): New.
19280 * mkomp_h.pl: New file.
19281 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
19283 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
19285 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
19286 build directory. Re-add -march=i486 hack.
19288 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
19289 (libgomp_link_flags): Remove.
19290 (libgomp_initialized): Remove.
19291 (libgomp_init): Don't protect from reinitialization. Copy code
19292 from libstdc++ for getting the multilib set correctly.
19294 2005-05-05 Richard Henderson <rth@redhat.com>
19296 * config/linux/alpha/futex.h: New file.
19297 * configure.tgt (alpha*-*-linux*): Use it.
19299 * config/posix/mutex.c: New file.
19300 * config/posix/sem.c: Use libgomp.h.
19302 * configure.tgt (x86_64-linux): Also test CC for -m32.
19303 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
19305 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
19308 * Makefile.am (SUBDIRS): New.
19309 (libgomp_la_LDFLAGS): Add -lpthread.
19310 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
19311 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
19313 * libgomp_g.h: New file.
19314 * libgomp.h: Split out all public declarations to libgomp_g.h.
19315 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
19316 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
19317 * config/linux/sem.h: Likewise.
19318 * config/posix/sem.h: Likewise.
19320 * Makefile.am (AM_LDFLAGS): New.
19321 (libgomp_version_script): Split out from ...
19322 (libgomp_la_LDFLAGS): ... here.
19323 (libgomp_version_info): New.
19324 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
19325 (LIBGOMP_ENABLE): New.
19326 (LIBGOMP_CHECK_LINKER_FEATURES): New.
19327 (LIBGOMP_ENABLE_SYMVERS): New.
19328 * configure.ac (AC_INIT): Version 1.0.
19329 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
19330 (enable-linux-futex): Likewise. Rename from enable-futex.
19331 (libtool_VERSION): New.
19332 (LIBGOMP_ENABLE_SYMVERS): Use it.
19333 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
19334 * Makefile.in, aclocal.m4, configure: Rebuild.
19336 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
19337 (gomp_mutex_unlock_slow): Fix typo.
19338 * config/linux/sem.c: Similarly.
19339 (gomp_sem_post_slow): Fix typo.
19340 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
19341 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
19342 [__PIC__] (sys_futex0): Don't use tmp output in asm.
19344 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
19345 (libgomp_la_LDFLAGS): Add top_srcdir to path.
19346 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
19347 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
19348 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
19349 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
19350 LDFLAGS. Pull enable_futex check to top-level.
19351 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
19352 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
19354 First attempt at real configury.
19355 * Makefile, config.h: Remove file.
19356 * Makefile.am, Makefile.in: New file.
19357 * acinclude.m4 aclocal.m4: New file.
19358 * configure.ac, configure.tgt, configure: New file.
19360 * config/posix/lock.c: Rename from sys-lock.c.
19361 * config/posix/mutex.h: Rename from sys-mutex.h.
19362 * config/posix/sem.c: Rename from sys-sem.c.
19363 * config/posix/sem.h: Rename from sys-sem.h.
19364 * config/posix/proc.c: Rename from sys-proc.c.
19365 * config/posix/time.c: Rename from sys-proc.c.
19367 * config/linux/mutex.c: New file.
19368 * config/linux/mutex.h: New file.
19369 * config/linux/sem.c: New file.
19370 * config/linux/sem.h: New file.
19371 * config/linux/i486/futex.h: New file.
19372 * config/linux/x86_64/futex.h: New file.
19374 2005-05-04 Richard Henderson <rth@redhat.com>
19376 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
19377 * libgomp.h: Declare them.
19378 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
19379 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
19381 2005-05-04 Richard Henderson <rth@redhat.com>
19383 * libgomp-1 code drop
19385 2005-05-04 Richard Henderson <rth@redhat.com>
19387 * iter.c (gomp_iter_static_next): Return tri-state on 0.
19388 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
19389 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
19390 (gomp_iter_static_next): Update.
19391 (gomp_ordered_static_next): Update.
19392 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
19393 (gomp_loop_ordered_static_start): Likewise. Exit early for a
19394 totally empty range.
19395 (gomp_loop_ordered_static_next): Refine test for calling
19396 gomp_ordered_static_next.
19397 * testsuite/ordered-1.c: Add case for more threads than iterations.
19399 * iter.c (gomp_iter_runtime_next_locked): Remove.
19400 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
19401 gomp_loop_guided_start, gomp_loop_ordered_static_start,
19402 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
19403 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
19404 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
19405 gomp_loop_ordered_guided_next): Downcase name, make static, add
19406 an external alias with the old name.
19407 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
19408 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
19409 switch and call one of the above static functions.
19410 * libgomp.h: Update.
19412 * work.c (gomp_work_share_start): Lock the mutex for !first too.
19413 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
19414 GOMP_loop_guided_start, GOMP_loop_runtime_start,
19415 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
19416 GOMP_loop_ordered_guided_start): Update to match.
19417 * sections.c (GOMP_sections_start): Likewise.
19418 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
19420 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
19421 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
19422 Use bounds check instead of modulus.
19423 (gomp_ordered_sync): Split out of GOMP_ordered_start.
19424 (gomp_ordered_last): Don't sync with ordered_owner here.
19425 (gomp_ordered_next): Likewise.
19426 (gomp_ordered_static_loop_next): Likewise.
19427 * loop.c, libgomp.h: Update to match.
19429 * libgomp.h (GOMP_barrier): Declare.
19431 * testsuite/barrier-1.c: New file.
19432 * testsuite/critical-1.c: New file.
19433 * testsuite/ordered-2.c: New file.
19434 * testsuite/ordered-1.c: New file.
19435 * testsuite/sections-1.c: New file.
19436 * testsuite/single-1.c: New file.
19437 * testsuite/Makefile (TESTS): Add them.
19439 2005-05-04 Richard Henderson <rth@redhat.com>
19441 * libgomp.h (struct gomp_work_share): Add ordered_owner.
19442 * loop.c (GOMP_loop_static_start): If not the startup thread,
19443 acquire the mutex to wait for initialization complete.
19444 (GOMP_loop_ordered_static_start): Likewise.
19445 (GOMP_loop_ordered_runtime_start): Likewise.
19446 (GOMP_loop_ordered_static_first): Remove.
19447 (GOMP_loop_ordered_dynamic_first): Remove.
19448 (GOMP_loop_ordered_guided_first): Remove.
19449 (GOMP_loop_ordered_runtime_first): Remove.
19450 * ordered.c (gomp_ordered_loop_first): Post to own release when
19451 we're the first thread.
19452 (gomp_ordered_loop_last): Wait on release if not owner.
19453 (gomp_ordered_loop_next): Likewise.
19454 (gomp_ordered_static_loop_init): New.
19455 (gomp_ordered_static_loop_next): Use ordered_owner.
19456 (GOMP_ordered_start): Likewise.
19457 * work.c (gomp_new_work_share): Initialize ordered_owner.
19459 2005-05-03 Richard Henderson <rth@redhat.com>
19461 * Makefile (OPT): New.
19464 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
19465 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
19466 * libgomp.h, libgomp.map, NOTES: Update to match.
19468 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
19469 Add initialized and thr members.
19470 (gomp_thread_start): Pause when initially spawned to wait for
19471 the whole team to be created.
19472 (gomp_team_start): Release team members at the end.
19474 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
19475 (f_foo_1): Use GOMP_loop_end.
19476 (f_foo_2): Use GOMP_loop_end_nowait.
19478 * testsuite/loop-2.c: New file.
19479 * testsuite/Makefile (TESTS): Add it.
19481 2005-05-03 Richard Henderson <rth@redhat.com>
19483 * iter.c (gomp_iter_static_next): Fix overflow check typo.
19484 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
19485 * team.c (new_team): Initialize oldest_live_gen to 1 if no
19486 initial work_share.
19488 * testsuite/Makefile: New file.
19489 * testsuite/loop-1.c: New file.
19491 2005-05-03 Richard Henderson <rth@redhat.com>
19493 Initial implementation and checkin.
19495 Copyright (C) 2005-2023 Free Software Foundation, Inc.
19497 Copying and distribution of this file, with or without modification,
19498 are permitted in any medium without royalty provided the copyright
19499 notice and this notice are preserved.