libcpp: Fix overly large buffer allocation
[gcc.git] / libgomp / ChangeLog
blob21c4eeb34ea08d5a0f89e523dcaca28c58c7d2c7
1 2024-12-19  Tobias Burnus  <tburnus@baylibre.com>
3         * libgomp.texi (OpenMP Context Selectors): Document that 'kind' also
4         accepts 'cpu'/'any' on host and 'any'/'nohost' on 'nohost' devices.
6 2024-12-10  Tobias Burnus  <tburnus@baylibre.com>
8         * plugin/plugin-gcn.c (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_async_run):
9         Handle omp_async_queue == NULL after call to maybe_init_omp_async.
10         (GOMP_OFFLOAD_openacc_async_construct): Use error not fatal error,
11         partially reverting r15-5392.
13 2024-12-06  Thomas Schwinge  <tschwinge@baylibre.com>
15         * testsuite/libgomp.c/declare-variant-3-sm89.c: New.
16         * testsuite/libgomp.c/declare-variant-3.h: Adjust.
18 2024-12-06  Thomas Schwinge  <tschwinge@baylibre.com>
20         * testsuite/libgomp.c/declare-variant-3-sm52.c: New.
21         * testsuite/libgomp.c/declare-variant-3.h: Adjust.
23 2024-12-06  Thomas Schwinge  <tschwinge@baylibre.com>
25         * testsuite/libgomp.c/declare-variant-3-sm37.c: New.
26         * testsuite/libgomp.c/declare-variant-3.h: Adjust.
28 2024-12-06  Thomas Schwinge  <tschwinge@baylibre.com>
30         * libgomp.texi: Clarify nvptx 'omp_low_lat_mem_space'
31         documentation.
33 2024-12-06  Thomas Schwinge  <tschwinge@baylibre.com>
35         PR testsuite/82250
36         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: Revert
37         last change.
39 2024-12-03  Tobias Burnus  <tburnus@baylibre.com>
41         * libgomp.texi (Memory allocation): Mention (non-)effect of 'align'
42         on _Alignof.
43         * testsuite/libgomp.c/allocate-7.c: New test.
45 2024-11-28  Thomas Schwinge  <tschwinge@baylibre.com>
47         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c
48         [!__cplusplus]: Don't 'typedef int bool;'.
50 2024-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
52         * testsuite/libgomp.c/alloc-pinned-3.c [!__linux__]
53         (set_pin_limit): Add size arg.
54         * testsuite/libgomp.c/alloc-pinned-4.c [!__linux__]
55         (set_pin_limit): Likewise.
56         * testsuite/libgomp.c/alloc-pinned-6.c [!__linux__]
57         (set_pin_limit): Likewise.
59 2024-11-20  Paul-Antoine Arras  <parras@baylibre.com>
61         * testsuite/libgomp.c-c++-common/dispatch-1.c: New test.
62         * testsuite/libgomp.c-c++-common/dispatch-2.c: New test.
64 2024-11-18  David Malcolm  <dmalcolm@redhat.com>
66         * testsuite/lib/libgomp.exp: Add
67         "load_gcc_lib dg-test-cleanup.exp".
69 2024-11-18  Tobias Burnus  <tburnus@baylibre.com>
71         * plugin/plugin-gcn.c (GOMP_OFFLOAD_openacc_async_construct): In
72         case of an error, call GOMP_PLUGIN_fatal not ..._error; use NULL
73         not false in return.
75 2024-11-18  Tobias Burnus  <tburnus@baylibre.com>
77         PR libgomp/117626
78         * plugin/plugin-nvptx.c (nvptx_open_device): Use 'CUDA_CALL_ERET'
79         with 'NULL' as error return instead of 'CUDA_CALL' that returns false.
81 2024-11-14  Tobias Burnus  <tburnus@baylibre.com>
83         * libgomp.texi (OpenMP Implementation Status): Change TR13 to
84         OpenMP 6.0, now released. Fix a typo in the omp_target_memset_async
85         routine name.
87 2024-11-11  Tobias Burnus  <tburnus@baylibre.com>
89         * testsuite/libgomp.c-c++-common/pr109062.c: Update dg-output
90         to also accept GOMP_SPINCOUNT = 1 for x86-64.
92 2024-11-11  Tobias Burnus  <tburnus@baylibre.com>
94         * plugin/plugin-gcn.c (isa_matches_agent): Mention the device number
95         and ROCR_VISIBLE_DEVICES when reporting an ISA mismatch error.
97 2024-11-10  Thomas Schwinge  <tschwinge@baylibre.com>
99         * testsuite/libgomp.c/max_vf-1.c: Adjust.
100         * testsuite/libgomp.c/max_vf-2.c: Likewise.
102 2024-11-07  Tobias Burnus  <tburnus@baylibre.com>
104         * libgomp.texi (OpenMP Technical Report 13): Remove 'iterator'
105         in 'map' clause of 'declare mapper' as it is already the list above.
106         (Interoperability Routines): Add.
107         (omp_target_memcpy_async, omp_target_memcpy_rect_async):
108         Document that depobj_list may be omitted in C++ and Fortran.
110 2024-11-07  Andrew Stubbs  <ams@baylibre.com>
112         * testsuite/libgomp.c/max_vf-1.c: Add -mno-avx.
114 2024-11-06  Andrew Stubbs  <ams@baylibre.com>
116         * testsuite/libgomp.c/max_vf-1.c: New test.
117         * testsuite/libgomp.c/max_vf-2.c: New test.
119 2024-10-22  Andrew Stubbs  <ams@baylibre.com>
120             Tobias Burnus  <tburnus@baylibre.com>
122         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Generate from gcn-devices.def.
123         (gcn_gfx803_s): Delete.
124         (gcn_gfx900_s): Delete.
125         (gcn_gfx906_s): Delete.
126         (gcn_gfx908_s): Delete.
127         (gcn_gfx90a_s): Delete.
128         (gcn_gfx90c_s): Delete.
129         (gcn_gfx1030_s): Delete.
130         (gcn_gfx1036_s): Delete.
131         (gcn_gfx1100_s): Delete.
132         (gcn_gfx1103_s): Delete.
133         (gcn_isa_name_len): Delete.
134         (isa_hsa_name): Rename ...
135         (isa_name): ... to this, and rework using gcn-devices.def.
136         (isa_gcc_name): Delete.
137         (isa_code): Rework using gcn-devices.def.
138         (max_isa_vgprs): Rework using gcn-devices.def.
139         (isa_matches_agent): Update isa_name usage.
140         (GOMP_OFFLOAD_init_device): Improve diagnostic using the name.
142 2024-10-16  Tobias Burnus  <tburnus@baylibre.com>
144         * testsuite/libgomp.oacc-fortran/acc_on_device-1-4.f: New test;
145         same as acc_on_device-1-3.f but using the builtin function.
147 2024-10-14  Thomas Schwinge  <tschwinge@baylibre.com>
149         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Add
150         '-fno-inline'.
152 2024-10-14  Thomas Schwinge  <tschwinge@baylibre.com>
154         PR testsuite/82250
155         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Add
156         '-fno-builtin-acc_on_device'.
157         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Comment.
158         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Comment.
160 2024-10-14  Thomas Schwinge  <tschwinge@baylibre.com>
162         PR testsuite/82250
163         * testsuite/libgomp.oacc-fortran/acc_on_device-2.f90: Fix
164         effective-target keyword.
166 2024-10-13  Tobias Burnus  <tburnus@baylibre.com>
168         * libgomp.texi (TR13): Fix minor typos.
169         (omp_is_initial_device): Improve wording.
170         (acc_on_device): Note how to disable the builtin.
171         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Remove TODO.
172         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
173         Add -fno-builtin-acc_on_device.
174         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
175         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: Update
176         dg- as !offloading_enabled now compile-time expands acc_on_device.
177         * testsuite/libgomp.fortran/target-is-initial-device-3.f90: New test.
178         * testsuite/libgomp.oacc-fortran/acc_on_device-2.f90: New test.
180 2024-10-07  Tobias Burnus  <tburnus@baylibre.com>
182         * testsuite/libgomp.fortran/allocate-static.f90: Moved from
183         gcc/testsuite/ as it is a dg-do run test; use real omp_lib_kinds
184         instead of local definition
186 2024-10-07  Tobias Burnus  <tburnus@baylibre.com>
188         * libgomp.texi (OpenMP Technical Report 13): Wording cleanup;
189         sort as in Appendix B; add missing items; remove duplicates.
191 2024-10-07  Tobias Burnus  <tburnus@baylibre.com>
193         * allocator.c: Add static asserts for news
194         GOMP_OMP{,X}_PREDEF_ALLOC_{MIN,MAX} range values.
195         * libgomp.texi (OpenMP Impl. Status): Allocate directive for
196         static vars is now supported. Refer to PR for allocate clause.
197         (Memory allocation): Update for static vars; minor word tweaking.
199 2024-09-27  Tobias Burnus  <tburnus@baylibre.com>
201         * libgomp.texi (TR13 status): Update semi-duplicated, semi-obsoleted
202         item; remove left-over half-sentence.
204 2024-09-27  Tobias Burnus  <tburnus@baylibre.com>
206         * libgomp.texi (OpenMP Technical Report 13): Change @emph to @code;
207         add two post-TR13 OpenMP 6.0 items.
209 2024-09-26  Tobias Burnus  <tburnus@baylibre.com>
211         * libgomp.texi (omp_get_nested,omp_set_nested, OMP_NESTED): Fix
212         note about deprecation - correct is 5.0 not 5.2.
214 2024-09-24  Jakub Jelinek  <jakub@redhat.com>
216         PR c++/107637
217         * testsuite/libgomp.c++/range-for-1.C: New test.
218         * testsuite/libgomp.c++/range-for-2.C: New test.
219         * testsuite/libgomp.c++/range-for-3.C: New test.
220         * testsuite/libgomp.c++/range-for-4.C: New test.
221         * testsuite/libgomp.c++/range-for-5.C: New test.
223 2024-09-24  Tobias Burnus  <tburnus@baylibre.com>
225         * target.c (gomp_load_image_to_device): For requires
226         unified_shared_memory, update 'link' vars to point to the host var.
227         * testsuite/libgomp.c-c++-common/target-link-3.c: New test.
228         * testsuite/libgomp.c-c++-common/target-link-4.c: New test.
230 2024-09-24  Tobias Burnus  <tburnus@baylibre.com>
232         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices):
233         Accept self_maps clause.
234         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices):
235         Likewise.
236         * libgomp.texi (TR13 Impl. Status): Set to 'Y'.
237         * target.c (gomp_requires_to_name, GOMP_offload_register_ver,
238         gomp_target_init): Handle self_maps clause.
239         * testsuite/libgomp.fortran/self_maps.f90: New test.
241 2024-09-23  Tobias Burnus  <tburnus@baylibre.com>
243         * fortran.c (omp_get_device_from_uid_): New function.
244         * libgomp.map (GOMP_6.0): Add it.
245         * oacc-host.c (host_dispatch): Init '.uid' and '.get_uid_func'.
246         * omp_lib.f90.in: Make it used by removing bind(C).
247         * omp_lib.h.in: Likewise.
248         * target.c (omp_get_device_from_uid): Ensure the device is initialized.
249         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_uid): Add function comment;
250         return NULL in case of an error.
251         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_uid): Likewise.
252         * testsuite/libgomp.fortran/device_uid.f90: Update to test substrings.
254 2024-09-20  Tobias Burnus  <tburnus@baylibre.com>
256         * config/gcn/target.c (omp_get_uid_from_device,
257         omp_get_device_from_uid): Add stub implementation.
258         * config/nvptx/target.c (omp_get_uid_from_device,
259         omp_get_device_from_uid): Likewise.
260         * fortran.c (omp_get_uid_from_device_,
261         omp_get_uid_from_device_8_): New functions.
262         * libgomp-plugin.h (GOMP_OFFLOAD_get_uid): Add prototype.
263         * libgomp.h (struct gomp_device_descr): Add 'uid' and 'get_uid_func'.
264         * libgomp.map (GOMP_6.0): New, includind the new UID routines.
265         * libgomp.texi (OpenMP Technical Report 13): Mark UID routines as 'Y'.
266         (Device Information Routines): Document new UID routines.
267         (Offload-Target Specifics): Document UID format.
268         * omp.h.in (omp_get_device_from_uid, omp_get_uid_from_device):
269         New prototype.
270         * omp_lib.f90.in (omp_get_device_from_uid, omp_get_uid_from_device):
271         New interface.
272         * omp_lib.h.in: Likewise.
273         * plugin/cuda-lib.def: Add cuDeviceGetUuid and cuDeviceGetUuid_v2 via
274         CUDA_ONE_CALL_MAYBE_NULL.
275         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_uid): New.
276         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_uid): New.
277         * target.c (str_omp_initial_device): New static var.
278         (STR_OMP_DEV_PREFIX): Define.
279         (gomp_get_uid_for_device, omp_get_uid_from_device,
280         omp_get_device_from_uid): New.
281         (gomp_load_plugin_for_device): DLSYM_OPT the function 'get_uid'.
282         (gomp_target_init): Set the device's 'uid' field to NULL.
283         * testsuite/libgomp.c/device_uid.c: New test.
284         * testsuite/libgomp.fortran/device_uid.f90: New test.
286 2024-09-02  Andrew Stubbs  <ams@baylibre.com>
288         * libgomp.texi: Remove fiji and gfx803.
289         * testsuite/libgomp.c/declare-variant-4.h: Remove fiji and gfx803.
290         * testsuite/libgomp.c/declare-variant-4-fiji.c: Removed.
291         * testsuite/libgomp.c/declare-variant-4-gfx803.c: Removed.
293 2024-09-02  Alex Coplan  <alex.coplan@arm.com>
295         * testsuite/lib/libgomp.exp: Load scanltrans.exp instead of
296         scanltranstree.exp.
298 2024-08-28  Tobias Burnus  <tburnus@baylibre.com>
300         * fortran.c (omp_get_interop_str_, omp_get_interop_name_,
301         omp_get_interop_type_desc_, omp_get_interop_rc_desc_): Add.
302         * libgomp.map (GOMP_5.1.3): New; add interop routines.
303         * omp.h.in: Add interop typedefs, enum and prototypes.
304         (__GOMP_DEFAULT_NULL): Define.
305         (omp_target_memcpy_async, omp_target_memcpy_rect_async):
306         Use it for the optional depend argument.
307         * omp_lib.f90.in: Add paramters and interfaces for interop.
308         * omp_lib.h.in: Likewise; move F90 '&' to column 81 for
309         -ffree-length-80.
310         * target.c (omp_get_num_interop_properties, omp_get_interop_int,
311         omp_get_interop_ptr, omp_get_interop_str, omp_get_interop_name,
312         omp_get_interop_type_desc, omp_get_interop_rc_desc): Add.
313         * config/gcn/target.c (omp_get_num_interop_properties,
314         omp_get_interop_int, omp_get_interop_ptr, omp_get_interop_str,
315         omp_get_interop_name, omp_get_interop_type_desc,
316         omp_get_interop_rc_desc): Add.
317         * config/nvptx/target.c (omp_get_num_interop_properties,
318         omp_get_interop_int, omp_get_interop_ptr, omp_get_interop_str,
319         omp_get_interop_name, omp_get_interop_type_desc,
320         omp_get_interop_rc_desc): Add.
321         * testsuite/libgomp.c-c++-common/interop-routines-1.c: New test.
322         * testsuite/libgomp.c-c++-common/interop-routines-2.c: New test.
323         * testsuite/libgomp.fortran/interop-routines-1.F90: New test.
324         * testsuite/libgomp.fortran/interop-routines-2.F90: New test.
325         * testsuite/libgomp.fortran/interop-routines-3.F: New test.
326         * testsuite/libgomp.fortran/interop-routines-4.F: New test.
327         * testsuite/libgomp.fortran/interop-routines-5.F: New test.
328         * testsuite/libgomp.fortran/interop-routines-6.F: New test.
329         * testsuite/libgomp.fortran/interop-routines-7.F90: New test.
331 2024-08-09  Thomas Schwinge  <tschwinge@baylibre.com>
333         * testsuite/libgomp.c++/static-aggr-constructor-destructor-1.C:
334         Fix effective-target keyword.
335         * testsuite/libgomp.c++/static-aggr-constructor-destructor-2.C:
336         Likewise.
337         * testsuite/libgomp.c-c++-common/target-is-initial-host-2.c:
338         Likewise.
339         * testsuite/libgomp.c-c++-common/target-is-initial-host.c:
340         Likewise.
341         * testsuite/libgomp.fortran/target-is-initial-host-2.f90:
342         Likewise.
343         * testsuite/libgomp.fortran/target-is-initial-host.f: Likewise.
344         * testsuite/libgomp.fortran/target-is-initial-host.f90: Likewise.
346 2024-08-08  Tobias Burnus  <tburnus@baylibre.com>
348         * libgomp.texi (OpenMP Technical Report 13): Renamed from
349         'OpenMP Technical Report 12'; updated for TR13 changes.
351 2024-08-08  Tobias Burnus  <tburnus@baylibre.com>
353         * libgomp.texi (omp_is_initial_device): Mention
354         -fno-builtin-omp_is_initial_device and folding by default.
356 2024-08-08  Tobias Burnus  <tburnus@baylibre.com>
358         * testsuite/libgomp.c++/static-aggr-constructor-destructor-1.C: Split
359         scan-tree-dump into with and without target offload_target_any.
360         * testsuite/libgomp.c++/static-aggr-constructor-destructor-2.C:
361         Likewise.
363 2024-08-07  Julian Brown  <julian@codesourcery.com>
364             Tobias Burnus  <tobias@baylibre.com>
366         * testsuite/libgomp.c++/static-aggr-constructor-destructor-1.C: New test.
367         * testsuite/libgomp.c++/static-aggr-constructor-destructor-2.C: New test.
368         * testsuite/libgomp.c++/static-aggr-constructor-destructor-3.C: New test.
369         * testsuite/libgomp.c-c++-common/target-is-initial-host.c: New test.
370         * testsuite/libgomp.c-c++-common/target-is-initial-host-2.c: New test.
371         * testsuite/libgomp.fortran/target-is-initial-host.f: New test.
372         * testsuite/libgomp.fortran/target-is-initial-host.f90: New test.
373         * testsuite/libgomp.fortran/target-is-initial-host-2.f90: New test.
375 2024-08-07  Tobias Burnus  <tburnus@baylibre.com>
377         * testsuite/libgomp.c-c++-common/target-link-2.c: Reset variable
378         value to handle multi-device tests.
380 2024-08-06  Tobias Burnus  <tburnus@baylibre.com>
382         * target.c (gomp_load_image_to_device): Extend fatal-error message;
383         simplify a condition.
385 2024-08-05  Tobias Burnus  <tburnus@baylibre.com>
387         * libgomp.texi (OpenMP Runtime Library Routines): Add TR13 routines
388         to @menu (commented out).
390 2024-08-01  Tobias Burnus  <tburnus@baylibre.com>
391             Richard Biener  <rguenther@suse.de
393         PR middle-end/115637
394         * testsuite/libgomp.fortran/declare-target-link.f90: Uncomment
395         now working code.
397 2024-07-31  Sam James  <sam@gentoo.org>
399         * testsuite/libgomp.c++/pr24455.C: Fix dg-require-effective-target directive order.
400         * testsuite/libgomp.c/pr24455.c: Likewise.
402 2024-07-31  Sam James  <sam@gentoo.org>
404         * testsuite/libgomp.c++/declare-target-indirect-1.C: Fix 'dg-run' typo.
406 2024-07-29  Tobias Burnus  <tburnus@baylibre.com>
408         * libgomp.texi (OpenMP Runtime Library Routines): Add missing
409         title to some commented still undocumented items.
410         (Device Information Routines): Update.
412 2024-07-29  Tobias Burnus  <tburnus@baylibre.com>
414         PR fortran/115559
415         * testsuite/libgomp.fortran/declare-target-link.f90: New test.
417 2024-07-29  Tobias Burnus  <tburnus@baylibre.com>
419         PR middle-end/116107
420         * target.c (gomp_map_vars_internal): Honor array mapping offsets
421         with declare-target 'link' variables.
422         * testsuite/libgomp.c-c++-common/target-link-2.c: New test.
424 2024-07-19  Thomas Schwinge  <tschwinge@baylibre.com>
426         * config/gcn/target.c (GOMP_teams4): Document.
427         * config/nvptx/target.c (GOMP_teams4): Likewise.
428         * target.c (GOMP_teams4): Likewise.
430 2024-07-19  Thomas Schwinge  <tschwinge@baylibre.com>
432         * config/gcn/libgomp-gcn.h (GOMP_TEAM_NUM): Inject.
433         * config/gcn/target.c (GOMP_teams4): Handle.
434         * config/gcn/team.c (gomp_gcn_enter_kernel): Initialize.
435         * config/gcn/teams.c (omp_get_team_num): Adjust.
437 2024-07-19  Paul Thomas  <pault@gcc.gnu.org>
439         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Cut
440         dg-note about 'a' and remove bogus warnings about its array
441         descriptor components being used uninitialized.
443 2024-07-01  Andrew Stubbs  <ams@baylibre.com>
444             Thomas Schwinge  <thomas@codesourcery.com>
446         * allocator.c (ompx_gnu_min_predefined_alloc): New.
447         (ompx_gnu_max_predefined_alloc): New.
448         (predefined_alloc_mapping): Rename to ...
449         (predefined_omp_alloc_mapping): ... this.
450         (predefined_ompx_gnu_alloc_mapping): New.
451         (_Static_assert): Adjust for the new name, and add a new assert for the
452         new table.
453         (predefined_allocator_p): New.
454         (predefined_alloc_mapping): New.
455         (omp_aligned_alloc): Support ompx_gnu_pinned_mem_alloc.
456         Use predefined_allocator_p and predefined_alloc_mapping.
457         (omp_free): Likewise.
458         (omp_alligned_calloc): Likewise.
459         (omp_realloc): Likewise.
460         * env.c (parse_allocator): Add ompx_gnu_pinned_mem_alloc.
461         * libgomp.texi: Document ompx_gnu_pinned_mem_alloc.
462         * omp.h.in (omp_allocator_handle_t): Add ompx_gnu_pinned_mem_alloc.
463         * omp_lib.f90.in: Add ompx_gnu_pinned_mem_alloc.
464         * omp_lib.h.in: Add ompx_gnu_pinned_mem_alloc.
465         * testsuite/libgomp.c/alloc-pinned-5.c: New test.
466         * testsuite/libgomp.c/alloc-pinned-6.c: New test.
467         * testsuite/libgomp.fortran/alloc-pinned-1.f90: New test.
469 2024-07-01  Andrew Stubbs  <ams@baylibre.com>
471         * testsuite/libgomp.c/alloc-pinned-1.c: Change dg-xfail-run-if to
472         dg-skip-if.
473         Correct spelling mistake.
474         Abort on insufficient lockable memory.
475         Use #error on non-linux hosts.
476         * testsuite/libgomp.c/alloc-pinned-2.c: Likewise.
478 2024-06-06  Tobias Burnus  <tburnus@baylibre.com>
480         * libgomp.texi (nvptx): Add missing preposition.
482 2024-06-06  Thomas Schwinge  <tschwinge@baylibre.com>
483             Andrew Stubbs  <ams@gcc.gnu.org>
485         * libgomp.texi (nvptx): Update.
486         * testsuite/libgomp.fortran/target-print-1-nvptx.f90: Remove.
487         * testsuite/libgomp.fortran/target-print-1.f90: Adjust.
488         * testsuite/libgomp.oacc-fortran/error_stop-2-nvptx.f: New.
489         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Adjust.
490         * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Adjust.
491         * testsuite/libgomp.oacc-fortran/print-1.f90: Adjust.
492         * testsuite/libgomp.oacc-fortran/stop-2-nvptx.f: New.
493         * testsuite/libgomp.oacc-fortran/stop-2.f: Adjust.
495 2024-06-06  Thomas Schwinge  <tschwinge@baylibre.com>
497         PR libgomp/97384
498         PR libgomp/105274
499         * plugin/cuda-lib.def (cuCtxSetLimit): Add.
500         * plugin/plugin-nvptx.c (nvptx_open_device): Handle
501         'GOMP_NVPTX_NATIVE_GPU_THREAD_STACK_SIZE' environment variable.
503 2024-06-06  Thomas Schwinge  <tschwinge@baylibre.com>
505         * plugin/plugin-nvptx.c (nvptx_do_global_cdtors): New.
506         (nvptx_close_device, GOMP_OFFLOAD_load_image)
507         (GOMP_OFFLOAD_unload_image): Call it.
509 2024-06-06  Thomas Schwinge  <tschwinge@baylibre.com>
511         PR target/85463
512         * config/nvptx/error.c (exit): Don't override.
513         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Update.
514         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
515         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
516         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
517         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
518         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
520 2024-06-06  Jakub Jelinek  <jakub@redhat.com>
522         * libgomp.texi (OpenMP 5.1 status): Mark Loop transformation constructs
523         as implemented.
525 2024-06-05  Jakub Jelinek  <jakub@redhat.com>
526             Frederik Harwath  <frederik@codesourcery.com>
527             Sandra Loosemore  <sandra@codesourcery.com>
529         * testsuite/libgomp.c-c++-common/imperfect-transform-1.c: New test.
530         * testsuite/libgomp.c-c++-common/imperfect-transform-2.c: New test.
531         * testsuite/libgomp.c-c++-common/matrix-1.h: New test.
532         * testsuite/libgomp.c-c++-common/matrix-constant-iter.h: New test.
533         * testsuite/libgomp.c-c++-common/matrix-helper.h: New test.
534         * testsuite/libgomp.c-c++-common/matrix-no-directive-1.c: New test.
535         * testsuite/libgomp.c-c++-common/matrix-no-directive-unroll-full-1.c:
536         New test.
537         * testsuite/libgomp.c-c++-common/matrix-omp-distribute-parallel-for-1.c:
538         New test.
539         * testsuite/libgomp.c-c++-common/matrix-omp-for-1.c: New test.
540         * testsuite/libgomp.c-c++-common/matrix-omp-parallel-for-1.c: New test.
541         * testsuite/libgomp.c-c++-common/matrix-omp-parallel-masked-taskloop-1.c:
542         New test.
543         * testsuite/libgomp.c-c++-common/matrix-omp-parallel-masked-taskloop-simd-1.c:
544         New test.
545         * testsuite/libgomp.c-c++-common/matrix-omp-target-parallel-for-1.c:
546         New test.
547         * testsuite/libgomp.c-c++-common/matrix-omp-target-teams-distribute-parallel-for-1.c:
548         New test.
549         * testsuite/libgomp.c-c++-common/matrix-omp-taskloop-1.c: New test.
550         * testsuite/libgomp.c-c++-common/matrix-omp-teams-distribute-parallel-for-1.c:
551         New test.
552         * testsuite/libgomp.c-c++-common/matrix-simd-1.c: New test.
553         * testsuite/libgomp.c-c++-common/matrix-transform-variants-1.h:
554         New test.
555         * testsuite/libgomp.c-c++-common/target-imperfect-transform-1.c:
556         New test.
557         * testsuite/libgomp.c-c++-common/target-imperfect-transform-2.c:
558         New test.
559         * testsuite/libgomp.c-c++-common/unroll-1.c: New test.
560         * testsuite/libgomp.c-c++-common/unroll-non-rect-1.c: New test.
561         * testsuite/libgomp.c++/matrix-no-directive-unroll-full-1.C: New test.
562         * testsuite/libgomp.c++/tile-2.C: New test.
563         * testsuite/libgomp.c++/tile-3.C: New test.
564         * testsuite/libgomp.c++/unroll-1.C: New test.
565         * testsuite/libgomp.c++/unroll-2.C: New test.
566         * testsuite/libgomp.c++/unroll-full-tile.C: New test.
567         * testsuite/libgomp.fortran/imperfect-transform-1.f90: New test.
568         * testsuite/libgomp.fortran/imperfect-transform-2.f90: New test.
569         * testsuite/libgomp.fortran/inner-1.f90: New test.
570         * testsuite/libgomp.fortran/nested-fn.f90: New test.
571         * testsuite/libgomp.fortran/target-imperfect-transform-1.f90: New test.
572         * testsuite/libgomp.fortran/target-imperfect-transform-2.f90: New test.
573         * testsuite/libgomp.fortran/tile-1.f90: New test.
574         * testsuite/libgomp.fortran/tile-2.f90: New test.
575         * testsuite/libgomp.fortran/tile-unroll-1.f90: New test.
576         * testsuite/libgomp.fortran/tile-unroll-2.f90: New test.
577         * testsuite/libgomp.fortran/tile-unroll-3.f90: New test.
578         * testsuite/libgomp.fortran/tile-unroll-4.f90: New test.
579         * testsuite/libgomp.fortran/unroll-1.f90: New test.
580         * testsuite/libgomp.fortran/unroll-2.f90: New test.
581         * testsuite/libgomp.fortran/unroll-3.f90: New test.
582         * testsuite/libgomp.fortran/unroll-4.f90: New test.
583         * testsuite/libgomp.fortran/unroll-5.f90: New test.
584         * testsuite/libgomp.fortran/unroll-6.f90: New test.
585         * testsuite/libgomp.fortran/unroll-7a.f90: New test.
586         * testsuite/libgomp.fortran/unroll-7b.f90: New test.
587         * testsuite/libgomp.fortran/unroll-7c.f90: New test.
588         * testsuite/libgomp.fortran/unroll-7.f90: New test.
589         * testsuite/libgomp.fortran/unroll-8.f90: New test.
590         * testsuite/libgomp.fortran/unroll-simd-1.f90: New test.
591         * testsuite/libgomp.fortran/unroll-tile-1.f90: New test.
592         * testsuite/libgomp.fortran/unroll-tile-2.f90: New test.
594 2024-05-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
596         PR testsuite/115294
597         * testsuite/lib/libgomp.exp (libgomp_target_compile): Pass new
598         dg-additional-files-options args.
600 2024-05-30  Tobias Burnus  <tburnus@baylibre.com>
602         * libgomp.texi (OpenMP 5.0 status): Mark 'requires' as done and
603         link to 'Offload-Target Specifics'.
604         (OpenMP 5.2 status): Add item about additional map-type modifiers
605         in 'declare mapper'.
607 2024-05-29  Tobias Burnus  <tburnus@baylibre.com>
609         * libgomp.texi (gcn): Update USM handling
610         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Handle
611         USM if HSA_AMD_SYSTEM_INFO_SVM_ACCESSIBLE_BY_DEFAULT is true.
613 2024-05-29  Tobias Burnus  <tburnus@baylibre.com>
615         * libgomp.texi (nvptx): Update USM description.
616         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices):
617         Claim support when requesting USM and all devices support
618         CU_DEVICE_ATTRIBUTE_PAGEABLE_MEMORY_ACCESS.
619         * target.c (gomp_copy_back_icvs): Fix device ptr lookup.
620         (gomp_target_init): Set GOMP_OFFLOAD_CAP_SHARED_MEM is the
621         devices supports USM.
623 2024-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
625         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]
626         (libgomp.ver-sun): Pass $(libgomp_la_OBJECTS),
627         $(libgomp_la_LIBADD) to make_sunver.pl unmodified.
628         * Makefile.in: Regenerate.
630 2024-05-02  Jakub Jelinek  <jakub@redhat.com>
632         * testsuite/libgomp.c/declare-variant-4.h (gfx90c, gfx1036, gfx1103):
633         New functions.
634         (f): Add #pragma omp declare variant directives for those.
635         * testsuite/libgomp.c/declare-variant-4-gfx90c.c: New test.
636         * testsuite/libgomp.c/declare-variant-4-gfx1036.c: New test.
637         * testsuite/libgomp.c/declare-variant-4-gfx1103.c: New test.
639 2024-04-26  Frederik Harwath  <frederik@harwath.name>
641         * plugin/plugin-gcn.c (isa_hsa_name): Handle EF_AMDGPU_MACH_AMDGCN_GFX90c.
642         (isa_code): Handle gfx90c.
643         (max_isa_vgprs): Handle EF_AMDGPU_MACH_AMDGCN_GFX90c.
645 2024-04-16  Chung-Lin Tang  <cltang@baylibre.com>
647         * libgomp.h (REFCOUNT_ACC_MAP_DATA): Define as (REFCOUNT_SPECIAL | 2).
648         * oacc-mem.c (acc_map_data): Adjust to use REFCOUNT_ACC_MAP_DATA,
649         initialize dynamic_refcount as 1.
650         (acc_unmap_data): Adjust to use REFCOUNT_ACC_MAP_DATA,
651         (goacc_map_var_existing): Add REFCOUNT_ACC_MAP_DATA case.
652         (goacc_exit_datum_1): Add REFCOUNT_ACC_MAP_DATA case, respect
653         REFCOUNT_ACC_MAP_DATA when decrementing/finalizing. Force lowest
654         dynamic_refcount to be 1 for REFCOUNT_ACC_MAP_DATA.
655         (goacc_enter_data_internal): Add REFCOUNT_ACC_MAP_DATA case.
656         * target.c (gomp_increment_refcount): Return early for
657         REFCOUNT_ACC_MAP_DATA case.
658         (gomp_decrement_refcount): Likewise.
659         * testsuite/libgomp.oacc-c-c++-common/lib-96.c: New testcase.
660         * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: Adjust
661         testcase error output scan test.
663 2024-04-08  Thomas Schwinge  <tschwinge@baylibre.com>
665         * plugin/plugin-gcn.c (init_hsa_context): Add and handle
666         'bool probe' parameter.  Adjust all users; errors during device
667         probing are fatal.
668         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Aside from
669         'CUDA_ERROR_NO_DEVICE', errors during device probing are fatal.
671 2024-04-05  Thomas Schwinge  <tschwinge@baylibre.com>
673         * testsuite/libgomp.c/reverse-offload-sm30.c: Set 'GCC_COLORS' to the empty string.
675 2024-04-05  Jakub Jelinek  <jakub@redhat.com>
677         PR c++/114572
678         * testsuite/libgomp.c++/pr114572.C: New test.
680 2024-04-04  Tobias Burnus  <tburnus@baylibre.com>
682         * libgomp.texi (TR12): Honor post-TR12 directive name change; add
683         item about curly braces/BLOCK permitted in canonical loop nests.
685 2024-04-02  Jakub Jelinek  <jakub@redhat.com>
687         * libgomp.texi (OpenMP 5.2): Fix duplicated words; with with ->
688         with.
689         (omp_target_associate_ptr): Fix duplicated words; either either ->
690         either.
691         (omp_init_allocator): Fix duplicated words; be be -> be.
692         (omp_realloc): Fix duplicated words; is is -> is.
693         (OMP_ALLOCATOR): Fix duplicated words; other other -> other.
694         * priority_queue.h (priority_queue_multi_p): Fix duplicated words;
695         to to -> to.
697 2024-03-25  Richard Biener  <rguenther@suse.de>
699         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): GFX1036.
700         (gcn_gfx1103_s): New.
701         (isa_hsa_name): Handle gfx1036.
702         (isa_code): Likewise.
703         (max_isa_vgprs): Likewise.
705 2024-03-22  Kwok Cheung Yeung  <kcyeung@baylibre.com>
707         * config/accel/target-indirect.c: Include string.h and hashtab.h.
708         Remove include of splay-tree.h.  Update comments.
709         (splay_tree_prefix, splay_tree_c): Delete.
710         (struct indirect_map_t): New.
711         (hash_entry_type, htab_alloc, htab_free, htab_hash, htab_eq): New.
712         (GOMP_INDIRECT_ADD_MAP): Remove volatile qualifier.
713         (USE_SPLAY_TREE_LOOKUP): Rename to...
714         (USE_HASHTAB_LOOKUP): ..this.
715         (indirect_map, indirect_array): Delete.
716         (indirect_htab): New.
717         (build_indirect_map): Remove locking.  Build indirect map using
718         hashtab.
719         (GOMP_target_map_indirect_ptr): Use indirect_htab to lookup target
720         address.
721         (GOMP_target_map_indirect_ptr): Remove volatile qualifier.
722         * config/gcn/team.c (gomp_gcn_enter_kernel): Call build_indirect_map
723         from first thread of first team only.
724         * config/nvptx/team.c (gomp_nvptx_main): Likewise.
725         * testsuite/libgomp.c-c++-common/declare-target-indirect-2.c (main):
726         Add missing break statements.
727         * testsuite/libgomp.fortran/declare-target-indirect-2.f90: Remove
728         xfail.
730 2024-03-22  Andrew Stubbs  <ams@baylibre.com>
732         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): GFX1103.
733         (gcn_gfx1103_s): New.
734         (isa_hsa_name): Handle gfx1103.
735         (isa_code): Likewise.
736         (max_isa_vgprs): Likewise.
738 2024-03-14  Thomas Schwinge  <tschwinge@baylibre.com>
740         * testsuite/libgomp.oacc-fortran/acc-memcpy.f90: Fix 'char'
741         initialization, copy, check.
743 2024-03-13  Tobias Burnus  <tburnus@baylibre.com>
745         PR fortran/114283
746         * testsuite/libgomp.fortran/declare-target-indirect-4.f90: New test.
748 2024-03-12  Tobias Burnus  <tburnus@baylibre.com>
750         * libgomp.texi (Device Memory Routines): Swap item order to match
751         the order of the '@node's of the '@subsection's.
753 2024-03-08  Thomas Schwinge  <tschwinge@baylibre.com>
755         * plugin/plugin-gcn.c (GOMP_OFFLOAD_can_run): Don't consider
756         'GCN_SUPPRESS_HOST_FALLBACK' anymore (assume always-'true').
757         (init_hsa_context): Adjust 'GCN_SUPPRESS_HOST_FALLBACK' error
758         message.
760 2024-03-08  Thomas Schwinge  <tschwinge@baylibre.com>
762         * plugin/plugin-nvptx.c (nvptx_get_num_devices):
763         'cuDeviceGetCount' failure is fatal.
765 2024-03-08  Thomas Schwinge  <tschwinge@baylibre.com>
767         * plugin/plugin-gcn.c (init_hsa_runtime_functions): Fatal error
768         for missing symbols.
769         * plugin/plugin-nvptx.c (init_cuda_lib): Likewise.
771 2024-03-06  John David Anglin  <danglin@gcc.gnu.org>
773         Revert:
774         2024-02-01  John David Anglin  <danglin@gcc.gnu.org>
776         * testsuite/libgomp.c++/loop-3.C: Set num_threads to 50
777         on 32-bit hppa.
778         * testsuite/libgomp.c/omp-loop03.c: Likewise.
780 2024-03-04  Jakub Jelinek  <jakub@redhat.com>
782         PR libgomp/114216
783         * target.c (gomp_target_rev): Change host_fn type and corresponding
784         cast from void (*)() to void (*) (void *).
786 2024-03-01  Jakub Jelinek  <jakub@redhat.com>
787             Tobias Burnus  <tburnus@baylibre.com>
789         PR c++/110347
790         * testsuite/libgomp.c++/target-lambda-3.C: Moved from
791         gcc/testsuite/g++.dg/gomp/ and fixed is-mapped handling.
792         * testsuite/libgomp.c++/target-lambda-1.C: Modify to also
793         also work without offloading.
794         * testsuite/libgomp.c++/firstprivate-1.C: New test.
795         * testsuite/libgomp.c++/firstprivate-2.C: New test.
796         * testsuite/libgomp.c++/private-1.C: New test.
797         * testsuite/libgomp.c++/private-2.C: New test.
798         * testsuite/libgomp.c++/target-lambda-4.C: New test.
799         * testsuite/libgomp.c++/use_device_ptr-1.C: New test.
801 2024-02-27  Tobias Burnus  <tburnus@baylibre.com>
803         * libgomp.texi (OpenACC Runtime Library Routines): Document new 3.3
804         routines that simply map to their C counterpart.
805         * openacc.f90 (openacc): Add them.
806         * openacc_lib.h: Likewise.
807         * testsuite/libgomp.oacc-fortran/acc_host_device_ptr.f90: New test.
808         * testsuite/libgomp.oacc-fortran/acc-memcpy.f90: New test.
809         * testsuite/libgomp.oacc-fortran/acc-memcpy-2.f90: New test.
810         * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Crossref to f90 test.
811         * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
812         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
814 2024-02-21  Tobias Burnus  <tburnus@baylibre.com>
816         * libgomp.texi (OpenMP Context Selectors): Add 'nvptx64' as additional
817         'arch' value for nvptx.
819 2024-02-15  Kwok Cheung Yeung  <kcyeung@baylibre.com>
821         * libgomp.texi (OpenMP 5.1): Mark indirect call support as fully
822         implemented.
824 2024-02-15  Kwok Cheung Yeung  <kcyeung@baylibre.com>
826         * testsuite/libgomp.fortran/declare-target-indirect-1.f90: New.
827         * testsuite/libgomp.fortran/declare-target-indirect-2.f90: New.
828         * testsuite/libgomp.fortran/declare-target-indirect-3.f90: New.
830 2024-02-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
832         PR testsuite/113448
833         * testsuite/libgomp.c/alloc-pinned-1.c [!__linux__] (CHECK_SIZE):
834         Call abort.
835         * testsuite/libgomp.c/alloc-pinned-2.c [!__linux__] (CHECK_SIZE):
836         Likewise.
838 2024-02-11  John David Anglin  <danglin@gcc.gnu.org>
840         PR libgomp/113843
841         * configure.tgt (hppa*-*-linux*): Define config_path.
843 2024-02-01  John David Anglin  <danglin@gcc.gnu.org>
845         * testsuite/libgomp.c++/loop-3.C: Set num_threads to 50
846         on 32-bit hppa.
847         * testsuite/libgomp.c/omp-loop03.c: Likewise.
849 2024-01-29  Tobias Burnus  <tburnus@baylibre.com>
851         * testsuite/libgomp.c/declare-variant-4.h: Use gfx1100/gfx1030
852         function not gfx90a for gfx1100/gfx1030 context selector.
854 2024-01-26  Richard Biener  <rguenther@suse.de>
856         * plugin/plugin-gcn.c (suitable_hsa_agent_p): Filter out
857         agents with unsupported ISA.
859 2024-01-26  Richard Biener  <rguenther@suse.de>
861         * plugin/plugin-gcn.c
862         (EF_AMDGPU_MACH::EF_AMDGPU_MACH_UNSUPPORTED): Add.
863         (isa_code): Return that instead of -1.
864         (GOMP_OFFLOAD_init_device): Adjust.
866 2024-01-26  Tobias Burnus  <tburnus@baylibre.com>
868         * testsuite/libgomp.c/declare-variant-4.h: Add variant functions
869         for gfx1030 and gfx1100.
870         * testsuite/libgomp.c/declare-variant-4-gfx1030.c: New test.
871         * testsuite/libgomp.c/declare-variant-4-gfx1100.c: New test.
873 2024-01-26  Andrew Stubbs  <ams@baylibre.com>
875         * config/gcn/time.c (RTC_TICKS): Configure RDNA3.
876         (omp_get_wtime): Add RDNA3-compatible variant.
877         * plugin/plugin-gcn.c (max_isa_vgprs): Tune for gfx1030 and gfx1100.
879 2024-01-24  Tobias Burnus  <tburnus@baylibre.com>
880             Sandra Loosemore  <sandra@codesourcery.com>
882         * libgomp.texi (Runtime Library Routines): Document
883         omp_pause_resource, omp_pause_resource_all and
884         omp_target_memcpy{,_rect}{,_async}.
886 2024-01-22  Tobias Burnus  <tburnus@baylibre.com>
888         * testsuite/libgomp.c/declare-variant-4-fiji.c: Xfail as fiji
889         support is no longer enabled by default.
890         * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
892 2024-01-20  John David Anglin  <danglin@gcc.gnu.org>
894         * testsuite/libgomp.fortran/alloc-comp-3.f90: Increase
895         timeout by 2 on hppa*-*-*.
897 2024-01-20  John David Anglin  <danglin@gcc.gnu.org>
899         * testsuite/libgomp.c/simd-math-1.c: Don't run on
900         hppa*-*-hpux*.
902 2024-01-17  Jakub Jelinek  <jakub@redhat.com>
904         PR middle-end/113409
905         * testsuite/libgomp.c/bitint-1.c: New test.
907 2024-01-11  Julian Brown  <julian@codesourcery.com>
909         * libgomp.texi: C/C++ lvalues are supported now for map/to/from.
910         * testsuite/libgomp.c-c++-common/ind-base-4.c: New test.
911         * testsuite/libgomp.c-c++-common/unary-ptr-1.c: New test.
913 2024-01-10  Jakub Jelinek  <jakub@redhat.com>
915         PR libgomp/113192
916         * configure.ac (FLOCK): Use $libgomp_abs_srcdir/testsuite/flock
917         instead of \$(abs_top_srcdir)/testsuite/flock.
918         * configure: Regenerated.
920 2024-01-09  Julian Brown  <julian@codesourcery.com>
922         * testsuite/libgomp.c++/baseptrs-4.C: Remove commented-out cases that
923         now work.
924         * testsuite/libgomp.c++/baseptrs-6.C: New test.
925         * testsuite/libgomp.c++/ind-base-1.C: New test.
926         * testsuite/libgomp.c++/ind-base-2.C: New test.
927         * testsuite/libgomp.c++/lvalue-tofrom-1.C: New test.
928         * testsuite/libgomp.c++/lvalue-tofrom-2.C: New test.
929         * testsuite/libgomp.c++/map-comma-1.C: New test.
930         * testsuite/libgomp.c++/map-rvalue-ref-1.C: New test.
931         * testsuite/libgomp.c++/struct-ref-1.C: New test.
932         * testsuite/libgomp.c-c++-common/array-field-1.c: New test.
933         * testsuite/libgomp.c-c++-common/array-of-struct-1.c: New test.
934         * testsuite/libgomp.c-c++-common/array-of-struct-2.c: New test.
936 2024-01-09  Jakub Jelinek  <jakub@redhat.com>
938         PR libgomp/113192
939         * configure.ac (FLOCK): Use \$(abs_top_srcdir)/testsuite/flock
940         rather than $srcdir/testsuite/flock.
941         * configure: Regenerated.
943 2024-01-08  Thomas Schwinge  <thomas@codesourcery.com>
945         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
946         'EF_AMDGPU_MACH_AMDGCN_GFX1100'.
948 2024-01-08  Julian Brown  <julian@codesourcery.com>
950         * plugin/plugin-gcn.c (hsa_runtime_fn_info): Add
951         hsa_amd_memory_lock_fn, hsa_amd_memory_unlock_fn,
952         hsa_amd_memory_async_copy_rect_fn function pointers.
953         (init_hsa_runtime_functions): Add above functions, with
954         DLSYM_OPT_FN.
955         (GOMP_OFFLOAD_memcpy2d, GOMP_OFFLOAD_memcpy3d): New functions.
957 2024-01-08  Tobias Burnus  <tobias@codesourcery.com>
959         * plugin/plugin-gcn.c (gcn_gfx1100_s): New const string.
960         (gcn_isa_name_len): Fix length.
961         (isa_hsa_name, isa_code, max_isa_vgprs): Handle gfx1100.
963 2024-01-06  Tobias Burnus  <tobias@codesourcery.com>
965         * libgomp.texi (OpenMP Technical Report 12): Fix a typo.
966         (Device Memory Routines): Fix OpenMP 5.1 spec refs; add
967         omp_target_is_accessible.
968         (Environment Display Routine): Uncomment and add
969         omp_display_env description.
970         (OMP_DISPLAY_ENV): Update wording, add 'see also'.
972 2024-01-06  Mark Wielaard  <mark@klomp.org>
974         * configure: Regenerate.
976 2024-01-03  Jakub Jelinek  <jakub@redhat.com>
978         * libgomp.texi: Bump @copying's copyright year.
980 2023-12-21  Julian Brown  <julian@codesourcery.com>
982         * testsuite/libgomp.fortran/target-enter-data-6.f90: Remove XFAIL.
984 2023-12-20  Julian Brown  <julian@codesourcery.com>
986         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d): Adjust parameters to
987         avoid out-of-bounds array checks in CUDA runtime.
988         (GOMP_OFFLOAD_memcpy3d): Likewise.
989         * testsuite/libgomp.c-c++-common/memcpyxd-bias-1.c: New test.
991 2023-12-18  Jakub Jelinek  <jakub@redhat.com>
993         * testsuite/libgomp.c/declare-variant-1.c: Restrict the test to x86,
994         drop because of that unneeded target selector from other directives
995         and remove the aarch64 specific ones.
997 2023-12-15  Andre Vieira  <andre.simoesdiasvieira@arm.com>
999         * testsuite/libgomp.c/declare-variant-1.c: Fixed test.
1000         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
1002 2023-12-15  Thomas Schwinge  <thomas@codesourcery.com>
1004         * testsuite/libgomp.fortran/map-subarray-5.f90: Restrict
1005         'dg-output's to 'target offload_device_nonshared_as'.
1007 2023-12-15  Julian Brown  <julian@codesourcery.com>
1009         * oacc-mem.c (find_group_last, goacc_enter_data_internal,
1010         goacc_exit_data_internal, GOACC_enter_exit_data): Add
1011         GOMP_MAP_STRUCT_UNORD support.
1012         * target.c (gomp_map_vars_internal): Add GOMP_MAP_STRUCT_UNORD support.
1013         Detect incorrect use of variable indexing of arrays of structs.
1014         (GOMP_target_enter_exit_data, gomp_target_task_fn): Add
1015         GOMP_MAP_STRUCT_UNORD support.
1016         * testsuite/libgomp.c-c++-common/map-arrayofstruct-1.c: New test.
1017         * testsuite/libgomp.c-c++-common/map-arrayofstruct-2.c: New test.
1018         * testsuite/libgomp.c-c++-common/map-arrayofstruct-3.c: New test.
1019         * testsuite/libgomp.fortran/map-subarray-5.f90: New test.
1021 2023-12-13  Julian Brown  <julian@codesourcery.com>
1023         * testsuite/libgomp.fortran/map-subarray.f90: New test.
1024         * testsuite/libgomp.fortran/map-subarray-2.f90: New test.
1025         * testsuite/libgomp.fortran/map-subarray-3.f90: New test.
1026         * testsuite/libgomp.fortran/map-subarray-4.f90: New test.
1027         * testsuite/libgomp.fortran/map-subarray-6.f90: New test.
1028         * testsuite/libgomp.fortran/map-subarray-7.f90: New test.
1029         * testsuite/libgomp.fortran/map-subarray-8.f90: New test.
1030         * testsuite/libgomp.fortran/map-subcomponents.f90: New test.
1031         * testsuite/libgomp.fortran/struct-elem-map-1.f90: Adjust for
1032         descriptor-mapping changes.  Remove XFAIL.
1034 2023-12-13  Julian Brown  <julian@codesourcery.com>
1036         * target.c (gomp_map_pointer): Modify zero-length array section
1037         pointer handling.
1038         (gomp_attach_pointer): Likewise.
1039         (gomp_map_fields_existing): Use gomp_map_0len_lookup.
1040         (gomp_attach_pointer): Allow attaching null pointers (or Fortran
1041         "unassociated" pointers).
1042         (gomp_map_vars_internal): Handle zero-sized struct members.  Add
1043         diagnostic for unmapped struct pointer members.
1044         * testsuite/libgomp.c-c++-common/baseptrs-1.c: New test.
1045         * testsuite/libgomp.c-c++-common/baseptrs-2.c: New test.
1046         * testsuite/libgomp.c-c++-common/baseptrs-6.c: New test.
1047         * testsuite/libgomp.c-c++-common/baseptrs-7.c: New test.
1048         * testsuite/libgomp.c-c++-common/ptr-attach-2.c: New test.
1049         * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: Fix missing
1050         "free".
1051         * testsuite/libgomp.c-c++-common/target-implicit-map-5.c: New test.
1052         * testsuite/libgomp.c-c++-common/target-map-zlas-1.c: New test.
1053         * testsuite/libgomp.c++/class-array-1.C: New test.
1054         * testsuite/libgomp.c++/baseptrs-3.C: New test.
1055         * testsuite/libgomp.c++/baseptrs-4.C: New test.
1056         * testsuite/libgomp.c++/baseptrs-5.C: New test.
1057         * testsuite/libgomp.c++/baseptrs-8.C: New test.
1058         * testsuite/libgomp.c++/baseptrs-9.C: New test.
1059         * testsuite/libgomp.c++/ref-mapping-1.C: New test.
1060         * testsuite/libgomp.c++/target-48.C: New test.
1061         * testsuite/libgomp.c++/target-49.C: New test.
1062         * testsuite/libgomp.c++/target-exit-data-reftoptr-1.C: New test.
1063         * testsuite/libgomp.c++/target-lambda-1.C: Update for OpenMP 5.2
1064         semantics.
1065         * testsuite/libgomp.c++/target-this-3.C: Likewise.
1066         * testsuite/libgomp.c++/target-this-4.C: Likewise.
1067         * testsuite/libgomp.fortran/struct-elem-map-1.f90: Add temporary XFAIL.
1068         * testsuite/libgomp.fortran/target-enter-data-6.f90: Likewise.
1070 2023-12-13  Thomas Schwinge  <thomas@codesourcery.com>
1072         * config/linux/allocator.c (linux_memspace_alloc): Fix 'size_t'
1073         vs. '%ld' format string mismatch.
1075 2023-12-13  Andrew Stubbs  <ams@codesourcery.com>
1076             Thomas Schwinge  <thomas@codesourcery.com>
1078         * allocator.c (MEMSPACE_ALLOC): Add PIN.
1079         (MEMSPACE_CALLOC): Add PIN.
1080         (MEMSPACE_REALLOC): Add PIN.
1081         (MEMSPACE_FREE): Add PIN.
1082         (MEMSPACE_VALIDATE): Add PIN.
1083         (omp_init_allocator): Use MEMSPACE_VALIDATE to check pinning.
1084         (omp_aligned_alloc): Add pinning to all MEMSPACE_* calls.
1085         (omp_aligned_calloc): Likewise.
1086         (omp_realloc): Likewise.
1087         (omp_free): Likewise.
1088         * config/linux/allocator.c: New file.
1089         * config/nvptx/allocator.c (MEMSPACE_ALLOC): Add PIN.
1090         (MEMSPACE_CALLOC): Add PIN.
1091         (MEMSPACE_REALLOC): Add PIN.
1092         (MEMSPACE_FREE): Add PIN.
1093         (MEMSPACE_VALIDATE): Add PIN.
1094         * config/gcn/allocator.c (MEMSPACE_ALLOC): Add PIN.
1095         (MEMSPACE_CALLOC): Add PIN.
1096         (MEMSPACE_REALLOC): Add PIN.
1097         (MEMSPACE_FREE): Add PIN.
1098         * libgomp.texi: Switch pinned trait to supported.
1099         (MEMSPACE_VALIDATE): Add PIN.
1100         * testsuite/libgomp.c/alloc-pinned-1.c: New test.
1101         * testsuite/libgomp.c/alloc-pinned-2.c: New test.
1102         * testsuite/libgomp.c/alloc-pinned-3.c: New test.
1103         * testsuite/libgomp.c/alloc-pinned-4.c: New test.
1105 2023-12-11  Lipeng Zhu  <lipeng.zhu@intel.com>
1107         * testsuite/libgomp.fortran/rwlock_1.f90: New file.
1108         * testsuite/libgomp.fortran/rwlock_2.f90: New file.
1109         * testsuite/libgomp.fortran/rwlock_3.f90: New file.
1111 2023-12-11  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1113         * testsuite/libgomp.c/declare-variant-1.c: Adapt test for aarch64.
1114         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
1116 2023-12-11  Tobias Burnus  <tobias@codesourcery.com>
1118         * libgomp_g.h (GOMP_add_alloc, GOMP_is_alloc): Add.
1120 2023-12-08  Tobias Burnus  <tobias@codesourcery.com>
1122         * allocator.c (struct fort_alloc_splay_tree_key_s,
1123         fort_alloc_splay_compare, GOMP_add_alloc, GOMP_is_alloc): New.
1124         * libgomp.h: Define splay_tree_static for 'reverse' splay tree.
1125         * libgomp.map (GOMP_5.1.2): New; add GOMP_add_alloc and
1126         GOMP_is_alloc; move GOMP_target_map_indirect_ptr from ...
1127         (GOMP_5.1.1): ... here.
1128         * libgomp.texi (Impl. Status, Memory management): Update for
1129         allocators/allocate directives.
1130         * splay-tree.c: Handle splay_tree_static define to declare all
1131         functions as static.
1132         (splay_tree_lookup_node): New.
1133         * splay-tree.h: Handle splay_tree_decl_only define.
1134         (splay_tree_lookup_node): New prototype.
1135         * target.c: Define splay_tree_static for 'reverse'.
1136         * testsuite/libgomp.fortran/allocators-1.f90: New test.
1137         * testsuite/libgomp.fortran/allocators-2.f90: New test.
1138         * testsuite/libgomp.fortran/allocators-3.f90: New test.
1139         * testsuite/libgomp.fortran/allocators-4.f90: New test.
1140         * testsuite/libgomp.fortran/allocators-5.f90: New test.
1142 2023-12-06  Andrew Stubbs  <ams@codesourcery.com>
1144         * config/gcn/libgomp-gcn.h (TEAM_ARENA_START): Move to here.
1145         (TEAM_ARENA_FREE): Likewise.
1146         (TEAM_ARENA_END): Likewise.
1147         (GCN_LOWLAT_HEAP): New.
1148         * config/gcn/team.c (LITTLEENDIAN_CPU): New, and import hsa.h.
1149         (__gcn_lowlat_init): New prototype.
1150         (gomp_gcn_enter_kernel): Initialize the low-latency heap.
1151         * libgomp.h (TEAM_ARENA_START): Move to libgomp.h.
1152         (TEAM_ARENA_FREE): Likewise.
1153         (TEAM_ARENA_END): Likewise.
1154         * plugin/plugin-gcn.c (lowlat_size): New variable.
1155         (print_kernel_dispatch): Label the group_segment_size purpose.
1156         (init_environment_variables): Read GOMP_GCN_LOWLAT_POOL.
1157         (create_kernel_dispatch): Pass low-latency head allocation to kernel.
1158         (run_kernel): Use shadow; don't assume values.
1159         * testsuite/libgomp.c/omp_alloc-traits.c: Enable for amdgcn.
1160         * config/gcn/allocator.c: New file.
1161         * libgomp.texi: Document low-latency implementation details.
1163 2023-12-06  Andrew Stubbs  <ams@codesourcery.com>
1165         * allocator.c (MEMSPACE_VALIDATE): New macro.
1166         (omp_init_allocator): Use MEMSPACE_VALIDATE.
1167         (omp_aligned_alloc): Use OMP_LOW_LAT_MEM_ALLOC_INVALID.
1168         (omp_aligned_calloc): Likewise.
1169         (omp_realloc): Likewise.
1170         * config/nvptx/allocator.c (nvptx_memspace_validate): New function.
1171         (MEMSPACE_VALIDATE): New macro.
1172         (OMP_LOW_LAT_MEM_ALLOC_INVALID): New define.
1173         * libgomp.texi: Document low-latency implementation details.
1174         * testsuite/libgomp.c/omp_alloc-1.c (main): Add gnu_lowlat.
1175         * testsuite/libgomp.c/omp_alloc-2.c (main): Add gnu_lowlat.
1176         * testsuite/libgomp.c/omp_alloc-3.c (main): Add gnu_lowlat.
1177         * testsuite/libgomp.c/omp_alloc-4.c (main): Add access trait.
1178         * testsuite/libgomp.c/omp_alloc-5.c (main): Add gnu_lowlat.
1179         * testsuite/libgomp.c/omp_alloc-6.c (main): Add access trait.
1180         * testsuite/libgomp.c/omp_alloc-traits.c: New test.
1182 2023-12-06  Andrew Stubbs  <ams@codesourcery.com>
1183             Kwok Cheung Yeung   <kcy@codesourcery.com>
1184             Thomas Schwinge  <thomas@codesourcery.com>
1186         * allocator.c (MEMSPACE_ALLOC): New macro.
1187         (MEMSPACE_CALLOC): New macro.
1188         (MEMSPACE_REALLOC): New macro.
1189         (MEMSPACE_FREE): New macro.
1190         (predefined_alloc_mapping): New array.  Add _Static_assert to match.
1191         (ARRAY_SIZE): New macro.
1192         (omp_aligned_alloc): Use MEMSPACE_ALLOC.
1193         Implement fall-backs for predefined allocators.  Simplify existing
1194         fall-backs.
1195         (omp_free): Use MEMSPACE_FREE.
1196         (omp_calloc): Use MEMSPACE_CALLOC. Implement fall-backs for
1197         predefined allocators.  Simplify existing fall-backs.
1198         (omp_realloc): Use MEMSPACE_REALLOC, MEMSPACE_ALLOC, and MEMSPACE_FREE.
1199         Implement fall-backs for predefined allocators.  Simplify existing
1200         fall-backs.
1201         * config/nvptx/team.c (__nvptx_lowlat_pool): New asm variable.
1202         (__nvptx_lowlat_init): New prototype.
1203         (gomp_nvptx_main): Call __nvptx_lowlat_init.
1204         * libgomp.texi: Update memory space table.
1205         * plugin/plugin-nvptx.c (lowlat_pool_size): New variable.
1206         (GOMP_OFFLOAD_init_device): Read the GOMP_NVPTX_LOWLAT_POOL envvar.
1207         (GOMP_OFFLOAD_run): Apply lowlat_pool_size.
1208         * basic-allocator.c: New file.
1209         * config/nvptx/allocator.c: New file.
1210         * testsuite/libgomp.c/omp_alloc-1.c: New test.
1211         * testsuite/libgomp.c/omp_alloc-2.c: New test.
1212         * testsuite/libgomp.c/omp_alloc-3.c: New test.
1213         * testsuite/libgomp.c/omp_alloc-4.c: New test.
1214         * testsuite/libgomp.c/omp_alloc-5.c: New test.
1215         * testsuite/libgomp.c/omp_alloc-6.c: New test.
1217 2023-11-30  Thomas Schwinge  <thomas@codesourcery.com>
1219         * testsuite/libgomp.c/declare-variant-4-fiji.c: Adjust.
1220         * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
1221         * testsuite/libgomp.c/declare-variant-4-gfx900.c: Likewise.
1222         * testsuite/libgomp.c/declare-variant-4-gfx906.c: Likewise.
1223         * testsuite/libgomp.c/declare-variant-4-gfx908.c: Likewise.
1224         * testsuite/libgomp.c/declare-variant-4-gfx90a.c: Likewise.
1225         * testsuite/libgomp.c/declare-variant-4.h: Likewise.
1226         * testsuite/libgomp.c/declare-variant-4.c: New.
1228 2023-11-30  Thomas Schwinge  <thomas@codesourcery.com>
1230         * testsuite/libgomp.c/declare-variant-3-sm30.c: Turn 'dg-do run'
1231         into 'dg-do link'.
1232         * testsuite/libgomp.c/declare-variant-3.c: New.
1233         * testsuite/libgomp.c/declare-variant-3.h: Extend.
1235 2023-11-30  Thomas Schwinge  <thomas@codesourcery.com>
1237         * testsuite/libgomp.c/declare-variant-3-sm30.c: Restrict
1238         'scan-offload-tree-dump' to 'only_for_offload_target nvptx-none'.
1239         * testsuite/libgomp.c/declare-variant-3-sm35.c: Likewise.
1240         * testsuite/libgomp.c/declare-variant-3-sm53.c: Likewise.
1241         * testsuite/libgomp.c/declare-variant-3-sm70.c: Likewise.
1242         * testsuite/libgomp.c/declare-variant-3-sm75.c: Likewise.
1243         * testsuite/libgomp.c/declare-variant-3-sm80.c: Likewise.
1244         * testsuite/libgomp.c/declare-variant-4-fiji.c: Restrict
1245         'scan-offload-tree-dump' to
1246         'only_for_offload_target amdgcn-amdhsa'.
1247         * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
1248         * testsuite/libgomp.c/declare-variant-4-gfx900.c: Likewise.
1249         * testsuite/libgomp.c/declare-variant-4-gfx906.c: Likewise.
1250         * testsuite/libgomp.c/declare-variant-4-gfx908.c: Likewise.
1251         * testsuite/libgomp.c/declare-variant-4-gfx90a.c: Likewise.
1253 2023-11-30  Thomas Schwinge  <thomas@codesourcery.com>
1255         * testsuite/libgomp.c/declare-variant-3-sm30.c:
1256         'dg-additional-options -foffload=nvptx-none'.
1257         * testsuite/libgomp.c/declare-variant-3-sm35.c: Likewise.
1258         * testsuite/libgomp.c/declare-variant-3-sm53.c: Likewise.
1259         * testsuite/libgomp.c/declare-variant-3-sm70.c: Likewise.
1260         * testsuite/libgomp.c/declare-variant-3-sm75.c: Likewise.
1261         * testsuite/libgomp.c/declare-variant-3-sm80.c: Likewise.
1263 2023-11-29  Thomas Schwinge  <thomas@codesourcery.com>
1265         * testsuite/libgomp.c/target-simd-clone-1.c: Restrict
1266         'scan-offload-ipa-dump's to
1267         'only_for_offload_target amdgcn-amdhsa'.
1268         * testsuite/libgomp.c/target-simd-clone-2.c: Likewise.
1269         * testsuite/libgomp.c/target-simd-clone-3.c: Likewise.
1271 2023-11-24  Tobias Burnus  <tobias@codesourcery.com>
1273         * libgomp.texi (5.2 Impl. Status): An argument to the destroy clause
1274         is now supported.
1276 2023-11-22  Thomas Schwinge  <thomas@codesourcery.com>
1278         * testsuite/libgomp.c/declare-variant-3.h (f30, f35, f53, f70)
1279         (f75, f80, f): Add '__attribute__ ((noipa))'.
1280         * testsuite/libgomp.c/declare-variant-4.h (gfx803, gfx900, gfx906)
1281         (gfx908, gfx90a, f): Likewise.
1283 2023-11-15  Andrew Stubbs  <ams@codesourcery.com>
1284             Andrew Jenner   <andrew@codesourcery.com>
1286         * plugin/plugin-gcn.c (max_isa_vgprs): New.
1287         (run_kernel): CDNA2 devices have more VGPRs.
1289 2023-11-10  Tobias Burnus  <tobias@codesourcery.com>
1291         * libgomp.texi (OpenMP Impl. Status): Update for OpenMP TR12;
1292         renamed section from TR11.
1294 2023-11-07  Kwok Cheung Yeung  <kcy@codesourcery.com>
1296         * config/linux/target-indirect.c: Move to...
1297         * target-indirect.c: ...here.
1299 2023-11-07  Kwok Cheung Yeung  <kcy@codesourcery.com>
1301         * Makefile.am (libgomp_la_SOURCES): Add target-indirect.c.
1302         * Makefile.in: Regenerate.
1303         * libgomp-plugin.h (GOMP_INDIRECT_ADDR_MAP): New define.
1304         (GOMP_OFFLOAD_load_image): Add extra argument.
1305         * libgomp.h (struct indirect_splay_tree_key_s): New.
1306         (indirect_splay_tree_node, indirect_splay_tree,
1307         indirect_splay_tree_key): New.
1308         (indirect_splay_compare): New.
1309         * libgomp.map (GOMP_5.1.1): Add GOMP_target_map_indirect_ptr.
1310         * libgomp.texi (OpenMP 5.1): Update documentation on indirect
1311         calls in target region and on indirect clause.
1312         (Other new OpenMP 5.2 features): Add entry for virtual function calls.
1313         * libgomp_g.h (GOMP_target_map_indirect_ptr): Add prototype.
1314         * oacc-host.c (host_load_image): Add extra argument.
1315         * target.c (gomp_load_image_to_device): If the GOMP_VERSION is high
1316         enough, read host indirect functions table and pass to
1317         load_image_func.
1318         * config/accel/target-indirect.c: New.
1319         * config/linux/target-indirect.c: New.
1320         * config/gcn/team.c (build_indirect_map): Add prototype.
1321         (gomp_gcn_enter_kernel): Initialize support for indirect
1322         function calls on GCN target.
1323         * config/nvptx/team.c (build_indirect_map): Add prototype.
1324         (gomp_nvptx_main): Initialize support for indirect function
1325         calls on NVPTX target.
1326         * plugin/plugin-gcn.c (struct gcn_image_desc): Add field for
1327         indirect functions count.
1328         (GOMP_OFFLOAD_load_image): Add extra argument.  If the GOMP_VERSION
1329         is high enough, build address translation table and copy it to target
1330         memory.
1331         * plugin/plugin-nvptx.c (nvptx_tdata): Add field for indirect
1332         functions count.
1333         (GOMP_OFFLOAD_load_image): Add extra argument.  If the GOMP_VERSION
1334         is high enough, Build address translation table and copy it to target
1335         memory.
1336         * testsuite/libgomp.c-c++-common/declare-target-indirect-1.c: New.
1337         * testsuite/libgomp.c-c++-common/declare-target-indirect-2.c: New.
1338         * testsuite/libgomp.c++/declare-target-indirect-1.C: New.
1340 2023-11-05  Jakub Jelinek  <jakub@redhat.com>
1342         * libgomp.texi (Enabling OpenMP): Adjust wording for attribute syntax
1343         supported also in C.
1345 2023-10-31  Thomas Schwinge  <thomas@codesourcery.com>
1347         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Add OpenACC
1348         'acc_map_data' variant.
1350 2023-10-25  Thomas Schwinge  <thomas@codesourcery.com>
1352         * oacc-parallel.c (GOACC_data_start): Handle
1353         'GOACC_FLAG_LOCAL_DEVICE'.
1354         (GOACC_parallel_keyed): Simplify accordingly.
1355         * testsuite/libgomp.oacc-fortran/self-1.f90: Adjust.
1357 2023-10-25  Thomas Schwinge  <thomas@codesourcery.com>
1359         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Enhance.
1360         * testsuite/libgomp.oacc-c-c++-common/self-1.c: Likewise.
1361         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
1362         * testsuite/libgomp.oacc-c-c++-common/if-self-1.c: New.
1363         * testsuite/libgomp.oacc-fortran/self-1.f90: Likewise.
1365 2023-10-25  Chung-Lin Tang  <cltang@codesourcery.com>
1367         * oacc-parallel.c (GOACC_parallel_keyed): Add code to handle
1368         GOACC_FLAG_LOCAL_DEVICE case.
1369         * testsuite/libgomp.oacc-c-c++-common/self-1.c: New test.
1371 2023-10-22  Iain Sandoe  <iain@sandoe.co.uk>
1373         * Makefile.am: Handle Darwin rpaths.
1374         * Makefile.in: Regenerate.
1375         * configure: Regenerate.
1376         * configure.ac: Handle Darwin rpaths
1378 2023-10-20  Andrew Stubbs  <ams@codesourcery.com>
1380         * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX1030): New.
1381         (isa_hsa_name): Recognise gfx1030.
1382         (isa_code): Likewise.
1383         * team.c (defined): Remove s_endpgm.
1385 2023-10-20  Tobias Burnus  <tobias@codesourcery.com>
1387         * omp_lib.f90.in: Tag omp_lock_hint_* as being deprecated when
1388         _OPENMP >= 201811.
1390 2023-10-15  Tobias Burnus  <tobias@codesourcery.com>
1392         * libgomp.texi (Enabling OpenMP): Update for C/C++ attributes;
1393         improve wording especially for Fortran; mention -fopenmp-simd.
1394         (Enabling OpenACC): Minor cleanup; remove conditional compilation
1395         sentinel.
1397 2023-10-15  Tobias Burnus  <tobias@codesourcery.com>
1399         * libgomp.texi (ACC_DEVICE_TYPE, ACC_DEVICE_NUM, ACC_PROFLIB):
1400         Actually document what the function does.
1401         (GCC_ACC_NOTIFY): Remove unused env var.
1403 2023-10-15  Tobias Burnus  <tobias@codesourcery.com>
1405         * libgomp.texi: Replace most future tense by present tense.
1407 2023-10-14  Tobias Burnus  <tobias@codesourcery.com>
1409         * testsuite/libgomp.fortran/allocate-6.f90: Add missing
1410         dg-additional-options "-fdump-tree-gimple"; fix scan.
1412 2023-10-14  Tobias Burnus  <tobias@codesourcery.com>
1414         * libgomp.texi: Fix some typos.
1415         (Memory Management Routines): Document remaining 5.x routines.
1416         (Memory allocation): Make clear when the section applies.
1418 2023-10-14  Tobias Burnus  <tobias@codesourcery.com>
1420         * libgomp.texi (OpenMP Impl. Status): Mention that Fortran now
1421         supports the allocate directive for stack variables.
1422         * testsuite/libgomp.fortran/allocate-5.f90: New test.
1423         * testsuite/libgomp.fortran/allocate-6.f90: New test.
1424         * testsuite/libgomp.fortran/allocate-7.f90: New test.
1425         * testsuite/libgomp.fortran/allocate-8.f90: New test.
1427 2023-10-12  Tobias Burnus  <tobias@codesourcery.com>
1429         * libgomp.texi (OMP_DEFAULT_DEVICE): Update spec ref; add @ref to
1430         OMP_TARGET_OFFLOAD.
1431         (OMP_TARGET_OFFLOAD): Update spec ref; add @ref to OMP_DEFAULT_DEVICE;
1432         clarify MANDATORY behavior.
1434 2023-10-12  Zhang, Jun  <jun.zhang@intel.com>
1436         * env.c (initialize_env): Use do_adjust_default_spincount.
1437         * config/linux/x86/spincount.h: New file.
1439 2023-10-08  Tobias Burnus  <tobias@codesourcery.com>
1441         * testsuite/libgomp.fortran/strictly-structured-block-1.f90: New test.
1443 2023-10-06  Tobias Burnus  <tobias@codesourcery.com>
1445         * libgomp.texi (Device Memory Routines): New.
1447 2023-10-04  Tobias Burnus  <tobias@codesourcery.com>
1449         * libgomp.texi (OpenMP Context Selectors): Clarify 'kind' trait
1450         and that other target archs have no 'arch'/'isa' traits implemented.
1452 2023-09-20  Tobias Burnus  <tobias@codesourcery.com>
1454         * libgomp.texi (OpenMP 5.1 Impl.): Mark 'omp allocate' as
1455         implemented for C only.
1456         * testsuite/libgomp.c/allocate-4.c: New test.
1457         * testsuite/libgomp.c/allocate-5.c: New test.
1458         * testsuite/libgomp.c/allocate-6.c: New test.
1460 2023-09-20  Jakub Jelinek  <jakub@redhat.com>
1462         PR c++/111392
1463         * libgomp.texi: Mark decl attribute was added to the C++ attribute
1464         syntax as implemented.
1466 2023-09-19  Jakub Jelinek  <jakub@redhat.com>
1468         PR libgomp/111413
1469         * env.c (initialize_env): Don't dereference environ if it is NULL.
1470         Reindent.
1472 2023-09-18  Richard Biener  <rguenther@suse.de>
1474         PR tree-optimization/111294
1475         * team.c (gomp_team_start): Assert alloca size to avoid false
1476         positive alloc-size diagnostic.
1478 2023-09-12  Thomas Schwinge  <thomas@codesourcery.com>
1479             Chung-Lin Tang  <cltang@codesourcery.com>
1481         PR testsuite/91884
1482         PR testsuite/109951
1483         * configure.ac: Revert earlier changes, instead
1484         'AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET)'.
1485         * Makefile.in: Regenerate.
1486         * configure: Likewise.
1487         * testsuite/Makefile.in: Likewise.
1488         * testsuite/lib/libgomp.exp (libgomp_init): Remove
1489         "Fix up '-funconfigured-libstdc++-v3' in 'GXX_UNDER_TEST'" code.
1490         If '--with-build-sysroot=[...]' was specified, use it for
1491         build-tree testing.
1492         * testsuite/libgomp-site-extra.exp.in (GCC_UNDER_TEST)
1493         (GXX_UNDER_TEST, GFORTRAN_UNDER_TEST): Don't set.
1494         (SYSROOT_CFLAGS_FOR_TARGET): Set.
1495         * testsuite/libgomp.c++/c++.exp (lang_source_re)
1496         (lang_include_flags): Set for build-tree testing.
1497         * testsuite/libgomp.oacc-c++/c++.exp (lang_source_re)
1498         (lang_include_flags): Likewise.
1500 2023-09-07  Tobias Burnus  <tobias@codesourcery.com>
1502         * libgomp.texi (Memory Management Routines): New; add documentation for
1503         omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
1504         omp_get_default_allocator.
1505         (OMP_ALLOCATOR): Fix ICV var name; add see-also references.
1507 2023-09-07  Tobias Burnus  <tobias@codesourcery.com>
1509         * target.c (gomp_unload_device): Remove tailing whitespace.
1511 2023-09-04  Tobias Burnus  <tobias@codesourcery.com>
1512             Thomas Schwinge  <thomas@codesourcery.com>
1514         * testsuite/libgomp.c-c++-common/pr100059-1.c: New.
1516 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
1518         * libgomp.texi (OpenMP 5.0):  Imperfectly-nested loops are done.
1520 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
1522         * testsuite/libgomp.fortran/imperfect-destructor.f90: New.
1523         * testsuite/libgomp.fortran/imperfect1.f90: New.
1524         * testsuite/libgomp.fortran/imperfect2.f90: New.
1525         * testsuite/libgomp.fortran/imperfect3.f90: New.
1526         * testsuite/libgomp.fortran/imperfect4.f90: New.
1527         * testsuite/libgomp.fortran/target-imperfect1.f90: New.
1528         * testsuite/libgomp.fortran/target-imperfect2.f90: New.
1529         * testsuite/libgomp.fortran/target-imperfect3.f90: New.
1530         * testsuite/libgomp.fortran/target-imperfect4.f90: New.
1532 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
1534         * testsuite/libgomp.c-c++-common/imperfect1.c: New.
1535         * testsuite/libgomp.c-c++-common/imperfect2.c: New.
1536         * testsuite/libgomp.c-c++-common/imperfect3.c: New.
1537         * testsuite/libgomp.c-c++-common/imperfect4.c: New.
1538         * testsuite/libgomp.c-c++-common/imperfect5.c: New.
1539         * testsuite/libgomp.c-c++-common/imperfect6.c: New.
1540         * testsuite/libgomp.c-c++-common/target-imperfect1.c: New.
1541         * testsuite/libgomp.c-c++-common/target-imperfect2.c: New.
1542         * testsuite/libgomp.c-c++-common/target-imperfect3.c: New.
1543         * testsuite/libgomp.c-c++-common/target-imperfect4.c: New.
1545 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
1547         * testsuite/libgomp.c++/attrs-imperfect1.C: New test.
1548         * testsuite/libgomp.c++/attrs-imperfect2.C: New test.
1549         * testsuite/libgomp.c++/attrs-imperfect3.C: New test.
1550         * testsuite/libgomp.c++/attrs-imperfect4.C: New test.
1551         * testsuite/libgomp.c++/attrs-imperfect5.C: New test.
1552         * testsuite/libgomp.c++/attrs-imperfect6.C: New test.
1553         * testsuite/libgomp.c++/imperfect-class-1.C: New test.
1554         * testsuite/libgomp.c++/imperfect-class-2.C: New test.
1555         * testsuite/libgomp.c++/imperfect-class-3.C: New test.
1556         * testsuite/libgomp.c++/imperfect-destructor.C: New test.
1557         * testsuite/libgomp.c++/imperfect-template-1.C: New test.
1558         * testsuite/libgomp.c++/imperfect-template-2.C: New test.
1559         * testsuite/libgomp.c++/imperfect-template-3.C: New test.
1561 2023-08-22  Francois-Xavier Coudert  <fxcoudert@gmail.com>
1563         * testsuite/lib/libgomp.exp: Add effective target.
1564         * testsuite/libgomp.c/simd-math-1.c: Avoid calling nonstandard
1565         functions.
1567 2023-08-22  Tobias Burnus  <tobias@codesourcery.com>
1569         * libgomp.texi (OpenMP 5.2 status): Add depobj with
1570         destroy-var argument as 'N'. Mark defaultmap with
1571         'all' category as 'Y'.
1573 2023-08-19  Tobias Burnus  <tobias@codesourcery.com>
1575         PR middle-end/111017
1576         * testsuite/libgomp.c-c++-common/non-rect-loop-1.c: New test.
1578 2023-08-17  Tobias Burnus  <tobias@codesourcery.com>
1580         PR libgomp/111024
1581         * allocator.c (gomp_init_libnuma): Call numa_available; if
1582         not available or not returning 0, disable libnuma usage.
1584 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
1586         * configure: Regenerate.
1588 2023-08-07  Alexander von Gluck IV  <kallisti5@unixzen.com>
1590         * configure: Regenerate.
1592 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
1594         * configure: Regenerate.
1596 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
1598         * configure: Regenerate.
1600 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
1602         * configure: Regenerate.
1604 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
1606         * configure: Regenerate.
1608 2023-07-29  Tobias Burnus  <tobias@codesourcery.com>
1610         * target.c (omp_target_memcpy_rect_worker): Undo dim=1 change for
1611         GOMP_OFFLOAD_CAP_SHARED_MEM.
1612         (omp_target_memcpy_rect_copy): Likewise for lock condition.
1613         (gomp_load_plugin_for_device): Use DLSYM_OPT not DLSYM for
1614         memcpy3d/memcpy2d.
1615         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
1616         GOMP_OFFLOAD_memcpy3d): Use memset 0 to nullify reserved and
1617         unused src/dst fields for that mem type; remove '{src,dst}LOD = 0'.
1619 2023-07-26  Tobias Burnus  <tobias@codesourcery.com>
1621         * libgomp-plugin.h (GOMP_OFFLOAD_memcpy2d,
1622         GOMP_OFFLOAD_memcpy3d): New prototypes.
1623         * libgomp.h (struct gomp_device_descr): Add memcpy2d_func
1624         and memcpy3d_func.
1625         * libgomp.texi (nvtpx): Document when cuMemcpy2D/cuMemcpy3D is used.
1626         * oacc-host.c (memcpy2d_func, .memcpy3d_func): Init with NULL.
1627         * plugin/cuda-lib.def (cuMemcpy2D, cuMemcpy2DUnaligned,
1628         cuMemcpy3D): Invoke via CUDA_ONE_CALL.
1629         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
1630         GOMP_OFFLOAD_memcpy3d): New.
1631         * target.c (omp_target_memcpy_rect_worker):
1632         (omp_target_memcpy_rect_check, omp_target_memcpy_rect_copy):
1633         Permit all device-to-device copyies; invoke new plugins for
1634         2D and 3D copying when available.
1635         (gomp_load_plugin_for_device): DLSYM the new plugin functions.
1636         * testsuite/libgomp.c/target-12.c: Fix dimension bug.
1637         * testsuite/libgomp.fortran/target-12.f90: Likewise.
1638         * testsuite/libgomp.fortran/target-memcpy-rect-1.f90: New test.
1640 2023-07-26  Tobias Burnus  <tobias@codesourcery.com>
1642         * libgomp.texi (OpenMP 5.2 features): Add 'all' for 'defaultmap' as 'N'.
1643         (Tasking Routines): Document omp_in_explicit_task.
1644         (Implementation-defined ICV Initialization): Use @ref not @code.
1646 2023-07-20  Tobias Burnus  <tobias@codesourcery.com>
1648         * libgomp.texi (OpenMP Runtime Library Routines):
1649         Split long list by adding sections and moving routines there.
1650         (OMP_ALLOCATORS): Fix typo.
1652 2023-07-19  Tobias Burnus  <tobias@codesourcery.com>
1654         PR fortran/107424
1655         * libgomp.texi (Impl. Status 5.0): Add link to new PR110735.
1656         * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: Enable
1657         commented tests.
1658         * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: Remove
1659         test file; tests are in non-rectangular-loop-1.f90.
1660         * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: Change
1661         testcase to use a non-constant step to retain the 'sorry' test.
1662         * testsuite/libgomp.fortran/non-rectangular-loop-6.f90: New test.
1664 2023-07-17  Tobias Burnus  <tobias@codesoucery.com>
1665             Chung-Lin Tang  <cltang@codesourcery.com>
1667         * testsuite/libgomp.fortran/uses_allocators_1.f90: New test.
1668         * testsuite/libgomp.fortran/uses_allocators_2.f90: New test.
1670 2023-07-14  Tobias Burnus  <tobias@codesourcery.com>
1672         * libgomp.texi (OMP_ALLOCATOR): Document the default values for
1673         the traits. Add crossref to 'Memory allocation'.
1674         (Memory allocation): Refer to OMP_ALLOCATOR for the available
1675         traits and allocators/mem spaces; document the default value
1676         for the pool_size trait.
1678 2023-07-14  Tobias Burnus  <tobias@codesourcery.com>
1680         * allocator.c (omp_init_allocator): Check whether symbol from
1681         dlopened libnuma is available before using libnuma for
1682         allocations.
1684 2023-07-13  David Edelsohn  <dje.gcc@gmail.com>
1686         * testsuite/libgomp.c++/target-map-class-2.C: Require LTO.
1687         * testsuite/libgomp.c-c++-common/requires-4.c: Require LTO.
1688         * testsuite/libgomp.c-c++-common/requires-4a.c: Require LTO.
1690 2023-07-12  Tobias Burnus  <tobias@codesourcery.com>
1692         * libgomp.texi (OpenMP 5.0): Replace '... stub' by @ref to
1693         'Memory allocation' section which contains the full status.
1694         (TR11): Remove differently worded duplicated entry.
1696 2023-07-12  Tobias Burnus  <tobias@codesourcery.com>
1698         * allocator.c: Add ifdef for LIBGOMP_USE_LIBNUMA.
1699         (enum gomp_numa_memkind_kind): Renamed from gomp_memkind_kind;
1700         add GOMP_MEMKIND_LIBNUMA.
1701         (struct gomp_libnuma_data, gomp_init_libnuma, gomp_get_libnuma): New.
1702         (omp_init_allocator): Handle partition=nearest with libnuma if avail.
1703         (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
1704         numa_alloc_local (+ memset), numa_free, and numa_realloc calls as
1705         needed.
1706         * config/linux/allocator.c (LIBGOMP_USE_LIBNUMA): Define
1707         * libgomp.texi: Fix a typo; use 'fi' instead of its ligature char.
1708         (Memory allocation): Renamed from 'Memory allocation with libmemkind';
1709         updated for libnuma usage.
1710         * testsuite/libgomp.c-c++-common/alloc-11.c: New test.
1711         * testsuite/libgomp.c-c++-common/alloc-12.c: New test.
1713 2023-07-11  Tobias Burnus  <tobias@codesourcery.com>
1715         * allocator.c (omp_init_allocator): Use malloc for
1716         omp_high_bw_mem_space when the memkind lib is unavailable
1717         instead of returning omp_null_allocator.
1718         * libgomp.texi (OpenMP 5.0): Fix typo.
1719         (Memory allocation with libmemkind): Document implementation
1720         in more detail.
1722 2023-06-22  Tobias Burnus  <tobias@codesourcery.com>
1724         * libgomp.texi: Use @var for ICV vars.
1725         (OpenMP Environment Variables): Mention _ALL/_DEV/_DEV_<no> variants,
1726         document which ICV is set and which scope the ICV has; extend/cleanup
1727         some @ref.
1728         (Implementation-defined ICV Initialization): New.
1729         (nvptx): Document the implementation-defined used per-warp stack size.
1731 2023-06-19  Thomas Schwinge  <thomas@codesourcery.com>
1733         * testsuite/libgomp.c/target-51.c: Fix DejaGnu directive syntax
1734         error.
1736 2023-06-19  Tobias Burnus  <tobias@codesourcery.com>
1738         * testsuite/libgomp.c/target-51.c: Accept more error msg variants
1739         as expected dg-output.
1741 2023-06-19  Tobias Burnus  <tobias@codesourcery.com>
1743         PR middle-end/110270
1744         * target.c (gomp_map_vars_internal): Copy host value instead of NULL
1745         for  GOMP_MAP_ZERO_LEN_ARRAY_SECTION if not mapped.
1746         * libgomp.texi (OpenMP 5.2 Impl.): Mark as 'Y'.
1747         * testsuite/libgomp.c/target-19.c: Update expected value.
1748         * testsuite/libgomp.c++/target-18.C: Likewise.
1749         * testsuite/libgomp.c++/target-19.C: Likewise.
1750         * testsuite/libgomp.c-c++-common/requires-unified-addr-2.c: New test.
1751         * testsuite/libgomp.c-c++-common/target-implicit-map-3.c: New test.
1752         * testsuite/libgomp.c-c++-common/target-implicit-map-4.c: New test.
1754 2023-06-16  Tobias Burnus  <tobias@codesourcery.com>
1756         * target.c (resolve_device): Call gomp_get_num_devices early to ensure
1757         gomp_init_targets_once was called before using default-device-var.
1758         * testsuite/libgomp.c/target-55.c: New test.
1759         * testsuite/libgomp.c/target-55a.c: New test.
1761 2023-06-15  Tobias Burnus  <tobias@codesourcery.com>
1763         * env.c (gomp_def_allocator_envvar): New var.
1764         (parse_allocator): Handle OpenMP 5.1 syntax.
1765         (cleanup_env): New.
1766         (omp_display_env): Output gomp_def_allocator_envvar
1767         for an allocator with traits.
1768         * libgomp.texi (OMP_ALLOCATOR, OMP_AFFINITY_FORMAT,
1769         OMP_DISPLAY_AFFINITY): New.
1770         * testsuite/libgomp.c/allocator-1.c: New test.
1771         * testsuite/libgomp.c/allocator-2.c: New test.
1772         * testsuite/libgomp.c/allocator-3.c: New test.
1773         * testsuite/libgomp.c/allocator-4.c: New test.
1774         * testsuite/libgomp.c/allocator-5.c: New test.
1775         * testsuite/libgomp.c/allocator-6.c: New test.
1777 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
1779         * target.c (resolve_device): Align a
1780         'OMP_TARGET_OFFLOAD=mandatory' diagnostic with others.
1781         * testsuite/libgomp.c/target-51.c: Adjust.
1783 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
1785         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Don't
1786         set.
1787         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags):
1788         Likewise.
1789         * testsuite/libgomp.c/simd-math-1.c: Remove
1790         '-foffload-options=-lm'.
1791         * testsuite/libgomp.fortran/fortran-torture_execute_math.f90:
1792         Likewise.
1793         * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
1794         Likewise.
1796 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
1798         * testsuite/libgomp.fortran/fortran-torture_execute_math.f90: New.
1799         * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
1800         Likewise.
1802 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
1804         * testsuite/libgomp.c/target-51.c: Fix typo.
1806 2023-06-14  Tobias Burnus  <tobias@codesourcery.com>
1808         * env.c (gomp_default_icv_values): Init default_device_var to
1809         an nonconforming value - INT_MIN.
1810         (initialize_env): After env-var parsing, set default_device_var to
1811         device 0 unless OMP_TARGET_OFFLOAD=mandatory.
1812         (omp_display_env): If default_device_var is INT_MIN, call
1813         gomp_init_targets_once.
1814         * icv-device.c (omp_get_default_device): Likewise.
1815         * libgomp.texi (OMP_DEFAULT_DEVICE): Update init description.
1816         (OpenMP 5.2 Impl. Status): Mark OMP_TARGET_OFFLOAD=mandatory as 'Y'.
1817         * target.c (resolve_device): Improve error message device-num < 0
1818         with 'mandatory' and no no-host devices available.
1819         (gomp_target_init): Set default-device-var if INT_MIN.
1820         * testsuite/libgomp.c/target-48.c: New test.
1821         * testsuite/libgomp.c/target-49.c: New test.
1822         * testsuite/libgomp.c/target-50.c: New test.
1823         * testsuite/libgomp.c/target-50a.c: New test.
1824         * testsuite/libgomp.c/target-51.c: New test.
1825         * testsuite/libgomp.c/target-52.c: New test.
1826         * testsuite/libgomp.c/target-53.c: New test.
1827         * testsuite/libgomp.c/target-54.c: New test.
1829 2023-06-13  Tobias Burnus  <tobias@codesourcery.com>
1831         PR libgomp/109837
1832         * testsuite/libgomp.c-c++-common/requires-unified-addr-1.c: New test.
1833         * testsuite/libgomp.fortran/requires-unified-addr-1.f90: New test.
1835 2023-06-12  Tobias Burnus  <tobias@codesourcery.com>
1837         * target.c (gomp_to_device_kind_p, gomp_map_vars_internal): Replace
1838         GOMP_MAP_PRESENT_{FROM,TO,TOFROM,ACLLOC} by GOMP_MAP_FORCE_PRESENT.
1839         (gomp_map_vars_internal, gomp_update): Likewise; unify and improve
1840         error message.
1841         * testsuite/libgomp.c-c++-common/target-present-2.c: Update for
1842         changed error message.
1843         * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
1844         * testsuite/libgomp.fortran/target-present-2.f90: Likewise.
1845         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
1846         * testsuite/libgomp.c-c++-common/target-present-1.c: Likewise and
1847         extend testcase to check that data is copied when needed.
1848         * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
1849         * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
1851 2023-06-07  Thomas Schwinge  <thomas@codesourcery.com>
1852             Tobias Burnus  <tobias@codesourcery.com>
1854         * testsuite/libgomp.c-c++-common/target-present-1.c: Run code
1855         also for non-offload_device targets; check that it runs
1856         successfully for those and for all until a checkpoint for all
1857         * testsuite/libgomp.c-c++-common/target-present-2.c: Likewise.
1858         * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
1859         * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
1860         * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
1861         * testsuite/libgomp.fortran/target-present-2.f90: Likewise;
1862         add missing vars to map clause.
1864 2023-06-06  Tobias Burnus  <tobias@codesourcery.com>
1866         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Regard
1867         unified_address requirement as supported.
1868         * libgomp.texi (OpenMP 5.0, AMD Radeon, nvptx): Remove
1869         'unified_address' from the not-supported requirements.
1871 2023-06-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
1872             Tobias Burnus  <tobias@codesourcery.com>
1874         * libgomp.texi (OpenMP 5.1 Impl. status): Set 'present' support for
1875         defaultmap to 'Y', add 'Y' entry for 'present' on to/from/map clauses.
1876         * target.c (gomp_to_device_kind_p): Add map kinds with 'present'
1877         modifier.
1878         (gomp_map_vars_existing): Use new GOMP_MAP_FORCE_P macro.
1879         (gomp_map_vars_internal, gomp_update, gomp_target_rev):
1880         Emit runtime error if memory region not present.
1881         * testsuite/libgomp.c-c++-common/target-present-1.c: New test.
1882         * testsuite/libgomp.c-c++-common/target-present-2.c: New test.
1883         * testsuite/libgomp.c-c++-common/target-present-3.c: New test.
1884         * testsuite/libgomp.fortran/target-present-1.f90: New test.
1885         * testsuite/libgomp.fortran/target-present-2.f90: New test.
1886         * testsuite/libgomp.fortran/target-present-3.f90: New test.
1888 2023-06-02  Thomas Schwinge  <thomas@codesourcery.com>
1890         PR testsuite/66005
1891         * testsuite/lib/libgomp.exp: 'flock' through stdout.
1892         * testsuite/flock: New.
1893         * configure.ac (FLOCK): Point to that if no 'flock' available, but
1894         'perl' is.
1895         * configure: Regenerate.
1897 2023-06-02  Thomas Schwinge  <thomas@codesourcery.com>
1899         * configure.ac (PERL): Remove.
1900         * configure: Regenerate.
1901         * Makefile.in: Likewise.
1902         * testsuite/Makefile.in: Likewise.
1904 2023-06-01  Tobias Burnus  <tobias@codesourcery.com>
1906         * libgomp.texi (OpenMP 5.2): Mark pure-directive handling as 'Y'.
1908 2023-05-26  Tobias Burnus  <tobias@codesourcery.com>
1910         * testsuite/libgomp.fortran/allocate-4.f90: Update dg-error.
1912 2023-05-21  Tobias Burnus  <tobias@codesourcery.com>
1914         PR libgomp/109875
1915         * config/gcn/target.c (GOMP_teams4): Honor nteams-var ICV.
1916         * config/nvptx/target.c (GOMP_teams4): Likewise.
1917         * testsuite/libgomp.c-c++-common/teams-nteams-icv-1.c: New test.
1918         * testsuite/libgomp.c-c++-common/teams-nteams-icv-2.c: New test.
1919         * testsuite/libgomp.c-c++-common/teams-nteams-icv-3.c: New test.
1920         * testsuite/libgomp.c-c++-common/teams-nteams-icv-4.c: New test.
1922 2023-05-19  Jakub Jelinek  <jakub@redhat.com>
1924         PR libgomp/109904
1925         * configure.ac (link_gomp): Include also $DL_LIBS.
1926         * configure: Regenerated.
1928 2023-05-17  Tobias Burnus  <tobias@codesourcery.com>
1930         * testsuite/libgomp.fortran/target-enter-data-3.f90: Uncomment
1931         'target exit data'.
1932         * testsuite/libgomp.fortran/target-enter-data-4.f90: New test.
1933         * testsuite/libgomp.fortran/target-enter-data-5.f90: New test.
1934         * testsuite/libgomp.fortran/target-enter-data-6.f90: New test.
1935         * testsuite/libgomp.fortran/target-enter-data-7.f90: New test.
1937 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
1939         PR testsuite/66005
1940         * configure.ac: Look for 'flock'.
1941         * testsuite/Makefile.am (gcc_test_parallel_slots): Enable parallel testing.
1942         * testsuite/config/default.exp: Don't 'load_lib "standard.exp"' here...
1943         * testsuite/lib/libgomp.exp: ... but here, instead.
1944         (libgomp_load): Override for parallel testing.
1945         * testsuite/libgomp-site-extra.exp.in (FLOCK): Set.
1946         * configure: Regenerate.
1947         * Makefile.in: Regenerate.
1948         * testsuite/Makefile.in: Regenerate.
1950 2023-05-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1951             Thomas Schwinge  <thomas@codesourcery.com>
1953         PR testsuite/66005
1954         * testsuite/Makefile.am (PWD_COMMAND): New variable.
1955         (%/site.exp): New target.
1956         (check_p_numbers0, check_p_numbers1, check_p_numbers2)
1957         (check_p_numbers3, check_p_numbers4, check_p_numbers5)
1958         (check_p_numbers6, check_p_numbers, gcc_test_parallel_slots)
1959         (check_p_subdirs)
1960         (check_DEJAGNU_libgomp_targets): New variables.
1961         ($(check_DEJAGNU_libgomp_targets)): New target.
1962         ($(check_DEJAGNU_libgomp_targets)): New dependency.
1963         (check-DEJAGNU $(check_DEJAGNU_libgomp_targets)): New targets.
1964         * testsuite/Makefile.in: Regenerate.
1965         * testsuite/lib/libgomp.exp: For parallel testing,
1966         'load_file ../libgomp-test-support.exp'.
1968 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
1970         PR testsuite/91884
1971         * configure.ac: 'AC_SUBST(CXX)'.
1972         * configure: Regenerate.
1973         * Makefile.in: Likewise.
1974         * testsuite/Makefile.in: Likewise.
1975         * testsuite/libgomp-site-extra.exp.in (GXX_UNDER_TEST)
1976         (GFORTRAN_UNDER_TEST): Set.
1977         * testsuite/lib/libgomp.exp (libgomp_init): Adjust.
1978         * testsuite/libgomp.c++/c++.exp: Use 'GXX_UNDER_TEST'.
1979         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1980         * testsuite/libgomp.fortran/fortran.exp: Use
1981         'GFORTRAN_UNDER_TEST'.
1982         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1984 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
1986         PR testsuite/91884
1987         * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't
1988         specify compiler.
1989         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Specify compiler.
1990         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
1991         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
1992         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
1993         Likewise.
1994         * testsuite/libgomp.oacc-c++/c++.exp (ALWAYS_CFLAGS): Likewise.
1995         * testsuite/libgomp.oacc-c/c.exp (ALWAYS_CFLAGS): Likewise.
1996         * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS):
1997         Likewise.
1999 2023-05-12  Tobias Burnus  <tobias@codesourcery.com>
2001         PR libstdc++/109816
2002         * testsuite/libgomp.c++/target-map-class-1.C: New test.
2003         * testsuite/libgomp.c++/target-map-class-2.C: New test.
2005 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
2007         * testsuite/lib/libgomp.exp (libgomp_target_compile): Generalize
2008         'lang_library_path' into a list of 'lang_library_paths'.
2009         * testsuite/libgomp.c++/c++.exp: Adjust.
2010         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
2011         * testsuite/libgomp.fortran/fortran.exp: Adjust.  Use that for
2012         libquadmath, too.
2013         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2015 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
2017         * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't look
2018         at 'lang_test_file_found'.
2019         * testsuite/libgomp.c++/c++.exp: Don't set and use it, and instead
2020         'return' early if not able to test.  Simplify 'ld_library_path' setup.
2021         * testsuite/libgomp.fortran/fortran.exp: Likewise.
2022         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
2023         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2025 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
2027         * testsuite/libgomp.c++/c++.exp: Resolve 'lang_test_file_found'
2028         first.
2029         * testsuite/libgomp.fortran/fortran.exp: Likewise.
2030         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
2031         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2033 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
2035         * testsuite/libgomp.c++/c++.exp: Localize 'lang_[...]' etc.
2036         * testsuite/libgomp.c/c.exp: Likewise.
2037         * testsuite/libgomp.fortran/fortran.exp: Likewise.
2038         * testsuite/libgomp.graphite/graphite.exp: Likewise.
2039         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
2040         * testsuite/libgomp.oacc-c/c.exp: Likewise.
2041         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2043 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
2045         * testsuite/libgomp.c++/c++.exp: Don't set 'lang_test_file'.
2046         * testsuite/libgomp.fortran/fortran.exp: Likewise.
2047         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
2048         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2049         * testsuite/libgomp.c/c.exp: Unset 'lang_test_file_found' instead of
2050         'lang_test_file'.
2051         * testsuite/libgomp.oacc-c/c.exp: Likewise.
2052         * testsuite/libgomp.graphite/graphite.exp: Likewise.
2053         * testsuite/lib/libgomp.exp (libgomp_target_compile): Look for
2054         'lang_test_file_found' instead of 'lang_test_file'.
2056 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
2058         * testsuite/lib/libgomp.exp (libgomp_init): Only use 'blddir' if
2059         set.
2060         * testsuite/libgomp.c++/c++.exp: Likewise.
2061         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
2063 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
2065         * testsuite/libgomp.c++/c++.exp (blddir): Don't set.
2066         * testsuite/libgomp.oacc-c++/c++.exp (blddir): Likewise.
2068 2023-05-08  Thomas Schwinge  <thomas@codesourcery.com>
2070         * testsuite/libgomp.c++/c++.exp: Use 'lang_include_flags' instead
2071         of 'libstdcxx_includes'.
2072         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
2074 2023-05-08  Thomas Schwinge  <thomas@codesourcery.com>
2076         * target.c (gomp_target_rev): Instead of 'dev_to_host_cpy',
2077         'host_to_dev_cpy', 'token', take a single 'goacc_asyncqueue'.
2078         * libgomp.h (gomp_target_rev): Adjust.
2079         * libgomp-plugin.c (GOMP_PLUGIN_target_rev): Adjust.
2080         * libgomp-plugin.h (GOMP_PLUGIN_target_rev): Adjust.
2081         * plugin/plugin-gcn.c (process_reverse_offload): Adjust.
2082         * plugin/plugin-nvptx.c (rev_off_dev_to_host_cpy)
2083         (rev_off_host_to_dev_cpy): Remove.
2084         (GOMP_OFFLOAD_run): Adjust.
2086 2023-05-04  Julian Brown  <julian@codesourcery.com>
2088         PR fortran/109622
2089         * testsuite/libgomp.fortran/pr109622.f90: Move test...
2090         * testsuite/libgomp.oacc-fortran/pr109622.f90: ...to here. Ignore
2091         vector length warning.
2092         * testsuite/libgomp.fortran/pr109622-2.f90: Move test...
2093         * testsuite/libgomp.oacc-fortran/pr109622-2.f90: ...to here.  Add
2094         missing copyin/copyout variable. Ignore vector length warnings.
2095         * testsuite/libgomp.fortran/pr109622-3.f90: Move test...
2096         * testsuite/libgomp.oacc-fortran/pr109622-3.f90: ...to here.  Ignore
2097         vector length warnings.
2098         * testsuite/libgomp.oacc-fortran/pr109622-4.f90: New test.
2100 2023-04-28  Julian Brown  <julian@codesourcery.com>
2102         PR fortran/109622
2103         * testsuite/libgomp.fortran/pr109622.f90: New test.
2104         * testsuite/libgomp.fortran/pr109622-2.f90: New test.
2105         * testsuite/libgomp.fortran/pr109622-3.f90: New test.
2107 2023-04-25  Tobias Burnus  <tobias@codesourcery.com>
2109         * testsuite/libgomp.c-c++-common/scan-1.c: New test.
2110         * testsuite/libgomp.c/scan-23.c: New test.
2111         * testsuite/libgomp.fortran/scan-2.f90: New test.
2113 2023-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2115         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Add
2116         weak_undefined options.
2118 2023-03-24  Tobias Burnus  <tobias@codesourcery.com>
2120         * libgomp.texi (Offload-Target Specifics): Grammar fix.
2122 2023-03-24  Thomas Schwinge  <thomas@codesourcery.com>
2124         PR fortran/104949
2125         * target.c (gomp_map_vars_internal) <GOMP_MAP_FIRSTPRIVATE>: Add
2126         caveat/safeguard.
2128 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
2130         PR libgomp/90596
2131         * target.c (gomp_map_vars_internal): Allow for
2132         'param_kind == GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_TARGET'.
2133         * oacc-parallel.c (GOACC_parallel_keyed): Pass
2134         'GOMP_MAP_VARS_TARGET' to 'goacc_map_vars'.
2135         * plugin/plugin-gcn.c (alloc_by_agent, gcn_exec)
2136         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
2137         Adjust, simplify.
2138         (gomp_offload_free): Remove.
2139         * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
2140         (GOMP_OFFLOAD_openacc_async_exec): Adjust, simplify.
2141         (cuda_free_argmem): Remove.
2142         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
2143         Adjust.
2145 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
2147         * target.c (gomp_copy_host2dev, gomp_map_vars_internal): Allow
2148         libgomp 'cbuf' buffering with OpenACC 'async' for 'ephemeral'
2149         data.
2151 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
2153         * target.c (gomp_map_vars_internal): Use 'OFFSET_INLINED' for
2154         'GOMP_MAP_IF_PRESENT'.
2155         * plugin/plugin-gcn.c (gcn_exec, GOMP_OFFLOAD_openacc_exec)
2156         (GOMP_OFFLOAD_openacc_async_exec): Adjust.
2157         * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
2158         (GOMP_OFFLOAD_openacc_async_exec): Likewise.
2159         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: Add 'async'
2160         testing.
2161         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: Likewise.
2163 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
2165         * oacc-async.c (goacc_wait): Remove 'acc_async_test' -> skip
2166         shortcut.
2168 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
2170         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Document/verify
2171         another aspect of OpenACC 'async' semantics.
2173 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
2175         * plugin/plugin-gcn.c (gcn_exec): Fix 'acc_ev_enqueue_launch_end'
2176         position.
2177         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
2178         Verify 'acc_ev_alloc', 'acc_ev_free'.
2180 2023-03-09  Hongyu Wang  <hongyu.wang@intel.com>
2182         PR libgomp/109062
2183         * env.c (wait_policy): Initialize to -1.
2184         (initialize_icvs): Initialize icvs->wait_policy to -1.
2185         * testsuite/libgomp.c-c++-common/pr109062.c: New test.
2187 2023-03-08  Tobias Burnus  <tobias@codesourcery.com>
2189         * libgomp.texi (Offload-Target Specifics): Mention GCN_STACK_SIZE.
2191 2023-03-02  Kwok Cheung Yeung  <kcy@codesourcery.com>
2192             Paul-Antoine Arras  <pa@codesourcery.com>
2194         * testsuite/libgomp.c/simd-math-1.c: New testcase.
2196 2023-03-01  Tobias Burnus  <tobias@codesourcery.com>
2198         PR middle-end/108546
2199         * testsuite/libgomp.fortran/is_device_ptr-3.f90: New test.
2200         * testsuite/libgomp.fortran/use_device_ptr-optional-4.f90: New test.
2202 2023-02-22  Thomas Schwinge  <thomas@codesourcery.com>
2204         * testsuite/libgomp.fortran/alloc-10.f90: Use
2205         '-Wno-complain-wrong-lang'.
2206         * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
2207         * testsuite/libgomp.fortran/alloc-7.f90: Likewise.
2208         * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
2209         * testsuite/libgomp.fortran/allocate-1.f90: Likewise.
2210         * testsuite/libgomp.fortran/depend-4.f90: Likewise.
2211         * testsuite/libgomp.fortran/depend-5.f90: Likewise.
2212         * testsuite/libgomp.fortran/depend-6.f90: Likewise.
2213         * testsuite/libgomp.fortran/depend-7.f90: Likewise.
2214         * testsuite/libgomp.fortran/depend-inoutset-1.f90: Likewise.
2215         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90:
2216         Likewise.
2217         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90:
2218         Likewise.
2219         * testsuite/libgomp.fortran/order-reproducible-1.f90: Likewise.
2220         * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
2221         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
2222         * testsuite/libgomp.fortran/task-detach-6.f90: Remove left-over
2223         'dg-prune-output'.
2225 2023-02-16  Jakub Jelinek  <jakub@redhat.com>
2227         * libgomp.texi: Fix typos - theads -> threads.
2229 2023-02-16  Jakub Jelinek  <jakub@redhat.com>
2231         * testsuite/libgomp.fortran/target-nowait-array-section.f90: Fix
2232         comment typo and improve its wording.
2234 2023-02-15  Tobias Burnus  <tobias@codesourcery.com>
2236         * target.c (gomp_target_rev): Dereference ptr
2237         to get device address.
2238         * testsuite/libgomp.fortran/reverse-offload-5.f90: Add test
2239         for unallocated allocatable.
2241 2023-02-15  Tobias Burnus  <tobias@codesourcery.com>
2243         * target.c (gomp_map_vars_internal): Add 'i > 0' before doing a
2244         kind check.
2245         (GOMP_target_enter_exit_data): If the next map item is
2246         GOMP_MAP_ALWAYS_POINTER map it together with the current item.
2247         * testsuite/libgomp.fortran/target-enter-data-3.f90: New test.
2249 2023-02-09  Tobias Burnus  <tobias@codesourcery.com>
2251         PR fortran/107424
2252         * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: New test.
2253         * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: New test.
2254         * testsuite/libgomp.fortran/non-rectangular-loop-2.f90: New test.
2255         * testsuite/libgomp.fortran/non-rectangular-loop-3.f90: New test.
2256         * testsuite/libgomp.fortran/non-rectangular-loop-4.f90: New test.
2257         * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: New test.
2259 2023-02-07  Thomas Schwinge  <thomas@codesourcery.com>
2261         * testsuite/libgomp.fortran/reverse-offload-6.f90: Fix nvptx
2262         offloading compilation.
2264 2023-02-03  Tobias Burnus  <tobias@codesourcery.com>
2266         * target.c (gomp_target_rev): Handle mapnum == 0 and avoid
2267         freeing not allocated memory.
2268         * testsuite/libgomp.fortran/reverse-offload-6.f90: New test.
2270 2023-02-03  Tobias Burnus  <tobias@codesourcery.com>
2272         * libgomp.texi (5.0 Impl. Status, gcn specifics): Update for
2273         reverse offload.
2274         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Accept
2275         reverse-offload requirement.
2277 2023-02-02  Andrew Stubbs  <ams@codesourcery.com>
2279         * config/gcn/libgomp-gcn.h (DEFAULT_GCN_STACK_SIZE): New define.
2280         (DEFAULT_TEAM_ARENA_SIZE): New define.
2281         (struct heap): Move to this file.
2282         (struct kernargs_abi): Likewise.
2283         * config/gcn/team.c (gomp_gcn_enter_kernel): Use team arena size from
2284         the kernargs.
2285         * libgomp.h: Include libgomp-gcn.h.
2286         (TEAM_ARENA_SIZE): Remove.
2287         (team_malloc): Update the error message.
2288         * plugin/plugin-gcn.c (struct kernargs): Move common content to
2289         struct kernargs_abi.
2290         (struct agent_info): Rename team arenas to ephemeral memories.
2291         (struct team_arena_list): Rename ....
2292         (struct ephemeral_memories_list): to this.
2293         (struct heap): Delete.
2294         (team_arena_size): New variable.
2295         (stack_size): New variable.
2296         (print_kernel_dispatch): Update debug messages.
2297         (init_environment_variables): Read GCN_TEAM_ARENA_SIZE.
2298         Read GCN_STACK_SIZE.
2299         (get_team_arena): Rename ...
2300         (configure_ephemeral_memories): ... to this, and set up stacks.
2301         (release_team_arena): Rename ...
2302         (release_ephemeral_memories): ... to this.
2303         (destroy_team_arenas): Rename ...
2304         (destroy_ephemeral_memories): ... to this.
2305         (create_kernel_dispatch): Add num_threads parameter.
2306         Adjust for kernargs_abi refactor and ephemeral memories.
2307         (release_kernel_dispatch): Adjust for ephemeral memories.
2308         (run_kernel): Pass thread-count to create_kernel_dispatch.
2309         (GOMP_OFFLOAD_init_device): Adjust for ephemeral memories.
2310         (GOMP_OFFLOAD_fini_device): Adjust for ephemeral memories.
2312 2023-02-02  Tobias Burnus  <tobias@codesourcery.com>
2314         * libgomp.texi (OpenMP TR11): Fix item for 'strict' modifier.
2316 2023-02-01  Tobias Burnus  <tobias@codesourcery.com>
2318         * testsuite/libgomp.fortran/allocate-3.f90: Fix ALIGN
2319         usage, remove unused -fdump-tree-original.
2320         * testsuite/libgomp.fortran/allocate-4.f90: New.
2322 2023-02-01  Tobias Burnus  <tobias@codesourcery.com>
2324         * libgomp.texi (5.0 Impl. Status): Update 'requires' and 'ancestor'.
2325         (GCN): Add item about 'omp requires'.
2326         (nvptx): Likewise; add item about reverse offload.
2328 2023-01-27  Tobias Burnus  <tobias@codesourcery.com>
2330         PR fortran/108558
2331         * testsuite/libgomp.fortran/has_device_addr.f90: New test.
2333 2023-01-23  Tobias Burnus  <tobias@codesourcery.com>
2335         * libgomp.texi (OpenMP 5.0): Set non-rectangular
2336         loop nest back to 'P' as Fortran support is incomplete.
2338 2023-01-19  Jakub Jelinek  <jakub@redhat.com>
2340         PR middle-end/108459
2341         * testsuite/libgomp.c/pr108459.c: New test.
2343 2023-01-17  Martin Liska  <mliska@suse.cz>
2345         * Makefile.in: Regenerate.
2346         * configure: Regenerate.
2348 2023-01-07  LIU Hao  <lh_mouse@126.com>
2350         PR middle-end/108300
2351         * config/mingw32/proc.c: Define `WIN32_LEAN_AND_MEAN` before
2352         <windows.h>.
2354 2023-01-05  Jakub Jelinek  <jakub@redhat.com>
2356         PR c++/108286
2357         * testsuite/libgomp.c++/pr108286.C: New test.
2359 2023-01-02  Jakub Jelinek  <jakub@redhat.com>
2361         * libgomp.texi: Bump @copying's copyright year.
2363 2022-12-21  Chung-Lin Tang  <cltang@codesourcery.com>
2365         PR target/99555
2366         * config/nvptx/bar.c (generation_to_barrier): Remove.
2367         (futex_wait,futex_wake,do_spin,do_wait): Remove.
2368         (GOMP_WAIT_H): Remove.
2369         (#include "../linux/bar.c"): Remove.
2370         (gomp_barrier_wait_end): New function.
2371         (gomp_barrier_wait): Likewise.
2372         (gomp_barrier_wait_last): Likewise.
2373         (gomp_team_barrier_wait_end): Likewise.
2374         (gomp_team_barrier_wait): Likewise.
2375         (gomp_team_barrier_wait_final): Likewise.
2376         (gomp_team_barrier_wait_cancel_end): Likewise.
2377         (gomp_team_barrier_wait_cancel): Likewise.
2378         (gomp_team_barrier_cancel): Likewise.
2379         * config/nvptx/bar.h (gomp_barrier_t): Remove waiters, lock fields.
2380         (gomp_barrier_init): Remove init of waiters, lock fields.
2381         (gomp_team_barrier_wake): Remove prototype, add new static inline
2382         function.
2384 2022-12-21  Jakub Jelinek  <jakub@redhat.com>
2386         PR c++/108180
2387         * testsuite/libgomp.c++/pr108180.C: New test.
2389 2022-12-16  Tobias Burnus  <tobias@codesourcery.com>
2391         PR libfortran/108056
2392         * testsuite/libgomp.fortran/allocate-4.f90: Remove
2393         accidentally added file.
2395 2022-12-15  Tobias Burnus  <tobias@codesourcery.com>
2397         PR libfortran/108056
2398         * testsuite/libgomp.fortran/allocate-4.f90: New file.
2400 2022-12-14  Julian Brown  <julian@codesourcery.com>
2402         * testsuite/libgomp.fortran/combined-directive-splitting-1.f90: New
2403         test.
2405 2022-12-10  Tobias Burnus  <tobias@codesourcery.com>
2407         * libgomp.h (struct target_mem_desc): Predeclare; move
2408         below after 'reverse_splay_tree_node' and add rev_array
2409         member.
2410         (struct reverse_splay_tree_key_s, reverse_splay_compare): New.
2411         (reverse_splay_tree_node, reverse_splay_tree,
2412         reverse_splay_tree_key): New typedef.
2413         (struct gomp_device_descr): Add mem_map_rev member.
2414         * oacc-host.c (host_dispatch): NULL init .mem_map_rev.
2415         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Claim
2416         support for GOMP_REQUIRES_REVERSE_OFFLOAD.
2417         * splay-tree.h (splay_tree_callback_stop): New typedef; like
2418         splay_tree_callback but returning int not void.
2419         (splay_tree_foreach_lazy): Define; like splay_tree_foreach but
2420         taking splay_tree_callback_stop as argument.
2421         * splay-tree.c (splay_tree_foreach_internal_lazy,
2422         splay_tree_foreach_lazy): New; but early exit if callback returns
2423         nonzero.
2424         * target.c: Instatiate splay_tree_c with splay_tree_prefix 'reverse'.
2425         (gomp_map_lookup_rev): New.
2426         (gomp_load_image_to_device): Handle reverse-offload function
2427         lookup table.
2428         (gomp_unload_image_from_device): Free devicep->mem_map_rev.
2429         (struct gomp_splay_tree_rev_lookup_data, gomp_splay_tree_rev_lookup,
2430         gomp_map_rev_lookup, struct cpy_data, gomp_map_cdata_lookup_int,
2431         gomp_map_cdata_lookup): New auxiliary structs and functions for
2432         gomp_target_rev.
2433         (gomp_target_rev): Implement reverse offloading and its mapping.
2434         (gomp_target_init): Init current_device.mem_map_rev.root.
2435         * testsuite/libgomp.fortran/reverse-offload-2.f90: New test.
2436         * testsuite/libgomp.fortran/reverse-offload-3.f90: New test.
2437         * testsuite/libgomp.fortran/reverse-offload-4.f90: New test.
2438         * testsuite/libgomp.fortran/reverse-offload-5.f90: New test.
2439         * testsuite/libgomp.fortran/reverse-offload-5a.f90: New test without
2440         mapping of on-device allocated variables.
2442 2022-12-09  Tobias Burnus  <tobias@codesourcery.com>
2444         * libgomp.texi (5.1 Impl. Status): Split allocate clause/directive
2445         item about 'align'; mark clause as 'Y' and directive as 'N'.
2446         * testsuite/libgomp.fortran/allocate-2.f90: New test.
2447         * testsuite/libgomp.fortran/allocate-3.f90: New test.
2449 2022-12-06  Marcel Vollweiler  <marcel@codesourcery.com>
2451         * config/gcn/icv-device.c (omp_get_teams_thread_limit): Added to
2452         allow processing of device-specific values.
2453         (omp_set_teams_thread_limit): Likewise.
2454         (ialias): Likewise.
2455         * config/nvptx/icv-device.c (omp_get_teams_thread_limit): Likewise.
2456         (omp_set_teams_thread_limit): Likewise.
2457         (ialias): Likewise.
2458         * icv-device.c (omp_get_teams_thread_limit): Likewise.
2459         (ialias): Likewise.
2460         (omp_set_teams_thread_limit): Likewise.
2461         * icv.c (omp_set_teams_thread_limit): Removed.
2462         (omp_get_teams_thread_limit): Likewise.
2463         (ialias): Likewise.
2464         * libgomp.texi: Updated documentation for nvptx and gcn corresponding
2465         to the limitation of the number of teams.
2466         * plugin/plugin-gcn.c (limit_teams): New helper function that limits
2467         the number of teams by twice the number of compute units.
2468         (parse_target_attributes): Limit the number of teams on gcn offload
2469         devices.
2470         * target.c (get_gomp_offload_icvs): Added teams_thread_limit_var
2471         handling.
2472         (gomp_load_image_to_device): Added a size check for the ICVs struct
2473         variable.
2474         (gomp_copy_back_icvs): New function that is used in GOMP_target_ext to
2475         copy back the ICV values from device to host.
2476         (GOMP_target_ext): Update the number of teams and threads in the kernel
2477         args also considering device-specific values.
2478         * testsuite/libgomp.c-c++-common/icv-4.c: Fixed an error in the reading
2479         of OMP_TEAMS_THREAD_LIMIT from the environment.
2480         * testsuite/libgomp.c-c++-common/icv-5.c: Extended.
2481         * testsuite/libgomp.c-c++-common/icv-6.c: Extended.
2482         * testsuite/libgomp.c-c++-common/icv-7.c: Extended.
2483         * testsuite/libgomp.c-c++-common/icv-9.c: New test.
2484         * testsuite/libgomp.fortran/icv-5.f90: New test.
2485         * testsuite/libgomp.fortran/icv-6.f90: New test.
2487 2022-12-06  Tobias Burnus  <tobias@codesourcery.com>
2489         * libgomp.texi (OpenMP 5.2): Add missing 'the'.
2490         (TR11): Add missing '@tab N @tab'.
2492 2022-11-30  Tobias Burnus  <tobias@codesourcery.com>
2494         * libgomp.texi (OpenMP Context Selectors): Add 'gfx803' to gcn's isa.
2496 2022-11-30  Paul-Antoine Arras  <pa@codesourcery.com>
2498         * testsuite/libgomp.c/declare-variant-4-fiji.c: New test.
2499         * testsuite/libgomp.c/declare-variant-4-gfx803.c: New test.
2500         * testsuite/libgomp.c/declare-variant-4-gfx900.c: New test.
2501         * testsuite/libgomp.c/declare-variant-4-gfx906.c: New test.
2502         * testsuite/libgomp.c/declare-variant-4-gfx908.c: New test.
2503         * testsuite/libgomp.c/declare-variant-4-gfx90a.c: New test.
2504         * testsuite/libgomp.c/declare-variant-4.h: New header file.
2506 2022-11-28  Tobias Burnus  <tobias@codesourcery.com>
2508         * libgomp.texi (OpenMP 5.2): Mark end-directive as Y.
2510 2022-11-25  Sandra Loosemore  <sandra@codesourcery.com>
2512         * testsuite/lib/libgomp.exp: Load scanoffloadipa.exp library.
2513         * testsuite/libgomp.c/target-simd-clone-1.c: New.
2514         * testsuite/libgomp.c/target-simd-clone-2.c: New.
2515         * testsuite/libgomp.c/target-simd-clone-3.c: New.
2517 2022-11-25  Tobias Burnus  <tobias@codesourcery.com>
2519         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Use unsigned int
2520         for 'i' to match 'fn_entries'; regard absent GOMP_REV_OFFLOAD_VAR
2521         as valid and the code having no reverse-offload code.
2522         * testsuite/libgomp.c-c++-common/reverse-offload-2.c: New test.
2524 2022-11-25  Tobias Burnus  <tobias@codesourcery.com>
2526         * libgomp.texi (OpenMP Implementation Status): Add three 5.1 items
2527         and status for Technical Report (TR) 11.
2529 2022-11-21  Tobias Burnus  <tobias@codesourcery.com>
2531         * config/gcn/libgomp-gcn.h (struct output):
2532         Remove 'msg_u64' from the union, change
2533         value_u64[2] to value_u64[6].
2534         * config/gcn/target.c (GOMP_target_ext): Update accordingly.
2535         * plugin/plugin-gcn.c (process_reverse_offload, console_output):
2536         Likewise.
2538 2022-11-19  Tobias Burnus  <tobias@codesourcery.com>
2540         * config/gcn/libgomp-gcn.h: New file; contains
2541         struct output, declared previously in plugin-gcn.c.
2542         * config/gcn/target.c: Include it.
2543         (GOMP_ADDITIONAL_ICVS): Declare as extern var.
2544         (GOMP_target_ext): Handle reverse offload.
2545         * plugin/plugin-gcn.c: Include libgomp-gcn.h.
2546         (struct kernargs): Replace struct def by the one
2547         from libgomp-gcn.h for output_data.
2548         (process_reverse_offload): New.
2549         (console_output): Call it.
2551 2022-11-16  Tobias Burnus  <tobias@codesourcery.com>
2552             Andrew Stubbs  <ams@codesourcery.com>
2554         * config/gcn/team.c (gomp_gcn_enter_kernel): Use
2555         __builtin_gcn_kernarg_ptr instead of asm ("s8").
2557 2022-11-14  Martin Liska  <mliska@suse.cz>
2559         Revert:
2560         2022-11-14  Martin Liska  <mliska@suse.cz>
2562         * doc/amd-radeon-gcn.rst: New file.
2563         * doc/conf.py: New file.
2564         * doc/copyright.rst: New file.
2565         * doc/cuda-streams-usage.rst: New file.
2566         * doc/enabling-openacc.rst: New file.
2567         * doc/enabling-openmp.rst: New file.
2568         * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
2569         * doc/first-invocation-openacc-library-api.rst: New file.
2570         * doc/funding.rst: New file.
2571         * doc/general-public-license-3.rst: New file.
2572         * doc/gnu-free-documentation-license.rst: New file.
2573         * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
2574         * doc/index.rst: New file.
2575         * doc/indices-and-tables.rst: New file.
2576         * doc/introduction.rst: New file.
2577         * doc/memory-allocation-with-libmemkind.rst: New file.
2578         * doc/nvptx.rst: New file.
2579         * doc/offload-target-specifics.rst: New file.
2580         * doc/openacc-environment-variables.rst: New file.
2581         * doc/openacc-environment-variables/accdevicenum.rst: New file.
2582         * doc/openacc-environment-variables/accdevicetype.rst: New file.
2583         * doc/openacc-environment-variables/accproflib.rst: New file.
2584         * doc/openacc-environment-variables/gccaccnotify.rst: New file.
2585         * doc/openacc-introduction.rst: New file.
2586         * doc/openacc-library-and-environment-variables.rst: New file.
2587         * doc/openacc-library-interoperability.rst: New file.
2588         * doc/openacc-profiling-interface.rst: New file.
2589         * doc/openacc-runtime-library-routines.rst: New file.
2590         * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
2591         * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
2592         * doc/openacc-runtime-library-routines/accattach.rst: New file.
2593         * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
2594         * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
2595         * doc/openacc-runtime-library-routines/acccreate.rst: New file.
2596         * doc/openacc-runtime-library-routines/accdelete.rst: New file.
2597         * doc/openacc-runtime-library-routines/accdetach.rst: New file.
2598         * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
2599         * doc/openacc-runtime-library-routines/accfree.rst: New file.
2600         * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
2601         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
2602         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
2603         * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
2604         * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
2605         * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
2606         * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
2607         * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
2608         * doc/openacc-runtime-library-routines/accinit.rst: New file.
2609         * doc/openacc-runtime-library-routines/accispresent.rst: New file.
2610         * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
2611         * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
2612         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
2613         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
2614         * doc/openacc-runtime-library-routines/accondevice.rst: New file.
2615         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
2616         * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
2617         * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
2618         * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
2619         * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
2620         * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
2621         * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
2622         * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
2623         * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
2624         * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
2625         * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
2626         * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
2627         * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
2628         * doc/openacc-runtime-library-routines/accwait.rst: New file.
2629         * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
2630         * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
2631         * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
2632         * doc/openmp-context-selectors.rst: New file.
2633         * doc/openmp-environment-variables.rst: New file.
2634         * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
2635         * doc/openmp-environment-variables/gompdebug.rst: New file.
2636         * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
2637         * doc/openmp-environment-variables/gompspincount.rst: New file.
2638         * doc/openmp-environment-variables/gompstacksize.rst: New file.
2639         * doc/openmp-environment-variables/ompcancellation.rst: New file.
2640         * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
2641         * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
2642         * doc/openmp-environment-variables/ompdynamic.rst: New file.
2643         * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
2644         * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
2645         * doc/openmp-environment-variables/ompnested.rst: New file.
2646         * doc/openmp-environment-variables/ompnumteams.rst: New file.
2647         * doc/openmp-environment-variables/ompnumthreads.rst: New file.
2648         * doc/openmp-environment-variables/ompplaces.rst: New file.
2649         * doc/openmp-environment-variables/ompprocbind.rst: New file.
2650         * doc/openmp-environment-variables/ompschedule.rst: New file.
2651         * doc/openmp-environment-variables/ompstacksize.rst: New file.
2652         * doc/openmp-environment-variables/omptargetoffload.rst: New file.
2653         * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
2654         * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
2655         * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
2656         * doc/openmp-implementation-specifics.rst: New file.
2657         * doc/openmp-implementation-status.rst: New file.
2658         * doc/openmp-implementation-status/openmp-45.rst: New file.
2659         * doc/openmp-implementation-status/openmp-50.rst: New file.
2660         * doc/openmp-implementation-status/openmp-51.rst: New file.
2661         * doc/openmp-implementation-status/openmp-52.rst: New file.
2662         * doc/openmp-runtime-library-routines.rst: New file.
2663         * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
2664         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
2665         * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
2666         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
2667         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
2668         * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
2669         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
2670         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
2671         * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
2672         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
2673         * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
2674         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
2675         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
2676         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
2677         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
2678         * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
2679         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
2680         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
2681         * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
2682         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
2683         * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
2684         * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
2685         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
2686         * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
2687         * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
2688         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
2689         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
2690         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
2691         * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
2692         * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
2693         * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
2694         * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
2695         * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
2696         * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
2697         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
2698         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
2699         * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
2700         * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
2701         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
2702         * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
2703         * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
2704         * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
2705         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
2706         * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
2707         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
2708         * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
2709         * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
2710         * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
2711         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
2712         * doc/reporting-bugs.rst: New file.
2713         * doc/the-libgomp-abi.rst: New file.
2714         * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
2715         * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
2716         * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
2717         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2718         New file.
2719         * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
2720         * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
2721         * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
2722         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
2723         * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
2724         * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
2725         * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
2726         * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
2727         * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
2728         * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
2729         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
2731 2022-11-14  Martin Liska  <mliska@suse.cz>
2733         Revert:
2734         2022-11-14  Martin Liska  <mliska@suse.cz>
2736         * Makefile.in: Support Sphinx based documentation.
2738 2022-11-14  Martin Liska  <mliska@suse.cz>
2740         Revert:
2741         2022-11-14  Martin Liska  <mliska@suse.cz>
2743         * libgomp.texi: Removed.
2745 2022-11-14  Martin Liska  <mliska@suse.cz>
2747         Revert:
2748         2022-11-14  Martin Liska  <mliska@suse.cz>
2750         * Makefile.in: Support --with-sphinx-build.
2751         * configure.ac: Likewise..
2752         * configure: Regenerate.
2754 2022-11-14  Martin Liska  <mliska@suse.cz>
2756         Revert:
2757         2022-11-09  Martin Liska  <mliska@suse.cz>
2759         * Makefile.in: Build info pages conditionally.
2761 2022-11-14  Martin Liska  <mliska@suse.cz>
2763         Revert:
2764         2022-11-14  Martin Liska  <mliska@suse.cz>
2766         * doc/amd-radeon-gcn.rst:
2767         Add trailing newline.
2768         * doc/copyright.rst:
2769         Add trailing newline.
2770         * doc/cuda-streams-usage.rst:
2771         Add trailing newline.
2772         * doc/enabling-openacc.rst:
2773         Add trailing newline.
2774         * doc/enabling-openmp.rst:
2775         Add trailing newline.
2776         * doc/first-invocation-nvidia-cublas-library-api.rst:
2777         Add trailing newline.
2778         * doc/first-invocation-openacc-library-api.rst:
2779         Add trailing newline.
2780         * doc/funding.rst:
2781         Add trailing newline.
2782         * doc/general-public-license-3.rst:
2783         Add trailing newline.
2784         * doc/gnu-free-documentation-license.rst:
2785         Add trailing newline.
2786         * doc/implementation-status-and-implementation-defined-behavior.rst:
2787         Add trailing newline.
2788         * doc/index.rst:
2789         Add trailing newline.
2790         * doc/indices-and-tables.rst:
2791         Add trailing newline.
2792         * doc/introduction.rst:
2793         Add trailing newline.
2794         * doc/memory-allocation-with-libmemkind.rst:
2795         Add trailing newline.
2796         * doc/nvptx.rst:
2797         Add trailing newline.
2798         * doc/offload-target-specifics.rst:
2799         Add trailing newline.
2800         * doc/openacc-environment-variables.rst:
2801         Add trailing newline.
2802         * doc/openacc-environment-variables/accdevicenum.rst:
2803         Add trailing newline.
2804         * doc/openacc-environment-variables/accdevicetype.rst:
2805         Add trailing newline.
2806         * doc/openacc-environment-variables/accproflib.rst:
2807         Add trailing newline.
2808         * doc/openacc-environment-variables/gccaccnotify.rst:
2809         Add trailing newline.
2810         * doc/openacc-introduction.rst:
2811         Add trailing newline.
2812         * doc/openacc-library-and-environment-variables.rst:
2813         Add trailing newline.
2814         * doc/openacc-library-interoperability.rst:
2815         Add trailing newline.
2816         * doc/openacc-profiling-interface.rst:
2817         Add trailing newline.
2818         * doc/openacc-runtime-library-routines.rst:
2819         Add trailing newline.
2820         * doc/openacc-runtime-library-routines/accasynctest.rst:
2821         Add trailing newline.
2822         * doc/openacc-runtime-library-routines/accasynctestall.rst:
2823         Add trailing newline.
2824         * doc/openacc-runtime-library-routines/accattach.rst:
2825         Add trailing newline.
2826         * doc/openacc-runtime-library-routines/acccopyin.rst:
2827         Add trailing newline.
2828         * doc/openacc-runtime-library-routines/acccopyout.rst:
2829         Add trailing newline.
2830         * doc/openacc-runtime-library-routines/acccreate.rst:
2831         Add trailing newline.
2832         * doc/openacc-runtime-library-routines/accdelete.rst:
2833         Add trailing newline.
2834         * doc/openacc-runtime-library-routines/accdetach.rst:
2835         Add trailing newline.
2836         * doc/openacc-runtime-library-routines/accdeviceptr.rst:
2837         Add trailing newline.
2838         * doc/openacc-runtime-library-routines/accfree.rst:
2839         Add trailing newline.
2840         * doc/openacc-runtime-library-routines/accgetcudastream.rst:
2841         Add trailing newline.
2842         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
2843         Add trailing newline.
2844         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
2845         Add trailing newline.
2846         * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
2847         Add trailing newline.
2848         * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
2849         Add trailing newline.
2850         * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
2851         Add trailing newline.
2852         * doc/openacc-runtime-library-routines/accgetproperty.rst:
2853         Add trailing newline.
2854         * doc/openacc-runtime-library-routines/acchostptr.rst:
2855         Add trailing newline.
2856         * doc/openacc-runtime-library-routines/accinit.rst:
2857         Add trailing newline.
2858         * doc/openacc-runtime-library-routines/accispresent.rst:
2859         Add trailing newline.
2860         * doc/openacc-runtime-library-routines/accmalloc.rst:
2861         Add trailing newline.
2862         * doc/openacc-runtime-library-routines/accmapdata.rst:
2863         Add trailing newline.
2864         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
2865         Add trailing newline.
2866         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
2867         Add trailing newline.
2868         * doc/openacc-runtime-library-routines/accondevice.rst:
2869         Add trailing newline.
2870         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
2871         Add trailing newline.
2872         * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
2873         Add trailing newline.
2874         * doc/openacc-runtime-library-routines/accproflookup.rst:
2875         Add trailing newline.
2876         * doc/openacc-runtime-library-routines/accprofregister.rst:
2877         Add trailing newline.
2878         * doc/openacc-runtime-library-routines/accprofunregister.rst:
2879         Add trailing newline.
2880         * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
2881         Add trailing newline.
2882         * doc/openacc-runtime-library-routines/accsetcudastream.rst:
2883         Add trailing newline.
2884         * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
2885         Add trailing newline.
2886         * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
2887         Add trailing newline.
2888         * doc/openacc-runtime-library-routines/accshutdown.rst:
2889         Add trailing newline.
2890         * doc/openacc-runtime-library-routines/accunmapdata.rst:
2891         Add trailing newline.
2892         * doc/openacc-runtime-library-routines/accupdatedevice.rst:
2893         Add trailing newline.
2894         * doc/openacc-runtime-library-routines/accupdateself.rst:
2895         Add trailing newline.
2896         * doc/openacc-runtime-library-routines/accwait.rst:
2897         Add trailing newline.
2898         * doc/openacc-runtime-library-routines/accwaitall.rst:
2899         Add trailing newline.
2900         * doc/openacc-runtime-library-routines/accwaitallasync.rst:
2901         Add trailing newline.
2902         * doc/openacc-runtime-library-routines/accwaitasync.rst:
2903         Add trailing newline.
2904         * doc/openmp-context-selectors.rst:
2905         Add trailing newline.
2906         * doc/openmp-environment-variables.rst:
2907         Add trailing newline.
2908         * doc/openmp-environment-variables/gompcpuaffinity.rst:
2909         Add trailing newline.
2910         * doc/openmp-environment-variables/gompdebug.rst:
2911         Add trailing newline.
2912         * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
2913         Add trailing newline.
2914         * doc/openmp-environment-variables/gompspincount.rst:
2915         Add trailing newline.
2916         * doc/openmp-environment-variables/gompstacksize.rst:
2917         Add trailing newline.
2918         * doc/openmp-environment-variables/ompcancellation.rst:
2919         Add trailing newline.
2920         * doc/openmp-environment-variables/ompdefaultdevice.rst:
2921         Add trailing newline.
2922         * doc/openmp-environment-variables/ompdisplayenv.rst:
2923         Add trailing newline.
2924         * doc/openmp-environment-variables/ompdynamic.rst:
2925         Add trailing newline.
2926         * doc/openmp-environment-variables/ompmaxactivelevels.rst:
2927         Add trailing newline.
2928         * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
2929         Add trailing newline.
2930         * doc/openmp-environment-variables/ompnested.rst:
2931         Add trailing newline.
2932         * doc/openmp-environment-variables/ompnumteams.rst:
2933         Add trailing newline.
2934         * doc/openmp-environment-variables/ompnumthreads.rst:
2935         Add trailing newline.
2936         * doc/openmp-environment-variables/ompplaces.rst:
2937         Add trailing newline.
2938         * doc/openmp-environment-variables/ompprocbind.rst:
2939         Add trailing newline.
2940         * doc/openmp-environment-variables/ompschedule.rst:
2941         Add trailing newline.
2942         * doc/openmp-environment-variables/ompstacksize.rst:
2943         Add trailing newline.
2944         * doc/openmp-environment-variables/omptargetoffload.rst:
2945         Add trailing newline.
2946         * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
2947         Add trailing newline.
2948         * doc/openmp-environment-variables/ompthreadlimit.rst:
2949         Add trailing newline.
2950         * doc/openmp-environment-variables/ompwaitpolicy.rst:
2951         Add trailing newline.
2952         * doc/openmp-implementation-specifics.rst:
2953         Add trailing newline.
2954         * doc/openmp-implementation-status.rst:
2955         Add trailing newline.
2956         * doc/openmp-implementation-status/openmp-45.rst:
2957         Add trailing newline.
2958         * doc/openmp-implementation-status/openmp-50.rst:
2959         Add trailing newline.
2960         * doc/openmp-implementation-status/openmp-51.rst:
2961         Add trailing newline.
2962         * doc/openmp-implementation-status/openmp-52.rst:
2963         Add trailing newline.
2964         * doc/openmp-runtime-library-routines.rst:
2965         Add trailing newline.
2966         * doc/openmp-runtime-library-routines/ompdestroylock.rst:
2967         Add trailing newline.
2968         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
2969         Add trailing newline.
2970         * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
2971         Add trailing newline.
2972         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
2973         Add trailing newline.
2974         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
2975         Add trailing newline.
2976         * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
2977         Add trailing newline.
2978         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
2979         Add trailing newline.
2980         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
2981         Add trailing newline.
2982         * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
2983         Add trailing newline.
2984         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
2985         Add trailing newline.
2986         * doc/openmp-runtime-library-routines/ompgetlevel.rst:
2987         Add trailing newline.
2988         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
2989         Add trailing newline.
2990         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
2991         Add trailing newline.
2992         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
2993         Add trailing newline.
2994         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
2995         Add trailing newline.
2996         * doc/openmp-runtime-library-routines/ompgetnested.rst:
2997         Add trailing newline.
2998         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
2999         Add trailing newline.
3000         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
3001         Add trailing newline.
3002         * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
3003         Add trailing newline.
3004         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
3005         Add trailing newline.
3006         * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
3007         Add trailing newline.
3008         * doc/openmp-runtime-library-routines/ompgetschedule.rst:
3009         Add trailing newline.
3010         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
3011         Add trailing newline.
3012         * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
3013         Add trailing newline.
3014         * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
3015         Add trailing newline.
3016         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
3017         Add trailing newline.
3018         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
3019         Add trailing newline.
3020         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
3021         Add trailing newline.
3022         * doc/openmp-runtime-library-routines/ompgetwtick.rst:
3023         Add trailing newline.
3024         * doc/openmp-runtime-library-routines/ompgetwtime.rst:
3025         Add trailing newline.
3026         * doc/openmp-runtime-library-routines/ompinfinal.rst:
3027         Add trailing newline.
3028         * doc/openmp-runtime-library-routines/ompinitlock.rst:
3029         Add trailing newline.
3030         * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
3031         Add trailing newline.
3032         * doc/openmp-runtime-library-routines/ompinparallel.rst:
3033         Add trailing newline.
3034         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
3035         Add trailing newline.
3036         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
3037         Add trailing newline.
3038         * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
3039         Add trailing newline.
3040         * doc/openmp-runtime-library-routines/ompsetlock.rst:
3041         Add trailing newline.
3042         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
3043         Add trailing newline.
3044         * doc/openmp-runtime-library-routines/ompsetnested.rst:
3045         Add trailing newline.
3046         * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
3047         Add trailing newline.
3048         * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
3049         Add trailing newline.
3050         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
3051         Add trailing newline.
3052         * doc/openmp-runtime-library-routines/ompsetschedule.rst:
3053         Add trailing newline.
3054         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
3055         Add trailing newline.
3056         * doc/openmp-runtime-library-routines/omptestlock.rst:
3057         Add trailing newline.
3058         * doc/openmp-runtime-library-routines/omptestnestlock.rst:
3059         Add trailing newline.
3060         * doc/openmp-runtime-library-routines/ompunsetlock.rst:
3061         Add trailing newline.
3062         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
3063         Add trailing newline.
3064         * doc/reporting-bugs.rst:
3065         Add trailing newline.
3066         * doc/the-libgomp-abi.rst:
3067         Add trailing newline.
3068         * doc/the-libgomp-abi/implementing-atomic-construct.rst:
3069         Add trailing newline.
3070         * doc/the-libgomp-abi/implementing-barrier-construct.rst:
3071         Add trailing newline.
3072         * doc/the-libgomp-abi/implementing-critical-construct.rst:
3073         Add trailing newline.
3074         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
3075         Add trailing newline.
3076         * doc/the-libgomp-abi/implementing-flush-construct.rst:
3077         Add trailing newline.
3078         * doc/the-libgomp-abi/implementing-for-construct.rst:
3079         Add trailing newline.
3080         * doc/the-libgomp-abi/implementing-master-construct.rst:
3081         Add trailing newline.
3082         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
3083         Add trailing newline.
3084         * doc/the-libgomp-abi/implementing-ordered-construct.rst:
3085         Add trailing newline.
3086         * doc/the-libgomp-abi/implementing-parallel-construct.rst:
3087         Add trailing newline.
3088         * doc/the-libgomp-abi/implementing-private-clause.rst:
3089         Add trailing newline.
3090         * doc/the-libgomp-abi/implementing-reduction-clause.rst:
3091         Add trailing newline.
3092         * doc/the-libgomp-abi/implementing-sections-construct.rst:
3093         Add trailing newline.
3094         * doc/the-libgomp-abi/implementing-single-construct.rst:
3095         Add trailing newline.
3096         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
3097         Add trailing newline.
3099 2022-11-14  Martin Liska  <mliska@suse.cz>
3101         Revert:
3102         2022-11-09  Martin Liska  <mliska@suse.cz>
3104         * Makefile.in: Add missing HAS_SPHINX_BUILD.
3106 2022-11-14  Martin Liska  <mliska@suse.cz>
3108         Revert:
3109         2022-11-14  Martin Liska  <mliska@suse.cz>
3111         * doc/conf.py: Add newline at last line.
3113 2022-11-14  Martin Liska  <mliska@suse.cz>
3115         Revert:
3116         2022-11-14  Martin Liska  <mliska@suse.cz>
3118         PR other/107620
3119         * configure: Regenerate.
3120         * configure.ac: Always set sphinx-build.
3122 2022-11-13  Martin Liska  <mliska@suse.cz>
3124         PR other/107620
3125         * configure: Regenerate.
3126         * configure.ac: Always set sphinx-build.
3128 2022-11-12  Jakub Jelinek  <jakub@redhat.com>
3130         PR libgomp/107641
3131         * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
3132         unsigned long.  Change type of upper from unsigned to unsigned long.
3134 2022-11-10  Martin Liska  <mliska@suse.cz>
3136         * doc/conf.py: Add newline at last line.
3138 2022-11-09  Martin Liska  <mliska@suse.cz>
3140         * Makefile.in: Add missing HAS_SPHINX_BUILD.
3142 2022-11-09  Martin Liska  <mliska@suse.cz>
3144         * doc/amd-radeon-gcn.rst:
3145         Add trailing newline.
3146         * doc/copyright.rst:
3147         Add trailing newline.
3148         * doc/cuda-streams-usage.rst:
3149         Add trailing newline.
3150         * doc/enabling-openacc.rst:
3151         Add trailing newline.
3152         * doc/enabling-openmp.rst:
3153         Add trailing newline.
3154         * doc/first-invocation-nvidia-cublas-library-api.rst:
3155         Add trailing newline.
3156         * doc/first-invocation-openacc-library-api.rst:
3157         Add trailing newline.
3158         * doc/funding.rst:
3159         Add trailing newline.
3160         * doc/general-public-license-3.rst:
3161         Add trailing newline.
3162         * doc/gnu-free-documentation-license.rst:
3163         Add trailing newline.
3164         * doc/implementation-status-and-implementation-defined-behavior.rst:
3165         Add trailing newline.
3166         * doc/index.rst:
3167         Add trailing newline.
3168         * doc/indices-and-tables.rst:
3169         Add trailing newline.
3170         * doc/introduction.rst:
3171         Add trailing newline.
3172         * doc/memory-allocation-with-libmemkind.rst:
3173         Add trailing newline.
3174         * doc/nvptx.rst:
3175         Add trailing newline.
3176         * doc/offload-target-specifics.rst:
3177         Add trailing newline.
3178         * doc/openacc-environment-variables.rst:
3179         Add trailing newline.
3180         * doc/openacc-environment-variables/accdevicenum.rst:
3181         Add trailing newline.
3182         * doc/openacc-environment-variables/accdevicetype.rst:
3183         Add trailing newline.
3184         * doc/openacc-environment-variables/accproflib.rst:
3185         Add trailing newline.
3186         * doc/openacc-environment-variables/gccaccnotify.rst:
3187         Add trailing newline.
3188         * doc/openacc-introduction.rst:
3189         Add trailing newline.
3190         * doc/openacc-library-and-environment-variables.rst:
3191         Add trailing newline.
3192         * doc/openacc-library-interoperability.rst:
3193         Add trailing newline.
3194         * doc/openacc-profiling-interface.rst:
3195         Add trailing newline.
3196         * doc/openacc-runtime-library-routines.rst:
3197         Add trailing newline.
3198         * doc/openacc-runtime-library-routines/accasynctest.rst:
3199         Add trailing newline.
3200         * doc/openacc-runtime-library-routines/accasynctestall.rst:
3201         Add trailing newline.
3202         * doc/openacc-runtime-library-routines/accattach.rst:
3203         Add trailing newline.
3204         * doc/openacc-runtime-library-routines/acccopyin.rst:
3205         Add trailing newline.
3206         * doc/openacc-runtime-library-routines/acccopyout.rst:
3207         Add trailing newline.
3208         * doc/openacc-runtime-library-routines/acccreate.rst:
3209         Add trailing newline.
3210         * doc/openacc-runtime-library-routines/accdelete.rst:
3211         Add trailing newline.
3212         * doc/openacc-runtime-library-routines/accdetach.rst:
3213         Add trailing newline.
3214         * doc/openacc-runtime-library-routines/accdeviceptr.rst:
3215         Add trailing newline.
3216         * doc/openacc-runtime-library-routines/accfree.rst:
3217         Add trailing newline.
3218         * doc/openacc-runtime-library-routines/accgetcudastream.rst:
3219         Add trailing newline.
3220         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
3221         Add trailing newline.
3222         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
3223         Add trailing newline.
3224         * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
3225         Add trailing newline.
3226         * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
3227         Add trailing newline.
3228         * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
3229         Add trailing newline.
3230         * doc/openacc-runtime-library-routines/accgetproperty.rst:
3231         Add trailing newline.
3232         * doc/openacc-runtime-library-routines/acchostptr.rst:
3233         Add trailing newline.
3234         * doc/openacc-runtime-library-routines/accinit.rst:
3235         Add trailing newline.
3236         * doc/openacc-runtime-library-routines/accispresent.rst:
3237         Add trailing newline.
3238         * doc/openacc-runtime-library-routines/accmalloc.rst:
3239         Add trailing newline.
3240         * doc/openacc-runtime-library-routines/accmapdata.rst:
3241         Add trailing newline.
3242         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
3243         Add trailing newline.
3244         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
3245         Add trailing newline.
3246         * doc/openacc-runtime-library-routines/accondevice.rst:
3247         Add trailing newline.
3248         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
3249         Add trailing newline.
3250         * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
3251         Add trailing newline.
3252         * doc/openacc-runtime-library-routines/accproflookup.rst:
3253         Add trailing newline.
3254         * doc/openacc-runtime-library-routines/accprofregister.rst:
3255         Add trailing newline.
3256         * doc/openacc-runtime-library-routines/accprofunregister.rst:
3257         Add trailing newline.
3258         * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
3259         Add trailing newline.
3260         * doc/openacc-runtime-library-routines/accsetcudastream.rst:
3261         Add trailing newline.
3262         * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
3263         Add trailing newline.
3264         * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
3265         Add trailing newline.
3266         * doc/openacc-runtime-library-routines/accshutdown.rst:
3267         Add trailing newline.
3268         * doc/openacc-runtime-library-routines/accunmapdata.rst:
3269         Add trailing newline.
3270         * doc/openacc-runtime-library-routines/accupdatedevice.rst:
3271         Add trailing newline.
3272         * doc/openacc-runtime-library-routines/accupdateself.rst:
3273         Add trailing newline.
3274         * doc/openacc-runtime-library-routines/accwait.rst:
3275         Add trailing newline.
3276         * doc/openacc-runtime-library-routines/accwaitall.rst:
3277         Add trailing newline.
3278         * doc/openacc-runtime-library-routines/accwaitallasync.rst:
3279         Add trailing newline.
3280         * doc/openacc-runtime-library-routines/accwaitasync.rst:
3281         Add trailing newline.
3282         * doc/openmp-context-selectors.rst:
3283         Add trailing newline.
3284         * doc/openmp-environment-variables.rst:
3285         Add trailing newline.
3286         * doc/openmp-environment-variables/gompcpuaffinity.rst:
3287         Add trailing newline.
3288         * doc/openmp-environment-variables/gompdebug.rst:
3289         Add trailing newline.
3290         * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
3291         Add trailing newline.
3292         * doc/openmp-environment-variables/gompspincount.rst:
3293         Add trailing newline.
3294         * doc/openmp-environment-variables/gompstacksize.rst:
3295         Add trailing newline.
3296         * doc/openmp-environment-variables/ompcancellation.rst:
3297         Add trailing newline.
3298         * doc/openmp-environment-variables/ompdefaultdevice.rst:
3299         Add trailing newline.
3300         * doc/openmp-environment-variables/ompdisplayenv.rst:
3301         Add trailing newline.
3302         * doc/openmp-environment-variables/ompdynamic.rst:
3303         Add trailing newline.
3304         * doc/openmp-environment-variables/ompmaxactivelevels.rst:
3305         Add trailing newline.
3306         * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
3307         Add trailing newline.
3308         * doc/openmp-environment-variables/ompnested.rst:
3309         Add trailing newline.
3310         * doc/openmp-environment-variables/ompnumteams.rst:
3311         Add trailing newline.
3312         * doc/openmp-environment-variables/ompnumthreads.rst:
3313         Add trailing newline.
3314         * doc/openmp-environment-variables/ompplaces.rst:
3315         Add trailing newline.
3316         * doc/openmp-environment-variables/ompprocbind.rst:
3317         Add trailing newline.
3318         * doc/openmp-environment-variables/ompschedule.rst:
3319         Add trailing newline.
3320         * doc/openmp-environment-variables/ompstacksize.rst:
3321         Add trailing newline.
3322         * doc/openmp-environment-variables/omptargetoffload.rst:
3323         Add trailing newline.
3324         * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
3325         Add trailing newline.
3326         * doc/openmp-environment-variables/ompthreadlimit.rst:
3327         Add trailing newline.
3328         * doc/openmp-environment-variables/ompwaitpolicy.rst:
3329         Add trailing newline.
3330         * doc/openmp-implementation-specifics.rst:
3331         Add trailing newline.
3332         * doc/openmp-implementation-status.rst:
3333         Add trailing newline.
3334         * doc/openmp-implementation-status/openmp-45.rst:
3335         Add trailing newline.
3336         * doc/openmp-implementation-status/openmp-50.rst:
3337         Add trailing newline.
3338         * doc/openmp-implementation-status/openmp-51.rst:
3339         Add trailing newline.
3340         * doc/openmp-implementation-status/openmp-52.rst:
3341         Add trailing newline.
3342         * doc/openmp-runtime-library-routines.rst:
3343         Add trailing newline.
3344         * doc/openmp-runtime-library-routines/ompdestroylock.rst:
3345         Add trailing newline.
3346         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
3347         Add trailing newline.
3348         * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
3349         Add trailing newline.
3350         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
3351         Add trailing newline.
3352         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
3353         Add trailing newline.
3354         * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
3355         Add trailing newline.
3356         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
3357         Add trailing newline.
3358         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
3359         Add trailing newline.
3360         * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
3361         Add trailing newline.
3362         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
3363         Add trailing newline.
3364         * doc/openmp-runtime-library-routines/ompgetlevel.rst:
3365         Add trailing newline.
3366         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
3367         Add trailing newline.
3368         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
3369         Add trailing newline.
3370         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
3371         Add trailing newline.
3372         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
3373         Add trailing newline.
3374         * doc/openmp-runtime-library-routines/ompgetnested.rst:
3375         Add trailing newline.
3376         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
3377         Add trailing newline.
3378         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
3379         Add trailing newline.
3380         * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
3381         Add trailing newline.
3382         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
3383         Add trailing newline.
3384         * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
3385         Add trailing newline.
3386         * doc/openmp-runtime-library-routines/ompgetschedule.rst:
3387         Add trailing newline.
3388         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
3389         Add trailing newline.
3390         * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
3391         Add trailing newline.
3392         * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
3393         Add trailing newline.
3394         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
3395         Add trailing newline.
3396         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
3397         Add trailing newline.
3398         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
3399         Add trailing newline.
3400         * doc/openmp-runtime-library-routines/ompgetwtick.rst:
3401         Add trailing newline.
3402         * doc/openmp-runtime-library-routines/ompgetwtime.rst:
3403         Add trailing newline.
3404         * doc/openmp-runtime-library-routines/ompinfinal.rst:
3405         Add trailing newline.
3406         * doc/openmp-runtime-library-routines/ompinitlock.rst:
3407         Add trailing newline.
3408         * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
3409         Add trailing newline.
3410         * doc/openmp-runtime-library-routines/ompinparallel.rst:
3411         Add trailing newline.
3412         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
3413         Add trailing newline.
3414         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
3415         Add trailing newline.
3416         * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
3417         Add trailing newline.
3418         * doc/openmp-runtime-library-routines/ompsetlock.rst:
3419         Add trailing newline.
3420         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
3421         Add trailing newline.
3422         * doc/openmp-runtime-library-routines/ompsetnested.rst:
3423         Add trailing newline.
3424         * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
3425         Add trailing newline.
3426         * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
3427         Add trailing newline.
3428         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
3429         Add trailing newline.
3430         * doc/openmp-runtime-library-routines/ompsetschedule.rst:
3431         Add trailing newline.
3432         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
3433         Add trailing newline.
3434         * doc/openmp-runtime-library-routines/omptestlock.rst:
3435         Add trailing newline.
3436         * doc/openmp-runtime-library-routines/omptestnestlock.rst:
3437         Add trailing newline.
3438         * doc/openmp-runtime-library-routines/ompunsetlock.rst:
3439         Add trailing newline.
3440         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
3441         Add trailing newline.
3442         * doc/reporting-bugs.rst:
3443         Add trailing newline.
3444         * doc/the-libgomp-abi.rst:
3445         Add trailing newline.
3446         * doc/the-libgomp-abi/implementing-atomic-construct.rst:
3447         Add trailing newline.
3448         * doc/the-libgomp-abi/implementing-barrier-construct.rst:
3449         Add trailing newline.
3450         * doc/the-libgomp-abi/implementing-critical-construct.rst:
3451         Add trailing newline.
3452         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
3453         Add trailing newline.
3454         * doc/the-libgomp-abi/implementing-flush-construct.rst:
3455         Add trailing newline.
3456         * doc/the-libgomp-abi/implementing-for-construct.rst:
3457         Add trailing newline.
3458         * doc/the-libgomp-abi/implementing-master-construct.rst:
3459         Add trailing newline.
3460         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
3461         Add trailing newline.
3462         * doc/the-libgomp-abi/implementing-ordered-construct.rst:
3463         Add trailing newline.
3464         * doc/the-libgomp-abi/implementing-parallel-construct.rst:
3465         Add trailing newline.
3466         * doc/the-libgomp-abi/implementing-private-clause.rst:
3467         Add trailing newline.
3468         * doc/the-libgomp-abi/implementing-reduction-clause.rst:
3469         Add trailing newline.
3470         * doc/the-libgomp-abi/implementing-sections-construct.rst:
3471         Add trailing newline.
3472         * doc/the-libgomp-abi/implementing-single-construct.rst:
3473         Add trailing newline.
3474         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
3475         Add trailing newline.
3477 2022-11-09  Martin Liska  <mliska@suse.cz>
3479         * Makefile.in: Build info pages conditionally.
3481 2022-11-09  Martin Liska  <mliska@suse.cz>
3483         * Makefile.in: Support --with-sphinx-build.
3484         * configure.ac: Likewise..
3485         * configure: Regenerate.
3487 2022-11-09  Martin Liska  <mliska@suse.cz>
3489         * libgomp.texi: Removed.
3491 2022-11-09  Martin Liska  <mliska@suse.cz>
3493         * Makefile.in: Support Sphinx based documentation.
3495 2022-11-09  Martin Liska  <mliska@suse.cz>
3497         * doc/amd-radeon-gcn.rst: New file.
3498         * doc/conf.py: New file.
3499         * doc/copyright.rst: New file.
3500         * doc/cuda-streams-usage.rst: New file.
3501         * doc/enabling-openacc.rst: New file.
3502         * doc/enabling-openmp.rst: New file.
3503         * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
3504         * doc/first-invocation-openacc-library-api.rst: New file.
3505         * doc/funding.rst: New file.
3506         * doc/general-public-license-3.rst: New file.
3507         * doc/gnu-free-documentation-license.rst: New file.
3508         * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
3509         * doc/index.rst: New file.
3510         * doc/indices-and-tables.rst: New file.
3511         * doc/introduction.rst: New file.
3512         * doc/memory-allocation-with-libmemkind.rst: New file.
3513         * doc/nvptx.rst: New file.
3514         * doc/offload-target-specifics.rst: New file.
3515         * doc/openacc-environment-variables.rst: New file.
3516         * doc/openacc-environment-variables/accdevicenum.rst: New file.
3517         * doc/openacc-environment-variables/accdevicetype.rst: New file.
3518         * doc/openacc-environment-variables/accproflib.rst: New file.
3519         * doc/openacc-environment-variables/gccaccnotify.rst: New file.
3520         * doc/openacc-introduction.rst: New file.
3521         * doc/openacc-library-and-environment-variables.rst: New file.
3522         * doc/openacc-library-interoperability.rst: New file.
3523         * doc/openacc-profiling-interface.rst: New file.
3524         * doc/openacc-runtime-library-routines.rst: New file.
3525         * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
3526         * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
3527         * doc/openacc-runtime-library-routines/accattach.rst: New file.
3528         * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
3529         * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
3530         * doc/openacc-runtime-library-routines/acccreate.rst: New file.
3531         * doc/openacc-runtime-library-routines/accdelete.rst: New file.
3532         * doc/openacc-runtime-library-routines/accdetach.rst: New file.
3533         * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
3534         * doc/openacc-runtime-library-routines/accfree.rst: New file.
3535         * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
3536         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
3537         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
3538         * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
3539         * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
3540         * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
3541         * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
3542         * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
3543         * doc/openacc-runtime-library-routines/accinit.rst: New file.
3544         * doc/openacc-runtime-library-routines/accispresent.rst: New file.
3545         * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
3546         * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
3547         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
3548         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
3549         * doc/openacc-runtime-library-routines/accondevice.rst: New file.
3550         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
3551         * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
3552         * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
3553         * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
3554         * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
3555         * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
3556         * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
3557         * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
3558         * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
3559         * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
3560         * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
3561         * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
3562         * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
3563         * doc/openacc-runtime-library-routines/accwait.rst: New file.
3564         * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
3565         * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
3566         * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
3567         * doc/openmp-context-selectors.rst: New file.
3568         * doc/openmp-environment-variables.rst: New file.
3569         * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
3570         * doc/openmp-environment-variables/gompdebug.rst: New file.
3571         * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
3572         * doc/openmp-environment-variables/gompspincount.rst: New file.
3573         * doc/openmp-environment-variables/gompstacksize.rst: New file.
3574         * doc/openmp-environment-variables/ompcancellation.rst: New file.
3575         * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
3576         * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
3577         * doc/openmp-environment-variables/ompdynamic.rst: New file.
3578         * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
3579         * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
3580         * doc/openmp-environment-variables/ompnested.rst: New file.
3581         * doc/openmp-environment-variables/ompnumteams.rst: New file.
3582         * doc/openmp-environment-variables/ompnumthreads.rst: New file.
3583         * doc/openmp-environment-variables/ompplaces.rst: New file.
3584         * doc/openmp-environment-variables/ompprocbind.rst: New file.
3585         * doc/openmp-environment-variables/ompschedule.rst: New file.
3586         * doc/openmp-environment-variables/ompstacksize.rst: New file.
3587         * doc/openmp-environment-variables/omptargetoffload.rst: New file.
3588         * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
3589         * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
3590         * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
3591         * doc/openmp-implementation-specifics.rst: New file.
3592         * doc/openmp-implementation-status.rst: New file.
3593         * doc/openmp-implementation-status/openmp-45.rst: New file.
3594         * doc/openmp-implementation-status/openmp-50.rst: New file.
3595         * doc/openmp-implementation-status/openmp-51.rst: New file.
3596         * doc/openmp-implementation-status/openmp-52.rst: New file.
3597         * doc/openmp-runtime-library-routines.rst: New file.
3598         * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
3599         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
3600         * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
3601         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
3602         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
3603         * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
3604         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
3605         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
3606         * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
3607         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
3608         * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
3609         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
3610         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
3611         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
3612         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
3613         * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
3614         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
3615         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
3616         * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
3617         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
3618         * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
3619         * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
3620         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
3621         * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
3622         * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
3623         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
3624         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
3625         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
3626         * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
3627         * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
3628         * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
3629         * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
3630         * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
3631         * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
3632         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
3633         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
3634         * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
3635         * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
3636         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
3637         * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
3638         * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
3639         * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
3640         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
3641         * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
3642         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
3643         * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
3644         * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
3645         * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
3646         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
3647         * doc/reporting-bugs.rst: New file.
3648         * doc/the-libgomp-abi.rst: New file.
3649         * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
3650         * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
3651         * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
3652         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
3653         New file.
3654         * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
3655         * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
3656         * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
3657         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
3658         * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
3659         * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
3660         * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
3661         * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
3662         * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
3663         * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
3664         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
3666 2022-11-04  Thomas Schwinge  <thomas@codesourcery.com>
3668         * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
3669         * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
3670         documentation.
3671         * plugin/configfrag.ac <enable_offload_targets>
3672         [*-intelmic-* | *-intelmicemul-*]: Remove.
3673         * configure: Regenerate.
3674         * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
3675         handling.
3676         (offload_target_to_openacc_device_type)
3677         [$offload_target = *-intelmic*]: Remove.
3678         (check_effective_target_offload_device_intel_mic)
3679         (check_effective_target_offload_device_any_intel_mic): Remove.
3680         * testsuite/libgomp.c-c++-common/on_device_arch.h
3681         (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
3682         (any_device_arch_intel_mic): Remove.
3683         * testsuite/libgomp.c-c++-common/target-45.c: Remove
3684         'offload_device_any_intel_mic' XFAIL.
3685         * testsuite/libgomp.fortran/target10.f90: Likewise.
3687 2022-11-03  Tobias Burnus  <tobias@codesourcery.com>
3689         * testsuite/libgomp.fortran/target-11.f90: New test.
3690         * testsuite/libgomp.fortran/target-13.f90: New test.
3692 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
3694         PR libgomp/106643
3695         PR fortran/96668
3696         * oacc-mem.c (goacc_enter_data_internal): Support
3697         OpenACC 'declare create' with Fortran allocatable arrays, part II.
3698         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
3699         Adjust.
3700         * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
3702 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
3704         PR libgomp/106643
3705         * oacc-mem.c (goacc_enter_data_internal): Support
3706         OpenACC 'declare create' with Fortran allocatable arrays, part I.
3707         * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
3708         New.
3709         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
3710         New.
3712 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
3714         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
3715         New.
3717 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
3719         * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
3720         New.
3722 2022-11-02  Cesar Philippidis  <cesar@codesourcery.com>
3723             Thomas Schwinge  <thomas@codesourcery.com>
3725         * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
3727 2022-10-28  Julian Brown  <julian@codesourcery.com>
3728             Thomas Schwinge  <thomas@codesourcery.com>
3730         PR middle-end/90115
3731         * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
3732         * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
3733         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3734         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
3735         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3737 2022-10-24  Thomas Schwinge  <thomas@codesourcery.com>
3739         * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
3740         'ptx_dev->rev_data'.
3742 2022-10-24  Tobias Burnus  <tobias@codesourcery.com>
3744         * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
3745         'static' for this variable.
3746         * config/nvptx/libgomp-nvptx.h: New file.
3747         * config/nvptx/target.c: Include it.
3748         (GOMP_ADDITIONAL_ICVS): Declare extern var.
3749         (GOMP_REV_OFFLOAD_VAR): Declare var.
3750         (GOMP_target_ext): Handle reverse offload.
3751         * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
3752         * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
3753         * target.c (gomp_target_rev): ... this new stub function.
3754         * libgomp.h (gomp_target_rev): Declare.
3755         * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
3756         * plugin/cuda-lib.def (cuMemHostAlloc): Add.
3757         * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
3758         (struct ptx_device): Add rev_data member.
3759         (nvptx_open_device): Remove async_engines query, last used in
3760         r10-304-g1f4c5b9b; add unified-address assert check.
3761         (GOMP_OFFLOAD_get_num_devices): Claim unified address
3762         support.
3763         (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
3764         offload functions exist. Make offload var available
3765         on host and device.
3766         (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
3767         (GOMP_OFFLOAD_run): Handle reverse offload.
3769 2022-10-21  Thomas Schwinge  <thomas@codesourcery.com>
3771         PR tree-optimization/107195
3772         PR target/107344
3773         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
3774         regions checking.
3776 2022-10-20  Tobias Burnus  <tobias@codesourcery.com>
3778         * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
3779         New.
3780         * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
3781         on_device_arch_gcn): New.
3782         * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
3783         requires-4.c but using heap-allocated memory.
3785 2022-10-20  Thomas Schwinge  <thomas@codesourcery.com>
3787         PR target/105421
3788         * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
3790 2022-10-17  Thomas Schwinge  <thomas@codesourcery.com>
3792         * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
3793         '-foffload-options' syntax.
3795 2022-10-13  Tobias Burnus  <tobias@codesourcery.com>
3797         * testsuite/libgomp.fortran/task-7.f90: New test.
3798         * testsuite/libgomp.fortran/task-8.f90: New test.
3799         * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
3800         * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
3801         * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
3802         * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
3803         * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
3805 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
3807         * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
3808         in deprecation bullet.
3810 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
3812         * omp.h.in (omp_in_explicit_task): Declare.
3813         * omp_lib.h.in (omp_in_explicit_task): Likewise.
3814         * omp_lib.f90.in (omp_in_explicit_task): New interface.
3815         * libgomp.map (OMP_5.2): New symbol version, export
3816         omp_in_explicit_task and omp_in_explicit_task_.
3817         * task.c (omp_in_explicit_task): New function.
3818         * fortran.c (omp_in_explicit_task): Add ialias_redirect.
3819         (omp_in_explicit_task_): New function.
3820         * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
3821         * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
3822         * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
3823         * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
3825 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
3827         * task.c (gomp_create_artificial_team): Fix up handling of invocations
3828         from within explicit task.
3829         * target.c (GOMP_target_ext): Likewise.
3830         * testsuite/libgomp.c/task-7.c: New test.
3831         * testsuite/libgomp.c/task-8.c: New test.
3832         * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
3833         * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
3835 2022-10-12  Martin Liska  <mliska@suse.cz>
3837         * configure: Regenerate.
3839 2022-10-11  Olivier Hainque  <hainque@adacore.com>
3840             Olivier Hainque  <hainque@adacore.com>
3842         * configure: Regenerate.
3844 2022-10-05  Tobias Burnus  <tobias@codesourcery.com>
3846         * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
3848 2022-10-04  Jakub Jelinek  <jakub@redhat.com>
3850         * libgomp.texi (Support begin/end declare target syntax in C/C++):
3851         Mark as implemented.
3853 2022-09-30  Tobias Burnus  <tobias@codesourcery.com>
3855         PR fortran/105318
3856         * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
3858 2022-09-28  Tobias Burnus  <tobias@codesourcery.com>
3860         * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
3861         for C/C++. Remove duplicated 'begin declare target' entry.
3863 2022-09-24  Jakub Jelinek  <jakub@redhat.com>
3865         PR c/106981
3866         * testsuite/libgomp.c-c++-common/pr106981.c: New test.
3868 2022-09-14  Julian Brown  <julian@codesourcery.com>
3870         * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
3871         * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
3872         * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
3873         * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
3874         test to here, make "run" test.
3876 2022-09-13  Jakub Jelinek  <jakub@redhat.com>
3878         PR libgomp/106906
3879         * env.c (get_icv_member_addr): Cast false to void * before assigning
3880         it to icv_addr[1], and comment the whole assignment out.
3882 2022-09-13  Tobias Burnus  <tobias@codesourcery.com>
3884         * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
3885         (nvptx): ... here.
3887 2022-09-12  Tobias Burnus  <tobias@codesourcery.com>
3889         * libgomp.texi (Offload-Target Specifics: nvptx): Document
3890         that reverse offload requires >= -march=sm_35.
3891         * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
3892         with -misa=sm_35.
3893         * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
3894         * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
3895         * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
3896         * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
3897         * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
3899 2022-09-12  Tobias Burnus  <tobias@codesourcery.com>
3901         * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
3902         (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
3904 2022-09-12  Jakub Jelinek  <jakub@redhat.com>
3906         PR libgomp/106894
3907         * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
3908         (main): Avoid tests for which corresponding non-_ALL suffixed variable
3909         is in the environment, or for OMP_NUM_TEAMS on the device
3910         OMP_NUM_TEAMS_DEV_?.
3912 2022-09-10  Iain Sandoe  <iain@sandoe.co.uk>
3914         * env.c (initialize_env): Include libiberty environ.h.
3916 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
3918         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
3919         function address table '$offload_func_table' if rev_fn_table
3920         is not NULL.
3922 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
3924         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
3925         .offload_func_table to populate rev_fn_table when requested.
3927 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
3929         * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
3930         'uint64_t **rev_fn_table' argument.
3931         * oacc-host.c (host_load_image): Likewise.
3932         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
3933         currently unused.
3934         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3935         * target.c (gomp_load_image_to_device): Update call but pass
3936         NULL for now.
3938 2022-09-09  Jakub Jelinek  <jakub@redhat.com>
3940         PR libgomp/106894
3941         * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
3942         char * for dest[1] initialization from params[1].  Formatting fixes.
3944 2022-09-08  Tobias Burnus  <tobias@codesourcery.com>
3946         PR fortran/106670
3947         * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
3949 2022-09-08  Tobias Burnus  <tobias@codesourcery.com>
3951         * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
3952         section; move OpenMP Context Selectors from ...
3953         (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
3954         'nvptx' sections.
3956 2022-09-08  Marcel Vollweiler  <marcel@codesourcery.com>
3958         * config/gcn/icv-device.c (omp_get_default_device): Return device-
3959         specific ICV.
3960         (omp_get_max_teams): Added for GCN devices.
3961         (omp_set_num_teams): Likewise.
3962         (ialias): Likewise.
3963         * config/nvptx/icv-device.c (omp_get_default_device): Return device-
3964         specific ICV.
3965         (omp_get_max_teams): Added for NVPTX devices.
3966         (omp_set_num_teams): Likewise.
3967         (ialias): Likewise.
3968         * env.c (struct gomp_icv_list): New struct to store entries of initial
3969         ICV values.
3970         (struct gomp_offload_icv_list): New struct to store entries of device-
3971         specific ICV values that are copied to the device and back.
3972         (struct gomp_default_icv_values): New struct to store default values of
3973         ICVs according to the OpenMP standard.
3974         (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
3975         (print_env_var_error): Function that prints an error for invalid values
3976         for ICVs.
3977         (parse_unsigned_long_1): Removed getenv.  Generalized.
3978         (parse_unsigned_long): Likewise.
3979         (parse_int_1): Likewise.
3980         (parse_int): Likewise.
3981         (parse_int_secure): Likewise.
3982         (parse_unsigned_long_list): Likewise.
3983         (parse_target_offload): Likewise.
3984         (parse_bind_var): Likewise.
3985         (parse_stacksize): Likewise.
3986         (parse_boolean): Likewise.
3987         (parse_wait_policy): Likewise.
3988         (parse_allocator): Likewise.
3989         (omp_display_env): Extended to output different variants of environment
3990         variables.
3991         (print_schedule): New helper function for omp_display_env which prints
3992         the values of run_sched_var.
3993         (print_proc_bind): New helper function for omp_display_env which prints
3994         the values of proc_bind_var.
3995         (enum gomp_parse_type): Collection of types used for parsing environment
3996         variables.
3997         (ENTRY): Preprocess string lengths of environment variables.
3998         (OMP_VAR_CNT): Preprocess table size.
3999         (OMP_HOST_VAR_CNT): Likewise.
4000         (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
4001         number.
4002         (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
4003         (gomp_set_icv_flag): Sets a flag for a particular ICV.
4004         (print_device_specific_icvs): New helper function for omp_display_env to
4005         print device specific ICV values.
4006         (get_device_num): New helper function for parse_device_specific.
4007         Extracts the device number from an environment variable name.
4008         (get_icv_member_addr): Gets the memory address for a particular member
4009         of an ICV struct.
4010         (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
4011         (initialize_icvs): New function to initialize a gomp_initial_icvs
4012         struct.
4013         (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
4014         (startswith): Checks if a string starts with a given prefix.
4015         (initialize_env): Extended to parse the new syntax of environment
4016         variables.
4017         * icv-device.c (omp_get_max_teams): Added.
4018         (ialias): Likewise.
4019         (omp_set_num_teams): Likewise.
4020         * icv.c (omp_set_num_teams): Moved to icv-device.c.
4021         (omp_get_max_teams): Likewise.
4022         (ialias): Likewise.
4023         * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
4024         (GOMP_ADDITIONAL_ICVS): New target-side struct that
4025         holds the designated ICVs of the target device.
4026         * libgomp.h (enum gomp_icvs): Collection of ICVs.
4027         (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
4028         no suffix.
4029         (enum gomp_env_suffix): Collection of possible suffixes of environment
4030         variables.
4031         (struct gomp_initial_icvs): Contains all ICVs for which we need to store
4032         initial values.
4033         (struct gomp_default_icv):New struct to hold ICVs for which we need
4034         to store initial values.
4035         (struct gomp_icv_list): Definition of a linked list that is used for
4036         storing ICVs for the devices and also for _DEV, _ALL, and without
4037         suffix.
4038         (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
4039         a device.
4040         (struct gomp_offload_icv_list): Definition of a linked list that holds
4041         device-specific ICVs that are copied to devices.
4042         (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
4043         (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
4044         * libgomp.texi: Updated.
4045         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
4046         further ICVs from the offload image.
4047         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
4048         * target.c (gomp_get_offload_icv_item): Get a list item of
4049         gomp_offload_icv_list.
4050         (get_gomp_offload_icvs): New. Returns the ICV values
4051         depending on the device num and the variable hierarchy.
4052         (gomp_load_image_to_device): Extended to copy further ICVs to a device.
4053         * testsuite/libgomp.c-c++-common/icv-5.c: New test.
4054         * testsuite/libgomp.c-c++-common/icv-6.c: New test.
4055         * testsuite/libgomp.c-c++-common/icv-7.c: New test.
4056         * testsuite/libgomp.c-c++-common/icv-8.c: New test.
4057         * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
4058         * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
4060 2022-09-08  Jakub Jelinek  <jakub@redhat.com>
4062         * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
4063         fully supported.
4064         * testsuite/libgomp.c/doacross-4.c: New test.
4065         * testsuite/libgomp.c/doacross-5.c: New test.
4066         * testsuite/libgomp.c/doacross-6.c: New test.
4067         * testsuite/libgomp.c/doacross-7.c: New test.
4069 2022-09-05  Tobias Burnus  <tobias@codesourcery.com>
4071         * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
4073 2022-08-26  Tobias Burnus  <tobias@codesourcery.com>
4075         * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
4076         refer to 'requires'.
4077         * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
4078         * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
4079         * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
4080         * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
4082 2022-08-17  Tobias Burnus  <tobias@codesourcery.com>
4084         PR middle-end/106548
4085         * testsuite/libgomp.c/linear-2.c: New test.
4087 2022-08-17  Tobias Burnus  <tobias@codesourcery.com>
4089         * splay-tree.h: Fix splay_* macro unsetting if
4090         splay_tree_prefix is defined.
4092 2022-07-29  Tobias Burnus  <tobias@codesourcery.com>
4094         * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
4096 2022-07-29  Jakub Jelinek  <jakub@redhat.com>
4098         PR middle-end/106449
4099         * testsuite/libgomp.c-c++-common/pr106449.c: New test.
4101 2022-07-12  Tobias Burnus  <tobias@codesourcery.com>
4103         * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
4105 2022-07-12  Thomas Schwinge  <thomas@codesourcery.com>
4107         PR middle-end/101551
4108         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
4109         'offloading_enabled' diagnostics issue.
4111 2022-07-11  Thomas Schwinge  <thomas@codesourcery.com>
4113         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
4114         '_Pragma' diagnostics verification.
4116 2022-07-10  Lewis Hyatt  <lhyatt@gmail.com>
4118         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
4119         improved warning locations.
4120         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
4122 2022-07-08  Thomas Schwinge  <thomas@codesourcery.com>
4124         * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
4125         * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
4126         * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
4127         * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
4128         * testsuite/libgomp.fortran/requires-1.f90: Likewise.
4130 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
4132         * target.c (GOMP_offload_register, GOMP_offload_unregister):
4133         Denote as legacy entry points.
4134         * testsuite/lib/libgomp.exp
4135         (check_effective_target_offload_target_any): New proc.
4136         * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
4137         'offload_target_any'.
4138         * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
4139         * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
4140         * testsuite/libgomp.fortran/requires-1.f90: Likewise.
4142 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
4144         * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
4145         * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
4147 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
4149         * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
4151 2022-07-06  Thomas Schwinge  <thomas@codesourcery.com>
4153         * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
4154         'data'.
4155         (GOMP_offload_unregister_ver): Likewise.  Fix up 'target_data'.
4157 2022-07-04  Tobias Burnus  <tobias@codesourcery.com>
4158             Jakub Jelinek  <jakub@redhat.com>
4160         * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
4162 2022-07-04  Tobias Burnus  <tobias@codesourcery.com>
4163             Chung-Lin Tang  <cltang@codesourcery.com>
4164             Thomas Schwinge  <thomas@codesourcery.com>
4166         * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
4167         omp_requires_mask arg.
4168         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
4169         return -1 when device available but omp_requires_mask != 0.
4170         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
4171         * oacc-host.c (host_get_num_devices, host_openacc_get_property):
4172         Update call.
4173         * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
4174         goacc_attach_host_thread_to_device, acc_get_num_devices,
4175         acc_set_device_num, get_property_any): Likewise.
4176         * target.c (omp_requires_mask): New global var.
4177         (gomp_requires_to_name): New.
4178         (GOMP_offload_register_ver): Handle passed omp_requires_mask.
4179         (gomp_target_init): Handle omp_requires_mask.
4180         * libgomp.texi (OpenMP 5.0): Update requires impl. status.
4181         (OpenMP 5.1): Add a missed item.
4182         (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
4183         * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
4184         * testsuite/libgomp.c-c++-common/requires-1.c: New test.
4185         * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
4186         * testsuite/libgomp.c-c++-common/requires-2.c: New test.
4187         * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
4188         * testsuite/libgomp.c-c++-common/requires-3.c: New test.
4189         * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
4190         * testsuite/libgomp.c-c++-common/requires-4.c: New test.
4191         * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
4192         * testsuite/libgomp.c-c++-common/requires-5.c: New test.
4193         * testsuite/libgomp.c-c++-common/requires-6.c: New test.
4194         * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
4195         * testsuite/libgomp.c-c++-common/requires-7.c: New test.
4196         * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
4197         * testsuite/libgomp.fortran/requires-1.f90: New test.
4199 2022-07-01  Tobias Burnus  <tobias@codesourcery.com>
4201         * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
4202         with fromto as implemented.
4204 2022-06-28  Martin Liska  <mliska@suse.cz>
4206         * acinclude.m4: Fix typo in mold linker detection.
4207         * Makefile.in: Regenerate.
4208         * configure: Regenerate.
4210 2022-06-21  Jakub Jelinek  <jakub@redhat.com>
4211             Paul Iannetta  <piannetta@kalrayinc.com>
4213         PR libgomp/106045
4214         * testsuite/libgomp.c/target-31.c: Add private (i) clause.
4216 2022-06-17  Martin Liska  <mliska@suse.cz>
4218         * libgomp.texi: Add table header for new features of
4219         OpenMP 5.2.
4221 2022-06-15  Jakub Jelinek  <jakub@redhat.com>
4223         * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
4224         q to ddress of an automatic variable.  Use -5 instead of -1 in
4225         omp_get_mapped_ptr call.  Add test with omp_initial_device.
4226         * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
4227         of -1 in omp_get_mapped_ptr call.  Add test with omp_initial_device.
4228         Renumber stop arguments afterwards.
4230 2022-06-13  Jakub Jelinek  <jakub@redhat.com>
4232         * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
4233         * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
4234         parameters.
4235         * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
4236         * target.c (resolve_device): Add remapped argument, handle
4237         GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
4238         for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
4239         if remapped, otherwise treat omp_initial_device that way.  For
4240         omp_invalid_device, always emit gomp_fatal, even when
4241         OMP_TARGET_OFFLOAD isn't mandatory.
4242         (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
4243         GOMP_target_update, GOMP_target_update_ext,
4244         GOMP_target_enter_exit_data): Pass true as remapped argument to
4245         resolve_device.
4246         (omp_target_alloc, omp_target_free, omp_target_is_present,
4247         omp_target_memcpy_check, omp_target_associate_ptr,
4248         omp_target_disassociate_ptr, omp_get_mapped_ptr,
4249         omp_target_is_accessible): Pass false as remapped argument to
4250         resolve_device.  Treat omp_initial_device the same as
4251         gomp_get_num_devices ().  Don't bypass resolve_device calls if
4252         device_num is negative.
4253         (omp_pause_resource): Treat omp_initial_device the same as
4254         gomp_get_num_devices ().  Call resolve_device.
4255         * icv-device.c (omp_set_default_device): Always set to device_num
4256         even when it is negative.
4257         * libgomp.texi: Document that Conforming device numbers,
4258         omp_initial_device and omp_invalid_device is implemented.
4259         * testsuite/libgomp.c/target-41.c (main): Add test with
4260         omp_initial_device.
4261         * testsuite/libgomp.c/target-45.c: New test.
4262         * testsuite/libgomp.c/target-46.c: New test.
4263         * testsuite/libgomp.c/target-47.c: New test.
4264         * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
4265         test with omp_initial_device.  Use -5 instead of -1 for negative value
4266         test.
4267         * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
4268         Likewise.  Reorder stop numbers.
4270 2022-06-10  Jakub Jelinek  <jakub@redhat.com>
4272         * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
4273         rather than "libmemkind.so".
4275 2022-06-10  Thomas Schwinge  <thomas@codesourcery.com>
4277         * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
4278         * plugin/configfrag.ac (--with-cuda-driver)
4279         (--with-cuda-driver-include, --with-cuda-driver-lib)
4280         (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
4281         (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
4282         Remove.
4283         * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
4284         (cuda_driver_lib): Remove.
4285         * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
4286         * Makefile.in: Regenerate.
4287         * configure: Likewise.
4288         * testsuite/Makefile.in: Likewise.
4290 2022-06-09  Jakub Jelinek  <jakub@redhat.com>
4292         * config/linux/allocator.c: Fix up #include directive.
4294 2022-06-09  Jakub Jelinek  <jakub@redhat.com>
4296         * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
4297         (enum gomp_memkind_kind): New type.
4298         (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
4299         is defined.
4300         (struct gomp_memkind_data): New type.
4301         (memkind_data, memkind_data_once): New variables.
4302         (gomp_init_memkind, gomp_get_memkind): New functions.
4303         (omp_init_allocator): Initialize data.memkind, don't fail for
4304         omp_high_bw_mem_space if libmemkind supports it.
4305         (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
4306         memkind support of LIBGOMP_USE_MEMKIND is defined.
4307         * config/linux/allocator.c: New file.
4309 2022-06-03  Tobias Burnus  <tobias@codesourcery.com>
4311         * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
4312         * testsuite/libgomp.fortran/scope-2.f90: New test.
4314 2022-06-02  David Malcolm  <dmalcolm@redhat.com>
4316         * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
4318 2022-05-31  Jakub Jelinek  <jakub@redhat.com>
4320         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
4321         scope construct with allocate clause.
4322         * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
4323         * testsuite/libgomp.c-c++-common/scope-2.c: New test.
4325 2022-05-28  Tobias Burnus  <tobias@codesourcery.com>
4327         * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
4328         * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
4329         explicit 'to' and 'enter' clause.
4330         * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
4332 2022-05-28  Jakub Jelinek  <jakub@redhat.com>
4334         PR libgomp/105745
4335         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
4336         defined(HAVE__ALIGNED_MALLOC) case.
4337         * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
4338         handling as last option before fallback instead of first.
4339         (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
4340         _aligned_free.
4342 2022-05-27  Jakub Jelinek  <jakub@redhat.com>
4344         * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
4345         clauses to enter.
4346         * testsuite/libgomp.c/target-41.c: Likewise.
4348 2022-05-27  Tobias Burnus  <tobias@codesourcery.com>
4350         * libgomp.texi (Other new OpenMP 5.1 features): Add
4351         'begin declare target'.
4352         (Other new OpenMP 5.2 features): New.
4354 2022-05-25  Jakub Jelinek  <jakub@redhat.com>
4356         * task.c (gomp_task_run_post_handle_dependers): If empty_task
4357         is the last task taskwait depend depends on, wake it up.
4358         Similarly if it is the last child of a taskgroup, use atomic
4359         store instead of decrement and awak taskgroup wait if any.
4360         * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
4362 2022-05-24  Andrew Stubbs  <ams@codesourcery.com>
4364         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
4365         EF_AMDGPU_MACH_AMDGCN_GFX90a.
4366         (gcn_gfx90a_s): New.
4367         (isa_hsa_name): Support gfx90a.
4368         (isa_code): Likewise.
4370 2022-05-24  Tobias Burnus  <tobias@codesourcery.com>
4372         PR c/105378
4373         * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
4374         * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
4376 2022-05-24  Jakub Jelinek  <jakub@redhat.com>
4378         PR c/105378
4379         * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
4380         * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
4381         * task.c (empty_task): New function.
4382         (gomp_task_run_post_handle_depend_hash): Declare earlier.
4383         (gomp_task_run_post_handle_depend): Declare.
4384         (GOMP_task): Optimize fn == empty_task if there is nothing to wait
4385         for.
4386         (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
4387         (GOMP_taskwait_depend_nowait): New function.
4388         * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
4390 2022-05-23  Tobias Burnus  <tobias@codesourcery.com>
4392         PR fortran/104949
4393         * target.c (gomp_map_vars_internal, copy_firstprivate_data):
4394         Support attach for GOMP_MAP_FIRSTPRIVATE.
4395         * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
4396         * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
4397         * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
4399 2022-05-20  Marcel Vollweiler  <marcel@codesourcery.com>
4401         * libgomp.map: Added omp_target_memcpy_async and
4402         omp_target_memcpy_rect_async.
4403         * libgomp.texi: Both functions are now supported.
4404         * omp.h.in: Added omp_target_memcpy_async and
4405         omp_target_memcpy_rect_async.
4406         * omp_lib.f90.in: Added interfaces for both new functions.
4407         * omp_lib.h.in: Likewise.
4408         * target.c (ialias_redirect): Added for GOMP_task.
4409         (omp_target_memcpy): Restructured into check and copy part.
4410         (omp_target_memcpy_check): New helper function for omp_target_memcpy and
4411         omp_target_memcpy_async that checks requirements.
4412         (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
4413         omp_target_memcpy_async that performs the memcpy.
4414         (omp_target_memcpy_async_helper): New helper function that is used in
4415         omp_target_memcpy_async for the asynchronous task.
4416         (omp_target_memcpy_async): Added.
4417         (omp_target_memcpy_rect): Restructured into check and copy part.
4418         (omp_target_memcpy_rect_check): New helper function for
4419         omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
4420         requirements.
4421         (omp_target_memcpy_rect_copy): New helper function for
4422         omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
4423         the memcpy.
4424         (omp_target_memcpy_rect_async_helper): New helper function that is used
4425         in omp_target_memcpy_rect_async for the asynchronous task.
4426         (omp_target_memcpy_rect_async): Added.
4427         * task.c (ialias): Added for GOMP_task.
4428         * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
4429         * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
4430         * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
4431         * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
4432         * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
4433         * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
4434         * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
4435         * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
4437 2022-05-18  Tobias Burnus  <tobias@codesourcery.com>
4439         * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
4440         (OpenMP Context Selectors): Add missing comma.
4441         * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
4442         * testsuite/libgomp.fortran/depend-6.f90: Likewise.
4443         * testsuite/libgomp.fortran/depend-7.f90: Likewise.
4444         * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
4446 2022-05-17  Jakub Jelinek  <jakub@redhat.com>
4448         * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
4449         comment for omp_display_env feature.
4451 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
4453         * libgomp.texi (Offload-Target Specifics): New chapter; add section
4454         to document OpenMP context selectors.
4456 2022-05-17  Jakub Jelinek  <jakub@redhat.com>
4458         * libgomp.h (struct gomp_task_depend_entry): Change is_in type
4459         from bool to unsigned char.
4460         * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
4461         Ignore dependencies where
4462         task->depend[i].is_in && task->depend[i].is_in == ent->is_in
4463         rather than just task->depend[i].is_in && ent->is_in.  Remember
4464         whether GOMP_DEPEND_IN loop is needed and guard the loop with that
4465         conditional.
4466         (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
4467         Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
4468         rather than just elem.is_in && ent->is_in.
4469         * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
4470         inoutset depend-kind.
4471         * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
4472         * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
4473         * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
4475 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
4477         * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
4479 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
4481         * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
4482         * testsuite/libgomp.fortran/depend-5.f90: New test.
4483         * testsuite/libgomp.fortran/depend-6.f90: New test.
4484         * testsuite/libgomp.fortran/depend-7.f90: New test.
4486 2022-05-16  Marcel Vollweiler  <marcel@codesourcery.com>
4488         * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
4489         * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
4490         * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
4492 2022-05-13  Tobias Burnus  <tobias@codesourcery.com>
4494         * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
4496 2022-05-13  Tobias Burnus  <tobias@codesourcery.com>
4498         * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
4500 2022-05-13  Thomas Schwinge  <thomas@codesourcery.com>
4502         * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
4503         [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
4504         (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
4505         append '$(PLUGIN_NVPTX_LDFLAGS)'.
4506         * Makefile.in: Regenerate.
4508 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
4510         * Makefile.am (libgomp_la_LIBADD): Initialize.
4511         * plugin/configfrag.ac (DL_LIBS): New.
4512         (PLUGIN_GCN_LIBS): Remove.
4513         (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
4514         * plugin/Makefrag.am (libgomp_la_LIBADD)
4515         (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
4516         (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
4517         * Makefile.in: Regenerate.
4518         * config.h.in: Likewise.
4519         * configure: Likewise.
4520         * testsuite/Makefile.in: Likewise.
4522 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
4524         * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
4525         * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
4526         'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
4527         * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
4528         'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
4529         'PLUGIN_NVPTX_LINK_LIBCUDA'.
4530         * Makefile.in: Regenerate.
4531         * config.h.in: Likewise.
4532         * configure: Likewise.
4534 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
4536         * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
4537         for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
4538         * Makefile.in: Regenerate.
4539         * config.h.in: Likewise.
4540         * configure: Likewise.
4541         * testsuite/Makefile.in: Likewise.
4543 2022-05-12  Jakub Jelinek  <jakub@redhat.com>
4545         * libgomp.h (struct gomp_task): Add depend_all_memory member.
4546         * task.c (gomp_init_task): Initialize depend_all_memory.
4547         (gomp_task_handle_depend): Handle omp_all_memory.
4548         (gomp_task_run_post_handle_depend_hash): Clear
4549         parent->depend_all_memory if equal to current task.
4550         (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
4551         * testsuite/libgomp.c-c++-common/depend-1.c: New test.
4552         * testsuite/libgomp.c-c++-common/depend-2.c: New test.
4553         * testsuite/libgomp.c-c++-common/depend-3.c: New test.
4555 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
4557         * plugin/configfrag.ac: Remove '--with-hsa-runtime',
4558         '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
4559         * Makefile.in: Regenerate.
4560         * configure: Likewise.
4561         * testsuite/Makefile.in: Likewise.
4563 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
4565         * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
4566         consider 'PLUGIN_GCN_CPPFLAGS'.
4567         (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
4568         'PLUGIN_GCN_LDFLAGS'.
4569         * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
4570         Remove.
4571         * Makefile.in: Regenerate.
4572         * configure: Likewise.
4573         * testsuite/Makefile.in: Likewise.
4575 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
4577         * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
4578         (HSA_RUNTIME_LDFLAGS): Remove.
4579         * configure: Regenerate.
4581 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
4583         * testsuite/lib/libgomp.exp (libgomp_init): Don't
4584         'append always_ld_library_path ":$hsa_runtime_lib"'.
4585         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
4587 2022-05-10  Thomas Schwinge  <thomas@codesourcery.com>
4589         * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
4590         multi-device testing.
4592 2022-05-06  Marcel Vollweiler  <marcel@codesourcery.com>
4594         * libgomp.map: Added omp_target_is_accessible.
4595         * libgomp.texi: Tagged omp_target_is_accessible as supported.
4596         * omp.h.in: Added omp_target_is_accessible.
4597         * omp_lib.f90.in: Added interface for omp_target_is_accessible.
4598         * omp_lib.h.in: Likewise.
4599         * target.c (omp_target_is_accessible): Added implementation of
4600         omp_target_is_accessible.
4601         * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
4602         * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
4604 2022-05-05  Sandra Loosemore  <sandra@codesourcery.com>
4606         * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
4608 2022-05-04  Tobias Burnus  <tobias@codesourcery.com>
4610         * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
4612 2022-05-04  Tobias Burnus  <tobias@codesourcery.com>
4614         * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
4616 2022-05-03  Marcel Vollweiler  <marcel@codesourcery.com>
4618         * libgomp.map: Added omp_get_mapped_ptr.
4619         * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
4620         * omp.h.in: Added omp_get_mapped_ptr.
4621         * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
4622         * omp_lib.h.in: Likewise.
4623         * target.c (omp_get_mapped_ptr): Added implementation of
4624         omp_get_mapped_ptr.
4625         * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
4626         * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
4627         * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
4628         * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
4629         * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
4630         * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
4631         * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
4632         * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
4634 2022-04-28  Thomas Schwinge  <thomas@codesourcery.com>
4636         PR fortran/104717
4637         * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
4638         privatization scanning.  For GCN offloading compilation, raise
4639         '-mgang-private-size'.
4641 2022-04-26  Jakub Jelinek  <jakub@redhat.com>
4643         PR libgomp/105358
4644         * work.c (gomp_init_work_share): Don't mask of adjustment for
4645         dynamic long long realignment if struct gomp_work_share has smaller
4646         alignof than long long.
4647         * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
4648         struct gomp_work_share has smaller alignof than long long or if
4649         sizeof (struct gomp_work_share) is smaller than
4650         INLINE_ORDERED_TEAM_IDS_OFF.
4651         * loop_ull.c (GOMP_loop_ull_start): Likewise.
4652         * sections.c (GOMP_sections2_start): Likewise.
4654 2022-04-25  Jakub Jelinek  <jakub@redhat.com>
4655             Thomas Schwinge  <thomas@codesourcery.com>
4657         PR fortran/104717
4658         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
4660 2022-04-13  Jakub Jelinek  <jakub@redhat.com>
4662         * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
4664 2022-04-06  Thomas Schwinge  <thomas@codesourcery.com>
4666         * plugin/cuda/cuda.h: Remove file.
4667         * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
4668         "cuda/cuda.h" instead of <cuda.h>.
4669         * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
4670         'PLUGIN_NVPTX_CPPFLAGS'.
4671         * configure: Regenerate.
4673 2022-04-05  Chung-Lin Tang  <cltang@codesourcery.com>
4675         * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
4677 2022-04-04  Tom de Vries  <tdevries@suse.de>
4679         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
4680         on_device_arch_nvptx instead of offload_target_nvptx.
4681         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
4683 2022-04-01  Tom de Vries  <tdevries@suse.de>
4685         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
4686         and use REC_DEPTH.
4687         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
4689 2022-04-01  Tom de Vries  <tdevries@suse.de>
4691         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
4692         num_workers check.
4694 2022-03-29  Chenghua Xu  <xuchenghua@loongson.cn>
4695             Lulu Cheng  <chenglulu@loongson.cn>
4697         * configure.tgt: Add LoongArch triplet.
4699 2022-03-28  Tom de Vries  <tdevries@suse.de>
4701         * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
4702         instead of /libexec/.
4703         * configure: Regenerate.
4705 2022-03-25  Tom de Vries  <tdevries@suse.de>
4707         PR libgomp/105042
4708         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
4709         execution time.
4710         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
4711         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
4713 2022-03-23  Tobias Burnus  <tobias@codesourcery.com>
4715         PR middle-end/104285
4716         * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
4717         * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
4718         * testsuite/libgomp.c++/target-same-name-2.C: New test.
4719         * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
4720         * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
4721         * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
4723 2022-03-22  Tom de Vries  <tdevries@suse.de>
4725         PR target/104916
4726         PR target/104783
4727         * testsuite/libgomp.c/pr104783-2.c: New test.
4729 2022-03-18  Tobias Burnus  <tobias@codesourcery.com>
4731         PR fortran/103039
4732         * testsuite/libgomp.fortran/associate4.f90: New test.
4734 2022-03-18  Tom de Vries  <tdevries@suse.de>
4736         PR target/104952
4737         * testsuite/libgomp.c/pr104952-1.c: New test.
4738         * testsuite/libgomp.c/pr104952-2.c: New test.
4740 2022-03-18  Jakub Jelinek  <jakub@redhat.com>
4742         * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
4743         variable next to pl variable.
4745 2022-03-17  Thomas Schwinge  <thomas@codesourcery.com>
4747         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4748         Enhance.
4749         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
4750         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4752 2022-03-17  Thomas Schwinge  <thomas@codesourcery.com>
4754         PR middle-end/90115
4755         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
4756         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4758 2022-03-16  Marcel Vollweiler  <marcel@codesourcery.com>
4760         * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
4761         omp_set_max_active_levels.
4762         * testsuite/libgomp.fortran/icv-8.f90: New test.
4764 2022-03-16  Thomas Schwinge  <thomas@codesourcery.com>
4766         PR testsuite/102841
4767         * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
4769 2022-03-13  Tobias Burnus  <tobias@codesourcery.com>
4771         * libgomp.texi: Fix typo.
4773 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
4775         PR middle-end/100280
4776         PR middle-end/104892
4777         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
4778         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
4779         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4780         Likewise.
4781         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
4782         Likewise.
4783         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4784         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4785         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
4786         Likewise.
4788 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
4790         PR middle-end/104892
4791         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
4792         to PR104892.
4793         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
4794         enable '--param=openacc-kernels=decompose' and adjust.
4795         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
4796         Likewise.
4797         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4798         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
4799         Likewise.
4801 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
4803         PR middle-end/90115
4804         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
4805         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
4806         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4807         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
4809 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
4811         PR middle-end/100280
4812         PR middle-end/104086
4813         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4814         Merge this...
4815         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
4816         ..., and this...
4817         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
4818         this, and adjust.
4819         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4820         Extend.
4822 2022-03-10  Hafiz Abid Qadeer  <abidh@codesourcery.com>
4824         * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
4825         trait.  Test last index in w and v array.  Remove redundant
4826         assignment to V(1).  Move alignment checks at the end of
4827         parallel region.
4829 2022-03-10  Tom de Vries  <tdevries@suse.de>
4831         * testsuite/libgomp.c/pr104783.c: New test.
4833 2022-03-10  Thomas Schwinge  <thomas@codesourcery.com>
4835         PR middle-end/90115
4836         PR middle-end/102330
4837         PR middle-end/104774
4838         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4839         Enhance.
4840         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4841         Adjust.
4842         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4843         Likewise.
4844         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4845         Likewise.
4846         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4847         Likewise.
4848         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4849         Likewise.
4850         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4851         Likewise.
4852         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4853         Likewise.
4854         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4855         Likewise.
4856         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4857         Likewise.
4858         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4859         Likewise.
4860         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4861         Likewise.
4862         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4863         Likewise.
4864         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4865         Likewise.
4866         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
4867         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4868         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4870 2022-03-10  Thomas Schwinge  <thomas@codesourcery.com>
4872         PR middle-end/90115
4873         * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
4874         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
4875         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
4876         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
4878 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
4880         PR testsuite/104791
4881         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
4882         expected diagnostics.
4884 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
4886         PR middle-end/104784
4887         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4888         Test with '--param=openacc-kernels=decompose'.
4889         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4890         Likewise.
4891         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4892         Likewise.
4893         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4894         Likewise.
4895         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4896         Likewise.
4897         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
4898         Likewise.
4899         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
4900         Likewise.
4901         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
4902         Likewise.
4903         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
4904         Likewise.
4905         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4906         Likewise.
4907         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4908         Likewise.
4909         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4910         Likewise.
4911         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4912         Likewise.
4913         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4914         Likewise.
4915         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4916         Likewise.
4917         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4918         Likewise.
4919         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4920         Likewise.
4921         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4922         Likewise.
4923         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4924         Likewise.
4925         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4926         Likewise.
4927         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4928         Likewise.
4929         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4930         Likewise.
4931         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4932         Likewise.
4933         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4934         Likewise.
4935         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
4936         Likewise.
4937         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
4938         Likewise.
4939         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
4940         Likewise.
4941         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
4942         Likewise.
4943         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
4944         Likewise.
4945         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
4946         Likewise.
4947         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
4948         Likewise.
4949         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
4950         Likewise.
4951         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
4952         Likewise.
4954 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
4956         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4957         Test '-fopt-info-omp-all'.
4958         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4959         Likewise.
4960         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4961         Likewise.
4962         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4963         Likewise.
4964         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4965         Likewise.
4966         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
4967         Likewise.
4968         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
4969         Likewise.
4970         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
4971         Likewise.
4972         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
4973         Likewise.
4974         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4975         Likewise.
4976         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4977         Likewise.
4978         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4979         Likewise.
4980         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4981         Likewise.
4982         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4983         Likewise.
4984         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4985         Likewise.
4986         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4987         Likewise.
4988         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4989         Likewise.
4990         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4991         Likewise.
4992         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4993         Likewise.
4994         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4995         Likewise.
4996         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4997         Likewise.
4998         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4999         Likewise.
5000         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
5001         Likewise.
5002         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
5003         Likewise.
5004         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
5005         Likewise.
5006         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
5007         Likewise.
5008         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
5009         Likewise.
5010         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
5011         Likewise.
5012         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
5013         Likewise.
5014         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
5015         Likewise.
5016         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
5017         Likewise.
5018         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
5019         Likewise.
5020         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
5021         Likewise.
5023 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
5025         PR middle-end/100280
5026         PR middle-end/104132
5027         PR middle-end/104133
5028         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5029         Extend.
5031 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
5033         PR middle-end/100280
5034         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
5035         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5036         Likewise.
5038 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
5040         PR middle-end/100280
5041         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
5042         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5043         Likewise.
5045 2022-02-28  Tom de Vries  <tdevries@suse.de>
5047         * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
5048         * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
5049         * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
5050         * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
5051         * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
5052         * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
5054 2022-02-24  Tom de Vries  <tdevries@suse.de>
5056         * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
5057         * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
5058         * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
5059         * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
5060         * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
5061         * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
5062         * testsuite/libgomp.c/declare-variant-3.h: New header file.
5064 2022-02-22  Thomas Schwinge  <thomas@codesourcery.com>
5066         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
5067         gang-redundant execution.
5069 2022-02-22  Tom de Vries  <tdevries@suse.de>
5071         PR target/99555
5072         * config/nvptx/bar.c (generation_to_barrier): New function, copied
5073         from config/rtems/bar.c.
5074         (futex_wait, futex_wake): New function.
5075         (do_spin, do_wait): New function, copied from config/linux/wait.h.
5076         (gomp_barrier_wait_end, gomp_barrier_wait_last)
5077         (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
5078         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
5079         and replace with include of config/linux/bar.c.
5080         * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
5081         (gomp_barrier_init): Init new fields.
5082         * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
5083         workarounds.
5084         * testsuite/libgomp.c/pr99555-1.c: Same.
5085         * testsuite/libgomp.fortran/task-detach-6.f90: Same.
5087 2022-02-22  Tom de Vries  <tdevries@suse.de>
5089         PR testsuite/104146
5090         * testsuite/libgomp.c++/pr96390.C: Add additional-option
5091         -foffload=-Wa,--verify for nvptx.
5092         * testsuite/libgomp.c-c++-common/pr96390.c: Same.
5094 2022-02-15  Tobias Burnus  <tobias@codesourcery.com>
5096         * testsuite/libgomp.fortran/depend-4.f90: New test.
5098 2022-02-10  Tobias Burnus  <tobias@codesourcery.com>
5100         PR c++/102204
5101         * testsuite/libgomp.c++/target-virtual-1.C: New test.
5103 2022-02-10  Marcel Vollweiler  <marcel@codesourcery.com>
5105         * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
5106         * target.c (copy_firstprivate_data): Copy only if host address is not
5107         NULL.
5108         * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
5109         * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
5110         * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
5111         * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
5112         * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
5113         * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
5114         * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
5115         * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
5116         * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
5117         * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
5119 2022-02-08  Jakub Jelinek  <jakub@redhat.com>
5121         PR libgomp/104385
5122         * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
5123         clear task->parent.
5124         * testsuite/libgomp.c/pr104385.c: New test.
5126 2022-02-04  Tobias Burnus  <tobias@codesourcery.com>
5128         * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
5129         STOP of previous commit.
5131 2022-02-04  Tobias Burnus  <tobias@codesourcery.com>
5133         * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
5134         from is_64bit_aligned_.
5135         * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
5136         and use it, more implicit none, remove unused argument.
5138 2022-02-03  David Seifert  <soap@gentoo.org>
5139             Jakub Jelinek  <jakub@redhat.com>
5141         * configure.ac: Support --disable-werror.
5142         * configure: Regenerate.
5144 2022-02-01  Tom de Vries  <tdevries@suse.de>
5146         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
5147         PR83812 workaround.
5148         * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
5149         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
5151 2022-02-01  Tom de Vries  <tdevries@suse.de>
5153         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
5154         num_workers for nvidia accelerator to fix libgomp error 'insufficient
5155         resources'.
5156         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
5157         Same.
5158         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
5160 2022-02-01  Tom de Vries  <tdevries@suse.de>
5162         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
5163         recursion depth.
5164         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
5166 2022-01-31  Martin Liska  <mliska@suse.cz>
5168         * acinclude.m4: Detect *_ld_is_mold and use it.
5169         * configure: Regenerate.
5171 2022-01-27  Tobias Burnus  <tobias@codesourcery.com>
5173         * libgomp.texi (OpenMP 5.0): Update implementation status.
5175 2022-01-21  Thomas Schwinge  <thomas@codesourcery.com>
5177         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
5178         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
5179         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5180         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5181         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5182         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5183         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5184         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5185         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5186         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5187         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5188         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
5189         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
5190         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5191         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
5193 2022-01-19  Marcel Vollweiler  <marcel@codesourcery.com>
5195         * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
5196         "static") to make the device num available in the offload image.
5198 2022-01-19  Martin Liska  <mliska@suse.cz>
5199             Thomas Schwinge  <thomas@codesourcery.com>
5201         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
5202         patterns.
5203         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
5204         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
5205         Likewise.
5206         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
5207         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5208         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
5209         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
5210         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
5211         Likewise.
5212         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
5213         Likewise.
5214         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
5215         Likewise.
5216         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
5217         Likewise.
5218         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
5219         Likewise.
5220         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
5221         Likewise.
5222         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
5223         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5224         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
5226 2022-01-18  Martin Liska  <mliska@suse.cz>
5228         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
5229         in dg-warning.
5230         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
5231         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
5232         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
5233         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5234         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
5235         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
5236         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
5237         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
5238         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
5239         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
5240         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
5241         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
5242         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
5243         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5244         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
5246 2022-01-17  Thomas Schwinge  <thomas@codesourcery.com>
5248         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
5249         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
5250         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
5252 2022-01-17  Julian Brown  <julian@codesourcery.com>
5253             Thomas Schwinge  <thomas@codesourcery.com>
5255         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
5256         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
5257         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
5259 2022-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
5260             Andrew Stubbs   <ams@codesourcery.com>
5262         * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
5263         the number of teams and threads if necessary.
5264         (gcn_exec): Automatically set the number of gangs and workers if
5265         necessary.
5267 2022-01-13  Hafiz Abid Qadeer  <abidh@codesourcery.com>
5269         * testsuite/libgomp.fortran/allocate-1.c: New test.
5270         * testsuite/libgomp.fortran/allocate-1.f90: New test.
5271         * libgomp.texi: Remove string that says that allocate clause
5272         support is for C/C++ only.
5274 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
5276         * testsuite/libgomp.c-c++-common/on_device_arch.h
5277         (any_device_arch, any_device_arch_intel_mic): New.
5278         * testsuite/lib/libgomp.exp
5279         (check_effective_target_offload_device_any_intel_mic): New.
5280         * testsuite/libgomp.c-c++-common/target-45.c: Use it.
5281         * testsuite/libgomp.fortran/target10.f90: Likewise.
5283 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
5285         PR tree-optimization/102192
5286         * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
5287         '-Wuninitialized' diagnostics.
5289 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
5291         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
5292         current '-Wuninitialized' diagnostics.
5293         * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
5294         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
5295         * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
5296         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
5297         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5298         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
5299         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
5300         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5301         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5302         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
5303         * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
5304         Likewise.
5306 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
5308         * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
5309         for 'offload_device_intel_mic'.
5311 2022-01-13  Julian Brown  <julian@codesourcery.com>
5312             Thomas Schwinge  <thomas@codesourcery.com>
5314         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
5315         offloading execution XFAIL.
5317 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
5319         PR middle-end/100280
5320         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
5321         Update.
5322         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
5323         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5324         Likewise.
5326 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
5328         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
5329         Enhance.
5330         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
5331         Likewise.
5332         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
5333         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
5334         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
5335         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
5336         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5337         Likewise.
5338         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
5339         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
5340         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
5341         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5343 2022-01-04  Tobias Burnus  <tobias@codesourcery.com>
5345         * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
5346         * testsuite/libgomp.fortran/target10.f90: Likewise.
5348 2022-01-04  Chung-Lin Tang  <cltang@codesourcery.com>
5350         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
5351         into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
5352         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
5354 2022-01-03  Jakub Jelinek  <jakub@redhat.com>
5356         * libgomp.texi: Bump @copying's copyright year.
5358 2021-12-13  Tobias Burnus  <tobias@codesourcery.com>
5360         * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
5361         * testsuite/libgomp.fortran/atomic-19.f90: New test.
5363 2021-12-10  Andrew Stubbs  <ams@codesourcery.com>
5365         * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
5366         (GOMP_OFFLOAD_load_image): Locate the offload variables via the
5367         table, not individual symbols.
5369 2021-12-09  Chung-Lin Tang  <cltang@codesourcery.com>
5371         * testsuite/libgomp.c++/target-lambda-1.C: Only run under
5372         "target offload_device_nonshared_as"
5373         * testsuite/libgomp.c++/target-this-3.C: Likewise.
5374         * testsuite/libgomp.c++/target-this-4.C: Likewise.
5376 2021-12-08  Chung-Lin Tang  <cltang@codesourcery.com>
5378         * target.c (gomp_map_vars_existing): Make sure attached pointer is
5379         not overwritten during cross-host/device copying.
5380         (gomp_update): Likewise.
5381         (gomp_exit_data): Likewise.
5382         * testsuite/libgomp.c++/target-11.C: Adjust testcase.
5383         * testsuite/libgomp.c++/target-12.C: Likewise.
5384         * testsuite/libgomp.c++/target-15.C: Likewise.
5385         * testsuite/libgomp.c++/target-16.C: Likewise.
5386         * testsuite/libgomp.c++/target-17.C: Likewise.
5387         * testsuite/libgomp.c++/target-21.C: Likewise.
5388         * testsuite/libgomp.c++/target-23.C: Likewise.
5389         * testsuite/libgomp.c/target-23.c: Likewise.
5390         * testsuite/libgomp.c/target-29.c: Likewise.
5391         * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
5393 2021-12-08  Chung-Lin Tang  <cltang@codesourcery.com>
5395         PR middle-end/92120
5396         * libgomp.h (gomp_attach_pointer): Add bool parameter.
5397         * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
5398         (goacc_enter_data_internal): Likewise.
5399         * target.c (gomp_map_vars_existing): Update assert condition to
5400         include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
5401         (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
5402         parameter, add support for mapping a pointer with NULL target.
5403         (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
5404         parameter, add support for attaching a pointer with NULL target.
5405         (gomp_map_vars_internal): Update calls to gomp_map_pointer and
5406         gomp_attach_pointer, add handling for
5407         GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
5408         GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
5409         * testsuite/libgomp.c++/target-23.C: New testcase.
5410         * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
5411         * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
5412         * testsuite/libgomp.c++/target-this-1.C: New testcase.
5413         * testsuite/libgomp.c++/target-this-2.C: New testcase.
5414         * testsuite/libgomp.c++/target-this-3.C: New testcase.
5415         * testsuite/libgomp.c++/target-this-4.C: New testcase.
5416         * testsuite/libgomp.c++/target-this-5.C: New testcase.
5418 2021-12-04  Tobias Burnus  <tobias@codesourcery.com>
5420         * libgomp.texi (OpenMP 5.1): Update status.
5422 2021-12-04  Tobias Burnus  <tobias@codesourcery.com>
5424         * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
5426 2021-12-02  Chung-Lin Tang  <cltang@codesourcery.com>
5428         PR fortran/90030
5429         * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
5430         * testsuite/libgomp.fortran/pr90030.f90: New test.
5432 2021-11-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
5433             Thomas Schwinge  <thomas@codesourcery.com>
5435         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
5436         temporary skip.
5438 2021-11-30  Cesar Philippidis  <cesar@codesourcery.com>
5439             Thomas Schwinge  <thomas@codesourcery.com>
5441         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
5442         skip.
5444 2021-11-29  Richard Biener  <rguenther@suse.de>
5446         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
5447         return.
5449 2021-11-24  Jakub Jelinek  <jakub@redhat.com>
5451         PR middle-end/103384
5452         * testsuite/libgomp.c/declare-variant-2.c: New test.
5454 2021-11-18  David Edelsohn  <dje.gcc@gmail.com>
5456         * alloc.c (gomp_aligned_alloc): Fix typo.
5458 2021-11-18  Jakub Jelinek  <jakub@redhat.com>
5460         PR libgomp/102838
5461         * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
5462         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
5463         (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
5464         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
5465         * work.c (alloc_work_share, gomp_work_share_start): Likewise.
5466         * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
5467         gomp_aligned_alloc instead of team_malloc.
5469 2021-11-18  Jakub Jelinek  <jakub@redhat.com>
5471         PR libgomp/102838
5472         * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
5473         memalign over posix_memalign over aligned_alloc over fallback
5474         with malloc instead of aligned_alloc over _aligned_alloc over
5475         posix_memalign over memalign over fallback with malloc.  For
5476         aligned_alloc, round up size up to multiple of al.
5478 2021-11-16  Jakub Jelinek  <jakub@redhat.com>
5480         * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
5481         construct as implemented.
5483 2021-11-15  Tobias Burnus  <tobias@codesourcery.com>
5485         * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
5487 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
5489         * task.c (gomp_create_target_task): Copy args array as well.
5490         * target.c (gomp_target_fallback): Add args argument.
5491         Set gomp_icv (true)->thread_limit_var if thread_limit is present.
5492         (GOMP_target): Adjust gomp_target_fallback caller.
5493         (GOMP_target_ext): Likewise.
5494         (gomp_target_task_fn): Likewise.
5495         * config/nvptx/team.c (gomp_nvptx_main): Set
5496         gomp_global_icv.thread_limit_var.
5497         * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
5499 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
5501         * config/nvptx/team.c (__gomp_team_num): Define as
5502         __attribute__((shared)) var.
5503         (gomp_nvptx_main): Initialize __gomp_team_num to 0.
5504         * config/nvptx/target.c (__gomp_team_num): Declare as
5505         extern __attribute__((shared)) var.
5506         (GOMP_teams4): Use __gomp_team_num as the team number instead of
5507         %ctaid.x.  If first, initialize it to %ctaid.x.  If num_teams_lower
5508         is bigger than num_blocks, use num_teams_lower teams and arrange for
5509         bumping of __gomp_team_num if !first and returning false once we run
5510         out of teams.
5511         * config/nvptx/teams.c (__gomp_team_num): Declare as
5512         extern __attribute__((shared)) var.
5513         (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
5515 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
5517         * testsuite/libgomp.c/teams-5.c: New test.
5519 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
5521         PR target/103201
5522         * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
5523         to ...
5524         * config/gcn/teams.c: ... here.  New file.
5526 2021-11-12  Chung-Lin Tang  <cltang@codesourcery.com>
5528         * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
5529         implicit map handling to allow a "superset" existing map as valid case.
5530         (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
5531         (get_implicit): New function to extract implicit status.
5532         (gomp_map_fields_existing): Adjust arguments in calls to
5533         gomp_map_vars_existing, and add uses of get_implicit.
5534         (gomp_map_vars_internal): Likewise.
5535         * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
5537 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
5539         * libgomp_g.h (GOMP_teams4): Declare.
5540         * libgomp.map (GOMP_5.1): Export GOMP_teams4.
5541         * target.c (GOMP_teams4): New function.
5542         * config/nvptx/target.c (GOMP_teams): Remove.
5543         (GOMP_teams4): New function.
5544         * config/gcn/target.c (GOMP_teams): Remove.
5545         (GOMP_teams4): New function.
5546         * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
5547         teams instead of <= 2.
5548         * testsuite/libgomp.c-c++-common/teams-2.c: New test.
5550 2021-11-11  Tobias Burnus  <tobias@codesourcery.com>
5552         * testsuite/libgomp.fortran/teams-1.f90: New test.
5554 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
5556         * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
5557         * team.c (struct gomp_thread_start_data): Likewise.
5558         (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
5559         (gomp_team_start): Initialize start_data->num_teams and
5560         start_data->team_num.  Update nthr->num_teams and nthr->team_num.
5561         * teams.c (gomp_num_teams, gomp_team_num): Remove.
5562         (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
5563         instead of gomp_num_teams and gomp_team_num.
5564         (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
5565         (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
5566         * testsuite/libgomp.c/teams-4.c: New test.
5568 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
5570         * testsuite/libgomp.c-c++-common/teams-1.c: New test.
5572 2021-11-09  Thomas Schwinge  <thomas@codesourcery.com>
5574         * env.c (parse_gomp_openacc_dim): Restore parsing.
5576 2021-10-30  Tobias Burnus  <tobias@codesourcery.com>
5578         PR middle-end/102972
5579         * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
5580         parallel construct.
5581         * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
5582         * testsuite/libgomp.c/target-3.c: Likewise.
5583         * testsuite/libgomp.c/target-5.c: Likewise.
5584         * testsuite/libgomp.c/target-6.c: Likewise.
5585         * testsuite/libgomp.c/target-teams-1.c: Likewise.
5586         * testsuite/libgomp.c/teams-1.c: Likewise.
5587         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
5588         * testsuite/libgomp.c/thread-limit-3.c: Likewise.
5589         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
5590         * testsuite/libgomp.c/thread-limit-5.c: Likewise.
5591         * testsuite/libgomp.fortran/icv-3.f90: Likewise.
5592         * testsuite/libgomp.fortran/icv-4.f90: Likewise.
5593         * testsuite/libgomp.fortran/teams1.f90: Likewise.
5595 2021-10-29  Aldy Hernandez  <aldyh@redhat.com>
5597         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
5598         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
5600 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
5602         * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
5603         aren't implemented for Fortran yet.
5605 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
5607         * testsuite/libgomp.c/loop-26.c: New test.
5608         * testsuite/libgomp.c/loop-27.c: New test.
5610 2021-10-25  Tobias Burnus  <tobias@codesourcery.com>
5612         PR testsuite/102910
5613         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
5614         instead of #include <alloca.h> + alloca.
5616 2021-10-21  Chung-Lin Tang  <cltang@codesourcery.com>
5618         * libgomp.texi (Support of strictly structured blocks in Fortran):
5619         Adjust to 'Y'.
5620         * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
5622 2021-10-20  Chung-Lin Tang  <cltang@codesourcery.com>
5624         * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
5625         * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
5627 2021-10-20  Jakub Jelinek  <jakub@redhat.com>
5629         PR libgomp/102838
5630         * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
5631         (struct gomp_work_share): Only use aligned(64) attribute if
5632         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
5633         add padding before lock to ensure lock is at offset 64 bytes
5634         into the structure.
5635         (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
5636         New poor man's static assertions.
5637         * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
5638         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
5640 2021-10-20  Aldy Hernandez  <aldyh@redhat.com>
5641             Richard Biener  <rguenther@suse.de>
5643         * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
5645 2021-10-18  Jakub Jelinek  <jakub@redhat.com>
5647         * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
5648         && gomp_places_list_len < count after nfirst <= nlast loop condition.
5650 2021-10-18  Tobias Burnus  <tobias@codesourcery.com>
5652         PR fortran/102086
5653         PR fortran/92189
5654         PR fortran/92621
5655         PR fortran/101308
5656         PR fortran/101309
5657         PR fortran/101635
5658         PR fortran/92482
5659         * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
5661 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
5663         * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
5664         type from char [50] to const char *.
5665         (places_array): Add a testcase for simplified syntax place followed
5666         by length or length and stride.
5668 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
5670         * env.c (parse_one_place): Handle non-negative-number the same
5671         as { non-negative-number }.  Reject even !number:1 and
5672         !number:1:stride or !place:1 or !place:1:stride instead of just
5673         length other than 1.
5674         * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
5675         and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
5676         omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
5677         as implemented.
5678         * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
5679         simplified syntax.
5681 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
5683         * env.c (parse_schedule): For strtoul or strtoull calls which don't
5684         clearly reject return value 0 as invalid handle the case where end
5685         pointer is the same as first argument as invalid.
5686         (parse_unsigned_long_1): Likewise.
5687         (parse_one_place): Likewise.
5688         (parse_places_var): Likewise.
5689         (parse_stacksize): Likewise.
5690         (parse_spincount): Likewise.
5691         (parse_affinity): Likewise.
5692         (parse_gomp_openacc_dim): Likewise.  Avoid strict aliasing violation.
5693         Make code valid C89.
5694         * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
5695         For strtoul calls which don't clearly reject return value 0 as
5696         invalid handle the case where end pointer is the same as first
5697         argument as invalid.
5698         (gomp_affinity_init_level_1): Likewise.
5699         (gomp_affinity_init_numa_domains): Likewise.
5700         * config/rtems/proc.c (parse_thread_pools): Likewise.
5702 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
5704         * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
5705         after creating count places clean up and return immediately.
5706         * testsuite/libgomp.c/places-6.c: New test.
5707         * testsuite/libgomp.c/places-7.c: New test.
5708         * testsuite/libgomp.c/places-8.c: New test.
5709         * testsuite/libgomp.c/places-9.c: New test.
5710         * testsuite/libgomp.c/places-10.c: New test.
5712 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
5714         * env.c (parse_places_var): Handle numa_domains as level 5.
5715         * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
5716         function.
5717         (gomp_affinity_init_level): Use it instead of
5718         gomp_affinity_init_level_1 for level == 5.
5719         * testsuite/libgomp.c/places-5.c: New test.
5721 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
5723         * env.c (parse_places_var): Handle ll_caches as level 4.
5724         * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
5725         function.
5726         (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
5727         last level cache.
5728         (gomp_affinity_init_level): Likewise.
5729         * testsuite/libgomp.c/places-1.c: New test.
5730         * testsuite/libgomp.c/places-2.c: New test.
5731         * testsuite/libgomp.c/places-3.c: New test.
5732         * testsuite/libgomp.c/places-4.c: New test.
5734 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
5736         * libgomp.texi (OpenMP 5.0): Update entry for declare variant
5737         directive.
5739 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
5741         * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
5743 2021-10-12  Julian Brown  <julian@codesourcery.com>
5745         * target.c (gomp_copy_host2dev): Release device lock on cbuf
5746         error path.
5748 2021-10-12  Tobias Burnus  <tobias@codesourcery.com>
5750         * testsuite/libgomp.fortran/icv-3.f90: New.
5751         * testsuite/libgomp.fortran/icv-4.f90: New.
5753 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
5755         * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
5756         omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
5757         OMP_TEAMS_THREAD_LIMIT): Document.
5759 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
5761         * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
5762         to avoid makeinfo warnings.
5764 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
5766         * testsuite/libgomp.c-c++-common/icv-3.c: New test.
5767         * testsuite/libgomp.c-c++-common/icv-4.c: New test.
5769 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
5771         PR libgomp/102628
5772         PR libgomp/102668
5773         * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
5774         allocation sizes from 420 to 320 and from 768 to 568.
5775         * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
5776         * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
5777         for cr from 16 to 4.
5779 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
5781         * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
5782         * testsuite/libgomp.c/scan-12.c: Likewise.
5783         * testsuite/libgomp.c/scan-13.c: Likewise.
5784         * testsuite/libgomp.c/scan-14.c: Likewise.
5785         * testsuite/libgomp.c/scan-15.c: Likewise.
5786         * testsuite/libgomp.c/scan-16.c: Likewise.
5787         * testsuite/libgomp.c/scan-17.c: Likewise.
5788         * testsuite/libgomp.c/scan-18.c: Likewise.
5789         * testsuite/libgomp.c/scan-19.c: Likewise.
5790         * testsuite/libgomp.c/scan-20.c: Likewise.
5791         * testsuite/libgomp.c/scan-21.c: Likewise.
5792         * testsuite/libgomp.c/scan-22.c: Likewise.
5793         * testsuite/libgomp.c++/scan-9.C: Likewise.
5794         * testsuite/libgomp.c++/scan-10.C: Likewise.
5795         * testsuite/libgomp.c++/scan-11.C: Likewise.
5796         * testsuite/libgomp.c++/scan-12.C: Likewise.
5797         * testsuite/libgomp.c++/scan-13.C: Likewise.
5798         * testsuite/libgomp.c++/scan-14.C: Likewise.
5799         * testsuite/libgomp.c++/scan-15.C: Likewise.
5800         * testsuite/libgomp.c++/scan-16.C: Likewise.
5802 2021-10-12  Kewen Lin  <linkw@linux.ibm.com>
5804         * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
5806 2021-10-11  Marcel Vollweiler  <marcel@codesourcery.com>
5808         * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
5809         omp_atv_serialized.
5810         * omp.h.in: Add deprecated flag for omp_atv_sequential.
5811         * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
5812         * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
5813         * testsuite/libgomp.fortran/alloc-12.f90: New test.
5815 2021-10-11  Jakub Jelinek  <jakub@redhat.com>
5817         * omp.h.in (omp_set_num_teams, omp_get_max_teams,
5818         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
5819         * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
5820         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
5821         * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
5822         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
5823         * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
5824         * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
5825         omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
5826         omp_set_teams_thread_limit{,_,_8_}.
5827         * icv.c (omp_set_num_teams, omp_get_max_teams,
5828         omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
5829         functions.
5830         * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
5831         (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
5832         (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
5833         vars.
5834         * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
5835         gomp_teams_thread_limit_var as fallback if not zero.  If num_teams
5836         is not specified, use gomp_nteams_var.
5837         * fortran.c (omp_set_num_teams, omp_get_max_teams,
5838         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
5839         ialias_redirect.
5840         (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
5841         omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
5842         omp_get_teams_thread_limit_): New functions.
5844 2021-10-09  liuhongt  <hongtao.liu@intel.com>
5846         * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
5847         * testsuite/libgomp.c++/scan-11.C: Ditto.
5848         * testsuite/libgomp.c++/scan-12.C: Ditto.
5849         * testsuite/libgomp.c++/scan-13.C: Ditto.
5850         * testsuite/libgomp.c++/scan-14.C: Ditto.
5851         * testsuite/libgomp.c++/scan-15.C: Ditto.
5852         * testsuite/libgomp.c++/scan-16.C: Ditto.
5853         * testsuite/libgomp.c++/scan-9.C: Ditto.
5854         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
5855         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
5856         * testsuite/libgomp.c/scan-11.c: Ditto.
5857         * testsuite/libgomp.c/scan-12.c: Ditto.
5858         * testsuite/libgomp.c/scan-13.c: Ditto.
5859         * testsuite/libgomp.c/scan-14.c: Ditto.
5860         * testsuite/libgomp.c/scan-15.c: Ditto.
5861         * testsuite/libgomp.c/scan-16.c: Ditto.
5862         * testsuite/libgomp.c/scan-17.c: Ditto.
5863         * testsuite/libgomp.c/scan-18.c: Ditto.
5864         * testsuite/libgomp.c/scan-19.c: Ditto.
5865         * testsuite/libgomp.c/scan-20.c: Ditto.
5866         * testsuite/libgomp.c/scan-21.c: Ditto.
5867         * testsuite/libgomp.c/scan-22.c: Ditto.
5869 2021-10-09  Jakub Jelinek  <jakub@redhat.com>
5871         * libgomp.texi (OpenMP 5.1): Mention implemented support for
5872         structured block sequences in C/C++.  Mention support for
5873         unconstrained/reproducible modifiers on order clause.
5874         Mention partial (C/C++ only) support of extentensions to atomics
5875         construct.  Mention partial (C/C++ on clause only) support of
5876         align/allocator modifiers on allocate clause.
5878 2021-10-02  Tobias Burnus  <tobias@codesourcery.com>
5880         * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
5881         based on libgomp.c-c++-common/order-reproducible-1.c.
5882         * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
5883         * testsuite/libgomp.fortran/my-usleep.c: New test.
5885 2021-10-01  Tobias Burnus  <tobias@codesourcery.com>
5887         * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
5888         * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
5889         * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
5890         * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
5891         based on libgomp.c-c++-common/alloc-9.c.
5893 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
5895         * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
5896         * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
5898 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
5900         * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
5901         ialias_redirect.
5902         * env.c (handle_omp_display_env): Use ialias_call.
5903         * icv-device.c: Move ialias right below each function.
5904         (omp_get_device_num): Use ialias_call.
5905         * fortran.c (omp_fulfill_event): Add ialias_redirect.
5906         * icv.c (omp_get_active_level): Add ialias_redirect.
5908 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
5910         * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
5911         __alloc_align__ (1) attribute.
5912         * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
5914 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
5916         * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
5917         for -fintrinsic-modules-path= warning of the C compiler.
5918         * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
5919         * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
5921 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
5923         * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
5924         omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
5925         * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
5926         omp_realloc): Add.
5927         * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
5928         omp_realloc): Add.
5929         * testsuite/libgomp.fortran/alloc-10.f90: New test.
5930         * testsuite/libgomp.fortran/alloc-6.f90: New test.
5931         * testsuite/libgomp.fortran/alloc-7.c: New test.
5932         * testsuite/libgomp.fortran/alloc-7.f90: New test.
5933         * testsuite/libgomp.fortran/alloc-8.f90: New test.
5934         * testsuite/libgomp.fortran/alloc-9.f90: New test.
5936 2021-09-30  Jakub Jelinek  <jakub@redhat.com>
5938         * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
5939         omp_realloc): New prototypes.
5940         (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
5941         attribute.
5942         * allocator.c: Include string.h.
5943         (omp_aligned_alloc): No longer static, add ialias.  Add new_alignment
5944         variable and use it instead of alignment so that when retrying the old
5945         alignment is used again.  Don't retry if new alignment is the same
5946         as old alignment, unless allocator had pool size.
5947         (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
5948         (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
5949         * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
5950         omp_aligned_calloc and omp_realloc.
5951         * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
5952         omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
5953         * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
5954         * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
5955         * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
5956         * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
5958 2021-09-28  Tobias Burnus  <tobias@codesourcery.com>
5960         PR libgomp/96661
5961         * configure.ac: Only check for int-type = 2*size_t support when
5962         building with Fortran support.
5963         * configure: Regenerate.
5965 2021-09-28  Thomas Schwinge  <thomas@codesourcery.com>
5967         * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
5968         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5970 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
5972         * team.c: Initialize start_data.
5973         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
5974         * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
5976 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
5978         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
5979         dg-message back to dg-note.
5981 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
5983         PR fortran/94070
5984         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
5985         expected dg-note output.
5987 2021-09-22  Tobias Burnus  <tobias@codesourcery.com>
5989         PR fortran/55534
5990         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
5991         r12-3722 by removing -Wno-missing-include-dirs.
5992         * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
5994 2021-09-22  Jakub Jelinek  <jakub@redhat.com>
5996         * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
5997         * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
5999 2021-09-21  Tobias Burnus  <tobias@codesourcery.com>
6001         PR fortran/55534
6002         * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
6003         to ALWAYS_CFLAGS.
6004         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6006 2021-09-18  Jakub Jelinek  <jakub@redhat.com>
6008         * testsuite/libgomp.c++/default-1.C: New test.
6009         * testsuite/libgomp.c-c++-common/default-1.c: New test.
6010         * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
6011         to default clause in C and C++" as implemented.
6013 2021-09-17  Julian Brown  <julian@codesourcery.com>
6015         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
6017 2021-09-17  Julian Brown  <julian@codesourcery.com>
6019         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
6021 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
6023         * libgomp.texi (OpenMP 5.1): Spelling fix,
6024         declare variante -> declare variant.
6026 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
6028         * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
6029         Use /* */ comments instead of //.
6030         * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
6031         * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
6032         * testsuite/libgomp.c++/atomic-16.C: New test.
6033         * testsuite/libgomp.c++/atomic-17.C: New test.
6035 2021-09-10  Jakub Jelinek  <jakub@redhat.com>
6037         * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
6038         * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
6039         * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
6041 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
6043         * libgomp.texi (OpenMP Implementation Status): Extend
6044         OpenMP 5.0 section.
6045         (OpenACC Profiling Interface): Fix typo.
6047 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
6049         * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
6050         not to 4.5; link to new section.
6051         (OpenMP Implementation Status): New.
6053 2021-09-06  Thomas Schwinge  <thomas@codesourcery.com>
6055         * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
6057 2021-09-03  Tobias Burnus  <tobias@codesourcery.com>
6059         * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
6060         dg-output.
6061         * testsuite/libgomp.fortran/error-1.f90: Likewise.
6063 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
6064             Jakub Jelinek  <jakub@redhat.com>
6066         * testsuite/libgomp.c/address-space-1.c: New file.
6068 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
6070         * testsuite/lib/libgomp.exp
6071         (check_effective_target_offload_target_intelmic): Remove 'proc'.
6072         (check_effective_target_offload_device_intel_mic): New 'proc'.
6073         * testsuite/libgomp.c-c++-common/on_device_arch.h
6074         (device_arch_intel_mic, on_device_arch_intel_mic): New.
6075         * testsuite/libgomp.c-c++-common/target-45.c: Use that for
6076         'dg-xfail-run-if'.
6077         * testsuite/libgomp.fortran/target10.f90: Likewise.
6079 2021-08-23  Tobias Burnus  <tobias@codesourcery.com>
6081         * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
6082         * testsuite/libgomp.fortran/taskloop-4.f90: New test.
6083         * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
6084         * testsuite/libgomp.fortran/taskloop-5.f90: New test.
6086 2021-08-23  Jakub Jelinek  <jakub@redhat.com>
6088         * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
6089         * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
6090         * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
6092 2021-08-22  Thomas Schwinge  <thomas@codesourcery.com>
6094         * config/nvptx/error.c (fwrite, exit): Override, too.
6095         * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
6096         of offloading testing.
6097         * testsuite/libgomp.fortran/error-1.f90: Likewise.
6099 2021-08-20  Tobias Burnus  <tobias@codesourcery.com>
6101         * testsuite/libgomp.fortran/error-1.f90: New test.
6103 2021-08-20  Jakub Jelinek  <jakub@redhat.com>
6105         * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
6106         * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
6107         * error.c (GOMP_warning, GOMP_error): New functions.
6108         * testsuite/libgomp.c-c++-common/error-1.c: New test.
6110 2021-08-18  Tobias Burnus  <tobias@codesourcery.com>
6112         * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
6113         omp_target_free. omp_target_is_present, omp_target_memcpy,
6114         omp_target_memcpy_rect, omp_target_associate_ptr,
6115         omp_target_disassociate_ptr): Add interface.
6116         * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
6117         omp_target_free. omp_target_is_present, omp_target_memcpy,
6118         omp_target_memcpy_rect, omp_target_associate_ptr,
6119         omp_target_disassociate_ptr): Add interface.
6120         * testsuite/libgomp.fortran/alloc-1.F90: Remove local
6121         interface block for omp_alloc + omp_free.
6122         * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
6123         * testsuite/libgomp.fortran/refcount-1.f90: New test.
6124         * testsuite/libgomp.fortran/target-12.f90: New test.
6126 2021-08-18  Jakub Jelinek  <jakub@redhat.com>
6128         * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
6130 2021-08-17  Tobias Burnus  <tobias@codesourcery.com>
6132         * testsuite/libgomp.fortran/scope-1.f90: New test.
6133         * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
6135 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
6137         * Makefile.am (libgomp_la_SOURCES): Add scope.c
6138         * Makefile.in: Regenerated.
6139         * libgomp_g.h (GOMP_scope_start): Declare.
6140         * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
6141         * scope.c: New file.
6142         * testsuite/libgomp.c-c++-common/scope-1.c: New test.
6143         * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
6145 2021-08-16  Thomas Schwinge  <thomas@codesourcery.com>
6147         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
6148         '?:' issues.
6150 2021-08-16  Tobias Burnus  <tobias@codesourcery.com>
6152         * testsuite/libgomp.fortran/masked-1.f90: New test.
6154 2021-08-13  Thomas Schwinge  <thomas@codesourcery.com>
6156         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
6158 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
6160         * testsuite/libgomp.c-c++-common/masked-1.c: New test.
6162 2021-08-12  Tobias Burnus  <tobias@codesourcery.com>
6164         * env.c (parse_bind_var): Accept 'primary' as alias for
6165         'master'.
6166         (omp_display_env): Add TODO comment to
6167         change 'master' to 'primary' in proc_bind for OpenMP 5.1.
6168         * libgomp.texi: Change 'master thread' to 'primary thread'
6169         in line with OpenMP 5.1.
6170         (omp_get_proc_bind): Add omp_proc_bind_primary and note that
6171         omp_proc_bind_master is an alias of it.
6172         (OMP_PROC_BIND): Mention 'PRIMARY'.
6173         * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
6174         (omp_proc_bind_primary): Add.
6175         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
6176         * omp_lib.f90.in (omp_proc_bind_primary): Add.
6177         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
6178         * omp_lib.h.in (omp_proc_bind_primary): Add.
6179         * testsuite/libgomp.c/affinity-1.c: Check that
6180         'primary' works and is identical to 'master'.
6182 2021-08-09  Julian Brown  <julian@codesourcery.com>
6183             Kwok Cheung Yeung  <kcy@codesourcery.com>
6184             Thomas Schwinge  <thomas@codesourcery.com>
6186         * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
6187         16.
6188         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
6189         [acc_device_radeon]: Update.
6190         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
6191         [ACC_DEVICE_TYPE_radeon]: Likewise.
6192         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
6193         [acc_device_radeon]: Likewise.
6194         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
6195         [ACC_DEVICE_TYPE_radeon]: Likewise.
6196         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
6197         'openacc_radeon_accel_selected' and '-O0'.
6198         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
6200 2021-08-05  Chung-Lin Tang  <cltang@codesourcery.com>
6202         * icv-device.c (omp_get_device_num): New API function, host side.
6203         * fortran.c (omp_get_device_num_): New interface function.
6204         * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
6205         * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
6206         omp_get_device_num_.
6207         * libgomp.texi (omp_get_device_num): Add documentation for new API
6208         function.
6209         * omp.h.in (omp_get_device_num): Add declaration.
6210         * omp_lib.f90.in (omp_get_device_num): Likewise.
6211         * omp_lib.h.in (omp_get_device_num): Likewise.
6212         * target.c (gomp_load_image_to_device): If additional entry for device
6213         number exists at end of returned entries from 'load_image_func' hook,
6214         copy the assigned device number over to the device variable.
6215         * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
6216         (omp_get_device_num): New API function, device side.
6217         * plugin/plugin-gcn.c ("symcat.h"): Add include.
6218         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
6219         at end of returned 'target_table' entries.
6220         * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
6221         (omp_get_device_num): New API function, device side.
6222         * plugin/plugin-nvptx.c ("symcat.h"): Add include.
6223         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
6224         at end of returned 'target_table' entries.
6225         * testsuite/lib/libgomp.exp
6226         (check_effective_target_offload_target_intelmic): New function for
6227         testing for intelmic offloading.
6228         * testsuite/libgomp.c-c++-common/target-45.c: New test.
6229         * testsuite/libgomp.fortran/target10.f90: New test.
6231 2021-07-30  Thomas Schwinge  <thomas@codesourcery.com>
6232             Ulrich Drepper  <drepper@redhat.com>
6234         * fortran.c (omp_display_env_, omp_display_env_8_): Only
6235         '#ifndef LIBGOMP_OFFLOADED_ONLY'.
6237 2021-07-29  Thomas Schwinge  <thomas@codesourcery.com>
6238             Julian Brown  <julian@codesourcery.com>
6239             Kwok Cheung Yeung  <kcy@codesourcery.com>
6241         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
6242         's%oaccdevlow%oaccloops%g'.
6243         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
6244         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
6245         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
6246         Likewise.
6247         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
6248         Likewise.
6249         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
6250         Likewise.
6251         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
6252         Likewise.
6253         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
6254         Likewise.
6255         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
6256         Likewise.
6257         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
6258         Likewise.
6259         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
6260         Likewise.
6261         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
6263 2021-07-29  Aldy Hernandez  <aldyh@redhat.com>
6265         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
6266         threader.
6267         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
6269 2021-07-27  Ulrich Drepper  <drepper@gmail.com>
6271         * env.c (wait_policy, stacksize): New static variables,
6272         move out of handle_omp_display_env.
6273         (omp_display_env): New function.  The meat of the old
6274         handle_omp_display_env function.
6275         (handle_omp_display_env): Change to not take parameters
6276         and instead use the global variables.  Only perform
6277         parsing, defer to omp_display_env for the implementation.
6278         (initialize_env): Remove local variables wait_policy and
6279         stacksize.  Don't pass parameters to handle_omp_display_env.
6280         * fortran.c: Add ialias_redirect for omp_display_env.
6281         (omp_display_env_, omp_display_env_8_): New functions.
6282         * libgomp.map (OMP_5.1): New version.  Add omp_display_env,
6283         omp_display_env_, and omp_display_env_8_.
6284         * omp.h.in: Declare omp_display_env.
6285         * omp_lib.f90.in: Likewise.
6286         * omp_lib.h.in: Likewise.
6288 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
6289             Julian Brown  <julian@codesourcery.com>
6291         * target.c (gomp_coalesce_buf_add): Update comment.
6292         (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
6293         'aq && cbuf'.
6294         (gomp_map_vars_internal): Only 'if (!aq)', do
6295         'gomp_coalesce_buf_add'.
6296         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
6297         XFAIL.
6299 2021-07-27  Julian Brown  <julian@codesourcery.com>
6300             Thomas Schwinge  <thomas@codesourcery.com>
6302         * libgomp.h (gomp_copy_host2dev): Update prototype.
6303         * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
6304         argument to gomp_copy_host2dev (false).
6305         * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
6306         (copy_data): Don't free src.
6307         (queue_push_copy): Remove free_src handling.
6308         (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
6309         (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
6310         snapshotting.
6311         (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
6312         queue_push_copy.
6313         * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
6314         (gomp_copy_host2dev): Add EPHEMERAL parameter.  Snapshot source
6315         data when true, and set up deferred freeing of temporary buffer.
6316         (gomp_copy_dev2host): Update call to goacc_device_copy_async.
6317         (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
6318         (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
6319         calls to gomp_copy_host2dev with appropriate ephemeral argument.
6320         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
6321         XFAIL.
6323 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
6324             Tom de Vries  <tom@codesourcery.com>
6326         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
6327         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
6329 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
6331         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
6332         sequencing of 'async' data copying vs. profiling events.
6333         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
6334         Likewise.
6336 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
6337             Julian Brown  <julian@codesourcery.com>
6339         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
6340         'async'/'wait' issue.
6341         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
6342         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
6343         * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
6345 2021-07-21  Thomas Schwinge  <thomas@codesourcery.com>
6346             Joseph Myers  <joseph@codesourcery.com>
6347             Cesar Philippidis  <cesar@codesourcery.com>
6349         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
6350         file.
6351         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
6352         Likewise.
6353         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
6354         Likewise.
6355         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
6357 2021-07-20  Thomas Schwinge  <thomas@codesourcery.com>
6359         PR target/101484
6360         * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
6361         '-Wno-error=array-bounds'.
6362         * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
6363         * libgomp.h [__AMDGCN__]: Likewise.
6365 2021-07-19  Thomas Schwinge  <thomas@codesourcery.com>
6367         PR target/101484
6368         * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
6369         * libgomp.h [__AMDGCN__]: Likewise.
6371 2021-07-13  Jakub Jelinek  <jakub@redhat.com>
6372             Florian Weimer  <fweimer@redhat.com>
6374         * config/linux/sem.h: Don't include limits.h.
6375         (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
6376         * config/linux/affinity.c: Include limits.h.
6378 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
6380         PR middle-end/94366
6381         * testsuite/libgomp.c-c++-common/pr94366.c: New test.
6383 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
6385         PR other/67300
6386         * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
6387         -foffload=nvptx-none= by -foffload-options=nvptx-none= to
6388         avoid disabling other offload targets.
6389         * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
6390         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
6391         * testsuite/libgomp.c/target-44.c: Likewise.
6393 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
6395         * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
6396         target has shared memory and disable some scalar pointer/allocatable
6397         checks if not as firstprivate does not work.
6399 2021-06-25  Chung-Lin Tang  <cltang@codesourcery.com>
6401         PR testsuite/101114
6402         * testsuite/libgomp.c-c++-common/struct-elem-5.c:
6403         Add "target offload_device_nonshared_as" condition for enabling test.
6405 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
6407         * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
6408         * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
6409         * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
6410         * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
6412 2021-06-23  Jakub Jelinek  <jakub@redhat.com>
6414         PR middle-end/101167
6415         * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
6417 2021-06-17  Chung-Lin Tang  <cltang@codesourcery.com>
6419         * hashtab.h (htab_clear): New function with initialization code
6420         factored out from...
6421         (htab_create): ...here, adjust to use htab_clear function.
6422         * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
6423         special refcount values, add comments.
6424         (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
6425         (REFCOUNT_LINK): Likewise.
6426         (REFCOUNT_STRUCTELEM): New special refcount range for structure
6427         element siblings.
6428         (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
6429         sibling maps.
6430         (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
6431         (REFCOUNT_STRUCTELEM_FLAG_LAST):  Flag to indicate last sibling.
6432         (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
6433         (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
6434         (struct splay_tree_key_s): Add structelem_refcount and
6435         structelem_refcount_ptr fields into a union with dynamic_refcount.
6436         Add comments.
6437         (gomp_map_vars): Delete declaration.
6438         (gomp_map_vars_async): Likewise.
6439         (gomp_unmap_vars): Likewise.
6440         (gomp_unmap_vars_async): Likewise.
6441         (goacc_map_vars): New declaration.
6442         (goacc_unmap_vars): Likewise.
6443         * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
6444         (goacc_enter_datum): Likewise.
6445         (goacc_enter_data_internal): Likewise.
6446         * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
6447         and goacc_unmap_vars.
6448         (GOACC_data_start): Adjust to use goacc_map_vars.
6449         (GOACC_data_end): Adjust to use goacc_unmap_vars.
6450         * target.c (hash_entry_type): New typedef.
6451         (htab_alloc): New function hook for hashtab.h.
6452         (htab_free): Likewise.
6453         (htab_hash): Likewise.
6454         (htab_eq): Likewise.
6455         (hashtab.h): Add file include.
6456         (gomp_increment_refcount): New function.
6457         (gomp_decrement_refcount): Likewise.
6458         (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
6459         gomp_increment_refcount.
6460         (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
6461         to gomp_map_vars_existing.
6462         (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
6463         variable to guard OpenMP specific paths, adjust calls to
6464         gomp_map_vars_existing, add structure element sibling splay_tree_key
6465         sequence creation code, adjust Fortran map case to avoid increment
6466         under OpenMP.
6467         (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
6468         local refcount_set if caller passed in NULL, adjust call to
6469         gomp_map_vars_internal.
6470         (gomp_map_vars_async): Adjust and rename into...
6471         (goacc_map_vars): ...this new function, adjust call to
6472         gomp_map_vars_internal.
6473         (gomp_remove_splay_tree_key): New function with code factored out from
6474         gomp_remove_var_internal.
6475         (gomp_remove_var_internal): Add code to handle removing multiple
6476         splay_tree_key sequence for structure elements, adjust code to use
6477         gomp_remove_splay_tree_key for splay-tree key removal.
6478         (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
6479         gomp_decrement_refcount.
6480         (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
6481         local refcount_set if caller passed in NULL, adjust call to
6482         gomp_unmap_vars_internal.
6483         (gomp_unmap_vars_async): Adjust and rename into...
6484         (goacc_unmap_vars): ...this new function, adjust call to
6485         gomp_unmap_vars_internal.
6486         (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
6487         gomp_unmap_vars.
6488         (GOMP_target_ext): Likewise.
6489         (gomp_target_data_fallback): Adjust call to gomp_map_vars.
6490         (GOMP_target_data): Likewise.
6491         (GOMP_target_data_ext): Likewise.
6492         (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
6493         (gomp_exit_data): Add refcount_set parameter, adjust to use
6494         gomp_decrement_refcount, adjust to queue splay-tree keys for removal
6495         after main loop.
6496         (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
6497         gomp_map_vars and gomp_exit_data.
6498         (gomp_target_task_fn): Likewise.
6499         * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
6500         * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
6501         * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
6502         * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
6503         * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
6504         * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
6506 2021-06-15  Tobias Burnus  <tobias@codesourcery.com>
6508         PR fortran/92568
6509         * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
6511 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
6512             Thomas Schwinge  <thomas@codesourcery.com>
6514         * libgomp.map (GOACC_2.0.2): New symbol version.
6515         * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
6516         * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
6518 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
6519             Andrew Stubbs  <ams@codesourcery.com>
6521         * oacc-mem.c (goacc_enter_exit_data_internal): New function,
6522         extracted from...
6523         (GOACC_enter_exit_data): ... here.
6524         (GOACC_declare): Use it.
6526 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
6528         * oacc-parallel.c (GOACC_declare): Move...
6529         * oacc-mem.c: ... here.
6530         * libgomp_g.h: Adjust.
6532 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
6533             Thomas Schwinge  <thomas@codesourcery.com>
6535         * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
6536         handling.
6538 2021-06-10  Jakub Jelinek  <jakub@redhat.com>
6540         PR tree-optimization/100981
6541         * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
6542         dsdotr and dsdoti to 0.
6544 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
6546         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
6547         if atomic compare-and-swap is supported on 'int'.
6549 2021-06-09  Richard Biener  <rguenther@suse.de>
6551         PR tree-optimization/100981
6552         * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
6554 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
6556         * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
6557         unconditionally.
6558         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
6559         Update.
6560         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
6561         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
6563 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
6565         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
6566         '-DACC_MEM_SHARED=0'.
6567         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
6568         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
6569         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
6570         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6571         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6572         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
6573         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6574         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6575         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6576         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6577         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
6578         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
6579         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
6580         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
6581         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
6582         'acc_device_radeon' testing.
6583         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
6584         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
6585         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
6586         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
6587         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6588         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6589         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
6590         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
6591         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
6592         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
6593         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
6594         for non-'openacc_nvidia_accel_selected'.
6595         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6596         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
6597         all implement this checking".
6598         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
6599         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
6600         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
6601         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
6602         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
6604 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
6606         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
6607         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
6609 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
6611         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
6612         for 'acc_device_radeon'.
6614 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
6616         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
6617         for non-'acc_device_nvidia'.
6619 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
6621         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
6622         'acc_device_radeon' testing.
6623         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
6624         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
6625         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
6627 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
6629         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
6630         require 'openacc_nvidia_accel_selected'.  Fix up for
6631         'ACC_DEVICE_TYPE_radeon'.
6633 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
6635         * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
6636         'openacc_nvidia_accel_selected'.
6637         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
6639 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
6641         * testsuite/lib/libgomp.exp
6642         (check_effective_target_openacc_radeon_accel_selected):
6643         Streamline.
6645 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
6647         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
6648         PR80547 workaround.
6650 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
6652         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
6653         <acc_device_nvidia>: Update comment.
6655 2021-05-28  Tobias Burnus  <tobias@codesourcery.com>
6657         * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
6659 2021-05-27  Jakub Jelinek  <jakub@redhat.com>
6661         * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
6662         check_effective_target_openacc_cublas,
6663         check_effective_target_openacc_cudart): New.
6664         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
6665         target openacc_cublas.
6666         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
6667         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
6668         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
6669         target openacc_cuda.
6670         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
6671         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
6672         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
6673         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
6674         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
6675         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
6676         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
6677         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
6678         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
6679         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
6680         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
6681         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
6682         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
6683         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
6684         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
6685         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
6686         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
6687         targets openacc_cublas and openacc_cudart.
6688         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
6689         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
6690         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
6691         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
6692         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
6693         Require effective target openacc_cudart.
6694         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
6695         for effective target openacc_cuda and add && defined USE_CUDA_H to
6696         preprocessor conditionals.  Guard -lcuda also on openacc_cuda
6697         effective target.
6699 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
6701         PR libgomp/100573
6702         * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
6703         GOMP_target_end_data, GOMP_target_update_ext,
6704         GOMP_target_enter_exit_data): New dummy entrypoints.
6705         * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
6706         GOMP_target_end_data, GOMP_target_update_ext,
6707         GOMP_target_enter_exit_data): Likewise.
6708         * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
6709         OMPFROM, OMPTO): Define.
6710         (main): Remove #pragma omp target teams around all the tests.
6711         * testsuite/libgomp.c-c++-common/target-41.c: New test.
6712         * testsuite/libgomp.c-c++-common/target-42.c: New test.
6714 2021-05-25  Jakub Jelinek  <jakub@redhat.com>
6716         PR middle-end/99928
6717         * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
6719 2021-05-24  Tobias Burnus  <tobias@codesourcery.com>
6721         PR fortran/86470
6722         * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
6723         * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
6724         * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
6726 2021-05-22  Thomas Schwinge  <thomas@codesourcery.com>
6728         PR testsuite/90115
6729         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
6730         uninteresting/varying diagnostics.
6732 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
6734         PR middle-end/90115
6735         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
6736         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
6738 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
6740         PR middle-end/90115
6741         * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
6742         file.
6743         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
6744         * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
6745         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6746         Likewise.
6747         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
6748         Likewise.
6749         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
6750         Likewise.
6751         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
6752         Likewise.
6753         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
6754         Likewise.
6755         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
6756         Likewise.
6757         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
6758         Likewise.
6759         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
6760         Likewise.
6761         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
6762         Likewise.
6763         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
6764         Likewise.
6765         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
6766         Likewise.
6767         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
6768         Likewise.
6769         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
6770         Likewise.
6771         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
6772         Likewise.
6773         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
6774         Likewise.
6775         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
6776         Likewise.
6777         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
6778         Likewise.
6779         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
6780         Likewise.
6781         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
6782         Likewise.
6783         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
6784         Likewise.
6785         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
6786         Likewise.
6787         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
6788         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
6789         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
6790         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
6791         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
6792         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
6793         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
6794         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
6795         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6796         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6797         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
6798         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
6799         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6800         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
6801         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
6802         Likewise.
6803         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
6804         Likewise.
6805         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
6806         Likewise.
6807         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
6808         Likewise.
6809         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
6810         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
6811         Likewise.
6812         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
6813         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
6814         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
6815         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
6816         * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
6817         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
6818         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
6819         Likewise.
6820         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
6821         Likewise.
6822         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
6823         Likewise.
6824         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
6825         Likewise.
6826         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
6827         Likewise.
6828         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
6829         Likewise.
6830         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
6831         Likewise.
6832         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
6833         Likewise.
6834         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
6835         Likewise.
6836         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
6837         Likewise.
6838         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
6839         Likewise.
6840         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
6841         Likewise.
6842         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
6843         Likewise.
6844         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
6845         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6846         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
6847         Likewise.
6848         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
6849         Likewise.
6850         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
6851         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
6852         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
6854 2021-05-21  Julian Brown  <julian@codesourcery.com>
6855             Chung-Lin Tang  <cltang@codesourcery.com>
6856             Thomas Schwinge  <thomas@codesourcery.com>
6858         PR middle-end/90115
6859         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
6860         test.
6861         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
6862         Likewise.
6863         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
6864         Likewise.
6866 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
6868         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
6869         for nvptx offloading.
6871 2021-05-21  Tobias Burnus  <tobias@codesourcery.com>
6873         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
6875 2021-05-19  Thomas Schwinge  <thomas@codesourcery.com>
6877         PR target/83812
6878         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
6880 2021-05-19  Julian Brown  <julian@codesourcery.com>
6882         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
6884 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
6886         * testsuite/lib/libgomp.exp
6887         (check_effective_target_offload_target_nvptx): Don't shadow global
6888         'offload_targets' variable.
6890 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
6892         * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
6893         '-latomic' to nvptx offloading compilation.
6894         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
6896 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
6898         * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
6899         offloading compilation.
6901 2021-05-17  Kwok Cheung Yeung  <kcy@codesourcery.com>
6903         * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
6904         if new tasks generated.
6905         * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
6907 2021-05-14  Tobias Burnus  <tobias@codesourcery.com>
6909         * testsuite/libgomp.fortran/parallel-master.f90: New test.
6911 2021-05-13  Martin Liska  <mliska@suse.cz>
6913         PR testsuite/100569
6914         * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
6915         * testsuite/libgomp.c/pr46032-2.c: Likewise.
6916         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
6917         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
6919 2021-05-12  Tobias Burnus  <tobias@codesourcery.com>
6921         * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
6922         * testsuite/libgomp.fortran/task-detach-12.f90: New test.
6924 2021-05-11  Jakub Jelinek  <jakub@redhat.com>
6926         PR middle-end/100471
6927         * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
6928         GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
6929         reduction pointer.
6930         * testsuite/libgomp.c/task-reduction-4.c: New test.
6932 2021-05-07  Tobias Burnus  <tobias@codesourcery.com>
6933             Tom de Vries  <tdevries@suse.de>
6935         * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
6936         complex/floating-point || + && reduction with 'omp target'.
6937         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
6939 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
6941         * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
6942         * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
6943         * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
6944         * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
6946 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
6948         PR testsuite/100397
6949         * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
6950         declaration to scope of non-'depend'-guarded assignment to avoid races.
6952 2021-05-03  Tom de Vries  <tdevries@suse.de>
6954         PR target/100321
6955         * testsuite/libgomp.c/target-44.c: New test.
6957 2021-04-30  Roman Zhuykov  <zhroma@ispras.ru>
6959         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
6961 2021-04-29  Tom de Vries  <tdevries@suse.de>
6963         * testsuite/libgomp.c/pr81778.c: New test.
6965 2021-04-29  Tom de Vries  <tdevries@suse.de>
6967         PR target/100232
6968         * testsuite/libgomp.c/target-43.c: New file.
6970 2021-04-28  Jakub Jelinek  <jakub@redhat.com>
6971             Tobias Burnus  <tobias@codesourcery.com>
6973         * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
6974         * target.c (gomp_load_plugin_for_device): If set and if a plugin
6975         can't be dlopened, silently assume it has no devices.
6976         * Makefile.in: Regenerate.
6977         * config.h.in: Regenerate.
6978         * configure: Regenerate.
6980 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
6982         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
6983         Use [Ww]arning in dg-bogus as FE diagnostic and default
6984         diagnostic differ and the result depends on ENABLE_OFFLOAD.
6985         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6986         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6987         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6989 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
6991         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
6992         Correct spelling in dg-bogus to match -Wopenacc-parallelism.
6993         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6994         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6995         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6997 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
6998             Nathan Sidwell  <nathan@codesourcery.com>
6999             Tom de Vries  <vries@codesourcery.com>
7000             Julian Brown  <julian@codesourcery.com>
7001             Kwok Cheung Yeung  <kcy@codesourcery.com>
7003         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
7004         '-Wopenacc-parallelism', and match diagnostics, as appropriate.
7005         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
7006         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
7007         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
7008         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
7009         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
7010         Likewise.
7011         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
7012         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
7013         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
7014         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
7015         Likewise.
7016         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
7017         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
7018         Likewise.
7019         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
7020         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
7021         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
7022         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
7023         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
7024         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
7025         Likewise.
7026         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
7027         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
7028         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
7029         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
7030         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
7031         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
7032         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
7033         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
7034         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
7035         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
7036         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
7038 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
7040         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
7041         compile with '-w'.
7042         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
7043         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
7044         Likewise.
7045         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
7046         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
7047         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
7048         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
7049         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
7050         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
7051         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
7053 2021-04-22  Richard Biener  <rguenther@suse.de>
7055         * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
7056         only on nvptx-none.
7058 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
7060         * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
7061         omp_depend_kind instead of defining it as 16.
7063 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
7065         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
7066         New, based on check_effective_target_offload_target_nvptx.
7067         (check_effective_target_offload_target_nvptx): Call it.
7068         (check_effective_target_offload_target_amdgcn): New.
7069         * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
7070         Require target offload_target_nvptx || offload_target_amdgcn.
7071         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
7072         * testsuite/libgomp.c/pr86416-1.c: Likewise.
7073         * testsuite/libgomp.c/pr86416-2.c: Likewise.
7075 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
7077         * testsuite/libgomp.fortran/depobj-1.f90: New test.
7079 2021-04-19  Thomas Schwinge  <thomas@codesourcery.com>
7081         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
7082         '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
7083         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
7084         Likewise.
7085         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
7086         Likewise.
7087         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
7089 2021-04-15  Thomas Schwinge  <thomas@codesourcery.com>
7091         PR target/99555
7092         * testsuite/lib/libgomp.exp
7093         (check_effective_target_offload_device_nvptx): New.
7094         * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
7095         resolved, make sure that we exit quickly, with error status,
7096         XFAILed.
7097         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
7098         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
7100 2021-04-14  Jakub Jelinek  <jakub@redhat.com>
7102         PR testsuite/100071
7103         * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
7104         cp = omp_alloc with cp, p arguments instead of cq, q and call
7105         c_f_pointer after last cq = omp_alloc with cq, q.
7107 2021-04-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
7109         PR middle-end/98088
7110         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
7111         for loop with GT/GE condition.
7112         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
7114 2021-04-09  Thomas Schwinge  <thomas@codesourcery.com>
7116         PR middle-end/84991
7117         PR middle-end/84992
7118         PR middle-end/90779
7119         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
7121 2021-04-09  Jakub Jelinek  <jakub@redhat.com>
7123         PR libgomp/99984
7124         * team.c (gomp_thread_start): Call pthread_setspecific for
7125         !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
7126         has been initialized to avoid false positive warning.
7128 2021-03-29  Tobias Burnus  <tobias@codesourcery.com>
7130         PR target/99555
7131         * testsuite/lib/on_device_arch.c: Move to ...
7132         * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
7133         * testsuite/libgomp.fortran/on_device_arch.c: New file;
7134         #include on_device_arch.h.
7135         * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
7136         on_device_arch.h instead of using dg-additional-source.
7137         * testsuite/libgomp.c/pr99555-1.c: Likewise.
7138         * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
7139         on_device_arch.c without relative paths.
7141 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
7143         * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
7144         the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
7145         * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
7146         * config.h.in: Regenerate.
7147         * configure: Likewise.
7149 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
7151         PR target/99555
7152         * testsuite/lib/on_device_arch.c: New file.
7153         * testsuite/libgomp.c/pr99555-1.c: Likewise.
7154         * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
7155         skip for nvptx offloading, with error status.
7156         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
7158 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
7160         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
7161         OpenACC 'serial' construct diagnostic for nvptx offloading.
7163 2021-03-15  Tobias Burnus  <tobias@codesourcery.com>
7165         PR c++/99509
7166         * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
7168 2021-03-12  Tobias Burnus  <tobias@codesourcery.com>
7170         PR fortran/98858
7171         * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
7173 2021-03-04  Jakub Jelinek  <jakub@redhat.com>
7175         * configure.ac: Add AC_CHECK_SIZEOF([void *]).
7176         * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
7177         checking of -m32 or -mx32 options on the command line.
7178         * config.h.in: Regenerated.
7179         * configure: Regenerated.
7181 2021-02-27  Iain Sandoe  <iain@sandoe.co.uk>
7183         * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
7184         support from the target.
7186 2021-02-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
7187             Jakub Jelinek  <jakub@redhat.com>
7189         PR libgomp/98738
7190         * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
7191         (struct gomp_task): Replace detach and completion_sem fields with
7192         union containing completion_sem and detach_team.  Add deferred_p
7193         field.
7194         (struct gomp_team): Remove task_detach_queue.
7195         * task.c: Include assert.h.
7196         (gomp_init_task): Initialize deferred_p and completion_sem fields.
7197         Rearrange initialization order of fields.
7198         (task_fulfilled_p): Delete.
7199         (GOMP_task): Use address of task as the event handle.  Remove
7200         initialization of detach field.  Initialize deferred_p field.
7201         Use automatic local for completion_sem.  Initialize detach_team field
7202         for deferred tasks.
7203         (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
7204         Set kind of suspended detach task to GOMP_TASK_DETACHED and
7205         decrement task_running_count.  Move finish_cancelled block out of
7206         else branch.  Relocate call to gomp_team_barrier_done.
7207         (GOMP_taskwait): Handle tasks with completion events that have not
7208         been fulfilled.
7209         (GOMP_taskgroup_end): Likewise.
7210         (omp_fulfill_event): Use address of task as event handle.  Post to
7211         completion_sem for undeferred tasks.  Clear detach_team if task
7212         has not finished.  For finished tasks, handle post-execution tasks,
7213         call gomp_team_barrier_wake if necessary, and free task.
7214         * team.c (gomp_new_team): Remove initialization of task_detach_queue.
7215         (free_team): Remove free of task_detach_queue.
7216         * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
7217         * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
7218         * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
7219         * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
7220         * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
7221         Change data-sharing of detach events on enclosing parallel to private.
7222         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.  Remove
7223         taskwait directive.
7224         * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
7225         * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
7226         * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
7227         * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
7228         * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
7229         * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
7230         * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
7231         * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
7232         * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
7233         * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
7234         Change data-sharing of detach events on enclosing parallel to private.
7235         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.  Remove
7236         taskwait directive.
7237         * testsuite/libgomp.fortran/task-detach-7.f90: New.
7238         * testsuite/libgomp.fortran/task-detach-8.f90: New.
7239         * testsuite/libgomp.fortran/task-detach-9.f90: New.
7240         * testsuite/libgomp.fortran/task-detach-10.f90: New.
7241         * testsuite/libgomp.fortran/task-detach-11.f90: New.
7243 2021-02-22  Tobias Burnus  <tobias@codesourcery.com>
7245         PR fortran/99171
7246         * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
7248 2021-02-17  Julian Brown  <julian@codesourcery.com>
7250         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
7251         expected errors.
7253 2021-02-17  Julian Brown  <julian@codesourcery.com>
7255         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
7256         * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
7258 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
7260         * config/linux/x86/futex.h (__futex_wait):
7261         Revert output type back to long.
7262         (__futex_wake): Ditto.
7263         (futex_wait): Update for revert.
7264         (futex_wake): Ditto.
7266 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
7268         * config/linux/x86/futex.h (__futex_wait): New static inline
7269         wrapper function.  Correct output type to int and
7270         timeout type to void *.
7271         (__futex_wake): New static inline wrapper function.
7272         Correct output type to int.
7273         (futex_wait): Use __futex_wait.
7274         (futex_wake): Use __futex_wake.
7276 2021-02-10  Julian Brown  <julian@codesourcery.com>
7278         PR fortran/98979
7279         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
7280         errors.
7282 2021-02-04  Julian Brown  <julian@codesourcery.com>
7284         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
7286 2021-02-03  Andrew Stubbs  <ams@codesourcery.com>
7288         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
7289         EF_AMDGPU_MACH_AMDGCN_GFX908.
7290         (gcn_gfx908_s): New constant string.
7291         (isa_hsa_name): Add gfx908.
7292         (isa_code): Add gfx908.
7294 2021-01-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
7296         * libgomp.texi (omp_fulfill_event): New entry.
7298 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
7300         * task.c (GOMP_task): Rename priority argument to priority_arg,
7301         add priority automatic variable and modify that variable.  Instead of
7302         clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
7303         check flags for that bit.
7305 2021-01-19  Tobias Burnus  <tobias@codesourcery.com>
7307         PR fortran/98476
7308         * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
7310 2021-01-18  Andreas Schwab  <schwab@suse.de>
7312         * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
7314 2021-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7316         * config/rtems/sem.h (gomp_sem_getcount): New function.
7318 2021-01-18  Jakub Jelinek  <jakub@redhat.com>
7320         * config/linux/sem.h (gomp_sem_getcount): New function.
7321         * config/posix/sem.h (gomp_sem_getcount): New function.
7322         * config/posix/sem.c (gomp_sem_getcount): New function.
7323         * config/accel/sem.h (gomp_sem_getcount): New function.
7324         * task.c (task_fulfilled_p): Use gomp_sem_getcount.
7325         (omp_fulfill_event): Likewise.
7327 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
7329         * fortran.c (omp_fulfill_event_): New.
7330         * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
7331         (struct gomp_team): Add task_detach_queue and task_detach_count
7332         fields.
7333         * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
7334         * libgomp_g.h (GOMP_task): Add extra argument.
7335         * omp.h.in (enum omp_event_handle_t): New.
7336         (omp_fulfill_event): New.
7337         * omp_lib.f90.in (omp_event_handle_kind): New.
7338         (omp_fulfill_event): New.
7339         * omp_lib.h.in (omp_event_handle_kind): New.
7340         (omp_fulfill_event): Declare.
7341         * priority_queue.c (priority_tree_find): New.
7342         (priority_list_find): New.
7343         (priority_queue_find): New.
7344         * priority_queue.h (priority_queue_predicate): New.
7345         (priority_queue_find): New.
7346         * task.c (gomp_init_task): Initialize detach field.
7347         (task_fulfilled_p): New.
7348         (GOMP_task): Add detach argument.  Ignore detach argument if
7349         GOMP_TASK_FLAG_DETACH not set in flags.  Initialize completion_sem
7350         field.  Copy address of completion_sem into detach argument and
7351         into the start of the data record.  Wait for detach event if task
7352         not deferred.
7353         (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
7354         Remove completed tasks and requeue dependent tasks.
7355         (omp_fulfill_event): New.
7356         * team.c (gomp_new_team): Initialize task_detach_queue and
7357         task_detach_count fields.
7358         (free_team): Free task_detach_queue field.
7359         * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
7360         * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
7361         * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
7362         * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
7363         * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
7364         * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
7365         * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
7366         * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
7367         * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
7368         * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
7369         * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
7370         * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
7372 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
7374         PR target/70454
7375         * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
7376         be added through preprocessor check on
7377         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
7379 2021-01-14  Thomas Schwinge  <thomas@codesourcery.com>
7381         PR libgomp/65099
7382         * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
7383         configurations.
7384         * configure: Regenerate.
7385         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
7386         check.
7388 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7390         * configure: Re-generate.
7392 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7394         * configure: Re-generate.
7396 2021-01-05  Julian Brown  <julian@codesourcery.com>
7398         * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
7399         (struct ptx_device): Add omp_stacks struct.
7400         (nvptx_open_device): Initialise cached-stacks housekeeping info.
7401         (nvptx_close_device): Free cached stacks block and mutex.
7402         (nvptx_stacks_free): New function.
7403         (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
7404         (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
7405         (nvptx_stacks_alloc): Rename to...
7406         (nvptx_stacks_acquire): This.  Cache stacks block between runs if same
7407         size or smaller is required.
7408         (nvptx_stacks_free): Remove.
7409         (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
7410         during kernel execution.
7412 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
7414         * libgomp.texi: Bump @copying's copyright year.
7416 2020-12-28  Gerald Pfeifer  <gerald@pfeifer.com>
7418         * libgomp.texi (Top): Avoid bad "up" link.
7420 2020-12-18  Jakub Jelinek  <jakub@redhat.com>
7422         * testsuite/libgomp.c/task-6.c: New test.
7424 2020-12-09  Andrew Stubbs  <ams@codesourcery.com>
7426         * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
7427         (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
7429 2020-12-08  Tobias Burnus  <tobias@codesourcery.com>
7431         * testsuite/libgomp.fortran/scan-1.f90: New test.
7433 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
7435         PR target/97865
7436         * configure: Regenerate.
7438 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
7440         * configure: Regenerate.
7442 2020-11-25  Thomas Schwinge  <thomas@codesourcery.com>
7444         * testsuite/libgomp.oacc-c++/cache-1.C: New.
7445         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
7447 2020-11-25  Andrew Stubbs  <ams@codesourcery.com>
7449         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
7450         expected results.
7452 2020-11-24  Andrew Stubbs  <ams@codesourcery.com>
7454         * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
7455         (reserved): Delete unused define.
7457 2020-11-24  Thomas Schwinge  <thomas@codesourcery.com>
7459         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
7460         Tcl 8.5-specific behavior.
7461         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
7463 2020-11-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
7465         * env.c (gomp_global_icv): Remove nest_var field.  Add
7466         max_active_levels_var field.
7467         (gomp_max_active_levels_var): Remove.
7468         (parse_boolean): Return true on success.
7469         (handle_omp_display_env): Express OMP_NESTED in terms of
7470         max_active_levels_var.  Change format specifier for
7471         max_active_levels_var.
7472         (initialize_env): Set max_active_levels_var from
7473         OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
7474         OMP_PROC_BIND.
7475         * icv.c (omp_set_nested): Express in terms of
7476         max_active_levels_var.
7477         (omp_get_nested): Likewise.
7478         (omp_set_max_active_levels): Use max_active_levels_var field instead
7479         of gomp_max_active_levels_var.
7480         (omp_get_max_active_levels): Likewise.
7481         * libgomp.h (struct gomp_task_icv): Remove nest_var field.  Add
7482         max_active_levels_var field.
7483         (gomp_supported_active_levels): Set to UCHAR_MAX.
7484         (gomp_max_active_levels_var): Delete.
7485         * libgomp.texi (omp_get_nested): Update documentation.
7486         (omp_set_nested): Likewise.
7487         (OMP_MAX_ACTIVE_LEVELS): Likewise.
7488         (OMP_NESTED): Likewise.
7489         (OMP_NUM_THREADS): Likewise.
7490         (OMP_PROC_BIND): Likewise.
7491         * parallel.c (gomp_resolve_num_threads): Replace reference
7492         to nest_var with max_active_levels_var.  Use max_active_levels_var
7493         field instead of gomp_max_active_levels_var.
7495 2020-11-18  Tobias Burnus  <tobias@codesourcery.com>
7497         * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
7498         nvptx_usleep; use also for device={arch(gcn)}.
7500 2020-11-14  Jakub Jelinek  <jakub@redhat.com>
7502         * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
7503         (foo): Add tests for non-VLA private and firstprivate clauses on
7504         omp task.
7505         (bar): Likewise.  Remove taking of address from private/firstprivate
7506         variables.
7507         * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
7508         (foo): Add p, q, px and s arguments.  Add tests for array reductions
7509         and for non-VLA private and firstprivate clauses on omp task.
7510         (bar): Removed.
7511         (main): Adjust foo caller.  Don't call bar.
7513 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
7514             Thomas Schwinge  <thomas@codesourcery.com>
7516         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
7517         New.
7518         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
7519         Likewise.
7520         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
7521         Likewise.
7522         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
7523         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
7525 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
7526             Thomas Schwinge  <thomas@codesourcery.com>
7528         PR fortran/94358
7529         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
7531 2020-11-13  Jakub Jelinek  <jakub@redhat.com>
7533         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
7534         for array reductions.
7535         (main): Adjust foo callers.
7537 2020-11-12  Jakub Jelinek  <jakub@redhat.com>
7539         * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
7540         * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
7541         * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
7542         * allocator.c (omp_aligned_alloc): New for now static function,
7543         add alignment argument and handle it.
7544         (omp_alloc): Reimplement using omp_aligned_alloc.
7545         (GOMP_alloc, GOMP_free): New functions.
7546         (omp_free): Add ialias.
7547         * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
7548         * testsuite/libgomp.c++/allocate-1.C: New test.
7550 2020-11-12  Thomas Schwinge  <thomas@codesourcery.com>
7552         PR fortran/97782
7553         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
7555 2020-11-10  Chung-Lin Tang  <cltang@codesourcery.com>
7557         * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
7558         usable.
7559         * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
7560         'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
7561         (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
7562         (goacc_enter_data_internal): Likewise.
7563         * target.c (gomp_map_vars_internal):
7564         Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
7565         of gomp_attach_pointer for OpenMP cases.
7566         (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
7567         (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
7568         * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
7570 2020-11-05  Ulrich Drepper  <drepper@redhat.com>
7571             Kwok Cheung Yeung  <kcy@codesourcery.com>
7573         * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
7574         * Makefile.in: Regenerate.
7575         * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
7576         pragmas to ignore -Wdeprecated-declarations warnings.
7577         * icv.c: Likewise.
7578         * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
7579         Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
7580         and omp_get_nested with __GOMP_DEPRECATED_5_0.
7581         * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
7582         deprecated.
7583         * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
7584         to test options.
7585         * testsuite/libgomp.c/affinity-1.c: Likewise.
7586         * testsuite/libgomp.c/affinity-2.c: Likewise.
7587         * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
7588         * testsuite/libgomp.c/lib-1.c: Likewise.
7589         * testsuite/libgomp.c/nested-1.c: Likewise.
7590         * testsuite/libgomp.c/nested-2.c: Likewise.
7591         * testsuite/libgomp.c/nested-3.c: Likewise.
7592         * testsuite/libgomp.c/pr32362-1.c: Likewise.
7593         * testsuite/libgomp.c/pr32362-2.c: Likewise.
7594         * testsuite/libgomp.c/pr32362-3.c: Likewise.
7595         * testsuite/libgomp.c/pr35549.c: Likewise.
7596         * testsuite/libgomp.c/pr42942.c: Likewise.
7597         * testsuite/libgomp.c/pr61200.c: Likewise.
7598         * testsuite/libgomp.c/sort-1.c: Likewise.
7599         * testsuite/libgomp.c/target-5.c: Likewise.
7600         * testsuite/libgomp.c/target-6.c: Likewise.
7601         * testsuite/libgomp.c/teams-1.c: Likewise.
7602         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
7603         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
7604         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
7605         * testsuite/libgomp.fortran/affinity1.f90: Likewise.
7606         * testsuite/libgomp.fortran/lib1.f90: Likewise.
7607         * testsuite/libgomp.fortran/lib2.f: Likewise.
7608         * testsuite/libgomp.fortran/nested1.f90: Likewise.
7609         * testsuite/libgomp.fortran/teams1.f90: Likewise.
7611 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
7613         PR target/85486
7614         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
7615         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
7616         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
7618 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
7620         PR testsuite/80219
7621         PR testsuite/85303
7622         * testsuite/lib/libgomp.exp (libgomp_init): Set
7623         'gcc_warning_prefix', 'gcc_error_prefix'.
7625 2020-10-30  Jakub Jelinek  <jakub@redhat.com>
7627         * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
7628         even in field_tgt_clear initializer.
7630 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
7632         * testsuite/libgomp.c/target-42.c: New test.
7634 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
7635             Tom de Vries  <tdevries@suse.de>
7637         PR testsuite/81690
7638         * testsuite/libgomp.c/usleep.h: New file.
7639         * testsuite/libgomp.c/target-32.c: Include usleep.h.
7640         (main): Use tgt_usleep instead of usleep.
7641         * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
7642         (main): Use tgt_usleep instead of usleep.
7644 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
7646         PR lto/96680
7647         * testsuite/libgomp.c/declare-variant-1.c: New test.
7649 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
7651         * testsuite/libgomp.c/target-41.c: New test.
7653 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
7655         * icv.c (omp_get_initial_device): Remove including corresponding
7656         ialias.
7657         * icv-device.c (omp_get_initial_device): New function.  Return
7658         gomp_get_num_devices ().  Add ialias.
7659         * target.c (resolve_device): Don't fail with
7660         OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
7661         gomp_get_num_devices ().
7662         (omp_target_alloc, omp_target_free, omp_target_is_present,
7663         omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
7664         omp_target_disassociate_ptr, omp_pause_resource): Use
7665         gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
7666         first use in the functions, in uses dominated by the
7667         gomp_get_num_devices call use num_devices_openmp instead.
7668         * libgomp.texi (omp_get_initial_device): Document.
7669         * config/gcn/icv-device.c (omp_get_initial_device): New function.
7670         Add ialias.
7671         * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
7672         * testsuite/libgomp.c/target-40.c: New test.
7674 2020-10-21  Jakub Jelinek  <jakub@redhat.com>
7676         * env.c (parse_target_offload): Change new_offload var type to int,
7677         preinitialize to -1, remove found var and test new_offload != -1
7678         instead of found.
7680 2020-10-20  Jakub Jelinek  <jakub@redhat.com>
7682         * target.c (gomp_target_init): Inside of the function, use automatic
7683         variables corresponding to num_devices, num_devices_openmp and devices
7684         global variables and update the globals only at the end of the
7685         function.
7687 2020-10-20  Kwok Cheung Yeung  <kcy@codesourcery.com>
7689         * env.c (gomp_target_offload_var): New.
7690         (parse_target_offload): New.
7691         (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
7692         (initialize_env): Parse OMP_TARGET_OFFLOAD.
7693         * libgomp.h (gomp_target_offload_t): New.
7694         (gomp_target_offload_var): New.
7695         * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
7696         * target.c (resolve_device): Generate error if device not found and
7697         offloading is mandatory.
7698         (gomp_target_fallback): Generate error if offloading is mandatory.
7699         (GOMP_target): Add argument in call to gomp_target_fallback.
7700         (GOMP_target_ext): Likewise.
7701         (gomp_target_data_fallback): Generate error if offloading is mandatory.
7702         (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
7703         (GOMP_target_data_ext): Likewise.
7704         (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
7705         (gomp_target_init): Return early if offloading is disabled.
7707 2020-10-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
7709         * libgomp.texi (omp_get_max_active_levels): Modify description.
7710         (omp_get_supported_active_levels): Make descriptions consistent.
7712 2020-10-14  Jakub Jelinek  <jakub@redhat.com>
7714         * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
7716 2020-10-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
7718         * env.c (gomp_max_active_levels_var): Initialize to
7719         gomp_supported_active_levels.
7720         (initialize_env): Limit gomp_max_active_levels_var to be at most
7721         equal to gomp_supported_active_levels.
7722         * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
7723         (omp_get_supported_active_levels_): New.
7724         * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
7725         to at most equal to gomp_supported_active_levels.
7726         (omp_get_supported_active_levels): New.
7727         * libgomp.h (gomp_supported_active_levels): New.
7728         * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
7729         omp_get_supported_active_levels_.
7730         * libgomp.texi (omp_get_supported_active_levels): New.
7731         (omp_set_max_active_levels): Update.  Add reference to
7732         omp_get_supported_active_levels.
7733         * omp.h.in (omp_get_supported_active_levels): New.
7734         * omp_lib.f90.in (omp_get_supported_active_levels): New.
7735         * omp_lib.h.in (omp_get_supported_active_levels): New.
7736         * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
7737         against omp_get_supported_active_levels.
7738         * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
7740 2020-10-11  Clement Chigot  <clement.chigot@atos.net>
7742         * config/t-aix: Delete and recreate libgomp before creating
7743         FAT library.
7745 2020-10-08  Tom de Vries  <tdevries@suse.de>
7747         PR libgomp/81802
7748         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
7749         dimensions.
7751 2020-10-06  Tom de Vries  <tdevries@suse.de>
7753         * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
7755 2020-10-06  Tom de Vries  <tdevries@suse.de>
7757         PR middle-end/90861
7758         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
7760 2020-10-05  Tom de Vries  <tdevries@suse.de>
7762         PR fortran/95654
7763         * testsuite/libgomp.fortran/pr95654.f90: New test.
7765 2020-10-02  Tobias Burnus  <tobias@codesourcery.com>
7767         * Makefile.in: Regenerate with automake 1.15.1.
7768         * aclocal.m4: Likewise.
7769         * configure: Likewise.
7770         * testsuite/Makefile.in: Likewise.
7772 2020-09-30  Andrew Stubbs  <ams@codesourcery.com>
7774         * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
7775         and amdgcn targets.
7777 2020-09-30  Tobias Burnus  <tobias@codesourcery.com>
7779         * testsuite/libgomp.fortran/declare-target-3.f90: New test.
7781 2020-09-29  Andrew Stubbs  <ams@codesourcery.com>
7783         * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
7784         total number of threads is one.
7785         (gomp_team_barrier_wake): Likewise.
7786         (gomp_team_barrier_wait_end): Likewise.
7787         (gomp_team_barrier_wait_cancel_end): Likewise.
7788         * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
7789         (gomp_team_barrier_wake): Likewise.
7790         (gomp_team_barrier_wait_end): Likewise.
7791         (gomp_team_barrier_wait_cancel_end): Likewise.
7792         * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
7794 2020-09-28  Tobias Burnus  <tobias@codesourcery.com>
7796         PR middle-end/96390
7797         * testsuite/libgomp.c++/pr96390.C: New test.
7798         * testsuite/libgomp.c-c++-common/pr96390.c: New test.
7800 2020-09-27  Clement Chigot  <clement.chigot@atos.net>
7802         * config/t-aix: Use $(AR) without -X32_64.
7804 2020-09-25  Jakub Jelinek  <jakub@redhat.com>
7806         * testsuite/libgomp.c/loop-25.c: New test.
7808 2020-09-22  Tobias Burnus  <tobias@codesourcery.com>
7810         PR fortran/95654
7811         * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
7813 2020-09-22  Tom de Vries  <tdevries@suse.de>
7815         * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
7816         fails.
7818 2020-09-16  Nathan Sidwell  <nathan@acm.org>
7820         * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
7822 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
7824         PR fortran/96668
7825         * target.c (gomp_map_vars_internal): Initialize has_nullptr.
7827 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
7829         PR fortran/96668
7830         * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
7831         * target.c (gomp_map_vars_existing): Add always_to_flag flag.
7832         (gomp_map_vars_existing): Update call to it.
7833         (gomp_map_fields_existing): Likewise
7834         (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
7835         now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
7836         remapped.
7837         (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
7838         GOMP_MAP_POINTER.
7839         * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
7840         * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
7842 2020-09-14  Tom de Vries  <tdevries@suse.de>
7844         * config/nvptx/atomic.c: New file.  Add
7845         __sync_val_compare_and_swap_16.
7846         * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
7847         target offload_target_nvptx.
7849 2020-09-08  Julian Brown  <julian@codesourcery.com>
7851         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
7852         iteration-ordering assumptions.
7854 2020-09-08  Julian Brown  <julian@codesourcery.com>
7856         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
7857         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
7859 2020-08-20  Chung-Lin Tang  <cltang@codesourcery.com>
7861         * plugin/plugin-nvptx.c (nvptx_free):
7862         Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
7863         CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
7864         comments.
7866 2020-08-20  Tobias Burnus  <tobias@codesourcery.com>
7868         * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
7870 2020-08-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
7872         * testsuite/libgomp.c-c++-common/reduction-16.c: New.
7874 2020-08-13  Jakub Jelinek  <jakub@redhat.com>
7876         * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
7877         * testsuite/libgomp.c/loop-23.c (main): Likewise.
7878         * testsuite/libgomp.c/loop-24.c: New test.
7880 2020-08-08  Jakub Jelinek  <jakub@redhat.com>
7881             Tobias Burnus  <tobias@codesourcery.com>
7883         PR fortran/93553
7884         * testsuite/libgomp.fortran/pr93553.f90: New test.
7886 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
7888         * testsuite/libgomp.c/loop-22.c: New test.
7889         * testsuite/libgomp.c/loop-23.c: New test.
7891 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
7893         PR middle-end/96459
7894         * testsuite/libgomp.c/teams-3.c: New test.
7895         * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
7896         if not defined yet.
7897         (N(test)): Use it before all N(f*) calls.
7898         * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
7899         (main): Don't call all test_* functions from within
7900         #pragma omp teams reduction(|:err), call them directly.
7902 2020-08-04  Tom de Vries  <tdevries@suse.de>
7904         PR target/96428
7905         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
7906         * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
7908 2020-08-03  Julian Brown  <julian@codesourcery.com>
7909             Thomas Schwinge  <thomas@codesourcery.com>
7911         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
7912         shared-memory devices.  Extend with further checking.
7914 2020-08-03  Martin Jambor  <mjambor@suse.cz>
7916         * plugin/Makefrag.am: Remove configuration of HSA plugin.
7917         * aclocal.m4: Regenerated.
7918         * Makefile.in: Regenerated.
7919         * config.h.in: Regenerated.
7920         * configure: Regenerated.
7921         * plugin/configfrag.ac: Likewise.
7922         * plugin/hsa_ext_finalize.h: Removed.
7923         * plugin/plugin-hsa.c: Likewise.
7924         * testsuite/Makefile.in: Regenerated.
7925         * testsuite/lib/libgomp.exp
7926         (offload_target_to_openacc_device_type): Remove hsa case.
7927         (check_effective_target_hsa_offloading_selected_nocache): Removed
7928         (check_effective_target_hsa_offloading_selected): Likewise.
7929         (libgomp_init): Do not add -Wno-hsa to additional_flags.
7930         * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
7931         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
7932         * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
7933         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
7934         * testsuite/libgomp.hsa.c/c.exp: Likewise.
7935         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
7936         * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
7937         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
7938         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
7939         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
7940         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
7941         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
7942         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
7943         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
7944         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
7945         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
7946         * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
7947         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
7948         * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
7949         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
7950         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
7951         * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
7952         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
7953         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
7955 2020-07-27  Julian Brown  <julian@codesourcery.com>
7956             Thomas Schwinge  <thomas@codesourcery.com>
7958         * libgomp.h (struct target_var_desc): Rename do_detach field to
7959         is_attach.
7960         * oacc-mem.c (goacc_exit_datum_1): Add assert.  Don't set finalize for
7961         GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
7962         (goacc_enter_data_internal): Don't affect reference counts
7963         for attach mappings.
7964         (goacc_exit_data_internal): Don't affect reference counts for detach
7965         mappings.
7966         * target.c (gomp_map_vars_existing): Don't affect reference counts for
7967         attach mappings.
7968         (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
7969         mark attach mappings.
7970         (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
7971         reference count for attach mappings.
7972         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
7973         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
7974         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
7975         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
7976         test as shouldfail.
7977         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
7978         gracefully in no-finalize mode.
7979         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
7981 2020-07-24  Thomas Schwinge  <thomas@codesourcery.com>
7983         * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
7984         use.
7985         * testsuite/libgomp.oacc-c/c.exp: Likewise.
7986         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7988 2020-07-23  Julian Brown  <julian@codesourcery.com>
7989             Thomas Schwinge  <thomas@codesourcery.com>
7991         * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
7992         finalization for detach operation.
7993         * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
7994         New test.
7996 2020-07-23  Tobias Burnus  <tobias@codesourcery.com>
7998         * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
7999         * libgomp_f.h.in (omp_check_defines): Check whether
8000         sizeof of determined Fortran kind and C typedef match.
8001         * omp_lib.f90.in: Add omp_depened_kind.
8002         * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
8003         * configure: Regenerate.
8004         * Makefile.in: Regenerate.
8005         * testsuite/Makefile.in: Regenerate.
8007 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
8009         * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
8010         gcc/testsuite/c-c++-common/gomp/.
8011         * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
8012         * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
8013         from gcc/testsuite/gfortran.dg/gomp/.
8014         * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
8016 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
8018         * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
8019         * omp_lib.h.in: Likewise.
8021 2020-07-18  H.J. Lu  <hjl.tools@gmail.com>
8023         PR target/95620
8024         * testsuite/libgomp.c/pr95620.c: New test.
8026 2020-07-16  Julian Brown  <julian@codesourcery.com>
8027             Thomas Schwinge  <thomas@codesourcery.com>
8029         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
8030         * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
8032 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
8034         * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
8035         avoid conversion on 32bit systems from 32bit to 64bit due
8036         to -fdefault-integer-8.
8038 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
8040         * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
8041         variables; add character(kind=4) tests; update TODO comment.
8043 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
8045         * allocator.c: Add ialias for omp_init_allocator and
8046         omp_destroy_allocator.
8047         * configure.ac: Set INTPTR_T_KIND.
8048         * configure: Regenerate.
8049         * Makefile.in: Regenerate.
8050         * testsuite/Makefile.in: Regenerate.
8051         * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
8052         omp_set_default_allocator_, omp_get_default_allocator_): New
8053         functions and ialias_redirect.
8054         * icv.c: Add ialias for omp_set_default_allocator and
8055         omp_get_default_allocator.
8056         * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
8057         omp_destroy_allocator_, omp_set_default_allocator_ and
8058         omp_get_default_allocator_.
8059         * omp_lib.f90.in: Add allocator traits parameters, declare
8060         allocator routines and add related kind parameters.
8061         * omp_lib.h.in: Likewise.
8062         * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
8063         * testsuite/libgomp.fortran/alloc-1.F90: New test.
8064         * testsuite/libgomp.fortran/alloc-2.F90: New test.
8065         * testsuite/libgomp.fortran/alloc-3.F: New test.
8066         * testsuite/libgomp.fortran/alloc-4.f90: New test.
8067         * testsuite/libgomp.fortran/alloc-5.f90: New test.
8069 2020-07-14  Tom de Vries  <tom@codesourcery.com>
8070             Cesar Philippidis  <cesar@codesourcery.com>
8071             Thomas Schwinge  <thomas@codesourcery.com>
8072             Kwok Cheung Yeung  <kcy@codesourcery.com>
8074         * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
8075         New variable.
8076         (acc_init_1): Set acc_init_thread to pthread_self ().  Set
8077         acc_init_state to initializing at the start, and to initialized at the
8078         end.
8079         (self_initializing_p): New function.
8080         (acc_get_device_type): Return acc_device_none if called by thread that
8081         is currently executing acc_init_1.
8082         * libgomp.texi (acc_get_device_type): Update documentation.
8083         (Implementation Status and Implementation-Defined Behavior): Likewise.
8084         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
8086 2020-07-14  David Edelsohn  <dje.gcc@gmail.com>
8088         * config/t-aix: Set BITS from compiler cpp macro.
8090 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
8092         * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
8094 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
8096         PR fortran/67311
8097         * testsuite/libgomp.fortran/target-map-1.f90: New test.
8099 2020-07-14  Jakub Jelinek  <jakub@redhat.com>
8101         * testsuite/libgomp.c/loop-21.c: New test.
8103 2020-07-13  Julian Brown  <julian@codesourcery.com>
8104             Thomas Schwinge  <thomas@codesourcery.com>
8106         * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
8108 2020-07-10  Julian Brown  <julian@codesourcery.com>
8109             Thomas Schwinge  <thomas@codesourcery.com>
8111         * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
8112         dynamic_refcount.
8113         (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
8114         * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
8115         dynamic_refcount.
8116         (acc_unmap_data): Update comment.
8117         (goacc_map_var_existing, goacc_enter_datum): Adjust for
8118         dynamic_refcount semantics.
8119         (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
8120         Adjust for dynamic_refcount semantics.
8121         (goacc_enter_data_internal): Implement "present" case of dynamic
8122         memory-map handling here.  Update "non-present" case for
8123         dynamic_refcount semantics.
8124         (goacc_exit_data_internal): Use goacc_exit_datum_1.
8125         * target.c (gomp_map_vars_internal): Remove
8126         GOMP_MAP_VARS_OPENACC_ENTER_DATA handling.  Update for dynamic_refcount
8127         handling.
8128         (gomp_unmap_vars_internal): Remove virtual_refcount handling.
8129         (gomp_load_image_to_device): Substitute dynamic_refcount for
8130         virtual_refcount.
8131         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
8132         * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
8133         * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
8134         * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
8135         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
8136         trace output.
8137         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
8138         trace output.
8139         * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
8140         test.
8141         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
8142         Remove stale comment.
8143         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
8144         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
8145         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
8146         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
8147         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
8148         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
8150 2020-07-10  Julian Brown  <julian@codesourcery.com>
8151             Thomas Schwinge  <thomas@codesourcery.com>
8153         * oacc-mem.c (goacc_map_var_existing): New function.
8154         (goacc_enter_datum): Use above function.
8155         (goacc_exit_datum_1): New function.
8156         (goacc_exit_datum): Use above function.
8158 2020-07-09  Julian Brown  <julian@codesourcery.com>
8159             Thomas Schwinge  <thomas@codesourcery.com>
8161         PR middle-end/95270
8162         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
8163         * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
8165 2020-07-09  Julian Brown  <julian@codesourcery.com>
8167         * oacc-mem.c (find_group_last): Group data-movement clauses
8168         (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
8169         GOMP_MAP_ATTACH.  Allow standalone GOMP_MAP_ATTACH also.
8171 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
8173         * testsuite/libgomp.c/loop-19.c: New test.
8174         * testsuite/libgomp.c/loop-20.c: New test.
8176 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
8178         * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
8179         2 to -1.  Add omp_atv_serialized and define omp_atv_sequential using
8180         it.  Remove __omp_alloctrait_value_max__.
8181         * allocator.c (omp_init_allocator): Handle omp_atv_default for
8182         omp_atk_alignment and omp_atk_pool_size.
8184 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
8186         * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
8187         behavior for 'GOMP_MAP_FORCE_FROM'.
8188         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
8190 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
8192         * oacc-mem.c (goacc_exit_data_internal): Remove
8193         'GOMP_MAP_ALWAYS_FROM' handling.
8195 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
8197         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
8198         'scan-assembler' with 'scan-offload-rtl'.
8199         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
8200         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
8201         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
8202         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
8204 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
8206         * target.c (gomp_map_vars_existing): Assert 'kind !=
8207         GOMP_MAP_ATTACH'.
8208         (gomp_map_vars_internal): Clean up.
8210 2020-06-27  Jakub Jelinek  <jakub@redhat.com>
8212         * testsuite/libgomp.c/loop-17.c: New test.
8213         * testsuite/libgomp.c/loop-18.c: New test.
8215 2020-06-26  Marek Polacek  <polacek@redhat.com>
8217         * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
8219 2020-06-23  Alexandre Oliva  <oliva@adacore.com>
8221         * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
8222         * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
8224 2020-06-22  David Edelsohn  <dje.gcc@gmail.com>
8226         * Makefile.am: Use -include.
8227         * Makefile.in: Regenerate.
8229 2020-06-21  David Edelsohn  <dje.gcc@gmail.com>
8231         * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
8232         * Makefile.in: Regenerate
8233         * configure.ac (tmake_file): Substitute.
8234         * configure: Regenerate.
8235         * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
8236         * config/t-aix: New file.
8238 2020-06-17  Thomas Schwinge  <thomas@codesourcery.com>
8240         PR lto/94848
8241         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
8242         'dg-do run'.
8244 2020-06-17  Andrew Stubbs  <ams@codesourcery.com>
8246         * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
8247         variant for HSA_RUNTIME_LIB name.
8248         (find_executable_symbol_1): Delete.
8249         (find_executable_symbol): Delete.
8250         (init_kernel_properties): Add ".kd" suffix to symbol names.
8251         (find_load_offset): Delete.
8252         (create_and_finalize_hsa_program): Remove relocation handling.
8254 2020-06-16  Tobias Burnus  <tobias@codesourcery.com>
8256         * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
8258 2020-06-08  Tobias Burnus  <tobias@codesourcery.com>
8260         PR lto/94848
8261         PR middle-end/95551
8262         * testsuite/libgomp.fortran/target-var.f90: New test.
8264 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
8265             Julian Brown  <julian@codesourcery.com>
8267         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
8268         special handling.
8270 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
8271             Julian Brown  <julian@codesourcery.com>
8273         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
8274         Simplify.
8276 2020-06-05  Julian Brown  <julian@codesourcery.com>
8278         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
8279         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
8281 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
8283         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
8284         Evaluate 'copyfrom' individually for each entry.
8285         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
8287 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
8289         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
8290         Evaluate 'finalize' individually for each entry.
8291         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
8292         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
8293         file.
8295 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
8297         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
8298         usage.
8299         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
8301 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
8302             Julian Brown  <julian@codesourcery.com>
8304         * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
8305         checking.
8306         (acc_unmap_data, goacc_exit_data_internal): Restore
8307         'is_tgt_unmapped' checking.
8308         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
8309         file.
8310         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
8311         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
8312         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
8313         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
8314         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
8315         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
8317 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
8318             Julian Brown  <julian@codesourcery.com>
8320         * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
8322 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
8324         PR libgomp/92854
8325         * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
8327 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
8329         PR libgomp/92854
8330         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
8331         more.
8333 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
8334             Julian Brown  <julian@codesourcery.com>
8336         * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
8337         'gomp_map_vars'.
8338         (acc_map_data): Clean up accordingly.
8340 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
8342         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
8343         of over-eager 'finalize' clause.
8344         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
8345         file.
8346         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
8347         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
8348         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
8349         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
8350         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
8351         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
8352         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
8353         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
8355 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
8357         * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
8359 2020-06-04  Julian Brown  <julian@codesourcery.com>
8361         * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
8362         error path.
8363         (goacc_detach_internal): Likewise.
8365 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
8367         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
8368         the checkpoint.
8369         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
8370         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
8371         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
8372         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
8373         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
8375 2020-06-02  Jakub Jelinek  <jakub@redhat.com>
8377         * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
8378         defined.
8380 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
8382         * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
8384 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
8386         * allocator.c (omp_alloc): For size == 0, return NULL early.
8388 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
8390         PR bootstrap/95413
8391         * configure: Regenerated.
8393 2020-05-23  Thomas Koenig  <tkoenig@gcc.gnu.org>
8395         PR libfortran/95191
8396         * testsuite/libgomp.fortran/async_io_9.f90: New test.
8398 2020-05-19  Jakub Jelinek  <jakub@redhat.com>
8400         * omp.h.in (omp_uintptr_t): New typedef.
8401         (__GOMP_UINTPTR_T_ENUM): Define.
8402         (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
8403         omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
8404         (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
8405         (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
8406         omp_get_default_allocator, omp_alloc, omp_free): Declare.
8407         * libgomp.h (struct gomp_team_state): Add def_allocator field.
8408         (gomp_def_allocator): Declare.
8409         * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
8410         omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
8411         omp_alloc and omp_free.
8412         * team.c (gomp_team_start): Copy over ts.def_allocator.
8413         * env.c (gomp_def_allocator): New variable.
8414         (parse_wait_policy): Adjust function comment.
8415         (parse_allocator): New function.
8416         (handle_omp_display_env): Print OMP_ALLOCATOR.
8417         (initialize_env): Call parse_allocator.
8418         * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
8419         * allocator.c: New file.
8420         * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
8421         functions.
8422         * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
8423         * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
8424         * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
8425         * Makefile.in: Regenerated.
8427 2020-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8429         PR bootstrap/95147
8430         * configure: Regenerated.
8432 2020-05-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
8434         PR libfortran/95119
8435         * testsuite/libgomp.fortran/close_errors_1.f90: New test.
8437 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8439         * configure: Regenerated.
8441 2020-05-14  Jakub Jelinek  <jakub@redhat.com>
8443         * testsuite/libgomp.c-c++-common/target-40.c: New test.
8445 2020-05-13  Tobias Burnus  <tobias@codesourcery.com>
8447         PR fortran/94690
8448         * testsuite/libgomp.fortran/pr66199-3.f90: New.
8449         * testsuite/libgomp.fortran/pr66199-4.f90: New.
8450         * testsuite/libgomp.fortran/pr66199-5.f90: New.
8451         * testsuite/libgomp.fortran/pr66199-6.f90: New.
8452         * testsuite/libgomp.fortran/pr66199-7.f90: New.
8453         * testsuite/libgomp.fortran/pr66199-8.f90: New.
8454         * testsuite/libgomp.fortran/pr66199-9.f90: New.
8456 2020-05-12  Jakub Jelinek  <jakub@redhat.com>
8458         * testsuite/libgomp.c/target-39.c: New test.
8460 2020-04-29  Thomas Schwinge  <thomas@codesourcery.com>
8462         * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
8463         * openacc.f90 (acc_device_current): Likewise.
8464         * openacc.h (acc_device_current): Likewise.
8465         * openacc_lib.h (acc_device_current): Likewise.
8467         PR target/94282
8468         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
8469         'dg-allow-blank-lines-in-output'.
8471         * oacc-init.c (get_openacc_name): Handle 'gcn'.
8472         * testsuite/lib/libgomp.exp
8473         (offload_target_to_openacc_device_type) [amdgcn*]: Return
8474         'radeon'.  Adjust all users.
8475         (check_effective_target_openacc_amdgcn_accel_present): Rename
8476         to...
8477         (check_effective_target_openacc_radeon_accel_present): ... this.
8478         Adjust all users.
8479         (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
8480         (check_effective_target_openacc_radeon_accel_selected): ... this.
8481         Adjust all users.
8483         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
8484         'dg-do run'.
8486 2020-04-23  Andrew Stubbs  <ams@codesourcery.com>
8488         PR other/94629
8490         * plugin/plugin-gcn.c (init_hsa_context): Check return value from
8491         hsa_iterate_agents.
8492         (GOMP_OFFLOAD_init_device): Check return values from both calls to
8493         hsa_agent_iterate_regions.
8495 2020-04-20  Thomas Schwinge  <thomas@codesourcery.com>
8497         PR middle-end/94635
8498         * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
8499         run'.
8501 2020-04-20  Tobias Burnus  <tobias@codesourcery.com>
8503         PR middle-end/94120
8504         * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
8505         test case.
8507 2020-04-17  Tobias Burnus  <tobias@codesourcery.com>
8509         PR middle-end/94635
8510         * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
8512 2020-04-13  Thomas Schwinge  <thomas@codesourcery.com>
8514         PR libgomp/92843
8515         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
8516         Rename to...
8517         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
8518         ... this.
8519         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
8520         Rename to...
8521         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
8522         ... this.
8523         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
8524         Rename to...
8525         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
8526         ... this.
8527         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
8528         Rename to...
8529         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
8530         ... this.
8531         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
8532         Rename to...
8533         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
8534         ... this.
8535         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
8536         Rename to...
8537         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
8538         ... this.
8539         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
8540         Rename to...
8541         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
8542         ... this.
8543         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
8544         Rename to...
8545         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
8546         ... this.
8547         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
8548         Rename to...
8549         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
8550         ... this.
8551         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
8552         Rename to...
8553         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
8554         ... this.
8555         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
8556         Rename to...
8557         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
8558         ... this.
8559         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
8560         Rename to...
8561         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
8562         ... this.
8563         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
8564         Rename to...
8565         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
8566         ... this.
8567         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
8568         Rename to...
8569         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
8570         ... this.
8571         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
8572         Rename to...
8573         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
8574         ... this.
8575         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
8576         Rename to...
8577         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
8578         ... this.
8580 2020-04-10  Julian Brown  <julian@codesourcery.com>
8581             Thomas Schwinge  <thomas@codesourcery.com>
8583         PR libgomp/92843
8584         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
8585         New file.
8586         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
8587         Likewise.
8588         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
8589         Likewise.
8590         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
8591         Likewise.
8592         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
8593         Likewise.
8594         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
8595         Likewise.
8596         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
8597         Likewise.
8598         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
8599         Likewise.
8600         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
8601         Likewise.
8602         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
8603         Likewise.
8604         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
8605         Likewise.
8606         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
8607         Likewise.
8608         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
8609         Likewise.
8610         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
8611         Likewise.
8612         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
8613         Likewise.
8614         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
8615         Likewise.
8617 2020-04-10  Thomas Schwinge  <thomas@codesourcery.com>
8619         * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
8620         run'.
8622 2020-04-08  Tobias Burnus  <tobias@codesourcery.com>
8624         PR middle-end/94120
8625         * libgomp.oacc-c++/declare-pr94120.C: New.
8627 2020-04-06  Maciej W. Rozycki  <macro@wdc.com>
8629         * configure.ac: Add testsuite/libgomp-site-extra.exp to output
8630         files.
8631         * configure: Regenerate.
8632         * testsuite/libgomp-site-extra.exp.in: New file.
8633         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
8634         variable.
8635         * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
8636         variable.
8637         * testsuite/Makefile.in: Regenerate.
8639 2020-04-03  Thomas Schwinge  <thomas@codesourcery.com>
8641         PR tree-optimization/89713
8642         PR c/94392
8643         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
8644         'bar.sync'.
8645         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
8647 2020-03-31  Tobias Burnus  <tobias@codesourcery.com>
8649         * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
8650         * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
8652 2020-03-24  Tobias Burnus  <tobias@codesourcery.com>
8654         PR libgomp/81689
8655         * testsuite/libgomp.c/target-link-1.c: Remove xfail.
8657 2020-03-20  Tobias Burnus  <tobias@codesourcery.com>
8659         PR libgomp/94251
8660         * target.c (gomp_load_image_to_device): Fix link
8661         variable handling.
8663 2020-03-19  Jakub Jelinek  <jakub@redhat.com>
8665         PR c++/93931
8666         * testsuite/libgomp.c++/pr93931.C: New test.
8668 2020-03-19  Tobias Burnus  <tobias@codesourcery.com>
8670         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
8671         dg-allow-blank-lines-in-output.
8673 2020-03-18  Julian Brown <julian@codesourcery.com>
8674             Tobias Burnus  <tobias@codesourcery.com>
8676         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
8677         it work concurrently.
8679 2020-03-18  Tobias Burnus  <tobias@codesourcery.com>
8681         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
8682         #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
8683         * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
8685 2020-03-14  Jakub Jelinek  <jakub@redhat.com>
8687         PR middle-end/93566
8688         * testsuite/libgomp.c/pr93566.c: New test.
8690 2020-02-21  Frederik Harwath  <frederik@codesourcery.com>
8692         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
8693         changes from 2020-02-19, i.e. use integer(c_size_t) instead of
8694         integer(acc_device_property) for the type of the return value of
8695         acc_get_property.
8697 2020-02-19  Tobias Burnus  <tobias@codesourcery.com>
8699         * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
8700         * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
8701         (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
8702         * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
8703         (acc_set_device_num): Fix Fortran argument name, use same name for C.
8704         (acc_get_property): Update Fortran interface to post-OpenACC 3.0
8705         corrections; add note about the previous interface and named constant.
8706         (OpenACC library and environment variables): Fix two typos.
8707         * openacc.f90: Use for all procedures the argument names from the spec
8708         as for â€¦_h they are user visible.
8709         (openacc_kinds): Rename acc_device_property to
8710         acc_device_property_kinds and change value to int32 ; and update users.
8711         Re-add acc_device_property for for backward compatibility.
8712         (acc_get_property_string_h): Clean up as acc_device_property_kind
8713         changed.
8714         (acc_get_property_h): Likewise and return c_size_t instead of
8715         acc_device_property.
8716         (openacc): Also export acc_device_property_kinds.
8717         (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
8718         acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
8719         handling; check against /= 0 instead of == 1 to match C.
8720         * openacc_lib.h: Use for all procedures the argument names from the spec
8721         as for â€¦_h they are user visible. Place !GCC$ into the first column to
8722         be active also for fixed-form souce form.
8723         (acc_device_current, acc_device_property_kind, acc_device_property,
8724         acc_property_memory, acc_property_free_memory, acc_property_name,
8725         acc_property_vendor, acc_property_driver): New named constants.
8726         (acc_get_property, acc_get_property_string): New generic interface.
8728 2020-02-13  Frederik Harwath  <frederik@codesourcery.com>
8730         PR libgomp/93481
8731         * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
8732         * target.c (gomp_load_plugin_for_device): Make "async_run" loading
8733         optional.
8734         (gomp_target_task_fn): Assert "devicep->async_run_func".
8735         (clear_unsupported_flags): New function to remove unsupported flags
8736         (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
8737         (GOMP_target_ext): Apply clear_unsupported_flags to flags.
8738         * testsuite/libgomp.c/target-33.c:
8739         Remove xfail for offload_target_nvptx.
8740         * testsuite/libgomp.c/target-34.c: Likewise.
8742 2020-02-10  Frederik Harwath  <frederik@codesourcery.com>
8744         * testsuite/libgomp.c/target-33.c: Add xfail for execution on
8745         offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
8746         * testsuite/libgomp.c/target-34.c: Likewise.
8747         * testsuite/libgomp.c/target-link-1.c: Add xfail for
8748         offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
8750 2020-02-09  Jakub Jelinek  <jakub@redhat.com>
8752         * testsuite/libgomp.c/target-38.c: New test.
8754 2020-02-06  Jakub Jelinek  <jakub@redhat.com>
8756         PR libgomp/93515
8757         * testsuite/libgomp.c-c++-common/pr93515.c: New test.
8759 2020-02-05  Tobias Burnus  <tobias@codesourcery.com>
8761         * testsuite/lib/libgomp.exp
8762         (check_effective_target_offload_target_nvptx): Pass flags as 'options'
8763         and not as 'source' argument to libgomp_target_compile.
8765 2020-02-03  Andrew Stubbs  <ams@codesourcery.com>
8767         * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
8768         (gcn_gfx801_s): Remove.
8769         (isa_hsa_name): Remove gfx801.
8770         (isa_gcc_name): Remove gfx801/carizzo.
8771         (isa_code): Remove gfx801.
8773 2020-02-03  Julian Brown  <julian@codesourcery.com>
8774             Tobias Burnus  <tobias@codesourcery.com>
8776         * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
8777         and *_finalize variants; document acc_attach and acc_detach; update
8778         references from OpenACC 2.0 to 2.6.
8779         * openacc.f90 (openacc_version): Update to 201711.
8780         * openacc_lib.h (openacc_version): Update to 201711.
8781         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
8782         openacc_version to 201711.
8783         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
8785 2020-01-31  Kwok Cheung Yeung  <kcy@codesourcery.com>
8787         * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
8788         and vgpr_count fields.
8789         (struct kernel_info): Add a field for a hsa_kernel_description.
8790         (run_kernel): Reduce the number of threads/workers if the requested
8791         number would require too many VGPRs.
8792         (init_basic_kernel_info): Initialize description field with
8793         the hsa_kernel_description entry for the kernel.
8795 2020-01-29  Tobias Burnus  <tobias@codesourcery.com>
8797         PR bootstrap/93409
8798         * plugin/configfrag.ac (enable_offload_targets): Skip
8799         HSA and GCN plugin besides -m32 also for -mx32.
8800         * configure: Regenerate.
8802 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
8804         * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
8806 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
8808         * plugin-gcn.c (struct agent_info): Add fields "name" and
8809         "vendor_name" ...
8810         (GOMP_OFFLOAD_init_device): ... and init from here.
8811         (struct hsa_context_info): Add field "driver_version_s" ...
8812         (init_hsa_contest): ... and init from here.
8813         (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
8814         implementation.
8815         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
8816         Enable test execution for amdgcn and host offloading targets.
8817         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
8818         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
8819         (expect_device_properties): Split function into ...
8820         (expect_device_string_properties): ... this new function ...
8821         (expect_device_memory): ... and this new function.
8822         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
8823         Add test.
8825 2020-01-28  Julian Brown  <julian@codesourcery.com>
8827         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
8828         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
8829         component/non-component variable refs in a single directive.
8830         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
8832 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
8834         * configure.ac: Handle `--with-toolexeclibdir='.
8835         * Makefile.in: Regenerate.
8836         * aclocal.m4: Regenerate.
8837         * configure: Regenerate.
8838         * testsuite/Makefile.in: Regenerate.
8840 2020-01-24  Frederik Harwath  <frederik@codesourcery.com>
8842         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
8843         (expect_device_properties): Remove "expected_free_mem" argument,
8844         change "expected_total_mem" argument type to size_t;
8845         change types of acc_get_property results to size_t,
8846         adapt format strings.
8847         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
8848         Use %zu instead of %zd to print size_t values.
8849         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
8850         rename to ...
8851         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
8852         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
8853         rename to ...
8854         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
8856 2020-01-23  Andrew Stubbs  <ams@codesourcery.com>
8858         * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
8859         the device id.
8861 2020-01-20  Andrew Stubbs  <ams@codesourcery.com>
8863         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
8864         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
8865         Adjust test dimensions for amdgcn.
8866         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
8867         gang/worker/vector expectations dynamically.
8868         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
8869         (main): Likewise.
8870         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
8871         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
8872         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
8873         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
8874         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
8875         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
8876         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
8877         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
8878         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
8879         (acc_gang): Recognise acc_device_radeon.
8880         (acc_worker): Likewise.
8881         (acc_vector): Likewise.
8882         (main): Set expectations for amdgcn.
8883         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
8884         (main): Adjust gang/worker/vector expectations dynamically.
8885         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
8886         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
8887         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
8888         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
8889         for amdgcn.
8891 2020-01-17  Andrew Stubbs  <ams@codesourcery.com>
8893         * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
8894         acc_device_radeon.
8895         (openacc): Likewise.
8896         * openacc.f90 (openacc_kinds): Likewise.
8897         (openacc): Likewise.
8898         * openacc.h (acc_device_t): Likewise.
8899         * openacc_lib.h: Likewise.
8900         * testsuite/lib/libgomp.exp
8901         (check_effective_target_openacc_amdgcn_accel_present): Likewise.
8902         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
8903         (cb_compute_construct_end): Likewise.
8904         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
8905         (cb_enqueue_launch_start): Likewise.
8906         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
8907         (cb_enter_data_end): Likewise.
8908         (cb_exit_data_start): Likewise.
8909         (cb_exit_data_end): Likewise.
8910         (cb_compute_construct_end): Likewise.
8911         (cb_enqueue_launch_start): Likewise.
8912         (cb_enqueue_launch_end): Likewise.
8913         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
8914         (main): Likewise.
8916 2020-01-10  Thomas Schwinge  <thomas@codesourcery.com>
8918         * libgomp-plugin.h (enum goacc_property): New.  Adjust all users
8919         to use this instead of 'enum gomp_device_property'.
8920         (GOMP_OFFLOAD_get_property): Rename to...
8921         (GOMP_OFFLOAD_openacc_get_property): ... this.  Adjust all users.
8922         * libgomp.h (struct gomp_device_descr): Move
8923         'GOMP_OFFLOAD_openacc_get_property'...
8924         (struct acc_dispatch_t): ... here.  Adjust all users.
8925         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
8927         * target.c (gomp_map_vars_internal)
8928         <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
8929         paths.
8931 2020-01-10  Jakub Jelinek  <jakub@redhat.com>
8933         PR libgomp/93219
8934         * libgomp.h (gomp_print_string): Change return type from void to int.
8935         * affinity-fmt.c (gomp_print_string): Likewise.  Return true if
8936         not all characters have been written.
8938 2020-01-08  Tobias Burnus  <tobias@codesourcery.com>
8940         * libgomp.texi: Fix typos, use https.
8942 2020-01-03  Tobias Burnus  <tobias@codesourcery.com>
8944         * testsuite/libgomp.fortran/optional-map.f90: Add test for
8945         unallocated/disassociated actual arguments to nonallocatable/nonpointer
8946         dummy arguments; those are/shall be regarded as absent arguments.
8947         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
8948         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
8950 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
8952         Update copyright years.
8954         * libgomp.texi: Bump @copying's copyright year.
8956 2019-12-31  Ayush Mittal  <ayush.m@samsung.com>
8958         PR libgomp/93065
8959         * oacc-init.c (goacc_runtime_deinitialize): New function.
8961 2019-12-28  Jakub Jelinek  <jakub@redhat.com>
8963         PR bootstrap/93074
8964         * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
8965         (cuDeviceTotalMem, cuMemGetInfo): Likewise.  Define to *_v2.
8967 2019-12-22  Maciej W. Rozycki  <macro@codesourcery.com>
8968             Frederik Harwath  <frederik@codesourcery.com>
8969             Thomas Schwinge  <tschwinge@codesourcery.com>
8971         * libgomp.h (gomp_device_descr): Add `get_property_func' member.
8972         * libgomp-plugin.h (gomp_device_property_value): New union.
8973         (gomp_device_property_value): New prototype.
8974         * openacc.h (acc_device_t): Add `acc_device_current' enumeration
8975         constant.
8976         (acc_device_property_t): New enum.
8977         (acc_get_property, acc_get_property_string): New prototypes.
8978         * oacc-init.c (acc_get_device_type): Also assert that result
8979         is not `acc_device_current'.
8980         (get_property_any, acc_get_property, acc_get_property_string):
8981         New functions.
8982         * openacc.f90 (openacc_kinds): Add `acc_device_current' and
8983         `acc_property_memory', `acc_property_free_memory',
8984         `acc_property_name', `acc_property_vendor' and
8985         `acc_property_driver' constants.  Add `acc_device_property' data
8986         type.
8987         (openacc_internal): Add `acc_get_property' and
8988         `acc_get_property_string' interfaces.  Add `acc_get_property_h',
8989         `acc_get_property_string_h', `acc_get_property_l' and
8990         `acc_get_property_string_l'.
8991         * oacc-host.c (host_get_property): New function.
8992         (host_dispatch): Wire it.
8993         * target.c (gomp_load_plugin_for_device): Handle `get_property'.
8994         * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
8995         `acc_get_property_string' and `acc_get_property_string_h_' symbols.
8996         * libgomp.texi (OpenACC Runtime Library Routines): Add
8997         `acc_get_property'.
8998         (acc_get_property): New node.
8999         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
9000         function (stub).
9001         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
9002         * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
9003         `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
9004         calls.
9005         (GOMP_OFFLOAD_get_property): New function.
9006         (struct ptx_device): Add new field "name".
9007         (cuda_driver_version_s): Add new static variable ...
9008         (nvptx_init): ... and init from here.
9010         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
9011         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
9012         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
9013         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
9014         with test helper functions.
9016         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
9018 2019-12-22  Maciej W. Rozycki  <macro@wdc.com>
9020         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
9021         variable.
9023 2019-12-21  Thomas Schwinge  <thomas@codesourcery.com>
9025         * target.c (gomp_map_vars_internal): Restore 'omp declare target
9026         link' handling.
9028 2019-12-19  Julian Brown  <julian@codesourcery.com>
9030         * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
9031         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
9032         * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
9034 2019-12-19  Julian Brown  <julian@codesourcery.com>
9035             Cesar Philippidis  <cesar@codesourcery.com>
9037         * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
9038         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
9039         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
9040         * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
9041         * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
9042         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
9043         * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
9044         * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
9045         * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
9046         * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
9047         * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
9048         * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
9049         * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
9051 2019-12-19  Julian Brown  <julian@codesourcery.com>
9053         * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
9054         * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
9055         * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
9056         * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
9057         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
9058         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
9059         * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
9060         * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
9061         * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
9062         * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
9063         * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
9064         * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
9066 2019-12-19  Julian Brown  <julian@codesourcery.com>
9068         * libgomp.h (struct target_var_desc): Add do_detach flag.
9069         * oacc-init.c (acc_shutdown_1): Free aux block if present.
9070         * oacc-mem.c (find_group_last): Add SIZES parameter. Support
9071         struct components.  Tidy up and add some new checks.
9072         (goacc_enter_data_internal): Update call to find_group_last.
9073         (goacc_exit_data_internal): Support detach operations and
9074         GOMP_MAP_STRUCT.
9075         (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
9076         GOMP_MAP_FORCE_PRESENT in finalization detection code.  Handle
9077         attach/detach in enter/exit data detection code.
9078         * target.c (gomp_map_vars_existing): Initialise do_detach field of
9079         tgt_var_desc.
9080         (gomp_map_vars_internal): Support attach.
9081         (gomp_unmap_vars_internal): Support detach.
9083 2019-12-19  Julian Brown  <julian@codesourcery.com>
9084             Thomas Schwinge  <thomas@codesourcery.com>
9086         * libgomp.h (struct splay_tree_aux): Add attach_count field.
9087         (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
9088         * libgomp.map (OACC_2.6): New section. Add acc_attach,
9089         acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
9090         acc_detach_finalize_async.
9091         * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
9092         acc_detach, acc_detach_async, acc_detach_finalize,
9093         acc_detach_finalize_async): New functions.
9094         * openacc.h (acc_attach, acc_attach_async, acc_detach,
9095         (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
9096         prototypes.
9097         * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
9098         (gomp_remove_var_internal): Free attachment counts if present.
9099         * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
9100         * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
9102 2019-12-19  Julian Brown  <julian@codesourcery.com>
9103             Cesar Philippidis  <cesar@codesourcery.com>
9105         * libgomp.h (gomp_map_val): Add prototype.
9106         * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
9107         open-coding device-address calculation.
9108         * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
9109         non-present case.
9111 2019-12-19  Julian Brown  <julian@codesourcery.com>
9113         * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
9114         field for virtual_refcount.
9115         (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
9116         (gomp_free_memmap): Remove prototype.
9117         * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
9118         instead of calling gomp_free_memmap.
9119         * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
9120         dynamic_refcount.
9121         (acc_unmap_data): Open code instead of forcing target_mem_desc's
9122         to_free field to NULL then calling gomp_unmap_vars.  Handle
9123         REFCOUNT_INFINITY on target blocks.
9124         (goacc_enter_data): Rename to...
9125         (goacc_enter_datum): ...this.  Remove MAPNUM parameter and special
9126         handling for mapping groups.  Use virtual_refcount instead of
9127         dynamic_refcount.  Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
9128         map_map_vars_async call.  Re-do lookup for target pointer return value.
9129         (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
9130         renamed goacc_enter_datum function.
9131         (goacc_exit_data): Rename to...
9132         (goacc_exit_datum): ...this.  Update for virtual_refcount semantics.
9133         (acc_delete, acc_delete_async, acc_delete_finalize,
9134         acc_delete_finalize_async, acc_copyout, acc_copyout_async,
9135         acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
9136         goacc_exit_datum function.
9137         (gomp_acc_remove_pointer, find_pointer): Remove functions.
9138         (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
9139         New functions.
9140         (GOACC_enter_exit_data): Use goacc_enter_data_internal and
9141         goacc_exit_data_internal helper functions.
9142         * target.c (gomp_map_vars_internal): Handle
9143         GOMP_MAP_VARS_OPENACC_ENTER_DATA.  Update for virtual_refcount
9144         semantics.
9145         (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
9146         (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
9147         virtual_refcount field instead of dynamic_refcount.
9148         (gomp_free_memmap): Remove function.
9149         * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
9150         * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
9151         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
9153 2019-12-19  Julian Brown  <julian@codesourcery.com>
9154             Thomas Schwinge  <thomas@codesourcery.com>
9156         * libgomp.h (struct splay_tree_aux): New.
9157         (struct splay_tree_key_s): Replace link_key field with aux pointer.
9158         * target.c (gomp_map_vars_internal): Adjust for link_key being moved
9159         to aux struct.
9160         (gomp_remove_var_internal): Free aux block if present.
9161         (gomp_load_image_to_device): Zero-initialise aux field instead of
9162         link_key field.
9163         (omp_target_associate_pointer): Zero-initialise aux field.
9165 2019-12-18  Jakub Jelinek  <jakub@redhat.com>
9167         PR middle-end/86416
9168         * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
9169         q or none.
9170         * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
9171         L or none.
9173 2019-12-19  Julian Brown  <julian@codesourcery.com>
9174             Maciej W. Rozycki  <macro@codesourcery.com>
9175             Tobias Burnus  <tobias@codesourcery.com>
9176             Thomas Schwinge  <thomas@codesourcery.com>
9178         * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
9179         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
9180         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
9181         * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
9182         * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
9183         * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
9184         * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
9185         * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
9186         * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
9188 2019-12-18  Thomas Schwinge  <thomas@codesourcery.com>
9190         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
9191         called...
9192         (goacc_insert_pointer): ... from here, "present" case.
9193         (goacc_insert_pointer): Inline function into...
9194         (GOACC_enter_exit_data): ... here, and simplify.
9196         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
9197         called...
9198         (goacc_insert_pointer): ... from here, "not present" case.
9200         * oacc-mem.c (goacc_remove_pointer): Refactor interface.  Adjust
9201         all users.
9203         * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
9204         'goacc_enter_data', 'goacc_exit_data'.
9206         * oacc-mem.c (delete_copyout): Refactor into...
9207         (goacc_exit_data): ... this.  Adjust all users.
9209         * oacc-mem.c (present_create_copy): Refactor into...
9210         (goacc_enter_data): ... this.  Adjust all users.
9212         * target.c (gomp_unmap_vars_internal): Add a safeguard to
9213         'gomp_remove_var'.
9215         * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
9216         like 'GOMP_MAP_FROM'.
9218         PR libgomp/92726
9219         PR libgomp/92970
9220         PR libgomp/92984
9221         * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
9222         fails.
9223         (GOACC_enter_exit_data): Simplify accordingly.
9224         * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
9225         subsuming...
9226         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
9227         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
9228         file.
9229         * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
9230         subsuming...
9231         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
9232         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
9233         file.
9234         * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
9235         subsuming...
9236         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
9238         * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
9239         'finalize' handling.
9241         PR libgomp/92848
9242         * oacc-mem.c (acc_map_data, present_create_copy)
9243         (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
9244         (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
9245         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
9246         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
9247         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
9248         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
9249         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
9250         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
9251         Remove "XFAIL"s.
9253         * target.c (gomp_unmap_tgt): Make it 'static'.
9254         * libgomp.h (gomp_unmap_tgt): Remove.
9256 2019-12-18  Tobias Burnus  <tobias@codesourcery.com>
9258         PR middle-end/86416
9259         * testsuite/libgomp.c/pr86416-1.c: New.
9260         * testsuite/libgomp.c/pr86416-2.c: New.
9262 2019-12-17  Tobias Burnus  <tobias@codesourcery.com>
9264         * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
9265         all symbols as public except for the 'use â€¦, only' imported symbol,
9266         which is private.
9267         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
9268         all symbols from module openacc_kinds as PUBLIC
9269         * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
9270         fix comment typo.
9271         * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
9273 2019-12-13  Julian Brown  <julian@codesourcery.com>
9275         PR libgomp/92881
9277         * libgomp.h (gomp_remove_var_async): Add prototype.
9278         * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
9279         gomp_remove_var.
9280         * target.c (gomp_unref_tgt): Change return type to bool, indicating
9281         whether target_mem_desc was unmapped.
9282         (gomp_unref_tgt_void): New.
9283         (gomp_remove_var): Reimplement in terms of...
9284         (gomp_remove_var_internal): ...this new helper function.
9285         (gomp_remove_var_async): New, implemented using above helper function.
9286         (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
9287         gomp_unref_tgt.
9289 2019-12-13  Andrew Stubbs  <ams@codesourcery.com>
9291         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
9292         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
9293         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
9294         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
9295         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
9296         Likewise.
9297         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
9298         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
9300 2019-12-13  Tobias Burnus  <tobias@codesourcery.com>
9302         * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
9303         as public except for the 'use â€¦, only' imported symbol, which is
9304         private.
9305         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
9306         all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
9307         attributes for acc_copyout_finalize and acc_delete_finalize.
9309 2019-12-11  Jakub Jelinek  <jakub@redhat.com>
9311         PR fortran/92899
9312         * testsuite/libgomp.fortran/atomic1.f90: New test.
9314 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
9316         PR libgomp/92843
9317         * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
9318         reference counting for structured 'REFCOUNT_INFINITY'.  Add some
9319         assertions.
9320         (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
9321         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
9322         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
9323         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
9324         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
9326         * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
9327         * oacc-mem.c: ... here.
9328         (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
9329         'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
9330         * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
9331         Remove.
9332         * libgomp_g.h: Update.
9334         * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
9335         * oacc-async.c: ... here.
9336         * oacc-int.h (goacc_wait): Declare.
9337         * libgomp_g.h: Update
9339         PR libgomp/92854
9340         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
9341         New file.
9342         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
9343         Likewise.
9344         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
9345         Likewise.
9346         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
9347         Likewise.
9348         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
9349         Likewise.
9350         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
9351         Likewise.
9353 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
9354             Julian Brown  <julian@codesourcery.com>
9356         * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
9357         Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
9359 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
9361         * omp_lib.h.in: Fix spelling of function declaration
9362         omp_get_cancell(l)ation.
9363         * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
9364         Fix typos.
9365         * env.c: Fix comment typos.
9366         * oacc-host.c: Likewise.
9367         * ordered.c: Likewise.
9368         * task.c: Likewise.
9369         * team.c: Likewise.
9370         * config/gcn/task.c: Likewise.
9371         * config/gcn/team.c: Likewise.
9372         * config/nvptx/task.c: Likewise.
9373         * config/nvptx/team.c: Likewise.
9374         * plugin/plugin-gcn.c: Likewise.
9375         * testsuite/libgomp.fortran/jacobi.f: Likewise.
9376         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
9377         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
9379 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
9381         * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
9382         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
9383         unnecessary 'dg-additional-options "-w"'.
9385 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
9386             Julian Brown  <julian@codesourcery.com>
9388         PR libgomp/92116
9389         PR libgomp/92877
9391         * oacc-mem.c (lookup_dev): Reimplement.  Adjust all users.
9392         * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
9393         Adjust all users.
9394         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
9395         Remove XFAIL.
9396         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
9397         Likewise.
9398         * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
9400 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
9402         PR libgomp/92503
9403         * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
9404         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
9405         file.
9406         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
9407         Likewise.
9408         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
9409         Likewise.
9410         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
9411         Likewise.
9412         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
9413         Likewise.
9414         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
9415         Likewise.
9416         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
9417         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
9418         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
9419         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
9420         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
9421         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
9422         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
9423         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
9424         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
9425         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
9427         PR libgomp/92840
9428         * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
9429         (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
9430         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
9431         New file.
9432         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
9433         Likewise.
9434         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
9435         Likewise.
9436         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
9437         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
9439         PR libgomp/92511
9440         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
9441         this file...
9442         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
9443         this file...
9444         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
9445         file...
9446         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
9447         file...
9448         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
9449         ... with their content moved into, and extended in this new file.
9450         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
9451         New file.
9452         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
9453         Likewise.
9454         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
9455         Likewise.
9456         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
9457         Likewise.
9459         * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
9461         PR libgomp/92854
9462         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
9464         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
9466         * target.c (gomp_exit_data): Use 'gomp_remove_var'.
9468 2019-12-09  Tobias Burnus  <tobias@codesourcery.com>
9470         * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
9471         unique.
9472         * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
9473         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
9474         * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
9475         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
9476         Ditto.
9477         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
9478         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
9480 2019-12-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
9482         * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
9484 2019-12-06  Tobias Burnus  <tobias@codesourcery.com>
9485             Kwok Cheung Yeung <kcy@codesourcery.com>
9487         * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
9488         if input it a NULL pointer.
9489         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
9490         diagnostic of NULL pointer.
9491         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
9492         * testsuite/libgomp.fortran/optional-map.f90: New.
9493         * testsuite/libgomp.fortran/use_device_addr-1.f90
9494         (test_dummy_opt_callee_1_absent): New.
9495         (test_dummy_opt_call_1): Call it.
9496         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
9497         * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
9498         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
9499         * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
9500         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
9501         * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
9502         * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
9503         * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
9504         * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
9505         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
9506         * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
9507         * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
9508         * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
9509         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
9510         * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
9511         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
9513 2019-12-05  Tobias Burnus  <tobias@codesourcery.com>
9515         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
9516         expect dg-output of 'Error termination.' for GCN.
9517         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
9518         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
9520 2019-12-04  Jakub Jelinek  <jakub@redhat.com>
9522         PR fortran/92756
9523         * testsuite/libgomp.fortran/teams1.f90: New test.
9524         * testsuite/libgomp.fortran/teams2.f90: New test.
9526 2019-12-03  Frederik Harwath  <frederik@codesourcery.com>
9528         * oacc-init.c (acc_known_device_type): Add function.
9529         (unknown_device_type_error): Add function.
9530         (name_of_acc_device_t): Change to call unknown_device_type_error
9531         on unknown type.
9532         (resolve_device): Use acc_known_device_type.
9533         (acc_init): Fail if acc_device_t argument is not valid.
9534         (acc_shutdown): Likewise.
9535         (acc_get_num_devices): Likewise.
9536         (acc_set_device_type): Likewise.
9537         (acc_get_device_num): Likewise.
9538         (acc_set_device_num): Likewise.
9539         (acc_on_device): Add comment that argument validity is not checked.
9541 2019-12-03  Andrew Stubbs  <ams@codesourcery.com>
9543         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
9544         Recognize amdgcn.
9545         (check_effective_target_openacc_amdgcn_accel_present): New proc.
9546         (check_effective_target_openacc_amdgcn_accel_selected): New proc.
9547         * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
9548         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9549         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9551 2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9553         PR libgomp/91938
9554         * configure.tgt: Avoid IE tls on *-*-musl*.
9556 2019-11-29  Tobias Burnus  <tobias@codesourcery.com>
9558         * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
9559         adding a common-block test case.
9561 2019-11-29  Jakub Jelinek  <jakub@redhat.com>
9563         PR c++/60228
9564         * testsuite/libgomp.c++/udr-20.C: New test.
9565         * testsuite/libgomp.c++/udr-21.C: New test.
9567 2019-11-27  Thomas Schwinge  <thomas@codesourcery.com>
9569         * testsuite/lib/libgomp.exp
9570         (check_effective_target_offload_target_nvptx): New proc.
9571         * testsuite/libgomp.fortran/target-print-1.f90: Use it with
9572         'dg-skip-if'.
9573         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
9574         * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
9575         * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
9577 2019-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9579         * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
9580         * testsuite/libgomp.c/pr39591-2.c: Likewise.
9581         * testsuite/libgomp.c/pr39591-3.c: Likewise.
9582         * testsuite/libgomp.c/private-1.c: Likewise.
9583         * testsuite/libgomp.c/task-1.c: Likewise.
9584         * testsuite/libgomp.c/task-5.c: Renamed err to serr.
9586 2019-11-20  Julian Brown  <julian@codesourcery.com>
9588         * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
9589         aq->mutex here.
9590         (queue_push_launch): Lock aq->mutex before calling
9591         wait_for_queue_nonfull.
9592         (queue_push_callback): Likewise.
9593         (queue_push_asyncwait): Likewise.
9594         (queue_push_placeholder): Likewise.
9596 2019-11-20  Julian Brown  <julian@codesourcery.com>
9598         * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
9599         (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
9600         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
9601         return code.
9603 2019-11-20  Julian Brown  <julian@codesourcery.com>
9605         PR libgomp/92511
9607         * oacc-mem.c (present_create_copy): Fix device pointer return value in
9608         case of "present" subarray.  Use tgt->tgt_start instead of tgt->to_free
9609         in non-present/create case.
9610         (delete_copyout): Change error condition to fail only on copies outside
9611         of mapped block.  Adjust error message accordingly.
9612         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
9613         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
9614         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
9615         message.
9616         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
9617         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
9618         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
9620 2019-11-20  Maciej W. Rozycki  <macro@wdc.com>
9622         * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
9623         libatomic in build-tree testing.
9625 2019-11-18  Maciej W. Rozycki  <macro@wdc.com>
9627         * testsuite/Makefile.in: Regenerate.
9629 2019-11-15  Andrew Stubbs  <ams@codesourcery.com>
9631         * testsuite/libgomp.c/target-print-1.c: New file.
9632         * testsuite/libgomp.fortran/target-print-1.f90: New file.
9633         * testsuite/libgomp.oacc-c/print-1.c: New file.
9634         * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
9636 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
9637             Kwok Cheung Yeung  <kcy@codesourcery.com>
9638             Julian Brown  <julian@codesourcery.com>
9639             Tom de Vries  <tom@codesourcery.com>
9641         * plugin/Makefrag.am: Add amdgcn plugin support.
9642         * plugin/configfrag.ac: Likewise.
9643         * plugin/plugin-gcn.c: New file.
9644         * configure: Regenerate.
9645         * Makefile.in: Regenerate.
9646         * testsuite/Makefile.in: Regenerate.
9648 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
9650         * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
9651         and use team_malloc variants.
9652         (gomp_gcn_exit_kernel): Use team_free.
9653         * libgomp.h (TEAM_ARENA_SIZE): Define.
9654         (TEAM_ARENA_START): Define.
9655         (TEAM_ARENA_FREE): Define.
9656         (TEAM_ARENA_END): Define.
9657         (team_malloc): New function.
9658         (team_malloc_cleared): New function.
9659         (team_free): New function.
9660         * team.c (gomp_new_team): Initialize and use team_malloc.
9661         (free_team): Use team_free.
9662         (gomp_free_thread): Use team_free.
9663         (gomp_pause_host): Use team_free.
9664         * work.c (gomp_init_work_share): Use team_malloc.
9665         (gomp_fini_work_share): Use team_free.
9667 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
9668             Kwok Cheung Yeung  <kcy@codesourcery.com>
9669             Julian Brown  <julian@codesourcery.com>
9670             Tom de Vries  <tom@codesourcery.com>
9672         * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
9673         * Makefile.in: Regenerate.
9674         * config.h.in (PLUGIN_GCN): Add new undef.
9675         * config/accel/openacc.f90 (acc_device_gcn): New parameter.
9676         * config/gcn/affinity-fmt.c: New file.
9677         * config/gcn/bar.c: New file.
9678         * config/gcn/bar.h: New file.
9679         * config/gcn/doacross.h: New file.
9680         * config/gcn/icv-device.c: New file.
9681         * config/gcn/oacc-target.c: New file.
9682         * config/gcn/simple-bar.h: New file.
9683         * config/gcn/target.c: New file.
9684         * config/gcn/task.c: New file.
9685         * config/gcn/team.c: New file.
9686         * config/gcn/time.c: New file.
9687         * configure.ac: Add amdgcn*-*-*.
9688         * configure: Regenerate.
9689         * configure.tgt: Add amdgcn*-*-*.
9690         * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
9691         * libgomp.h (gcn_thrs): Add amdgcn variant.
9692         (set_gcn_thrs): Likewise.
9693         (gomp_thread): Likewise.
9694         * oacc-int.h (goacc_thread): Likewise.
9695         * oacc-target.c: New file.
9696         * openacc.f90 (acc_device_gcn): New parameter.
9697         * openacc.h (acc_device_t): Add acc_device_gcn.
9698         * team.c (gomp_free_pool_helper): Add amdgcn support.
9700 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
9701             Julian Brown  <julian@codesourcery.com>
9703         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
9704         parameter.
9705         * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
9706         queue constructor.
9707         * oacc-host.c (host_openacc_async_construct): Add device parameter.
9708         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
9709         device parameter.
9711 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
9713         * configure.tgt (nvptx*-*-*): Add "accel" directory.
9714         * config/nvptx/libgomp-plugin.c: Move ...
9715         * config/accel/libgomp-plugin.c: ... to here.
9716         * config/nvptx/lock.c: Move ...
9717         * config/accel/lock.c: ... to here.
9718         * config/nvptx/mutex.c: Move ...
9719         * config/accel/mutex.c: ... to here.
9720         * config/nvptx/mutex.h: Move ...
9721         * config/accel/mutex.h: ... to here.
9722         * config/nvptx/oacc-async.c: Move ...
9723         * config/accel/oacc-async.c: ... to here.
9724         * config/nvptx/oacc-cuda.c: Move ...
9725         * config/accel/oacc-cuda.c: ... to here.
9726         * config/nvptx/oacc-host.c: Move ...
9727         * config/accel/oacc-host.c: ... to here.
9728         * config/nvptx/oacc-init.c: Move ...
9729         * config/accel/oacc-init.c: ... to here.
9730         * config/nvptx/oacc-mem.c: Move ...
9731         * config/accel/oacc-mem.c: ... to here.
9732         * config/nvptx/oacc-plugin.c: Move ...
9733         * config/accel/oacc-plugin.c: ... to here.
9734         * config/nvptx/omp-lock.h: Move ...
9735         * config/accel/omp-lock.h: ... to here.
9736         * config/nvptx/openacc.f90: Move ...
9737         * config/accel/openacc.f90: ... to here.
9738         * config/nvptx/pool.h: Move ...
9739         * config/accel/pool.h: ... to here.
9740         * config/nvptx/proc.c: Move ...
9741         * config/accel/proc.c: ... to here.
9742         * config/nvptx/ptrlock.c: Move ...
9743         * config/accel/ptrlock.c: ... to here.
9744         * config/nvptx/ptrlock.h: Move ...
9745         * config/accel/ptrlock.h: ... to here.
9746         * config/nvptx/sem.c: Move ...
9747         * config/accel/sem.c: ... to here.
9748         * config/nvptx/sem.h: Move ...
9749         * config/accel/sem.h: ... to here.
9750         * config/nvptx/thread-stacksize.h: Move ...
9751         * config/accel/thread-stacksize.h: ... to here.
9753 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
9754             Tobias Burnus  <tobias@codesourcery.com>
9755             Frederik Harwath  <frederik@codesourcery.com>
9756             Thomas Schwinge  <thomas@codesourcery.com>
9758         libgomp/
9759         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
9760         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
9761         * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
9763 2019-11-11  Tobias Burnus  <tobias@codesourcery.com>
9764             Kwok Cheung Yeung  <kcy@codesourcery.com>
9766         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
9767         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
9769 2019-11-11  Thomas Schwinge  <thomas@codesourcery.com>
9771         * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
9773         * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
9774         run'.
9775         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
9776         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
9778 2019-11-06  Thomas Schwinge  <thomas@codesourcery.com>
9780         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
9781         Add expected warnings about missing reduction clauses.
9782         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
9783         Likewise.
9784         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
9785         Likewise.
9786         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
9787         Likewise.
9789 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
9791         * testsuite/libgomp.fortran/pr66199-1.f90: Remove
9792         'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
9793         * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
9794         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
9795         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
9796         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
9798 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
9800         PR fortran/92305
9801         * testsuite/libgomp.fortran/allocatable2.f90: Use
9802         unique numbers with 'stop'.
9803         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
9804         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
9805         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
9806         * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
9807         * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
9809 2019-11-01  Tobias Burnus  <tobias@codesourcery.com>
9811         * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
9812         test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
9813         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
9814         * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
9815         * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
9816         * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
9818 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
9820         * testsuite/libgomp.fortran/target9.f90: New.
9822 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
9824         * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
9825         * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
9826         * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
9827         * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
9828         * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
9829         * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
9830         * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
9831         * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
9832         * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
9833         * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
9834         * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
9835         * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
9836         * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
9837         * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
9838         * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
9839         * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
9840         * testsuite/libgomp.fortran/associate1.f90: Ditto.
9841         * testsuite/libgomp.fortran/associate2.f90: Ditto.
9842         * testsuite/libgomp.fortran/associate3.f90: Ditto.
9843         * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
9844         * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
9845         * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
9846         * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
9847         * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
9848         * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
9849         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
9850         * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
9851         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
9852         * testsuite/libgomp.fortran/character1.f90: Ditto.
9853         * testsuite/libgomp.fortran/character2.f90: Ditto.
9854         * testsuite/libgomp.fortran/collapse1.f90: Ditto.
9855         * testsuite/libgomp.fortran/collapse2.f90: Ditto.
9856         * testsuite/libgomp.fortran/collapse3.f90: Ditto.
9857         * testsuite/libgomp.fortran/collapse4.f90: Ditto.
9858         * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
9859         * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
9860         * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
9861         * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
9862         * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
9863         * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
9864         * testsuite/libgomp.fortran/depend-1.f90: Ditto.
9865         * testsuite/libgomp.fortran/depend-2.f90: Ditto.
9866         * testsuite/libgomp.fortran/depend-3.f90: Ditto.
9867         * testsuite/libgomp.fortran/do1.f90: Ditto.
9868         * testsuite/libgomp.fortran/do2.f90: Ditto.
9869         * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
9870         * testsuite/libgomp.fortran/doacross1.f90: Ditto.
9871         * testsuite/libgomp.fortran/doacross2.f90: Ditto.
9872         * testsuite/libgomp.fortran/doacross3.f90: Ditto.
9873         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
9874         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
9875         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
9876         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
9877         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
9878         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
9879         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
9880         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
9881         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
9882         * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
9883         * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
9884         * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
9885         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
9886         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
9887         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
9888         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
9889         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
9890         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
9891         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
9892         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
9893         * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
9894         * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
9895         * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
9896         * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
9897         * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
9898         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
9899         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
9900         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
9901         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
9902         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
9903         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
9904         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
9905         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
9906         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
9907         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
9908         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
9909         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
9910         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
9911         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
9912         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
9913         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
9914         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
9915         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
9916         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
9917         * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
9918         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
9919         * testsuite/libgomp.fortran/lib1.f90: Ditto.
9920         * testsuite/libgomp.fortran/lib4.f90: Ditto.
9921         * testsuite/libgomp.fortran/lock-1.f90: Ditto.
9922         * testsuite/libgomp.fortran/lock-2.f90: Ditto.
9923         * testsuite/libgomp.fortran/nested1.f90: Ditto.
9924         * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
9925         * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
9926         * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
9927         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
9928         * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
9929         * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
9930         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
9931         * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
9932         * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
9933         * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
9934         * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
9935         * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
9936         * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
9937         * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
9938         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
9939         * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
9940         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
9941         * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
9942         * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
9943         * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
9944         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
9945         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
9946         * testsuite/libgomp.fortran/pointer1.f90: Ditto.
9947         * testsuite/libgomp.fortran/pointer2.f90: Ditto.
9948         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
9949         * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
9950         * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
9951         * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
9952         * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
9953         * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
9954         * testsuite/libgomp.fortran/pr28390.f: Ditto.
9955         * testsuite/libgomp.fortran/pr29629.f90: Ditto.
9956         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
9957         * testsuite/libgomp.fortran/pr33880.f90: Ditto.
9958         * testsuite/libgomp.fortran/pr34020.f90: Ditto.
9959         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
9960         * testsuite/libgomp.fortran/pr42162.f90: Ditto.
9961         * testsuite/libgomp.fortran/pr46753.f90: Ditto.
9962         * testsuite/libgomp.fortran/pr48894.f90: Ditto.
9963         * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
9964         * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
9965         * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
9966         * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
9967         * testsuite/libgomp.fortran/pr65597.f90: Ditto.
9968         * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
9969         * testsuite/libgomp.fortran/pr71014.f90: Ditto.
9970         * testsuite/libgomp.fortran/pr81304.f90: Ditto.
9971         * testsuite/libgomp.fortran/pr81841.f90: Ditto.
9972         * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
9973         * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
9974         * testsuite/libgomp.fortran/procptr1.f90: Ditto.
9975         * testsuite/libgomp.fortran/recursion1.f90: Ditto.
9976         * testsuite/libgomp.fortran/reduction1.f90: Ditto.
9977         * testsuite/libgomp.fortran/reduction2.f90: Ditto.
9978         * testsuite/libgomp.fortran/reduction3.f90: Ditto.
9979         * testsuite/libgomp.fortran/reduction4.f90: Ditto.
9980         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
9981         * testsuite/libgomp.fortran/reduction6.f90: Ditto.
9982         * testsuite/libgomp.fortran/reference1.f90: Ditto.
9983         * testsuite/libgomp.fortran/reference2.f90: Ditto.
9984         * testsuite/libgomp.fortran/retval1.f90: Ditto.
9985         * testsuite/libgomp.fortran/retval2.f90: Ditto.
9986         * testsuite/libgomp.fortran/sharing1.f90: Ditto.
9987         * testsuite/libgomp.fortran/sharing2.f90: Ditto.
9988         * testsuite/libgomp.fortran/simd1.f90: Ditto.
9989         * testsuite/libgomp.fortran/simd2.f90: Ditto.
9990         * testsuite/libgomp.fortran/simd3.f90: Ditto.
9991         * testsuite/libgomp.fortran/simd4.f90: Ditto.
9992         * testsuite/libgomp.fortran/simd5.f90: Ditto.
9993         * testsuite/libgomp.fortran/simd6.f90: Ditto.
9994         * testsuite/libgomp.fortran/simd7.f90: Ditto.
9995         * testsuite/libgomp.fortran/stack.f90: Ditto.
9996         * testsuite/libgomp.fortran/strassen.f90: Ditto.
9997         * testsuite/libgomp.fortran/tabs1.f90: Ditto.
9998         * testsuite/libgomp.fortran/tabs2.f: Ditto.
9999         * testsuite/libgomp.fortran/target1.f90: Ditto.
10000         * testsuite/libgomp.fortran/target2.f90: Ditto.
10001         * testsuite/libgomp.fortran/target3.f90: Ditto.
10002         * testsuite/libgomp.fortran/target4.f90: Ditto.
10003         * testsuite/libgomp.fortran/target5.f90: Ditto.
10004         * testsuite/libgomp.fortran/target6.f90: Ditto.
10005         * testsuite/libgomp.fortran/target7.f90: Ditto.
10006         * testsuite/libgomp.fortran/target8.f90: Ditto.
10007         * testsuite/libgomp.fortran/task1.f90: Ditto.
10008         * testsuite/libgomp.fortran/task2.f90: Ditto.
10009         * testsuite/libgomp.fortran/task3.f90: Ditto.
10010         * testsuite/libgomp.fortran/task4.f90: Ditto.
10011         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
10012         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
10013         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
10014         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
10015         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
10016         * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
10017         * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
10018         * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
10019         * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
10020         * testsuite/libgomp.fortran/udr1.f90: Ditto.
10021         * testsuite/libgomp.fortran/udr10.f90: Ditto.
10022         * testsuite/libgomp.fortran/udr11.f90: Ditto.
10023         * testsuite/libgomp.fortran/udr12.f90: Ditto.
10024         * testsuite/libgomp.fortran/udr13.f90: Ditto.
10025         * testsuite/libgomp.fortran/udr14.f90: Ditto.
10026         * testsuite/libgomp.fortran/udr15.f90: Ditto.
10027         * testsuite/libgomp.fortran/udr2.f90: Ditto.
10028         * testsuite/libgomp.fortran/udr3.f90: Ditto.
10029         * testsuite/libgomp.fortran/udr4.f90: Ditto.
10030         * testsuite/libgomp.fortran/udr5.f90: Ditto.
10031         * testsuite/libgomp.fortran/udr6.f90: Ditto.
10032         * testsuite/libgomp.fortran/udr7.f90: Ditto.
10033         * testsuite/libgomp.fortran/udr8.f90: Ditto.
10034         * testsuite/libgomp.fortran/udr9.f90: Ditto.
10035         * testsuite/libgomp.fortran/vla1.f90: Ditto.
10036         * testsuite/libgomp.fortran/vla2.f90: Ditto.
10037         * testsuite/libgomp.fortran/vla3.f90: Ditto.
10038         * testsuite/libgomp.fortran/vla4.f90: Ditto.
10039         * testsuite/libgomp.fortran/vla5.f90: Ditto.
10040         * testsuite/libgomp.fortran/vla6.f90: Ditto.
10041         * testsuite/libgomp.fortran/vla7.f90: Ditto.
10042         * testsuite/libgomp.fortran/vla8.f90: Ditto.
10043         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
10044         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
10046 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
10048         * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
10049         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
10050         Ditto; add 'dg-do run' for torture testing.
10051         * testsuite/libgomp.fortran/lastprivate1.f90:  Add 'dg-do run'.
10052         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
10053         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
10054         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
10055         * testsuite/libgomp.fortran/pr28390.f: Ditto.
10056         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
10057         * testsuite/libgomp.fortran/pr90779.f90: Ditto.
10058         * testsuite/libgomp.fortran/task2.f90: Ditto.
10059         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
10060         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
10061         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
10062         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
10063         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
10064         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
10066 2019-10-28  Tobias Burnus  <tobias@codesourcery.com>
10068         * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
10069         * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
10070         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
10071         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
10072         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
10073         * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
10074         * testsuite/libgomp.oacc-fortran/common-block-1.f90:
10075         Use 'stop' not abort().
10076         * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
10077         * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
10078         * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
10079         * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
10080         * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
10081         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
10082         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
10083         * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
10084         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
10085         * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
10086         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
10087         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
10088         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
10089         * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
10090         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
10091         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
10092         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
10093         Ditto.
10094         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
10095         Ditto.
10096         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
10097         Ditto.
10098         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
10099         Ditto.
10100         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
10101         Ditto.
10102         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
10103         Ditto.
10104         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
10105         Ditto.
10106         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
10107         Ditto.
10108         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
10109         Ditto.
10110         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
10111         Ditto.
10112         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
10113         Ditto.
10114         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
10115         Ditto.
10116         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
10117         Ditto.
10118         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
10119         Ditto.
10120         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
10121         * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
10122         * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
10123         * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
10124         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
10125         Likewise and also add 'dg-do run'.
10126         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
10127         Ditto.
10129 2019-10-25  Cesar Philippidis <cesar@codesourcery.com>
10130             Tobias Burnus  <tobias@codesourcery.com>
10132         * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
10133         * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
10134         * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
10136 2019-10-14  Jakub Jelinek  <jakub@redhat.com>
10138         PR libgomp/92081
10139         * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
10140         than 0.
10142 2019-10-11  Tobias Burnus  <tobias@codesourcery.com>
10144         * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
10145         * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
10147 2019-10-09  Thomas Schwinge  <thomas@codesourcery.com>
10149         PR middle-end/92036
10150         * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
10151         file.
10153 2019-10-09  Tobias Burnus  <tobias@codesourcery.com>
10155         PR testsuite/91884
10156         * testsuite/libgomp.fortran/fortran.exp: Conditionally
10157         add -lquadmath.
10158         * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
10160 2019-10-09  Jakub Jelinek  <jakub@redhat.com>
10162         PR libgomp/92028
10163         * target.c (gomp_map_vars_internal): Readd the previous
10164         GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
10165         though do that just in the !not_found_cnt case.
10167 2019-10-08  Tobias Burnus  <tobias@codesourcery.com>
10169         * gfortran.dg/gomp/target-simd.f90: New.
10171 2019-10-02  Julian Brown  <julian@codesourcery.com>
10172             Cesar Philippidis  <cesar@codesourcery.com>
10174         * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
10175         * target.c (FIELD_TGT_EMPTY): Define.
10176         (gomp_map_val): Use OFFSET_* macros instead of magic constants.  Write
10177         as switch instead of list of ifs.
10178         (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
10180 2019-10-02  Andreas Tobler  <andreast@gcc.gnu.org>
10182         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
10183         include. Replace alloca () with __builtin_alloca ().
10184         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
10186 2019-10-01  Jakub Jelinek  <jakub@redhat.com>
10188         * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
10189         * libgomp.h: Include <stdint.h> instead of "gstdint.h".
10190         * oacc-parallel.c: Don't include "libgomp_g.h".
10191         * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
10192         * plugin/plugin-nvptx.c: Don't include "gstdint.h".
10193         * aclocal.m4: Regenerated.
10194         * config.h.in: Regenerated.
10195         * configure: Regenerated.
10196         * Makefile.in: Regenerated.
10198 2019-09-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
10200         * libgomp_g.h: Include stdint.h instead of gstdint.h.
10202 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
10204         * configure: Regenerate.
10206 2019-09-13  Tobias Burnus  <tobias@codesourcery.com>
10208         * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
10209         string is initialized.
10211 2019-09-06  Florian Weimer  <fweimer@redhat.com>
10213         * configure: Regenerate.
10215 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
10217         PR other/79543
10218         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
10219         scanning to conform to the GNU Coding Standards.
10220         * configure: Regenerate.
10222 2019-08-28  Jakub Jelinek  <jakub@redhat.com>
10224         PR libgomp/91530
10225         * testsuite/libgomp.c/scan-21.c: New test.
10226         * testsuite/libgomp.c/scan-22.c: New test.
10228 2019-08-27  Jakub Jelinek  <jakub@redhat.com>
10230         PR libgomp/91530
10231         * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
10232         targets.
10233         * testsuite/libgomp.c/scan-12.c: Likewise.
10234         * testsuite/libgomp.c/scan-13.c: Likewise.
10235         * testsuite/libgomp.c/scan-14.c: Likewise.
10236         * testsuite/libgomp.c/scan-15.c: Likewise.
10237         * testsuite/libgomp.c/scan-16.c: Likewise.
10238         * testsuite/libgomp.c/scan-17.c: Likewise.
10239         * testsuite/libgomp.c/scan-18.c: Likewise.
10240         * testsuite/libgomp.c/scan-19.c: Likewise.
10241         * testsuite/libgomp.c/scan-20.c: Likewise.
10242         * testsuite/libgomp.c++/scan-9.C: Likewise.
10243         * testsuite/libgomp.c++/scan-10.C: Likewise.
10244         * testsuite/libgomp.c++/scan-11.C: Likewise.
10245         * testsuite/libgomp.c++/scan-12.C: Likewise.
10246         * testsuite/libgomp.c++/scan-14.C: Likewise.
10247         * testsuite/libgomp.c++/scan-15.C: Likewise.
10248         * testsuite/libgomp.c++/scan-13.C: Likewise.  Use sse2_runtime
10249         instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
10250         * testsuite/libgomp.c++/scan-16.C: Likewise.
10252 2019-08-17  Thomas Koenig  <tkoenig@gcc.gnu.org>
10254         PR fortran/91473
10255         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
10256         -std=legacy so invalid code in the test case is accepted.
10258 2019-08-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
10260         PR fortran/91422
10261         * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
10262         dimension.
10264 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
10266         * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
10267         perform the lookup in the first loop only if !not_found_cnt, otherwise
10268         perform lookups for it in the second loop guarded with
10269         if (not_found_cnt || has_firstprivate).
10270         * testsuite/libgomp.c/target-37.c: New test.
10271         * testsuite/libgomp.c++/target-22.C: New test.
10273 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
10275         * testsuite/libgomp.c/target-18.c (struct S): New type.
10276         (foo): Use use_device_addr clause instead of use_device_ptr clause
10277         where required by OpenMP 5.0, add further tests for both use_device_ptr
10278         and use_device_addr clauses.
10279         * testsuite/libgomp.c++/target-9.C (struct S): New type.
10280         (foo): Use use_device_addr clause instead of use_device_ptr clause
10281         where required by OpenMP 5.0, add further tests for both use_device_ptr
10282         and use_device_addr clauses.  Add t and u arguments.
10283         (main): Adjust caller.
10285 2019-08-06  Jakub Jelinek  <jakub@redhat.com>
10287         * testsuite/libgomp.c++/loop-13.C: New test.
10288         * testsuite/libgomp.c++/loop-14.C: New test.
10289         * testsuite/libgomp.c++/loop-15.C: New test.
10291 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
10293         PR middle-end/91301
10294         * testsuite/libgomp.c++/for-27.C: New test.
10296 2019-07-23  Steven G. Kargl  <kargl@gcc.gnu.org>
10298         * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
10299         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
10301 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
10303         * testsuite/libgomp.c-c++-common/loop-1.c: New test.
10305 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
10307         * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
10308         * testsuite/libgomp.c++/scan-16.C: Likewise.
10310 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
10312         * testsuite/libgomp.c/scan-19.c: New test.
10313         * testsuite/libgomp.c/scan-20.c: New test.
10315         * testsuite/libgomp.c/scan-11.c: New test.
10316         * testsuite/libgomp.c/scan-12.c: New test.
10317         * testsuite/libgomp.c/scan-13.c: New test.
10318         * testsuite/libgomp.c/scan-14.c: New test.
10319         * testsuite/libgomp.c/scan-15.c: New test.
10320         * testsuite/libgomp.c/scan-16.c: New test.
10321         * testsuite/libgomp.c/scan-17.c: New test.
10322         * testsuite/libgomp.c/scan-18.c: New test.
10323         * testsuite/libgomp.c++/scan-9.C: New test.
10324         * testsuite/libgomp.c++/scan-10.C: New test.
10325         * testsuite/libgomp.c++/scan-11.C: New test.
10326         * testsuite/libgomp.c++/scan-12.C: New test.
10327         * testsuite/libgomp.c++/scan-13.C: New test.
10328         * testsuite/libgomp.c++/scan-14.C: New test.
10329         * testsuite/libgomp.c++/scan-15.C: New test.
10330         * testsuite/libgomp.c++/scan-16.C: New test.
10332 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
10334         * testsuite/libgomp.c/scan-9.c: New test.
10335         * testsuite/libgomp.c/scan-10.c: New test.
10337 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
10339         * testsuite/libgomp.c++/scan-1.C: New test.
10340         * testsuite/libgomp.c++/scan-2.C: New test.
10341         * testsuite/libgomp.c++/scan-3.C: New test.
10342         * testsuite/libgomp.c++/scan-4.C: New test.
10343         * testsuite/libgomp.c++/scan-5.C: New test.
10344         * testsuite/libgomp.c++/scan-6.C: New test.
10345         * testsuite/libgomp.c++/scan-7.C: New test.
10346         * testsuite/libgomp.c++/scan-8.C: New test.
10347         * testsuite/libgomp.c/scan-1.c: New test.
10348         * testsuite/libgomp.c/scan-2.c: New test.
10349         * testsuite/libgomp.c/scan-3.c: New test.
10350         * testsuite/libgomp.c/scan-4.c: New test.
10351         * testsuite/libgomp.c/scan-5.c: New test.
10352         * testsuite/libgomp.c/scan-6.c: New test.
10353         * testsuite/libgomp.c/scan-7.c: New test.
10354         * testsuite/libgomp.c/scan-8.c: New test.
10356 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
10358         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
10359         * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
10360         Likewise.
10362         * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
10363         check.
10365 2019-06-18  Cesar Philippidis  <cesar@codesourcery.com>
10367         * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
10368         file.
10370 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
10372         PR fortran/90743
10373         * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
10374         case.
10375         * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
10376         * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
10377         * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
10378         * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
10380         PR testsuite/90861
10381         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
10383         PR middle-end/90862
10384         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
10386 2019-06-16  Tom de Vries  <tdevries@suse.de>
10388         PR tree-optimization/89376
10389         * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
10391 2019-06-15  Tom de Vries  <tdevries@suse.de>
10393         PR tree-optimization/89713
10394         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
10395         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
10397 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
10399         PR middle-end/90779
10400         * testsuite/libgomp.c/pr90779.c: New test.
10401         * testsuite/libgomp.fortran/pr90779.f90: New test.
10403 2019-06-15  Tom de Vries  <tdevries@suse.de>
10405         PR tree-optimization/90009
10406         * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
10408 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
10410         PR tree-optimization/89713
10411         * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
10413 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
10415         PR target/90811
10416         * testsuite/libgomp.c/pr90811.c: New test.
10418 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
10420         * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
10421         * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
10423 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
10425         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
10426         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
10427         * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
10428         * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
10430 2019-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10432         * configure.ac: Call AX_COUNT_CPUS.
10433         Substitute CPU_COUNT.
10434         * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
10435         count fallback.
10436         * aclocal.m4: Regenerate.
10437         * configure: Regenerate.
10438         * Makefile.in, testsuite/Makefile.in: Regenerate.
10440 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
10442         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
10443         to ...
10444         * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
10445         * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
10446         * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
10448 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
10450         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
10452         * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
10454         PR libgomp/90641
10455         * work.c (gomp_init_work_share): Instead of aligning final ordered
10456         value to multiples of long long alignment, align to that the
10457         first part (ordered team ids) and if inline_ordered_team_ids
10458         is not on a long long alignment boundary within the structure,
10459         use __alignof__ (long long) - 1 pad size always.
10460         * loop.c (GOMP_loop_start): Fix *mem computation if
10461         inline_ordered_team_ids is not aligned on long long alignment boundary
10462         within the structure.
10463         * loop-ull.c (GOMP_loop_ull_start): Likewise.
10464         * sections.c (GOMP_sections2_start): Likewise.
10466 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
10468         * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
10469         * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
10471         PR libgomp/90585
10472         * plugin/plugin-hsa.c: Include gstdint.h.  Include inttypes.h only if
10473         HAVE_INTTYPES_H is defined.
10474         (print_uint64_t): New typedef.
10475         (PRIu64): Define if HAVE_INTTYPES_H is not defined.
10476         (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
10477         "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
10478         (release_kernel_dispatch): Likewise.  Cast shadow->debug to uintptr_t
10479         before casting to void *.
10480         * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
10481         * oacc-mem.c: Don't include config.h nor stdint.h.
10482         * target.c: Don't include config.h.
10483         * oacc-cuda.c: Likewise.
10484         * oacc-host.c: Don't include stdint.h.
10486 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
10488         PR libgomp/90527
10489         * alloc.c (_GNU_SOURCE): Define.
10491 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
10493         * acc_prof.h: New file.
10494         * oacc-profiling.c: Likewise.
10495         * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
10496         Add these, respectively.
10497         * Makefile.in: Regenerate.
10498         * env.c (initialize_env): Call goacc_profiling_initialize.
10499         * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
10500         (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
10501         * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
10502         (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
10503         * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
10504         acc_prof_register, acc_prof_unregister, and acc_register_library.
10505         (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
10506         GOMP_PLUGIN_goacc_thread.
10507         * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
10508         prof_callbacks_enabled members.
10509         (goacc_prof_enabled, goacc_profiling_initialize)
10510         (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
10511         (goacc_profiling_dispatch): Declare.
10512         (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
10513         (GOACC_PROFILING_SETUP_P): Define.
10514         * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
10515         (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
10516         OpenACC Profiling Interface.
10517         * oacc-cuda.c (acc_get_current_cuda_device)
10518         (acc_get_current_cuda_context, acc_get_cuda_stream)
10519         (acc_set_cuda_stream): Likewise.
10520         * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
10521         (acc_init, acc_set_device_type, acc_get_device_type)
10522         (acc_get_device_num, goacc_lazy_initialize): Likewise.
10523         * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
10524         (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
10525         (acc_unmap_data, present_create_copy, delete_copyout)
10526         (update_dev_host): Likewise.
10527         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
10528         (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
10529         Likewise.
10530         * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
10531         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
10532         Likewise.
10533         * libgomp.texi: Update.
10534         * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
10535         file.
10536         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
10537         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
10538         Likewise.
10539         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
10540         Likewise.
10541         * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
10542         Likewise.
10543         * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
10544         Likewise.
10546 2019-05-13  Chung-Lin Tang <cltang@codesourcery.com>
10548         * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
10549         (struct goacc_asyncqueue_list): Likewise.
10550         (goacc_aq): Likewise.
10551         (goacc_aq_list): Likewise.
10552         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
10553         (GOMP_OFFLOAD_openacc_async_test): Remove.
10554         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
10555         (GOMP_OFFLOAD_openacc_async_wait): Remove.
10556         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
10557         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
10558         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
10559         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
10560         (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
10561         (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
10562         (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
10563         (GOMP_OFFLOAD_openacc_async_exec): Declare.
10564         (GOMP_OFFLOAD_openacc_async_construct): Declare.
10565         (GOMP_OFFLOAD_openacc_async_destruct): Declare.
10566         (GOMP_OFFLOAD_openacc_async_test): Declare.
10567         (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
10568         (GOMP_OFFLOAD_openacc_async_serialize): Declare.
10569         (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
10570         (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
10571         (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
10573         * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
10574         (gomp_acc_insert_pointer): Adjust declaration.
10575         (gomp_copy_host2dev): New declaration.
10576         (gomp_copy_dev2host): Likewise.
10577         (gomp_map_vars_async): Likewise.
10578         (gomp_unmap_tgt): Likewise.
10579         (gomp_unmap_vars_async): Likewise.
10580         (gomp_fini_device): Likewise.
10582         * oacc-async.c (get_goacc_thread): New function.
10583         (get_goacc_thread_device): New function.
10584         (lookup_goacc_asyncqueue): New function.
10585         (get_goacc_asyncqueue): New function.
10586         (acc_async_test): Adjust code to use new async design.
10587         (acc_async_test_all): Likewise.
10588         (acc_wait): Likewise.
10589         (acc_wait_async): Likewise.
10590         (acc_wait_all): Likewise.
10591         (acc_wait_all_async): Likewise.
10592         (goacc_async_free): New function.
10593         (goacc_init_asyncqueues): Likewise.
10594         (goacc_fini_asyncqueues): Likewise.
10595         * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
10596         design.
10597         (acc_set_cuda_stream): Likewise.
10598         * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
10599         (host_openacc_register_async_cleanup): Remove.
10600         (host_openacc_async_exec): New function.
10601         (host_openacc_async_test): Adjust parameters.
10602         (host_openacc_async_test_all): Remove.
10603         (host_openacc_async_wait): Remove.
10604         (host_openacc_async_wait_async): Remove.
10605         (host_openacc_async_wait_all): Remove.
10606         (host_openacc_async_wait_all_async): Remove.
10607         (host_openacc_async_set_async): Remove.
10608         (host_openacc_async_synchronize): New function.
10609         (host_openacc_async_serialize): New function.
10610         (host_openacc_async_host2dev): New function.
10611         (host_openacc_async_dev2host): New function.
10612         (host_openacc_async_queue_callback): New function.
10613         (host_openacc_async_construct): New function.
10614         (host_openacc_async_destruct): New function.
10615         (struct gomp_device_descr host_dispatch): Remove initialization of old
10616         interface, add initialization of new async sub-struct.
10617         * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
10618         (goacc_attach_host_thread_to_device): Remove old async code usage.
10619         * oacc-int.h (goacc_init_asyncqueues): New declaration.
10620         (goacc_fini_asyncqueues): Likewise.
10621         (goacc_async_copyout_unmap_vars): Likewise.
10622         (goacc_async_free): Likewise.
10623         (get_goacc_asyncqueue): Likewise.
10624         (lookup_goacc_asyncqueue): Likewise.
10625         * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
10626         design.
10627         (present_create_copy): Adjust code to use new async design.
10628         (delete_copyout): Likewise.
10629         (update_dev_host): Likewise.
10630         (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
10631         async design.
10632         (gomp_acc_remove_pointer): Adjust code to use new async design.
10633         * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
10634         design.
10635         (GOACC_enter_exit_data): Likewise.
10636         (goacc_wait): Likewise.
10637         (GOACC_update): Likewise.
10638         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
10639         when called, warn as obsolete in comment.
10640         * target.c (goacc_device_copy_async): New function.
10641         (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
10642         add goacc_device_copy_async case.
10643         (gomp_copy_dev2host): Likewise.
10644         (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
10645         (gomp_map_pointer): Likewise.
10646         (gomp_map_fields_existing): Likewise.
10647         (gomp_map_vars_internal): New always_inline function, renamed from
10648         gomp_map_vars.
10649         (gomp_map_vars): Implement by calling gomp_map_vars_internal.
10650         (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
10651         passing goacc_asyncqueue argument.
10652         (gomp_unmap_tgt): Remove static, add attribute_hidden.
10653         (gomp_unref_tgt): New function.
10654         (gomp_unmap_vars_internal): New always_inline function, renamed from
10655         gomp_unmap_vars.
10656         (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
10657         (gomp_unmap_vars_async): Implement by calling
10658         gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
10659         (gomp_fini_device): New function.
10660         (gomp_exit_data): Adjust gomp_copy_dev2host call.
10661         (gomp_load_plugin_for_device): Remove old interface, adjust to load
10662         new async interface.
10663         (gomp_target_fini): Adjust code to call gomp_fini_device.
10665         * plugin/plugin-nvptx.c (struct cuda_map): Remove.
10666         (struct ptx_stream): Remove.
10667         (struct nvptx_thread): Remove current_stream field.
10668         (cuda_map_create): Remove.
10669         (cuda_map_destroy): Remove.
10670         (map_init): Remove.
10671         (map_fini): Remove.
10672         (map_pop): Remove.
10673         (map_push): Remove.
10674         (struct goacc_asyncqueue): Define.
10675         (struct nvptx_callback): Define.
10676         (struct ptx_free_block): Define.
10677         (struct ptx_device): Remove null_stream, active_streams, async_streams,
10678         stream_lock, and next fields.
10679         (enum ptx_event_type): Remove.
10680         (struct ptx_event): Remove.
10681         (ptx_event_lock): Remove.
10682         (ptx_events): Remove.
10683         (init_streams_for_device): Remove.
10684         (fini_streams_for_device): Remove.
10685         (select_stream_for_async): Remove.
10686         (nvptx_init): Remove ptx_events and ptx_event_lock references.
10687         (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
10688         case.
10689         (nvptx_open_device): Add free_blocks initialization, remove
10690         init_streams_for_device call.
10691         (nvptx_close_device): Remove fini_streams_for_device call, add
10692         free_blocks destruct code.
10693         (event_gc): Remove.
10694         (event_add): Remove.
10695         (nvptx_exec): Adjust parameters and code.
10696         (nvptx_free): Likewise.
10697         (nvptx_host2dev): Remove.
10698         (nvptx_dev2host): Remove.
10699         (nvptx_set_async): Remove.
10700         (nvptx_async_test): Remove.
10701         (nvptx_async_test_all): Remove.
10702         (nvptx_wait): Remove.
10703         (nvptx_wait_async): Remove.
10704         (nvptx_wait_all): Remove.
10705         (nvptx_wait_all_async): Remove.
10706         (nvptx_get_cuda_stream): Remove.
10707         (nvptx_set_cuda_stream): Remove.
10708         (GOMP_OFFLOAD_alloc): Adjust code.
10709         (GOMP_OFFLOAD_free): Likewise.
10710         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
10711         (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
10712         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
10713         (GOMP_OFFLOAD_openacc_async_wait): Remove.
10714         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
10715         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
10716         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
10717         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
10718         (cuda_free_argmem): New function.
10719         (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
10720         (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
10721         (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
10722         (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
10723         (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
10724         (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
10725         (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
10726         (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
10727         (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
10728         (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
10729         (cuda_callback_wrapper): New function.
10730         (cuda_memcpy_sanity_check): New function.
10731         (GOMP_OFFLOAD_host2dev): Remove and re-implement.
10732         (GOMP_OFFLOAD_dev2host): Remove and re-implement.
10733         (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
10734         (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
10736 2019-05-07  Thomas Schwinge  <thomas@codesourcery.com>
10738         PR target/87835
10739         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
10741 2019-05-06  Thomas Schwinge  <thomas@codesourcery.com>
10743         * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
10745 2019-03-27  Kevin Buettner  <kevinb@redhat.com>
10747         * team.c (gomp_team_start): Initialize pool->threads[0].
10749 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
10751         * testsuite/libgomp.oacc-c++/c++.exp: Specify
10752         "-foffload=$offload_target".
10753         * testsuite/libgomp.oacc-c/c.exp: Likewise.
10754         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10755         * testsuite/lib/libgomp.exp
10756         (check_effective_target_openacc_nvidia_accel_configured): Remove,
10757         as (conceptually) merged into
10758         check_effective_target_openacc_nvidia_accel_selected.  Adjust all
10759         users.
10761         * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
10762         * testsuite/libgomp-test-support.exp.in: Adjust.
10763         * testsuite/lib/libgomp.exp: Likewise.  Don't populate
10764         openacc_device_types_s.
10765         (offload_target_to_openacc_device_type): New proc.
10766         * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
10767         * testsuite/libgomp.oacc-c/c.exp: Likewise.
10768         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10769         * Makefile.in: Regenerate.
10770         * configure: Likewise.
10771         * testsuite/Makefile.in: Likewise.
10773         * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
10774         instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
10775         instead of OFFLOAD_TARGETS.
10776         * target.c (gomp_target_init): Adjust.
10777         * testsuite/libgomp-test-support.exp.in: Likewise.
10778         * testsuite/lib/libgomp.exp: Likewise.  Populate
10779         openacc_device_types_s instead of offload_targets_s_openacc.
10780         (check_effective_target_openacc_nvidia_accel_selected)
10781         (check_effective_target_openacc_host_selected): Adjust.
10782         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
10783         * testsuite/libgomp.oacc-c/c.exp: Likewise.
10784         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10785         * Makefile.in: Regenerate.
10786         * config.h.in: Likewise.
10787         * configure: Likewise.
10788         * testsuite/Makefile.in: Likewise.
10790         * testsuite/lib/libgomp.exp: Error out for unknown offload target.
10791         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.  Report if
10792         "offloading: supported, but hardware not accessible".
10793         * testsuite/libgomp.oacc-c/c.exp: Likewise.
10794         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10796 2019-02-19  Chung-Lin Tang <cltang@codesourcery.com>
10798         PR c/87924
10799         * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
10800         goacc_wait().
10801         (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
10802         and related adjustment.
10804 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
10806         PR c++/88988
10807         * testsuite/libgomp.c++/pr88988.C: New test.
10809 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
10811         PR middle-end/89002
10812         * testsuite/libgomp.c/pr89002.c: New test.
10814 2019-01-28  Richard Biener  <rguenther@suse.de>
10816         PR testsuite/89064
10817         PR tree-optimization/86865
10818         * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
10820 2019-01-24  Tom de Vries  <tdevries@suse.de>
10822         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
10823         once instantiated_devices drops to 0.
10825 2019-01-23  Tom de Vries  <tdevries@suse.de>
10827         PR target/PR88946
10828         * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
10829         cuMemFree.
10830         (nvptx_exec): Don't call map_push if mapnum == 0.
10831         * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
10833 2019-01-23  Tom de Vries  <tdevries@suse.de>
10835         PR target/88941
10836         PR target/88939
10837         * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
10838         (map_fini): Remove "assert (!s->map->active)".
10839         * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
10841 2019-01-23  Tom de Vries  <tdevries@suse.de>
10843         PR target/87835
10844         * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
10845         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
10847 2019-01-15  Tom de Vries  <tdevries@suse.de>
10849         PR target/80547
10850         * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
10851         New test.
10853 2019-01-12  Tom de Vries  <tdevries@suse.de>
10855         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
10856         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
10857         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
10858         * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
10860 2019-01-12  Tom de Vries  <tdevries@suse.de>
10862         * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
10864 2019-01-12  Tom de Vries  <tdevries@suse.de>
10866         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
10867         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
10868         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
10870 2019-01-12  Tom de Vries  <tdevries@suse.de>
10872         PR target/85486
10873         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
10874         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
10876 2019-01-12  Tom de Vries  <tdevries@suse.de>
10878         PR target/85381
10879         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
10880         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
10882 2019-01-12  Tom de Vries  <tdevries@suse.de>
10884         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
10885         * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
10886         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
10888 2019-01-12  Tom de Vries  <tdevries@suse.de>
10890         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
10891         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
10892         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
10894 2019-01-12  Tom de Vries  <tdevries@suse.de>
10896         * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
10897         resources diagnostic.
10899 2019-01-12  Tom de Vries  <tdevries@suse.de>
10901         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
10902         vector length to be 128.
10903         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
10904         length 2097152 to be reduced to 1024 instead of 32.
10906 2019-01-11  Thomas Schwinge  <thomas@codesourcery.com>
10907             James Norris  <jnorris@codesourcery.com>
10909         * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
10910         Library Routines", and "Environment Variables".
10912 2019-01-11  Tom de Vries  <tdevries@suse.de>
10914         * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
10915         num_workers 16.
10917 2019-01-11  Tom de Vries  <tdevries@suse.de>
10919         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
10920         -foffload=-w.
10921         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
10922         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
10923         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
10924         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
10926 2019-01-11  Tom de Vries  <tdevries@suse.de>
10928         * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
10929         test.
10931 2019-01-10  Nathan Sidwell  <nathan@acm.org>
10932             Julian Brown  <julian@codesourcery.com>
10934         PR lto/71959
10935         * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
10936         * testsuite/libgomp.oacc-c++/pr71959.C: New.
10938 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10940         * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
10941         and paste code.
10943 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10945         * config/rtems/affinity-fmt.c: New file.  Include affinity-fmt.c,
10946         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
10947         write.
10949 2019-01-09  Tom de Vries  <tdevries@suse.de>
10951         PR target/88756
10952         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
10953         #define instead of "const int".
10954         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
10955         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
10956         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
10957         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
10959 2019-01-09  Tom de Vries  <tdevries@suse.de>
10961         * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
10962         one worker.
10964 2019-01-07  Tom de Vries  <tdevries@suse.de>
10966         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
10967         GOMP_OPENACC_DIM argument.
10969 2019-01-03  Tom de Vries  <tdevries@suse.de>
10971         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
10972         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
10974 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
10976         Update copyright years.
10978 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
10980         * libgomp.texi: Bump @copying's copyright year.
10982 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
10984         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
10985         (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
10986         (GOACC_declare): Redefine the "device" argument to "flags".
10988 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
10989             Cesar Philippidis  <cesar@codesourcery.com>
10991         * target.c (struct gomp_coalesce_chunk): New structure.
10992         (struct gomp_coalesce_buf): Update the chunks member to use that
10993         type.  Adjust all users.
10995 2018-12-19  Tom de Vries  <tdevries@suse.de>
10997         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
10998         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
10999         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
11001 2018-12-19  Tom de Vries  <tdevries@suse.de>
11003         * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
11004         * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
11005         gcc/testsuite/gcc.dg/goacc.
11006         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
11008 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
11009             Chung-Lin Tang  <cltang@codesourcery.com>
11011         * oacc-mem.c (acc_present_or_create): Remove definition and change
11012         to alias of acc_create.
11013         (acc_present_or_copyin): Remove definition and change to alias of
11014         acc_copyin.
11015         * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
11016         of acc_present_or_create.
11017         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
11018         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11019         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
11020         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
11021         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
11022         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
11023         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
11024         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11025         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
11026         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11027         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
11028         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
11029         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
11030         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
11031         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
11032         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11034 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
11036         PR libgomp/88495
11037         * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
11038         "identical parameters".
11039         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
11040         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
11042         PR libgomp/88484
11043         * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
11044         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
11046         PR libgomp/88407
11047         * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
11048         (nvptx_wait_async): Unseen async-argument is a no-op.
11049         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
11050         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
11051         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
11052         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
11053         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
11054         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
11055         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this.  Update.
11056         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
11057         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this.  Update
11059         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
11060         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
11062 2018-12-14  Chung-Lin Tang  <cltang@codesourcery.com>
11064         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
11065         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
11066         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
11068 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
11070         PR libgomp/88370
11071         * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
11072         (acc_set_cuda_stream): Clarify.
11073         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
11074         "async_valid_p".
11075         * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
11076         acc_async_sync".
11077         * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
11078         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
11079         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
11080         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
11082 2018-12-14  Tom de Vries  <tdevries@suse.de>
11084         * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
11085         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
11086         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
11087         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
11088         * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
11090 2018-12-13  Tom de Vries  <tdevries@suse.de>
11092         * affinity-fmt.c (gomp_print_string): New function, factored out of ...
11093         (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
11094         * fortran.c (omp_display_affinity_): ... here.
11095         * libgomp.h (gomp_print_string): Declare.
11096         * config/nvptx/affinity-fmt.c: New file.  Include affinity-fmt.c,
11097         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
11098         write.
11100 2018-12-13  Jakub Jelinek  <jakub@redhat.com>
11102         PR libgomp/88460
11103         * testsuite/libgomp.c++/for-24.C (results): Include it in
11104         omp declare target region.
11105         (main): Use map (always, tofrom: results) instead of
11106         map (tofrom: results).
11108 2018-12-12  Jakub Jelinek  <jakub@redhat.com>
11110         PR fortran/88463
11111         * testsuite/libgomp.fortran/pr88463-1.f90: New test.
11112         * testsuite/libgomp.fortran/pr88463-2.f90: New test.
11114         * testsuite/libgomp.c-c++-common/for-16.c: New test.
11116 2018-12-12  Andreas Schwab  <schwab@suse.de>
11118         * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
11119         clobbered.
11121 2018-12-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
11123         PR fortran/88411
11124         * testsuite/libgomp.fortran/async_io_8.f90: New test.
11126 2018-12-09  Thomas Schwinge  <thomas@codesourcery.com>
11127             Jakub Jelinek  <jakub@redhat.com>
11129         * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
11130         devicep->host2dev_func.
11132 2018-12-08  Jakub Jelinek  <jakub@redhat.com>
11134         PR libgomp/87995
11135         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
11136         tls_runtime effective target.
11137         (t): New threadprivate variable.
11138         (main): Set t in threads which execute iterations of the worksharing
11139         loop.  Propagate that to the task after the loop and don't abort
11140         if the current taskgroup hasn't been cancelled.
11142 2018-12-02  Jakub Jelinek  <jakub@redhat.com>
11144         * testsuite/libgomp.c/task-reduction-3.c: New test.
11146         * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
11148 2018-11-30  Cesar Philippidis  <cesar@codesourcery.com>
11150         PR libgomp/88288
11151         * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
11152         * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
11154 2018-11-30  Thomas Schwinge  <thomas@codesourcery.com>
11156         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
11158 2018-10-19  Richard Biener  <rguenther@suse.de>
11160         PR tree-optimization/88182
11161         * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
11163 2018-11-26  Jakub Jelinek  <jakub@redhat.com>
11165         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
11166         (RUNTEST): Don't define.
11167         (RUNTESTDEFAULTFLAGS): Add.
11168         (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
11169         (distclean-am): Depend on distclean-DEJAGNU.
11170         (check-am): If -j% option is present in MFLAGS and if
11171         `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
11172         (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
11173         * testsuite/Makefile.in: Regenerated.
11175 2018-11-26  Richard Biener  <rguenther@suse.de>
11177         PR tree-optimization/88182
11178         * testsuite/libgomp.c++/pr88182.C: New testcase.
11180 2018-11-20  Jakub Jelinek  <jakub@redhat.com>
11182         PR bootstrap/88106
11183         * config/mingw32/affinity-fmt.c: New file.
11185 2018-11-09  Jakub Jelinek  <jakub@redhat.com>
11187         * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
11188         (gomp_display_affinity): Use __builtin_choose_expr to handle
11189         properly handle argument having integral, or pointer or some other
11190         type.  If inttypes.h is available and PRIx64 is defined, use PRIx64
11191         with uint64_t type instead of %llx and unsigned long long.
11193         * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
11194         * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
11196 2018-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11198         * affinity.c: Include <string.h>, <stdio.h>.
11199         (gomp_display_affinity_place): Remove cpusetp.
11200         * teams.c: Include <limits.h>.
11202 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
11204         * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
11205         in_reduction clause for s[0].
11207         * affinity.c (gomp_display_affinity_place): New function.
11208         * affinity-fmt.c: New file.
11209         * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
11210         * config/linux/affinity.c (gomp_display_affinity_place): New function.
11211         * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
11212         Move these functions to ...
11213         * config/nvptx/teams.c: ... here.  New file.
11214         * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
11215         New functions.
11216         * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
11217         functions.
11218         * configure.ac: Check for aligned_alloc, posix_memalign, memalign
11219         and _aligned_malloc.
11220         (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
11221         * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
11222         * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
11223         gomp_affinity_format_len): New variables.
11224         (parse_schedule): Parse monotonic and nonmonotonic modifiers in
11225         OMP_SCHEDULE variable.  Set GFS_MONOTONIC for monotonic schedules.
11226         (handle_omp_display_env): Display monotonic/nonmonotonic schedule
11227         modifiers.  Display (non-default) chunk sizes.  Print
11228         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
11229         (initialize_env): Don't call pthread_attr_setdetachstate.  Handle
11230         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
11231         * fortran.c: Include stdio.h and string.h.
11232         (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
11233         (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
11234         (omp_set_affinity_format_, omp_get_affinity_format_,
11235         omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
11236         omp_pause_resource_all_): New functions.
11237         * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
11238         switch.
11239         * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
11240         functions to ...
11241         * teams.c: ... here.  New file.
11242         * libgomp_g.h: Include gstdint.h.
11243         (GOMP_loop_nonmonotonic_runtime_start,
11244         GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
11245         GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
11246         GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
11247         GOMP_parallel_loop_nonmonotonic_runtime,
11248         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
11249         GOMP_loop_ull_nonmonotonic_runtime_start,
11250         GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
11251         GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
11252         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
11253         GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
11254         GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
11255         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
11256         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
11257         GOMP_teams_reg): Declare.
11258         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
11259         gomp_aligned_alloc uses fallback implementation.
11260         (gomp_aligned_alloc, gomp_aligned_free): Declare.
11261         (enum gomp_schedule_type): Add GFS_MONOTONIC.
11262         (struct gomp_doacross_work_share): Add extra field.
11263         (struct gomp_work_share): Add task_reductions field.
11264         (struct gomp_taskgroup): Add workshare and reductions fields.
11265         (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
11266         (gomp_thread_handle): New typedef.
11267         (gomp_display_affinity_place, gomp_set_affinity_format,
11268         gomp_display_string, gomp_display_affinity,
11269         gomp_display_affinity_thread): Declare.
11270         (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
11271         (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
11272         gomp_workshare_task_reduction_register): Declare.
11273         (gomp_team_start): Add taskgroup argument.
11274         (gomp_pause_host): Declare.
11275         (gomp_init_work_share, gomp_work_share_start): Change bool argument
11276         to size_t.
11277         (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
11278         * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
11279         GOMP_loop_ordered_start, GOMP_loop_doacross_start,
11280         GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
11281         GOMP_loop_ull_doacross_start,
11282         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
11283         GOMP_loop_maybe_nonmonotonic_runtime_next,
11284         GOMP_loop_maybe_nonmonotonic_runtime_start,
11285         GOMP_loop_nonmonotonic_runtime_next,
11286         GOMP_loop_nonmonotonic_runtime_start,
11287         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
11288         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
11289         GOMP_loop_ull_nonmonotonic_runtime_next,
11290         GOMP_loop_ull_nonmonotonic_runtime_start,
11291         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
11292         GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
11293         GOMP_taskgroup_reduction_register,
11294         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
11295         GOMP_teams_reg and GOMP_taskwait_depend.
11296         (OMP_5.0): Export omp_pause_resource{,_all}{,_},
11297         omp_{capture,display}_affinity{,_}, and
11298         omp_[gs]et_affinity_format{,_}.
11299         * loop.c: Include string.h.
11300         (GOMP_loop_runtime_next): Add ialias.
11301         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
11302         (gomp_loop_static_start, gomp_loop_dynamic_start,
11303         gomp_loop_guided_start, gomp_loop_ordered_static_start,
11304         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
11305         gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
11306         gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
11307         or gomp_doacross_init callers.
11308         (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
11309         GOMP_loop_doacross_start): New functions.
11310         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
11311         GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
11312         Mask off GFS_MONOTONIC bit.
11313         (GOMP_loop_maybe_nonmonotonic_runtime_next,
11314         GOMP_loop_maybe_nonmonotonic_runtime_start,
11315         GOMP_loop_nonmonotonic_runtime_next,
11316         GOMP_loop_nonmonotonic_runtime_start,
11317         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
11318         GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
11319         functions.
11320         (gomp_parallel_loop_start): Pass NULL as taskgroup to
11321         gomp_team_start.
11322         * loop_ull.c: Include string.h.
11323         (GOMP_loop_ull_runtime_next): Add ialias.
11324         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
11325         (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
11326         gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
11327         gomp_loop_ull_ordered_dynamic_start,
11328         gomp_loop_ull_ordered_guided_start,
11329         gomp_loop_ull_doacross_static_start,
11330         gomp_loop_ull_doacross_dynamic_start,
11331         gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
11332         and gomp_doacross_ull_init callers.
11333         (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
11334         GOMP_loop_ull_doacross_start): New functions.
11335         (GOMP_loop_ull_runtime_start,
11336         GOMP_loop_ull_ordered_runtime_start,
11337         GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
11338         (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
11339         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
11340         GOMP_loop_ull_nonmonotonic_runtime_next,
11341         GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
11342         * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
11343         * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
11344         (omp_pause_resource_t, omp_depend_t): New typedefs.
11345         (enum omp_lock_hint_t): Renamed to ...
11346         (enum omp_sync_hint_t): ... this.  Define omp_sync_hint_*
11347         enumerators using numbers and omp_lock_hint_* as their aliases.
11348         (omp_lock_hint_t): New typedef.  Rename to ...
11349         (omp_sync_hint_t): ... this.
11350         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
11351         omp_sync_hint_t instead of omp_lock_hint_t.
11352         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
11353         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
11354         Declare.
11355         (omp_target_is_present, omp_target_disassociate_ptr):
11356         Change first argument from void * to const void *.
11357         (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
11358         from void * to const void *.
11359         (omp_target_associate_ptr): Change first and second arguments from
11360         void * to const void *.
11361         * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
11362         omp_pause_hard): New parameters.
11363         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
11364         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
11365         New interfaces.
11366         * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
11367         omp_pause_hard): New parameters.
11368         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
11369         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
11370         New externals.
11371         * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
11372         EXTRA argument.  If not needed to prepare array, if extra is 0,
11373         clear ws->doacross, otherwise allocate just doacross structure and
11374         extra payload.  If array is needed, allocate also extra payload.
11375         (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
11376         GOMP_doacross_ull_wait): Handle doacross->array == NULL like
11377         doacross == NULL.
11378         * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
11379         gomp_team_start.
11380         (GOMP_parallel): Likewise.  Formatting fix.
11381         (GOMP_parallel_reductions): New function.
11382         (GOMP_cancellation_point): If taskgroup has workshare
11383         flag set, check cancelled of prev taskgroup if any.
11384         (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
11385         on prev taskgroup if any.
11386         * sections.c: Include string.h.
11387         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
11388         (GOMP_sections_start): Adjust gomp_work_share_start caller.
11389         (GOMP_sections2_start): New function.
11390         (GOMP_parallel_sections_start, GOMP_parallel_sections):
11391         Pass NULL as taskgroup to gomp_team_start.
11392         * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
11393         gomp_work_share_start callers.
11394         * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
11395         If taskgroup has workshare flag set, check cancelled on prev
11396         taskgroup if any.  Guard all cancellation tests with
11397         gomp_cancel_var test.
11398         (omp_target_is_present, omp_target_disassociate_ptr):
11399         Change ptr argument from void * to const void *.
11400         (omp_target_memcpy): Change src argument from void * to const void *.
11401         (omp_target_memcpy_rect): Likewise.
11402         (omp_target_memcpy_rect_worker): Likewise.  Use const char * casts
11403         instead of char * where needed.
11404         (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
11405         from void * to const void *.
11406         (omp_pause_resource, omp_pause_resource_all): New functions.
11407         * task.c (gomp_task_handle_depend): Handle new depend array format
11408         in addition to the old.  Handle mutexinoutset kinds the same as
11409         inout for now, handle unspecified kinds.
11410         (gomp_create_target_task): If taskgroup has workshare flag set, check
11411         cancelled on prev taskgroup if any.  Guard all cancellation tests with
11412         gomp_cancel_var test.  Handle new depend array format count in
11413         addition to the old.
11414         (GOMP_task): Likewise.  Adjust function comment.
11415         (gomp_task_run_pre): If taskgroup has workshare flag set, check
11416         cancelled on prev taskgroup if any.  Guard all cancellation tests with
11417         gomp_cancel_var test.
11418         (GOMP_taskwait_depend): New function.
11419         (gomp_task_maybe_wait_for_dependencies): Handle new depend array
11420         format in addition to the old.  Handle mutexinoutset kinds the same as
11421         inout for now, handle unspecified kinds.  Fix a function comment typo.
11422         (gomp_taskgroup_init): New function.
11423         (GOMP_taskgroup_start): Use it.
11424         (gomp_reduction_register, gomp_create_artificial_team,
11425         GOMP_taskgroup_reduction_register,
11426         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
11427         gomp_parallel_reduction_register,
11428         gomp_workshare_task_reduction_register,
11429         gomp_workshare_taskgroup_start,
11430         GOMP_workshare_task_reduction_unregister): New functions.
11431         * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
11432         check cancelled on prev taskgroup if any.  Guard all cancellation
11433         tests with gomp_cancel_var test.  Handle GOMP_TASK_FLAG_REDUCTION flag
11434         by calling GOMP_taskgroup_reduction_register.
11435         * team.c (gomp_thread_attr): Remove comment.
11436         (struct gomp_thread_start_data): Add handle field.
11437         (gomp_thread_start): Call pthread_detach.
11438         (gomp_new_team): Adjust gomp_init_work_share caller.
11439         (gomp_free_pool_helper): Call pthread_detach.
11440         (gomp_team_start): Add taskgroup argument, initialize implicit
11441         tasks' taskgroup field to that.  Don't call
11442         pthread_attr_setdetachstate.  Handle OMP_DISPLAY_AFFINITY env var.
11443         (gomp_team_end): Determine nesting by thr->ts.level != 0
11444         rather than thr->ts.team != NULL.
11445         (gomp_pause_pool_helper, gomp_pause_host): New functions.
11446         * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
11447         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
11448         (gomp_init_work_share): Change ORDERED argument from bool to size_t,
11449         if more than 1 allocate also extra payload at the end of array.  Never
11450         keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
11451         (gomp_work_share_start): Change ORDERED argument from bool to size_t,
11452         return true instead of ws.
11453         * Makefile.in: Regenerated.
11454         * configure: Regenerated.
11455         * config.h.in: Regenerated.
11456         * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
11457         in some cases.
11458         * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
11459         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
11460         * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
11461         * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
11462         * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
11463         * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
11464         * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
11465         * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
11466         * testsuite/libgomp.c-c++-common/for-10.c: New test.
11467         * testsuite/libgomp.c-c++-common/for-11.c: New test.
11468         * testsuite/libgomp.c-c++-common/for-12.c: New test.
11469         * testsuite/libgomp.c-c++-common/for-13.c: New test.
11470         * testsuite/libgomp.c-c++-common/for-14.c: New test.
11471         * testsuite/libgomp.c-c++-common/for-15.c: New test.
11472         * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
11473         define a different N(test), don't define N(f0) to N(f14), but instead
11474         define N(f20) to N(f34) using != comparisons.
11475         * testsuite/libgomp.c-c++-common/for-7.c: New test.
11476         * testsuite/libgomp.c-c++-common/for-8.c: New test.
11477         * testsuite/libgomp.c-c++-common/for-9.c: New test.
11478         * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
11479         * testsuite/libgomp.c-c++-common/pause-1.c: New test.
11480         * testsuite/libgomp.c-c++-common/pause-2.c: New test.
11481         * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
11482         * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
11483         * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
11484         * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
11485         * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
11486         * testsuite/libgomp.c-c++-common/simd-1.c: New test.
11487         * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
11488         * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
11489         * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
11490         * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
11491         * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
11492         * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
11493         * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
11494         * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
11495         * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
11496         * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
11497         * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
11498         * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
11499         * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
11500         * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
11501         * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
11502         * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
11503         * testsuite/libgomp.c++/depend-1.C: New test.
11504         * testsuite/libgomp.c++/depend-iterator-1.C: New test.
11505         * testsuite/libgomp.c++/depobj-1.C: New test.
11506         * testsuite/libgomp.c++/for-16.C: New test.
11507         * testsuite/libgomp.c++/for-21.C: New test.
11508         * testsuite/libgomp.c++/for-22.C: New test.
11509         * testsuite/libgomp.c++/for-23.C: New test.
11510         * testsuite/libgomp.c++/for-24.C: New test.
11511         * testsuite/libgomp.c++/for-25.C: New test.
11512         * testsuite/libgomp.c++/for-26.C: New test.
11513         * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
11514         * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
11515         * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
11516         * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
11517         * testsuite/libgomp.c++/task-reduction-10.C: New test.
11518         * testsuite/libgomp.c++/task-reduction-11.C: New test.
11519         * testsuite/libgomp.c++/task-reduction-12.C: New test.
11520         * testsuite/libgomp.c++/task-reduction-13.C: New test.
11521         * testsuite/libgomp.c++/task-reduction-14.C: New test.
11522         * testsuite/libgomp.c++/task-reduction-15.C: New test.
11523         * testsuite/libgomp.c++/task-reduction-16.C: New test.
11524         * testsuite/libgomp.c++/task-reduction-17.C: New test.
11525         * testsuite/libgomp.c++/task-reduction-18.C: New test.
11526         * testsuite/libgomp.c++/task-reduction-19.C: New test.
11527         * testsuite/libgomp.c/task-reduction-1.c: New test.
11528         * testsuite/libgomp.c++/task-reduction-1.C: New test.
11529         * testsuite/libgomp.c/task-reduction-2.c: New test.
11530         * testsuite/libgomp.c++/task-reduction-2.C: New test.
11531         * testsuite/libgomp.c++/task-reduction-3.C: New test.
11532         * testsuite/libgomp.c++/task-reduction-4.C: New test.
11533         * testsuite/libgomp.c++/task-reduction-5.C: New test.
11534         * testsuite/libgomp.c++/task-reduction-6.C: New test.
11535         * testsuite/libgomp.c++/task-reduction-7.C: New test.
11536         * testsuite/libgomp.c++/task-reduction-8.C: New test.
11537         * testsuite/libgomp.c++/task-reduction-9.C: New test.
11538         * testsuite/libgomp.c/teams-1.c: New test.
11539         * testsuite/libgomp.c/teams-2.c: New test.
11540         * testsuite/libgomp.c/thread-limit-4.c: New test.
11541         * testsuite/libgomp.c/thread-limit-5.c: New test.
11542         * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
11544 2018-11-06  Chung-Lin Tang <cltang@codesourcery.com>
11546         * oacc-mem.c (memcpy_tofrom_device): New function, combined from
11547         acc_memcpy_to/from_device functions, now with async parameter.
11548         (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
11549         (acc_memcpy_from_device): Likewise.
11550         (acc_memcpy_to_device_async): New API function.
11551         (acc_memcpy_from_device_async): Likewise.
11552         (present_create_copy): Add async parameter and async setting/unsetting.
11553         (acc_create): Adjust present_create_copy call.
11554         (acc_copyin): Likewise.
11555         (acc_present_or_create): Likewise.
11556         (acc_present_or_copyin): Likewise.
11557         (acc_create_async): New API function.
11558         (acc_copyin_async): New API function.
11559         (delete_copyout): Add async parameter and async setting/unsetting.
11560         (acc_delete): Adjust delete_copyout call.
11561         (acc_copyout): Likewise.
11562         (acc_delete_async): New API function.
11563         (acc_copyout_async): Likewise.
11564         (update_dev_host): Add async parameter and async setting/unsetting.
11565         (acc_update_device): Adjust update_dev_host call.
11566         (acc_update_self): Likewise.
11567         (acc_update_device_async): New API function.
11568         (acc_update_self_async): Likewise.
11569         * openacc.h (acc_copyin_async): Declare new API function.
11570         (acc_create_async): Likewise.
11571         (acc_copyout_async): Likewise.
11572         (acc_delete_async): Likewise.
11573         (acc_update_device_async): Likewise.
11574         (acc_update_self_async): Likewise.
11575         (acc_memcpy_to_device_async): Likewise.
11576         (acc_memcpy_from_device_async): Likewise.
11577         * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
11578         (acc_copyin_async_64_h): New subroutine.
11579         (acc_copyin_async_array_h): New subroutine.
11580         (acc_create_async_32_h): New subroutine.
11581         (acc_create_async_64_h): New subroutine.
11582         (acc_create_async_array_h): New subroutine.
11583         (acc_copyout_async_32_h): New subroutine.
11584         (acc_copyout_async_64_h): New subroutine.
11585         (acc_copyout_async_array_h): New subroutine.
11586         (acc_delete_async_32_h): New subroutine.
11587         (acc_delete_async_64_h): New subroutine.
11588         (acc_delete_async_array_h): New subroutine.
11589         (acc_update_device_async_32_h): New subroutine.
11590         (acc_update_device_async_64_h): New subroutine.
11591         (acc_update_device_async_array_h): New subroutine.
11592         (acc_update_self_async_32_h): New subroutine.
11593         (acc_update_self_async_64_h): New subroutine.
11594         (acc_update_self_async_array_h): New subroutine.
11595         * openacc.f90 (acc_copyin_async_32_h): New subroutine.
11596         (acc_copyin_async_64_h): New subroutine.
11597         (acc_copyin_async_array_h): New subroutine.
11598         (acc_create_async_32_h): New subroutine.
11599         (acc_create_async_64_h): New subroutine.
11600         (acc_create_async_array_h): New subroutine.
11601         (acc_copyout_async_32_h): New subroutine.
11602         (acc_copyout_async_64_h): New subroutine.
11603         (acc_copyout_async_array_h): New subroutine.
11604         (acc_delete_async_32_h): New subroutine.
11605         (acc_delete_async_64_h): New subroutine.
11606         (acc_delete_async_array_h): New subroutine.
11607         (acc_update_device_async_32_h): New subroutine.
11608         (acc_update_device_async_64_h): New subroutine.
11609         (acc_update_device_async_array_h): New subroutine.
11610         (acc_update_self_async_32_h): New subroutine.
11611         (acc_update_self_async_64_h): New subroutine.
11612         (acc_update_self_async_array_h): New subroutine.
11613         * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
11614         acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
11615         acc_delete_finalize_async*, acc_memcpy_from_device_async*,
11616         acc_memcpy_to_device_async*, acc_update_device_async*, and
11617         acc_update_self_async* entries.
11618         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
11619         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
11620         * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
11622 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
11624         PR bootstrap/82856
11625         * Makefile.am: Include multilib.am
11626         (AUTOMAKE_OPTIONS): Add info-in-builddir.
11627         (CLEANFILES): Remove libgomp.info.
11628         * configure.ac: Remove AC_PREREQ.
11629         * testsuite/Makefile.am (RUNTEST): Remove quotes.
11630         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
11631         Regenerate.
11633 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
11634             Julian Brown  <julian@codesourcery.com>
11636         * testsuite/libgomp.oacc-c++/this.C: New.
11638 2018-09-18  Cesar Philippidis  <cesar@codesourcery.com>
11640         * plugin/plugin-nvptx.c (struct cuda_map): New.
11641         (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
11642         h_tail with (cuda_map *) map.
11643         (cuda_map_create): New function.
11644         (cuda_map_destroy): New function.
11645         (map_init): Update to use a linked list of cuda_map objects.
11646         (map_fini): Likewise.
11647         (map_pop): Likewise.
11648         (map_push): Likewise.  Return CUdeviceptr instead of void.
11649         (init_streams_for_device): Remove stales references to ptx_stream
11650         members.
11651         (select_stream_for_async): Likewise.
11652         (nvptx_exec): Update call to map_init.
11654 2018-09-09  Cesar Philippidis  <cesar@codesourcery.com>
11655             Julian Brown  <julian@codesourcery.com>
11657         PR middle-end/86336
11658         * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
11660 2018-08-21  Nicolas Koenig  <koenigni@gcc.gnu.org>
11661         Thomas Koenig <tkoenig@gcc.gnu.org>
11663         PR fortran/25829
11664         * testsuite/libgomp.fortran/async_io_1.f90: New test.
11665         * testsuite/libgomp.fortran/async_io_2.f90: New test.
11666         * testsuite/libgomp.fortran/async_io_3.f90: New test.
11667         * testsuite/libgomp.fortran/async_io_4.f90: New test.
11668         * testsuite/libgomp.fortran/async_io_5.f90: New test.
11669         * testsuite/libgomp.fortran/async_io_6.f90: New test.
11670         * testsuite/libgomp.fortran/async_io_7.f90: New test.
11672 2018-08-13  Cesar Philippidis  <cesar@codesourcery.com>
11673             Tom de Vries  <tdevries@suse.de>
11675         PR target/85590
11676         * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
11677         (cuOccupancyMaxPotentialBlockSize): Declare.
11678         * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
11679         CUDA_ONE_CALL_MAYBE_NULL.
11680         * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
11681         CUoccupancyB2DSize and declare
11682         cuOccupancyMaxPotentialBlockSize.
11683         (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
11684         default num_gangs and num_workers when the driver supports it.
11686 2018-08-08  Tom de Vries  <tdevries@suse.de>
11688         * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
11689         CUDA_ONE_CALL_MAYBE_NULL.
11690         * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
11691         (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
11692         (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
11693         are not found.
11695 2018-08-08  Tom de Vries  <tdevries@suse.de>
11697         * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
11698         * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
11699         present.
11701 2018-08-08  Tom de Vries  <tdevries@suse.de>
11703         * plugin/plugin-nvptx.c
11704         (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
11705         (nvptx_open_device): Use
11706         CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
11708 2018-08-08  Tom de Vries  <tdevries@suse.de>
11710         * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
11711         (cuGetErrorString): ... here.  Guard with CUDA_VERSION < 6000.
11713 2018-08-07  Tom de Vries  <tdevries@suse.de>
11715         * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
11716         (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
11717         (init_cuda_lib): Add new param to CUDA_ONE_CALL_1.  Add arg to
11718         corresponding call in CUDA_ONE_CALL.  Add def/undef of
11719         CUDA_ONE_CALL_MAYBE_NULL.
11720         (CUDA_CALL_EXISTS): Define.
11722 2018-08-07  Tom de Vries  <tdevries@suse.de>
11724         * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
11725         CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
11726         corresponding undefs right after.
11728 2018-08-04  Tom de Vries  <tdevries@suse.de>
11730         * plugin/configfrag.ac: For --without-cuda-driver, set
11731         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no.  Handle
11732         CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
11733         * configure: Regenerate.
11735 2018-08-02  Tom de Vries  <tdevries@suse.de>
11737         PR target/86660
11738         * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
11739         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
11740         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
11741         Same.
11742         * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
11743         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
11744         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
11746 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
11747             Thomas Schwinge <thomas@codesourcery.com>
11749         * config/nvptx/oacc-parallel.c: Truncate.
11751 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
11752             James Norris <jnorris@codesourcery.com>
11754         * plugin/plugin-nvptx.c (struct map): Removed.
11755         (map_init, map_pop): Remove use of struct map.
11756         (map_push): Likewise and change argument list.
11757         * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
11759 2018-08-01  Tom de Vries  <tdevries@suse.de>
11761         * plugin/cuda-lib.def: New file.  Factor out of ...
11762         * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
11763         (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
11764         using CUDA_CALLS.
11766 2018-07-31  Andre Vieira  <andre.simoesdiasvieira@arm.com>
11768         Revert 'AsyncI/O patch committed'.
11769         2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
11770                 Thomas Koenig <tkoenig@gcc.gnu.org>
11772         PR fortran/25829
11773         * testsuite/libgomp.fortran/async_io_1.f90: New test.
11774         * testsuite/libgomp.fortran/async_io_2.f90: New test.
11775         * testsuite/libgomp.fortran/async_io_3.f90: New test.
11776         * testsuite/libgomp.fortran/async_io_4.f90: New test.
11777         * testsuite/libgomp.fortran/async_io_5.f90: New test.
11778         * testsuite/libgomp.fortran/async_io_6.f90: New test.
11779         * testsuite/libgomp.fortran/async_io_7.f90: New test.
11781 2018-07-30  Tom de Vries  <tdevries@suse.de>
11783         * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
11784         (nvptx_exec): Ensure worker and vector default dims don't exceed
11785         targ_fn->max_threads_per_block.
11787 2018-07-30  Tom de Vries  <tdevries@suse.de>
11789         * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
11790         (nvptx_open_device): Init default_dims for device.
11791         (nvptx_exec): Use default_dims from device.
11793 2018-07-26  Jakub Jelinek  <jakub@redhat.com>
11795         PR testsuite/86660
11796         * testsuite/libgomp.c++/for-15.C (results): Include it in
11797         omp declare target region.
11798         (main): Use map (always, tofrom: results) instead of
11799         map (tofrom: results).
11801         PR middle-end/86660
11802         * testsuite/libgomp.c/pr86660.c: New test.
11804 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
11805             Tom de Vries  <tdevries@suse.de>
11807         * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
11808         sufficient resources to launch a kernel, and give a hint on how to fix
11809         it.
11811 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
11812             Tom de Vries  <tdevries@suse.de>
11814         * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
11815         max_threads_per_block and max_threads_per_multiprocessor fields.
11816         (nvptx_open_device): Initialize new fields.
11817         (nvptx_exec): Use num_sms, and new fields.
11819 2018-07-26  Tom de Vries  <tdevries@suse.de>
11821         * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
11822         to correct locations.  Remove xfail.
11824 2018-07-26  Tom de Vries  <tdevries@suse.de>
11826         * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
11827         acc_wait.  Move acc_async_test calls to correct locations.  Remove
11828         xfail.
11830 2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
11831         Thomas Koenig <tkoenig@gcc.gnu.org>
11833         PR fortran/25829
11834         * testsuite/libgomp.fortran/async_io_1.f90: New test.
11835         * testsuite/libgomp.fortran/async_io_2.f90: New test.
11836         * testsuite/libgomp.fortran/async_io_3.f90: New test.
11837         * testsuite/libgomp.fortran/async_io_4.f90: New test.
11838         * testsuite/libgomp.fortran/async_io_5.f90: New test.
11839         * testsuite/libgomp.fortran/async_io_6.f90: New test.
11840         * testsuite/libgomp.fortran/async_io_7.f90: New test.
11842 2018-07-17  Jakub Jelinek  <jakub@redhat.com>
11844         PR middle-end/86542
11845         * testsuite/libgomp.c++/pr86542.C: New test.
11847         PR middle-end/86539
11848         * testsuite/libgomp.c++/pr86539.C: New test.
11850 2018-07-11  Jakub Jelinek  <jakub@redhat.com>
11852         PR c++/86443
11853         * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
11854         (results): Make sure the variable is not inside declare target region.
11855         (qux): Remove unused function.
11857 2018-07-10  Jakub Jelinek  <jakub@redhat.com>
11859         PR c++/86443
11860         * testsuite/libgomp.c++/for-15.C: New test.
11862 2018-06-26  Jakub Jelinek  <jakub@redhat.com>
11864         PR c++/86291
11865         * testsuite/libgomp.c++/pr86291.C: New test.
11867 2018-06-24  Gerald Pfeifer  <gerald@pfeifer.com>
11869         * libgomp.texi (Top): Move www.openmp.org to https.
11870         (Enabling OpenMP): Ditto.
11871         (omp_get_active_level): Ditto.
11872         (omp_get_ancestor_thread_num): Ditto.
11873         (omp_get_cancellation): Ditto.
11874         (omp_get_default_device): Ditto.
11875         (omp_get_dynamic): Ditto.
11876         (omp_get_level): Ditto.
11877         (omp_get_max_active_levels): Ditto.
11878         (omp_get_max_task_priority): Ditto.
11879         (omp_get_max_threads): Ditto.
11880         (omp_get_nested): Ditto.
11881         (omp_get_num_devices): Ditto.
11882         (omp_get_num_procs): Ditto.
11883         (omp_get_num_teams): Ditto.
11884         (omp_get_num_threads): Ditto.
11885         (omp_get_proc_bind): Ditto.
11886         (omp_get_schedule): Ditto.
11887         (omp_get_team_num): Ditto.
11888         (omp_get_team_size): Ditto.
11889         (omp_get_thread_limit): Ditto.
11890         (omp_get_thread_num): Ditto.
11891         (omp_in_parallel): Ditto.
11892         (omp_in_final): Ditto.
11893         (omp_is_initial_device): Ditto.
11894         (omp_set_default_device): Ditto.
11895         (omp_set_dynamic): Ditto.
11896         (omp_set_max_active_levels): Ditto.
11897         (omp_set_nested): Ditto.
11898         (omp_set_num_threads): Ditto.
11899         (omp_set_schedule): Ditto.
11900         (omp_init_lock): Ditto.
11901         (omp_set_lock): Ditto.
11902         (omp_test_lock): Ditto.
11903         (omp_unset_lock): Ditto.
11904         (omp_destroy_lock): Ditto.
11905         (omp_init_nest_lock): Ditto.
11906         (omp_set_nest_lock): Ditto.
11907         (omp_test_nest_lock): Ditto.
11908         (omp_unset_nest_lock): Ditto.
11909         (omp_destroy_nest_lock): Ditto.
11910         (omp_get_wtick): Ditto.
11911         (omp_get_wtime): Ditto.
11912         (OMP_CANCELLATION): Ditto.
11913         (OMP_DISPLAY_ENV): Ditto.
11914         (OMP_DEFAULT_DEVICE): Ditto.
11915         (OMP_DYNAMIC): Ditto.
11916         (OMP_MAX_ACTIVE_LEVELS): Ditto.
11917         (OMP_MAX_TASK_PRIORITY): Ditto.
11918         (OMP_NESTED): Ditto.
11919         (OMP_NUM_THREADS): Ditto.
11920         (OMP_PROC_BIND): Ditto.
11921         (OMP_PLACES): Ditto.
11922         (OMP_STACKSIZE): Ditto.
11923         (OMP_SCHEDULE): Ditto.
11924         (OMP_THREAD_LIMIT): Ditto.
11925         (OMP_WAIT_POLICY): Ditto.
11927 2018-06-22  Cesar Philippidis  <cesar@codesourcery.com>
11928             James Norris  <jnorris@codesourcery.com>
11929             Julian Brown  <julian@codesourcery.com>
11930             Thomas Schwinge  <thomas@codesourcery.com>
11931             Tom de Vries  <tom@codesourcery.com>
11933         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
11934         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
11935         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
11936         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
11937         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11938         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11939         * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
11940         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
11941         * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
11942         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
11943         Likewise.
11944         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
11945         Likewise.
11946         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
11947         Likewise.
11948         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
11949         Likewise.
11950         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
11951         Likewise.
11952         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
11953         Likewise.
11954         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
11955         Likewise.
11956         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
11957         Likewise.
11958         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
11959         Likewise.
11960         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
11961         Likewise.
11962         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
11963         Likewise.
11964         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
11965         Likewise.
11966         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
11967         Likewise.
11968         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
11969         Likewise.
11970         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
11971         Likewise.
11972         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
11973         Likewise.
11974         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
11975         Likewise.
11976         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
11977         Likewise.
11978         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
11979         Likewise.
11980         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
11981         Likewise.
11982         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
11983         Likewise.
11984         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
11985         Likewise.
11986         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
11987         Likewise.
11988         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
11989         Likewise.
11990         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
11991         Likewise.
11992         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
11993         Likewise.
11994         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
11995         Likewise.
11996         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
11997         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
11998         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
11999         * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
12000         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
12001         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
12002         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
12003         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
12004         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
12005         Likewise.
12006         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
12007         Likewise.
12008         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
12009         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
12010         * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
12011         Likewise.
12012         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
12013         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
12014         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
12015         Likewise.
12016         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
12017         Likewise.
12018         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
12019         Likewise.
12020         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
12021         Likewise.
12022         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
12023         Likewise.
12024         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
12025         Likewise.
12026         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
12027         Likewise.
12028         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
12029         Likewise.
12030         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
12031         Likewise.
12032         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
12033         Likewise.
12034         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
12035         Likewise.
12036         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
12037         Likewise.
12038         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
12039         Likewise.
12040         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
12041         Likewise.
12042         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
12043         Likewise.
12044         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
12045         * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
12046         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
12047         * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
12048         * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
12049         * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
12050         * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
12052 2018-06-20  Chung-Lin Tang <cltang@codesourcery.com>
12053             Thomas Schwinge <thomas@codesourcery.com>
12054             Cesar Philippidis  <cesar@codesourcery.com>
12056         * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
12057         (gomp_acc_remove_pointer): Update declaration.
12058         (gomp_acc_declare_allocate): Declare.
12059         (gomp_remove_var): Declare.
12060         * libgomp.map (OACC_2.5): Define.
12061         * oacc-mem.c (acc_map_data): Update refcount.
12062         (acc_unmap_data): Likewise.
12063         (present_create_copy): Likewise.
12064         (acc_create): Add FLAG_PRESENT when calling present_create_copy.
12065         (acc_copyin): Likewise.
12066         (FLAG_FINALIZE): Define.
12067         (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
12068         (acc_delete_finalize): New function.
12069         (acc_delete_finalize_async): New function.
12070         (acc_copyout_finalize): New function.
12071         (acc_copyout_finalize_async): New function.
12072         (gomp_acc_insert_pointer): Update refcounts.
12073         (gomp_acc_remove_pointer): Return if data is not present on the
12074         accelerator.
12075         * oacc-parallel.c (find_pset): Rename to find_pointer.
12076         (find_pointer): Add support for GOMP_MAP_POINTER.
12077         (handle_ftn_pointers): New function.
12078         (GOACC_parallel_keyed): Update refcounts of variables.
12079         (GOACC_enter_exit_data): Add support for finalized data mappings.
12080         Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
12081         of fortran arrays.
12082         (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
12083         (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
12084         for GOMP_MAP_FORCE_FROM.
12085         * openacc.f90 (module openacc_internal): Add
12086         acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
12087         acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
12088         acc_copyout_finalize and acc_delete_finalize.
12089         (acc_copyout_finalize_32_h): New subroutine.
12090         (acc_copyout_finalize_64_h): New subroutine.
12091         (acc_copyout_finalize_array_h): New subroutine.
12092         (acc_delete_finalize_32_h): New subroutine.
12093         (acc_delete_finalize_64_h): New subroutine.
12094         (acc_delete_finalize_array_h): New subroutine.
12095         * openacc.h (acc_copyout_finalize): Declare.
12096         (acc_copyout_finalize_async): Declare.
12097         (acc_delete_finalize): Declare.
12098         (acc_delete_finalize_async): Declare.
12099         * openacc_lib.h (acc_copyout_finalize): New interface.
12100         (acc_delete_finalize): New interface.
12101         * target.c (gomp_map_vars): Update dynamic_refcount.
12102         (gomp_remove_var): New function.
12103         (gomp_unmap_vars): Use it.
12104         (gomp_unload_image_from_device): Likewise.
12105         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
12106         case to utilize OpenACC 2.5 data clause semantics.
12107         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
12108         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
12109         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
12110         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
12111         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
12112         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
12113         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
12114         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
12115         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
12116         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
12117         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
12118         * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
12119         * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
12120         utilize OpenACC 2.5 data clause semantics.
12121         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
12122         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
12123         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
12124         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
12125         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
12126         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
12127         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
12128         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
12129         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
12131 2018-05-21  Janus Weil  <janus@gcc.gnu.org>
12133         PR fortran/85841
12134         PR testsuite/85865
12135         * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
12136         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
12137         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
12138         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
12139         * testsuite/libgomp.fortran/task2.f90: Ditto.
12140         * testsuite/libgomp.fortran/vla1.f90: Ditto.
12141         * testsuite/libgomp.fortran/vla2.f90: Ditto.
12142         * testsuite/libgomp.fortran/vla3.f90: Ditto.
12143         * testsuite/libgomp.fortran/vla4.f90: Ditto.
12144         * testsuite/libgomp.fortran/vla5.f90: Ditto.
12145         * testsuite/libgomp.fortran/vla6.f90: Ditto.
12146         * testsuite/libgomp.fortran/vla8.f90: Ditto.
12147         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
12148         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
12150 2018-05-18  Cesar Philippidis  <cesar@codesourcery.com>
12152         PR c++/85782
12153         * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
12155 2018-05-09  Tom de Vries  <tom@codesourcery.com>
12157         PR libgomp/82901
12158         * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
12159         to GOACC_enter_exit_data.
12161 2018-05-09  Tom de Vries  <tom@codesourcery.com>
12163         PR libgomp/83792
12164         * oacc-int.h (async_valid_stream_id_p, async_valid_p)
12165         (async_synchronous_p): New function.
12166         * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
12167         async_valid_p.
12168         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
12169         async_valid_stream_id_p.
12170         * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
12171         * oacc-parallel.c (GOACC_parallel_keyed): Same.
12173 2018-05-07  Tom de Vries  <tom@codesourcery.com>
12175         PR testsuite/85677
12176         * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
12177         include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
12179 2018-05-03  Tom de Vries  <tom@codesourcery.com>
12181         PR testsuite/85106
12182         * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
12183         extra_tool_flags if it contains an -foffload=-fdump-* flag.
12184         * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
12185         * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
12187 2018-05-02  Tom de Vries  <tom@codesourcery.com>
12189         PR libgomp/85411
12190         * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
12191         GOMP_OPENACC_DIM ...
12192         * env.c (parse_gomp_openacc_dim): ... here.  New function.
12193         (initialize_env): Call parse_gomp_openacc_dim.
12194         (goacc_default_dims): Define.
12195         * libgomp.h (goacc_default_dims): Declare.
12196         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
12197         * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
12198         * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
12199         GOMP_PLUGIN_acc_default_dim.
12200         * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
12201         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
12203 2018-05-02  Tom de Vries  <tom@codesourcery.com>
12205         PR testsuite/83791
12206         * testsuite/libgomp.c++/udr-9.C: Update.
12207         * testsuite/libgomp.c++/atomic-16.C: Remove.
12208         * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
12209         * testsuite/libgomp.c++/loop-13.C: Remove.
12210         * testsuite/libgomp.c++/loop-14.C: Remove.
12211         * testsuite/libgomp.c++/loop-15.C: Remove.
12212         * testsuite/libgomp.c++/monotonic-1.C: Remove.
12213         * testsuite/libgomp.c++/monotonic-2.C: Remove.
12214         * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
12215         * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
12216         * testsuite/libgomp.c++/ordered-1.C: Remove.
12217         * testsuite/libgomp.c++/pr45784.C: Remove.
12218         * testsuite/libgomp.c++/pr64824.C: Remove.
12219         * testsuite/libgomp.c++/pr64868.C: Remove.
12220         * testsuite/libgomp.c++/pr66199-1.C: Remove.
12221         * testsuite/libgomp.c++/pr66199-2.C: Remove.
12222         * testsuite/libgomp.c++/pr66199-3.C: Remove.
12223         * testsuite/libgomp.c++/pr66199-4.C: Remove.
12224         * testsuite/libgomp.c++/pr66199-5.C: Remove.
12225         * testsuite/libgomp.c++/pr66199-6.C: Remove.
12226         * testsuite/libgomp.c++/pr66199-7.C: Remove.
12227         * testsuite/libgomp.c++/pr66199-8.C: Remove.
12228         * testsuite/libgomp.c++/pr66199-9.C: Remove.
12229         * testsuite/libgomp.c++/pr69389.C: Remove.
12230         * testsuite/libgomp.c++/simd10.C: Remove.
12231         * testsuite/libgomp.c++/simd11.C: Remove.
12232         * testsuite/libgomp.c++/simd12.C: Remove.
12233         * testsuite/libgomp.c++/simd13.C: Remove.
12234         * testsuite/libgomp.c++/target-1.C: Remove.
12235         * testsuite/libgomp.c++/target-3.C: Remove.
12236         * testsuite/libgomp.c++/target-4.C: Remove.
12237         * testsuite/libgomp.c++/target-5.C: Remove.
12238         * testsuite/libgomp.c++/taskgroup-1.C: Remove.
12239         * testsuite/libgomp.c++/taskloop-1.C: Remove.
12240         * testsuite/libgomp.c++/taskloop-2.C: Remove.
12241         * testsuite/libgomp.c++/taskloop-3.C: Remove.
12242         * testsuite/libgomp.c++/taskloop-4.C: Remove.
12243         * testsuite/libgomp.c++/udr-9.C: Remove.
12244         * testsuite/libgomp.c++/for-10.C: Remove.
12245         * testsuite/libgomp.c++/for-11.C: Remove.
12246         * testsuite/libgomp.c++/for-12.C: Remove.
12247         * testsuite/libgomp.c++/for-13.C: Remove.
12248         * testsuite/libgomp.c++/for-14.C: Remove.
12249         * testsuite/libgomp.c++/for-9.C: Remove.
12250         * testsuite/libgomp.c/atomic-18.c: Move ...
12251         * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
12252         * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
12253         * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
12254         * testsuite/libgomp.c/loop-13.c: Move ...
12255         * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
12256         * testsuite/libgomp.c/loop-14.c: Move ...
12257         * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
12258         * testsuite/libgomp.c/loop-15.c: Remove.
12259         * testsuite/libgomp.c-c++-common/loop-15.c: New test.
12260         * testsuite/libgomp.c/monotonic-1.c: Move ...
12261         * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
12262         * testsuite/libgomp.c/monotonic-2.c: Move ...
12263         * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
12264         * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
12265         * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
12266         * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
12267         * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
12268         * testsuite/libgomp.c/ordered-4.c: Move ...
12269         * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
12270         * testsuite/libgomp.c/pr45784.c: Move ...
12271         * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
12272         * testsuite/libgomp.c/pr64824.c: Move ...
12273         * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
12274         * testsuite/libgomp.c/pr64868.c: Move ...
12275         * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
12276         * testsuite/libgomp.c/pr66199-1.c: Move ...
12277         * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
12278         * testsuite/libgomp.c/pr66199-2.c: Move ...
12279         * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
12280         * testsuite/libgomp.c/pr66199-3.c: Move ...
12281         * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
12282         * testsuite/libgomp.c/pr66199-4.c: Move ...
12283         * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
12284         * testsuite/libgomp.c/pr66199-5.c: Move ...
12285         * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
12286         * testsuite/libgomp.c/pr66199-6.c: Move ...
12287         * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
12288         * testsuite/libgomp.c/pr66199-7.c: Move ...
12289         * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
12290         * testsuite/libgomp.c/pr66199-8.c: Move ...
12291         * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
12292         * testsuite/libgomp.c/pr66199-9.c: Move ...
12293         * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
12294         * testsuite/libgomp.c/pr69389.c: Move ...
12295         * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
12296         * testsuite/libgomp.c/simd-14.c: Move ...
12297         * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
12298         * testsuite/libgomp.c/simd-15.c: Move ...
12299         * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
12300         * testsuite/libgomp.c/simd-16.c: Move ...
12301         * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
12302         * testsuite/libgomp.c/simd-17.c: Move ...
12303         * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
12304         * testsuite/libgomp.c/target-1.c: Move ...
12305         * testsuite/libgomp.c-c++-common/target-1.c: ... here.
12306         * testsuite/libgomp.c/target-10.c: Move ...
12307         * testsuite/libgomp.c-c++-common/target-10.c: ... here.
12308         * testsuite/libgomp.c/target-13.c: Move ...
12309         * testsuite/libgomp.c-c++-common/target-13.c: ... here.
12310         * testsuite/libgomp.c/target-2.c: Move ...
12311         * testsuite/libgomp.c-c++-common/target-2.c: ... here.
12312         * testsuite/libgomp.c/taskgroup-1.c: Move ...
12313         * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
12314         * testsuite/libgomp.c/taskloop-1.c: Move ...
12315         * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
12316         * testsuite/libgomp.c/taskloop-2.c: Move ...
12317         * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
12318         * testsuite/libgomp.c/taskloop-3.c: Move ...
12319         * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
12320         * testsuite/libgomp.c/taskloop-4.c: Move ...
12321         * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
12322         * testsuite/libgomp.c/udr-1.c: Move ...
12323         * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
12324         * testsuite/libgomp.c/for-1.c: Move ...
12325         * testsuite/libgomp.c-c++-common/for-1.c: ... here.
12326         * testsuite/libgomp.c/for-1.h: Move ...
12327         * testsuite/libgomp.c-c++-common/for-1.h: ... here.
12328         * testsuite/libgomp.c/for-2.c: Move ...
12329         * testsuite/libgomp.c-c++-common/for-2.c: ... here.
12330         * testsuite/libgomp.c/for-2.h: Move ...
12331         * testsuite/libgomp.c-c++-common/for-2.h: ... here.
12332         * testsuite/libgomp.c/for-3.c: Move ...
12333         * testsuite/libgomp.c-c++-common/for-3.c: ... here.
12334         * testsuite/libgomp.c/for-4.c: Move ...
12335         * testsuite/libgomp.c-c++-common/for-4.c: ... here.
12336         * testsuite/libgomp.c/for-5.c: Move ...
12337         * testsuite/libgomp.c-c++-common/for-5.c: ... here.
12338         * testsuite/libgomp.c/for-6.c: Move ...
12339         * testsuite/libgomp.c-c++-common/for-6.c: ... here.
12341 2018-05-02  Tom de Vries  <tom@codesourcery.com>
12343         PR libgomp/82428
12344         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
12345         __builtin_goacc_parlevel_{id,size}.
12346         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
12347         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
12348         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
12349         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
12350         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
12351         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
12352         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
12353         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
12354         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
12355         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
12356         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
12357         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
12358         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
12359         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
12360         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
12361         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
12362         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
12363         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
12364         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
12365         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
12366         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
12367         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
12368         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
12370 2018-05-02  Tom de Vries  <tom@codesourcery.com>
12372         PR testsuite/85106
12373         * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
12375 2018-05-02  Tom de Vries  <tom@codesourcery.com>
12377         PR testsuite/85106
12378         * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
12380 2018-04-29  Julian Brown  <julian@codesourcery.com>
12381             Tom de Vries  <tom@codesourcery.com>
12383         PR testsuite/85527
12384         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
12385         arbitrary order for iterations of atomic subtract check.
12387 2018-04-28  Tom de Vries  <tom@codesourcery.com>
12389         PR testsuite/85527
12390         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
12391         atomic capture results obtained in parallel loop to an array, instead of
12392         to a scalar.
12394 2018-04-26  Tom de Vries  <tom@codesourcery.com>
12396         PR libgomp/84020
12397         * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
12398         * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
12399         (process_GOMP_NVPTX_JIT): New function.
12400         (link_ptx): Use process_GOMP_NVPTX_JIT.
12402 2018-04-26  Richard Biener <rguenther@suse.de>
12403             Tom de Vries  <tom@codesourcery.com>
12405         PR lto/85422
12406         * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
12408 2018-04-26  Tom de Vries  <tom@codesourcery.com>
12410         PR target/85519
12411         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
12412         recursion depth from 25 to 23.
12413         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
12415 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
12417         * configure: Regenerated.
12419 2018-04-20  Nathan Sidwell  <nathan@codesourcery.com>
12420             Tom de Vries  <tom@codesourcery.com>
12422         PR target/85445
12423         * testsuite/libgomp.oacc-c++/ref-1.C: New.
12425 2018-04-19  Thomas Schwinge  <thomas@codesourcery.com>
12427         PR libgomp/85463
12428         * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
12429         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
12430         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
12431         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
12432         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
12433         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
12435         PR libfortran/85166
12436         * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
12437         abort".
12438         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
12440 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
12442         * configure: Regenerated.
12444 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
12446         PR jit/85384
12447         * configure: Regenerate.
12449 2018-04-16  Cesar Philippidis  <cesar@codesourcery.com>
12450             Tom de Vries  <tom@codesourcery.com>
12452         PR middle-end/84955
12453         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
12454         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
12456 2018-04-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
12458         PR fortran/83064
12459         PR testsuite/85346
12460         * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
12461         test from gfortran.dg to here.
12463 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
12465         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
12466         * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
12468 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
12470         PR middle-end/84955
12471         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
12472         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
12474 2018-04-05  Tom de Vries  <tom@codesourcery.com>
12476         PR target/85204
12477         * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
12479 2018-03-26  Tom de Vries  <tom@codesourcery.com>
12481         PR tree-optimization/85063
12482         * testsuite/libgomp.c/switch-conversion-2.c: New test.
12483         * testsuite/libgomp.c/switch-conversion.c: New test.
12484         * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
12485         * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
12487 2018-03-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
12489         PR fortran/84381
12490         * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
12491         call abort by STOP n.
12492         * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
12493         * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
12494         * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
12495         * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
12496         * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
12497         * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
12498         * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
12499         * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
12500         * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
12501         * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
12502         * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
12503         * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
12504         * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
12505         * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
12506         * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
12507         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
12508         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
12509         * testsuite/libgomp.fortran/associate1.f90: Likewise.
12510         * testsuite/libgomp.fortran/associate2.f90: Likewise.
12511         * testsuite/libgomp.fortran/associate3.f90: Likewise.
12512         * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
12513         * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
12514         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
12515         * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
12516         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
12517         * testsuite/libgomp.fortran/character1.f90: Likewise.
12518         * testsuite/libgomp.fortran/character2.f90: Likewise.
12519         * testsuite/libgomp.fortran/collapse1.f90: Likewise.
12520         * testsuite/libgomp.fortran/collapse2.f90: Likewise.
12521         * testsuite/libgomp.fortran/collapse3.f90: Likewise.
12522         * testsuite/libgomp.fortran/collapse4.f90: Likewise.
12523         * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
12524         * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
12525         * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
12526         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
12527         * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
12528         * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
12529         * testsuite/libgomp.fortran/depend-1.f90: Likewise.
12530         * testsuite/libgomp.fortran/depend-2.f90: Likewise.
12531         * testsuite/libgomp.fortran/depend-3.f90: Likewise.
12532         * testsuite/libgomp.fortran/do1.f90: Likewise.
12533         * testsuite/libgomp.fortran/do2.f90: Likewise.
12534         * testsuite/libgomp.fortran/doacross1.f90: Likewise.
12535         * testsuite/libgomp.fortran/doacross2.f90: Likewise.
12536         * testsuite/libgomp.fortran/doacross3.f90: Likewise.
12537         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
12538         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
12539         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
12540         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
12541         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
12542         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
12543         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
12544         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
12545         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
12546         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
12547         * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
12548         * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
12549         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
12550         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
12551         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
12552         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
12553         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
12554         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
12555         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
12556         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
12557         * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
12558         * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
12559         * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
12560         * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
12561         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
12562         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
12563         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
12564         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
12565         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
12566         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
12567         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
12568         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
12569         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
12570         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
12571         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
12572         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
12573         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
12574         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
12575         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
12576         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
12577         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
12578         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
12579         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
12580         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
12581         * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
12582         * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
12583         * testsuite/libgomp.fortran/lib1.f90: Likewise.
12584         * testsuite/libgomp.fortran/lib2.f: Likewise.
12585         * testsuite/libgomp.fortran/lib3.f: Likewise.
12586         * testsuite/libgomp.fortran/lib4.f90: Likewise.
12587         * testsuite/libgomp.fortran/lock-1.f90: Likewise.
12588         * testsuite/libgomp.fortran/lock-2.f90: Likewise.
12589         * testsuite/libgomp.fortran/nested1.f90: Likewise.
12590         * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
12591         * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
12592         * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
12593         * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
12594         * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
12595         * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
12596         * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
12597         * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
12598         * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
12599         * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
12600         * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
12601         * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
12602         * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
12603         * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
12604         * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
12605         * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
12606         * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
12607         * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
12608         * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
12609         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12610         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
12611         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
12612         * testsuite/libgomp.fortran/pointer1.f90: Likewise.
12613         * testsuite/libgomp.fortran/pointer2.f90: Likewise.
12614         * testsuite/libgomp.fortran/pr25162.f: Likewise.
12615         * testsuite/libgomp.fortran/pr25219.f90: Likewise.
12616         * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
12617         * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
12618         * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
12619         * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
12620         * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
12621         * testsuite/libgomp.fortran/pr28390.f: Likewise.
12622         * testsuite/libgomp.fortran/pr29629.f90: Likewise.
12623         * testsuite/libgomp.fortran/pr32550.f90: Likewise.
12624         * testsuite/libgomp.fortran/pr33880.f90: Likewise.
12625         * testsuite/libgomp.fortran/pr34020.f90: Likewise.
12626         * testsuite/libgomp.fortran/pr35130.f90: Likewise.
12627         * testsuite/libgomp.fortran/pr42162.f90: Likewise.
12628         * testsuite/libgomp.fortran/pr46753.f90: Likewise.
12629         * testsuite/libgomp.fortran/pr48894.f90: Likewise.
12630         * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
12631         * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
12632         * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
12633         * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
12634         * testsuite/libgomp.fortran/pr65597.f90: Likewise.
12635         * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
12636         * testsuite/libgomp.fortran/pr71014.f90: Likewise.
12637         * testsuite/libgomp.fortran/pr81304.f90: Likewise.
12638         * testsuite/libgomp.fortran/pr81841.f90: Likewise.
12639         * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
12640         * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
12641         * testsuite/libgomp.fortran/procptr1.f90: Likewise.
12642         * testsuite/libgomp.fortran/recursion1.f90: Likewise.
12643         * testsuite/libgomp.fortran/reduction1.f90: Likewise.
12644         * testsuite/libgomp.fortran/reduction2.f90: Likewise.
12645         * testsuite/libgomp.fortran/reduction3.f90: Likewise.
12646         * testsuite/libgomp.fortran/reduction4.f90: Likewise.
12647         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
12648         * testsuite/libgomp.fortran/reduction6.f90: Likewise.
12649         * testsuite/libgomp.fortran/reference1.f90: Likewise.
12650         * testsuite/libgomp.fortran/reference2.f90: Likewise.
12651         * testsuite/libgomp.fortran/retval1.f90: Likewise.
12652         * testsuite/libgomp.fortran/retval2.f90: Likewise.
12653         * testsuite/libgomp.fortran/sharing1.f90: Likewise.
12654         * testsuite/libgomp.fortran/sharing2.f90: Likewise.
12655         * testsuite/libgomp.fortran/simd1.f90: Likewise.
12656         * testsuite/libgomp.fortran/simd2.f90: Likewise.
12657         * testsuite/libgomp.fortran/simd3.f90: Likewise.
12658         * testsuite/libgomp.fortran/simd4.f90: Likewise.
12659         * testsuite/libgomp.fortran/simd5.f90: Likewise.
12660         * testsuite/libgomp.fortran/simd6.f90: Likewise.
12661         * testsuite/libgomp.fortran/simd7.f90: Likewise.
12662         * testsuite/libgomp.fortran/stack.f90: Likewise.
12663         * testsuite/libgomp.fortran/strassen.f90: Likewise.
12664         * testsuite/libgomp.fortran/tabs1.f90: Likewise.
12665         * testsuite/libgomp.fortran/tabs2.f: Likewise.
12666         * testsuite/libgomp.fortran/target1.f90: Likewise.
12667         * testsuite/libgomp.fortran/target2.f90: Likewise.
12668         * testsuite/libgomp.fortran/target3.f90: Likewise.
12669         * testsuite/libgomp.fortran/target4.f90: Likewise.
12670         * testsuite/libgomp.fortran/target5.f90: Likewise.
12671         * testsuite/libgomp.fortran/target6.f90: Likewise.
12672         * testsuite/libgomp.fortran/target7.f90: Likewise.
12673         * testsuite/libgomp.fortran/target8.f90: Likewise.
12674         * testsuite/libgomp.fortran/task1.f90: Likewise.
12675         * testsuite/libgomp.fortran/task2.f90: Likewise.
12676         * testsuite/libgomp.fortran/task3.f90: Likewise.
12677         * testsuite/libgomp.fortran/task4.f90: Likewise.
12678         * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
12679         * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
12680         * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
12681         * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
12682         * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
12683         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
12684         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
12685         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
12686         * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
12687         * testsuite/libgomp.fortran/udr1.f90: Likewise.
12688         * testsuite/libgomp.fortran/udr10.f90: Likewise.
12689         * testsuite/libgomp.fortran/udr11.f90: Likewise.
12690         * testsuite/libgomp.fortran/udr12.f90: Likewise.
12691         * testsuite/libgomp.fortran/udr13.f90: Likewise.
12692         * testsuite/libgomp.fortran/udr14.f90: Likewise.
12693         * testsuite/libgomp.fortran/udr15.f90: Likewise.
12694         * testsuite/libgomp.fortran/udr2.f90: Likewise.
12695         * testsuite/libgomp.fortran/udr3.f90: Likewise.
12696         * testsuite/libgomp.fortran/udr4.f90: Likewise.
12697         * testsuite/libgomp.fortran/udr5.f90: Likewise.
12698         * testsuite/libgomp.fortran/udr6.f90: Likewise.
12699         * testsuite/libgomp.fortran/udr7.f90: Likewise.
12700         * testsuite/libgomp.fortran/udr8.f90: Likewise.
12701         * testsuite/libgomp.fortran/udr9.f90: Likewise.
12702         * testsuite/libgomp.fortran/vla1.f90: Likewise.
12703         * testsuite/libgomp.fortran/vla2.f90: Likewise.
12704         * testsuite/libgomp.fortran/vla3.f90: Likewise.
12705         * testsuite/libgomp.fortran/vla4.f90: Likewise.
12706         * testsuite/libgomp.fortran/vla5.f90: Likewise.
12707         * testsuite/libgomp.fortran/vla6.f90: Likewise.
12708         * testsuite/libgomp.fortran/vla7.f90: Likewise.
12709         * testsuite/libgomp.fortran/vla8.f90: Likewise.
12710         * testsuite/libgomp.fortran/workshare1.f90: Likewise.
12711         * testsuite/libgomp.fortran/workshare2.f90: Likewise.
12712         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
12713         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
12714         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
12715         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
12716         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
12717         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
12718         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
12719         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
12720         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
12721         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
12722         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
12723         * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
12724         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
12725         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
12726         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
12727         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
12728         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
12729         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
12730         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
12731         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
12732         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
12733         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
12734         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
12735         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
12736         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
12737         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
12738         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
12739         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
12740         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
12741         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
12742         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
12743         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
12744         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
12745         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12746         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
12747         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
12748         * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
12749         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
12750         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
12751         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
12752         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
12753         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
12754         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
12755         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
12756         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
12757         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
12758         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
12759         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
12760         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
12761         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
12762         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
12763         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
12764         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
12765         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
12766         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
12767         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
12768         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
12769         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
12770         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
12771         * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
12772         * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
12773         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
12774         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
12775         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
12776         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
12777         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
12778         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
12779         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
12780         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
12781         * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
12782         * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
12783         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
12784         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
12785         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
12786         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
12787         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
12788         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
12789         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
12790         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
12791         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12792         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
12793         * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
12794         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
12795         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
12796         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
12797         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
12798         * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
12799         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
12800         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
12801         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
12802         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
12803         * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
12805 2018-03-20  Richard Biener  <rguenther@suse.de>
12807         * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
12808         parallelizable loop.
12810 2018-02-19  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
12812         PR target/84148
12813         * configure: Regenerate.
12815 2018-02-16  Jakub Jelinek  <jakub@redhat.com>
12817         PR fortran/84418
12818         * libgomp.fortran/pr84418-1.f90: New test.
12819         * libgomp.fortran/pr84418-2.f90: New test.
12821 2018-02-14  Jakub Jelinek  <jakub@redhat.com>
12823         PR fortran/84313
12824         * testsuite/libgomp.fortran/threadprivate4.f90: Add
12825         -std=f2003 -fall-intrinsics into dg-additional-options.
12827 2018-02-08  Martin Jambor  <mjambor@suse.cz>
12829         * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
12830         clonable.
12832 2018-02-08  Martin Jambor  <mjambor@suse.cz>
12834         * testsuite/libgomp.hsa.c/staticvar.c: New test.
12836 2018-02-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12838         * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
12839         [__cplusplus]: Declare extern "C".
12841 2018-02-07  Tom de Vries  <tom@codesourcery.com>
12843         PR libgomp/84217
12844         * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
12846 2018-01-29  Christoph Spiel  <cspiel@freenet.de>
12847             Jakub Jelinek  <jakub@redhat.com>
12849         PR libgomp/84096
12850         * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
12851         instead of omp_lock_t.
12853 2018-01-25  Tom de Vries  <tom@codesourcery.com>
12855         PR target/84028
12856         * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
12858 2018-01-24  Tom de Vries  <tom@codesourcery.com>
12860         PR target/83589
12861         * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
12863 2018-01-24  Tom de Vries  <tom@codesourcery.com>
12865         PR target/81352
12866         * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
12868 2018-01-19  Tom de Vries  <tom@codesourcery.com>
12869             Cesar Philippidis  <cesar@codesourcery.com>
12871         PR target/83920
12872         * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
12873         * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
12875 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
12877         Update copyright years.
12879         * libgomp.texi: Bump @copying's copyright year.
12881 2017-12-30  Tom de Vries  <tom@codesourcery.com>
12883         PR libgomp/83046
12884         * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
12885         * testsuite/libgomp.c-c++-common/pr83046.c: New test.
12887 2017-12-27  Tom de Vries  <tom@codesourcery.com>
12889         PR c++/83046
12890         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
12891         (test_nonstatic): Fix return type to workaround PR83046.
12893 2017-12-05  Jakub Jelinek  <jakub@redhat.com>
12895         PR testsuite/83281
12896         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
12897         j suffix instead of i.
12898         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
12899         Likewise.
12901 2017-12-01  Cesar Philippidis  <cesar@codesourcery.com>
12903         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
12904         call to acc_wait (1).
12906 2017-11-24  Jakub Jelinek  <jakub@redhat.com>
12908         PR fortran/81304
12909         * testsuite/libgomp.fortran/pr81304.f90: New test.
12911 2017-11-23  Jakub Jelinek  <jakub@redhat.com>
12913         PR fortran/81841
12914         * libgomp.fortran/pr81841.f90: New test.
12916 2017-11-22  Jakub Jelinek  <jakub@redhat.com>
12918         PR libgomp/83106
12919         * target.c (gomp_target_init): Compute lengths just once and
12920         use them in both malloc size and subsequent copying.
12922 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
12924         * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
12925         * acinclude.m4: Add cet.m4.
12926         * configure: Regenerate.
12927         * Makefile.in: Likewise.
12928         * testsuite/Makefile.in: Likewise.
12930 2017-11-15  Tom de Vries  <tom@codesourcery.com>
12932         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
12933         from asyncwait-1.f90.  Rewrite into C.  Rewrite from float to int.
12934         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
12935         from asyncwait-2.f90.  Rewrite into C.  Rewrite from float to int.
12936         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
12937         from asyncwait-3.f90.  Rewrite into C.  Rewrite from float to int.
12939 2017-11-14  Tom de Vries  <tom@codesourcery.com>
12941         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
12942         non-nvidia devices.
12944 2017-11-07  Jakub Jelinek  <jakub@redhat.com>
12946         PR c++/82835
12947         * testsuite/libgomp.c++/pr82835.C: New test.
12949 2017-11-06  Martin Liska  <mliska@suse.cz>
12951         * testsuite/libgomp.c++/loop-2.C: Return a value
12952         for functions with non-void return type, or change type to void,
12953         or add -Wno-return-type for test.
12954         * testsuite/libgomp.c++/loop-4.C: Likewise.
12955         * testsuite/libgomp.c++/parallel-1.C: Likewise.
12956         * testsuite/libgomp.c++/shared-1.C: Likewise.
12957         * testsuite/libgomp.c++/single-1.C: Likewise.
12958         * testsuite/libgomp.c++/single-2.C: Likewise.
12960 2017-10-31  Tom de Vries  <tom@codesourcery.com>
12962         * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
12963         "do {} while (false)".
12964         (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
12965         after HSA_DEBUG call.
12967 2017-10-28  Jakub Jelinek  <jakub@redhat.com>
12969         * target.c (struct gomp_coalesce_buf): New type.
12970         (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
12971         (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
12972         (gomp_copy_host2dev): Add CBUF argument, if copying into
12973         the cached ranges, memcpy into buffer instead of copying
12974         into device.
12975         (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
12976         Add CBUF argument, pass it through to other calls.
12977         (gomp_map_vars): Aggregate copies from host to device if small enough
12978         and with small enough gaps in between into memcpy into a buffer and
12979         fewer host to device copies from the buffer.
12980         (gomp_update): Adjust gomp_copy_host2dev caller.
12982 2017-10-17  Thomas Schwinge  <thomas@codesourcery.com>
12984         * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
12985         run" directive.
12986         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
12987         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
12988         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
12989         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
12991 2017-10-16  Tom de Vries  <tom@codesourcery.com>
12993         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
12994         openacc_nvidia_accel_selected.
12995         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
12996         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
12997         * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
12998         * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
12999         * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
13000         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
13001         openacc_nvidia_accel_selected. Skip for shared memory device.
13002         * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
13003         * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
13005 2017-10-09  Martin Jambor  <mjambor@suse.cz>
13007         PR hsa/82416
13008         * testsuite/libgomp.hsa.c/pr82416.c: New test.
13010 2017-10-07  Tom de Vries  <tom@codesourcery.com>
13012         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
13013         Remove acc_device_nvidia references.
13014         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
13015         Same.
13017 2017-10-05  Tom de Vries  <tom@codesourcery.com>
13019         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
13020         vector_length(32) clause from acc parallel directive.
13021         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
13023 2017-10-04  Tom de Vries  <tom@codesourcery.com>
13025         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
13026         (main): Reduce sum of arr elements.  Assert that hres is exactly
13027         representable in 32-bit floating point.
13028         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
13029         (main): Reduce sum of arr elements.  Assert that hres and hmres are
13030         exactly representable in 32-bit floating point.
13031         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
13033 2017-09-28  Tom de Vries  <tom@codesourcery.com>
13035         * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
13036         setting.
13037         * testsuite/libgomp.c++/pr69393.C: Same.
13038         * testsuite/libgomp.c++/taskloop-1.C: Same.
13039         * testsuite/libgomp.c++/taskloop-3.C: Same.
13040         * testsuite/libgomp.c++/taskloop-4.C: Same.
13041         * testsuite/libgomp.c/for-4.c: Same.
13042         * testsuite/libgomp.c/pr66199-3.c: Same.
13043         * testsuite/libgomp.c/pr66199-4.c: Same.
13044         * testsuite/libgomp.c/pr66199-6.c: Same.
13045         * testsuite/libgomp.c/taskloop-1.c: Same.
13046         * testsuite/libgomp.c/taskloop-3.c: Same.
13047         * testsuite/libgomp.c/taskloop-4.c: Same.
13048         * testsuite/libgomp.fortran/aligned1.f03: Same.
13049         * testsuite/libgomp.fortran/condinc1.f: Same.
13050         * testsuite/libgomp.fortran/condinc3.f90: Same.
13051         * testsuite/libgomp.fortran/crayptr1.f90: Same.
13052         * testsuite/libgomp.fortran/crayptr2.f90: Same.
13053         * testsuite/libgomp.fortran/crayptr3.f90: Same.
13054         * testsuite/libgomp.fortran/omp_cond1.f: Same.
13055         * testsuite/libgomp.fortran/omp_cond3.F90: Same.
13056         * testsuite/libgomp.fortran/pr66199-1.f90: Same.
13057         * testsuite/libgomp.fortran/pr66199-2.f90: Same.
13058         * testsuite/libgomp.fortran/recursion1.f90: Same.
13059         * testsuite/libgomp.fortran/target2.f90: Same.
13060         * testsuite/libgomp.fortran/target5.f90: Same.
13061         * testsuite/libgomp.fortran/task3.f90: Same.
13063 2017-09-28  Tom de Vries  <tom@codesourcery.com>
13065         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
13066         vector_length(32) clause from acc parallel directive.
13067         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
13069 2017-09-27  Tom de Vries  <tom@codesourcery.com>
13071         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
13072         Remove acc_device_nvidia references.
13074 2017-09-16  Tom de Vries  <tom@codesourcery.com>
13076         PR c/81875
13077         * testsuite/libgomp.c-c++-common/pr81875.c: New test.
13079 2017-09-14  Tom de Vries  <tom@codesourcery.com>
13081         * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
13082         * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
13083         * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
13084         * testsuite/libgomp.c/c.exp: Include test-cases from
13085         libgomp.c-c++-common.
13086         * testsuite/libgomp.c++/c++.exp: Same.  Force c++-mode compilation of .c
13087         files.
13089 2017-09-14  Jakub Jelinek  <jakub@redhat.com>
13091         PR c++/81314
13092         * testsuite/libgomp.c++/pr81314.C: New test.
13094 2017-09-03  Gerald Pfeifer  <gerald@pfeifer.com>
13096         * libgomp.texi (Top): www.openacc.org now uses https.
13097         (Enabling OpenACC): Ditto.
13098         (acc_get_num_devices): Ditto.
13099         (acc_set_device_type): Ditto.
13100         (acc_get_device_type): Ditto.
13101         (acc_set_device_num): Ditto.
13102         (acc_get_device_num): Ditto.
13103         (acc_async_test): Ditto.
13104         (acc_async_test_all): Ditto.
13105         (acc_wait): Ditto.
13106         (acc_wait_all): Ditto.
13107         (acc_wait_all_async): Ditto.
13108         (acc_wait_async): Ditto.
13109         (acc_init): Ditto.
13110         (acc_shutdown): Ditto.
13111         (acc_on_device): Ditto.
13112         (acc_malloc): Ditto.
13113         (acc_free): Ditto.
13114         (acc_copyin): Ditto.
13115         (acc_present_or_copyin): Ditto.
13116         (acc_create): Ditto.
13117         (acc_present_or_create): Ditto.
13118         (acc_copyout): Ditto.
13119         (acc_delete): Ditto.
13120         (acc_update_device): Ditto.
13121         (acc_update_self): Ditto.
13122         (acc_map_data): Ditto.
13123         (acc_unmap_data): Ditto.
13124         (acc_deviceptr): Ditto.
13125         (acc_hostptr): Ditto.
13126         (acc_is_present): Ditto.
13127         (acc_memcpy_to_device): Ditto.
13128         (acc_memcpy_from_device): Ditto.
13129         (acc_get_current_cuda_device): Ditto.
13130         (acc_get_current_cuda_context): Ditto.
13131         (acc_get_cuda_stream): Ditto.
13132         (acc_set_cuda_stream): Ditto.
13133         (ACC_DEVICE_TYPE): Ditto.
13134         (ACC_DEVICE_NUM): Ditto.
13135         (OpenACC Library Interoperability): Ditto.
13137 2017-08-09  Jakub Jelinek  <jakub@redhat.com>
13139         PR c/81687
13140         * testsuite/libgomp.c/pr81687-1.c: New test.
13141         * testsuite/libgomp.c/pr81687-2.c: New test.
13143 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
13145         PR c/69389
13146         * testsuite/libgomp.c/pr69389.c: New test.
13147         * testsuite/libgomp.c++/pr69389.C: New test.
13149 2017-08-07  Tom de Vries  <tom@codesourcery.com>
13151         PR middle-end/78266
13152         * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
13153         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
13155 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
13157         PR c/45784
13158         * testsuite/libgomp.c/pr45784.c: New test.
13159         * testsuite/libgomp.c++/pr45784.C: New test.
13161 2017-07-19  Tom de Vries  <tom@codesourcery.com>
13163         * testsuite/libgomp.oacc-c/vec.c: New test.
13165 2017-07-03  Tom de Vries  <tom@codesourcery.com>
13167         * plugin/plugin-hsa.c: Fix secure_getenv.h include.
13169 2017-06-27  Tom de Vries  <tom@codesourcery.com>
13171         * plugin/plugin-nvptx.c (notify_var): New function.
13172         (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
13174 2017-06-27  Tom de Vries  <tom@codesourcery.com>
13176         * env.c (parse_unsigned_long_1): Factor out of ...
13177         (parse_unsigned_long): ... here.
13178         (parse_int_1): Factor out of ...
13179         (parse_int): ... here.
13180         (parse_int_secure): New function.
13181         (initialize_env): Use parse_int_secure for GOMP_DEBUG.
13182         * secure_getenv.h: Factor out of ...
13183         * plugin/plugin-hsa.c: ... here.
13184         * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
13186 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
13188         PR c++/81130
13189         * testsuite/libgomp.c++/pr81130.C: New test.
13191 2017-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13193         * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
13194         default args.
13195         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
13196         dg-xfail-run-if default args.
13198 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13200         * testsuite/libgomp.c/pr39591-2.c: Fix test case.
13201         * testsuite/libgomp.c/pr39591-3.c: Likewise.
13203 2017-05-30  Jakub Jelinek  <jakub@redhat.com>
13205         PR libgomp/80822
13206         * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
13207         (gomp_affinity_init_level): Use it.  Always analyze the core and thread
13208         sibling lists, depending on level just pick up what CPUs to put
13209         together into a place vs. whether add multiple ordered places.
13211 2017-05-24  Thomas Schwinge  <thomas@codesourcery.com>
13213         * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
13214         * libgomp.map (OACC_2.0.1): Add these.
13215         * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
13216         for "acc_wait", and "acc_wait_all", respectively.
13217         * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
13218         for "acc_wait", and "acc_wait_all", respectively.
13219         * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
13220         * libgomp.texi (acc_wait, acc_wait_all): Update.
13221         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
13222         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
13223         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
13225         * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
13226         acc_present_or_copyin and acc_present_or_create procedures,
13227         respectively.
13228         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
13229         generally different variants of OpenACC Runtime Library functions.
13230         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
13232         * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
13233         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
13235         * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
13236         of preprocessor definitions.
13237         * libgomp.h (strong_alias): Guard by "#ifdef
13238         HAVE_ATTRIBUTE_ALIAS".
13239         * oacc-mem.c: Provide "acc_pcreate" as alias for
13240         "acc_present_or_create", and "acc_pcopyin" as alias for
13241         "acc_present_or_copyin".
13242         * libgomp.map: New version "OACC_2.0.1".
13243         (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
13244         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
13245         its content into...
13246         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
13247         Extend testing.
13249         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
13250         when disabling nvptx offloading.
13252 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
13254         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
13255         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
13256         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
13258         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
13259         * testsuite/lib/libgomp.exp
13260         (check_effective_target_openacc_nvidia_accel_configured): New
13261         proc.
13262         * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
13263         (check_effective_target_c++): New procs.
13264         * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
13265         (check_effective_target_c++): Likewise.
13267 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
13269         PR middle-end/80809
13270         * testsuite/libgomp.c/pr80809-2.c: New test.
13271         * testsuite/libgomp.c/pr80809-3.c: New test.
13273         PR middle-end/80809
13274         * testsuite/libgomp.c/pr80809-1.c: New test.
13276         PR middle-end/80853
13277         * testsuite/libgomp.c/pr80853.c: New test.
13279 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
13281         * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
13282         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
13283         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
13284         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
13285         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
13287         * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
13288         Debug output for failure.
13290 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13292         * testsuite/lib/libgomp.exp: Load scanlang.exp.
13294 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
13296         PR bootstrap/80531
13297         * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
13298         bootstrap compare failures.
13300 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
13302         * testsuite/libgomp.c/target-36.c: New testcase.
13304 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
13306         * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
13307         instead of char.
13309 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
13311         PR libgomp/80394
13312         * testsuite/libgomp.c/pr80394.c: New test.
13314 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
13316         PR libgomp/79876
13317         * config/posix/thread-stacksize.h: New file.
13318         * config/darwin/thread-stacksize.h: New file.
13319         * config/nvptx/thread-stacksize.h: New file.
13320         * env.c: Include thread-stacksize.h.
13321         (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
13322         instead of 0.  Call pthread_attr_setstacksize even if
13323         GOMP_DEFAULT_STACKSIZE is non-zero.
13325 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
13327         * env.c (initialize_env): Initialize stacksize to 0.
13329 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
13331         PR c++/80029
13332         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
13334 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
13336         PR c/79940
13337         * testsuite/libgomp.c/pr79940.c: New test.
13339 2017-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13341         * testsuite/libgomp.c/pr48591.c: Enable on all __float128
13342         targets.
13343         Add __float128 options.
13345 2017-02-11  John David Anglin  <danglin@gcc.gnu.org>
13347         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
13348         hppa*-*-* dg-skip-if directive.
13350 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
13352         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
13353         dg-skip-if directive into a comment.
13355 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
13356             Chung-Lin Tang  <cltang@codesourcery.com>
13358         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
13359         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
13360         add additional case.
13361         * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
13362         "openacc_nvidia_accel_selected".
13363         * libgomp.oacc-fortran/nested-function-1.f90 (test2):
13364         Add num_workers(8) clause.
13366 2017-02-08  John David Anglin  <danglin@gcc.gnu.org>
13368         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
13369         hppa*-*-*.
13370         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
13371         include complex.h on hppa*-*-hpux*.
13372         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
13374 2017-02-02  Thomas Schwinge  <thomas@codesourcery.com>
13376         * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
13378         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
13379         GOMP_OFFLOAD_openacc_exec.  Adjust all users.
13380         (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
13381         GOMP_OFFLOAD_openacc_cuda_get_current_device.  Adjust all users.
13382         (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
13383         GOMP_OFFLOAD_openacc_cuda_get_current_context.  Adjust all users.
13384         (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
13385         GOMP_OFFLOAD_openacc_cuda_get_stream.  Adjust all users.
13386         (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
13387         GOMP_OFFLOAD_openacc_cuda_set_stream.  Adjust all users.
13389 2017-01-31  Thomas Schwinge  <thomas@codesourcery.com>
13391         * libgomp-plugin.h: #include <stdbool.h>.
13392         (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
13393         (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
13394         (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
13395         (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
13396         (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
13397         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
13398         (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
13399         (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
13400         (GOMP_OFFLOAD_openacc_register_async_cleanup)
13401         (GOMP_OFFLOAD_openacc_async_test)
13402         (GOMP_OFFLOAD_openacc_async_test_all)
13403         (GOMP_OFFLOAD_openacc_async_wait)
13404         (GOMP_OFFLOAD_openacc_async_wait_async)
13405         (GOMP_OFFLOAD_openacc_async_wait_all)
13406         (GOMP_OFFLOAD_openacc_async_wait_all_async)
13407         (GOMP_OFFLOAD_openacc_async_set_async)
13408         (GOMP_OFFLOAD_openacc_create_thread_data)
13409         (GOMP_OFFLOAD_openacc_destroy_thread_data)
13410         (GOMP_OFFLOAD_openacc_get_current_cuda_device)
13411         (GOMP_OFFLOAD_openacc_get_current_cuda_context)
13412         (GOMP_OFFLOAD_openacc_get_cuda_stream)
13413         (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
13414         * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
13415         these.
13416         * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
13417         (GOMP_OFFLOAD_unload_image): Fix argument types.
13419 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
13421         * testsuite/lib/libgomp.exp
13422         (check_effective_target_hsa_offloading_selected_nocache): Fix up
13423         check_compile invocation.  Fix up removal of executable.  Drop
13424         bogus "2>&1" argument.
13426         * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
13427         directive.
13429 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
13430             Martin Jambor  <mjambor@suse.cz>
13432         * plugin/hsa.h: Moved to top level include.
13433         * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
13435 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
13437         PR other/79046
13438         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
13439         of cat to get version from BASE-VER file.
13440         * testsuite/Makefile.in: Regenerated.
13442 2017-01-19  Jakub Jelinek  <jakub@redhat.com>
13444         * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
13445         for _WIN64.
13447 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
13449         * plugin/hsa.h: Add GCC runtime library exception.
13450         * plugin/hsa_ext_finalize.h: Likewise.
13452         * plugin/configfrag.ac: For --without-cuda-driver don't initialize
13453         CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB.  If both
13454         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
13455         cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
13456         plugin/include/cuda as include dir and -ldl instead of -lcuda as
13457         library to link ptx plugin against.
13458         * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
13459         (CUDA_CALLS): Define.
13460         (cuda_lib, cuda_lib_inited): New variables.
13461         (init_cuda_lib): New function.
13462         (CUDA_CALL_PREFIX): Define.
13463         (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
13464         (CUDA_CALL): Use FN instead of (FN).
13465         (CUDA_CALL_NOCHECK): Define.
13466         (cuda_error, fini_streams_for_device, select_stream_for_async,
13467         nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
13468         event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
13469         nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
13470         nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
13471         CUDA_CALL_NOCHECK.
13472         (nvptx_init): Call init_cuda_lib, if it fails, return false.  Use
13473         CUDA_CALL_NOCHECK.
13474         (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
13475         Use CUDA_CALL_NOCHECK.
13476         * plugin/cuda/cuda.h: New file.
13477         * config.h.in: Regenerated.
13478         * configure: Regenerated.
13480         PR other/79046
13481         * configure.ac: Add GCC_BASE_VER.
13482         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
13483         get version from BASE-VER file.
13484         * testsuite/Makefile.in: Regenerated.
13485         * configure: Regenerated.
13486         * Makefile.in: Regenerated.
13488 2017-01-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13490         PR libgomp/60670
13491         * Makefile.am: Make fincludedir multilib-aware.
13492         * Makefile.in: Regenerate.
13494 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
13496         Update copyright years.
13498         * libgomp.texi: Bump @copying's copyright year.
13500 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13502         * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
13503         pthread_spinlock_t instead of gomp_mutex_t lock.
13504         (gomp_get_thread_pool): Likewise.
13505         (gomp_release_thread_pool): Likewise.
13506         * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
13507         Likewise.
13509 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13511         * config/rtems/pool.h (gomp_get_thread_pool): Return proper
13512         thread pool in case nthreads == 1.
13514 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
13516         * config/nvptx/env.c: Delete.
13517         * icv.c: Move definitions of ICV variables back ...
13518         * env.c: ...here.  Do not compile environment-related functionality if
13519         LIBGOMP_OFFLOADED_ONLY is set.
13521 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
13523         * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
13524         (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
13525         * configure: Regenerate.
13526         * config.h.in: Likewise.
13528 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
13530         * Makefile.in: Regenerate with automake-1.11.6.
13531         * aclocal.m4: Likewise.
13532         * configure: Likewise.
13533         * testsuite/Makefile.in: Likewise.
13535 2016-11-28  Alexander Monakov  <amonakov@ispras.ru>
13537         * config/nvptx/critical.c: Delete to use generic implementation.
13539 2016-11-28  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
13541         * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
13542         ../../affinity.c as fallback.
13543         * config/nvptx/affinity.c: Delete to use fallback implementation.
13545 2016-11-23  Alexander Monakov  <amonakov@ispras.ru>
13546             Jakub Jelinek  <jakub@redhat.com>
13547             Dmitry Melnik  <dm@ispras.ru>
13549         * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
13550         * Makefile.in. Regenerate.
13551         * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
13552         (LIBGOMP_USE_PTHREADS): ...here; new define.
13553         * configure: Regenerate.
13554         * config.h.in: Likewise.
13555         * config/posix/affinity.c: Move to...
13556         * affinity.c: ...here (new file).  Guard use of Pthreads-specific
13557         interface by LIBGOMP_USE_PTHREADS. 
13558         * critical.c: Split out GOMP_atomic_{start,end} into...
13559         * atomic.c: ...here (new file).
13560         * env.c: Split out ICV definitions into...
13561         * icv.c: ...here (new file) and...
13562         * icv-device.c: ...here. New file.
13563         * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
13564         (gomp_destroy_lock_30): Ditto.
13565         (gomp_set_lock_30): Ditto.
13566         (gomp_unset_lock_30): Ditto.
13567         (gomp_test_lock_30): Ditto.
13568         (gomp_init_nest_lock_30): Ditto.
13569         (gomp_destroy_nest_lock_30): Ditto.
13570         (gomp_set_nest_lock_30): Ditto.
13571         (gomp_unset_nest_lock_30): Ditto.
13572         (gomp_test_nest_lock_30): Ditto.
13573         * lock.c: New.
13574         * config/nvptx/lock.c: New.
13575         * config/nvptx/bar.c: New.
13576         * config/nvptx/bar.h: New.
13577         * config/nvptx/doacross.h: New.
13578         * config/nvptx/error.c: New.
13579         * config/nvptx/icv-device.c: New.
13580         * config/nvptx/mutex.h: New.
13581         * config/nvptx/pool.h: New.
13582         * config/nvptx/proc.c: New.
13583         * config/nvptx/ptrlock.h: New.
13584         * config/nvptx/sem.h: New.
13585         * config/nvptx/simple-bar.h: New.
13586         * config/nvptx/target.c: New.
13587         * config/nvptx/task.c: New.
13588         * config/nvptx/team.c: New.
13589         * config/nvptx/time.c: New.
13590         * config/posix/simple-bar.h: New.
13591         * libgomp.h: Guard pthread.h inclusion.  Include simple-bar.h.
13592         (gomp_num_teams_var): Declare.
13593         (struct gomp_thread_pool): Change threads_dock member to
13594         gomp_simple_barrier_t.
13595         [__nvptx__] (gomp_thread): New implementation.
13596         (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
13597         (gomp_thread_destructor): Ditto.
13598         (gomp_init_thread_affinity): Ditto.
13599         * team.c: Guard uses of Pthreads-specific interfaces by
13600         LIBGOMP_USE_PTHREADS.  Adjust all uses of threads_dock.
13601         (gomp_free_thread) [__nvptx__]: Do not call 'free'.
13602         * config/nvptx/alloc.c: Delete.
13603         * config/nvptx/barrier.c: Ditto.
13604         * config/nvptx/fortran.c: Ditto.
13605         * config/nvptx/iter.c: Ditto.
13606         * config/nvptx/iter_ull.c: Ditto.
13607         * config/nvptx/loop.c: Ditto.
13608         * config/nvptx/loop_ull.c: Ditto.
13609         * config/nvptx/ordered.c: Ditto.
13610         * config/nvptx/parallel.c: Ditto.
13611         * config/nvptx/priority_queue.c: Ditto.
13612         * config/nvptx/sections.c: Ditto.
13613         * config/nvptx/single.c: Ditto.
13614         * config/nvptx/splay-tree.c: Ditto.
13615         * config/nvptx/work.c: Ditto.
13616         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
13617         -foffload=-lgfortran in addition to -lgfortran.
13618         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
13619         * plugin/plugin-nvptx.c: Include <limits.h>.
13620         (struct targ_fn_descriptor): Add new fields.
13621         (struct ptx_device): Ditto.  Set them...
13622         (nvptx_open_device): ...here.
13623         (nvptx_adjust_launch_bounds): New.
13624         (nvptx_host2dev): Allow NULL 'nvthd'.
13625         (nvptx_dev2host): Ditto.
13626         (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
13627         (link_ptx): Adjust log sizes.
13628         (nvptx_host2dev): Allow NULL 'nvthd'.
13629         (nvptx_dev2host): Ditto.
13630         (nvptx_set_clocktick): New.  Use it...
13631         (GOMP_OFFLOAD_load_image): ...here.  Set new targ_fn_descriptor
13632         fields.
13633         (GOMP_OFFLOAD_dev2dev): New.
13634         (nvptx_adjust_launch_bounds): New.
13635         (nvptx_stacks_size): New.
13636         (nvptx_stacks_alloc): New.
13637         (nvptx_stacks_free): New.
13638         (GOMP_OFFLOAD_run): New.
13639         (GOMP_OFFLOAD_async_run): New (stub).
13641 2016-11-23  Martin Jambor  <mjambor@suse.cz>
13643         * testsuite/libgomp.hsa.c/bits-insns.c: New test.
13644         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
13645         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
13647 2016-11-23  Martin Liska  <mliska@suse.cz>
13648             Martin Jambor  <mjambor@suse.cz>
13650         * plugin/hsa.h: New file.
13651         * plugin/hsa_ext_finalize.h: New file.
13652         * plugin/configfrag.ac: Remove hsa-kmt-lib test.  Added checks for
13653         header file unistd.h, and functions secure_getenv, __secure_getenv,
13654         getuid, geteuid, getgid and getegid.
13655         * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
13656         -D_GNU_SOURCE.
13657         * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
13658         Handle various cases of secure_getenv presence, add an implementation
13659         when we can test effective UID and GID.
13660         (struct hsa_runtime_fn_info): New structure.
13661         (hsa_runtime_fn_info hsa_fns): New variable.
13662         (hsa_runtime_lib): Likewise.
13663         (support_cpu_devices): Likewise.
13664         (init_enviroment_variables): Load newly introduced ENV
13665         variables.
13666         (hsa_warn): Call hsa run-time functions via hsa_fns structure.
13667         (hsa_fatal): Likewise.
13668         (DLSYM_FN): New macro.
13669         (init_hsa_runtime_functions): New function.
13670         (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
13671         structure.  Depending on environment, also allow CPU devices.
13672         (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
13673         (get_kernarg_memory_region): Likewise.
13674         (GOMP_OFFLOAD_init_device): Likewise.
13675         (destroy_hsa_program): Likewise.
13676         (init_basic_kernel_info): New function.
13677         (GOMP_OFFLOAD_load_image): Use it.
13678         (create_and_finalize_hsa_program): Call hsa run-time functions via
13679         hsa_fns structure.
13680         (create_single_kernel_dispatch): Likewise.
13681         (release_kernel_dispatch): Likewise.
13682         (init_single_kernel): Likewise.
13683         (parse_target_attributes): Allow up multiple HSA grid dimensions.
13684         (get_group_size): New function.
13685         (run_kernel): Likewise.
13686         (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
13687         (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
13688         structure.
13689         * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
13690         * testsuite/libgomp-test-support.exp.in: Likewise.
13691         * Makefile.in: Regenerated.
13692         * aclocal.m4: Likewise.
13693         * config.h.in: Likewise.
13694         * configure: Likewise.
13695         * testsuite/Makefile.in: Likewise.
13697 2016-11-15  Martin Jambor  <mjambor@suse.cz>
13698             Alexander Monakov  <amonakov@ispras.ru>
13700         * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
13701         mapping clauses to target constructs.
13702         * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
13704 2016-11-15  Matthias Klose  <doko@ubuntu.com>
13706         * configure: Regenerate.
13708 2016-11-10  Jakub Jelinek  <jakub@redhat.com>
13710         * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
13711         * omp_lib.h.in (openmp_version): Likewise.
13712         * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
13713         of 201307.
13714         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
13716         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
13717         (fib_wrapper): Add map(from: x) clause.
13718         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
13719         (e_53_2): Likewise.
13720         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
13721         (accum): Add map(tmp) clause.
13722         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
13723         (accum): Add map(tofrom: tmp) clause.
13724         * testsuite/libgomp.fortran/examples-4/target_data-3.f90
13725         (gramSchmidt): Likewise.
13726         * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
13727         map(tofrom: sum) clause.
13728         * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
13729         map (alloc: a, l) clause.  Add defaultmap(tofrom: scalar) clause.
13730         * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
13731         only allowed on the loop iterator.
13732         * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
13733         * testsuite/libgomp.fortran/taskloop2.f90: New test.
13734         * testsuite/libgomp.fortran/taskloop4.f90: New test.
13735         * testsuite/libgomp.fortran/doacross1.f90: New test.
13736         * testsuite/libgomp.fortran/doacross3.f90: New test.
13737         * testsuite/libgomp.fortran/taskloop1.f90: New test.
13738         * testsuite/libgomp.fortran/taskloop3.f90: New test.
13739         * testsuite/libgomp.fortran/doacross2.f90: New test.
13740         * testsuite/libgomp.c/doacross-1.c (main): Add missing
13741         #pragma omp atomic read.
13742         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
13743         * testsuite/libgomp.c/doacross-3.c (main): Likewise.
13745 2016-11-02  Cesar Philippidis  <cesar@codesourcery.com>
13746             Nathan Sidwell  <nathan@acm.org>
13748         * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
13749         to determine default geometry.
13750         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
13751         dimension.
13753 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
13755         * hashtab.h: Use standard GPLv3 with runtime exception
13756         boilerplate.
13758 2016-10-27  Aldy Hernandez  <aldyh@redhat.com>
13760         * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
13761         size when allocating new thread.
13763 2016-09-14  Marek Polacek  <polacek@redhat.com>
13765         * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
13767 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
13769         PR fortran/71014
13770         * testsuite/libgomp.fortran/pr71014.f90: New test.
13772 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
13774         PR middle-end/70895
13775         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
13776         firstprivate clauses.
13777         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
13778         copy clauses.
13779         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
13780         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
13781         * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
13782         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
13783         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
13784         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
13785         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13786         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
13787         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13788         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13789         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13790         * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
13792 2016-08-14  Chung-Lin Tang  <cltang@codesourcery.com>
13794         PR fortran/70598
13795         * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
13797 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
13799         PR c++/58706
13800         * testsuite/libgomp.c++/pr58706.C: New test.
13802 2016-08-04  Thomas Schwinge  <thomas@codesourcery.com>
13804         * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
13805         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
13806         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
13807         Likewise.
13808         * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
13809         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
13810         Likewise.
13811         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
13813         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
13814         test, and don't hardcode -O0.
13816 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
13818         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
13820 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
13822         * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
13823         test.
13825 2016-07-03  H.J. Lu  <hongjiu.lu@intel.com>
13827         PR middle-end/71734
13828         * testsuite/libgomp.fortran/pr71734-1.f90: New test.
13829         * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
13831 2016-07-01  Jakub Jelinek  <jakub@redhat.com>
13833         PR fortran/71717
13834         * testsuite/libgomp.fortran/associate3.f90: New test.
13836 2016-06-17  Jakub Jelinek  <jakub@redhat.com>
13838         * testsuite/libgomp.c++/target-21.C: New test.
13840 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
13842         * testsuite/libgomp.c++/target-20.C: New test.
13844 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
13845             Cesar Philippidis  <cesar@codesourcery.com>
13847         PR middle-end/71373
13848         * libgomp.oacc-c/nested-function-1.c: New file.
13849         * libgomp.oacc-c/nested-function-2.c: Likewise.
13850         * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
13851         * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
13852         * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
13854 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
13856         PR c/71381
13857         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
13858         "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
13859         * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
13861 2016-06-03  Chung-Lin Tang  <cltang@codesourcery.com>
13863         * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
13864         * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
13866 2016-06-01  Cesar Philippidis  <cesar@codesourcery.com>
13868         PR c/70688
13869         * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
13871 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
13873         * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
13874         instead of invalid schedule(static, 0).
13875         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
13877 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
13879         * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
13880         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
13881         parameter, use to set async stream around call to gomp_unmap_vars,
13882         call gomp_unmap_vars() with 'do_copyfrom' set to true.
13883         * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
13884         (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
13885         events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
13886         (event_add): Add int parameter, initialize 'val' field when
13887         adding new ptx_event struct.
13888         (nvptx_evec): Adjust event_add() call arguments.
13889         (nvptx_host2dev): Likewise.
13890         (nvptx_dev2host): Likewise.
13891         (nvptx_wait_async): Likewise.
13892         (nvptx_wait_all_async): Likewise.
13893         (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
13894         pass to event_add() call.
13895         * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
13896         parameter.
13897         * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
13898         call openacc.register_async_cleanup_func() hook.
13899         * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
13900         * target.c (gomp_copy_from_async): Delete function.
13901         (gomp_map_vars): Remove async_refcount.
13902         (gomp_unmap_vars): Likewise.
13903         (gomp_load_image_to_device): Likewise.
13904         (omp_target_associate_ptr): Likewise.
13905         * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
13906         (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
13907         (gomp_copy_from_async): Remove.
13909 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
13911         * target.c (gomp_device_copy): New function.
13912         (gomp_copy_host2dev): Likewise.
13913         (gomp_copy_dev2host): Likewise.
13914         (gomp_free_device_memory): Likewise.
13915         (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
13916         (gomp_map_pointer): Likewise.
13917         (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
13918         NULL value from alloc_func plugin hook.
13919         (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
13920         (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
13921         (gomp_unmap_vars): Likewise.
13922         (gomp_update): Adjust to call gomp_copy_dev2host and
13923         gomp_copy_host2dev functions.
13924         (gomp_unload_image_from_device): Handle false value from
13925         unload_image_func plugin hook.
13926         (gomp_init_device): Handle false value from init_device_func
13927         plugin hook.
13928         (gomp_exit_data): Adjust to call gomp_copy_dev2host.
13929         (omp_target_free): Adjust to call gomp_free_device_memory.
13930         (omp_target_memcpy): Handle return values from host2dev_func,
13931         dev2host_func, and dev2dev_func plugin hooks.
13932         (omp_target_memcpy_rect_worker): Likewise.
13933         (gomp_target_fini): Handle false value from fini_device_func
13934         plugin hook.
13935         * libgomp.h (struct gomp_device_descr): Adjust return type of
13936         init_device_func, fini_device_func, unload_image_func, free_func,
13937         dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
13938         * oacc-init.c (acc_shutdown_1): Handle false value from
13939         fini_device_func plugin hook.
13940         * oacc-host.c (host_init_device): Change return type to bool.
13941         (host_fini_device): Likewise.
13942         (host_unload_image): Likewise.
13943         (host_free): Likewise.
13944         (host_dev2host): Likewise.
13945         (host_host2dev): Likewise.
13946         * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
13947         (acc_memcpy_to_device): Likewise.
13948         (acc_memcpy_from_device): Likewise.
13949         (delete_copyout): Add libfnname parameter, handle free_func
13950         hook fatal error case.
13951         (acc_delete): Adjust delete_copyout call.
13952         (acc_copyout): Likewise.
13953         (update_dev_host): Move gomp_mutex_unlock to after
13954         host2dev/dev2host hook calls.
13956         * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
13957         to 'hsa_error_msg', for clarity.
13958         (hsa_fatal): Likewise.
13959         (hsa_error): New function.
13960         (init_hsa_context): Change return type to bool, adjust to return
13961         false on error.
13962         (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
13963         return value.
13964         (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
13965         return false on error.
13966         (get_agent_info): Adjust to return NULL on error.
13967         (destroy_hsa_program): Change return type to bool, adjust to
13968         return false on error.
13969         (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
13970         (destroy_module): Change return type to bool, adjust to
13971         return false on error.
13972         (GOMP_OFFLOAD_unload_image): Likewise.
13973         (GOMP_OFFLOAD_fini_device): Likewise.
13974         (GOMP_OFFLOAD_alloc): Change to return NULL when called.
13975         (GOMP_OFFLOAD_free): Change to return false when called.
13976         (GOMP_OFFLOAD_dev2host): Likewise.
13977         (GOMP_OFFLOAD_host2dev): Likewise.
13978         (GOMP_OFFLOAD_dev2dev): Likewise.
13980         * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
13981         (CUDA_CALL): Likewise.
13982         (CUDA_CALL_ASSERT): Likewise.
13983         (map_init): Change return type to bool, use CUDA_CALL* macros.
13984         (map_fini): Likewise.
13985         (init_streams_for_device): Change return type to bool, adjust
13986         call to map_init.
13987         (fini_streams_for_device): Change return type to bool, adjust
13988         call to map_fini.
13989         (select_stream_for_async): Release stream_lock before calls to
13990         GOMP_PLUGIN_fatal, adjust call to map_init.
13991         (nvptx_init): Use CUDA_CALL* macros.
13992         (nvptx_attach_host_thread_to_device): Change return type to bool,
13993         use CUDA_CALL* macros.
13994         (nvptx_open_device): Use CUDA_CALL* macros.
13995         (nvptx_close_device): Change return type to bool, use CUDA_CALL*
13996         macros.
13997         (nvptx_get_num_devices): Use CUDA_CALL* macros.
13998         (link_ptx): Change return type to bool, use CUDA_CALL* macros.
13999         (nvptx_exec): Use CUDA_CALL* macros.
14000         (nvptx_alloc): Use CUDA_CALL* macros.
14001         (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
14002         (nvptx_host2dev): Likewise.
14003         (nvptx_dev2host): Likewise.
14004         (nvptx_wait): Use CUDA_CALL* macros.
14005         (nvptx_wait_async): Likewise.
14006         (nvptx_wait_all): Likewise.
14007         (nvptx_wait_all_async): Likewise.
14008         (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
14009         use CUDA_CALL* macros, adjust call to map_fini.
14010         (GOMP_OFFLOAD_init_device): Change return type to bool,
14011         adjust code accordingly.
14012         (GOMP_OFFLOAD_fini_device): Likewise.
14013         (GOMP_OFFLOAD_load_image): Adjust calls to
14014         nvptx_attach_host_thread_to_device/link_ptx to handle errors,
14015         use CUDA_CALL* macros.
14016         (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
14017         return code.
14018         (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
14019         (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
14020         handle error return.
14021         (GOMP_OFFLOAD_dev2host): Likewise.
14022         (GOMP_OFFLOAD_host2dev): Likewise.
14023         (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
14024         (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
14026 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
14028         * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
14029         (acc_free): Likewise.
14030         (acc_memcpy_to_device): Likewise.
14031         (acc_memcpy_from_device): Likewise.
14032         (acc_deviceptr): Likewise.
14033         (acc_hostptr): Likewise.
14034         (acc_is_present): Likewise.
14035         (acc_map_data): Likewise.
14036         (acc_unmap_data): Likewise.
14037         (present_create_copy): Likewise.
14038         (delete_copyout): Likewise.
14039         (update_dev_host): Likewise.
14040         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
14041         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
14042         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
14043         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
14044         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
14045         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
14046         it only runs on nvptx targets.
14047         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
14048         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
14049         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14050         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14051         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14052         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14053         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14054         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14055         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14056         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
14057         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14058         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14059         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14060         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14061         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14062         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14063         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14064         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14065         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14066         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14067         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14068         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14069         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14071 2016-05-23  Martin Jambor  <mjambor@suse.cz>
14073         * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
14075 2016-05-17  Chung-Lin Tang  <cltang@codesourcery.com>
14077         * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
14078         to gomp_init_targets_once.
14079         (acc_set_device_type): Remove !cached_base_dev condition on call to
14080         gomp_init_targets_once, move call to before acc_device_lock acquire,
14081         to avoid deadlock.
14082         (acc_get_device_num): Remove !cached_base_dev condition on call to
14083         gomp_init_targets_once.
14084         (acc_set_device_num): Likewise.
14086 2016-05-16  Martin Jambor  <mjambor@suse.cz>
14088         * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
14090 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
14092         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
14093         expected partitioning.
14095 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
14097         PR middle-end/70626
14098         * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
14099         * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
14100         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
14102 2016-04-21  Alexander Monakov  <amonakov@ispras.ru>
14104         * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
14105         non-fatal.
14107 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
14109         PR middle-end/70680
14110         * testsuite/libgomp.c/pr70680-1.c: New test.
14111         * testsuite/libgomp.c/pr70680-2.c: New test.
14113 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
14115         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
14116         pass parameter variables to subroutines.
14118 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
14120         PR middle-end/70643
14121         * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
14123 2016-04-13  Cesar Philippidis  <cesar@codesourcery.com>
14125         PR testsuite/68242
14126         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
14127         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
14129 2016-04-12  Thomas Schwinge  <thomas@codesourcery.com>
14131         * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
14132         GOACC_parallel_keyed, restore GOACC_parallel prototype, new
14133         GOACC_declare prototype.
14135         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
14136         Merge this file, and...
14137         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
14138         ... this file, and...
14139         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
14140         ... this file, and...
14141         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
14142         ... this file, and...
14143         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
14144         ... this file, and...
14145         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
14146         ... this file, and...
14147         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
14148         ... this file, and...
14149         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
14150         ... this file, and...
14151         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
14152         ... this file, and...
14153         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
14154         ... this file, and...
14155         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
14156         ... this file, and...
14157         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
14158         ... this file, and...
14159         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
14160         ... this file into...
14161         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
14162         file.
14164         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
14165         Make failure observable.
14167 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
14169         * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
14170         field.
14171         * target.c (gomp_target_fallback_firstprivate,
14172         gomp_target_unshare_firstprivate): Removed.
14173         (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
14174         before waiting for dependencies.
14175         (gomp_target_task_fn): Don't copy firstprivate vars here.
14176         * task.c (GOMP_PLUGIN_target_task_completion): Don't free
14177         firstprivate_copies here.
14178         (gomp_create_target_task): Don't initialize firstprivate_copies field.
14179         * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
14180         explicit/implicit firstprivate.
14182 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
14184         PR lto/70289
14185         PR ipa/70348
14186         PR tree-optimization/70373
14187         PR middle-end/70533
14188         PR middle-end/70534
14189         PR middle-end/70535
14190         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
14191         test.
14192         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
14193         test.
14194         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
14195         test.
14196         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
14197         test.
14198         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
14199         test.
14200         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
14201         test.
14202         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
14203         test.
14204         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
14205         test.
14206         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
14207         test.
14208         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
14209         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
14210         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
14211         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
14212         test.
14213         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
14214         test.
14215         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
14216         test.
14217         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
14218         test.
14219         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
14220         coverage.
14221         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
14222         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
14223         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
14224         * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
14225         * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
14226         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
14227         coverage.
14228         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
14229         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
14230         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
14231         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
14232         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
14233         * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
14234         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
14235         * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
14236         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
14237         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
14238         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
14239         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
14240         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
14241         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14242         * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
14244 2016-03-30  Thomas Schwinge  <thomas@codesourcery.com>
14245             James Norris  <jnorris@codesourcery.com>
14246             Nathan Sidwell  <nathan@codesourcery.com>
14247             Julian Brown  <julian@codesourcery.com>
14248             Cesar Philippidis  <cesar@codesourcery.com>
14249             Chung-Lin Tang  <cltang@codesourcery.com>
14250             Tom de Vries  <tom@codesourcery.com>
14252         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
14253         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
14254         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
14255         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
14256         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
14257         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
14258         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
14259         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
14260         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
14261         XFAIL.
14262         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
14263         Incorporate...
14264         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
14265         file.
14266         * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
14267         * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
14268         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
14269         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
14270         Likewise.
14271         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
14272         Likewise.
14273         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
14274         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
14275         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
14276         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
14277         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
14278         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
14279         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
14280         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
14281         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
14282         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
14283         Likewise.
14284         * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
14285         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
14286         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
14287         file...
14288         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
14289         file into...
14290         * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
14291         file.  Update.
14292         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
14293         file.
14294         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
14295         Likewise.
14296         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
14297         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
14298         ... this new file.  Update.
14299         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
14300         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
14301         ... this new file.  Update.
14302         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
14303         file.  Incorporate...
14304         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
14305         file, and...
14306         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
14307         file, and...
14308         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
14309         file.
14310         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
14312 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
14314         * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
14315         set-torture-options.
14317 2016-03-24  Thomas Schwinge  <thomas@codesourcery.com>
14319         * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
14320         gcc-dg-runtest.
14321         * testsuite/libgomp.oacc-c/c.exp: Likewise.
14322         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
14323         -fno-builtin-acc_on_device instead of -O0.
14324         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
14325         -O0.
14326         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
14327         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
14328         Likewise.
14329         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
14330         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
14331         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
14332         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
14333         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
14334         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
14335         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
14336         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
14337         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
14338         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
14339         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
14340         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
14341         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
14342         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
14343         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
14344         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
14345         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
14346         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
14347         Don't specify -O2.
14348         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
14349         Likewise.
14350         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
14351         Likewise.
14353 2016-03-24  Martin Liska  <mliska@suse.cz>
14355         * plugin/plugin-hsa.c (packet_store_release): New function
14356         that is taken from the HSA runtime manual.
14357         (GOMP_OFFLOAD_run): Use the function.
14359 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
14361         PR c++/70376
14362         * testsuite/libgomp.c++/pr70376.C: New test.
14364 2016-03-23  Tom de Vries  <tom@codesourcery.com>
14366         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
14367         initialization of lresult and lvresult.
14368         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
14370 2016-03-23  James Norris  <jnorris@codesourcery.com>
14371             Daichi Fukuoka <dc-fukuoka@sgi.com>
14373         PR libgomp/69414
14374         * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
14375         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
14376         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
14377         * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
14379 2016-03-23  Martin Liska  <mliska@suse.cz>
14381         PR hsa/70337
14382         * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
14383         argument just in case a dispatched kernel uses that argument.
14385 2016-03-16  Thomas Schwinge  <thomas@codesourcery.com>
14387         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
14388         -ftree-parallelize-loops/-fopenacc changes.
14389         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
14390         Likewise.
14391         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
14392         Likewise.
14393         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
14394         Likewise.
14395         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
14396         Likewise.
14397         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
14398         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
14400 2016-03-13  Thomas Schwinge  <thomas@codesourcery.com>
14402         * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
14403         always_ld_library_path the path to libgcc_s.
14405 2016-03-10  Cesar Philippidis  <cesar@codesourcery.com>
14407         PR testsuite/70009
14408         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
14410 2016-03-09  Tom de Vries  <tom@codesourcery.com>
14412         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
14413         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
14414         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
14415         Same.
14416         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
14417         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
14418         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
14419         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
14421 2016-03-07  Martin Jambor  <mjambor@suse.cz>
14423         * testsuite/lib/libgomp.exp
14424         (check_effective_target_hsa_offloading_selected_nocache): New.
14425         (check_effective_target_hsa_offloading_selected): Likewise.
14426         * testsuite/libgomp.hsa.c/c.exp: Likewise.
14427         * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
14428         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
14429         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
14430         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
14431         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
14432         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
14433         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
14434         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
14435         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
14436         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
14437         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
14438         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
14439         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
14440         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
14441         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
14442         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
14444 2016-03-07  Martin Jambor  <mjambor@suse.cz>
14446         * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
14447         non-shared memory accelerators.
14448         * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
14449         * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
14450         * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
14451         * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
14452         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
14453         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
14454         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
14455         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
14456         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
14458 2016-03-07  Martin Jambor  <mjambor@suse.cz>
14460         * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
14461         ALWAYS_CFLAGS.
14463 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
14465         PR libgomp/69555
14466         * testsuite/libgomp.c++/pr69555-1.C: New test.
14467         * testsuite/libgomp.c++/pr69555-2.C: New test.
14469 2016-02-26  Keith McDaniel <k.allen.mcdaniel@gmail.com>
14470             Martin Jambor  <mjambor@suse.cz>
14472         * testsuite/lib/libgomp.exp
14473         (check_effective_target_offload_device_shared_as): New proc.
14474         * testsuite/libgomp.c++/declare_target-1.C: New test.
14476 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
14478         PR driver/68463
14479         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
14481 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
14483         * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
14484         * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
14485         dims.
14486         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
14487         -ftree-parallelize-loops/-fopenacc changes.
14488         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
14489         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
14490         Likewise.
14491         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
14492         Likewise.
14493         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
14494         Likewise.
14495         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
14496         Likewise.
14497         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
14498         Likewise.
14499         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
14500         Likewise.
14501         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
14502         Likewise.
14503         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
14504         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
14505         Likewise.
14506         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
14507         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
14508         Likewise.
14509         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
14510         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
14511         Likewise.
14513 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
14515         * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
14517 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
14519         PR driver/69805
14520         * testsuite/libgomp.c/pr69805.c: New test.
14522 2016-02-16  Tom de Vries  <tom@codesourcery.com>
14524         PR lto/67709
14525         * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
14527 2016-02-09  Tom de Vries  <tom@codesourcery.com>
14529         PR tree-optimization/69599
14530         * testsuite/libgomp.c/omp-nested-3.c: New test.
14531         * testsuite/libgomp.c/pr46032-2.c: New test.
14532         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
14533         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
14535 2016-02-09  Tom de Vries  <tom@codesourcery.com>
14537         PR lto/69707
14538         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
14540 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
14542         * testsuite/libgomp.c/target-31.c: Fix testcase.
14544 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
14546         * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
14547         clause.
14548         * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
14549         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
14550         reduction and map clauses.
14551         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
14553 2016-02-02  James Norris  <jnorris@codesourcery.com>
14555         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
14557 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
14559         * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
14560         * oacc-parallel.c (GOACC_host_data): Remove function definition.
14562         * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
14563         cases.
14565         * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
14566         variables.
14567         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
14568         (hsa_kmt_lib): Set variables.
14569         * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
14570         always_ld_library_path.
14571         * Makefile.in: Regenerate.
14572         * configure: Likewise.
14573         * testsuite/Makefile.in: Likewise.
14575         * plugin/configfrag.ac (offload_additional_options)
14576         (offload_additional_lib_paths): Don't amend for hsa offloading.
14577         * configure: Regenerate.
14579         * plugin/configfrag.ac: Don't configure for offloading target if
14580         we don't build the corresponding plugin.
14581         * configure: Regenerate.
14583 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
14585         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
14586         * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
14588 2016-01-26  Tom de Vries  <tom@codesourcery.com>
14590         PR tree-optimization/69110
14591         * testsuite/libgomp.c/pr69110.c: New test.
14593 2016-01-25  Richard Biener  <rguenther@suse.de>
14595         PR lto/69393
14596         * testsuite/libgomp.c++/pr69393.C: New testcase.
14598 2016-01-22  Ilya Verbin  <ilya.verbin@intel.com>
14600         * target.c (gomp_get_target_fn_addr): Allow host fallback if target
14601         function wasn't mapped to the device with non-shared memory.
14603 2016-01-20  Ilya Verbin  <ilya.verbin@intel.com>
14605         * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
14607 2016-01-19  Martin Jambor  <mjambor@suse.cz>
14608             Martin Liska  <mliska@suse.cz>
14610         * plugin/Makefrag.am: Add HSA plugin requirements.
14611         * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
14612         (HSA_RUNTIME_LIB): Likewise.
14613         (HSA_RUNTIME_CPPFLAGS): Likewise.
14614         (HSA_RUNTIME_INCLUDE): New substitution.
14615         (HSA_RUNTIME_LIB): Likewise.
14616         (HSA_RUNTIME_LDFLAGS): Likewise.
14617         (hsa-runtime): New configure option.
14618         (hsa-runtime-include): Likewise.
14619         (hsa-runtime-lib): Likewise.
14620         (PLUGIN_HSA): New substitution variable.
14621         Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
14622         configure options.
14623         (PLUGIN_HSA_CPPFLAGS): Likewise.
14624         (PLUGIN_HSA_LDFLAGS): Likewise.
14625         (PLUGIN_HSA_LIBS): Likewise.
14626         Check that we have access to HSA run-time.
14627         * libgomp-plugin.h (offload_target_type): New element
14628         OFFLOAD_TARGET_TYPE_HSA.
14629         * libgomp.h (gomp_target_task): New fields firstprivate_copies and
14630         args.
14631         (bool gomp_create_target_task): Updated.
14632         (gomp_device_descr): Extra parameter of run_func and async_run_func,
14633         new field can_run_func.
14634         * libgomp_g.h (GOMP_target_ext): Update prototype.
14635         * oacc-host.c (host_run): Added a new parameter args.
14636         * target.c (calculate_firstprivate_requirements): New function.
14637         (copy_firstprivate_data): Likewise.
14638         (gomp_target_fallback_firstprivate): Use them.
14639         (gomp_target_unshare_firstprivate): New function.
14640         (gomp_get_target_fn_addr): Allow returning NULL for shared memory
14641         devices.
14642         (GOMP_target): Do host fallback for all shared memory devices.  Do not
14643         pass any args to plugins.
14644         (GOMP_target_ext): Introduce device-specific argument parameter args.
14645         Allow host fallback if device shares memory.  Do not remap data if
14646         device has shared memory.
14647         (gomp_target_task_fn): Likewise.  Also treat shared memory devices
14648         like host fallback for mappings.
14649         (GOMP_target_data): Treat shared memory devices like host fallback.
14650         (GOMP_target_data_ext): Likewise.
14651         (GOMP_target_update): Likewise.
14652         (GOMP_target_update_ext): Likewise.  Also pass NULL as args to
14653         gomp_create_target_task.
14654         (GOMP_target_enter_exit_data): Likewise.
14655         (omp_target_alloc): Treat shared memory devices like host fallback.
14656         (omp_target_free): Likewise.
14657         (omp_target_is_present): Likewise.
14658         (omp_target_memcpy): Likewise.
14659         (omp_target_memcpy_rect): Likewise.
14660         (omp_target_associate_ptr): Likewise.
14661         (gomp_load_plugin_for_device): Also load can_run.
14662         * task.c (GOMP_PLUGIN_target_task_completion): Free
14663         firstprivate_copies.
14664         (gomp_create_target_task): Accept new argument args and store it to
14665         ttask.
14666         * plugin/plugin-hsa.c: New file.
14668 2016-01-18  Tom de Vries  <tom@codesourcery.com>
14670         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
14671         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
14672         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
14673         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
14674         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
14675         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
14676         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
14677         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
14678         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
14679         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
14680         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
14681         Same.
14682         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
14683         Same.
14684         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
14685         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
14686         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
14687         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
14688         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
14689         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
14690         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
14691         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
14692         Same.
14693         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
14695 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
14697         * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
14699 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
14701         * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
14703 2016-01-12  James Norris  <jnorris@codesourcery.com>
14705         * libgomp.texi: Updates for OpenACC.
14707 2016-01-11  Alexander Monakov  <amonakov@ispras.ru>
14709         * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
14711 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
14713         PR fortran/66680
14714         * testsuite/libgomp.fortran/pr66680.f90: New test.
14716 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
14718         PR middle-end/68960
14719         * testsuite/libgomp.c/pr68960.c: New test.
14721 2016-01-06  Nathan Sidwell  <nathan@acm.org>
14723         * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
14724         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
14726 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
14728         Update copyright years.
14730         * libgomp.texi: Bump @copying's copyright year.
14732 2015-12-31  Nathan Sidwell  <nathan@acm.org>
14734         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
14735         dg-additional-options syntax.
14736         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
14737         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
14738         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
14739         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
14740         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
14741         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
14742         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
14743         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
14744         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
14745         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
14746         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
14747         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
14748         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
14749         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
14750         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
14751         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
14752         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
14753         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
14755 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
14757         * libgomp.h (REFCOUNT_LINK): Define.
14758         (struct splay_tree_key_s): Add link_key.
14759         * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
14760         Replace target address of the pointer with target address of newly
14761         mapped object in the splay tree.  Set link pointer on target to the
14762         device address of the mapped object.
14763         (gomp_unmap_vars): Restore target address of the pointer in the splay
14764         tree for REFCOUNT_LINK objects after unmapping.
14765         (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
14766         declare target link" objects.
14767         (gomp_unload_image_from_device): Replace j with i.  Force unmap of all
14768         "omp declare target link" objects, which were mapped for the image.
14769         (gomp_exit_data): Restore target address of the pointer in the splay
14770         tree for REFCOUNT_LINK objects after unmapping.
14771         * testsuite/libgomp.c/target-link-1.c: New file.
14773 2015-12-14  Ilya Verbin  <ilya.verbin@intel.com>
14775         * libgomp.h (gomp_device_state): New enum.
14776         (struct gomp_device_descr): Replace is_initialized with state.
14777         (gomp_fini_device): Remove declaration.
14778         * oacc-host.c (host_dispatch): Use state instead of is_initialized.
14779         * oacc-init.c (acc_init_1): Use state instead of is_initialized.
14780         (acc_shutdown_1): Likewise.  Inline gomp_fini_device.
14781         (acc_set_device_type): Use state instead of is_initialized.
14782         (acc_set_device_num): Likewise.
14783         * target.c (resolve_device): Use state instead of is_initialized.
14784         Do not initialize finalized device.
14785         (gomp_map_vars): Do nothing if device is finalized.
14786         (gomp_unmap_vars): Likewise.
14787         (gomp_update): Likewise.
14788         (GOMP_offload_register_ver): Use state instead of is_initialized.
14789         (GOMP_offload_unregister_ver): Likewise.
14790         (gomp_init_device): Likewise.
14791         (gomp_unload_device): Likewise.
14792         (gomp_fini_device): Remove.
14793         (gomp_get_target_fn_addr): Do nothing if device is finalized.
14794         (GOMP_target): Go to host fallback if device is finalized.
14795         (GOMP_target_ext): Likewise.
14796         (gomp_exit_data): Do nothing if device is finalized.
14797         (gomp_target_task_fn): Go to host fallback if device is finalized.
14798         (gomp_target_fini): New static function.
14799         (gomp_target_init): Use state instead of is_initialized.
14800         Call gomp_target_fini at exit.
14802 2015-12-09  Tom de Vries  <tom@codesourcery.com>
14804         PR tree-optimization/68716
14805         * testsuite/libgomp.c/omp-nested-2.c: New test.
14807 2015-12-02  Thomas Schwinge  <thomas@codesourcery.com>
14809         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
14810         target openacc_nvidia_accel_selected.
14811         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
14812         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
14813         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
14814         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
14816 2015-12-01  Julian Brown  <julian@codesourcery.com>
14817             James Norris  <James_Norris@mentor.com>
14819         * oacc-parallel.c (GOACC_host_data): New function.
14820         * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
14821         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
14822         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
14823         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
14824         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
14825         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
14826         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
14828 2015-11-30  James Norris  <jnorris@codesourcery.com>
14829             Cesar Philippidis  <cesar@codesourcery.com>
14831         libgomp/
14832         * libgomp.oacc-fortran/routine-5.f90: New test.
14833         * libgomp.oacc-fortran/routine-7.f90: New test.
14834         * libgomp.oacc-fortran/routine-9.f90: New test.
14836 2015-11-30  Tom de Vries  <tom@codesourcery.com>
14838         PR tree-optimization/46032
14839         * testsuite/libgomp.c/pr46032.c: New test.
14841 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
14843         PR libgomp/68579
14844         * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
14845         (gomp_create_target_task): Call it before freeing
14846         GOMP_TARGET_TASK_DATA tasks.
14848         PR c/63326
14849         * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
14850         in between case label and OpenMP standalone directives.
14851         * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
14853 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
14855         * configure: Regenerate.
14857 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
14859         * testsuite/libgomp.c/target-35.c: New test.
14861 2015-11-22  James Norris  <jnorris@codesourcery.com>
14862             Cesar Philippidis  <cesar@codesourcery.com>
14864         * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
14865         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
14866         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
14867         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
14868         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
14870 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
14872         PR middle-end/68221
14873         * testsuite/libgomp.c/reduction-11.c: Remove xfail.
14874         * testsuite/libgomp.c/reduction-12.c: Likewise.
14875         * testsuite/libgomp.c++/reduction-11.C: Likewise.
14876         * testsuite/libgomp.c++/reduction-12.C: Likewise.
14878 2015-11-19  Nathan Sidwell  <nathan@codesourcery.com>
14880         * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
14881         * libgomp.oacc-c-c++-common/reduction-flt.c: New.
14882         * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
14883         * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
14884         * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
14885         and fix.
14886         * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
14887         * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
14889 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
14891         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
14892         worker & gang cases.
14893         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
14895 2015-11-17  Cesar Philippidis  <cesar@codesourcery.com>
14897         * config/nvptx/priority_queue.c: New file.
14899 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
14901         * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
14902         sections.
14904 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
14905             Aldy Hernandez  <aldyh@redhat.com>
14906             Ilya Verbin  <ilya.verbin@intel.com>
14908         * ordered.c (gomp_doacross_init, GOMP_doacross_post,
14909         GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
14910         GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
14911         iterators or IV by chunk size.
14912         * parallel.c (gomp_resolve_num_threads): Don't assume that
14913         if thr->ts.team is non-NULL, then pool must be non-NULL.
14914         * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
14915         * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
14916         GOMP_PLUGIN_target_task_completion.
14917         * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
14918         * Makefile.in: Regenerate.
14919         * libgomp.h: Shuffle prototypes and forward definitions around so
14920         priority queues can be defined.
14921         (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
14922         (enum gomp_target_task_state): New enum.
14923         (struct gomp_target_task): Add state, tgt, task and team fields.
14924         (gomp_create_target_task): Change return type to bool, add
14925         state argument.
14926         (gomp_target_task_fn): Change return type to bool.
14927         (struct gomp_device_descr): Add async_run_func.
14928         (struct gomp_task): Remove children, next_child, prev_child,
14929         next_queue, prev_queue, next_taskgroup, prev_taskgroup.
14930         Add pnode field.
14931         (struct gomp_taskgroup): Remove children.
14932         Add taskgroup_queue.
14933         (struct gomp_team): Change task_queue type to a priority queue.
14934         (splay_compare): Define inline.
14935         (priority_queue_offset): New.
14936         (priority_node_to_task): New.
14937         (task_to_priority_node): New.
14938         * oacc-mem.c: Do not include splay-tree.h.
14939         * priority_queue.c: New file.
14940         * priority_queue.h: New file.
14941         * splay-tree.c: Do not include splay-tree.h.
14942         (splay_tree_foreach_internal): New.
14943         (splay_tree_foreach): New.
14944         * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
14945         (splay_tree_callback): Define typedef.
14946         * target.c (splay_compare): Move to libgomp.h.
14947         (GOMP_target): Don't adjust *thr in any way around running offloaded
14948         task.
14949         (GOMP_target_ext): Likewise.  Handle target nowait.
14950         (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
14951         return value from gomp_create_target_task, if false, fallthrough
14952         as if no dependencies exist.
14953         (gomp_target_task_fn): Change return type to bool, return true
14954         if the task should have another part scheduled later.  Handle
14955         target nowait.
14956         (gomp_load_plugin_for_device): Initialize async_run.
14957         * task.c (gomp_init_task): Initialize children_queue.
14958         (gomp_clear_parent_in_list): New.
14959         (gomp_clear_parent_in_tree): New.
14960         (gomp_clear_parent): Handle priorities.
14961         (GOMP_task): Likewise.
14962         (priority_queue_move_task_first,
14963         gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
14964         New functions.
14965         (gomp_create_target_task): Use priority queues.  Change return type
14966         to bool, add state argument, return false if for async
14967         {{enter,exit} data,update} constructs no dependencies need to be
14968         waited for, handle target nowait.  Set task->fn to NULL instead of
14969         gomp_target_task_fn.
14970         (verify_children_queue): Remove.
14971         (priority_list_upgrade_task): New.
14972         (priority_queue_upgrade_task): New.
14973         (verify_task_queue): Remove.
14974         (priority_list_downgrade_task): New.
14975         (priority_queue_downgrade_task): New.
14976         (gomp_task_run_pre): Use priority queues.
14977         Abstract code out to priority_queue_downgrade_task.
14978         (gomp_task_run_post_handle_dependers): Use priority queues.
14979         (gomp_task_run_post_remove_parent): Likewise.
14980         (gomp_task_run_post_remove_taskgroup): Likewise.
14981         (gomp_barrier_handle_tasks): Likewise.  Handle target nowait target
14982         tasks specially.
14983         (GOMP_taskwait): Likewise.
14984         (gomp_task_maybe_wait_for_dependencies): Likewise.  Abstract code to
14985         priority-queue_upgrade_task.
14986         (GOMP_taskgroup_start): Use priority queues.
14987         (GOMP_taskgroup_end): Likewise.  Handle target nowait target tasks
14988         specially.  If taskgroup is NULL, and thr->ts.level is 0, act as a
14989         barrier.
14990         * taskloop.c (GOMP_taskloop): Handle priorities.
14991         * team.c (gomp_new_team): Call priority_queue_init.
14992         (free_team): Call priority_queue_free.
14993         (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
14994         team created for target nowait in implicit parallel region.
14995         (gomp_team_start): For nested check, test thr->ts.level instead of
14996         thr->ts.team != NULL.
14997         * testsuite/libgomp.c/doacross-3.c: New test.
14998         * testsuite/libgomp.c/ordered-5.c: New test.
14999         * testsuite/libgomp.c/priority.c: New test.
15000         * testsuite/libgomp.c/target-31.c: New test.
15001         * testsuite/libgomp.c/target-32.c: New test.
15002         * testsuite/libgomp.c/target-33.c: New test.
15003         * testsuite/libgomp.c/target-34.c: New test.
15005 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
15007         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
15009         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
15010         loop is sequential.
15012 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
15014         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
15015         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
15017 2015-11-12  James Norris  <jnorris@codesourcery.com>
15018             Joseph Myers  <joseph@codesourcery.com>
15020         * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
15021         * oacc-parallel.c (GOACC_declare): New function.
15022         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
15023         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
15024         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
15025         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
15026         * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
15028 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
15030         * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
15032 2015-11-1  Nathan Sidwell  <nathan@codesourcery.com>
15034         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
15035         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
15037 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
15039         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
15040         inadvertent commit.
15042 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
15044         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
15045         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
15046         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
15047         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
15048         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
15050 2015-11-06  Thomas Schwinge  <thomas@codesourcery.com>
15052         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
15053         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
15055 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
15056             Ilya Verbin  <ilya.verbin@intel.com>
15058         * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
15059         GOMP_loop_nonmonotonic_dynamic_start,
15060         GOMP_loop_nonmonotonic_guided_next,
15061         GOMP_loop_nonmonotonic_guided_start,
15062         GOMP_loop_ull_nonmonotonic_dynamic_next,
15063         GOMP_loop_ull_nonmonotonic_dynamic_start,
15064         GOMP_loop_ull_nonmonotonic_guided_next,
15065         GOMP_loop_ull_nonmonotonic_guided_start,
15066         GOMP_parallel_loop_nonmonotonic_dynamic,
15067         GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
15068         (GOMP_target_41): Renamed to ...
15069         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
15070         arguments.
15071         (GOMP_target_data_41): Renamed to ...
15072         (GOMP_target_data_ext): ... this.
15073         (GOMP_target_update_41): Renamed to ...
15074         (GOMP_target_update_ext): ... this.
15075         * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
15076         GOMP_target_data_ext and GOMP_target_update_ext instead of
15077         GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
15078         Export GOMP_loop_nonmonotonic_dynamic_next,
15079         GOMP_loop_nonmonotonic_dynamic_start,
15080         GOMP_loop_nonmonotonic_guided_next,
15081         GOMP_loop_nonmonotonic_guided_start,
15082         GOMP_loop_ull_nonmonotonic_dynamic_next,
15083         GOMP_loop_ull_nonmonotonic_dynamic_start,
15084         GOMP_loop_ull_nonmonotonic_guided_next,
15085         GOMP_loop_ull_nonmonotonic_guided_start,
15086         GOMP_parallel_loop_nonmonotonic_dynamic and
15087         GOMP_parallel_loop_nonmonotonic_guided.
15088         * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
15089         GOMP_parallel_loop_nonmonotonic_guided,
15090         GOMP_loop_nonmonotonic_dynamic_start,
15091         GOMP_loop_nonmonotonic_guided_start,
15092         GOMP_loop_nonmonotonic_dynamic_next,
15093         GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
15094         * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
15095         GOMP_loop_ull_nonmonotonic_guided_start,
15096         GOMP_loop_ull_nonmonotonic_dynamic_next,
15097         GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
15098         * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
15099         functions.
15100         (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER.  For
15101         GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
15102         Use gomp_map_val function.
15103         (gomp_target_fallback_firstprivate): New static function.
15104         (GOMP_target_41): Renamed to ...
15105         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
15106         arguments.  Move firstprivate fallback handling into a new
15107         function.
15108         (GOMP_target_data_41): Renamed to ...
15109         (GOMP_target_data_ext): ... this.
15110         (GOMP_target_update_41): Renamed to ...
15111         (GOMP_target_update_ext): ... this.
15112         (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
15113         gomp_map_0len_lookup instead of gomp_map_lookup.
15114         (omp_target_is_present): Use gomp_map_0len_lookup instead of
15115         gomp_map_lookup.
15116         * testsuite/libgomp.c/target-28.c: Likewise.
15117         * testsuite/libgomp.c/monotonic-1.c: New test.
15118         * testsuite/libgomp.c/monotonic-2.c: New test.
15119         * testsuite/libgomp.c/nonmonotonic-1.c: New test.
15120         * testsuite/libgomp.c/nonmonotonic-2.c: New test.
15121         * testsuite/libgomp.c/pr66199-5.c: New test.
15122         * testsuite/libgomp.c/pr66199-6.c: New test.
15123         * testsuite/libgomp.c/pr66199-7.c: New test.
15124         * testsuite/libgomp.c/pr66199-8.c: New test.
15125         * testsuite/libgomp.c/pr66199-9.c: New test.
15126         * testsuite/libgomp.c/reduction-11.c: New test.
15127         * testsuite/libgomp.c/reduction-12.c: New test.
15128         * testsuite/libgomp.c/reduction-13.c: New test.
15129         * testsuite/libgomp.c/reduction-14.c: New test.
15130         * testsuite/libgomp.c/reduction-15.c: New test.
15131         * testsuite/libgomp.c/target-12.c (main): Adjust for
15132         omp_target_is_present change for one-past-last element.
15133         * testsuite/libgomp.c/target-17.c (foo): Drop tests where
15134         the same var is both mapped and privatized.
15135         * testsuite/libgomp.c/target-19.c (foo): Adjust for different
15136         handling of zero-length array sections.
15137         * testsuite/libgomp.c/target-28.c: New test.
15138         * testsuite/libgomp.c/target-29.c: New test.
15139         * testsuite/libgomp.c/target-30.c: New test.
15140         * testsuite/libgomp.c/target-teams-1.c: New test.
15141         * testsuite/libgomp.c++/member-6.C: New test.
15142         * testsuite/libgomp.c++/member-7.C: New test.
15143         * testsuite/libgomp.c++/monotonic-1.C: New test.
15144         * testsuite/libgomp.c++/monotonic-2.C: New test.
15145         * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
15146         * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
15147         * testsuite/libgomp.c++/pr66199-3.C: New test.
15148         * testsuite/libgomp.c++/pr66199-4.C: New test.
15149         * testsuite/libgomp.c++/pr66199-5.C: New test.
15150         * testsuite/libgomp.c++/pr66199-6.C: New test.
15151         * testsuite/libgomp.c++/pr66199-7.C: New test.
15152         * testsuite/libgomp.c++/pr66199-8.C: New test.
15153         * testsuite/libgomp.c++/pr66199-9.C: New test.
15154         * testsuite/libgomp.c++/reduction-11.C: New test.
15155         * testsuite/libgomp.c++/reduction-12.C: New test.
15156         * testsuite/libgomp.c++/target-13.C: New test.
15157         * testsuite/libgomp.c++/target-14.C: New test.
15158         * testsuite/libgomp.c++/target-15.C: New test.
15159         * testsuite/libgomp.c++/target-16.C: New test.
15160         * testsuite/libgomp.c++/target-17.C: New test.
15161         * testsuite/libgomp.c++/target-18.C: New test.
15162         * testsuite/libgomp.c++/target-19.C: New test.
15164 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
15166         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
15167         and reduction copy.
15168         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
15169         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
15170         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
15171         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
15172         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
15173         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
15174         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
15175         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
15176         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
15177         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
15178         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
15179         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
15180         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
15181         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
15183 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
15185         * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
15186         * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
15187         * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
15188         * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
15189         * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
15190         * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
15191         * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
15192         * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
15194 2015-11-03  Nathan Sidwell  <nathan@codesourcery.com>
15196         * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
15197         * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
15198         (GOMP_OFFLOAD_openacc_parallel): Likewise.
15199         * oacc-host.c (host_openacc_exec): Likewise.
15200         * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
15202 2015-11-03  Julian Brown  <julian@codesourcery.com>
15203             Thomas Schwinge  <thomas@codesourcery.com>
15205         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
15206         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
15207         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
15208         Likewise.
15209         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
15210         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
15212 2015-11-03  James Norris  <jnorris@codesourcery.com>
15214         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
15215         file.
15216         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
15217         Likewise.
15218         * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
15219         * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
15220         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
15221         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
15222         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
15224 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
15226         * openacc.h (enum acc_device_t): Reformat. Ensure layout
15227         compatibility.
15228         (enum acc_async_t): Reformat.
15229         (acc_on_device): Declare compatible with builtin and provide C++
15230         wrapper.
15231         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
15233 2015-10-29  Thomas Schwinge  <thomas@codesourcery.com>
15234             Cesar Philippidis  <cesar@codesourcery.com>
15236         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
15237         * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
15238         ... this.  Add a description of the test at the top of the file.
15239         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
15240         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
15241         ... this.  Add a description of the test at the top of the file.
15243 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
15245         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
15246         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
15247         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
15248         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
15249         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
15250         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
15252 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
15254         * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
15255         dimensions.
15257 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
15259         PR testsuite/68063
15260         * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
15262 2015-10-27  James Norris  <jnorris@codesourcery.com>
15264         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
15265         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
15267 2015-10-26  Thomas Schwinge  <thomas@codesourcery.com>
15269         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
15270         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
15272         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
15273         acc_device_nvidia usage.
15274         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
15275         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15276         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
15278         * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
15279         * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
15281         PR libgomp/66518
15282         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
15284         PR libgomp/65437
15285         PR libgomp/66518
15286         * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
15287         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
15289 2015-10-23  Tom de Vries  <tom@codesourcery.com>
15291         PR testsuite/68063
15292         * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
15294 2015-10-20  Nathan Sidwell  <nathan@codesourcery.com>
15296         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
15297         vector_length.
15298         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
15300 2015-10-14  Ilya Verbin  <ilya.verbin@intel.com>
15301             Aleksander Ivanushenko  <aleksander.ivanushenko@intel.com>
15303         * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
15304         to 0 when mapnum is 0.
15306 2015-10-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15308         * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
15309         Cast to int from int32_t.
15311 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
15312             Aldy Hernandez  <aldyh@redhat.com>
15313             Ilya Verbin  <ilya.verbin@intel.com>
15315         * config/linux/affinity.c (omp_get_place_num_procs,
15316         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
15317         * config/linux/doacross.h: New file.
15318         * config/posix/affinity.c (omp_get_place_num_procs,
15319         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
15320         * config/posix/doacross.h: New file.
15321         * env.c: Include gomp-constants.h.
15322         (struct gomp_task_icv): Rename run_sched_modifier to
15323         run_sched_chunk_size.
15324         (gomp_max_task_priority_var): New variable.
15325         (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
15326         (handle_omp_display_env): Change _OPENMP value from 201307 to
15327         201511.  Print OMP_MAX_TASK_PRIORITY.
15328         (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
15329         (omp_set_schedule, omp_get_schedule): Rename modifier argument to
15330         chunk_size and run_sched_modifier to run_sched_chunk_size.
15331         (omp_get_max_task_priority, omp_get_initial_device,
15332         omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
15333         omp_get_partition_place_nums): New functions.
15334         * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
15335         omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
15336         to chunk_size.
15337         (omp_get_num_places_, omp_get_place_num_procs_,
15338         omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
15339         omp_get_place_proc_ids_8_, omp_get_place_num_,
15340         omp_get_partition_num_places_, omp_get_partition_place_nums_,
15341         omp_get_partition_place_nums_8_, omp_get_initial_device_,
15342         omp_get_max_task_priority_): New functions.
15343         * libgomp_g.h (GOMP_loop_doacross_static_start,
15344         GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
15345         GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
15346         GOMP_loop_ull_doacross_dynamic_start,
15347         GOMP_loop_ull_doacross_guided_start,
15348         GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
15349         GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
15350         GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
15351         GOMP_target_data_41, GOMP_target_update_41,
15352         GOMP_target_enter_exit_data): New prototypes.
15353         (GOMP_task): Add prototype argument.
15354         * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
15355         (struct gomp_doacross_work_share): New type.
15356         (struct gomp_work_share): Add doacross field.
15357         (struct gomp_task_icv): Rename run_sched_modifier to
15358         run_sched_chunk_size.
15359         (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
15360         GOMP_TASK_UNDEFERRED.  Add comments.
15361         (struct gomp_task_depend_entry): Add comments.
15362         (struct gomp_task): Likewise.
15363         (struct gomp_taskgroup): Likewise.
15364         (struct gomp_target_task): New type.
15365         (struct gomp_team): Add comment.
15366         (gomp_get_place_proc_ids_8, gomp_doacross_init,
15367         gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
15368         gomp_create_target_task, gomp_target_task_fn): New prototypes.
15369         (struct target_var_desc): New type.
15370         (struct target_mem_desc): Adjust comment.  Use struct
15371         target_var_desc instead of splay_tree_key for list.
15372         (REFCOUNT_INFINITY): Define.
15373         (struct splay_tree_key_s): Remove copy_from field.
15374         (struct gomp_device_descr): Add dev2dev_func field.
15375         (enum gomp_map_vars_kind): New enum.
15376         (gomp_map_vars): Add one argument.
15377         * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
15378         omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
15379         omp_get_place_num_procs, omp_get_place_num_procs_,
15380         omp_get_place_num_procs_8_, omp_get_place_proc_ids,
15381         omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
15382         omp_get_place_num_, omp_get_partition_num_places,
15383         omp_get_partition_num_places_, omp_get_partition_place_nums,
15384         omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
15385         omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
15386         omp_target_free, omp_target_is_present, omp_target_memcpy,
15387         omp_target_memcpy_rect, omp_target_associate_ptr and
15388         omp_target_disassociate_ptr.
15389         (GOMP_4.0.2): Renamed to ...
15390         (GOMP_4.5): ... this.  Export GOMP_target_41, GOMP_target_data_41,
15391         GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
15392         GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
15393         GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
15394         GOMP_loop_doacross_static_start, GOMP_doacross_post,
15395         GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
15396         GOMP_loop_ull_doacross_guided_start,
15397         GOMP_loop_ull_doacross_runtime_start,
15398         GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
15399         GOMP_doacross_ull_wait.
15400         * libgomp.texi: Document omp_get_max_task_priority.
15401         Rename modifier argument to chunk_size for omp_set_schedule and
15402         omp_get_schedule.  Document OMP_MAX_TASK_PRIORITY env var.
15403         * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
15404         to run_sched_chunk_size renaming.
15405         (GOMP_loop_ordered_runtime_start): Likewise.
15406         (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
15407         gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
15408         GOMP_parallel_loop_runtime_start): New functions.
15409         (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
15410         to run_sched_chunk_size renaming.
15411         (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
15412         GOMP_loop_doacross_guided_start): New functions or aliases.
15413         * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
15414         run_sched_modifier to run_sched_chunk_size renaming.
15415         (GOMP_loop_ull_ordered_runtime_start): Likewise.
15416         (gomp_loop_ull_doacross_static_start,
15417         gomp_loop_ull_doacross_dynamic_start,
15418         gomp_loop_ull_doacross_guided_start,
15419         GOMP_loop_ull_doacross_runtime_start): New functions.
15420         (GOMP_loop_ull_doacross_static_start,
15421         GOMP_loop_ull_doacross_dynamic_start,
15422         GOMP_loop_ull_doacross_guided_start): New functions or aliases.
15423         * oacc-mem.c (acc_map_data, present_create_copy,
15424         gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
15425         to gomp_map_vars.
15426         (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
15427         * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
15428         instead of false to gomp_map_vars.
15429         (GOACC_parallel_keyed): Likewise.  Use copy_from from target_var_desc.
15430         * omp.h.in (omp_lock_hint_t): New type.
15431         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
15432         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
15433         omp_get_place_num, omp_get_partition_num_places,
15434         omp_get_partition_place_nums, omp_get_initial_device,
15435         omp_get_max_task_priority, omp_target_alloc, omp_target_free,
15436         omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
15437         omp_target_associate_ptr, omp_target_disassociate_ptr): New
15438         prototypes.
15439         * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
15440         (omp_lock_hint_none, omp_lock_hint_uncontended,
15441         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
15442         omp_lock_hint_speculative): New parameters.
15443         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
15444         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
15445         omp_get_place_num, omp_get_partition_num_places,
15446         omp_get_partition_place_nums, omp_get_initial_device,
15447         omp_get_max_task_priority): New interfaces.
15448         (omp_set_schedule, omp_get_schedule): Rename modifier argument
15449         to chunk_size.
15450         * omp_lib.h.in (omp_lock_hint_kind): New parameter.
15451         (omp_lock_hint_none, omp_lock_hint_uncontended,
15452         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
15453         omp_lock_hint_speculative): New parameters.
15454         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
15455         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
15456         omp_get_place_num, omp_get_partition_num_places,
15457         omp_get_partition_place_nums, omp_get_initial_device,
15458         omp_get_max_task_priority): New functions and subroutines.
15459         * ordered.c: Include stdarg.h and string.h.
15460         (MAX_COLLAPSED_BITS): Define.
15461         (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
15462         gomp_doacross_ull_init, GOMP_doacross_ull_post,
15463         GOMP_doacross_ull_wait): New functions.
15464         * target.c: Include errno.h.
15465         (resolve_device): If device is not initialized, call
15466         gomp_init_device on it.
15467         (gomp_map_lookup): New function.
15468         (gomp_map_vars_existing): Add tgt_var argument, fill it in.
15469         Don't bump refcount if REFCOUNT_INFINITY.  Handle
15470         GOMP_MAP_ALWAYS_TO_P.
15471         (get_kind): Rename is_openacc argument to short_mapkind.
15472         (gomp_map_pointer): Use gomp_map_lookup.
15473         (gomp_map_fields_existing): New function.
15474         (gomp_map_vars): Rename is_openacc argument to short_mapkind
15475         and is_target to pragma_kind.  Handle GOMP_MAP_VARS_ENTER_DATA,
15476         handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
15477         GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
15478         Adjust for tgt->list changed type and copy_from living in there.
15479         (gomp_copy_from_async): Adjust for tgt->list changed type and
15480         copy_from living in there.
15481         (gomp_unmap_vars): Likewise.
15482         (gomp_update): Likewise.  Rename is_openacc argument to
15483         short_mapkind.  Don't fail if object is not mapped.
15484         (gomp_load_image_to_device): Initialize refcount to
15485         REFCOUNT_INFINITY.
15486         (gomp_target_fallback): New function.
15487         (gomp_get_target_fn_addr): Likewise.
15488         (GOMP_target): Adjust gomp_map_vars caller, use
15489         gomp_get_target_fn_addr and gomp_target_fallback.
15490         (GOMP_target_41): New function.
15491         (gomp_target_data_fallback): New function.
15492         (GOMP_target_data): Use it, adjust gomp_map_vars caller.
15493         (GOMP_target_data_41): New function.
15494         (GOMP_target_update): Adjust gomp_update caller.
15495         (GOMP_target_update_41): New function.
15496         (gomp_exit_data, GOMP_target_enter_exit_data,
15497         gomp_target_task_fn, omp_target_alloc, omp_target_free,
15498         omp_target_is_present, omp_target_memcpy,
15499         omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
15500         omp_target_associate_ptr, omp_target_disassociate_ptr,
15501         gomp_load_plugin_for_device): New functions.
15502         * task.c: Include gomp-constants.h.  Include taskloop.c
15503         twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
15504         (gomp_task_handle_depend): New function.
15505         (GOMP_task): Use it.  Add priority argument.  Use
15506         gomp-constant.h constants instead of hardcoded numbers.
15507         Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
15508         (gomp_create_target_task): New function.
15509         (verify_children_queue, verify_taskgroup_queue,
15510         verify_task_queue): New functions.
15511         (gomp_task_run_pre): Call verify_*_queue functions.
15512         If an upcoming tied task is about to leave the sibling or
15513         taskgroup queues in an invalid state, adjust appropriately.
15514         Remove taskgroup argument.  Add comments.
15515         (gomp_task_run_post_handle_dependers): Add comments.
15516         (gomp_task_run_post_remove_parent): Likewise.
15517         (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
15518         (GOMP_taskwait): Likewise.  Add comments.
15519         (gomp_task_maybe_wait_for_dependencies): Fix scheduling
15520         problem such that the first non parent_depends_on task does not
15521         end up at the end of the children queue.
15522         (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
15523         GOMP_TASK_UNDEFERRED.
15524         (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
15525         * taskloop.c: New file.
15526         * testsuite/lib/libgomp.exp
15527         (check_effective_target_offload_device_nonshared_as): New proc.
15528         * testsuite/libgomp.c/affinity-2.c: New test.
15529         * testsuite/libgomp.c/doacross-1.c: New test.
15530         * testsuite/libgomp.c/doacross-2.c: New test.
15531         * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
15532         Add map clause to target.
15533         * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
15534         * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
15535         * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
15536         * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
15537         * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
15538         Likewise.
15539         * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
15540         * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
15541         * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
15542         * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
15543         not defined.  Use those where needed.
15544         * testsuite/libgomp.c/for-4.c: New test.
15545         * testsuite/libgomp.c/for-5.c: New test.
15546         * testsuite/libgomp.c/for-6.c: New test.
15547         * testsuite/libgomp.c/linear-1.c: New test.
15548         * testsuite/libgomp.c/ordered-4.c: New test.
15549         * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
15550         only allowed on the loop iterator.
15551         * testsuite/libgomp.c/pr66199-3.c: New test.
15552         * testsuite/libgomp.c/pr66199-4.c: New test.
15553         * testsuite/libgomp.c/reduction-7.c: New test.
15554         * testsuite/libgomp.c/reduction-8.c: New test.
15555         * testsuite/libgomp.c/reduction-9.c: New test.
15556         * testsuite/libgomp.c/reduction-10.c: New test.
15557         * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
15558         map(tofrom:s).
15559         * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
15560         * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
15561         * testsuite/libgomp.c/target-11.c: New test.
15562         * testsuite/libgomp.c/target-12.c: New test.
15563         * testsuite/libgomp.c/target-13.c: New test.
15564         * testsuite/libgomp.c/target-14.c: New test.
15565         * testsuite/libgomp.c/target-15.c: New test.
15566         * testsuite/libgomp.c/target-16.c: New test.
15567         * testsuite/libgomp.c/target-17.c: New test.
15568         * testsuite/libgomp.c/target-18.c: New test.
15569         * testsuite/libgomp.c/target-19.c: New test.
15570         * testsuite/libgomp.c/target-20.c: New test.
15571         * testsuite/libgomp.c/target-21.c: New test.
15572         * testsuite/libgomp.c/target-22.c: New test.
15573         * testsuite/libgomp.c/target-23.c: New test.
15574         * testsuite/libgomp.c/target-24.c: New test.
15575         * testsuite/libgomp.c/target-25.c: New test.
15576         * testsuite/libgomp.c/target-26.c: New test.
15577         * testsuite/libgomp.c/target-27.c: New test.
15578         * testsuite/libgomp.c/taskloop-1.c: New test.
15579         * testsuite/libgomp.c/taskloop-2.c: New test.
15580         * testsuite/libgomp.c/taskloop-3.c: New test.
15581         * testsuite/libgomp.c/taskloop-4.c: New test.
15582         * testsuite/libgomp.c++/ctor-13.C: New test.
15583         * testsuite/libgomp.c++/doacross-1.C: New test.
15584         * testsuite/libgomp.c++/examples-4/declare_target-2.C:
15585         Replace offload_device with offload_device_nonshared_as.
15586         * testsuite/libgomp.c++/for-12.C: New test.
15587         * testsuite/libgomp.c++/for-13.C: New test.
15588         * testsuite/libgomp.c++/for-14.C: New test.
15589         * testsuite/libgomp.c++/linear-1.C: New test.
15590         * testsuite/libgomp.c++/member-1.C: New test.
15591         * testsuite/libgomp.c++/member-2.C: New test.
15592         * testsuite/libgomp.c++/member-3.C: New test.
15593         * testsuite/libgomp.c++/member-4.C: New test.
15594         * testsuite/libgomp.c++/member-5.C: New test.
15595         * testsuite/libgomp.c++/ordered-1.C: New test.
15596         * testsuite/libgomp.c++/reduction-5.C: New test.
15597         * testsuite/libgomp.c++/reduction-6.C: New test.
15598         * testsuite/libgomp.c++/reduction-7.C: New test.
15599         * testsuite/libgomp.c++/reduction-8.C: New test.
15600         * testsuite/libgomp.c++/reduction-9.C: New test.
15601         * testsuite/libgomp.c++/reduction-10.C: New test.
15602         * testsuite/libgomp.c++/reference-1.C: New test.
15603         * testsuite/libgomp.c++/simd14.C: New test.
15604         * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
15605         * testsuite/libgomp.c++/target-5.C: New test.
15606         * testsuite/libgomp.c++/target-6.C: New test.
15607         * testsuite/libgomp.c++/target-7.C: New test.
15608         * testsuite/libgomp.c++/target-8.C: New test.
15609         * testsuite/libgomp.c++/target-9.C: New test.
15610         * testsuite/libgomp.c++/target-10.C: New test.
15611         * testsuite/libgomp.c++/target-11.C: New test.
15612         * testsuite/libgomp.c++/target-12.C: New test.
15613         * testsuite/libgomp.c++/taskloop-1.C: New test.
15614         * testsuite/libgomp.c++/taskloop-2.C: New test.
15615         * testsuite/libgomp.c++/taskloop-3.C: New test.
15616         * testsuite/libgomp.c++/taskloop-4.C: New test.
15617         * testsuite/libgomp.c++/taskloop-5.C: New test.
15618         * testsuite/libgomp.c++/taskloop-6.C: New test.
15619         * testsuite/libgomp.c++/taskloop-7.C: New test.
15620         * testsuite/libgomp.c++/taskloop-8.C: New test.
15621         * testsuite/libgomp.c++/taskloop-9.C: New test.
15622         * testsuite/libgomp.fortran/affinity1.f90: New test.
15623         * testsuite/libgomp.fortran/affinity2.f90: New test.
15625 2015-10-13  Tom de Vries  <tom@codesourcery.com>
15627         PR tree-optimization/67476
15628         * testsuite/libgomp.c/autopar-3.c: New test.
15629         * testsuite/libgomp.c/autopar-4.c: New test.
15630         * testsuite/libgomp.c/autopar-5.c: New test.
15631         * testsuite/libgomp.c/autopar-6.c: New test.
15632         * testsuite/libgomp.c/autopar-7.c: New test.
15633         * testsuite/libgomp.c/autopar-8.c: New test.
15635 2015-10-12  James Norris  <jnorris@codesourcery.com>
15637         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
15638         initializer.
15640 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
15642         * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
15643         using load_gcc_lib.
15645 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
15647         * oacc-ptx.h: Remove file, moving its content into...
15648         * config/nvptx/fortran.c: ... here...
15649         * config/nvptx/oacc-init.c: ..., here...
15650         * config/nvptx/oacc-parallel.c: ..., and here.
15651         * config/nvptx/openacc.f90: New file.
15652         * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
15653         (link_ptx): Don't link in predefined bits of PTX code.
15655 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
15656             Bernd Schmidt <bernds@codesourcery.com>
15658         * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
15659         (struct targ_ptx_obj): New.
15660         (nvptx_tdata): Move earlier, change data format.
15661         (link_ptx): Take targ_ptx_obj ptr and count.  Allow multiple
15662         objects.
15663         (GOMP_OFFLOAD_load_image): Adjust.
15665 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
15667         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
15668         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
15669         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
15670         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
15671         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15672         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
15673         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
15674         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
15675         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
15676         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
15677         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15678         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15679         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15680         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15681         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15682         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15683         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15684         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15685         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15686         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15687         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15688         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15689         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15690         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15691         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15692         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15693         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15694         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15695         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15696         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15697         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15698         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15699         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15700         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15701         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15702         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15703         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15704         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15705         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15706         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15707         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15708         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15709         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15710         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15711         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15712         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15713         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15714         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15715         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15716         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15717         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15718         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15719         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15720         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15721         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
15722         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15723         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15724         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
15725         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
15726         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
15727         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
15728         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
15729         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15731 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
15733         * oacc-init.c (acc_on_device): Force optimization level.
15735 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
15737         * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
15738         (cuda_errlist): Delete.
15739         (cuda_error): Reimplement.
15741 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
15743         * libgomp.h (acc_dispatch_t): Replace separate geometry args with
15744         array.
15745         * libgomp.map (GOACC_parallel_keyed): New.
15746         * oacc-parallel.c (goacc_wait): Take pointer to va_list.  Adjust
15747         all callers.
15748         (GOACC_parallel_keyed): New interface.  Lose geometry arguments
15749         and take keyed varargs list.  Adjust call to exec_func.
15750         (GOACC_parallel): Force host fallback.
15751         * libgomp_g.h (GOACC_parallel): Remove.
15752         (GOACC_parallel_keyed): Declare.
15753         * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
15754         (struct targ_gn_descriptor): Replace name field with launch field.
15755         (nvptx_exec): Lose separate geometry args, take array.  Process
15756         dynamic dimensions and adjust.
15757         (struct nvptx_tdata): Replace fn_names field with fn_descs.
15758         (GOMP_OFFLOAD_load_image): Adjust for change in function table
15759         data.
15760         (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
15761         passing.
15762         * oacc-host.c (host_openacc_exec): Adjust for change in dimension
15763         passing.
15765 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
15767         PR libgomp/67141
15768         * oacc-int.h (goacc_host_init): Add declaration.
15769         * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
15770         * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
15772 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
15773             Sebastian Pop  <s.pop@samsung.com>
15775         * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
15776         match o/p.
15777         * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
15778         * testsuite/libgomp.graphite/force-parallel-4.c: Same.
15779         * testsuite/libgomp.graphite/force-parallel-5.c: Same.
15780         * testsuite/libgomp.graphite/force-parallel-7.c: Same.
15781         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
15783 2015-09-03  Jakub Jelinek  <jakub@redhat.com>
15785         * configure.tgt: Add missing ;; in between nvptx and rtems
15786         snippets.
15788 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15790         * config/posix/pool.h (gomp_adjust_thread_attr): New.
15791         * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
15792         (gomp_thread_pool_reservoir): Add priority member.
15793         * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
15794         priority.
15795         (parse_thread_pools): Likewise.
15796         * team.c (gomp_team_start): Call configuration provided
15797         gomp_adjust_thread_attr(). Destroy thread attributes if
15798         necessary.
15799         * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
15801 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15803         * config/posix/pool.h: New.
15804         * config/rtems/pool.h: Likewise.
15805         * config/rtems/proc.c: Likewise.
15806         * libgomp.h (gomp_thread_destructor): Declare.
15807         * team.c: Include configuration provided "pool.h".
15808         (gomp_get_thread_pool): Define in configuration.
15809         (gomp_team_end): Call configuration defined
15810         gomp_release_thread_pool().
15812 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15814         * config/rtems/bar.c: New.
15815         * config/rtems/bar.h: Likewise.
15816         * config/rtems/mutex.c: Likewise.
15817         * config/rtems/mutex.h: Likewise.
15818         * config/rtems/sem.c: Likewise.
15819         * config/rtems/sem.h: Likewise.
15820         * configure.ac (*-*-rtems*): Check that Newlib provides a proper
15821         <sys/lock.h> header file.
15822         * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
15823         supported by Newlib.
15824         * configure: Regenerate.
15826 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15828         * team.c (gomp_new_thread_pool): Delete and move content to ...
15829         (gomp_get_thread_pool): ... new function.  Allocate and
15830         initialize thread pool on demand.
15831         (get_last_team): Use gomp_get_thread_pool().
15832         (gomp_team_start): Delete thread pool initialization.
15834 2015-09-03  Tom de Vries  <tom@codesourcery.com>
15836         PR tree-optimization/65637
15837         * testsuite/libgomp.c/autopar-2.c: New test.
15839 2015-08-29  Tom de Vries  <tom@codesourcery.com>
15841         PR tree-optimization/46193
15842         * testsuite/libgomp.c/pr46193.c: New test.
15844 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
15846         libgomp/
15847         * libgomp.map: Add 4.0.2 version.
15848         * target.c (offload_image_descr): Add version field.
15849         (gomp_load_image_to_device): Add version argument.  Adjust plugin
15850         call.  Improve load mismatch diagnostic.
15851         (gomp_unload_image_from_device): Add version argument.  Adjust plugin
15852         call.
15853         (GOMP_offload_regster): Make stub function, move bulk to ...
15854         (GOMP_offload_register_ver): ... here.  Process version argument.
15855         (GOMP_offload_unregister): Make stub function, move bulk to ...
15856         (GOMP_offload_unregister_ver): ... here.  Process version argument.
15857         (gomp_init_device): Process version field.
15858         (gomp_unload_device): Process version field.
15859         (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
15860         macros.  Check plugin version.
15861         * libgomp.h (gomp_device_descr): Add version function field.  Adjust
15862         loader and unloader types.
15863         * oacc-host.c: Include gomp-constants.h.
15864         (host_version): New.
15865         (host_load_image, host_unload_image): Adjust.
15866         (host_dispatch): Add host_version.
15867         * plugin/plugin-nvptx.c: Include gomp-constants.h.
15868         (GOMP_OFFLOAD_version): New.
15869         (GOMP_OFFLOAD_load_image): Add version arg and check it.
15870         (GOMP_OFFLOAD_unload_image): Likewise.
15871         * plugin/plugin-host.c: Include gomp-constants.h.
15872         (GOMP_OFFLOAD_version): New.
15873         (GOMP_OFFLOAD_load_image): Add version arg.
15874         (GOMP_OFFLOAD_unload_image): Likewise.
15876 2015-08-24  Tom de Vries  <tom@codesourcery.com>
15878         PR tree-optimization/65468
15879         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
15881 2015-08-24  Tom de Vries  <tom@codesourcery.com>
15883         PR tree-optimization/65468
15884         * testsuite/libgomp.c/static-chunk-size-one.c: New test.
15886 2015-08-24  Joost VandeVondele  <vondele@gnu.gcc.org>
15888         PR libgomp/66761
15889         PR libgomp/67303
15890         * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
15891         (gomp_iter_guided_next): Idem.
15892         * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
15893         (gomp_iter_ull_guided_next): Idem.
15894         * config/linux/wait.h (do_spin): Idem.
15896 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
15898         * libgomp-plugin.h (enum offload_target_type): Remove
15899         OFFLOAD_TARGET_TYPE_HOST_NONSHM.
15900         * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
15901         * openacc.h (enum acc_device_t): Likewise.
15902         * openacc_lib.h: Likewise.
15903         * oacc-init.c (name_of_acc_device_t): Don't handle it.
15904         (acc_on_device): Just use __builtin_acc_on_device.
15905         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
15906         of acc_on_device builtin.
15907         * plugin/plugin-host.h: Remove file.
15908         * plugin/plugin-host.c: Likewise, but salvage some content into...
15909         * oacc-host.c: ... this file.
15910         * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
15911         * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
15912         * Makefile.in: Regenerate.
15913         * configure: Likewise.
15914         * testsuite/lib/libgomp.exp
15915         (check_effective_target_openacc_host_nonshm_selected): Remove.
15916         * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
15917         ACC_DEVICE_TYPE=host_nonshm.
15918         * testsuite/libgomp.oacc-c/c.exp: Likewise.
15919         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15920         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
15921         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
15922         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
15923         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
15925 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
15926             Jakub Jelinek  <jakub@redhat.com>
15928         * config/nvptx/affinity.c: New file.
15929         * config/nvptx/alloc.c: Likewise.
15930         * config/nvptx/bar.c: Likewise.
15931         * config/nvptx/barrier.c: Likewise.
15932         * config/nvptx/critical.c: Likewise.
15933         * config/nvptx/env.c: Likewise.
15934         * config/nvptx/error.c: Likewise.
15935         * config/nvptx/fortran.c: Likewise.
15936         * config/nvptx/iter.c: Likewise.
15937         * config/nvptx/iter_ull.c: Likewise.
15938         * config/nvptx/libgomp-plugin.c: Likewise.
15939         * config/nvptx/lock.c: Likewise.
15940         * config/nvptx/loop.c: Likewise.
15941         * config/nvptx/loop_ull.c: Likewise.
15942         * config/nvptx/mutex.c: Likewise.
15943         * config/nvptx/oacc-async.c: Likewise.
15944         * config/nvptx/oacc-cuda.c: Likewise.
15945         * config/nvptx/oacc-host.c: Likewise.
15946         * config/nvptx/oacc-init.c: Likewise.
15947         * config/nvptx/oacc-mem.c: Likewise.
15948         * config/nvptx/oacc-parallel.c: Likewise.
15949         * config/nvptx/oacc-plugin.c: Likewise.
15950         * config/nvptx/omp-lock.h: Likewise.
15951         * config/nvptx/ordered.c: Likewise.
15952         * config/nvptx/parallel.c: Likewise.
15953         * config/nvptx/proc.c: Likewise.
15954         * config/nvptx/ptrlock.c: Likewise.
15955         * config/nvptx/sections.c: Likewise.
15956         * config/nvptx/sem.c: Likewise.
15957         * config/nvptx/single.c: Likewise.
15958         * config/nvptx/splay-tree.c: Likewise.
15959         * config/nvptx/target.c: Likewise.
15960         * config/nvptx/task.c: Likewise.
15961         * config/nvptx/team.c: Likewise.
15962         * config/nvptx/time.c: Likewise.
15963         * config/nvptx/work.c: Likewise.
15964         * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
15965         * configure: Regenerate.
15966         * configure.tgt (config_path): Set to "nvptx" for target
15967         nvptx*-*-*.
15969 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
15971         * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
15973 2015-08-03  Nathan Sidwell  <nathan@codesourcery.com>
15975         * plugin/plugin-nvptx.c: Don't include dlfcn.h.
15976         (cuda_errlist): Constify.
15977         (errmsg):  Move into ...
15978         (cuda_error): ... here.  Make smaller.
15979         (_XSTR, _STR): Delete.
15980         (cuda_synames): Delete.
15981         (verify_device_library): Delete.
15982         (nvptx_init): Don't call it.
15984 2015-07-28  Tom de Vries  <tom@codesourcery.com>
15986         * testsuite/libgomp.c/uns-outer-4.c: New test.
15988 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
15990         * testsuite/libgomp.c/pr66714.c: New test.
15992 2015-07-22  Maxim Blumenthal  <maxim.blumenthal@intel.com>
15994         PR libgomp/66950
15995         * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
15996         (fib_ref): New function.
15997         (fib): Correct corner cases in the recursion.
15998         (main): Replace the non-simd loop with fib_ref call.
15999         * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
16000         subroutine.
16001         (fibonacci): Lower the parameter N to 30.  Correct accordingly check
16002         for the last array element value.  Replace the non-simd loop with
16003         fib_ref call.  Remove redundant b_ref array.  Remove the comparison
16004         of the last array element with according Fibonacci sequence element.
16005         (fib): Correct corner cases in the recursion.
16007 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
16009         * target.c (gomp_offload_image_to_device): Rename to ...
16010         (gomp_load_image_to_device): ... here.
16011         (GOMP_offload_register): Adjust call.
16012         (gomp_init_device): Likewise.
16013         (gomp_unload_image_from_device): New.  Broken out of ...
16014         (GOMP_offload_unregister): ... here.  Call it.
16015         (gomp_unload_device): New.
16016         * libgomp.h (gomp_unload_device): Declare.
16017         * oacc-init.c (acc_shutdown_1): Unload from device before deleting
16018         mem maps.
16020 2015-07-20  Nathan Sidwell  <nathan@codesourcery.com>
16022         * oacc-parallel.c (GOACC_parallel): Move variadic handling into
16023         wait=-specific if.
16024         (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
16025         !=0 condition.
16026         (goacc_waits): Move !num_waits handling to ...
16027         (GOACC_wait): ... here, the only caller that might have zero waits.
16029         * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
16030         (struct ptx_image_data): Move earlier, add fns field.
16031         (struct ptx_device): Add images and image_lock fields.
16032         (ptx_images, ptx_image_lock): Delete.
16033         (nvptx_open_device): Initialize images and image_lock fields.
16034         (nvptx_close_device): Destroy image_lock.
16035         (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
16036         (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
16037         fields.
16039 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
16041         * target.c (GOMP_offload_register): Use int for device type arg.
16042         (GOMP_offload_unregister): Likewise.
16044         * target.c (struct_offload_image_descr): Constify host_table.
16045         (gomp_offload_image_to_device): Likewise.
16046         (GOMP_offload_register, GOMP_offload_unregister): Likewise.
16048         * libgomp.h (gomp_device_descr): Constify target data arguments.
16049         * target.c (struct offload_image_descr): Constify target_data.
16050         (gomp_offload_image_to_device): Likewise.
16051         (GOMP_offload_register): Likewise.
16052         (GOMP_offload_unregister): Likewise.
16053         * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
16054         GOMP_OFFLOAD_unload_image): Constify target data.
16055         * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
16056         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
16058 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
16060         * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
16061         Workaround driver library const error.
16062         (struct nvptx_tdata, nvptx_tdata_t): New.
16063         (GOMP_OFFLOAD_load_image): Use struct for target_data's real
16064         type.
16066 2015-07-15  Maxim Blumenthal  <maxim.blumenthal@intel.com>
16068         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
16069         of EPS parameter from integer to real.
16070         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
16071         type of EPS parameter from integer to real.
16073 2015-07-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
16075         * team.c (get_last_team): New.
16076         (gomp_new_team): Recycle last non-nested team if possible.
16077         (gomp_team_end): Move team work share list free lock destruction
16078         to ...
16079         (free_team): ... here.
16081 2015-07-14  Maxim Blumenthal  <maxim.blumenthal@intel.com>
16083         * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
16084         and ref from int to double.  Replaced their comparison with
16085         an inequality of their difference and EPS.
16086         * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
16087         comparison of pri and a reference number with an inequality of their
16088         difference and EPS.
16089         * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
16090         the comparison of sum and sum_ref with an inequality of their
16091         difference and EPS.
16092         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
16093         the comparison of pri and a reference number with an inequality of
16094         their difference and EPS.
16096 2015-07-13  Maxim Blumenthal  <maxim.blumenthal@intel.com>
16098         * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
16099         * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
16100         * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
16101         * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
16102         * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
16103         * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
16104         * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
16105         * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
16106         * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
16107         * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
16108         * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
16109         * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
16110         (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
16111         variables.
16112         (vec_mult): Likewise.  Add #pragma omp taskwait.
16113         (main): Adjust caller.
16114         * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
16115         * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
16116         * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
16117         * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
16118         * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
16119         * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
16120         * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
16121         * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
16122         * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
16123         * testsuite/libgomp.c/examples-4/device-1.c: ...this.
16124         * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
16125         * testsuite/libgomp.c/examples-4/device-2.c: ...this.
16126         * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
16127         * testsuite/libgomp.c/examples-4/device-3.c: ...this.
16128         * testsuite/libgomp.c/examples-4/simd-1.c: New file.
16129         * testsuite/libgomp.c/examples-4/simd-2.c: New file.
16130         * testsuite/libgomp.c/examples-4/simd-3.c: New file.
16131         * testsuite/libgomp.c/examples-4/simd-4.c: New file.
16132         * testsuite/libgomp.c/examples-4/simd-5.c: New file.
16133         * testsuite/libgomp.c/examples-4/simd-6.c: New file.
16134         * testsuite/libgomp.c/examples-4/simd-7.c: New file.
16135         * testsuite/libgomp.c/examples-4/simd-8.c: New file.
16136         * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
16137         * testsuite/libgomp.c/examples-4/target-1.c: ...this.
16138         * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
16139         * testsuite/libgomp.c/examples-4/target-2.c: ...this.
16140         * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
16141         * testsuite/libgomp.c/examples-4/target-3.c: ...this.
16142         * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
16143         * testsuite/libgomp.c/examples-4/target-4.c: ...this.
16144         * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
16145         * testsuite/libgomp.c/examples-4/target-5.c: ...this.
16146         * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
16147         * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
16148         * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
16149         * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
16150         * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
16151         * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
16152         * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
16153         * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
16154         * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
16155         * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
16156         * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
16157         * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
16158         * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
16159         * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
16160         * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
16161         * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
16162         * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
16163         * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
16164         * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
16165         * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
16166         * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
16167         * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
16168         * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
16169         * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
16170         * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
16171         * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
16172         * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
16173         * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
16174         * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
16175         * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
16176         * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
16177         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
16178         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
16179         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
16180         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
16181         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
16182         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
16183         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
16184         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
16185         (vec_mult): Add !$omp taskwait.
16186         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
16187         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
16188         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
16189         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
16190         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
16191         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
16192         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
16193         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
16194         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
16195         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
16196         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
16197         * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
16198         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
16199         * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
16200         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
16201         * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
16202         * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
16203         * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
16204         * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
16205         * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
16206         * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
16207         * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
16208         * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
16209         * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
16210         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
16211         * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
16212         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
16213         * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
16214         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
16215         * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
16216         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
16217         * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
16218         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
16219         * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
16220         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
16221         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
16222         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
16223         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
16224         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
16225         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
16226         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
16227         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
16228         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
16229         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
16230         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
16231         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
16232         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
16233         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
16234         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
16235         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
16236         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
16237         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
16238         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
16239         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
16240         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
16241         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
16242         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
16243         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
16244         * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
16245         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
16246         * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
16247         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
16248         * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
16249         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
16250         * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
16251         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
16252         * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
16254 2015-07-10  Tom de Vries  <tom@codesourcery.com>
16256         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
16257         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
16259 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
16261         PR libgomp/65099
16262         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
16263         in a 64-bit configuration.
16264         * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
16265         offloading testing if no such device is available.
16266         * testsuite/libgomp.oacc-c/c.exp: Likewise.
16267         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
16269 2015-07-08  Tom de Vries  <tom@codesourcery.com>
16271         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
16272         second call to f.
16273         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
16275 2015-07-07  Tom de Vries  <tom@codesourcery.com>
16277         PR tree-optimization/66642
16278         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
16279         iteration count case.
16280         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
16281         function, factor out of ...
16282         (main): ... here.  Test low iteration count case.
16284 2015-07-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
16286         * libgomp.h (gomp_thread_pool): Comment last_team field.
16288 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
16290         * testsuite/libgomp.c++/pr66702-1.C: Require
16291         vect_simd_clones effective target.
16292         * testsuite/libgomp.c++/pr66702-2.C: Ditto.
16294 2015-06-30  Tom de Vries  <tom@codesourcery.com>
16296         * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
16297         already set.  Use DEFAULT_CFLAGS in dg-runtest.
16298         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
16299         "-O2".
16301 2015-06-30  Tom de Vries  <tom@codesourcery.com>
16303         * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
16304         already set.  Use DEFAULT_CFLAGS in dg-runtest.
16305         * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
16306         * testsuite/libgomp.c++/pr64824.C: Same.
16307         * testsuite/libgomp.c++/pr64868.C: Same.
16308         * testsuite/libgomp.c++/pr66199-1.C: Same.
16309         * testsuite/libgomp.c++/pr66199-2.C: Same.
16310         * testsuite/libgomp.c++/target-2.C: Same.
16311         * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
16312         -std=<standard> option.
16313         * testsuite/libgomp.c++/udr-11.C: Same.
16314         * testsuite/libgomp.c++/udr-12.C: Same.
16315         * testsuite/libgomp.c++/udr-13.C: Same.
16316         * testsuite/libgomp.c++/udr-14.C: Same.
16317         * testsuite/libgomp.c++/udr-15.C: Same.
16318         * testsuite/libgomp.c++/udr-16.C: Same.
16319         * testsuite/libgomp.c++/udr-17.C: Same.
16320         * testsuite/libgomp.c++/udr-18.C: Same.
16321         * testsuite/libgomp.c++/udr-19.C: Same.
16322         * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
16323         * testsuite/libgomp.c++/simd-1.C: Same.
16324         * testsuite/libgomp.c++/simd-2.C: Same.
16325         * testsuite/libgomp.c++/simd-3.C: Same.
16326         * testsuite/libgomp.c++/simd-4.C: Same.
16327         * testsuite/libgomp.c++/simd-5.C: Same.
16328         * testsuite/libgomp.c++/simd-6.C: Same.
16329         * testsuite/libgomp.c++/simd-7.C: Same.
16330         * testsuite/libgomp.c++/simd-8.C: Same.
16331         * testsuite/libgomp.c++/simd-9.C: Same.
16332         * testsuite/libgomp.c++/simd10.C: Same.
16333         * testsuite/libgomp.c++/simd11.C: Same.
16334         * testsuite/libgomp.c++/simd12.C: Same.
16335         * testsuite/libgomp.c++/simd13.C: Same.
16337 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
16339         PR middle-end/66702
16340         * testsuite/libgomp.c++/pr66702-1.C: New test.
16341         * testsuite/libgomp.c++/pr66702-2.C: New test.
16343 2015-06-30  Tom de Vries  <tom@codesourcery.com>
16345         * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
16346         * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
16347         * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
16348         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
16350 2015-06-30  Tom de Vries  <tom@codesourcery.com>
16352         PR tree-optimization/66652
16353         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
16354         using restrict pointers.
16355         (main): Add arguments to calls to f.
16356         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
16358 2015-06-23  Andreas Tobler  <andreast@gcc.gnu.org>
16360         * configure.ac: Fix check for header <sys/sysctl.h>.
16361         * configure: Regenerate.
16362         * config.h.in: Likewise.
16364 2015-06-23  Tom de Vries  <tom@codesourcery.com>
16366         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
16367         abort.
16368         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
16370 2015-06-19  Thomas Schwinge  <thomas@codesourcery.com>
16372         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
16373         acc_device_nvidia.
16375         PR libgomp/66518
16376         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
16377         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
16379 2015-06-15  Tom de Vries  <tom@codesourcery.com>
16381         * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2".  Use
16382         dg-additional-options for any remaining options.
16383         * testsuite/libgomp.c/atomic-2.c: Same.
16384         * testsuite/libgomp.c/atomic-4.c: Same.
16385         * testsuite/libgomp.c/atomic-5.c: Same.
16386         * testsuite/libgomp.c/atomic-6.c: Same.
16387         * testsuite/libgomp.c/autopar-1.c: Same.
16388         * testsuite/libgomp.c/copyin-1.c: Same.
16389         * testsuite/libgomp.c/copyin-2.c: Same.
16390         * testsuite/libgomp.c/copyin-3.c: Same.
16391         * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
16392         * testsuite/libgomp.c/nestedfn-5.c: Same.
16393         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
16394         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
16395         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
16396         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
16397         * testsuite/libgomp.c/pr32362-1.c: Same.
16398         * testsuite/libgomp.c/pr32362-2.c: Same.
16399         * testsuite/libgomp.c/pr32362-3.c: Same.
16400         * testsuite/libgomp.c/pr39591-1.c: Same.
16401         * testsuite/libgomp.c/pr39591-2.c: Same.
16402         * testsuite/libgomp.c/pr39591-3.c: Same.
16403         * testsuite/libgomp.c/pr58392.c: Same.
16404         * testsuite/libgomp.c/pr58756.c: Same.
16405         * testsuite/libgomp.c/simd-1.c: Same.
16406         * testsuite/libgomp.c/simd-10.c: Same.
16407         * testsuite/libgomp.c/simd-11.c: Same.
16408         * testsuite/libgomp.c/simd-12.c: Same.
16409         * testsuite/libgomp.c/simd-13.c: Same.
16410         * testsuite/libgomp.c/simd-14.c: Same.
16411         * testsuite/libgomp.c/simd-15.c: Same.
16412         * testsuite/libgomp.c/simd-2.c: Same.
16413         * testsuite/libgomp.c/simd-3.c: Same.
16414         * testsuite/libgomp.c/simd-4.c: Same.
16415         * testsuite/libgomp.c/simd-5.c: Same.
16416         * testsuite/libgomp.c/simd-6.c: Same.
16417         * testsuite/libgomp.c/simd-7.c: Same.
16418         * testsuite/libgomp.c/simd-8.c: Same.
16419         * testsuite/libgomp.c/simd-9.c: Same.
16421 2015-06-15  Tom de Vries  <tom@codesourcery.com>
16423         * testsuite/libgomp.c/pr35625.c: Fix typo.
16425 2015-06-15  Tom de Vries  <tom@codesourcery.com>
16427         * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
16428         in dg-options.
16429         * testsuite/libgomp.c/atomic-3.c: Same.
16430         * testsuite/libgomp.c/debug-1.c: Same.
16431         * testsuite/libgomp.c/nqueens-1.c: Same.
16432         * testsuite/libgomp.c/pr26171.c: Same.
16433         * testsuite/libgomp.c/pr48591.c: Same.
16434         * testsuite/libgomp.c/pr64824.c: Same.
16435         * testsuite/libgomp.c/pr64868.c: Same.
16436         * testsuite/libgomp.c/pr66133.c: Same.
16437         * testsuite/libgomp.c/pr66199-1.c: Same.
16438         * testsuite/libgomp.c/pr66199-2.c: Same.
16439         * testsuite/libgomp.c/target-8.c: Same.
16441 2015-06-15  Tom de Vries  <tom@codesourcery.com>
16443         * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
16444         -std={gnu99,c99}.
16445         * testsuite/libgomp.c/for-1.c: Same.
16446         * testsuite/libgomp.c/for-2.c: Same.
16447         * testsuite/libgomp.c/for-3.c: Same.
16448         * testsuite/libgomp.c/pr35625.c: Same.
16449         * testsuite/libgomp.c/pr39154.c: Same.
16450         * testsuite/libgomp.c/simd-16.c: Same.
16451         * testsuite/libgomp.c/simd-17.c: Same.
16453 2015-06-13  Tom de Vries  <tom@codesourcery.com>
16455         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
16457 2015-06-13  Tom de Vries  <tom@codesourcery.com>
16459         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
16460         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
16461         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
16462         (N): Define.
16463         (main): Use N instead of hardcoded constants.
16465 2015-06-05  Tom de Vries  <tom@codesourcery.com>
16467         merge from gomp4 branch:
16468         2015-05-28  Tom de Vries  <tom@codesourcery.com>
16470         PR tree-optimization/65443
16471         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
16472         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
16473         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
16475 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16477         * testsuite/libgomp.graphite/bounds.c: Adjust for
16478         cleanup-tree-dump removal.
16479         * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
16480         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
16481         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
16482         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
16483         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
16484         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
16485         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16486         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16487         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
16488         * testsuite/libgomp.graphite/pr41118.c: Likewise.
16490 2015-05-28  Uros Bizjak  <ubizjak@gmail.com>
16492         * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
16493         (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
16494         (futex_wake) [!__x86_64__]: Ditto.
16496 2015-05-28  Julian Brown  <julian@codesourcery.com>
16498         * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
16499         function comment. Only call gomp_fatal if new argument is true.
16500         (acc_dev_num_out_of_range): New function.
16501         (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
16502         acc_dev_num_out_of_range as appropriate.
16503         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
16504         (acc_get_device_num, acc_set_device_num): Update calls to
16505         resolve_device.
16506         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
16507         output.
16509 2015-05-28  Julian Brown  <julian@codesourcery.com>
16511         PR libgomp/65742
16512         * oacc-init.c (plugin/plugin-host.h): Include.
16513         (acc_on_device): Check whether we're in an offloaded region for
16514         host_nonshm
16515         plugin. Don't use __builtin_acc_on_device.
16516         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
16517         nonshm_exec flag in thread-local data.
16518         (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
16519         data for host_nonshm plugin.
16520         (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
16521         for host_nonshm plugin.
16522         * plugin/plugin-host.h: New.
16524 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
16526         * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
16528 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
16530         * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
16531         Declare as int.
16532         (FUTEX_PRIVATE_FLAG): Remove L suffix.
16533         * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
16534         Declare as int.
16536 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
16538         * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
16540 2015-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
16542         * target.c (gomp_map_pointer): New function abstracting out
16543         GOMP_MAP_POINTER handling.
16544         (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
16545         gomp_map_pointer().
16547 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
16549         PR middle-end/66199
16550         * testsuite/libgomp.c/pr66199-1.c: New test.
16551         * testsuite/libgomp.c/pr66199-2.c: New test.
16552         * testsuite/libgomp.c++/pr66199-1.C: New test.
16553         * testsuite/libgomp.c++/pr66199-2.C: New test.
16554         * testsuite/libgomp.fortran/pr66199-1.f90: New test.
16555         * testsuite/libgomp.fortran/pr66199-2.f90: New test.
16557 2015-05-19  Julian Brown  <julian@codesourcery.com>
16559         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
16560         on cuInit failure.
16562 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
16564         PR middle-end/66133
16565         * testsuite/libgomp.c/pr66133.c: New test.
16567 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
16569         * Makefile.in: Regenerated with automake-1.11.6.
16570         * aclocal.m4: Likewise.
16571         * config.h.in: Likewise.
16572         * configure: Likewise.
16573         * testsuite/Makefile.in: Likewise.
16575 2015-05-08  Jason Merrill  <jason@redhat.com>
16577         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
16578         _Complex.
16580         * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
16582 2015-05-06  Julian Brown  <julian@codesourcery.com>
16584         * oacc-init.c (acc_device_lock): Add explanatory comment.
16585         (resolve_device): Add comment about locking requirement.
16586         (acc_init_1, acc_shutdown_1): Likewise. Add locking around
16587         gomp_init_device and gomp_fini_device calls.
16588         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
16589         (acc_get_device_num, acc_set_device_num): Add locking around
16590         resolve_device and gomp_init_device calls.
16592 2015-05-06  Julian Brown  <julian@codesourcery.com>
16594         * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
16595         goacc_thread_lock on error paths.
16596         * oacc-mem.c (lookup_host): Remove locking from function. Note
16597         locking requirement for caller in function comment.
16598         (lookup_dev): Likewise.
16599         (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
16600         (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
16601         (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
16602         Add locking.
16604 2015-05-05  Thomas Schwinge  <thomas@codesourcery.com>
16606         PR testsuite/65205
16607         PR libgomp/65993
16608         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
16609         don't expect "0x" prefix for "%p" format specifier, don't expect
16610         "(nil)" for NULL pointer.
16611         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
16612         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
16613         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
16614         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
16615         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
16616         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
16617         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
16618         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
16619         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
16620         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
16621         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
16622         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
16623         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
16624         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
16625         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
16626         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
16627         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
16628         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
16629         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
16630         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
16631         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
16632         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
16633         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
16634         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
16635         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
16636         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
16637         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
16638         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
16639         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
16640         accurately specify what we're looking for.
16641         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
16642         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
16643         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
16644         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
16645         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
16647 2015-04-30  James Norris  <jnorris@codesourcery.com>
16649         PR testsuite/65205
16650         * testsuite/lib/libgomp.exp
16651         (check_effective_target_openacc_host_selected)
16652         (check_effective_target_openacc_host_nonshm_selected): New
16653         procedures.
16654         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
16655         dg-shouldfail.
16656         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
16657         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
16658         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
16659         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
16660         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
16661         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
16662         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
16663         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
16664         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
16665         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
16666         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
16667         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
16668         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
16669         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
16670         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
16671         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
16672         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
16673         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
16674         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
16675         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
16676         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
16677         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
16678         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
16679         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
16680         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
16681         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
16682         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
16683         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
16684         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
16685         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
16686         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
16687         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
16688         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
16689         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
16690         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
16691         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
16692         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
16693         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
16694         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
16695         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
16696         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
16697         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
16698         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
16700 2015-04-08  Julian Brown  <julian@codesourcery.com>
16702         * libgomp.h (target_mem_desc: Remove mem_map field.
16703         (acc_dispatch_t): Remove open_device_func, close_device_func,
16704         get_device_num_func, set_device_num_func, target_data members.
16705         Change create_thread_data_func argument to device number instead of
16706         generic pointer.
16707         * oacc-async.c (assert.h): Include.
16708         (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
16709         (acc_wait_all, acc_wait_all_async): Use current host thread's
16710         active device, not base_dev.
16711         * oacc-cuda.c (acc_get_current_cuda_device)
16712         (acc_get_current_cuda_context, acc_get_cuda_stream)
16713         (acc_set_cuda_stream): Likewise.
16714         * oacc-host.c (host_dispatch): Don't set open_device_func,
16715         close_device_func, get_device_num_func or set_device_num_func.
16716         * oacc-init.c (base_dev, init_key): Remove.
16717         (cached_base_dev): New.
16718         (name_of_acc_device_t): New.
16719         (acc_init_1): Initialise default-numbered device, not zeroth.
16720         (acc_shutdown_1): Close all devices of a given type.
16721         (goacc_destroy_thread): Don't use base_dev.
16722         (lazy_open, lazy_init, lazy_init_and_open): Remove.
16723         (goacc_attach_host_thread_to_device): New.
16724         (acc_init): Reimplement with goacc_attach_host_thread_to_device.
16725         (acc_get_num_devices): Don't use base_dev.
16726         (acc_set_device_type): Reimplement.
16727         (acc_get_device_type): Don't use base_dev.
16728         (acc_get_device_num): Tweak logic.
16729         (acc_set_device_num): Likewise.
16730         (acc_on_device): Use acc_get_device_type.
16731         (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
16732         (goacc_lazy_initialize): Reimplement with acc_init and
16733         goacc_attach_host_thread_to_device.
16734         * oacc-int.h (goacc_thread): Add base_dev field.
16735         (base_dev): Remove extern declaration.
16736         (goacc_attach_host_thread_to_device): Add prototype.
16737         * oacc-mem.c (acc_malloc): Use current thread's device instead of
16738         base_dev.
16739         (acc_free): Likewise.
16740         (acc_memcpy_to_device): Likewise.
16741         (acc_memcpy_from_device): Likewise.
16742         * oacc-parallel.c (select_acc_device): Remove. Replace calls with
16743         goacc_lazy_initialize (throughout).
16744         (GOACC_parallel): Use tgt_offset to locate target functions.
16745         * target.c (gomp_map_vars): Don't set tgt->mem_map.
16746         (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
16747         (gomp_load_plugin_for_device): Remove open_device, close_device,
16748         get_device_num, set_device_num openacc hook initialisation. Don't set
16749         openacc.target_data.
16750         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
16751         (GOMP_OFFLOAD_openacc_close_device)
16752         (GOMP_OFFLOAD_openacc_get_device_num)
16753         (GOMP_OFFLOAD_openacc_set_device_num): Remove.
16754         (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
16755         to int.
16756         * plugin/plugin-nvptx.c (ptx_inited): Remove.
16757         (instantiated_devices, ptx_dev_lock): New.
16758         (struct ptx_image_data): New.
16759         (ptx_devices, ptx_images, ptx_image_lock): New.
16760         (fini_streams_for_device): Reorder cuStreamDestroy call.
16761         (nvptx_get_num_devices): Remove forward declaration.
16762         (nvptx_init): Change return type to bool.
16763         (nvptx_fini): Remove.
16764         (nvptx_attach_host_thread_to_device): New.
16765         (nvptx_open_device): Return struct ptx_device* instead of void*.
16766         (nvptx_close_device): Change argument type to struct ptx_device*,
16767         return type to void.
16768         (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
16769         (kernel_target_data, kernel_host_table): Remove static globals.
16770         (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
16771         (GOMP_OFFLOAD_init_device): Reimplement.
16772         (GOMP_OFFLOAD_fini_device): Likewise.
16773         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
16774         (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
16775         (GOMP_OFFLOAD_host2dev): Use ORD argument.
16776         (GOMP_OFFLOAD_openacc_open_device)
16777         (GOMP_OFFLOAD_openacc_close_device)
16778         (GOMP_OFFLOAD_openacc_set_device_num)
16779         (GOMP_OFFLOAD_openacc_get_device_num): Remove.
16780         (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
16781         (device number).
16783         testsuite/
16784         * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
16786 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
16788         * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
16789         * libgomp.h (struct gomp_memory_mapping): Remove.
16790         (struct target_mem_desc): Change type of mem_map from
16791         gomp_memory_mapping * to splay_tree_s *.
16792         (struct gomp_device_descr): Remove register_image_func, get_table_func.
16793         Add load_image_func, unload_image_func.
16794         Change type of mem_map from gomp_memory_mapping to splay_tree_s.
16795         Remove offload_regions_registered.
16796         (gomp_init_tables): Remove.
16797         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
16798         to splay_tree_s *.
16799         * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
16800         * oacc-host.c (host_dispatch): Do not initialize register_image_func,
16801         get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
16802         offload_regions_registered.
16803         Initialize load_image_func, unload_image_func, mem_map.root.
16804         (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
16805         * oacc-init.c (lazy_open): Don't call gomp_init_tables.
16806         (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
16807         * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
16808         gomp_memory_mapping *.  Use dev's lock and splay_tree.
16809         (lookup_dev): Use dev's lock.
16810         (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
16811         (acc_is_present): Likewise.
16812         (acc_map_data): Likewise.
16813         (acc_unmap_data): Likewise.  Use dev's lock.
16814         (present_create_copy): Likewise.
16815         (delete_copyout): Pass dev to lookup_host instead of mem_map.
16816         (update_dev_host): Likewise.
16817         (gomp_acc_remove_pointer): Likewise.  Use dev's lock.
16818         * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
16819         * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
16820         (GOMP_OFFLOAD_get_table): Remove
16821         (GOMP_OFFLOAD_load_image): New function.
16822         (GOMP_OFFLOAD_unload_image): New function.
16823         * target.c (register_lock): New mutex for offload image registration.
16824         (num_devices): Do not guard with PLUGIN_SUPPORT.
16825         (gomp_realloc_unlock): New static function.
16826         (gomp_map_vars_existing): Add device descriptor argument.  Unlock mutex
16827         before gomp_fatal.
16828         (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
16829         Pass devicep to gomp_map_vars_existing.  Unlock mutex before gomp_fatal.
16830         (gomp_copy_from_async): Use dev's lock and splay_tree instead of
16831         mem_map's.
16832         (gomp_unmap_vars): Likewise.
16833         (gomp_update): Remove gomp_memory_mapping argument.  Use dev's lock and
16834         splay_tree instead of mm's.  Unlock mutex before gomp_fatal.
16835         (gomp_offload_image_to_device): New static function.
16836         (GOMP_offload_register): Add mutex lock.
16837         Call gomp_offload_image_to_device for all initialized devices.
16838         Replace gomp_realloc with gomp_realloc_unlock.
16839         (GOMP_offload_unregister): New function.
16840         (gomp_init_tables): Replace with gomp_init_device.  Replace a call to
16841         get_table_func from the plugin with calls to init_device_func and
16842         gomp_offload_image_to_device.
16843         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
16844         to splay_tree_s *.
16845         (GOMP_target): Do not call gomp_init_tables.  Use dev's lock and
16846         splay_tree instead of mem_map's.  Unlock mutex before gomp_fatal.
16847         (GOMP_target_data): Do not call gomp_init_tables.
16848         (GOMP_target_update): Likewise.  Remove argument from gomp_update.
16849         (gomp_load_plugin_for_device): Replace register_image and get_table
16850         with load_image and unload_image in DLSYM ().
16851         (gomp_register_images_for_device): Remove function.
16852         (gomp_target_init): Do not initialize current_device.mem_map.*,
16853         current_device.offload_regions_registered.
16854         Remove call to gomp_register_images_for_device.
16855         Do not free offload_images and num_offload_images.
16857 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
16859         PR fortran/65597
16860         * testsuite/libgomp.fortran/pr65597.f90: New test.
16862 2015-03-27  Tom de Vries  <tom@codesourcery.com>
16864         PR testsuite/65594
16865         * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
16866         (init, check): New function.
16867         (foo): Change return type to void.
16868         (main): Call init and check.
16870 2015-03-27  Tom de Vries  <tom@codesourcery.com>
16872         PR testsuite/65594
16873         * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
16874         (foo): Use M for non-inner loops to scale down test-case.
16876 2015-03-25  Kai Tietz  <ktietz@redhat.com>
16878         PR libgomp/64972
16879         * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
16880         (GOACC_data_start): Likewise.
16881         * target.c (gomp_map_vars): Likewise.
16883 2015-03-21  John David Anglin  <danglin@gcc.gnu.org>
16885         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
16886         hppa*-*-hpux*.
16888 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
16890         * testsuite/libgomp.c/target-10.c: New test.
16891         * testsuite/libgomp.c++/target-4.C: New test.
16893 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
16895         * testsuite/libgomp.fortran/declare-target-1.f90: New test.
16896         * testsuite/libgomp.fortran/declare-target-2.f90: New file.
16898 2015-03-13  Sebastian Huber  <sebastian.huber@embedded-brains.de>
16900         * configure.tgt (*-*-rtems*): Use local-exec TLS model.
16901         * configure.ac (*-*-rtems*): Assume Pthread is supported.
16902         (pthread.h): Check for this header file.
16903         * configure: Regenerate.
16905 2015-02-25  Tom de Vries  <tom@codesourcery.com>
16907         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
16908         (check_reduction_op, check_reduction_macro, max, min):
16909         Declare.
16910         (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
16911         function.
16912         (main): Use new functions.
16914 2015-02-18  Ilya Tocar  <ilya.tocar@intel.com>
16916         * target.c (gomp_load_plugin_for_device): Use const char * instead of
16917         char * for variables holding dlerror return values.
16918         (DLSYM_OPT): Ditto.
16920 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
16922         * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
16924 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
16925             Cesar Philippidis  <cesar@codesourcery.com>
16927         * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
16928         GOACC_ctaid, and GOACC_nctaid routines.
16930 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
16932         PR c/64824
16933         * testsuite/libgomp.c/atomic-18.c: New test.
16934         * testsuite/libgomp.c++/atomic-16.C: New test.
16936 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
16938         PR c/64824
16939         PR c/64868
16940         * testsuite/libgomp.c/pr64824.c: New test.
16941         * testsuite/libgomp.c/pr64868.c: New test.
16942         * testsuite/libgomp.c++/pr64824.C: New test.
16943         * testsuite/libgomp.c++/pr64868.C: New test.
16945 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
16947         PR libgomp/64635
16948         * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
16949         Link with -lpthread.
16950         * config/aix/plugin-suffix.h: Delete.
16952 2015-01-28  Jack Howarth  <howarth.at.gcc@gmail.com>
16954         PR libgomp/64635
16955         * configure.tgt (*-*-aix*): Use config_path "aix posix".
16956         (*-*-darwin*): Use config_path "bsd darwin posix".
16957         (*-*-hpux*): Use config_path "hpux posix".
16958         * target.c: Add include of plugin-suffix.h and use
16959         SONAME_SUFFIX macro.
16960         * config/aix/plugin-suffix.h: New file.
16961         * config/darwin/plugin-suffix.h: New file.
16962         * config/hpux/plugin-suffix.h: New file.
16963         * config/posix/plugin-suffix.h: New file.
16965 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
16967         PR middle-end/64734
16968         * libgomp.c/pr64734.c: New test.
16970 2015-01-23  Tom de Vries  <tom@codesourcery.com>
16972         PR libgomp/64672
16973         * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
16975 2015-01-23  Tom de Vries  <tom@codesourcery.com>
16977         PR libgomp/64707
16978         * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
16979         dg-options.
16981 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
16983         PR libgomp/64625
16984         * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
16985         (GOACC_parallel, GOACC_update): Remove const_void *offload_table
16986         formal parameter.  Update all users.
16987         * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
16988         Document unused formal parameter.
16990 2015-01-16  Thomas Schwinge  <thomas@codesourcery.com>
16992         * oacc-parallel.c: Don't include <alloca.h>.
16993         (GOACC_parallel): Use gomp_alloca instead of alloca.
16995 2015-01-16  Gerald Pfeifer  <gerald@pfeifer.com>
16997         * target.c (num_devices): Guard with PLUGIN_SUPPORT.
16999 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
17000             James Norris  <jnorris@codesourcery.com>
17001             Tom de Vries  <tom@codesourcery.com>
17002             Julian Brown  <julian@codesourcery.com>
17003             Cesar Philippidis  <cesar@codesourcery.com>
17004             Nathan Sidwell  <nathan@codesourcery.com>
17005             Tobias Burnus  <burnus@net-b.de>
17007         * Makefile.am (search_path): Add $(top_srcdir)/../include.
17008         (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
17009         oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
17010         oacc-async.c, oacc-plugin.c, oacc-cuda.c.
17011         [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
17012         Include $(top_srcdir)/plugin/Makefrag.am.
17013         (nodist_libsubinclude_HEADERS): Add openacc.h.
17014         [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
17015         openacc.f90, openacc.mod, openacc_kinds.mod.
17016         (omp_lib.mod): Generalize into...
17017         (%.mod): ... this new rule.
17018         (openacc_kinds.mod, openacc.mod): New rules.
17019         * plugin/configfrag.ac: New file.
17020         * configure.ac: Move plugin/offloading support into it.  Include
17021         it.  Instantiate testsuite/libgomp-test-support.pt.exp.
17022         * plugin/Makefrag.am: New file.
17023         * testsuite/Makefile.am (OFFLOAD_TARGETS)
17024         (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
17025         export.
17026         (libgomp-test-support.exp): New rule.
17027         (all-local): Depend on it.
17028         * Makefile.in: Regenerate.
17029         * testsuite/Makefile.in: Regenerate.
17030         * config.h.in: Likewise.
17031         * configure: Likewise.
17032         * configure.tgt: Harden shell syntax.
17033         * env.c: Include "oacc-int.h".
17034         (parse_acc_device_type): New function.
17035         (gomp_debug_var, goacc_device_type, goacc_device_num): New
17036         variables.
17037         (initialize_env): Initialize those.  Call
17038         goacc_runtime_initialize.
17039         * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
17040         (gomp_fatal): Call gomp_vfatal.
17041         * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
17042         (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
17043         (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
17044         (splay_tree_node, splay_tree, splay_tree_key)
17045         (struct target_mem_desc, struct splay_tree_key_s)
17046         (struct gomp_memory_mapping, struct acc_dispatch_t)
17047         (struct gomp_device_descr, gomp_acc_insert_pointer)
17048         (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
17049         (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
17050         (gomp_free_memmap, gomp_fini_device): New declarations.
17051         (gomp_vdebug, gomp_debug): New macros.
17052         Include "splay-tree.h".
17053         * libgomp.map (OACC_2.0): New symbol version.  Use for
17054         acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
17055         acc_set_device_type_h_, acc_get_device_type,
17056         acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
17057         acc_get_device_num, acc_get_device_num_h_, acc_async_test,
17058         acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
17059         acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
17060         acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
17061         acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
17062         acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
17063         acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
17064         acc_copyin_array_h_, acc_present_or_copyin,
17065         acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
17066         acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
17067         acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
17068         acc_present_or_create_32_h_, acc_present_or_create_64_h_,
17069         acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
17070         acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
17071         acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
17072         acc_update_device, acc_update_device_32_h_,
17073         acc_update_device_64_h_, acc_update_device_array_h_,
17074         acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
17075         acc_update_self_array_h_, acc_map_data, acc_unmap_data,
17076         acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
17077         acc_is_present_64_h_, acc_is_present_array_h_,
17078         acc_memcpy_to_device, acc_memcpy_from_device,
17079         acc_get_current_cuda_device, acc_get_current_cuda_context,
17080         acc_get_cuda_stream, acc_set_cuda_stream.
17081         (GOACC_2.0): New symbol version.  Use for GOACC_data_end,
17082         GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
17083         GOACC_update, GOACC_wait, GOACC_get_thread_num,
17084         GOACC_get_num_threads.
17085         (GOMP_PLUGIN_1.0): New symbol version.  Use for
17086         GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
17087         GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
17088         GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
17089         GOMP_PLUGIN_acc_thread.
17090         * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
17091         environment variable.
17092         * libgomp_g.h (GOACC_data_start, GOACC_data_end)
17093         (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
17094         (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
17095         * splay-tree.h (splay_tree_lookup, splay_tree_insert)
17096         (splay_tree_remove): New declarations.
17097         (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
17098         (splay_tree_remove, splay_tree_lookup): Move into...
17099         * splay-tree.c: ... this new file.
17100         * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
17101         (splay_tree_node, splay_tree, splay_tree_key)
17102         (struct target_mem_desc, struct splay_tree_key_s)
17103         (struct gomp_device_descr): Don't declare.
17104         (num_devices_openmp): New variable.
17105         (gomp_get_num_devices ): Use it.
17106         (gomp_init_targets_once): New function.
17107         (gomp_get_num_devices ): Use it.
17108         (get_kind, gomp_copy_from_async, gomp_free_memmap)
17109         (gomp_fini_device, gomp_register_image_for_device): New functions.
17110         (gomp_map_vars): Add devaddrs parameter.
17111         (gomp_update): Add mm parameter.
17112         (gomp_init_device): Move most of it into...
17113         (gomp_init_tables): ... this new function.
17114         (gomp_register_images_for_device): Remove function.
17115         (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
17116         Make them hidden instead of static.
17117         (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
17118         (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
17119         (GOMP_target_end_data, GOMP_target_update)
17120         (gomp_load_plugin_for_device, gomp_target_init): Update for
17121         OpenACC changes.
17122         * oacc-async.c: New file.
17123         * oacc-cuda.c: Likewise.
17124         * oacc-host.c: Likewise.
17125         * oacc-init.c: Likewise.
17126         * oacc-int.h: Likewise.
17127         * oacc-mem.c: Likewise.
17128         * oacc-parallel.c: Likewise.
17129         * oacc-plugin.c: Likewise.
17130         * oacc-plugin.h: Likewise.
17131         * oacc-ptx.h: Likewise.
17132         * openacc.f90: Likewise.
17133         * openacc.h: Likewise.
17134         * openacc_lib.h: Likewise.
17135         * plugin/plugin-host.c: Likewise.
17136         * plugin/plugin-nvptx.c: Likewise.
17137         * libgomp-plugin.c: Likewise.
17138         * libgomp-plugin.h: Likewise.
17139         * libgomp_target.h: Remove file after merging content into the
17140         former file.  Update all users.
17141         * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
17142         (offload_targets_s, offload_targets_s_openacc): New variables.
17143         (check_effective_target_openacc_nvidia_accel_present)
17144         (check_effective_target_openacc_nvidia_accel_selected): New
17145         procedures.
17146         (libgomp_init): Update for OpenACC changes.
17147         * testsuite/libgomp-test-support.exp.in: New file.
17148         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
17149         * testsuite/libgomp.oacc-c/c.exp: Likewise.
17150         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
17151         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
17152         * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
17153         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
17154         * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
17155         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
17156         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
17157         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
17158         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
17159         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
17160         * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
17161         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
17162         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
17163         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
17164         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
17165         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
17166         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
17167         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
17168         * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
17169         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
17170         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
17171         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
17172         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
17173         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
17174         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
17175         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
17176         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
17177         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
17178         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
17179         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
17180         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
17181         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
17182         * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
17183         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
17184         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
17185         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
17186         * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
17187         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
17188         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
17189         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
17190         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
17191         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
17192         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
17193         * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
17194         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
17195         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
17196         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
17197         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
17198         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
17199         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
17200         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
17201         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
17202         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
17203         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
17204         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
17205         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
17206         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
17207         * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
17208         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
17209         * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
17210         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
17211         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
17212         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
17213         * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
17214         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
17215         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
17216         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
17217         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
17218         * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
17219         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
17220         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
17221         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
17222         * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
17223         * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
17224         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
17225         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
17226         * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
17227         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
17228         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
17229         * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
17230         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
17231         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
17232         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
17233         * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
17234         * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
17235         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
17236         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
17237         * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
17238         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
17239         * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
17240         * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
17241         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
17242         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
17243         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
17244         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
17245         * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
17246         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
17247         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
17248         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
17249         * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
17250         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
17251         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
17252         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
17253         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
17254         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
17255         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
17256         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
17257         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
17258         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
17259         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
17260         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
17261         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
17262         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
17263         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
17264         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
17265         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
17266         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
17267         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
17268         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
17269         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
17270         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
17271         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
17272         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
17273         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
17274         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
17275         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
17276         * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
17277         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
17278         * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
17279         * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
17280         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
17281         * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
17282         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
17283         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
17284         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
17285         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
17286         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
17287         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
17288         Likewise.
17289         * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
17290         * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
17291         * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
17292         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
17293         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
17294         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
17295         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
17296         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
17297         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
17298         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
17299         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
17300         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
17301         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
17302         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
17303         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
17304         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
17305         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
17306         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
17307         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
17308         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
17309         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
17310         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
17311         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
17312         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
17313         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
17314         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
17315         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
17316         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
17317         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
17318         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
17319         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
17320         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
17321         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
17322         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
17323         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
17324         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
17325         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
17326         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
17327         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
17328         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
17329         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
17330         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
17331         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
17332         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
17333         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
17334         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
17335         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
17336         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
17337         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
17338         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
17339         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
17340         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
17341         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
17342         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
17343         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
17344         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
17345         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
17346         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
17347         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
17348         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
17350 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
17351             Julian Brown  <julian@codesourcery.com>
17352             David Malcolm  <dmalcolm@redhat.com>
17354         * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
17355         to "GNU Offloading and Multi Processing Runtime Library".  Change
17356         all users.
17357         * configure: Regenerate.
17358         * libgomp.texi: Update.
17360 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
17362         * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
17363         "$tgt_dir/lib32".
17364         * configure: Regenerate.
17366         * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
17367         "intelmic" in $offload_targets.
17369 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
17371         Update copyright years.
17373         * libgomp.texi: Bump @copying's copyright year.
17375 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17377         * testsuite/lib/libgomp.exp: Load target-utils.exp.
17378         Move load of target-supports.exp earlier.
17380 2014-12-10  Ilya Verbin  <ilya.verbin@intel.com>
17382         * testsuite/libgomp.c/target-9.c: New test.
17384 2014-12-09  Varvara Rainchik  <varvara.rainchik@intel.com>
17386         * config.h.in: Regenerate.
17387         * configure: Regenerate.
17388         * configure.ac: Add GCC_CHECK_EMUTLS.
17389         * libgomp.h: Add check for USE_EMUTLS: this case
17390         is equal to HAVE_TLS.
17391         * team.c: Likewise.
17393 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
17395         * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
17397 2014-11-28  Andrey Turetskiy  <andrey.turetskiy@intel.com>
17398             Ilya Verbin  <ilya.verbin@intel.com>
17400         * testsuite/libgomp.c/target-critical-1.c: New test.
17402 2014-11-26  Jakub Jelinek  <jakub@redhat.com>
17404         * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
17405         to dg-options unless expensive testing is on.
17406         (TESTITERS): Define to N if not defined.
17407         (main): Use TESTITERS instead of N.
17408         * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
17409         dg-additional-options depending on whether expensive testing is on.
17410         * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
17411         Decrease N to 100000 and CHUNKSZ to 10000.
17413 2014-11-24  Jakub Jelinek  <jakub@redhat.com>
17415         PR fortran/63938
17416         * testsuite/libgomp.fortran/pr63938-1.f90: New test.
17417         * testsuite/libgomp.fortran/pr63938-2.f90: New test.
17419 2014-11-21  Steve Ellcey  <sellcey@imgtec.com>
17421         * config/linux/mips/futex.h (SYS_futex): Define if not already done.
17423 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
17425         PR bootstrap/63784
17426         * configure: Regenerated.
17428 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
17430         * testsuite/libgomp.c/examples-4/e.53.5.c: Require
17431         vect_simd_clones effective target.
17432         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
17434 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
17436         * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
17437         of 32 as block_size.
17438         * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
17439         instead of 32 as block_size.
17441 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
17442             Ilya Verbin  <ilya.verbin@intel.com>
17444         * Makefile.in: Regenerate.
17445         * configure: Regenerate.
17446         * configure.ac: Set up offload_additional_options,
17447         offload_additional_lib_paths and offload_targets.
17448         * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
17449         OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
17450         * testsuite/Makefile.in: Regenerate.
17451         * testsuite/lib/libgomp.exp (libgomp_init): Append
17452         offload_additional_lib_paths to LD_LIBRARY_PATH.  Append
17453         offload_additional_options to ALWAYS_CFLAGS.  Append liboffloadmic
17454         build directory to LD_LIBRARY_PATH for intelmic offload targets.
17456 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
17457             Ilya Verbin  <ilya.verbin@intel.com>
17458             Kirill Yukhin  <kirill.yukhin@intel.com>
17459             Ilya Tocar  <ilya.tocar@intel.com>
17461         * testsuite/lib/libgomp.exp
17462         (check_effective_target_offload_device): New.
17463         * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
17464         * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
17465         * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
17466         * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
17467         * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
17468         * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
17469         * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
17470         * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
17471         * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
17472         * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
17473         * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
17474         * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
17475         * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
17476         * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
17477         * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
17478         * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
17479         * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
17480         * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
17481         * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
17482         * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
17483         * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
17484         * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
17485         * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
17486         * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
17487         * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
17488         * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
17489         * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
17490         * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
17491         * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
17492         * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
17493         * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
17494         * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
17495         * testsuite/libgomp.c/target-7.c: Fix test.
17496         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
17497         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
17498         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
17499         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
17500         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
17501         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
17502         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
17503         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
17504         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
17505         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
17506         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
17507         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
17508         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
17509         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
17510         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
17511         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
17512         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
17513         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
17514         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
17515         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
17516         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
17517         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
17518         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
17519         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
17520         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
17521         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
17522         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
17523         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
17524         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
17525         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
17526         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
17528 2014-11-13  Jakub Jelinek  <jakub@redhat.com>
17529             Ilya Verbin  <ilya.verbin@intel.com>
17530             Thomas Schwinge  <thomas@codesourcery.com>
17531             Andrey Turetskiy  <andrey.turetskiy@intel.com>
17533         * libgomp.map (GOMP_4.0.1): New symbol version.
17534         Add GOMP_offload_register.
17535         * libgomp_target.h: New file.
17536         * splay-tree.h: New file.
17537         * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
17538         (gomp_target_init): New forward declaration.
17539         (gomp_is_initialized): New static variable.
17540         (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
17541         (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
17542         New structures.
17543         (offload_images, num_offload_images, devices, num_devices): New static
17544         variables.
17545         (splay_compare): New static function.
17546         (struct gomp_device_descr): New structure.
17547         (gomp_get_num_devices): Call gomp_target_init.
17548         (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
17549         (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
17550         (GOMP_offload_register): New function.
17551         (GOMP_target): Arrange for host callback to be performed in a separate
17552         initial thread and contention group, inheriting ICVs from
17553         gomp_global_icv etc.  Call gomp_map_vars and gomp_unmap_vars.
17554         Add device initialization and lookup for target function in splay tree.
17555         (GOMP_target_data): Add device initialization and call gomp_map_vars.
17556         (GOMP_target_end_data): Call gomp_unmap_vars.
17557         (GOMP_target_update): Add device initialization and call gomp_update.
17558         (gomp_load_plugin_for_device, gomp_register_images_for_device)
17559         (gomp_target_init): New static functions.
17561 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
17562             Thomas Schwinge  <thomas@codesourcery.com>
17563             Ilya Verbin  <ilya.verbin@intel.com>
17564             Andrey Turetskiy  <andrey.turetskiy@intel.com>
17566         * config.h.in: Regenerate.
17567         * configure: Regenerate.
17568         * configure.ac: Check for libdl, required for plugin support.
17569         (PLUGIN_SUPPORT): Define if plugins are supported.
17570         (enable_offload_targets): Support Intel MIC targets.
17571         (OFFLOAD_TARGETS): List of target names suitable for offloading.
17573 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
17575         PR target/63610
17576         * configure: Regenerate.
17578 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17580         * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
17582 2014-10-06  Marek Polacek  <polacek@redhat.com>
17584         * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
17585         * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
17586         * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
17587         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
17589 2014-10-06  Marek Polacek  <polacek@redhat.com>
17591         * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
17592         * testsuite/libgomp.c/nqueens-1.c: Likewise.
17593         * testsuite/libgomp.c/pr26943-3.c: Likewise.
17594         * testsuite/libgomp.c/pr26943-4.c: Likewise.
17595         * testsuite/libgomp.c/pr36802-2.c: Likewise.
17596         * testsuite/libgomp.c/pr36802-3.c: Likewise.
17597         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
17598         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
17599         * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
17600         * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
17601         * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
17602         * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
17603         * testsuite/libgomp.c/omp-single-1.c: Likewise.
17604         * testsuite/libgomp.c/omp-single-2.c: Likewise.
17605         * testsuite/libgomp.c/omp_matvec.c: Likewise.
17606         * testsuite/libgomp.c/omp_workshare3.c: Likewise.
17607         * testsuite/libgomp.c/omp_workshare4.c: Likewise.
17608         * testsuite/libgomp.c/shared-1.c: Fix defaulting to int.  Fix implicit
17609         declarations.
17611 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
17613         PR libgomp/61200
17614         * testsuite/libgomp.c/pr61200.c: New test.
17616 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
17618         PR c++/63248
17619         * testsuite/libgomp.c++/pr63248.C: New test.
17621 2014-08-04  Jakub Jelinek  <jakub@redhat.com>
17623         * task.c (GOMP_taskgroup_end): If taskgroup->num_children
17624         is not zero, but taskgroup->children is NULL and there are
17625         any task->children, schedule those instead of waiting.
17626         * testsuite/libgomp.c/depend-6.c: New test.
17627         * testsuite/libgomp.c/depend-7.c: New test.
17628         * testsuite/libgomp.c/depend-8.c: New test.
17629         * testsuite/libgomp.c/depend-9.c: New test.
17630         * testsuite/libgomp.c/depend-10.c: New test.
17632 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
17634         * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
17635         (struct gomp_taskwait): New type.
17636         (struct gomp_task): Add taskwait and parent_depends_on, remove
17637         in_taskwait and taskwait_sem fields.
17638         (gomp_finish_task): Don't destroy taskwait_sem.
17639         * task.c (gomp_init_task): Don't init in_taskwait, instead init
17640         taskwait and parent_depends_on.
17641         (GOMP_task): For if (0) tasks with depend clause that depend on
17642         earlier tasks don't defer them, instead call
17643         gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
17644         Initialize redundant_out field, for redundant out entries just
17645         move them at the end of linked list instead of removing them
17646         completely, and set redundant_out flag instead of redundant.
17647         (gomp_task_run_pre): Update last_parent_depends_on if scheduling
17648         that task.
17649         (gomp_task_run_post_handle_dependers): If parent is in
17650         gomp_task_maybe_wait_for_dependencies and newly runnable task
17651         is not parent_depends_on, queue it in parent->children linked
17652         list after all runnable tasks with parent_depends_on set.
17653         Adjust for addition of taskwait indirection.
17654         (gomp_task_run_post_remove_parent): If parent is in
17655         gomp_task_maybe_wait_for_dependencies and task to be removed
17656         is parent_depends_on, decrement n_depend and if needed awake
17657         parent.  Adjust for addition of taskwait indirection.
17658         (GOMP_taskwait): Adjust for addition of taskwait indirection.
17659         (gomp_task_maybe_wait_for_dependencies): New function.
17660         * testsuite/libgomp.c/depend-5.c: New test.
17662 2014-07-13  Tobias Burnus  <burnus@net-b.de>
17664         * testsuite/libgomp.fortran/pr34020.f90: Make compile
17665         with TS 18508/Fortran 2015.
17667 2014-07-06  Marek Polacek  <polacek@redhat.com>
17669         PR c/6940
17670         * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
17672 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
17674         * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
17675         matches regex $lang_source_re, add $lang_include_flags to options.
17676         * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
17677         * testsuite/libgomp.c++/c++.exp: Likewise.
17678         * testsuite/libgomp.fortran/fortran.exp: Likewise.  Set lang_source_re
17679         and lang_include_flags instead of adding -fintrinsic-modules-path= to
17680         ALWAYS_CFLAGS.
17681         * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
17683 2014-07-03  Thomas Schwinge  <thomas@codesourcery.com>
17685         * testsuite/libgomp.fortran/fortran.exp: Explain
17686         gfortran-dg-runtest usage.
17688 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
17690         * testsuite/libgomp.fortran/simd5.f90: New test.
17691         * testsuite/libgomp.fortran/simd6.f90: New test.
17692         * testsuite/libgomp.fortran/simd7.f90: New test.
17694 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
17696         * testsuite/libgomp.c/for-2.c: Define SC to static for
17697         #pragma omp for simd testing.
17698         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
17699         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
17700         SC macro.
17701         * testsuite/libgomp.c/simd-14.c: New test.
17702         * testsuite/libgomp.c/simd-15.c: New test.
17703         * testsuite/libgomp.c/simd-16.c: New test.
17704         * testsuite/libgomp.c/simd-17.c: New test.
17705         * testsuite/libgomp.c++/for-10.C: Define SC to static for
17706         #pragma omp for simd testing.
17707         * testsuite/libgomp.c++/simd10.C: New test.
17708         * testsuite/libgomp.c++/simd11.C: New test.
17709         * testsuite/libgomp.c++/simd12.C: New test.
17710         * testsuite/libgomp.c++/simd13.C: New test.
17712         * testsuite/libgomp.fortran/aligned1.f03: New test.
17713         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
17714         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
17715         tasks with !$omp parallel !$omp single.
17716         * testsuite/libgomp.fortran/target8.f90: New test.
17717         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
17718         not to use trim in the combiner, instead call elemental function.
17719         (fn): New elemental function.
17720         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
17721         Make elemental.
17722         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
17723         omp_in): Likewise.
17724         * testsuite/libgomp.fortran/udr12.f90: New test.
17725         * testsuite/libgomp.fortran/udr13.f90: New test.
17726         * testsuite/libgomp.fortran/udr14.f90: New test.
17727         * testsuite/libgomp.fortran/udr15.f90: New test.
17729 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
17731         * omp_lib.f90.in (openmp_version): Set to 201307.
17732         * omp_lib.h.in (openmp_version): Likewise.
17733         * testsuite/libgomp.c/target-8.c: New test.
17734         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
17735         and inbranch clauses.
17736         * testsuite/libgomp.fortran/depend-3.f90: New test.
17737         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
17738         openmp_version.
17739         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
17740         * testsuite/libgomp.fortran/target1.f90: New test.
17741         * testsuite/libgomp.fortran/target2.f90: New test.
17742         * testsuite/libgomp.fortran/target3.f90: New test.
17743         * testsuite/libgomp.fortran/target4.f90: New test.
17744         * testsuite/libgomp.fortran/target5.f90: New test.
17745         * testsuite/libgomp.fortran/target6.f90: New test.
17746         * testsuite/libgomp.fortran/target7.f90: New test.
17748 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
17750         PR fortran/60928
17751         * testsuite/libgomp.fortran/allocatable9.f90: New test.
17752         * testsuite/libgomp.fortran/allocatable10.f90: New test.
17753         * testsuite/libgomp.fortran/allocatable11.f90: New test.
17754         * testsuite/libgomp.fortran/allocatable12.f90: New test.
17755         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
17756         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
17757         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
17758         * testsuite/libgomp.fortran/associate1.f90: New test.
17759         * testsuite/libgomp.fortran/associate2.f90: New test.
17760         * testsuite/libgomp.fortran/procptr1.f90: New test.
17762 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
17764         * testsuite/libgomp.fortran/simd1.f90: New test.
17765         * testsuite/libgomp.fortran/udr1.f90: New test.
17766         * testsuite/libgomp.fortran/udr2.f90: New test.
17767         * testsuite/libgomp.fortran/udr3.f90: New test.
17768         * testsuite/libgomp.fortran/udr4.f90: New test.
17769         * testsuite/libgomp.fortran/udr5.f90: New test.
17770         * testsuite/libgomp.fortran/udr6.f90: New test.
17771         * testsuite/libgomp.fortran/udr7.f90: New test.
17772         * testsuite/libgomp.fortran/udr8.f90: New test.
17773         * testsuite/libgomp.fortran/udr9.f90: New test.
17774         * testsuite/libgomp.fortran/udr10.f90: New test.
17775         * testsuite/libgomp.fortran/udr11.f90: New test.
17777 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
17779         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
17780         vect_simd_clones effective target.
17781         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
17783 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
17785         PR middle-end/61252
17786         * testsuite/libgomp.c++/simd-9.C: New test.
17788 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
17790         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
17791         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
17792         texts according to their @menu entry positions.
17794 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
17796         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
17797         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
17798         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
17799         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
17800         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
17801         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
17802         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
17803         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
17804         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
17805         * testsuite/libgomp.fortran/depend-1.f90: New test.
17806         * testsuite/libgomp.fortran/depend-2.f90: New test.
17807         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
17808         * testsuite/libgomp.fortran/simd1.f90: New test.
17809         * testsuite/libgomp.fortran/simd2.f90: New test.
17810         * testsuite/libgomp.fortran/simd3.f90: New test.
17811         * testsuite/libgomp.fortran/simd4.f90: New test.
17812         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
17814 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
17816         * testsuite/libgomp.c/simd-10.c: New test.
17817         * testsuite/libgomp.c/simd-11.c: New test.
17818         * testsuite/libgomp.c/simd-12.c: New test.
17819         * testsuite/libgomp.c/simd-13.c: New test.
17821 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
17823         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
17824         atomic type clauses in any order and optional comma in between.
17825         * testsuite/libgomp.c++/atomic-15.C: Likewise.
17826         * testsuite/libgomp.c/atomic-17.c: Likewise.
17828         * testsuite/libgomp.c/simd-7.c: New test.
17829         * testsuite/libgomp.c/simd-8.c: New test.
17830         * testsuite/libgomp.c/simd-9.c: New test.
17831         * testsuite/libgomp.c/loop-16.c: New test.
17833 2014-04-02  Richard Henderson  <rth@redhat.com>
17835         * config/linux/futex.h (futex_wait): Get error value from errno.
17836         (futex_wake): Likewise.
17838 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
17840         PR c++/60331
17841         * testsuite/libgomp.c++/udr-11.C: New test.
17842         * testsuite/libgomp.c++/udr-12.C: New test.
17843         * testsuite/libgomp.c++/udr-13.C: New test.
17844         * testsuite/libgomp.c++/udr-14.C: New test.
17845         * testsuite/libgomp.c++/udr-15.C: New test.
17846         * testsuite/libgomp.c++/udr-16.C: New test.
17847         * testsuite/libgomp.c++/udr-17.C: New test.
17848         * testsuite/libgomp.c++/udr-18.C: New test.
17849         * testsuite/libgomp.c++/udr-19.C: New test.
17851 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
17853         Update copyright years
17855 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
17857         * hashtab.h: Use the standard form for the copyright notice.
17859 2014-01-02  Tobias Burnus  <burnus@net-b.de>
17861         * libgomp.texi: Bump @copying's copyright year.
17863 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
17865         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
17866         alloca () with __builtin_alloca ().
17867         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
17868         * testsuite/libgomp.c/lock-3.c: Likewise.
17869         * testsuite/libgomp.c/pr48591.c: Likewise.
17871 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
17873         PR testsuite/59534
17874         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
17875         comparisons.
17877 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
17879         PR libgomp/58756
17880         * testsuite/libgomp.c/pr58756.c: New test.
17882 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
17884         PR libgomp/59467
17885         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
17886         !$omp parallel.
17888 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
17890         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
17891         ALWAYS_CFLAGS.
17892         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
17893         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
17894         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
17895         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
17896         Likewise.
17898         * libgomp_g.h: Include <stddef.h> for size_t.
17900         * libgomp.spec.in: Update comment about libgomp's dependencies.
17901         * configure.ac: Likewise.
17902         * configure: Regenerate.
17904 2013-10-16  Tobias Burnus  <burnus@net-b.de>
17906         * libgomp.texi: (Runtime Library Routines): Update references for
17907         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
17908         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
17909         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
17910         (Environment Variables): Update references for OpenMP 4.0. Add
17911         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
17912         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
17913         order.
17915 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
17917         * env.c (parse_bind_var): Initialize value to avoid
17918         (false positive) warning.
17920 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
17922         PR libgomp/58691
17923         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
17924         to check variable.
17925         (gomp_init_num_threads): Move i variable declaration into
17926         #ifdef CPU_ALLOC_SIZE block.
17927         * config/linux/affinity.c (gomp_affinity_init_level): Test
17928         gomp_places_list_len == 0 rather than gomp_places_list == 0
17929         when checking for topology reading error.
17930         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
17931         * env.c (parse_affinity): Add ignore argument, if true, don't populate
17932         gomp_places_list, only parse env var and always return false.
17933         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
17934         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
17935         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
17936         and either of these variables were parsed correctly into a places
17937         list.
17939 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
17940             Jakub Jelinek  <jakub@redhat.com>
17942         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
17943         of 5 loopfn matches.
17944         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
17945         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
17946         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
17947         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
17948         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
17949         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17950         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17951         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
17953 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
17955         * Makefile.am (omp_lib.mod): Streamline rule.
17956         * Makefile.in: Regenerate.
17958         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
17959         exceptions.
17961         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
17962         * testsuite/libgomp.fortran/lib1.f90: Likewise.
17963         * testsuite/libgomp.fortran/lib2.f: Likewise.
17964         * testsuite/libgomp.fortran/lib3.f: Likewise.
17966         * configure.ac: Typo fix.
17967         * configure: Regenerate.
17969         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
17970         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
17972         * omp.h.in: Don't touch the user's namespace.
17974 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
17975             Tobias Burnus  <burnus@net-b.de>
17976             Richard Henderson  <rth@redhat.com>
17978         * target.c: New file.
17979         * Makefile.am (libgomp_la_SOURCES): Add target.c.
17980         * Makefile.in: Regenerated.
17981         * libgomp_g.h (GOMP_task): Add depend argument.
17982         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
17983         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
17984         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
17985         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
17986         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
17987         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
17988         GOMP_taskgroup_start, GOMP_taskgroup_end,
17989         GOMP_parallel_sections): New prototypes.
17990         * fortran.c (omp_is_initial_device): Add ialias_redirect.
17991         (omp_is_initial_device_): New function.
17992         (ULP, STR1, STR2, ialias_redirect): Removed.
17993         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
17994         omp_set_default_device_8_, omp_get_default_device_,
17995         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
17996         functions.
17997         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
17998         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
17999         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
18000         @@GOMP_4.0.
18001         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
18002         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
18003         omp_set_default_device, omp_set_default_device_,
18004         omp_set_default_device_8_, omp_get_default_device,
18005         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
18006         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
18007         omp_get_team_num_): Export @@OMP_4.0.
18008         * team.c (struct gomp_thread_start_data): Add place field.
18009         (gomp_thread_start): Clear thr->thread_pool and
18010         thr->task before returning.  Use gomp_team_barrier_wait_final
18011         instead of gomp_team_barrier_wait.  Initialize thr->place.
18012         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
18013         team_cancelled and task_queued_count fields.
18014         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
18015         before calling pthread_exit.
18016         (gomp_free_thread): No longer static.  Use
18017         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
18018         (gomp_team_start): Add flags argument.  Set
18019         thr->thread_pool->threads_busy to nthreads immediately after creating
18020         new pool.  Use gomp_managed_threads_lock instead of
18021         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
18022         (gomp_team_end): Use gomp_managed_threads_lock instead of
18023         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
18024         of gomp_team_barrier_wait.  If team->team_cancelled, call
18025         gomp_fini_workshare on ws chain starting at team->work_shares_to_free
18026         rather than thr->ts.work_share.
18027         (initialize_team): Don't call gomp_sem_init here.
18028         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
18029         caller.
18030         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
18031         * env.c (gomp_global_icv): Add default_device_var, target_data and
18032         bind_var initializers.
18033         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
18034         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
18035         gomp_places_list_len): New variables.
18036         (parse_bind_var, parse_one_place, parse_places_var): New functions.
18037         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
18038         sized places.
18039         (gomp_cancel_var): New global variable.
18040         (parse_int): New function.
18041         (handle_omp_display_env): New function.
18042         (initialize_env): Use it.  Initialize default_device_var.
18043         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
18044         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
18045         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
18046         been successfully parsed (and call gomp_init_affinity in that case).
18047         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
18048         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
18049         omp_get_team_num, omp_is_initial_device): New functions.
18050         * libgomp.h: Include stdlib.h.
18051         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
18052         Define.
18053         (struct target_mem_desc): Forward declare.
18054         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
18055         and thread_limit_var fields.
18056         (gomp_get_num_devices): New prototype.
18057         (gomp_cancel_var): New extern decl.
18058         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
18059         team_cancelled and task_queued_count fields.  Add comments about
18060         task_{,queued_,running_}count.
18061         (gomp_cancel_kind): New enum.
18062         (gomp_work_share_end_cancel): New prototype.
18063         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
18064         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
18065         and depend fields.
18066         (struct gomp_taskgroup): New type.
18067         (struct gomp_task_depend_entry,
18068         struct gomp_dependers_vec): New types.
18069         (gomp_finish_task): Free depend_hash if non-NULL.
18070         (struct gomp_team_state): Add place_partition_off
18071         and place_partition_len fields.
18072         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
18073         gomp_places_list_len): New extern decls.
18074         (struct gomp_thread): Add place field.
18075         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
18076         (gomp_init_thread_affinity): Add place argument.
18077         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
18078         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
18079         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
18080         gomp_affinity_init_level, gomp_affinity_print_place): New
18081         prototypes.
18082         (gomp_team_start): Add flags argument.
18083         (gomp_thread_limit_var, gomp_remaining_threads_count,
18084         gomp_remaining_threads_lock): Remove.
18085         (gomp_managed_threads_lock): New variable.
18086         (struct gomp_thread_pool): Add threads_busy field.
18087         (gomp_free_thread): New prototype.
18088         * task.c: Include hashtab.h.
18089         (hash_entry_type): New typedef.
18090         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
18091         (gomp_init_task): Clear dependers, depend_hash, depend_count,
18092         copy_ctors_done and taskgroup fields.
18093         (GOMP_task): Add depend argument, handle depend clauses.  If
18094         gomp_team_barrier_cancelled or if it's taskgroup has been
18095         cancelled, don't queue or start new tasks.  Set copy_ctors_done
18096         field if needed.  Initialize taskgroup field.  If copy_ctors_done
18097         and already cancelled, don't discard the task.  If taskgroup is
18098         non-NULL, enqueue the task into taskgroup queue.  Increment
18099         num_children field in taskgroup.  Increment task_queued_count.
18100         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
18101         gomp_task_run_post_remove_taskgroup): New inline functions.
18102         (gomp_task_run_post_handle_depend_hash,
18103         gomp_task_run_post_handle_dependers,
18104         gomp_task_run_post_handle_depend): New functions.
18105         (GOMP_taskwait): Use them.  If more than one new tasks
18106         have been queued, wake other threads if needed.
18107         (gomp_barrier_handle_tasks): Likewise.  If
18108         gomp_team_barrier_cancelled, don't start any new tasks, just free
18109         all tasks.
18110         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
18111         * omp_lib.f90.in
18112         (omp_proc_bind_kind, omp_proc_bind_false,
18113         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
18114         omp_proc_bind_spread): New params.
18115         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
18116         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
18117         omp_get_team_num, omp_is_initial_device): New interfaces.
18118         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
18119         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
18120         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
18121         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
18122         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
18123         useless use omp_lib_kinds.
18124         * omp.h.in (omp_proc_bind_t): New typedef.
18125         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
18126         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
18127         omp_get_team_num, omp_is_initial_device): New prototypes.
18128         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
18129         through to gomp_team_start.
18130         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
18131         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
18132         Adjust gomp_parallel_loop_start callers.
18133         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
18134         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
18135         GOMP_loop_end_cancel): New functions.
18136         (GOMP_parallel_end): Add ialias_redirect.
18137         * hashtab.h: New file.
18138         * libgomp.texi (Environment Variables): Minor cleanup,
18139         update section refs to OpenMP 4.0rc2.
18140         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
18141         environment variables.
18142         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
18143         team->work_shares_to_free to thr->ts.work_share before calling
18144         free_work_share.
18145         (gomp_work_share_end_cancel): New function.
18146         * config/linux/proc.c: Include errno.h.
18147         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
18148         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
18149         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
18150         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
18151         gomp_cpuset_size is sizeof (cpu_set_t).
18152         (gomp_init_num_threads): Initialize gomp_cpuset_size,
18153         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
18154         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
18155         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
18156         contain any logical CPUs.
18157         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
18158         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
18159         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
18160         pthread_getaffinity_np.  Check gomp_places_list instead of
18161         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
18162         * config/linux/bar.c (gomp_barrier_wait_end,
18163         gomp_barrier_wait_last): Use BAR_* defines.
18164         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
18165         from state where needed.  Set work_share_cancelled to 0 on last
18166         thread.
18167         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
18168         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
18169         functions.
18170         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
18171         Add cpusetsize argument.
18172         (gomp_cpuset_size, gomp_cpusetp): Declare.
18173         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
18174         (affinity_counter): Remove.
18175         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
18176         if CPU_ALLOC_SIZE isn't defined.
18177         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
18178         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
18179         bind current thread to the first place.
18180         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
18181         pthread_setaffinity_np to gomp_places_list[place].
18182         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
18183         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
18184         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
18185         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
18186         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
18187         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
18188         (gomp_barrier_t): Add awaited_final field.
18189         (gomp_barrier_init): Initialize awaited_final field.
18190         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
18191         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
18192         prototypes.
18193         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
18194         defines.
18195         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
18196         gomp_team_barrier_cancelled): New inline functions.
18197         (gomp_barrier_last_thread,
18198         gomp_team_barrier_set_task_pending,
18199         gomp_team_barrier_clear_task_pending,
18200         gomp_team_barrier_set_waiting_for_tasks,
18201         gomp_team_barrier_waiting_for_tasks,
18202         gomp_team_barrier_done): Use BAR_* defines.
18203         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
18204         (gomp_barrier_wait_end): Use BAR_* defines.
18205         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
18206         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
18207         Use BAR_* defines.
18208         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
18209         gomp_team_barrier_cancel): New functions.
18210         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
18211         argument.
18212         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
18213         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
18214         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
18215         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
18216         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
18217         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
18218         (gomp_barrier_t): Add cancellable field.
18219         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
18220         gomp_team_barrier_cancel): New prototypes.
18221         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
18222         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
18223         gomp_team_barrier_cancelled): New inline functions.
18224         (gomp_barrier_wait_start, gomp_barrier_last_thread,
18225         gomp_team_barrier_set_task_pending,
18226         gomp_team_barrier_clear_task_pending,
18227         gomp_team_barrier_set_waiting_for_tasks,
18228         gomp_team_barrier_waiting_for_tasks,
18229         gomp_team_barrier_done): Use BAR_* defines.
18230         * barrier.c (GOMP_barrier_cancel): New function.
18231         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
18232         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
18233         omp_proc_bind_spread): New params.
18234         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
18235         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
18236         omp_get_team_num, omp_is_initial_device): New externals.
18237         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
18238         New functions.
18239         (gomp_resolve_num_threads): Adjust for thread_limit now being in
18240         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
18241         infinity.  If not nested, just return minimum of max_num_threads
18242         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
18243         to the returned value.  Otherwise, don't update atomically
18244         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
18245         (GOMP_parallel_end): Adjust for thread_limit now being in
18246         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
18247         infinity.  Adjust threads_busy in the pool rather than
18248         gomp_remaining_threads_count.  Remember team->nthreads and call
18249         gomp_team_end before adjusting threads_busy, if not nested
18250         afterwards, just set it to 1 non-atomically.  Add ialias.
18251         (GOMP_parallel_start): Adjust gomp_team_start caller.
18252         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
18253         * testsuite/libgomp.c/affinity-1.c: New test.
18254         * testsuite/libgomp.c/atomic-15.c: New test.
18255         * testsuite/libgomp.c/atomic-16.c: New test.
18256         * testsuite/libgomp.c/atomic-17.c: New test.
18257         * testsuite/libgomp.c/cancel-for-1.c: New test.
18258         * testsuite/libgomp.c/cancel-for-2.c: New test.
18259         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
18260         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
18261         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
18262         * testsuite/libgomp.c/cancel-sections-1.c: New test.
18263         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
18264         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
18265         * testsuite/libgomp.c/depend-1.c: New test.
18266         * testsuite/libgomp.c/depend-2.c: New test.
18267         * testsuite/libgomp.c/depend-3.c: New test.
18268         * testsuite/libgomp.c/depend-4.c: New test.
18269         * testsuite/libgomp.c/for-1.c: New test.
18270         * testsuite/libgomp.c/for-1.h: New file.
18271         * testsuite/libgomp.c/for-2.c: New test.
18272         * testsuite/libgomp.c/for-2.h: New file.
18273         * testsuite/libgomp.c/for-3.c: New test.
18274         * testsuite/libgomp.c/pr58392.c: New test.
18275         * testsuite/libgomp.c/simd-1.c: New test.
18276         * testsuite/libgomp.c/simd-2.c: New test.
18277         * testsuite/libgomp.c/simd-3.c: New test.
18278         * testsuite/libgomp.c/simd-4.c: New test.
18279         * testsuite/libgomp.c/simd-5.c: New test.
18280         * testsuite/libgomp.c/simd-6.c: New test.
18281         * testsuite/libgomp.c/target-1.c: New test.
18282         * testsuite/libgomp.c/target-2.c: New test.
18283         * testsuite/libgomp.c/target-3.c: New test.
18284         * testsuite/libgomp.c/target-4.c: New test.
18285         * testsuite/libgomp.c/target-5.c: New test.
18286         * testsuite/libgomp.c/target-6.c: New test.
18287         * testsuite/libgomp.c/target-7.c: New test.
18288         * testsuite/libgomp.c/taskgroup-1.c: New test.
18289         * testsuite/libgomp.c/thread-limit-1.c: New test.
18290         * testsuite/libgomp.c/thread-limit-2.c: New test.
18291         * testsuite/libgomp.c/thread-limit-3.c: New test.
18292         * testsuite/libgomp.c/udr-1.c: New test.
18293         * testsuite/libgomp.c/udr-2.c: New test.
18294         * testsuite/libgomp.c/udr-3.c: New test.
18295         * testsuite/libgomp.c++/affinity-1.C: New test.
18296         * testsuite/libgomp.c++/atomic-10.C: New test.
18297         * testsuite/libgomp.c++/atomic-11.C: New test.
18298         * testsuite/libgomp.c++/atomic-12.C: New test.
18299         * testsuite/libgomp.c++/atomic-13.C: New test.
18300         * testsuite/libgomp.c++/atomic-14.C: New test.
18301         * testsuite/libgomp.c++/atomic-15.C: New test.
18302         * testsuite/libgomp.c++/cancel-for-1.C: New test.
18303         * testsuite/libgomp.c++/cancel-for-2.C: New test.
18304         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
18305         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
18306         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
18307         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
18308         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
18309         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
18310         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
18311         * testsuite/libgomp.c++/cancel-test.h: New file.
18312         * testsuite/libgomp.c++/for-9.C: New test.
18313         * testsuite/libgomp.c++/for-10.C: New test.
18314         * testsuite/libgomp.c++/for-11.C: New test.
18315         * testsuite/libgomp.c++/simd-1.C: New test.
18316         * testsuite/libgomp.c++/simd-2.C: New test.
18317         * testsuite/libgomp.c++/simd-3.C: New test.
18318         * testsuite/libgomp.c++/simd-4.C: New test.
18319         * testsuite/libgomp.c++/simd-5.C: New test.
18320         * testsuite/libgomp.c++/simd-6.C: New test.
18321         * testsuite/libgomp.c++/simd-7.C: New test.
18322         * testsuite/libgomp.c++/simd-8.C: New test.
18323         * testsuite/libgomp.c++/target-1.C: New test.
18324         * testsuite/libgomp.c++/target-2.C: New test.
18325         * testsuite/libgomp.c++/target-2-aux.cc: New file.
18326         * testsuite/libgomp.c++/target-3.C: New test.
18327         * testsuite/libgomp.c++/taskgroup-1.C: New test.
18328         * testsuite/libgomp.c++/udr-1.C: New test.
18329         * testsuite/libgomp.c++/udr-2.C: New test.
18330         * testsuite/libgomp.c++/udr-3.C: New test.
18331         * testsuite/libgomp.c++/udr-4.C: New test.
18332         * testsuite/libgomp.c++/udr-5.C: New test.
18333         * testsuite/libgomp.c++/udr-6.C: New test.
18334         * testsuite/libgomp.c++/udr-7.C: New test.
18335         * testsuite/libgomp.c++/udr-8.C: New test.
18336         * testsuite/libgomp.c++/udr-9.C: New test.
18338 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
18340         PR testsuite/57605
18341         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
18342         ALWAYS_CFLAGS.
18344 2013-09-20  Alan Modra  <amodra@gmail.com>
18346         * configure: Regenerate.
18348 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
18350         * testsuite/libgomp.c/sections-2.c: New test.
18352 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
18354         * testsuite/libgomp.fortran/strassen.f90:
18355         Add dg-skip-if aarch64_tiny.
18357 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
18358             Cesar Philippidis  <cesar@codesourcery.com>
18360         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
18361         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
18362         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
18363         * testsuite/libgomp.fortran/fortran.exp: Likewise.
18364         * testsuite/libgomp.graphite/graphite.exp: Likewise.
18365         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
18366         Use dg-runtest rather than gfortran-dg-runtest.
18368 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
18370         * testsuite/libgomp.c/icv-2.c: Extend current handling of
18371         Linux-based x86 systems to cover all GNU systems.
18372         * testsuite/libgomp.c/lock-3.c: Likewise.
18373         * testsuite/libgomp.c/pr48591.c: Likewise.
18375 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
18377         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
18378         GNU/Hurd, as done for Linux-based systems.
18380         * config/posix/ptrlock.h: Fix comment.
18382 2013-05-27  Tobias Burnus  <burnus@net-b.de>
18384         PR fortran/57423
18385         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
18386         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
18387         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
18388         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
18389         omp_destroy_nest_lock): Correct arguments to match the one in
18390         the OpenMP spec.
18391         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
18392         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
18393         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
18394         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
18396 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
18398         * testsuite/libgomp.c/loop-13.c: New test.
18399         * testsuite/libgomp.c/loop-14.c: New test.
18400         * testsuite/libgomp.c/loop-15.c: New test.
18401         * testsuite/libgomp.c++/loop-13.C: New test.
18402         * testsuite/libgomp.c++/loop-14.C: New test.
18403         * testsuite/libgomp.c++/loop-15.C: New test.
18405 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
18407         PR middle-end/56217
18408         * testsuite/libgomp.c++/pr56217.C: New test.
18410 2013-02-01  Alan Modra  <amodra@gmail.com>
18412         * task.c (GOMP_task, GOMP_taskwait): Comment.
18414 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
18415             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
18417         PR libgomp/55561
18418         * config/linux/wait.h (do_spin): Use atomic load for addr.
18419         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
18420         for intptr and ptrlock.
18421         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
18422         for ptrlock.
18424 2013-01-22  Alan Modra  <amodra@gmail.com>
18426         PR libgomp/51376
18427         PR libgomp/56073
18428         * task.c (GOMP_task): Revert 2011-12-09 change.
18429         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
18430         barrier to read task->children..
18431         (gomp_barrier_handle_tasks): ..and matching atomic store with
18432         release barrier here when setting parent->children to NULL.
18434 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
18435             Tobias Burnus  <burnus@net-b.de>
18437         PR driver/55884
18438         * testsuite/libgomp.fortran/fortran.exp: Use
18439         -fintrinsic-modules-path= instead of
18440         -fintrinsic-modules-path.
18442 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
18444         Update copyright years.
18446 2012-12-19  Tobias Burnus  <burnus@net-b.de>
18448         * testsuite/libgomp.fortran/fortran.exp: Set
18449         -fintrinsic-modules-path.
18451 2012-12-19  Tobias Burnus  <burnus@net-b.de>
18453         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
18454         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
18456 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
18458         PR libgomp/55411
18459         * team.c (gomp_free_thread): Decrease gomp_managed_threads
18460         if pool had any threads_used.
18462 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
18464         * testsuite/libgomp.c++/pr24455.C: Use
18465         -Wl,-undefined,dynamic_lookup on darwin.
18467 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
18469         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
18471 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
18473         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
18475 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
18476             Jim MacArthur  <jim.macarthur@arm.com>
18477             Marcus Shawcroft  <marcus.shawcroft@arm.com>
18478             Nigel Stephens  <nigel.stephens@arm.com>
18479             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18480             Richard Earnshaw  <rearnsha@arm.com>
18481             Sofiane Naci  <sofiane.naci@arm.com>
18482             Stephen Thomas  <stephen.thomas@arm.com>
18483             Tejas Belagod  <tejas.belagod@arm.com>
18484             Yufeng Zhang  <yufeng.zhang@arm.com>
18486         * configure.tgt: Add AArch64.
18488 2012-10-04  Jason Merrill  <jason@redhat.com>
18490         * testsuite/libgomp.c++/tls-init1.C: New.
18492 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
18494         * configure: Regenerated.
18496 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
18498         * config/linux/mips/futex.h (sys_futex0): Change to static
18499         function with noinline, nomips16 attributes under MIPS16. Adjust
18500         asm statement to place 'li v0,SYS_futex' immediately before
18501         syscall insn.
18503 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
18505         * libgomp.texi (Library Index): Renamed from "Index" to prevent
18506         conflict with index.html on case-insensitive file systems.
18508 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
18510         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
18511         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
18513 2012-07-02  Richard Guenther  <rguenther@suse.de>
18514             Michael Matz  <matz@suse.de>
18515             Tobias Grosser <tobias@grosser.es>
18516             Sebastian Pop <sebpop@gmail.com>
18518         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
18519         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
18520         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
18521         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
18523 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
18525         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
18527 2012-06-22  Richard Guenther  <rguenther@suse.de>
18529         Merge from graphite branch
18530         2012-01-13  Tobias Grosser  <tobias@grosser.es>
18532         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
18533         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
18535 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
18537         PR middle-end/53580
18538         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
18539         use GOMP_barrier () call instead.
18540         * testsuite/libgomp.c/pr26943-3.c: Likewise.
18541         * testsuite/libgomp.c/pr26943-4.c: Likewise.
18542         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
18543         call GOMP_barrier instead.
18544         * testsuite/libgomp.fortran/vla5.f90: Likewise.
18546 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
18548         PR libgomp/52993
18549         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
18550         argument to memset call.
18552 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
18554         * configure: Regenerated.
18556 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18558         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
18560 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
18562         PR bootstrap/52812
18563         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
18565 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
18567         PR middle-end/52547
18568         * testsuite/libgomp.c/pr52547.c: New test.
18570 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18572         * testsuite/lib/libgomp.exp: load fortran-modules.exp
18574 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18576         * configure.tgt (mips-sgi-irix6*): Remove.
18578 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18580         * configure.tgt (alpha*-dec-osf*): Remove.
18582         * config/osf/sem.h: Remove.
18583         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
18585 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
18587         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
18589 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18591         PR libstdc++/52188
18592         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
18593         Remove ENABLE_SYMVERS_SOL2.
18594         * configure: Regenerate.
18595         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
18596         (PREPROCESS): New variable.
18597         (libgomp.ver): New target.
18598         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
18599         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
18600         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
18601         Use libgomp.ver.
18602         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
18603         * Makefile.in: Regenerate.
18605 2012-02-14  Walter Lee  <walt@tilera.com>
18607         * configure.tgt: Handle tilegx and tilepro.
18608         * config/linux/tile/futex.h: New file.
18610 2012-02-08  Richard Guenther  <rguenther@suse.de>
18612         PR tree-optimization/46886
18613         * testsuite/libgomp.c/pr46886.c: New testcase.
18615 2012-01-25  Matthias Klose  <doko@ubuntu.com>
18617         * config/linux/arm: Remove empty directory.
18618         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
18620 2011-12-09  Alan Modra  <amodra@gmail.com>
18622         PR libgomp/51376
18623         * task.c (GOMP_taskwait): Don't access task->children outside of
18624         task_lock mutex region.
18625         (GOMP_task): Likewise.
18627 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
18629         PR libgomp/51132
18630         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
18631         to file scope.
18632         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
18633         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
18634         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
18635         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
18636         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
18638 2011-12-02  Alan Modra  <amodra@gmail.com>
18640         * config/linux/affinity.c: Use atomic rather than sync builtin.
18641         * config/linux/lock.c: Likewise.
18642         * config/linux/ptrlock.h: Likewise.
18643         * config/linux/ptrlock.c: Likewise.
18644         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
18645         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
18646         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
18647         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
18648         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
18649         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
18650         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
18651         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
18652         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
18653         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
18655 2011-11-30  Alan Modra  <amodra@gmail.com>
18657         PR libgomp/51298
18658         * config/linux/bar.h: Use atomic rather than sync builtins.
18659         * config/linux/bar.c: Likewise.  Add missing acquire
18660         synchronisation on generation field.
18661         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
18662         double unlock.
18664 2011-11-30  Alan Modra  <amodra@gmail.com>
18666         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
18667         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
18668         * config/linux/mutex.h: Use atomic rather than sync builtins.
18669         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
18670         * config/linux/omp-lock.h: Comment fix.
18671         * config/linux/arm/mutex.h: Delete.
18672         * config/linux/powerpc/mutex.h: Delete.
18673         * config/linux/ia64/mutex.h: Delete.
18674         * config/linux/mips/mutex.h: Delete.
18676 2011-11-30  Alan Modra  <amodra@gmail.com>
18678         PR libgomp/51249
18679         * config/linux/sem.h: Rewrite.
18680         * config/linux/sem.c: Rewrite.
18682 2011-11-28  Richard Henderson  <rth@redhat.com>
18684         * libgomp.h (enum memmodel): New.
18686 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
18688         * configure: Regenerate.
18690 2011-10-10  Matthias Klose  <doko@ubuntu.com>
18692         * config/posix95: Remove empty directory.
18694 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
18696         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
18698 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
18700         PR fortran/49792
18701         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
18702         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
18704 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18706         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
18708 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18710         PR libgomp/49965
18711         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
18713 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
18715         * config/linux/proc.h: New.
18716         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
18717         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
18718         (gomp_init_num_threads): Update call to cpuset_popcount.
18719         (get_num_procs): Ditto.
18720         * config/linux/affinity.c (gomp_init_affinity): Call
18721         gomp_cpuset_popcount.
18723 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
18725         PR fortran/42041
18726         PR fortran/46752
18727         * omp.h.in (omp_in_final): New prototype.
18728         * omp_lib.f90.in (omp_in_final): New interface.
18729         (omp_integer_kind, omp_logical_kind): Remove
18730         and replace all its uses in the module with 4.
18731         (openmp_version): Change to 201107.
18732         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
18733         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
18734         kind for the parameters.
18735         (omp_in_final): New external.
18736         (openmp_version): Change to 201107.
18737         * task.c (omp_in_final): New function.
18738         (gomp_init_task): Initialize final_task.
18739         (GOMP_task): Remove unused attribute from flags.  Handle final
18740         tasks.
18741         (GOMP_taskyield): New function.
18742         (omp_in_final): Return true if if (false) or final (true) task
18743         or descendant of final (true).
18744         * fortran.c (omp_in_final_): New function.
18745         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
18746         (GOMP_3.0): Export GOMP_taskyield.
18747         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
18748         variables.
18749         (parse_unsigned_long_list): New function.
18750         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
18751         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
18752         even if parse_affinity returned false.
18753         * config/linux/affinity.c (gomp_init_affinity): Handle
18754         gomp_cpu_affinity_len == 0.
18755         * libgomp_g.h (GOMP_taskyield): New prototype.
18756         * libgomp.h (struct gomp_task): Add final_task field.
18757         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
18758         * team.c (gomp_team_start): Override new task's nthreads_var icv
18759         if list form OMP_NUM_THREADS has been used and it has value for
18760         the new nesting level.
18762         * testsuite/libgomp.c/atomic-11.c: New test.
18763         * testsuite/libgomp.c/atomic-12.c: New test.
18764         * testsuite/libgomp.c/atomic-13.c: New test.
18765         * testsuite/libgomp.c/atomic-14.c: New test.
18766         * testsuite/libgomp.c/reduction-6.c: New test.
18767         * testsuite/libgomp.c/task-5.c: New test.
18768         * testsuite/libgomp.c++/atomic-2.C: New test.
18769         * testsuite/libgomp.c++/atomic-3.C: New test.
18770         * testsuite/libgomp.c++/atomic-4.C: New test.
18771         * testsuite/libgomp.c++/atomic-5.C: New test.
18772         * testsuite/libgomp.c++/atomic-6.C: New test.
18773         * testsuite/libgomp.c++/atomic-7.C: New test.
18774         * testsuite/libgomp.c++/atomic-8.C: New test.
18775         * testsuite/libgomp.c++/atomic-9.C: New test.
18776         * testsuite/libgomp.c++/task-8.C: New test.
18777         * testsuite/libgomp.c++/reduction-4.C: New test.
18778         * testsuite/libgomp.fortran/allocatable7.f90: New test.
18779         * testsuite/libgomp.fortran/allocatable8.f90: New test.
18780         * testsuite/libgomp.fortran/crayptr3.f90: New test.
18781         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
18782         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
18783         * testsuite/libgomp.fortran/pointer1.f90: New test.
18784         * testsuite/libgomp.fortran/pointer2.f90: New test.
18785         * testsuite/libgomp.fortran/task4.f90: New test.
18787 2011-08-02  Tobias Burnus  <burnus@net-b.de>
18789         * libgomp.texi: Update OpenMP spec references to 3.1.
18790         (omp_in_final,OMP_PROC_BIND): New sections.
18791         (OMP_NUM_THREADS): Document that the value can be now a list.
18792         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
18794 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
18796         * config/linux/x86/futex.h: Check __x86_64__ instead of
18797         __LP64__.
18799 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
18801         PR middle-end/49897
18802         PR middle-end/49898
18803         * testsuite/libgomp.c/pr49897-1.c: New test.
18804         * testsuite/libgomp.c/pr49897-2.c: New test.
18805         * testsuite/libgomp.c/pr49898-1.c: New test.
18806         * testsuite/libgomp.c/pr49898-2.c: New test.
18808 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
18810         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
18811         for ia32 instead of ilp32.
18813         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
18814         * testsuite/libgomp.c/atomic-6.c: Likewise.
18816 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
18818         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
18819         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
18821 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18823         PR libgomp/45351
18824         * config/osf/sem.h: New file.
18825         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
18827 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18829         PR target/49541
18830         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
18831         ldflags.
18833 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
18835         * config/linux/wait.h (do_spin): New inline, largely copied
18836         from do_wait, just don't do futex_wait here, instead return true if
18837         it should be done.
18838         (do_wait): Implement using do_spin.
18839         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
18840         to prototype.
18841         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
18842         __sync_bool_compare_and_swap, pass the oldval to
18843         gomp_mutex_lock_slow.
18844         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
18845         If all mutex contenders are just spinning and not sleeping, don't
18846         change state to 2 unnecessarily.  Optimize the loop when state has
18847         already become 2 to use just one atomic operation per loop instead
18848         of two.
18849         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
18850         to prototype.
18851         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
18852         __sync_bool_compare_and_swap, pass the oldval to
18853         gomp_mutex_lock_slow.
18855 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
18857         PR libgomp/49490
18858         * iter.c (gomp_iter_static_next): For chunk size 0
18859         only use n ceil/ nthreads size for the first
18860         n % nthreads threads in the team instead of
18861         all threads except for the last few ones which
18862         get less work or none at all.
18863         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
18864         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
18865         chunk argument, set run_sched_modifier to 0 for static
18866         resp. 1 for other kinds.  If chunk argument is 0
18867         and not static, set value to 1.
18869 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
18871         PR c++/49043
18872         * testsuite/libgomp.c++/pr49043.C: New test.
18874         PR c++/48869
18875         * testsuite/libgomp.c++/pr48869.C: New test.
18877 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
18879         PR fortran/48894
18880         * fortran.c: Include limits.h.
18881         (TO_INT): Define.
18882         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
18883         *set.
18884         (omp_set_num_threads_8_, omp_set_schedule_8_,
18885         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
18886         omp_get_team_size_8_): Use TO_INT macro.
18887         * testsuite/libgomp.fortran/pr48894.f90: New test.
18889 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
18891         PR middle-end/48591
18892         * testsuite/libgomp.c/pr48591.c: New test.
18894 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18896         PR bootstrap/48135
18897         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
18898         * configure: Regenerate.
18900 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
18902         PR fortran/47886
18903         * testsuite/libgomp.fortran/task3.f90: New test.
18905 2011-02-24  Tobias Burnus  <burnus@net-b.de>
18907         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
18909 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
18911         PR libgomp/47854
18912         * libgomp.texi (omp_get_wtime): Don't say time in the past
18913         must be Unix Epoch.
18915 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
18917         PR libgomp/47804
18918         * testsuite/libgomp.fortran/fortran.exp: Check for both
18919         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
18920         but $blddir != "", still append ${blddir}/${lang_library_path}
18921         to ld_library_path.
18923 2011-02-16  Tobias Burnus  <burnus@net-b.de>
18925         PR libgomp/47758
18926         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
18927         of libquadmath.a before adding its libpath to ldflags.
18929 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
18931         PR libgomp/47731
18932         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
18933         to FUTEX_WAIT futex syscall.
18934         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
18936 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18938         * configure: Regenerate.
18940 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
18942         PR libstdc++/36104
18943         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
18945 2011-01-16  Gerald Pfeifer
18947         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
18949 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
18951         PR fortran/46874
18952         * libgomp.fortran/allocatable6.f90: New test.
18954 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18956         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
18957         * configure: Regenerate.
18959 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
18961         PR target/40125
18962         PR lto/46695
18963         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
18964         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
18965         * aclocal.m4: Regenerate.
18966         * configure: Regenerate.
18967         * Makefile.in: Regenerate.
18968         * testsuite/Makefile.in: Regenerate.
18970 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
18972         PR fortran/46753
18973         * libgomp.fortran/pr46753.f90: New test.
18975         PR libgomp/43706
18976         * env.c (initialize_env): Default to spin count 300000
18977         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
18978         is specified.
18980         PR libgomp/45240
18981         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
18982         at the end if sync builtins aren't supported.
18984 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18986         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
18988 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18990         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
18992 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
18994         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
18996 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
18997             Tobias Burnus  <burnus@net-b.de>
18999         PR fortran/32049
19000         * configure.ac:
19001         * configure: Regenerate.
19003 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19005         * config/linux/futex.h: New.
19006         * config/linux/arm/mutex.h: New.
19007         * configure.tgt (arm*-*-linux*): Add config path.
19009 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
19011         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
19013 2010-09-23  Tobias Burnus  <burnus@net-b.de>
19015         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
19016         Change Fortran datatype to LOGICAL.
19017         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
19018         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
19020 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19022         * configure: Regenerate.
19024 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
19026         * libgomp.texi: Add function keyword to a couple of Fortran
19027         interfaces, use integer instead of int for Fortran.
19029 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
19031         * libgomp.texi: Fix spelling and pasto problems throughout.
19032         Adjust prototypes to match code.
19034 2010-07-24  Tobias Burnus  <burnus@net-b.de>
19036         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
19037         silence -fwhole-file warning.
19039 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19041         * configure.tgt (*-*-solaris2.[56]*): Removed.
19043 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19045         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
19046         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
19047         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
19048         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
19049         targetting solaris2*.
19050         * configure: Regenerate.
19051         * config.h.in: Regenerate.
19053         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
19054         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
19055         Add libgomp_version_dep.
19056         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
19057         versioning.
19058         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
19059         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
19060         * Makefile.in: Regenerate.
19062         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
19063         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
19064         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
19065         to common block, protected by
19066         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
19068 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
19070         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
19072 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
19074         PR bootstrap/43170
19075         * configure: Regenerate.
19077 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19079         PR other/43620
19080         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
19081         * configure: Regenerate.
19082         * Makefile.in: Regenerate.
19083         * testsuite/Makefile.in: Regenerate.
19085 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
19087         PR c/43893
19088         * testsuite/libgomp.c/pr43893.c: New test.
19089         * testsuite/libgomp.c++/pr43893.C: New test.
19091 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
19093         PR middle-end/43570
19094         * testsuite/libgomp.fortran/vla8.f90: New test.
19096 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
19098         PR libgomp/43706
19099         * config/linux/affinity.c (gomp_init_affinity): Decrease
19100         gomp_available_cpus if affinity mask confines the process to fewer
19101         CPUs.
19102         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
19103         non-NULL, just return gomp_available_cpus.
19105         PR libgomp/43569
19106         * sections.c (gomp_sections_init): Initialize ws->mode.
19108 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
19110         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
19111         not unused bar variable.
19112         * configure: Regenerate.
19114 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19116         * Makefile.in: Regenerate.
19117         * aclocal.m4: Regenerate.
19118         * testsuite/Makefile.in: Regenerate.
19120 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
19122         PR libgomp/42942
19123         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
19124         (initialize_env): Adjust callers.
19125         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
19126         when the argument is 0.
19128         * testsuite/libgomp.c/pr42942.c: New test.
19130 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
19132         PR middle-end/42644
19133         PR middle-end/42130
19134         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
19135         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
19137 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19139         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
19140         * testsuite/libgomp.c++/task-6.C: Likewise.
19142 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
19144         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
19146 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
19148         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
19149         * configure: Regenerate.
19151 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
19153         PR fortran/42866
19154         * testsuite/libgomp.fortran/allocatable5.f90: New test.
19156 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
19158         * configure.ac: Test for executability of GFORTRAN.
19159         * configure: Regenerate.
19161 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19163         * configure: Regenerate.
19165 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
19167         PR libgomp/42602
19168         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
19170 2010-01-03  Richard Guenther  <rguenther@suse.de>
19172         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
19174 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
19176         * testsuite/libgomp.graphite/pr4118.c: New.
19178 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
19180         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
19181         for darwin, protect the test with require-effective-target tls_runtime.
19182         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
19184 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
19186         PR target/41605
19187         * testsuite/lib/libgomp.exp: Provide -B options to allow for
19188         link spec %s substitutions for static libraries.
19190 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
19192         PR testsuite/42135
19193         * libgomp.graphite/force-parallel-2.c: Reduce array size.
19195 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19197         * Makefile.in: Regenerate.
19198         * configure: Regenerate.
19199         * testsuite/Makefile.in: Regenerate.
19201 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
19203         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
19204         settings for LC_ALL and LANG.
19206 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
19208         PR fortran/42162
19209         * testsuite/libgomp.fortran/pr42162.f90: New test.
19211 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
19213         PR middle-end/42029
19214         * testsuite/libgomp.c/pr42029.c: New test.
19216 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
19218         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
19219         *s.  Accept ld version without text in ()s.
19220         * configure: Regenerated.
19222 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
19224         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
19226 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19228         PR libgomp/41418
19229         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
19230         or a hyphen (happens with fortran language disabled).
19231         * configure: Regenerate.
19233 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19235         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
19236         use sed script portable to Solaris /bin/sed for extracting ld
19237         version.
19238         * configure: Regenerate.
19240 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
19242         * testsuite/libgomp.graphite/bounds.c: New test.
19244 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19246         * Makefile.am (libgomp_la_LINK): New.
19247         * Makefile.in: Regenerate.
19249 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19251         * configure.ac (AC_PREREQ): Bump to 2.64.
19253 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19255         * Makefile.am (install-html, install-pdf): Remove.
19256         * Makefile.in: Regenerate.
19258         * Makefile.in: Regenerate.
19259         * aclocal.m4: Regenerate.
19260         * config.h.in: Regenerate.
19261         * configure: Regenerate.
19262         * testsuite/Makefile.in: Regenerate.
19264 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19266         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
19267         * Makefile.in: Regenerate.
19269 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
19271         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
19272         * Makefile.in: Regenerate.
19274 2009-08-19  Tobias Burnus  <burnus@net-b.de>
19276         PR fortran/41102
19277         omp_lib.h.in: Fix -std=f95 errors.
19279 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
19281         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
19282         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
19283         * testsuite/libgomp.graphite/graphite.exp: New.
19285 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
19287         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
19288         only build.
19290 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
19292         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
19293         needed memory barrier semantics.
19294         * config/linux/mips/mutex.h: New file.
19296 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19298         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
19300 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
19302         * configure: Regenerate.
19304 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
19306         PR testsuite/40699
19307         PR testsuite/40707
19308         PR testsuite/40709
19309         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
19310         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
19311         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
19313 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
19315         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
19316         options when choosing a multilib.
19318 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
19320         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
19321         ld_library_path.  Use add_path.  Add just find_libgcc_s to
19322         ld_library_path, not every libgcc multilib directory.
19323         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
19324         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
19325         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
19326         Use add_path.
19327         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
19329 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
19331         * Makefile.am (LTLDFLAGS): Define.
19332         (LINK): Define.
19333         * Makefile.in: Regenerate.
19335 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
19337         PR fortran/39718
19338         * testsuite/libgomp.fortran/fortran.exp: Don't link with
19339         libgfortranbegin, check existence of libgfortran.a instead of
19340         libgfortranbegin.a.
19342 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
19344         PR libgomp/40174
19345         * team.c (gomp_thread_start): Destroy thr->release semaphore.
19346         (gomp_free_pool_helper): Likewise.
19348 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
19349             Jakub Jelinek  <jakub@redhat.com>
19351         PR fortran/35423
19352         * testsuite/libgomp.fortran/workshare2.f90: New test.
19354 2009-04-09  Nick Clifton  <nickc@redhat.com>
19356         * iter.c: Change copyright header to refer to version 3 of the
19357         GNU General Public License with version 3.1 of the GCC Runtime
19358         Library Exception and to point readers at the COPYING3 and
19359         COPYING3.RUNTIME files and the FSF's license web page.
19360         * alloc.c: Likewise.
19361         * barrier.c: Likewise.
19362         * config/bsd/proc.c: Likewise.
19363         * config/linux/affinity.c: Likewise.
19364         * config/linux/alpha/futex.h: Likewise.
19365         * config/linux/bar.c: Likewise.
19366         * config/linux/bar.h: Likewise.
19367         * config/linux/ia64/futex.h: Likewise.
19368         * config/linux/ia64/mutex.h: Likewise.
19369         * config/linux/lock.c: Likewise.
19370         * config/linux/mips/futex.h: Likewise.
19371         * config/linux/mutex.c: Likewise.
19372         * config/linux/mutex.h: Likewise.
19373         * config/linux/powerpc/futex.h: Likewise.
19374         * config/linux/proc.c: Likewise.
19375         * config/linux/ptrlock.c: Likewise.
19376         * config/linux/ptrlock.h: Likewise.
19377         * config/linux/s390/futex.h: Likewise.
19378         * config/linux/sem.c: Likewise.
19379         * config/linux/sem.h: Likewise.
19380         * config/linux/sparc/futex.h: Likewise.
19381         * config/linux/wait.h: Likewise.
19382         * config/linux/x86/futex.h: Likewise.
19383         * config/mingw32/proc.c: Likewise.
19384         * config/mingw32/time.c: Likewise.
19385         * config/posix/affinity.c: Likewise.
19386         * config/posix/bar.c: Likewise.
19387         * config/posix/bar.h: Likewise.
19388         * config/posix/lock.c: Likewise.
19389         * config/posix/mutex.h: Likewise.
19390         * config/posix/proc.c: Likewise.
19391         * config/posix/ptrlock.h: Likewise.
19392         * config/posix/sem.c: Likewise.
19393         * config/posix/sem.h: Likewise.
19394         * config/posix/time.c: Likewise.
19395         * config/posix95/lock.c: Likewise.
19396         * critical.c: Likewise.
19397         * env.c: Likewise.
19398         * error.c: Likewise.
19399         * fortran.c: Likewise.
19400         * iter_ull.c: Likewise.
19401         * libgomp.h: Likewise.
19402         * libgomp_f.h.in: Likewise.
19403         * libgomp_g.h: Likewise.
19404         * loop.c: Likewise.
19405         * loop_ull.c: Likewise.
19406         * omp.h.in: Likewise.
19407         * omp_lib.f90.in: Likewise.
19408         * omp_lib.h.in: Likewise.
19409         * ordered.c: Likewise.
19410         * parallel.c: Likewise.
19411         * sections.c: Likewise.
19412         * single.c: Likewise.
19413         * task.c: Likewise.
19414         * team.c: Likewise.
19415         * work.c: Likewise.
19417 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
19419         * testsuite/config/default.exp: Change copyright header to refer to
19420         version 3 of the GNU General Public License and to point readers
19421         at the COPYING3 file and the FSF's license web page.
19423 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
19425         PR middle-end/39573
19426         * libgomp.c++/pr39573.C: New test.
19428 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
19430         PR other/39591
19431         * testsuite/libgomp.c/pr39591-1.c: New test.
19432         * testsuite/libgomp.c/pr39591-2.c: New test.
19433         * testsuite/libgomp.c/pr39591-3.c: New test.
19435 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
19437         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
19438         * testsuite/libgomp.c/atomic-6.c: Ditto.
19440 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
19442         PR c/39495
19443         * testsuite/libgomp.c/loop-12.c: New test.
19444         * testsuite/libgomp.c/loop-11.c: New test.
19445         * testsuite/libgomp.c++/loop-11.C: New test.
19446         * testsuite/libgomp.c++/loop-12.C: New test.
19447         * testsuite/libgomp.c++/for-8.C: New test.
19449 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19451         * configure: Regenerate.
19453 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
19455         PR middle-end/39154
19456         * testsuite/libgomp.c/pr39154.c: New test.
19458 2009-01-30  Ian Lance Taylor  <iant@google.com>
19460         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
19461         libgomp_ld_is_gold.  Get gold version number.
19462         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
19463         * configure: Rebuild.
19465 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
19467         * testsuite/lib/libgomp.exp: Add -B option for targets that
19468         use libgfortran.a%s in their specs.
19470 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
19472         PR libgomp/38086
19473         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
19474         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
19475         HAVE_AS_SYMVER_DIRECTIVE is not defined.
19476         * configure: Regenerated.
19477         * config.h.in: Likewise.
19479 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
19481         PR c++/38650
19482         * testsuite/libgomp.c/pr38650.c: New test.
19483         * testsuite/libgomp.c++/pr38650.C: New test.
19485 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
19487         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
19489 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
19491         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
19493 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19495         * configure: Regenerate.
19497 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
19499         PR middle-end/36802
19500         * testsuite/libgomp.c/pr36802-1.c: New test.
19501         * testsuite/libgomp.c/pr36802-2.c: New test.
19502         * testsuite/libgomp.c/pr36802-3.c: New test.
19504 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
19506         PR libgomp/38270
19507         * config/linux/powerpc/mutex.h: New.
19509 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
19511         PR c++/38257
19512         * testsuite/libgomp.c++/for-7.C: New test.
19514         PR c++/38348
19515         * testsuite/libgomp.c++/for-6.C: New test.
19517 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
19519         PR testsuite/28870
19520         * testsuite/lib/libgomp.exp: Include new timeout library files.
19521         (libgomp_target_compile): Set timeout value from new proc.
19523 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
19525         PR libgomp/37938
19526         * config/linux/ia64/mutex.h: New.
19528 2008-11-04  Tobias Burnus  <burnus@net-b.de>
19530         PR libgomp/37935
19531         * libgomp.texi (Runtime library routines, environment variables):
19532         Update for OpenMP version 3.0.
19534 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
19535             Steve Ellcey  <sje@cup.hp.com>
19537         * configure: Regenerate for new libtool.
19538         * Makefile.in: Ditto.
19539         * testsuite/Makefile.in: Ditto.
19541 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
19542             Andreas Tobler  <a.tobler@schweiz.org>
19544         * config/bsd/proc.c: New file.
19545         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
19546         * configure.ac: Check for header <sys/sysctl.h>
19547         * configure: Regenerate.
19548         * config.h.in: Likewise.
19550 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
19552         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
19554 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
19556         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
19557         * Makefile.in: Regenerated.
19558         * testsuite/Makefile.in: Regenerated.
19560 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
19562         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
19563         depend on blddir if blddir exists.
19564         (libgomp_target_compile): Likewise.
19565         * testsuite/libgomp.c++/c++.exp: Likewise.
19566         * testsuite/libgomp.fortran/fortran.exp: Likewise.
19568 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19570         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
19571         Do not list GPL as Invariant Section.
19573 2008-07-28  Ilie Garbacea  <ilie@mips.com>
19574             Chao-ying Fu  <fu@mips.com>
19576         * configure.tgt: Enable futex for MIPS.
19577         * config/linux/mips/futex.h: New file.
19579 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
19581         * team.c (gomp_team_end): Free team immediately if it has
19582         just one thread.
19584 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
19586         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
19587         * testsuite/libgomp.fortran/fortran.exp: Same.
19588         * testsuite/libgomp.c/c.exp: Same.
19589         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
19590         directory to library path first.
19592 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
19594         * env.c (parse_stacksize): Add cast to avoid warning.
19595         (parse_spincount): Likewise.
19597 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
19599         * testsuite/libgomp.c/loop-10.c: New test.
19600         * libgomp.c/loop-3.c (main): Add lastprivate clause.
19601         * libgomp.c++/loop-6.C (main): Likewise.
19603         PR debug/36617
19604         * testsuite/libgomp.c/debug-1.c: New test.
19606 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
19608         * testsuite/libgomp.c/nqueens-1.c: New test.
19610         PR c++/36523
19611         * testsuite/libgomp.c++/task-7.C: New function.
19613 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19615         * configure: Regenerate.
19617 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19619         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
19620         mutex when HAVE_SYNC_BUILTINS isn't defined.
19622 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19624         * libgomp.texi (omp_test_lock): Fix typo.
19626 2008-06-12  Tobias Burnus  <burnus@net-b.de>
19628         * omp_lib.f90.in: Add "implicit none".
19630 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
19632         PR middle-end/36506
19633         * testsuite/libgomp.c/reduction-5.c: New test.
19635 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
19637         * libgomp.h (struct gomp_task): Add in_tied_task field.
19638         * task.c (gomp_init_task): Initialize it.
19639         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
19640         unconditionally.  Don't call gomp_team_barrier_wake if
19641         current task is implicit or if(0) from implicit and number of
19642         running tasks is equal to nthreads - 1.
19644         PR libgomp/36471
19645         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
19646         omp_get_team_size_8): Fix pastos.
19648         PR libgomp/36469
19649         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
19650         * configure: Regenerated.
19651         * config.h.in: Regenerated.
19652         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
19653         defined.
19655 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
19657         PR bootstrap/36452
19658         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
19659         (GOMP_loop_ull_dynamic_start): Likewise.
19660         (GOMP_loop_ull_guided_start): Likewise.
19661         (GOMP_loop_ull_ordered_static_start): Likewise.
19662         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
19663         (GOMP_loop_ull_ordered_guided_start): Likewise.
19665 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
19666             Richard Henderson  <rth@redhat.com>
19667             Ulrich Drepper  <drepper@redhat.com>
19668             Jakob Blomer  <jakob.blomer@ira.uka.de>
19670         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
19671         Substitute also OMP_*LOCK_25*.
19672         * configure: Regenerated.
19673         * config.h.in: Regenerated.
19674         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
19675         ptrlock.c and task.c.
19676         * Makefile.in: Regenerated.
19677         * testsuite/Makefile.in: Regenerated.
19678         * task.c: New file.
19679         * loop_ull.c: New file.
19680         * iter_ull.c: New file.
19681         * libgomp.h: Include ptrlock.h.
19682         (enum gomp_task_kind): New type.
19683         (struct gomp_team): Add task_lock, task_queue, task_count,
19684         task_running_count, single_count fields.  Add
19685         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
19686         Remove work_share_lock, generation_mask,
19687         oldest_live_gen, num_live_gen and init_work_shares fields, add
19688         work work_share_list_alloc, work_share_list_free and work_share_chunk
19689         fields.  Change work_shares from pointer to pointers into an array.
19690         Change ordered_release field into gomp_sem_t ** from flexible array
19691         member.  Add implicit_task and initial_work_shares fields.
19692         Move close to the end of the struct.
19693         (struct gomp_team_state): Add single_count, last_work_share,
19694         active_level and level fields, remove work_share_generation.
19695         (gomp_barrier_handle_tasks): New prototype.
19696         (gomp_finish_task): New inline function.
19697         (struct gomp_work_share): Move chunk_size, end, incr into
19698         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
19699         next_ll fields.  Reshuffle fields.  Add next_alloc,
19700         next_ws, next_free and inline_ordered_team_ids fields, change
19701         ordered_team_ids into pointer from flexible array member.
19702         Add mode field.  Put lock and next into a different cache line
19703         from most of the write-once fields.
19704         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
19705         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
19706         gomp_iter_ull_guided_next): New prototypes.
19707         (gomp_new_icv): New prototype.
19708         (struct gomp_thread): Add thread_pool and task fields.
19709         (struct gomp_thread_pool): New type.
19710         (gomp_new_team): New prototype.
19711         (gomp_team_start): Change type of last argument.
19712         (gomp_new_work_share): Removed.
19713         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
19714         (gomp_work_share_init_done): New static inline.
19715         (gomp_throttled_spin_count_var, gomp_available_cpus,
19716         gomp_managed_threads): New extern decls.
19717         (gomp_init_task): New prototype.
19718         (gomp_spin_count_var): New extern var decl.
19719         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
19720         or no alias support, or if not PIC.
19721         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
19722         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
19723         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
19724         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
19725         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
19726         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
19727         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
19728         gomp_test_nest_lock_25): New prototypes.
19729         (omp_lock_symver, strong_alias): Define.
19730         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
19731         decls.
19732         (gomp_end_task): New.
19733         (struct gomp_task_icv, gomp_global_icv): New.
19734         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
19735         (struct gomp_task): New.
19736         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
19737         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
19738         (gomp_icv): New.
19739         (gomp_schedule_type): Reorder enum to match
19740         omp_sched_t.
19741         * team.c (struct gomp_thread_start_data): Add thread_pool and task
19742         fields.
19743         (gomp_thread_start): Add gomp_team_barrier_wait call.
19744         For non-nested case remove clearing of docked thread thr fields.
19745         Use pool fields instead of global gomp_* variables.  Use
19746         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
19747         Create tasks for each member thread.
19748         (free_team): Only destroy team barrier, task_lock here and free it.
19749         (gomp_free_thread): Free last_team if non-NULL.
19750         (gomp_team_end): Call gomp_team_barrier_wait instead of
19751         gomp_barrier_wait.  For nested case call one extra
19752         gomp_barrier_wait.  Move here some destruction from free_team.
19753         Call free_team on pool->last_team if any, rather than freeing
19754         current team.  Destroy work_share_list_free_lock ifndef
19755         HAVE_SYNC_BUILTINS.
19756         (gomp_new_icv): New function.
19757         (gomp_threads, gomp_threads_size, gomp_threads_used,
19758         gomp_threads_dock): Removed.
19759         (gomp_thread_destructor): New variable.
19760         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
19761         functions.
19762         (gomp_team_start): Create new pool if current thread doesn't have
19763         one.  Use pool fields instead of global gomp_* variables.
19764         Initialize thread_pool field for new threads.  Clear single_count.
19765         Change last argument from ws to team, don't create
19766         new team, set ts.work_share to &team->work_shares[0] and clear
19767         ts.last_work_share.  Don't clear ts.work_share_generation.
19768         If number of threads changed, adjust atomically gomp_managed_threads.
19769         Use gomp_init_task instead of gomp_new_task,
19770         set thr->task to the corresponding implicit_task array entry.
19771         Create tasks for each member thread.  Initialize ts.level.
19772         (initialize_team): Call pthread_key_create on
19773         gomp_thread_destructor.
19774         (team_destructor): New function.
19775         (new_team): Removed.
19776         (gomp_new_team): New function.
19777         (free_team): Free gomp_work_share blocks chained through next_alloc,
19778         instead of freeing work_shares and destroying work_share_lock.
19779         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
19780         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
19781         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
19782         of gomp_barrier_wait.
19783         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
19784         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
19785         if gomp_work_share_start returned true.  Don't unlock ws->lock.
19786         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
19787         of gomp_barrier_wait.
19788         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
19789         gomp_work_share_init_done if gomp_work_share_start returned true.
19790         Don't unlock ws->lock.
19791         * work.c: Include stddef.h.
19792         (free_work_share): Use work_share_list_free_lock instead
19793         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
19794         Call gomp_fini_work_share and then either free ws if orphaned, or
19795         put it into work_share_list_free list of the current team.
19796         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
19797         functions.
19798         (gomp_work_share_start, gomp_work_share_end,
19799         gomp_work_share_end_nowait): Rewritten.
19800         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
19801         (openmp_version): Set to 200805.
19802         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
19803         omp_sched_guided, omp_sched_auto): New parameters.
19804         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
19805         omp_set_max_active_levels, omp_get_max_active_levels,
19806         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
19807         omp_get_active_level): New interfaces.
19808         * omp_lib.h.in (openmp_version): Set to 200805.
19809         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
19810         omp_sched_guided, omp_sched_auto): New parameters.
19811         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
19812         omp_set_max_active_levels, omp_get_max_active_levels,
19813         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
19814         omp_get_active_level): New externals.
19815         * loop.c: Include limits.h.
19816         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
19817         GFS_AUTO.
19818         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
19819         Likewise.  Use gomp_icv.
19820         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
19821         ts.static_trip here.
19822         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
19823         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
19824         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
19825         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
19826         don't unlock ws->lock, otherwise lock it.
19827         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
19828         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
19829         (gomp_parallel_loop_start): Call gomp_new_team instead of
19830         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
19831         Adjust gomp_team_start caller.  Pass 0 as second argument to
19832         gomp_resolve_num_threads.
19833         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
19834         If adding ws->chunk_size nthreads + 1 times after end won't
19835         overflow, set ws->mode to 1.
19836         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
19837         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
19838         GOMP_loop_ull_ordered_static_start,
19839         GOMP_loop_ull_ordered_dynamic_start,
19840         GOMP_loop_ull_ordered_guided_start,
19841         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
19842         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
19843         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
19844         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
19845         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
19846         prototypes.
19847         * libgomp.map: Export lock routines also @@OMP_2.0.
19848         (GOMP_loop_ordered_dynamic_first,
19849         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
19850         GOMP_loop_ordered_static_first): Remove.
19851         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
19852         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
19853         GOMP_loop_ull_ordered_dynamic_next,
19854         GOMP_loop_ull_ordered_dynamic_start,
19855         GOMP_loop_ull_ordered_guided_next,
19856         GOMP_loop_ull_ordered_guided_start,
19857         GOMP_loop_ull_ordered_runtime_next,
19858         GOMP_loop_ull_ordered_runtime_start,
19859         GOMP_loop_ull_ordered_static_next,
19860         GOMP_loop_ull_ordered_static_start,
19861         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
19862         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
19863         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
19864         (omp_set_schedule, omp_get_schedule,
19865         omp_get_thread_limit, omp_set_max_active_levels,
19866         omp_get_max_active_levels, omp_get_level,
19867         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
19868         omp_set_schedule_, omp_set_schedule_8_,
19869         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
19870         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
19871         omp_get_max_active_levels_, omp_get_level_,
19872         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
19873         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
19874         New exports @@OMP_3.0.
19875         * omp.h.in (omp_sched_t): New type.
19876         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
19877         omp_set_max_active_levels, omp_get_max_active_levels,
19878         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
19879         omp_get_active_level): New prototypes.
19880         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
19881         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
19882         gomp_thread_limit_var, gomp_remaining_threads_count,
19883         gomp_remaining_threads_lock): New variables.
19884         (parse_spincount): New function.
19885         (initialize_env): Call gomp_init_num_threads unconditionally.
19886         Initialize gomp_available_cpus.  Call parse_spincount,
19887         initialize gomp_{,throttled_}spin_count_var
19888         depending on presence and value of OMP_WAIT_POLICY and
19889         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
19890         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
19891         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
19892         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
19893         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
19894         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
19895         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
19896         (gomp_global_icv): New.
19897         (parse_schedule): Use it.  Parse "auto".
19898         (omp_set_num_threads): Use gomp_icv.
19899         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
19900         Likewise.
19901         (omp_get_max_threads): Move from parallel.c.
19902         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
19903         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
19904         add ialias.
19905         (parse_stacksize, parse_wait_policy): New functions.
19906         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
19907         both wrappers for compatibility and new locks.
19908         (omp_set_schedule, omp_get_schedule,
19909         omp_get_thread_limit, omp_set_max_active_levels,
19910         omp_get_max_active_levels, omp_get_level,
19911         omp_get_ancestor_thread_num, omp_get_team_size,
19912         omp_get_active_level): New ialias_redirect.
19913         (omp_set_schedule_, omp_set_schedule_8_,
19914         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
19915         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
19916         omp_get_max_active_levels_, omp_get_level_,
19917         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
19918         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
19919         New functions.
19920         * parallel.c: Include limits.h.
19921         (gomp_resolve_num_threads): Add count argument.  Rewritten.
19922         (GOMP_parallel_start): Call gomp_new_team and pass that as last
19923         argument to gomp_team_start.  Pass 0 as second argument to
19924         gomp_resolve_num_threads.
19925         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
19926         if gomp_thread_limit_var != ULONG_MAX.
19927         (omp_in_parallel): Implement using ts.active_level.
19928         (omp_get_max_threads): Move to env.c.
19929         (omp_get_level, omp_get_ancestor_thread_num,
19930         omp_get_team_size, omp_get_active_level): New functions,
19931         add ialias.
19932         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
19933         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
19934         gomp_iter_dynamic_next instead of the _locked variant and don't take
19935         lock around it, otherwise acquire it before calling
19936         gomp_iter_dynamic_next_locked.
19937         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
19938         gomp_iter_dynamic_next instead of the _locked variant and don't take
19939         lock around it.
19940         (GOMP_parallel_sections_start): Call gomp_new_team instead of
19941         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
19942         Adjust gomp_team_start caller.  Pass count as second argument to
19943         gomp_resolve_num_threads, don't adjust num_threads after the call.
19944         Use gomp_icv.
19945         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
19946         ws->chunk_size by incr.
19947         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
19948         code.
19949         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
19950         types.
19951         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
19952         (omp_check_defines): Check even the compat defines.
19953         * config/linux/ptrlock.c: New file.
19954         * config/linux/ptrlock.h: New file.
19955         * config/linux/wait.h: New file.
19956         * config/posix/ptrlock.c: New file.
19957         * config/posix/ptrlock.h: New file.
19958         * config/linux/bar.h (gomp_team_barrier_wait,
19959         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
19960         (gomp_team_barrier_set_task_pending,
19961         gomp_team_barrier_clear_task_pending,
19962         gomp_team_barrier_set_waiting_for_tasks,
19963         gomp_team_barrier_waiting_for_tasks,
19964         gomp_team_barrier_done): New inlines.
19965         (gomp_barrier_t): Rewritten.
19966         (gomp_barrier_state_t): New typedef.
19967         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
19968         gomp_barrier_wait_start): Rewritten.
19969         (gomp_barrier_wait_end): Change second argument to
19970         gomp_barrier_state_t.
19971         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
19972         inlines.
19973         * config/linux/bar.c: Include wait.h instead of libgomp.h and
19974         futex.h.
19975         (gomp_barrier_wait_end): Rewritten.
19976         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
19977         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
19978         * config/posix/bar.h (gomp_barrier_t): Add generation field.
19979         (gomp_barrier_state_t): New typedef.
19980         (gomp_team_barrier_wait,
19981         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
19982         (gomp_barrier_wait_start): Or all but low 2 bits from generation
19983         into the return value.  Return gomp_barrier_state_t.
19984         (gomp_team_barrier_set_task_pending,
19985         gomp_team_barrier_clear_task_pending,
19986         gomp_team_barrier_set_waiting_for_tasks,
19987         gomp_team_barrier_waiting_for_tasks,
19988         gomp_team_barrier_done): New inlines.
19989         (gomp_barrier_wait_end): Change second argument to
19990         gomp_barrier_state_t.
19991         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
19992         inlines.
19993         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
19994         (gomp_barrier_wait_end): Change second argument to
19995         gomp_barrier_state_t.
19996         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
19997         gomp_team_barrier_wake): New functions.
19998         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
19999         futex.h.
20000         (gomp_futex_wake, gomp_futex_wait): New variables.
20001         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
20002         * config/linux/lock.c: Rewrite to make locks task owned,
20003         for backwards compatibility provide the old entrypoints
20004         if symbol versioning.  Include wait.h instead of libgomp.h and
20005         futex.h.
20006         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
20007         * config/posix95/lock.c: Rewrite to make locks task owned,
20008         for backwards compatibility provide the old entrypoints
20009         if symbol versioning.
20010         * config/posix/lock.c: Rewrite to make locks task owned,
20011         for backwards compatibility provide the old entrypoints
20012         if symbol versioning.
20013         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
20014         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
20015         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
20016         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
20017         (sys_futex0): Return error code.
20018         (futex_wake, futex_wait): If ENOSYS was returned, clear
20019         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
20020         (cpu_relax, atomic_write_barrier): New static inlines.
20021         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
20022         (futex_wake, futex_wait): If ENOSYS was returned, clear
20023         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
20024         (cpu_relax, atomic_write_barrier): New static inlines.
20025         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
20026         (sys_futex0): Return error code.
20027         (futex_wake, futex_wait): If ENOSYS was returned, clear
20028         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
20029         (cpu_relax, atomic_write_barrier): New static inlines.
20030         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
20031         (sys_futex0): Return error code.
20032         (futex_wake, futex_wait): If ENOSYS was returned, clear
20033         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
20034         (cpu_relax, atomic_write_barrier): New static inlines.
20035         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
20036         (sys_futex0): Return error code.
20037         (futex_wake, futex_wait): If ENOSYS was returned, clear
20038         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
20039         (cpu_relax, atomic_write_barrier): New static inlines.
20040         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
20041         (sys_futex0): Return error code.
20042         (futex_wake, futex_wait): If ENOSYS was returned, clear
20043         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
20044         (cpu_relax, atomic_write_barrier): New static inlines.
20045         * config/linux/sem.c: Include wait.h instead of libgomp.h and
20046         futex.h.
20047         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
20048         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
20049         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
20050         types.
20051         (omp_nest_lock_t): Change owner into void *, add lock field.
20052         * config/posix95/omp-lock.h: Include semaphore.h.
20053         (omp_lock_25_t, omp_nest_lock_25_t): New types.
20054         (omp_lock_t): Use sem_t instead of mutex if semaphores
20055         aren't broken.
20056         (omp_nest_lock_t): Likewise.  Change owner to void *.
20057         * config/posix/omp-lock.h: Include semaphore.h.
20058         (omp_lock_25_t, omp_nest_lock_25_t): New types.
20059         (omp_lock_t): Use sem_t instead of mutex if semaphores
20060         aren't broken.
20061         (omp_nest_lock_t): Likewise.  Add owner field.
20063 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
20065         * testsuite/libgomp.c/collapse-1.c: New test.
20066         * testsuite/libgomp.c/collapse-2.c: New test.
20067         * testsuite/libgomp.c/collapse-3.c: New test.
20068         * testsuite/libgomp.c/icv-1.c: New test.
20069         * testsuite/libgomp.c/icv-2.c: New test.
20070         * testsuite/libgomp.c/lib-2.c: New test.
20071         * testsuite/libgomp.c/lock-1.c: New test.
20072         * testsuite/libgomp.c/lock-2.c: New test.
20073         * testsuite/libgomp.c/lock-3.c: New test.
20074         * testsuite/libgomp.c/loop-4.c: New test.
20075         * testsuite/libgomp.c/loop-5.c: New test.
20076         * testsuite/libgomp.c/loop-6.c: New test.
20077         * testsuite/libgomp.c/loop-7.c: New test.
20078         * testsuite/libgomp.c/loop-8.c: New test.
20079         * testsuite/libgomp.c/loop-9.c: New test.
20080         * testsuite/libgomp.c/nested-3.c: New test.
20081         * testsuite/libgomp.c/nestedfn-6.c: New test.
20082         * testsuite/libgomp.c/sort-1.c: New test.
20083         * testsuite/libgomp.c/task-1.c: New test.
20084         * testsuite/libgomp.c/task-2.c: New test.
20085         * testsuite/libgomp.c/task-3.c: New test.
20086         * testsuite/libgomp.c/task-4.c: New test.
20087         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
20088         to C++ testsuite default compiler options.
20089         * testsuite/libgomp.c++/collapse-1.C: New test.
20090         * testsuite/libgomp.c++/collapse-2.C: New test.
20091         * testsuite/libgomp.c++/ctor-10.C: New test.
20092         * testsuite/libgomp.c++/for-1.C: New test.
20093         * testsuite/libgomp.c++/for-2.C: New test.
20094         * testsuite/libgomp.c++/for-3.C: New test.
20095         * testsuite/libgomp.c++/for-4.C: New test.
20096         * testsuite/libgomp.c++/for-5.C: New test.
20097         * testsuite/libgomp.c++/loop-8.C: New test.
20098         * testsuite/libgomp.c++/loop-9.C: New test.
20099         * testsuite/libgomp.c++/loop-10.C: New test.
20100         * testsuite/libgomp.c++/task-1.C: New test.
20101         * testsuite/libgomp.c++/task-2.C: New test.
20102         * testsuite/libgomp.c++/task-3.C: New test.
20103         * testsuite/libgomp.c++/task-4.C: New test.
20104         * testsuite/libgomp.c++/task-5.C: New test.
20105         * testsuite/libgomp.c++/task-6.C: New test.
20106         * testsuite/libgomp.fortran/allocatable1.f90: New test.
20107         * testsuite/libgomp.fortran/allocatable2.f90: New test.
20108         * testsuite/libgomp.fortran/allocatable3.f90: New test.
20109         * testsuite/libgomp.fortran/allocatable4.f90: New test.
20110         * testsuite/libgomp.fortran/collapse1.f90: New test.
20111         * testsuite/libgomp.fortran/collapse2.f90: New test.
20112         * testsuite/libgomp.fortran/collapse3.f90: New test.
20113         * testsuite/libgomp.fortran/collapse4.f90: New test.
20114         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
20115         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
20116         * testsuite/libgomp.fortran/lib4.f90: New test.
20117         * testsuite/libgomp.fortran/lock-1.f90: New test.
20118         * testsuite/libgomp.fortran/lock-2.f90: New test.
20119         * testsuite/libgomp.fortran/nested1.f90: New test.
20120         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
20121         * testsuite/libgomp.fortran/strassen.f90: New test.
20122         * testsuite/libgomp.fortran/tabs1.f90: New test.
20123         * testsuite/libgomp.fortran/tabs2.f: New test.
20124         * testsuite/libgomp.fortran/task1.f90: New test.
20125         * testsuite/libgomp.fortran/task2.f90: New test.
20126         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
20127         * testsuite/libgomp.fortran/vla5.f90: Likewise.
20128         * testsuite/libgomp.c/pr26943-2.c: Likewise.
20129         * testsuite/libgomp.c/pr26943-3.c: Likewise.
20130         * testsuite/libgomp.c/pr26943-4.c: Likewise.
20132 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
20134         PR c++/36308
20135         * testsuite/libgomp.c++/ctor-11.C: New test.
20136         * testsuite/libgomp.c++/ctor-12.C: New test.
20138 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
20140         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
20142 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
20144         PR middle-end/36106
20145         * testsuite/libgomp.c/atomic-5.c: New test.
20146         * testsuite/libgomp.c/atomic-6.c: New test.
20147         * testsuite/libgomp.c/autopar-1.c: New test.
20149 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20151         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
20152         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
20153         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
20154         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
20155         * configure: Regenerate.
20156         * Makefile.in, testsuite/Makefile.in: Likewise.
20158 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
20160         PR bootstrap/35457
20161         * aclocal.m4: Regenerate.
20162         * configure: Regenerate.
20164 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
20166         PR middle-end/35611
20167         * testsuite/libgomp.c/atomic-4.c: New test.
20169         PR libgomp/35625
20170         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
20171         (gomp_iter_guided_next): Likewise.
20172         * testsuite/libgomp.c/pr35625.c: New test.
20174 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20176         * aclocal.m4: Regenerate.
20177         * configure: Likewise.
20178         * Makefile.in: Likewise.
20179         * testsuite/Makefile.in: Likewise.
20181 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
20183         PR middle-end/35185
20184         * testsuite/libgomp.c++/pr35185.C: New test.
20186 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
20188         PR middle-end/35549
20189         * testsuite/libgomp.c/pr35549.c: New test.
20191 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
20193         * testsuite/libgomp.c/atomic-3.c: New test.
20195 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
20197         PR fortran/33197
20198         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
20199         .F08 file suffixes.
20201 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
20203         PR libgomp/33131
20204         * configure.ac: Add ACX_HEADER_STRING.
20205         * env.c: Include strings.h.
20206         * aclocal.m4: Regenerate.
20207         * config.h.in: Regenerate.
20208         * configure: Regenerate.
20209         * Makefile.in: Regenerate.
20210         * testsuite/Makefile.in: Regenerate.
20212 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
20214         PR middle-end/35196
20215         * testsuite/libgomp.c/pr35196.c: New test.
20217         PR middle-end/35130
20218         * testsuite/libgomp.fortran/pr35130.f90: New test.
20219         * testsuite/libgomp.c/pr35130.c: New test.
20221 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
20223         PR middle-end/33880
20224         * testsuite/libgomp.c/pr33880.c: New test.
20225         * testsuite/libgomp.fortran/pr33880.f90: New test.
20227 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
20229         * configure: Regenerate.
20231 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
20233         * configure.ac: Move futex checking into ../config/futex.m4.
20234         * configure: Rebuilt.
20235         * aclocal.m4: Rebuilt.
20236         * Makefile.in: Rebuilt.
20238         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
20239         2007-10-15 ../config/tls.m4 change.
20241 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
20243         PR c++/34513
20244         * testsuite/libgomp.c/pr34513.c: New test.
20245         * testsuite/libgomp.c++/pr34513.C: New test.
20247 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
20249         PR target/32765
20250         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
20252 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
20254         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
20256 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
20258         * testsuite/libgomp.c/private-1.c: New test.
20260 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
20261             Paolo Bonzini  <bonzini@gnu.org>
20263         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
20264         instead of 'VPATH ='.
20265         * Makefile.in: Regenerate.
20267 2007-11-23  Matthias Klose  <doko@ubuntu.com>
20269         * configure.ac: Adjust makeinfo version check.
20270         * configure: Regenerate.
20272 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
20274         PR fortran/34020
20275         * testsuite/libgomp.fortran/pr34020.f90: New test.
20277 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
20279         PR c++/33894
20280         * testsuite/libgomp.c++/atomic-1.C: New test.
20282 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
20284         PR libgomp/33275
20285         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
20286         Make x and y integers rather than (implicit) reals.  Add private (j)
20287         clause to the last omp parallel.
20289 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
20291         * configure: Regenerate following changes to ../config/tls.m4.
20293 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
20295         * testsuite/libgomp.fortran/stack.f90: New test.
20297 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
20299         * config/mingw32/proc.c: New file.
20301 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
20303         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
20304         (main): Use __get_cpuid to get i386 target fetaures.
20305         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
20306         (main): Use __get_cpuid to get x86_64 target fetaures.
20308 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
20310         PR target/32765
20311         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
20312         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
20314 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
20316         PR fortran/32550
20317         * testsuite/libgomp.fortran/pr32550.f90: New test.
20318         * testsuite/libgomp.fortran/crayptr2.f90: New test.
20320 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
20322         * aclocal.m4: Regenerated.
20324 2007-07-05  Tobias Burnus  <burnus@net-b.de>
20326         PR fortran/32359
20327         * testsuite/libgomp.fortran/pr32359.f90: New.
20329 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
20331         PR libgomp/32468
20332         * sections.c (GOMP_parallel_sections_start): Only decrease
20333         number of threads to COUNT if dyn_var is true.
20334         * testsuite/libgomp.c/pr32468.c: New test.
20336 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
20338         PR libgomp/26308
20339         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
20341 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
20343         PR middle-end/32362
20344         * testsuite/libgomp.c/pr32362-1.c: New test.
20345         * testsuite/libgomp.c/pr32362-2.c: New test.
20346         * testsuite/libgomp.c/pr32362-3.c: New test.
20348 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
20350         * team.c (gomp_team_start): Fix setting up thread_attr
20351         stack size.
20353 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
20355         * configure: Regenerate.
20357 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
20359         * Makefile.in: Regenerate.
20360         * configure: Regenerate.
20361         * aclocal.m4: Regenerate.
20362         * testsuite/Makefile.in: Regenerate.
20364 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
20366         * config/linux/proc.c: New file.
20368         PR libgomp/28482
20369         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
20371 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
20373         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
20375 2007-04-16  Matthias Klose  <doko@debian.org>
20377         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
20378         flags if not building with -m64.
20379         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
20380         flag for i?86-*-* targets, if current target matches -m64.
20382 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
20384         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
20385         * Makefile.in: Regenerate.
20387 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20389         PR testsuite/31369
20390         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
20391         ld_library_path.
20392         * testsuite/libgomp.fortran/fortran.exp: Likewise.
20394 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
20396         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
20397         decls.
20398         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
20399         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
20400         (parse_affinity): New function.
20401         (initialize_env): Call it and gomp_init_affinity.
20402         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
20403         create new pthread_attr_t and call gomp_init_thread_affinity
20404         on it for each thread before passing the attribute to pthread_create.
20405         * config/linux/affinity.c: New file.
20406         * config/posix/affinity.c: New file.
20407         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
20408         * configure: Rebuilt.
20409         * config.h.in: Rebuilt.
20410         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
20411         * Makefile.in: Rebuilt.
20413 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
20415         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
20416         *-*-darwin*.
20417         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
20418         and use it if found.
20420 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
20422         * testsuite/config/default.exp: New file.
20423         * testsuite/lib/libgomp.exp: New file.
20424         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
20425         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
20426         load_lib *, load_gcc_lib *): Move to libgomp.exp.
20427         (libgomp_load): Remove.
20428         * testsuite/lib/libgomp.exp (libgomp_init): Compute
20429         always_ld_library_path, not ld_library_path.  Set additional_flags
20430         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
20431         (target_compile): Do not call libgomp_init.  Append lang_library_path
20432         and lang_link_flags to options.
20433         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
20434         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
20435         here.
20436         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
20437         always_ld_library_path.  Set LD_LIBRARY_PATH here.
20438         * testsuite/libgomp.fortran/fortran.exp: Ditto.
20439         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
20440         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
20441         CX8 flag.
20442         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
20443         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
20444         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
20445         * testsuite/libgomp.c/pr29947-1.c: Ditto.
20446         * testsuite/libgomp.c/atomic-10.c: Ditto.
20448 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
20450         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
20451         dg-final cleanup-modules line.
20452         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
20453         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
20454         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
20455         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
20456         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
20457         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
20458         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
20460 2007-03-18  Andreas Schwab  <schwab@suse.de>
20462         * acinclude.m4: Adjust regular expression for ld version
20463         extraction.
20464         * configure: Regenerate.
20466 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
20468         * Makefile.am: Add install-pdf target as copied from
20469         automake v1.10 rules.
20470         * Makefile.in: Regenerate
20472 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
20474         PR libgomp/28486
20475         * configure: Regenerate.
20477         PR c++/30703
20478         * testsuite/libgomp.c++/pr30703.C: New test.
20480 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
20482         Revert:
20483         2006-07-05  Eric Christopher  <echristo@apple.com>
20484         * configure.ac: Depend addition of -pthread on host OS.
20485         * configure: Regenerate.
20487 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20489         * libgomp.texi: Fix spacing after abbreviations.
20491 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
20493         PR libgomp/30546
20494         * configure.ac: Add check for makeinfo
20495         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
20496         if an appropriate version of makeinfo is found.
20497         * aclocal.m4: Regenerated.
20498         * configure: Regenerated.
20499         * Makefile.in: Regenerated.
20500         * testsuite/Makefile.in: Regenerated.
20502 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
20504         PR libgomp/30540
20505         * libgomp.texi: More about implementation-dependent settings.
20507 2007-01-26  Tobias Burnus  <burnus@net-b.de>
20509         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
20511 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
20513         PR middle-end/30494
20514         * testsuite/libgomp.c/pr30494.c: New test.
20516 2007-01-15  Tom Tromey  <tromey@redhat.com>
20518         * configure: Rebuilt.
20519         * configure.ac: Fixed comment.
20521 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
20523         * libgomp.texi: Document implementation specific default values of
20524         environment variables.
20526 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
20528         PR libgomp/28209
20529         * libgomp.texi: New file.
20530         * configure.ac: Add --enable-generated-files-in-srcdir option.
20531         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
20532         files to srcdir.
20533         * Makefile.in: Regenerated.
20534         * config.h.in: Regenerated.
20535         * testsuite/Makefile.in: Regenerated.
20536         * NOTES: Removed.
20538 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
20540         PR libgomp/29949
20541         * env.c (omp_set_num_threads): Set illegal thread count to 1.
20543 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
20545         * configure: Regenerate.
20547 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
20549         PR libgomp/29947
20550         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
20551         start if there shouldn't be any loop iterations.
20552         (gomp_loop_ordered_static_start): Remove start == end test.
20553         * testsuite/libgomp.c/pr29947-1.c: New test.
20554         * testsuite/libgomp.c/pr29947-2.c: New test.
20556 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
20558         * configure.tgt: Force initial-exec TLS model on Linux only.
20560 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
20562         * configure: Regenerated.
20564 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
20566         * env.c (parse_schedule): Reject out of range values.
20567         (parse_unsigned_long): Reject out of range, negative or zero values.
20569 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
20571         PR fortran/29629
20572         * testsuite/libgomp.fortran/pr29629.f90: New test.
20574 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
20576         PR libgomp/29494
20577         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
20578         * config/posix95: New directory.
20579         * config/posix95/omp-lock.h: New file.
20580         * config/posix95/lock.c: Likewise.
20582 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
20584         * aclocal.m4: Regenerate.
20585         * configure: Regenerate.
20587 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
20589         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
20590         '<' to '<='.
20592 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
20594         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
20595         test.
20596         * configure: Regenerate.
20597         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
20599 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
20601         PR middle-end/25261
20602         PR middle-end/28790
20603         * testsuite/libgomp.c/nestedfn-4.c: New test.
20604         * testsuite/libgomp.c/nestedfn-5.c: New test.
20605         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
20607         PR fortran/29097
20608         * testsuite/libgomp.fortran/condinc1.f: New test.
20609         * testsuite/libgomp.fortran/condinc2.f: New test.
20610         * testsuite/libgomp.fortran/condinc3.f90: New test.
20611         * testsuite/libgomp.fortran/condinc4.f90: New test.
20612         * testsuite/libgomp.fortran/condinc1.inc: New file.
20614 2006-09-18  Tom Tromey  <tromey@redhat.com>
20616         * configure: Rebuilt.
20618 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
20620         PR c/28768
20621         PR preprocessor/14634
20622         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
20623         to AC_DEFINE.
20624         * configure: Regenerate.
20626 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
20628         * testsuite/libgomp.fortran/reduction3.f90: Change
20629         -2147483648 to -huge(i)-1 to avoid overflow.
20630         * testsuite/libgomp.fortran/reduction4.f90: Change
20631         Z'ffffffff' to not(0) to avoid overflow.
20633 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
20635         PR libgomp/25938
20636         * Makefile.am (libsubincludedir): New.
20637         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
20638         * Makefile.in: Regenerate.
20640 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
20642         PR libgomp/28725
20643         * env.c: Include ctype.h.
20644         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
20645         leading and/or trailing whitespace and compare strings case
20646         insensitively.
20648 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
20650         PR fortran/28390
20651         * testsuite/libgomp.fortran/pr28390.f: New test.
20653 2006-07-05  Eric Christopher  <echristo@apple.com>
20655         * configure.ac: Depend addition of -pthread on host OS.
20656         * configure: Regenerate.
20658 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
20660         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
20661         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
20662         defined.
20664 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
20666         PR libgomp/26175
20667         PR libgomp/26477
20668         * configure.ac: If neither --enable-linux-futex nor
20669         --disable-linux-futex is passed, determine the default by checking
20670         for compiling and/or running against NPTL.  With --enable-linux-futex,
20671         check if SYS_gettid and SYS_futex are defined.
20672         * configure: Rebuilt.
20674 2006-06-14  Richard Henderson  <rth@redhat.com>
20676         PR libgomp/28008
20677         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
20678         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
20680 2006-06-09  Richard Henderson  <rth@redhat.com>
20682         * env.c (gomp_nthreads_var): Change to unsigned long.
20683         (gomp_run_sched_chunk): Likewise.
20684         (parse_unsigned_long): Rename from parse_num_threads and generalize.
20685         (initialize_env): Initialize gomp_thread_attr.
20686         * libgomp.h (gomp_nthreads_var): Update decl.
20687         (gomp_run_sched_chunk): Likewise.
20688         (gomp_thread_attr): Declare.
20689         * team.c (gomp_thread_attr): Export.
20690         (initialize_team): Don't initialize it.
20692 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
20694         PR fortran/27916
20695         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
20696         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
20698 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
20700         * config/mingw32/time.c: New file.
20701         * configure.tgt: Use it.
20703 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
20705         * Makefile.am: Add install-html target. Add install-html to .PHONY
20706         * Makefile.in: Regenerate.
20708 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20710         PR libgomp/27612
20711         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
20712         * testsuite/libgomp.c/critical-1.c: Likewise.
20713         * testsuite/libgomp.c/loop-1.c: Likewise.
20714         * testsuite/libgomp.c/loop-2.c: Likewise.
20715         * testsuite/libgomp.c/single-1.c: Likewise.
20716         * testsuite/libgomp.c/ordered-1.c: Likewise.
20717         * testsuite/libgomp.c/ordered-2.c: Likewise.
20719 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
20721         PR middle-end/27416
20722         * libgomp.fortran/pr27416-1.f90: New test.
20724 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
20726         PR fortran/27395
20727         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
20728         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
20730 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
20732         PR c++/26943
20733         * testsuite/libgomp.c/pr26943-1.c: New test.
20734         * testsuite/libgomp.c/pr26943-2.c: New test.
20735         * testsuite/libgomp.c/pr26943-3.c: New test.
20736         * testsuite/libgomp.c/pr26943-4.c: New test.
20737         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
20738         * testsuite/libgomp.c++/pr26943.C: New test.
20740 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
20742         PR middle-end/27337
20743         * testsuite/libgomp.c++/pr27337.C: New test.
20745 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
20747         PR c/26171
20748         * testsuite/libgomp.c/pr26171.c: New test.
20750 2006-04-25  Richard Henderson  <rth@redhat.com>
20752         PR libgomp/25865
20753         * configure.ac: Use GCC_CHECK_TLS.
20754         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
20755         * Makefile.in, aclocal.m4, configure: Regenerate.
20757 2006-04-10  Matthias Klose  <doko@debian.org>
20759         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
20760         directory names containing underscores.
20762 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
20764         PR c++/26691
20765         * testsuite/libgomp.c++/pr26691.C: New test.
20767 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
20769         * testsuite/libgomp.fortran/retval2.f90: New test.
20771 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
20773         * testsuite/libgomp.c++: New directory.
20775 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
20777         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
20778         * config/posix/sem.c: Implement the above.
20780 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
20782         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
20783         define HAVE_BROKEN_POSIX_SEMAPHORES.
20784         * configure: Rebuilt.
20785         * config.h.in: Rebuilt.
20787 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
20789         PR bootstrap/26161
20790         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
20791         for the other pthread check.
20792         * configure: Regenerate.
20793         * config.h.in: Regenerate.
20795 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
20797         PR libgomp/25938
20798         PR libgomp/25984
20799         * Makefile.am (fincludedir): New variable.
20800         (nodist_include_HEADERS): Remove Fortran files.
20801         (nodist_finclude_HEADERS): New variable.
20802         * Makefile.in: Regenerated.
20804 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
20806         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
20807         Remove tests for returning assumed character length arrays.
20809 2006-02-12  Roger Sayle  <roger@eyesopen.com>
20810             John David Anglin  <dave@hiauly1.hia.nrc.ca>
20812         PR libgomp/25936
20813         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
20815 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
20817         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
20819 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
20821         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
20822         part of LD_LIBRARY_PATH manually.
20824 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
20826         PR libgomp/25852
20827         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
20828         libgomp_init.
20830 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
20832         PR libgomp/25884
20833         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
20834         * configure.ac (PERL): Don't set.
20835         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
20836         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
20837         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
20838         * omp.h.in: Wrap the new configure substitutions with @ characters.
20839         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
20840         * aclocal.m4, configure, Makefile.in: Regenerate.
20841         * mkomp_h.pl: Delete.
20843 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
20845         PR libgomp/25259
20846         * configure.ac: Use GCC_HEADER_STDINT.
20847         * libgomp.h: Include gstdint.h.
20848         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
20849         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
20851 2006-01-24  Richard Henderson  <rth@redhat.com>
20853         PR libgomp/25942
20854         * configure.ac: Add AM_MAINTAINER_MODE.
20855         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
20857 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
20859         * Makefile.in: Regenerate.
20860         * testsuite/Makefile.in: Regenerate.
20861         * aclocal.m4: Regenerate.
20863 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
20865         * config/posix/proc.c: Conditional include of sys/loadavg.h for
20866         Solaris.
20867         * configure.ac: Add check for loadavg.h.
20868         (link_gomp): Adjust comment.
20869         * configure: Regenerate.
20870         * config.h.in: Regenerate.
20872 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
20874         PR libgomp/25877
20875         * configure.ac: Remove check for alloca.h.
20876         * configure: Regenerate.
20877         * config.h.in: Regenerate.
20878         * libgomp.h: define gomp_alloca to be __builtin_alloca.
20879         * team.c: Remove use of alloca.h.
20880         Call gomp_alloca instead of alloca.
20882 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
20884         PR libgomp/25877
20885         * team.c: Add include of alloca.h.
20886         * configure.ac: Add check for alloca.h.
20887         * configure: Regenerate.
20888         * config.h.in: Regenerate.
20890 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
20892         PR fortran/25219
20893         * testsuite/libgomp.fortran/pr25219.f90: New test.
20895 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
20897         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
20898         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
20899         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
20900         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
20901         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
20902         testsuite/libgomp.fortran/threadprivate1.f90,
20903         testsuite/libgomp.fortran/threadprivate2.f90,
20904         testsuite/libgomp.fortran/threadprivate3.f90,
20905         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
20906         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
20907         testsuite/libgomp.fortran/omp_parse3.f90: Change required
20908         effective-target to TLS runtime.
20910         * testsuite/libgomp.fortran/pr25162.f: Require
20911         effective-target TLS runtime.
20913 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
20915         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
20916         * testsuite/libgomp.c/nestedfn-3.c: New test.
20918 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
20920         PR fortran/25162
20921         * testsuite/libgomp.fortran/pr25162.f: New test.
20923 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
20925         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
20926         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
20928 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
20930         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
20931         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
20932         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
20933         single.c, team.c, work.c, config/linux/alpha/futex.h,
20934         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
20935         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
20936         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
20937         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
20938         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
20939         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
20940         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
20941         FSF address.
20943 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
20945         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
20946         to nodist_noinst_HEADERS.
20947         * Makefile.in: Rebuilt.
20949         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
20950         add integer count field.
20951         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
20952         omp_nest_lock_t type change.
20953         (omp_init_nest_lock): Likewise.  Initialize count to 0.
20954         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
20955         Increment count.
20956         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
20957         Decrement count.
20958         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
20959         Increment count if successful and return the new nesting level.
20960         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
20961         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
20962         * testsuite/libgomp.c/lib-1.c: New test.
20963         * testsuite/libgomp.fortran/lib1.f90: New test.
20964         * testsuite/libgomp.fortran/lib2.f: New test.
20965         * testsuite/libgomp.fortran/lib3.f: New test.
20967 2005-11-17  Richard Henderson  <rth@redhat.com>
20969         PR 24845
20970         * Makefile.am (nodist_toolexeclib_HEADERS): New.
20971         * configure.ac (link_gomp): New.  Substitute it.
20972         (AC_CONFIG_FILES): Add libgomp.spec.
20973         * libgomp.spec.in: New file.
20974         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
20975         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
20977 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
20979         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
20980         reduction(-:var) behaving the same as reduction(+:var).
20981         * testsuite/libgomp.c/reduction-4.c: New test.
20983 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
20985         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
20986         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
20987         testsuite/libgomp.c/copyin-3.c,
20988         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
20989         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
20990         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
20991         testsuite/libgomp.c++/pr24455.C,
20992         testsuite/libgomp.fortran/threadprivate1.f90,
20993         testsuite/libgomp.fortran/threadprivate2.f90,
20994         testsuite/libgomp.fortran/threadprivate3.f90,
20995         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
20996         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
20997         testsuite/libgomp.fortran/omp_parse3.f90: Require
20998         effective-target TLS.
21000 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
21002         * HEADER: Remove.
21004 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
21006         PR libgomp/24797
21007         * team.c (initialize_team): Pass NULL rather than free as
21008         pthread_key_create destructor.  Initialize thread specific data
21009         pointer in initial thread to a static local variable rather than
21010         malloced memory.
21012 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
21014         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
21015         its location to ld_library_path.
21017 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
21019         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
21021 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
21023         * testsuite/libgomp.c: Rename from libgomp.dg.
21025 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
21027         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
21028         threadprivate variable 'i'.
21030 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
21032         * config/linux/s390/futex.h: New file.
21033         * configure.tgt: Use it.
21035         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
21036         before the parallel.
21038 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
21040         PR c++/24734
21041         * testsuite/libgomp.c++/master-1.C: New test.
21043 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
21045         * testsuite/libgomp.dg/copyin-3.c: New test.
21047 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
21049         * testsuite/libgomp.fortran/retval1.f90: New test.
21050         * testsuite/libgomp.fortran/vla7.f90: New test.
21052 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
21054         * testsuite/libgomp.fortran/vla2.f90: New test.
21055         * testsuite/libgomp.fortran/vla3.f90: New test.
21056         * testsuite/libgomp.fortran/vla4.f90: New test.
21057         * testsuite/libgomp.fortran/vla5.f90: New test.
21058         * testsuite/libgomp.fortran/vla6.f90: New test.
21060 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
21062         * config/linux/sparc/futex.h: New file.
21063         * configure.tgt: Use it.
21064         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
21066         * critical.c: Include stdlib.h.
21067         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
21068         ignoring return value.
21069         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
21070         LIBGOMP_CHECK_SYNC_BUILTINS check.
21071         * configure: Rebuilt.
21073 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
21075         * testsuite/libgomp.fortran/vla1.f90: New test.
21077 2005-10-31  Richard Henderson  <rth@redhat.com>
21079         * testsuite/libgomp.fortran/character2.f90: Fix race condition
21080         setting 's' in different threads.
21082 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
21084         * libgomp.h (attribute_hidden, ialias): Define.
21085         * config/posix/proc.c (omp_get_num_procs): Add ialias.
21086         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
21087         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
21088         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
21089         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
21090         omp_test_lock, omp_test_nest_lock): Likewise.
21091         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
21092         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
21093         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
21094         omp_test_lock, omp_test_nest_lock): Likewise.
21095         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
21096         omp_get_dynamic, omp_get_nested): Likewise.
21097         * parallel.c (omp_get_num_threads, omp_get_max_threads,
21098         omp_get_thread_num, omp_in_parallel): Likewise.
21099         * fortran.c (ialias_redirect): Define.
21100         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
21101         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
21102         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
21103         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
21104         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
21105         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
21106         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
21107         omp_get_wtime): Add ialias_redirect.
21109 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
21111         * fortran.c: Include stdlib.h.
21113 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
21115         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
21116         * Makefile.in: Regenerated.
21118 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
21120         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
21121         * libgomp_f.h.in (omp_check_defines): New function.
21122         * env.c: Include libgomp_f.h.
21123         (initialize_env): Call omp_check_defines.
21125         * testsuite/libgomp.dg/copyin-2.c: New test.
21126         * testsuite/libgomp.c++/copyin-2.C: New test.
21127         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
21129         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
21130         * testsuite/libgomp.fortran/sharing2.f90: New test.
21132         * testsuite/libgomp.dg/copyin-1.c: New test.
21133         * testsuite/libgomp.c++/copyin-1.C: New test.
21135 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
21137         * testsuite/libgomp.fortran/crayptr1.f90: New test.
21139         * testsuite/libgomp.fortran/workshare1.f90: New test.
21141         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
21142         only test.
21143         * libgomp.fortran/sharing1.f90: New test.
21145 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
21147         PR c++/24502
21148         * testsuite/libgomp.c++/loop-7.C: New test.
21150         * testsuite/libgomp.dg/nestedfn-2.c: New test.
21152         * testsuite/libgomp.dg/nestedfn-1.c: New test.
21153         * testsuite/libgomp.fortran/reduction6.f90: New test.
21154         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
21156 2005-10-23  Richard Henderson  <rth@redhat.com>
21158         * testsuite/libgomp.c++/ctor-1.C: New.
21159         * testsuite/libgomp.c++/ctor-2.C: New.
21160         * testsuite/libgomp.c++/ctor-3.C: New.
21161         * testsuite/libgomp.c++/ctor-4.C: New.
21162         * testsuite/libgomp.c++/ctor-5.C: New.
21163         * testsuite/libgomp.c++/ctor-6.C: New.
21164         * testsuite/libgomp.c++/ctor-7.C: New.
21165         * testsuite/libgomp.c++/ctor-8.C: New.
21166         * testsuite/libgomp.c++/ctor-9.C: New.
21168 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
21170         PR 24455
21171         * testsuite/libgomp.c++/pr24455-1.C: New test.
21172         * testsuite/libgomp.c++/pr24455.C: New test.
21173         * testsuite/libgomp.dg/pr24455-1.c: New test.
21174         * testsuite/libgomp.dg/pr24455.c: New test.
21176 2005-10-20  Richard Henderson  <rth@redhat.com>
21178         * testsuite/libgomp.c++/loop-6.C: New.
21179         * testsuite/libgomp.dg/loop-3.c: New.
21181 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
21183         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
21184         explicitly private.
21185         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
21186         explicitly shared.
21188 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
21190         * testsuite/libgomp.fortran/jacobi.f: New test.
21192 2005-10-19  Richard Henderson  <rth@redhat.com>
21194         * configure.tgt (i?86-linux): Default to with_arch instead of
21195         CFLAGS.  Add -mtune to match target_cpu.
21196         (x86_64-linux): Tune to i686.
21198         * fortran.c (omp_test_nest_lock_): Fix typo.
21200 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
21202         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
21203         gomp_ordered_sync): Do nothing if team->nthreads == 1.
21204         * testsuite/libgomp.dg/ordered-3.c: New test.
21206         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
21207         Remove volatile keyword.
21209         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
21210         in COMMON block to avoid warnings on 64-bit targets.
21212 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
21214         * testsuite/libgomp.dg/shared-3.c: New test.
21216 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
21218         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
21219         * testsuite/libgomp.fortran/reduction5.f90: New test.
21221 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
21223         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
21224         dg-options.
21225         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
21226         flush loop now that __sync_synchronize has proper memory barrier.
21227         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
21228         Add -ffixed-form to dg-options.
21230 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
21232         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
21233         from subdirectories.
21234         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
21235         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
21236         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
21237         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
21238         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
21239         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
21240         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
21241         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
21242         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
21243         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
21244         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
21245         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
21246         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
21247         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
21248         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
21249         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
21250         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
21251         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
21252         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
21253         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
21254         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
21255         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
21256         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
21257         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
21258         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
21260 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
21262         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
21263         lang_library_path exists.  Use find instead of glob to gather tests.
21264         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
21266 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
21268         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
21269         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
21270         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
21271         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
21272         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
21273         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
21274         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
21275         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
21276         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
21277         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
21278         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
21279         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
21280         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
21282 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
21284         * testsuite/libgomp.dg/vla-1.c: New test.
21286         * testsuite/libgomp.fortran/reference2.f90: New test.
21288         * testsuite/libgomp.fortran/character2.f90: Remove explicit
21289         declaration of omp_get_thread_num.
21290         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
21291         use omp_lib.
21293         * testsuite/libgomp.fortran/reduction1.f90: New test.
21294         * testsuite/libgomp.fortran/reduction2.f90: New test.
21295         * testsuite/libgomp.fortran/reduction3.f90: New test.
21296         * testsuite/libgomp.fortran/reduction4.f90: New test.
21298 2005-10-13  Richard Henderson  <rth@redhat.com>
21300         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
21301         * Makefile.in: Regenerate.
21302         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
21303         * libgomp.h: Include bar.h.
21304         (struct gomp_barrier): Remove.
21305         (struct gomp_team): Add barrier.  Replace master_barrier with
21306         master_release.  Replace threads with ordered_release.
21307         (struct gomp_thread): Replace barrier with release.
21308         * ordered.c (gomp_ordered_first): Update for ordered_release change.
21309         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
21310         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
21311         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
21312         (GOMP_single_copy_end): Likewise.
21313         * team.c (gomp_threads_dock): New.
21314         (gomp_barrier_init, gomp_barrier_destroy): Remove.
21315         (gomp_thread_start): Use gomp_barrier_wait.
21316         (new_team, free_team): Update for gomp_team changes.
21317         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
21318         (gomp_team_end): Use gomp_barrier_wait.
21319         (initialize_team): Update for gomp_thread changes.
21320         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
21321         (gomp_work_share_end_nowait): Use atomic ops when available.
21322         * config/linux/bar.c, config/linux/bar.h: New files.
21323         * config/posix/bar.c, config/posix/bar.h: New files.
21325 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
21327         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
21328         * testsuite/libgomp.dg/single-2.c: New test.
21330         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
21331         lang_link_flags): Unset, so that they aren't inherited from previously
21332         sourced *.exp.
21334         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
21336 2005-10-12  Richard Henderson  <rth@redhat.com>
21338         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
21339         (libgomp_init): Use lang_test_file, lang_library_path, and
21340         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
21342         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
21343         (lang_test_file, lang_link_flags): New.
21344         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
21346         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
21347         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
21348         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
21349         testsuite/libgomp.c++/parallel-1.C,
21350         testsuite/libgomp.c++/reduction-1.C,
21351         testsuite/libgomp.c++/reduction-2.C,
21352         testsuite/libgomp.c++/reduction-3.C,
21353         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
21354         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
21355         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
21356         New files, largely cribbed from the C testsuite.
21358 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
21360         * testsuite/libgomp.fortran/character1.f90: New test.
21361         * testsuite/libgomp.fortran/character2.f90: New test.
21363         * testsuite/libgomp.dg/nested-1.c: New test.
21364         * testsuite/libgomp.dg/nested-2.c: New test.
21365         * testsuite/libgomp.fortran/do1.f90: New test.
21366         * testsuite/libgomp.fortran/do2.f90: New test.
21368         * testsuite/libgomp.fortran/reference1.f90: New test.
21370 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
21372         * testsuite/libgomp.dg/reduction-1.c: New test.
21373         * testsuite/libgomp.dg/reduction-2.c: New test.
21374         * testsuite/libgomp.dg/reduction-3.c: New test.
21376 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
21378         * testsuite/libgomp.dg/atomic-1.c: New test.
21379         * testsuite/libgomp.dg/atomic-2.c: New test.
21381 2005-10-09  Richard Henderson  <rth@redhat.com>
21383         * critical.c (atomic_lock): New.
21384         (initialize_critical): Initialize it.
21385         (GOMP_atomic_start, GOMP_atomic_end): New.
21386         * libgomp.map: Export them.
21387         * libgomp_g.h: Declare them.
21389         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
21391 2005-10-02  Richard Henderson  <rth@redhat.com>
21393         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
21394         to XCFLAGS instead of CFLAGS.
21396 2005-09-30  Richard Henderson  <rth@redhat.com>
21398         * configure.ac: Determine whether -pthread or -lpthread is needed.
21399         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
21400         * Makefile.in, configure: Rebuild.
21402 2005-09-28  Richard Henderson  <rth@redhat.com>
21404         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
21405         * testsuite/libgomp.dg/omp-single-3.c: New test.
21407 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
21409         * testsuite/libgomp.dg/omp-single-2.c: New test.
21410         * testsuite/libgomp.dg/shared-2.c: Fix return code.
21412 2005-09-27  Richard Henderson  <rth@redhat.com>
21414         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
21415         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
21417 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
21419         * testsuite/libgomp.dg/omp-loop03.c: New test.
21421 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
21423         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
21425 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
21427         * testsuite/libgomp.dg/omp-single-1.c: New test.
21428         * testsuite/libgomp.dg/shared-1.c: Return 0.
21429         Add prototype for abort.
21430         * testsuite/libgomp.dg/shared-2.c: Likewise.
21432 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
21434         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
21435         constructs.
21437 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
21439         * testsuite/libgomp.dg/shared-1.c: New test.
21440         * testsuite/libgomp.dg/shared-2.c: New test.
21442 2005-09-24  Richard Henderson  <rth@redhat.com>
21444         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
21446 2005-09-24  Richard Henderson  <rth@redhat.com>
21448         * iter.c (gomp_iter_static_next): Round up when computing number
21449         of iterations.  Don't bother distributing a remainder equally.
21451         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
21452         Don't call srand.  Zero b before testing.
21453         (main): New.
21455 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
21457         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
21458         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
21460 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
21462         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
21463         without !$omp end do, followed immediately by subroutine end.
21465 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
21467         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
21469 2005-09-22  Richard Henderson  <rth@redhat.com>
21471         * critical.c (GOMP_critical_name_start): Change argument to void**.
21472         Reuse the pointer space if the mutex fits.
21473         (GOMP_critical_name_end): Likewise.
21474         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
21475         * libgomp_g.h (GOMP_critical_name_start): Update decl.
21476         (GOMP_critical_name_end): Likewise.
21477         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
21478         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
21480 2005-09-20  Richard Henderson  <rth@redhat.com>
21482         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
21483         (create_lock_lock): New.
21484         (initialize_critical): Initialize it.
21485         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
21486         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
21488 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
21490         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
21492 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
21494         * testsuite/libgomp.dg/omp-loop01.c: New test.
21495         * testsuite/libgomp.dg/omp-loop02.c: New test.
21497 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
21499         * configure.ac (AC_PROG_FC): Add.
21500         (USE_FORTRAN): New automake conditional.
21501         * configure: Rebuilt.
21502         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
21503         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
21504         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
21505         Add rules to build them.
21506         * Makefile.in: Rebuilt.
21507         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
21508         OMP_NEST_LOCK_KIND.
21509         * libgomp.map: Add Fortran wrappers.
21510         * libgomp_f.h.in: New file.
21511         * omp_lib.h.in: New file.
21512         * omp_lib.f90.in: New file.
21513         * fortran.c: New file.
21514         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
21515         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
21516         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
21517         libgfortran has been built.
21518         * testsuite/libgomp.fortran/fortran.exp: New file.
21519         * testsuite/libgomp.fortran/omp_cond1.f: New test.
21520         * testsuite/libgomp.fortran/omp_cond2.f: New test.
21521         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
21522         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
21523         * testsuite/libgomp.fortran/omp_hello.f: New test.
21524         * testsuite/libgomp.fortran/omp_orphan.f: New test.
21525         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
21526         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
21527         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
21528         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
21529         * testsuite/libgomp.fortran/omp_reduction.f: New test.
21530         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
21531         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
21533 2005-08-30  Richard Henderson  <rth@redhat.com>
21535         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
21536         function for when aliases are not usable.
21537         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
21538         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
21539         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
21540         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
21541         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
21542         GOMP_loop_ordered_guided_next): Likewise.
21543         * ordered.c (GOMP_ordered_start): Likewise.
21545 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
21547         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
21548         * testsuite/libgomp.dg/omp_hello.c: Fix return code
21549         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
21550         * testsuite/libgomp.dg/omp_orphan.c: Likewise
21551         * testsuite/libgomp.dg/omp_reduction.c: Likewise
21552         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
21553         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
21554         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
21555         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
21557 2005-07-07  Eric Christopher  <echristo@redhat.com>
21558             Diego Novillo  <dnovillo@redhat.com>
21560         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
21561         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
21562         up code.
21563         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
21564         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
21565         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
21566         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
21567         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
21568         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
21569         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
21571 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
21573         * TOPLEVEL.patch: Remove.
21575 2005-05-16  Richard Henderson  <rth@redhat.com>
21577         * configure.ac: Test for clock_gettime.
21578         * config.h.in, configure: Rebuild.
21579         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
21580         (omp_get_wtime): Use clock_gettime if available.
21581         (omp_get_wtick): Use clock_getres if available.
21583 2005-05-11  Richard Henderson  <rth@redhat.com>
21585         * config/linux/ia64/futex.h: New file.
21586         * configure.tgt: Use it.
21588         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
21590 2005-05-07  Richard Henderson  <rth@redhat.com>
21592         * config/linux/powerpc/futex.h: New file.
21593         * configure.tgt: Use it.
21595         * config/linux/i486/futex.h: Merge ...
21596         * config/linux/x86_64/futex.h: ... into ...
21597         * config/linux/x86/futex.h: ... here.
21598         * configure.tgt: Update to match.
21600 2005-05-06  Richard Henderson  <rth@redhat.com>
21602         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
21603         * config/linux/i486/futex.h: Likewise.
21604         * config/linux/x86_64/futex.h: Likewise.
21606         * config/linux/lock.c: New file.
21607         * config/linux/omp-lock.h: New file.
21609         * critical.c, env.h: Don't include omp.h
21610         * config/posix/lock.c: Include libgomp.h instead of omp.h.
21611         * config/posix/time.c: Likewise.
21612         * config/posix/omp-lock.h: New file.
21613         * libgomp.h: Include omp-lock.h and omp.h.
21614         * Makefile.am (nodist_include_HEADERS): New.
21615         (omp.h): New rule.
21616         * configure.ac (PERL): New.
21617         * mkomp_h.pl: New file.
21618         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
21619         with templates.
21620         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
21622         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
21623         build directory.  Re-add -march=i486 hack.
21625         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
21626         (libgomp_link_flags): Remove.
21627         (libgomp_initialized): Remove.
21628         (libgomp_init): Don't protect from reinitialization.  Copy code
21629         from libstdc++ for getting the multilib set correctly.
21631 2005-05-05  Richard Henderson  <rth@redhat.com>
21633         * config/linux/alpha/futex.h: New file.
21634         * configure.tgt (alpha*-*-linux*): Use it.
21636         * config/posix/mutex.c: New file.
21637         * config/posix/sem.c: Use libgomp.h.
21639         * configure.tgt (x86_64-linux): Also test CC for -m32.
21640         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
21642         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
21643         after $gccpath.
21645         * Makefile.am (SUBDIRS): New.
21646         (libgomp_la_LDFLAGS): Add -lpthread.
21647         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
21648         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
21650         * libgomp_g.h: New file.
21651         * libgomp.h: Split out all public declarations to libgomp_g.h.
21652         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
21653         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
21654         * config/linux/sem.h: Likewise.
21655         * config/posix/sem.h: Likewise.
21657         * Makefile.am (AM_LDFLAGS): New.
21658         (libgomp_version_script): Split out from ...
21659         (libgomp_la_LDFLAGS): ... here.
21660         (libgomp_version_info): New.
21661         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
21662         (LIBGOMP_ENABLE): New.
21663         (LIBGOMP_CHECK_LINKER_FEATURES): New.
21664         (LIBGOMP_ENABLE_SYMVERS): New.
21665         * configure.ac (AC_INIT): Version 1.0.
21666         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
21667         (enable-linux-futex): Likewise.  Rename from enable-futex.
21668         (libtool_VERSION): New.
21669         (LIBGOMP_ENABLE_SYMVERS): Use it.
21670         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
21671         * Makefile.in, aclocal.m4, configure: Rebuild.
21673         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
21674         (gomp_mutex_unlock_slow): Fix typo.
21675         * config/linux/sem.c: Similarly.
21676         (gomp_sem_post_slow): Fix typo.
21677         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
21678         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
21679         [__PIC__] (sys_futex0): Don't use tmp output in asm.
21681         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
21682         (libgomp_la_LDFLAGS): Add top_srcdir to path.
21683         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
21684         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
21685         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
21686         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
21687         LDFLAGS.  Pull enable_futex check to top-level.
21688         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
21689         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
21691         First attempt at real configury.
21692         * Makefile, config.h: Remove file.
21693         * Makefile.am, Makefile.in: New file.
21694         * acinclude.m4 aclocal.m4: New file.
21695         * configure.ac, configure.tgt, configure: New file.
21697         * config/posix/lock.c: Rename from sys-lock.c.
21698         * config/posix/mutex.h: Rename from sys-mutex.h.
21699         * config/posix/sem.c: Rename from sys-sem.c.
21700         * config/posix/sem.h: Rename from sys-sem.h.
21701         * config/posix/proc.c: Rename from sys-proc.c.
21702         * config/posix/time.c: Rename from sys-proc.c.
21704         * config/linux/mutex.c: New file.
21705         * config/linux/mutex.h: New file.
21706         * config/linux/sem.c: New file.
21707         * config/linux/sem.h: New file.
21708         * config/linux/i486/futex.h: New file.
21709         * config/linux/x86_64/futex.h: New file.
21711 2005-05-04  Richard Henderson  <rth@redhat.com>
21713         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
21714         * libgomp.h: Declare them.
21715         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
21716         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
21718 2005-05-04  Richard Henderson  <rth@redhat.com>
21720         * libgomp-1 code drop
21722 2005-05-04  Richard Henderson  <rth@redhat.com>
21724         * iter.c (gomp_iter_static_next): Return tri-state on 0.
21725         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
21726         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
21727         (gomp_iter_static_next): Update.
21728         (gomp_ordered_static_next): Update.
21729         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
21730         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
21731         totally empty range.
21732         (gomp_loop_ordered_static_next): Refine test for calling
21733         gomp_ordered_static_next.
21734         * testsuite/ordered-1.c: Add case for more threads than iterations.
21736         * iter.c (gomp_iter_runtime_next_locked): Remove.
21737         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
21738         gomp_loop_guided_start, gomp_loop_ordered_static_start,
21739         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
21740         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
21741         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
21742         gomp_loop_ordered_guided_next): Downcase name, make static, add
21743         an external alias with the old name.
21744         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
21745         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
21746         switch and call one of the above static functions.
21747         * libgomp.h: Update.
21749         * work.c (gomp_work_share_start): Lock the mutex for !first too.
21750         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
21751         GOMP_loop_guided_start, GOMP_loop_runtime_start,
21752         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
21753         GOMP_loop_ordered_guided_start): Update to match.
21754         * sections.c (GOMP_sections_start): Likewise.
21755         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
21757         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
21758         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
21759         Use bounds check instead of modulus.
21760         (gomp_ordered_sync): Split out of GOMP_ordered_start.
21761         (gomp_ordered_last): Don't sync with ordered_owner here.
21762         (gomp_ordered_next): Likewise.
21763         (gomp_ordered_static_loop_next): Likewise.
21764         * loop.c, libgomp.h: Update to match.
21766         * libgomp.h (GOMP_barrier): Declare.
21768         * testsuite/barrier-1.c: New file.
21769         * testsuite/critical-1.c: New file.
21770         * testsuite/ordered-2.c: New file.
21771         * testsuite/ordered-1.c: New file.
21772         * testsuite/sections-1.c: New file.
21773         * testsuite/single-1.c: New file.
21774         * testsuite/Makefile (TESTS): Add them.
21776 2005-05-04  Richard Henderson  <rth@redhat.com>
21778         * libgomp.h (struct gomp_work_share): Add ordered_owner.
21779         * loop.c (GOMP_loop_static_start): If not the startup thread,
21780         acquire the mutex to wait for initialization complete.
21781         (GOMP_loop_ordered_static_start): Likewise.
21782         (GOMP_loop_ordered_runtime_start): Likewise.
21783         (GOMP_loop_ordered_static_first): Remove.
21784         (GOMP_loop_ordered_dynamic_first): Remove.
21785         (GOMP_loop_ordered_guided_first): Remove.
21786         (GOMP_loop_ordered_runtime_first): Remove.
21787         * ordered.c (gomp_ordered_loop_first): Post to own release when
21788         we're the first thread.
21789         (gomp_ordered_loop_last): Wait on release if not owner.
21790         (gomp_ordered_loop_next): Likewise.
21791         (gomp_ordered_static_loop_init): New.
21792         (gomp_ordered_static_loop_next): Use ordered_owner.
21793         (GOMP_ordered_start): Likewise.
21794         * work.c (gomp_new_work_share): Initialize ordered_owner.
21796 2005-05-03  Richard Henderson  <rth@redhat.com>
21798         * Makefile (OPT): New.
21799         (CFLAGS): Use it.
21801         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
21802         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
21803         * libgomp.h, libgomp.map, NOTES: Update to match.
21805         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
21806         Add initialized and thr members.
21807         (gomp_thread_start): Pause when initially spawned to wait for
21808         the whole team to be created.
21809         (gomp_team_start): Release team members at the end.
21811         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
21812         (f_foo_1): Use GOMP_loop_end.
21813         (f_foo_2): Use GOMP_loop_end_nowait.
21815         * testsuite/loop-2.c: New file.
21816         * testsuite/Makefile (TESTS): Add it.
21818 2005-05-03  Richard Henderson  <rth@redhat.com>
21820         * iter.c (gomp_iter_static_next): Fix overflow check typo.
21821         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
21822         * team.c (new_team): Initialize oldest_live_gen to 1 if no
21823         initial work_share.
21825         * testsuite/Makefile: New file.
21826         * testsuite/loop-1.c: New file.
21828 2005-05-03  Richard Henderson  <rth@redhat.com>
21830         Initial implementation and checkin.
21832 Copyright (C) 2005-2024 Free Software Foundation, Inc.
21834 Copying and distribution of this file, with or without modification,
21835 are permitted in any medium without royalty provided the copyright
21836 notice and this notice are preserved.